Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
137f57c8
Commit
137f57c8
authored
Dec 20, 2013
by
E Sabof
Committed by
Juri Linkov
Dec 20, 2013
Browse files
* lisp/hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'.
Fixes: debbugs:14179
parent
3fbba716
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/hi-lock.el
lisp/hi-lock.el
+1
-1
No files found.
lisp/ChangeLog
View file @
137f57c8
2013-12-20 E Sabof <esabof@gmail.com> (tiny change)
* hi-lock.el (hi-lock-set-pattern): Check for `font-lock-specified-p'.
(Bug#14179)
2013-12-20 Stephen Berman <stephen.berman@gmx.net>
* calendar/todo-mode.el: New implementation of item insertion
...
...
lisp/hi-lock.el
View file @
137f57c8
...
...
@@ -719,7 +719,7 @@ Otherwise, read face name from minibuffer with completion and history."
;; Refuse to highlight a text that is already highlighted.
(
unless
(
assoc
regexp
hi-lock-interactive-patterns
)
(
push
pattern
hi-lock-interactive-patterns
)
(
if
font-lock-mode
(
if
(
and
font-lock-mode
(
font-lock-specified-p
major-mode
))
(
progn
(
font-lock-add-keywords
nil
(
list
pattern
)
t
)
(
font-lock-fontify-buffer
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment