Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail trans for let form #1

Open
conao3 opened this issue Jun 22, 2020 · 1 comment
Open

Fail trans for let form #1

conao3 opened this issue Jun 22, 2020 · 1 comment

Comments

@conao3
Copy link

conao3 commented Jun 22, 2020

Hi!
This package is very useful!

I found cl-libify fail its trans for let form so I report that.

(let ((items '(elpa melpa celpa)))
  (let ((first  (nth 0 items))
        (second (nth 1 items))
        (third  (nth 2 items)))
    (list first second third)))
;;=> (elpa melpa celpa)

;; mark and `M-x cl-libify'
(let ((items '(elpa melpa celpa)))
  (let ((cl-first  (nth 0 items))
        (cl-second (nth 1 items))
        (cl-third  (nth 2 items)))
    (list first second third)))
;;=> Debugger entered--Lisp error: (void-variable first)
;;     (list first second third)
;;     (let ((cl-first (nth 0 items)) (cl-second (nth 1 items)) (cl-third (nth 2 items))) (list first second third))
;;     (let ((items (quote (elpa melpa celpa)))) (let ((cl-first (nth 0 items)) (cl-second (nth 1 items)) (cl-third (nth 2 items))) (list first second third)))
;;     eval((let ((items (quote (elpa melpa celpa)))) (let ((cl-first (nth 0 items)) (cl-second (nth 1 items)) (cl-third (nth 2 items))) (list first second third))) nil)
;;     scratch-comment--elisp--eval-last-sexp(t)
;;     scratch-comment--eval-last-sexp(t)
;;     scratch-comment-eval-sexp()
;;     funcall-interactively(scratch-comment-eval-sexp)
;;     call-interactively(scratch-comment-eval-sexp nil nil)
;;     command-execute(scratch-comment-eval-sexp)
@purcell
Copy link
Owner

purcell commented Jun 22, 2020

Yes, it's not very smart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants