diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2007-11-16 18:00:39 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2007-11-16 18:00:39 +0000 |
commit | faa7e0b9e8676c64453ad88e0e3cdf4ce0b0eaa3 (patch) | |
tree | 7760d7a31f24d5eacf96284fb71f25a68753e56c /lisp/doc-view.el | |
parent | 8c08159685caa164163a615c5675fc1500ab367f (diff) | |
download | emacs-faa7e0b9e8676c64453ad88e0e3cdf4ce0b0eaa3.tar.gz |
* doc-view.el (doc-view-search-backward, doc-view-search): Fix
assignment to free variable bug.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 44c6871b734..5443bc3672e 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -787,7 +787,7 @@ the pagenumber and CONTEXTS are all lines of text containing a match." "Call `doc-view-search' for backward search. If prefix NEW-QUERY is given, ask for a new regexp." (interactive "P") - (doc-view-search arg t)) + (doc-view-search new-query t)) (defun doc-view-search (new-query &optional backward) "Jump to the next match or initiate a new search if NEW-QUERY is given. @@ -795,7 +795,7 @@ If the current document hasn't been transformed to plain text till now do that first. If BACKWARD is non-nil, jump to the previous match." (interactive "P") - (if (and (not arg) + (if (and (not new-query) doc-view-current-search-matches) (if backward (doc-view-search-previous-match 1) |