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

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

Re: HOW TO GIVE A DEFAULT TO A TRULY INTERACTIVE FUNCTION


From: Friedrich Dominicus
Subject: Re: HOW TO GIVE A DEFAULT TO A TRULY INTERACTIVE FUNCTION
Date: 18 Oct 2002 10:05:17 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

Friedrich Dominicus <frido@q-software-solutions.com> writes:

sorry for following-up myself, but I guess 
>     (while (not (funcall pred num))
>       (setq num (condition-case ()
>                   (let ((minibuffer-completion-table nil))
>                     (read-from-minibuffer
>                      prompt (if num (prin1-to-string num)) nil t
>                      nil nil (if (numberp default-value)
                            ^^^^^^^ this better would be better integerp
>                            (prin1-to-string default-value) 
>                          default-value)))
>             (input-error nil)
>             (invalid-read-syntax nil)
>             (end-of-file nil)))
>       (or (funcall pred num) (beep)))
>     num))


Friedrich


reply via email to

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