From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#59388: Open emacsclient file at last line Date: Sat, 19 Nov 2022 12:08:06 -0800 Message-ID: <4dff4be5-8c53-8d8b-e912-1cf2bb3dff98@gmail.com> References: <835yfb7xo6.fsf@gnu.org> <518ded72c33c3608e35a@heytings.org> <83zgcm7rfg.fsf@gnu.org> <518ded72c37782cf8af5@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: xerusx@pm.me, 59388@debbugs.gnu.org To: Gregory Heytings , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 21:09:16 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 1owU9M-0003Qw-JX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 21:09:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owU9A-00012H-EO; Sat, 19 Nov 2022 15:09:04 -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 1owU98-00011r-VG for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 15:09:02 -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 1owU98-0001PU-NY for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 15:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owU98-0007gT-9M for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 15:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 20:09: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.166888850429494 (code B ref 59388); Sat, 19 Nov 2022 20:09:02 +0000 Original-Received: (at 59388) by debbugs.gnu.org; 19 Nov 2022 20:08:24 +0000 Original-Received: from localhost ([127.0.0.1]:41493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owU8T-0007fb-Sa for submit@debbugs.gnu.org; Sat, 19 Nov 2022 15:08:24 -0500 Original-Received: from mail-pg1-f171.google.com ([209.85.215.171]:46767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owU8O-0007fI-5V for 59388@debbugs.gnu.org; Sat, 19 Nov 2022 15:08:20 -0500 Original-Received: by mail-pg1-f171.google.com with SMTP id 62so7802457pgb.13 for <59388@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) Original-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) Content-Language: en-US In-Reply-To: <518ded72c37782cf8af5@heytings.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:248376 Archived-At: 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...