From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62892: proposal to extend mark-sexp to go forward and backward on command Date: Fri, 21 Apr 2023 10:24:16 +0300 Message-ID: References: <83a5z36n1t.fsf@gnu.org> <83mt314vlk.fsf@gnu.org> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30290"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Zachary Kanfer , juri@linkov.net, ruijie@netyu.xyz, Stefan Monnier , Lars Ingebrigtsen , 62892@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 21 09:25:22 2023 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 1ppl8z-0007jS-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Apr 2023 09:25:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppl8o-00074f-Al; Fri, 21 Apr 2023 03:25:10 -0400 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 1ppl8m-00074I-Kh for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 03:25:08 -0400 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 1ppl8g-0005n0-6o for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 03:25:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppl8f-0007Hd-Re for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 03:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Apr 2023 07:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62892 X-GNU-PR-Package: emacs Original-Received: via spool by 62892-submit@debbugs.gnu.org id=B62892.168206186727950 (code B ref 62892); Fri, 21 Apr 2023 07:25:01 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 21 Apr 2023 07:24:27 +0000 Original-Received: from localhost ([127.0.0.1]:39154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppl87-0007Gj-2K for submit@debbugs.gnu.org; Fri, 21 Apr 2023 03:24:27 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:40414 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppl85-0007Gb-0k for 62892@debbugs.gnu.org; Fri, 21 Apr 2023 03:24:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1682061864; bh=CGNwtgwn488LcHIGQRDRyWvKePgRfViUfYbRZzYDYqM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=eeCFjXIo2bwv+dGzhjb5TWidu8MnWc/5C5rMeQcv+DFr35qgGI3SGmyDe0YmDdXVI rWMQatrNu3LrqyhtcGpH6/hDH/jr/o7jZRTDK2kn5X1Y2lvBZiWF2P5Uq0IXj2lM20 y/oEH+Psu+zMbHW91fe73UauTwGTWXnRVffJhkzj7FfuI/vNrnxMo1/aEfQZts9lAM mWOZMMsNAa0NTwKwiPqEy4Owp06fcTq8w87xLJRktKJKLxa02EXpqE1xLk4TCYkzou AKHzeWhD4noDYZnM6O01gjnCP7k28LOjXZFRmAcnJKCUNa96eiuONze0ZqDrNwrqzR Vbt/A6YGlB/+A== In-Reply-To: <83mt314vlk.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Apr 2023 09:07:03 +0300") 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:260371 Archived-At: Eli Zaretskii writes: >> From: Zachary Kanfer >> Date: Fri, 21 Apr 2023 01:04:30 -0400 >> Cc: ruijie@netyu.xyz, 62892@debbugs.gnu.org, Juri Linkov >> >> It's able to be worked around, yes -- but I think it's easier to have separate methods for forward and >> backward, the way we do for so many other commands. For one, having separate functions makes it >> easier to start moving backward, (rather than giving a -1 prefix argument. > > Adding functions and commands is not free, it does come with a price: > they need to be documented in our two manuals (something your patch > neglected to do, btw), users need to learn them, etc. > > So I wonder whether on balance it is justified to add this. Lars, > Stefan: any comments or opinions? > > Does anyone else have an opinion? Not really a strong opinion, but just a couple of thoughts: - The ability to extend the selection forward and backward is a nice and desirable feature. - C-x C-x is a general mechanism that's useful in many situations and users are hopefully already familiar with it (although not necessarily aware of this specific use case, I wasn't!), so if it fits the bill it makes sense to reuse it rather than introducing new specialized commands. - Whatever decision is made with regards to mark-sexp, I think it should be consistent with similar marking commands. Notably, mark-word currently behaves like mark-sexp, and I think that adding e.g. mark-sexp-backward without also adding mark-word-backward would somewhat hinder consistency. Regards, Eshel