all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@deadspam.com>
Subject: Re: enhance just-one-space to act on regions
Date: 13 May 2002 06:32:26 +0800	[thread overview]
Message-ID: <m2it5txait.fsf@jidanni.org> (raw)
In-Reply-To: jed6w45ehi.fsf@sykes.suse.de

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

  reply	other threads:[~2002-05-12 22:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2002-05-13  9:44     ` Andreas Schwab
2002-05-12 22:32   ` Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2it5txait.fsf@jidanni.org \
    --to=jidanni@deadspam.com \
    --cc=kindly_remove_this_part_first_jidanni@ms46.hinet.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.