aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2011-01-12 15:11:40 +0900
committerKenichi Handa2011-01-12 15:11:40 +0900
commit07ee9351461ff93feabd66f36ccfdc0ff7b5dcfc (patch)
treec5c619a64600c6d76b3c3134037baeabf73d191b
parente7ca0062a4899a2cc5f8b0793eb0bca58efea855 (diff)
parentae01d7ca64c60e98e2a37231c4b33271c5f78f31 (diff)
downloademacs-07ee9351461ff93feabd66f36ccfdc0ff7b5dcfc.tar.gz
emacs-07ee9351461ff93feabd66f36ccfdc0ff7b5dcfc.zip
merge emacs-23
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure66
-rw-r--r--configure.in9
-rw-r--r--doc/emacs/ChangeLog11
-rw-r--r--doc/emacs/files.texi26
-rw-r--r--doc/emacs/msdog.texi32
-rw-r--r--doc/lispref/ChangeLog10
-rw-r--r--doc/lispref/files.texi51
-rw-r--r--lisp/ChangeLog45
-rw-r--r--lisp/buff-menu.el11
-rw-r--r--lisp/dired.el4
-rw-r--r--lisp/emacs-lisp/cl-loaddefs.el6
-rw-r--r--lisp/emulation/tpu-edt.el2
-rw-r--r--lisp/files.el5
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/message.el9
-rw-r--r--lisp/ibuffer.el2
-rw-r--r--lisp/jka-compr.el5
-rw-r--r--lisp/mail/rmail.el14
-rw-r--r--lisp/net/ldap.el3
-rw-r--r--lisp/net/tramp.el53
-rw-r--r--lisp/progmodes/grep.el11
-rw-r--r--lisp/ps-print.el2
-rw-r--r--lisp/tmm.el66
-rw-r--r--lisp/vc-bzr.el4
-rw-r--r--lisp/whitespace.el3
-rw-r--r--src/ChangeLog7
-rw-r--r--src/config.in3
-rw-r--r--src/s/netbsd.h3
29 files changed, 340 insertions, 134 deletions
diff --git a/ChangeLog b/ChangeLog
index 36e80a7bd9c..a4e2660bb26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12011-01-12 Chong Yidong <cyd@stupidchicken.com>
2
3 * configure.in [netbsd systems]: Check for tputs definition
4 (Bug#7642).
5
12010-12-11 Glenn Morris <rgm@gnu.org> 62010-12-11 Glenn Morris <rgm@gnu.org>
2 7
3 * make-dist: Exclude etc/*.pyc. [Backport from trunk] 8 * make-dist: Exclude etc/*.pyc. [Backport from trunk]
diff --git a/configure b/configure
index ead032e31c0..b408648498b 100755
--- a/configure
+++ b/configure
@@ -11833,6 +11833,72 @@ _ACEOF
11833fi 11833fi
11834 11834
11835 11835
11836case "$opsys" in
11837 netbsd)
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
11839$as_echo_n "checking for library containing tputs... " >&6; }
11840if test "${ac_cv_search_tputs+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842else
11843 ac_func_search_save_LIBS=$LIBS
11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h. */
11846
11847/* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853char tputs ();
11854int
11855main ()
11856{
11857return tputs ();
11858 ;
11859 return 0;
11860}
11861_ACEOF
11862for ac_lib in '' ncurses terminfo termcap; do
11863 if test -z "$ac_lib"; then
11864 ac_res="none required"
11865 else
11866 ac_res=-l$ac_lib
11867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11868 fi
11869 if ac_fn_c_try_link "$LINENO"; then :
11870 ac_cv_search_tputs=$ac_res
11871fi
11872rm -f core conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext
11874 if test "${ac_cv_search_tputs+set}" = set; then :
11875 break
11876fi
11877done
11878if test "${ac_cv_search_tputs+set}" = set; then :
11879
11880else
11881 ac_cv_search_tputs=no
11882fi
11883rm conftest.$ac_ext
11884LIBS=$ac_func_search_save_LIBS
11885fi
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
11887$as_echo "$ac_cv_search_tputs" >&6; }
11888ac_res=$ac_cv_search_tputs
11889if test "$ac_res" != no; then :
11890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11891
11892fi
11893
11894 if test $ac_cv_search_tputs = -lterminfo; then
11895
11896$as_echo "#define TERMINFO 1" >>confdefs.h
11897
11898 fi
11899 ;;
11900esac
11901
11836# Do we have res_init, for detecting changes in /etc/resolv.conf? 11902# Do we have res_init, for detecting changes in /etc/resolv.conf?
11837 11903
11838resolv=no 11904resolv=no
diff --git a/configure.in b/configure.in
index 2cbd03067db..b15a0bf7a7f 100644
--- a/configure.in
+++ b/configure.in
@@ -2372,6 +2372,15 @@ AC_CHECK_FUNCS(getpt)
2372# than to expect to find it in ncurses. 2372# than to expect to find it in ncurses.
2373AC_CHECK_LIB(ncurses, tparm) 2373AC_CHECK_LIB(ncurses, tparm)
2374 2374
2375case "$opsys" in
2376 netbsd)
2377 AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap])
2378 if test $ac_cv_search_tputs = -lterminfo; then
2379 AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.])
2380 fi
2381 ;;
2382esac
2383
2375# Do we have res_init, for detecting changes in /etc/resolv.conf? 2384# Do we have res_init, for detecting changes in /etc/resolv.conf?
2376 2385
2377resolv=no 2386resolv=no
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index a374272135f..4825f08979f 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,14 @@
12011-01-08 Chong Yidong <cyd@stupidchicken.com>
2
3 * files.texi (File Aliases): Move directory-abbrev-alist doc from Lisp
4 manual. Explain why directory-abbrev-alist elements should be anchored
5 (Bug#7777).
6
72011-01-07 Eli Zaretskii <eliz@gnu.org>
8
9 * msdog.texi (Windows Startup): Correct inaccurate description of
10 differences between emacsclient.exe and emacsclientw.exe.
11
12010-12-30 Chong Yidong <cyd@stupidchicken.com> 122010-12-30 Chong Yidong <cyd@stupidchicken.com>
2 13
3 * rmail.texi (Rmail Display): Edit for grammar and conciseness. 14 * rmail.texi (Rmail Display): Edit for grammar and conciseness.
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 4df81caa8f2..530c2bb94f7 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1158,7 +1158,6 @@ links point to directories.
1158 1158
1159@vindex find-file-existing-other-name 1159@vindex find-file-existing-other-name
1160@vindex find-file-suppress-same-file-warnings 1160@vindex find-file-suppress-same-file-warnings
1161
1162 Normally, if you visit a file which Emacs is already visiting under 1161 Normally, if you visit a file which Emacs is already visiting under
1163a different name, Emacs displays a message in the echo area and uses 1162a different name, Emacs displays a message in the echo area and uses
1164the existing buffer visiting that file. This can happen on systems 1163the existing buffer visiting that file. This can happen on systems
@@ -1180,6 +1179,31 @@ then the file name recorded for a buffer is the file's @dfn{truename}
1180than the name you specify. Setting @code{find-file-visit-truename} also 1179than the name you specify. Setting @code{find-file-visit-truename} also
1181implies the effect of @code{find-file-existing-other-name}. 1180implies the effect of @code{find-file-existing-other-name}.
1182 1181
1182@cindex directory name abbreviation
1183@vindex directory-abbrev-alist
1184 Sometimes, a directory is ordinarily accessed through a symbolic
1185link, and you may want Emacs to preferentially display its ``linked''
1186name instead of its truename. To do this, customize the variable
1187@code{directory-abbrev-alist}. Each element in this list should have
1188the form @code{(@var{from} . @var{to})}, which says to replace
1189@var{from} with @var{to} when it appears in a directory name. For
1190this feature to work properly, @var{from} and @var{to} should point to
1191the same file. The @var{from} string is actually a regular expression
1192(@pxref{Regexps}); it should always start with @samp{\`}, to avoid
1193matching to an incorrect part of the original directory name. The
1194@var{to} string should be an ordinary absolute directory name. Do not
1195use @samp{~} to stand for a home directory in the @var{to} string;
1196Emacs performs these substitutions separately.
1197
1198 Here's an example, from a system on which file system
1199@file{/home/fsf} and so on are normally accessed through symbolic
1200links named @file{/fsf} and so on.
1201
1202@example
1203(("\\`/home/fsf" . "/fsf")
1204 ("\\`/home/gd" . "/gd"))
1205@end example
1206
1183@node Directories 1207@node Directories
1184@section File Directories 1208@section File Directories
1185 1209
diff --git a/doc/emacs/msdog.texi b/doc/emacs/msdog.texi
index 514ef956dc3..caa1bbccd19 100644
--- a/doc/emacs/msdog.texi
+++ b/doc/emacs/msdog.texi
@@ -90,20 +90,24 @@ Via the Emacs client program, @file{emacsclient.exe} or
90programs, and to reuse a running Emacs process for serving editing 90programs, and to reuse a running Emacs process for serving editing
91jobs required by other programs. @xref{Emacs Server}. The difference 91jobs required by other programs. @xref{Emacs Server}. The difference
92between @file{emacsclient.exe} and @file{emacsclientw.exe} is that the 92between @file{emacsclient.exe} and @file{emacsclientw.exe} is that the
93former waits for Emacs to signal that the editing job is finished, 93former is a console program, while the latter is a Windows GUI
94while the latter does not wait. Which one of them to use in each case 94program. Both programs wait for Emacs to signal that the editing job
95depends on the expectations of the program that needs editing 95is finished, before they exit and return control to the program that
96services. If the program will use the edited files, it needs to wait 96invoked them. Which one of them to use in each case depends on the
97for Emacs, so you should use @file{emacsclient.exe}. By contrast, if 97expectations of the program that needs editing services. If that
98the results of editing are not needed by the invoking program, you 98program is itself a console (text-mode) program, you should use
99will be better off using @file{emacsclientw.exe}. A notable situation 99@file{emacsclient.exe}, so that any of its messages and prompts appear
100where you would want @file{emacsclientw.exe} is when you right-click 100in the same command window as those of the invoking program. By
101on a file in the Windows Explorer and select ``Open With'' from the 101contrast, if the invoking program is a GUI program, you will be better
102pop-up menu. Use the @samp{--alternate-editor=} or @samp{-a} options 102off using @file{emacsclientw.exe}, because @file{emacsclient.exe} will
103if Emacs might not be running (or not running as a server) when 103pop up a command window if it is invoked from a GUI program. A
104@command{emacsclient} is invoked---that will always give you an 104notable situation where you would want @file{emacsclientw.exe} is when
105editor. When invoked via @command{emacsclient}, Emacs will start in 105you right-click on a file in the Windows Explorer and select ``Open
106the current directory of the program that invoked 106With'' from the pop-up menu. Use the @samp{--alternate-editor=} or
107@samp{-a} options if Emacs might not be running (or not running as a
108server) when @command{emacsclient} is invoked---that will always give
109you an editor. When invoked via @command{emacsclient}, Emacs will
110start in the current directory of the program that invoked
107@command{emacsclient}. 111@command{emacsclient}.
108@end enumerate 112@end enumerate
109 113
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 1cff2853a27..e1180124c05 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,13 @@
12011-01-08 Chong Yidong <cyd@stupidchicken.com>
2
3 * files.texi (Directory Names): Move directory-abbrev-alist doc to
4 Emacs manual.
5
62011-01-07 Eli Zaretskii <eliz@gnu.org>
7
8 * files.texi (Directory Names): Explain why FROM in
9 directory-abbrev-alist should begin with \`. (Bug#7777)
10
12010-12-25 Eli Zaretskii <eliz@gnu.org> 112010-12-25 Eli Zaretskii <eliz@gnu.org>
2 12
3 * modes.texi (Emulating Mode Line): Fix last change. 13 * modes.texi (Emulating Mode Line): Fix last change.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index c2e057783c5..1f66da98347 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1920,51 +1920,22 @@ Don't try concatenating a slash by hand, as in
1920because this is not portable. Always use 1920because this is not portable. Always use
1921@code{file-name-as-directory}. 1921@code{file-name-as-directory}.
1922 1922
1923@cindex directory name abbreviation
1924 Directory name abbreviations are useful for directories that are
1925normally accessed through symbolic links. Sometimes the users recognize
1926primarily the link's name as ``the name'' of the directory, and find it
1927annoying to see the directory's ``real'' name. If you define the link
1928name as an abbreviation for the ``real'' name, Emacs shows users the
1929abbreviation instead.
1930
1931@defopt directory-abbrev-alist
1932The variable @code{directory-abbrev-alist} contains an alist of
1933abbreviations to use for file directories. Each element has the form
1934@code{(@var{from} . @var{to})}, and says to replace @var{from} with
1935@var{to} when it appears in a directory name. The @var{from} string is
1936actually a regular expression; it should always start with @samp{\`}.
1937The @var{to} string should be an ordinary absolute directory name. Do
1938not use @samp{~} to stand for a home directory in that string. The
1939function @code{abbreviate-file-name} performs these substitutions.
1940
1941You can set this variable in @file{site-init.el} to describe the
1942abbreviations appropriate for your site.
1943
1944Here's an example, from a system on which file system @file{/home/fsf}
1945and so on are normally accessed through symbolic links named @file{/fsf}
1946and so on.
1947
1948@example
1949(("\\`/home/fsf" . "/fsf")
1950 ("\\`/home/gp" . "/gp")
1951 ("\\`/home/gd" . "/gd"))
1952@end example
1953@end defopt
1954
1955 To convert a directory name to its abbreviation, use this 1923 To convert a directory name to its abbreviation, use this
1956function: 1924function:
1957 1925
1958@defun abbreviate-file-name filename 1926@defun abbreviate-file-name filename
1959@anchor{Definition of abbreviate-file-name} 1927@anchor{Definition of abbreviate-file-name}
1960This function applies abbreviations from @code{directory-abbrev-alist} 1928This function returns an abbreviated form of @var{filename}. It
1961to its argument, and also substitutes @samp{~} for the user's home 1929applies the abbreviations specified in @code{directory-abbrev-alist}
1962directory if the argument names a file in the home directory or one of 1930(@pxref{File Aliases,,File Aliases, emacs, The GNU Emacs Manual}),
1963its subdirectories. (If the home directory is a root directory, it is 1931then substitutes @samp{~} for the user's home directory if the
1964not replaced with @samp{~}, because this does not make the result 1932argument names a file in the home directory or one of its
1965shorter on many systems.) You can use it for directory names and for 1933subdirectories. If the home directory is a root directory, it is not
1966file names, because it recognizes abbreviations even as part of the 1934replaced with @samp{~}, because this does not make the result shorter
1967name. 1935on many systems.
1936
1937You can use this function for directory names and for file names,
1938because it recognizes abbreviations even as part of the name.
1968@end defun 1939@end defun
1969 1940
1970@node File Name Expansion 1941@node File Name Expansion
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b870299fc78..4fc3a1fb49e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -37,6 +37,51 @@
37 (rmail-mime-previous-item): Skip the body of a non-multipart 37 (rmail-mime-previous-item): Skip the body of a non-multipart
38 entity if a tagline is shown. 38 entity if a tagline is shown.
39 39
402011-01-11 Stefan Monnier <monnier@iro.umontreal.ca>
41
42 * tmm.el (tmm-get-keymap): Skip bindings without labels (bug#7721).
43 (tmm-prompt): Simplify.
44 (tmm-add-prompt): Remove unused var `win'.
45
46 * whitespace.el (global-whitespace-newline-mode): Fix call (bug#7810)
47 to minor mode which used nil accidentally to mean "turn off".
48
492011-01-10 Michael Albinus <michael.albinus@gmx.de>
50
51 * net/tramp.el (tramp-find-inline-compress)
52 (tramp-get-inline-coding): Quote command after pipe symbol for
53 local calls under W32. (Bug#6784)
54
552011-01-10 Michael Albinus <michael.albinus@gmx.de>
56
57 * net/tramp.el (tramp-default-method): Initialize with pscp/plink
58 only when running under W32.
59
602011-01-09 Eli Zaretskii <eliz@gnu.org>
61
62 * progmodes/grep.el (grep-compute-defaults): Quote the program
63 file name after the pipe symbol in Grep templates. (Bug#6784)
64 * jka-compr.el (jka-compr-partial-uncompress): Likewise.
65
662011-01-08 Lennart Borgman <lennart.borgman@gmail.com>
67
68 * buff-menu.el (Buffer-menu-buffer-list): New var.
69 (Buffer-menu-revert-function, list-buffers-noselect): Use it, so a
70 restricted buffer list is not lost on revert (Bug#7749).
71
722011-01-08 Eric Hanchrow <eric.hanchrow@gmail.com>
73
74 * net/ldap.el (ldap-search-internal): Discard stderr output.
75
762011-01-07 Eli Zaretskii <eliz@gnu.org>
77
78 * files.el (directory-abbrev-alist): Doc fix. (Bug#7777)
79
802011-01-06 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time):
83 Author names can have spaces (bug#7792).
84
402011-01-04 Kenichi Handa <handa@m17n.org> 852011-01-04 Kenichi Handa <handa@m17n.org>
41 86
42 * mail/rmailmm.el (rmail-mime-insert-bulk): Display an unknown 87 * mail/rmailmm.el (rmail-mime-insert-bulk): Display an unknown
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 44e494e98a6..19cc01c5144 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -111,9 +111,15 @@ A nil value means sort by visited order (the default).")
111This variable determines whether reverting the buffer lists only 111This variable determines whether reverting the buffer lists only
112file buffers. It affects both manual reverting and reverting by 112file buffers. It affects both manual reverting and reverting by
113Auto Revert Mode.") 113Auto Revert Mode.")
114
115(make-variable-buffer-local 'Buffer-menu-files-only) 114(make-variable-buffer-local 'Buffer-menu-files-only)
116 115
116(defvar Buffer-menu--buffers nil
117 "If non-nil, list of buffers shown in the current buffer-menu.
118This variable determines whether reverting the buffer lists only
119this buffers. It affects both manual reverting and reverting by
120Auto Revert Mode.")
121(make-variable-buffer-local 'Buffer-menu--buffers)
122
117(defvar Info-current-file) ;; from info.el 123(defvar Info-current-file) ;; from info.el
118(defvar Info-current-node) ;; from info.el 124(defvar Info-current-node) ;; from info.el
119 125
@@ -281,7 +287,7 @@ Letters do not insert themselves; instead, they are commands.
281 ;; interactively current buffer is correctly identified with a `.' 287 ;; interactively current buffer is correctly identified with a `.'
282 ;; by `list-buffers-noselect'. 288 ;; by `list-buffers-noselect'.
283 (with-current-buffer (window-buffer) 289 (with-current-buffer (window-buffer)
284 (list-buffers-noselect Buffer-menu-files-only)) 290 (list-buffers-noselect Buffer-menu-files-only Buffer-menu--buffers))
285 (if oline 291 (if oline
286 (while (setq prop (next-single-property-change prop 'buffer)) 292 (while (setq prop (next-single-property-change prop 'buffer))
287 (when (eq (get-text-property prop 'buffer) oline) 293 (when (eq (get-text-property prop 'buffer) oline)
@@ -920,6 +926,7 @@ For more information, see the function `buffer-menu'."
920 (and desired-point 926 (and desired-point
921 (goto-char desired-point)) 927 (goto-char desired-point))
922 (setq Buffer-menu-files-only files-only) 928 (setq Buffer-menu-files-only files-only)
929 (setq Buffer-menu--buffers buffer-list)
923 (set-buffer-modified-p nil) 930 (set-buffer-modified-p nil)
924 (current-buffer)))) 931 (current-buffer))))
925 932
diff --git a/lisp/dired.el b/lisp/dired.el
index 0812e2e61a1..306bd8f779a 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -3532,7 +3532,7 @@ Ask means pop up a menu for the user to select one of copy, move or link."
3532;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command 3532;;;;;; dired-run-shell-command dired-do-shell-command dired-do-async-shell-command
3533;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown 3533;;;;;; dired-clean-directory dired-do-print dired-do-touch dired-do-chown
3534;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff 3534;;;;;; dired-do-chgrp dired-do-chmod dired-compare-directories dired-backup-diff
3535;;;;;; dired-diff) "dired-aux" "dired-aux.el" "03cf081d2aac54764123d2407c3196a2") 3535;;;;;; dired-diff) "dired-aux" "dired-aux.el" "255ac82c318ef43da2e47b931c0f8581")
3536;;; Generated autoloads from dired-aux.el 3536;;; Generated autoloads from dired-aux.el
3537 3537
3538(autoload 'dired-diff "dired-aux" "\ 3538(autoload 'dired-diff "dired-aux" "\
@@ -3985,7 +3985,7 @@ true then the type of the file linked to by FILE is printed instead.
3985;;;*** 3985;;;***
3986 3986
3987;;;### (autoloads (dired-do-relsymlink dired-jump) "dired-x" "dired-x.el" 3987;;;### (autoloads (dired-do-relsymlink dired-jump) "dired-x" "dired-x.el"
3988;;;;;; "bb37ec379c0a523368794491b691fd8d") 3988;;;;;; "48197b7ca054193643e01957196dd491")
3989;;; Generated autoloads from dired-x.el 3989;;; Generated autoloads from dired-x.el
3990 3990
3991(autoload 'dired-jump "dired-x" "\ 3991(autoload 'dired-jump "dired-x" "\
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el
index 7640a0b1575..e6ede1ed6d4 100644
--- a/lisp/emacs-lisp/cl-loaddefs.el
+++ b/lisp/emacs-lisp/cl-loaddefs.el
@@ -10,7 +10,7 @@
10;;;;;; ceiling* floor* isqrt lcm gcd cl-progv-before cl-set-frame-visible-p 10;;;;;; ceiling* floor* isqrt lcm gcd cl-progv-before cl-set-frame-visible-p
11;;;;;; cl-map-overlays cl-map-intervals cl-map-keymap-recursively 11;;;;;; cl-map-overlays cl-map-intervals cl-map-keymap-recursively
12;;;;;; notevery notany every some mapcon mapcan mapl maplist map 12;;;;;; notevery notany every some mapcon mapcan mapl maplist map
13;;;;;; cl-mapcar-many equalp coerce) "cl-extra" "cl-extra.el" "d93072a26c59f663a92b10df8bc28187") 13;;;;;; cl-mapcar-many equalp coerce) "cl-extra" "cl-extra.el" "de874ef326082f133b0324505ad37330")
14;;; Generated autoloads from cl-extra.el 14;;; Generated autoloads from cl-extra.el
15 15
16(autoload 'coerce "cl-extra" "\ 16(autoload 'coerce "cl-extra" "\
@@ -282,7 +282,7 @@ Not documented
282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist 282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist
283;;;;;; do* do loop return-from return block etypecase typecase ecase 283;;;;;; do* do loop return-from return block etypecase typecase ecase
284;;;;;; case load-time-value eval-when destructuring-bind function* 284;;;;;; case load-time-value eval-when destructuring-bind function*
285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "49b7d96626dd8ba5d39551909edbd4c7") 285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "fd4df570f1dcbf83cde740819ae3734a")
286;;; Generated autoloads from cl-macs.el 286;;; Generated autoloads from cl-macs.el
287 287
288(autoload 'gensym "cl-macs" "\ 288(autoload 'gensym "cl-macs" "\
@@ -759,7 +759,7 @@ surrounded by (block NAME ...).
759;;;;;; find nsubstitute-if-not nsubstitute-if nsubstitute substitute-if-not 759;;;;;; find nsubstitute-if-not nsubstitute-if nsubstitute substitute-if-not
760;;;;;; substitute-if substitute delete-duplicates remove-duplicates 760;;;;;; substitute-if substitute delete-duplicates remove-duplicates
761;;;;;; delete-if-not delete-if delete* remove-if-not remove-if remove* 761;;;;;; delete-if-not delete-if delete* remove-if-not remove-if remove*
762;;;;;; replace fill reduce) "cl-seq" "cl-seq.el" "ec3ea1c77742734db8496272fe5721be") 762;;;;;; replace fill reduce) "cl-seq" "cl-seq.el" "ac5c427e92a38c5a2149acaa013caad9")
763;;; Generated autoloads from cl-seq.el 763;;; Generated autoloads from cl-seq.el
764 764
765(autoload 'reduce "cl-seq" "\ 765(autoload 'reduce "cl-seq" "\
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index 80c62e1fdf8..f3a0c43eb96 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -2438,7 +2438,7 @@ If FILE is nil, try to load a default file. The default file names are
2438 2438
2439 2439
2440;;;### (autoloads (tpu-set-cursor-bound tpu-set-cursor-free tpu-set-scroll-margins 2440;;;### (autoloads (tpu-set-cursor-bound tpu-set-cursor-free tpu-set-scroll-margins
2441;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "d003e4c2f1291eccc629926bb0f88e17") 2441;;;;;; tpu-cursor-free-mode) "tpu-extras" "tpu-extras.el" "a564a0c82b232d8c113549f6fd0ce8e5")
2442;;; Generated autoloads from tpu-extras.el 2442;;; Generated autoloads from tpu-extras.el
2443 2443
2444(autoload 'tpu-cursor-free-mode "tpu-extras" "\ 2444(autoload 'tpu-cursor-free-mode "tpu-extras" "\
diff --git a/lisp/files.el b/lisp/files.el
index 690caf13960..ab027b507f6 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -56,7 +56,10 @@ when it has unsaved changes."
56A list of elements of the form (FROM . TO), each meaning to replace 56A list of elements of the form (FROM . TO), each meaning to replace
57FROM with TO when it appears in a directory name. This replacement is 57FROM with TO when it appears in a directory name. This replacement is
58done when setting up the default directory of a newly visited file. 58done when setting up the default directory of a newly visited file.
59*Every* FROM string should start with \"\\\\`\". 59
60FROM is matched against directory names anchored at the first
61character, so it should start with a \"\\\\`\", or, if directory
62names cannot have embedded newlines, with a \"^\".
60 63
61FROM and TO should be equivalent names, which refer to the 64FROM and TO should be equivalent names, which refer to the
62same directory. Do not use `~' in the TO strings; 65same directory. Do not use `~' in the TO strings;
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f8d0a1cb902..6a363c0b4f1 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12011-01-12 Glenn Morris <rgm@gnu.org>
2
3 * message.el (message-mail): A compose-mail function should
4 accept headers as strings.
5
12010-11-19 Yuri Karaban <tech@askold.net> (tiny change) 62010-11-19 Yuri Karaban <tech@askold.net> (tiny change)
2 7
3 * pop3.el (pop3-open-server): Read server greeting before starting TLS 8 * pop3.el (pop3-open-server): Read server greeting before starting TLS
@@ -13920,4 +13925,3 @@ See ChangeLog.2 for earlier changes.
13920;; add-log-time-zone-rule: t 13925;; add-log-time-zone-rule: t
13921;; End: 13926;; End:
13922 13927
13923;;; arch-tag: 3f33a3e7-090d-492b-bedd-02a1417d32b4
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 867798f9dcb..0ea0df46060 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6493,7 +6493,13 @@ is a function used to switch to and display the mail buffer."
6493 (message-setup 6493 (message-setup
6494 (nconc 6494 (nconc
6495 `((To . ,(or to "")) (Subject . ,(or subject ""))) 6495 `((To . ,(or to "")) (Subject . ,(or subject "")))
6496 (when other-headers other-headers)) 6496 ;; C-h f compose-mail says that headers should be specified as
6497 ;; (string . value); however all the rest of message expects
6498 ;; headers to be symbols, not strings (eg message-header-format-alist).
6499 ;; http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00337.html
6500 ;; We need to convert any string input, eg from rmail-start-mail.
6501 (dolist (h other-headers other-headers)
6502 (if (stringp (car h)) (setcar h (intern (capitalize (car h)))))))
6497 yank-action send-actions continue switch-function) 6503 yank-action send-actions continue switch-function)
6498 ;; FIXME: Should return nil if failure. 6504 ;; FIXME: Should return nil if failure.
6499 t)) 6505 t))
@@ -8195,5 +8201,4 @@ Used in `message-simplify-recipients'."
8195;; coding: iso-8859-1 8201;; coding: iso-8859-1
8196;; End: 8202;; End:
8197 8203
8198;; arch-tag: 94b32cac-4504-4b6c-8181-030ebf380ee0
8199;;; message.el ends here 8204;;; message.el ends here
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 6328d99291a..5113a34e268 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2641,7 +2641,7 @@ will be inserted before the group at point."
2641;;;;;; ibuffer-backward-filter-group ibuffer-forward-filter-group 2641;;;;;; ibuffer-backward-filter-group ibuffer-forward-filter-group
2642;;;;;; ibuffer-toggle-filter-group ibuffer-mouse-toggle-filter-group 2642;;;;;; ibuffer-toggle-filter-group ibuffer-mouse-toggle-filter-group
2643;;;;;; ibuffer-interactive-filter-by-mode ibuffer-mouse-filter-by-mode 2643;;;;;; ibuffer-interactive-filter-by-mode ibuffer-mouse-filter-by-mode
2644;;;;;; ibuffer-auto-mode) "ibuf-ext" "ibuf-ext.el" "4fb4f1a32cf4ecf4669a133a866f4a14") 2644;;;;;; ibuffer-auto-mode) "ibuf-ext" "ibuf-ext.el" "d98d015a69b22236de3cb1f7e456218b")
2645;;; Generated autoloads from ibuf-ext.el 2645;;; Generated autoloads from ibuf-ext.el
2646 2646
2647(autoload 'ibuffer-auto-mode "ibuf-ext" "\ 2647(autoload 'ibuffer-auto-mode "ibuf-ext" "\
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el
index 635f3ce8468..32f3d6d1f58 100644
--- a/lisp/jka-compr.el
+++ b/lisp/jka-compr.el
@@ -166,8 +166,11 @@ to keep: LEN chars starting BEG chars from the beginning."
166 (unwind-protect 166 (unwind-protect
167 (or (memq (call-process 167 (or (memq (call-process
168 jka-compr-shell infile t nil "-c" 168 jka-compr-shell infile t nil "-c"
169 ;; Windows shells need the program file name
170 ;; after the pipe symbol be quoted if they use
171 ;; forward slashes as directory separators.
169 (format 172 (format
170 "%s %s 2> %s | %s bs=%d skip=%d %s 2> %s" 173 "%s %s 2> %s | \"%s\" bs=%d skip=%d %s 2> %s"
171 prog 174 prog
172 (mapconcat 'identity args " ") 175 (mapconcat 'identity args " ")
173 err-file 176 err-file
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 919c75604bc..1ca2e4b8dd1 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4232,7 +4232,7 @@ encoded string (and the same mask) will decode the string."
4232;;; Start of automatically extracted autoloads. 4232;;; Start of automatically extracted autoloads.
4233 4233
4234;;;### (autoloads (rmail-edit-current-message) "rmailedit" "rmailedit.el" 4234;;;### (autoloads (rmail-edit-current-message) "rmailedit" "rmailedit.el"
4235;;;;;; "60db8013bf16d7999914a16cda435287") 4235;;;;;; "ecd28d8d92983488673388eced6fbf50")
4236;;; Generated autoloads from rmailedit.el 4236;;; Generated autoloads from rmailedit.el
4237 4237
4238(autoload 'rmail-edit-current-message "rmailedit" "\ 4238(autoload 'rmail-edit-current-message "rmailedit" "\
@@ -4244,7 +4244,7 @@ Edit the contents of this message.
4244 4244
4245;;;### (autoloads (rmail-next-labeled-message rmail-previous-labeled-message 4245;;;### (autoloads (rmail-next-labeled-message rmail-previous-labeled-message
4246;;;;;; rmail-read-label rmail-kill-label rmail-add-label) "rmailkwd" 4246;;;;;; rmail-read-label rmail-kill-label rmail-add-label) "rmailkwd"
4247;;;;;; "rmailkwd.el" "7027ce1ac922c0dd51262b641e4d42c1") 4247;;;;;; "rmailkwd.el" "bc72ffe3652be6f4c72048ae8f226fce")
4248;;; Generated autoloads from rmailkwd.el 4248;;; Generated autoloads from rmailkwd.el
4249 4249
4250(autoload 'rmail-add-label "rmailkwd" "\ 4250(autoload 'rmail-add-label "rmailkwd" "\
@@ -4287,7 +4287,7 @@ With prefix argument N moves forward N messages with these labels.
4287 4287
4288;;;*** 4288;;;***
4289 4289
4290;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "6c12c2d0563ae855f1069d7a80b8244a") 4290;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "420a9c4619672f1f60f675126fbc9c08")
4291;;; Generated autoloads from rmailmm.el 4291;;; Generated autoloads from rmailmm.el
4292 4292
4293(autoload 'rmail-mime "rmailmm" "\ 4293(autoload 'rmail-mime "rmailmm" "\
@@ -4313,7 +4313,7 @@ attachments as specfied by `rmail-mime-attachment-dirs-alist'.
4313;;;*** 4313;;;***
4314 4314
4315;;;### (autoloads (set-rmail-inbox-list) "rmailmsc" "rmailmsc.el" 4315;;;### (autoloads (set-rmail-inbox-list) "rmailmsc" "rmailmsc.el"
4316;;;;;; "b2a72d4e370f2d2b31b6f8f0794820e4") 4316;;;;;; "9319e5b606ad5786c0c5994a307a38e8")
4317;;; Generated autoloads from rmailmsc.el 4317;;; Generated autoloads from rmailmsc.el
4318 4318
4319(autoload 'set-rmail-inbox-list "rmailmsc" "\ 4319(autoload 'set-rmail-inbox-list "rmailmsc" "\
@@ -4329,7 +4329,7 @@ This applies only to the current session.
4329 4329
4330;;;### (autoloads (rmail-sort-by-labels rmail-sort-by-lines rmail-sort-by-correspondent 4330;;;### (autoloads (rmail-sort-by-labels rmail-sort-by-lines rmail-sort-by-correspondent
4331;;;;;; rmail-sort-by-recipient rmail-sort-by-author rmail-sort-by-subject 4331;;;;;; rmail-sort-by-recipient rmail-sort-by-author rmail-sort-by-subject
4332;;;;;; rmail-sort-by-date) "rmailsort" "rmailsort.el" "5a3b5ee477d2fbf79d0c566d776a7fd4") 4332;;;;;; rmail-sort-by-date) "rmailsort" "rmailsort.el" "16144a77fdc880034875fd624e4d73e6")
4333;;; Generated autoloads from rmailsort.el 4333;;; Generated autoloads from rmailsort.el
4334 4334
4335(autoload 'rmail-sort-by-date "rmailsort" "\ 4335(autoload 'rmail-sort-by-date "rmailsort" "\
@@ -4388,7 +4388,7 @@ If prefix argument REVERSE is non-nil, sorts in reverse order.
4388 4388
4389;;;### (autoloads (rmail-summary-by-senders rmail-summary-by-topic 4389;;;### (autoloads (rmail-summary-by-senders rmail-summary-by-topic
4390;;;;;; rmail-summary-by-regexp rmail-summary-by-recipients rmail-summary-by-labels 4390;;;;;; rmail-summary-by-regexp rmail-summary-by-recipients rmail-summary-by-labels
4391;;;;;; rmail-summary) "rmailsum" "rmailsum.el" "d855683972baef7111d4508dffbb54b6") 4391;;;;;; rmail-summary) "rmailsum" "rmailsum.el" "6bcfd5937a56902944a929b89b33adaa")
4392;;; Generated autoloads from rmailsum.el 4392;;; Generated autoloads from rmailsum.el
4393 4393
4394(autoload 'rmail-summary "rmailsum" "\ 4394(autoload 'rmail-summary "rmailsum" "\
@@ -4436,7 +4436,7 @@ SENDERS is a string of regexps separated by commas.
4436;;;*** 4436;;;***
4437 4437
4438;;;### (autoloads (unforward-rmail-message undigestify-rmail-message) 4438;;;### (autoloads (unforward-rmail-message undigestify-rmail-message)
4439;;;;;; "undigest" "undigest.el" "8cf8a8ffa48eeddf0bde388fa8de1783") 4439;;;;;; "undigest" "undigest.el" "2869c38a0051d0acab1a5968627fa57d")
4440;;; Generated autoloads from undigest.el 4440;;; Generated autoloads from undigest.el
4441 4441
4442(autoload 'undigestify-rmail-message "undigest" "\ 4442(autoload 'undigestify-rmail-message "undigest" "\
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index afdb0fe3e13..f1cc534ae85 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -558,7 +558,8 @@ an alist of attribute/value pairs."
558 (setq arglist (nconc arglist (list (format "-z%s" sizelimit))))) 558 (setq arglist (nconc arglist (list (format "-z%s" sizelimit)))))
559 (eval `(call-process ldap-ldapsearch-prog 559 (eval `(call-process ldap-ldapsearch-prog
560 nil 560 nil
561 buf 561 ;; Ignore stderr, which can corrupt results
562 (list buf nil)
562 nil 563 nil
563 ,@arglist 564 ,@arglist
564 ,@ldap-ldapsearch-args 565 ,@ldap-ldapsearch-args
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 0ac5048ef3b..c40d65ca913 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1,7 +1,7 @@
1;;; tramp.el --- Transparent Remote Access, Multiple Protocol 1;;; tramp.el --- Transparent Remote Access, Multiple Protocol
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 4;; 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
5 5
6;; (copyright statements below in code to be updated with the above notice) 6;; (copyright statements below in code to be updated with the above notice)
7 7
@@ -780,8 +780,11 @@ shouldn't return t when it isn't."
780 ;; password caching. "scpc" is chosen if we detect that the user is 780 ;; password caching. "scpc" is chosen if we detect that the user is
781 ;; running OpenSSH 4.0 or newer. 781 ;; running OpenSSH 4.0 or newer.
782 (cond 782 (cond
783 ;; PuTTY is installed. 783 ;; PuTTY is installed. We don't take it, if it is installed on a
784 ((executable-find "pscp") 784 ;; non-windows system, or pscp from the pssh (parallel ssh) package
785 ;; is found.
786 ((and (eq system-type 'windows-nt)
787 (executable-find "pscp"))
785 (if (or (fboundp 'password-read) 788 (if (or (fboundp 'password-read)
786 (fboundp 'auth-source-user-or-password) 789 (fboundp 'auth-source-user-or-password)
787 ;; Pageant is running. 790 ;; Pageant is running.
@@ -1904,8 +1907,8 @@ on the remote host.")
1904(defconst tramp-perl-encode 1907(defconst tramp-perl-encode
1905 "%s -e ' 1908 "%s -e '
1906# This script contributed by Juanma Barranquero <lektu@terra.es>. 1909# This script contributed by Juanma Barranquero <lektu@terra.es>.
1907# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 1910# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1908# Free Software Foundation, Inc. 1911# 2011 Free Software Foundation, Inc.
1909use strict; 1912use strict;
1910 1913
1911my %%trans = do { 1914my %%trans = do {
@@ -1946,8 +1949,8 @@ This string is passed to `format', so percent characters need to be doubled.")
1946(defconst tramp-perl-decode 1949(defconst tramp-perl-decode
1947 "%s -e ' 1950 "%s -e '
1948# This script contributed by Juanma Barranquero <lektu@terra.es>. 1951# This script contributed by Juanma Barranquero <lektu@terra.es>.
1949# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 1952# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1950# Free Software Foundation, Inc. 1953# 2011 Free Software Foundation, Inc.
1951use strict; 1954use strict;
1952 1955
1953my %%trans = do { 1956my %%trans = do {
@@ -7359,9 +7362,17 @@ Goes through the list `tramp-inline-compress-commands'."
7359 vec 5 7362 vec 5
7360 "Checking local compress command `%s', `%s' for sanity" 7363 "Checking local compress command `%s', `%s' for sanity"
7361 compress decompress) 7364 compress decompress)
7362 (unless (zerop (tramp-call-local-coding-command 7365 (unless
7363 (format "echo %s | %s | %s" 7366 (zerop
7364 magic compress decompress) nil nil)) 7367 (tramp-call-local-coding-command
7368 (format
7369 ;; Windows shells need the program file name after
7370 ;; the pipe symbol be quoted if they use forward
7371 ;; slashes as directory separators.
7372 (if (memq system-type '(windows-nt))
7373 "echo %s | \"%s\" | \"%s\""
7374 "echo %s | %s | %s")
7375 magic compress decompress) nil nil))
7365 (throw 'next nil)) 7376 (throw 'next nil))
7366 (tramp-message 7377 (tramp-message
7367 vec 5 7378 vec 5
@@ -8642,9 +8653,25 @@ function cell is returned to be applied on a buffer."
8642 ((symbolp coding) 8653 ((symbolp coding)
8643 coding) 8654 coding)
8644 ((and compress (string-match "decoding" prop)) 8655 ((and compress (string-match "decoding" prop))
8645 (format "(%s | %s >%%s)" coding compress)) 8656 (format
8657 ;; Windows shells need the program file name after
8658 ;; the pipe symbol be quoted if they use forward
8659 ;; slashes as directory separators.
8660 (if (and (string-match "local" prop)
8661 (memq system-type '(windows-nt)))
8662 "(%s | \"%s\" >%%s)"
8663 "(%s | %s >%%s)")
8664 coding compress))
8646 (compress 8665 (compress
8647 (format "(%s <%%s | %s)" compress coding)) 8666 (format
8667 ;; Windows shells need the program file name after
8668 ;; the pipe symbol be quoted if they use forward
8669 ;; slashes as directory separators.
8670 (if (and (string-match "local" prop)
8671 (memq system-type '(windows-nt)))
8672 "(%s <%%s | \"%s\")"
8673 "(%s <%%s | %s)")
8674 compress coding))
8648 ((string-match "decoding" prop) 8675 ((string-match "decoding" prop)
8649 (format "%s >%%s" coding)) 8676 (format "%s >%%s" coding))
8650 (t 8677 (t
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index dac14d07ef8..dd6dc025d5b 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -561,7 +561,10 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
561 (unless grep-find-command 561 (unless grep-find-command
562 (setq grep-find-command 562 (setq grep-find-command
563 (cond ((eq grep-find-use-xargs 'gnu) 563 (cond ((eq grep-find-use-xargs 'gnu)
564 (format "%s . -type f -print0 | %s -0 -e %s" 564 ;; Windows shells need the program file name
565 ;; after the pipe symbol be quoted if they use
566 ;; forward slashes as directory separators.
567 (format "%s . -type f -print0 | \"%s\" -0 -e %s"
565 find-program xargs-program grep-command)) 568 find-program xargs-program grep-command))
566 ((eq grep-find-use-xargs 'exec) 569 ((eq grep-find-use-xargs 'exec)
567 (let ((cmd0 (format "%s . -type f -exec %s" 570 (let ((cmd0 (format "%s . -type f -exec %s"
@@ -572,21 +575,21 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
572 (shell-quote-argument ";")) 575 (shell-quote-argument ";"))
573 (1+ (length cmd0))))) 576 (1+ (length cmd0)))))
574 (t 577 (t
575 (format "%s . -type f -print | %s %s" 578 (format "%s . -type f -print | \"%s\" %s"
576 find-program xargs-program grep-command))))) 579 find-program xargs-program grep-command)))))
577 (unless grep-find-template 580 (unless grep-find-template
578 (setq grep-find-template 581 (setq grep-find-template
579 (let ((gcmd (format "%s <C> %s <R>" 582 (let ((gcmd (format "%s <C> %s <R>"
580 grep-program grep-options))) 583 grep-program grep-options)))
581 (cond ((eq grep-find-use-xargs 'gnu) 584 (cond ((eq grep-find-use-xargs 'gnu)
582 (format "%s . <X> -type f <F> -print0 | %s -0 -e %s" 585 (format "%s . <X> -type f <F> -print0 | \"%s\" -0 -e %s"
583 find-program xargs-program gcmd)) 586 find-program xargs-program gcmd))
584 ((eq grep-find-use-xargs 'exec) 587 ((eq grep-find-use-xargs 'exec)
585 (format "%s . <X> -type f <F> -exec %s {} %s %s" 588 (format "%s . <X> -type f <F> -exec %s {} %s %s"
586 find-program gcmd null-device 589 find-program gcmd null-device
587 (shell-quote-argument ";"))) 590 (shell-quote-argument ";")))
588 (t 591 (t
589 (format "%s . <X> -type f <F> -print | %s %s" 592 (format "%s . <X> -type f <F> -print | \"%s\" %s"
590 find-program xargs-program gcmd)))))))) 593 find-program xargs-program gcmd))))))))
591 (when (eq grep-highlight-matches 'auto-detect) 594 (when (eq grep-highlight-matches 'auto-detect)
592 (setq grep-highlight-matches 595 (setq grep-highlight-matches
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 52c0ab2b9c5..25cb9cac2df 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -6662,7 +6662,7 @@ If FACE is not a valid face name, use default face."
6662;; But autoload them here to make the separation invisible. 6662;; But autoload them here to make the separation invisible.
6663 6663
6664;;;### (autoloads (ps-mule-end-job ps-mule-begin-job ps-mule-initialize 6664;;;### (autoloads (ps-mule-end-job ps-mule-begin-job ps-mule-initialize
6665;;;;;; ps-multibyte-buffer) "ps-mule" "ps-mule.el" "18a8bc30e8755ff27de7267f4bce3d99") 6665;;;;;; ps-multibyte-buffer) "ps-mule" "ps-mule.el" "7fadcd6c4b18087e900bd21e6da5e854")
6666;;; Generated autoloads from ps-mule.el 6666;;; Generated autoloads from ps-mule.el
6667 6667
6668(defvar ps-multibyte-buffer nil "\ 6668(defvar ps-multibyte-buffer nil "\
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 3d8433e281f..0341b5384f0 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -168,14 +168,13 @@ Its value should be an event that has a binding in MENU."
168 ;; It has no other elements. 168 ;; It has no other elements.
169 ;; The order of elements in tmm-km-list is the order of the menu bar. 169 ;; The order of elements in tmm-km-list is the order of the menu bar.
170 (mapc (lambda (elt) 170 (mapc (lambda (elt)
171 (if (stringp elt) 171 (cond
172 (setq gl-str elt) 172 ((stringp elt) (setq gl-str elt))
173 (cond 173 ((listp elt) (tmm-get-keymap elt not-menu))
174 ((listp elt) (tmm-get-keymap elt not-menu)) 174 ((vectorp elt)
175 ((vectorp elt) 175 (dotimes (i (length elt))
176 (dotimes (i (length elt)) 176 (tmm-get-keymap (cons i (aref elt i)) not-menu)))))
177 (tmm-get-keymap (cons i (aref elt i)) not-menu)))))) 177 menu)
178 menu)
179 ;; Choose an element of tmm-km-list; put it in choice. 178 ;; Choose an element of tmm-km-list; put it in choice.
180 (if (and not-menu (= 1 (length tmm-km-list))) 179 (if (and not-menu (= 1 (length tmm-km-list)))
181 ;; If this is the top-level of an x-popup-menu menu, 180 ;; If this is the top-level of an x-popup-menu menu,
@@ -368,32 +367,31 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'."
368 (add-hook 'minibuffer-exit-hook 'tmm-delete-map nil t) 367 (add-hook 'minibuffer-exit-hook 'tmm-delete-map nil t)
369 (unless tmm-c-prompt 368 (unless tmm-c-prompt
370 (error "No active menu entries")) 369 (error "No active menu entries"))
371 (let ((win (selected-window))) 370 (setq tmm-old-mb-map (tmm-define-keys t))
372 (setq tmm-old-mb-map (tmm-define-keys t)) 371 ;; Get window and hide it for electric mode to get correct size
373 ;; Get window and hide it for electric mode to get correct size 372 (save-window-excursion
374 (save-window-excursion 373 (let ((completions
375 (let ((completions 374 (mapcar 'car minibuffer-completion-table)))
376 (mapcar 'car minibuffer-completion-table))) 375 (or tmm-completion-prompt
377 (or tmm-completion-prompt 376 (add-hook 'completion-setup-hook
378 (add-hook 'completion-setup-hook 377 'tmm-completion-delete-prompt 'append))
379 'tmm-completion-delete-prompt 'append)) 378 (unwind-protect
380 (unwind-protect 379 (with-output-to-temp-buffer "*Completions*"
381 (with-output-to-temp-buffer "*Completions*" 380 (display-completion-list completions))
382 (display-completion-list completions)) 381 (remove-hook 'completion-setup-hook 'tmm-completion-delete-prompt)))
383 (remove-hook 'completion-setup-hook 'tmm-completion-delete-prompt))) 382 (set-buffer "*Completions*")
384 (set-buffer "*Completions*") 383 (tmm-remove-inactive-mouse-face)
385 (tmm-remove-inactive-mouse-face) 384 (when tmm-completion-prompt
386 (when tmm-completion-prompt 385 (let ((buffer-read-only nil))
387 (let ((buffer-read-only nil)) 386 (goto-char (point-min))
388 (goto-char (point-min)) 387 (insert tmm-completion-prompt))))
389 (insert tmm-completion-prompt)))) 388 (save-selected-window
390 (save-selected-window 389 (other-window 1) ; Electric-pop-up-window does
391 (other-window 1) ; Electric-pop-up-window does
392 ; not work in minibuffer 390 ; not work in minibuffer
393 (Electric-pop-up-window "*Completions*") 391 (Electric-pop-up-window "*Completions*")
394 (with-current-buffer "*Completions*" 392 (with-current-buffer "*Completions*"
395 (setq tmm-old-comp-map (tmm-define-keys nil)))) 393 (setq tmm-old-comp-map (tmm-define-keys nil))))
396 (insert tmm-c-prompt))) 394 (insert tmm-c-prompt))
397 395
398(defun tmm-delete-map () 396(defun tmm-delete-map ()
399 (remove-hook 'minibuffer-exit-hook 'tmm-delete-map t) 397 (remove-hook 'minibuffer-exit-hook 'tmm-delete-map t)
@@ -497,7 +495,7 @@ It uses the free variable `tmm-table-undef' to keep undefined keys."
497 (if (or in-x-menu (stringp (car-safe elt))) 495 (if (or in-x-menu (stringp (car-safe elt)))
498 (setq str event event nil km elt) 496 (setq str event event nil km elt)
499 (setq str event event nil km (cons 'keymap elt))))) 497 (setq str event event nil km (cons 'keymap elt)))))
500 (unless (eq km 'ignore) 498 (unless (or (eq km 'ignore) (null str))
501 (let ((binding (where-is-internal km nil t))) 499 (let ((binding (where-is-internal km nil t)))
502 (when binding 500 (when binding
503 (setq binding (key-description binding)) 501 (setq binding (key-description binding))
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index a4b7d28cf87..41c9663fc77 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -605,7 +605,7 @@ property containing author and date information."
605 (when (process-buffer proc) 605 (when (process-buffer proc)
606 (with-current-buffer (process-buffer proc) 606 (with-current-buffer (process-buffer proc)
607 (setq string (concat (process-get proc :vc-left-over) string)) 607 (setq string (concat (process-get proc :vc-left-over) string))
608 (while (string-match "^\\( *[0-9.]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\)\\( |.*\n\\)" string) 608 (while (string-match "^\\( *[0-9.]+ *\\) \\(.+?\\) +\\([0-9]\\{8\\}\\)\\( |.*\n\\)" string)
609 (let* ((rev (match-string 1 string)) 609 (let* ((rev (match-string 1 string))
610 (author (match-string 2 string)) 610 (author (match-string 2 string))
611 (date (match-string 3 string)) 611 (date (match-string 3 string))
@@ -632,7 +632,7 @@ property containing author and date information."
632(declare-function vc-annotate-convert-time "vc-annotate" (time)) 632(declare-function vc-annotate-convert-time "vc-annotate" (time))
633 633
634(defun vc-bzr-annotate-time () 634(defun vc-bzr-annotate-time ()
635 (when (re-search-forward "^ *[0-9.]+ +[^\n ]* +|" nil t) 635 (when (re-search-forward "^ *[0-9.]+ +.+? +|" nil t)
636 (let ((prop (get-text-property (line-beginning-position) 'help-echo))) 636 (let ((prop (get-text-property (line-beginning-position) 'help-echo)))
637 (string-match "[0-9]+\\'" prop) 637 (string-match "[0-9]+\\'" prop)
638 (let ((str (match-string-no-properties 0 prop))) 638 (let ((str (match-string-no-properties 0 prop)))
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 353d7fef189..6608c0c2c50 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -1188,7 +1188,8 @@ See also `whitespace-newline' and `whitespace-display-mappings'."
1188 :global t 1188 :global t
1189 :group 'whitespace 1189 :group 'whitespace
1190 (let ((whitespace-style '(newline-mark newline))) 1190 (let ((whitespace-style '(newline-mark newline)))
1191 (global-whitespace-mode global-whitespace-newline-mode) 1191 (global-whitespace-mode (if global-whitespace-newline-mode
1192 1 -1))
1192 ;; sync states (running a batch job) 1193 ;; sync states (running a batch job)
1193 (setq global-whitespace-newline-mode global-whitespace-mode))) 1194 (setq global-whitespace-newline-mode global-whitespace-mode)))
1194 1195
diff --git a/src/ChangeLog b/src/ChangeLog
index 2b22a2e07ff..dbb7be762a8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12011-01-12 Chong Yidong <cyd@stupidchicken.com>
2
3 * config.in (TERMINFO): New definition.
4
5 * s/netbsd.h: Use it to choose between terminfo and termcap
6 (Bug#7642).
7
12011-01-03 Jan Djärv <jan.h.d@swipnet.se> 82011-01-03 Jan Djärv <jan.h.d@swipnet.se>
2 9
3 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment. 10 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
diff --git a/src/config.in b/src/config.in
index ed103479441..0ccb13d7400 100644
--- a/src/config.in
+++ b/src/config.in
@@ -895,6 +895,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
895/* Process async input synchronously. */ 895/* Process async input synchronously. */
896#undef SYNC_INPUT 896#undef SYNC_INPUT
897 897
898/* Define to 1 if you use terminfo instead of termcap. */
899#undef TERMINFO
900
898/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 901/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
899#undef TIME_WITH_SYS_TIME 902#undef TIME_WITH_SYS_TIME
900 903
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 27605c2808f..4a9e31167e2 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -45,8 +45,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
45#define LIBS_DEBUG 45#define LIBS_DEBUG
46/* -lutil is not needed for NetBSD >0.9. */ 46/* -lutil is not needed for NetBSD >0.9. */
47/* #define LIBS_SYSTEM -lutil */ 47/* #define LIBS_SYSTEM -lutil */
48#ifdef HAVE_TERM_H 48#ifdef TERMINFO
49#define TERMINFO
50#define LIBS_TERMCAP -lterminfo 49#define LIBS_TERMCAP -lterminfo
51#else 50#else
52#define LIBS_TERMCAP -ltermcap 51#define LIBS_TERMCAP -ltermcap