1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

81 Commits

Author SHA1 Message Date
Eli Zaretskii
2f33468cdc (view-mode): Doc fix. 2005-12-03 14:35:38 +00:00
Romain Francoise
1c0484e2a2 (view-inhibit-help-message): New defcustom.
(view-mode-enter): Use it.
2005-11-29 10:53:30 +00:00
Andreas Schwab
a312f21413 (View-revert-buffer-scroll-page-forward): Use
view-page-size-default.
2005-10-28 09:43:01 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
5bf70f477c (view-mode-enable): Set view-page-size and view-half-page-size to nil.
(view-set-half-page-size-default):
view-half-page-size = nil means the default.
(View-scroll-page-forward): Use view-page-size-default.
(View-scroll-page-backward): Likewise.
(view-page-size, view-half-page-size): Doc fixes.
2004-10-16 15:24:34 +00:00
Richard M. Stallman
da932079d0 (view-return-to-alist): Mark it permanent local. 2004-04-20 20:57:10 +00:00
Andreas Schwab
9aaa0f71cd Revert previous change. 2004-02-07 23:39:18 +00:00
Andreas Schwab
daa3ea8d18 (view-mode-enable): Add view-mode-map to
minor-mode-overriding-map-alist.
2004-02-06 21:41:45 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
90bb2ff453 (view-file): If existing buffer's major mode is special,
don't go into view mode.
2003-07-09 16:16:54 +00:00
Stefan Monnier
981b7b0c72 (view-file, view-file-other-window, view-file-other-frame):
Signal an error when trying to visit an inexistent file.
2003-05-31 17:53:24 +00:00
Richard M. Stallman
0d63ba8cd9 (Helper-return-blurb): Add defvar. (Also rearrange defuns.) 2003-05-03 13:52:17 +00:00
Stefan Monnier
cb211eb2f6 (view-read-only): Move from view.el to files.el. 2003-04-18 13:53:18 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Richard M. Stallman
4790accb2a (view-mode): Doc fix. 2003-01-25 19:43:29 +00:00
Richard M. Stallman
1f5f6db607 (view-mode-enter): Clarify echo area message. 2002-06-12 12:20:51 +00:00
Stefan Monnier
c4d9b0d996 (view-mode-enable): Don't use make-local-hook. 2001-11-17 00:00:26 +00:00
Gerd Moellmann
284b3043c0 Add Keywords header. 2001-09-04 12:54:14 +00:00
Gerd Moellmann
fd78d527b7 (toplevel): Use mode-line-minor-mode-keymap for the
minor mode name.
2001-08-09 14:51:48 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Dave Love
4503fe8bd2 Use local-map property, not keymap on mode-line string. 2000-11-12 00:53:35 +00:00
Dave Love
e209b8378e (minor-mode-alist): Propertize the string. 2000-09-17 17:00:05 +00:00
Richard M. Stallman
b75c9917df (view-mode-disable): Kill local binding of view-read-only. 2000-03-19 15:56:40 +00:00
Gerd Moellmann
d1ed8492ac Some changes in documentation. Removed some trailing
whitespace. Changed some parameter names to agree with
documentation.
(view-mode-exit): Keep entry in `view-return-to-alist' only when a
window is not deleted.  Modifies change 1998-04-26.
2000-01-31 21:34:33 +00:00
Karl Heuer
bf551cf705 (view-mode-disable): If buffer-read-only is nil,
don't change it.
1999-08-10 16:40:00 +00:00
Karl Heuer
19b7f6c9f0 (view-mode-enable, view-mode-disable):
Call force-mode-line-update.
1999-08-10 16:37:57 +00:00
Andreas Schwab
5d9b78b761 (View-revert-buffer-scroll-page-forward): Bind
view-scroll-auto-exit instead of obsolete view-mode-auto-exit.
1999-01-04 11:04:27 +00:00
Karl Heuer
72b5cb89c3 (View-exit-and-edit): Bind view-no-disable-on-exit to nil. 1998-06-03 14:35:38 +00:00
Richard M. Stallman
7f9fcc0f57 (view-mode-exit): Don't alter view-return-to-alist.
(view-mode-enter, view-mode-exit): Doc fixes.
1998-04-26 04:09:09 +00:00
Andreas Schwab
695764015c (view-really-at-end): Return true when at end and not
reverting.
1998-04-20 09:37:18 +00:00
Richard M. Stallman
d98558102b (view-return-to-alist): Doc fix.
(view-mode-enter): Doc fix.
(view-mode-exit): Handle new alternative `quit-window'
for OLD-BUF-INFO in RETURN-TO-ALIST.
1998-03-16 04:09:04 +00:00
Karl Heuer
cae551977c Some changes in comments and documentation.
View mode hooked into the customize tree.
(view): New custom group.
(view-highlight-face, view-scroll-auto-exit)
(view-try-extend-at-buffer-end)
(view-remove-frame-by-deleting,	view-mode-hook):
Defined by defcustom instead of by defvar.
(view-mode-enter): Install exit-action also when view-mode is
already on. Small rewrite using unless.
(view-mode, view-mode-exit, view-scroll-lines, view-really-at-end)
(view-search): Small rewrite using when or unless.
1997-10-16 18:20:16 +00:00
Richard M. Stallman
19d7331338 (view-end-message): Don't mention q if it really do anything. 1997-09-09 07:09:20 +00:00
Richard M. Stallman
1a552841d2 (view-just-bury): New variable.
(view-mode-exit): Obey it.
1997-08-08 22:26:02 +00:00
Richard M. Stallman
66d3a2b57f Changed some documentation.
(view-exits-all-viewing-windows): Nev variable
replaces view-exit-all-windows-at-exit.
(view-exit-all-windows-at-exit): Variable deleted.
(view-mode-enter): Doesn't set view-exit-action	if
argument exit-action is nil.
(view-mode-exit): Only restored windows are removed
from view-return-to-alist.  Follow chains of old-windows.
Do not call replace-buffer-in-windows.
Call exit-action also when a window displays buffer.
(View-exit-and-edit): Now sets read-only by binding
view-old-buffer-read-only.
1997-06-25 07:03:48 +00:00
Kenichi Handa
0093dc5a9a (view-mode): Add autoload cookie to this variable.
(View-exit-and-edit): Add autoload cookie.
1997-06-19 11:19:24 +00:00
Richard M. Stallman
1036798c64 Comment change. 1997-06-16 17:32:40 +00:00
Richard M. Stallman
8b7037d930 Don't globally add to change-major-mode-hook.
(view-mode-enable): Add to change-major-mode-hook locally here.
(view-mode-disable): Remove from it locally here.
1997-06-16 06:55:37 +00:00
Richard M. Stallman
e51f616fee Many doc fixes.
(view-mode-enable): New function, split from view-mode-enter.
(view-mode-enter): Use view-mode-enable.
(view-mode-disable): New function, split from view-mode-exit.
(view-mode-exit): Use view-mode-disable.
(view-mode): Use view-mode-enable and view-mode-disable;
don't do all of what view-mode-enter and view-mode-exit do.
(change-major-mode-hook): Use view-mode-disable, not view-mode-exit.
1997-06-14 21:41:42 +00:00
Richard M. Stallman
ab7782fc24 Make view mode more similar to `less'.
Changed documentation for most commands.
(view-scroll-auto-exit): New variable, replaces view-mode-auto-exit.
(view-mode-auto-exit): Variable deleted.
(view-mode): Doesn't only toggle `view-mode', it also calls
view-mode-enter or view-mode-exit.
(view-buffer, view-buffer-other-window): New argument exit-action.
(view-file, view-file-other-window, view-buffer-other-window)
(view-buffer, view-mode-enter): Changed method used to restore
windows when leaving view mode.
(view-mode-exit): New function.
(view-return-to-alist): New variable.
(view-return-here, view-exit-position): Variables deleted.
(view-remove-frame-by-deleting, view-exit-all-windows-at-exit):
New option variables.
(view-page-size, view-half-page-size): New variables.
(view-scroll-size): Var deleted; replaced by the previous two.
(view-mode-map): Make the bindings inside defvar.
Added new commands and new key bindings.
Added view-mode-exit to `change-major-mode-hook' to always leave
view mode when changing major mode.
(view-file-other-frame,	view-buffer-other-frame): New commands.
(View-leave, View-kill-and-leave, View-exit, View-exit-and-edit)
(View-quit, View-quit-all): new commands for leaving view mode.
(view-exit): Function deleted.
(View-goto-percent, View-scroll-to-buffer-end): New commands.
(view-try-extend-at-buffer-end): New option variable.

(View-scroll-page-forward, View-scroll-page-backward)
(View-scroll-page-forward-set-page-size)
(View-scroll-page-backward-set-page-size, View-scroll-line-forward)
(View-scroll-line-backward, View-scroll-half-page-forward)
(View-scroll-half-page-backward)
(View-revert-buffer-scroll-page-forward): New commands.

(View-scroll-lines-forward, View-scroll-lines-backward)
(View-scroll-lines-forward-set-scroll-size)
(View-scroll-one-more-line): Commands deleted.

(view-scroll-lines, view-end-message, view-page-size-default)
(view-set-half-page-size-default, view-really-at-end)
(view-recenter): New functions.
(view-scroll-size): Variable deleted.

(View-search-regexp-forward, View-search-regexp-backward)
(View-search-last-regexp-forward, View-search-last-regexp-backward)
(view-search): ! and @ are special at beginning of regexp.
(view-search-no-match-lines): New function.
1997-06-14 21:06:09 +00:00
Karl Heuer
7bff6b625f (view-mode-auto-exit): Doc fix. 1996-07-20 06:15:12 +00:00
Richard M. Stallman
845a69dc82 (view-mode): Doc fix. 1996-06-28 20:03:15 +00:00
Richard M. Stallman
8ba83f4b87 (View-search-last-regexp-forward)
(View-search-last-regexp-backward): Nice error if no prev regexp.
1996-02-04 21:11:50 +00:00
Richard M. Stallman
b2926fb3ef (view-mode-map): Don't call suppress-keymap. 1996-02-03 03:25:42 +00:00
Karl Heuer
b32e84552e (view-mode-enter, View-scroll-lines-forward): Pass proper format string to message. 1996-01-25 00:58:31 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
bc15ba424c (view-mode, view-mode-enter): Doc changes.
(view-mode-map): Change h and ? to use describe-mode.
Delete binding of help char.
(view-mode-enter): Use describe-mode in message.
1995-11-24 23:18:22 +00:00
Richard M. Stallman
5b7a91bb28 (view-mode-enter): Replace Help-helper by help-command
in doc string and message.
1995-11-24 22:44:27 +00:00
Richard M. Stallman
542f2d82cf (View-scroll-lines-forward): Don't recenter at end. 1995-11-14 03:43:40 +00:00