aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-07-13 23:41:47 -0700
committerPaul Eggert2011-07-13 23:41:47 -0700
commitcf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e (patch)
tree1bdb0fd052770b8c3b0c6ea83fb7c6a9bfdd5b85 /lisp
parentca4aa9359160557f8103639fc3c0ccb16c6ba8d2 (diff)
parent27fa387ad10e6a5639de1ab08e7559c06e9d802d (diff)
downloademacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.tar.gz
emacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog124
-rw-r--r--lisp/ChangeLog.62
-rw-r--r--lisp/bindings.el14
-rw-r--r--lisp/bookmark.el3
-rw-r--r--lisp/bs.el6
-rw-r--r--lisp/dired.el32
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
-rw-r--r--lisp/emacs-lisp/testcover.el2
-rw-r--r--lisp/files.el5
-rw-r--r--lisp/follow.el46
-rw-r--r--lisp/font-lock.el10
-rw-r--r--lisp/gnus/ChangeLog.22
-rw-r--r--lisp/info.el6
-rw-r--r--lisp/international/mule-cmds.el6
-rw-r--r--lisp/jka-cmpr-hook.el2
-rw-r--r--lisp/jka-compr.el11
-rw-r--r--lisp/net/browse-url.el17
-rw-r--r--lisp/net/tramp-cmds.el4
-rw-r--r--lisp/net/tramp-compat.el9
-rw-r--r--lisp/progmodes/cperl-mode.el2
-rw-r--r--lisp/progmodes/etags.el6
-rw-r--r--lisp/simple.el15
-rw-r--r--lisp/startup.el9
-rw-r--r--lisp/subr.el19
-rw-r--r--lisp/tabify.el28
-rw-r--r--lisp/url/ChangeLog6
-rw-r--r--lisp/url/url-http.el2
-rw-r--r--lisp/vc/vc.el2
-rw-r--r--lisp/window.el42
-rw-r--r--lisp/winner.el2
30 files changed, 308 insertions, 128 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 19c80a65888..6d652931328 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,127 @@
12011-07-14 Chong Yidong <cyd@stupidchicken.com>
2
3 * bindings.el: Add advertised binding for set-mark-command
4 (Bug#5772).
5
62011-07-14 Chong Yidong <cyd@stupidchicken.com>
7
8 * bindings.el (mode-line-other-buffer):
9 * bookmark.el (bookmark-bmenu-2-window):
10 * bs.el (bs-cycle-next, bs-cycle-previous):
11 * net/tramp-cmds.el (tramp-append-tramp-buffers): Revert to using
12 switch-to-buffer.
13
14 * net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window):
15 Deleted.
16
172011-07-14 Juanma Barranquero <lekktu@gmail.com>
18
19 * follow.el (follow-debug-message, follow-redisplay):
20 * jka-cmpr-hook.el (with-auto-compression-mode):
21 Fix typos in docstrings.
22
232011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
24
25 * subr.el (with-silent-modifications): Clarify somewhat what the
26 macro inhibits (bug#6525).
27
28 * simple.el (eval-expression): Note what it does if called
29 interactively (bug#6495).
30
312011-07-13 Chong Yidong <cyd@stupidchicken.com>
32
33 * window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW. Use
34 pop-to-buffer buffer-or-name if it is nil.
35
36 * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
37 Remove switch-to-buffer.
38
392011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
40
41 * files.el (make-directory): Clarify that an error will be raised
42 if there's an error (bug#6397).
43
44 * startup.el (initial-buffer-choice): Add `none' as a choice
45 (bug#6234).
46
47 * subr.el (add-hook): Clarify section about buffer-local hooks
48 (bug#6218).
49
50 * dired.el (dired-flagged): Clarify doc string (bug#6117).
51
522011-07-13 Juanma Barranquero <lekktu@gmail.com>
53
54 * tabify.el (untabify): Preserve the current column so that point
55 doesn't move (bug#6032).
56
572011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
58
59 * progmodes/cperl-mode.el (cperl-syntaxify-by-font-lock): Rewrite
60 to avoid awkward possessive "s" (bug#5986).
61
622011-07-13 Glenn Morris <rgm@gnu.org>
63
64 * dired.el (dired-use-ls-dired): Doc fix. (Bug#9039).
65 (dired-insert-directory): Give a message the first time
66 if ls is found not to support --dired.
67
682011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
69
70 * simple.el (toggle-truncate-lines): Clarify what is toggled
71 (bug#5580). Text by Drew Adams.
72
732011-07-13 Chong Yidong <cyd@stupidchicken.com>
74
75 * simple.el (blink-matching-open): Make the error message from the
76 last change less verbose.
77
782011-07-13 Dan Nicolaescu <dann@ics.uci.edu>
79
80 * font-lock.el (font-lock-comment-face): Use the high contrast
81 "yellow" color for font-lock-comment-face on low color terminals
82 using a dark background color (bug#4221).
83
842011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
85
86 * dired.el (dired-insert-set-properties): Make the doc string
87 reflect what it does now (bug#5325).
88
89 * simple.el (blink-matching-open): Say that we were unable to find
90 the match within the limit, if we're limited (bug#5122).
91
92 * international/mule-cmds.el (prefer-coding-system): Add an
93 example (bug#4869).
94
95 * progmodes/etags.el (tags-search): Document `file-list-form'
96 (bug#4731).
97
982011-07-13 Lawrence Mitchell <wence@gmx.li>
99
100 * net/browse-url.el (browse-url-default-browser)
101 (browse-url-browser-function): Make the default browser choice a
102 bit more logical (bug#4300). Also clean up the doc string.
103
1042011-07-13 Juanma Barranquero <lekktu@gmail.com>
105
106 * bindings.el (completion-ignored-extensions): Add OpenMCL/Clozure
107 binary endings (bug#4440).
108
1092011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
110
111 * info.el (info-insert-file-contents): Inhibit jka-compr messages,
112 which can be pretty annoying (bug#8971).
113
114 * jka-compr.el (jka-compr-verbose): New variable, and use
115 throughout (bug#8971).
116
117 * info.el (Info-find-file): Fall back on the installation
118 directory if we can't find the info node anywhere else.
119
1202011-07-13 Sergei Organov <osv@javad.com> (tiny change)
121
122 * vc/vc.el (vc-revert-file):
123 Don't set file time-stamp in the past. (Bug#5181)
124
12011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 1252011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 126
3 * files.el (after-find-file): Give a better error message when 127 * files.el (after-find-file): Give a better error message when
diff --git a/lisp/ChangeLog.6 b/lisp/ChangeLog.6
index 2f73c290231..7ba9261ccf0 100644
--- a/lisp/ChangeLog.6
+++ b/lisp/ChangeLog.6
@@ -6892,7 +6892,7 @@
6892 (find-file-noselect): Use it if new optional argument `rawfile' is 6892 (find-file-noselect): Use it if new optional argument `rawfile' is
6893 non-nil. 6893 non-nil.
6894 6894
6895 * startup.el (command-line-1): Add option --eval to evalute an 6895 * startup.el (command-line-1): Add option --eval to evaluate an
6896 expression on the command line and print the result. 6896 expression on the command line and print the result.
6897 6897
68981995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu> 68981995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 99d9aa36e35..c4f9369219a 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -471,8 +471,7 @@ Like `bury-buffer', but temporarily select EVENT's window."
471(defun mode-line-other-buffer () "\ 471(defun mode-line-other-buffer () "\
472Switch to the most recently selected buffer other than the current one." 472Switch to the most recently selected buffer other than the current one."
473 (interactive) 473 (interactive)
474 (with-no-warnings ; We really do want to call `switch-to-buffer' here. 474 (switch-to-buffer (other-buffer) nil t))
475 (switch-to-buffer (other-buffer))))
476 475
477(defun mode-line-next-buffer (event) 476(defun mode-line-next-buffer (event)
478 "Like `next-buffer', but temporarily select EVENT's window." 477 "Like `next-buffer', but temporarily select EVENT's window."
@@ -594,9 +593,12 @@ is okay. See `mode-line-format'.")
594 ".fas" ".lib" ".mem" 593 ".fas" ".lib" ".mem"
595 ;; CMUCL 594 ;; CMUCL
596 ".x86f" ".sparcf" 595 ".x86f" ".sparcf"
597 ;; Other CL implementations (Allegro, LispWorks, OpenMCL) 596 ;; OpenMCL / Clozure CL
598 ".fasl" ".ufsl" ".fsl" ".dxl" ".pfsl" ".dfsl" 597 ".dfsl" ".pfsl" ".d64fsl" ".p64fsl" ".lx64fsl" ".lx32fsl"
599 ".p64fsl" ".d64fsl" ".dx64fsl" 598 ".dx64fsl" ".dx32fsl" ".fx64fsl" ".fx32fsl" ".sx64fsl"
599 ".sx32fsl" ".wx64fsl" ".wx32fsl"
600 ;; Other CL implementations (Allegro, LispWorks)
601 ".fasl" ".ufsl" ".fsl" ".dxl"
600 ;; Libtool 602 ;; Libtool
601 ".lo" ".la" 603 ".lo" ".la"
602 ;; Gettext 604 ;; Gettext
@@ -847,6 +849,8 @@ if `inhibit-field-text-motion' is non-nil."
847(define-key global-map "\C-@" 'set-mark-command) 849(define-key global-map "\C-@" 'set-mark-command)
848;; Many people are used to typing C-SPC and getting C-@. 850;; Many people are used to typing C-SPC and getting C-@.
849(define-key global-map [?\C- ] 'set-mark-command) 851(define-key global-map [?\C- ] 'set-mark-command)
852(put 'set-mark-command :advertised-binding [?\C- ])
853
850(define-key ctl-x-map "\C-x" 'exchange-point-and-mark) 854(define-key ctl-x-map "\C-x" 'exchange-point-and-mark)
851(define-key ctl-x-map "\C-@" 'pop-global-mark) 855(define-key ctl-x-map "\C-@" 'pop-global-mark)
852(define-key ctl-x-map [?\C- ] 'pop-global-mark) 856(define-key ctl-x-map [?\C- ] 'pop-global-mark)
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 9f90ecedc4d..bb7ad153e8b 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1841,8 +1841,7 @@ With a prefix arg, prompts for a file to save them in."
1841 (menu (current-buffer)) 1841 (menu (current-buffer))
1842 (pop-up-windows t)) 1842 (pop-up-windows t))
1843 (delete-other-windows) 1843 (delete-other-windows)
1844 (with-no-warnings ; We really do want to call `switch-to-buffer' here. 1844 (switch-to-buffer (other-buffer) nil t)
1845 (switch-to-buffer (other-buffer)))
1846 (bookmark--jump-via bmrk 'pop-to-buffer) 1845 (bookmark--jump-via bmrk 'pop-to-buffer)
1847 (bury-buffer menu))) 1846 (bury-buffer menu)))
1848 1847
diff --git a/lisp/bs.el b/lisp/bs.el
index c7326eedd26..49ffb3f822c 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1215,8 +1215,7 @@ by buffer configuration `bs-cycle-configuration-name'."
1215 ;; We don't want the frame iconified if the only window in the frame 1215 ;; We don't want the frame iconified if the only window in the frame
1216 ;; happens to be dedicated. 1216 ;; happens to be dedicated.
1217 (bury-buffer (current-buffer)) 1217 (bury-buffer (current-buffer))
1218 (with-no-warnings ; We really do want to call `switch-to-buffer' here. 1218 (switch-to-buffer next nil t)
1219 (switch-to-buffer next))
1220 (setq bs--cycle-list (append (cdr cycle-list) 1219 (setq bs--cycle-list (append (cdr cycle-list)
1221 (list (car cycle-list)))) 1220 (list (car cycle-list))))
1222 (bs-message-without-log "Next buffers: %s" 1221 (bs-message-without-log "Next buffers: %s"
@@ -1245,8 +1244,7 @@ by buffer configuration `bs-cycle-configuration-name'."
1245 bs--cycle-list))) 1244 bs--cycle-list)))
1246 (prev-buffer (car tupel)) 1245 (prev-buffer (car tupel))
1247 (cycle-list (cdr tupel))) 1246 (cycle-list (cdr tupel)))
1248 (with-no-warnings ; We really do want to call `switch-to-buffer' here. 1247 (switch-to-buffer prev-buffer nil t)
1249 (switch-to-buffer prev-buffer))
1250 (setq bs--cycle-list (append (last cycle-list) 1248 (setq bs--cycle-list (append (last cycle-list)
1251 (reverse (cdr (reverse cycle-list))))) 1249 (reverse (cdr (reverse cycle-list)))))
1252 (bs-message-without-log "Previous buffers: %s" 1250 (bs-message-without-log "Previous buffers: %s"
diff --git a/lisp/dired.el b/lisp/dired.el
index 62420348d0f..01d41bba27d 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -78,10 +78,22 @@ If nil, `dired-listing-switches' is used."
78 :type 'file) 78 :type 'file)
79 79
80(defcustom dired-use-ls-dired 'unspecified 80(defcustom dired-use-ls-dired 'unspecified
81 "Non-nil means Dired should use \"ls --dired\". 81 "Non-nil means Dired should pass the \"--dired\" option to \"ls\".
82The special value of `unspecified' means to check explicitly, and 82The special value of `unspecified' means to check explicitly, and
83save the result in this variable. This is performed the first 83save the result in this variable. This is performed the first
84time `dired-insert-directory' is called." 84time `dired-insert-directory' is called.
85
86Note that if you set this option to nil, either through choice or
87because your \"ls\" program does not support \"--dired\", Dired
88will fail to parse some \"unusual\" file names, e.g. those with leading
89spaces. You might want to install ls from GNU Coreutils, which does
90support this option. Alternatively, you might want to use Emacs's
91own emulation of \"ls\", by using:
92 \(setq ls-lisp-use-insert-directory-program nil)
93 \(require 'ls-lisp)
94This is used by default on MS Windows, which does not have an \"ls\" program.
95Note that `ls-lisp' does not support as many options as GNU ls, though.
96For more details, see Info node `(emacs)ls in Lisp'."
85 :group 'dired 97 :group 'dired
86 :type '(choice (const :tag "Check for --dired support" unspecified) 98 :type '(choice (const :tag "Check for --dired support" unspecified)
87 (const :tag "Do not use --dired" nil) 99 (const :tag "Do not use --dired" nil)
@@ -339,11 +351,11 @@ Subexpression 2 must end right before the \\n or \\r.")
339 351
340(defface dired-flagged 352(defface dired-flagged
341 '((t (:inherit font-lock-warning-face))) 353 '((t (:inherit font-lock-warning-face)))
342 "Face used for flagged files." 354 "Face used for files flagged for deletion."
343 :group 'dired-faces 355 :group 'dired-faces
344 :version "22.1") 356 :version "22.1")
345(defvar dired-flagged-face 'dired-flagged 357(defvar dired-flagged-face 'dired-flagged
346 "Face name used for flagged files.") 358 "Face name used for files flagged for deletion.")
347 359
348(defface dired-warning 360(defface dired-warning
349 ;; Inherit from font-lock-warning-face since with min-colors 8 361 ;; Inherit from font-lock-warning-face since with min-colors 8
@@ -1119,9 +1131,13 @@ If HDR is non-nil, insert a header line with the directory name."
1119 (or (if (eq dired-use-ls-dired 'unspecified) 1131 (or (if (eq dired-use-ls-dired 'unspecified)
1120 ;; Check whether "ls --dired" gives exit code 0, and 1132 ;; Check whether "ls --dired" gives exit code 0, and
1121 ;; save the answer in `dired-use-ls-dired'. 1133 ;; save the answer in `dired-use-ls-dired'.
1122 (setq dired-use-ls-dired 1134 (or (setq dired-use-ls-dired
1123 (eq (call-process insert-directory-program nil nil nil "--dired") 1135 (eq 0 (call-process insert-directory-program
1124 0)) 1136 nil nil nil "--dired")))
1137 (progn
1138 (message "ls does not support --dired; \
1139see `dired-use-ls-dired' for more details.")
1140 nil))
1125 dired-use-ls-dired) 1141 dired-use-ls-dired)
1126 (file-remote-p dir))) 1142 (file-remote-p dir)))
1127 (setq switches (concat "--dired " switches))) 1143 (setq switches (concat "--dired " switches)))
@@ -1175,7 +1191,7 @@ If HDR is non-nil, insert a header line with the directory name."
1175 (insert " wildcard " (file-name-nondirectory dir) "\n"))))) 1191 (insert " wildcard " (file-name-nondirectory dir) "\n")))))
1176 1192
1177(defun dired-insert-set-properties (beg end) 1193(defun dired-insert-set-properties (beg end)
1178 "Make the file names highlight when the mouse is on them." 1194 "Add various text properties to the lines in the region."
1179 (save-excursion 1195 (save-excursion
1180 (goto-char beg) 1196 (goto-char beg)
1181 (while (< (point) end) 1197 (while (< (point) end)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 223e9667ac3..127f93c6858 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -355,7 +355,7 @@ else the global value will be modified."
355(defvar byte-compile-interactive-only-functions 355(defvar byte-compile-interactive-only-functions
356 '(beginning-of-buffer end-of-buffer replace-string replace-regexp 356 '(beginning-of-buffer end-of-buffer replace-string replace-regexp
357 insert-file insert-buffer insert-file-literally previous-line next-line 357 insert-file insert-buffer insert-file-literally previous-line next-line
358 goto-line comint-run delete-backward-char switch-to-buffer) 358 goto-line comint-run delete-backward-char)
359 "List of commands that are not meant to be called from Lisp.") 359 "List of commands that are not meant to be called from Lisp.")
360 360
361(defvar byte-compile-not-obsolete-vars nil 361(defvar byte-compile-not-obsolete-vars nil
diff --git a/lisp/emacs-lisp/testcover.el b/lisp/emacs-lisp/testcover.el
index 2f168180cf6..4c83e7e2e0d 100644
--- a/lisp/emacs-lisp/testcover.el
+++ b/lisp/emacs-lisp/testcover.el
@@ -28,7 +28,7 @@
28;; * Use `testcover-mark-all' to add overlay "splotches" to the Lisp file's 28;; * Use `testcover-mark-all' to add overlay "splotches" to the Lisp file's
29;; buffer to show where coverage is lacking. Normally, a red splotch 29;; buffer to show where coverage is lacking. Normally, a red splotch
30;; indicates the form was never evaluated; a brown splotch means it always 30;; indicates the form was never evaluated; a brown splotch means it always
31;; evaluted to the same value. 31;; evaluated to the same value.
32;; * Use `testcover-next-mark' (bind it to a key!) to jump to the next spot 32;; * Use `testcover-next-mark' (bind it to a key!) to jump to the next spot
33;; that has a splotch. 33;; that has a splotch.
34 34
diff --git a/lisp/files.el b/lisp/files.el
index bf38ce39a07..0b253fcc297 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4778,7 +4778,10 @@ visited a file in a nonexistent directory.
4778 4778
4779Noninteractively, the second (optional) argument PARENTS, if 4779Noninteractively, the second (optional) argument PARENTS, if
4780non-nil, says whether to create parent directories that don't 4780non-nil, says whether to create parent directories that don't
4781exist. Interactively, this happens by default." 4781exist. Interactively, this happens by default.
4782
4783If creating the directory or directories fail, an error will be
4784raised."
4782 (interactive 4785 (interactive
4783 (list (read-file-name "Make directory: " default-directory default-directory 4786 (list (read-file-name "Make directory: " default-directory default-directory
4784 nil nil) 4787 nil nil)
diff --git a/lisp/follow.el b/lisp/follow.el
index 9bf472e547c..94a542f1016 100644
--- a/lisp/follow.el
+++ b/lisp/follow.el
@@ -118,7 +118,7 @@
118;; (setq pixel-vertical-clip-threshold 30) 118;; (setq pixel-vertical-clip-threshold 30)
119 119
120 120
121;; The correct way to cofigurate Follow mode, or any other mode for 121;; The correct way to configurate Follow mode, or any other mode for
122;; that matter, is to create one or more functions that do 122;; that matter, is to create one or more functions that do
123;; whatever you would like to do. These functions are then added to 123;; whatever you would like to do. These functions are then added to
124;; a hook. 124;; a hook.
@@ -189,7 +189,7 @@
189;; positions in the text? Here are two simple methods to use: 189;; positions in the text? Here are two simple methods to use:
190;; 190;;
191;; 1) Use multiple frames; `follow' mode only affects windows displayed 191;; 1) Use multiple frames; `follow' mode only affects windows displayed
192;; in the same frame. (My apoligies to you who can't use frames.) 192;; in the same frame. (My apologies to you who can't use frames.)
193;; 193;;
194;; 2) Bind `follow-mode' to key so you can turn it off whenever 194;; 2) Bind `follow-mode' to key so you can turn it off whenever
195;; you want to view two locations. Of course, `follow' mode can 195;; you want to view two locations. Of course, `follow' mode can
@@ -209,15 +209,15 @@
209;; 209;;
210;; Follow mode does this in three places: 210;; Follow mode does this in three places:
211;; 1) After each user command. 211;; 1) After each user command.
212;; 2) After a process output has been perfomed. 212;; 2) After a process output has been performed.
213;; 3) When a scrollbar has been moved. 213;; 3) When a scrollbar has been moved.
214;; 214;;
215;; This will cover most situations. (Let me know if there are other 215;; This will cover most situations. (Let me know if there are other
216;; situations that should be covered.) 216;; situations that should be covered.)
217;; 217;;
218;; Note that only the selected window is checked, for the reason of 218;; Note that only the selected window is checked, for the reason of
219;; efficiency and code complexity. (I.e. it is possible to make a 219;; efficiency and code complexity. (I.e. it is possible to make a
220;; non-selected windows unaligned. It will, however, pop right back 220;; non-selected window unaligned. It will, however, pop right back
221;; when it is selected.) 221;; when it is selected.)
222 222
223;;}}} 223;;}}}
@@ -244,7 +244,7 @@
244;; (funcall (symbol-function 'set) 'bar ...) 244;; (funcall (symbol-function 'set) 'bar ...)
245;; 245;;
246;; Note: When this file is interpreted, `eval-when-compile' is 246;; Note: When this file is interpreted, `eval-when-compile' is
247;; evaluted. Since it doesn't hurt to evaluate it, but it is a bit 247;; evaluated. Since it doesn't hurt to evaluate it, but it is a bit
248;; annoying, we test if the byte-compiler has been loaded. This can, 248;; annoying, we test if the byte-compiler has been loaded. This can,
249;; of course, lead to some occasional unintended evaluation... 249;; of course, lead to some occasional unintended evaluation...
250;; 250;;
@@ -456,7 +456,7 @@ Used by `follow-window-size-change'.")
456;; the variable is not set. 456;; the variable is not set.
457 457
458(defsubst follow-debug-message (&rest args) 458(defsubst follow-debug-message (&rest args)
459 "Like message, but only active when `follow-debug' is non-nil." 459 "Like `message', but only active when `follow-debug' is non-nil."
460 (if (and (boundp 'follow-debug) follow-debug) 460 (if (and (boundp 'follow-debug) follow-debug)
461 (apply 'message args))) 461 (apply 'message args)))
462 462
@@ -1000,7 +1000,7 @@ Note that this handles the case when the cache has been set to nil."
1000 res)) 1000 res))
1001 1001
1002 1002
1003;; Make sure WIN always starts at the beginning of an whole screen 1003;; Make sure WIN always starts at the beginning of a whole screen
1004;; line. If WIN is not aligned the start is updated which probably 1004;; line. If WIN is not aligned the start is updated which probably
1005;; will lead to a redisplay of the screen later on. 1005;; will lead to a redisplay of the screen later on.
1006;; 1006;;
@@ -1057,8 +1057,8 @@ Return the selected window."
1057 win)) 1057 win))
1058 1058
1059 1059
1060;; Lets select a window showing the end. Make sure we only select it if it 1060;; Lets select a window showing the end. Make sure we only select it if
1061;; it wasn't just moved here. (i.e. M-> shall not unconditionally place 1061;; it wasn't just moved here. (I.e. M-> shall not unconditionally place
1062;; the point in the selected window.) 1062;; the point in the selected window.)
1063;; 1063;;
1064;; (Compatibility cludge: in Emacs `window-end' is equal to `point-max'; 1064;; (Compatibility cludge: in Emacs `window-end' is equal to `point-max';
@@ -1134,7 +1134,7 @@ Otherwise, return nil."
1134 "Reposition the WINDOWS around WIN. 1134 "Reposition the WINDOWS around WIN.
1135Should the point be too close to the roof we redisplay everything 1135Should the point be too close to the roof we redisplay everything
1136from the top. WINDOWS should contain a list of windows to 1136from the top. WINDOWS should contain a list of windows to
1137redisplay, it is assumed that WIN is a member of the list. 1137redisplay; it is assumed that WIN is a member of the list.
1138Should WINDOWS be nil, the windows displaying the 1138Should WINDOWS be nil, the windows displaying the
1139same buffer as WIN, in the current frame, are used. 1139same buffer as WIN, in the current frame, are used.
1140Should WIN be nil, the selected window is used. 1140Should WIN be nil, the selected window is used.
@@ -1231,7 +1231,7 @@ should be a member of WINDOWS, starts at position START."
1231 (setq done t res (point))) 1231 (setq done t res (point)))
1232 ((= win-start start) ; Perfect match, use this value 1232 ((= win-start start) ; Perfect match, use this value
1233 (setq done t res (point))) 1233 (setq done t res (point)))
1234 ((< win-start start) ; Walked to far, use preious result 1234 ((< win-start start) ; Walked to far, use previous result
1235 (setq done t)) 1235 (setq done t))
1236 (t ; Store result for next iteration 1236 (t ; Store result for next iteration
1237 (setq res (point)))))) 1237 (setq res (point))))))
@@ -1241,12 +1241,12 @@ should be a member of WINDOWS, starts at position START."
1241;;{{{ Avoid tail recenter 1241;;{{{ Avoid tail recenter
1242 1242
1243;; This sets the window internal flag `force_start'. The effect is that 1243;; This sets the window internal flag `force_start'. The effect is that
1244;; windows only displaying the tail isn't recentered. 1244;; windows only displaying the tail aren't recentered.
1245;; Has to be called before every redisplay... (Great isn't it?) 1245;; Has to be called before every redisplay... (Great isn't it?)
1246;; 1246;;
1247;; XEmacs doesn't recenter the tail, GOOD! 1247;; XEmacs doesn't recenter the tail, GOOD!
1248;; 1248;;
1249;; A window displaying only the tail, is a windows whose 1249;; A window displaying only the tail, is a window whose
1250;; window-start position is equal to (point-max) of the buffer it 1250;; window-start position is equal to (point-max) of the buffer it
1251;; displays. 1251;; displays.
1252;; 1252;;
@@ -1487,12 +1487,12 @@ non-first windows in Follow mode."
1487;;;; Scroll-bar support code. 1487;;;; Scroll-bar support code.
1488 1488
1489;; Why is it needed? Well, if the selected window is in follow mode, 1489;; Why is it needed? Well, if the selected window is in follow mode,
1490;; all its follower stick to it blindly. If one of them is scrolled, 1490;; all its followers stick to it blindly. If one of them is scrolled,
1491;; it immediately returns to the original position when the mouse is 1491;; it immediately returns to the original position when the mouse is
1492;; released. If the selected window is not a follower of the dragged 1492;; released. If the selected window is not a follower of the dragged
1493;; window the windows will be unaligned. 1493;; window the windows will be unaligned.
1494 1494
1495;; The advices doesn't get compiled. Aestetically, this might be a 1495;; The advices don't get compiled. Aesthetically, this might be a
1496;; problem but in practical life it isn't. 1496;; problem but in practical life it isn't.
1497 1497
1498;; Discussion: Now when the other windows in the chain follow the 1498;; Discussion: Now when the other windows in the chain follow the
@@ -1700,8 +1700,8 @@ magic stuff before the real process filter is called."
1700;;}}} 1700;;}}}
1701;;{{{ Start/stop interception of processes. 1701;;{{{ Start/stop interception of processes.
1702 1702
1703;; Normally, all new processed are intercepted by our `set-process-filter'. 1703;; Normally, all new processes are intercepted by our `set-process-filter'.
1704;; This is needed to intercept old processed that were started before we were 1704;; This is needed to intercept old processes that were started before we were
1705;; loaded, and processes we have forgotten by calling 1705;; loaded, and processes we have forgotten by calling
1706;; `follow-stop-intercept-process-output'. 1706;; `follow-stop-intercept-process-output'.
1707 1707
@@ -1749,7 +1749,7 @@ report this using the `report-emacs-bug' function."
1749 1749
1750;; The following section is a naive method to make buffers with 1750;; The following section is a naive method to make buffers with
1751;; process output to work with Follow mode. Whenever the start of the 1751;; process output to work with Follow mode. Whenever the start of the
1752;; window displaying the buffer is moved, we moves it back to its 1752;; window displaying the buffer is moved, we move it back to its
1753;; original position and try to select a new window. (If we fail, 1753;; original position and try to select a new window. (If we fail,
1754;; the normal redisplay functions of Emacs will scroll it right 1754;; the normal redisplay functions of Emacs will scroll it right
1755;; back!) 1755;; back!)
@@ -1767,7 +1767,7 @@ report this using the `report-emacs-bug' function."
1767 1767
1768 ;; If input is pending, the `sit-for' below won't redraw the 1768 ;; If input is pending, the `sit-for' below won't redraw the
1769 ;; display. In that case, calling `follow-avoid-tail-recenter' may 1769 ;; display. In that case, calling `follow-avoid-tail-recenter' may
1770 ;; provoke the process hadnling code to sceduling a redisplay. 1770 ;; provoke the process handling code to schedule a redisplay.
1771 ;(or (input-pending-p) 1771 ;(or (input-pending-p)
1772 ; (follow-avoid-tail-recenter)) 1772 ; (follow-avoid-tail-recenter))
1773 1773
@@ -1788,7 +1788,7 @@ report this using the `report-emacs-bug' function."
1788 (inhibit-read-only t)) 1788 (inhibit-read-only t))
1789 (save-excursion 1789 (save-excursion
1790 (goto-char (process-mark proc)) 1790 (goto-char (process-mark proc))
1791 ;; `insert-before-markers' just in case the users next 1791 ;; `insert-before-markers' just in case the user's next
1792 ;; command is M-y. 1792 ;; command is M-y.
1793 (insert-before-markers output) 1793 (insert-before-markers output)
1794 (set-marker (process-mark proc) (point))) 1794 (set-marker (process-mark proc) (point)))
@@ -1848,7 +1848,7 @@ report this using the `report-emacs-bug' function."
1848 (t 1848 (t
1849 (follow-debug-message "filter: nothing"))) 1849 (follow-debug-message "filter: nothing")))
1850 1850
1851 ;; Here we have slected a window. Make sure the 1851 ;; Here we have selected a window. Make sure the
1852 ;; windows are aligned and the point is visible 1852 ;; windows are aligned and the point is visible
1853 ;; in the selected window. 1853 ;; in the selected window.
1854 (if (and (not (follow-pos-visible 1854 (if (and (not (follow-pos-visible
@@ -1866,7 +1866,7 @@ report this using the `report-emacs-bug' function."
1866 ;; return to the original window. 1866 ;; return to the original window.
1867 (if return-to-orig-win 1867 (if return-to-orig-win
1868 (select-window orig-win)) 1868 (select-window orig-win))
1869 ;; Restore the orignal buffer, unless the filter explicitly 1869 ;; Restore the original buffer, unless the filter explicitly
1870 ;; changed buffer or killed the old buffer. 1870 ;; changed buffer or killed the old buffer.
1871 (if (and (eq buf (current-buffer)) 1871 (if (and (eq buf (current-buffer))
1872 (buffer-name old-buffer)) 1872 (buffer-name old-buffer))
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 3743dd54b7a..6c76142c59d 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1856,19 +1856,13 @@ Sets various variables using `font-lock-defaults' and
1856 (((class color) (min-colors 8) (background light)) 1856 (((class color) (min-colors 8) (background light))
1857 (:foreground "red")) 1857 (:foreground "red"))
1858 (((class color) (min-colors 8) (background dark)) 1858 (((class color) (min-colors 8) (background dark))
1859 ) 1859 (:foreground "yellow"))
1860 (t (:weight bold :slant italic))) 1860 (t (:weight bold :slant italic)))
1861 "Font Lock mode face used to highlight comments." 1861 "Font Lock mode face used to highlight comments."
1862 :group 'font-lock-faces) 1862 :group 'font-lock-faces)
1863 1863
1864(defface font-lock-comment-delimiter-face 1864(defface font-lock-comment-delimiter-face
1865 '((default :inherit font-lock-comment-face) 1865 '((default :inherit font-lock-comment-face))
1866 (((class grayscale)))
1867 (((class color) (min-colors 16)))
1868 (((class color) (min-colors 8) (background light))
1869 :foreground "red")
1870 (((class color) (min-colors 8) (background dark))
1871 :foreground "red1"))
1872 "Font Lock mode face used to highlight comment delimiters." 1866 "Font Lock mode face used to highlight comment delimiters."
1873 :group 'font-lock-faces) 1867 :group 'font-lock-faces)
1874 1868
diff --git a/lisp/gnus/ChangeLog.2 b/lisp/gnus/ChangeLog.2
index 4882032f284..779c84296f4 100644
--- a/lisp/gnus/ChangeLog.2
+++ b/lisp/gnus/ChangeLog.2
@@ -9243,7 +9243,7 @@
9243 (nnmaildir--with-nntp-buffer, nnmaildir--with-work-buffer, 9243 (nnmaildir--with-nntp-buffer, nnmaildir--with-work-buffer,
9244 nnmaildir--with-nov-buffer, nnmaildir--with-move-buffer, 9244 nnmaildir--with-nov-buffer, nnmaildir--with-move-buffer,
9245 nnmaildir--group-ls): New macros/functions. Use them. 9245 nnmaildir--group-ls): New macros/functions. Use them.
9246 (nnmaildir--unlink): Evalutate argument only once. 9246 (nnmaildir--unlink): Evaluate argument only once.
9247 9247
92482002-03-27 Jesper Harder <harder@ifa.au.dk> 92482002-03-27 Jesper Harder <harder@ifa.au.dk>
9249 9249
diff --git a/lisp/info.el b/lisp/info.el
index 29daac566d1..cbdc8cc7ab3 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -464,6 +464,7 @@ be last in the list.")
464 "Insert the contents of an Info file in the current buffer. 464 "Insert the contents of an Info file in the current buffer.
465Do the right thing if the file has been compressed or zipped." 465Do the right thing if the file has been compressed or zipped."
466 (let* ((tail Info-suffix-list) 466 (let* ((tail Info-suffix-list)
467 (jka-compr-verbose nil)
467 (lfn (if (fboundp 'msdos-long-file-names) 468 (lfn (if (fboundp 'msdos-long-file-names)
468 (msdos-long-file-names) 469 (msdos-long-file-names)
469 t)) 470 t))
@@ -728,6 +729,11 @@ just return nil (no error)."
728 (append Info-directory-list 729 (append Info-directory-list
729 Info-additional-directory-list) 730 Info-additional-directory-list)
730 Info-directory-list))))) 731 Info-directory-list)))))
732 ;; Fall back on the installation directory if we can't find
733 ;; the info node anywhere else.
734 (when installation-directory
735 (setq dirs (append dirs (list (expand-file-name
736 "info" installation-directory)))))
731 ;; Search the directory list for file FILENAME. 737 ;; Search the directory list for file FILENAME.
732 (while (and dirs (not found)) 738 (while (and dirs (not found))
733 (setq temp (expand-file-name filename (car dirs))) 739 (setq temp (expand-file-name filename (car dirs)))
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index e75a22d6415..6a73aaaa838 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -397,7 +397,11 @@ If CODING-SYSTEM specifies a certain type of EOL conversion, the coding
397systems set by this function will use that type of EOL conversion. 397systems set by this function will use that type of EOL conversion.
398 398
399A coding system that requires automatic detection of text+encoding 399A coding system that requires automatic detection of text+encoding
400\(e.g. undecided, unix) can't be preferred." 400\(e.g. undecided, unix) can't be preferred.
401
402To prefer, for instance, utf-8, say the following:
403
404 \(prefer-coding-system 'utf-8)"
401 (interactive "zPrefer coding system: ") 405 (interactive "zPrefer coding system: ")
402 (if (not (and coding-system (coding-system-p coding-system))) 406 (if (not (and coding-system (coding-system-p coding-system)))
403 (error "Invalid coding system `%s'" coding-system)) 407 (error "Invalid coding system `%s'" coding-system))
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index fda9804bbb8..e1cf2a661ed 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -340,7 +340,7 @@ Return the new status of auto compression (non-nil means on)."
340 (t (jka-compr-uninstall))))) 340 (t (jka-compr-uninstall)))))
341 341
342(defmacro with-auto-compression-mode (&rest body) 342(defmacro with-auto-compression-mode (&rest body)
343 "Evalute BODY with automatic file compression and uncompression enabled." 343 "Evaluate BODY with automatic file compression and uncompression enabled."
344 (declare (indent 0)) 344 (declare (indent 0))
345 (let ((already-installed (make-symbol "already-installed"))) 345 (let ((already-installed (make-symbol "already-installed")))
346 `(let ((,already-installed (jka-compr-installed-p))) 346 `(let ((,already-installed (jka-compr-installed-p)))
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el
index 37c9d40ec65..1893e982bbb 100644
--- a/lisp/jka-compr.el
+++ b/lisp/jka-compr.el
@@ -97,6 +97,11 @@ NOTE: Not used in MS-DOS and Windows systems."
97 :type 'string 97 :type 'string
98 :group 'jka-compr) 98 :group 'jka-compr)
99 99
100(defcustom jka-compr-verbose t
101 "If non-nil, output messages whenever compressing or uncompressing files."
102 :type 'boolean
103 :group 'jka-compr)
104
100(defvar jka-compr-use-shell 105(defvar jka-compr-use-shell
101 (not (memq system-type '(ms-dos windows-nt)))) 106 (not (memq system-type '(ms-dos windows-nt))))
102 107
@@ -309,6 +314,7 @@ There should be no more than seven characters after the final `/'."
309 314
310 (and 315 (and
311 compress-message 316 compress-message
317 jka-compr-verbose
312 (message "%s %s..." compress-message base-name)) 318 (message "%s %s..." compress-message base-name))
313 319
314 (jka-compr-run-real-handler 'write-region 320 (jka-compr-run-real-handler 'write-region
@@ -341,6 +347,7 @@ There should be no more than seven characters after the final `/'."
341 347
342 (and 348 (and
343 compress-message 349 compress-message
350 jka-compr-verbose
344 (message "%s %s...done" compress-message base-name)) 351 (message "%s %s...done" compress-message base-name))
345 352
346 (cond 353 (cond
@@ -404,6 +411,7 @@ There should be no more than seven characters after the final `/'."
404 411
405 (and 412 (and
406 uncompress-message 413 uncompress-message
414 jka-compr-verbose
407 (message "%s %s..." uncompress-message base-name)) 415 (message "%s %s..." uncompress-message base-name))
408 416
409 (condition-case error-code 417 (condition-case error-code
@@ -479,6 +487,7 @@ There should be no more than seven characters after the final `/'."
479 487
480 (and 488 (and
481 uncompress-message 489 uncompress-message
490 jka-compr-verbose
482 (message "%s %s...done" uncompress-message base-name)) 491 (message "%s %s...done" uncompress-message base-name))
483 492
484 (and 493 (and
@@ -534,6 +543,7 @@ There should be no more than seven characters after the final `/'."
534 543
535 (and 544 (and
536 uncompress-message 545 uncompress-message
546 jka-compr-verbose
537 (message "%s %s..." uncompress-message base-name)) 547 (message "%s %s..." uncompress-message base-name))
538 548
539 ;; Here we must read the output of uncompress program 549 ;; Here we must read the output of uncompress program
@@ -554,6 +564,7 @@ There should be no more than seven characters after the final `/'."
554 564
555 (and 565 (and
556 uncompress-message 566 uncompress-message
567 jka-compr-verbose
557 (message "%s %s...done" uncompress-message base-name)) 568 (message "%s %s...done" uncompress-message base-name))
558 569
559 (write-region 570 (write-region
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index ac12030471e..e18b42a275f 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -214,13 +214,7 @@
214 214
215;;;###autoload 215;;;###autoload
216(defcustom browse-url-browser-function 216(defcustom browse-url-browser-function
217 (cond 217 'browse-url-default-browser
218 ((memq system-type '(windows-nt ms-dos cygwin))
219 'browse-url-default-windows-browser)
220 ((memq system-type '(darwin))
221 'browse-url-default-macosx-browser)
222 (t
223 'browse-url-default-browser))
224 "Function to display the current buffer in a WWW browser. 218 "Function to display the current buffer in a WWW browser.
225This is used by the `browse-url-at-point', `browse-url-at-mouse', and 219This is used by the `browse-url-at-point', `browse-url-at-mouse', and
226`browse-url-of-file' commands. 220`browse-url-of-file' commands.
@@ -908,12 +902,13 @@ a random existing one. A non-nil interactive prefix argument reverses
908the effect of `browse-url-new-window-flag'. 902the effect of `browse-url-new-window-flag'.
909 903
910When called non-interactively, optional second argument NEW-WINDOW is 904When called non-interactively, optional second argument NEW-WINDOW is
911used instead of `browse-url-new-window-flag'. 905used instead of `browse-url-new-window-flag'."
912
913The order attempted is gnome-moz-remote, Mozilla, Firefox,
914Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3."
915 (apply 906 (apply
916 (cond 907 (cond
908 ((memq system-type '(windows-nt ms-dos cygwin))
909 'browse-url-default-windows-browser)
910 ((memq system-type '(darwin))
911 'browse-url-default-macosx-browser)
917 ((browse-url-can-use-xdg-open) 'browse-url-xdg-open) 912 ((browse-url-can-use-xdg-open) 'browse-url-xdg-open)
918 ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz) 913 ((executable-find browse-url-gnome-moz-program) 'browse-url-gnome-moz)
919 ((executable-find browse-url-mozilla-program) 'browse-url-mozilla) 914 ((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index f20040e8a9a..fcf523a7068 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -308,7 +308,7 @@ buffer in your bug report.
308 308
309 ;; There is at least one Tramp buffer. 309 ;; There is at least one Tramp buffer.
310 (when buffer-list 310 (when buffer-list
311 (tramp-compat-pop-to-buffer-same-window (list-buffers-noselect nil)) 311 (switch-to-buffer (list-buffers-noselect nil))
312 (delete-other-windows) 312 (delete-other-windows)
313 (setq buffer-read-only nil) 313 (setq buffer-read-only nil)
314 (goto-char (point-min)) 314 (goto-char (point-min))
@@ -343,7 +343,7 @@ the debug buffer(s).")
343 ;; OK, let's send. First we delete the buffer list. 343 ;; OK, let's send. First we delete the buffer list.
344 (progn 344 (progn
345 (kill-buffer nil) 345 (kill-buffer nil)
346 (tramp-compat-pop-to-buffer-same-window curbuf) 346 (switch-to-buffer curbuf)
347 (goto-char (point-max)) 347 (goto-char (point-max))
348 (insert "\n\ 348 (insert "\n\
349This is a special notion of the `gnus/message' package. If you 349This is a special notion of the `gnus/message' package. If you
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index e7ea4354b51..460c9f0e118 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -502,15 +502,6 @@ EOL-TYPE can be one of `dos', `unix', or `mac'."
502 "`dos', `unix', or `mac'"))))) 502 "`dos', `unix', or `mac'")))))
503 (t (error "Can't change EOL conversion -- is MULE missing?")))) 503 (t (error "Can't change EOL conversion -- is MULE missing?"))))
504 504
505;; `pop-to-buffer-same-window' has been introduced with Emacs 24.1.
506(defun tramp-compat-pop-to-buffer-same-window
507 (&optional buffer-or-name norecord label)
508 "Pop to buffer specified by BUFFER-OR-NAME in the selected window."
509 (if (fboundp 'pop-to-buffer-same-window)
510 (tramp-compat-funcall
511 'pop-to-buffer-same-window buffer-or-name norecord label)
512 (tramp-compat-funcall 'switch-to-buffer buffer-or-name norecord)))
513
514(add-hook 'tramp-unload-hook 505(add-hook 'tramp-unload-hook
515 (lambda () 506 (lambda ()
516 (unload-feature 'tramp-compat 'force))) 507 (unload-feature 'tramp-compat 'force)))
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 48df73a678f..ad3b777977c 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -613,7 +613,7 @@ One should tune up `cperl-close-paren-offset' as well."
613(defcustom cperl-syntaxify-by-font-lock 613(defcustom cperl-syntaxify-by-font-lock
614 (and cperl-can-font-lock 614 (and cperl-can-font-lock
615 (boundp 'parse-sexp-lookup-properties)) 615 (boundp 'parse-sexp-lookup-properties))
616 "*Non-nil means that CPerl uses `font-lock's routines for syntaxification." 616 "*Non-nil means that CPerl uses the `font-lock' routines for syntaxification."
617 :type '(choice (const message) boolean) 617 :type '(choice (const message) boolean)
618 :group 'cperl-speed) 618 :group 'cperl-speed)
619 619
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 8abf298bb76..385adf1af0a 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1860,7 +1860,11 @@ nil, we exit; otherwise we scan the next file."
1860Stops when a match is found. 1860Stops when a match is found.
1861To continue searching for next match, use command \\[tags-loop-continue]. 1861To continue searching for next match, use command \\[tags-loop-continue].
1862 1862
1863See documentation of variable `tags-file-name'." 1863If `file-list-form' is non-nil, it should be a form that, when
1864evaluated, will return a list of file names. The search will be
1865restricted to these files.
1866
1867Aleso see the documentation of the `tags-file-name' variable."
1864 (interactive "sTags search (regexp): ") 1868 (interactive "sTags search (regexp): ")
1865 (if (and (equal regexp "") 1869 (if (and (equal regexp "")
1866 (eq (car tags-loop-scan) 're-search-forward) 1870 (eq (car tags-loop-scan) 're-search-forward)
diff --git a/lisp/simple.el b/lisp/simple.el
index 2c792a2c78e..64333402924 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1152,6 +1152,8 @@ display the result of expression evaluation."
1152(defun eval-expression (eval-expression-arg 1152(defun eval-expression (eval-expression-arg
1153 &optional eval-expression-insert-value) 1153 &optional eval-expression-insert-value)
1154 "Evaluate EVAL-EXPRESSION-ARG and print value in the echo area. 1154 "Evaluate EVAL-EXPRESSION-ARG and print value in the echo area.
1155When called interactively, read an Emacs Lisp expression and
1156evaluate it.
1155Value is also consed on to front of the variable `values'. 1157Value is also consed on to front of the variable `values'.
1156Optional argument EVAL-EXPRESSION-INSERT-VALUE non-nil (interactively, 1158Optional argument EVAL-EXPRESSION-INSERT-VALUE non-nil (interactively,
1157with prefix argument) means insert the result into the current buffer 1159with prefix argument) means insert the result into the current buffer
@@ -5303,11 +5305,12 @@ The variable `selective-display' has a separate value for each buffer."
5303(defvaralias 'indicate-unused-lines 'indicate-empty-lines) 5305(defvaralias 'indicate-unused-lines 'indicate-empty-lines)
5304 5306
5305(defun toggle-truncate-lines (&optional arg) 5307(defun toggle-truncate-lines (&optional arg)
5306 "Toggle whether to fold or truncate long lines for the current buffer. 5308 "Toggle truncating of long lines for the current buffer.
5309When truncating is off, long lines are folded.
5307With prefix argument ARG, truncate long lines if ARG is positive, 5310With prefix argument ARG, truncate long lines if ARG is positive,
5308otherwise don't truncate them. Note that in side-by-side windows, 5311otherwise fold them. Note that in side-by-side windows, this
5309this command has no effect if `truncate-partial-width-windows' 5312command has no effect if `truncate-partial-width-windows' is
5310is non-nil." 5313non-nil."
5311 (interactive "P") 5314 (interactive "P")
5312 (setq truncate-lines 5315 (setq truncate-lines
5313 (if (null arg) 5316 (if (null arg)
@@ -5520,8 +5523,8 @@ The function should return non-nil if the two tokens do not match.")
5520 (minibuffer-message "Mismatched parentheses") 5523 (minibuffer-message "Mismatched parentheses")
5521 (message "Mismatched parentheses")) 5524 (message "Mismatched parentheses"))
5522 (if (minibufferp) 5525 (if (minibufferp)
5523 (minibuffer-message "Unmatched parenthesis") 5526 (minibuffer-message "No matching parenthesis found")
5524 (message "Unmatched parenthesis")))) 5527 (message "No matching parenthesis found"))))
5525 ((not blinkpos) nil) 5528 ((not blinkpos) nil)
5526 ((pos-visible-in-window-p blinkpos) 5529 ((pos-visible-in-window-p blinkpos)
5527 ;; Matching open within window, temporarily move to blinkpos but only 5530 ;; Matching open within window, temporarily move to blinkpos but only
diff --git a/lisp/startup.el b/lisp/startup.el
index c6f3063ca90..66deb11623a 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -41,13 +41,16 @@
41(defcustom initial-buffer-choice nil 41(defcustom initial-buffer-choice nil
42 "Buffer to show after starting Emacs. 42 "Buffer to show after starting Emacs.
43If the value is nil and `inhibit-startup-screen' is nil, show the 43If the value is nil and `inhibit-startup-screen' is nil, show the
44startup screen. If the value is string, visit the specified file or 44startup screen. If the value is string, visit the specified file
45directory using `find-file'. If t, open the `*scratch*' buffer." 45or directory using `find-file'. If t, open the `*scratch*'
46buffer. If `none', don't select anything, but show the
47buffer (if any) selected by the startup file."
46 :type '(choice 48 :type '(choice
47 (const :tag "Startup screen" nil) 49 (const :tag "Startup screen" nil)
48 (directory :tag "Directory" :value "~/") 50 (directory :tag "Directory" :value "~/")
49 (file :tag "File" :value "~/.emacs") 51 (file :tag "File" :value "~/.emacs")
50 (const :tag "Lisp scratch buffer" t)) 52 (const :tag "Lisp scratch buffer" t)
53 (const :tag "Select no buffer" 'none))
51 :version "23.1" 54 :version "23.1"
52 :group 'initialization) 55 :group 'initialization)
53 56
diff --git a/lisp/subr.el b/lisp/subr.el
index 5c9d6c8d724..5c890eefa29 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1262,10 +1262,10 @@ unless the optional argument APPEND is non-nil, in which case
1262FUNCTION is added at the end. 1262FUNCTION is added at the end.
1263 1263
1264The optional fourth argument, LOCAL, if non-nil, says to modify 1264The optional fourth argument, LOCAL, if non-nil, says to modify
1265the hook's buffer-local value rather than its default value. 1265the hook's buffer-local value rather than its global value.
1266This makes the hook buffer-local if needed, and it makes t a member 1266This makes the hook buffer-local, and it makes t a member of the
1267of the buffer-local value. That acts as a flag to run the hook 1267buffer-local value. That acts as a flag to run the hook
1268functions in the default value as well as in the local value. 1268functions of the global value as well as in the local value.
1269 1269
1270HOOK should be a symbol, and FUNCTION may be any valid function. If 1270HOOK should be a symbol, and FUNCTION may be any valid function. If
1271HOOK is void, it is first set to nil. If HOOK's value is a single 1271HOOK is void, it is first set to nil. If HOOK's value is a single
@@ -3072,8 +3072,15 @@ See also `with-temp-file' and `with-output-to-string'."
3072 "Execute BODY, pretending it does not modify the buffer. 3072 "Execute BODY, pretending it does not modify the buffer.
3073If BODY performs real modifications to the buffer's text, other 3073If BODY performs real modifications to the buffer's text, other
3074than cosmetic ones, undo data may become corrupted. 3074than cosmetic ones, undo data may become corrupted.
3075Typically used around modifications of text-properties which do not really 3075
3076affect the buffer's content." 3076This macro will run BODY normally, but doesn't count its buffer
3077modifications as being buffer modifications. This affects things
3078like buffer-modified-p, checking whether the file is locked by
3079someone else, running buffer modification hooks, and other things
3080of that nature.
3081
3082Typically used around modifications of text-properties which do
3083not really affect the buffer's content."
3077 (declare (debug t) (indent 0)) 3084 (declare (debug t) (indent 0))
3078 (let ((modified (make-symbol "modified"))) 3085 (let ((modified (make-symbol "modified")))
3079 `(let* ((,modified (buffer-modified-p)) 3086 `(let* ((,modified (buffer-modified-p))
diff --git a/lisp/tabify.el b/lisp/tabify.el
index da1038a2164..0b2411d0316 100644
--- a/lisp/tabify.el
+++ b/lisp/tabify.el
@@ -34,19 +34,21 @@ Called non-interactively, the region is specified by arguments
34START and END, rather than by the position of point and mark. 34START and END, rather than by the position of point and mark.
35The variable `tab-width' controls the spacing of tab stops." 35The variable `tab-width' controls the spacing of tab stops."
36 (interactive "r") 36 (interactive "r")
37 (save-excursion 37 (let ((c (current-column)))
38 (save-restriction 38 (save-excursion
39 (narrow-to-region (point-min) end) 39 (save-restriction
40 (goto-char start) 40 (narrow-to-region (point-min) end)
41 (while (search-forward "\t" nil t) ; faster than re-search 41 (goto-char start)
42 (forward-char -1) 42 (while (search-forward "\t" nil t) ; faster than re-search
43 (let ((tab-beg (point)) 43 (forward-char -1)
44 (indent-tabs-mode nil) 44 (let ((tab-beg (point))
45 column) 45 (indent-tabs-mode nil)
46 (skip-chars-forward "\t") 46 column)
47 (setq column (current-column)) 47 (skip-chars-forward "\t")
48 (delete-region tab-beg (point)) 48 (setq column (current-column))
49 (indent-to column)))))) 49 (delete-region tab-beg (point))
50 (indent-to column)))))
51 (move-to-column c)))
50 52
51(defvar tabify-regexp " [ \t]+" 53(defvar tabify-regexp " [ \t]+"
52 "Regexp matching whitespace that tabify should consider. 54 "Regexp matching whitespace that tabify should consider.
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 80b970ac02f..6a3638c4232 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,9 @@
12011-07-13 Chris Newton <redshodan@gmail.com> (tiny change)
2
3 * url-http.el (url-http): Copy over `url-show-status' to the async
4 buffer so that `url-display-percentage' does the right thing
5 (bug#4680).
6
12011-07-06 Nick Dokos <nicholas.dokos@hp.com> (tiny change) 72011-07-06 Nick Dokos <nicholas.dokos@hp.com> (tiny change)
2 8
3 * url-cache.el (url-cache-extract): Set buffer multibyte flag to 9 * url-cache.el (url-cache-extract): Set buffer multibyte flag to
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 7e8b0d958cc..def35449397 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1172,6 +1172,7 @@ CBARGS as the arguments."
1172 url-http-after-change-function 1172 url-http-after-change-function
1173 url-callback-function 1173 url-callback-function
1174 url-callback-arguments 1174 url-callback-arguments
1175 url-show-status
1175 url-http-method 1176 url-http-method
1176 url-http-extra-headers 1177 url-http-extra-headers
1177 url-http-data 1178 url-http-data
@@ -1206,6 +1207,7 @@ CBARGS as the arguments."
1206 url-http-chunked-start 1207 url-http-chunked-start
1207 url-callback-function 1208 url-callback-function
1208 url-callback-arguments 1209 url-callback-arguments
1210 url-show-status
1209 url-http-process 1211 url-http-process
1210 url-http-method 1212 url-http-method
1211 url-http-extra-headers 1213 url-http-extra-headers
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 796311f8f66..6704a43e59b 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2428,7 +2428,7 @@ its name; otherwise return nil."
2428 (list file) 2428 (list file)
2429 (let ((backup-file (vc-version-backup-file file))) 2429 (let ((backup-file (vc-version-backup-file file)))
2430 (when backup-file 2430 (when backup-file
2431 (copy-file backup-file file 'ok-if-already-exists 'keep-date) 2431 (copy-file backup-file file 'ok-if-already-exists)
2432 (vc-delete-automatic-version-backups file)) 2432 (vc-delete-automatic-version-backups file))
2433 (vc-call revert file backup-file)) 2433 (vc-call revert file backup-file))
2434 `((vc-state . up-to-date) 2434 `((vc-state . up-to-date)
diff --git a/lisp/window.el b/lisp/window.el
index 999e408bdb1..593fa14d215 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5925,7 +5925,7 @@ buffer with the name BUFFER-OR-NAME and return that buffer."
5925 buffer)) 5925 buffer))
5926 (other-buffer))) 5926 (other-buffer)))
5927 5927
5928(defun switch-to-buffer (buffer-or-name &optional norecord) 5928(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window)
5929 "Switch to buffer BUFFER-OR-NAME in the selected window. 5929 "Switch to buffer BUFFER-OR-NAME in the selected window.
5930If called interactively, prompt for the buffer name using the 5930If called interactively, prompt for the buffer name using the
5931minibuffer. The variable `confirm-nonexistent-file-or-buffer' 5931minibuffer. The variable `confirm-nonexistent-file-or-buffer'
@@ -5941,25 +5941,33 @@ BUFFER-OR-NAME is nil, switch to the buffer returned by
5941Optional argument NORECORD non-nil means do not put the buffer 5941Optional argument NORECORD non-nil means do not put the buffer
5942specified by BUFFER-OR-NAME at the front of the buffer list and 5942specified by BUFFER-OR-NAME at the front of the buffer list and
5943do not make the window displaying it the most recently selected 5943do not make the window displaying it the most recently selected
5944one. Return the buffer switched to. 5944one.
5945 5945
5946This function is intended for interactive use only. Lisp 5946If FORCE-SAME-WINDOW is non-nil, BUFFER-OR-NAME must be displayed
5947functions should call `pop-to-buffer-same-window' instead." 5947in the currently selected window; signal an error if that is
5948impossible (e.g. if the selected window is minibuffer-only).
5949If non-nil, BUFFER-OR-NAME may be displayed in another window.
5950
5951Return the buffer switched to."
5948 (interactive 5952 (interactive
5949 (list (read-buffer-to-switch "Switch to buffer: "))) 5953 (list (read-buffer-to-switch "Switch to buffer: ") nil nil))
5950 (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) 5954 (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name)))
5951 (cond 5955 (if (null force-same-window)
5952 ;; Don't call set-window-buffer if it's not needed since it 5956 (pop-to-buffer buffer-or-name
5953 ;; might signal an error (e.g. if the window is dedicated). 5957 '(same-window (reuse-window-dedicated . weak))
5954 ((eq buffer (window-buffer)) nil) 5958 norecord nil)
5955 ((window-minibuffer-p) 5959 (cond
5956 (error "Cannot switch buffers in minibuffer window")) 5960 ;; Don't call set-window-buffer if it's not needed since it
5957 ((eq (window-dedicated-p) t) 5961 ;; might signal an error (e.g. if the window is dedicated).
5958 (error "Cannot switch buffers in a dedicated window")) 5962 ((eq buffer (window-buffer)) nil)
5959 (t (set-window-buffer nil buffer))) 5963 ((window-minibuffer-p)
5960 (unless norecord 5964 (error "Cannot switch buffers in minibuffer window"))
5961 (select-window (selected-window))) 5965 ((eq (window-dedicated-p) t)
5962 (set-buffer buffer))) 5966 (error "Cannot switch buffers in a dedicated window"))
5967 (t (set-window-buffer nil buffer)))
5968 (unless norecord
5969 (select-window (selected-window)))
5970 (set-buffer buffer))))
5963 5971
5964(defun switch-to-buffer-same-frame (buffer-or-name &optional norecord) 5972(defun switch-to-buffer-same-frame (buffer-or-name &optional norecord)
5965 "Switch to buffer BUFFER-OR-NAME in a window on the selected frame. 5973 "Switch to buffer BUFFER-OR-NAME in a window on the selected frame.
diff --git a/lisp/winner.el b/lisp/winner.el
index e5855ad8aac..70038362c2e 100644
--- a/lisp/winner.el
+++ b/lisp/winner.el
@@ -145,7 +145,7 @@ You may want to include buffer names such as *Help*, *Apropos*,
145 145
146;;; Saved configurations 146;;; Saved configurations
147 147
148;; This variable contains the window cofiguration rings. 148;; This variable contains the window configuration rings.
149;; The key in this alist is the frame. 149;; The key in this alist is the frame.
150(defvar winner-ring-alist nil) 150(defvar winner-ring-alist nil)
151 151