[slime-devel] Re: match-string-no-properties missing?

Nathan Bird nathan at acceleration.net
Tue Dec 5 18:05:22 UTC 2006


Marco Baringer wrote:
> Alberto Riva <ariva at ufl.edu> writes:
>
>   
>> Hi,
>>
>> I recently updated to the latest slime from CVS, and now every time I
>> do a M-. I get an emacs message that says "Symbol's function
>> definition is void: match-string-no-properties."
>>
>> My emacs is XEmacs 21.4 (patch 15) (x86_64-redhat-linux, Mule). All
>> help appreciated! Thanks,
>>     
>
> using "GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0) of 2006-08-13"
> i have the match-string-no-properties function. is this then an emacs
> only function?
>
>   

XEmacs doesn't have that function, I solved it for the time being by 
adding the following snippet

(or (fboundp 'match-string-no-properties)
    (defun match-string-no-properties (number)
      "Return string of text matched by last search."
      (buffer-substring-no-properties (match-beginning number)
                                      (match-end number))))


I found somewhere on the web. It works for me. I haven't dug any further 
to find out if it is actually a suitable replacement or whether there 
are more errors waiting to happen.



More information about the slime-devel mailing list