From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Patch to change just-one-space Date: Tue, 23 Nov 2010 09:29:49 +0100 Message-ID: <87fwusjvcy.fsf@member.fsf.org> References: <7b501d5c0908131337g300e8895i465719007e29074c@mail.gmail.com> <7b501d5c0908131630j73f0cda2le909dfe7248d9516@mail.gmail.com> <7b501d5c0912311255w62051104i76e784d23c0be207@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290501005 3679 80.91.229.12 (23 Nov 2010 08:30:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2010 08:30:05 +0000 (UTC) Cc: Daniel Colascione , Deniz Dogan , xahlee@gmail.com, Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 23 09:30:00 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKoGG-0004nK-00 for ged-emacs-devel@m.gmane.org; Tue, 23 Nov 2010 09:30:00 +0100 Original-Received: from localhost ([127.0.0.1]:59807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKoGE-00068y-Vr for ged-emacs-devel@m.gmane.org; Tue, 23 Nov 2010 03:29:59 -0500 Original-Received: from [140.186.70.92] (port=44700 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKoG9-00068p-FW for emacs-devel@gnu.org; Tue, 23 Nov 2010 03:29:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKoG7-0007b1-G8 for emacs-devel@gnu.org; Tue, 23 Nov 2010 03:29:53 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:3198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKoG7-0007ag-BL for emacs-devel@gnu.org; Tue, 23 Nov 2010 03:29:51 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 397EF7801580; Tue, 23 Nov 2010 09:29:50 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04539-02; Tue, 23 Nov 2010 09:29:49 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 79C0C780152D; Tue, 23 Nov 2010 09:29:49 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Mon, 22 Nov 2010 17:16:07 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133044 Archived-At: Stefan Monnier writes: >> Attached is a bzr bundle which does this. If the user passes the >> argument -N, it will remove any whitespace characters (spaces, tabs, >> carriage returns, newlines) and leave N spaces. Unfortunately I >> couldn't think of a good way to make e.g. "M-- M-0 M-SPC" leave 0 >> spaces. > > Any objection to such a change? Removing newlines sounds OK to me, but > I don't use just-one-space, so I don't have a good feeling for what > other useful meaning could be used for a negative argument. I'd highly appreciate such a change. The last week I had to paste tons of Java code into several LaTeX listings and I used `just-one-space' and `kill-line' gazillions of times to reformat it. And since C-u -1 M-SPC for any negative number is equivalent to C-u 0 M-SPC, I don't think it won't have big impact, at least not in interactive usage. And inside the emacs code base, there is only one call to `just-one-space' with an argument (emulation/cua-rect.el), but that uses an explitit arg of 0. Bye, Tassilo