From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: prettify symbols question Date: Thu, 12 Nov 2020 16:59:41 +0200 Message-ID: <834kluzkma.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Alfred M. Szmidt" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 12 16:00:43 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kdE5a-0008Gc-Rd for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Nov 2020 16:00:42 +0100 Original-Received: from localhost ([::1]:49140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdE5Z-000429-Qg for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Nov 2020 10:00:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdE4T-0003T6-0A for emacs-devel@gnu.org; Thu, 12 Nov 2020 09:59:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53581) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdE4S-0001mg-O0 for emacs-devel@gnu.org; Thu, 12 Nov 2020 09:59:32 -0500 Original-Received: from [176.228.60.248] (port=4939 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kdE4N-0004ZD-AM; Thu, 12 Nov 2020 09:59:27 -0500 In-Reply-To: (ams@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259084 Archived-At: > From: "Alfred M. Szmidt" > Date: Wed, 11 Nov 2020 12:01:37 -0500 > > 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. 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. 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?