From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: how to start the intel debugger with dgb in emacs Date: Mon, 09 Jul 2007 11:26:43 -0700 Organization: http://groups.google.com Message-ID: <1184005603.439574.148590@q75g2000hsh.googlegroups.com> References: <1183730000.715731.44240@n2g2000hse.googlegroups.com> <1183991345.522520.66020@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1184006435 27451 80.91.229.12 (9 Jul 2007 18:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2007 18:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 20:40:34 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I7y9x-0005Gw-Fq for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 20:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I7y9x-0001Oo-1x for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jul 2007 14:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1184005603 2866 127.0.0.1 (9 Jul 2007 18:26:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 9 Jul 2007 18:26:43 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=208.218.238.20; posting-account=zJ4b2Q0AAAB5wLprz3WGnkfVsRyuZtK0 Original-Xref: shelby.stanford.edu gnu.emacs.help:149979 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:45567 Archived-At: On Jul 9, 10:45 am, Eli Zaretskii wrote: > > From: Mirko > > Date: Mon, 09 Jul 2007 07:29:05 -0700 > > > > (defun string->strings (string &optional separator) > > > "Split the STRING into a list of strings. > > > It understands elisp style quoting within STRING such that > > > (string->strings (strings->string strs)) == strs > > > The SEPARATOR regexp defaults to \"\\s-+\"." > > > (let ((sep (or separator "\\s-+")) > > > (i (string-match "[\"]" string))) > > > (if (null i) (split-string string sep t) ; no quoting: easy > > > (append (unless (eq i 0) (split-string (substring string 0 i) sep t)) > > > (let ((rfs (read-from-string string i))) > > > (cons (car rfs) > > > (string->strings (substring string (cdr rfs)) > > > sep))))))) > > > I applied your patch, but my emacs complained about undefined variable > > string->strings. > > That's the additional function Nick sent in addition to the patch (see > above). You need to put it somewhere, e.g. in your .emacs file. dum, dum, di-dum, dum (sung with an appropriate tune). I am not an expert in patch, and something looked fishy. Now I understand. Thank you, and with apologies to Nick for misusing his patch.