From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to reliably edit a file from within Emacs Lisp and return a string? Date: Sat, 24 Aug 2019 20:02:09 +0300 Message-ID: <83a7byijji.fsf@gnu.org> References: <83lfvkj6wd.fsf@gnu.org> <20190824121924.GQ5516@protected.rcdrun.com> <83r25aiw4f.fsf@gnu.org> <20190824124120.GT5516@protected.rcdrun.com> <83mufyitye.fsf@gnu.org> <20190824141421.GB11116@protected.rcdrun.com> <20190824145512.GA11684@protected.rcdrun.com> <83h866iopc.fsf@gnu.org> <20190824155103.GB11684@protected.rcdrun.com> <83ef1ailw5.fsf@gnu.org> <20190824164439.GC11684@protected.rcdrun.com> <83blweijtt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50314"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 24 19:02:37 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1ZQy-000CxY-1K for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 19:02:36 +0200 Original-Received: from localhost ([::1]:38694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1ZQw-0001FL-6q for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 13:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39913) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1ZQa-0001Ey-Ft for help-gnu-emacs@gnu.org; Sat, 24 Aug 2019 13:02:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1ZQa-0003Gx-Cy for help-gnu-emacs@gnu.org; Sat, 24 Aug 2019 13:02:12 -0400 Original-Received: from [176.228.60.248] (port=1049 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1ZQZ-00017I-D9 for help-gnu-emacs@gnu.org; Sat, 24 Aug 2019 13:02:12 -0400 In-reply-to: <83blweijtt.fsf@gnu.org> (message from Eli Zaretskii on Sat, 24 Aug 2019 19:55:58 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121372 Archived-At: > Date: Sat, 24 Aug 2019 19:55:58 +0300 > From: Eli Zaretskii > > > M-x shell > > > > ยง 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.