all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: removing spaces from a string
@ 2006-04-19 10:01 LENNART BORGMAN
  0 siblings, 0 replies; 11+ messages in thread
From: LENNART BORGMAN @ 2006-04-19 10:01 UTC (permalink / raw)
  Cc: help-gnu-emacs

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?

^ permalink raw reply	[flat|nested] 11+ messages in thread
* removing spaces from a string
@ 2006-04-19  9:02 Peter Tury
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Tury @ 2006-04-19  9:02 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-04-19 19:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.561.1145441329.9609.help-gnu-emacs@gnu.org>
2006-04-19 10:43 ` removing spaces from a string Peter Tury
2006-04-19 11:42   ` David Kastrup
2006-04-19 12:49     ` Pascal Bourguignon
2006-04-19 13:11       ` David Kastrup
2006-04-19 15:06       ` Peter Tury
2006-04-19 15:39         ` Giorgos Keramidas
2006-04-19 16:02           ` Peter Tury
2006-04-19 19:30         ` Pascal Bourguignon
2006-04-19 17:30   ` Eli Zaretskii
2006-04-19 10:01 LENNART BORGMAN
  -- strict thread matches above, loose matches on Subject: below --
2006-04-19  9:02 Peter Tury

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.