[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-from-minibuffer & match data
From: |
Stefan Monnier |
Subject: |
Re: read-from-minibuffer & match data |
Date: |
Tue, 18 Dec 2012 19:48:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> I've put a save-match-data into the function to solve the issue, but I'd
> just like to make sure this isn't a bug in emacs.
No, you've just been lucky until now. The general rule is that any
function is liable to thrash the match-data, except for some exceptions,
most of which are primitives such as car/cdr/aset/aref, match-string,
etc...
Stefan