aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2020-04-11 07:50:12 -0700
committerGlenn Morris2020-04-11 07:50:12 -0700
commit1988ffbaed709dfc71126efbf06644476830f07e (patch)
treefdc98855a3ab7bf6d6cb4c8826ec4a9dfc603d33 /lisp
parentb902d7c9d07b2cc951fa5c789d585d65366d19d2 (diff)
parentfd27685c1e68e742abf1698573dac53743f15e48 (diff)
downloademacs-1988ffbaed709dfc71126efbf06644476830f07e.tar.gz
emacs-1988ffbaed709dfc71126efbf06644476830f07e.zip
Merge from origin/emacs-27
fd27685c1e (origin/emacs-27) ; * doc/lispref/keymaps.texi (Extended M... 6057d79a4e * doc/lispref/keymaps.texi (Extended Menu Items): Tweak :k... 17a1bb5a03 Fix redisplay when scrolling under redisplay-dont-pause 90321f595c Fix face extension in pulse.el 36c42d2a30 * doc/misc/tramp.texi (Bug Reports): Avoid line breaks in ... d5750af151 Avoid assertion violation in intervals.c 18d1bc0a09 Improve documentation of 'jit-lock-contextually' 08486f4cae Speed up 'resize-mode' child frames a little f451ef9308 ; * etc/NEWS: Mention 'executing-macro' in removed vars. c49d379f17 Fix some problems with moving and resizing child frames # Conflicts: # etc/NEWS
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cedet/pulse.el3
-rw-r--r--lisp/jit-lock.el22
2 files changed, 17 insertions, 8 deletions
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 16243e16b45..8649254aedd 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -161,6 +161,9 @@ Return t if there is more drift to do, nil if completed."
161 (face-background face nil t) 161 (face-background face nil t)
162 (face-background 'pulse-highlight-start-face) 162 (face-background 'pulse-highlight-start-face)
163 )) 163 ))
164 (and face
165 (set-face-extend 'pulse-highlight-face
166 (face-extend-p face nil t)))
164 (put 'pulse-highlight-face :startface (or face 167 (put 'pulse-highlight-face :startface (or face
165 'pulse-highlight-start-face)) 168 'pulse-highlight-start-face))
166 (put 'pulse-highlight-face :iteration 0)) 169 (put 'pulse-highlight-face :iteration 0))
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el
index 9cdb108be03..c0c9cac23e7 100644
--- a/lisp/jit-lock.el
+++ b/lisp/jit-lock.el
@@ -96,16 +96,22 @@ See also `jit-lock-stealth-nice'."
96 96
97(defvaralias 'jit-lock-defer-contextually 'jit-lock-contextually) 97(defvaralias 'jit-lock-defer-contextually 'jit-lock-contextually)
98(defcustom jit-lock-contextually 'syntax-driven 98(defcustom jit-lock-contextually 'syntax-driven
99 "If non-nil, means fontification should be syntactically true. 99 "If non-nil, fontification should be syntactically true.
100If nil, means fontification occurs only on those lines modified. This 100If nil, refontification occurs only on lines that were modified. This
101means where modification on a line causes syntactic change on subsequent lines, 101means where modification on a line causes syntactic change on subsequent lines,
102those subsequent lines are not refontified to reflect their new context. 102those subsequent lines are not refontified to reflect their new context.
103If t, means fontification occurs on those lines modified and all 103If t, fontification occurs on those lines modified and all subsequent lines.
104subsequent lines. This means those subsequent lines are refontified to reflect 104This means those subsequent lines are refontified to reflect their new
105their new syntactic context, after `jit-lock-context-time' seconds. 105syntactic context, after `jit-lock-context-time' seconds.
106If any other value, e.g., `syntax-driven', means syntactically true 106If any other value, e.g., `syntax-driven', it means refontification of
107fontification occurs only if syntactic fontification is performed using the 107subsequent lines to reflect their new syntactic context may or may not
108buffer mode's syntax table, i.e., only if `font-lock-keywords-only' is nil. 108occur after `jit-lock-context-time', depending on the the font-lock
109definitions of the buffer. Specifically, if `font-lock-keywords-only'
110is nil in a buffer, which generally means the syntactic fontification
111is done using the buffer mode's syntax table, the syntactic
112refontification will be triggered (because in that case font-lock
113calls `jit-lock-register' to set up for syntactic refontification,
114and sets the buffer-local value of `jit-lock-contextually' to t).
109 115
110The value of this variable is used when JIT Lock mode is turned on." 116The value of this variable is used when JIT Lock mode is turned on."
111 :type '(choice (const :tag "never" nil) 117 :type '(choice (const :tag "never" nil)