From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thuna Newsgroups: gmane.emacs.bugs Subject: bug#59360: [PATCH] Highlight multiple symbols in single quotes in Common Lisp strings Date: Fri, 18 Nov 2022 16:12:45 +0100 Message-ID: <87k03suwia.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38281"; mail-complaints-to="usenet@ciao.gmane.io" To: 59360@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 18 16:13:16 2022 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 1ow33M-0009rw-N6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 16:13:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow33A-0000oC-Jr; Fri, 18 Nov 2022 10:13:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow338-0000ni-Sk for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ow338-0001rF-KT for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow338-0002fO-DI for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thuna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59360 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166878437610236 (code B ref -1); Fri, 18 Nov 2022 15:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Nov 2022 15:12:56 +0000 Original-Received: from localhost ([127.0.0.1]:37894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow331-0002f1-O1 for submit@debbugs.gnu.org; Fri, 18 Nov 2022 10:12:56 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow32y-0002er-RG for submit@debbugs.gnu.org; Fri, 18 Nov 2022 10:12:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow32y-0000nN-MX for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:12:52 -0500 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ow32x-0001qe-0M for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 10:12:52 -0500 Original-Received: by mail-ej1-x632.google.com with SMTP id n20so13918221ejh.0 for ; Fri, 18 Nov 2022 07:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=kVpei1gD5diI0OJCyFbIqRVO+x8nOoFPQVgt2k2QyZ8=; b=HQEGlCVdAqXKG7ekd92KtKm8v8imBa+777nx4Z6fAofvxv74B/OTr7dVSK42BEI5B+ n91dLIjrF5ROTFWxtDJEbQrqLPvRQZ0vJHDaWVVDz8eKn09o6JhuT+h7gaVTBSwvJbW0 2U053T+SHfGhPIqyzDSglovN9R9rSSTQevbcMqEfDhGx/wrAnk5NZGZCmG9JsG10sTZm 33tcSqoFPqY2ySo+t+VyPTvSFMPv0xiEqU07DlMU+0pXWP6a9jZFMQ426+RWJHvoRPZO DEfeVcnvmB1nTVGtpE+nJ23dDZShq35opC+pNOLELC+CwKJR+XQ5wnvakVPg7rIPSBme as9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kVpei1gD5diI0OJCyFbIqRVO+x8nOoFPQVgt2k2QyZ8=; b=fHK2HaoQAgoliWLlNF64kI47vya8mmL+x/ojUtQOVrdVAzGTDid9JiAHbv3U7CKJ+e YDGNtBbwJOYYgLR9Qa3Ho9UP/yeEAwQj4biGz2T8oOU1c1MeWLSi3tUHRYjslwL/Fudv VnTe2ug9daDTzR+cGIrToMlr3Dl1yaVP2hcP6wUdS9dAIVnPwTJqJeA0I/A9oP3XndWG BLFLfi/MwQ+33YVsYw3lS87WqwaeTyKqe5Mj5v1YYD4FuNJF788xO3ojt8iP0rK8kQI0 ubFSl+8a6FYIxZwIy+pIxZAJA6v8nXhYvQ/q92bL8vHjAH5svyDI3G5gyH/naiG8+xVj KgyA== X-Gm-Message-State: ANoB5pmsUI74cI05jw8d4JPJRc3yjB3PN9qd3LXr7PHIWKL8SlyIVJ/N eUEcPCyGwYhwM0qtQTObLFF/08hrAqs= X-Google-Smtp-Source: AA0mqf5vZ1/xB6XpNSh8U5fTNOLxPgEredZrLpbQ+S6saye1z0G8TpTdQNdgY5y1CzbZbsC90eAqlw== X-Received: by 2002:a17:906:9419:b0:783:71d1:14a0 with SMTP id q25-20020a170906941900b0078371d114a0mr6399113ejx.430.1668784368231; Fri, 18 Nov 2022 07:12:48 -0800 (PST) Original-Received: from thuna ([193.205.22.101]) by smtp.gmail.com with ESMTPSA id b14-20020a17090636ce00b007a8de84ce36sm1775005ejc.206.2022.11.18.07.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 07:12:46 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=thuna.cing@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248248 Archived-At: --=-=-= Content-Type: text/plain Severity: wishlist This is mostly useful for quoting Hyperspec glossary entries. I only patched it for Common Lisp to avoid possibly breaking help buffers for elisp. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-Highlight-multiple-symbols-in-single-quotes-in-Commo.patch Content-Transfer-Encoding: quoted-printable Content-Description: the patch >From 9a22e65b102835244a3e529618cd1f1e735f5d60 Mon Sep 17 00:00:00 2001 From: Thuna Date: Fri, 18 Nov 2022 15:56:38 +0100 Subject: [PATCH] Highlight multiple symbols in single quotes in Common Lisp strings * lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): When multiple space-delimited symbols are single quoted together (e.g "`foo bar'"), highlight them. --- lisp/emacs-lisp/lisp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 7e39a77aed..1e1dbf3eb4 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -557,7 +557,7 @@ lisp-mode--search-key (,(concat "(" cl-errs-re "\\_>") (1 font-lock-warning-face)) ;; Words inside =E2=80=98=E2=80=99 and `' tend to be symbol names. - (,(concat "[`=E2=80=98]\\(" (rx lisp-mode-symbol) "\\)['=E2=80=99= ]") + (,(concat "[`=E2=80=98]\\(" (rx (* lisp-mode-symbol (+ space)) li= sp-mode-symbol) "\\)['=E2=80=99]") (1 font-lock-constant-face prepend)) ;; Uninterned symbols, e.g., (defpackage #:my-package ...) ;; must come before keywords below to have effect --=20 2.35.1 --=-=-=--