all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: herring@lanl.gov
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Path to make desktop.el remember hi-lock-interactive-patterns
Date: Tue, 12 May 2009 22:25:26 +0200	[thread overview]
Message-ID: <e01d8a50905121325s531ad41and9cf9b7e67dbebcd@mail.gmail.com> (raw)
In-Reply-To: <59779.130.55.118.19.1242139954.squirrel@webmail.lanl.gov>

On Tue, May 12, 2009 at 4:52 PM, Davis Herring <herring@lanl.gov> wrote:
>> +        ;; Hi-lock
>> +        (when (and (boundp 'hi-lock-interactive-patterns)
>> +                   hi-lock-interactive-patterns
>> +                   hi-lock-mode)
>> +          (font-lock-add-keywords nil hi-lock-interactive-patterns t)
>> +          (font-lock-fontify-buffer))))))
>
> It would be cleaner to invoke some function in hi-lock.el rather than
> going straight into font-lock.

Yes, absolutely. This was more of a reminder of what need to be done.

> Moreover, hi-lock-mode already has a
> persistence mechanism; why does desktop need to additionally provide one
> that lasts only as long as you don't kill the buffer?

Doesn't they serve very different situations? I could for example save
a desktop file for a special problem I am working on. When that is
solved I might delete that desktop file (or at least never use it any
more...)




      reply	other threads:[~2009-05-12 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12 14:07 Path to make desktop.el remember hi-lock-interactive-patterns Lennart Borgman
2009-05-12 14:52 ` Davis Herring
2009-05-12 20:25   ` Lennart Borgman [this message]

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=e01d8a50905121325s531ad41and9cf9b7e67dbebcd@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=herring@lanl.gov \
    /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.