Fix edebug parsing of .,
* lisp/emacs-lisp/edebug.el (edebug-next-token-class): Parse ., correctly (bug#37653).
This commit is contained in:
parent
d60d96ffa0
commit
d181e410fc
2 changed files with 10 additions and 1 deletions
|
@ -675,7 +675,7 @@ Maybe clear the markers and delete the symbol's edebug property?"
|
||||||
(or (and (eq (aref edebug-read-syntax-table (following-char))
|
(or (and (eq (aref edebug-read-syntax-table (following-char))
|
||||||
'symbol)
|
'symbol)
|
||||||
(not (= (following-char) ?\;)))
|
(not (= (following-char) ?\;)))
|
||||||
(memq (following-char) '(?\, ?\.)))))
|
(eq (following-char) ?.))))
|
||||||
'symbol
|
'symbol
|
||||||
(aref edebug-read-syntax-table (following-char))))
|
(aref edebug-read-syntax-table (following-char))))
|
||||||
|
|
||||||
|
|
|
@ -1104,5 +1104,14 @@ This avoids potential duplicate definitions (Bug#41988)."
|
||||||
(edebug-initial-mode 'Go-nonstop))
|
(edebug-initial-mode 'Go-nonstop))
|
||||||
(eval-buffer))))
|
(eval-buffer))))
|
||||||
|
|
||||||
|
(ert-deftest edebug-test-dot-reader ()
|
||||||
|
(with-temp-buffer
|
||||||
|
(insert "(defun x () `(t .,t))")
|
||||||
|
(goto-char (point-min))
|
||||||
|
(should (equal (save-excursion
|
||||||
|
(edebug-read-storing-offsets (current-buffer)))
|
||||||
|
(save-excursion
|
||||||
|
(read (current-buffer)))))))
|
||||||
|
|
||||||
(provide 'edebug-tests)
|
(provide 'edebug-tests)
|
||||||
;;; edebug-tests.el ends here
|
;;; edebug-tests.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue