bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25941: 26.0.50; Different code behavior between using the auto-compi


From: Vibhav Pant
Subject: bug#25941: 26.0.50; Different code behavior between using the auto-compiled and evaled versions
Date: Thu, 9 Mar 2017 23:53:29 +0530

On Thu, Mar 9, 2017 at 10:01 PM, Kaushal Modi <address@hidden> wrote:
> This issue seems to be related to the switch bytecode change.

`cond' returns the value of the met condition when the clause doesn't
have a body. That's what seems to be happening when (eq res 'exit).
The result should be t instead of nil. A similar example like:
(defun test (v)
  (cond ((eq v 1) 'one)
((eq v 2))
(t 'none)))
Also displays different results with (test 2) when byte compiled. I've
added a patch to bytecomp.el which tries to fix this, could you apply
it and see whether the issue still exists?

Thanks,
Vibhav

-- 
Vibhav Pant
address@hidden

Attachment: condition-only-clause.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]