From: Ralf Angeli <angeli@iwi.uni-sb.de>
Subject: Re: Stealth fontification GCs a lot
Date: Tue, 12 Apr 2005 10:29:10 +0200 [thread overview]
Message-ID: <d3g0mv$41m$1@sea.gmane.org> (raw)
In-Reply-To: E1DLBcP-0000pz-UH@fencepost.gnu.org
* Richard Stallman (2005-04-12) writes:
> I will try turning it off. But I wonder if just making it wait
> longer would make it a desirable feature. What do you think?
Turning of stealth font locking will result in some drawbacks for the
folding feature of AUCTeX. Folding in this context means that certain
LaTeX constructs or just their markup is hidden. Instead a
placeholder or the content of the construct is shown. The original
content is revealed and available for editing, as soon as point is
moved into the folded area.
For example the text
This is some \emph{important} text.\footnote{Confer other examples.}
will be shown as
This is some /important/ text.[f]
(where /.../ means that the enclosing text is displayed in italics).
A standard usage pattern is to open a LaTeX file and perform folding
for the whole buffer.
Now how is this related to stealth font locking? In order for the
"important" string in the example above to be displayed in italics,
the original string inside the \emph construct has to be fontified
already because folding will pick up the original string with all its
text properties and place it into an overlay. We currently don't have
a mechanism similar to jit-lock, so folding a whole buffer is in fact
done immediately. In order to get a correct fontification of the
generated overlays we currently advise users to wait a few seconds
after opening a LaTeX file before doing this operation in order to let
stealth font locking fontify the whole buffer.
For me personally this workaround is working quite well. But if
stealth font looking was disabled we'd have to find a different way of
achieving this. It is planned to hook somehow into jit-lock for this,
but I haven't found a good and reliable way for it yet. Another
possibility would be to re-enable stealth font locking for buffers
under AUCTeX's control (in case folding mode is activated).
--
Ralf
next prev parent reply other threads:[~2005-04-12 8:29 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-11 1:57 Stealth fontification GCs a lot Richard Stallman
2005-04-11 3:40 ` Stefan Monnier
2005-04-11 22:22 ` Eli Zaretskii
2005-04-12 17:25 ` Richard Stallman
2005-04-12 18:55 ` Eli Zaretskii
2005-04-12 19:52 ` Stefan Monnier
2005-04-13 17:29 ` Eli Zaretskii
2005-04-13 17:56 ` Stefan Monnier
2005-04-13 23:41 ` Miles Bader
2005-04-14 16:21 ` Richard Stallman
2005-04-13 18:30 ` Richard Stallman
2005-04-13 21:24 ` Aidan Kehoe
2005-04-13 22:25 ` Stefan Monnier
2005-04-14 3:59 ` Eli Zaretskii
2005-04-14 19:03 ` Richard Stallman
2005-04-15 8:34 ` Eli Zaretskii
2005-04-13 18:31 ` Richard Stallman
2005-04-14 3:57 ` Eli Zaretskii
2005-04-14 19:03 ` Richard Stallman
2005-04-23 12:49 ` Eli Zaretskii
2005-04-12 2:59 ` Richard Stallman
2005-04-12 8:29 ` Ralf Angeli [this message]
2005-04-13 5:02 ` Richard Stallman
2005-04-13 11:37 ` Ralf Angeli
2005-04-14 16:20 ` Richard Stallman
2005-04-14 16:53 ` Ralf Angeli
[not found] <E1DLrVe-00055D-2l@monty-python.gnu.org>
2005-04-14 4:17 ` Jonathan Yavner
2005-04-14 6:20 ` Miles Bader
2005-04-14 9:39 ` David Kastrup
2005-04-14 11:25 ` Ralf Angeli
2005-04-15 2:44 ` Richard Stallman
2005-04-15 6:47 ` Ralf Angeli
2005-04-16 2:57 ` Richard Stallman
2005-04-15 8:27 ` Eli Zaretskii
2005-04-15 9:12 ` Ralf Angeli
2005-04-14 19:04 ` Richard Stallman
2005-04-15 8:50 ` Eli Zaretskii
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='d3g0mv$41m$1@sea.gmane.org' \
--to=angeli@iwi.uni-sb.de \
/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).