From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: prettify symbols question Date: Wed, 11 Nov 2020 12:01:37 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34890"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 11 18:06:21 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 1kctZc-0008yd-5Y for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Nov 2020 18:06:20 +0100 Original-Received: from localhost ([::1]:43896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kctZb-0005Do-49 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Nov 2020 12:06:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kctV4-0000Xb-81 for emacs-devel@gnu.org; Wed, 11 Nov 2020 12:01:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60885) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kctV3-0006iT-MZ for emacs-devel@gnu.org; Wed, 11 Nov 2020 12:01:37 -0500 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kctV3-0004Us-3R for emacs-devel@gnu.org; Wed, 11 Nov 2020 12:01:37 -0500 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:259027 Archived-At: --=-=-= Content-Type: text/plain Not sure if this is better for help-gnu-emacs or here. 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. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=prettify-test.el Content-Transfer-Encoding: quoted-printable (setq test-prettify-symbols-alist (flet ((x (ch unicode-name) (cons (string ch) (char-from-name unicode= -name)))) (list (x #o210 "GREEK SMALL LETTER LAMBDA")))) (setq-local prettify-symbols-alist test-prettify-symbols-alist) (prettify-symbols-mode 1) ;; =88 lambda --=-=-=--