1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 06:20:23 +02:00

Don't accept backquote/unquote/unquote-splicing any longer in elisp.

The real names \`, \, and \,@ should be used instead and are returned
now by the real reader.

* module/language/elisp/compile-tree-il.scm: Only accept correct names.
This commit is contained in:
Daniel Kraft 2009-08-27 16:19:03 +02:00
parent 98c2d75a15
commit 15eeabfd53

View file

@ -71,20 +71,14 @@
; named differently; to make easy adaptions, we define these predicates checking
; for a symbol being the car of an unquote/unquote-splicing/backquote form.
; FIXME: Remove the quasiquote/unquote/unquote-splicing symbols when real elisp
; reader is there.
(define (backquote? sym)
(and (symbol? sym) (or (eq? sym 'quasiquote)
(eq? sym '\`))))
(and (symbol? sym) (eq? sym '\`)))
(define (unquote? sym)
(and (symbol? sym) (or (eq? sym 'unquote)
(eq? sym '\,))))
(and (symbol? sym) (eq? sym '\,)))
(define (unquote-splicing? sym)
(and (symbol? sym) (or (eq? sym 'unquote-splicing)
(eq? sym '\,@))))
(and (symbol? sym) (eq? sym '\,@)))
; Build a call to a primitive procedure nicely.