* bug#3209: 23.0.92; vc-delete-file is not autoloaded
@ 2009-05-04 19:53 Bob Rogers
2009-05-05 3:58 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Bob Rogers @ 2009-05-04 19:53 UTC (permalink / raw)
To: emacs-pretest-bug
If I do "emacs -Q vc-controlled-file", I then find that I can't do
"M-x vc-delete-file" immediately, because this command is undefined.
It's in vc.el, and the mode line shows that Emacs knows the file is
under version control, so I assume that vc.el must not be loaded as a
side-effect of finding a version-controlled file. So shouldn't
vc-delete-file be autoloaded in that case? (And possibly other commands
in vc.el?)
Note that this *is* a regression wrt 22.3.
-- Bob Rogers
http://www.rgrjr.com/
------------------------------------------------------------------------
In GNU Emacs 23.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
of 2009-04-24 on rgr
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Text
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f f o o <tab> <return> M-x v c - d e l e <tab>
C-g M-x r e p o r <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading vc-svn...done
Quit
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#3209: 23.0.92; vc-delete-file is not autoloaded
@ 2009-05-05 1:29 Chong Yidong
0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2009-05-05 1:29 UTC (permalink / raw)
To: emacs-devel; +Cc: 3209, Bob Rogers
> If I do "emacs -Q vc-controlled-file", I then find that I can't do
> "M-x vc-delete-file" immediately, because this command is undefined.
> It's in vc.el, and the mode line shows that Emacs knows the file is
> under version control, so I assume that vc.el must not be loaded as a
> side-effect of finding a version-controlled file. So shouldn't
> vc-delete-file be autoloaded in that case? (And possibly other
> commands in vc.el?)
>
> Note that this *is* a regression wrt 22.3.
I think vc-create-repo, vc-register-with, and vc-delete-file should be
autoloaded. Anyone on this list have any objection?
*** trunk/lisp/vc.el.~1.715.~ 2009-03-21 11:52:16.000000000 -0400
--- trunk/lisp/vc.el 2009-05-04 21:27:35.000000000 -0400
***************
*** 1182,1187 ****
--- 1182,1188 ----
(t
(error "Fileset is in an unknown state %s" state)))))
+ ;;;###autoload
(defun vc-create-repo (backend)
"Create an empty repository in the current directory."
(interactive
***************
*** 1258,1263 ****
--- 1259,1265 ----
)
(message "Registering %s... done" files))))))
+ ;;;###autoload
(defun vc-register-with (backend)
"Register the current file with a specified back end."
(interactive "SBackend: ")
***************
*** 2138,2143 ****
--- 2140,2146 ----
(throw 'found f)))
(error "New file lacks a version control directory")))))
+ ;;;###autoload
(defun vc-delete-file (file)
"Delete file and mark it as such in the version control system."
(interactive "fVC delete file: ")
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#3209: 23.0.92; vc-delete-file is not autoloaded
2009-05-04 19:53 Bob Rogers
@ 2009-05-05 3:58 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-05-05 3:58 UTC (permalink / raw)
To: Bob Rogers; +Cc: emacs-pretest-bug, 3209
> If I do "emacs -Q vc-controlled-file", I then find that I can't do
> "M-x vc-delete-file" immediately, because this command is undefined.
> It's in vc.el, and the mode line shows that Emacs knows the file is
> under version control, so I assume that vc.el must not be loaded as a
> side-effect of finding a version-controlled file. So shouldn't
> vc-delete-file be autoloaded in that case? (And possibly other commands
> in vc.el?)
Yes, it should be autoloaded, indeed.
> Note that this *is* a regression wrt 22.3.
I don't think so.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-05 3:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05 1:29 bug#3209: 23.0.92; vc-delete-file is not autoloaded Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2009-05-04 19:53 Bob Rogers
2009-05-05 3:58 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).