]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow newline after def*-form for definition-prefix
authorStefan Kangas <stefan@marxist.se>
Fri, 5 Aug 2022 18:17:23 +0000 (20:17 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 5 Aug 2022 18:17:23 +0000 (20:17 +0200)
* 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)

lisp/emacs-lisp/loaddefs-gen.el

index afba9f8fbc709d1dbf0677667834b0ccf7a71fc7..8aa17be765e8111b7c589c60d0f9af58bbe07fe9 100644 (file)
@@ -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 <foo>) 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