From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: remove extra whitespace on a line Date: Sat, 2 Dec 2006 09:26:57 -0600 Organization: UseNetServer.com Message-ID: <91cbe$45719b46$49fa5a3$14481@DIALUPUSA.NET> References: <87slfyu6er.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165074085 32279 80.91.229.2 (2 Dec 2006 15:41:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 15:41:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 16:41:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqWzS-00059A-Cv for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 16:41:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqWzR-00019Q-Qx for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 10:41:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wns13feed!worldnet.att.net!208.49.83.154!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 51 Original-X-Trace: 91cbe45719b46a13a000614481 Original-Xref: shelby.stanford.edu gnu.emacs.help:143603 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39206 Archived-At: One method not mentioned: Highlight line Menu bar > Edit > Fill "Perry Smith" wrote in message news:mailman.1429.1165067469.2155.help-gnu-emacs@gnu.org... 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