[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: old junk accruing in ~/.w3m
- From: jidanni@xxxxxxxxxxx
- Date: Fri, 17 Jul 2009 06:17:58 +0800
- X-ml-name: emacs-w3m
- X-mail-count: 10955
- References: <878wiqm72d.fsf@xxxxxxxxxxxxxxxx>
>>>>> "NA" == Naohiro Aota <naota@xxxxxxxxx> writes:
NA> (add-hook 'w3m-arrived-shutdown-functions
NA> (lambda ()
NA> (shell-command "rm ~/.w3m/w3mel* ~/.w3m/w3msrc*")))
But the second time around one gets
rm: cannot remove `/home/jidanni/.w3m/w3mel*': No such file or directory
In fact it will appear only to the very sharp eye as emacs shuts down
for a split second. (or use emacs -nw inside script(1) to copy
evidence).
So there needs to be a more complicated "find ~/.w3m -name ... -exec
..." but... doesn't it seem w3m-emacs should be "toilet trained" so it
cleans up for itself, with maybe just one variable to control how often
or old... without the user resorting to <shudder> shell-command?