diff options
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/replace.el | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec95fd4ba52..2084098d0c8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2009-08-12 Juri Linkov <juri@jurta.org> | 1 | 2009-08-12 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * progmodes/grep.el (lgrep): Ensure that `default-directory' is | ||
| 4 | always non-nil. (Bug#4052) | ||
| 5 | |||
| 6 | * replace.el (read-regexp): Return empty string when | ||
| 7 | `default-value' is nil. | ||
| 8 | (keep-lines-read-args): Don't use empty string as the | ||
| 9 | default value for `read-regexp'. (Bug#2495) | ||
| 10 | |||
| 11 | 2009-08-12 Juri Linkov <juri@jurta.org> | ||
| 12 | |||
| 3 | * international/mule-cmds.el (ucs-insert): Change arguments | 13 | * international/mule-cmds.el (ucs-insert): Change arguments |
| 4 | from `arg' to `character', `count', `inherit' to be the same | 14 | from `arg' to `character', `count', `inherit' to be the same |
| 5 | as in `insert-char'. Doc fix. (Bug#4039) | 15 | as in `insert-char'. Doc fix. (Bug#4039) |
diff --git a/lisp/replace.el b/lisp/replace.el index a375c87e74f..c69b4cd3c2b 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -556,7 +556,7 @@ regexp, the last isearch string, and the last replacement regexp." | |||
| 556 | (format "%s: " prompt)) | 556 | (format "%s: " prompt)) |
| 557 | nil nil nil 'regexp-history defaults t))) | 557 | nil nil nil 'regexp-history defaults t))) |
| 558 | (if (equal input "") | 558 | (if (equal input "") |
| 559 | default-value | 559 | (or default-value input) |
| 560 | (prog1 input | 560 | (prog1 input |
| 561 | (add-to-history 'regexp-history input))))) | 561 | (add-to-history 'regexp-history input))))) |
| 562 | 562 | ||
| @@ -570,7 +570,7 @@ regexp, the last isearch string, and the last replacement regexp." | |||
| 570 | "Read arguments for `keep-lines' and friends. | 570 | "Read arguments for `keep-lines' and friends. |
| 571 | Prompt for a regexp with PROMPT. | 571 | Prompt for a regexp with PROMPT. |
| 572 | Value is a list, (REGEXP)." | 572 | Value is a list, (REGEXP)." |
| 573 | (list (read-regexp prompt "") nil nil t)) | 573 | (list (read-regexp prompt) nil nil t)) |
| 574 | 574 | ||
| 575 | (defun keep-lines (regexp &optional rstart rend interactive) | 575 | (defun keep-lines (regexp &optional rstart rend interactive) |
| 576 | "Delete all lines except those containing matches for REGEXP. | 576 | "Delete all lines except those containing matches for REGEXP. |