Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

This commit is contained in:
Michael Albinus 2016-03-17 20:34:49 +01:00
commit 7a2edd3427
11 changed files with 25 additions and 35 deletions

View file

@ -816,12 +816,11 @@ If in a Dired buffer, reverts it."
(interactive) (interactive)
(if (file-exists-p dired-local-variables-file) (if (file-exists-p dired-local-variables-file)
(error "Old-style dired-local-variables-file `./%s' found; (error "Old-style dired-local-variables-file `./%s' found;
replace it with a dir-locals-file `./%s.el'" replace it with a dir-locals-file `./%s'"
dired-local-variables-file dired-local-variables-file
dir-locals-file)) dir-locals-file))
(if (dir-locals--all-files default-directory) (if (file-exists-p dir-locals-file)
(message "File `./%s' already exists." (message "File `./%s' already exists." dir-locals-file)
(car (dir-locals--all-files default-directory)))
(add-dir-local-variable 'dired-mode 'subdirs nil) (add-dir-local-variable 'dired-mode 'subdirs nil)
(add-dir-local-variable 'dired-mode 'dired-omit-mode t) (add-dir-local-variable 'dired-mode 'dired-omit-mode t)
;; Run extra-hooks and revert directory. ;; Run extra-hooks and revert directory.

View file

@ -4428,7 +4428,7 @@ instead.
;;;*** ;;;***
;;;### (autoloads nil "dired-x" "dired-x.el" "8dae922d1549647835460b6cb70af4df") ;;;### (autoloads nil "dired-x" "dired-x.el" "f00ad5ec7383d017263855ad8add60a3")
;;; Generated autoloads from dired-x.el ;;; Generated autoloads from dired-x.el
(autoload 'dired-jump "dired-x" "\ (autoload 'dired-jump "dired-x" "\

View file

@ -1493,7 +1493,10 @@ should not be computed on the basis of the following token."
(let ((endpos (point))) (let ((endpos (point)))
(goto-char pos) (goto-char pos)
(forward-line 1) (forward-line 1)
(and (equal res (smie-indent-forward-token)) ;; As seen in bug#22960, pos may be inside
;; a string, and forward-token may then stumble.
(and (ignore-errors
(equal res (smie-indent-forward-token)))
(eq (point) endpos))))) (eq (point) endpos)))))
nil nil
(goto-char pos) (goto-char pos)

View file

