aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-11-16 18:00:39 +0000
committerDan Nicolaescu2007-11-16 18:00:39 +0000
commitda99b369e96db10411bb9f5c7d578582b5f514de (patch)
treea10086ce3bae51167297086af91c7d8c150721e4
parentde299ed7418614fb5ee58d0eeb96dd505c0016f2 (diff)
downloademacs-da99b369e96db10411bb9f5c7d578582b5f514de.tar.gz
emacs-da99b369e96db10411bb9f5c7d578582b5f514de.zip
* doc-view.el (doc-view-search-backward, doc-view-search): Fix
assignment to free variable bug.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/doc-view.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 24c578e1dfd..9da728cd8be 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-11-16 Tassilo Horn <tassilo@member.fsf.org>
2
3 * doc-view.el (doc-view-search-backward, doc-view-search): Fix
4 assignment to free variable bug.
5
12007-11-16 Martin Pohlack <mp26@os.inf.tu-dresden.de> (tiny change) 62007-11-16 Martin Pohlack <mp26@os.inf.tu-dresden.de> (tiny change)
2 7
3 * emulation/pc-select.el (pc-select-shifted-mark): New var. 8 * emulation/pc-select.el (pc-select-shifted-mark): New var.
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."
787 "Call `doc-view-search' for backward search. 787 "Call `doc-view-search' for backward search.
788If prefix NEW-QUERY is given, ask for a new regexp." 788If prefix NEW-QUERY is given, ask for a new regexp."
789 (interactive "P") 789 (interactive "P")
790 (doc-view-search arg t)) 790 (doc-view-search new-query t))
791 791
792(defun doc-view-search (new-query &optional backward) 792(defun doc-view-search (new-query &optional backward)
793 "Jump to the next match or initiate a new search if NEW-QUERY is given. 793 "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
795till now do that first. 795till now do that first.
796If BACKWARD is non-nil, jump to the previous match." 796If BACKWARD is non-nil, jump to the previous match."
797 (interactive "P") 797 (interactive "P")
798 (if (and (not arg) 798 (if (and (not new-query)
799 doc-view-current-search-matches) 799 doc-view-current-search-matches)
800 (if backward 800 (if backward
801 (doc-view-search-previous-match 1) 801 (doc-view-search-previous-match 1)