Closed quanticle closed 3 years ago
I have the same issue here with emacs 26.1 on Debian Buster. The issue wasn't here with prior versions of emacs.
I think the byte-compiler is wrong... the (get-buffer wants-name)
occurs as the last element in the affirmative branch of the (if wants-name
(progn
so will be the return value from erc-server-reconnect
in the case that wants-name
is t
- so it is not unused in that case as far as I can tell.
This is, nevertheless, an annoying issue. Regardless of fault, znc.el
is the only package that causes warnings at startup, and it's due to this. Changing it to something like the following solves the issue:
(when-let ((buffer (get-buffer wants-name)))
buffer)
Looks like Pull Request #27 should address this.
fixed, please test again
I've installed
znc
into my emacs 26.1 on Fedora Linux, and I'm getting the following warning:It appears that this warning is coming from line 119 of
znc.el
, in the following function:Does there need to be a (get-buffer wants-name) there? Is there a side-effect that znc.el is relying on?