From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: toggle-viper-mode strangeness Date: Thu, 19 Jan 2006 20:14:46 -0500 Message-ID: References: <20060119011332.GA75423@flame.pc> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1137720278 1697 80.91.229.2 (20 Jan 2006 01:24:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 01:24:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 02:24:35 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 1Ezl0x-0003dO-DQ for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2006 02:24:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ezl3Q-00054q-2N for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2006 20:27:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ezkx7-0001oL-4p for emacs-devel@gnu.org; Thu, 19 Jan 2006 20:20:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ezkx4-0001kw-4C for emacs-devel@gnu.org; Thu, 19 Jan 2006 20:20:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ezkx3-0001jn-3F for emacs-devel@gnu.org; Thu, 19 Jan 2006 20:20:29 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ezl1A-00085t-U9 for emacs-devel@gnu.org; Thu, 19 Jan 2006 20:24:45 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EzkrW-000090-Hn; Thu, 19 Jan 2006 20:14:46 -0500 Original-To: Giorgos Keramidas In-reply-to: <20060119011332.GA75423@flame.pc> (message from Giorgos Keramidas on Thu, 19 Jan 2006 03:13:32 +0200) 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:49288 Archived-At: 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.