diff options
| author | Michael Albinus | 2016-03-17 20:34:49 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-03-17 20:34:49 +0100 |
| commit | 7a2edd3427b8006805c8fd293c2e481114776e4d (patch) | |
| tree | a10f3ceaaeb10379818b3094185effc0540d2353 | |
| parent | dca240a70dcb1456a079a4738ac8e04c6698fc78 (diff) | |
| parent | 9094304a9c109495bf2212a713df1b07270d15cd (diff) | |
| download | emacs-7a2edd3427b8006805c8fd293c2e481114776e4d.tar.gz emacs-7a2edd3427b8006805c8fd293c2e481114776e4d.zip | |
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
| -rw-r--r-- | lisp/dired-x.el | 7 | ||||
| -rw-r--r-- | lisp/dired.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/smie.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/mml-sec.el | 16 | ||||
| -rw-r--r-- | lisp/gnus/mml-smime.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/mml1991.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/mml2015.el | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 11 | ||||
| -rw-r--r-- | lisp/xml.el | 2 |
11 files changed, 25 insertions, 35 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index dccaa9e96ca..088ca81ed8d 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -816,12 +816,11 @@ If in a Dired buffer, reverts it." | |||
| 816 | (interactive) | 816 | (interactive) |
| 817 | (if (file-exists-p dired-local-variables-file) | 817 | (if (file-exists-p dired-local-variables-file) |
| 818 | (error "Old-style dired-local-variables-file `./%s' found; | 818 | (error "Old-style dired-local-variables-file `./%s' found; |
| 819 | replace it with a dir-locals-file `./%s.el'" | 819 | replace it with a dir-locals-file `./%s'" |
| 820 | dired-local-variables-file | 820 | dired-local-variables-file |
| 821 | dir-locals-file)) | 821 | dir-locals-file)) |
| 822 | (if (dir-locals--all-files default-directory) | 822 | (if (file-exists-p dir-locals-file) |
| 823 | (message "File `./%s' already exists." | 823 | (message "File `./%s' already exists." dir-locals-file) |
| 824 | (car (dir-locals--all-files default-directory))) | ||
| 825 | (add-dir-local-variable 'dired-mode 'subdirs nil) | 824 | (add-dir-local-variable 'dired-mode 'subdirs nil) |
| 826 | (add-dir-local-variable 'dired-mode 'dired-omit-mode t) | 825 | (add-dir-local-variable 'dired-mode 'dired-omit-mode t) |
| 827 | ;; Run extra-hooks and revert directory. | 826 | ;; Run extra-hooks and revert directory. |
diff --git a/lisp/dired.el b/lisp/dired.el index 24b128f2944..ef22d457bca 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -4428,7 +4428,7 @@ instead. | |||
| 4428 | 4428 | ||
| 4429 | ;;;*** | 4429 | ;;;*** |
| 4430 | 4430 | ||
| 4431 | ;;;### (autoloads nil "dired-x" "dired-x.el" "8dae922d1549647835460b6cb70af4df") | 4431 | ;;;### (autoloads nil "dired-x" "dired-x.el" "f00ad5ec7383d017263855ad8add60a3") |
| 4432 | ;;; Generated autoloads from dired-x.el | 4432 | ;;; Generated autoloads from dired-x.el |
| 4433 | 4433 | ||
| 4434 | (autoload 'dired-jump "dired-x" "\ | 4434 | (autoload 'dired-jump "dired-x" "\ |
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el index 495ba7cb859..1d8f0cb8f5d 100644 --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el | |||
| @@ -1493,7 +1493,10 @@ should not be computed on the basis of the following token." | |||
| 1493 | (let ((endpos (point))) | 1493 | (let ((endpos (point))) |
| 1494 | (goto-char pos) | 1494 | (goto-char pos) |
| 1495 | (forward-line 1) | 1495 | (forward-line 1) |
| 1496 | (and (equal res (smie-indent-forward-token)) | 1496 | ;; As seen in bug#22960, pos may be inside |
| 1497 | ;; a string, and forward-token may then stumble. | ||
| 1498 | (and (ignore-errors | ||
| 1499 | (equal res (smie-indent-forward-token))) | ||
| 1497 | (eq (point) endpos))))) | 1500 | (eq (point) endpos))))) |
| 1498 | nil | 1501 | nil |
| 1499 | (goto-char pos) | 1502 | (goto-char pos) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index f70877dc63a..3ea63c74034 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | (autoload 'gnus-map-function "gnus-util") | 30 | (autoload 'gnus-map-function "gnus-util") |
| 31 | (autoload 'gnus-replace-in-string "gnus-util") | 31 | (autoload 'gnus-replace-in-string "gnus-util") |
| 32 | (autoload 'gnus-read-shell-command "gnus-util") | 32 | (autoload 'gnus-read-shell-command "gnus-util") |
| 33 | (autoload 'gnus-format-message "gnus-util") | ||
| 33 | 34 | ||
| 34 | (autoload 'mm-inline-partial "mm-partial") | 35 | (autoload 'mm-inline-partial "mm-partial") |
| 35 | (autoload 'mm-inline-external-body "mm-extern") | 36 | (autoload 'mm-inline-external-body "mm-extern") |
diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el index 3ac3da0127d..254c427299e 100644 --- a/lisp/gnus/mml-sec.el +++ b/lisp/gnus/mml-sec.el | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | (require 'gnus-util) | 28 | (require 'gnus-util) |
| 29 | (require 'epg) | 29 | (require 'epg) |
| 30 | (require 'password-cache) | ||
| 31 | (require 'mm-encode) | ||
| 30 | 32 | ||
| 31 | (autoload 'mail-strip-quoted-names "mail-utils") | 33 | (autoload 'mail-strip-quoted-names "mail-utils") |
| 32 | (autoload 'mml2015-sign "mml2015") | 34 | (autoload 'mml2015-sign "mml2015") |
| @@ -35,6 +37,7 @@ | |||
| 35 | (autoload 'mml1991-encrypt "mml1991") | 37 | (autoload 'mml1991-encrypt "mml1991") |
| 36 | (autoload 'message-fetch-field "message") | 38 | (autoload 'message-fetch-field "message") |
| 37 | (autoload 'message-goto-body "message") | 39 | (autoload 'message-goto-body "message") |
| 40 | (autoload 'message-options-get "message") | ||
| 38 | (autoload 'mml-insert-tag "mml") | 41 | (autoload 'mml-insert-tag "mml") |
| 39 | (autoload 'mml-smime-sign "mml-smime") | 42 | (autoload 'mml-smime-sign "mml-smime") |
| 40 | (autoload 'mml-smime-encrypt "mml-smime") | 43 | (autoload 'mml-smime-encrypt "mml-smime") |
| @@ -44,6 +47,8 @@ | |||
| 44 | (autoload 'mml-smime-verify-test "mml-smime") | 47 | (autoload 'mml-smime-verify-test "mml-smime") |
| 45 | (autoload 'epa--select-keys "epa") | 48 | (autoload 'epa--select-keys "epa") |
| 46 | 49 | ||
| 50 | (declare-function message-options-set "message" (symbol value)) | ||
| 51 | |||
| 47 | (defvar mml-sign-alist | 52 | (defvar mml-sign-alist |
| 48 | '(("smime" mml-smime-sign-buffer mml-smime-sign-query) | 53 | '(("smime" mml-smime-sign-buffer mml-smime-sign-query) |
| 49 | ("pgp" mml-pgp-sign-buffer list) | 54 | ("pgp" mml-pgp-sign-buffer list) |
| @@ -110,20 +115,15 @@ details." | |||
| 110 | :group 'message | 115 | :group 'message |
| 111 | :type 'boolean) | 116 | :type 'boolean) |
| 112 | 117 | ||
| 113 | (defcustom mml-secure-cache-passphrase | 118 | ;; FIXME If it's "NOT recommended", why is it the default? |
| 114 | (if (boundp 'password-cache) | 119 | (defcustom mml-secure-cache-passphrase password-cache |
| 115 | password-cache | ||
| 116 | t) | ||
| 117 | "If t, cache OpenPGP or S/MIME passphrases inside Emacs. | 120 | "If t, cache OpenPGP or S/MIME passphrases inside Emacs. |
| 118 | Passphrase caching in Emacs is NOT recommended. Use gpg-agent instead. | 121 | Passphrase caching in Emacs is NOT recommended. Use gpg-agent instead. |
| 119 | See Info node `(message) Security'." | 122 | See Info node `(message) Security'." |
| 120 | :group 'message | 123 | :group 'message |
| 121 | :type 'boolean) | 124 | :type 'boolean) |
| 122 | 125 | ||
| 123 | (defcustom mml-secure-passphrase-cache-expiry | 126 | (defcustom mml-secure-passphrase-cache-expiry password-cache-expiry |
| 124 | (if (boundp 'password-cache-expiry) | ||
| 125 | password-cache-expiry | ||
| 126 | 16) | ||
| 127 | "How many seconds the passphrase is cached. | 127 | "How many seconds the passphrase is cached. |
| 128 | Whether the passphrase is cached at all is controlled by | 128 | Whether the passphrase is cached at all is controlled by |
| 129 | `mml-secure-cache-passphrase'." | 129 | `mml-secure-cache-passphrase'." |
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index 248e63682c8..502c65b2463 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -356,10 +356,6 @@ Whether the passphrase is cached at all is controlled by | |||
| 356 | 356 | ||
| 357 | (autoload 'mml-compute-boundary "mml") | 357 | (autoload 'mml-compute-boundary "mml") |
| 358 | 358 | ||
| 359 | ;; We require mm-decode, which requires mm-bodies, which autoloads | ||
| 360 | ;; message-options-get (!). | ||
| 361 | (declare-function message-options-set "message" (symbol value)) | ||
| 362 | |||
| 363 | (defun mml-smime-epg-sign (cont) | 359 | (defun mml-smime-epg-sign (cont) |
| 364 | (let ((inhibit-redisplay t) | 360 | (let ((inhibit-redisplay t) |
| 365 | (boundary (mml-compute-boundary cont))) | 361 | (boundary (mml-compute-boundary cont))) |
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el index bb5c940f173..568dc564d91 100644 --- a/lisp/gnus/mml1991.el +++ b/lisp/gnus/mml1991.el | |||
| @@ -25,11 +25,6 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-and-compile | ||
| 29 | (if (locate-library "password-cache") | ||
| 30 | (require 'password-cache) | ||
| 31 | (require 'password))) | ||
| 32 | |||
| 33 | (eval-when-compile | 28 | (eval-when-compile |
| 34 | (require 'cl) | 29 | (require 'cl) |
| 35 | (require 'mm-util)) | 30 | (require 'mm-util)) |
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el index e2e99771801..61ca53624d3 100644 --- a/lisp/gnus/mml2015.el +++ b/lisp/gnus/mml2015.el | |||
| @@ -27,11 +27,6 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | (eval-and-compile | ||
| 31 | (if (locate-library "password-cache") | ||
| 32 | (require 'password-cache) | ||
| 33 | (require 'password))) | ||
| 34 | |||
| 35 | (eval-when-compile (require 'cl)) | 30 | (eval-when-compile (require 'cl)) |
| 36 | (require 'mm-decode) | 31 | (require 'mm-decode) |
| 37 | (require 'mm-util) | 32 | (require 'mm-util) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 70b0f232ce6..10ba5b38031 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4582,6 +4582,8 @@ Argument MIME is non-nil if this is a mime message." | |||
| 4582 | (list armor-start (- (point-max) after-end) mime | 4582 | (list armor-start (- (point-max) after-end) mime |
| 4583 | armor-end-regexp))) | 4583 | armor-end-regexp))) |
| 4584 | 4584 | ||
| 4585 | (declare-function rmail-mime-entity-truncated "rmailmm" (entity)) | ||
| 4586 | |||
| 4585 | ;; Should this have a key-binding, or be in a menu? | 4587 | ;; Should this have a key-binding, or be in a menu? |
| 4586 | ;; There doesn't really seem to be an appropriate menu. | 4588 | ;; There doesn't really seem to be an appropriate menu. |
| 4587 | ;; Eg the edit command is not in a menu either. | 4589 | ;; Eg the edit command is not in a menu either. |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 69e6a154ae5..feed0fb36d9 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -436,6 +436,8 @@ If SELECT is non-nil, select the target window." | |||
| 436 | ;;; XREF buffer (part of the UI) | 436 | ;;; XREF buffer (part of the UI) |
| 437 | 437 | ||
| 438 | ;; The xref buffer is used to display a set of xrefs. | 438 | ;; The xref buffer is used to display a set of xrefs. |
| 439 | (defconst xref-buffer-name "*xref*" | ||
| 440 | "The name of the buffer to show xrefs.") | ||
| 439 | 441 | ||
| 440 | (defmacro xref--with-dedicated-window (&rest body) | 442 | (defmacro xref--with-dedicated-window (&rest body) |
| 441 | `(let* ((xref-w (get-buffer-window xref-buffer-name)) | 443 | `(let* ((xref-w (get-buffer-window xref-buffer-name)) |
| @@ -470,6 +472,9 @@ If SELECT is non-nil, select the target window." | |||
| 470 | (xref--show-pos-in-buf marker buf select)) | 472 | (xref--show-pos-in-buf marker buf select)) |
| 471 | (user-error (message (error-message-string err))))) | 473 | (user-error (message (error-message-string err))))) |
| 472 | 474 | ||
| 475 | (defvar-local xref--window nil | ||
| 476 | "The original window this xref buffer was created from.") | ||
| 477 | |||
| 473 | (defun xref-show-location-at-point () | 478 | (defun xref-show-location-at-point () |
| 474 | "Display the source of xref at point in the appropriate window, if any." | 479 | "Display the source of xref at point in the appropriate window, if any." |
| 475 | (interactive) | 480 | (interactive) |
| @@ -500,9 +505,6 @@ If SELECT is non-nil, select the target window." | |||
| 500 | (back-to-indentation) | 505 | (back-to-indentation) |
| 501 | (get-text-property (point) 'xref-item))) | 506 | (get-text-property (point) 'xref-item))) |
| 502 | 507 | ||
| 503 | (defvar-local xref--window nil | ||
| 504 | "The original window this xref buffer was created from.") | ||
| 505 | |||
| 506 | (defun xref-goto-xref () | 508 | (defun xref-goto-xref () |
| 507 | "Jump to the xref on the current line and select its window." | 509 | "Jump to the xref on the current line and select its window." |
| 508 | (interactive) | 510 | (interactive) |
| @@ -624,9 +626,6 @@ references displayed in the current *xref* buffer." | |||
| 624 | (t | 626 | (t |
| 625 | (error "No %s xref" (if backward "previous" "next")))))) | 627 | (error "No %s xref" (if backward "previous" "next")))))) |
| 626 | 628 | ||
| 627 | (defconst xref-buffer-name "*xref*" | ||
| 628 | "The name of the buffer to show xrefs.") | ||
| 629 | |||
| 630 | (defvar xref--button-map | 629 | (defvar xref--button-map |
| 631 | (let ((map (make-sparse-keymap))) | 630 | (let ((map (make-sparse-keymap))) |
| 632 | (define-key map [(control ?m)] #'xref-goto-xref) | 631 | (define-key map [(control ?m)] #'xref-goto-xref) |
diff --git a/lisp/xml.el b/lisp/xml.el index 1802d04dfaf..414300cb402 100644 --- a/lisp/xml.el +++ b/lisp/xml.el | |||
| @@ -580,7 +580,7 @@ Return one of: | |||
| 580 | ;; However, if we're parsing incrementally, then we need to deal | 580 | ;; However, if we're parsing incrementally, then we need to deal |
| 581 | ;; with stray CDATA. | 581 | ;; with stray CDATA. |
| 582 | (let ((s (xml-parse-string))) | 582 | (let ((s (xml-parse-string))) |
| 583 | (when (string-empty-p s) | 583 | (when (zerop (length s)) |
| 584 | ;; We haven't consumed any input! We must throw an error in | 584 | ;; We haven't consumed any input! We must throw an error in |
| 585 | ;; order to prevent looping forever. | 585 | ;; order to prevent looping forever. |
| 586 | (error "XML: (Not Well-Formed) Could not parse: %s" | 586 | (error "XML: (Not Well-Formed) Could not parse: %s" |