On Sun, 13 Mar 2005 15:52:24 -0600 Alan Wehmann <[EMAIL PROTECTED]> wrote:
> Stephen Berman <[EMAIL PROTECTED]> 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 _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs