diff options
| author | Juri Linkov | 2008-11-11 20:14:38 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-11-11 20:14:38 +0000 |
| commit | 978d723ed975bf68d4187f39d8ffd1fd99b70a89 (patch) | |
| tree | 645b207554436b1ed2e85d887d34a7eb0f6d0393 | |
| parent | ee9b85a84ab3238e9c86c65c6cbef759bc2d942d (diff) | |
| download | emacs-978d723ed975bf68d4187f39d8ffd1fd99b70a89.tar.gz emacs-978d723ed975bf68d4187f39d8ffd1fd99b70a89.zip | |
(dired-isearch-filenames)
(dired-isearch-filenames-regexp):
Let-bind isearch-message-prefix-add to "filename ".
| -rw-r--r-- | lisp/ChangeLog | 33 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 6 |
2 files changed, 37 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7fba1983f9c..935fa82b10d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2008-11-11 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-isearch-filenames) | ||
| 4 | (dired-isearch-filenames-regexp): | ||
| 5 | Let-bind isearch-message-prefix-add to "filename ". | ||
| 6 | |||
| 7 | * isearch.el (isearch-message-prefix-add) | ||
| 8 | (isearch-message-suffix-add): New variables. | ||
| 9 | (isearch-message-prefix): Show additional text from | ||
| 10 | `isearch-message-prefix-add' before "I-search". | ||
| 11 | (isearch-message-suffix): Show additional text from | ||
| 12 | `isearch-message-suffix-add' at the end. | ||
| 13 | |||
| 14 | * isearch.el (isearch-lazy-highlight-search): Use a loop like in | ||
| 15 | `isearch-search'. Call isearch-success-function to skip matches | ||
| 16 | outside the current isearch scope. Let-bind search-invisible to | ||
| 17 | nil to not match invisible text. | ||
| 18 | |||
| 19 | * isearch.el (isearch-query-replace, isearch-highlight-regexp): | ||
| 20 | Let-bind `isearch-recursive-edit' to nil to prevent calling | ||
| 21 | `exit-recursive-edit' in `isearch-done' that terminates the | ||
| 22 | execution of these commands when it is non-nil. Call | ||
| 23 | `exit-recursive-edit' explicitly at the end. | ||
| 24 | (isearch-occur): For word search construct the correct regexp | ||
| 25 | with word boundaries to proceed with occur. | ||
| 26 | |||
| 27 | * isearch.el (isearch-search-fun): Compare the length of the | ||
| 28 | current search string with the length of the string from the | ||
| 29 | previous search state to detect the situation when the user | ||
| 30 | adds or removes characters in the search string. | ||
| 31 | Use word-search-forward-lax and word-search-backward-lax in this | ||
| 32 | case, and otherwise word-search-forward and word-search-backward. | ||
| 33 | |||
| 1 | 2008-11-11 Sam Steingold <sds@gnu.org> | 34 | 2008-11-11 Sam Steingold <sds@gnu.org> |
| 2 | 35 | ||
| 3 | * mouse.el (mouse-buffer-menu-mode-groups): Place "Annotate" into | 36 | * mouse.el (mouse-buffer-menu-mode-groups): Place "Annotate" into |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 26d5ce4ec67..930c4e32340 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -2355,14 +2355,16 @@ Intended to be added to `isearch-mode-hook'." | |||
| 2355 | (defun dired-isearch-filenames () | 2355 | (defun dired-isearch-filenames () |
| 2356 | "Search for a string using Isearch only in file names in the Dired buffer." | 2356 | "Search for a string using Isearch only in file names in the Dired buffer." |
| 2357 | (interactive) | 2357 | (interactive) |
| 2358 | (let ((dired-isearch-filenames t)) | 2358 | (let ((dired-isearch-filenames t) |
| 2359 | (isearch-message-prefix-add "filename ")) | ||
| 2359 | (isearch-forward))) | 2360 | (isearch-forward))) |
| 2360 | 2361 | ||
| 2361 | ;;;###autoload | 2362 | ;;;###autoload |
| 2362 | (defun dired-isearch-filenames-regexp () | 2363 | (defun dired-isearch-filenames-regexp () |
| 2363 | "Search for a regexp using Isearch only in file names in the Dired buffer." | 2364 | "Search for a regexp using Isearch only in file names in the Dired buffer." |
| 2364 | (interactive) | 2365 | (interactive) |
| 2365 | (let ((dired-isearch-filenames t)) | 2366 | (let ((dired-isearch-filenames t) |
| 2367 | (isearch-message-prefix-add "filename ")) | ||
| 2366 | (isearch-forward-regexp))) | 2368 | (isearch-forward-regexp))) |
| 2367 | 2369 | ||
| 2368 | 2370 | ||