all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
Subject: Re: match-string debugging problem
Date: Mon, 14 Mar 2005 20:32:03 +0100	[thread overview]
Message-ID: <87fyyy2fd8.fsf@nolde.local.home> (raw)
In-Reply-To: v0xvf7vz013.fsf@fsui03.fnal.gov

On Sun, 13 Mar 2005 15:52:24 -0600 Alan Wehmann <wehmann@fnal.gov> wrote:

> Stephen Berman <Stephen.Berman@gmx.net> writes:
>
>> There seems to be something about match-string that I don't
>> understand.  Here is an example of the kind of code I'm working with:
>> [...]
>> The last line indicates that match-string correctly matches the
>> strings that build mystring-list.  But when I step through the code
>> with edebug, match-string always returns nil and a wrong-type-argument
>> error is raised at the insert (since nil is not char-or-string-p).
>> [...]
>>
> I tried your example, with 
>
> GNU Emacs 21.2.2 (sparc-sun-solaris2.8, X toolkit) of 2005-02-10 on
> gax
>
> and also with
>
> XEmacs 21.4 (patch 15) "Security Through Obscurity" [Lucid]
> (sparc-sun-solaris2.8, Mule) of Fri Feb 11 2005 on gax
>
> When I put a breakpoint in Edebug after
>
> (match-string 1)
>
> I get the strings I expect to see.  Also, a breakpoint after 'elt' in
>
> 	(insert elt " ")
>
> behaves as I would expect & not as you describe.

Yes, the example was a red herring, because I had neglected to test it
with the default Emacs (using the -q command line option -- I thought
I had done so, but misremembered).  It turns out the bug wasn't in
Emacs but in tabbar.el <http://sourceforge.net/projects/emhacks/>,
which I load from my init-file.  The bug has now been fixed in the
current CVS version of tabbar.el.

Steve Berman

  reply	other threads:[~2005-03-14 19:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3303.1110470311.32256.help-gnu-emacs@gnu.org>
2005-03-10 17:06 ` match-string debugging problem Pascal Bourguignon
2005-03-10 22:27   ` Stephen Berman
     [not found]   ` <mailman.3372.1110495427.32256.help-gnu-emacs@gnu.org>
2005-03-10 23:40     ` Pascal Bourguignon
2005-03-11 22:18       ` Stephen Berman
2005-03-13 21:52 ` Alan Wehmann
2005-03-14 19:32   ` Stephen Berman [this message]
2005-03-10 15:18 Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fyyy2fd8.fsf@nolde.local.home \
    --to=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.