From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15821: a better M-SPC Date: Sat, 16 Nov 2013 16:42:24 -0500 Message-ID: References: <2866409.xsAelUrJXd@toomas> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1384638196 27752 80.91.229.3 (16 Nov 2013 21:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2013 21:43:16 +0000 (UTC) Cc: 15821@debbugs.gnu.org To: Toomas Rosin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 16 22:43:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VhneB-0001n4-TN for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 22:43:20 +0100 Original-Received: from localhost ([::1]:37321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhneB-0004XN-Ej for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Nov 2013 16:43:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhne2-0004XE-7K for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 16:43:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vhndu-0000Uz-S6 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 16:43:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vhndu-0000Ut-OW for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 16:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vhndu-0004CW-57 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2013 16:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15821-submit@debbugs.gnu.org id=B15821.138463813816086 (code B ref 15821); Sat, 16 Nov 2013 21:43:01 +0000 Original-Received: (at 15821) by debbugs.gnu.org; 16 Nov 2013 21:42:18 +0000 Original-Received: from localhost ([127.0.0.1]:57542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhndB-0004BO-Qc for submit@debbugs.gnu.org; Sat, 16 Nov 2013 16:42:18 -0500 Original-Received: from relais.videotron.ca ([24.201.245.36]:15595) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vhnd8-0004BF-C4 for 15821@debbugs.gnu.org; Sat, 16 Nov 2013 16:42:14 -0500 Original-Received: from ceviche.home ([173.179.11.28]) by VL-VM-MR005.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MWD00D9MLMDGC30@VL-VM-MR005.ip.videotron.ca> for 15821@debbugs.gnu.org; Sat, 16 Nov 2013 16:42:13 -0500 (EST) Original-Received: by ceviche.home (Postfix, from userid 20848) id 8B1CC660A5; Sat, 16 Nov 2013 16:42:24 -0500 (EST) In-reply-to: <2866409.xsAelUrJXd@toomas> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80663 Archived-At: > I hope this is the right place for the following suggestion. It is. > My version of M-SPC is an improvement over the original Emacs one in > two respects: it operates both horizontally and vertically, and it > takes a numeric argument. See the docstring for details. I don't myself use M-SPC much and have never used its numeric argument, so I'd like to hear what other users have to say about your suggestion. Reading your docstring, I see the following changes: 1- On a non-empty blank line, leave exactly ARG spaces on it (without ARG, make it empty). 2- On an empty line, delete all blank lines above and below it, leaving ARG empty lines. 3- At the beginning or end of a non-blank line, delete all leading resp. trailing whitespace, leaving ARG (by default, zero) spaces. 4- Don't treat a negative ARG as meaning to also delete newlines. Point 4 sounds like an oversight (you don't yourself use that "negative ARG" feature, so you didn't bother to implement it), right? For points 1 to 3, the main issue I see with them is that some people apparently tend to like M-SPC so much that they hit M-SPC when they just want to insert a SPC (Richard mentioned doing that, recently), so changing M-SPC so that it sometimes finishes with no space at point can be an annoyance. Stefan