all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fei <fei.yuanbw@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13718@debbugs.gnu.org
Subject: bug#13718: [patch] prevents hl-line from overriding highlight-mode
Date: Sat, 16 Feb 2013 13:43:32 -0500	[thread overview]
Message-ID: <CAG8JBjAdcOc31CVO3xNZ965UOfoxP6CxwB56KRZ_m0GWySNyuw@mail.gmail.com> (raw)
In-Reply-To: <CAG8JBjD=AGoyxSrqMP=FLGc7YA7FPxFMCVYUz7e5PN7WiSYO1A@mail.gmail.com>

Okay I realize this is very hackish solution, but I went ahead and
replaced every instance of font-lock-fontified with nil so that Emacs
will just use overlays for highlights at all times, which "fixed" the
problem that I have.

But a more general solution would be one of the following:

- Force highlight-regexp (and similar ones) to use overlays at all
times: I don't know why it uses two different methods to do the same
thing, but I suspect it may be for the sake of efficiency perhaps?  Or
to prevent highlights from trampling over the syntax highlighting?
Perhaps this could be made into a customizable option?

- Use font-lock for hl-line: maybe this is isn't possible because
font-lock doesn't provide the functionality to do so?

Or maybe there's a better solution out there -- I don't know.

Thanks,
Fei





  reply	other threads:[~2013-02-16 18:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-15  4:28 bug#13718: [patch] prevents hl-line from overriding highlight-mode Fei
2013-02-15 15:26 ` Drew Adams
2013-02-15 15:51 ` Stefan Monnier
2013-02-15 16:15   ` Fei
2013-02-15 17:30     ` Stefan Monnier
2013-02-15 17:49       ` Fei
2013-02-16 18:43         ` Fei [this message]
2013-02-16 18:56           ` Drew Adams
2013-02-15 17:45   ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG8JBjAdcOc31CVO3xNZ965UOfoxP6CxwB56KRZ_m0GWySNyuw@mail.gmail.com \
    --to=fei.yuanbw@gmail.com \
    --cc=13718@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.