bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enhance just-one-space to act on regions


From: Dan Jacobson
Subject: Re: enhance just-one-space to act on regions
Date: 13 May 2002 06:32:26 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

>>>>> "A" == Andreas Schwab <address@hidden> writes:

A> Dan Jacobson <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]