* can't delete nnml groups
@ 2004-12-16 6:55 Katsumi Yamaoka
2004-12-16 11:39 ` Katsumi Yamaoka
0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2004-12-16 6:55 UTC (permalink / raw)
Hi,
I noticed I cannot delete nnml groups if there are persistent
articles.
Debugger entered--Lisp error: (file-error "Removing old name:
is a directory" "/home/yamaoka/News/cache/nnml:foo.bar.baz")
delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
gnus-delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
gnus-cache-delete-group("nnml:foo.bar.baz")
gnus-request-delete-group("nnml:foo.bar.baz" (4))
gnus-group-delete-group("nnml:foo.bar.baz" (4))
call-interactively(gnus-group-delete-group)
There seems to be the same problem in `gnus-agent-delete-group'.
Although making articles persistent in nnml groups might be
nonsense, it will be useful for back ends which don't make local
article files.
Emacs 21 provides the `dired-delete-file' function which deletes
a file and also a directory recursively. Can't we use the copy
of it as `gnus-delete-file'?
Regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't delete nnml groups
2004-12-16 6:55 can't delete nnml groups Katsumi Yamaoka
@ 2004-12-16 11:39 ` Katsumi Yamaoka
2004-12-17 10:28 ` Katsumi Yamaoka
0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2004-12-16 11:39 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 987 bytes --]
>>>>> In <b9y6532g2am.fsf@jpl.org> Katsumi Yamaoka wrote:
> I noticed I cannot delete nnml groups if there are persistent
> articles.
> Debugger entered--Lisp error: (file-error "Removing old name:
> is a directory" "/home/yamaoka/News/cache/nnml:foo.bar.baz")
> delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
> gnus-delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
> gnus-cache-delete-group("nnml:foo.bar.baz")
> gnus-request-delete-group("nnml:foo.bar.baz" (4))
> gnus-group-delete-group("nnml:foo.bar.baz" (4))
> call-interactively(gnus-group-delete-group)
> There seems to be the same problem in `gnus-agent-delete-group'.
> Although making articles persistent in nnml groups might be
> nonsense, it will be useful for back ends which don't make local
> article files.
> Emacs 21 provides the `dired-delete-file' function which deletes
> a file and also a directory recursively. Can't we use the copy
> of it as `gnus-delete-file'?
Here it is:
[-- Attachment #2: Type: application/emacs-lisp, Size: 569 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't delete nnml groups
2004-12-16 11:39 ` Katsumi Yamaoka
@ 2004-12-17 10:28 ` Katsumi Yamaoka
0 siblings, 0 replies; 3+ messages in thread
From: Katsumi Yamaoka @ 2004-12-17 10:28 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
>>>>> In <b9y6532g2am.fsf@jpl.org> Katsumi Yamaoka wrote:
> I noticed I cannot delete nnml groups if there are persistent
> articles.
> Debugger entered--Lisp error: (file-error "Removing old name:
> is a directory" "/home/yamaoka/News/cache/nnml:foo.bar.baz")
> delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
> gnus-delete-file("/home/yamaoka/News/cache/nnml:foo.bar.baz")
> gnus-cache-delete-group("nnml:foo.bar.baz")
> gnus-request-delete-group("nnml:foo.bar.baz" (4))
> gnus-group-delete-group("nnml:foo.bar.baz" (4))
> call-interactively(gnus-group-delete-group)
[...]
> Emacs 21 provides the `dired-delete-file' function which deletes
> a file and also a directory recursively. Can't we use the copy
> of it as `gnus-delete-file'?
Oops, that's dangerous! It may delete articles in lower
hierarchical groups. Instead, I made a new function as shown
below and committed it.
[-- Attachment #2: Type: application/emacs-lisp, Size: 541 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-17 10:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 6:55 can't delete nnml groups Katsumi Yamaoka
2004-12-16 11:39 ` Katsumi Yamaoka
2004-12-17 10:28 ` Katsumi Yamaoka
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 NNTP newsgroup(s).