[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
toggle-viper-mode strangeness
From: |
Giorgos Keramidas |
Subject: |
toggle-viper-mode strangeness |
Date: |
Thu, 19 Jan 2006 03:13:32 +0200 |
It's been several days since I updated cvs-emacs here, so forgive me if
this is fixed already.
Isn't the following in `toggle-viper-mode' strange?
;;;###autoload
(defun toggle-viper-mode ()
"Toggle Viper on/off.
If Viper is enabled, turn it off. Otherwise, turn it on."
(interactive)
(if (eq viper-mode t)
(viper-go-away)
==> (setq viper-mode nil)
(viper-mode)))
Looking at the indentation I'd expect the if expression to end where the
arrow points, but it doesn't. Or is an implicit (progn ...) added
automatically by Emacs around the third ... N-th elements of the if
expression?
- toggle-viper-mode strangeness,
Giorgos Keramidas <=