aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-11-04 09:37:03 -0800
committerGlenn Morris2018-11-04 09:37:03 -0800
commita9140091dd0df7e89ddbaabec17608a20f06f7b0 (patch)
tree3def81298da0b3608f1b5047081fd62b7d7dc7bb
parent5ad0d805855dacfee285fe4f2375f18c9f245875 (diff)
parentbd1d61753d90ef47af1e9a3b7a92ee77b7d43ed0 (diff)
downloademacs-a9140091dd0df7e89ddbaabec17608a20f06f7b0.tar.gz
emacs-a9140091dd0df7e89ddbaabec17608a20f06f7b0.zip
Merge from origin/emacs-26
bd1d617 Avoid race in rcirc process filter (bug#33145) 88ef31a Avoid file-name errors when viewing PDF from Gnus c939042 Avoid crashes with remapped default face in Org mode 97660fa Doc fix for checkdoc-continue 96f055b Fix a typo in autoload.el
-rw-r--r--lisp/doc-view.el43
-rw-r--r--lisp/emacs-lisp/autoload.el2
-rw-r--r--lisp/emacs-lisp/checkdoc.el5
-rw-r--r--lisp/net/rcirc.el12
-rw-r--r--src/xfaces.c9
5 files changed, 39 insertions, 32 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 2b2c6874dbc..31e266fb50c 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1764,27 +1764,28 @@ toggle between displaying the document or editing it as text.
1764 (doc-view-make-safe-dir doc-view-cache-directory) 1764 (doc-view-make-safe-dir doc-view-cache-directory)
1765 ;; Handle compressed files, remote files, files inside archives 1765 ;; Handle compressed files, remote files, files inside archives
1766 (setq-local doc-view--buffer-file-name 1766 (setq-local doc-view--buffer-file-name
1767 (cond 1767 (convert-standard-filename
1768 (jka-compr-really-do-compress 1768 (cond
1769 ;; FIXME: there's a risk of name conflicts here. 1769 (jka-compr-really-do-compress
1770 (expand-file-name 1770 ;; FIXME: there's a risk of name conflicts here.
1771 (file-name-nondirectory 1771 (expand-file-name
1772 (file-name-sans-extension buffer-file-name)) 1772 (file-name-nondirectory
1773 doc-view-cache-directory)) 1773 (file-name-sans-extension buffer-file-name))
1774 ;; Is the file readable by local processes? 1774 doc-view-cache-directory))
1775 ;; We used to use `file-remote-p' but it's unclear what it's 1775 ;; Is the file readable by local processes?
1776 ;; supposed to return nil for things like local files accessed 1776 ;; We used to use `file-remote-p' but it's unclear what it's
1777 ;; via `su' or via file://... 1777 ;; supposed to return nil for things like local files accessed
1778 ((let ((file-name-handler-alist nil)) 1778 ;; via `su' or via file://...
1779 (not (and buffer-file-name 1779 ((let ((file-name-handler-alist nil))
1780 (file-readable-p buffer-file-name)))) 1780 (not (and buffer-file-name
1781 ;; FIXME: there's a risk of name conflicts here. 1781 (file-readable-p buffer-file-name))))
1782 (expand-file-name 1782 ;; FIXME: there's a risk of name conflicts here.
1783 (if buffer-file-name 1783 (expand-file-name
1784 (file-name-nondirectory buffer-file-name) 1784 (if buffer-file-name
1785 (buffer-name)) 1785 (file-name-nondirectory buffer-file-name)
1786 doc-view-cache-directory)) 1786 (buffer-name))
1787 (t buffer-file-name))) 1787 doc-view-cache-directory))
1788 (t buffer-file-name))))
1788 (when (not (string= doc-view--buffer-file-name buffer-file-name)) 1789 (when (not (string= doc-view--buffer-file-name buffer-file-name))
1789 (write-region nil nil doc-view--buffer-file-name)) 1790 (write-region nil nil doc-view--buffer-file-name))
1790 1791
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index c9ee532ac82..22aac954d17 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -1047,7 +1047,7 @@ write its autoloads into the specified file instead."
1047 ;; we don't want to depend on whether Emacs was 1047 ;; we don't want to depend on whether Emacs was
1048 ;; built with or without modules support, nor 1048 ;; built with or without modules support, nor
1049 ;; what is the suffix for the underlying OS. 1049 ;; what is the suffix for the underlying OS.
1050 (unless (string-match "\\.\\(elc\\|\\so\\|dll\\)" suf) 1050 (unless (string-match "\\.\\(elc\\|so\\|dll\\)" suf)
1051 (push suf tmp))) 1051 (push suf tmp)))
1052 (concat "^[^=.].*" (regexp-opt tmp t) "\\'"))) 1052 (concat "^[^=.].*" (regexp-opt tmp t) "\\'")))
1053 (files (apply #'nconc 1053 (files (apply #'nconc
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 83929beb1e0..86d211c729a 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -884,9 +884,8 @@ a separate buffer."
884;;;###autoload 884;;;###autoload
885(defun checkdoc-continue (&optional take-notes) 885(defun checkdoc-continue (&optional take-notes)
886 "Find the next doc string in the current buffer which has a style error. 886 "Find the next doc string in the current buffer which has a style error.
887Prefix argument TAKE-NOTES means to continue through the whole buffer and 887Prefix argument TAKE-NOTES means to continue through the whole
888save warnings in a separate buffer. Second optional argument START-POINT 888buffer and save warnings in a separate buffer."
889is the starting location. If this is nil, `point-min' is used instead."
890 (interactive "P") 889 (interactive "P")
891 (let ((wrong nil) (msg nil) 890 (let ((wrong nil) (msg nil)
892 ;; Assign a flag to spellcheck flag 891 ;; Assign a flag to spellcheck flag
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index ca707341be4..0c72e478830 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -759,12 +759,12 @@ Function is called with PROCESS, COMMAND, SENDER, ARGS and LINE.")
759 (with-rcirc-process-buffer process 759 (with-rcirc-process-buffer process
760 (setq rcirc-last-server-message-time (current-time)) 760 (setq rcirc-last-server-message-time (current-time))
761 (setq rcirc-process-output (concat rcirc-process-output output)) 761 (setq rcirc-process-output (concat rcirc-process-output output))
762 (when (= (aref rcirc-process-output 762 (when (= ?\n (aref rcirc-process-output
763 (1- (length rcirc-process-output))) ?\n) 763 (1- (length rcirc-process-output))))
764 (mapc (lambda (line) 764 (let ((lines (split-string rcirc-process-output "[\n\r]" t)))
765 (rcirc-process-server-response process line)) 765 (setq rcirc-process-output nil)
766 (split-string rcirc-process-output "[\n\r]" t)) 766 (dolist (line lines)
767 (setq rcirc-process-output nil)))) 767 (rcirc-process-server-response process line))))))
768 768
769(defun rcirc-reschedule-timeout (process) 769(defun rcirc-reschedule-timeout (process)
770 (with-rcirc-process-buffer process 770 (with-rcirc-process-buffer process
diff --git a/src/xfaces.c b/src/xfaces.c
index 6e06d56ba1d..94397cd7f99 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6093,7 +6093,14 @@ face_at_buffer_position (struct window *w, ptrdiff_t pos,
6093 int face_id; 6093 int face_id;
6094 6094
6095 if (base_face_id >= 0) 6095 if (base_face_id >= 0)
6096 face_id = base_face_id; 6096 {
6097 face_id = base_face_id;
6098 /* Make sure the base face ID is usable: if someone freed the
6099 cached faces since we've looked up the base face, we need
6100 to look it up again. */
6101 if (!FACE_FROM_ID_OR_NULL (f, face_id))
6102 face_id = lookup_basic_face (f, DEFAULT_FACE_ID);
6103 }
6097 else if (NILP (Vface_remapping_alist)) 6104 else if (NILP (Vface_remapping_alist))
6098 face_id = DEFAULT_FACE_ID; 6105 face_id = DEFAULT_FACE_ID;
6099 else 6106 else