summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@gnu.org>2013-05-23 21:04:26 +0900
committerKenichi Handa <handa@gnu.org>2013-05-23 21:04:26 +0900
commit179a3f11d15cbc6e433f05e03cc7e40fd5ce8362 (patch)
tree1ce423b654c3470460625730f3f42585bf5f770f
parentbc9a50032c477d4276583e66312806540167007d (diff)
parent7764286ea69667380175fe156c4e82bf789a1e09 (diff)
downloademacs-179a3f11d15cbc6e433f05e03cc7e40fd5ce8362.tar.gz
merge trunk
-rw-r--r--lisp/ChangeLog70
-rw-r--r--lisp/emacs-lisp/checkdoc.el35
-rw-r--r--lisp/eshell/em-alias.el2
-rw-r--r--lisp/eshell/em-banner.el6
-rw-r--r--lisp/eshell/em-basic.el4
-rw-r--r--lisp/eshell/em-cmpl.el4
-rw-r--r--lisp/eshell/em-glob.el2
-rw-r--r--lisp/eshell/em-ls.el10
-rw-r--r--lisp/eshell/em-pred.el2
-rw-r--r--lisp/eshell/em-prompt.el1
-rw-r--r--lisp/eshell/em-rebind.el1
-rw-r--r--lisp/eshell/em-smart.el1
-rw-r--r--lisp/eshell/em-term.el2
-rw-r--r--lisp/eshell/em-tramp.el6
-rw-r--r--lisp/eshell/em-xtra.el3
-rw-r--r--lisp/eshell/esh-arg.el2
-rw-r--r--lisp/eshell/esh-ext.el8
-rw-r--r--lisp/eshell/esh-io.el8
-rw-r--r--lisp/eshell/esh-mode.el2
-rw-r--r--lisp/eshell/esh-opt.el2
-rw-r--r--lisp/eshell/esh-proc.el4
-rw-r--r--lisp/eshell/esh-util.el10
-rw-r--r--lisp/eshell/esh-var.el8
-rw-r--r--lisp/eshell/eshell.el8
-rw-r--r--lisp/gnus/ChangeLog18
-rw-r--r--lisp/gnus/gnus-spec.el2
-rw-r--r--lisp/gnus/gnus-util.el9
-rw-r--r--lisp/gnus/mm-decode.el5
-rw-r--r--lisp/gnus/mm-util.el4
-rw-r--r--lisp/gnus/nnmaildir.el20
-rw-r--r--lisp/gnus/registry.el10
-rw-r--r--lisp/net/tramp-gvfs.el7
-rw-r--r--lisp/net/xesam.el5
-rw-r--r--lisp/progmodes/js.el13
-rw-r--r--lisp/progmodes/octave.el13
-rw-r--r--lisp/progmodes/vera-mode.el5
-rw-r--r--lisp/url/ChangeLog4
-rw-r--r--lisp/url/url.el6
-rw-r--r--lisp/vc/ediff-diff.el4
-rw-r--r--lisp/vc/ediff-merg.el5
-rw-r--r--lisp/vc/ediff-mult.el21
-rw-r--r--lisp/vc/ediff-ptch.el13
-rw-r--r--lisp/vc/ediff-util.el6
-rw-r--r--lisp/vc/ediff-wind.el17
-rw-r--r--lisp/vc/ediff.el20
-rw-r--r--src/ChangeLog8
-rw-r--r--src/casetab.c2
47 files changed, 292 insertions, 126 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 66d108ebbe0..a5a3bac231a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,71 @@
+2013-05-23 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp-gvfs.el (top):
+ * net/xesam.el (xesam-dbus-unique-names): Suppress D-Bus errors
+ when loading package. (Bug#14447)
+
+2013-05-23 Glenn Morris <rgm@gnu.org>
+
+ * progmodes/js.el: No need to load comint when compiling.
+ (ring-insert, comint-send-string, comint-send-input)
+ (comint-last-input-end, ido-chop): Declare.
+
+ * vc/ediff-diff.el, vc/ediff-merg.el: Require ediff-util at run-time.
+ * vc/ediff-mult.el: Adjust requires.
+ (ediff-directories-internal, ediff-directory-revisions-internal)
+ (ediff-patch-file-internal): Declare.
+ * vc/ediff-ptch.el: Adjust requires.
+ (ediff-use-last-dir, ediff-buffers-internal): Declare.
+ (ediff-find-file): Autoload.
+ * vc/ediff-util.el: No need to load ediff when compiling.
+ (ediff-regions-internal): Declare.
+ * vc/ediff-wind.el: Adjust requires.
+ (ediff-compute-toolbar-width): Define when compiling.
+ (ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare.
+ * vc/ediff.el: No need to load dired, ediff-ptch when compiling.
+ (dired-get-filename, dired-get-marked-files)
+ (ediff-last-dir-patch, ediff-patch-default-directory)
+ (ediff-get-patch-buffer, ediff-dispatch-file-patching-job)
+ (ediff-patch-buffer-internal): Declare.
+
+ * emacs-lisp/checkdoc.el: No need to load ispell when compiling.
+ (ispell-process, ispell-buffer-local-words, lm-summary)
+ (lm-section-start, lm-section-end): Declare.
+ (checkdoc-ispell-init): Simplify.
+
+ * progmodes/vera-mode.el (he-init-string, he-dabbrev-beg)
+ (he-string-member, he-reset-string, he-substitute-string): Declare.
+
+ * eshell/em-ls.el: Adjust requires.
+ (eshell-glob-regexp): Declare.
+ * eshell/em-tramp.el: Adjust requires.
+ (eshell-parse-command): Autoload.
+ * eshell/em-xtra.el: Adjust requires.
+ (eshell-parse-command): Autoload.
+ * eshell/esh-ext.el: Adjust requires.
+ (eshell-parse-command, eshell-close-handles): Autoload.
+ * eshell/esh-io.el: Adjust requires.
+ (eshell-output-filter): Autoload.
+ * eshell/esh-util.el: No need to load tramp when compiling.
+ (tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime):
+ Declare.
+ (eshell-parse-ange-ls): Require ange-ftp and tramp.
+ * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el:
+ * eshell/em-cmpl.el, eshell/em-glob.el, eshell/em-pred.el:
+ * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-smart.el:
+ * eshell/em-term.el, eshell/esh-arg.el, eshell/esh-mode.el:
+ * eshell/esh-opt.el, eshell/esh-proc.el:
+ * eshell/esh-var.el: Adjust requires.
+ * eshell/eshell.el: Do not require esh-util twice.
+ (eshell-add-input-to-history): Declare.
+ (eshell-command): Check history module is active before using it.
+
+ * eshell/em-ls.el (eshell-ls-dir): Fix -A handling.
+
+2013-05-22 Leo Liu <sdl.web@gmail.com>
+
+ * progmodes/octave.el (inferior-octave-startup): Fix bug#14433.
+
2013-05-22 Michael Albinus <michael.albinus@gmx.de>
* autorevert.el (auto-revert-notify-add-watch)
@@ -1311,7 +1379,7 @@
* net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst.
(tramp-local-coding-commands, tramp-remote-coding-commands): Use them.
(tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
- (tramp-find-inline-compress):Improve traces.
+ (tramp-find-inline-compress): Improve traces.
(tramp-maybe-send-script): Check for Perl binary.
(tramp-get-inline-coding): Do not redirect STDOUT for local decoding.
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index b154e722707..6540a8e9f14 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -2066,7 +2066,8 @@ If the offending word is in a piece of quoted text, then it is skipped."
;;; Ispell engine
;;
-(eval-when-compile (require 'ispell))
+(defvar ispell-process)
+(declare-function ispell-buffer-local-words "ispell" ())
(defun checkdoc-ispell-init ()
"Initialize Ispell process (default version) with Lisp words.
@@ -2074,19 +2075,14 @@ The words used are from `checkdoc-ispell-lisp-words'. If `ispell'
cannot be loaded, then set `checkdoc-spellcheck-documentation-flag' to
nil."
(require 'ispell)
- (if (not (symbol-value 'ispell-process)) ;Silence byteCompiler
- (condition-case nil
- (progn
- (ispell-buffer-local-words)
- ;; This code copied in part from ispell.el Emacs 19.34
- (let ((w checkdoc-ispell-lisp-words))
- (while w
- (process-send-string
- ;; Silence byte compiler
- (symbol-value 'ispell-process)
- (concat "@" (car w) "\n"))
- (setq w (cdr w)))))
- (error (setq checkdoc-spellcheck-documentation-flag nil)))))
+ (unless ispell-process
+ (condition-case nil
+ (progn
+ (ispell-buffer-local-words)
+ ;; This code copied in part from ispell.el Emacs 19.34
+ (dolist (w checkdoc-ispell-lisp-words)
+ (process-send-string ispell-process (concat "@" w "\n"))))
+ (error (setq checkdoc-spellcheck-documentation-flag nil)))))
(defun checkdoc-ispell-docstring-engine (end)
"Run the Ispell tools on the doc string between point and END.
@@ -2187,14 +2183,13 @@ News agents may remove it"
;;; Comment checking engine
;;
-(eval-when-compile
- ;; We must load this to:
- ;; a) get symbols for compile and
- ;; b) determine if we have lm-history symbol which doesn't always exist
- (require 'lisp-mnt))
-
(defvar generate-autoload-cookie)
+(eval-when-compile (require 'lisp-mnt)) ; expand silly defsubsts
+(declare-function lm-summary "lisp-mnt" (&optional file))
+(declare-function lm-section-start "lisp-mnt" (header &optional after))
+(declare-function lm-section-end "lisp-mnt" (header))
+
(defun checkdoc-file-comments-engine ()
"Return a message list if this file does not match the Emacs standard.
This checks for style only, such as the first line, Commentary:,
diff --git a/lisp/eshell/em-alias.el b/lisp/eshell/em-alias.el
index aa89177c2de..a46b48c01b3 100644
--- a/lisp/eshell/em-alias.el
+++ b/lisp/eshell/em-alias.el
@@ -90,8 +90,6 @@
;;; Code:
-(eval-when-compile
- (require 'esh-util))
(require 'eshell)
;;;###autoload
diff --git a/lisp/eshell/em-banner.el b/lisp/eshell/em-banner.el
index 44928b14e11..8c3eebf3510 100644
--- a/lisp/eshell/em-banner.el
+++ b/lisp/eshell/em-banner.el
@@ -39,11 +39,11 @@
;;; Code:
(eval-when-compile
- (require 'cl-lib)
- (require 'esh-mode)
- (require 'eshell))
+ (require 'cl-lib))
(require 'esh-util)
+(require 'esh-mode)
+(require 'eshell)
;;;###autoload
(progn
diff --git a/lisp/eshell/em-basic.el b/lisp/eshell/em-basic.el
index d795b8226ca..c440bd0a928 100644
--- a/lisp/eshell/em-basic.el
+++ b/lisp/eshell/em-basic.el
@@ -59,9 +59,7 @@
;;; Code:
-(eval-when-compile
- (require 'esh-util))
-
+(require 'esh-util)
(require 'eshell)
(require 'esh-opt)
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el
index 4f4b8dd3276..426db3232ed 100644
--- a/lisp/eshell/em-cmpl.el
+++ b/lisp/eshell/em-cmpl.el
@@ -70,10 +70,12 @@
;;; Code:
(require 'pcomplete)
+(require 'esh-mode)
+(require 'esh-util)
+
(eval-when-compile
(require 'cl-lib)
(require 'eshell))
-(require 'esh-util)
;;;###autoload
(progn
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el
index 866412d252b..a58c7730ded 100644
--- a/lisp/eshell/em-glob.el
+++ b/lisp/eshell/em-glob.el
@@ -49,8 +49,8 @@
;;; Code:
-(eval-when-compile (require 'eshell))
(require 'esh-util)
+(eval-when-compile (require 'eshell))
;;;###autoload
(progn
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index 73ed617b871..41db4cd03d1 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -26,10 +26,10 @@
;;; Code:
-(eval-when-compile (require 'eshell))
(require 'cl-lib)
(require 'esh-util)
(require 'esh-opt)
+(eval-when-compile (require 'eshell))
;;;###autoload
(progn
@@ -334,6 +334,8 @@ instead."
(defvar ange-cache)
(defvar dired-flag)
+(declare-function eshell-glob-regexp "em-glob" (pattern))
+
(defun eshell-do-ls (&rest args)
"Implementation of \"ls\" in Lisp, passing ARGS."
(funcall flush-func -1)
@@ -552,7 +554,7 @@ relative to that directory."
(expand-file-name dir)))
(cdr dirinfo))) ":\n"))
(let ((entries (eshell-directory-files-and-attributes
- dir nil (and (not show-all)
+ dir nil (and (not (or show-all show-almost-all))
eshell-ls-exclude-hidden
"\\`[^.]") t
;; Asking for UID and GID as
@@ -565,9 +567,9 @@ relative to that directory."
(setq entries
(cl-remove-if
(lambda (entry)
- (member (caar entry) '("." "..")))
+ (member (car entry) '("." "..")))
entries)))
- (when (and (not show-all)
+ (when (and (not (or show-all show-almost-all))
eshell-ls-exclude-regexp)
(while (and entries (string-match eshell-ls-exclude-regexp
(caar entries)))
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el
index 13bdb2e4a03..3a7f46ebe83 100644
--- a/lisp/eshell/em-pred.el
+++ b/lisp/eshell/em-pred.el
@@ -46,6 +46,8 @@
;;; Code:
+(require 'esh-util)
+(require 'esh-arg)
(eval-when-compile (require 'eshell))
;;;###autoload
diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el
index c5429c59bd6..18731121c4e 100644
--- a/lisp/eshell/em-prompt.el
+++ b/lisp/eshell/em-prompt.el
@@ -26,6 +26,7 @@
;;; Code:
+(require 'esh-mode)
(eval-when-compile (require 'eshell))
;;;###autoload
diff --git a/lisp/eshell/em-rebind.el b/lisp/eshell/em-rebind.el
index 42a5c36cab3..341191fc62f 100644
--- a/lisp/eshell/em-rebind.el
+++ b/lisp/eshell/em-rebind.el
@@ -23,6 +23,7 @@
;;; Code:
+(require 'esh-mode)
(eval-when-compile (require 'eshell))
;;;###autoload
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el
index de244a2fb88..aa9038aafb9 100644
--- a/lisp/eshell/em-smart.el
+++ b/lisp/eshell/em-smart.el
@@ -68,6 +68,7 @@
;;; Code:
+(require 'esh-mode)
(eval-when-compile (require 'eshell))
;;;###autoload
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el
index e659bce0568..e5360f2deb4 100644
--- a/lisp/eshell/em-term.el
+++ b/lisp/eshell/em-term.el
@@ -31,6 +31,8 @@
;;; Code:
+(require 'esh-util)
+(require 'esh-ext)
(eval-when-compile (require 'eshell))
(require 'term)
diff --git a/lisp/eshell/em-tramp.el b/lisp/eshell/em-tramp.el
index c60d0e6395f..fb816b76a7d 100644
--- a/lisp/eshell/em-tramp.el
+++ b/lisp/eshell/em-tramp.el
@@ -25,13 +25,13 @@
;;; Code:
+(require 'esh-util)
+
(eval-when-compile
(require 'esh-mode)
(require 'eshell)
(require 'tramp))
-(require 'esh-util)
-
;;;###autoload
(progn
(defgroup eshell-tramp nil
@@ -53,6 +53,8 @@
(append '("su" "sudo")
eshell-complex-commands)))
+(autoload 'eshell-parse-command "esh-cmd")
+
(defun eshell/su (&rest args)
"Alias \"su\" to call TRAMP.
diff --git a/lisp/eshell/em-xtra.el b/lisp/eshell/em-xtra.el
index 7c559772dd3..c4cab522cf2 100644
--- a/lisp/eshell/em-xtra.el
+++ b/lisp/eshell/em-xtra.el
@@ -23,6 +23,7 @@
;;; Code:
+(require 'esh-util)
(eval-when-compile
(require 'eshell)
(require 'pcomplete))
@@ -40,6 +41,8 @@ naturally accessible within Emacs."
;;; Functions:
+(autoload 'eshell-parse-command "esh-cmd")
+
(defun eshell/expr (&rest args)
"Implementation of expr, using the calc package."
(if (not (fboundp 'calc-eval))
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el
index 73f7fc557e5..d7dfd27d8d3 100644
--- a/lisp/eshell/esh-arg.el
+++ b/lisp/eshell/esh-arg.el
@@ -27,7 +27,7 @@
(provide 'esh-arg)
-(eval-when-compile (require 'eshell))
+(require 'esh-mode)
(defgroup eshell-arg nil
"Argument parsing involves transforming the arguments passed on the
diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el
index 3fe48b26e27..c4e4c000bda 100644
--- a/lisp/eshell/esh-ext.el
+++ b/lisp/eshell/esh-ext.el
@@ -33,10 +33,12 @@
(provide 'esh-ext)
+(require 'esh-util)
+
(eval-when-compile
(require 'cl-lib)
+ (require 'esh-io)
(require 'esh-cmd))
-(require 'esh-util)
(require 'esh-opt)
(defgroup eshell-ext nil
@@ -103,6 +105,8 @@ wholly ignored."
:type '(choice file (const nil))
:group 'eshell-ext)
+(autoload 'eshell-parse-command "esh-cmd")
+
(defsubst eshell-invoke-batch-file (&rest args)
"Invoke a .BAT or .CMD file on DOS/Windows systems."
;; since CMD.EXE can't handle forward slashes in the initial
@@ -179,6 +183,8 @@ This bypasses all Lisp functions and aliases."
(error "%s: external command not found"
(substring command 1))))))
+(autoload 'eshell-close-handles "esh-io")
+
(defun eshell-remote-command (command args)
"Insert output from a remote COMMAND, using ARGS.
A remote command is something that executes on a different machine.
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index 66172c8f662..4edb47e4758 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -58,9 +58,11 @@
(provide 'esh-io)
+(require 'esh-arg)
+(require 'esh-util)
+
(eval-when-compile
- (require 'cl-lib)
- (require 'eshell))
+ (require 'cl-lib))
(defgroup eshell-io nil
"Eshell's I/O management code provides a scheme for treating many
@@ -465,6 +467,8 @@ after all printing is over with no argument."
(eshell-print object)
(eshell-print "\n"))
+(autoload 'eshell-output-filter "esh-mode")
+
(defun eshell-output-object-to-target (object target)
"Insert OBJECT into TARGET.
Returns what was actually sent, or nil if nothing was sent."
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index c22d7c16e98..ee857cf20f3 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -60,7 +60,7 @@
(provide 'esh-mode)
-(eval-when-compile (require 'esh-util))
+(require 'esh-util)
(require 'esh-module)
(require 'esh-cmd)
(require 'esh-io)
diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el
index 6a37f97bf20..33625433022 100644
--- a/lisp/eshell/esh-opt.el
+++ b/lisp/eshell/esh-opt.el
@@ -25,7 +25,7 @@
(provide 'esh-opt)
-(eval-when-compile (require 'esh-ext))
+(require 'esh-ext)
;; Unused.
;;; (defgroup eshell-opt nil
diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el
index aa630dc87aa..171d70c0772 100644
--- a/lisp/eshell/esh-proc.el
+++ b/lisp/eshell/esh-proc.el
@@ -25,9 +25,7 @@
(provide 'esh-proc)
-(eval-when-compile
- (require 'eshell)
- (require 'esh-util))
+(require 'esh-cmd)
(defgroup eshell-proc nil
"When Eshell invokes external commands, it always does so
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el
index f9b86219e9b..dd344eb50a2 100644
--- a/lisp/eshell/esh-util.el
+++ b/lisp/eshell/esh-util.el
@@ -605,10 +605,16 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
(autoload 'parse-time-string "parse-time"))
(eval-when-compile
- (require 'ange-ftp nil t)
- (require 'tramp nil t))
+ (require 'ange-ftp nil t)) ; ange-ftp-parse-filename
+
+(defvar tramp-file-name-structure)
+(declare-function ange-ftp-ls "ange-ftp"
+ (file lsargs parse &optional no-error wildcard))
+(declare-function ange-ftp-file-modtime "ange-ftp" (file))
(defun eshell-parse-ange-ls (dir)
+ (require 'ange-ftp)
+ (require 'tramp)
(let ((ange-ftp-name-format
(list (nth 0 tramp-file-name-structure)
(nth 3 tramp-file-name-structure)
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
index 06858c5b986..188b8165248 100644
--- a/lisp/eshell/esh-var.el
+++ b/lisp/eshell/esh-var.el
@@ -107,11 +107,11 @@
(provide 'esh-var)
-(eval-when-compile
- (require 'pcomplete)
- (require 'esh-util)
- (require 'esh-mode))
+(require 'esh-util)
+(require 'esh-cmd)
(require 'esh-opt)
+
+(require 'pcomplete)
(require 'env)
(require 'ring)
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el
index a76adb1fd94..9bdf8b3eb68 100644
--- a/lisp/eshell/eshell.el
+++ b/lisp/eshell/eshell.el
@@ -222,8 +222,7 @@
;; things up.
(eval-when-compile
- (require 'cl-lib)
- (require 'esh-util))
+ (require 'cl-lib))
(require 'esh-util)
(require 'esh-mode)
@@ -318,6 +317,8 @@ buffer selected (or created)."
Modules should use this variable so that they don't clutter
non-interactive sessions, such as when using `eshell-command'.")
+(declare-function eshell-add-input-to-history "em-hist" (input))
+
;;;###autoload
(defun eshell-command (&optional command arg)
"Execute the Eshell command string COMMAND.
@@ -333,7 +334,8 @@ With prefix ARG, insert output into the current buffer at point."
(eshell-return-exits-minibuffer))
(unless command
(setq command (read-from-minibuffer "Emacs shell command: "))
- (eshell-add-input-to-history command))))
+ (if (eshell-using-module 'eshell-hist)
+ (eshell-add-input-to-history command)))))
(unless command
(error "No command specified!"))
;; redirection into the current buffer is achieved by adding an
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 6ec0cf56cc0..f0b23832c64 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,21 @@
+2013-05-23 Glenn Morris <rgm@gnu.org>
+
+ * gnus-util.el (rmail-swap-buffers-maybe)
+ (rmail-maybe-set-message-counters, rmail-count-new-messages)
+ (rmail-summary-exists, rmail-show-message, rmail-summary-displayed)
+ (rmail-pop-to-buffer, rmail-maybe-display-summary): Declare.
+
+ * mm-decode.el: No need to load term when compiling.
+ (term-mode, term-char-mode): Declare.
+
+ * mm-util.el: No need to load jka-compr when compiling.
+ (jka-compr-acceptable-retval-list, jka-compr-make-temp-name): Declare.
+
+ * nnmaildir.el: Require is automatically eval-and-compile.
+ (nnmail): Require at run-time too.
+
+ * registry.el (registry-size): Move definition before use.
+
2013-05-22 Daiki Ueno <ueno@gnu.org>
* mml2015.el (mml2015-epg-sign): Make sure to insert newline after the
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el
index 081bc876b03..0ff8ec89ac1 100644
--- a/lisp/gnus/gnus-spec.el
+++ b/lisp/gnus/gnus-spec.el
@@ -441,7 +441,7 @@ characters when given a pad value."
(delim (aref (match-string 2) 0)))
(if (or (= delim ?\()
(= delim ?\{)
- (= delim ?\u00AB)) ; «
+ (= delim 171)) ; «
(replace-match (concat "\"("
(cond ((= delim ?\() "mouse")
((= delim ?\{) "face")
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 6e2c586dc4b..0f0e9675c71 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1025,6 +1025,15 @@ with potentially long computations."
(declare-function mm-append-to-file "mm-util"
(start end filename &optional codesys inhibit))
+(declare-function rmail-swap-buffers-maybe "rmail" ())
+(declare-function rmail-maybe-set-message-counters "rmail" ())
+(declare-function rmail-count-new-messages "rmail" (&optional nomsg))
+(declare-function rmail-summary-exists "rmail" ())
+(declare-function rmail-show-message "rmail" (&optional n no-summary))
+;; Macroexpansion of rmail-select-summary:
+(declare-function rmail-summary-displayed "rmail" ())
+(declare-function rmail-pop-to-buffer "rmail" (&rest args))
+(declare-function rmail-maybe-display-summary "rmail" ())
(defun gnus-output-to-rmail (filename &optional ask)
"Append the current article to an Rmail file named FILENAME.
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 04f325633ba..b025f7cc601 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -29,8 +29,7 @@
(require 'mail-parse)
(require 'mm-bodies)
-(eval-when-compile (require 'cl)
- (require 'term))
+(eval-when-compile (require 'cl))
(autoload 'gnus-map-function "gnus-util")
(autoload 'gnus-replace-in-string "gnus-util")
@@ -813,6 +812,8 @@ external if displayed external."
(declare-function gnus-configure-windows "gnus-win" (setting &optional force))
(defvar mailcap-mime-extensions) ; mailcap-mime-info autoloads
+(declare-function term-mode "term" ())
+(declare-function term-char-mode "term" ())
(defun mm-display-external (handle method)
"Display HANDLE using METHOD."
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index a49d308b67c..209c2949ea9 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -1508,8 +1508,8 @@ To make this function work with XEmacs, the APEL package is required."
(fboundp 'coding-system-to-mime-charset)))
(coding-system-to-mime-charset coding-system)))))
-(eval-when-compile
- (require 'jka-compr))
+(defvar jka-compr-acceptable-retval-list)
+(declare-function jka-compr-make-temp-name "jka-compr" (&optional local))
(defun mm-decompress-buffer (filename &optional inplace force)
"Decompress buffer's contents, depending on jka-compr.
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el
index 74a693a9c61..7d33e511baa 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -63,17 +63,17 @@
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-(eval-and-compile
- (require 'nnheader)
- (require 'gnus)
- (require 'gnus-util)
- (require 'gnus-range)
- (require 'gnus-start)
- (require 'gnus-int)
- (require 'message))
+(require 'nnheader)
+(require 'gnus)
+(require 'gnus-util)
+(require 'gnus-range)
+(require 'gnus-start)
+(require 'gnus-int)
+(require 'message)
+(require 'nnmail)
+
(eval-when-compile
- (require 'cl)
- (require 'nnmail))
+ (require 'cl))
(defconst nnmaildir-version "Gnus")
diff --git a/lisp/gnus/registry.el b/lisp/gnus/registry.el
index 9830fc30c98..79f07812b2d 100644
--- a/lisp/gnus/registry.el
+++ b/lisp/gnus/registry.el
@@ -249,6 +249,11 @@ With assert non-nil, errors out if the key does not exist already."
(remhash key data)))
keys))
+ (defmethod registry-size ((db registry-db))
+ "Returns the size of the registry-db object THIS.
+This is the key count of the :data slot."
+ (hash-table-count (oref db :data)))
+
(defmethod registry-full ((db registry-db))
"Checks if registry-db THIS is full."
(>= (registry-size db)
@@ -297,11 +302,6 @@ Errors out if the key exists already."
(registry-lookup-secondary-value db tr val value-keys))))
(oref db :data))))))
- (defmethod registry-size ((db registry-db))
- "Returns the size of the registry-db object THIS.
-This is the key count of the :data slot."
- (hash-table-count (oref db :data)))
-
(defmethod registry-prune ((db registry-db) &optional sortfun)
"Prunes the registry-db object THIS.
Removes only entries without the :precious keys if it can,
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 7c3b393873c..16cf0c00bb0 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -150,9 +150,10 @@
;; Check that GVFS is available. D-Bus integration is available since
;; Emacs 23 on some system types. We don't call `dbus-ping', because
;; this would load dbus.el.
-(unless (and (tramp-compat-funcall 'dbus-get-unique-name :session)
- (or (tramp-compat-process-running-p "gvfs-fuse-daemon")
- (tramp-compat-process-running-p "gvfsd-fuse")))
+(unless (ignore-errors
+ (and (tramp-compat-funcall 'dbus-get-unique-name :session)
+ (or (tramp-compat-process-running-p "gvfs-fuse-daemon")
+ (tramp-compat-process-running-p "gvfsd-fuse"))))
(tramp-compat-user-error "Package `tramp-gvfs' not supported"))
(defconst tramp-gvfs-path-mounttracker "/org/gtk/vfs/mounttracker"
diff --git a/lisp/net/xesam.el b/lisp/net/xesam.el
index 461cadd21ad..bcb16fc45da 100644
--- a/lisp/net/xesam.el
+++ b/lisp/net/xesam.el
@@ -264,8 +264,9 @@ fields are supported.")
(declare-function dbus-get-unique-name "dbusbind.c" (bus))
(defvar xesam-dbus-unique-names
- (list (cons :system (dbus-get-unique-name :system))
- (cons :session (dbus-get-unique-name :session)))
+ (ignore-errors
+ (list (cons :system (dbus-get-unique-name :system))
+ (cons :session (dbus-get-unique-name :session))))
"The unique names, under which Emacs is registered at D-Bus.")
(defun xesam-dbus-call-method (&rest args)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 2ea78fc321c..4e345b4bfa9 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -55,7 +55,6 @@
(eval-when-compile
(require 'cl-lib)
- (require 'comint)
(require 'ido))
(defvar inferior-moz-buffer)
@@ -2217,6 +2216,9 @@ marker."
(defvar find-tag-marker-ring) ; etags
+;; etags loads ring.
+(declare-function ring-insert "ring" (ring item))
+
(defun js-find-symbol (&optional arg)
"Read a JavaScript symbol and jump to it.
With a prefix argument, restrict symbols to those from the
@@ -2639,6 +2641,11 @@ with `js--js-encode-value'."
;; order to catch a prompt that's only partially arrived
(save-excursion (forward-line 0) (point))))
+;; Presumably "inferior-moz-process" loads comint.
+(declare-function comint-send-string "comint" (process string))
+(declare-function comint-send-input "comint"
+ (&optional no-newline artificial))
+
(defun js--js-enter-repl ()
(inferior-moz-process) ; called for side-effect
(with-current-buffer inferior-moz-buffer
@@ -2824,6 +2831,8 @@ If nil, the whole Array is treated as a JS symbol.")
(`error (signal 'js-js-error (list (cl-second result))))
(x (error "Unmatched case in js--js-decode-retval: %S" x))))
+(defvar comint-last-input-end)
+
(defun js--js-funcall (function &rest arguments)
"Call the Mozilla function FUNCTION with arguments ARGUMENTS.
If function is a string, look it up as a property on the global
@@ -2996,6 +3005,8 @@ left-to-right."
(defvar js-read-tab-history nil)
+(declare-function ido-chop "ido" (items elem))
+
(defun js--read-tab (prompt)
"Read a Mozilla tab with prompt PROMPT.
Return a cons of (TYPE . OBJECT). TYPE is either 'window or
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index 6469abfe43f..62bef6dfdea 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -770,20 +770,17 @@ startup file, `~/.emacs-octave'."
(when (and inferior-octave-startup-file
(file-exists-p inferior-octave-startup-file))
(format "source (\"%s\");\n" inferior-octave-startup-file))))
- (insert-before-markers
- (concat
- (if inferior-octave-output-list
- (concat (mapconcat
- 'identity inferior-octave-output-list "\n")
- "\n"))
- inferior-octave-output-string))
+ (when inferior-octave-output-list
+ (insert-before-markers
+ (mapconcat 'identity inferior-octave-output-list "\n")))
;; And finally, everything is back to normal.
(set-process-filter proc 'comint-output-filter)
;; Just in case, to be sure a cd in the startup file
;; won't have detrimental effects.
(inferior-octave-resync-dirs)
- ;; A trick to get the prompt highlighted.
+ ;; Generate a proper prompt, which is critical to
+ ;; `comint-history-isearch-backward-regexp'. Bug#14433.
(comint-send-string proc "\n")))
(defvar inferior-octave-completion-table
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el
index bccac0701a0..443472192be 100644
--- a/lisp/progmodes/vera-mode.el
+++ b/lisp/progmodes/vera-mode.el
@@ -1355,6 +1355,11 @@ If `vera-intelligent-tab' is nil, always indent line."
(defvar vera-expand-upper-case nil)
(eval-when-compile (require 'hippie-exp))
+(declare-function he-init-string "hippie-exp" (beg end))
+(declare-function he-dabbrev-beg "hippie-exp" ())
+(declare-function he-string-member "hippie-exp" (str lst &optional trans-case))
+(declare-function he-reset-string "hippie-exp" ())
+(declare-function he-substitute-string "hippie-exp" (str &optional trans-case))
(defun vera-try-expand-abbrev (old)
"Try expanding abbreviations from `vera-abbrev-list'."
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 0735c738f16..49adec69de7 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-23 Glenn Morris <rgm@gnu.org>
+
+ * url.el (mm-dissect-buffer, mm-display-part): Declare.
+
2013-05-22 Glenn Morris <rgm@gnu.org>
* url-handlers.el (mm-save-part-to-file, mm-destroy-parts)
diff --git a/lisp/url/url.el b/lisp/url/url.el
index a1f0415d5fd..43e52ef25cf 100644
--- a/lisp/url/url.el
+++ b/lisp/url/url.el
@@ -290,6 +290,12 @@ no further processing). URL is either a string or a parsed URL."
(get-buffer-process asynch-buffer)))))))
asynch-buffer)))
+;; url-mm-callback called from url-mm, which requires mm-decode.
+(declare-function mm-dissect-buffer "mm-decode"
+ (&optional no-strict-mime loose-mime from))
+(declare-function mm-display-part "mm-decode"
+ (handle &optional no-default force))
+
(defun url-mm-callback (&rest ignored)
(let ((handle (mm-dissect-buffer t)))
(url-mark-buffer-as-dead (current-buffer))
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index b4d986fb036..3e64250d1a7 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -27,10 +27,8 @@
(provide 'ediff-diff)
-(eval-when-compile
- (require 'ediff-util))
-
(require 'ediff-init)
+(require 'ediff-util)
(defgroup ediff-diff nil
"Diff related utilities."
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index dea872bd142..a1f4d4f5d78 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -32,11 +32,8 @@
(defvar ediff-merge-window-share)
(defvar ediff-window-config-saved)
-(eval-when-compile
- (require 'ediff-util))
-;; end pacifier
-
(require 'ediff-init)
+(require 'ediff-util)
(defcustom ediff-quit-merge-hook 'ediff-maybe-save-and-delete-merge
"Hooks to run before quitting a merge job.
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el
index 3e3bc6c9663..58e10819a30 100644
--- a/lisp/vc/ediff-mult.el
+++ b/lisp/vc/ediff-mult.el
@@ -110,14 +110,11 @@
:prefix "ediff-"
:group 'ediff)
-
-;; compiler pacifier
-(eval-when-compile
- (require 'ediff-ptch)
- (require 'ediff))
-;; end pacifier
-
(require 'ediff-init)
+(require 'ediff-diff)
+(require 'ediff-wind)
+(require 'ediff-util)
+
;; meta-buffer
(ediff-defvar-local ediff-meta-buffer nil "")
@@ -1795,6 +1792,14 @@ all marked sessions must be active."
))
(error "The patch buffer wasn't found"))))
+(declare-function ediff-directories-internal "ediff"
+ (dir1 dir2 dir3 regexp action jobname
+ &optional startup-hooks merge-autostore-dir))
+
+(declare-function ediff-directory-revisions-internal "ediff"
+ (dir1 regexp action jobname
+ &optional startup-hooks merge-autostore-dir))
+
;; This function executes in meta buffer. It knows where event happened.
(defun ediff-filegroup-action ()
@@ -2360,6 +2365,8 @@ If this is a session registry buffer then just bury it."
(setq point (point-min)))
point))))
+(autoload 'ediff-patch-file-internal "ediff-ptch")
+
;; this is the action invoked when the user selects a patch from the meta
;; buffer.
(defun ediff-patch-file-form-meta (file &optional startup-hooks)
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el
index 64f4ee4a6ac..e22b31ed048 100644
--- a/lisp/vc/ediff-ptch.el
+++ b/lisp/vc/ediff-ptch.el
@@ -33,12 +33,8 @@
:prefix "ediff-"
:group 'ediff)
-;; compiler pacifier
-(eval-when-compile
- (require 'ediff))
-;; end pacifier
-
(require 'ediff-init)
+(require 'ediff-util)
(defcustom ediff-patch-program "patch"
"Name of the program that applies patches.
@@ -472,6 +468,8 @@ are two possible targets for this patch. However, these files do not exist."
(set-window-buffer ediff-window-B ediff-patch-diagnostics))
(t (display-buffer ediff-patch-diagnostics 'not-this-window))))
+(defvar ediff-use-last-dir)
+
;; prompt for file, get the buffer
(defun ediff-prompt-for-patch-file ()
(let ((dir (cond (ediff-use-last-dir ediff-last-dir-patch)
@@ -642,6 +640,11 @@ optional argument, then use it."
;;; (eq code 0)
;;; (not (eq code 2))))
+(autoload 'ediff-find-file "ediff")
+(declare-function ediff-buffers-internal "ediff"
+ (buf-a buf-b buf-c startup-hooks job-name
+ &optional merge-buffer-file))
+
(defun ediff-patch-file-internal (patch-buf source-filename
&optional startup-hooks)
(setq source-filename (expand-file-name source-filename))
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 81146c0c931..ec227f44e8f 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -42,9 +42,6 @@
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-(eval-when-compile
- (require 'ediff))
-
;; end pacifier
@@ -3477,6 +3474,9 @@ Without an argument, it saves customized diff argument, if available
(if (window-live-p ediff-control-window)
(select-window ediff-control-window)))
+(declare-function ediff-regions-internal "ediff"
+ (buffer-a beg-a end-a buffer-b beg-b end-b
+ startup-hooks job-name word-mode setup-parameters))
(defun ediff-inferior-compare-regions ()
"Compare regions in an active Ediff session.
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el
index 81109906262..124bdbd26df 100644
--- a/lisp/vc/ediff-wind.el
+++ b/lisp/vc/ediff-wind.el
@@ -42,17 +42,16 @@
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-(eval-when-compile
- (require 'ediff-util)
- (require 'ediff-help))
+(require 'ediff-init)
+(require 'ediff-help)
;; end pacifier
-(require 'ediff-init)
;; be careful with ediff-tbar
-(if (featurep 'xemacs)
- (require 'ediff-tbar)
- (defun ediff-compute-toolbar-width () 0))
+(eval-and-compile
+ (if (featurep 'xemacs)
+ (require 'ediff-tbar)
+ (defun ediff-compute-toolbar-width () 0)))
(defgroup ediff-window nil
"Ediff window manipulation."
@@ -358,6 +357,8 @@ into icons, regardless of the window manager."
(ediff-setup-windows-plain-compare
buffer-A buffer-B buffer-C control-buffer)))
+(autoload 'ediff-setup-control-buffer "ediff-util")
+
(defun ediff-setup-windows-plain-merge (buf-A buf-B buf-C control-buffer)
;; skip dedicated and unsplittable frames
(ediff-destroy-control-frame control-buffer)
@@ -908,6 +909,8 @@ into icons, regardless of the window manager."
(not (ediff-frame-has-dedicated-windows (window-frame wind)))
)))
+(declare-function ediff-make-bottom-toolbar "ediff-util" (&optional frame))
+
;; Prepare or refresh control frame
(defun ediff-setup-control-frame (ctl-buffer designated-minibuffer-frame)
(let ((window-min-height 1)
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index 4a4aab75144..7a8f399a6ce 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -116,11 +116,7 @@
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-
-(eval-when-compile
- (require 'dired)
- (require 'ediff-util)
- (require 'ediff-ptch))
+(require 'ediff-util)
;; end pacifier
(require 'ediff-init)
@@ -154,6 +150,11 @@
(ediff-with-current-buffer ediff-buffer-A
(setq buffer-read-only t)))
+(declare-function dired-get-filename "dired"
+ (&optional localp no-error-if-not-filep))
+(declare-function dired-get-marked-files "dired"
+ (&optional localp arg filter distinguish-one-marked))
+
;; Return a plausible default for ediff's first file:
;; In dired, return the file number FILENO (or 0) in the list
;; (all-selected-files, filename under the cursor), where directories are
@@ -1345,6 +1346,12 @@ buffer."
rev1 rev2 ancestor-rev startup-hooks merge-buffer-file)))
;;; Apply patch
+(defvar ediff-last-dir-patch)
+(defvar ediff-patch-default-directory)
+(declare-function ediff-get-patch-buffer "ediff-ptch"
+ (&optional arg patch-buf))
+(declare-function ediff-dispatch-file-patching-job "ediff-ptch"
+ (patch-buf filename &optional startup-hooks))
;;;###autoload
(defun ediff-patch-file (&optional arg patch-buf)
@@ -1373,6 +1380,9 @@ buffer. If odd -- assume it is in a file."
source-dir nil nil (ediff-get-default-file-name)))
(ediff-dispatch-file-patching-job patch-buf source-file)))
+(declare-function ediff-patch-buffer-internal "ediff-ptch"
+ (patch-buf buf-to-patch-name &optional startup-hooks))
+
;;;###autoload
(defun ediff-patch-buffer (&optional arg patch-buf)
"Run Ediff by patching the buffer specified at prompt.
diff --git a/src/ChangeLog b/src/ChangeLog
index 418a89d7b89..ae311d25ee9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
+
+ * casetab.c (init_casetab_once): Fix last change (bug#14424).
+
2013-05-22 Kenichi Handa <handa@gnu.org>
The following changes are to fix the setting of
@@ -12,8 +16,8 @@
(setup_coding_system): Do not initialize coding->head_ascii.
(check_ascii): Do not set coding->eol_seen but update it. Do not
call adjust_coding_eol_type here.
- (detect_coding): Fix detection of BOM for utf-8 and utf-16. If
- the eol-type of CODING is already specified, adjust the eol type
+ (detect_coding): Fix detection of BOM for utf-8 and utf-16.
+ If the eol-type of CODING is already specified, adjust the eol type
of the found coding-system.
(decode_coding_gap): Cancel previous change. Utilize the
character numbers counted by detect_coding_utf_8. Fix detection
diff --git a/src/casetab.c b/src/casetab.c
index 13bed64e4b2..5f3c8db2869 100644
--- a/src/casetab.c
+++ b/src/casetab.c
@@ -286,7 +286,7 @@ init_casetab_once (void)
int c = ((i >= 'A' && i <= 'Z') ? i + ('a' - 'A')
: ((i >= 'a' && i <= 'z') ? i + ('A' - 'a')
: i));
- CHAR_TABLE_SET (up, i, make_number (c));
+ CHAR_TABLE_SET (eqv, i, make_number (c));
}
set_char_table_extras (down, 2, eqv);