[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A whole lotta auto-saving going
From: |
Eli Zaretskii |
Subject: |
Re: A whole lotta auto-saving going |
Date: |
Tue, 12 Jan 2021 16:58:21 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: larsi@gnus.org, aaronjensen@gmail.com, emacs-devel@gnu.org
> Date: Mon, 11 Jan 2021 13:00:33 -0500
>
> src/emacs -Q --eval '(start-process "toto" "*scratch*" "sh" "-c" "while
> sleep 1; do echo hi; done")' ~/tmp/foo.c
>
> This triggers the problem where auto-save is done pretty much after
> every keystroke (with ~1s delay). But if I change that to:
>
> src/emacs -Q --eval '(add-hook `post-command-hook (lambda ()
> (start-process "toto" "*scratch*" "sh" "-c" "sleep 1; echo hi")))' ~/tmp/foo.c
>
> then the problem doesn't seem to occur any more (or rather it still
> does, but more rarely, with a pattern I have trouble discerning).
> It does occur, OTOH with:
>
> src/emacs -Q --eval '(add-hook `post-command-hook (lambda ()
> (start-process "toto" "*scratch*" "sh" "-c" "sleep 1; echo hi; sleep 1")))'
> ~/tmp/foo.c
Not sure I understand: what exactly would call post-command-hook in
such a session? Or do you type something once Emacs starts?
- Re: A whole lotta auto-saving going, (continued)
- Re: A whole lotta auto-saving going, Lars Ingebrigtsen, 2021/01/10
- Re: A whole lotta auto-saving going, Aaron Jensen, 2021/01/10
- Re: A whole lotta auto-saving going, Lars Ingebrigtsen, 2021/01/10
- Re: A whole lotta auto-saving going, Eli Zaretskii, 2021/01/10
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/10
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/10
- Re: A whole lotta auto-saving going, Eli Zaretskii, 2021/01/11
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/11
- Re: A whole lotta auto-saving going, Eli Zaretskii, 2021/01/11
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/11
- Re: A whole lotta auto-saving going,
Eli Zaretskii <=
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/12
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/13
- Re: A whole lotta auto-saving going, Lars Ingebrigtsen, 2021/01/18
- Re: A whole lotta auto-saving going, Stefan Monnier, 2021/01/10
- Re: A whole lotta auto-saving going, T.V Raman, 2021/01/10
- Re: A whole lotta auto-saving going, Aaron Jensen, 2021/01/10
- Re: A whole lotta auto-saving going, T.V Raman, 2021/01/12
Re: A whole lotta auto-saving going, Eli Zaretskii, 2021/01/07