aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-07-13 23:41:47 -0700
committerPaul Eggert2011-07-13 23:41:47 -0700
commitcf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e (patch)
tree1bdb0fd052770b8c3b0c6ea83fb7c6a9bfdd5b85
parentca4aa9359160557f8103639fc3c0ccb16c6ba8d2 (diff)
parent27fa387ad10e6a5639de1ab08e7559c06e9d802d (diff)
downloademacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.tar.gz
emacs-cf950e6bbdeec3f6aab3e119f26f9cd5d962ac2e.zip
Merge from trunk.
-rw-r--r--ChangeLog6
-rw-r--r--admin/charsets/mule-charsets.el2
-rw-r--r--configure.in2
-rw-r--r--doc/emacs/ChangeLog14
-rw-r--r--doc/emacs/custom.texi6
-rw-r--r--doc/emacs/dired.texi7
-rw-r--r--doc/emacs/mark.texi8
-rw-r--r--doc/lispref/ChangeLog16
-rw-r--r--doc/lispref/help.texi11
-rw-r--r--doc/lispref/keymaps.texi11
-rw-r--r--doc/lispref/modes.texi15
-rw-r--r--doc/lispref/objects.texi4
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/cl.texi9
-rw-r--r--etc/NEWS9
-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
-rw-r--r--src/ChangeLog31
-rw-r--r--src/ChangeLog.62
-rw-r--r--src/buffer.c2
-rw-r--r--src/editfns.c8
-rw-r--r--src/gnutls.c9
-rw-r--r--test/eshell.el2
51 files changed, 453 insertions, 162 deletions
diff --git a/ChangeLog b/ChangeLog
index 94b4be02106..b9301731d5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
12011-07-12 Paul Eggert <eggert@cs.ucla.edu> 12011-07-14 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Assume freestanding C89 headers, string.h, stdlib.h. 3 Assume freestanding C89 headers, string.h, stdlib.h.
4 Again, this simplifies the code, and all current platforms have these. 4 Again, this simplifies the code, and all current platforms have these.
@@ -13,6 +13,10 @@
13 can add the gnulib modules for these (a 1-line change to Makefile.in). 13 can add the gnulib modules for these (a 1-line change to Makefile.in).
14 * configure.in: Don't check for memcmp, memcpy, memmove, memset. 14 * configure.in: Don't check for memcmp, memcpy, memmove, memset.
15 15
162011-07-13 Jan Djärv <jan.h.d@swipnet.se>
17
18 * configure.in (GSETTINGS): Check for gio-2.0 >= 2.26.
19
162011-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 202011-07-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17 21
18 * configure.in (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie on Darwin 22 * configure.in (LD_SWITCH_SYSTEM_TEMACS): Add -fno-pie on Darwin
diff --git a/admin/charsets/mule-charsets.el b/admin/charsets/mule-charsets.el
index 59969c3df28..9ac08bef724 100644
--- a/admin/charsets/mule-charsets.el
+++ b/admin/charsets/mule-charsets.el
@@ -1,4 +1,4 @@
1;; mule-charsets.el -- Generate Mule-orignal charset maps. 1;; mule-charsets.el -- Generate Mule-original charset maps.
2;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 2;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
3;; National Institute of Advanced Industrial Science and Technology (AIST) 3;; National Institute of Advanced Industrial Science and Technology (AIST)
4;; Registration Number H13PRO009 4;; Registration Number H13PRO009
diff --git a/configure.in b/configure.in
index 46a067d6fee..04a123d3e83 100644
--- a/configure.in
+++ b/configure.in
@@ -1986,7 +1986,7 @@ AC_SUBST(DBUS_OBJ)
1986dnl GSettings has been tested under GNU/Linux only. 1986dnl GSettings has been tested under GNU/Linux only.
1987HAVE_GSETTINGS=no 1987HAVE_GSETTINGS=no
1988if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then 1988if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
1989 PKG_CHECK_MODULES(GSETTINGS, glib-2.0 >= 2.26, HAVE_GSETTINGS=yes, HAVE_GSETTINGS=no) 1989 PKG_CHECK_MODULES(GSETTINGS, gio-2.0 >= 2.26, HAVE_GSETTINGS=yes, HAVE_GSETTINGS=no)
1990 if test "$HAVE_GSETTINGS" = "yes"; then 1990 if test "$HAVE_GSETTINGS" = "yes"; then
1991 AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.]) 1991 AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.])
1992 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" 1992 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index bd5cfdce66b..e21a02f700f 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,17 @@
12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * custom.texi (Hooks): Mention buffer-local hooks (bug#6218).
4
52011-07-13 Glenn Morris <rgm@gnu.org>
6
7 * dired.texi (Dired Enter): Mention --dired. (Bug#9039)
8
92011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
10
11 * mark.texi (Mark Ring): Clarify how many locations are saved
12 (bug#5770).
13 (Global Mark Ring): Ditto.
14
12011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 152011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 16
3 * text.texi (Table Recognition): Use "at point" instead of "under 17 * text.texi (Table Recognition): Use "at point" instead of "under
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index 8465dd93519..6a6d465438d 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -820,6 +820,12 @@ the versions you added will remain in the hook variable together. You
820can clear out individual functions by calling @code{remove-hook}, or 820can clear out individual functions by calling @code{remove-hook}, or
821do @code{(setq @var{hook-variable} nil)} to remove everything. 821do @code{(setq @var{hook-variable} nil)} to remove everything.
822 822
823@cindex buffer-local hooks
824 If the hook variable is buffer-local, the buffer-local variable will
825be used instead of the global variable. However, if the buffer-local
826variable contains the element @code{t}, the global hook variable will
827be run as well.
828
823@node Locals 829@node Locals
824@subsection Local Variables 830@subsection Local Variables
825 831
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index fb3521e4316..501c4152e6a 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -81,6 +81,13 @@ specified, the @code{ls} switches can include short options (that is,
81single characters) requiring no arguments, and long options (starting 81single characters) requiring no arguments, and long options (starting
82with @samp{--}) whose arguments are specified with @samp{=}. 82with @samp{--}) whose arguments are specified with @samp{=}.
83 83
84@vindex dired-use-ls-dired
85 Note that Dired automatically adds the option @samp{--dired}, if
86your @code{ls} program supports it, unless you explicitly set
87the variable @code{dired-use-ls-dired} to @code{nil}. Without this
88option, Dired will have trouble parsing some @samp{unusual} file-names.
89See the documentation of @code{dired-use-ls-dired} for more details.
90
84 On MS-Windows and MS-DOS systems, Emacs @emph{emulates} @code{ls}; 91 On MS-Windows and MS-DOS systems, Emacs @emph{emulates} @code{ls};
85see @ref{ls in Lisp}, for options and peculiarities of that emulation. 92see @ref{ls in Lisp}, for options and peculiarities of that emulation.
86 93
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi
index 20cc127d272..1a93f5b79c8 100644
--- a/doc/emacs/mark.texi
+++ b/doc/emacs/mark.texi
@@ -253,7 +253,9 @@ Another effect of this mode is that some keys, such as @key{DEL} and
253@cindex mark ring 253@cindex mark ring
254 Aside from delimiting the region, the mark is also useful for 254 Aside from delimiting the region, the mark is also useful for
255remembering spots that you may want to go back to. Each buffer 255remembering spots that you may want to go back to. Each buffer
256remembers 16 previous locations of the mark, in the @dfn{mark ring}. 256remembers @code{mark-ring-max} previous locations of the mark, in the
257@dfn{mark ring}. This defaults to 16 locations.
258
257Commands that set the mark also push the old mark onto this ring. 259Commands that set the mark also push the old mark onto this ring.
258 260
259@table @kbd 261@table @kbd
@@ -315,10 +317,12 @@ Positions in Registers}).
315@section The Global Mark Ring 317@section The Global Mark Ring
316@cindex global mark ring 318@cindex global mark ring
317 319
320@vindex global-mark-ring-max
318 In addition to the ordinary mark ring that belongs to each buffer, 321 In addition to the ordinary mark ring that belongs to each buffer,
319Emacs has a single @dfn{global mark ring}. Each time you set a mark, 322Emacs has a single @dfn{global mark ring}. Each time you set a mark,
320in any buffer, this is recorded in the global mark ring in addition to 323in any buffer, this is recorded in the global mark ring in addition to
321the current buffer's own mark ring. 324the current buffer's own mark ring. The length of this ring can be
325controlled by @code{global-mark-ring-max}, and is 16 by default.
322 326
323@kindex C-x C-@key{SPC} 327@kindex C-x C-@key{SPC}
324@findex pop-global-mark 328@findex pop-global-mark
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 1d1730e078d..19da0a3c442 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,19 @@
12011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * help.texi (Documentation Basics): Add a link to the Function
4 Documentation node (bug#6580).
5
62011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
7
8 * keymaps.texi (Menu Bar): Mention :visible and :enable
9 (bug#6344). Text by Drew Adams.
10
11 * modes.texi (Running Hooks): Mention buffer-local hook variables
12 (bug#6218).
13
14 * objects.texi (General Escape Syntax): "a with grave accent" is
15 ?xe0, not ?x8e0 (bug#5259).
16
12011-07-12 Chong Yidong <cyd@stupidchicken.com> 172011-07-12 Chong Yidong <cyd@stupidchicken.com>
2 18
3 * display.texi (Face Attributes, Font Selection): Add references 19 * display.texi (Face Attributes, Font Selection): Add references
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi
index 63fc06c929b..0ce05d55a07 100644
--- a/doc/lispref/help.texi
+++ b/doc/lispref/help.texi
@@ -78,11 +78,12 @@ function or variable that it describes:
78@item 78@item
79@kindex function-documentation 79@kindex function-documentation
80The documentation for a function is usually stored in the function 80The documentation for a function is usually stored in the function
81definition itself (@pxref{Lambda Expressions}). The function 81definition itself (@pxref{Lambda Expressions} and @pxref{Function
82@code{documentation} knows how to extract it. You can also put 82Documentation}). The function @code{documentation} knows how to
83function documentation in the @code{function-documentation} property 83extract it. You can also put function documentation in the
84of the function name. That is useful with definitions such as 84@code{function-documentation} property of the function name. That is
85keyboard macros that can't hold a documentation string. 85useful with definitions such as keyboard macros that can't hold a
86documentation string.
86 87
87@item 88@item
88@kindex variable-documentation 89@kindex variable-documentation
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index cf1db5b7fce..15b2f2079ba 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -2262,6 +2262,17 @@ the double-dash and replacing each single dash with capitalization of
2262the following word. Thus, @code{"--:singleLine"}, is equivalent to 2262the following word. Thus, @code{"--:singleLine"}, is equivalent to
2263@code{"--single-line"}. 2263@code{"--single-line"}.
2264 2264
2265 You can use a longer form to specify keywords such as @code{:enable}
2266and @code{:visible} for a menu separator:
2267
2268@code{(menu-item @var{separator-type} nil . @var{item-property-list})}
2269
2270For example:
2271
2272@example
2273(menu-item "--" nil :visible (boundp 'foo))
2274@end example
2275
2265 Some systems and display toolkits don't really handle all of these 2276 Some systems and display toolkits don't really handle all of these
2266separator types. If you use a type that isn't supported, the menu 2277separator types. If you use a type that isn't supported, the menu
2267displays a similar kind of separator that is supported. 2278displays a similar kind of separator that is supported.
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index a8a10f750cc..dd3b2e3038f 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -101,6 +101,11 @@ one, with no arguments.
101The hook variable's value can also be a single function---either a 101The hook variable's value can also be a single function---either a
102lambda expression or a symbol with a function definition---which 102lambda expression or a symbol with a function definition---which
103@code{run-hooks} calls. But this usage is obsolete. 103@code{run-hooks} calls. But this usage is obsolete.
104
105If the hook variable is buffer-local, the buffer-local variable will
106be used instead of the global variable. However, if the buffer-local
107variable contains the element @code{t}, the global hook variable will
108be run as well.
104@end defun 109@end defun
105 110
106@defun run-hook-with-args hook &rest args 111@defun run-hook-with-args hook &rest args
@@ -169,11 +174,11 @@ function goes at the end of the hook list and will be executed last.
169value is a single function; it sets or changes the value to a list of 174value is a single function; it sets or changes the value to a list of
170functions. 175functions.
171 176
172If @var{local} is non-@code{nil}, that says to add @var{function} to 177If @var{local} is non-@code{nil}, that says to add @var{function} to the
173the buffer-local hook list instead of to the global hook list. If 178buffer-local hook list instead of to the global hook list. This makes
174needed, this makes the hook buffer-local and adds @code{t} to the 179the hook buffer-local and adds @code{t} to the buffer-local value. The
175buffer-local value. The latter acts as a flag to run the hook 180latter acts as a flag to run the hook functions in the default value as
176functions in the default value as well as in the local value. 181well as in the local value.
177@end defun 182@end defun
178 183
179@defun remove-hook hook function &optional local 184@defun remove-hook hook function &optional local
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 27d9ba10aef..6d63bb7b750 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -392,7 +392,7 @@ value is more important than the @acronym{ASCII} representation.
392and the hexadecimal character code. You can use any number of hex 392and the hexadecimal character code. You can use any number of hex
393digits, so you can represent any character code in this way. 393digits, so you can represent any character code in this way.
394Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the 394Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the
395character @kbd{C-a}, and @code{?\x8e0} for the Latin-1 character 395character @kbd{C-a}, and @code{?\xe0} for the Latin-1 character
396@iftex 396@iftex
397@samp{@`a}. 397@samp{@`a}.
398@end iftex 398@end iftex
@@ -1037,7 +1037,7 @@ digits as necessary. (Multibyte non-@acronym{ASCII} character codes are all
1037greater than 256.) Any character which is not a valid hex digit 1037greater than 256.) Any character which is not a valid hex digit
1038terminates this construct. If the next character in the string could be 1038terminates this construct. If the next character in the string could be
1039interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to 1039interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to
1040terminate the hex escape---for example, @w{@samp{\x8e0\ }} represents 1040terminate the hex escape---for example, @w{@samp{\xe0\ }} represents
1041one character, @samp{a} with grave accent. @w{@samp{\ }} in a string 1041one character, @samp{a} with grave accent. @w{@samp{\ }} in a string
1042constant is just like backslash-newline; it does not contribute any 1042constant is just like backslash-newline; it does not contribute any
1043character to the string, but it does terminate the preceding hex escape. 1043character to the string, but it does terminate the preceding hex escape.
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 3738301ceea..9687f474286 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12010-07-10 Kevin Ryde <user42@zip.com.au>
2
3 * cl.texi (For Clauses): Add destructuring example processing an
4 alist (bug#6596).
5
12011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * org.texi (Special agenda views): Fix double quoting (bug#3509). 8 * org.texi (Special agenda views): Fix double quoting (bug#3509).
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index ab54b99138a..3f3d616e343 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -2586,7 +2586,14 @@ the trailing values are ignored, and if there are more variables
2586than values the trailing variables get the value @code{nil}. 2586than values the trailing variables get the value @code{nil}.
2587If @code{nil} is used as a variable name, the corresponding 2587If @code{nil} is used as a variable name, the corresponding
2588values are ignored. Destructuring may be nested, and dotted 2588values are ignored. Destructuring may be nested, and dotted
2589lists of variables like @code{(x . y)} are allowed. 2589lists of variables like @code{(x . y)} are allowed, so for example
2590to process an alist
2591
2592@example
2593(loop for (key . value) in '((a . 1) (b . 2))
2594 collect value)
2595 @result{} (1 2)
2596@end example
2590 2597
2591@node Iteration Clauses, Accumulation Clauses, For Clauses, Loop Facility 2598@node Iteration Clauses, Accumulation Clauses, For Clauses, Loop Facility
2592@subsection Iteration Clauses 2599@subsection Iteration Clauses
diff --git a/etc/NEWS b/etc/NEWS
index 8a37735b41f..3f23c23fe3a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -986,6 +986,15 @@ sc.el, x-menu.el, rnews.el, rnewspost.el
986 986
987* Lisp changes in Emacs 24.1 987* Lisp changes in Emacs 24.1
988 988
989** Window changes
990
991*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
992which if non-nil requires the buffer to be displayed in the currently
993selected window, signaling an error otherwise. If nil, another window
994can be used, e.g. if the selected one is strongly dedicated.
995
996*** FIXME: buffer-display-alist changes
997
989** Completion 998** Completion
990*** New variable completion-extra-properties used to specify extra properties 999*** New variable completion-extra-properties used to specify extra properties
991of the current completion: 1000of the current completion:
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
diff --git a/src/ChangeLog b/src/ChangeLog
index e07b906b56d..2b6fc837b62 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-07-14 Paul Eggert <eggert@cs.ucla.edu> 12011-07-14 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Integer signedness and overflow and related fixes.
4
3 * image.c: Improve checking for integer overflow. 5 * image.c: Improve checking for integer overflow.
4 (check_image_size): Assume that f is nonnull, since 6 (check_image_size): Assume that f is nonnull, since
5 it is always nonnull in practice. This is one less thing to 7 it is always nonnull in practice. This is one less thing to
@@ -19,8 +21,6 @@
19 x_create_x_image_and_pixmap failed, not as malloc failures. 21 x_create_x_image_and_pixmap failed, not as malloc failures.
20 (gs_load): Use x_check_image_size. 22 (gs_load): Use x_check_image_size.
21 23
222011-07-13 Paul Eggert <eggert@cs.ucla.edu>
23
24 * gtkutil.c: Omit integer casts. 24 * gtkutil.c: Omit integer casts.
25 (xg_get_pixbuf_from_pixmap): Remove unnecessary cast. 25 (xg_get_pixbuf_from_pixmap): Remove unnecessary cast.
26 (xg_set_toolkit_scroll_bar_thumb): Rewrite to avoid need for cast. 26 (xg_set_toolkit_scroll_bar_thumb): Rewrite to avoid need for cast.
@@ -115,7 +115,7 @@
115 * bidi.c: Integer signedness and overflow fixes. 115 * bidi.c: Integer signedness and overflow fixes.
116 (bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state) 116 (bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state)
117 (bidi_cache_search, bidi_cache_find_level_change) 117 (bidi_cache_search, bidi_cache_find_level_change)
118 (bidi_cache_iterator_state, bidi_cache_find) 118p (bidi_cache_iterator_state, bidi_cache_find)
119 (bidi_find_other_level_edge, bidi_dump_cached_states): 119 (bidi_find_other_level_edge, bidi_dump_cached_states):
120 Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead. 120 Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead.
121 (bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer 121 (bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer
@@ -185,10 +185,23 @@
185 * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now. 185 * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now.
186 (__malloc_safe_bcopy): Remove; no longer needed. 186 (__malloc_safe_bcopy): Remove; no longer needed.
187 187
188 * lisp.h (struct vectorlike_header, struct Lisp_Subr): Signed sizes. 188 * lisp.h (struct vectorlike_header, struct Lisp_Subr): Signed sizes.
189 Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally 189 Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally
190 well either way, and we prefer signed to unsigned. 190 well either way, and we prefer signed to unsigned.
191 191
1922011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
193
194 * editfns.c (Fstring_to_char): Clarify just what is returned
195 (bug#6576). Text by Eli Zaretskii.
196
1972011-07-13 Juanma Barranquero <lekktu@gmail.com>
198
199 * gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059).
200
2012011-07-13 Eli Zaretskii <eliz@gnu.org>
202
203 * buffer.c (mmap_find): Fix a typo.
204
1922011-07-13 Johan Bockgård <bojohan@gnu.org> 2052011-07-13 Johan Bockgård <bojohan@gnu.org>
193 206
194 Fix execution of x selection hooks. 207 Fix execution of x selection hooks.
@@ -203,7 +216,7 @@
203 216
2042011-07-13 Paul Eggert <eggert@cs.ucla.edu> 2172011-07-13 Paul Eggert <eggert@cs.ucla.edu>
205 218
206 * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking. 219 * buffer.c (Fget_buffer_create): Initialize inhibit_shrinking.
207 The old code sometimes used this field without initializing it. 220 The old code sometimes used this field without initializing it.
208 221
209 * alloc.c (gc_sweep): Don't read past end of array. 222 * alloc.c (gc_sweep): Don't read past end of array.
@@ -213,7 +226,7 @@
2132011-07-12 Andreas Schwab <schwab@linux-m68k.org> 2262011-07-12 Andreas Schwab <schwab@linux-m68k.org>
214 227
215 * character.c (Fcharacterp): Don't advertise optional ignored 228 * character.c (Fcharacterp): Don't advertise optional ignored
216 argument. (Bug#4026) 229 argument. (Bug#4026)
217 230
2182011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> 2312011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
219 232
@@ -427,7 +440,7 @@
427 (char_table_ascii): Uncompress the compressed values. 440 (char_table_ascii): Uncompress the compressed values.
428 (sub_char_table_ref): New arg is_uniprop. Callers changed. 441 (sub_char_table_ref): New arg is_uniprop. Callers changed.
429 Uncompress the compressed values. 442 Uncompress the compressed values.
430 (sub_char_table_ref_and_range): Likewise. 443 (sub_char_table_ref_and_range): Likewise.
431 (char_table_ref_and_range): Uncompress the compressed values. 444 (char_table_ref_and_range): Uncompress the compressed values.
432 (sub_char_table_set): New arg is_uniprop. Callers changed. 445 (sub_char_table_set): New arg is_uniprop. Callers changed.
433 Uncompress the compressed values. 446 Uncompress the compressed values.
@@ -2105,7 +2118,7 @@
2105 (xpm_put_color_table_h): 2118 (xpm_put_color_table_h):
2106 * lisp.h (struct Lisp_Hash_Table): 2119 * lisp.h (struct Lisp_Hash_Table):
2107 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): 2120 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2108 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT' 2121 * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT'
2109 for hashes and hash indexes, instead of 'unsigned' and 'int'. 2122 for hashes and hash indexes, instead of 'unsigned' and 'int'.
2110 * alloc.c (allocate_vectorlike): 2123 * alloc.c (allocate_vectorlike):
2111 Check for overflow in vector size calculations. 2124 Check for overflow in vector size calculations.
@@ -2402,7 +2415,7 @@
2402 2415
2403 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row 2416 * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
2404 for fringe update if it has periodic bitmap. 2417 for fringe update if it has periodic bitmap.
2405 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset, 2418 (row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
2406 and fringe_bitmap_periodic_p. 2419 and fringe_bitmap_periodic_p.
2407 2420
2408 * fringe.c (get_fringe_bitmap_data): New function. 2421 * fringe.c (get_fringe_bitmap_data): New function.
diff --git a/src/ChangeLog.6 b/src/ChangeLog.6
index d7903568102..f9372aa666a 100644
--- a/src/ChangeLog.6
+++ b/src/ChangeLog.6
@@ -4599,7 +4599,7 @@
4599 4599
46001995-08-14 Erik Naggum <erik@naggum.no> 46001995-08-14 Erik Naggum <erik@naggum.no>
4601 4601
4602 * emacs.c (standard_args): Add option --eval to evalute an 4602 * emacs.c (standard_args): Add option --eval to evaluate an
4603 expression on the command line and print the result. 4603 expression on the command line and print the result.
4604 4604
46051995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu> 46051995-08-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
diff --git a/src/buffer.c b/src/buffer.c
index 7a94bc79be0..a40275db8de 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4500,7 +4500,7 @@ mmap_init (void)
4500 is at END - 1. */ 4500 is at END - 1. */
4501 4501
4502static struct mmap_region * 4502static struct mmap_region *
4503mmap_find (POINTER_TYPE *start, POINTER_TYPE *end); 4503mmap_find (POINTER_TYPE *start, POINTER_TYPE *end)
4504{ 4504{
4505 struct mmap_region *r; 4505 struct mmap_region *r;
4506 char *s = (char *) start, *e = (char *) end; 4506 char *s = (char *) start, *e = (char *) end;
diff --git a/src/editfns.c b/src/editfns.c
index e3a7d1f7fa1..6aba319d5b2 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -194,8 +194,12 @@ DEFUN ("byte-to-string", Fbyte_to_string, Sbyte_to_string, 1, 1, 0,
194} 194}
195 195
196DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0, 196DEFUN ("string-to-char", Fstring_to_char, Sstring_to_char, 1, 1, 0,
197 doc: /* Convert arg STRING to a character, the first character of that string. 197 doc: /* Return the first character in STRING.
198A multibyte character is handled correctly. */) 198A multibyte character is handled correctly.
199The value returned is a Unicode codepoint if it is below #x110000 (in
200hex). Codepoints beyond that are Emacs extensions of Unicode. In
201particular, eight-bit characters are returned as codepoints in the
202range #x3FFF80 through #x3FFFFF, inclusive. */)
199 (register Lisp_Object string) 203 (register Lisp_Object string)
200{ 204{
201 register Lisp_Object val; 205 register Lisp_Object val;
diff --git a/src/gnutls.c b/src/gnutls.c
index 76cfa5dcc98..3761951b866 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -143,10 +143,12 @@ static int
143init_gnutls_functions (Lisp_Object libraries) 143init_gnutls_functions (Lisp_Object libraries)
144{ 144{
145 HMODULE library; 145 HMODULE library;
146 Lisp_Object gnutls_log_level = Fsymbol_value (Qgnutls_log_level);
147 int max_log_level = 1;
146 148
147 if (!(library = w32_delayed_load (libraries, Qgnutls_dll))) 149 if (!(library = w32_delayed_load (libraries, Qgnutls_dll)))
148 { 150 {
149 GNUTLS_LOG (1, 1, "GnuTLS library not found"); 151 GNUTLS_LOG (1, max_log_level, "GnuTLS library not found");
150 return 0; 152 return 0;
151 } 153 }
152 154
@@ -189,7 +191,10 @@ init_gnutls_functions (Lisp_Object libraries)
189 LOAD_GNUTLS_FN (library, gnutls_x509_crt_import); 191 LOAD_GNUTLS_FN (library, gnutls_x509_crt_import);
190 LOAD_GNUTLS_FN (library, gnutls_x509_crt_init); 192 LOAD_GNUTLS_FN (library, gnutls_x509_crt_init);
191 193
192 GNUTLS_LOG2 (1, 1, "GnuTLS library loaded:", 194 if (NUMBERP (gnutls_log_level))
195 max_log_level = XINT (gnutls_log_level);
196
197 GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:",
193 SDATA (Fget (Qgnutls_dll, QCloaded_from))); 198 SDATA (Fget (Qgnutls_dll, QCloaded_from)));
194 return 1; 199 return 1;
195} 200}
diff --git a/test/eshell.el b/test/eshell.el
index 3b392e84c24..8a9e62a759a 100644
--- a/test/eshell.el
+++ b/test/eshell.el
@@ -396,7 +396,7 @@
396 (eshell-command-result-p "+ ${+ 1 2} 3" "6\n")) 396 (eshell-command-result-p "+ ${+ 1 2} 3" "6\n"))
397 397
398(eshell-deftest var interp-lisp 398(eshell-deftest var interp-lisp
399 "Interpolate Lisp form evalution" 399 "Interpolate Lisp form evaluation"
400 (eshell-command-result-p "+ $(+ 1 2) 3" "6\n")) 400 (eshell-command-result-p "+ $(+ 1 2) 3" "6\n"))
401 401
402(eshell-deftest var interp-concat 402(eshell-deftest var interp-concat