Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

paradox-execute.el:290:30:Warning: variable reference to constant ‘nil’ #168

Open
gabor-braun opened this issue Apr 1, 2019 · 0 comments

Comments

@gabor-braun
Copy link

Byte-compiling produces the following warning:

In paradox--menu-execute-1:
paradox-execute.el:290:30:Warning: variable reference to constant ‘nil’

IMHO, the line number is a bit off, and the issue is by the following lines:

(push (tabulated-list-get-id)
      (pcase c  
        (`?D delete-list)
        (`?I install-list)))

where it is unclear where the new element should be pushed to if c is neither ?D nor ?I.

Emacs expands the lines to

(let* ((v (tabulated-list-get-id)))
  (cond ((eq c 68)
         (setq delete-list (cons v delete-list)))
        ((eq c 73)
         (setq install-list (cons v install-list)))
        (t (setq nil (cons v nil)))))

where the (setq nil ...) is definitely wrong.

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

No branches or pull requests

1 participant