Autoload Eglot helper funtion eglot--debbugs-or-github-bug-uri
This isn't a typical autoload: the progn block is plced in the autoloads file, but the eglot.el file itself isn't loaded as a result when the function inside the progn block is called. * lisp/progmodes/eglot.el (eglot--debbugs-or-github-bug-uri): autoload, but in progn.
This commit is contained in:
parent
50a3559c5a
commit
01b65d442a
1 changed files with 8 additions and 7 deletions
|
@ -3666,13 +3666,14 @@ If NOERROR, return predicate, else erroring function."
|
||||||
|
|
||||||
;;; Misc
|
;;; Misc
|
||||||
;;;
|
;;;
|
||||||
(defun eglot--debbugs-or-github-bug-uri ()
|
;;;###autoload
|
||||||
|
(progn
|
||||||
|
(put 'eglot--debbugs-or-github-bug-uri 'bug-reference-url-format t)
|
||||||
|
(defun eglot--debbugs-or-github-bug-uri ()
|
||||||
(format (if (string= (match-string 2) "github")
|
(format (if (string= (match-string 2) "github")
|
||||||
"https://github.com/joaotavora/eglot/issues/%s"
|
"https://github.com/joaotavora/eglot/issues/%s"
|
||||||
"https://debbugs.gnu.org/%s")
|
"https://debbugs.gnu.org/%s")
|
||||||
(match-string 3)))
|
(match-string 3))))
|
||||||
(put 'eglot--debbugs-or-github-bug-uri 'bug-reference-url-format t)
|
|
||||||
|
|
||||||
;;; Obsolete
|
;;; Obsolete
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue