From: Stefan Kangas Date: Fri, 5 Aug 2022 18:17:23 +0000 (+0200) Subject: Allow newline after def*-form for definition-prefix X-Git-Tag: emacs-29.0.90~1447^2~404 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea6c2e92958a10c7fd6b250f40fec66ac54a59ff;p=emacs.git Allow newline after def*-form for definition-prefix * lisp/emacs-lisp/loaddefs-gen.el (autoload-ignored-definitions): Add another semantic function. (loaddefs-generate--compute-prefixes): Allow newline after the "(def*" form. (Bug#57000) --- diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index afba9f8fbc7..8aa17be765e 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el @@ -68,6 +68,7 @@ be included.") "define-short-documentation-group" "def-edebug-elem-spec" "defvar-mode-local" + "defcustom-mode-local-semantic-dependency-system-include-path" "define-ibuffer-column" "define-ibuffer-sorter") "List of strings naming definitions to ignore for prefixes. @@ -456,7 +457,7 @@ don't include." (let ((prefs nil)) ;; Avoid (defvar ) by requiring a trailing space. (while (re-search-forward - "^(\\(def[^ \t]+\\)[ \t]+['(]*\\([^' ()\"\n]+\\)[\n \t]" nil t) + "^(\\(def[^ \t\n]+\\)[ \t\n]+['(]*\\([^' ()\"\n]+\\)[\n \t]" nil t) (unless (member (match-string 1) autoload-ignored-definitions) (let ((name (match-string-no-properties 2))) (when (save-excursion