aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2013-05-23 21:04:26 +0900
committerKenichi Handa2013-05-23 21:04:26 +0900
commit179a3f11d15cbc6e433f05e03cc7e40fd5ce8362 (patch)
tree1ce423b654c3470460625730f3f42585bf5f770f
parentbc9a50032c477d4276583e66312806540167007d (diff)
parent7764286ea69667380175fe156c4e82bf789a1e09 (diff)
downloademacs-179a3f11d15cbc6e433f05e03cc7e40fd5ce8362.tar.gz
emacs-179a3f11d15cbc6e433f05e03cc7e40fd5ce8362.zip
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 @@
12013-05-23 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-gvfs.el (top):
4 * net/xesam.el (xesam-dbus-unique-names): Suppress D-Bus errors
5 when loading package. (Bug#14447)
6
72013-05-23 Glenn Morris <rgm@gnu.org>
8
9 * progmodes/js.el: No need to load comint when compiling.
10 (ring-insert, comint-send-string, comint-send-input)
11 (comint-last-input-end, ido-chop): Declare.
12
13 * vc/ediff-diff.el, vc/ediff-merg.el: Require ediff-util at run-time.
14 * vc/ediff-mult.el: Adjust requires.
15 (ediff-directories-internal, ediff-directory-revisions-internal)
16 (ediff-patch-file-internal): Declare.
17 * vc/ediff-ptch.el: Adjust requires.
18 (ediff-use-last-dir, ediff-buffers-internal): Declare.
19 (ediff-find-file): Autoload.
20 * vc/ediff-util.el: No need to load ediff when compiling.
21 (ediff-regions-internal): Declare.
22 * vc/ediff-wind.el: Adjust requires.
23 (ediff-compute-toolbar-width): Define when compiling.
24 (ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare.
25 * vc/ediff.el: No need to load dired, ediff-ptch when compiling.
26 (dired-get-filename, dired-get-marked-files)
27 (ediff-last-dir-patch, ediff-patch-default-directory)
28 (ediff-get-patch-buffer, ediff-dispatch-file-patching-job)
29 (ediff-patch-buffer-internal): Declare.
30
31 * emacs-lisp/checkdoc.el: No need to load ispell when compiling.
32 (ispell-process, ispell-buffer-local-words, lm-summary)
33 (lm-section-start, lm-section-end): Declare.
34 (checkdoc-ispell-init): Simplify.
35
36 * progmodes/vera-mode.el (he-init-string, he-dabbrev-beg)
37 (he-string-member, he-reset-string, he-substitute-string): Declare.
38
39 * eshell/em-ls.el: Adjust requires.
40 (eshell-glob-regexp): Declare.
41 * eshell/em-tramp.el: Adjust requires.
42 (eshell-parse-command): Autoload.
43 * eshell/em-xtra.el: Adjust requires.
44 (eshell-parse-command): Autoload.
45 * eshell/esh-ext.el: Adjust requires.
46 (eshell-parse-command, eshell-close-handles): Autoload.
47 * eshell/esh-io.el: Adjust requires.
48 (eshell-output-filter): Autoload.
49 * eshell/esh-util.el: No need to load tramp when compiling.
50 (tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime):
51 Declare.
52 (eshell-parse-ange-ls): Require ange-ftp and tramp.
53 * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el:
54 * eshell/em-cmpl.el, eshell/em-glob.el, eshell/em-pred.el:
55 * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-smart.el:
56 * eshell/em-term.el, eshell/esh-arg.el, eshell/esh-mode.el:
57 * eshell/esh-opt.el, eshell/esh-proc.el:
58 * eshell/esh-var.el: Adjust requires.
59 * eshell/eshell.el: Do not require esh-util twice.
60 (eshell-add-input-to-history): Declare.
61 (eshell-command): Check history module is active before using it.
62
63 * eshell/em-ls.el (eshell-ls-dir): Fix -A handling.
64
652013-05-22 Leo Liu <sdl.web@gmail.com>
66
67 * progmodes/octave.el (inferior-octave-startup): Fix bug#14433.
68
12013-05-22 Michael Albinus <michael.albinus@gmx.de> 692013-05-22 Michael Albinus <michael.albinus@gmx.de>
2 70
3 * autorevert.el (auto-revert-notify-add-watch) 71 * autorevert.el (auto-revert-notify-add-watch)
@@ -1311,7 +1379,7 @@
1311 * net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst. 1379 * net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst.
1312 (tramp-local-coding-commands, tramp-remote-coding-commands): Use them. 1380 (tramp-local-coding-commands, tramp-remote-coding-commands): Use them.
1313 (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region): 1381 (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
1314 (tramp-find-inline-compress):Improve traces. 1382 (tramp-find-inline-compress): Improve traces.
1315 (tramp-maybe-send-script): Check for Perl binary. 1383 (tramp-maybe-send-script): Check for Perl binary.
1316 (tramp-get-inline-coding): Do not redirect STDOUT for local decoding. 1384 (tramp-get-inline-coding): Do not redirect STDOUT for local decoding.
1317 1385
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."
2066 2066
2067;;; Ispell engine 2067;;; Ispell engine
2068;; 2068;;
2069(eval-when-compile (require 'ispell)) 2069(defvar ispell-process)
2070(declare-function ispell-buffer-local-words "ispell" ())
2070 2071
2071(defun checkdoc-ispell-init () 2072(defun checkdoc-ispell-init ()
2072 "Initialize Ispell process (default version) with Lisp words. 2073 "Initialize Ispell process (default version) with Lisp words.
@@ -2074,19 +2075,14 @@ The words used are from `checkdoc-ispell-lisp-words'. If `ispell'
2074cannot be loaded, then set `checkdoc-spellcheck-documentation-flag' to 2075cannot be loaded, then set `checkdoc-spellcheck-documentation-flag' to
2075nil." 2076nil."
2076 (require 'ispell) 2077 (require 'ispell)
2077 (if (not (symbol-value 'ispell-process)) ;Silence byteCompiler 2078 (unless ispell-process
2078 (condition-case nil 2079 (condition-case nil
2079 (progn 2080 (progn
2080 (ispell-buffer-local-words) 2081 (ispell-buffer-local-words)
2081 ;; This code copied in part from ispell.el Emacs 19.34 2082 ;; This code copied in part from ispell.el Emacs 19.34
2082 (let ((w checkdoc-ispell-lisp-words)) 2083 (dolist (w checkdoc-ispell-lisp-words)
2083 (while w 2084 (process-send-string ispell-process (concat "@" w "\n"))))
2084 (process-send-string 2085 (error (setq checkdoc-spellcheck-documentation-flag nil)))))
2085 ;; Silence byte compiler
2086 (symbol-value 'ispell-process)
2087 (concat "@" (car w) "\n"))
2088 (setq w (cdr w)))))
2089 (error (setq checkdoc-spellcheck-documentation-flag nil)))))
2090 2086
2091(defun checkdoc-ispell-docstring-engine (end) 2087(defun checkdoc-ispell-docstring-engine (end)
2092 "Run the Ispell tools on the doc string between point and END. 2088 "Run the Ispell tools on the doc string between point and END.
@@ -2187,14 +2183,13 @@ News agents may remove it"
2187 2183
2188;;; Comment checking engine 2184;;; Comment checking engine
2189;; 2185;;
2190(eval-when-compile
2191 ;; We must load this to:
2192 ;; a) get symbols for compile and
2193 ;; b) determine if we have lm-history symbol which doesn't always exist
2194 (require 'lisp-mnt))
2195
2196(defvar generate-autoload-cookie) 2186(defvar generate-autoload-cookie)
2197 2187
2188(eval-when-compile (require 'lisp-mnt)) ; expand silly defsubsts
2189(declare-function lm-summary "lisp-mnt" (&optional file))
2190(declare-function lm-section-start "lisp-mnt" (header &optional after))
2191(declare-function lm-section-end "lisp-mnt" (header))
2192
2198(defun checkdoc-file-comments-engine () 2193(defun checkdoc-file-comments-engine ()
2199 "Return a message list if this file does not match the Emacs standard. 2194 "Return a message list if this file does not match the Emacs standard.
2200This checks for style only, such as the first line, Commentary:, 2195This 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 @@
90 90
91;;; Code: 91;;; Code:
92 92
93(eval-when-compile
94 (require 'esh-util))
95(require 'eshell) 93(require 'eshell)
96 94
97;;;###autoload 95;;;###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 @@
39;;; Code: 39;;; Code:
40 40
41(eval-when-compile 41(eval-when-compile
42 (require 'cl-lib) 42 (require 'cl-lib))
43 (require 'esh-mode)
44 (require 'eshell))
45 43
46(require 'esh-util) 44(require 'esh-util)
45(require 'esh-mode)
46(require 'eshell)
47 47
48;;;###autoload 48;;;###autoload
49(progn 49(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 @@
59 59
60;;; Code: 60;;; Code:
61 61
62(eval-when-compile 62(require 'esh-util)
63 (require 'esh-util))
64
65(require 'eshell) 63(require 'eshell)
66(require 'esh-opt) 64(require 'esh-opt)
67 65
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 @@
70;;; Code: 70;;; Code:
71(require 'pcomplete) 71(require 'pcomplete)
72 72
73(require 'esh-mode)
74(require 'esh-util)
75
73(eval-when-compile 76(eval-when-compile
74 (require 'cl-lib) 77 (require 'cl-lib)
75 (require 'eshell)) 78 (require 'eshell))
76(require 'esh-util)
77 79
78;;;###autoload 80;;;###autoload
79(progn 81(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 @@
49 49
50;;; Code: 50;;; Code:
51 51
52(eval-when-compile (require 'eshell))
53(require 'esh-util) 52(require 'esh-util)
53(eval-when-compile (require 'eshell))
54 54
55;;;###autoload 55;;;###autoload
56(progn 56(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 @@
26 26
27;;; Code: 27;;; Code:
28 28
29(eval-when-compile (require 'eshell))
30(require 'cl-lib) 29(require 'cl-lib)
31(require 'esh-util) 30(require 'esh-util)
32(require 'esh-opt) 31(require 'esh-opt)
32(eval-when-compile (require 'eshell))
33 33
34;;;###autoload 34;;;###autoload
35(progn 35(progn
@@ -334,6 +334,8 @@ instead."
334(defvar ange-cache) 334(defvar ange-cache)
335(defvar dired-flag) 335(defvar dired-flag)
336 336
337(declare-function eshell-glob-regexp "em-glob" (pattern))
338
337(defun eshell-do-ls (&rest args) 339(defun eshell-do-ls (&rest args)
338 "Implementation of \"ls\" in Lisp, passing ARGS." 340 "Implementation of \"ls\" in Lisp, passing ARGS."
339 (funcall flush-func -1) 341 (funcall flush-func -1)
@@ -552,7 +554,7 @@ relative to that directory."
552 (expand-file-name dir))) 554 (expand-file-name dir)))
553 (cdr dirinfo))) ":\n")) 555 (cdr dirinfo))) ":\n"))
554 (let ((entries (eshell-directory-files-and-attributes 556 (let ((entries (eshell-directory-files-and-attributes
555 dir nil (and (not show-all) 557 dir nil (and (not (or show-all show-almost-all))
556 eshell-ls-exclude-hidden 558 eshell-ls-exclude-hidden
557 "\\`[^.]") t 559 "\\`[^.]") t
558 ;; Asking for UID and GID as 560 ;; Asking for UID and GID as
@@ -565,9 +567,9 @@ relative to that directory."
565 (setq entries 567 (setq entries
566 (cl-remove-if 568 (cl-remove-if
567 (lambda (entry) 569 (lambda (entry)
568 (member (caar entry) '("." ".."))) 570 (member (car entry) '("." "..")))
569 entries))) 571 entries)))
570 (when (and (not show-all) 572 (when (and (not (or show-all show-almost-all))
571 eshell-ls-exclude-regexp) 573 eshell-ls-exclude-regexp)
572 (while (and entries (string-match eshell-ls-exclude-regexp 574 (while (and entries (string-match eshell-ls-exclude-regexp
573 (caar entries))) 575 (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 @@
46 46
47;;; Code: 47;;; Code:
48 48
49(require 'esh-util)
50(require 'esh-arg)
49(eval-when-compile (require 'eshell)) 51(eval-when-compile (require 'eshell))
50 52
51;;;###autoload 53;;;###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 @@
26 26
27;;; Code: 27;;; Code:
28 28
29(require 'esh-mode)
29(eval-when-compile (require 'eshell)) 30(eval-when-compile (require 'eshell))
30 31
31;;;###autoload 32;;;###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 @@
23 23
24;;; Code: 24;;; Code:
25 25
26(require 'esh-mode)
26(eval-when-compile (require 'eshell)) 27(eval-when-compile (require 'eshell))
27 28
28;;;###autoload 29;;;###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 @@
68 68
69;;; Code: 69;;; Code:
70 70
71(require 'esh-mode)
71(eval-when-compile (require 'eshell)) 72(eval-when-compile (require 'eshell))
72 73
73;;;###autoload 74;;;###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 @@
31 31
32;;; Code: 32;;; Code:
33 33
34(require 'esh-util)
35(require 'esh-ext)
34(eval-when-compile (require 'eshell)) 36(eval-when-compile (require 'eshell))
35(require 'term) 37(require 'term)
36 38
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 @@
25 25
26;;; Code: 26;;; Code:
27 27
28(require 'esh-util)
29
28(eval-when-compile 30(eval-when-compile
29 (require 'esh-mode) 31 (require 'esh-mode)
30 (require 'eshell) 32 (require 'eshell)
31 (require 'tramp)) 33 (require 'tramp))
32 34
33(require 'esh-util)
34
35;;;###autoload 35;;;###autoload
36(progn 36(progn
37 (defgroup eshell-tramp nil 37 (defgroup eshell-tramp nil
@@ -53,6 +53,8 @@
53 (append '("su" "sudo") 53 (append '("su" "sudo")
54 eshell-complex-commands))) 54 eshell-complex-commands)))
55 55
56(autoload 'eshell-parse-command "esh-cmd")
57
56(defun eshell/su (&rest args) 58(defun eshell/su (&rest args)
57 "Alias \"su\" to call TRAMP. 59 "Alias \"su\" to call TRAMP.
58 60
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 @@
23 23
24;;; Code: 24;;; Code:
25 25
26(require 'esh-util)
26(eval-when-compile 27(eval-when-compile
27 (require 'eshell) 28 (require 'eshell)
28 (require 'pcomplete)) 29 (require 'pcomplete))
@@ -40,6 +41,8 @@ naturally accessible within Emacs."
40 41
41;;; Functions: 42;;; Functions:
42 43
44(autoload 'eshell-parse-command "esh-cmd")
45
43(defun eshell/expr (&rest args) 46(defun eshell/expr (&rest args)
44 "Implementation of expr, using the calc package." 47 "Implementation of expr, using the calc package."
45 (if (not (fboundp 'calc-eval)) 48 (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 @@
27 27
28(provide 'esh-arg) 28(provide 'esh-arg)
29 29
30(eval-when-compile (require 'eshell)) 30(require 'esh-mode)
31 31
32(defgroup eshell-arg nil 32(defgroup eshell-arg nil
33 "Argument parsing involves transforming the arguments passed on the 33 "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 @@
33 33
34(provide 'esh-ext) 34(provide 'esh-ext)
35 35
36(require 'esh-util)
37
36(eval-when-compile 38(eval-when-compile
37 (require 'cl-lib) 39 (require 'cl-lib)
40 (require 'esh-io)
38 (require 'esh-cmd)) 41 (require 'esh-cmd))
39(require 'esh-util)
40(require 'esh-opt) 42(require 'esh-opt)
41 43
42(defgroup eshell-ext nil 44(defgroup eshell-ext nil
@@ -103,6 +105,8 @@ wholly ignored."
103 :type '(choice file (const nil)) 105 :type '(choice file (const nil))
104 :group 'eshell-ext) 106 :group 'eshell-ext)
105 107
108(autoload 'eshell-parse-command "esh-cmd")
109
106(defsubst eshell-invoke-batch-file (&rest args) 110(defsubst eshell-invoke-batch-file (&rest args)
107 "Invoke a .BAT or .CMD file on DOS/Windows systems." 111 "Invoke a .BAT or .CMD file on DOS/Windows systems."
108 ;; since CMD.EXE can't handle forward slashes in the initial 112 ;; since CMD.EXE can't handle forward slashes in the initial
@@ -179,6 +183,8 @@ This bypasses all Lisp functions and aliases."
179 (error "%s: external command not found" 183 (error "%s: external command not found"
180 (substring command 1)))))) 184 (substring command 1))))))
181 185
186(autoload 'eshell-close-handles "esh-io")
187
182(defun eshell-remote-command (command args) 188(defun eshell-remote-command (command args)
183 "Insert output from a remote COMMAND, using ARGS. 189 "Insert output from a remote COMMAND, using ARGS.
184A remote command is something that executes on a different machine. 190A 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 @@
58 58
59(provide 'esh-io) 59(provide 'esh-io)
60 60
61(require 'esh-arg)
62(require 'esh-util)
63
61(eval-when-compile 64(eval-when-compile
62 (require 'cl-lib) 65 (require 'cl-lib))
63 (require 'eshell))
64 66
65(defgroup eshell-io nil 67(defgroup eshell-io nil
66 "Eshell's I/O management code provides a scheme for treating many 68 "Eshell's I/O management code provides a scheme for treating many
@@ -465,6 +467,8 @@ after all printing is over with no argument."
465 (eshell-print object) 467 (eshell-print object)
466 (eshell-print "\n")) 468 (eshell-print "\n"))
467 469
470(autoload 'eshell-output-filter "esh-mode")
471
468(defun eshell-output-object-to-target (object target) 472(defun eshell-output-object-to-target (object target)
469 "Insert OBJECT into TARGET. 473 "Insert OBJECT into TARGET.
470Returns what was actually sent, or nil if nothing was sent." 474Returns 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 @@
60 60
61(provide 'esh-mode) 61(provide 'esh-mode)
62 62
63(eval-when-compile (require 'esh-util)) 63(require 'esh-util)
64(require 'esh-module) 64(require 'esh-module)
65(require 'esh-cmd) 65(require 'esh-cmd)
66(require 'esh-io) 66(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 @@
25 25
26(provide 'esh-opt) 26(provide 'esh-opt)
27 27
28(eval-when-compile (require 'esh-ext)) 28(require 'esh-ext)
29 29
30;; Unused. 30;; Unused.
31;;; (defgroup eshell-opt nil 31;;; (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 @@
25 25
26(provide 'esh-proc) 26(provide 'esh-proc)
27 27
28(eval-when-compile 28(require 'esh-cmd)
29 (require 'eshell)
30 (require 'esh-util))
31 29
32(defgroup eshell-proc nil 30(defgroup eshell-proc nil
33 "When Eshell invokes external commands, it always does so 31 "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.
605 (autoload 'parse-time-string "parse-time")) 605 (autoload 'parse-time-string "parse-time"))
606 606
607(eval-when-compile 607(eval-when-compile
608 (require 'ange-ftp nil t) 608 (require 'ange-ftp nil t)) ; ange-ftp-parse-filename
609 (require 'tramp nil t)) 609
610(defvar tramp-file-name-structure)
611(declare-function ange-ftp-ls "ange-ftp"
612 (file lsargs parse &optional no-error wildcard))
613(declare-function ange-ftp-file-modtime "ange-ftp" (file))
610 614
611(defun eshell-parse-ange-ls (dir) 615(defun eshell-parse-ange-ls (dir)
616 (require 'ange-ftp)
617 (require 'tramp)
612 (let ((ange-ftp-name-format 618 (let ((ange-ftp-name-format
613 (list (nth 0 tramp-file-name-structure) 619 (list (nth 0 tramp-file-name-structure)
614 (nth 3 tramp-file-name-structure) 620 (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 @@
107 107
108(provide 'esh-var) 108(provide 'esh-var)
109 109
110(eval-when-compile 110(require 'esh-util)
111 (require 'pcomplete) 111(require 'esh-cmd)
112 (require 'esh-util)
113 (require 'esh-mode))
114(require 'esh-opt) 112(require 'esh-opt)
113
114(require 'pcomplete)
115(require 'env) 115(require 'env)
116(require 'ring) 116(require 'ring)
117 117
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 @@
222;; things up. 222;; things up.
223 223
224(eval-when-compile 224(eval-when-compile
225 (require 'cl-lib) 225 (require 'cl-lib))
226 (require 'esh-util))
227(require 'esh-util) 226(require 'esh-util)
228(require 'esh-mode) 227(require 'esh-mode)
229 228
@@ -318,6 +317,8 @@ buffer selected (or created)."
318Modules should use this variable so that they don't clutter 317Modules should use this variable so that they don't clutter
319non-interactive sessions, such as when using `eshell-command'.") 318non-interactive sessions, such as when using `eshell-command'.")
320 319
320(declare-function eshell-add-input-to-history "em-hist" (input))
321
321;;;###autoload 322;;;###autoload
322(defun eshell-command (&optional command arg) 323(defun eshell-command (&optional command arg)
323 "Execute the Eshell command string COMMAND. 324 "Execute the Eshell command string COMMAND.
@@ -333,7 +334,8 @@ With prefix ARG, insert output into the current buffer at point."
333 (eshell-return-exits-minibuffer)) 334 (eshell-return-exits-minibuffer))
334 (unless command 335 (unless command
335 (setq command (read-from-minibuffer "Emacs shell command: ")) 336 (setq command (read-from-minibuffer "Emacs shell command: "))
336 (eshell-add-input-to-history command)))) 337 (if (eshell-using-module 'eshell-hist)
338 (eshell-add-input-to-history command)))))
337 (unless command 339 (unless command
338 (error "No command specified!")) 340 (error "No command specified!"))
339 ;; redirection into the current buffer is achieved by adding an 341 ;; 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 @@
12013-05-23 Glenn Morris <rgm@gnu.org>
2
3 * gnus-util.el (rmail-swap-buffers-maybe)
4 (rmail-maybe-set-message-counters, rmail-count-new-messages)
5 (rmail-summary-exists, rmail-show-message, rmail-summary-displayed)
6 (rmail-pop-to-buffer, rmail-maybe-display-summary): Declare.
7
8 * mm-decode.el: No need to load term when compiling.
9 (term-mode, term-char-mode): Declare.
10
11 * mm-util.el: No need to load jka-compr when compiling.
12 (jka-compr-acceptable-retval-list, jka-compr-make-temp-name): Declare.
13
14 * nnmaildir.el: Require is automatically eval-and-compile.
15 (nnmail): Require at run-time too.
16
17 * registry.el (registry-size): Move definition before use.
18
12013-05-22 Daiki Ueno <ueno@gnu.org> 192013-05-22 Daiki Ueno <ueno@gnu.org>
2 20
3 * mml2015.el (mml2015-epg-sign): Make sure to insert newline after the 21 * 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."
441 (delim (aref (match-string 2) 0))) 441 (delim (aref (match-string 2) 0)))
442 (if (or (= delim ?\() 442 (if (or (= delim ?\()
443 (= delim ?\{) 443 (= delim ?\{)
444 (= delim ?\u00AB)) ; « 444 (= delim 171)) ; «
445 (replace-match (concat "\"(" 445 (replace-match (concat "\"("
446 (cond ((= delim ?\() "mouse") 446 (cond ((= delim ?\() "mouse")
447 ((= delim ?\{) "face") 447 ((= 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."
1025 1025
1026(declare-function mm-append-to-file "mm-util" 1026(declare-function mm-append-to-file "mm-util"
1027 (start end filename &optional codesys inhibit)) 1027 (start end filename &optional codesys inhibit))
1028(declare-function rmail-swap-buffers-maybe "rmail" ())
1029(declare-function rmail-maybe-set-message-counters "rmail" ())
1030(declare-function rmail-count-new-messages "rmail" (&optional nomsg))
1031(declare-function rmail-summary-exists "rmail" ())
1032(declare-function rmail-show-message "rmail" (&optional n no-summary))
1033;; Macroexpansion of rmail-select-summary:
1034(declare-function rmail-summary-displayed "rmail" ())
1035(declare-function rmail-pop-to-buffer "rmail" (&rest args))
1036(declare-function rmail-maybe-display-summary "rmail" ())
1028 1037
1029(defun gnus-output-to-rmail (filename &optional ask) 1038(defun gnus-output-to-rmail (filename &optional ask)
1030 "Append the current article to an Rmail file named FILENAME. 1039 "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 @@
29 29
30(require 'mail-parse) 30(require 'mail-parse)
31(require 'mm-bodies) 31(require 'mm-bodies)
32(eval-when-compile (require 'cl) 32(eval-when-compile (require 'cl))
33 (require 'term))
34 33
35(autoload 'gnus-map-function "gnus-util") 34(autoload 'gnus-map-function "gnus-util")
36(autoload 'gnus-replace-in-string "gnus-util") 35(autoload 'gnus-replace-in-string "gnus-util")
@@ -813,6 +812,8 @@ external if displayed external."
813 812
814(declare-function gnus-configure-windows "gnus-win" (setting &optional force)) 813(declare-function gnus-configure-windows "gnus-win" (setting &optional force))
815(defvar mailcap-mime-extensions) ; mailcap-mime-info autoloads 814(defvar mailcap-mime-extensions) ; mailcap-mime-info autoloads
815(declare-function term-mode "term" ())
816(declare-function term-char-mode "term" ())
816 817
817(defun mm-display-external (handle method) 818(defun mm-display-external (handle method)
818 "Display HANDLE using METHOD." 819 "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."
1508 (fboundp 'coding-system-to-mime-charset))) 1508 (fboundp 'coding-system-to-mime-charset)))
1509 (coding-system-to-mime-charset coding-system))))) 1509 (coding-system-to-mime-charset coding-system)))))
1510 1510
1511(eval-when-compile 1511(defvar jka-compr-acceptable-retval-list)
1512 (require 'jka-compr)) 1512(declare-function jka-compr-make-temp-name "jka-compr" (&optional local))
1513 1513
1514(defun mm-decompress-buffer (filename &optional inplace force) 1514(defun mm-decompress-buffer (filename &optional inplace force)
1515 "Decompress buffer's contents, depending on jka-compr. 1515 "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 @@
63(eval-and-compile 63(eval-and-compile
64 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 64 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
65 65
66(eval-and-compile 66(require 'nnheader)
67 (require 'nnheader) 67(require 'gnus)
68 (require 'gnus) 68(require 'gnus-util)
69 (require 'gnus-util) 69(require 'gnus-range)
70 (require 'gnus-range) 70(require 'gnus-start)
71 (require 'gnus-start) 71(require 'gnus-int)
72 (require 'gnus-int) 72(require 'message)
73 (require 'message)) 73(require 'nnmail)
74
74(eval-when-compile 75(eval-when-compile
75 (require 'cl) 76 (require 'cl))
76 (require 'nnmail))
77 77
78(defconst nnmaildir-version "Gnus") 78(defconst nnmaildir-version "Gnus")
79 79
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."
249 (remhash key data))) 249 (remhash key data)))
250 keys)) 250 keys))
251 251
252 (defmethod registry-size ((db registry-db))
253 "Returns the size of the registry-db object THIS.
254This is the key count of the :data slot."
255 (hash-table-count (oref db :data)))
256
252 (defmethod registry-full ((db registry-db)) 257 (defmethod registry-full ((db registry-db))
253 "Checks if registry-db THIS is full." 258 "Checks if registry-db THIS is full."
254 (>= (registry-size db) 259 (>= (registry-size db)
@@ -297,11 +302,6 @@ Errors out if the key exists already."
297 (registry-lookup-secondary-value db tr val value-keys)))) 302 (registry-lookup-secondary-value db tr val value-keys))))
298 (oref db :data)))))) 303 (oref db :data))))))
299 304
300 (defmethod registry-size ((db registry-db))
301 "Returns the size of the registry-db object THIS.
302This is the key count of the :data slot."
303 (hash-table-count (oref db :data)))
304
305 (defmethod registry-prune ((db registry-db) &optional sortfun) 305 (defmethod registry-prune ((db registry-db) &optional sortfun)
306 "Prunes the registry-db object THIS. 306 "Prunes the registry-db object THIS.
307Removes only entries without the :precious keys if it can, 307Removes 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 @@
150;; Check that GVFS is available. D-Bus integration is available since 150;; Check that GVFS is available. D-Bus integration is available since
151;; Emacs 23 on some system types. We don't call `dbus-ping', because 151;; Emacs 23 on some system types. We don't call `dbus-ping', because
152;; this would load dbus.el. 152;; this would load dbus.el.
153(unless (and (tramp-compat-funcall 'dbus-get-unique-name :session) 153(unless (ignore-errors
154 (or (tramp-compat-process-running-p "gvfs-fuse-daemon") 154 (and (tramp-compat-funcall 'dbus-get-unique-name :session)
155 (tramp-compat-process-running-p "gvfsd-fuse"))) 155 (or (tramp-compat-process-running-p "gvfs-fuse-daemon")
156 (tramp-compat-process-running-p "gvfsd-fuse"))))
156 (tramp-compat-user-error "Package `tramp-gvfs' not supported")) 157 (tramp-compat-user-error "Package `tramp-gvfs' not supported"))
157 158
158(defconst tramp-gvfs-path-mounttracker "/org/gtk/vfs/mounttracker" 159(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.")
264(declare-function dbus-get-unique-name "dbusbind.c" (bus)) 264(declare-function dbus-get-unique-name "dbusbind.c" (bus))
265 265
266(defvar xesam-dbus-unique-names 266(defvar xesam-dbus-unique-names
267 (list (cons :system (dbus-get-unique-name :system)) 267 (ignore-errors
268 (cons :session (dbus-get-unique-name :session))) 268 (list (cons :system (dbus-get-unique-name :system))
269 (cons :session (dbus-get-unique-name :session))))
269 "The unique names, under which Emacs is registered at D-Bus.") 270 "The unique names, under which Emacs is registered at D-Bus.")
270 271
271(defun xesam-dbus-call-method (&rest args) 272(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 @@
55 55
56(eval-when-compile 56(eval-when-compile
57 (require 'cl-lib) 57 (require 'cl-lib)
58 (require 'comint)
59 (require 'ido)) 58 (require 'ido))
60 59
61(defvar inferior-moz-buffer) 60(defvar inferior-moz-buffer)
@@ -2217,6 +2216,9 @@ marker."
2217 2216
2218(defvar find-tag-marker-ring) ; etags 2217(defvar find-tag-marker-ring) ; etags
2219 2218
2219;; etags loads ring.
2220(declare-function ring-insert "ring" (ring item))
2221
2220(defun js-find-symbol (&optional arg) 2222(defun js-find-symbol (&optional arg)
2221 "Read a JavaScript symbol and jump to it. 2223 "Read a JavaScript symbol and jump to it.
2222With a prefix argument, restrict symbols to those from the 2224With a prefix argument, restrict symbols to those from the
@@ -2639,6 +2641,11 @@ with `js--js-encode-value'."
2639 ;; order to catch a prompt that's only partially arrived 2641 ;; order to catch a prompt that's only partially arrived
2640 (save-excursion (forward-line 0) (point)))) 2642 (save-excursion (forward-line 0) (point))))
2641 2643
2644;; Presumably "inferior-moz-process" loads comint.
2645(declare-function comint-send-string "comint" (process string))
2646(declare-function comint-send-input "comint"
2647 (&optional no-newline artificial))
2648
2642(defun js--js-enter-repl () 2649(defun js--js-enter-repl ()
2643 (inferior-moz-process) ; called for side-effect 2650 (inferior-moz-process) ; called for side-effect
2644 (with-current-buffer inferior-moz-buffer 2651 (with-current-buffer inferior-moz-buffer
@@ -2824,6 +2831,8 @@ If nil, the whole Array is treated as a JS symbol.")
2824 (`error (signal 'js-js-error (list (cl-second result)))) 2831 (`error (signal 'js-js-error (list (cl-second result))))
2825 (x (error "Unmatched case in js--js-decode-retval: %S" x)))) 2832 (x (error "Unmatched case in js--js-decode-retval: %S" x))))
2826 2833
2834(defvar comint-last-input-end)
2835
2827(defun js--js-funcall (function &rest arguments) 2836(defun js--js-funcall (function &rest arguments)
2828 "Call the Mozilla function FUNCTION with arguments ARGUMENTS. 2837 "Call the Mozilla function FUNCTION with arguments ARGUMENTS.
2829If function is a string, look it up as a property on the global 2838If function is a string, look it up as a property on the global
@@ -2996,6 +3005,8 @@ left-to-right."
2996 3005
2997(defvar js-read-tab-history nil) 3006(defvar js-read-tab-history nil)
2998 3007
3008(declare-function ido-chop "ido" (items elem))
3009
2999(defun js--read-tab (prompt) 3010(defun js--read-tab (prompt)
3000 "Read a Mozilla tab with prompt PROMPT. 3011 "Read a Mozilla tab with prompt PROMPT.
3001Return a cons of (TYPE . OBJECT). TYPE is either 'window or 3012Return 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'."
770 (when (and inferior-octave-startup-file 770 (when (and inferior-octave-startup-file
771 (file-exists-p inferior-octave-startup-file)) 771 (file-exists-p inferior-octave-startup-file))
772 (format "source (\"%s\");\n" inferior-octave-startup-file)))) 772 (format "source (\"%s\");\n" inferior-octave-startup-file))))
773 (insert-before-markers 773 (when inferior-octave-output-list
774 (concat 774 (insert-before-markers
775 (if inferior-octave-output-list 775 (mapconcat 'identity inferior-octave-output-list "\n")))
776 (concat (mapconcat
777 'identity inferior-octave-output-list "\n")
778 "\n"))
779 inferior-octave-output-string))
780 776
781 ;; And finally, everything is back to normal. 777 ;; And finally, everything is back to normal.
782 (set-process-filter proc 'comint-output-filter) 778 (set-process-filter proc 'comint-output-filter)
783 ;; Just in case, to be sure a cd in the startup file 779 ;; Just in case, to be sure a cd in the startup file
784 ;; won't have detrimental effects. 780 ;; won't have detrimental effects.
785 (inferior-octave-resync-dirs) 781 (inferior-octave-resync-dirs)
786 ;; A trick to get the prompt highlighted. 782 ;; Generate a proper prompt, which is critical to
783 ;; `comint-history-isearch-backward-regexp'. Bug#14433.
787 (comint-send-string proc "\n"))) 784 (comint-send-string proc "\n")))
788 785
789(defvar inferior-octave-completion-table 786(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."
1355(defvar vera-expand-upper-case nil) 1355(defvar vera-expand-upper-case nil)
1356 1356
1357(eval-when-compile (require 'hippie-exp)) 1357(eval-when-compile (require 'hippie-exp))
1358(declare-function he-init-string "hippie-exp" (beg end))
1359(declare-function he-dabbrev-beg "hippie-exp" ())
1360(declare-function he-string-member "hippie-exp" (str lst &optional trans-case))
1361(declare-function he-reset-string "hippie-exp" ())
1362(declare-function he-substitute-string "hippie-exp" (str &optional trans-case))
1358 1363
1359(defun vera-try-expand-abbrev (old) 1364(defun vera-try-expand-abbrev (old)
1360 "Try expanding abbreviations from `vera-abbrev-list'." 1365 "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 @@
12013-05-23 Glenn Morris <rgm@gnu.org>
2
3 * url.el (mm-dissect-buffer, mm-display-part): Declare.
4
12013-05-22 Glenn Morris <rgm@gnu.org> 52013-05-22 Glenn Morris <rgm@gnu.org>
2 6
3 * url-handlers.el (mm-save-part-to-file, mm-destroy-parts) 7 * 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."
290 (get-buffer-process asynch-buffer))))))) 290 (get-buffer-process asynch-buffer)))))))
291 asynch-buffer))) 291 asynch-buffer)))
292 292
293;; url-mm-callback called from url-mm, which requires mm-decode.
294(declare-function mm-dissect-buffer "mm-decode"
295 (&optional no-strict-mime loose-mime from))
296(declare-function mm-display-part "mm-decode"
297 (handle &optional no-default force))
298
293(defun url-mm-callback (&rest ignored) 299(defun url-mm-callback (&rest ignored)
294 (let ((handle (mm-dissect-buffer t))) 300 (let ((handle (mm-dissect-buffer t)))
295 (url-mark-buffer-as-dead (current-buffer)) 301 (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 @@
27 27
28(provide 'ediff-diff) 28(provide 'ediff-diff)
29 29
30(eval-when-compile
31 (require 'ediff-util))
32
33(require 'ediff-init) 30(require 'ediff-init)
31(require 'ediff-util)
34 32
35(defgroup ediff-diff nil 33(defgroup ediff-diff nil
36 "Diff related utilities." 34 "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 @@
32(defvar ediff-merge-window-share) 32(defvar ediff-merge-window-share)
33(defvar ediff-window-config-saved) 33(defvar ediff-window-config-saved)
34 34
35(eval-when-compile
36 (require 'ediff-util))
37;; end pacifier
38
39(require 'ediff-init) 35(require 'ediff-init)
36(require 'ediff-util)
40 37
41(defcustom ediff-quit-merge-hook 'ediff-maybe-save-and-delete-merge 38(defcustom ediff-quit-merge-hook 'ediff-maybe-save-and-delete-merge
42 "Hooks to run before quitting a merge job. 39 "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 @@
110 :prefix "ediff-" 110 :prefix "ediff-"
111 :group 'ediff) 111 :group 'ediff)
112 112
113
114;; compiler pacifier
115(eval-when-compile
116 (require 'ediff-ptch)
117 (require 'ediff))
118;; end pacifier
119
120(require 'ediff-init) 113(require 'ediff-init)
114(require 'ediff-diff)
115(require 'ediff-wind)
116(require 'ediff-util)
117
121 118
122;; meta-buffer 119;; meta-buffer
123(ediff-defvar-local ediff-meta-buffer nil "") 120(ediff-defvar-local ediff-meta-buffer nil "")
@@ -1795,6 +1792,14 @@ all marked sessions must be active."
1795 )) 1792 ))
1796 (error "The patch buffer wasn't found")))) 1793 (error "The patch buffer wasn't found"))))
1797 1794
1795(declare-function ediff-directories-internal "ediff"
1796 (dir1 dir2 dir3 regexp action jobname
1797 &optional startup-hooks merge-autostore-dir))
1798
1799(declare-function ediff-directory-revisions-internal "ediff"
1800 (dir1 regexp action jobname
1801 &optional startup-hooks merge-autostore-dir))
1802
1798 1803
1799;; This function executes in meta buffer. It knows where event happened. 1804;; This function executes in meta buffer. It knows where event happened.
1800(defun ediff-filegroup-action () 1805(defun ediff-filegroup-action ()
@@ -2360,6 +2365,8 @@ If this is a session registry buffer then just bury it."
2360 (setq point (point-min))) 2365 (setq point (point-min)))
2361 point)))) 2366 point))))
2362 2367
2368(autoload 'ediff-patch-file-internal "ediff-ptch")
2369
2363;; this is the action invoked when the user selects a patch from the meta 2370;; this is the action invoked when the user selects a patch from the meta
2364;; buffer. 2371;; buffer.
2365(defun ediff-patch-file-form-meta (file &optional startup-hooks) 2372(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 @@
33 :prefix "ediff-" 33 :prefix "ediff-"
34 :group 'ediff) 34 :group 'ediff)
35 35
36;; compiler pacifier
37(eval-when-compile
38 (require 'ediff))
39;; end pacifier
40
41(require 'ediff-init) 36(require 'ediff-init)
37(require 'ediff-util)
42 38
43(defcustom ediff-patch-program "patch" 39(defcustom ediff-patch-program "patch"
44 "Name of the program that applies patches. 40 "Name of the program that applies patches.
@@ -472,6 +468,8 @@ are two possible targets for this patch. However, these files do not exist."
472 (set-window-buffer ediff-window-B ediff-patch-diagnostics)) 468 (set-window-buffer ediff-window-B ediff-patch-diagnostics))
473 (t (display-buffer ediff-patch-diagnostics 'not-this-window)))) 469 (t (display-buffer ediff-patch-diagnostics 'not-this-window))))
474 470
471(defvar ediff-use-last-dir)
472
475;; prompt for file, get the buffer 473;; prompt for file, get the buffer
476(defun ediff-prompt-for-patch-file () 474(defun ediff-prompt-for-patch-file ()
477 (let ((dir (cond (ediff-use-last-dir ediff-last-dir-patch) 475 (let ((dir (cond (ediff-use-last-dir ediff-last-dir-patch)
@@ -642,6 +640,11 @@ optional argument, then use it."
642;;; (eq code 0) 640;;; (eq code 0)
643;;; (not (eq code 2)))) 641;;; (not (eq code 2))))
644 642
643(autoload 'ediff-find-file "ediff")
644(declare-function ediff-buffers-internal "ediff"
645 (buf-a buf-b buf-c startup-hooks job-name
646 &optional merge-buffer-file))
647
645(defun ediff-patch-file-internal (patch-buf source-filename 648(defun ediff-patch-file-internal (patch-buf source-filename
646 &optional startup-hooks) 649 &optional startup-hooks)
647 (setq source-filename (expand-file-name source-filename)) 650 (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 @@
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
44 44
45(eval-when-compile
46 (require 'ediff))
47
48;; end pacifier 45;; end pacifier
49 46
50 47
@@ -3477,6 +3474,9 @@ Without an argument, it saves customized diff argument, if available
3477 (if (window-live-p ediff-control-window) 3474 (if (window-live-p ediff-control-window)
3478 (select-window ediff-control-window))) 3475 (select-window ediff-control-window)))
3479 3476
3477(declare-function ediff-regions-internal "ediff"
3478 (buffer-a beg-a end-a buffer-b beg-b end-b
3479 startup-hooks job-name word-mode setup-parameters))
3480 3480
3481(defun ediff-inferior-compare-regions () 3481(defun ediff-inferior-compare-regions ()
3482 "Compare regions in an active Ediff session. 3482 "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 @@
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
44 44
45(eval-when-compile 45(require 'ediff-init)
46 (require 'ediff-util) 46(require 'ediff-help)
47 (require 'ediff-help))
48;; end pacifier 47;; end pacifier
49 48
50(require 'ediff-init)
51 49
52;; be careful with ediff-tbar 50;; be careful with ediff-tbar
53(if (featurep 'xemacs) 51(eval-and-compile
54 (require 'ediff-tbar) 52 (if (featurep 'xemacs)
55 (defun ediff-compute-toolbar-width () 0)) 53 (require 'ediff-tbar)
54 (defun ediff-compute-toolbar-width () 0)))
56 55
57(defgroup ediff-window nil 56(defgroup ediff-window nil
58 "Ediff window manipulation." 57 "Ediff window manipulation."
@@ -358,6 +357,8 @@ into icons, regardless of the window manager."
358 (ediff-setup-windows-plain-compare 357 (ediff-setup-windows-plain-compare
359 buffer-A buffer-B buffer-C control-buffer))) 358 buffer-A buffer-B buffer-C control-buffer)))
360 359
360(autoload 'ediff-setup-control-buffer "ediff-util")
361
361(defun ediff-setup-windows-plain-merge (buf-A buf-B buf-C control-buffer) 362(defun ediff-setup-windows-plain-merge (buf-A buf-B buf-C control-buffer)
362 ;; skip dedicated and unsplittable frames 363 ;; skip dedicated and unsplittable frames
363 (ediff-destroy-control-frame control-buffer) 364 (ediff-destroy-control-frame control-buffer)
@@ -908,6 +909,8 @@ into icons, regardless of the window manager."
908 (not (ediff-frame-has-dedicated-windows (window-frame wind))) 909 (not (ediff-frame-has-dedicated-windows (window-frame wind)))
909 ))) 910 )))
910 911
912(declare-function ediff-make-bottom-toolbar "ediff-util" (&optional frame))
913
911;; Prepare or refresh control frame 914;; Prepare or refresh control frame
912(defun ediff-setup-control-frame (ctl-buffer designated-minibuffer-frame) 915(defun ediff-setup-control-frame (ctl-buffer designated-minibuffer-frame)
913 (let ((window-min-height 1) 916 (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 @@
116(eval-and-compile 116(eval-and-compile
117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
118 118
119 119(require 'ediff-util)
120(eval-when-compile
121 (require 'dired)
122 (require 'ediff-util)
123 (require 'ediff-ptch))
124;; end pacifier 120;; end pacifier
125 121
126(require 'ediff-init) 122(require 'ediff-init)
@@ -154,6 +150,11 @@
154 (ediff-with-current-buffer ediff-buffer-A 150 (ediff-with-current-buffer ediff-buffer-A
155 (setq buffer-read-only t))) 151 (setq buffer-read-only t)))
156 152
153(declare-function dired-get-filename "dired"
154 (&optional localp no-error-if-not-filep))
155(declare-function dired-get-marked-files "dired"
156 (&optional localp arg filter distinguish-one-marked))
157
157;; Return a plausible default for ediff's first file: 158;; Return a plausible default for ediff's first file:
158;; In dired, return the file number FILENO (or 0) in the list 159;; In dired, return the file number FILENO (or 0) in the list
159;; (all-selected-files, filename under the cursor), where directories are 160;; (all-selected-files, filename under the cursor), where directories are
@@ -1345,6 +1346,12 @@ buffer."
1345 rev1 rev2 ancestor-rev startup-hooks merge-buffer-file))) 1346 rev1 rev2 ancestor-rev startup-hooks merge-buffer-file)))
1346 1347
1347;;; Apply patch 1348;;; Apply patch
1349(defvar ediff-last-dir-patch)
1350(defvar ediff-patch-default-directory)
1351(declare-function ediff-get-patch-buffer "ediff-ptch"
1352 (&optional arg patch-buf))
1353(declare-function ediff-dispatch-file-patching-job "ediff-ptch"
1354 (patch-buf filename &optional startup-hooks))
1348 1355
1349;;;###autoload 1356;;;###autoload
1350(defun ediff-patch-file (&optional arg patch-buf) 1357(defun ediff-patch-file (&optional arg patch-buf)
@@ -1373,6 +1380,9 @@ buffer. If odd -- assume it is in a file."
1373 source-dir nil nil (ediff-get-default-file-name))) 1380 source-dir nil nil (ediff-get-default-file-name)))
1374 (ediff-dispatch-file-patching-job patch-buf source-file))) 1381 (ediff-dispatch-file-patching-job patch-buf source-file)))
1375 1382
1383(declare-function ediff-patch-buffer-internal "ediff-ptch"
1384 (patch-buf buf-to-patch-name &optional startup-hooks))
1385
1376;;;###autoload 1386;;;###autoload
1377(defun ediff-patch-buffer (&optional arg patch-buf) 1387(defun ediff-patch-buffer (&optional arg patch-buf)
1378 "Run Ediff by patching the buffer specified at prompt. 1388 "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 @@
12013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
2
3 * casetab.c (init_casetab_once): Fix last change (bug#14424).
4
12013-05-22 Kenichi Handa <handa@gnu.org> 52013-05-22 Kenichi Handa <handa@gnu.org>
2 6
3 The following changes are to fix the setting of 7 The following changes are to fix the setting of
@@ -12,8 +16,8 @@
12 (setup_coding_system): Do not initialize coding->head_ascii. 16 (setup_coding_system): Do not initialize coding->head_ascii.
13 (check_ascii): Do not set coding->eol_seen but update it. Do not 17 (check_ascii): Do not set coding->eol_seen but update it. Do not
14 call adjust_coding_eol_type here. 18 call adjust_coding_eol_type here.
15 (detect_coding): Fix detection of BOM for utf-8 and utf-16. If 19 (detect_coding): Fix detection of BOM for utf-8 and utf-16.
16 the eol-type of CODING is already specified, adjust the eol type 20 If the eol-type of CODING is already specified, adjust the eol type
17 of the found coding-system. 21 of the found coding-system.
18 (decode_coding_gap): Cancel previous change. Utilize the 22 (decode_coding_gap): Cancel previous change. Utilize the
19 character numbers counted by detect_coding_utf_8. Fix detection 23 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)
286 int c = ((i >= 'A' && i <= 'Z') ? i + ('a' - 'A') 286 int c = ((i >= 'A' && i <= 'Z') ? i + ('a' - 'A')
287 : ((i >= 'a' && i <= 'z') ? i + ('A' - 'a') 287 : ((i >= 'a' && i <= 'z') ? i + ('A' - 'a')
288 : i)); 288 : i));
289 CHAR_TABLE_SET (up, i, make_number (c)); 289 CHAR_TABLE_SET (eqv, i, make_number (c));
290 } 290 }
291 291
292 set_char_table_extras (down, 2, eqv); 292 set_char_table_extras (down, 2, eqv);