bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41649: 27.0.91; beginning-of-defun doesn't work inside React markup


From: Dmitry Gutov
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

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. :-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]