unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* enhance just-one-space to act on regions
@ 2002-05-10 11:14 Dan Jacobson
  2002-05-10 13:17 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Jacobson @ 2002-05-10 11:14 UTC (permalink / raw)


It was with a flash of light that I thought of
    ESC SPC runs the command just-one-space
    Delete all spaces and tabs around point, leaving one space.
could be "enhanced" to act on a region.
For instance I have this line
	pscoast  -R-30/30/-40/40   -Jm0.1i -B5 -N1/0.25tap     -W0.25p/255/255/255
well,   ^here I place a mark and then move the cursor to the end
of the line and hit M-SPC, and voila:
	pscoast -R-30/30/-40/40 -Jm0.1i -B5 -N1/0.25tap -W0.25p/255/255/255
Can you say "better living thru science"?

Sure, you are gonna show me how there already exits 13 ways to do
this, however I bet my keystrokes are less.  Anyways, I propose 'em,
you implement 'em. 
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: enhance just-one-space to act on regions
  2002-05-10 11:14 enhance just-one-space to act on regions Dan Jacobson
@ 2002-05-10 13:17 ` Andreas Schwab
  2002-05-12 22:32   ` Dan Jacobson
  2002-05-12 22:32   ` Dan Jacobson
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Schwab @ 2002-05-10 13:17 UTC (permalink / raw)
  Cc: gnu-emacs-bug

Dan Jacobson <jidanni@deadspam.com> writes:

|> It was with a flash of light that I thought of
|>     ESC SPC runs the command just-one-space
|>     Delete all spaces and tabs around point, leaving one space.
|> could be "enhanced" to act on a region.
|> For instance I have this line
|> 	pscoast  -R-30/30/-40/40   -Jm0.1i -B5 -N1/0.25tap     -W0.25p/255/255/255
|> well,   ^here I place a mark and then move the cursor to the end
|> of the line and hit M-SPC, and voila:
|> 	pscoast -R-30/30/-40/40 -Jm0.1i -B5 -N1/0.25tap -W0.25p/255/255/255
|> Can you say "better living thru science"?
|> 
|> Sure, you are gonna show me how there already exits 13 ways to do
|> this, however I bet my keystrokes are less.

You've lost.  M-q (fill-region).

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."

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: enhance just-one-space to act on regions
  2002-05-10 13:17 ` Andreas Schwab
  2002-05-12 22:32   ` Dan Jacobson
@ 2002-05-12 22:32   ` Dan Jacobson
  2002-05-13  9:44     ` Andreas Schwab
  1 sibling, 1 reply; 5+ messages in thread
From: Dan Jacobson @ 2002-05-12 22:32 UTC (permalink / raw)


>>>>> "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.  Therefore: needed!  Richard:
implement!
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: enhance just-one-space to act on regions
  2002-05-10 13:17 ` Andreas Schwab
@ 2002-05-12 22:32   ` Dan Jacobson
  2002-05-12 22:32   ` Dan Jacobson
  1 sibling, 0 replies; 5+ messages in thread
From: Dan Jacobson @ 2002-05-12 22:32 UTC (permalink / raw)


>>>>> "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.  Therefore: needed!  Richard:
implement!
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: enhance just-one-space to act on regions
  2002-05-12 22:32   ` Dan Jacobson
@ 2002-05-13  9:44     ` Andreas Schwab
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2002-05-13  9:44 UTC (permalink / raw)
  Cc: gnu-emacs-bug

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."

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-13  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-10 11:14 enhance just-one-space to act on regions Dan Jacobson
2002-05-10 13:17 ` Andreas Schwab
2002-05-12 22:32   ` Dan Jacobson
2002-05-12 22:32   ` Dan Jacobson
2002-05-13  9:44     ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).