From: Joe Wells <jbw@macs.hw.ac.uk>
To: Markus Triska <markus.triska@gmx.at>
Cc: emacs-devel@gnu.org
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 [thread overview]
Message-ID: <86myu3yt4f.fsf_-_@macs.hw.ac.uk> (raw)
In-Reply-To: <m1bqajgpc8.fsf_-_@gmx.at> (Markus Triska's message of "Sun\, 28 Oct 2007 17\:45\:43 +0100")
Markus Triska <markus.triska@gmx.at> 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 Ω²₃, except that the
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 Ω²₃ 123}
but not as
XYZ Ω²₃ 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. :-)
--
Joe
next prev parent reply other threads:[~2007-10-28 18:46 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-09 10:04 something like linum.el ought to be added Joe Wells
2007-09-09 10:43 ` Leo
2007-09-10 16:53 ` Richard Stallman
2007-09-10 17:34 ` Markus Triska
2007-09-10 20:00 ` David Kastrup
2007-09-11 18:15 ` Markus Triska
2007-09-11 20:27 ` Davis Herring
2007-09-11 21:24 ` Markus Triska
2007-09-12 8:47 ` Richard Stallman
2007-09-12 9:14 ` Joe Wells
2007-09-12 9:21 ` David Kastrup
2007-09-12 18:52 ` Richard Stallman
2007-09-13 17:06 ` Markus Triska
2007-09-14 13:59 ` Stefan Monnier
2007-09-14 16:15 ` Joe Wells
2007-09-14 17:20 ` Stefan Monnier
[not found] ` <m1bqajgpc8.fsf_-_@gmx.at>
2007-10-28 18:46 ` Joe Wells [this message]
2007-09-15 2:09 ` Richard Stallman
2007-09-14 15:04 ` brianjiang
2007-09-14 15:56 ` Markus Triska
2007-09-15 14:46 ` Juanma Barranquero
2007-09-15 16:12 ` Markus Triska
2007-09-15 16:54 ` Juanma Barranquero
2007-09-11 20:30 ` Richard Stallman
2007-09-11 20:31 ` Richard Stallman
2007-09-11 23:48 ` Markus Triska
2007-09-12 9:19 ` martin rudalics
2007-09-12 11:17 ` Markus Triska
2007-09-12 12:09 ` martin rudalics
2007-09-12 12:55 ` Markus Triska
2007-09-15 14:24 ` Juanma Barranquero
2007-09-15 16:01 ` Markus Triska
2007-09-15 16:14 ` Juanma Barranquero
2007-09-16 5:34 ` Richard Stallman
2007-09-16 15:57 ` Markus Triska
2007-09-17 3:58 ` Richard Stallman
2007-09-16 23:04 ` Stefan Monnier
2007-09-17 3:58 ` Richard Stallman
2007-09-17 5:12 ` brianjiang
2007-09-17 13:49 ` Stefan Monnier
2007-09-17 13:17 ` Stefan Monnier
2007-09-17 22:24 ` Richard Stallman
2007-09-18 0:49 ` Stefan Monnier
2007-09-18 3:30 ` Richard Stallman
2007-09-18 14:31 ` Stefan Monnier
2007-09-11 7:08 ` martin rudalics
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86myu3yt4f.fsf_-_@macs.hw.ac.uk \
--to=jbw@macs.hw.ac.uk \
--cc=emacs-devel@gnu.org \
--cc=markus.triska@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).