aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2017-03-19 12:29:06 -0700
committerPaul Eggert2017-03-19 12:29:06 -0700
commite6fd84d2d5ca256797ff210c915a2fa773d4d742 (patch)
treeba2ba64a65705a3259a0ecb66098f834e741fb4b /lisp
parentd86bcedd880b3cb6383641082d406075aa6e70e2 (diff)
parentab0a60a1b334fafc7d805eb44e6069ea314ad486 (diff)
downloademacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.tar.gz
emacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.zip
Merge from origin/emacs-25
ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate... 7e02a47 Index byte-compile-debug 7c1e598 Document `byte-compile-debug' in the ELisp manual 4d81eb4 Document variable `byte-compile-debug' 72ef710 Fix call to debugger on assertion failure ae8264c Call modification hooks in org-src fontify buffers b3139da ; Fix last change in doc/lispref/strings.texi c331f39 Improve documentation of 'format' conversions 9f52f67 Remove stale functions from ert manual c416b14 Fix a typo in Eshell manual 06695a0 ; Fix a typo in ediff-merg.el 954e9e9 Improve documentation of hooks related to saving buffers 9fcab85 Improve documentation of auto-save-visited-file-name 2236c53 fix typo in mailcap-mime-extensions 85a3e4e Fix typos in flymake.el a1ef10e More NEWS checking for admin.el's set-version # Conflicts: # lisp/emacs-lisp/bytecomp.el
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
-rw-r--r--lisp/emacs-lisp/cl-preloaded.el2
-rw-r--r--lisp/files.el10
-rw-r--r--lisp/net/mailcap.el2
-rw-r--r--lisp/org/org-src.el24
-rw-r--r--lisp/progmodes/flymake.el2
-rw-r--r--lisp/vc/ediff-merg.el2
7 files changed, 27 insertions, 18 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 7cbef8e4340..f45ae359f6c 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -416,7 +416,8 @@ specify different fields to sort on."
416 :type '(choice (const name) (const callers) (const calls) 416 :type '(choice (const name) (const callers) (const calls)
417 (const calls+callers) (const nil))) 417 (const calls+callers) (const nil)))
418 418
419(defvar byte-compile-debug nil) 419(defvar byte-compile-debug nil
420 "If non-nil, byte compile errors will be raised as signals instead of logged.")
420(defvar byte-compile-jump-tables nil 421(defvar byte-compile-jump-tables nil
421 "List of all jump tables used during compilation of this form.") 422 "List of all jump tables used during compilation of this form.")
422(defvar byte-compile-constants nil 423(defvar byte-compile-constants nil
diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el
index bba7b83a792..482b579f11a 100644
--- a/lisp/emacs-lisp/cl-preloaded.el
+++ b/lisp/emacs-lisp/cl-preloaded.el
@@ -45,7 +45,7 @@
45 45
46(defun cl--assertion-failed (form &optional string sargs args) 46(defun cl--assertion-failed (form &optional string sargs args)
47 (if debug-on-error 47 (if debug-on-error
48 (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs)) 48 (funcall debugger 'error `(cl-assertion-failed (,form ,string ,@sargs)))
49 (if string 49 (if string
50 (apply #'error string (append sargs args)) 50 (apply #'error string (append sargs args))
51 (signal 'cl-assertion-failed `(,form ,@sargs))))) 51 (signal 'cl-assertion-failed `(,form ,@sargs)))))
diff --git a/lisp/files.el b/lisp/files.el
index c7de4453d75..0a023a88b10 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -439,7 +439,8 @@ functions are called."
439 439
440(define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1") 440(define-obsolete-variable-alias 'write-file-hooks 'write-file-functions "22.1")
441(defvar write-file-functions nil 441(defvar write-file-functions nil
442 "List of functions to be called before writing out a buffer to a file. 442 "List of functions to be called before saving a buffer to a file.
443Only used by `save-buffer'.
443If one of them returns non-nil, the file is considered already written 444If one of them returns non-nil, the file is considered already written
444and the rest are not called. 445and the rest are not called.
445These hooks are considered to pertain to the visited file. 446These hooks are considered to pertain to the visited file.
@@ -464,6 +465,7 @@ updates before the buffer is saved, use `before-save-hook'.")
464 'write-contents-functions "22.1") 465 'write-contents-functions "22.1")
465(defvar write-contents-functions nil 466(defvar write-contents-functions nil
466 "List of functions to be called before writing out a buffer to a file. 467 "List of functions to be called before writing out a buffer to a file.
468Only used by `save-buffer'.
467If one of them returns non-nil, the file is considered already written 469If one of them returns non-nil, the file is considered already written
468and the rest are not called and neither are the functions in 470and the rest are not called and neither are the functions in
469`write-file-functions'. 471`write-file-functions'.
@@ -4855,13 +4857,15 @@ the last real save, but optional arg FORCE non-nil means delete anyway."
4855 "Normal hook run just before auto-saving.") 4857 "Normal hook run just before auto-saving.")
4856 4858
4857(defcustom before-save-hook nil 4859(defcustom before-save-hook nil
4858 "Normal hook that is run before a buffer is saved to its file." 4860 "Normal hook that is run before a buffer is saved to its file.
4861Only used by `save-buffer'."
4859 :options '(copyright-update time-stamp) 4862 :options '(copyright-update time-stamp)
4860 :type 'hook 4863 :type 'hook
4861 :group 'files) 4864 :group 'files)
4862 4865
4863(defcustom after-save-hook nil 4866(defcustom after-save-hook nil
4864 "Normal hook that is run after a buffer is saved to its file." 4867 "Normal hook that is run after a buffer is saved to its file.
4868Only used by `save-buffer'."
4865 :options '(executable-make-buffer-file-executable-if-script-p) 4869 :options '(executable-make-buffer-file-executable-if-script-p)
4866 :type 'hook 4870 :type 'hook
4867 :group 'files) 4871 :group 'files)
diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el
index 4e53b5a2861..89f6c91156b 100644
--- a/lisp/net/mailcap.el
+++ b/lisp/net/mailcap.el
@@ -853,7 +853,7 @@ If NO-DECODE is non-nil, don't decode STRING."
853 (".css" . "text/css") 853 (".css" . "text/css")
854 (".dvi" . "application/x-dvi") 854 (".dvi" . "application/x-dvi")
855 (".diff" . "text/x-patch") 855 (".diff" . "text/x-patch")
856 (".dpatch". "test/x-patch") 856 (".dpatch". "text/x-patch")
857 (".el" . "application/emacs-lisp") 857 (".el" . "application/emacs-lisp")
858 (".eps" . "application/postscript") 858 (".eps" . "application/postscript")
859 (".etx" . "text/x-setext") 859 (".etx" . "text/x-setext")
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el
index 0e82cfda7b8..caa6526435b 100644
--- a/lisp/org/org-src.el
+++ b/lisp/org/org-src.el
@@ -914,16 +914,20 @@ fontification of code blocks see `org-src-fontify-block' and
914 (with-current-buffer 914 (with-current-buffer
915 (get-buffer-create 915 (get-buffer-create
916 (concat " org-src-fontification:" (symbol-name lang-mode))) 916 (concat " org-src-fontification:" (symbol-name lang-mode)))
917 (delete-region (point-min) (point-max)) 917 ;; Make sure that modification hooks are not inhibited in
918 (insert string " ") ;; so there's a final property change 918 ;; the org-src-fontification buffer in case we're called
919 (unless (eq major-mode lang-mode) (funcall lang-mode)) 919 ;; from `jit-lock-function' (Bug#25132).
920 (org-font-lock-ensure) 920 (let ((inhibit-modification-hooks nil))
921 (setq pos (point-min)) 921 (delete-region (point-min) (point-max))
922 (while (setq next (next-single-property-change pos 'face)) 922 (insert string " ") ;; so there's a final property change
923 (put-text-property 923 (unless (eq major-mode lang-mode) (funcall lang-mode))
924 (+ start (1- pos)) (1- (+ start next)) 'face 924 (org-font-lock-ensure)
925 (get-text-property pos 'face) org-buffer) 925 (setq pos (point-min))
926 (setq pos next))) 926 (while (setq next (next-single-property-change pos 'face))
927 (put-text-property
928 (+ start (1- pos)) (1- (+ start next)) 'face
929 (get-text-property pos 'face) org-buffer)
930 (setq pos next))))
927 (add-text-properties 931 (add-text-properties
928 start end 932 start end
929 '(font-lock-fontified t fontified t font-lock-multiline t)) 933 '(font-lock-fontified t fontified t font-lock-multiline t))
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index e488c196fef..ed34d9aaa52 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -363,7 +363,7 @@ instead of SOURCE-FILE-NAME.
363 363
364For example, foo.cpp is a master file if it includes foo.h. 364For example, foo.cpp is a master file if it includes foo.h.
365 365
366Whether a buffer for MATER-FILE-NAME exists, use it as a source 366When a buffer for MASTER-FILE-NAME exists, use it as a source
367instead of reading master file from disk." 367instead of reading master file from disk."
368 (let* ((source-file-nondir (file-name-nondirectory source-file-name)) 368 (let* ((source-file-nondir (file-name-nondirectory source-file-name))
369 (source-file-extension (file-name-extension source-file-nondir)) 369 (source-file-extension (file-name-extension source-file-nondir))
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index 2567818de65..d7fa74fff87 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -84,7 +84,7 @@ A region is considered to have been changed if it is different from the current
84default (`default-A', `default-B', `combined') and it hasn't been marked as 84default (`default-A', `default-B', `combined') and it hasn't been marked as
85`prefer-A' or `prefer-B'. 85`prefer-A' or `prefer-B'.
86A region is considered to have been changed also when it is marked as 86A region is considered to have been changed also when it is marked as
87as `prefer-A', but is different from the corresponding difference region in 87`prefer-A', but is different from the corresponding difference region in
88Buffer A or if it is marked as `prefer-B' and is different from the region in 88Buffer A or if it is marked as `prefer-B' and is different from the region in
89Buffer B." 89Buffer B."
90 :type 'boolean 90 :type 'boolean