diff options
| author | Roland McGrath | 1992-03-10 22:16:10 +0000 |
|---|---|---|
| committer | Roland McGrath | 1992-03-10 22:16:10 +0000 |
| commit | 03759fe00303a19cff5ce1cd1d6408c97ce2c929 (patch) | |
| tree | 02fc2151bf6babf2addb2f6a044cdc7e88e93365 | |
| parent | e97dd18354d2d6bd1b37733e54ebbb82895058fd (diff) | |
| download | emacs-03759fe00303a19cff5ce1cd1d6408c97ce2c929.tar.gz emacs-03759fe00303a19cff5ce1cd1d6408c97ce2c929.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/map-ynp.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el index 606e4a82cb0..914a7ba2cc9 100644 --- a/lisp/map-ynp.el +++ b/lisp/map-ynp.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; map-ynp.el -- General-purpose boolean question-asker. | 1 | ;;; map-ynp.el -- General-purpose boolean question-asker. |
| 2 | ;;; Copyright (C) 1991 Free Software Foundation, Inc. | 2 | ;;; Copyright (C) 1991, 1992 Free Software Foundation, Inc. |
| 3 | ;;; Written by Roland McGrath. | 3 | ;;; Written by Roland McGrath. |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This program is free software; you can redistribute it and/or modify | 5 | ;;; This program is free software; you can redistribute it and/or modify |
| @@ -41,13 +41,13 @@ Takes args PROMPTER ACTOR LIST, and optional arg HELP. | |||
| 41 | LIST is a list of objects, or a function of no arguments to return the next | 41 | LIST is a list of objects, or a function of no arguments to return the next |
| 42 | object or nil. | 42 | object or nil. |
| 43 | 43 | ||
| 44 | PROMPTER is a function of one arg (an object from LIST), | 44 | If is PROMPTER a string, the prompt is \(format PROMPTER OBJECT\). If not |
| 45 | which returns a string to be used as the prompt for that object. | 45 | a string, PROMPTER is a function of one arg (an object from LIST), which |
| 46 | If the return value is not a string, it is eval'd to get the answer. | 46 | returns a string to be used as the prompt for that object. If the return |
| 47 | So, it may be nil to ignore the object, t to act on the object without | 47 | value is not a string, it is eval'd to get the answer; it may be nil to |
| 48 | asking the user, or a form to do a more complex prompt. | 48 | ignore the object, t to act on the object without asking the user, or a |
| 49 | PROMPTER may instead be a string, in which case the prompt is | 49 | form to do a more complex prompt. |
| 50 | \(format PROMPTER OBJECT\). | 50 | |
| 51 | 51 | ||
| 52 | ACTOR is a function of one arg (an object from LIST), | 52 | ACTOR is a function of one arg (an object from LIST), |
| 53 | which gets called with each object that the user answers `yes' for. | 53 | which gets called with each object that the user answers `yes' for. |