nyyManni / ejira

Emacs JIRA integration
GNU General Public License v3.0
255 stars 36 forks source link

username vs. accountId and additions #18

Closed MadEarl closed 4 years ago

MadEarl commented 4 years ago

Jira API does not accept usernames anymore, requires use of accountId instead. I've made the necessary changes.

Addition: Create issue by use of a Yasnippet and a new function.

chaorace commented 4 years ago

I tried loading up your fork earlier today, but I'm experiencing a wrong-number-of-arguments error when declaring ejira-fields-map

Debugger entered--Lisp error: (wrong-number-of-arguments #f(compiled-function (symbol standard doc &rest args) #<bytecode 0x1a7be7>) 2)
  #f(compiled-function (symbol standard doc &rest args) #<bytecode 0x1a7be7>)(ejira-fields-map (quote (nil)))
  (defcustom ejira-fields-map (quote (nil)))
  eval-buffer(#<buffer  *load*-23779> nil "/home/chao/.emacs.d/.local/straight/build/ejira/ejira-core.el" nil t)  ; Reading at buffer position 3856
  load-with-code-conversion("/home/chao/.emacs.d/.local/straight/build/ejira/ejira-core.el" "/home/chao/.emacs.d/.local/straight/build/ejira/ejira-core.el" nil t)
  require(ejira-core)
  eval-buffer(#<buffer  *load*-119997> nil "/home/chao/.emacs.d/.local/straight/build/ejira/ejira.el" nil t)  ; Reading at buffer position 886
  load-with-code-conversion("/home/chao/.emacs.d/.local/straight/build/ejira/ejira.el" "/home/chao/.emacs.d/.local/straight/build/ejira/ejira.el" nil t)
  require(ejira nil nil)
  eval-buffer(#<buffer  *load*-48695> nil "/home/chao/.doom.d/+ejira.el" nil t)  ; Reading at buffer position 1345
  load-with-code-conversion("/home/chao/.doom.d/+ejira.el" "/home/chao/.doom.d/+ejira.el" nil t)
  load("/home/chao/.doom.d/+ejira" nil nomessage)
  (let (file-name-handler-alist) (load (expand-file-name "+ejira" "/home/chao/.doom.d") nil (quote nomessage)))
  (condition-case e (let (file-name-handler-alist) (load (expand-file-name "+ejira" "/home/chao/.doom.d") nil (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "+ejira" "/home/chao/.doom.d") "/home/chao/.doom.d")))
  eval-buffer(#<buffer  *load*-793383> nil "/home/chao/.doom.d/config.el" nil t)  ; Reading at buffer position 6777
  load-with-code-conversion("/home/chao/.doom.d/config.el" "/home/chao/.doom.d/config.el" t t)
  load("/home/chao/.doom.d/config" t nomessage)
  (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage)))
  (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir)))
  (progn (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (if doom-modules (progn (maphash (function (lambda (key plist) (let (... ...) (condition-case e ... ... ...)))) doom-modules))) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn (maphash (function (lambda (key plist) (let (... ...) (condition-case e ... ... ...)))) doom-modules))) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file (quote noerror) (not doom-debug-mode)))
  (if init-p (progn (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (if doom-modules (progn (maphash (function (lambda (key plist) (let ... ...))) doom-modules))) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn (maphash (function (lambda (key plist) (let ... ...))) doom-modules))) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file (quote noerror) (not doom-debug-mode))) nil)
  (let* ((init-p (and t (condition-case e (let (file-name-handler-alist) (load (expand-file-name "init" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "init" doom-private-dir) doom-private-dir)))))) (if init-p (progn (if doom-debug-mode (progn (let ((inhibit-message ...)) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (if doom-modules (progn (maphash (function (lambda ... ...)) doom-modules))) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn (maphash (function (lambda ... ...)) doom-modules))) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file (quote noerror) (not doom-debug-mode))) nil))
  (progn (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing core modules" 0 5 (face font-lock-comment-face)))))) (doom-initialize-core-modules) (let* ((init-p (and t (condition-case e (let (file-name-handler-alist) (load ... t ...)) ((debug doom-error) (signal ... ...)) ((debug error) (doom--handle-load-error e ... doom-private-dir)))))) (if init-p (progn (if doom-debug-mode (progn (let (...) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (if doom-modules (progn (maphash (function ...) doom-modules))) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn (maphash (function ...) doom-modules))) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t (quote nomessage))) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file (quote noerror) (not doom-debug-mode))) nil)))
  (unwind-protect (progn (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing core modules" 0 5 (face font-lock-comment-face)))))) (doom-initialize-core-modules) (let* ((init-p (and t (condition-case e (let ... ...) (... ...) (... ...))))) (if init-p (progn (if doom-debug-mode (progn (let ... ...))) (if doom-modules (progn (maphash ... doom-modules))) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn (maphash ... doom-modules))) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let (file-name-handler-alist) (load ... t ...)) ((debug doom-error) (signal ... ...)) ((debug error) (doom--handle-load-error e ... doom-private-dir))) (load custom-file (quote noerror) (not doom-debug-mode))) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if doom-debug-mode (progn (let ((inhibit-message ...)) (message #("DOOM Initializing core modules" 0 5 (face font-lock-comment-face)))))) (doom-initialize-core-modules) (let* ((init-p (and t (condition-case e ... ... ...)))) (if init-p (progn (if doom-debug-mode (progn ...)) (if doom-modules (progn ...)) (run-hook-wrapped (quote doom-before-init-modules-hook) (function doom-try-run-hook)) (if doom-modules (progn ...)) (run-hook-wrapped (quote doom-init-modules-hook) (function doom-try-run-hook)) (condition-case e (let ... ...) (... ...) (... ...)) (load custom-file (quote noerror) (not doom-debug-mode))) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if doom-debug-mode (progn (let (...) (message #("DOOM Initializing core modules" 0 5 (face font-lock-comment-face)))))) (doom-initialize-core-modules) (let* ((init-p (and t ...))) (if init-p (progn (if doom-debug-mode ...) (if doom-modules ...) (run-hook-wrapped ... ...) (if doom-modules ...) (run-hook-wrapped ... ...) (condition-case e ... ... ...) (load custom-file ... ...)) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  (progn (setq doom-init-modules-p t doom-modules nil) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if doom-debug-mode (progn (let ... ...))) (doom-initialize-core-modules) (let* ((init-p ...)) (if init-p (progn ... ... ... ... ... ... ...) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
  (if (or force-p (not doom-init-modules-p)) (progn (setq doom-init-modules-p t doom-modules nil) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if doom-debug-mode (progn ...)) (doom-initialize-core-modules) (let* (...) (if init-p ... nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))
  doom-initialize-modules(nil)
  (progn (setq doom-init-p t) (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (setq-default exec-path doom--initial-exec-path load-path doom--initial-load-path process-environment doom--initial-process-environment) (or (and (or (doom-load-autoloads-file doom-autoload-file) (ignore (warn "Doom's core autoloads file is missing"))) (or (doom-load-autoloads-file doom-package-autoload-file) (ignore (warn "Doom's package autoloads file is missing")))) (signal (quote doom-error) (list "Doom is in an incomplete state" "run 'bin/doom sync' on the command line to repair it"))) (and (or (display-graphic-p) (daemonp)) (doom-load-envvars-file doom-env-file (quote noerror))) (require (quote core-modules)) (autoload (quote doom-initialize-packages) "core-packages") (autoload (quote doom-initialize-core-packages) "core-packages") (eval-after-load (quote package) (function (lambda nil (require (quote core-packages))))) (eval-after-load (quote straight) (function (lambda nil (doom-initialize-packages)))) (add-hook (quote window-setup-hook) (function (lambda (&rest _) (add-hook (quote hack-local-variables-hook) (function doom-run-local-var-hooks-h)) (add-hook (quote after-change-major-mode-hook) (function doom-run-local-var-hooks-maybe-h) (quote append)) (add-hook (quote doom-first-input-hook) (function gcmh-mode)) (let ((fn (intern ...))) (fset fn (function (lambda ... ... ...))) (put (quote doom-first-input-hook) (quote permanent-local) t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...)))) (let ((fn (intern ...))) (fset fn (function (lambda ... ... ...))) (put (quote doom-first-file-hook) (quote permanent-local) t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...)))) (let ((fn (intern ...))) (fset fn (function (lambda ... ... ...))) (put (quote doom-first-buffer-hook) (quote permanent-local) t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...)))))) nil nil) (add-hook (quote emacs-startup-hook) (function doom-load-packages-incrementally-h)) (add-hook (quote window-setup-hook) (function doom-display-benchmark-h) (quote append)) (doom-initialize-modules force-p))
  (if (or force-p (not doom-init-p)) (progn (setq doom-init-p t) (if doom-debug-mode (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (setq-default exec-path doom--initial-exec-path load-path doom--initial-load-path process-environment doom--initial-process-environment) (or (and (or (doom-load-autoloads-file doom-autoload-file) (ignore (warn "Doom's core autoloads file is missing"))) (or (doom-load-autoloads-file doom-package-autoload-file) (ignore (warn "Doom's package autoloads file is missing")))) (signal (quote doom-error) (list "Doom is in an incomplete state" "run 'bin/doom sync' on the command line to repair it"))) (and (or (display-graphic-p) (daemonp)) (doom-load-envvars-file doom-env-file (quote noerror))) (require (quote core-modules)) (autoload (quote doom-initialize-packages) "core-packages") (autoload (quote doom-initialize-core-packages) "core-packages") (eval-after-load (quote package) (function (lambda nil (require (quote core-packages))))) (eval-after-load (quote straight) (function (lambda nil (doom-initialize-packages)))) (add-hook (quote window-setup-hook) (function (lambda (&rest _) (add-hook (quote hack-local-variables-hook) (function doom-run-local-var-hooks-h)) (add-hook (quote after-change-major-mode-hook) (function doom-run-local-var-hooks-maybe-h) (quote append)) (add-hook (quote doom-first-input-hook) (function gcmh-mode)) (let ((fn ...)) (fset fn (function ...)) (put (quote doom-first-input-hook) (quote permanent-local) t) (let (...) (while --dolist-tail-- ...))) (let ((fn ...)) (fset fn (function ...)) (put (quote doom-first-file-hook) (quote permanent-local) t) (let (...) (while --dolist-tail-- ...))) (let ((fn ...)) (fset fn (function ...)) (put (quote doom-first-buffer-hook) (quote permanent-local) t) (let (...) (while --dolist-tail-- ...))))) nil nil) (add-hook (quote emacs-startup-hook) (function doom-load-packages-incrementally-h)) (add-hook (quote window-setup-hook) (function doom-display-benchmark-h) (quote append)) (doom-initialize-modules force-p)))
  doom-initialize()
  eval-buffer(#<buffer  *load*> nil "/home/chao/.emacs.d/init.el" nil t)  ; Reading at buffer position 2620
  load-with-code-conversion("/home/chao/.emacs.d/init.el" "/home/chao/.emacs.d/init.el" t t)
  load("/home/chao/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x1df6a1>)()
  command-line()
  normal-top-level()