From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: toggle-viper-mode strangeness Date: Thu, 19 Jan 2006 03:13:32 +0200 Message-ID: <20060119011332.GA75423@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137635527 28807 80.91.229.2 (19 Jan 2006 01:52:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 01:52:07 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 19 02:52:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzOxs-0005Wx-VO for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2006 02:51:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzP0I-0008Ug-8F for ged-emacs-devel@m.gmane.org; Wed, 18 Jan 2006 20:54:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EzOPQ-00058R-KE for emacs-devel@gnu.org; Wed, 18 Jan 2006 20:16:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EzOPN-00051p-3J for emacs-devel@gnu.org; Wed, 18 Jan 2006 20:16:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzOPM-00051X-Pc for emacs-devel@gnu.org; Wed, 18 Jan 2006 20:16:12 -0500 Original-Received: from [195.170.0.95] (helo=kane.otenet.gr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EzOTJ-0005u5-EW for emacs-devel@gnu.org; Wed, 18 Jan 2006 20:20:17 -0500 Original-Received: from flame.pc (patr530b-0012.otenet.gr [62.103.226.12]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id k0J1Dd4t010171 for ; Thu, 19 Jan 2006 03:13:39 +0200 Original-Received: by flame.pc (Postfix, from userid 1001) id 9893E118BA; Thu, 19 Jan 2006 03:13:32 +0200 (EET) Original-To: emacs-devel@gnu.org Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49250 Archived-At: 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?