diff options
| author | Juanma Barranquero | 2005-07-28 14:00:03 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-28 14:00:03 +0000 |
| commit | 6480c508bfebe3bcc39ece65111d4bbc67c1eec4 (patch) | |
| tree | d3561ad0676234105e0a9c3fdd6711a867d67652 | |
| parent | 8154a06e94b2c051a72655ee69f6cfd36aa9f528 (diff) | |
| download | emacs-6480c508bfebe3bcc39ece65111d4bbc67c1eec4.tar.gz emacs-6480c508bfebe3bcc39ece65111d4bbc67c1eec4.zip | |
(isearch-mode-map, isearch-other-meta-char, isearch-quote-char,
isearch-printing-char, isearch-text-char-description): "?\ " -> "?\s".
(isearch-lazy-highlight-cleanup, isearch-lazy-highlight-initial-delay,
isearch-lazy-highlight-interval, isearch-lazy-highlight-max-at-a-time,
isearch-lazy-highlight-face, isearch-lazy-highlight-cleanup): Declare with
define-obsolete-*-alias macros.
(isearch-forward): Fix typo in docstring.
(search-invisible, search-ring-yank-pointer, regexp-search-ring-yank-pointer):
Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 23 | ||||
| -rw-r--r-- | lisp/isearch.el | 52 |
2 files changed, 52 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e05b184172..1c67f63aa08 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2005-07-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * isearch.el (isearch-mode-map, isearch-other-meta-char) | ||
| 4 | (isearch-quote-char, isearch-printing-char) | ||
| 5 | (isearch-text-char-description): "?\ " -> "?\s". | ||
| 6 | (isearch-lazy-highlight-cleanup) | ||
| 7 | (isearch-lazy-highlight-initial-delay) | ||
| 8 | (isearch-lazy-highlight-interval) | ||
| 9 | (isearch-lazy-highlight-max-at-a-time) | ||
| 10 | (isearch-lazy-highlight-face, isearch-lazy-highlight-cleanup): | ||
| 11 | Declare with define-obsolete-*-alias macros. | ||
| 12 | (isearch-forward): Fix typo in docstring. | ||
| 13 | (search-invisible, search-ring-yank-pointer) | ||
| 14 | (regexp-search-ring-yank-pointer): Doc fixes. | ||
| 15 | |||
| 16 | * recentf.el (recentf-menu-append-commands-p): Declare with | ||
| 17 | `define-obsolete-variable-alias'. | ||
| 18 | (recentf-max-saved-items, recentf-menu-filter) | ||
| 19 | (recentf-arrange-by-rule-subfilter): Doc fixes. | ||
| 20 | (recentf-menu-append-commands-flag) | ||
| 21 | (recentf-initialize-file-name-history, recentf-expand-file-name) | ||
| 22 | (recentf-clear-data): Fix typos in docstrings. | ||
| 23 | |||
| 1 | 2005-07-28 Nick Roberts <nickrob@snap.net.nz> | 24 | 2005-07-28 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 25 | ||
| 3 | * progmodes/gdb-ui.el: Smarten comments. | 26 | * progmodes/gdb-ui.el: Smarten comments. |
diff --git a/lisp/isearch.el b/lisp/isearch.el index f63a8dda1d1..7cc641f4328 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -122,8 +122,8 @@ a tab, a carriage return (control-M), a newline, and `]+'." | |||
| 122 | 122 | ||
| 123 | (defcustom search-invisible 'open | 123 | (defcustom search-invisible 'open |
| 124 | "If t incremental search can match hidden text. | 124 | "If t incremental search can match hidden text. |
| 125 | nil means don't match invisible text. | 125 | A nil value means don't match invisible text. |
| 126 | If the value is `open', if the text matched is made invisible by | 126 | When the value is `open', if the text matched is made invisible by |
| 127 | an overlay having an `invisible' property and that overlay has a property | 127 | an overlay having an `invisible' property and that overlay has a property |
| 128 | `isearch-open-invisible', then incremental search will show the contents. | 128 | `isearch-open-invisible', then incremental search will show the contents. |
| 129 | \(This applies when using `outline.el' and `hideshow.el'.) | 129 | \(This applies when using `outline.el' and `hideshow.el'.) |
| @@ -188,10 +188,10 @@ to the search status stack.") | |||
| 188 | 188 | ||
| 189 | (defvar search-ring-yank-pointer nil | 189 | (defvar search-ring-yank-pointer nil |
| 190 | "Index in `search-ring' of last string reused. | 190 | "Index in `search-ring' of last string reused. |
| 191 | nil if none yet.") | 191 | It is nil if none yet.") |
| 192 | (defvar regexp-search-ring-yank-pointer nil | 192 | (defvar regexp-search-ring-yank-pointer nil |
| 193 | "Index in `regexp-search-ring' of last string reused. | 193 | "Index in `regexp-search-ring' of last string reused. |
| 194 | nil if none yet.") | 194 | It is nil if none yet.") |
| 195 | 195 | ||
| 196 | (defcustom search-ring-update nil | 196 | (defcustom search-ring-update nil |
| 197 | "*Non-nil if advancing or retreating in the search ring should cause search. | 197 | "*Non-nil if advancing or retreating in the search ring should cause search. |
| @@ -246,22 +246,25 @@ If this is nil, extra highlighting can be \"manually\" removed with | |||
| 246 | \\[lazy-highlight-cleanup]." | 246 | \\[lazy-highlight-cleanup]." |
| 247 | :type 'boolean | 247 | :type 'boolean |
| 248 | :group 'lazy-highlight) | 248 | :group 'lazy-highlight) |
| 249 | (defvaralias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) | 249 | (define-obsolete-variable-alias 'isearch-lazy-highlight-cleanup |
| 250 | (make-obsolete-variable 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup "22.1") | 250 | 'lazy-highlight-cleanup |
| 251 | "22.1") | ||
| 251 | 252 | ||
| 252 | (defcustom lazy-highlight-initial-delay 0.25 | 253 | (defcustom lazy-highlight-initial-delay 0.25 |
| 253 | "*Seconds to wait before beginning to lazily highlight all matches." | 254 | "*Seconds to wait before beginning to lazily highlight all matches." |
| 254 | :type 'number | 255 | :type 'number |
| 255 | :group 'lazy-highlight) | 256 | :group 'lazy-highlight) |
| 256 | (defvaralias 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay) | 257 | (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay |
| 257 | (make-obsolete-variable 'isearch-lazy-highlight-initial-delay 'lazy-highlight-initial-delay "22.1") | 258 | 'lazy-highlight-initial-delay |
| 259 | "22.1") | ||
| 258 | 260 | ||
| 259 | (defcustom lazy-highlight-interval 0 ; 0.0625 | 261 | (defcustom lazy-highlight-interval 0 ; 0.0625 |
| 260 | "*Seconds between lazily highlighting successive matches." | 262 | "*Seconds between lazily highlighting successive matches." |
| 261 | :type 'number | 263 | :type 'number |
| 262 | :group 'lazy-highlight) | 264 | :group 'lazy-highlight) |
| 263 | (defvaralias 'isearch-lazy-highlight-interval 'lazy-highlight-interval) | 265 | (define-obsolete-variable-alias 'isearch-lazy-highlight-interval |
| 264 | (make-obsolete-variable 'isearch-lazy-highlight-interval 'lazy-highlight-interval "22.1") | 266 | 'lazy-highlight-interval |
| 267 | "22.1") | ||
| 265 | 268 | ||
| 266 | (defcustom lazy-highlight-max-at-a-time 20 | 269 | (defcustom lazy-highlight-max-at-a-time 20 |
| 267 | "*Maximum matches to highlight at a time (for `lazy-highlight'). | 270 | "*Maximum matches to highlight at a time (for `lazy-highlight'). |
| @@ -271,8 +274,9 @@ A value of nil means highlight all matches." | |||
| 271 | :type '(choice (const :tag "All" nil) | 274 | :type '(choice (const :tag "All" nil) |
| 272 | (integer :tag "Some")) | 275 | (integer :tag "Some")) |
| 273 | :group 'lazy-highlight) | 276 | :group 'lazy-highlight) |
| 274 | (defvaralias 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time) | 277 | (define-obsolete-variable-alias 'isearch-lazy-highlight-max-at-a-time |
| 275 | (make-obsolete-variable 'isearch-lazy-highlight-max-at-a-time 'lazy-highlight-max-at-a-time "22.1") | 278 | 'lazy-highlight-max-at-a-time |
| 279 | "22.1") | ||
| 276 | 280 | ||
| 277 | (defface lazy-highlight | 281 | (defface lazy-highlight |
| 278 | '((((class color) (min-colors 88) (background light)) | 282 | '((((class color) (min-colors 88) (background light)) |
| @@ -288,8 +292,9 @@ A value of nil means highlight all matches." | |||
| 288 | :group 'lazy-highlight) | 292 | :group 'lazy-highlight) |
| 289 | (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight) | 293 | (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight) |
| 290 | (defvar lazy-highlight-face 'lazy-highlight) | 294 | (defvar lazy-highlight-face 'lazy-highlight) |
| 291 | (defvaralias 'isearch-lazy-highlight-face 'lazy-highlight-face) | 295 | (define-obsolete-variable-alias 'isearch-lazy-highlight-face |
| 292 | (make-obsolete-variable 'isearch-lazy-highlight-face 'lazy-highlight-face "22.1") | 296 | 'lazy-highlight-face |
| 297 | "22.1") | ||
| 293 | 298 | ||
| 294 | ;; Define isearch-mode keymap. | 299 | ;; Define isearch-mode keymap. |
| 295 | 300 | ||
| @@ -312,12 +317,12 @@ A value of nil means highlight all matches." | |||
| 312 | ;; We need these explicit definitions because, in a dense keymap, | 317 | ;; We need these explicit definitions because, in a dense keymap, |
| 313 | ;; the binding for t does not affect characters. | 318 | ;; the binding for t does not affect characters. |
| 314 | ;; We use a dense keymap to save space. | 319 | ;; We use a dense keymap to save space. |
| 315 | (while (< i ?\ ) | 320 | (while (< i ?\s) |
| 316 | (define-key map (make-string 1 i) 'isearch-other-control-char) | 321 | (define-key map (make-string 1 i) 'isearch-other-control-char) |
| 317 | (setq i (1+ i))) | 322 | (setq i (1+ i))) |
| 318 | 323 | ||
| 319 | ;; Single-byte printing chars extend the search string by default. | 324 | ;; Single-byte printing chars extend the search string by default. |
| 320 | (setq i ?\ ) | 325 | (setq i ?\s) |
| 321 | (while (< i 256) | 326 | (while (< i 256) |
| 322 | (define-key map (vector i) 'isearch-printing-char) | 327 | (define-key map (vector i) 'isearch-printing-char) |
| 323 | (setq i (1+ i))) | 328 | (setq i (1+ i))) |
| @@ -531,7 +536,7 @@ Type \\[isearch-quote-char] to quote control character to search for it. | |||
| 531 | Type \\[isearch-query-replace] to start `query-replace' with string to\ | 536 | Type \\[isearch-query-replace] to start `query-replace' with string to\ |
| 532 | replace from last search string. | 537 | replace from last search string. |
| 533 | Type \\[isearch-query-replace-regexp] to start `query-replace-regexp'\ | 538 | Type \\[isearch-query-replace-regexp] to start `query-replace-regexp'\ |
| 534 | with string to replace from last search string.. | 539 | with string to replace from last search string. |
| 535 | 540 | ||
| 536 | Type \\[isearch-toggle-case-fold] to toggle search case-sensitivity. | 541 | Type \\[isearch-toggle-case-fold] to toggle search case-sensitivity. |
| 537 | Type \\[isearch-toggle-regexp] to toggle regular-expression mode. | 542 | Type \\[isearch-toggle-regexp] to toggle regular-expression mode. |
| @@ -1657,7 +1662,7 @@ Isearch mode." | |||
| 1657 | ;; directly to avoid the input method and keyboard | 1662 | ;; directly to avoid the input method and keyboard |
| 1658 | ;; coding system translating it. | 1663 | ;; coding system translating it. |
| 1659 | (if (and (integerp key) | 1664 | (if (and (integerp key) |
| 1660 | (>= key ?\ ) (/= key 127) (< key 256)) | 1665 | (>= key ?\s) (/= key 127) (< key 256)) |
| 1661 | (progn | 1666 | (progn |
| 1662 | (isearch-process-search-char key) | 1667 | (isearch-process-search-char key) |
| 1663 | (setq keylist (cdr keylist))) | 1668 | (setq keylist (cdr keylist))) |
| @@ -1749,7 +1754,7 @@ Isearch mode." | |||
| 1749 | ;; Assume character codes 0200 - 0377 stand for characters in some | 1754 | ;; Assume character codes 0200 - 0377 stand for characters in some |
| 1750 | ;; single-byte character set, and convert them to Emacs | 1755 | ;; single-byte character set, and convert them to Emacs |
| 1751 | ;; characters. | 1756 | ;; characters. |
| 1752 | (if (and isearch-regexp (= char ?\ )) | 1757 | (if (and isearch-regexp (= char ?\s)) |
| 1753 | (if (subregexp-context-p isearch-string (length isearch-string)) | 1758 | (if (subregexp-context-p isearch-string (length isearch-string)) |
| 1754 | (isearch-process-search-string "[ ]" " ") | 1759 | (isearch-process-search-string "[ ]" " ") |
| 1755 | (isearch-process-search-char char)) | 1760 | (isearch-process-search-char char)) |
| @@ -1770,7 +1775,7 @@ Isearch mode." | |||
| 1770 | (interactive) | 1775 | (interactive) |
| 1771 | (let ((char last-command-char)) | 1776 | (let ((char last-command-char)) |
| 1772 | (if (= char ?\S-\ ) | 1777 | (if (= char ?\S-\ ) |
| 1773 | (setq char ?\ )) | 1778 | (setq char ?\s)) |
| 1774 | (if (and enable-multibyte-characters | 1779 | (if (and enable-multibyte-characters |
| 1775 | (>= char ?\200) | 1780 | (>= char ?\200) |
| 1776 | (<= char ?\377)) | 1781 | (<= char ?\377)) |
| @@ -2200,7 +2205,7 @@ since they have special meaning in a regexp." | |||
| 2200 | 2205 | ||
| 2201 | (defun isearch-text-char-description (c) | 2206 | (defun isearch-text-char-description (c) |
| 2202 | (cond | 2207 | (cond |
| 2203 | ((< c ?\ ) (format "^%c" (+ c 64))) | 2208 | ((< c ?\s) (format "^%c" (+ c 64))) |
| 2204 | ((= c ?\^?) "^?") | 2209 | ((= c ?\^?) "^?") |
| 2205 | (t (char-to-string c)))) | 2210 | (t (char-to-string c)))) |
| 2206 | 2211 | ||
| @@ -2287,8 +2292,9 @@ is nil. This function is called when exiting an incremental search if | |||
| 2287 | (cancel-timer isearch-lazy-highlight-timer) | 2292 | (cancel-timer isearch-lazy-highlight-timer) |
| 2288 | (setq isearch-lazy-highlight-timer nil))) | 2293 | (setq isearch-lazy-highlight-timer nil))) |
| 2289 | 2294 | ||
| 2290 | (defalias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup) | 2295 | (define-obsolete-function-alias 'isearch-lazy-highlight-cleanup |
| 2291 | (make-obsolete 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup "22.1") | 2296 | 'lazy-highlight-cleanup |
| 2297 | "22.1") | ||
| 2292 | 2298 | ||
| 2293 | (defun isearch-lazy-highlight-new-loop (&optional beg end) | 2299 | (defun isearch-lazy-highlight-new-loop (&optional beg end) |
| 2294 | "Cleanup any previous `lazy-highlight' loop and begin a new one. | 2300 | "Cleanup any previous `lazy-highlight' loop and begin a new one. |