From: Lennart Borgman <lennart.borgman@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Path to make desktop.el remember hi-lock-interactive-patterns
Date: Tue, 12 May 2009 16:07:09 +0200 [thread overview]
Message-ID: <e01d8a50905120707n3eb71ee2g60d1733c6fe9cdd8@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
Attached.
[-- Attachment #2: desktop.hi-lock.diff --]
[-- Type: application/octet-stream, Size: 1413 bytes --]
Index: desktop.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/desktop.el,v
retrieving revision 1.133
diff -u -r1.133 desktop.el
--- desktop.el 22 Mar 2009 20:09:34 -0000 1.133
+++ desktop.el 12 May 2009 14:02:53 -0000
@@ -325,7 +325,8 @@
tab-width
indicate-buffer-boundaries
indicate-empty-lines
- show-trailing-whitespace)
+ show-trailing-whitespace
+ hi-lock-interactive-patterns)
"List of local variables to save for each buffer.
The variables are saved only when they really are local. Conventional minor
modes are restored automatically; they should not be listed here."
@@ -1200,7 +1201,13 @@
;; an entry of the form `symbol'
(make-local-variable this)
(makunbound this)))
- (setq desktop-buffer-locals (cdr desktop-buffer-locals)))))))
+ (setq desktop-buffer-locals (cdr desktop-buffer-locals)))
+ ;; 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))))))
;; ----------------------------------------------------------------------------
;; Backward compatibility -- update parameters to 205 standards.
next reply other threads:[~2009-05-12 14:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 14:07 Lennart Borgman [this message]
2009-05-12 14:52 ` Path to make desktop.el remember hi-lock-interactive-patterns Davis Herring
2009-05-12 20:25 ` Lennart Borgman
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=e01d8a50905120707n3eb71ee2g60d1733c6fe9cdd8@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@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 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.