From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72080@debbugs.gnu.org, Siyuan Chen <chansey97@gmail.com>
Subject: bug#72080: imenu returns different lists in emacs-news-mode and emacs-news-view-mode
Date: Sun, 14 Jul 2024 08:57:37 -0400 [thread overview]
Message-ID: <jwved7wyw2o.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <864j8tlkuy.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Jul 2024 12:08:53 +0300")
> For some reason I cannot get emacs-news-view-mode inherit the
> keymap of special-mode, nor even use its own keymap I defined in a
> defvar emacs-news-view-mode-map. Stefan, any reason why a simple
> definition of emacs-news-view-mode-map doesn't work, as the ELisp
> manual promises it should (where it described define-derived-mode)?
Can't think of a reason, no.
> Also, any idea why syntax-ppss thinks the final ^L in NEWS, here:
>
> ---
> *** Emacs on MS-Windows now supports the ':stipple' face attribute.
>
> ^L
> ----------------------------------------------------------------------
> This file is part of GNU Emacs.
>
> is in a comment when emacs-news-view-mode inherits from special-mode?
No, sorry.
> Do we have a way of making one mode use the syntax table of another
> mode without having a variable which holds the latter?
`C-h o` says:
define-derived-mode is an autoloaded Lisp macro in ‘derived.el’.
[...]
KEYWORD-ARGS:
[...]
:syntax-table TABLE
Use TABLE instead of the default
(CHILD-syntax-table). A nil value means to
simply use the same syntax-table as the parent.
so `:syntax-table` should be able to do that.
Stefan
next prev parent reply other threads:[~2024-07-14 12:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-12 17:52 bug#72080: imenu returns different lists in emacs-news-mode and emacs-news-view-mode Siyuan Chen
2024-07-13 8:17 ` Eli Zaretskii
2024-07-13 9:08 ` Eli Zaretskii
2024-07-13 13:33 ` Siyuan Chen
2024-07-14 12:57 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-07-14 13:16 ` Eli Zaretskii
2024-07-20 9:34 ` Eli Zaretskii
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=jwved7wyw2o.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=72080@debbugs.gnu.org \
--cc=chansey97@gmail.com \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.