help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to force auto-save of buffers not visiting files, right now?


From: Emanuel Berg
Subject: Re: how to force auto-save of buffers not visiting files, right now?
Date: Sun, 20 Mar 2022 07:26:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

hw wrote:

>>>> Why not just use normal backup files?
>>> 
>>> Because I would need to delete them eventually, and IIRC,
>>> tramp doesn't necessarily delete them.
>> 
>> 1) No :)
>> 
>> 2) And this command is better:
>> 
>>   du -hc ~/**/*~ | tail -1 | cut -f 1
>
> Better how for what?

The previous greped for total, but that can appear in
filenames, so this use of tail(1) is _much_ better
actually :)

> I took so long to run that I interrupted it before it
> produced any output, after like 20 seconds.

?

But what did you run it on, not your Game Boy right?

Here it runs on 0.13s (0.57s) on zsh (time) and on

  (+ 0.008 0.006 0.003) ; 0.17s

in bash (again 'time', but not the same).


    Timeline? This is no time to talk about time. We don't
    have the time! ...
    
                 -- Cmdr Deanna Troi (First Contact, 1994)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]