From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#19267: 25.0.50; Enhance cycle-spacing with a state where only whitespace after point is deleted Date: Thu, 12 May 2022 07:46:46 +0200 Message-ID: <87o803rv13.fsf@gnu.org> References: <831qwzqpei.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.19; emacs 29.0.50 Cc: Lars Ingebrigtsen , 19267@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 11:11:52 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 1np4rQ-0009Ii-FV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 11:11:52 +0200 Original-Received: from localhost ([::1]:35170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np4rP-0005LY-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 05:11:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np4b7-0003Vr-Uj for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 04:55:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np4b7-0001Ni-Lu for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 04:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1np4b7-00078Z-KP for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 04:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 08:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 19267-submit@debbugs.gnu.org id=B19267.165234565127312 (code B ref 19267); Thu, 12 May 2022 08:55:01 +0000 Original-Received: (at 19267) by debbugs.gnu.org; 12 May 2022 08:54:11 +0000 Original-Received: from localhost ([127.0.0.1]:39632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np4aI-00076S-Mt for submit@debbugs.gnu.org; Thu, 12 May 2022 04:54:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np4aH-000769-CZ for 19267@debbugs.gnu.org; Thu, 12 May 2022 04:54:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np4aB-0001Ip-Sn; Thu, 12 May 2022 04:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=FPJaS5O/HfyTBGns+xqjOFjCD17xI+Du+qL9puTNALo=; b=rdBG9Lg6/+jpeA sgmyynu6kgTWV2zeiDn9+T6Zdcp7cfT2eAEzjPxryzUUPTVstgvEs8lvZg4MV9lvNEOCwxCKbmVpO u1JjBURVVUNXYqFbd3gvZwrzxTC8+GARDsCtlvPzJfwT8kEdizE5c5a+d6mWGQs51oL1KLr1vjhjA rlCbX+SOTeSN8P0NGBLGuB42RzFrgLjMtsFG1nymyQZaDyUftL/x0D+qBDknmsyb3jog2Ne0WTVAK aDe4dbWWKsBl15JT3lT9+6SWh1S+/zle13YaSs/ygHPwSb7dnpRmZdIGuP/Nix+yBG+zwK9lH6zDC rNqtgiJ86hiwiqH2ocNA==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:51731) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np4aB-0006P9-Km; Thu, 12 May 2022 04:54:03 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 15F2727C005B; Thu, 12 May 2022 04:54:03 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 12 May 2022 04:54:03 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeejgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepud ejtdehuddvleffjeekteegvdehleehvdeufefhueekkeekhedvgfeggeffvefgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 May 2022 04:54:02 -0400 (EDT) In-reply-to: <831qwzqpei.fsf@gnu.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" Xref: news.gmane.io gmane.emacs.bugs:232026 Archived-At: Eli Zaretskii writes: >> We could implement this as a new third state for `cycle-spacing', and >> move the "restore" to the fourth state. Does anybody think that will >> be annoying for people? > > Is cycle-spacing bound to some key sequence in some modes? If so, we > should ask users of those modes, because as long as cycle-spacing can > only be invoked via M-x, I don't believe another state would matter > much. I think cycle-spacing is basically a more elaborate version of just-one-space so I expect many users have a remapping from just-one-space to cycle-spacing as I do. I think that has been part of the discussion back then and it's suggested in that way in NEWS.24: --8<---------------cut here---------------start------------->8--- ** New command `cycle-spacing' acts like a smarter `just-one-space'. When called in succession, it cycles between spacing conventions: one space, no spaces, original spacing. --8<---------------cut here---------------end--------------->8--- On a related note: I think next to the suggested "delete only spaces after point", the same with "before point" could also make sense in certain situations... Bye, Tassilo