* bug#308: vc-delete-file
@ 2008-05-23 15:06 Sam Steingold
0 siblings, 0 replies; 4+ messages in thread
From: Sam Steingold @ 2008-05-23 15:06 UTC (permalink / raw)
To: emacs-devel
GNU Emacs 23.0.60.7 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.20)
of 2008-05-22 on nyc-qws-005
'--with-x-toolkit=gtk' '--prefix=/mnt/office/dev/opt'
first, vc-delete-file is available neither in any menu nor on any key.
despite your claim to the contrary, this is a common command, used at
least weakly in an active development environment.
second, when I invoke it with M-x, it requires that the file being
removed is still present on disk.
this requirement is absurd because when I decide to remove the file from
the VCS, it is already long gone because I have to remove it to test the
system without it (yes, it is NOT enough not to mention the file in
makefiles, because omake will use it if it finds it on disk, so you
want me to rename it for testing and then move it back so that vc can
remove it!)
third, when I do jump through the hoops, I get this error:
Debugger entered--Lisp error: (error "File myfilename no longer exists!")
signal(error ("File myfilename no longer exists!"))
error("File %s no longer exists!" "myfilename")
revert-buffer(t t t)
vc-revert-buffer-internal(t t)
vc-resynch-window("myfilename" #<buffer convert_config.mli> t)
vc-resynch-buffer("myfilename" #<buffer convert_config.mli> t)
vc-delete-file("myfilename")
call-interactively(vc-delete-file t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
i.e., you just deleted it yourself - and now you are complaining that
the file does not exist!
I would rather expect kill-buffer instead of revert-buffer.
--
Sam Steingold (http://sds.podval.org/) on Fedora Core release 5 (Bordeaux)
http://honestreporting.com http://openvotingconsortium.org http://camera.org
http://iris.org.il http://pmw.org.il http://dhimmi.com http://truepeace.org
Don't use force -- get a bigger hammer.
^ permalink raw reply [flat|nested] 4+ messages in thread
* vc-delete-file
@ 2008-05-23 15:06 Sam Steingold
2008-05-23 21:00 ` bug#308: vc-delete-file Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Sam Steingold @ 2008-05-23 15:06 UTC (permalink / raw)
To: emacs-devel
GNU Emacs 23.0.60.7 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.20)
of 2008-05-22 on nyc-qws-005
'--with-x-toolkit=gtk' '--prefix=/mnt/office/dev/opt'
first, vc-delete-file is available neither in any menu nor on any key.
despite your claim to the contrary, this is a common command, used at
least weakly in an active development environment.
second, when I invoke it with M-x, it requires that the file being
removed is still present on disk.
this requirement is absurd because when I decide to remove the file from
the VCS, it is already long gone because I have to remove it to test the
system without it (yes, it is NOT enough not to mention the file in
makefiles, because omake will use it if it finds it on disk, so you
want me to rename it for testing and then move it back so that vc can
remove it!)
third, when I do jump through the hoops, I get this error:
Debugger entered--Lisp error: (error "File myfilename no longer exists!")
signal(error ("File myfilename no longer exists!"))
error("File %s no longer exists!" "myfilename")
revert-buffer(t t t)
vc-revert-buffer-internal(t t)
vc-resynch-window("myfilename" #<buffer convert_config.mli> t)
vc-resynch-buffer("myfilename" #<buffer convert_config.mli> t)
vc-delete-file("myfilename")
call-interactively(vc-delete-file t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
i.e., you just deleted it yourself - and now you are complaining that
the file does not exist!
I would rather expect kill-buffer instead of revert-buffer.
--
Sam Steingold (http://sds.podval.org/) on Fedora Core release 5 (Bordeaux)
http://honestreporting.com http://openvotingconsortium.org http://camera.org
http://iris.org.il http://pmw.org.il http://dhimmi.com http://truepeace.org
Don't use force -- get a bigger hammer.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#308: vc-delete-file
2008-05-23 15:06 vc-delete-file Sam Steingold
@ 2008-05-23 21:00 ` Stefan Monnier
2008-05-23 21:38 ` Dan Nicolaescu
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-05-23 21:00 UTC (permalink / raw)
To: 308
> first, vc-delete-file is available neither in any menu nor on any key.
> despite your claim to the contrary, this is a common command, used at
> least weakly in an active development environment.
I'm not sure who is "you", but for what it's worth, I agree it should be
available via some key-binding. Even more so in vc-dir.
> second, when I invoke it with M-x, it requires that the file being
> removed is still present on disk.
That's a bug, indeed. But I don't see any place in the code where
that's done on purpose. Could you provide a recipe to reproduce the
problem? It might depend on the backend.
> this requirement is absurd because when I decide to remove the file from
> the VCS, it is already long gone because I have to remove it to test the
> system without it
No need to argue that it's a bug, I agree.
[ For what it's worth, I'd recommend you vc-delete-file before doing
your tests, tho. After all, you can always undo it before committing
if it turns out it was a bad idea. ]
> Debugger entered--Lisp error: (error "File myfilename no longer exists!")
> signal(error ("File myfilename no longer exists!"))
> error("File %s no longer exists!" "myfilename")
> revert-buffer(t t t)
> vc-revert-buffer-internal(t t)
> vc-resynch-window("myfilename" #<buffer convert_config.mli> t)
> vc-resynch-buffer("myfilename" #<buffer convert_config.mli> t)
> vc-delete-file("myfilename")
> call-interactively(vc-delete-file t nil)
> execute-extended-command(nil)
> call-interactively(execute-extended-command nil nil)
> i.e., you just deleted it yourself - and now you are complaining that
> the file does not exist!
> I would rather expect kill-buffer instead of revert-buffer.
I've just changed the code to kill the buffer, indeed.
Thank you,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#308: vc-delete-file
2008-05-23 21:00 ` bug#308: vc-delete-file Stefan Monnier
@ 2008-05-23 21:38 ` Dan Nicolaescu
2008-05-24 2:23 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Dan Nicolaescu @ 2008-05-23 21:38 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 308
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> No need to argue that it's a bug, I agree.
> [ For what it's worth, I'd recommend you vc-delete-file before doing
> your tests, tho. After all, you can always undo it before committing
> if it turns out it was a bad idea. ]
>
> > Debugger entered--Lisp error: (error "File myfilename no longer exists!")
> > signal(error ("File myfilename no longer exists!"))
> > error("File %s no longer exists!" "myfilename")
> > revert-buffer(t t t)
> > vc-revert-buffer-internal(t t)
> > vc-resynch-window("myfilename" #<buffer convert_config.mli> t)
> > vc-resynch-buffer("myfilename" #<buffer convert_config.mli> t)
> > vc-delete-file("myfilename")
> > call-interactively(vc-delete-file t nil)
> > execute-extended-command(nil)
> > call-interactively(execute-extended-command nil nil)
>
> > i.e., you just deleted it yourself - and now you are complaining that
> > the file does not exist!
> > I would rather expect kill-buffer instead of revert-buffer.
>
> I've just changed the code to kill the buffer, indeed.
That's not quite right, the *vc-dir* buffers where this file might have
been displayed need to be updated. I checked in an alternative fix
that I've had in my tree and seems to DTRT.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-24 2:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 15:06 bug#308: vc-delete-file Sam Steingold
-- strict thread matches above, loose matches on Subject: below --
2008-05-23 15:06 vc-delete-file Sam Steingold
2008-05-23 21:00 ` bug#308: vc-delete-file Stefan Monnier
2008-05-23 21:38 ` Dan Nicolaescu
2008-05-24 2:23 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.