[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 4425527 04/27: hes-simple-mode setter: Fix initialization;
From: |
Dmitry Gutov |
Subject: |
[elpa] master 4425527 04/27: hes-simple-mode setter: Fix initialization; turn on when needed |
Date: |
Sat, 29 Oct 2016 00:04:18 +0000 (UTC) |
branch: master
commit 4425527bf722826130a973c8bdeba3d39c1b472f
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
hes-simple-mode setter: Fix initialization; turn on when needed
---
highlight-escape-sequences.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/highlight-escape-sequences.el b/highlight-escape-sequences.el
index 6900029..731dfd9 100644
--- a/highlight-escape-sequences.el
+++ b/highlight-escape-sequences.el
@@ -68,9 +68,12 @@ backslash followed by anything else.")
"Modes where escape sequences can appear in any string literal."
:type '(repeat function)
:set (lambda (symbol value)
- (hes-mode -1)
- (set-default symbol value)
- (hes-mode 1)))
+ (if (bound-and-true-p hes-mode)
+ (progn
+ (hes-mode -1)
+ (set-default symbol value)
+ (hes-mode 1))
+ (set-default symbol value))))
;;;###autoload
(define-minor-mode hes-mode
- [elpa] master updated (2a0dbe5 -> 0e74c8c), Dmitry Gutov, 2016/10/28
- [elpa] master 7777860 03/27: Autoload the mode function, Dmitry Gutov, 2016/10/28
- [elpa] master 74340d0 02/27: hes-ruby-keywords, fallback predicate: Allow in backquoted literals, Dmitry Gutov, 2016/10/28
- [elpa] master 4425527 04/27: hes-simple-mode setter: Fix initialization; turn on when needed,
Dmitry Gutov <=
- [elpa] master f7a0074 06/27: Wrong words on the screenshot, Dmitry Gutov, 2016/10/28
- [elpa] master 0df3e63 12/27: Remove explicit group, Dmitry Gutov, 2016/10/28
- [elpa] master 6bc14c4 16/27: Beautify hes-ruby-escape-sequence-keywords, Dmitry Gutov, 2016/10/28
- [elpa] master 828cdbb 08/27: Improve regexp and add two faces, Dmitry Gutov, 2016/10/28
- [elpa] master fc8f4e7 01/27: Initial commit, Dmitry Gutov, 2016/10/28
- [elpa] master 8098664 05/27: Add readme and screenshot, Dmitry Gutov, 2016/10/28
- [elpa] master 5d45ca5 13/27: Fix the Author: header, Dmitry Gutov, 2016/10/28
- [elpa] master a031ee2 20/27: Add Emacs Lisp and Clojure (same as Java), Dmitry Gutov, 2016/10/28
- [elpa] master 083954e 19/27: Restore compatibility with earlier Emacsen, Dmitry Gutov, 2016/10/28
- [elpa] master 20d3190 22/27: Update copyright, Dmitry Gutov, 2016/10/28