diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-18 14:47:23 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-21 12:31:05 -0700 |
commit | 101f3cf5b9b5600147d4406c3be8daf174e1a543 (patch) | |
tree | 2b1c2c04359ada4948958695236a129bddb0fcfb /test/lisp/emacs-lisp/bytecomp-resources/warn-variable-setq-nonvariable.el | |
parent | 447ff572be1019249afb2c67411d4a5bdb0a4407 (diff) | |
download | emacs-101f3cf5b9b5600147d4406c3be8daf174e1a543.tar.gz emacs-101f3cf5b9b5600147d4406c3be8daf174e1a543.tar.bz2 emacs-101f3cf5b9b5600147d4406c3be8daf174e1a543.zip |
Add support for user edits to VC command arguments
* lisp/vc/vc-dispatcher.el (vc-pre-command-functions): New hook.
(vc-want-edit-command-p): New variable.
(vc-do-command): If vc-want-edit-command-p is non-nil, prompt the user
to edit the VC command & arguments before execution. Run the new hook.
(vc-do-async-command): Use the new hook to insert into BUFFER the
command that's next to be run.
* lisp/vc/vc-git.el (vc-git--pushpull): Drop prompting code. Bind
vc-want-edit-command-p so that vc-do-command handles the prompting.
Use the new hook to update compile-command with the edited command.
* lisp/vc/vc.el (vc-print-branch-log): A non-nil prefix argument now
means vc-want-edit-command-p is bound to a non-nil value (bug#57807).
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-variable-setq-nonvariable.el')
0 files changed, 0 insertions, 0 deletions