From: Dmitry Gutov <dgutov@yandex.ru>
To: Alan Mackenzie <acm@muc.de>, Brian Leung <bkleung89@gmail.com>
Cc: 41649@debbugs.gnu.org
Subject: bug#41649: 27.0.91; beginning-of-defun doesn't work inside React markup in js-jsx-mode
Date: Wed, 3 Jun 2020 00:43:32 +0300 [thread overview]
Message-ID: <0cbfd145-bdb2-4e1c-2f81-864c55894bc2@yandex.ru> (raw)
In-Reply-To: <20200602171221.19097.qmail@mail.muc.de>
Hi Alan,
On 02.06.2020 20:12, Alan Mackenzie wrote:
> The problem seems to stem from the top-level function #'js-mode. Early
> on, it invokes
>
> (c-init-language-vars js-mode)
>
> , which initialises the CC Mode language variables to (mostly) their
> Java Mode values. js-mode continues by overwriting the local value of
> quite a few of these variables, including beginning-of-defun-function.
>
> js-mode then invokes
>
> (c-init-language-vars js-mode)
>
> a second time, which initialises the language variables again, in
> particular, those variables which just got a local value, including
> beginning-of-defun-function.
>
> Daniel, what is going on, here? Is this just a simple coding error,
> where the second c-init-language-vars should have been removed at some
stage?
I agree that the second call should be removed.
You might be amused to look at the commit 4ad6c932a82, though, and see
who the author is. :-)
next prev parent reply other threads:[~2020-06-02 21:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-01 17:59 bug#41649: 27.0.91; beginning-of-defun doesn't work inside React markup in js-jsx-mode Brian Leung
[not found] ` <mailman.928.1591034465.2541.bug-gnu-emacs@gnu.org>
2020-06-02 17:12 ` Alan Mackenzie
2020-06-02 17:27 ` Brian Leung
2020-06-02 21:45 ` Dmitry Gutov
2020-06-02 21:43 ` Dmitry Gutov [this message]
2020-06-03 19:39 ` Alan Mackenzie
2020-06-03 20:08 ` Dmitry Gutov
2020-06-04 16:23 ` Alan Mackenzie
2020-06-04 16:26 ` Dmitry Gutov
2020-06-04 16:40 ` Brian Leung
2020-06-07 15:23 ` Alan Mackenzie
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=0cbfd145-bdb2-4e1c-2f81-864c55894bc2@yandex.ru \
--to=dgutov@yandex.ru \
--cc=41649@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=bkleung89@gmail.com \
/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.