From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: enhance just-one-space to act on regions Date: 13 May 2002 06:32:26 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: kindly_remove_this_part_first_jidanni@ms46.hinet.net NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021248030 25897 127.0.0.1 (13 May 2002 00:00:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 May 2002 00:00:30 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1773GQ-0006ja-00 for ; Mon, 13 May 2002 02:00:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1773Ge-00017P-00; Sun, 12 May 2002 20:00:44 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1773DF-00011w-00 for ; Sun, 12 May 2002 19:57:13 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1773DE-00074E-00 for gnu-emacs-bug@moderators.isc.org; Mon, 13 May 2002 01:57:12 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 13 May 2002 01:57:12 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 13 May 2002 01:57:12 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-47-208.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 25 X-Orig-NNTP-Posting-Host: 61-227-47-208.hinet-ip.hinet.net (61.227.47.208) X-Orig-X-Trace: fu-berlin.de 1021247832 20436954 61.227.47.208 (16 [99749]) X-Orig-Path: localhost.localdomain!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1315 >>>>> "A" == Andreas Schwab writes: A> Dan Jacobson writes: A> |> It was with a flash of light that I thought of A> |> ESC SPC runs the command just-one-space A> |> Delete all spaces and tabs around point, leaving one space. A> |> could be "enhanced" to act on a region. A> |> For instance I have this line A> |> pscoast -R-30/30/-40/40 -Jm0.1i -B5 -N1/0.25tap -W0.25p/255/255/255 A> |> well, ^here I place a mark and then move the cursor to the end A> |> of the line and hit M-SPC, and voila: A> |> pscoast -R-30/30/-40/40 -Jm0.1i -B5 -N1/0.25tap -W0.25p/255/255/255 A> |> Can you say "better living thru science"? A> |> A> |> Sure, you are gonna show me how there already exits 13 ways to do A> |> this, however I bet my keystrokes are less. A> You've lost. M-q (fill-region). Double checkmate, Holmes. fill-region could mess up shell scripts, e.g. the example above might get wrapped, whereas doing a [future] just-one-space on the region wouldn't. Therefore: needed! Richard: implement! -- http://jidanni.org/ Taiwan(04)25854780