[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table.el
From: |
Miles Bader |
Subject: |
Re: table.el |
Date: |
26 Nov 2001 18:20:57 +0900 |
Perhaps there ought to be a function to abstract this, for instance:
(defvar prompt-with-default-format "%s: (default `%s') ")
(defvar prompt-without-default-format "%s: ")
(defun make-prompt (message &optional default)
(if default
(format prompt-with-default-format message default)
(format prompt-without-default-format message)))
Then the code which currently does
(format "Foo bar: (default %s) " default)
would be written as:
(make-prompt "Foo bar" default)
and the formats used could even be customizable.
-Miles
--
I have seen the enemy, and he is us. -- Pogo
- Re: table.el, (continued)
- Re: table.el, Richard Stallman, 2001/11/27
- Re: table.el, Stefan Monnier, 2001/11/27
- Re: table.el, Richard Stallman, 2001/11/28
- Re: table.el, Stefan Monnier, 2001/11/28
- Re: table.el, Richard Stallman, 2001/11/29
- Re: table.el, Werner LEMBERG, 2001/11/26
- Re: table.el,
Miles Bader <=
- Re: table.el, Robert J. Chassell, 2001/11/26
- Re: table.el, Stefan Monnier, 2001/11/26
- Re: table.el, Richard Stallman, 2001/11/25
- Re: table.el, Tak Ota, 2001/11/25
- Re: table.el, Richard Stallman, 2001/11/29
Re: table.el, Alex Schroeder, 2001/11/24