emacs-devel
[Top][All Lists]
Advanced

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

Re: toggle-viper-mode strangeness


From: Richard M. Stallman
Subject: Re: toggle-viper-mode strangeness
Date: Thu, 19 Jan 2006 20:14:46 -0500

Here's what that code does:

              (if (eq viper-mode t)
                  ;; Turn the mode off.
                  (viper-go-away)
                ;; Turn the mode on.
                (setq viper-mode nil)
                (viper-mode)))

It looks correct to me, except perhaps for the eq call,
which treats non-nil non-t values as "off" rather than "on".
That is peculiar, but I don't know whether it is wrong.




reply via email to

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