From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#59388: Open emacsclient file at last line Date: Mon, 21 Nov 2022 11:55:34 +0300 Message-ID: References: <835yfb7xo6.fsf@gnu.org> <518ded72c33c3608e35a@heytings.org> <83zgcm7rfg.fsf@gnu.org> <518ded72c37782cf8af5@heytings.org> <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@gmail.com> <83k03q7khf.fsf@gnu.org> <834juu6qfg.fsf@gnu.org> <83leo54fjv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32833"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: Jim Porter , gregory@heytings.org, xerusx@pm.me, 59388@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 21 09:58:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ox2dK-0008K5-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Nov 2022 09:58:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ox2bx-0000cU-Eb; Mon, 21 Nov 2022 03:57:05 -0500 Original-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 ) id 1ox2bv-0000af-C3 for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 03:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ox2bu-0002wB-KV for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 03:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ox2bu-0001Ko-Gh for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 03:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Nov 2022 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59388 X-GNU-PR-Package: emacs Original-Received: via spool by 59388-submit@debbugs.gnu.org id=B59388.16690209775068 (code B ref 59388); Mon, 21 Nov 2022 08:57:02 +0000 Original-Received: (at 59388) by debbugs.gnu.org; 21 Nov 2022 08:56:17 +0000 Original-Received: from localhost ([127.0.0.1]:45357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox2bA-0001Jf-Di for submit@debbugs.gnu.org; Mon, 21 Nov 2022 03:56:16 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:59363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox2b6-0001JG-Dc for 59388@debbugs.gnu.org; Mon, 21 Nov 2022 03:56:12 -0500 Original-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 Content-Disposition: inline In-Reply-To: <83leo54fjv.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248506 Archived-At: * Eli Zaretskii [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/