From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: port x-symbol to GNU emacs 24. Date: Tue, 18 Aug 2015 10:38:22 +0200 Message-ID: <87d1yl2dq9.fsf@gnu.org> References: <87oaia6ict.fsf@mat.ucm.es> <837foxor1t.fsf@gnu.org> <878u9d7vdg.fsf@mat.ucm.es> <87pp2pq2ht.fsf@gnu.org> <87wpwx68cn.fsf@mat.ucm.es> <87mvxqxtif.fsf@gnu.org> <838u9alzly.fsf@gnu.org> <874mjyaqm8.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1439887158 13838 80.91.229.3 (18 Aug 2015 08:39:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 08:39:18 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 18 10:39:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRcQE-0007p4-LO for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2015 10:39:06 +0200 Original-Received: from localhost ([::1]:53136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRcQD-0002YI-Ld for ged-emacs-devel@m.gmane.org; Tue, 18 Aug 2015 04:39:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRcPh-0002V1-Ek for emacs-devel@gnu.org; Tue, 18 Aug 2015 04:38:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRcPg-0006iF-I2 for emacs-devel@gnu.org; Tue, 18 Aug 2015 04:38:33 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:41533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRcPX-0006gU-U6; Tue, 18 Aug 2015 04:38:24 -0400 Original-Received: from thinkpad-t440p (dhcp163.uni-koblenz.de [141.26.71.163]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 23A791A83B8; Tue, 18 Aug 2015 10:38:23 +0200 (CEST) Mail-Followup-To: David Kastrup , Eli Zaretskii , emacs-devel@gnu.org In-Reply-To: <874mjyaqm8.fsf@fencepost.gnu.org> (David Kastrup's message of "Mon, 17 Aug 2015 17:20:31 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188863 Archived-At: David Kastrup writes: >>> > > Well, I guess you could use Emacs' built-in >>> > > `prettify-symbols-mode' in order to display TeX macros using some >>> > > unicode characters (or preview-latex of course). >>> > I just switched `prettify-symbols-mode' on in a latex buffer but >>> > nothing happens to \int or \alpha >>>=20 >>> You have to define the symbols in `prettify-symbols-alist' >> >> Indeed, and I think it should be a good idea to populate that alist >> with some non-trivial content to begin with. Any takers? > > Siphon off what can be taken from the TeX input method of Quail? That > should provide a healthy dose of Unicode/TeX relations in > Emacs-readable form. I just started to define a `prettify-symbols-alist--TeX' by checking what Quail provides. However, there is a problem in that (la)tex-mode and their AUCTeX counterparts don't give \ symbol syntax. Therefore, an entry like ("\\alpha" . ?=CE=B1) will never match. And omitting the backslash isn't possible because then we'd have many false positives for entries like ("in" . ?=E2=88=88). Any ideas how to cope with that situation? Simply giving \ symbol syntax will break at least AUCTeX (and isn't correct anyhow). Bye, Tassilo