From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47488: Treatment of # in js.el Date: Tue, 11 May 2021 14:21:45 +0200 Message-ID: <87lf8lpijq.fsf@gnus.org> References: <871rahqtu6.fsf@gnus.org> <030f4208-3688-1e23-990e-1becd852c27b@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2006"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47488@debbugs.gnu.org, Reuben Thomas To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 14:22:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgRPE-0000NE-BJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 14:22:32 +0200 Original-Received: from localhost ([::1]:59758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgRPC-0005cz-Aw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 08:22:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgROk-0005WA-AQ for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgROk-0001yy-1n for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgROj-0004et-TU for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47488 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47488-submit@debbugs.gnu.org id=B47488.162073571717895 (code B ref 47488); Tue, 11 May 2021 12:22:01 +0000 Original-Received: (at 47488) by debbugs.gnu.org; 11 May 2021 12:21:57 +0000 Original-Received: from localhost ([127.0.0.1]:35249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgROf-0004eY-6k for submit@debbugs.gnu.org; Tue, 11 May 2021 08:21:57 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgROd-0004e5-BJ for 47488@debbugs.gnu.org; Tue, 11 May 2021 08:21:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RqIUtsrA5t824OQ8pR1J9b1a2dDZ0LLCnlXtolvQyS4=; b=W3gIj6Z+anQpZScpYCVnBecF5N HbJKay5W1xDxjjGdjECtWj1IADhsKjCrTUm3auwp4Dq1imn7aNhq1UHFMYc1MDA2jZLO1omLndW3a 0a6i/dL4UF+/lOF/VIZLu532z4v6dxB60XBZxY/80F4EczcA8DAmAcB32NjtPsqHA6/A=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgROU-0004Zb-65; Tue, 11 May 2021 14:21:48 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEUxKihGNCpVRS9k NSVhVURsUC2KYSowOkd7ZTwwQVOMdU6niU7///8670f3AAAAAWJLR0QMgbNRYwAAAAd0SU1FB+UF CwwCOfGVOw4AAAGrSURBVDjLdVOxTsMwED27ChHbnUOYY4uUiomqYgfEBySh6cDGEMSYDbFWdGFC CKniT/g8zkna2C6c2lrJe3f37p0LMIRAIMEnH0bh8DLjZ34pRPdkFIxBzEHOEJbrAbsfm0kOwEwE ednVOrkhHJGuRNGTCBzARl32ALfygdUAQK9hjDSDIHoOyT2vdQGifQGn0uSeiHqKFxg1RNgR3b6C SDW7iYU7Nzcu9764Srkt9cfgwb5WVKSICHnNm/AslFYrospXmZfBUjV3zaiq/VpMJqtNNpkPsM8C WadqEP3maIcjTE0RmMh0+0k3IWALS1PKMlid1YXRU8klQyDSGG3m886P1gWUwaPHZHEIsNapZoD9 iF0g5ouRJ4sr4ksYe4ti1jRbJDbjxWvO+aeaBI8Zb31l3y1vly9uvG19T+ItD5NwIb+SEPk5QJIA fpjljQfJqgWaAHzVd9eBX7H9bxx/hp5IiDUq/dqGV07O8rVOK6N1mPJgjJbV7PYAEN1XnXVTBO6n euzoplRv7wX+AcDz8uKnGBbqAYpoPSRnwa6cPXhGHqgZaQT/hOPHLysFLiUgmIu1AAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIxLTA1LTExVDEyOjAyOjU3KzAwOjAweBFhsAAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMS0wNS0xMVQxMjowMjo1NyswMDowMAlM2QwAAAAASUVORK5CYII= X-Now-Playing: Coil's _Love's Secret Domain (1)_: "Dark River" In-Reply-To: (Dmitry Gutov's message of "Mon, 10 May 2021 15:14:11 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206220 Archived-At: Dmitry Gutov writes: > We could add a custom var that disables this behavior, of > course. js2-mode has one, but it only affects the parser, not the > indentation behavior. If we could avoid having a user option, that's be nice... > Maybe check against a specific list of preprocessor instructions, such > as #define, #ifdef, etc. I think that sounds like a good solution. Grepping around a bit, perhaps `cpp-font-lock-keywords-source-directives' in font-lock.el would be a good source to use here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no