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:
parent
98c2d75a15
commit
15eeabfd53
1 changed files with 3 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue