From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.devel Subject: motivation for recent bug reports on overlays and properties like before-string, display, after-string, and face (was: linum.el and display properties) Date: Sun, 28 Oct 2007 18:46:40 +0000 Message-ID: <86myu3yt4f.fsf_-_@macs.hw.ac.uk> References: <86hcm4rw70.fsf@macs.hw.ac.uk> <85642imgtp.fsf@lola.goethe.zz> <86k5qtjka0.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1193597214 18956 80.91.229.12 (28 Oct 2007 18:46:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 18:46:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 19:46:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImDA0-0006rK-G6 for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 19:46:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImD9r-00077A-IZ for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2007 14:46:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImD9o-000771-SM for emacs-devel@gnu.org; Sun, 28 Oct 2007 14:46:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImD9m-00076h-V9 for emacs-devel@gnu.org; Sun, 28 Oct 2007 14:46:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImD9m-00076e-Rp for emacs-devel@gnu.org; Sun, 28 Oct 2007 14:46:42 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ImD9m-00086O-EO for emacs-devel@gnu.org; Sun, 28 Oct 2007 14:46:42 -0400 Original-Received: from selene.macs.hw.ac.uk ([137.195.27.40]:34774 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1ImD9k-0007Go-Mn; Sun, 28 Oct 2007 18:46:40 +0000 Original-Received: (nullmailer pid 2262 invoked by uid 1001); Sun, 28 Oct 2007 18:46:40 -0000 In-Reply-To: (Markus Triska's message of "Sun\, 28 Oct 2007 17\:45\:43 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81983 Archived-At: Markus Triska writes: > Hi Joe, > > I've been (loosely) following your recent bug-reports on > Emacs-devel; I hope you don't mind that I CC emacs-devel for my reply. I think it might help people to understand better why I've been trying to use this stuff. > is it correct that fixing these problems will also help linum.el? Possibly. I suspect linum.el is probably affected by the problem where an overlay's before-string is affected by the face of the character in the buffer after the overlay start (which isn't even inside the overlay in the case of a zero-length overlay like linum.el uses). > Also, what exactly is it that you want to do with LaTeX and folding? I've been making the code in tex-fold.el work better with the code in preview.el (latex-preview). (Both of these are part of AUCTeX.) The code in tex-fold allows viewing something like \textbf{XYZ \textit{ABC} 123} as: XYZ ABC 123 This picks up anything that font-latex.el has already done, so the appropriate fonts will be used. In this case, that means the XYZ and 123 will be in bold font, and the ABC will be in bold italic font. The code in preview.el allows viewing something like $\Omega^2_3$ as an image in the buffer, so you can see what the TeX typesetting will look like. It looks roughly like =CE=A9=C2=B2=E2=82=83, except that t= he superscript will be directly above the subscript, and it will use the TeX fonts. However, without any of the changes I have been making, these don't work together, so you can get \textbf{XYZ $\Omega^2_3$ 123} to display as either XYZ $\Omega^2_3$ 123 (where the XYZ and 123 are in bold font) or as \textbf{XYZ =CE=A9=C2=B2=E2=82=83 123} but not as XYZ =CE=A9=C2=B2=E2=82=83 123 which is the most desired version. If you want to see for yourself, I posted a version of my changes to the auctex-devel mailing list. (I've continued to work on making them better since then.) > Thank you for pursuing these issues! Sure. I'm just trying to use the text and overlay properties as they are documented. :-) --=20 Joe