Nathan Bird wrote:
Marco Baringer wrote:
Alberto Riva ariva@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
Yes, that seems to be the case. What I can't understand is why I never noticed this problem in XEmacs (I never use emacs) until I did a cvs update last week, and how can it still work on my laptop, where I have the same version of XEmacs and an older version of slime.el (that has the same call to match-string-no-properties). Anyway, thanks for the suggestion below.
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.