From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Mao Newsgroups: gmane.emacs.bugs Subject: bug#65884: 29.1; prettify-symbols-unprettify-at-point documentation Date: Mon, 11 Sep 2023 21:20:25 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c2fb33060521c36a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19897"; mail-complaints-to="usenet@ciao.gmane.io" To: 65884@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 06:21:15 2023 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 1qfutm-00053I-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 06:21:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfutZ-0005PW-K8; Tue, 12 Sep 2023 00:21:01 -0400 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 1qfutW-0005P7-F3 for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:20:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfutW-0008T8-6t for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:20:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfuta-00071T-B4 for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Mao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2023 04:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65884 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169449245826968 (code B ref -1); Tue, 12 Sep 2023 04:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2023 04:20:58 +0000 Original-Received: from localhost ([127.0.0.1]:55647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfutW-00070t-1U for submit@debbugs.gnu.org; Tue, 12 Sep 2023 00:20:58 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:53518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfutQ-00070X-Rp for submit@debbugs.gnu.org; Tue, 12 Sep 2023 00:20:56 -0400 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 1qfutG-0005OS-2G for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:20:42 -0400 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfutD-0007ju-QX for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 00:20:41 -0400 Original-Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2bccda76fb1so87995341fa.2 for ; Mon, 11 Sep 2023 21:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694492437; x=1695097237; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Xgx8OuqYYeImAQiYZaDNrXYXqp4HFIi8OG5rcFbRA3I=; b=JKW2OnF0ku6fSOZNLUiYAwoVX7AdxkFxgGzdeZshTpTxKNXYS1KRW46i1PHx8mRBU6 ZGqffJrh7fFtWyO+2ZymA30bgsQModr9SiPA7kB1MsZ+jqqLo9pj07HjlR0T+e8c+Rt2 WT6q1Q5vhe87hQOdQB9BUgbcB1kfcUFQRmVeRraHLBJ9GN9v/nn/LrT3sPwYua3SNjdj MjkAQou6j8Iy2l6CWfUZk5Bn15fRhExB4MEYE8wmMZg+kw7t2G6z6pA/slr85zGS6oCW aEZ+w47jRK15FY+2p+3hHXfsSiXl+QMgZM53OvvrdDtp8r+ItYQkidIhlT5n2vYVZDJD DIsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694492437; x=1695097237; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Xgx8OuqYYeImAQiYZaDNrXYXqp4HFIi8OG5rcFbRA3I=; b=OxknBUhJT9qmjMrqLlLQYNfmE4sLjgH3cMAR8QtSFQbv+R9/hCEULO5u0+KwcYDbFR y+d7k9KPuYz9nTduWnz409+GzmP7KboXmHN/U+y08Qixr0vbYmtXWLkdp+i7c6N5uxwB 3lB7MQfYEksDIJN5mzv3CQziZ/N8Nk4HPLcGWqBwfFLBTFXthFnEKArMq4CDqQ+gmXVZ Y9I5hJrFEgMctglCAGDL51f0SNQKWZWsmikfbVpDupQogSlAODxoOosVX+pa1fpWHloj LeFilXTE2nbZ7byMDvXJTzZkEfCDkr3JtYe5AdYEIoyY61e1eaTfaQQ/8qC1ZmJyPaoR pzRQ== X-Gm-Message-State: AOJu0Yx2GUPgUZ1utgP4baO1plg5WEnZ/epEBoFnADonBYl++w1A5kWw UUqHhafeMvc2eaRWMkFf0ZYWdubRRAlvA6tPGSAVsCsbTHs= X-Google-Smtp-Source: AGHT+IENRIu45XzTd81U+eKnliZQfvIrmMv7xGKapTPWUoIO3PKouvDfghnHE/qlmhwb0U3HXOR6yIH1L3jCoqhPNII= X-Received: by 2002:a2e:9b0a:0:b0:2bc:d567:bdbd with SMTP id u10-20020a2e9b0a000000b002bcd567bdbdmr9695293lji.15.1694492436657; Mon, 11 Sep 2023 21:20:36 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=peter.mao@gmail.com; helo=mail-lj1-x22b.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, HTML_MESSAGE=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:270134 Archived-At: --000000000000c2fb33060521c36a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I just learned about prettify-symbols mode and prettify-symbols-unprettify-at-point from Tony Zorman's recent blog post, so I tried it out, unsuccessfully at first... Recipe from emacs -Q: In the *scratch* buffer: M-x prettify-symbols-mode (setq prettify-symbols-unprettify-at-point t) C-x C-e ;; to evaluate the setq lambda ;; the symbol =CE=BB appears C-b At this point, I'm expecting the symbol =CE=BB to deprettify back to "lambda", but it does not. Looking in the code in prog-mode.el, I see that the unprettification needs to be set **before** the minor mode is activated in the buffer. Perhaps this should be pointed out in the documentation? --000000000000c2fb33060521c36a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just learned about prettify-symbols mode and pretti= fy-symbols-unprettify-at-point from Tony Zorman's recent blog post, so = I tried it out, unsuccessfully at first...

Rec= ipe from emacs -Q:

In the *scratch* buffer:
M-x prettify-symbol= s-mode
(setq prettify-symbols-unprettify-at-point t)
C-x C-e ;; to ev= aluate the setq
lambda =C2=A0;; the symbol =CE=BB appears
C-b

= At this point, I'm expecting the symbol =CE=BB to deprettify back to"lambda", but it does not.

Looking in the code in prog-mo= de.el, I see that the unprettification
needs to be set **before** the mi= nor mode is activated in the buffer.
Perhaps this should be pointed= out in the documentation?


--000000000000c2fb33060521c36a--