help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing spaces from a string


From: LENNART BORGMAN
Subject: Re: removing spaces from a string
Date: Wed, 19 Apr 2006 12:01:21 +0200

From: Peter Tury <tury.peter@gmail.com>
Date: Wednesday, April 19, 2006 11:02 am
Subject: removing spaces from a string

> Hi,
> 
> how can I most simply remove all spaces from a string? I plan to 
> have a
> variable what holds the string, so functions what operates on regions,
> rectangles or any parts of a buffer, etc. are not good (I guess).
> 
> I would need something like this: (remove-all-space a-sting-var); 
> if e.g.
> (setq a-string-var "abcd ef   dg ") then this should return 
> "abcdefdg" what
> I will pass forward to another function (namely: process-send-string).
> 
> Thanks!
> P
> 

Maybe use replace-regexp-in-string?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]