From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: [prettify-symbols-mode] Two consecutive matches don't work? Date: Wed, 18 May 2022 12:07:01 +0200 Message-ID: <87czgb17ei.fsf@gmail.com> References: <8f817c96-9a19-45a6-9eef-2e598755970d@www.fastmail.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="7460"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Joost Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 18 12:08:09 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 1nrGbB-0001hu-HQ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 12:08:09 +0200 Original-Received: from localhost ([::1]:59710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrGbA-0006Q3-3p for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 May 2022 06:08:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrGa9-0006Pi-A5 for help-gnu-emacs@gnu.org; Wed, 18 May 2022 06:07:05 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:34343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrGa7-0005pD-SA for help-gnu-emacs@gnu.org; Wed, 18 May 2022 06:07:04 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id j24so1990553wrb.1 for ; Wed, 18 May 2022 03:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=zM9xwVwsIWPL2UFc6zPVNmLuCE9l/nYQ/jA5QwY4uoY=; b=MK4RKT6hbw0gSXuBGCZJr6YarfbeAat5YO7BK8rW3TBSaRMR94yHuC7kusNUl134YY NvDsxCg9Lfli2al88zff4N9I50nW0+UZ43kr6rRM/Etu8anpv5VjcIUOl8cJyEkzwK+N +dvjwz5YcTAInU2fWS2B/gmPJgBfjGEgYlFG7/vUKZiF/V0TyqzNTrtrFgAkU+pHDeNn m7JomhrzZAez2Mch1xafOySMTfsiJ/Bvky0tyl2v85Hkv8VCf0Sh5hw3p3AU+bJCi6w8 jRp0y/4zYoA58iLEOsUurkZ9wbHXhYeB29TFQkQo2U+W6fsiITmTNEoFnU41yc6KJeyP 8oVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=zM9xwVwsIWPL2UFc6zPVNmLuCE9l/nYQ/jA5QwY4uoY=; b=ZRZsKZCstXe+6uNmK/pCDlwD3YcHnH3K9i3HPAnm93/G4xKMfBhIsePBqHcmieZgms W/L700L03bIDIzBzqZx2HE4f6IY+hqcXjKlJr9UOU7ANoHBjpx8OeRWzdnID/iLR/33I e0RCdlv9zt8wg6QrsyI606jUT5grP8aWfDkVvYq8fHK8eV8jwRQrEs3+5q7Aqq4kox3A MDyV6UtgIl7OewNAjZ44u3F5WeDuBPTtaVxluAROsUOzRPfghcdr38/uQnQ+UNQVUMUA Qcd6hcI9YgM6KsSAoqlmYWjGRNIbycPMidbtbYzBwK2W8TsmQaZWHIgkt4XPzbZ/KPLj 1FzQ== X-Gm-Message-State: AOAM531SJLEyxcXk0HnKE5E5DNvFTU6OUt47QYCC3ACOGq61F9fmX5bG +pN93IsTkm8AzwYsZmtfIkcyK/kT6ws= X-Google-Smtp-Source: ABdhPJxUXrgyL2iWRCFX/ejIpwy27eMd/9uTibrgNMMfgxsRbwVEd5LOhascaKF0bjC0l1Mcq2GhFA== X-Received: by 2002:adf:e68c:0:b0:20d:98b:984c with SMTP id r12-20020adfe68c000000b0020d098b984cmr11846898wrm.129.1652868422089; Wed, 18 May 2022 03:07:02 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:cd02:384a:6bea:3e81]) by smtp.gmail.com with ESMTPSA id n13-20020a5d598d000000b0020c5253d8dasm1658635wri.38.2022.05.18.03.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 03:07:01 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <8f817c96-9a19-45a6-9eef-2e598755970d@www.fastmail.com> (Joost's message of "Wed, 18 May 2022 11:32:07 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=rpluim@gmail.com; helo=mail-wr1-x433.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, 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:137300 Archived-At: >>>>> On Wed, 18 May 2022 11:32:07 +0200, Joost said: Joost> Hi, Joost> I'm dealing with some `.xml` files that contain data which uses the Joost> sequence `< LESS-THAN sign needs to be encoded as `<`, yielding `<<!`. Joost> So I thought this would be the ideal use case for Joost> `prettify-symbols-mode`. I added `("<" . ?<)` to Joost> `prettify-symbols-alist` and activated the mode. Joost> Unfortunately, only the first `<` in each sequence is Joost> prettified. This seems to be due to the fact that the second `<` is Joost> followed by the exclamation mark: if I insert a space in between, Joost> prettification works. Joost> Is there any way to remedy this? Looks like a bug to me. I tried "<<", but exhibits the same behaviour. Robert --