mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 07:20:28 -08:00
(get-setf-method): Protect caller's match-data from string-match.
This commit is contained in:
parent
90bfea27cb
commit
ac05d33c67
1 changed files with 2 additions and 1 deletions
|
|
@ -1726,7 +1726,8 @@ a macro like `setf' or `incf'."
|
|||
method
|
||||
(error "Setf-method for %s returns malformed method"
|
||||
func)))
|
||||
(and (string-match "\\`c[ad][ad][ad]?[ad]?r\\'" name)
|
||||
(and (save-match-data
|
||||
(string-match "\\`c[ad][ad][ad]?[ad]?r\\'" name))
|
||||
(get-setf-method (compiler-macroexpand place)))
|
||||
(and (eq func 'edebug-after)
|
||||
(get-setf-method (nth (1- (length place)) place)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue