diff options
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/info.el | 14 |
2 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a07cbbc5eb9..e43cacea51f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-12-19 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * info.el (Info-isearch-search): Implement lax version of | ||
| 4 | incremental word search in Info. | ||
| 5 | (Info-isearch-start): Set Info-isearch-initial-node to the | ||
| 6 | current node when search is nonincremental to not stop at the | ||
| 7 | initial node in this case. | ||
| 8 | (Info-mode-map): Unbind "\M-s" from `Info-search'. | ||
| 9 | |||
| 1 | 2008-12-18 Juanma Barranquero <lekktu@gmail.com> | 10 | 2008-12-18 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 11 | ||
| 3 | * textmodes/rst.el (rst-promote-region): Reflow docstring. | 12 | * textmodes/rst.el (rst-promote-region): Reflow docstring. |
diff --git a/lisp/info.el b/lisp/info.el index b120d3d7379..f45aa41de30 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1815,7 +1815,12 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1815 | (replace-regexp-in-string | 1815 | (replace-regexp-in-string |
| 1816 | "^\\W+\\|\\W+$" "" string) | 1816 | "^\\W+\\|\\W+$" "" string) |
| 1817 | nil t) | 1817 | nil t) |
| 1818 | "\\b") | 1818 | ;; Lax version of word search |
| 1819 | (if (or isearch-nonincremental | ||
| 1820 | (eq (length string) | ||
| 1821 | (length (isearch-string-state | ||
| 1822 | (car isearch-cmds))))) | ||
| 1823 | "\\b")) | ||
| 1819 | bound noerror count | 1824 | bound noerror count |
| 1820 | (unless isearch-forward 'backward)) | 1825 | (unless isearch-forward 'backward)) |
| 1821 | (Info-search (if isearch-regexp string (regexp-quote string)) | 1826 | (Info-search (if isearch-regexp string (regexp-quote string)) |
| @@ -1845,7 +1850,10 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1845 | (progn (Info-find-node file node) (sit-for 0)))) | 1850 | (progn (Info-find-node file node) (sit-for 0)))) |
| 1846 | 1851 | ||
| 1847 | (defun Info-isearch-start () | 1852 | (defun Info-isearch-start () |
| 1848 | (setq Info-isearch-initial-node nil)) | 1853 | (setq Info-isearch-initial-node |
| 1854 | ;; Don't stop at initial node for nonincremental search. | ||
| 1855 | ;; Otherwise this variable is set after first search failure. | ||
| 1856 | (and isearch-nonincremental Info-current-node))) | ||
| 1849 | 1857 | ||
| 1850 | (defun Info-isearch-filter-predicate (beg-found found) | 1858 | (defun Info-isearch-filter-predicate (beg-found found) |
| 1851 | "Skip invisible text, node header line and Tag Table node." | 1859 | "Skip invisible text, node header line and Tag Table node." |
| @@ -3241,8 +3249,6 @@ If FORK is non-nil, it is passed to `Info-goto-node'." | |||
| 3241 | (define-key map "r" 'Info-history-forward) | 3249 | (define-key map "r" 'Info-history-forward) |
| 3242 | (define-key map "s" 'Info-search) | 3250 | (define-key map "s" 'Info-search) |
| 3243 | (define-key map "S" 'Info-search-case-sensitively) | 3251 | (define-key map "S" 'Info-search-case-sensitively) |
| 3244 | ;; For consistency with Rmail. | ||
| 3245 | (define-key map "\M-s" 'Info-search) | ||
| 3246 | (define-key map "\M-n" 'clone-buffer) | 3252 | (define-key map "\M-n" 'clone-buffer) |
| 3247 | (define-key map "t" 'Info-top-node) | 3253 | (define-key map "t" 'Info-top-node) |
| 3248 | (define-key map "T" 'Info-toc) | 3254 | (define-key map "T" 'Info-toc) |