1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

54 Commits

Author SHA1 Message Date
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
Richard M. Stallman
c7e878709b (view-mode-map): Use ordinary Help command. 1995-11-10 17:31:23 +00:00
Richard M. Stallman
5534818bda Doc fixes. 1995-10-09 19:44:26 +00:00
Richard M. Stallman
82380f8474 (view-highlight-face): New variable.
(view-search): Use that variable.
1995-10-09 19:42:19 +00:00
Erik Naggum
641889d6e9 (view-exit): Delete view-overlay only if it exists. 1995-10-08 19:59:42 +00:00
Richard M. Stallman
f42c58a215 Fix typo in prev change. 1995-10-05 22:26:26 +00:00
Richard M. Stallman
4fe11426df (View-search-regexp-forward, View-search-regexp-backward):
If arg is empty, use view-last-regexp.
(view-overlay): New variable, local in all buffers.
(view-search): Highlight the match using view-overlay.
(view-exit): Delete view-overlay.
1995-10-05 22:25:38 +00:00
Richard M. Stallman
c88daaeff5 (view-mode-enter): Renamed from view-mode. Callers changed.
Don't create local vars here.  Set view-mode-auto-exit.
Don't change local map--just set view-mode.
(view-mode): New function toggles minor mode in the usual way.
(view-mode-map): Put this on minor-mode-map-alist.
(view-mode-exit): Do the exit actions only if view-mode-auto-exit.
(View-scroll-lines-forward): Exit only if view-scroll-lines-forward.
(view-mode-auto-exit, view-old-buffer-read-only)
(view-old-Helper-return-blurb, view-scroll-size, view-last-regexp)
(view-exit-action, view-return-here, view-exit-position):
Defvar them and make them always-local.
1995-09-25 18:36:32 +00:00
Karl Heuer
73479d0224 *** empty log message *** 1995-08-15 01:50:33 +00:00
Karl Heuer
bab0c3c1bf Rewrite as a minor mode. 1995-08-15 01:49:17 +00:00
Richard M. Stallman
7392e4d332 (view-file-other-window): Re-add missing argument to
switch-to-buffer-other-window.
(view-mode-map): Leave C-c alone!
(view-mode): Doc fix.
1995-06-26 20:45:48 +00:00
Richard M. Stallman
872c284541 (view-file): Do record the buffer switch. 1994-10-21 20:01:17 +00:00
Karl Heuer
8f1204db34 Update copyright. 1994-05-03 23:47:06 +00:00
Richard M. Stallman
f8591023f2 (view-mode-map): Don't bind C-z. 1994-04-05 00:28:43 +00:00
Richard M. Stallman
bd0d2c58e1 (view-mode): Run view-mode-hook as well as view-hook.
(view-mode-hook): New defvar.
1994-03-14 16:02:05 +00:00
Richard M. Stallman
6ebbf1dcaf (View-scroll-lines-forward):
Allow scrolling backward at the end of the buffer.
1993-11-23 08:31:03 +00:00
Richard M. Stallman
5c05f56971 Doc fixes; some args renamed. 1993-07-17 19:06:12 +00:00
Richard M. Stallman
ca160bc46d (View-scroll-lines-forward): If we exit, do nothing else. 1993-06-03 06:34:58 +00:00
Roland McGrath
79d0c1e7ab (view-buffer-other-window): Remove spurious backslashes from
interactive spec.
1993-03-31 23:16:10 +00:00
Roland McGrath
54d1c8face (view-exit): Use local map view-old-local-map, not (current-local-map). 1993-03-31 23:12:07 +00:00
Eric S. Raymond
c91c4e6d7f Added or corrected Commentary section 1993-03-22 22:44:33 +00:00
Eric S. Raymond
802e7beba4 entered into RCS 1992-08-04 17:23:48 +00:00
Eric S. Raymond
803eaf50c2 *** empty log message *** 1992-08-04 17:18:16 +00:00
Richard M. Stallman
1586b965b9 *** empty log message *** 1992-08-03 02:02:37 +00:00
Eric S. Raymond
eea8d4efaf *** empty log message *** 1992-07-22 02:58:21 +00:00
Eric S. Raymond
e516799970 *** empty log message *** 1992-07-16 21:47:34 +00:00
Eric S. Raymond
d501f51645 *** empty log message *** 1992-05-30 20:24:49 +00:00
Jim Blandy
49116ac071 *** empty log message *** 1992-03-16 20:39:07 +00:00