unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: toggle-viper-mode strangeness
Date: Thu, 19 Jan 2006 03:13:32 +0200	[thread overview]
Message-ID: <20060119011332.GA75423@flame.pc> (raw)

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?

             reply	other threads:[~2006-01-19  1:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19  1:13 Giorgos Keramidas [this message]
2006-01-19 21:43 ` toggle-viper-mode strangeness Kevin Rodgers
2006-01-20  1:14 ` Richard M. Stallman
2006-01-20  2:35   ` Giorgos Keramidas
2006-01-20  3:38     ` Johan Bockgård
2006-01-20  4:03     ` Stefan Monnier
2006-01-20  4:14       ` Luc Teirlinck
2006-01-20 12:45         ` Giorgos Keramidas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060119011332.GA75423@flame.pc \
    --to=keramida@ceid.upatras.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).