From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Stealth fontification GCs a lot Date: Tue, 12 Apr 2005 10:29:10 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113295845 8341 80.91.229.2 (12 Apr 2005 08:50:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2005 08:50:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 12 10:50:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DLH3x-0002o8-Qp for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2005 10:48:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLGeE-000308-MZ for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2005 04:21:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DLGT6-0007rt-NS for emacs-devel@gnu.org; Tue, 12 Apr 2005 04:09:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DLGT4-0007qw-ND for emacs-devel@gnu.org; Tue, 12 Apr 2005 04:09:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLGJy-0007A2-Vc for emacs-devel@gnu.org; Tue, 12 Apr 2005 04:00:31 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DLGmi-0006wg-Uj for emacs-devel@gnu.org; Tue, 12 Apr 2005 04:30:13 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DLGj5-00083P-MG for emacs-devel@gnu.org; Tue, 12 Apr 2005 10:26:27 +0200 Original-Received: from iwi190.iwi.uni-sb.de ([134.96.72.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2005 10:26:27 +0200 Original-Received: from angeli by iwi190.iwi.uni-sb.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2005 10:26:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iwi190.iwi.uni-sb.de User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ZuYQrKgi6jwiHOdK8g/wD7yVcpA= 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:35894 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35894 * 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