aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2008-06-24 13:29:28 +0000
committerStefan Monnier2008-06-24 13:29:28 +0000
commit4e0995049179c8fbe0243e1e447a0487d0331539 (patch)
tree1416db8efdb3358e320cd9c1cba644a0bd224678 /lisp
parentc3bb54651ce2f6296100fc23a950b59034f6358a (diff)
downloademacs-4e0995049179c8fbe0243e1e447a0487d0331539.tar.gz
emacs-4e0995049179c8fbe0243e1e447a0487d0331539.zip
Fix up comments.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/view.el60
1 files changed, 30 insertions, 30 deletions
diff --git a/lisp/view.el b/lisp/view.el
index 1d2078a4bb8..c317211c4c2 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -182,13 +182,13 @@ This is local in each buffer, once it is used.")
182 (define-key map "c" 'View-leave) 182 (define-key map "c" 'View-leave)
183 (define-key map "Q" 'View-quit-all) 183 (define-key map "Q" 'View-quit-all)
184 (define-key map "E" 'View-exit-and-edit) 184 (define-key map "E" 'View-exit-and-edit)
185; (define-key map "v" 'View-exit) 185 ;; (define-key map "v" 'View-exit)
186 (define-key map "e" 'View-exit) 186 (define-key map "e" 'View-exit)
187 (define-key map "q" 'View-quit) 187 (define-key map "q" 'View-quit)
188; (define-key map "N" 'View-search-last-regexp-backward) 188 ;; (define-key map "N" 'View-search-last-regexp-backward)
189 (define-key map "p" 'View-search-last-regexp-backward) 189 (define-key map "p" 'View-search-last-regexp-backward)
190 (define-key map "n" 'View-search-last-regexp-forward) 190 (define-key map "n" 'View-search-last-regexp-forward)
191; (define-key map "?" 'View-search-regexp-backward) ; Less does this. 191 ;; (define-key map "?" 'View-search-regexp-backward) ; Less does this.
192 (define-key map "\\" 'View-search-regexp-backward) 192 (define-key map "\\" 'View-search-regexp-backward)
193 (define-key map "/" 'View-search-regexp-forward) 193 (define-key map "/" 'View-search-regexp-forward)
194 (define-key map "r" 'isearch-backward) 194 (define-key map "r" 'isearch-backward)
@@ -199,22 +199,22 @@ This is local in each buffer, once it is used.")
199 (define-key map "@" 'View-back-to-mark) 199 (define-key map "@" 'View-back-to-mark)
200 (define-key map "." 'set-mark-command) 200 (define-key map "." 'set-mark-command)
201 (define-key map "%" 'View-goto-percent) 201 (define-key map "%" 'View-goto-percent)
202; (define-key map "G" 'View-goto-line-last) 202 ;; (define-key map "G" 'View-goto-line-last)
203 (define-key map "g" 'View-goto-line) 203 (define-key map "g" 'View-goto-line)
204 (define-key map "=" 'what-line) 204 (define-key map "=" 'what-line)
205 (define-key map "F" 'View-revert-buffer-scroll-page-forward) 205 (define-key map "F" 'View-revert-buffer-scroll-page-forward)
206; (define-key map "k" 'View-scroll-line-backward) 206 ;; (define-key map "k" 'View-scroll-line-backward)
207 (define-key map "y" 'View-scroll-line-backward) 207 (define-key map "y" 'View-scroll-line-backward)
208; (define-key map "j" 'View-scroll-line-forward) 208 ;; (define-key map "j" 'View-scroll-line-forward)
209 (define-key map "\n" 'View-scroll-line-forward) 209 (define-key map "\n" 'View-scroll-line-forward)
210 (define-key map "\r" 'View-scroll-line-forward) 210 (define-key map "\r" 'View-scroll-line-forward)
211 (define-key map "u" 'View-scroll-half-page-backward) 211 (define-key map "u" 'View-scroll-half-page-backward)
212 (define-key map "d" 'View-scroll-half-page-forward) 212 (define-key map "d" 'View-scroll-half-page-forward)
213 (define-key map "z" 'View-scroll-page-forward-set-page-size) 213 (define-key map "z" 'View-scroll-page-forward-set-page-size)
214 (define-key map "w" 'View-scroll-page-backward-set-page-size) 214 (define-key map "w" 'View-scroll-page-backward-set-page-size)
215; (define-key map "b" 'View-scroll-page-backward) 215 ;; (define-key map "b" 'View-scroll-page-backward)
216 (define-key map "\C-?" 'View-scroll-page-backward) 216 (define-key map "\C-?" 'View-scroll-page-backward)
217; (define-key map "f" 'View-scroll-page-forward) 217 ;; (define-key map "f" 'View-scroll-page-forward)
218 (define-key map " " 'View-scroll-page-forward) 218 (define-key map " " 'View-scroll-page-forward)
219 (define-key map "o" 'View-scroll-to-buffer-end) 219 (define-key map "o" 'View-scroll-to-buffer-end)
220 (define-key map ">" 'end-of-buffer) 220 (define-key map ">" 'end-of-buffer)
@@ -695,7 +695,7 @@ OLD-WINDOW."
695 (when exit-action 695 (when exit-action
696 ;; Don't do that: If the user wants to quit the *Help* buffer a 696 ;; Don't do that: If the user wants to quit the *Help* buffer a
697 ;; second time it won't have any effect. 697 ;; second time it won't have any effect.
698;;; (setq view-exit-action nil) 698 ;;(setq view-exit-action nil)
699 (funcall exit-action buffer)) 699 (funcall exit-action buffer))
700 (force-mode-line-update)))) 700 (force-mode-line-update))))
701 701
@@ -743,18 +743,18 @@ previous state and go to previous buffer or window."
743 ;; Window height excluding mode line. 743 ;; Window height excluding mode line.
744 (1- (window-height))) 744 (1- (window-height)))
745 745
746;(defun view-last-command (&optional who what) 746;; (defun view-last-command (&optional who what)
747; (setq view-last-command-entry this-command) 747;; (setq view-last-command-entry this-command)
748; (setq view-last-command who) 748;; (setq view-last-command who)
749; (setq view-last-command-argument what)) 749;; (setq view-last-command-argument what))
750 750
751;(defun View-repeat-last-command () 751;; (defun View-repeat-last-command ()
752; "Repeat last command issued in View mode." 752;; "Repeat last command issued in View mode."
753; (interactive) 753;; (interactive)
754; (if (and view-last-command 754;; (if (and view-last-command
755; (eq view-last-command-entry last-command)) 755;; (eq view-last-command-entry last-command))
756; (funcall view-last-command view-last-command-argument)) 756;; (funcall view-last-command view-last-command-argument))
757; (setq this-command view-last-command-entry)) 757;; (setq this-command view-last-command-entry))
758 758
759(defun view-recenter () 759(defun view-recenter ()
760 ;; Center point in window. 760 ;; Center point in window.
@@ -793,16 +793,16 @@ Also set the mark at the position where point was."
793 (point-max))) 793 (point-max)))
794 (view-recenter)) 794 (view-recenter))
795 795
796;(defun View-goto-line-last (&optional line) 796;; (defun View-goto-line-last (&optional line)
797;"Move to last (or prefix LINE) line in View mode. 797;; "Move to last (or prefix LINE) line in View mode.
798;Display is centered at LINE. 798;; Display is centered at LINE.
799;Sets mark at starting position and pushes mark ring." 799;; Sets mark at starting position and pushes mark ring."
800; (interactive "P") 800;; (interactive "P")
801; (push-mark) 801;; (push-mark)
802; (if line (goto-line (prefix-numeric-value line)) 802;; (if line (goto-line (prefix-numeric-value line))
803; (goto-char (point-max)) 803;; (goto-char (point-max))
804; (beginning-of-line)) 804;; (beginning-of-line))
805; (view-recenter)) 805;; (view-recenter))
806 806
807(defun View-goto-line (&optional line) 807(defun View-goto-line (&optional line)
808 "Move to first (or prefix LINE) line in View mode. 808 "Move to first (or prefix LINE) line in View mode.