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

[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




reply via email to

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