aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-01-04 03:12:17 +0000
committerGlenn Morris2008-01-04 03:12:17 +0000
commit069b4ce3f683e4d8e4b7b426fdf99264e2500fc7 (patch)
treed894a1e82b116eb10db4a7f90981576cde4aa8ee
parentb30e04e26333646fc6549ea93bd49ed1525f660e (diff)
downloademacs-069b4ce3f683e4d8e4b7b426fdf99264e2500fc7.tar.gz
emacs-069b4ce3f683e4d8e4b7b426fdf99264e2500fc7.zip
(doc-view-search-internal): Don't use `incf'.
(bookmark-make-cell-function, bookmark-get-filename) (bookmark-get-bookmark-record): Declare for compiler. Move footer text back to end of file.
-rw-r--r--lisp/doc-view.el23
1 files changed, 15 insertions, 8 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 43c0250ec92..b63d86afb01 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1,6 +1,6 @@
1;;; doc-view.el --- View PDF/PostScript/DVI files in Emacs 1;;; doc-view.el --- View PDF/PostScript/DVI files in Emacs
2 2
3;; Copyright (C) 2007 Free Software Foundation, Inc. 3;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
4;; 4;;
5;; Author: Tassilo Horn <tassilo@member.fsf.org> 5;; Author: Tassilo Horn <tassilo@member.fsf.org>
6;; Maintainer: Tassilo Horn <tassilo@member.fsf.org> 6;; Maintainer: Tassilo Horn <tassilo@member.fsf.org>
@@ -780,7 +780,7 @@ the pagenumber and CONTEXTS are all lines of text containing a match."
780 matches) 780 matches)
781 (while (re-search-forward (concat "\\(?:\\([ ]\\)\\|\\(" 781 (while (re-search-forward (concat "\\(?:\\([ ]\\)\\|\\("
782 regexp "\\)\\)") nil t) 782 regexp "\\)\\)") nil t)
783 (when (match-string 1) (incf page)) 783 (when (match-string 1) (setq page (1+ page)))
784 (when (match-string 2) 784 (when (match-string 2)
785 (if (/= page lastpage) 785 (if (/= page lastpage)
786 (push (cons page 786 (push (cons page
@@ -916,6 +916,8 @@ If BACKWARD is non-nil, jump to the previous match."
916 (file-name-extension buffer-file-name)" files is missing. " 916 (file-name-extension buffer-file-name)" files is missing. "
917 "Type \\[doc-view-toggle-display] to switch to an editing mode."))))) 917 "Type \\[doc-view-toggle-display] to switch to an editing mode.")))))
918 918
919(defvar bookmark-make-cell-function)
920
919;;;###autoload 921;;;###autoload
920(defun doc-view-mode () 922(defun doc-view-mode ()
921 "Major mode in DocView buffers. 923 "Major mode in DocView buffers.
@@ -991,13 +993,7 @@ See the command `doc-view-mode' for more information on this mode."
991 (interactive) 993 (interactive)
992 (dired doc-view-cache-directory)) 994 (dired doc-view-cache-directory))
993 995
994(provide 'doc-view)
995
996;; Local Variables:
997;; mode: outline-minor
998;; End:
999 996
1000;; arch-tag: 5d6e5c5e-095f-489e-b4e4-1ca90a7d79be
1001;;;; Bookmark integration 997;;;; Bookmark integration
1002 998
1003(defun doc-view-bookmark-make-cell (annotation &rest args) 999(defun doc-view-bookmark-make-cell (annotation &rest args)
@@ -1015,6 +1011,10 @@ See the command `doc-view-mode' for more information on this mode."
1015 ;; Finally, return the completed record. 1011 ;; Finally, return the completed record.
1016 the-record)) 1012 the-record))
1017 1013
1014
1015(declare-function bookmark-get-filename "bookmark" (bookmark))
1016(declare-function bookmark-get-bookmark-record "bookmark" (bookmark))
1017
1018;;;###autoload 1018;;;###autoload
1019(defun doc-view-bookmark-jump (bmk) 1019(defun doc-view-bookmark-jump (bmk)
1020 ;; This implements the `handler' function interface for record type 1020 ;; This implements the `handler' function interface for record type
@@ -1028,5 +1028,12 @@ See the command `doc-view-mode' for more information on this mode."
1028 (doc-view-goto-page page) 1028 (doc-view-goto-page page)
1029 `((buffer ,(current-buffer)) (position ,1))))) 1029 `((buffer ,(current-buffer)) (position ,1)))))
1030 1030
1031
1032(provide 'doc-view)
1033
1034;; Local Variables:
1035;; mode: outline-minor
1036;; End:
1037
1031;; arch-tag: 5d6e5c5e-095f-489e-b4e4-1ca90a7d79be 1038;; arch-tag: 5d6e5c5e-095f-489e-b4e4-1ca90a7d79be
1032;;; doc-view.el ends here 1039;;; doc-view.el ends here