From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: removing spaces from a string Date: Wed, 19 Apr 2006 09:02:19 GMT Organization: Nokia Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145439679 9671 80.91.229.2 (19 Apr 2006 09:41:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 09:41:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 11:41:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FW9BI-0004De-Jt for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 11:41:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW9BI-00044m-3k for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 05:41:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsfeed2.funet.fi!newsfeed3.funet.fi!newsfeeds.funet.fi!195.197.54.118.MISMATCH!feeder2.news.jippii.net!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 12 Original-NNTP-Posting-Host: 172.24.170.105 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news2.nokia.com 1145437339 172.24.170.105 (Wed, 19 Apr 2006 12:02:19 EET DST) Original-NNTP-Posting-Date: Wed, 19 Apr 2006 12:02:19 EET DST Original-Xref: shelby.stanford.edu gnu.emacs.help:138832 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34450 Archived-At: 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