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: Sun, 21 May 2023 17:56:54 +0300 Message-ID: References: <86jzxwuedr.fsf@mail.linkov.net> <83o7miw2qk.fsf@gnu.org> <831qjarzsk.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="675"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: drew.adams@oracle.com, zkanfer@gmail.com, juri@linkov.net, ruijie@netyu.xyz, monnier@iro.umontreal.ca, eliz@gnu.org To: 62892@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 21 16:58:28 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 1q0kVv-000AXE-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 May 2023 16:58:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0kVY-0001nf-1B; Sun, 21 May 2023 10:58:04 -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 1q0kVW-0001nQ-MF for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 10:58:02 -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 1q0kVW-0005En-Ei for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0kVW-0007u3-Aa for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 10:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 May 2023 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62892 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: drew.adams@oracle.com, Zachary Kanfer , juri@linkov.net, ruijie@netyu.xyz, Stefan Monnier , Eli Zaretskii , 62892@debbugs.gnu.org Original-Received: via spool by 62892-submit@debbugs.gnu.org id=B62892.168468102230286 (code B ref 62892); Sun, 21 May 2023 14:58:02 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 21 May 2023 14:57:02 +0000 Original-Received: from localhost ([127.0.0.1]:60963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0kUY-0007sQ-D2 for submit@debbugs.gnu.org; Sun, 21 May 2023 10:57:02 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:60104 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0kUW-0007rx-R8 for 62892@debbugs.gnu.org; Sun, 21 May 2023 10:57:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1684681020; bh=bjxJI4G8/O2ZWrWqdjVqnOO3Hmeba49I9gb+08lcUh4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=l+LCU1oHCERaHYNjThN5tL/rjm0ie6GGFFjh1Kyturnb/Kgg4kubX0Fp53k/GRNfX UZSM0HKPObHk0dUac2zJHlspEZ6hRjCtTeOenLMfbeWSKTALjZkWMxECJST+J6ixs0 +QVR8sz2qKIF9eKeAwUwa7Ov2doy/tsP3H2ENKPH6z67MHXYwwElM5dl6udmsWjzya lu2qkxhfQQQfQgq/f6X7StO+dmD2LsNzMznSgv3YZGldMzSfuJZKHFIVQH+zvF06jB neentlizlb0sOe1jQe4aZmuKB/1niv3waZmyJt7ieATS66sVB+2rtMTD1z42OiJxgR qBeyMkzUJxEpA== In-Reply-To: (Stefan Monnier via's message of "Sun, 21 May 2023 10:31:41 -0400") 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:262107 Archived-At: One data point that I think is worth taking into consideration: Currently, `mark-sexp` and `mark-defun` are not consistent with each other. This can be seen in the following example: --8<---------------cut here---------------start------------->8--- (foo) (bar) (baz) --8<---------------cut here---------------end--------------->8--- With point before `(bar)`, doing `C-2 C-M-SPC C-- C-M-SPC` leaves only `(bar)` selected. OTOH, doing `C-2 C-M-h C-- C-M-h` leaves all three expressions selected. In contrast, the proposed `mark-sexp-forward` and `mark-defun-forward` are consistent with each other (both behave like `mark-defun` in the above example). I'm not sure if that's the preferred behavior, but I do think that consistently between the different marking commands is a good thing. -- Best, Eshel