From: Perry Smith <pedz@easesoftware.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: remove extra whitespace on a line
Date: Sat, 2 Dec 2006 07:50:50 -0600 [thread overview]
Message-ID: <AFF7701D-E896-4F24-82A1-43AA86AE0843@easesoftware.com> (raw)
In-Reply-To: <87slfyu6er.fsf@offby1.atm01.sea.blarg.net>
[-- Attachment #1.1: Type: text/plain, Size: 977 bytes --]
On Dec 2, 2006, at 1:02 AM, Eric Hanchrow wrote:
>
> Suppose I have a line like this.
> How can I remove the extra spaces from the line? So that I end
> up with
> this:
>
> Suppose I have a line like this.
>
> Exactly like fill-paragraph, but I do not want to "fill" the
> paragraph,
> only the current line. Is there an Emacs function to do this?
>
> Not that I know of, but it'd be very easy to create one with a macro,
> or Emacs Lisp.
>
> Just narrow to the line, then fill paragraph.
There is a fill-region-as-paragraph command. check it out. The key
sequence
would be to go to the beginning of the line, mark, go to the end of
the line, then
fill-region-as-paragraph.
Also, its quicker for you to type ^h a fill (apropos fill) and scan
the results.
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )
Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
[-- Attachment #1.2: Type: text/html, Size: 6822 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-12-02 13:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 6:27 remove extra whitespace on a line Greg Bognar
2006-12-02 6:46 ` Chris Menzel
2006-12-02 7:01 ` Herbert Euler
2006-12-02 7:02 ` Eric Hanchrow
2006-12-02 8:43 ` Dieter Wilhelm
2006-12-02 13:50 ` Perry Smith [this message]
[not found] ` <mailman.1429.1165067469.2155.help-gnu-emacs@gnu.org>
2006-12-02 15:26 ` B. T. Raven
2006-12-02 8:20 ` roodwriter
[not found] <mailman.1421.1165042886.2155.help-gnu-emacs@gnu.org>
2006-12-02 12:15 ` Markus Triska
2006-12-02 12:55 ` David Hansen
[not found] ` <mailman.1428.1165064915.2155.help-gnu-emacs@gnu.org>
2006-12-02 17:40 ` Greg Bognar
2006-12-02 17:58 ` Markus Triska
2006-12-02 19:49 ` David Hansen
2006-12-02 20:52 ` Dieter Wilhelm
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=AFF7701D-E896-4F24-82A1-43AA86AE0843@easesoftware.com \
--to=pedz@easesoftware.com \
--cc=help-gnu-emacs@gnu.org \
/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.