[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to reliably edit a file from within Emacs Lisp and return a stri
From: |
Jean Louis |
Subject: |
Re: How to reliably edit a file from within Emacs Lisp and return a string? |
Date: |
Fri, 23 Aug 2019 00:46:04 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
* Noam Postavsky <npostavs@gmail.com> [2019-08-23 00:03]:
> On Thu, 22 Aug 2019 at 17:31, Jean Louis <bugs@gnu.support> wrote:
> > killing the buffer is also not
> > conclusive for Emacs Lisp,
>
> Why do you say that?
I cannot conclusively know and I do not know how to know it, from
within Emacs Lisp, that a buffer has been killed. Function `find-file'
finishes as soon as file is opened, just as you said.
> > basically from within Emacs Lisp, how can I know that find-file
> > has finished its job, that buffer has been closed, so that I can
> > read the string?
>
> find-file finishes as soon as the buffer is opened. It sounds like
> you want to know when the user is finished with the file; the user
> has to tell you somehow (e.g., by killing the buffer).
Yes. I need to be able to run function that waits on the buffer to be
killed, so that I can read string from the file that related to the
buffer.
Do you know how to do it?
Jean
- How to reliably edit a file from within Emacs Lisp and return a string?, Jean Louis, 2019/08/22
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Noam Postavsky, 2019/08/22
- Re: How to reliably edit a file from within Emacs Lisp and return a string?,
Jean Louis <=
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Eli Zaretskii, 2019/08/23
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Jean Louis, 2019/08/23
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Robert Pluim, 2019/08/23
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Jean Louis, 2019/08/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Jean Louis, 2019/08/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Eli Zaretskii, 2019/08/23