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#73284: [PATCH] Add option to push mark after delete-pair Date: Mon, 16 Sep 2024 14:44:10 +0300 Message-ID: <86setzddrp.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73284@debbugs.gnu.org To: Paul Nelson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 16 13:45:05 2024 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 1sqAAD-0004cU-Fm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Sep 2024 13:45:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqA9z-00086a-M1; Mon, 16 Sep 2024 07:44:51 -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 1sqA9y-00086B-G7 for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 07:44:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqA9w-0005Cn-LK for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 07:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=l41dKTgPG3nK67AZQhGINj4nah6PoIyHmWBksbvnHyY=; b=Nm5xrjQWzwIboJxc2QRtpBqJh8VSckgReOENUVJWOHmGDz2cz74s69b5GhSOaf4aL006JAsQTSIm+hCOu7K10ZFF3J3ylsdVmcGby0u6csTUvh6VByRIHMz4ek2lrYsItfo94YYGDaa5j/dhvXlWjfp9RP3SjMepAYwxBksOemQCBwRjQC6DrYG+1pecN2bsBYUcBBSXSUnYhxk2wR+lfOSl+HplkXUW5eo2YDSYkx2LTxXiueg5Unn1ApjMw7m5pI4mZ+MOkQMbfxe6wgtdyAZaj4qkWaGBJ36GJrr5UNenaErhUrKatIKWCxAvnRzxqcrdoA14rL83ynK6Fk5KxA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqAA9-0002HW-QX for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 07:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2024 11:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73284 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73284-submit@debbugs.gnu.org id=B73284.17264870998748 (code B ref 73284); Mon, 16 Sep 2024 11:45:01 +0000 Original-Received: (at 73284) by debbugs.gnu.org; 16 Sep 2024 11:44:59 +0000 Original-Received: from localhost ([127.0.0.1]:51188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqAA6-0002H1-RU for submit@debbugs.gnu.org; Mon, 16 Sep 2024 07:44:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqAA5-0002Gl-As for 73284@debbugs.gnu.org; Mon, 16 Sep 2024 07:44:57 -0400 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 1sqA9m-0005CE-Bk; Mon, 16 Sep 2024 07:44:38 -0400 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=l41dKTgPG3nK67AZQhGINj4nah6PoIyHmWBksbvnHyY=; b=MJnWhUt1e2WR YAgMJfbMSXLlh2ilSA3ZYnnEH7rUo5X16pPG+bpy0+Y633Z/ehRLlpaoTZ6X67NHSka5FPcJNMVj/ 24vPsW3DL2o5kY0Ta/GTU9n5jlF1HEAydcDWU32duE9Kv3sS7U+5/lkE+LLPNSuyS2JzWPC3MSndq QcscAxUOlPYNK+l8V8Uao8U8mCtFJoznI6Esx5gEY21jArD3pMTcxBo8eB90d8c3vvKidMemLlPk4 Sp0bkLWMs6Bgzd6rl2TfVzNZxLH+vKTgCFXuOYqZemYRV4NkL0aNRAqS7IZQKJ3n9XLV3ogLwtBT+ GlOAOhyrk3eEFAjN++bisg==; In-Reply-To: (message from Paul Nelson on Sun, 15 Sep 2024 22:58:09 +0200) 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:291883 Archived-At: > From: Paul Nelson > Date: Sun, 15 Sep 2024 22:58:09 +0200 > > The delete-pair command from lisp.el deletes a matched pair of > delimiters. After using this command, I often want to operate on the > region enclosed by the deleted delimiters. As far as I know, there's > currently no quick way to access the end of that region. > > This patch introduces a custom option, delete-pair-push-mark. When > enabled, it causes delete-pair to push a mark at the end of the > enclosed region. > > This opens up various workflows. For instance, after deleting a pair, > we can use C-x C-x to highlight the region and act on it further. Shouldn't this activate the region, instead of forcing users to do that manually? Users that have transient-mark-mode enabled (which is ON by default), will expect that, I think. > To err on the side of caution, I hid the new behavior behind a user > option, disabled by default. I could just as well see it being turned > on by default (or getting rid of the user option, making the new > behavior "mandatory"), and am open to suggestions/feedback. I don't think doing this by default is a good idea. Such significant changes in behavior are better off starting disabled. Let's see what others think about such optional behavior. Thanks.