From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: match-string debugging problem Date: Mon, 14 Mar 2005 20:32:03 +0100 Message-ID: <87fyyy2fd8.fsf@nolde.local.home> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110833880 24756 80.91.229.2 (14 Mar 2005 20:58:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 20:58:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 21:57:59 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAwPA-00032z-OM for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 21:43:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAweu-00087b-Sa for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 15:59:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DAwXH-0005PZ-Go for help-gnu-emacs@gnu.org; Mon, 14 Mar 2005 15:51:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DAwXD-0005NT-CN for help-gnu-emacs@gnu.org; Mon, 14 Mar 2005 15:51:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAwSp-00041H-Pf for help-gnu-emacs@gnu.org; Mon, 14 Mar 2005 15:46:59 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DAvrW-0004Ph-Rz for help-gnu-emacs@gnu.org; Mon, 14 Mar 2005 15:08:27 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DAvZs-00058X-PM for help-gnu-emacs@gnu.org; Mon, 14 Mar 2005 20:50:12 +0100 Original-Received: from pd957cb3b.dip0.t-ipconnect.de ([217.87.203.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2005 20:50:12 +0100 Original-Received: from Stephen.Berman by pd957cb3b.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Mar 2005 20:50:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd957cb3b.dip0.t-ipconnect.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24823 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24823 On Sun, 13 Mar 2005 15:52:24 -0600 Alan Wehmann wrote: > Stephen Berman 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 , which I load from my init-file. The bug has now been fixed in the current CVS version of tabbar.el. Steve Berman