Subject: Re: bug#47488: Treatment of # in js.el

From: Dmitry Gutov <[email-masked]>
Date: Sun, 9 May 2021 14:18:03 +0300

On 08.05.2021 15:43, Lars Ingebrigtsen wrote:
> Yeah, that doesn't seem correct for Javascript.  I've just removed that
> line in Emacs 28, and that seems to fix the issue for me.

I have just done a search, and there are still a fair number of lines like

#ifdef XP_UNIX
   #ifndef XP_MACOSX
     #define UNIX_BUT_NOT_MAC
   #endif
#endif

...

#ifdef UNIX_BUT_NOT_MAC
   pref("general.autoScroll", false);
#else
   pref("general.autoScroll", true);
#endif

in JS files in gecko-dev.

(The above is from browser/app/profile/firefox.js).

And they also have pieces like this.#m?.x; (mostly in test examples).

So ideally we would support both.