@ -30,6 +30,7 @@
(autoload 'gnus-map-function "gnus-util") (autoload 'gnus-map-function "gnus-util")
(autoload 'gnus-replace-in-string "gnus-util") (autoload 'gnus-replace-in-string "gnus-util")
(autoload 'gnus-read-shell-command "gnus-util") (autoload 'gnus-read-shell-command "gnus-util")
(autoload 'gnus-format-message "gnus-util")
(autoload 'mm-inline-partial "mm-partial") (autoload 'mm-inline-partial "mm-partial")
(autoload 'mm-inline-external-body "mm-extern") (autoload 'mm-inline-external-body "mm-extern")

View file

@ -27,6 +27,8 @@
(require 'gnus-util) (require 'gnus-util)
(require 'epg) (require 'epg)
(require 'password-cache)
(require 'mm-encode)
(autoload 'mail-strip-quoted-names "mail-utils") (autoload 'mail-strip-quoted-names "mail-utils")
(autoload 'mml2015-sign "mml2015") (autoload 'mml2015-sign "mml2015")
@ -35,6 +37,7 @@
(autoload 'mml1991-encrypt "mml1991") (autoload 'mml1991-encrypt "mml1991")
(autoload 'message-fetch-field "message") (autoload 'message-fetch-field "message")
(autoload 'message-goto-body "message") (autoload 'message-goto-body "message")
(autoload 'message-options-get "message")
(autoload 'mml-insert-tag "mml") (autoload 'mml-insert-tag "mml")
(autoload 'mml-smime-sign "mml-smime") (autoload 'mml-smime-sign "mml-smime")
(autoload 'mml-smime-encrypt "mml-smime") (autoload 'mml-smime-encrypt "mml-smime")
@ -44,6 +47,8 @@
(autoload 'mml-smime-verify-test "mml-smime") (autoload 'mml-smime-verify-test "mml-smime")
(autoload 'epa--select-keys "epa") (autoload 'epa--select-keys "epa")
(declare-function message-options-set "message" (symbol value))
(defvar mml-sign-alist (defvar mml-sign-alist
'(("smime" mml-smime-sign-buffer mml-smime-sign-query) '(("smime" mml-smime-sign-buffer mml-smime-sign-query)
("pgp" mml-pgp-sign-buffer list) ("pgp" mml-pgp-sign-buffer list)
@ -110,20 +115,15 @@ details."
:group 'message :group 'message
:type 'boolean) :type 'boolean)
(defcustom mml-secure-cache-passphrase ;; FIXME If it's "NOT recommended", why is it the default?
(if (boundp 'password-cache) (defcustom mml-secure-cache-passphrase password-cache
password-cache
t)
"If t, cache OpenPGP or S/MIME passphrases inside Emacs. "If t, cache OpenPGP or S/MIME passphrases inside Emacs.
Passphrase caching in Emacs is NOT recommended. Use gpg-agent instead. Passphrase caching in Emacs is NOT recommended. Use gpg-agent instead.
See Info node `(message) Security'." See Info node `(message) Security'."
:group 'message :group 'message
:type 'boolean) :type 'boolean)
(defcustom mml-secure-passphrase-cache-expiry (defcustom mml-secure-passphrase-cache-expiry password-cache-expiry
(if (boundp 'password-cache-expiry)
password-cache-expiry
16)
"How many seconds the passphrase is cached. "How many seconds the passphrase is cached.
Whether the passphrase is cached at all is controlled by Whether the passphrase is cached at all is controlled by
`mml-secure-cache-passphrase'." `mml-secure-cache-passphrase'."

View file

@ -356,10 +356,6 @@ Whether the passphrase is cached at all is controlled by
(autoload 'mml-compute-boundary "mml") (autoload 'mml-compute-boundary "mml")
;; We require mm-decode, which requires mm-bodies, which autoloads
;; message-options-get (!).
(declare-function message-options-set "message" (symbol value))
(defun mml-smime-epg-sign (cont) (defun mml-smime-epg-sign (cont)
(let ((inhibit-redisplay t) (let ((inhibit-redisplay t)
(boundary (mml-compute-boundary cont))) (boundary (mml-compute-boundary cont)))

View file

@ -25,11 +25,6 @@
;;; Code: ;;; Code:
(eval-and-compile
(if (locate-library "password-cache")
(require 'password-cache)
(require 'password)))
(eval-when-compile (eval-when-compile
(require 'cl) (require 'cl)
(require 'mm-util)) (require 'mm-util))

View file

@ -27,11 +27,6 @@
;;; Code: ;;; Code:
(eval-and-compile
(if (locate-library "password-cache")
(require 'password-cache)
(require 'password)))
(eval-when-compile (require 'cl)) (eval-when-compile (require 'cl))
(require 'mm-decode) (require 'mm-decode)
(require 'mm-util) (require 'mm-util)

View file

@ -4582,6 +4582,8 @@ Argument MIME is non-nil if this is a mime message."
(list armor-start (- (point-max) after-end) mime (list armor-start (- (point-max) after-end) mime
armor-end-regexp))) armor-end-regexp)))
(declare-function rmail-mime-entity-truncated "rmailmm" (entity))
;; Should this have a key-binding, or be in a menu? ;; Should this have a key-binding, or be in a menu?
;; There doesn't really seem to be an appropriate menu. ;; There doesn't really seem to be an appropriate menu.
;; Eg the edit command is not in a menu either. ;; Eg the edit command is not in a menu either.

View file

@ -436,6 +436,8 @@ If SELECT is non-nil, select the target window."
;;; XREF buffer (part of the UI) ;;; XREF buffer (part of the UI)
;; The xref buffer is used to display a set of xrefs. ;; The xref buffer is used to display a set of xrefs.
(defconst xref-buffer-name "*xref*"
"The name of the buffer to show xrefs.")
(defmacro xref--with-dedicated-window (&rest body) (defmacro xref--with-dedicated-window (&rest body)
`(let* ((xref-w (get-buffer-window xref-buffer-name)) `(let* ((xref-w (get-buffer-window xref-buffer-name))
@ -470,6 +472,9 @@ If SELECT is non-nil, select the target window."
(xref--show-pos-in-buf marker buf select)) (xref--show-pos-in-buf marker buf select))
(user-error (message (error-message-string err))))) (user-error (message (error-message-string err)))))
(defvar-local xref--window nil
"The original window this xref buffer was created from.")
(defun xref-show-location-at-point () (defun xref-show-location-at-point ()
"Display the source of xref at point in the appropriate window, if any." "Display the source of xref at point in the appropriate window, if any."
(interactive) (interactive)
@ -500,9 +505,6 @@ If SELECT is non-nil, select the target window."
(back-to-indentation) (back-to-indentation)
(get-text-property (point) 'xref-item))) (get-text-property (point) 'xref-item)))
(defvar-local xref--window nil
"The original window this xref buffer was created from.")
(defun xref-goto-xref () (defun xref-goto-xref ()
"Jump to the xref on the current line and select its window." "Jump to the xref on the current line and select its window."
(interactive) (interactive)
@ -624,9 +626,6 @@ references displayed in the current *xref* buffer."
(t (t
(error "No %s xref" (if backward "previous" "next")))))) (error "No %s xref" (if backward "previous" "next"))))))
(defconst xref-buffer-name "*xref*"
"The name of the buffer to show xrefs.")
(defvar xref--button-map (defvar xref--button-map
(let ((map (make-sparse-keymap))) (let ((map (make-sparse-keymap)))
(define-key map [(control ?m)] #'xref-goto-xref) (define-key map [(control ?m)] #'xref-goto-xref)

View file

@ -580,7 +580,7 @@ Return one of:
;; However, if we're parsing incrementally, then we need to deal ;; However, if we're parsing incrementally, then we need to deal
;; with stray CDATA. ;; with stray CDATA.
(let ((s (xml-parse-string))) (let ((s (xml-parse-string)))
(when (string-empty-p s) (when (zerop (length s))
;; We haven't consumed any input! We must throw an error in ;; We haven't consumed any input! We must throw an error in
;; order to prevent looping forever. ;; order to prevent looping forever.
(error "XML: (Not Well-Formed) Could not parse: %s" (error "XML: (Not Well-Formed) Could not parse: %s"