[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: old junk accruing in ~/.w3m



>>>>> "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?