From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Cambell Barton Newsgroups: gmane.emacs.bugs Subject: bug#37257: failure of emacsclient ... --alternate-editor="emacs --eval" Date: Sun, 15 Sep 2019 06:45:46 +1000 Message-ID: References: <42d7bbd5-cde9-e4ca-07f2-486eaff18dbc@cs.ucla.edu> <87impv845y.fsf@gnus.org> <7de06494-7d7f-26b4-f7e7-b061d80241e5@cs.ucla.edu> <87ftky62hy.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------59708D50CC0E6F1F631A0562" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238149"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 Cc: 37257@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 14 22:46:18 2019 Return-path: Envelope-to: geb-bug-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 1i9Evx-000zsM-Ff for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Sep 2019 22:46:17 +0200 Original-Received: from localhost ([::1]:52290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9Evw-0003Wr-AQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Sep 2019 16:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40568) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9Evl-0003WW-VF for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 16:46:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9Evk-0005JW-CD for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 16:46:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9Evj-0005J0-UZ for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 16:46:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i9Evi-0002ux-DP for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2019 16:46:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cambell Barton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2019 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37257 X-GNU-PR-Package: emacs Original-Received: via spool by 37257-submit@debbugs.gnu.org id=B37257.156849395911202 (code B ref 37257); Sat, 14 Sep 2019 20:46:02 +0000 Original-Received: (at 37257) by debbugs.gnu.org; 14 Sep 2019 20:45:59 +0000 Original-Received: from localhost ([127.0.0.1]:47192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9Evf-0002uc-6M for submit@debbugs.gnu.org; Sat, 14 Sep 2019 16:45:59 -0400 Original-Received: from mail-pg1-f193.google.com ([209.85.215.193]:43621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9Evc-0002uG-U3 for 37257@debbugs.gnu.org; Sat, 14 Sep 2019 16:45:57 -0400 Original-Received: by mail-pg1-f193.google.com with SMTP id u72so17066744pgb.10 for <37257@debbugs.gnu.org>; Sat, 14 Sep 2019 13:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:cc:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=Vk+BTFOBaPsGi7gWdfgsuEV2o3du8VZ+lgfjZIFkX0Q=; b=SpDWyyfoUX7eJZB9c3YDSDkXrCAVayP1yPul1g2/j8kQPOh0ElWY2rzEWYidcJ0pzd /DG4UQrZW/TZdK4Ye2Ak4oepr2tQO1AAM01rvzzPNTft//QnVqoCK+sOKjuUqz/jj0ZM XOJu/3jt5sc+0LVNJLjIH+gRMRD0Vl7MCygZf3p/9buqT73xqsrPH5stgpL0tYGGI4Tn I6+KRfzGZnVorQGxVJk6M65DTwma5l0+V8xJmph8hf5lbQoT7nyJnH9NC7JCEk+ausTf uUApyuPph/orumY2OfEKF7FE3hDi8IdDZSz70Bpez9J079wP8Zu12l3xSzGJymycTZU2 eIqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Vk+BTFOBaPsGi7gWdfgsuEV2o3du8VZ+lgfjZIFkX0Q=; b=sxeOBwLzYvNECIDjjjiZy2ZgSg9HvWBpYbWnUL9cMGsv6ovL7gx0/vv6FfucEw6xjY BKkDRCoefyYpdP0ut0e7j0BlijGqsSyee+FrO1oTjPQEenBXGHbo4Cs6fBGTwiJDZYJE Q3wkQ2PZJGLoGJmC3Wb+0aWPoZ75X6mDG5rHYQHIfCbJjnaKstjx2+RTv3sadhWrI0l/ HZRS1BIQkqKD0tT51dpUNUVLrLl1N/kj2eIpkRkLm29nOWp3JwTgRzQIXQA+HBr7xw+V FBsVyo4tHMzDpOmkuabtdUYnBSsMSCQvxEJAUTmK8q6OPC0/wylrCJWaB4mxeIkKLZoS f/MQ== X-Gm-Message-State: APjAAAXcTacqcpv5A6C3E66T2JN8n5z8l48pbKyURD9zxDXjGjycfEPw 71LsY3Q8UMSTxeVoXA43+gUVrtWOE/k= X-Google-Smtp-Source: APXvYqxJzKnfyE3DiP9Cnj3h9zQQo0T+ahl7LZ2KDnXhNKv9fj5G2q/Gfpwtks9ecj/MmObLj8xymg== X-Received: by 2002:a65:4002:: with SMTP id f2mr3866259pgp.447.1568493950745; Sat, 14 Sep 2019 13:45:50 -0700 (PDT) Original-Received: from [10.1.1.180] (ppp118-209-104-247.bras1.mel11.internode.on.net. [118.209.104.247]) by smtp.gmail.com with ESMTPSA id ep17sm2009063pjb.26.2019.09.14.13.45.48 for <37257@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Sep 2019 13:45:49 -0700 (PDT) In-Reply-To: <87ftky62hy.fsf@gnus.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166474 Archived-At: This is a multi-part message in MIME format. --------------59708D50CC0E6F1F631A0562 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2019-09-15 06:34, Lars Ingebrigtsen wrote: > , I guess we should just revert the patch -- I don't see any obvious > way to determine whether --alternate-editor is Emacs (which will then > understand the rest of the parameters) or something else (which will > then not). So leaving it the way it was is best. I'm not sure what the best solution is here, it's just I had something that worked and now I can't get emacs27 to work usefully in the same way. It should be possible to run the code in the client or a new instance, but I didn't manage to get this working. CODE='(progn (message "HELLO WOLD"))' emacsclient --eval "$CODE" --alternate-editor "emacs --eval '$CODE'" Instead of starting a new emacs and printing HELLO WOLD, it reports: emacsclient: error executing alternate editor "emacs --eval '(progn (message "HELLO WORLD"))'" --------------59708D50CC0E6F1F631A0562 Content-Type: application/x-shellscript; name="emacsclient_or_emacs_with_file.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="emacsclient_or_emacs_with_file.sh" IyEvYmluL2Jhc2gKCkZJTEU9JHsxOi11bnRpdGxlZC50eHR9CkxJTkU9JHsyOi0xfQpDT0w9 JHszOi0wfQoKQ09ERT0iXAoocHJvZ24gXAogIChmaW5kLWZpbGUgXCIkRklMRVwiKSBcCiAg KGdvdG8tbGluZSAkTElORSkgXAogIChiYWNrLXRvLWluZGVudGF0aW9uKSBcCiAgKGZvcndh cmQtY2hhciAkQ09MKSBcCiAgKHJlY2VudGVyKSBcCiAgXCJcIikgXAopIgoKZWNobyAiJEZJ TEUiCmVtYWNzY2xpZW50IC0tZXZhbCAiJENPREUiIC0tYWx0ZXJuYXRlLWVkaXRvciAgImVt YWNzIC0tZXZhbCAnJENPREUnIgo= --------------59708D50CC0E6F1F631A0562--