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 13:56:47 +0200 Message-ID: <87bkw3rm4i.fsf@gnu.org> References: <874k1v0yb3.fsf@gnus.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="32384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.19; emacs 29.0.50 Cc: 19267@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 14:07:12 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 1np7b5-0008BE-SR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 14:07:12 +0200 Original-Received: from localhost ([::1]:48184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np7b4-0000zj-DR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 08:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np7aw-0000yi-Ch for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 08:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45985) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np7aw-0000qT-2L for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 08:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1np7av-0001Te-T5 for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 08:07: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 12:07: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.16523571945598 (code B ref 19267); Thu, 12 May 2022 12:07:01 +0000 Original-Received: (at 19267) by debbugs.gnu.org; 12 May 2022 12:06:34 +0000 Original-Received: from localhost ([127.0.0.1]:39876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np7aU-0001SE-11 for submit@debbugs.gnu.org; Thu, 12 May 2022 08:06:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1np7aS-0001Rx-VU for 19267@debbugs.gnu.org; Thu, 12 May 2022 08:06:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np7aN-0000kM-Np; Thu, 12 May 2022 08:06:27 -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=gwjAWm07P5YHFYitZIqTjj1ocjQGma5FpcRzSepnmaU=; b=qe8Pt3ogi9rSpx igZZOdH++rTuwCJp949/akq/XIqSW8ZbWvZkmw6UsrZc4waECxABfm+1xOjvN0MUEp+vIgPGPcEtU /UfGOZdykIilUfakJe++iGA4tAxk9CYamy3Hp9gYS+9bqbIwbHLSGzvk0q1tXaAyC2g6m+0//urzj Fhc7tcRxmOsAYspMw3yUidmfpTii6XfVu94mJcaE4kR5kMU499/TO/OQ3PI83wmgqAteyiLUyjKYq L9e4Hc378Xu36tDNtU6Ofv5q76zozdTPJZoiTB3JqOu9hh5CwIgEqtswCS0Yf8hc9pRHHiYKHQKoB 9HuBFKwohCqxA3V2XPPg==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:52893) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np7aK-00078B-Jp; Thu, 12 May 2022 08:06:26 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 2DD9A27C0054; Thu, 12 May 2022 08:06:23 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 12 May 2022 08:06:23 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeejgdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepud ejtdehuddvleffjeekteegvdehleehvdeufefhueekkeekhedvgfeggeffvefgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 May 2022 08:06:22 -0400 (EDT) In-reply-to: <874k1v0yb3.fsf@gnus.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:232039 Archived-At: Hi Lars, > Hm, yes, that might be good. If the list of cycled actions gets to > long, it's no longer convenient. So for myself, I'd probably have > > (just-one-space-including-newlines delete-after-space restore-original) > > and then `M-SPC' would do what I wanted in 99% of the time (with my > usage patterns). (We could also add target actions like `no-space' > and `no-space-before-point' (i.e., the `M-\' actions).) > > So perhaps we could change the `M-SPC' binding to a new > `cycle-spacing-command' that, by default, does exactly what > `just-one-space' does now (so that there will be no user visible > changes; i.e., it doesn't cycle because cycle-spacing-actions will be > just (just-one-space)). But then users can customize it and add the > actions they want in a convenient way. Ah, compatibility questions... I'd say just create a cycle-spacing-actions defcustom and use that in the existing cycle-spacing instead of the hard-coded sequence. And bind M-SPC to cycle-spacing by default because it's simply superior (a super-set) of just-one-space. I mean, how would people discover the possibility of customizing cycle-spacing-actions if not by checking the info docs and/or NEWS (where cycle-spacing is already mentioned as a more powerful just-one-space alternative)? And nobody would look in there if the default behavior is just-one-space. We need a disruptive change! :-) But that's just me. Bye, Tassilo