Skip to content

Commit

Permalink
Fixed name capture from using 'uniq.
Browse files Browse the repository at this point in the history
Prevent 'ac-global-name from interning gensyms by first checking if a symbol is interned before adding "__" to the front.
  • Loading branch information
elliottslaughter committed Aug 12, 2008
1 parent 2be4450 commit d2eb6dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ac.scm
Expand Up @@ -320,7 +320,9 @@


(define (ac-global-name s)
(string->symbol (string-append "__" (symbol->string s))))
(if (equal? s (string->symbol (symbol->string s)))
(string->symbol (string-append "__" (symbol->string s)))
s))

(define (ac-var-ref s env)
(if (lex? s env)
Expand Down

0 comments on commit d2eb6dd

Please sign in to comment.