X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Janek F <xerusx@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 15:45:02 +0000 Resent-Message-ID: <handler.59388.B.16688726613610 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 59388 <at> debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.16688726613610 (code B ref -1); Sat, 19 Nov 2022 15:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2022 15:44:21 +0000 Received: from localhost ([127.0.0.1]:40980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owQ0y-0000w7-AL for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 10:44:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:52466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <xerusx@HIDDEN>) id 1owMTd-000148-9B for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 06:57:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <xerusx@HIDDEN>) id 1owMTd-000125-28 for bug-gnu-emacs@HIDDEN; Sat, 19 Nov 2022 06:57:41 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <xerusx@HIDDEN>) id 1owMTb-0006XR-2g for bug-gnu-emacs@HIDDEN; Sat, 19 Nov 2022 06:57:40 -0500 Date: Sat, 19 Nov 2022 11:57:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1668859054; x=1669118254; bh=+lHjjToBStGpYmXefQn7IXNqG45/PZSqjNMpiC0rvgM=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=BuOGyB1E5trcnwQtZwHk+9zfSm9d2h8d16ToaE/pOhj1pvRHBjmz+CiFzBYLMJRX5 PbgKs45D2vBxjmIu+nDRe8W+LkAjX7WayWE2fWqzvaMY68Uf5Rt+326VE3MisuXt41 YaIxh4YlUd21KxANErltr/qrx0KUWLk3/Q5E9KlgbbYEAeNnn6qX9FauvsGlZqw1kh hzNqTVSQ3ACJTlPpS/TpL5FlDJlnMEE2/HOGlepjHoh/xFFvVoBoUQKs2JUy+AqIey pxULrDkDIp3JSoojHSeDpt3/jvli4wTF6asNN0JT3XDlUkBPztiaQs+19D78EcySdL pMeavW+2Er8rA== From: Janek F <xerusx@HIDDEN> Message-ID: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> Feedback-ID: 17130000:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.16; envelope-from=xerusx@HIDDEN; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 19 Nov 2022 10:44:14 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hello, I don't think there is any option right now to start emacsclient on the las= t line of the file, barring adding lots of 9's. For nvim and vi, one can simply omit the line number after the plus, I think this would also be a sensible choice for emacsclient: =E2=9D=AF emacsclient vlcrc + Waiting for Emacs... *ERROR*: Invalid -position command in client args =E2=9D=AF nvim vlcrc + =E2=9D=AF vi vlcrc + Best, Janek
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Janek F <xerusx@HIDDEN> Subject: bug#59388: Acknowledgement (Open emacsclient file at last line) Message-ID: <handler.59388.B.16688726613610.ack <at> debbugs.gnu.org> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> X-Gnu-PR-Message: ack 59388 X-Gnu-PR-Package: emacs Reply-To: 59388 <at> debbugs.gnu.org Date: Sat, 19 Nov 2022 15:45:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 59388 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 59388: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59388 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 15:49:02 +0000 Resent-Message-ID: <handler.59388.B59388.16688729074178 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Janek F <xerusx@HIDDEN> Cc: 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16688729074178 (code B ref 59388); Sat, 19 Nov 2022 15:49:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 15:48:27 +0000 Received: from localhost ([127.0.0.1]:40991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owQ4x-00015K-0e for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 10:48:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owQ4u-000154-2n for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 10:48:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owQ4o-0004xD-Pu; Sat, 19 Nov 2022 10:48:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xd4+b+1IhPVb2QzBkcbJSQVWldBgBTE14Zjzf31R6W0=; b=UjoT1fyCQ0XJ TmaATRsQitFE11gAjdZEb7PPUf5562tqvXpiVwi5f6oYq28I8dMfKjCOsnM+s6/8gexmWu+k1YIYE CRr7BU4lfOAds9diYA+fxoeYi8FN5zeIGsFtpgqe/8QIkc80RpCb/I+m0Oijz4o5Kb+cc0iWA/VGz j5D/uyUDgh98+9kE0J3plGDEN/Xr9dh/4cbgKVr4yuOIFzZM613AKy/S2kVABtph0uYp5rhUflRut zx/kHyajbbAszoRpbcyodZYdhIdfsTVWjbNCU0AD0OLlhIqDQwuJvzPVkAWNM9ANs2fMDHUi3BFut HYht9Di5LdVo2Z0G6mekxg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owQ4o-0004ty-8f; Sat, 19 Nov 2022 10:48:18 -0500 Date: Sat, 19 Nov 2022 17:48:25 +0200 Message-Id: <835yfb7xo6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> (bug-gnu-emacs@HIDDEN) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 11:57:25 +0000 > From: Janek F via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > Hello, > > I don't think there is any option right now to start emacsclient on the last line of the file, barring adding lots of 9's. What about the --eval command-line option of emacsclient?
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 17:11:02 +0000 Resent-Message-ID: <handler.59388.B59388.166887780711812 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: Janek F <xerusx@HIDDEN>, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166887780711812 (code B ref 59388); Sat, 19 Nov 2022 17:11:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 17:10:07 +0000 Received: from localhost ([127.0.0.1]:41033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owRLz-00034S-7C for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 12:10:07 -0500 Received: from heytings.org ([95.142.160.155]:50222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1owRLw-00034E-4K for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 12:10:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1668877802; bh=zZ6vsZAykzalmpipbC2A0aOdi+n/2HyvFRhW93FNwYo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=VQWcjkFJfyhQE+wkdL/BskTEgr1STFaXGNdde+gGLITWkG3qM02OTYOyXuMXDR90W uVLv/PbplfdhRcXtPqbd2nOGhlsTph7MVIxN37DVCYUrPFVXC2c2pIATJY4DZUiUKB imLC8T+UHPKwfVu6vf1FEXvAGplCaxnoLKlla4qtcYPfgIZFwZZV8EaBxqGvjrvMGz K/tyiOOCoHiCGQb85qOK/j+K8ooYYKDX6IKu1dTrVFNmG8HnTtYtA1lIV8uw+4KgkX bUimIl4sPrwxZMuHQo4notELV1g9u//0L/M247GR5T8febffOfK5JA+RCsngmZFf5k ZE9vcpe+6sklg== Date: Sat, 19 Nov 2022 17:10:02 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <835yfb7xo6.fsf@HIDDEN> Message-ID: <518ded72c33c3608e35a@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="4Lj79iQRXp" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --4Lj79iQRXp Content-Type: text/plain; charset=us-ascii; format=flowed >> I don't think there is any option right now to start emacsclient on the >> last line of the file, barring adding lots of 9's. > > What about the --eval command-line option of emacsclient? > It's not very convenient, you'd have to put the filename inside the expression. What do you think of the attached patch? --4Lj79iQRXp Content-Type: text/x-diff; name=Add-option-to-visit-the-end-of-a-file.patch Content-Transfer-Encoding: base64 Content-ID: <518ded72c3a16c5a7d2f@HIDDEN> Content-Disposition: attachment; filename=Add-option-to-visit-the-end-of-a-file.patch RnJvbSBjMjk5MmVkMmRhNWIwMjI1YmVjMjViZTgyZWY4NjhhZTgzNWNhYzg5 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBTYXQsIDE5IE5v diAyMDIyIDE3OjA4OjEwICswMDAwDQpTdWJqZWN0OiB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GFyIGM7DQorCSAgICAgIGlmICgqKHAgKyAx KSA9PSAnLScpIHArKzsNCiAJICAgICAgZG8NCiAJCWMgPSAqKytwOw0KIAkg ICAgICB3aGlsZSAoaXNkaWdpdCAoYykgfHwgYyA9PSAnOicpOw0KZGlmZiAt LWdpdCBhL2xpc3Avc2VydmVyLmVsIGIvbGlzcC9zZXJ2ZXIuZWwNCmluZGV4 IDU1Mzg5MGNlMjkuLjM3Y2NmN2I5ZjQgMTAwNjQ0DQotLS0gYS9saXNwL3Nl cnZlci5lbA0KKysrIGIvbGlzcC9zZXJ2ZXIuZWwNCkBAIC0xMjM3LDcgKzEy MzcsNyBAQCBzZXJ2ZXItcHJvY2Vzcy1maWx0ZXINCiAgICAgICAgICAgICAg ICAgOzsgLXBvc2l0aW9uICtMSU5FWzpDT0xVTU5dOiAgU2V0IHBvaW50IHRv IHRoZSBnaXZlbg0KICAgICAgICAgICAgICAgICA7OyAgcG9zaXRpb24gaW4g dGhlIG5leHQgZmlsZS4NCiAgICAgICAgICAgICAgICAgKCItcG9zaXRpb24i DQotICAgICAgICAgICAgICAgICAoaWYgKG5vdCAoc3RyaW5nLW1hdGNoICJc XCtcXChbMC05XStcXClcXCg/OjpcXChbMC05XStcXClcXCk/Ig0KKyAgICAg ICAgICAgICAgICAgKGlmIChub3QgKHN0cmluZy1tYXRjaCAiXFwrXFwoLT9b MC05XStcXClcXCg/OjpcXChbMC05XStcXClcXCk/Ig0KICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2FyIGFyZ3MtbGVmdCkp KQ0KICAgICAgICAgICAgICAgICAgICAgIChlcnJvciAiSW52YWxpZCAtcG9z aXRpb24gY29tbWFuZCBpbiBjbGllbnQgYXJncyIpKQ0KICAgICAgICAgICAg ICAgICAgKGxldCAoKGFyZyAocG9wIGFyZ3MtbGVmdCkpKQ0KQEAgLTE0Mzcs OCArMTQzNywxMyBAQCBzZXJ2ZXItZ290by1saW5lLWNvbHVtbg0KICAgI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0IGBsaW5lJyBhbmQgYGNvbHVtbicgdG8gMC4NCiAgICAgICAg ICAgICAgICAgICAgICAgKHVubGVzcyAoemVyb3AgbGluZSkNCi0gICAgICAg ICAgICAgICAgICAgICAgICAoZ290by1jaGFyIChwb2ludC1taW4pKQ0KLSAg ICAgICAgICAgICAgICAgICAgICAgIChmb3J3YXJkLWxpbmUgKDEtIGxpbmUp KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAoaWYgKD49IGxpbmUgMCkN CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHByb2duDQorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWlu KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yd2FyZC1s aW5lICgxLSBsaW5lKSkpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAo cHJvZ24NCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGdvdG8tY2hh ciAocG9pbnQtbWF4KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg KGZvcndhcmQtbGluZSBsaW5lKSkpKQ0KICAgICAgICAgICAgICAgICAgICAg ICAoc2V0cSBsaW5lIDApDQogICAgICAgICAgICAgICAgICAgICAgICh1bmxl c3MgKDwgY29sdW1uIDEpDQogICAgICAgICAgICAgICAgICAgICAgICAgKG1v dmUtdG8tY29sdW1uICgxLSBjb2x1bW4pKSkNCkBAIC0yNzE4LDEwICsyNzIz LDEwIEBAIGNvbW1hbmQtbGluZS0xDQogICAgICAgICAgICAgICAgICAgICAo KGVxdWFsIGFyZ2kgIi1uby1kZXNrdG9wIikNCiAgICAgICAgICAgICAgICAg ICAgICAobWVzc2FnZSAiXCItLW5vLWRlc2t0b3BcIiBpZ25vcmVkIGJlY2F1 c2UgdGhlIERlc2t0b3AgcGFja2FnZSBpcyBub3QgbG9hZGVkIikpDQogDQot ICAgICAgICAgICAgICAgICAgICAoKHN0cmluZy1tYXRjaCAiXlxcK1swLTld K1xcJyIgYXJnaSkNCi0gICAgICAgICAgICAgICAgICAgICAoc2V0cSBsaW5l IChzdHJpbmctdG8tbnVtYmVyIGFyZ2kpKSkNCisgICAgICAgICAgICAgICAg ICAgICgoc3RyaW5nLW1hdGNoICJeXFwrXFwoLT9bMC05XStcXClcXCciIGFy Z2kpDQorICAgICAgICAgICAgICAgICAgICAgKHNldHEgbGluZSAoc3RyaW5n LXRvLW51bWJlciAobWF0Y2gtc3RyaW5nIDEgYXJnaSkpKSkNCiANCi0gICAg ICAgICAgICAgICAgICAgICgoc3RyaW5nLW1hdGNoICJeXFwrXFwoWzAtOV0r XFwpOlxcKFswLTldK1xcKVxcJyIgYXJnaSkNCisgICAgICAgICAgICAgICAg ICAgICgoc3RyaW5nLW1hdGNoICJeXFwrXFwoLT9bMC05XStcXCk6XFwoWzAt OV0rXFwpXFwnIiBhcmdpKQ0KICAgICAgICAgICAgICAgICAgICAgIChzZXRx IGxpbmUgKHN0cmluZy10by1udW1iZXIgKG1hdGNoLXN0cmluZyAxIGFyZ2kp KQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbHVtbiAoc3RyaW5n LXRvLW51bWJlciAobWF0Y2gtc3RyaW5nIDIgYXJnaSkpKSkNCiANCmRpZmYg LS1naXQgYS9zcmMvZW1hY3MuYyBiL3NyYy9lbWFjcy5jDQppbmRleCA4NTEw MmFjZDI4Li44NjI2NGRmN2E5IDEwMDY0NA0KLS0tIGEvc3JjL2VtYWNzLmMN CisrKyBiL3NyYy9lbWFjcy5jDQpAQCAtMzA4LDggKzMwOCw4IEBAICNkZWZp bmUgTUFJTl9QUk9HUkFNDQogQWN0aW9uIG9wdGlvbnM6XG5cDQogXG5cDQog RklMRSAgICAgICAgICAgICAgICAgICAgdmlzaXQgRklMRVxuXA0KLStMSU5F ICAgICAgICAgICAgICAgICAgIGdvIHRvIGxpbmUgTElORSBpbiBuZXh0IEZJ TEVcblwNCi0rTElORTpDT0xVTU4gICAgICAgICAgICBnbyB0byBsaW5lIExJ TkUsIGNvbHVtbiBDT0xVTU4sIGluIG5leHQgRklMRVxuXA0KKytbLV1MSU5F ICAgICAgICAgICAgICAgIGdvIHRvIGxpbmUgTElORSBpbiBuZXh0IEZJTEVc blwNCisrWy1dTElORTpDT0xVTU4gICAgICAgICBnbyB0byBsaW5lIExJTkUs IGNvbHVtbiBDT0xVTU4sIGluIG5leHQgRklMRVxuXA0KIC0tZGlyZWN0b3J5 LCAtTCBESVIgICAgIHByZXBlbmQgRElSIHRvIGxvYWQtcGF0aCAod2l0aCA6 RElSLCBhcHBlbmQgRElSKVxuXA0KIC0tZXZhbCBFWFBSICAgICAgICAgICAg IGV2YWx1YXRlIEVtYWNzIExpc3AgZXhwcmVzc2lvbiBFWFBSXG5cDQogLS1l eGVjdXRlIEVYUFIgICAgICAgICAgZXZhbHVhdGUgRW1hY3MgTGlzcCBleHBy ZXNzaW9uIEVYUFJcblwNCi0tIA0KMi4zNS4xDQoNCg== --4Lj79iQRXp--
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 18:04:01 +0000 Resent-Message-ID: <handler.59388.B59388.166888100216789 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888100216789 (code B ref 59388); Sat, 19 Nov 2022 18:04:01 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 18:03:22 +0000 Received: from localhost ([127.0.0.1]:41063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owSBV-0004Mi-Uf for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:03:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owSBQ-0004MR-EW for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:03:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSBL-0006S7-0x; Sat, 19 Nov 2022 13:03:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YgjXftTsydnV+fLpnsblPqG8qaTYVXOmnc5yVgTwP5Q=; b=p6anrmjT9+aY T/WHJJnU7o4pqPUPb/sNgmKoezlagNLpgW9F3KkdIml1tpFJI6Cz+EGL37FLCbnheXtsFsmSB9TSZ 767pEwsaMUOGa+KyuJjfdqE/3qQpHalGSVNZjRoYSSVF954PZ5nx+2AEL35d5CigROBNySDCcUFgx +voS5Eox7mvjgPFRheDmfWKPQQX7KhnD4JfV5GK4vO5Xig8n3Zto3GJZUUSBMLq3hcgL5tXMHEw2h iydckht8jPzBsULWodjWRxOKX8LmJNW1ud9AizIvipf2r5Xz8mkcNfBdCbh8gVG9iBbVdVSG9uw6h dt9hRrgJfN4MVlS35XJz5A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSBK-0006CH-HC; Sat, 19 Nov 2022 13:03:10 -0500 Date: Sat, 19 Nov 2022 20:03:15 +0200 Message-Id: <83zgcm7rfg.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <518ded72c33c3608e35a@HIDDEN> (message from Gregory Heytings on Sat, 19 Nov 2022 17:10:02 +0000) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 17:10:02 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: Janek F <xerusx@HIDDEN>, 59388 <at> debbugs.gnu.org > > >> I don't think there is any option right now to start emacsclient on the > >> last line of the file, barring adding lots of 9's. > > > > What about the --eval command-line option of emacsclient? > > > > It's not very convenient, you'd have to put the filename inside the > expression. You are probably assuming something very specific about the expression after --eval. > What do you think of the attached patch? I see no important use cases for this generalization.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 18:08:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888123917130 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888123917130 (code B ref 59388); Sat, 19 Nov 2022 18:08:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 18:07:19 +0000 Received: from localhost ([127.0.0.1]:41067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owSFL-0004SE-JP for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:07:19 -0500 Received: from heytings.org ([95.142.160.155]:50284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1owSFJ-0004S5-KT for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:07:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1668881236; bh=EuIV/B6Rm3UU1XLKVztl3vMACLUCaRJLiJAruL4pnkg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=k422AjZbJIPfKSQ+uQpJ7ymrIYK4u5qV/h98sxzEviRjZfpgptJ85gnl5AdZBPMKr s6lfZ1W2Ip7aPR9yFdaT2IehS1Sy9vTZj8KM1eQlnBNpWzArXaQNkeA6NtkWxlQYg4 JjlyBsQQ+wrrBtbE+2kuBjEcO6uRTvUzf8AoxRsVBjCSUqYlTd6hA903osejnqjAye toGpTGSYy0FnNUKl/x6yKpjGuCyIOdsMT15qDKiP+IJCWEfsMqVdfKeIpXS9MJU+SQ EC0lkdMjf14WYCxtiIDWtLARDVpcTH4qrmxKo4WQ8jx2GJ2uckckpST96AlIVIJLq6 fjIIeMwlnhgKg== Date: Sat, 19 Nov 2022 18:07:15 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <83zgcm7rfg.fsf@HIDDEN> Message-ID: <518ded72c37782cf8af5@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> It's not very convenient, you'd have to put the filename inside the >> expression. > > You are probably assuming something very specific about the expression > after --eval. > Hmmm... I must be missing something. What do you mean? emacsclient --eval means "do not visit files but instead evaluate the arguments as Emacs Lisp expressions".
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 18:18:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888186318103 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888186318103 (code B ref 59388); Sat, 19 Nov 2022 18:18:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 18:17:43 +0000 Received: from localhost ([127.0.0.1]:41091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owSPP-0004hv-7D for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:17:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owSPN-0004hj-3m for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:17:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSPF-0003qN-Fx; Sat, 19 Nov 2022 13:17:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+xPndIQ56lFUgU9F1cy0iDD3gj9QrsnXJ1mSni5auhk=; b=OS+fng+z8H1J dKgjrZ7lcio4vhj0jUWWtwf7MxROEQp+wC/q8uzm61AyIQUYGThQax+5qfyLMGDhJ/WkRfk3tI3vM YRoCscSRLkjzLC4nMetBfms4n0Kbqx6IxQTR71GzAcawN5K+gDqfT6D78FK0+VFRYAWwIVk2lrSWG eG7Mdsc5cr9XFEG6v1yQkGy7cj9/bL+x/hqspURfXchh4CGntuRXH5b0x/32EhqWaxkfsTOrshCDf O/SobFTPp6cjWfEHcz46o2CCgsCmpyo5sgGkQgPILYr9w+m7lQTCWjIyoTc3HgbNKGMVP47xpY93z X3E2lSsyM5ztG02scKZBfw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSPE-0007sc-U0; Sat, 19 Nov 2022 13:17:33 -0500 Date: Sat, 19 Nov 2022 20:17:39 +0200 Message-Id: <83y1s67qrg.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <518ded72c37782cf8af5@HIDDEN> (message from Gregory Heytings on Sat, 19 Nov 2022 18:07:15 +0000) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 18:07:15 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > > > >> It's not very convenient, you'd have to put the filename inside the > >> expression. > > > > You are probably assuming something very specific about the expression > > after --eval. > > > > Hmmm... I must be missing something. What do you mean? emacsclient > --eval means "do not visit files but instead evaluate the arguments as > Emacs Lisp expressions". Maybe I didn't understand what you mean by "put the filename inside the expression".
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 18:22:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888209018499 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888209018499 (code B ref 59388); Sat, 19 Nov 2022 18:22:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 18:21:30 +0000 Received: from localhost ([127.0.0.1]:41105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owST4-0004oJ-94 for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:21:30 -0500 Received: from heytings.org ([95.142.160.155]:50310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1owST1-0004oA-OS for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:21:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1668882086; bh=6Pe/rsgqs+K1AZoy3yDjcIbL7ep8c9SgK4fnMkV+4CU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Ji3FX7vWM3DCvfnunNycAtnFo5i6DjGzct7VlO9jQYmlEchtYM7Te6lgHztE69Vsh /THeiinB0p8ku3NKvH2k7qE2NkCcLfiV/S1uAhnk8vnYrGvSDIxGh380hJ5R4Hbj5F 9v2bJkTNKF72tyX0L1zcElp83Jbw8HXjX49SB2kSRELSLHkRGuTPC8e9SNhZVM8GSJ 0OAutoHytvxXXocsqUTYzpaMvsDPwK5BYrrm4cIDiImGi15F0581cJ1eurRV+b3f8j Xek2tEuVQII4jvjXOkaPooiugmsiWOnfMcIzSrhzd0g0TMtla65yMq7+XBT9ocN/dE doDhIVMqsTotw== Date: Sat, 19 Nov 2022 18:21:26 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <83y1s67qrg.fsf@HIDDEN> Message-ID: <518ded72c3e3303c3aaf@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <83y1s67qrg.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> Hmmm... I must be missing something. What do you mean? emacsclient >> --eval means "do not visit files but instead evaluate the arguments as >> Emacs Lisp expressions". > > Maybe I didn't understand what you mean by "put the filename inside the > expression". > Well, to achieve what he wants Janek would have to do something like emacsclient --eval '(progn (find-file "FILE") (goto-char (point-max)))' And that also means that the default (waiting) mode of emacsclient is not available.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 18:33:01 +0000 Resent-Message-ID: <handler.59388.B59388.166888273519467 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888273519467 (code B ref 59388); Sat, 19 Nov 2022 18:33:01 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 18:32:15 +0000 Received: from localhost ([127.0.0.1]:41111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owSdT-00053v-C4 for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:32:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owSdR-00053i-S4 for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 13:32:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSdM-0006Fk-Da; Sat, 19 Nov 2022 13:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ra2YTYmMbsylRSKhiDIpk72Ouc86dgjJWfDeriTdplI=; b=E5L3/Sg6iyd2 ZC86P2MNn1JIcFgRZDaAuHLNfH7PZDt1+vS4cFgGFJn5uiLBIaLJVkHFWcEPBRQa2EoGfMDJGCIrI E2HfLD91p/Y5ZrVyFjaaKoD2EPsQ9rs/3LscC55dQdc3X148nM9JnhOa6iZysWrWIHMbUAhsA7yMa tlxW1BUPRnAmOre9U+CZhTGrDLNU1ykKkPRVN+rpKq5UPeWqUCJXVuyEczJuc9XGNIKwnPSEMSq5K 8b1V4tJjugK9QUPG+OLVo/JfdpVKhckk9Knr5U6nrtH65oyu0c4C04suNTs37DitSOSj0V2PBDcqh b3BkKNJVATxq9o1DdRVTjA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owSdL-0005Ls-Ss; Sat, 19 Nov 2022 13:32:08 -0500 Date: Sat, 19 Nov 2022 20:32:14 +0200 Message-Id: <83wn7q7q35.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <518ded72c3e3303c3aaf@HIDDEN> (message from Gregory Heytings on Sat, 19 Nov 2022 18:21:26 +0000) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <83y1s67qrg.fsf@HIDDEN> <518ded72c3e3303c3aaf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 18:21:26 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > > Well, to achieve what he wants Janek would have to do something like > > emacsclient --eval '(progn (find-file "FILE") (goto-char (point-max)))' > > And that also means that the default (waiting) mode of emacsclient is not > available. And that is a problem? This use case is explicitly for human use (in contrast to the +LINE:COLUMN FILE case which is for programs that call $EDITOR). And it is a rare use case on top of that. So why typing a few words is a problem, and why does it justify yet another tweak of the UI? But if we do want to make this easier, I'd go with a new command-line switch, say, "--eob". The Vim way is cryptic and error-prone, so I don't think we should do the same. And I don't see at all why would someone needs to say "N lines from EOF".
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 19:07:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888476323255 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888476323255 (code B ref 59388); Sat, 19 Nov 2022 19:07:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 19:06:03 +0000 Received: from localhost ([127.0.0.1]:41295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owTAB-000631-7Y for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 14:06:03 -0500 Received: from heytings.org ([95.142.160.155]:50368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1owTA6-00062W-Ps for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 14:06:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1668884757; bh=lifiFGJqjTTeud5R37FOSt1MUvp5dgbBunrFaykNa3U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=wPIqJRsR+Q7E5UQH8MZU9DPjUj13qK57qanOGrcd190mTxejyJ123wcV1pruL325/ K4M5WYgCoTqGlZbhryE4A0uPB1NszVWuu9uHOs09AMF3F+sijKVAXT5+OBGTnFbODc 4GqscYE0iVSiSwQU4ItC+0Kfk/WzFcTJxIN1HXb9Ufxau2++AvRrJ+Wy/NINoXGgK3 93pPXIjPLSUwiiHy8KIk9usCrV7Mt3Rz4whVTNrHKWGFxUDWP/dTKjI1TAjxbNBnqA +xUwLmTWnLzHgw4dmKaahWCbZR7TOMI86ePN+7rtXiUSD21NAy1c94YHlQ6eQCo9/X NahJFWzEkA8tQ== Date: Sat, 19 Nov 2022 19:05:57 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <83wn7q7q35.fsf@HIDDEN> Message-ID: <518ded72c335e053d1c8@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <83y1s67qrg.fsf@HIDDEN> <518ded72c3e3303c3aaf@HIDDEN> <83wn7q7q35.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> And that also means that the default (waiting) mode of emacsclient is >> not available. > > And that is a problem? This use case is explicitly for human use (in > contrast to the +LINE:COLUMN FILE case which is for programs that call > $EDITOR). And it is a rare use case on top of that. So why typing a > few words is a problem, and why does it justify yet another tweak of the > UI? > I don't know, but I'd say that the added complexity is minimal for something that looks like a legitimate use case. > > But if we do want to make this easier, I'd go with a new command-line > switch, say, "--eob". The Vim way is cryptic and error-prone, so I > don't think we should do the same. And I don't see at all why would > someone needs to say "N lines from EOF". > One possible use case is "open a log file to look at the last N entries".
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 19:38:01 +0000 Resent-Message-ID: <handler.59388.B59388.166888667926639 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888667926639 (code B ref 59388); Sat, 19 Nov 2022 19:38:01 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 19:37:59 +0000 Received: from localhost ([127.0.0.1]:41469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owTf4-0006vb-RM for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 14:37:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owTf0-0006vN-UE for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 14:37:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owTev-0001Ic-8t; Sat, 19 Nov 2022 14:37:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=62qalvQvt1ERAwrDQ7V9+QImqAy0bDuqtoOCQWeBpTw=; b=XLmIRaoGrAJJ n3B9ehkW4PHiRSPWgRLPFev4LPKlEVJSBmS5XvHtwk2yjev7LLY6amF3NzCqwBd9Q1/LUU0uEHH55 Nk7CMgDXaL7DYe/D/PkpqUlBRii4BrLlRPMRUwEuFqdWoUOdk0eM1qmeh0Q5zowFEWLa7AzemTtPe R1572wII7GWKL9JtGh8h+d0gJxON9XcfclfvPd+oToPf165F+3ElDS1TBD/bIEj7SBClmbelroxaE WmGHBtSWcY6XEdQHi8o5WSrVpmOWAue0JrHouLUUJUYMZIoAl7rvhUN9pGNnR144mV+HnOijtWUyB yqMhMsrINf5SXiXiRfXsTg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owTeu-0006rK-L0; Sat, 19 Nov 2022 14:37:48 -0500 Date: Sat, 19 Nov 2022 21:37:56 +0200 Message-Id: <83sfie7n1n.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <518ded72c335e053d1c8@HIDDEN> (message from Gregory Heytings on Sat, 19 Nov 2022 19:05:57 +0000) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <83y1s67qrg.fsf@HIDDEN> <518ded72c3e3303c3aaf@HIDDEN> <83wn7q7q35.fsf@HIDDEN> <518ded72c335e053d1c8@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 19:05:57 +0000 > From: Gregory Heytings <gregory@HIDDEN> > cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > > > But if we do want to make this easier, I'd go with a new command-line > > switch, say, "--eob". The Vim way is cryptic and error-prone, so I > > don't think we should do the same. And I don't see at all why would > > someone needs to say "N lines from EOF". > > One possible use case is "open a log file to look at the last N entries". Going to EOB displays more than just the last line. And the request was only to be able to go to EOB.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 20:09:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888850429494 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings <gregory@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888850429494 (code B ref 59388); Sat, 19 Nov 2022 20:09:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 20:08:24 +0000 Received: from localhost ([127.0.0.1]:41493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owU8T-0007fb-Sa for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:08:24 -0500 Received: from mail-pg1-f171.google.com ([209.85.215.171]:46767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1owU8O-0007fI-5V for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:08:20 -0500 Received: by mail-pg1-f171.google.com with SMTP id 62so7802457pgb.13 for <59388 <at> debbugs.gnu.org>; Sat, 19 Nov 2022 12:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=Y1zMXE7UxqBPbDZmQqF115HAhZqQPtujv6CIqN+p9Yc=; b=TU1JgkluUll7AQoAYzSTujlnXtIChlZVzYffhJLZzarWYt/nptQd1AAnkJ7BNN6+qV ecVOogDAFha55Lgl4IqP9RZnFO07QFdiN4UoJhUtZlp+284ykpTwDnAawGUCpYM8F0Tc bwcMZB2dCx7k27Or5Syhq1y4WDCScohLUYRI8UQKc6adIoXGubmzcW7ktQfmZ2hq/y7J aEXtV85LEvSD5cueIGf+y8sR1+OOg8WAauvcXI7E6lrGRUvcsDFj1jTo/pgKtwr2BCyo RMpg07oYDardCl+wcRA89KBkcTM7pmoHkQAHjgJQMQweUQiCpV5r1Hay0YzCnnIlOU9z +rkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y1zMXE7UxqBPbDZmQqF115HAhZqQPtujv6CIqN+p9Yc=; b=5fvUvTBeMBp3AgaDh/J1QMCzkkEwtK/BjSZBJplvisQYuIAFRrN9+8WypdrxaSoUTj pRhrWHLxzJIp4HDh9t2qLlm1HmIARWM1fQRiaCbfoM8FsbEQwqLZW5Fob8G03xUZaKUW UDtGLvgwlmt0vU3z6fEsMfpX71ws4uZBCeKhiZkJzzwXOXLjqN8Q3lORu5o15r9djSTL f9xYBSJYjluWQFDYe2vrUbQIRpHpoCGYUdKVOMZ6GJMFVefKxUq49qYUXfYPgqo5Xq2U XXl10lPuKbNOv2MkoC1v/Jt6Wf2TFC3GqzGj2WTOHmUg4nZ5mgl6A7OTrQe1lAuvAS9N xaZg== X-Gm-Message-State: ANoB5pkFWxbppz0ClQ1x9mKVGl/s8xeaybY7RkVvwj0JIwYU0YX6L6ug cbG+t0jtlGWvoUoHLnKPLYc= X-Google-Smtp-Source: AA0mqf5G3/Cy4Td5pWGHwcS4WrLaZz+1t1+pDJafUDY0h/6eHmwps6UIzqSIiu21DAzy6X+XyRtdaA== X-Received: by 2002:a62:1444:0:b0:572:d54:9647 with SMTP id 65-20020a621444000000b005720d549647mr13679730pfu.82.1668888490100; Sat, 19 Nov 2022 12:08:10 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id jg18-20020a17090326d200b00174c0dd29f0sm6160016plb.144.2022.11.19.12.08.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Nov 2022 12:08:09 -0800 (PST) Message-ID: <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> Date: Sat, 19 Nov 2022 12:08:06 -0800 MIME-Version: 1.0 References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> Content-Language: en-US From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <518ded72c37782cf8af5@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/19/2022 10:07 AM, Gregory Heytings wrote: > Hmmm... I must be missing something. What do you mean? emacsclient > --eval means "do not visit files but instead evaluate the arguments as > Emacs Lisp expressions". I have two thoughts about this: 1. Why does --eval do that? You can mix filenames and --eval with the regular emacs program: emacs -Q foo.txt --eval '(message "hi")' Why doesn't emacsclient work similarly? (On the other hand, changing this might break compatibility, so we should be careful here.) 2. Assuming we don't change --eval as above, maybe the proposed --apply option discussed in bug#57752 could work: emacsclient --apply end-of-buffer -- foo.c I believe this would even work if you defined a shell alias like so: alias edit=end="emacsclient --apply end-of-buffer --" edit-end foo.txt That said, adding --apply to emacsclient (and emacs, too!) seemed like a fair bit of work when I looked at it...
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Gregory Heytings <gregory@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 20:21:01 +0000 Resent-Message-ID: <handler.59388.B59388.166888925130536 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888925130536 (code B ref 59388); Sat, 19 Nov 2022 20:21:01 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 20:20:51 +0000 Received: from localhost ([127.0.0.1]:41498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owUKY-0007wR-LH for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:20:51 -0500 Received: from heytings.org ([95.142.160.155]:50462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gregory@HIDDEN>) id 1owUKW-0007wH-8t for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:20:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1668889246; bh=i1LelksmLCfaV0KDldjKMY29fTO074Sihbbax027Mc0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=um7kaFi9cTabfVgLU0HsTS67GSyeOoTQRoQkD+zzXlHSHIGCDJLvOwXVhikQgPRgT yNzYDsLAMHs8e9WngHSVLj2G6MUGOBaLz0xgf6jgfx4B0Xuvlt61MeQyP1yIm56CAr dQEYnsFtvrPDOsUqdgC54xZFwamrukXO8B+869ah71RH14ELn/n1sQ5QHJr8OTSKQE xCPhg/nl08tR2DsofrQ2TQVs88uuQTd2u98FGrlCvTir7qIyCc1OCIHkiFw7jh6dS8 iZo05BsqonTc6HEL/bia0mvP2YWsI44lIE7WhgbW7Vt5jyD9XV8xTr/t3C6TjFSKhT eYV2ML1E4hJuQ== Date: Sat, 19 Nov 2022 20:20:46 +0000 From: Gregory Heytings <gregory@HIDDEN> In-Reply-To: <83sfie7n1n.fsf@HIDDEN> Message-ID: <518ded72c3ad84c75760@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <83y1s67qrg.fsf@HIDDEN> <518ded72c3e3303c3aaf@HIDDEN> <83wn7q7q35.fsf@HIDDEN> <518ded72c335e053d1c8@HIDDEN> <83sfie7n1n.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9SwfQXll9v" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --9SwfQXll9v Content-Type: text/plain; format=flowed; charset=us-ascii >>> But if we do want to make this easier, I'd go with a new command-line >>> switch, say, "--eob". The Vim way is cryptic and error-prone, so I >>> don't think we should do the same. And I don't see at all why would >>> someone needs to say "N lines from EOF". >> >> One possible use case is "open a log file to look at the last N >> entries". > > Going to EOB displays more than just the last line. > Yes, but point is not on the Nth line counting from EOF. > > And the request was only to be able to go to EOB. > Indeed. Like you I didn't like the Vim way, so I tried to imagine something better. But I don't think TRT here is to add yet another command line switch, when an already existing one can be extended naturally to do the same thing. Anyway, that was just a proposal, somehow I feel you don't like it, so I don't think it's useful to continue arguing. I attach it again (I forgot a modification to the Emacs manpage in the previous one) just in case. --9SwfQXll9v Content-Type: text/x-diff; name=Add-option-to-visit-the-end-of-a-file.patch Content-Transfer-Encoding: base64 Content-ID: <518ded72c3b54dc9060c@HIDDEN> Content-Disposition: attachment; filename=Add-option-to-visit-the-end-of-a-file.patch RnJvbSBmZmY5NGEzNmE1YjgzZTViMDdhMTcwYmQ3YWM4ZjE3NDA2Y2ZiOGZi IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBTY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3QgKHN0cmluZy1tYXRjaCAiXFwrXFwoLT9bMC05XStc XClcXCg/OjpcXChbMC05XStcXClcXCk/Ig0KICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoY2FyIGFyZ3MtbGVmdCkpKQ0KICAg ICAgICAgICAgICAgICAgICAgIChlcnJvciAiSW52YWxpZCAtcG9zaXRpb24g Y29tbWFuZCBpbiBjbGllbnQgYXJncyIpKQ0KICAgICAgICAgICAgICAgICAg KGxldCAoKGFyZyAocG9wIGFyZ3MtbGVmdCkpKQ0KQEAgLTE0MzcsOCArMTQz NywxMyBAQCBzZXJ2ZXItZ290by1saW5lLWNvbHVtbg0KICAgIk1vdmUgcG9p bnQgdG8gdGhlIHBvc2l0aW9uIGluZGljYXRlZCBpbiBMSU5FLUNPTC4NCiBM SU5FLUNPTCBzaG91bGQgYmUgYSBwYWlyIChMSU5FIC4gQ09MKS4iDQogICAo d2hlbiBsaW5lLWNvbA0KLSAgICAoZ290by1jaGFyIChwb2ludC1taW4pKQ0K LSAgICAoZm9yd2FyZC1saW5lICgxLSAoY2FyIGxpbmUtY29sKSkpDQorICAg IChpZiAoPj0gKGNhciBsaW5lLWNvbCkgMCkNCisgICAgICAgIChwcm9nbg0K KyAgICAgICAgICAoZ290by1jaGFyIChwb2ludC1taW4pKQ0KKyAgICAgICAg ICAoZm9yd2FyZC1saW5lICgxLSAoY2FyIGxpbmUtY29sKSkpKQ0KKyAgICAg IChwcm9nbg0KKyAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWF4KSkNCisg ICAgICAgIChmb3J3YXJkLWxpbmUgKGNhciBsaW5lLWNvbCkpKSkNCiAgICAg KGxldCAoKGNvbHVtbi1udW1iZXIgKGNkciBsaW5lLWNvbCkpKQ0KICAgICAg ICh3aGVuICg+IGNvbHVtbi1udW1iZXIgMCkNCiAgICAgICAgIChtb3ZlLXRv LWNvbHVtbiAoMS0gY29sdW1uLW51bWJlcikpKSkpKQ0KZGlmZiAtLWdpdCBh L2xpc3Avc3RhcnR1cC5lbCBiL2xpc3Avc3RhcnR1cC5lbA0KaW5kZXggNWUw YTQ3ZDNmOC4uN2NiZDc2ODdhZCAxMDA2NDQNCi0tLSBhL2xpc3Avc3RhcnR1 cC5lbA0KKysrIGIvbGlzcC9zdGFydHVwLmVsDQpAQCAtMjU3MCw4ICsyNTcw LDEzIEBAIGNvbW1hbmQtbGluZS0xDQogICAgICAgICAgICAgICAgICAgICAg IDs7IFB1dCB0aGUgcG9pbnQgYXQgYGxpbmUnOmBjb2x1bW4nIGluIHRoZSBm aWxlDQogICAgICAgICAgICAgICAgICAgICAgIDs7IGJ1ZmZlciwgYW5kIHJl c2V0IGBsaW5lJyBhbmQgYGNvbHVtbicgdG8gMC4NCiAgICAgICAgICAgICAg ICAgICAgICAgKHVubGVzcyAoemVyb3AgbGluZSkNCi0gICAgICAgICAgICAg ICAgICAgICAgICAoZ290by1jaGFyIChwb2ludC1taW4pKQ0KLSAgICAgICAg ICAgICAgICAgICAgICAgIChmb3J3YXJkLWxpbmUgKDEtIGxpbmUpKSkNCisg ICAgICAgICAgICAgICAgICAgICAgICAoaWYgKD49IGxpbmUgMCkNCisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgKHByb2duDQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkNCisg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yd2FyZC1saW5lICgx LSBsaW5lKSkpDQorICAgICAgICAgICAgICAgICAgICAgICAgICAocHJvZ24N CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGdvdG8tY2hhciAocG9p bnQtbWF4KSkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcndh cmQtbGluZSBsaW5lKSkpKQ0KICAgICAgICAgICAgICAgICAgICAgICAoc2V0 cSBsaW5lIDApDQogICAgICAgICAgICAgICAgICAgICAgICh1bmxlc3MgKDwg Y29sdW1uIDEpDQogICAgICAgICAgICAgICAgICAgICAgICAgKG1vdmUtdG8t Y29sdW1uICgxLSBjb2x1bW4pKSkNCkBAIC0yNzE4LDEwICsyNzIzLDEwIEBA IGNvbW1hbmQtbGluZS0xDQogICAgICAgICAgICAgICAgICAgICAoKGVxdWFs IGFyZ2kgIi1uby1kZXNrdG9wIikNCiAgICAgICAgICAgICAgICAgICAgICAo bWVzc2FnZSAiXCItLW5vLWRlc2t0b3BcIiBpZ25vcmVkIGJlY2F1c2UgdGhl IERlc2t0b3AgcGFja2FnZSBpcyBub3QgbG9hZGVkIikpDQogDQotICAgICAg ICAgICAgICAgICAgICAoKHN0cmluZy1tYXRjaCAiXlxcK1swLTldK1xcJyIg YXJnaSkNCi0gICAgICAgICAgICAgICAgICAgICAoc2V0cSBsaW5lIChzdHJp bmctdG8tbnVtYmVyIGFyZ2kpKSkNCisgICAgICAgICAgICAgICAgICAgICgo c3RyaW5nLW1hdGNoICJeXFwrXFwoLT9bMC05XStcXClcXCciIGFyZ2kpDQor ICAgICAgICAgICAgICAgICAgICAgKHNldHEgbGluZSAoc3RyaW5nLXRvLW51 bWJlciAobWF0Y2gtc3RyaW5nIDEgYXJnaSkpKSkNCiANCi0gICAgICAgICAg ICAgICAgICAgICgoc3RyaW5nLW1hdGNoICJeXFwrXFwoWzAtOV0rXFwpOlxc KFswLTldK1xcKVxcJyIgYXJnaSkNCisgICAgICAgICAgICAgICAgICAgICgo c3RyaW5nLW1hdGNoICJeXFwrXFwoLT9bMC05XStcXCk6XFwoWzAtOV0rXFwp XFwnIiBhcmdpKQ0KICAgICAgICAgICAgICAgICAgICAgIChzZXRxIGxpbmUg KHN0cmluZy10by1udW1iZXIgKG1hdGNoLXN0cmluZyAxIGFyZ2kpKQ0KICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGNvbHVtbiAoc3RyaW5nLXRvLW51 bWJlciAobWF0Y2gtc3RyaW5nIDIgYXJnaSkpKSkNCiANCmRpZmYgLS1naXQg YS9zcmMvZW1hY3MuYyBiL3NyYy9lbWFjcy5jDQppbmRleCA4NTEwMmFjZDI4 Li44NjI2NGRmN2E5IDEwMDY0NA0KLS0tIGEvc3JjL2VtYWNzLmMNCisrKyBi L3NyYy9lbWFjcy5jDQpAQCAtMzA4LDggKzMwOCw4IEBAICNkZWZpbmUgTUFJ Tl9QUk9HUkFNDQogQWN0aW9uIG9wdGlvbnM6XG5cDQogXG5cDQogRklMRSAg ICAgICAgICAgICAgICAgICAgdmlzaXQgRklMRVxuXA0KLStMSU5FICAgICAg ICAgICAgICAgICAgIGdvIHRvIGxpbmUgTElORSBpbiBuZXh0IEZJTEVcblwN Ci0rTElORTpDT0xVTU4gICAgICAgICAgICBnbyB0byBsaW5lIExJTkUsIGNv bHVtbiBDT0xVTU4sIGluIG5leHQgRklMRVxuXA0KKytbLV1MSU5FICAgICAg ICAgICAgICAgIGdvIHRvIGxpbmUgTElORSBpbiBuZXh0IEZJTEVcblwNCisr Wy1dTElORTpDT0xVTU4gICAgICAgICBnbyB0byBsaW5lIExJTkUsIGNvbHVt biBDT0xVTU4sIGluIG5leHQgRklMRVxuXA0KIC0tZGlyZWN0b3J5LCAtTCBE SVIgICAgIHByZXBlbmQgRElSIHRvIGxvYWQtcGF0aCAod2l0aCA6RElSLCBh cHBlbmQgRElSKVxuXA0KIC0tZXZhbCBFWFBSICAgICAgICAgICAgIGV2YWx1 YXRlIEVtYWNzIExpc3AgZXhwcmVzc2lvbiBFWFBSXG5cDQogLS1leGVjdXRl IEVYUFIgICAgICAgICAgZXZhbHVhdGUgRW1hY3MgTGlzcCBleHByZXNzaW9u IEVYUFJcblwNCi0tIA0KMi4zNS4xDQoNCg== --9SwfQXll9v--
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 20:34:02 +0000 Resent-Message-ID: <handler.59388.B59388.166888999731691 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166888999731691 (code B ref 59388); Sat, 19 Nov 2022 20:34:02 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 20:33:17 +0000 Received: from localhost ([127.0.0.1]:41510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owUWb-0008F5-JX for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:33:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owUWa-0008Es-EW for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 15:33:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owUWU-0008Rd-VF; Sat, 19 Nov 2022 15:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NPIrif+7azqctQlovsRlJfiXxrTrt05HeRi2+zGSKMQ=; b=Gcc6/CbSQhTQ z9QXefW+yDLYd2/YVYny+KsQLv7v57kKs3gbQSfqfWUs+TwyZJNfLywmVNOZggjoNGvQQcqw3dOBK O65yLHicqPCTThuPPhgGXDkkaeUyOiA1+FPm7WhfQHZVPZjuWlme90Odr4bbzWwJGx7XpaR7qjUp1 8FSbuwLVSOXrdOD03xU3+XS0eWhO00ccKhzjo8SUdtG2c2S+KvytMJ1/SrQcJS9QOJKSUhRBNLGmq a8Z9dTMeYeKzwNbVfwVFJmgyzz3ppASQsxgSWk0m5fwDADG+d3JYPmcjrUaFM22DPDlwEegc3/ZY+ bq046pwjiHBiAh+xOXLnEw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owUWU-0000mv-D0; Sat, 19 Nov 2022 15:33:10 -0500 Date: Sat, 19 Nov 2022 22:33:16 +0200 Message-Id: <83k03q7khf.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> (message from Jim Porter on Sat, 19 Nov 2022 12:08:06 -0800) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 12:08:06 -0800 > Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > From: Jim Porter <jporterbugs@HIDDEN> > > 1. Why does --eval do that? You can mix filenames and --eval with the > regular emacs program: > > emacs -Q foo.txt --eval '(message "hi")' > > Why doesn't emacsclient work similarly? (On the other hand, changing > this might break compatibility, so we should be careful here.) I don't think we can change the semantics of --eval. > 2. Assuming we don't change --eval as above, maybe the proposed --apply > option discussed in bug#57752 could work: > > emacsclient --apply end-of-buffer -- foo.c > > I believe this would even work if you defined a shell alias like so: > > alias edit=end="emacsclient --apply end-of-buffer --" > edit-end foo.txt > > That said, adding --apply to emacsclient (and emacs, too!) seemed > like a fair bit of work when I looked at it... Maybe we don't need to go as far as that discussion led us? Just adding a switch --funcall, to mimic what Emacs has, could be enough? Then we'd be able to say emacsclient -f eob FILE (assuming we also add a function 'eob' to Emacs).
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 19 Nov 2022 23:07:01 +0000 Resent-Message-ID: <handler.59388.B59388.166889918621914 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166889918621914 (code B ref 59388); Sat, 19 Nov 2022 23:07:01 +0000 Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 23:06:26 +0000 Received: from localhost ([127.0.0.1]:41635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owWun-0005hO-JS for submit <at> debbugs.gnu.org; Sat, 19 Nov 2022 18:06:25 -0500 Received: from mail-pj1-f50.google.com ([209.85.216.50]:34767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1owWuk-0005h9-9p for 59388 <at> debbugs.gnu.org; Sat, 19 Nov 2022 18:06:24 -0500 Received: by mail-pj1-f50.google.com with SMTP id w3-20020a17090a460300b00218524e8877so9436042pjg.1 for <59388 <at> debbugs.gnu.org>; Sat, 19 Nov 2022 15:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=HHSIlg/BuLhAoOKMryU9dMGs9KS/0oopvBWhUyuWvf8=; b=Ql2ZPjhtvnacFLSEoxLlYwiRT95VL4w3TWfRXgwuT42ZIZ4ZlTbpEEwU2zbGh2rNgl H5hdzvTceRVlzgey9eEVg+Y4Iq11tFoqZOt8nMYS4NYKGxoKiletLKUE0JFnZRmfwpWn PieueZVeT6QTxsVj4t7Cj7l/n1+H13M7LFZ6TgwOi9qdc6qRzSUKA2DFwyMPrYlInxeg fAAhb+/14wmqftTfywTSRgjd7z95uyECtXLoJLMTSMnYC9cZYa/lUBwnuEfVf+wOmT3g CUdlgToYfhuJC+gLfhlyYnIQidd+9RaGwxxj9IU0vvONEv92s/ucSRm01/M8rGDxvQW/ kq0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HHSIlg/BuLhAoOKMryU9dMGs9KS/0oopvBWhUyuWvf8=; b=ZhdIQF8WUySWk1tItNioxNP6dYmSjW252EhZ5LLkiqW0Awhn2lKO8vbH3v+HKGaUYM hKlqimSM7G2U7Yoaqh6VW5BWD7Y444JGIOjSDZ6tC3im03fJF4S/SI+zDQiPaVw3T4bS cpFknlH8XCxE512yqBApMccBSInONWPy1wc4tmRbh2tLBVdkND46MyHGTg4qQTGizCJd UgICw+aoYhcpl4mcvpuqPubC166T/srXSvNRTI500J6cBFJnEuCW/q8Hs9xdDwx3LETs xMPAR7aXcej4oWHkhN5QpKfWALvI6E1wF2KJlz0DdhZd9Ftxi3s3BAFVPusRQQCQA/3J M9DA== X-Gm-Message-State: ANoB5pmIVeBHKm0bf+wS0TyfblCXwdvTpV717dmT8LdRgSeIbB0Sf+EY jnBag3SrscDVdj++00g0zbk= X-Google-Smtp-Source: AA0mqf4D9MQhe9wA/TP+oZ0x5czBWSNKFwlNjTvdksGqPqvlUkwZo3Jv7sg5kd9zKglcyQ/fubBhOQ== X-Received: by 2002:a17:903:260d:b0:186:c56d:4950 with SMTP id jd13-20020a170903260d00b00186c56d4950mr5636550plb.69.1668899176243; Sat, 19 Nov 2022 15:06:16 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id y3-20020aa793c3000000b0056d7cc80ea4sm5618890pff.110.2022.11.19.15.06.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Nov 2022 15:06:15 -0800 (PST) Message-ID: <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> Date: Sat, 19 Nov 2022 15:06:14 -0800 MIME-Version: 1.0 Content-Language: en-US References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <83k03q7khf.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/19/2022 12:33 PM, Eli Zaretskii wrote: >> Date: Sat, 19 Nov 2022 12:08:06 -0800 >> Cc: xerusx@HIDDEN, 59388 <at> debbugs.gnu.org >> From: Jim Porter <jporterbugs@HIDDEN> >> >> 1. Why does --eval do that? You can mix filenames and --eval with the >> regular emacs program: >> >> emacs -Q foo.txt --eval '(message "hi")' >> >> Why doesn't emacsclient work similarly? (On the other hand, changing >> this might break compatibility, so we should be careful here.) > > I don't think we can change the semantics of --eval. Yeah, probably not. I'm not sure how important fixing this inconsistency is, but if we *were* to fix it, I think the least-disruptive would be to add a new option like "emacsclient --eval-one" that behaves like "emacs --eval" and add an obsoletion warning to "emacsclient --eval". Then, after a few versions, make "emacsclient --eval" work like "emacsclient --eval-one". This might be more effort than it's worth though... > Maybe we don't need to go as far as that discussion led us? Just adding a > switch --funcall, to mimic what Emacs has, could be enough? Then we'd be > able to say > > emacsclient -f eob FILE > > (assuming we also add a function 'eob' to Emacs). With the caveat that -f is already used for --server-file, I think this would be fine. --funcall is a lot simpler to implement than --apply, at least from emacsclient.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Nov 2022 07:23:01 +0000 Resent-Message-ID: <handler.59388.B59388.16689289485348 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16689289485348 (code B ref 59388); Sun, 20 Nov 2022 07:23:01 +0000 Received: (at 59388) by debbugs.gnu.org; 20 Nov 2022 07:22:28 +0000 Received: from localhost ([127.0.0.1]:42225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oweeq-0001OB-8p for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 02:22:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1oween-0001Nw-O2 for 59388 <at> debbugs.gnu.org; Sun, 20 Nov 2022 02:22:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1oweei-0007aw-GQ; Sun, 20 Nov 2022 02:22:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ocdMTdi+OL8VlfspxIlrQcqvThDknshx5wMOEAWHHOI=; b=XSY2Nvt1gF24 L72EtDeJvm9wEUb8/eQD7W5OYWf0CxB8ThWO8dmfVjC+4CLjXCgm1Th4eJ1McJqZWbCQ8eCVoAXgw f4GwNouwl/d7jVPeLuKAsZ5AYc565dT7lPZ79fbrj9HgR0YA1SNK1YqQlhjVer+WOpvRyX0+TigqO yw+bY1dw/+cguLhSvHyAQa9TGY8krIOHhkvOe9HszN7uD5Nrw89U+u8uIW19XjMK339TXejw5/zCk s1v7jsTFdXIkVXCOm5iTXvED9kpvqf/hst8EOJtKp06hNLYgQPzXvAN1ZnijRHzPY7DLKUI3X0Ov5 EZDrVd/dBhLgZmS+a81wFg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1oweeg-000689-D2; Sun, 20 Nov 2022 02:22:19 -0500 Date: Sun, 20 Nov 2022 09:22:27 +0200 Message-Id: <834juu6qfg.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> (message from Jim Porter on Sat, 19 Nov 2022 15:06:14 -0800) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sat, 19 Nov 2022 15:06:14 -0800 > Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > From: Jim Porter <jporterbugs@HIDDEN> > > On 11/19/2022 12:33 PM, Eli Zaretskii wrote: > > Maybe we don't need to go as far as that discussion led us? Just adding a > > switch --funcall, to mimic what Emacs has, could be enough? Then we'd be > > able to say > > > > emacsclient -f eob FILE > > > > (assuming we also add a function 'eob' to Emacs). > > With the caveat that -f is already used for --server-file, I think this > would be fine. --funcall is a lot simpler to implement than --apply, at > least from emacsclient. Then I think I'm okay with adding --funcall to emacsclient, as a solution for this feature request. With the proviso that the named function will be called _after_ visiting the named FILE, right?
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Nov 2022 18:50:01 +0000 Resent-Message-ID: <handler.59388.B59388.166897016426775 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166897016426775 (code B ref 59388); Sun, 20 Nov 2022 18:50:01 +0000 Received: (at 59388) by debbugs.gnu.org; 20 Nov 2022 18:49:24 +0000 Received: from localhost ([127.0.0.1]:44622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owpNc-0006xn-5X for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 13:49:24 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:36379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1owpNW-0006xT-N3 for 59388 <at> debbugs.gnu.org; Sun, 20 Nov 2022 13:49:22 -0500 Received: by mail-pj1-f45.google.com with SMTP id a22-20020a17090a6d9600b0021896eb5554so3576435pjk.1 for <59388 <at> debbugs.gnu.org>; Sun, 20 Nov 2022 10:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=k9/pjGF5dPZB3mRwCARvQDjaH0A8s9ordKTXJoDL4Ag=; b=XzMTPlA76vL5LLtiJ94agFrTgh4C1BkNmiNXI49vbpGNbyrKCKUbOqb5bQyOICHgK0 2zbtdC8JbnRdY2zKBGODtuT23owFFzQ+MmXmSn0jNmBiNiEdrXM4r5Y38R5pNsXtma+n QfuzJdr39hXdTaUaMWOVdp0KpyEXUDKNt4K0GOEQAmal98NCVzz5V2az+EwoClkugwyR u7gBISDGD9fdt/1kWZDLCSENbfJ9ZmAsuzLXfZ+yV8TgKwxI5FxoT7ihp96x2CBAi97K 6VStSIcD1Fh9fV4g9vcYumw1QIYT+C8xI+fr/qrmGUgp3ruBuoKFcKrn7tq66ez+Kwjf yKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k9/pjGF5dPZB3mRwCARvQDjaH0A8s9ordKTXJoDL4Ag=; b=6ZWJEzvQ29clP5tNHhLs1NW8FUywuw81q/CAH1pYCNde4O9GbybBstvcH3Rew6MsW7 FgKh4dV5o4F28jGsAtgJWuiOyYDS9HPosy8dgRvL9YEKBmE3vPQM4VTZ4FXgCvIveOCY YY5+y+omhRN5SSmBVUuHhOv7bWWFztzeW5m9CStdsIgUZ7hYtJjYZZNqbyrIhhTJzGwO S7KZ/FTqGbRDzyZrlw+DhGgSNadb2wSJBucru2sa+FhUCZf4ClKYLGAyp7W7eN7LbCBr vO1j9A3PGmp52/iu82MNdaQhPFgDGvhIFuGX1BjUZDST0b1MWMawTl6Rn3SjBft3PcyJ Z4bw== X-Gm-Message-State: ANoB5plfNDOlyrSiZHn1ZZwczAJ2iUBt+4/8t92MDIrXfNjRhuPSc90k cAMS4uE1OSEVhbeDDDq3zo8= X-Google-Smtp-Source: AA0mqf49Y8Gd48pVT0d8gCrusO3tzMBp9aWHxVAu/KSDCUgMylgX44DI2T7tGtsE9FhIGJAsrkY+sw== X-Received: by 2002:a17:902:b40b:b0:188:75bb:36d4 with SMTP id x11-20020a170902b40b00b0018875bb36d4mr8723162plr.55.1668970152798; Sun, 20 Nov 2022 10:49:12 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id z1-20020a655a41000000b00439c6a4e1ccsm1533051pgs.62.2022.11.20.10.49.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 10:49:12 -0800 (PST) Message-ID: <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> Date: Sun, 20 Nov 2022 10:49:10 -0800 MIME-Version: 1.0 Content-Language: en-US References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <834juu6qfg.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/19/2022 11:22 PM, Eli Zaretskii wrote: >> Date: Sat, 19 Nov 2022 15:06:14 -0800 >> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org >> From: Jim Porter <jporterbugs@HIDDEN> >> >> On 11/19/2022 12:33 PM, Eli Zaretskii wrote: >>> Maybe we don't need to go as far as that discussion led us? Just adding a >>> switch --funcall, to mimic what Emacs has, could be enough? Then we'd be >>> able to say >>> >>> emacsclient -f eob FILE >>> >>> (assuming we also add a function 'eob' to Emacs). >> >> With the caveat that -f is already used for --server-file, I think this >> would be fine. --funcall is a lot simpler to implement than --apply, at >> least from emacsclient. > > Then I think I'm okay with adding --funcall to emacsclient, as a solution > for this feature request. With the proviso that the named function will be > called _after_ visiting the named FILE, right? Assuming it's possible, I think the most flexible, obvious, and consistent[1] way for it to work would be to obey the order of the arguments. So "emacsclient --funcall func file.txt" calls func and then visits file.txt, whereas "emacsclient file.txt --funcall func" visits file.txt and then calls func. The downside of this is that it's a little bit trickier to write an alias for the case in this bug. 'alias edit-end="emacsclient --funcall end-of-buffer"' wouldn't do the right thing. I don't think that's a problem though, since the original proposal had the same limitation: the "+" comes after the file, as in "emacsclient file.txt +". So my suggestion above would work just like the original proposal except that "+" is spelled differently. [1] This is how --funcall works with the regular emacs executable, as far as I can tell.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Nov 2022 19:01:02 +0000 Resent-Message-ID: <handler.59388.B59388.166897083127901 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166897083127901 (code B ref 59388); Sun, 20 Nov 2022 19:01:02 +0000 Received: (at 59388) by debbugs.gnu.org; 20 Nov 2022 19:00:31 +0000 Received: from localhost ([127.0.0.1]:44649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owpYC-0007Fn-1S for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 14:00:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1owpY8-0007FU-IX for 59388 <at> debbugs.gnu.org; Sun, 20 Nov 2022 14:00:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owpY2-0004Qa-S9; Sun, 20 Nov 2022 14:00:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sVNxKsWyuCWNjQynsI0Cm8oNNiv3Airdo2lPfNCEfF4=; b=WIa0jAo6ghJN S1ld0Yh48tohIoiEhRtDFPwC11VhQ5svHd4ripF6NDgTcAvtxeiwkSZs/5/UHQJjBusjobUArKEKS fmI1x8s3zyUhfJu3mVDYdIDSjUCrz4ttV5U2Kf3Zi4aqTtMMAC8xQvAGF+XaYyFFzkNMQwtepeSM5 OHNRtvgQ4Mtn/A2NFubJdOExhcJetbP2AbOPDD4YXGnKprZ5oTQGvM6O9VCDFbqYvmdYzmt9iomNX Jp4ZtxoAhovgS6OL+ppgxUIgwwfQGnZNM5V1T4n5+83vs/ZJ6C5gvyddA9nFZaZ1PMsK5L3dj26Y7 SaYqVtTF5g/OOtkM5rz0QA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1owpY2-0002u6-3m; Sun, 20 Nov 2022 14:00:10 -0500 Date: Sun, 20 Nov 2022 21:00:20 +0200 Message-Id: <83leo54fjv.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> (message from Jim Porter on Sun, 20 Nov 2022 10:49:10 -0800) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sun, 20 Nov 2022 10:49:10 -0800 > Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > From: Jim Porter <jporterbugs@HIDDEN> > > > Then I think I'm okay with adding --funcall to emacsclient, as a solution > > for this feature request. With the proviso that the named function will be > > called _after_ visiting the named FILE, right? > > Assuming it's possible, I think the most flexible, obvious, and > consistent[1] way for it to work would be to obey the order of the > arguments. So "emacsclient --funcall func file.txt" calls func and then > visits file.txt, whereas "emacsclient file.txt --funcall func" visits > file.txt and then calls func. This won't work, because emacsclient thinks everything after the first FILE cannot be an option. Which is why +LINE:COLUMN FILE works, although LINE and COLUMN refer to FILE that comes after it. We can invoke functions in the order of --funcall's, but they should run after visiting the file. Nothing else makes sense, and was never possible with emacsclient anyway. So I stand by what I wrote: --funcall'ed functions should run after visiting FILE. It's not a problem, as you can see from the implementation of -position in the protocol.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 20 Nov 2022 19:39:02 +0000 Resent-Message-ID: <handler.59388.B59388.166897308231557 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166897308231557 (code B ref 59388); Sun, 20 Nov 2022 19:39:02 +0000 Received: (at 59388) by debbugs.gnu.org; 20 Nov 2022 19:38:02 +0000 Received: from localhost ([127.0.0.1]:44681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1owq8f-0008Cr-RE for submit <at> debbugs.gnu.org; Sun, 20 Nov 2022 14:38:02 -0500 Received: from mail-pl1-f174.google.com ([209.85.214.174]:46006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1owq8d-0008By-3V for 59388 <at> debbugs.gnu.org; Sun, 20 Nov 2022 14:38:00 -0500 Received: by mail-pl1-f174.google.com with SMTP id w23so8775755ply.12 for <59388 <at> debbugs.gnu.org>; Sun, 20 Nov 2022 11:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=qmGGpew4g57hFAyc2EP/Roj/VAit+aLuDlUHNukP6Pw=; b=ntS5U2VigUG03TbC2ffhu0sLGeTwiUkA9JIdjol449ZGL2HyNZt5l7I/el1K9y5elY aaZl3g1f91CtBycHyhV+PbB7vUUrgW35Arv+6LF8I8DrExVNB/PsLyKkqmbzYFrlVNdg omEUfbP5ehXCKgAzNaiTs5huadFo8mYZb6PLvji4QFgLGbL+L5Jks4JMrUMgWqJg1VEU ozi5+zD+dUA3lE8RwWYVYIxTHxa+FBeDQ7laEpfTP5Z9DWGz7+EvKM4nR4jv1TWtqunn uKoFmk0mPxIzwLWV4SEUPVkzvlAJ60WFSSehXQEM38PLWgS8LKzlexor82qvskn9NQfu azpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qmGGpew4g57hFAyc2EP/Roj/VAit+aLuDlUHNukP6Pw=; b=ykKsIRnPy4BIGHkzeD3z0L7XptbFzSGHsm1o6dSSTPexUhceKjSBbVlajKn4uPa8of gf91UANdqduy63/n0PoIDrLRriXSvgEltPZ2qy+CPwf4XMXibBamdX/z4a3CJ71/+B8q +Jb6L50QWGyxdGZh4Y5LLbqwEUd90otPLUGDJh4b2OMpFPCG9FL7nQwrBm4dbirvAnxY /E2dg3wqp3QOT6PxF5z2FovCcWgYCCQ+qVf11+GQVtAiZr+OmPjpNpwGRDljJaxM0X6g 5LUOXKSWDdJYiOKCydXAMjXXGYuIsjGysPq2iA8qJnyh/HqedmIUM5VcSTjzQDNSbGyX bfNQ== X-Gm-Message-State: ANoB5pkIf5ALTVirZWvDIrpO4OGTcd+tihwkXgMHXkycIZpK9e6lOvfy 8fX+rEKJiFrAjo+EzAs6hk4= X-Google-Smtp-Source: AA0mqf4moiQTsQ+2rO+orjGU/Ir4i+ZtTquUQdipMhOtrNYX1/ZGhzqJwLzsC3u3jTKlac73pUqxjw== X-Received: by 2002:a17:902:eb8b:b0:188:f881:c9d0 with SMTP id q11-20020a170902eb8b00b00188f881c9d0mr8558828plg.93.1668973073283; Sun, 20 Nov 2022 11:37:53 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id mn23-20020a17090b189700b002187a4dd830sm6086470pjb.46.2022.11.20.11.37.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 11:37:52 -0800 (PST) Message-ID: <3cd2d38d-d6ad-31bc-0126-314a3cdd686b@HIDDEN> Date: Sun, 20 Nov 2022 11:37:51 -0800 MIME-Version: 1.0 Content-Language: en-US References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> <83leo54fjv.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <83leo54fjv.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/20/2022 11:00 AM, Eli Zaretskii wrote: >> Date: Sun, 20 Nov 2022 10:49:10 -0800 >> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org >> From: Jim Porter <jporterbugs@HIDDEN> >> >>> Then I think I'm okay with adding --funcall to emacsclient, as a solution >>> for this feature request. With the proviso that the named function will be >>> called _after_ visiting the named FILE, right? >> >> Assuming it's possible, I think the most flexible, obvious, and >> consistent[1] way for it to work would be to obey the order of the >> arguments. So "emacsclient --funcall func file.txt" calls func and then >> visits file.txt, whereas "emacsclient file.txt --funcall func" visits >> file.txt and then calls func. > > This won't work, because emacsclient thinks everything after the first FILE > cannot be an option. Which is why +LINE:COLUMN FILE works, although LINE > and COLUMN refer to FILE that comes after it. Ok, then I think your proposal is fine. (Though these surprising differences between how "emacs" and "emacsclient" handle arguments are making me wonder about reimplementing the client, perhaps as "emacs-client" with a hyphen. Maybe it's worth an experiment at least. That obviously doesn't have to happen as part of this bug though.)
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jean Louis <bugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 08:57:02 +0000 Resent-Message-ID: <handler.59388.B59388.16690209725051 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, xerusx@HIDDEN, gregory@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16690209725051 (code B ref 59388); Mon, 21 Nov 2022 08:57:02 +0000 Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 08:56:12 +0000 Received: from localhost ([127.0.0.1]:45354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox2b6-0001JP-3A for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 03:56:12 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:59363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bugs@HIDDEN>) id 1ox2b3-0001JG-Ud for 59388 <at> debbugs.gnu.org; Mon, 21 Nov 2022 03:56:11 -0500 Received: from localhost ([::ffff:154.226.1.214]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000F6134.00000000637B3D29.00002AB1; Mon, 21 Nov 2022 01:56:08 -0700 Date: Mon, 21 Nov 2022 11:52:48 +0300 From: Jean Louis <bugs@HIDDEN> Message-ID: <Y3s8YOI/yZXaMhjy@HIDDEN> References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * Jim Porter <jporterbugs@HIDDEN> [2022-11-20 21:51]: > Assuming it's possible, I think the most flexible, obvious, and > consistent[1] way for it to work would be to obey the order of the > arguments. So "emacsclient --funcall func file.txt" calls func and then > visits file.txt, whereas "emacsclient file.txt --funcall func" visits > file.txt and then calls func. I am sure that `-e' can be used to do that all. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jean Louis <bugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 08:57:02 +0000 Resent-Message-ID: <handler.59388.B59388.16690209775068 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: Jim Porter <jporterbugs@HIDDEN>, gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16690209775068 (code B ref 59388); Mon, 21 Nov 2022 08:57:02 +0000 Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 08:56:17 +0000 Received: from localhost ([127.0.0.1]:45357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox2bA-0001Jf-Di for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 03:56:16 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]:59363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bugs@HIDDEN>) id 1ox2b6-0001JG-Dc for 59388 <at> debbugs.gnu.org; Mon, 21 Nov 2022 03:56:12 -0500 Received: from localhost ([::ffff:154.226.1.214]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000F613A.00000000637B3D2C.00002AC7; Mon, 21 Nov 2022 01:56:12 -0700 Date: Mon, 21 Nov 2022 11:55:34 +0300 From: Jean Louis <bugs@HIDDEN> Message-ID: <Y3s9BlDwLcf8gv22@HIDDEN> References: <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> <83leo54fjv.fsf@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <83leo54fjv.fsf@HIDDEN> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * Eli Zaretskii <eliz@HIDDEN> [2022-11-20 22:01]: > We can invoke functions in the order of --funcall's, but they should run > after visiting the file. Nothing else makes sense, and was never possible > with emacsclient anyway. I use `-e' to open new frame seeking for specific buffer, or invoking specific functions. > So I stand by what I wrote: --funcall'ed functions should run after > visiting FILE. It's not a problem, as you can see from the implementation > of -position in the protocol. --funcall is similar as `-e' only limited to single function. So I suggest that when you implement that, that --funcall may be used also without any file, such as emacsclient -c --funcall my-function as that way I can invoke necessary programs. Though it is not logical to tie a "funcall" to file, file may not be there, or it could be new file, or new frame created, or --funcall can do useful things in the existing server. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 13:36:02 +0000 Resent-Message-ID: <handler.59388.B59388.16690377022874 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jean Louis <bugs@HIDDEN> Cc: jporterbugs@HIDDEN, gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16690377022874 (code B ref 59388); Mon, 21 Nov 2022 13:36:02 +0000 Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 13:35:02 +0000 Received: from localhost ([127.0.0.1]:45788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox6wv-0000kD-II for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:35:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ox6ws-0000ju-Ug for 59388 <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:34:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox6wm-00075l-QR; Mon, 21 Nov 2022 08:34:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tLDjhhJ2aY1aEn1hdSAujHTyR9GmwKJnJkvpoPQkIdk=; b=XW7gbzTgnuOP Gfwoov8SC132GBRScHQyIf02jl65C6WCOjgwbZSVoufZ6sfDzRb9SS/ZnciePUh6QCfY5JLY1lW22 oglUSy5HpCg0xLN+IwLaQn+pfX4A1hreZ+hLTsUDHHFUOR5a+k1xcGsWZH0WUQKn0I5+wEXOgv6fj joJdVF/wLA1meCaexkP4O/wtn7jD/CQi0f/VC0X/34xspd2lcrf7sFIqOpQNxaStXtSOpYRtRCTOz XvDgWmBKnWvJ4jAGXt5p52wPX4AnW3BtXhveFb6W0ia+EnifLvvNOq7gZCYnSjlee4CYx2b+1TRD1 gcU2469GTnAPUlXCoEEGpg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox6wm-0007O6-4t; Mon, 21 Nov 2022 08:34:52 -0500 Date: Mon, 21 Nov 2022 15:35:04 +0200 Message-Id: <831qpw4eif.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <Y3s8YOI/yZXaMhjy@HIDDEN> (message from Jean Louis on Mon, 21 Nov 2022 11:52:48 +0300) References: <vQbHtAJzqUBd2qqg8W4cbS7581v_pnVCAaBE7huy5TECWMsz-3DPXdzs7hDnASK4p6YkjhUVdgm3zPo0pQR2rQP6w2KioPdSWW1Cxp59CwE=@pm.me> <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> <Y3s8YOI/yZXaMhjy@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 21 Nov 2022 11:52:48 +0300 > From: Jean Louis <bugs@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, gregory@HIDDEN, xerusx@HIDDEN, > 59388 <at> debbugs.gnu.org > > * Jim Porter <jporterbugs@HIDDEN> [2022-11-20 21:51]: > > Assuming it's possible, I think the most flexible, obvious, and > > consistent[1] way for it to work would be to obey the order of the > > arguments. So "emacsclient --funcall func file.txt" calls func and then > > visits file.txt, whereas "emacsclient file.txt --funcall func" visits > > file.txt and then calls func. > > I am sure that `-e' can be used to do that all. I guess you haven't read the discussion, because this was mentioned up-thread, and we still arrived at the above after talking about it.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 13:37:02 +0000 Resent-Message-ID: <handler.59388.B59388.16690377923048 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jean Louis <bugs@HIDDEN> Cc: jporterbugs@HIDDEN, gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.16690377923048 (code B ref 59388); Mon, 21 Nov 2022 13:37:02 +0000 Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 13:36:32 +0000 Received: from localhost ([127.0.0.1]:45801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox6yO-0000n5-HM for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:36:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ox6yN-0000ms-7u for 59388 <at> debbugs.gnu.org; Mon, 21 Nov 2022 08:36:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox6yH-0007au-Jo; Mon, 21 Nov 2022 08:36:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mQ18mWFBwkkswIIXRQo29f0QVsuWr7F0OgIhuH1UENA=; b=qLFHXrQNR9mP mfBOaQKZ2coDZ/GWM8Iwq4Pgh9QDKFC1/vOOAZ43J7SEas/eeCXfFhRN9TYsnjJ6BoKACVPwX0Zpb STM1rQT9eZ/vsC080gqZSKx1RLKNF/peJp4RYjvcdOPpcg875JEIIa63FMRKfhKtQ2pyW9yTjbXOd oCTt5iov9rcKC3avPWYIh742lkDE4z1TzDOkLkjIer/8LhUWe92QrhyjposLYC6n/+DOYLMMnlvfR fpprK8WH0Jyy80wDBD7KzOjhSa13ZTOoc+gjty/whKypa3aSqdlbqSxtgajWHXb4VHuCLnQm5ytAi QzdjWIIAYuBqa6wr+w/Q9A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ox6yG-0001yt-Gh; Mon, 21 Nov 2022 08:36:25 -0500 Date: Mon, 21 Nov 2022 15:36:35 +0200 Message-Id: <83zgck2zvg.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <Y3s9BlDwLcf8gv22@HIDDEN> (message from Jean Louis on Mon, 21 Nov 2022 11:55:34 +0300) References: <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> <83leo54fjv.fsf@HIDDEN> <Y3s9BlDwLcf8gv22@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 21 Nov 2022 11:55:34 +0300 > From: Jean Louis <bugs@HIDDEN> > Cc: Jim Porter <jporterbugs@HIDDEN>, gregory@HIDDEN, > xerusx@HIDDEN, 59388 <at> debbugs.gnu.org > > * Eli Zaretskii <eliz@HIDDEN> [2022-11-20 22:01]: > > We can invoke functions in the order of --funcall's, but they should run > > after visiting the file. Nothing else makes sense, and was never possible > > with emacsclient anyway. > > I use `-e' to open new frame seeking for specific buffer, or invoking > specific functions. Again, please read the discussion before chiming in. This is, of course, possible, but people provided convincing reasons why it can be sometimes not very convenient. > > So I stand by what I wrote: --funcall'ed functions should run after > > visiting FILE. It's not a problem, as you can see from the implementation > > of -position in the protocol. > > --funcall is similar as `-e' only limited to single function. So I > suggest that when you implement that, that --funcall may be used > also without any file, such as emacsclient -c --funcall my-function > as that way I can invoke necessary programs. This is redundant, since -e already allows that.
X-Loop: help-debbugs@HIDDEN Subject: bug#59388: Open emacsclient file at last line Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 17:52:01 +0000 Resent-Message-ID: <handler.59388.B59388.166905306327569 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN>, Jean Louis <bugs@HIDDEN> Cc: gregory@HIDDEN, xerusx@HIDDEN, 59388 <at> debbugs.gnu.org Received: via spool by 59388-submit <at> debbugs.gnu.org id=B59388.166905306327569 (code B ref 59388); Mon, 21 Nov 2022 17:52:01 +0000 Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 17:51:03 +0000 Received: from localhost ([127.0.0.1]:48727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oxAwh-0007AZ-49 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 12:51:03 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:41491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1oxAwc-00079z-NZ for 59388 <at> debbugs.gnu.org; Mon, 21 Nov 2022 12:51:01 -0500 Received: by mail-pf1-f169.google.com with SMTP id 130so11993353pfu.8 for <59388 <at> debbugs.gnu.org>; Mon, 21 Nov 2022 09:50:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=IHRRkqyGoxS2zpQeRDGjhZu3N34ky8T8MtwRtFeE7AU=; b=Q6yvNfMXmmP+fQrwEr5yfE5xx46vpccY5hxHc+CADYgsx57zYEjKLpBgcTRuq7bPzc Ppuq9luYXNKtMu+1QiKzXBVeCufYWfcR3Vfb12oHGLrvGitprGgb84EOE/IghxJm9efW XdFeBX+U7lgiP/L44c0Ur75hz9gU5dna+er0oW0/CmgalFTsAPXfKCwZlvWZvf8Vd5E1 iqdKfAnM3ZWfWohpvBEV6TFiEpG1/RsPZ5DfvJc98etWq/wHsZt5MZ5NOgLjxmeAWMSa x0y/7uprHjcNBncWJuEteEIUd1DQf41fFz8IaAM6h6CCyh65Qie0zYRH+F+QvZjMJfA/ Iqgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IHRRkqyGoxS2zpQeRDGjhZu3N34ky8T8MtwRtFeE7AU=; b=PpBLNORyBnb5FWH184SjBToQmkb7lOqOXOhqgcwOZ4ThkuO/fC7Y8TVMjxfBU5wOEY yAnah7faJ+Jp6R9CQJxm87WldkLgyz6orv2CPz6tBOgsrwrjtkTyWVTIrxfO8gtUasid yilCAeYfag1BAfm3OuIhavk9GpoXyJIxyiXybLVxitC/5nMlVK0G4OGm1cEKNnopXbUy 50lLSdPj0Fy6PAA3wbhUkm4dCf9HntQO8P8YC43CuMn1o9W4L2XWEqCNdYIQeC68R4xK S4WeTkXcLlV+5yqJE6w8cSWhhHJVmf3fjRkvHGuF2yH9Ejyg3uaWFnEPYoKgJNyIJvXs owSQ== X-Gm-Message-State: ANoB5pkRaJYVVCY2JtJes3SNBA9gsLppbh0iZ8uqF2Ol/kbAhazafvkz qUjr++cXIQbc5jo1D8pUJVc= X-Google-Smtp-Source: AA0mqf50IUTOktIcUwzxtFYEyrzPZM58CgY5tvzipzZ3gfocopoyRBR/BEGJTiXuxtJDdtk6bBK8HA== X-Received: by 2002:a65:6d18:0:b0:477:2abc:d4a7 with SMTP id bf24-20020a656d18000000b004772abcd4a7mr1108551pgb.306.1669053052830; Mon, 21 Nov 2022 09:50:52 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id e7-20020aa798c7000000b0056d98e31439sm9298480pfm.140.2022.11.21.09.50.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 09:50:52 -0800 (PST) Message-ID: <1ccc9a1f-07b3-e496-0674-4f17eb556154@HIDDEN> Date: Mon, 21 Nov 2022 09:50:49 -0800 MIME-Version: 1.0 Content-Language: en-US References: <835yfb7xo6.fsf@HIDDEN> <518ded72c33c3608e35a@HIDDEN> <83zgcm7rfg.fsf@HIDDEN> <518ded72c37782cf8af5@HIDDEN> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@HIDDEN> <83k03q7khf.fsf@HIDDEN> <c57d39cc-cd60-6d11-c44b-1c44848f10c8@HIDDEN> <834juu6qfg.fsf@HIDDEN> <e21ace7c-3181-98ad-6683-9d3049786ee3@HIDDEN> <83leo54fjv.fsf@HIDDEN> <Y3s9BlDwLcf8gv22@HIDDEN> <83zgck2zvg.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <83zgck2zvg.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/21/2022 5:36 AM, Eli Zaretskii wrote: >> Date: Mon, 21 Nov 2022 11:55:34 +0300 >> From: Jean Louis <bugs@HIDDEN> >> Cc: Jim Porter <jporterbugs@HIDDEN>, gregory@HIDDEN, >> xerusx@HIDDEN, 59388 <at> debbugs.gnu.org >> >> --funcall is similar as `-e' only limited to single function. So I >> suggest that when you implement that, that --funcall may be used >> also without any file, such as emacsclient -c --funcall my-function >> as that way I can invoke necessary programs. > > This is redundant, since -e already allows that. I don't think there'd be a *problem* if --funcall without a file was allowed. As you say, it's not necessary, since you can already do this with -e, but --funcall with no files has precedent with the regular emacs executable, so I think it'd be reasonable for emacsclient to do it too. It's probably not a big deal either way though, given that emacs and emacsclient already treat options quite differently.
Received: (at control) by debbugs.gnu.org; 24 Nov 2022 18:26:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 24 13:26:53 2022 Received: from localhost ([127.0.0.1]:60008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oyGw1-0006np-Ij for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 13:26:53 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:37753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1oyGvx-0006nF-7X for control <at> debbugs.gnu.org; Thu, 24 Nov 2022 13:26:49 -0500 Received: by mail-oi1-f178.google.com with SMTP id v82so2306650oib.4 for <control <at> debbugs.gnu.org>; Thu, 24 Nov 2022 10:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=VeTAeUaCs13hwRj/6wJPMQjttIib2vRNVgtBdilmavI=; b=Dzp410jJDQvM3CZL0TW6FBYf7yYW0GurerizpbN4n0GsC2tM7C0TQP5pjdWPx56x2g wkQ1GbFKMVkUOUeOmaisSoAlM0jaeu8RTqQkl6xjhXXQVhOb7B/5Ubc6cS7FAbLb9spZ rHE/+WAc8cD6uraMrwtAc2o/5cHr6s8l7u55XBEGDIV6ZRioaiFnstY4glfT6cfB93r0 hM8UfPP0ruhPRir9RmVzQE5XIPkiKkjTS72TgKN6l6qPIAYbnNX4bUTXXgcE5P705dup AoGvmIqIwCKdlVJ854y6t+fCfl4G/RtGAdeL1pAsNDgQdWP2MvuuKZheakikLb1Rv/X3 aLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VeTAeUaCs13hwRj/6wJPMQjttIib2vRNVgtBdilmavI=; b=7M6fitdPZd7iheUVy4bw2rz2E8GjIXMhgizNAz8wLKRllrXxrUKiQ8jXBOdUpY7RQ7 WbKNRUHY4V3tqGZzQG3oQVEyUSJ+VAUrNYiHY3YM7s35d/BDgJ7eBeEqDRV9/ovnW8iz 7WRXuZo6b/yl2IfVJhLcVLgAp2LqSsCLM1uc/ZkIn3STU7fycOnT4p+jOmVW0SQTizIr oivSTvGRL60fQw5+RZE9wF+EQdmCC1wW7SiI5q04fUtL5x9FxEN+sCmWZOYvuWIgz/pF Dag/AbqfQAQReAl6uQ1JEEsEa+AC0I5eyPu2koAJdr3q7tae/FkwN7Mz9G+WbbuH+B8X 9Rzw== X-Gm-Message-State: ANoB5plx3EjPaugpyy9JfxD7vNDPk4WIHWiM79RlhvEuTdzLzp85NKBT UGYpPoFUuPt62LWwvHGBROZkj1Axae06Mr6y2Yn7TFP4 X-Google-Smtp-Source: AA0mqf56i55OSVk3WL8Rwhe7rIp6eb4smd/riqViIzpm5Ps9hGd2tEiJ3YP+q4wk40oQXdjh1lbu/0BKQ+E3BwtVmQc= X-Received: by 2002:a05:6808:1287:b0:359:dc32:4f9e with SMTP id a7-20020a056808128700b00359dc324f9emr8434124oiw.92.1669314403747; Thu, 24 Nov 2022 10:26:43 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 24 Nov 2022 10:26:43 -0800 From: Stefan Kangas <stefankangas@HIDDEN> X-Hashcash: 1:20:221124:control <at> debbugs.gnu.org::oB2CgCd3Dtcsdglm:2DvK MIME-Version: 1.0 Date: Thu, 24 Nov 2022 10:26:43 -0800 Message-ID: <CADwFkmnF4pfnSM6rNUpUSkn735=C+NTrqDn+H4p5UUvYpjH23Q@HIDDEN> Subject: control message for bug #59388 To: control <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 59388 wishlist quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.