unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Wu <peterwu@hotmail.com>
Subject: Re: string func to use in .emacs
Date: Sun, 25 Jan 2004 19:26:35 -0500	[thread overview]
Message-ID: <87brorzhac.fsf@tulip.whu.ca> (raw)
In-Reply-To: 87fze3orby.fsf@gmx.de

On Sun, 25 Jan 2004 18:45:05 +0100, Mario Domgörgen wrote:

> Peter Wu <peterwu@hotmail.com> writes:
>> What I am looking for is like this:
>> 
>> input    := "Emacs "
>> output   := "Emacs"    
>> 
>> The trailing blank space is trimmed.

> ,----[ C-h f delete-trailing-whitespace RET ]
> | delete-trailing-whitespace is an interactive compiled Lisp function in
> | `simple'.  (delete-trailing-whitespace)
> | 
> | Delete all the trailing whitespace across the current buffer.  All
> | whitespace after the last non-whitespace character in a line is
> | deleted.  This respects narrowing, created by C-x n n and friends.  A
> | formfeed is not considered whitespace by this function.
> | 
> | [back]
> `----

> Look at this function to start with....

This function seems to trim the trailing whitespaces in a buffer. How can
I use it to trim a string variable?

-- 
       ,,,
      (o o)       Peter Wu
---ooO-(_)-Ooo--- Powered by GNU/Linux 2.4.22

  reply	other threads:[~2004-01-26  0:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-25  5:11 string func to use in .emacs Peter Wu
2004-01-25  6:31 ` Eli Zaretskii
     [not found] ` <mailman.1300.1075012227.928.help-gnu-emacs@gnu.org>
2004-01-25 14:21   ` Peter Wu
2004-01-25 17:45     ` Mario Domgörgen
2004-01-26  0:26       ` Peter Wu [this message]
2004-01-26  0:44         ` Jesper Harder
2004-01-26  3:16           ` Peter Wu
2004-01-26  3:57             ` Jesper Harder
2004-01-26 14:55               ` Peter Wu
2004-01-26  7:03             ` Eli Zaretskii
2004-01-25 17:59     ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87brorzhac.fsf@tulip.whu.ca \
    --to=peterwu@hotmail.com \
    /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.
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).