[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: |
Sat, 24 Aug 2019 19:37:11 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
* Eli Zaretskii <eliz@gnu.org> [2019-08-24 19:24]:
> > Date: Sat, 24 Aug 2019 19:17:11 +0200
> > From: Jean Louis <bugs@gnu.support>
> > Cc: help-gnu-emacs@gnu.org
> >
> > > > > ยง emacsclient "file"
> > > > >
> > > > > it works here inside of M-x shell where it says "Waiting for
> > > > > Emacs..."
> > > > >
> > > > > So I can launch emacsclient from shell within Emacs with waiting
> > > > > stage.
> > > >
> > > > Yes, but this won't get you anywhere past the waiting stage, because
> > > > there's no Emacs server that can serve the emacsclient's request.
> > >
> > > Actually, you know what: it will work. So if you insist on doing it
> > > via emacsclient, go ahead and do it via the shell buffer.
> >
> > I have strong feeling that it can work. Please give me better
> > specification. Which function you propose?
>
> I don't understand the question. I thought you have already figured
> everything out for doing this via emacsclient. Otherwise, why did you
> keep asking about emacsclient all the time?
I have three possible directions to solve that:
- use recursive-edit, if it would not interrupt while calling
emacsclient in the same time, is that a bug?
- use simple editing of buffer with kill-buffer-hook, if I can come
back to initial program execution, as program execution must be wait
for editing to finish, I do not know how
- use emacsclient from external program somehow, provided that I can
wait for it to finish
Jean
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, (continued)
- 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/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/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/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Eli Zaretskii, 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/24
- 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/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/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?, Jean Louis, 2019/08/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Eli Zaretskii, 2019/08/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Yuri Khan, 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?, Jean Louis, 2019/08/24
- Re: How to reliably edit a file from within Emacs Lisp and return a string?, Marcin Borkowski, 2019/08/23