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: Andreas Schwab
Subject: Re: enhance just-one-space to act on regions
Date: Mon, 13 May 2002 11:44:43 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (ia64-suse-linux)

Dan Jacobson <jidanni@deadspam.com> writes:

|> >>>>> "A" == Andreas Schwab <schwab@suse.de> writes:
|> 
|> A> Dan Jacobson <jidanni@deadspam.com> 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.

Just set your fill-column big enough.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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