diff options
| author | Paul Eggert | 2011-09-06 09:34:41 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-06 09:34:41 -0700 |
| commit | e39b275c8c4abe1e293d4336bb1cb13ad95e5491 (patch) | |
| tree | 22da66c2fe8e7b447e8872b481701bcb4b3e2a3a /lisp | |
| parent | 1c262cae409ec55a234c89b3b74a13a77c7f595a (diff) | |
| parent | b2db44d9c6b6895222e9de5ab58b3897fdb3c889 (diff) | |
| download | emacs-e39b275c8c4abe1e293d4336bb1cb13ad95e5491.tar.gz emacs-e39b275c8c4abe1e293d4336bb1cb13ad95e5491.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 27 | ||||
| -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 | 19 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
7 files changed, 66 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e6a6d9108a..d82391d691a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,30 @@ | |||
| 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 | |||
| 14 | 2011-09-05 Juri Linkov <juri@jurta.org> | ||
| 15 | |||
| 16 | * progmodes/grep.el (grep-filter): Avoid incomplete processing by | ||
| 17 | keeping point where processing of grep matches begins, and | ||
| 18 | continue to delete remaining escape sequences from the same point. | ||
| 19 | (grep-filter): Make leading zero optional in "0?1;31m" because | ||
| 20 | git-grep emits "\033[1;31m" escape sequences unlike expected | ||
| 21 | "\033[01;31m" as GNU Grep does (bug#9408). | ||
| 22 | (grep-process-setup): Replace obsolete "ml=" with newer "sl=". | ||
| 23 | |||
| 24 | 2011-09-05 Juri Linkov <juri@jurta.org> | ||
| 25 | |||
| 26 | * subr.el (y-or-n-p): Capitalize "yes". | ||
| 27 | |||
| 1 | 2011-09-04 Michael Albinus <michael.albinus@gmx.de> | 28 | 2011-09-04 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 29 | ||
| 3 | * net/tramp.el (top): Require 'shell. Use `tramp-unload-hook' but | 30 | * net/tramp.el (top): Require 'shell. Use `tramp-unload-hook' but |
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 709f01444bf..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") |
| @@ -459,7 +460,7 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'." | |||
| 459 | ;; GREP_COLOR is used in GNU grep 2.5.1, but deprecated in later versions | 460 | ;; GREP_COLOR is used in GNU grep 2.5.1, but deprecated in later versions |
| 460 | (setenv "GREP_COLOR" "01;31") | 461 | (setenv "GREP_COLOR" "01;31") |
| 461 | ;; GREP_COLORS is used in GNU grep 2.5.2 and later versions | 462 | ;; GREP_COLORS is used in GNU grep 2.5.2 and later versions |
| 462 | (setenv "GREP_COLORS" "mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne")) | 463 | (setenv "GREP_COLORS" "mt=01;31:fn=:ln=:bn=:se=:sl=:cx=:ne")) |
| 463 | (set (make-local-variable 'compilation-exit-message-function) | 464 | (set (make-local-variable 'compilation-exit-message-function) |
| 464 | (lambda (status code msg) | 465 | (lambda (status code msg) |
| 465 | (if (eq status 'exit) | 466 | (if (eq status 'exit) |
| @@ -480,20 +481,21 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'." | |||
| 480 | This function is called from `compilation-filter-hook'." | 481 | This function is called from `compilation-filter-hook'." |
| 481 | (save-excursion | 482 | (save-excursion |
| 482 | (forward-line 0) | 483 | (forward-line 0) |
| 483 | (let ((end (point))) | 484 | (let ((end (point)) beg) |
| 484 | (goto-char compilation-filter-start) | 485 | (goto-char compilation-filter-start) |
| 485 | (forward-line 0) | 486 | (forward-line 0) |
| 487 | (setq beg (point)) | ||
| 486 | ;; Only operate on whole lines so we don't get caught with part of an | 488 | ;; Only operate on whole lines so we don't get caught with part of an |
| 487 | ;; escape sequence in one chunk and the rest in another. | 489 | ;; escape sequence in one chunk and the rest in another. |
| 488 | (when (< (point) end) | 490 | (when (< (point) end) |
| 489 | (setq end (copy-marker end)) | 491 | (setq end (copy-marker end)) |
| 490 | ;; Highlight grep matches and delete marking sequences. | 492 | ;; Highlight grep matches and delete marking sequences. |
| 491 | (while (re-search-forward "\033\\[01;31m\\(.*?\\)\033\\[[0-9]*m" end 1) | 493 | (while (re-search-forward "\033\\[0?1;31m\\(.*?\\)\033\\[[0-9]*m" end 1) |
| 492 | (replace-match (propertize (match-string 1) | 494 | (replace-match (propertize (match-string 1) |
| 493 | 'face nil 'font-lock-face grep-match-face) | 495 | 'face nil 'font-lock-face grep-match-face) |
| 494 | t t)) | 496 | t t)) |
| 495 | ;; Delete all remaining escape sequences | 497 | ;; Delete all remaining escape sequences |
| 496 | (goto-char compilation-filter-start) | 498 | (goto-char beg) |
| 497 | (while (re-search-forward "\033\\[[0-9;]*[mK]" end 1) | 499 | (while (re-search-forward "\033\\[[0-9;]*[mK]" end 1) |
| 498 | (replace-match "" t t)))))) | 500 | (replace-match "" t t)))))) |
| 499 | 501 | ||
| @@ -987,7 +989,8 @@ This command shares argument histories with \\[lgrep] and \\[grep-find]." | |||
| 987 | dir | 989 | dir |
| 988 | (concat | 990 | (concat |
| 989 | (and grep-find-ignored-directories | 991 | (and grep-find-ignored-directories |
| 990 | (concat (shell-quote-argument "(") | 992 | (concat "-type d " |
| 993 | (shell-quote-argument "(") | ||
| 991 | ;; we should use shell-quote-argument here | 994 | ;; we should use shell-quote-argument here |
| 992 | " -path " | 995 | " -path " |
| 993 | (mapconcat | 996 | (mapconcat |
diff --git a/lisp/subr.el b/lisp/subr.el index b49a20e7f6e..a2676b1173d 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2254,7 +2254,7 @@ is nil and `use-dialog-box' is non-nil." | |||
| 2254 | (listp last-nonmenu-event) | 2254 | (listp last-nonmenu-event) |
| 2255 | use-dialog-box) | 2255 | use-dialog-box) |
| 2256 | (setq answer | 2256 | (setq answer |
| 2257 | (x-popup-dialog t `(,prompt ("yes" . act) ("No" . skip)))) | 2257 | (x-popup-dialog t `(,prompt ("Yes" . act) ("No" . skip)))) |
| 2258 | (setq prompt (concat prompt | 2258 | (setq prompt (concat prompt |
| 2259 | (if (eq ?\s (aref prompt (1- (length prompt)))) | 2259 | (if (eq ?\s (aref prompt (1- (length prompt)))) |
| 2260 | "" " ") | 2260 | "" " ") |