Commit graph

277 commits

Author SHA1 Message Date
Paul Eggert
1dabb4e676 (vc-locked-example): Renamed from vc-quiescent-p. Now yields example of
why current directory is not quiescent.  All callers changed to use this.
1993-08-27 03:55:16 +00:00
Paul Eggert
c6bfcd1295 (vc-previous-comment): Use mod', not ring-mod'. 1993-08-10 04:14:17 +00:00
Jim Blandy
064726ac89 * vc.el (vc-diff, vc-directory-18): Add missing paren to end of
vc-diff, and remove extra paren from vc-directory-18.
1993-08-08 00:44:26 +00:00
Richard M. Stallman
4c2d8cf9b5 (vc-shrink-to-fit): Deleted. All callers changed to use
the new, fixed `shrink-window-if-larger-than-buffer' instead.
In some places move it after a (goto-char (point-min)).
1993-07-31 01:05:33 +00:00
Richard M. Stallman
af1b8606a7 (vc-backend-steal): Pass arg omitted in last change. 1993-07-25 22:36:03 +00:00
Paul Eggert
d76b8d38bc > (vc-backend-revert): Use `co -f' instead of deleting the
working file ourselves; that way, if `co' fails, we won't have
deleted the working file.
(vc-backend-steal):  Don't delete the working file.  Use `rcs -u -l',
not `rcs -u ; rcs -l'; it's faster.  Use vc-backend-dispatch -- the
old code couldn't have possibly worked.
1993-07-22 10:57:46 +00:00
Roland McGrath
43cea1ab61 (vc-comment-to-change-log): Copy interactive spec from
add-change-log-entry-other-window.  Call add-change-log-entry instead of
add-change-log-entry-other-window; pass it t for OTHER-WINDOW and NEW-ENTRY
args.  Go to bol before filling.
1993-07-19 01:01:17 +00:00
Roland McGrath
c124b1b47a (vc-comment-to-change-log): Canonicalize following whitespace after
filling, not before.  Set END to point at end of indentation.
Skip whitespace chars up to END before skipping back to delete.
1993-07-19 00:06:14 +00:00
Roland McGrath
3b4dd9a931 (vc-comment-to-change-log): Complete rewrite. Do not use
vc-update-change-log.  Instead, snarf last comment from vc-comment-ring and
insert it with add-change-log-entry-other-window.
1993-07-18 23:54:45 +00:00
Jim Blandy
cf50f71757 * vc.el (vc-start-entry): Don't call file-name-nondirectory on
FILE before passing it to vc-mode-line.  Everyplace else passes
	vc-mode-line full filenames, and vc-mode-line now needs the real
	file name to decide which version-control system the file is under.
1993-07-06 06:18:50 +00:00
Paul Eggert
2bd5041b8e (vc-name): Move to vc-hooks.el. 1993-07-05 03:20:12 +00:00
Paul Eggert
d64ca902f7 (vc-backend-diff): Undo "-q" change. This was fixed instead by adding
-q support to vcdiff.
1993-07-04 18:54:59 +00:00
Richard M. Stallman
282aa6a2d2 (vc-path): New variable.
(vc-do-command): Use vc-path.
1993-07-02 21:46:42 +00:00
Jim Blandy
21526a531d * vc.el (vc-backend-diff): Pass the "-q" flag only if we're using
rcsdiff.
1993-07-02 20:07:55 +00:00
Paul Eggert
4b40fdea8f (vc-update-change-log): Ensure that file names inserted into a ChangeLog
are relative to that ChangeLog.
1993-06-30 21:35:59 +00:00
Richard M. Stallman
41dfb835db (vc-update-change-log): Restore previous default-directory
for running rcs2log.
1993-06-28 00:56:54 +00:00
Richard M. Stallman
b246f57185 (vc-diff): If `diff' gives empty output, return nil. 1993-06-25 21:30:54 +00:00
Richard M. Stallman
590cc44988 (vc-rename-file): Remove periods from error messages.
(vc-backend-logentry-check, vc-revert-buffer): Likewise.
(vc-retrieve-snapshot, vc-create-snapshot): Likewise.
(vc-diff, vc-finish-logentry, vc-steal-lock): Likewise.
(vc-register, vc-next-action-on-file, vc-registration-error): Likewise.
(vc-cancel-version): Add space to end of question.
1993-06-17 05:08:23 +00:00
Richard M. Stallman
c4f4f2d12f (vc-backend-diff): Always use -q option. 1993-06-12 02:18:02 +00:00
Richard M. Stallman
4c33756c1b (vc-finish-logentry): Use delete-windows-on. 1993-05-29 03:47:48 +00:00
Richard M. Stallman
820bde8d49 (vc-steal-lock, vc-insert-headers): Fix question whitespace. 1993-05-29 03:10:35 +00:00
Roland McGrath
69268c787f (vc-comment-to-change-log): Don't take FILE argument, since
vc-update-change-log doesn't support it anyway.
Don't bind default-directory.  Instead pass second arg to file-relative-name.
(vc-update-change-log): Use find-change-log instead of hardcoding.
1993-05-22 22:33:19 +00:00
Richard M. Stallman
fb8b7b6bba Don't require sendmail, compile, or dired. 1993-05-16 18:57:37 +00:00
Jim Blandy
24f1977f70 * vc.el (vc-version-diff): Match parens. 1993-05-14 15:21:50 +00:00
Richard M. Stallman
6fb6ab11e1 (vc-revert-buffer1): Don't assume that compilation-error-list
is a list; it might be t.
1993-05-14 03:57:45 +00:00
Richard M. Stallman
36bed8bc8c (vc-version-diff): Don't move point in current buffer. 1993-05-13 12:05:52 +00:00
Richard M. Stallman
4f6e4ad6cd (Setting minor-mode-map-alist):
Put the map directly in the alist, not a variable name.
1993-05-13 03:14:07 +00:00
Richard M. Stallman
34291cd2f7 Improve doc strings and prompt strings.
(vc-cancel-version): Ask whether to revert buffer.
1993-05-12 21:30:35 +00:00
Richard M. Stallman
7ef84cf98f (vc-diff): Report an error if the buffer isn't registered.
(vc-registration-error): New function.
(vc-next-action, vc-diff, vc-print-log, vc-backend-diff): Use it to
make VC's error messages more uniform.

