[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bugs in (get last-command...) and (get this-command...)
From: |
Kim F. Storm |
Subject: |
Re: Possible bugs in (get last-command...) and (get this-command...) |
Date: |
Wed, 06 Sep 2006 01:01:10 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Drew Adams" <address@hidden> writes:
> (and (symbolp last-command) (get last-command...))
>
> But some of the code does not. Perhaps someone knowledgeable might want to
> take a look. I noticed, for instance that novice.el and ido.el both have
> some unprotected occurrences of (get last-command...) or (get
> this-command...). Again, I don't know if the `symbolp' test is necessary in
> those particular contexts (perhaps it is known that a symbol is present),
> but I think it might be.
Thanks.
I checked ido -- it is safe.
I also checked cua; it had a condition-case to catch errors, but I've
updated the code to explicitly check this-command with symbolp.
--
Kim F. Storm <address@hidden> http://www.cua.dk