[Top][All Lists]

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

Re: removing spaces from a string

From: Peter Tury
Subject: Re: removing spaces from a string
Date: Wed, 19 Apr 2006 10:43:22 GMT
User-agent: 40tude_Dialog/

On Wed, 19 Apr 2006 12:01:21 +0200, LENNART BORGMAN wrote:

> From: Peter Tury <address@hidden>
> 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?

Thanks! I looked exactly for this one. Unfortunately I couldn't find it
(using C-h a ..., and browsing the emacs and elisp manuals... -- now I see
I should have used C-h d ...?)


reply via email to

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