(vc-directory, vc-revert-buffer1): Quote lambdas with (function ...)
for Emacs 18.
(compilation-old-error-list): Set if undefined, for Emacs 18.
1993-05-11 21:15:54 +00:00
Richard M. Stallman
4c2c1de1fd (vc-backend-diff): Handle either string or list. 1993-05-09 14:29:33 +00:00
Richard M. Stallman
2e810285eb (diff-switches): Define var here as well as in diff.el. 1993-05-09 14:27:02 +00:00
Richard M. Stallman
0ee7d6239a (vc-directory-18): cd to the directory in question before the file tree walk. 1993-05-08 16:17:01 +00:00
Richard M. Stallman
6ed5075cab (vc-directory-18): New function.
If Emacs 18, make vc-directory alias to this.
1993-05-08 16:14:11 +00:00
Richard M. Stallman
e8ee1ccf68 (vc-backend-diff): Use diff-switches, not vc-diff-options.
(vc-diff-options): Variable deleted.
1993-05-04 19:52:02 +00:00
Richard M. Stallman
cdd8203f4e Doc fix. 1993-05-04 19:33:17 +00:00
Richard M. Stallman
1434b7aabc (minor-mode-map-alist): Don't use it if it's void. 1993-05-04 16:42:57 +00:00
Richard M. Stallman
ee7e9c886a (vc-dired-prefix-map): New keymap.
Use it in minor-mode-map-alist for vc-dired-mode.
1993-05-04 16:40:24 +00:00
Richard M. Stallman
a1bda481b9 (vc-revert-buffer1): Fix format of compilation-error-list. 1993-05-01 03:09:16 +00:00
Richard M. Stallman
caf15d4f18 (vc-match-substring): Renamed from match-substring.
(vc-parse-buffer): Use new name.
1993-04-29 17:58:37 +00:00
Roland McGrath
e9c8e24886 (vc-revert-buffer1): Ignore non-marker elts of compilation-error-list. 1993-04-28 22:48:52 +00:00
Eric S. Raymond
8c0aaf4075 (vc-diff): Get proper error message when you run this with no prefix
arg on an empty buffer.

(vc-directory): Better directory format --- replace the user and group IDs
with locking-user (if any).

(vc-finish-logentry, vc-next-comment, vc-previous-comment):  Replace
*VC-comment-buffer* with a ring vector.
1993-04-25 22:26:40 +00:00
Roland McGrath
27f2f10b21 (vc-revert-buffer1): Typo fix in last change. 1993-04-19 21:29:48 +00:00
Roland McGrath
f495d400ea (vc-comment-to-change-log): Restored interactive spec. Why was it
removed?  Why does the only log entry mentioning this function contain
no actual information?
1993-04-19 21:19:10 +00:00
Roland McGrath
ab8775832a (vc-revert-buffer1): Completely rewrote compilation reparsing code. 1993-04-19 21:13:47 +00:00
Eric S. Raymond
124250cf9a (vc-comment-to-change-log): Merged in the remainder of jimb's last
change.
1993-04-08 16:51:04 +00:00
Eric S. Raymond
e1f297e66c (vc-directory. vc-start-entry, vc-next-action, vc-next-action-on-file):
The vc-directory listing is now in an augmented Dired mode that supports
vc-next-action on all marked files.
1993-04-08 16:35:52 +00:00
Roland McGrath
594be62efd (vc-comment-to-change-log): Renamed from vc-comment-to-changelog.
Take optional arg and pass it to find-change-log.
Added docstring and interactive spec.
1993-04-05 23:52:16 +00:00
Eric S. Raymond
8ac8c82f02 (vc-next-action, vc-peint-log, vc-diff, vc-revert-buffer) improved
logic for parent buffer finding.
1993-03-29 15:38:31 +00:00
Eric S. Raymond
1a2f456b73 (vc-comment-to-changelog): A useful vc-checkin hook, added.
(vc-checkout): Now rejects attempts to check out files via FTP.

The `derived buffers' in the mode (the VC log buffer, status buffers,
and most buffer output commands) now know which file buffer was their
parent, and most commands will try to find such a parent buffer when
executed from within a special buffer.
1993-03-28 06:40:46 +00:00
Eric S. Raymond
7b4f934d8f (vc-header-strings) Name changed to vc-header-alist, to match the
docs.

(vc-finish-logentry, vc-next-comment, vc-previous-comment,
vc-comment-search-forward, vc-comment-search-backward) The VC comment
ring is now a separate buffer from *VC-log*; editing of old comments
is no longer destructive.
1993-03-17 13:58:48 +00:00