From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: [prettify-symbols-mode] Two consecutive matches don't work? Date: Wed, 18 May 2022 22:01:37 +0200 Message-ID: <871qwq7gk0.fsf@fastmail.fm> References: <8f817c96-9a19-45a6-9eef-2e598755970d@www.fastmail.com> <83h75nf3zu.fsf@gnu.org> <878rqz10up.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 28.1.50 Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 22:06:03 2022 Return-path: Envelope-to: geh-help-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 1nrPvl-0003er-EK for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 22:06:03 +0200 Original-Received: from localhost ([::1]:51182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrPvk-00041G-CT for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 16:06:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrPv1-0003ze-EI for help-gnu-emacs@gnu.org; Wed, 18 May 2022 16:05:15 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:51325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrPuy-0004oW-PT; Wed, 18 May 2022 16:05:14 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 73DE93200077; Wed, 18 May 2022 16:05:07 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 18 May 2022 16:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1652904307; x=1652990707; bh=o9Q7gKdpnj 6u3c9UDhE9cYEL69f3viWfFM9bOUgJrBU=; b=jhWHya3YW8IKFDDiP/C4LVe1JB tsSHjY4Y2eIbxbHrDAdtHuOMqGQ+nZthKfNI36VvkY24h3/e73GL+/OOgSR+Eey2 DOVczWzrtEqFPBtUPYw7uyemOcpy3jO0/S2Mxn30e1ofo5zOTxvCoAJiiIPWnvz9 iz9ql5H+YCT7HcHM0/g89t7C5rKnll/j3qM0hrkzAe5tii944iwKL5MwgB06Rf07 +Xc9ULiVQMZXVEbxpxR1v4PMBnMwmhfKvE3865x+o0+1ho32UqLg7u+VsL9ex4Px +dyPFARe6ng9toWe0MtgueMrCarrup6HcchKlDGOY548IYC7ou9txpFbG0DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1652904307; x=1652990707; bh=o9Q7gKdpnj6u3c9UDhE9cYEL69f3 viWfFM9bOUgJrBU=; b=UKMf6+jsSVGrmH9N+WFMJULSZh8ly8PyMwo/011RPH19 EbCqUjb0O9NVbaBXuWZXhACu3O0Kpt5i7IDFRQFOex6ldt1pyCMlbzeteHQTj2mc 1Gtv2/dyfJSLWq+6fycMkJ7EbBh+JikwHYnz3xMFrZowwl8c3d7RXqv9o1PXprxm 8gOdksIYs74a+iV08KhFlOtrGTlpOcF8D1/qyuEPA4cFKtHFF7BZgrGfxnEWX9F+ cm5jBCSfrTS2Gw2Mc+EGetb2QJvV2/XkOpV2q1vpygBaUWLEtEuPgCRHrV8Fpeen DjEimOYdn7rvxwQ9aRGQRk20pqCcTdcyiZ1GUggSFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheelgddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepgfeihfdutdetleejheevkeejtdffueehfffhffefteei teefhedtkedtiedtkeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 May 2022 16:05:06 -0400 (EDT) In-reply-to: <878rqz10up.fsf@gmail.com> Received-SPF: pass client-ip=64.147.123.20; envelope-from=joostkremers@fastmail.fm; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137307 Archived-At: On Wed, May 18 2022, Robert Pluim wrote: >>>>>> On Wed, 18 May 2022 14:56:53 +0300, Eli Zaretskii said: [helpful info] Thanks Eli & Robert. I didn't realise the importance of prettify-symbols-compose-predicate. > You could even generalize it to: > > (setq prettify-symbols-alist '(("<" . "<")) > prettify-symbols-compose-predicate > (lambda (s e m) > t)) (setq prettify-symbols-compose-predicate #'always) :-) -- Joost Kremers Life has its moments