[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to start the intel debugger with dgb in emacs
From: |
Mirko |
Subject: |
Re: how to start the intel debugger with dgb in emacs |
Date: |
Mon, 09 Jul 2007 11:26:43 -0700 |
User-agent: |
G2/1.0 |
On Jul 9, 10:45 am, Eli Zaretskii <e...@gnu.org> wrote:
> > From: Mirko <mvuko...@nycap.rr.com>
> > 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.