help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: An elisp question


From: Oleksandr Gavenko
Subject: Re: An elisp question
Date: Wed, 17 Sep 2008 21:29:38 +0300
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Drew Adams пишет:
(defun my-test ()
  (interactive)
  (if (equal (y-or-n-p "Yes or no? ") t)
(if (y-or-n-p "Yes or no? ")

will do just fine.

      (foo)
    (message "hallo")))

Duh. (I didn't try to do more than answer his question.)

Really, the right answer to the OP is to take a look at the manual "Emacs Lisp
Introduction" (aka "An Introduction to Programming in Emacs Lisp") in Info (`C-h
i').

Comment please!

In elisp intro (Created on March, 10  2004 by texi2html 1.64)
I not find match of "yes-or-no-p" func and so special example for you say.

In elisp.html (edition 2.8) on "20.6 Yes-or-No Queries" also there no special warning about use of "Yes-or-No".


reply via email to

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