diff options
| author | Juri Linkov | 2007-11-11 22:24:04 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-11-11 22:24:04 +0000 |
| commit | 34065e5efde6d85307aa2fde77b1af0d059635b3 (patch) | |
| tree | 6d9a65766c134a9e5abd9967b8244b982fde0dc4 | |
| parent | c27f56ee33bed045d5171d2d273329d65068ec5f (diff) | |
| download | emacs-34065e5efde6d85307aa2fde77b1af0d059635b3.tar.gz emacs-34065e5efde6d85307aa2fde77b1af0d059635b3.zip | |
Add comments about isearch support.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/doc-view.el | 28 |
2 files changed, 30 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 65962613866..e0f5448e42f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-11-11 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * doc-view.el: Add comments about isearch support. | ||
| 4 | |||
| 1 | 2007-11-11 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2007-11-11 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * vc.el (vc-start-entry): Fix setting the in the case the function | 7 | * vc.el (vc-start-entry): Fix setting the in the case the function |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 89f1b009f7f..c07f5b5967a 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -97,9 +97,8 @@ | |||
| 97 | ;; | 97 | ;; |
| 98 | ;; and modify them to your needs. | 98 | ;; and modify them to your needs. |
| 99 | 99 | ||
| 100 | ;;; Code: | 100 | ;;; Todo: |
| 101 | 101 | ||
| 102 | ;; Todo: | ||
| 103 | ;; - better menu. | 102 | ;; - better menu. |
| 104 | ;; - don't use `find-file'. | 103 | ;; - don't use `find-file'. |
| 105 | ;; - Bind slicing to a drag event. | 104 | ;; - Bind slicing to a drag event. |
| @@ -107,6 +106,31 @@ | |||
| 107 | ;; - get rid of the silly arrow in the fringe. | 106 | ;; - get rid of the silly arrow in the fringe. |
| 108 | ;; - improve anti-aliasing (pdf-utils gets it better). | 107 | ;; - improve anti-aliasing (pdf-utils gets it better). |
| 109 | 108 | ||
| 109 | ;;;; About isearch support | ||
| 110 | |||
| 111 | ;; I tried implementing isearch by setting | ||
| 112 | ;; `isearch-search-fun-function' buffer-locally, but that didn't | ||
| 113 | ;; work too good. The function doing the real search was called | ||
| 114 | ;; endlessly somehow. But even if we'd get that working no real | ||
| 115 | ;; isearch feeling comes up due to the missing match highlighting. | ||
| 116 | ;; Currently I display all lines containing a match in a tooltip and | ||
| 117 | ;; each C-s or C-r jumps directly to the next/previous page with a | ||
| 118 | ;; match. With isearch we could only display the current match. So | ||
| 119 | ;; we had to decide if another C-s jumps to the next page with a | ||
| 120 | ;; match (thus only the first match in a page will be displayed in a | ||
| 121 | ;; tooltip) or to the next match, which would do nothing visible | ||
| 122 | ;; (except the tooltip) if the next match is on the same page. | ||
| 123 | |||
| 124 | ;; And it's much slower than the current search facility, because | ||
| 125 | ;; isearch really searches for each step forward or backward wheras | ||
| 126 | ;; the current approach searches once and then it knows to which | ||
| 127 | ;; pages to jump. | ||
| 128 | |||
| 129 | ;; Anyway, if someone with better isearch knowledge wants to give it a try, | ||
| 130 | ;; feel free to do it. --Tassilo | ||
| 131 | |||
| 132 | ;;; Code: | ||
| 133 | |||
| 110 | (require 'dired) | 134 | (require 'dired) |
| 111 | (require 'image-mode) | 135 | (require 'image-mode) |
| 112 | (require 'jka-compr) | 136 | (require 'jka-compr) |