From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Tassilo Horn <tsdh@gnu.org>
Subject: Re: [Emacs-diffs] master 188f657: Fix false negatives in tex--prettify-symbols-compose-p.
Date: Sat, 26 Sep 2015 00:54:49 -0400 [thread overview]
Message-ID: <jwvzj09hjn1.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZfaB6-0004p6-FL@vcs.savannah.gnu.org> (Tassilo Horn's message of "Fri, 25 Sep 2015 21:05:12 +0000")
> - ;; Don't compose inside verbatim blocks!
> - (nth 8 (syntax-ppss))
[...]
> + ;; Don't compose inside verbatim blocks.
> + (let* ((face (get-text-property end 'face))
> + (faces (if (consp face) face (list face))))
> + (or (memq 'tex-verbatim faces)
> + (memq 'font-latex-verbatim-face faces)))))))
Rather than check the `face' property, I think it'd be more robust to
use the (syntax-ppss) data. Since tex-env-mark uses "< c" for the
syntax of \begin{verbatim}, A test like
(eq 2 (nth 7 (syntax-ppss)))
should do the trick.
Stefan "at least for the non-font-latex case"
next parent reply other threads:[~2015-09-26 4:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150925210512.18505.12538@vcs.savannah.gnu.org>
[not found] ` <E1ZfaB6-0004p6-FL@vcs.savannah.gnu.org>
2015-09-26 4:54 ` Stefan Monnier [this message]
2015-09-26 5:36 ` [Emacs-diffs] master 188f657: Fix false negatives in tex--prettify-symbols-compose-p Tassilo Horn
2015-09-26 5:46 ` Tassilo Horn
2015-09-29 11:29 ` Artur Malabarba
2015-09-29 12:31 ` Tassilo Horn
2015-09-29 13:14 ` Artur Malabarba
2015-09-30 6:46 ` Tassilo Horn
2015-09-30 7:48 ` Artur Malabarba
[not found] ` <B393F5AD12955C48A84FFB08032CD04F6C218AED@ECS-EXG-P-MB01.win.lanl.gov>
2015-09-30 7:51 ` Artur Malabarba
2015-09-30 8:59 ` Tassilo Horn
2015-09-30 10:08 ` Artur Malabarba
2015-09-30 10:45 ` Tassilo Horn
2015-09-30 11:12 ` Artur Malabarba
2015-09-30 11:29 ` Tassilo Horn
2015-10-01 1:17 ` Artur Malabarba
2015-10-01 11:43 ` Tassilo Horn
2015-10-01 1:19 ` Artur Malabarba
2015-10-01 11:45 ` Tassilo Horn
2015-09-29 19:46 ` Tassilo Horn
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=jwvzj09hjn1.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tsdh@gnu.org \
/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).