diff options
| author | Dan Nicolaescu | 2007-11-16 18:00:39 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-11-16 18:00:39 +0000 |
| commit | da99b369e96db10411bb9f5c7d578582b5f514de (patch) | |
| tree | a10086ce3bae51167297086af91c7d8c150721e4 | |
| parent | de299ed7418614fb5ee58d0eeb96dd505c0016f2 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/doc-view.el | 4 |
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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-11-16 Martin Pohlack <mp26@os.inf.tu-dresden.de> (tiny change) | 6 | 2007-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. |
| 788 | If prefix NEW-QUERY is given, ask for a new regexp." | 788 | If 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 | |||
| 795 | till now do that first. | 795 | till now do that first. |
| 796 | If BACKWARD is non-nil, jump to the previous match." | 796 | If 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) |