[Top][All Lists]

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

bug#5672: 23.1; (intern-soft "") returns non-nil

From: Katsumi Yamaoka
Subject: bug#5672: 23.1; (intern-soft "") returns non-nil
Date: Wed, 03 Mar 2010 08:28:35 +0900
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.93 (gnu/linux)


There's a program assuming (intern-soft STR) always return nil
if STR is the null string.  It works in Emacs 22, but doesn't in
Emacs 23.  That problem is easily solved by modifying the code
into: (unless (equal STR "") (intern-soft STR))

However, isn't it an Emacs 23 bug?  It's not so serious though.
It does not happen in Emacs that is launched using the arg -Q
but happens after loading the ~/.emacs file.  I found at least
`internal-set-lisp-face-attribute' that `set-face-attribute'
uses does intern "".  For instance:

$ emacs -Q
(intern-soft "")
 => nil
 'bold :font
 => bold
(intern-soft "")

I don't know what in `internal-set-lisp-face-attribute' does it.


reply via email to

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