[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sc-toggle-var message is wrong (half the time)
From: |
Phil Nitschke |
Subject: |
sc-toggle-var message is wrong (half the time) |
Date: |
Mon, 19 Nov 2001 15:05:05 +1030 |
In GNU Emacs 21.1.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2001-10-26 on raven, modified by Debian
In supercite.el, the function sc-toggle-var reports an incorrect message
50% of the time, e.g. calling it 4 times with variable named "foo" gives:
"foo changed from nil to t"
"foo changed from t to t" <-- last value should say "nil"
"foo changed from nil to t"
"foo changed from t to t" <-- last value should say "nil"
This is because the code
(set-variable variable (not (eval-expression variable)))
always returns "t", not the value of "variable".
So the function does what it is supposed to do, but reports a wrong
message along the way.
--
Phil +----------------------------------------------------------+(\
_/_) YourAmigo Pty Ltd http://www.YourAmigo.com/ |( \
_/// / _ ================= Phone Intl.: +61-8-8211-9211 _ |_) )_
(((( (| /_) mailto:Phil.Nitschke@YourAmigo.com (_\ |/ /)))
\\\\ \_/ / Address: <standard> \ \_/ ////
\ / 80 Gilbert Street, Adelaide <disclaimers> \ /
) _/ South Australia 5000 Australia <apply> \_ (
/ /----------------------------------------------------------\ \
/ / \ \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sc-toggle-var message is wrong (half the time),
Phil Nitschke <=