all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Alfred M. Szmidt" <ams@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: prettify symbols question
Date: Thu, 12 Nov 2020 10:17:05 -0500	[thread overview]
Message-ID: <E1kdELR-0006Eo-TO@fencepost.gnu.org> (raw)
In-Reply-To: <834kluzkma.fsf@gnu.org> (message from Eli Zaretskii on Thu, 12 Nov 2020 16:59:41 +0200)

   > What would the proper way to handle say #o210 in prettify-symbols?
   > 
   > I've attached a simple test, I would expect to see the #o210 sequence
   > in the file to be shown as a unicode lambda, but nothing changes -- I
   > suspect it is due to some encoding mismatch between the buffer and the
   > string.

   prettify-symbols-mode doesn't act on text in comments, see
   'prettify-symbols-default-compose-p'.  If you move your #o210 out of
   the comment, it should get displayed as you expect.

Ah, that explains some.

   You can replace 'prettify-symbols-default-compose-p' with your own
   function, and set up 'prettify-symbols-compose-predicate' to use it
   instead of the default predicate, if you want to prettify stuff in
   comments.

Thank you for the tip, that will be useful (I need this to act on all
sequences even in symbols).

   If the above doesn't work, then maybe it _is_ related to encoding.
   What does the mode line say about 'buffer-file-coding-system when' you
   visit this file?

So when the buffer-file-coding-system is utf-8-unix everything works
(where also the sequence is not acted on in comments).  But when the
buffer is raw-text-unix, it does not work for #o210, but works for say
#o10.  Some multi-byte thing going on?



  reply	other threads:[~2020-11-12 15:17 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 17:01 prettify symbols question Alfred M. Szmidt
2020-11-12 14:59 ` Eli Zaretskii
2020-11-12 15:17   ` Alfred M. Szmidt [this message]
2020-11-12 15:38     ` Eli Zaretskii
2020-11-12 16:14       ` Eli Zaretskii
2020-11-12 20:53         ` Alfred M. Szmidt
2020-11-12 21:12           ` Basil L. Contovounesios
2020-11-12 21:25             ` Drew Adams
2020-11-13  7:44             ` Eli Zaretskii
2020-11-13  7:24           ` Eli Zaretskii
2020-11-13 10:15             ` Alfred M. Szmidt
2020-11-13 11:17             ` Alfred M. Szmidt
2020-11-13 12:22               ` Eli Zaretskii
2020-11-13 13:31                 ` Alfred M. Szmidt
2020-11-13 13:47                   ` Eli Zaretskii
2020-11-13 14:47                     ` new coding system (was: Re: prettify symbols question) Alfred M. Szmidt
2020-11-13 14:59                       ` Eli Zaretskii
2020-11-13 17:11                         ` Alfred M. Szmidt
2020-11-14 14:24                           ` Eli Zaretskii
2020-11-14 15:29                             ` Alfred M. Szmidt
2020-11-14 16:19                               ` Eli Zaretskii
2020-11-23 20:40                                 ` Alfred M. Szmidt
2020-11-23 20:49                                   ` Eli Zaretskii
2020-11-28 17:27                                     ` Alfred M. Szmidt
2020-11-13 17:11                         ` Alfred M. Szmidt
2020-11-13 17:32                       ` new coding system Andreas Schwab
2020-11-13 17:36                         ` Alfred M. Szmidt
2020-11-13  8:27       ` prettify symbols question Alfred M. Szmidt
2020-11-13  8:40         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1kdELR-0006Eo-TO@fencepost.gnu.org \
    --to=ams@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.