From: Stefan Kangas <stefan@marxist.se>
To: 57000@debbugs.gnu.org
Subject: bug#57000: Wrong entry "c-mode" in definition prefix for semantic
Date: Fri, 5 Aug 2022 12:51:55 +0200 [thread overview]
Message-ID: <CADwFkmmUgwXOY0utvWA43HOF=kiqi7YiBQ+1NeJCFg8te428zw@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmkH=ta5OG=CPA6k9qrsG1oUz09FRVpGdq88xF-DHrDO=Q@mail.gmail.com> (Stefan Kangas's message of "Fri, 5 Aug 2022 12:06:06 +0200")
Stefan Kangas <stefan@marxist.se> writes:
> I see in loaddefs.el:
>
> (register-definition-prefixes "semantic/bovine/c" '("c-mode" "semantic"))
>
> I think "c-mode" shouldn't be there, but I can't seem to figure out why
> it is.
This is caused by
defcustom-mode-local-semantic-dependency-system-include-path
One possible fix below, but I'm not sure we want to do this generally:
diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el
index afba9f8fbc..8aa17be765 100644
--- a/lisp/emacs-lisp/loaddefs-gen.el
+++ b/lisp/emacs-lisp/loaddefs-gen.el
@@ -68,6 +68,7 @@ autoload-ignored-definitions
"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 @@ loaddefs-generate--compute-prefixes
(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
next prev parent reply other threads:[~2022-08-05 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 10:06 bug#57000: Wrong entry "c-mode" in definition prefix for semantic Stefan Kangas
2022-08-05 10:51 ` Stefan Kangas [this message]
2022-08-05 12:07 ` Lars Ingebrigtsen
2022-08-05 18:27 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmUgwXOY0utvWA43HOF=kiqi7YiBQ+1NeJCFg8te428zw@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=57000@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.