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: Peter Tury
Subject: Re: removing spaces from a string
Date: Wed, 19 Apr 2006 15:06:32 GMT
User-agent: 40tude_Dialog/2.0.15.1

On Wed, 19 Apr 2006 14:49:37 +0200, Pascal Bourguignon wrote:

> David Kastrup <address@hidden> writes:
>> Peter Tury <address@hidden> writes:
>>> On Wed, 19 Apr 2006 12:01:21 +0200, LENNART BORGMAN wrote:
>>>> Maybe use replace-regexp-in-string?
>>>
>> (concat (delq ?\  (append "This is a string" nil)))
>>
> Merely:  (delete ?  "ab cd  ef") --> "abcdef"

Thanks for all the good, the nicer and the even nicer solutions :-))

I didn't hope that I can learn such many things from such a simple problem.

And finally I found them (delq and delete) at the list functions'
description in the elisp manual (I checked only the string, the array and
sequence functions before posting my original question :-(

How to interpret ?\ ? Where can I learn about this?

Thanks again!!
P


reply via email to

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