From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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: Wed, 31 May 2023 23:54:48 -0400 Message-ID: References: <86jzxwuedr.fsf@mail.linkov.net> <83ttvzlj88.fsf@gnu.org> <83mt1kg15o.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25713"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rms@gnu.org, Zachary Kanfer , juri@linkov.net, ruijie@netyu.xyz, 62892@debbugs.gnu.org, drew.adams@oracle.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 01 05:56:32 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 1q4ZQN-0006Qb-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jun 2023 05:56:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4ZQ3-00058Z-R2; Wed, 31 May 2023 23:56:13 -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 1q4ZPu-000581-Cf for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 23:56:03 -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 1q4ZPu-0002BB-4T for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 23:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q4ZPt-0000gU-W2 for bug-gnu-emacs@gnu.org; Wed, 31 May 2023 23:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jun 2023 03:56: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.16855917042538 (code B ref 62892); Thu, 01 Jun 2023 03:56:01 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 1 Jun 2023 03:55:04 +0000 Original-Received: from localhost ([127.0.0.1]:36636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4ZOw-0000ek-J6 for submit@debbugs.gnu.org; Wed, 31 May 2023 23:55:04 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q4ZOr-0000e6-1S for 62892@debbugs.gnu.org; Wed, 31 May 2023 23:55:01 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B55581000DD; Wed, 31 May 2023 23:54:51 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8D614100054; Wed, 31 May 2023 23:54:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1685591690; bh=3R4DTmj9NP40s0mbev2XUyMFS9hY6Ue0gMeHQdHySKE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GAEwdpUJVOQNHNh6XRaumaBLC8biTafQViiMD9sLbOdTuN7H/CdocvPiLXoW6efnQ YVtVzceZJVA+cztWtCY0m9zYyCJ8SCD9D5K1amtV/j7vDDPVFuFjpzap0bCaWP143d +d4KvDhmKDf0M6RMlcs1jAavyLIjtK3sfTmgiG76uy3umP+2X2yH8c2Hi/28QpE837 D1rEAOgWQkOB2d0b2NekWjYvlMwQv5Wj3FQcPK6doVfGbmbERzrBfaVFFt1UtMhb1U 5fMd9lxtvoA6akvlv0c0EI0hDVsz4g6vhCBpn7F2FGW9tqKWZFWYlFUHUNW9/Z2eOV qXQv4G28EAmGQ== Original-Received: from pastel (unknown [167.88.20.246]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2D7F4120420; Wed, 31 May 2023 23:54:50 -0400 (EDT) In-Reply-To: <83mt1kg15o.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 31 May 2023 15:01:39 +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:262684 Archived-At: >> #2 and #3 I believe can be considered together. There are a few things >> that could do this, but I think >> what you're saying is that this function should *only* move mark.That is, >> point should stay the same no >> matter what is called here. Additionally, it should activate mark. Is that what you meant? > > No, it should only move point, not the mark. The mark should stay > where point was before invoking the command. Hmm? Really? That would make it equivalent to `forward-sexp`, no? > This is correct, but only for commands that do something with the text > in the region: limit search/replace to it, or spell-check the text in > it, etc. mark-sexp doesn't do anything like that, it actually > _modifies_ the region. So the fact that it changes its effect > depending on whether the region is active is IMO pretty confusing and > unexpected. Agreed, tho for `mark-sexp` when `transient-mark-mode` is enabled, it makes sense to treat "region not active" differently from "region active", since `mark-sexp` mostly moves the mark but when the region is not active, it means the mark is "an old obsolete mark" that the user may not remember any more. Stefan