From: João Távora Date: Thu, 9 Mar 2023 13:07:02 +0000 (+0000) Subject: Autoload Eglot helper funtion eglot--debbugs-or-github-bug-uri X-Git-Tag: emacs-29.0.90~210 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01b65d442ad;p=emacs.git 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. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 2491c86ea5b..2679773c117 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -3666,13 +3666,14 @@ If NOERROR, return predicate, else erroring function." ;;; Misc ;;; -(defun eglot--debbugs-or-github-bug-uri () - (format (if (string= (match-string 2) "github") - "https://github.com/joaotavora/eglot/issues/%s" - "https://debbugs.gnu.org/%s") - (match-string 3))) -(put 'eglot--debbugs-or-github-bug-uri 'bug-reference-url-format t) - +;;;###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") + "https://github.com/joaotavora/eglot/issues/%s" + "https://debbugs.gnu.org/%s") + (match-string 3)))) ;;; Obsolete ;;;