From: Tongjie Chen <chenphy10@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 54240@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#54240: emacs/lisp/emacs-lisp/derived.el patch
Date: Thu, 3 Mar 2022 22:28:23 -0500 [thread overview]
Message-ID: <CALue-g+44nRmVgX75=3fTQPxfwwbwUJoxZ8qHtK0H=pnBH+-tg@mail.gmail.com> (raw)
In-Reply-To: <87a6e6pn8j.fsf@web.de>
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]
Thanks Michael. I tested this improved quoting and it worked. Once the
abbrev table is defined, jdee will no longer run into problems.
A strange thing is when eval the previous non patched defun, jdee will
work. Wonder if "mode" was leaked somewhere.
On Thu, Mar 3, 2022 at 7:36 PM Michael Heerdegen <michael_heerdegen@web.de>
wrote:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> > > - (define-abbrev-table (derived-mode-abbrev-table-name mode) nil)
> > > + ,(define-abbrev-table (derived-mode-abbrev-table-name mode) nil)
> >
> > The code looks correct the way it is, I think?
>
> To me this looks like a regression introduced when converting to lexical
> binding. Look at the symbol 'mode': it's implicitly quoted so it can't
> refer to the lexical variable and you get the error reported.
>
> The patch unquotes too much however, looks like we want something like
>
> > > - (define-abbrev-table (derived-mode-abbrev-table-name mode) nil)
> > > + (define-abbrev-table (derived-mode-abbrev-table-name ',mode) nil)
>
> (does that work?)
>
> Michael.
>
--
Best,
Tongjie
[-- Attachment #2: Type: text/html, Size: 1688 bytes --]
next prev parent reply other threads:[~2022-03-04 3:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 16:45 bug#54240: emacs/lisp/emacs-lisp/derived.el patch chenphy10
2022-03-03 17:14 ` Lars Ingebrigtsen
2022-03-03 23:02 ` Tongjie Chen
2022-03-04 0:36 ` Michael Heerdegen
2022-03-04 3:28 ` Tongjie Chen [this message]
2022-03-04 3:59 ` Michael Heerdegen
2022-03-04 15:19 ` Lars Ingebrigtsen
2022-03-04 21:39 ` Michael Heerdegen
2022-03-06 16:13 ` Lars Ingebrigtsen
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='CALue-g+44nRmVgX75=3fTQPxfwwbwUJoxZ8qHtK0H=pnBH+-tg@mail.gmail.com' \
--to=chenphy10@gmail.com \
--cc=54240@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=michael_heerdegen@web.de \
/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.