From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Oleh Krehel <ohwoeowho@gmail.com>
Subject: Re: [elpa] master 2ae5b9c 3/7: swiper.el (swiper-font-lock-ensure): Ignore gnus modes
Date: Thu, 26 Mar 2015 09:43:36 -0400 [thread overview]
Message-ID: <jwv4mp7511u.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1Yb5za-0007KV-Oa@vcs.savannah.gnu.org> (Oleh Krehel's message of "Thu, 26 Mar 2015 11:30:30 +0000")
> "Ensure the entired buffer is highlighted."
> (unless (or (derived-mode-p 'magit-mode)
> (memq major-mode '(package-menu-mode
> + gnus-summary-mode
> + gnus-article-mode
> + gnus-group-mode
> emms-playlist-mode erc-mode)))
> (if (fboundp 'font-lock-ensure)
> (font-lock-ensure)
I think you'll want to list many more modes here. Or rather, I think
what you really want to test is whether font-lock is in use on
this buffer.
There are various ways to test it, such as testing the value of
font-lock-fontified or font-lock-mode, or calling font-lock-specified-p,
and there might be others.
Stefan
next parent reply other threads:[~2015-03-26 13:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150326113028.28088.99965@vcs.savannah.gnu.org>
[not found] ` <E1Yb5za-0007KV-Oa@vcs.savannah.gnu.org>
2015-03-26 13:43 ` Stefan Monnier [this message]
2015-03-26 13:52 ` [elpa] master 2ae5b9c 3/7: swiper.el (swiper-font-lock-ensure): Ignore gnus modes Oleh Krehel
2015-03-26 15:24 ` Tassilo Horn
2015-03-26 17:59 ` Stefan Monnier
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=jwv4mp7511u.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=ohwoeowho@gmail.com \
/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).