diff options
| author | Stefan Kangas | 2019-09-14 01:49:23 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-09-26 18:37:23 +0200 |
| commit | 3cf8f9b1ec1a079f6cd1a127259414dcb0cf8672 (patch) | |
| tree | 46fc8387c4646496157be34117ff7a904338f1df /test/src | |
| parent | b94f01a6165908d9f8b0d48653fdc8d75be4dd08 (diff) | |
| download | emacs-3cf8f9b1ec1a079f6cd1a127259414dcb0cf8672.tar.gz emacs-3cf8f9b1ec1a079f6cd1a127259414dcb0cf8672.zip | |
Remove support for destructive splicing in elisp
* src/lread.c (read1): Don't handle destructive splicing in
backquote expressions (e.g. ",.<identifier>"). (Bug#19790)
(syms_of_lread): Remove Qcomma_dot.
* src/print.c (print_object): Don't check for Qcomma_dot.
* test/src/eval-tests.el
(eval-tests-19790-backquote-comma-dot-substitution): New test.
* etc/NEWS: Announce it.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/eval-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/eval-tests.el b/test/src/eval-tests.el index 48295b81fa3..7a8eae82cf9 100644 --- a/test/src/eval-tests.el +++ b/test/src/eval-tests.el | |||
| @@ -169,4 +169,11 @@ are found on the stack and therefore not garbage collected." | |||
| 169 | "Remove the Lisp reference to the byte-compiled object." | 169 | "Remove the Lisp reference to the byte-compiled object." |
| 170 | (setf (symbol-function #'eval-tests-33014-func) nil)) | 170 | (setf (symbol-function #'eval-tests-33014-func) nil)) |
| 171 | 171 | ||
| 172 | (defun eval-tests-19790-backquote-comma-dot-substitution () | ||
| 173 | "Regression test for Bug#19790. | ||
| 174 | Don't handle destructive splicing in backquote expressions (like | ||
| 175 | in Common Lisp). Instead, make sure substitution in backquote | ||
| 176 | expressions works for identifiers starting with period." | ||
| 177 | (should (equal (let ((.x 'identity)) (eval `(,.x 'ok))) 'ok))) | ||
| 178 | |||
| 172 | ;;; eval-tests.el ends here | 179 | ;;; eval-tests.el ends here |