From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59388: Open emacsclient file at last line Date: Sun, 20 Nov 2022 09:22:27 +0200 Message-ID: <834juu6qfg.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39973"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, xerusx@pm.me, 59388@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 08:23:29 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 1owefo-000AAc-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 08:23:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oweff-0002ER-Fj; Sun, 20 Nov 2022 02:23:19 -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 1owefO-0002Df-GY for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 02:23:07 -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 1owefN-0007js-VV for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 02:23:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owefN-0001Oy-KR for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 02:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2022 07:23:01 +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.16689289485348 (code B ref 59388); Sun, 20 Nov 2022 07:23:01 +0000 Original-Received: (at 59388) by debbugs.gnu.org; 20 Nov 2022 07:22:28 +0000 Original-Received: from localhost ([127.0.0.1]:42225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oweeq-0001OB-8p for submit@debbugs.gnu.org; Sun, 20 Nov 2022 02:22:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oween-0001Nw-O2 for 59388@debbugs.gnu.org; Sun, 20 Nov 2022 02:22:26 -0500 Original-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 ) 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==; Original-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 ) id 1oweeg-000689-D2; Sun, 20 Nov 2022 02:22:19 -0500 In-Reply-To: (message from Jim Porter on Sat, 19 Nov 2022 15:06:14 -0800) 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:248396 Archived-At: > Date: Sat, 19 Nov 2022 15:06:14 -0800 > Cc: gregory@heytings.org, xerusx@pm.me, 59388@debbugs.gnu.org > From: Jim Porter > > 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?