From unknown Sat Jun 21 05:19:56 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2630: most keywords in emacs-lisp-mode has no syntax highlight Reply-To: xah lee , 2630@debbugs.gnu.org Resent-From: xah lee Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 10 Mar 2009 21:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2630 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123672078215918 (code B ref -1); Tue, 10 Mar 2009 21:40:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Mar 2009 21:33:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2ALWxmq015909 for ; Tue, 10 Mar 2009 14:33:00 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lh9ZK-0006Nc-R7 for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2009 17:32:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lh9ZK-0006NH-5Q for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2009 17:32:58 -0400 Received: from [199.232.76.173] (port=56669 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh9ZJ-0006NA-WC for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2009 17:32:58 -0400 Received: from mout.perfora.net ([74.208.4.195]:53570) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lh9ZJ-0008OA-LA for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2009 17:32:57 -0400 Received: from [192.168.1.5] (c-24-6-175-142.hsd1.ca.comcast.net [24.6.175.142]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1Lh9Z740KT-000d1v; Tue, 10 Mar 2009 17:32:47 -0400 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed To: bug-gnu-emacs@gnu.org From: xah lee Date: Tue, 10 Mar 2009 14:31:25 -0700 X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1/3f+u3lU20EPrHrCcCZWoxn8oPL1KPeji/wwI o/0LmXLw85skpvW0KZX1PS5t5GoKv+3Bae/ErPG7eINUrtxnT8 jxVSDbM6VxObAThiiD2Aw== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. the syntax highlighting in emacs-lisp-mode only support the very =20 minimum of highlighting. for example, these keywords would be colored purple by default: defun, lambda, while, if, progn, save-restriction while the following built-in keywords are uncolored (black): narrow-to-region, mapc, goto-char, point-min, search-forward, car, nil, replace-match ... etc. it appears that this is because only proper elisp =E2=80=9Cspecial = forms=E2=80=9D =20 are are colored, while all the others are not (macros, functions, =20 commands, variables ...). (thanks to Nikolaj Schumacher & Tassilo Horn) but in summary, i think the way it is is rather odd. It is rather =20 strange and difficult to understand unless the user has expert elisp =20 knowledge, and it is somewhat not typical with how most other major =20 mode for languages syntax color the lang's keywords. (emacs-lisp-mode doesn't seem to support customize-group and font-=20 lock-maximum-decoration) i think the current behavior is severe enough to be considered a bug. This is emacs 22.x. Xah =E2=88=91 http://xahlee.org/ =E2=98=84 From cyd@stupidchicken.com Tue Mar 10 21:16:27 2009 Received: (at control) by emacsbugs.donarmstrong.com; 11 Mar 2009 04:16:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2B4GP1w022294 for ; Tue, 10 Mar 2009 21:16:26 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6BE9157E04D; Wed, 11 Mar 2009 00:17:39 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 2630 wishlist Date: Wed, 11 Mar 2009 00:17:39 -0400 Message-ID: <877i2w4rrw.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 2630 wishlist thanks From unknown Sat Jun 21 05:19:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2630: most keywords in emacs-lisp-mode has no syntax highlight Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2630 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: xah lee Cc: 2630@debbugs.gnu.org Received: via spool by 2630-submit@debbugs.gnu.org id=B2630.1569830640448 (code B ref 2630); Mon, 30 Sep 2019 08:04:02 +0000 Received: (at 2630) by debbugs.gnu.org; 30 Sep 2019 08:04:00 +0000 Received: from localhost ([127.0.0.1]:56854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqf1-000079-Vk for submit@debbugs.gnu.org; Mon, 30 Sep 2019 04:04:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:46976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqez-00006z-Ps for 2630@debbugs.gnu.org; Mon, 30 Sep 2019 04:03:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEqew-000532-KP; Mon, 30 Sep 2019 10:03:57 +0200 From: Lars Ingebrigtsen References: Date: Mon, 30 Sep 2019 10:03:54 +0200 In-Reply-To: (xah lee's message of "Tue, 10 Mar 2009 14:31:25 -0700") Message-ID: <87k19qfbx1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: xah lee writes: > the syntax highlighting in emacs-lisp-mode only support the very > minimum of highlighting. > > for example, these keywords would be colored purple by default: > > defun, lambda, while, if, progn, s [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) xah lee writes: > the syntax highlighting in emacs-lisp-mode only support the very > minimum of highlighting. > > for example, these keywords would be colored purple by default: > > defun, lambda, while, if, progn, save-restriction > > while the following built-in keywords are uncolored (black): > narrow-to-region, mapc, goto-char, point-min, search-forward, car, > nil, replace-match ... etc. > > it appears that this is because only proper elisp =E2=80=9Cspecial forms= =E2=80=9D are > are colored, while all the others are not (macros, functions, > commands, variables ...). (thanks to Nikolaj Schumacher & Tassilo > Horn) I guess you're asking for functions symbols to be coloured in a different way than the standard face? I think that would be kinda disturbing -- Emacs lisp code is mostly function calls, so having that in the default (most readable) face makes sense to me. So I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 04:04:04 2019 Received: (at control) by debbugs.gnu.org; 30 Sep 2019 08:04:04 +0000 Received: from localhost ([127.0.0.1]:56858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqf6-00007o-At for submit@debbugs.gnu.org; Mon, 30 Sep 2019 04:04:04 -0400 Received: from quimby.gnus.org ([80.91.231.51]:46994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqf4-00007L-8H for control@debbugs.gnu.org; Mon, 30 Sep 2019 04:04:02 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEqf1-000539-LJ for control@debbugs.gnu.org; Mon, 30 Sep 2019 10:04:01 +0200 Date: Mon, 30 Sep 2019 10:03:59 +0200 Message-Id: <87impafbww.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #2630 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 2630 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 2630 quit