aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/checkdoc.el2
-rw-r--r--lisp/help-fns.el2
-rw-r--r--lisp/loadhist.el2
-rw-r--r--lisp/progmodes/cc-mode.el13
-rw-r--r--lisp/progmodes/vhdl-mode.el2
-rw-r--r--lisp/simple.el13
-rw-r--r--lisp/subr.el25
7 files changed, 32 insertions, 27 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index e15836ee7d8..fa5d1cff417 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -168,7 +168,7 @@
168;; not specifically docstring related. Would this even be useful? 168;; not specifically docstring related. Would this even be useful?
169 169
170;;; Code: 170;;; Code:
171(defvar checkdoc-version "0.6.1" 171(defvar checkdoc-version "0.6.2"
172 "Release version of checkdoc you are currently running.") 172 "Release version of checkdoc you are currently running.")
173 173
174(require 'cl-lib) 174(require 'cl-lib)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index ad496166f50..59eedb5331d 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1000,6 +1000,8 @@ it is displayed along with the global value."
1000 (terpri) 1000 (terpri)
1001 (let ((buf (current-buffer))) 1001 (let ((buf (current-buffer)))
1002 (with-temp-buffer 1002 (with-temp-buffer
1003 (lisp-mode-variables nil)
1004 (set-syntax-table emacs-lisp-mode-syntax-table)
1003 (insert print-rep) 1005 (insert print-rep)
1004 (pp-buffer) 1006 (pp-buffer)
1005 (let ((pp-buffer (current-buffer))) 1007 (let ((pp-buffer (current-buffer)))
diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index dabc8b9457a..a1ff2f6270d 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -173,7 +173,7 @@ documentation of `unload-feature' for details.")
173;; we undefine it. 173;; we undefine it.
174;; So we use this auxiliary variable to keep track of the last (t . SYMBOL) 174;; So we use this auxiliary variable to keep track of the last (t . SYMBOL)
175;; that occurred. 175;; that occurred.
176(defvar loadhist--restore-autoload 176(defvar loadhist--restore-autoload nil
177 "If non-nil, this is a symbol for which we should 177 "If non-nil, this is a symbol for which we should
178restore a previous autoload if possible.") 178restore a previous autoload if possible.")
179 179
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 2a281d4d2aa..a39c50e4138 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -1992,17 +1992,16 @@ Note that this is a strict tail, so won't match, e.g. \"0x....\".")
1992 1992
1993 ;; Note: c-just-done-before-change is nil, t, or 'whole-buffer. 1993 ;; Note: c-just-done-before-change is nil, t, or 'whole-buffer.
1994 (unless (c-called-from-text-property-change-p) 1994 (unless (c-called-from-text-property-change-p)
1995 (save-restriction 1995 (unless (eq c-just-done-before-change t)
1996 (widen) 1996 (save-restriction
1997 (unless c-just-done-before-change 1997 (widen)
1998 (c-before-change (point-min) (point-max))) 1998 (when (null c-just-done-before-change)
1999 (unless (eq c-just-done-before-change t) 1999 (c-before-change (point-min) (point-max)))
2000 (setq beg (point-min) 2000 (setq beg (point-min)
2001 end (point-max) 2001 end (point-max)
2002 old-len (- end beg) 2002 old-len (- end beg)
2003 c-new-BEG (point-min) 2003 c-new-BEG (point-min)
2004 c-new-END (point-max))) 2004 c-new-END (point-max)))))
2005 (setq c-just-done-before-change nil)))
2006 2005
2007 ;; (c-new-BEG c-new-END) will be the region to fontify. It may become 2006 ;; (c-new-BEG c-new-END) will be the region to fontify. It may become
2008 ;; larger than (beg end). 2007 ;; larger than (beg end).
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 0677d36fbc7..22c61586266 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -13334,7 +13334,7 @@ File statistics: \"%s\"\n\
13334(defvar vhdl-font-lock-keywords nil 13334(defvar vhdl-font-lock-keywords nil
13335 "Regular expressions to highlight in VHDL Mode.") 13335 "Regular expressions to highlight in VHDL Mode.")
13336 13336
13337(defvar vhdl-font-lock-keywords-0 13337(defvar vhdl-font-lock-keywords-0 nil
13338 ;; set in `vhdl-font-lock-init' because dependent on user options 13338 ;; set in `vhdl-font-lock-init' because dependent on user options
13339 "For consideration as a value of `vhdl-font-lock-keywords'. 13339 "For consideration as a value of `vhdl-font-lock-keywords'.
13340This does highlighting of template prompts and directives (pragmas).") 13340This does highlighting of template prompts and directives (pragmas).")
diff --git a/lisp/simple.el b/lisp/simple.el
index 688dbcc947b..91736a60730 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -75,14 +75,16 @@ value of 1 means that nothing is amalgamated.")
75 :version "22.1") 75 :version "22.1")
76 76
77(defcustom next-error-highlight 0.5 77(defcustom next-error-highlight 0.5
78 "Highlighting of locations in selected source buffers. 78 "Highlighting of locations in the selected buffer.
79If a number, highlight the locus in `next-error' face for the given time 79If a number, highlight the locus in `next-error' face for the given time
80in seconds, or until the next command is executed. 80in seconds, or until the next command is executed.
81If t, highlight the locus until the next command is executed, or until 81If t, highlight the locus until the next command is executed, or until
82some other locus replaces it. 82some other locus replaces it.
83If nil, don't highlight the locus in the source buffer. 83If nil, don't highlight the locus in the source buffer.
84If `fringe-arrow', indicate the locus by the fringe arrow 84If `fringe-arrow', indicate the locus by the fringe arrow
85indefinitely until some other locus replaces it." 85indefinitely until some other locus replaces it.
86See `next-error-highlight-no-select' to customize highlighting
87of the locus in non-selected buffers."
86 :type '(choice (number :tag "Highlight for specified time") 88 :type '(choice (number :tag "Highlight for specified time")
87 (const :tag "Semipermanent highlighting" t) 89 (const :tag "Semipermanent highlighting" t)
88 (const :tag "No highlighting" nil) 90 (const :tag "No highlighting" nil)
@@ -91,12 +93,15 @@ indefinitely until some other locus replaces it."
91 :version "22.1") 93 :version "22.1")
92 94
93(defcustom next-error-highlight-no-select 0.5 95(defcustom next-error-highlight-no-select 0.5
94 "Highlighting of locations in `next-error-no-select'. 96 "Highlighting of locations in non-selected source buffers.
97Usually non-selected buffers are displayed by `next-error-no-select'.
95If number, highlight the locus in `next-error' face for given time in seconds. 98If number, highlight the locus in `next-error' face for given time in seconds.
96If t, highlight the locus indefinitely until some other locus replaces it. 99If t, highlight the locus indefinitely until some other locus replaces it.
97If nil, don't highlight the locus in the source buffer. 100If nil, don't highlight the locus in the source buffer.
98If `fringe-arrow', indicate the locus by the fringe arrow 101If `fringe-arrow', indicate the locus by the fringe arrow
99indefinitely until some other locus replaces it." 102indefinitely until some other locus replaces it.
103See `next-error-highlight' to customize highlighting of the locus
104in the selected buffer."
100 :type '(choice (number :tag "Highlight for specified time") 105 :type '(choice (number :tag "Highlight for specified time")
101 (const :tag "Semipermanent highlighting" t) 106 (const :tag "Semipermanent highlighting" t)
102 (const :tag "No highlighting" nil) 107 (const :tag "No highlighting" nil)
diff --git a/lisp/subr.el b/lisp/subr.el
index 96b98c6a5b3..13515ca7da1 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3967,19 +3967,18 @@ the function `undo--wrap-and-run-primitive-undo'."
3967 (let ((undo--combining-change-calls t)) 3967 (let ((undo--combining-change-calls t))
3968 (if (not inhibit-modification-hooks) 3968 (if (not inhibit-modification-hooks)
3969 (run-hook-with-args 'before-change-functions beg end)) 3969 (run-hook-with-args 'before-change-functions beg end))
3970 (if (eq buffer-undo-list t) 3970 (let (;; (inhibit-modification-hooks t)
3971 (setq result (funcall body)) 3971 (before-change-functions
3972 (let (;; (inhibit-modification-hooks t) 3972 ;; Ugly Hack: if the body uses syntax-ppss/syntax-propertize
3973 (before-change-functions 3973 ;; (e.g. via a regexp-search or sexp-movement trigerring
3974 ;; Ugly Hack: if the body uses syntax-ppss/syntax-propertize 3974 ;; on-the-fly syntax-propertize), make sure that this gets
3975 ;; (e.g. via a regexp-search or sexp-movement trigerring 3975 ;; properly refreshed after subsequent changes.
3976 ;; on-the-fly syntax-propertize), make sure that this gets 3976 (if (memq #'syntax-ppss-flush-cache before-change-functions)
3977 ;; properly refreshed after subsequent changes. 3977 '(syntax-ppss-flush-cache)))
3978 (if (memq #'syntax-ppss-flush-cache before-change-functions) 3978 after-change-functions)
3979 '(syntax-ppss-flush-cache))) 3979 (setq result (funcall body)))
3980 after-change-functions) 3980 (when (not (eq buffer-undo-list t))
3981 (setq result (funcall body))) 3981 (let ((ap-elt
3982 (let ((ap-elt
3983 (list 'apply 3982 (list 'apply
3984 (- end end-marker) 3983 (- end end-marker)
3985 beg 3984 beg