diff options
| author | Juri Linkov | 2005-03-08 21:51:48 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-03-08 21:51:48 +0000 |
| commit | 9553cf63a590087b3da58f394725f7e7ea203ed2 (patch) | |
| tree | f7b10e748cde788e6cf126746082a173cb0599c3 | |
| parent | 15a420bd3f415e4134d89f9c204ce4f5a18c0d3d (diff) | |
| download | emacs-9553cf63a590087b3da58f394725f7e7ea203ed2.tar.gz emacs-9553cf63a590087b3da58f394725f7e7ea203ed2.zip | |
(Info-isearch-search): Emulate word search in
isearching through multiple Info nodes with Info-search.
(Info-isearch-wrap): Allow isearch-word.
| -rw-r--r-- | lisp/ChangeLog | 30 | ||||
| -rw-r--r-- | lisp/info.el | 12 |
2 files changed, 39 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bceac3d7597..0f3bb47ce9b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2005-03-08 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * textmodes/sgml-mode.el (sgml-tag, html-tag-alist) | ||
| 4 | (html-horizontal-rule, html-line, html-image, html-checkboxes) | ||
| 5 | (html-radio-buttons): Add a space before the trailing `/>' where | ||
| 6 | sgml-xml-mode is non-nil. | ||
| 7 | (sgml-delete-tag): Check if the tag ends with `/>' to not delete | ||
| 8 | the subsequent tag of the empty XML tag. | ||
| 9 | (html-href-anchor): Don't set initial input to "http:". | ||
| 10 | (html-image): Ask for the image URL and set point inside alt="". | ||
| 11 | (html-name-anchor): Duplicate the name in the `id' attribute when | ||
| 12 | sgml-xml-mode is non-nil. | ||
| 13 | (html-paragraph): Remove \n before <p>. | ||
| 14 | (html-checkboxes, html-radio-buttons): Insert `checked="checked"' | ||
| 15 | instead of `checked' when sgml-xml-mode is non-nil. | ||
| 16 | |||
| 17 | * facemenu.el (list-colors-print): Print #RRGGBB in default face. | ||
| 18 | Remove 1 space before #RRGGBB to not truncate it on terminal | ||
| 19 | windows w/o fringes. Remove 1 space between bg and fg examples | ||
| 20 | to get more space. | ||
| 21 | (list-colors-duplicates): Replace `and' with `if' for `boundp' to | ||
| 22 | avoid byte-compile warnings. | ||
| 23 | |||
| 24 | * image-file.el (image-file-handler): Put `safe-magic' property to | ||
| 25 | `image-file-handler'. | ||
| 26 | |||
| 27 | * info.el (Info-isearch-search): Emulate word search in | ||
| 28 | isearching through multiple Info nodes with Info-search. | ||
| 29 | (Info-isearch-wrap): Allow isearch-word. | ||
| 30 | |||
| 1 | 2005-03-08 Lute Kamstra <lute@gnu.org> | 31 | 2005-03-08 Lute Kamstra <lute@gnu.org> |
| 2 | 32 | ||
| 3 | * emacs-lisp/debug.el (debugger-step-through): Make sure that | 33 | * emacs-lisp/debug.el (debugger-step-through): Make sure that |
diff --git a/lisp/info.el b/lisp/info.el index 4905bf0844e..fcc42395967 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1646,10 +1646,16 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1646 | (Info-search regexp bound noerror count 'backward)) | 1646 | (Info-search regexp bound noerror count 'backward)) |
| 1647 | 1647 | ||
| 1648 | (defun Info-isearch-search () | 1648 | (defun Info-isearch-search () |
| 1649 | (if (and Info-isearch-search (not isearch-word)) | 1649 | (if Info-isearch-search |
| 1650 | (lambda (string &optional bound noerror count) | 1650 | (lambda (string &optional bound noerror count) |
| 1651 | (condition-case nil | 1651 | (condition-case nil |
| 1652 | (progn | 1652 | (if isearch-word |
| 1653 | (Info-search (concat "\\b" (replace-regexp-in-string | ||
| 1654 | "\\W+" "\\\\W+" | ||
| 1655 | (replace-regexp-in-string | ||
| 1656 | "^\\W+\\|\\W+$" "" string)) "\\b") | ||
| 1657 | bound noerror count | ||
| 1658 | (unless isearch-forward 'backward)) | ||
| 1653 | (Info-search (if isearch-regexp string (regexp-quote string)) | 1659 | (Info-search (if isearch-regexp string (regexp-quote string)) |
| 1654 | bound noerror count | 1660 | bound noerror count |
| 1655 | (unless isearch-forward 'backward)) | 1661 | (unless isearch-forward 'backward)) |
| @@ -1659,7 +1665,7 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1659 | (isearch-search-fun)))) | 1665 | (isearch-search-fun)))) |
| 1660 | 1666 | ||
| 1661 | (defun Info-isearch-wrap () | 1667 | (defun Info-isearch-wrap () |
| 1662 | (when (and Info-isearch-search (not isearch-word)) | 1668 | (when Info-isearch-search |
| 1663 | (if isearch-forward (Info-top-node) (Info-final-node)) | 1669 | (if isearch-forward (Info-top-node) (Info-final-node)) |
| 1664 | (goto-char (if isearch-forward (point-min) (point-max))))) | 1670 | (goto-char (if isearch-forward (point-min) (point-max))))) |
| 1665 | 1671 | ||