diff options
| author | Joakim Verona | 2011-09-06 11:50:28 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-09-06 11:50:28 +0200 |
| commit | 823d0828689eacf915aa1e113d6d3cf61cada700 (patch) | |
| tree | b15c8ade04c7efc72cc5b28773c7fe7c2e995bcd | |
| parent | a4c2da9f43432a552e50b4f7df125fd6c86f4b65 (diff) | |
| parent | d809b8eb5eb739839063fb9af1dc3ac593a0a560 (diff) | |
| download | emacs-823d0828689eacf915aa1e113d6d3cf61cada700.tar.gz emacs-823d0828689eacf915aa1e113d6d3cf61cada700.zip | |
upstream
| -rw-r--r-- | autogen/config.in | 3 | ||||
| -rwxr-xr-x | autogen/configure | 12 | ||||
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnir.el | 13 | ||||
| -rw-r--r-- | lisp/isearch.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 10 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/dbusbind.c | 12 |
10 files changed, 71 insertions, 16 deletions
diff --git a/autogen/config.in b/autogen/config.in index 24dd54db43f..5a53b240ef8 100644 --- a/autogen/config.in +++ b/autogen/config.in | |||
| @@ -672,6 +672,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 672 | /* Define to 1 if the system has the type `sigset_t'. */ | 672 | /* Define to 1 if the system has the type `sigset_t'. */ |
| 673 | #undef HAVE_SIGSET_T | 673 | #undef HAVE_SIGSET_T |
| 674 | 674 | ||
| 675 | /* Define to 1 if you have the `snprintf' function. */ | ||
| 676 | #undef HAVE_SNPRINTF | ||
| 677 | |||
| 675 | /* Define to 1 if you have sound support. */ | 678 | /* Define to 1 if you have sound support. */ |
| 676 | #undef HAVE_SOUND | 679 | #undef HAVE_SOUND |
| 677 | 680 | ||
diff --git a/autogen/configure b/autogen/configure index c77d87721b5..0bf9783fb67 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -15058,6 +15058,18 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |||
| 15058 | fi | 15058 | fi |
| 15059 | 15059 | ||
| 15060 | 15060 | ||
| 15061 | for ac_func in snprintf | ||
| 15062 | do : | ||
| 15063 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" | ||
| 15064 | if test "x$ac_cv_func_snprintf" = x""yes; then : | ||
| 15065 | cat >>confdefs.h <<_ACEOF | ||
| 15066 | #define HAVE_SNPRINTF 1 | ||
| 15067 | _ACEOF | ||
| 15068 | |||
| 15069 | fi | ||
| 15070 | done | ||
| 15071 | |||
| 15072 | |||
| 15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | 15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 15062 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | 15074 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 15063 | if test "${emacs_cv_langinfo_codeset+set}" = set; then : | 15075 | if test "${emacs_cv_langinfo_codeset+set}" = set; then : |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d30010d6016..d82391d691a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2011-09-06 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * isearch.el (isearch-other-meta-char): Wherever a key list is | ||
| 4 | unread, "unread" the prefix arg, too. This fixes bug #8901. | ||
| 5 | |||
| 6 | 2011-09-05 Oleksandr Gavenko <gavenkoa@gmail.com> (tiny change) | ||
| 7 | |||
| 8 | * progmodes/grep.el (rgrep): Add "-type d" (bug#9414). | ||
| 9 | |||
| 10 | 2011-09-05 Juri Linkov <juri@jurta.org> | ||
| 11 | |||
| 12 | * progmodes/grep.el (grep-process-setup): Fix comments (bug#8084). | ||
| 13 | |||
| 1 | 2011-09-05 Juri Linkov <juri@jurta.org> | 14 | 2011-09-05 Juri Linkov <juri@jurta.org> |
| 2 | 15 | ||
| 3 | * progmodes/grep.el (grep-filter): Avoid incomplete processing by | 16 | * progmodes/grep.el (grep-filter): Avoid incomplete processing by |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9d719136cc1..2e0cc11279a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2011-09-05 Andrew Cohen <cohen@andy.bu.edu> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-summary-exit): Ensure we kill the proper | ||
| 4 | original-article-buffer. | ||
| 5 | |||
| 6 | 2011-09-05 Kan-Ru Chen <kanru@kanru.info> | ||
| 7 | |||
| 8 | * nnir.el (nnir-compose-result): Fix matching of server type. | ||
| 9 | (nnir-run-swish++): Ditto. | ||
| 10 | (nnir-run-namazu): Ditto. | ||
| 11 | (nnir-run-notmuch): Ditto. | ||
| 12 | |||
| 1 | 2011-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 13 | 2011-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 14 | ||
| 3 | * gnus.el (gnus-home-directory): Add warning about setting in .gnus.el | 15 | * gnus.el (gnus-home-directory): Add warning about setting in .gnus.el |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index fd441c46d17..bb8c719a4fd 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -7214,6 +7214,7 @@ If FORCE (the prefix), also save the .newsrc file(s)." | |||
| 7214 | (quit-config (gnus-group-quit-config gnus-newsgroup-name)) | 7214 | (quit-config (gnus-group-quit-config gnus-newsgroup-name)) |
| 7215 | (gnus-group-is-exiting-p t) | 7215 | (gnus-group-is-exiting-p t) |
| 7216 | (article-buffer gnus-article-buffer) | 7216 | (article-buffer gnus-article-buffer) |
| 7217 | (original-article-buffer gnus-original-article-buffer) | ||
| 7217 | (mode major-mode) | 7218 | (mode major-mode) |
| 7218 | (group-point nil) | 7219 | (group-point nil) |
| 7219 | (buf (current-buffer)) | 7220 | (buf (current-buffer)) |
| @@ -7290,7 +7291,7 @@ If FORCE (the prefix), also save the .newsrc file(s)." | |||
| 7290 | (unless (eq major-mode 'gnus-sticky-article-mode) | 7291 | (unless (eq major-mode 'gnus-sticky-article-mode) |
| 7291 | (gnus-kill-buffer article-buffer) | 7292 | (gnus-kill-buffer article-buffer) |
| 7292 | (setq gnus-article-current nil)))) | 7293 | (setq gnus-article-current nil)))) |
| 7293 | (gnus-kill-buffer gnus-original-article-buffer)) | 7294 | (gnus-kill-buffer original-article-buffer)) |
| 7294 | 7295 | ||
| 7295 | ;; Clear the current group name. | 7296 | ;; Clear the current group name. |
| 7296 | (unless quit-config | 7297 | (unless quit-config |
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index 17fc3f3fe81..0be6a17d50e 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el | |||
| @@ -806,7 +806,7 @@ ready to be added to the list of search results." | |||
| 806 | ;; remove trailing slash and, for nnmaildir, cur/new/tmp | 806 | ;; remove trailing slash and, for nnmaildir, cur/new/tmp |
| 807 | (setq dirnam | 807 | (setq dirnam |
| 808 | (substring dirnam 0 | 808 | (substring dirnam 0 |
| 809 | (if (string= (gnus-group-server server) "nnmaildir") | 809 | (if (string-match "^nnmaildir:" (gnus-group-server server)) |
| 810 | -5 -1))) | 810 | -5 -1))) |
| 811 | 811 | ||
| 812 | ;; Set group to dirnam without any leading dots or slashes, | 812 | ;; Set group to dirnam without any leading dots or slashes, |
| @@ -816,7 +816,7 @@ ready to be added to the list of search results." | |||
| 816 | "[/\\]" "." t))) | 816 | "[/\\]" "." t))) |
| 817 | 817 | ||
| 818 | (vector (gnus-group-full-name group server) | 818 | (vector (gnus-group-full-name group server) |
| 819 | (if (string= (gnus-group-server server) "nnmaildir") | 819 | (if (string-match "^nnmaildir:" (gnus-group-server server)) |
| 820 | (nnmaildir-base-name-to-article-number | 820 | (nnmaildir-base-name-to-article-number |
| 821 | (substring article 0 (string-match ":" article)) | 821 | (substring article 0 (string-match ":" article)) |
| 822 | group nil) | 822 | group nil) |
| @@ -1073,7 +1073,8 @@ Windows NT 4.0." | |||
| 1073 | ;; is sufficient. Note that we can't only use the value of | 1073 | ;; is sufficient. Note that we can't only use the value of |
| 1074 | ;; nnml-use-compressed-files because old articles might have been | 1074 | ;; nnml-use-compressed-files because old articles might have been |
| 1075 | ;; saved with a different value. | 1075 | ;; saved with a different value. |
| 1076 | (article-pattern (if (string= (gnus-group-server server) "nnmaildir") | 1076 | (article-pattern (if (string-match "^nnmaildir:" |
| 1077 | (gnus-group-server server)) | ||
| 1077 | ":[0-9]+" | 1078 | ":[0-9]+" |
| 1078 | "^[0-9]+\\(\\.[a-z0-9]+\\)?$")) | 1079 | "^[0-9]+\\(\\.[a-z0-9]+\\)?$")) |
| 1079 | score artno dirnam filenam) | 1080 | score artno dirnam filenam) |
| @@ -1315,7 +1316,8 @@ Tested with Namazu 2.0.6 on a GNU/Linux system." | |||
| 1315 | ;; (when group | 1316 | ;; (when group |
| 1316 | ;; (error "The Namazu backend cannot search specific groups")) | 1317 | ;; (error "The Namazu backend cannot search specific groups")) |
| 1317 | (save-excursion | 1318 | (save-excursion |
| 1318 | (let ((article-pattern (if (string= (gnus-group-server server) "nnmaildir") | 1319 | (let ((article-pattern (if (string-match "^nnmaildir:" |
| 1320 | (gnus-group-server server)) | ||
| 1319 | ":[0-9]+" | 1321 | ":[0-9]+" |
| 1320 | "^[0-9]+$")) | 1322 | "^[0-9]+$")) |
| 1321 | artlist | 1323 | artlist |
| @@ -1388,7 +1390,8 @@ actually)." | |||
| 1388 | (groupspec (cdr (assq 'group query))) | 1390 | (groupspec (cdr (assq 'group query))) |
| 1389 | (prefix (nnir-read-server-parm 'nnir-notmuch-remove-prefix server)) | 1391 | (prefix (nnir-read-server-parm 'nnir-notmuch-remove-prefix server)) |
| 1390 | artlist | 1392 | artlist |
| 1391 | (article-pattern (if (string= (gnus-group-server server) "nnmaildir") | 1393 | (article-pattern (if (string-match "^nnmaildir:" |
| 1394 | (gnus-group-server server)) | ||
| 1392 | ":[0-9]+" | 1395 | ":[0-9]+" |
| 1393 | "^[0-9]+$")) | 1396 | "^[0-9]+$")) |
| 1394 | artno dirnam filenam) | 1397 | artno dirnam filenam) |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 6eab3dbcbc4..7f54067f9aa 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1920,6 +1920,7 @@ Isearch mode." | |||
| 1920 | (if (lookup-key global-map key) | 1920 | (if (lookup-key global-map key) |
| 1921 | (progn | 1921 | (progn |
| 1922 | (isearch-done) | 1922 | (isearch-done) |
| 1923 | (setq prefix-arg arg) | ||
| 1923 | (apply 'isearch-unread keylist)) | 1924 | (apply 'isearch-unread keylist)) |
| 1924 | (setq keylist | 1925 | (setq keylist |
| 1925 | (listify-key-sequence (lookup-key local-function-key-map key))) | 1926 | (listify-key-sequence (lookup-key local-function-key-map key))) |
| @@ -1935,6 +1936,7 @@ Isearch mode." | |||
| 1935 | (setq keylist (cdr keylist))) | 1936 | (setq keylist (cdr keylist))) |
| 1936 | ;; As the remaining keys in KEYLIST can't be handled | 1937 | ;; As the remaining keys in KEYLIST can't be handled |
| 1937 | ;; here, we must reread them. | 1938 | ;; here, we must reread them. |
| 1939 | (setq prefix-arg arg) | ||
| 1938 | (apply 'isearch-unread keylist) | 1940 | (apply 'isearch-unread keylist) |
| 1939 | (setq keylist nil))))) | 1941 | (setq keylist nil))))) |
| 1940 | ( | 1942 | ( |
| @@ -1957,8 +1959,10 @@ Isearch mode." | |||
| 1957 | isearch-other-control-char))))) | 1959 | isearch-other-control-char))))) |
| 1958 | (setcar keylist (- main-event (- ?\C-\S-a ?\C-a))) | 1960 | (setcar keylist (- main-event (- ?\C-\S-a ?\C-a))) |
| 1959 | (cancel-kbd-macro-events) | 1961 | (cancel-kbd-macro-events) |
| 1962 | (setq prefix-arg arg) | ||
| 1960 | (apply 'isearch-unread keylist)) | 1963 | (apply 'isearch-unread keylist)) |
| 1961 | ((eq search-exit-option 'edit) | 1964 | ((eq search-exit-option 'edit) |
| 1965 | (setq prefix-arg arg) | ||
| 1962 | (apply 'isearch-unread keylist) | 1966 | (apply 'isearch-unread keylist) |
| 1963 | (isearch-edit-string)) | 1967 | (isearch-edit-string)) |
| 1964 | ;; Handle a scrolling function. | 1968 | ;; Handle a scrolling function. |
| @@ -1987,6 +1991,7 @@ Isearch mode." | |||
| 1987 | (isearch-edit-string)) | 1991 | (isearch-edit-string)) |
| 1988 | (search-exit-option | 1992 | (search-exit-option |
| 1989 | (let (window) | 1993 | (let (window) |
| 1994 | (setq prefix-arg arg) | ||
| 1990 | (isearch-unread-key-sequence keylist) | 1995 | (isearch-unread-key-sequence keylist) |
| 1991 | (setq main-event (car unread-command-events)) | 1996 | (setq main-event (car unread-command-events)) |
| 1992 | 1997 | ||
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index eeebcc6648f..de46dc19169 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -446,9 +446,10 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'." | |||
| 446 | (when (eq grep-highlight-matches 'auto-detect) | 446 | (when (eq grep-highlight-matches 'auto-detect) |
| 447 | (grep-compute-defaults)) | 447 | (grep-compute-defaults)) |
| 448 | (unless (or (eq grep-highlight-matches 'auto-detect) | 448 | (unless (or (eq grep-highlight-matches 'auto-detect) |
| 449 | ;; Uses font-lock to parse color escapes. (Bug#8084) | 449 | (null grep-highlight-matches) |
| 450 | (null font-lock-mode) | 450 | ;; Don't output color escapes if they can't be |
| 451 | (null grep-highlight-matches)) | 451 | ;; highlighted with `font-lock-face' by `grep-filter'. |
| 452 | (null font-lock-mode)) | ||
| 452 | ;; `setenv' modifies `process-environment' let-bound in `compilation-start' | 453 | ;; `setenv' modifies `process-environment' let-bound in `compilation-start' |
| 453 | ;; Any TERM except "dumb" allows GNU grep to use `--color=auto' | 454 | ;; Any TERM except "dumb" allows GNU grep to use `--color=auto' |
| 454 | (setenv "TERM" "emacs-grep") | 455 | (setenv "TERM" "emacs-grep") |
| @@ -988,7 +989,8 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]." | |||
| 988 | dir | 989 | dir |
| 989 | (concat | 990 | (concat |
| 990 | (and grep-find-ignored-directories | 991 | (and grep-find-ignored-directories |
| 991 | (concat (shell-quote-argument "(") | 992 | (concat "-type d " |
| 993 | (shell-quote-argument "(") | ||
| 992 | ;; we should use shell-quote-argument here | 994 | ;; we should use shell-quote-argument here |
| 993 | " -path " | 995 | " -path " |
| 994 | (mapconcat | 996 | (mapconcat |
diff --git a/src/ChangeLog b/src/ChangeLog index 9a512210497..6319c53209c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-09-05 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (xd_signature_cat): Rename from signature_cat. | ||
| 4 | |||
| 1 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | sprintf-related integer and memory overflow issues (Bug#9412). | 7 | sprintf-related integer and memory overflow issues (Bug#9412). |
diff --git a/src/dbusbind.c b/src/dbusbind.c index 8dac2a6249f..2a38d15873c 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -262,7 +262,7 @@ xd_symbol_to_dbus_type (Lisp_Object object) | |||
| 262 | /* Append to SIGNATURE a copy of X, making sure SIGNATURE does | 262 | /* Append to SIGNATURE a copy of X, making sure SIGNATURE does |
| 263 | not become too long. */ | 263 | not become too long. */ |
| 264 | static void | 264 | static void |
| 265 | signature_cat (char *signature, char const *x) | 265 | xd_signature_cat (char *signature, char const *x) |
| 266 | { | 266 | { |
| 267 | ptrdiff_t siglen = strlen (signature); | 267 | ptrdiff_t siglen = strlen (signature); |
| 268 | ptrdiff_t xlen = strlen (x); | 268 | ptrdiff_t xlen = strlen (x); |
| @@ -401,10 +401,10 @@ xd_signature (char *signature, unsigned int dtype, unsigned int parent_type, Lis | |||
| 401 | { | 401 | { |
| 402 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); | 402 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); |
| 403 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); | 403 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); |
| 404 | signature_cat (signature, x); | 404 | xd_signature_cat (signature, x); |
| 405 | elt = CDR_SAFE (XD_NEXT_VALUE (elt)); | 405 | elt = CDR_SAFE (XD_NEXT_VALUE (elt)); |
| 406 | } | 406 | } |
| 407 | signature_cat (signature, DBUS_STRUCT_END_CHAR_AS_STRING); | 407 | xd_signature_cat (signature, DBUS_STRUCT_END_CHAR_AS_STRING); |
| 408 | break; | 408 | break; |
| 409 | 409 | ||
| 410 | case DBUS_TYPE_DICT_ENTRY: | 410 | case DBUS_TYPE_DICT_ENTRY: |
| @@ -425,7 +425,7 @@ xd_signature (char *signature, unsigned int dtype, unsigned int parent_type, Lis | |||
| 425 | elt = XD_NEXT_VALUE (elt); | 425 | elt = XD_NEXT_VALUE (elt); |
| 426 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); | 426 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); |
| 427 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); | 427 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); |
| 428 | signature_cat (signature, x); | 428 | xd_signature_cat (signature, x); |
| 429 | 429 | ||
| 430 | if (!XD_BASIC_DBUS_TYPE (subtype)) | 430 | if (!XD_BASIC_DBUS_TYPE (subtype)) |
| 431 | wrong_type_argument (intern ("D-Bus"), CAR_SAFE (XD_NEXT_VALUE (elt))); | 431 | wrong_type_argument (intern ("D-Bus"), CAR_SAFE (XD_NEXT_VALUE (elt))); |
| @@ -434,14 +434,14 @@ xd_signature (char *signature, unsigned int dtype, unsigned int parent_type, Lis | |||
| 434 | elt = CDR_SAFE (XD_NEXT_VALUE (elt)); | 434 | elt = CDR_SAFE (XD_NEXT_VALUE (elt)); |
| 435 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); | 435 | subtype = XD_OBJECT_TO_DBUS_TYPE (CAR_SAFE (elt)); |
| 436 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); | 436 | xd_signature (x, subtype, dtype, CAR_SAFE (XD_NEXT_VALUE (elt))); |
| 437 | signature_cat (signature, x); | 437 | xd_signature_cat (signature, x); |
| 438 | 438 | ||
| 439 | if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt)))) | 439 | if (!NILP (CDR_SAFE (XD_NEXT_VALUE (elt)))) |
| 440 | wrong_type_argument (intern ("D-Bus"), | 440 | wrong_type_argument (intern ("D-Bus"), |
| 441 | CAR_SAFE (CDR_SAFE (XD_NEXT_VALUE (elt)))); | 441 | CAR_SAFE (CDR_SAFE (XD_NEXT_VALUE (elt)))); |
| 442 | 442 | ||
| 443 | /* Closing signature. */ | 443 | /* Closing signature. */ |
| 444 | signature_cat (signature, DBUS_DICT_ENTRY_END_CHAR_AS_STRING); | 444 | xd_signature_cat (signature, DBUS_DICT_ENTRY_END_CHAR_AS_STRING); |
| 445 | break; | 445 | break; |
| 446 | 446 | ||
| 447 | default: | 447 | default: |