Mercurial > hg > xemacs-beta
annotate lisp/map-ynp.el @ 4953:304aebb79cd3
function renamings to track names of char typedefs
-------------------- ChangeLog entries follow: --------------------
man/ChangeLog addition:
2010-01-27 Ben Wing <ben@xemacs.org>
* internals/internals.texi (lrecords):
* internals/internals.texi (The DFC API):
* internals/internals.texi (Conversion to and from External Data):
* internals/internals.texi (Mule-izing Code):
* internals/internals.texi (Pervasive changes throughout XEmacs sources):
* internals/internals.texi (Ben's README):
* internals/internals.texi (Future Work -- Localized Text/Messages):
* emodules.texi (Defining Variables):
Rename:
write_c_string -> write_cistring
build_intstring -> build_istring
build_string -> build_cistring
build_ext_string -> build_extstring
make_ext_string -> make_extstring
buffer_insert_c_string -> buffer_insert_ascstring
intern_int -> intern_istring
See comment in src/ChangeLog about this.
modules/ChangeLog addition:
2010-01-27 Ben Wing <ben@xemacs.org>
* postgresql/postgresql.c (print_pgconn):
* postgresql/postgresql.c (print_pgresult):
* postgresql/postgresql.c (Fpq_conn_defaults):
* postgresql/postgresql.c (Fpq_pgconn):
* postgresql/postgresql.c (Fpq_res_status):
* postgresql/postgresql.c (Fpq_result_error_message):
* postgresql/postgresql.c (Fpq_fname):
* postgresql/postgresql.c (Fpq_get_value):
* postgresql/postgresql.c (Fpq_cmd_status):
* postgresql/postgresql.c (Fpq_cmd_tuples):
* postgresql/postgresql.c (Fpq_notifies):
* postgresql/postgresql.c (Fpq_get_line):
* postgresql/postgresql.c (Fpq_get_line_async):
* postgresql/postgresql.c (FROB):
* postgresql/postgresql.c (init_postgresql_from_environment):
* ldap/eldap.c:
* ldap/eldap.c (Fldap_open):
* ldap/eldap.c (Fldap_search_basic):
* canna/canna_api.c:
* canna/canna_api.c (make_euc_string):
Rename:
write_c_string -> write_cistring
build_intstring -> build_istring
build_string -> build_cistring
build_ext_string -> build_extstring
make_ext_string -> make_extstring
buffer_insert_c_string -> buffer_insert_ascstring
intern_int -> intern_istring
See comment in src/ChangeLog about this.
src/ChangeLog addition:
2010-01-27 Ben Wing <ben@xemacs.org>
* .gdbinit.in.in:
* README:
* abbrev.c (write_abbrev):
* abbrev.c (describe_abbrev):
* alloc.c (make_extstring):
* alloc.c (build_istring):
* alloc.c (build_cistring):
* alloc.c (build_ascstring):
* alloc.c (build_extstring):
* alloc.c (build_msg_istring):
* alloc.c (build_defer_istring):
* buffer.c (Fgenerate_new_buffer_name):
* buffer.c (init_buffer_2):
* console-tty.c (tty_init_console):
* console-x.c (get_display_arg_connection):
* console-x.c (x_perhaps_init_unseen_key_defaults):
* database.c (dbm_map):
* database.c (dbm_get):
* database.c (berkdb_get):
* database.c (berkdb_map):
* device-gtk.c (FROB_PIXMAP):
* device-gtk.c (Fgtk_style_info):
* device-msw.c (msprinter_default_printer):
* device-msw.c (sync_printer_with_devmode):
* device-x.c (coding_system_of_xrm_database):
* device-x.c (x_init_device):
* device-x.c (signal_if_x_error):
* device-x.c (Fx_get_resource):
* device-x.c (Fx_server_vendor):
* device-x.c (Fx_get_font_path):
* dialog-x.c (maybe_run_dbox_text_callback):
* doc.c (extract_object_file_name):
* doc.c (unparesseuxify_doc_string):
* doc.c (get_doc_string):
* doc.c (get_object_file_name):
* doc.c (Fdocumentation):
* doc.c (Fsnarf_documentation):
* doc.c (Fsubstitute_command_keys):
* editfns.c (init_editfns):
* editfns.c (Ftemp_directory):
* editfns.c (Fuser_login_name):
* editfns.c (Fuser_real_login_name):
* editfns.c (Fuser_home_directory):
* editfns.c (Fformat_time_string):
* editfns.c (Fcurrent_time_string):
* editfns.c (Fcurrent_time_zone):
* emacs.c:
* emacs.c (main_1):
* emodules.c (Flist_modules):
* emodules.c (emodules_load):
* emodules.c (emodules_doc_sym):
* emodules.c (vars_of_module):
* event-Xt.c (x_has_keysym):
* event-gtk.c (emacs_gtk_format_magic_event):
* event-gtk.c (dragndrop_data_received):
* event-gtk.c (gtk_reset_key_mapping):
* event-msw.c (mswindows_dde_callback):
* event-msw.c (mswindows_wnd_proc):
* faces.c (complex_vars_of_faces):
* file-coding.c (find_coding_system):
* file-coding.c (setup_eol_coding_systems):
* file-coding.c (make_coding_system_1):
* file-coding.c (snarf_coding_system):
* fileio.c:
* fileio.c (lisp_strerror):
* fileio.c (Ffile_name_directory):
* fileio.c (Ffile_name_as_directory):
* fileio.c (Fdirectory_file_name):
* fileio.c (if):
* fileio.c (Ffile_symlink_p):
* fileio.c (Fencrypt_string):
* fileio.c (Fdecrypt_string):
* filelock.c (lock_file):
* filelock.c (Ffile_locked_p):
* floatfns.c (matherr):
* font-mgr.c (build_fcapi_string):
* font-mgr.c (make_xlfd_font_regexp):
* frame-msw.c (mswindows_window_id):
* frame-msw.c (mswindows_frame_property):
* frame-x.c:
* frame-x.c (color_to_string):
* frame-x.c (maybe_set_frame_title_format):
* frame-x.c (x_cde_transfer_callback):
* frame-x.c (Fx_window_id):
* glade.c (connector):
* glade.c (Fglade_xml_textdomain):
* glade.c (syms_of_glade):
* glyphs-eimage.c (jpeg_instantiate):
* glyphs-eimage.c (png_instantiate):
* glyphs-eimage.c (tiff_instantiate):
* glyphs-gtk.c (font_instantiate):
* glyphs-gtk.c (BUILD_GLYPH_INST):
* glyphs-x.c (x_locate_pixmap_file):
* glyphs-x.c (font_instantiate):
* glyphs-x.c (x_widget_property):
* glyphs-x.c (BUILD_GLYPH_INST):
* glyphs.c (print_image_instance):
* glyphs.c (bitmap_to_lisp_data):
* glyphs.c (pixmap_to_lisp_data):
* gpmevent.c (turn_off_gpm):
* gpmevent.c (Fgpm_enabled_p):
* gpmevent.c (Fgpm_enable):
* gtk-glue.c (__make_string_mapper):
* gtk-glue.c (xemacs_gtklist_to_list):
* gtk-xemacs.c (FROB_FACE):
* gtk-xemacs.c (xemacs_gtk_convert_color):
* hpplay.c (player_error_internal):
* hpplay.c (myHandler):
* insdel.c (buffer_insert_ascstring_1):
* insdel.h:
* insdel.h (buffer_insert_ascstring):
* intl.c (Fcurrent_locale):
* intl.c (Fset_current_locale):
* keymap.c (make_key_description):
* keymap.c (Ftext_char_description):
* keymap.c (describe_command):
* keymap.c (describe_map):
* lisp.h:
* lread.c:
* lread.c (locate_file_in_directory_mapper):
* lread.c (locate_file_construct_suffixed_files_mapper):
* mule-charset.c (Fmake_charset):
* nt.c (Fmswindows_short_file_name):
* nt.c (Fmswindows_long_file_name):
* objects-gtk.c (__get_gtk_font_truename):
* objects-gtk.c (__gtk_font_list_internal):
* objects-msw.c (font_enum_callback_2):
* objects-msw.c (create_hfont_from_font_spec):
* objects-msw.c (mswindows_font_list):
* objects-msw.c (mswindows_font_spec_matches_charset_stage_2):
* objects-tty.c (tty_initialize_font_instance):
* objects-x.c (x_font_truename):
* objects-x.c (x_font_instance_truename):
* objects-x.c (x_font_instance_properties):
* objects-x.c (x_font_list):
* print.c (write_cistring):
* print.c (print_vector_internal):
* print.c (print_cons):
* process-nt.c (nt_canonicalize_host_name):
* process-unix.c (unix_create_process):
* process-unix.c (unix_canonicalize_host_name):
* process.c (status_message):
* process.c (status_notify):
* process.c (init_xemacs_process):
* process.c (syms_of_process):
* redisplay-tty.c (term_get_fkeys_1):
* redisplay-tty.c (CONDITIONAL_REASSIGN):
* search.c (compile_pattern_1):
* select-common.h (selection_data_to_lisp_data):
* select-gtk.c (atom_to_symbol):
* select-gtk.c (PROCESSING_GTK_CODE):
* select-msw.c (mswindows_get_foreign_selection):
* select-x.c (x_atom_to_symbol):
* select-x.c (Fx_get_cutbuffer_internal):
* symbols.c (intern_istring):
* symbols.c (intern):
* symbols.c (intern_converting_underscores_to_dashes):
* symbols.c (Fintern):
* sysdep.c (init_system_name):
* sysdll.c (dll_error):
* sysdll.c (dll_open):
* syswindows.h:
* syswindows.h (build_tstr_string):
* tests.c (DFC_CHECK_LENGTH):
* tests.c (DFC_CHECK_CONTENT):
* tests.c (DFC_RESULT_PASS):
* tests.c (Ftest_data_format_conversion):
* text.c:
* text.c (new_dfc_convert_now_damn_it):
* text.h:
* text.h (build_wext_string):
* tooltalk.c (tt_build_c_string):
* tooltalk.c (Ftooltalk_default_procid):
* tooltalk.c (Ftooltalk_default_session):
* tooltalk.c (init_tooltalk):
* ui-byhand.c (Fgtk_clist_get_text):
* ui-byhand.c (Fgtk_clist_get_pixtext):
* ui-byhand.c (Fgtk_label_get):
* ui-byhand.c (Fgtk_notebook_query_tab_label_packing):
* ui-gtk.c (emacs_gtk_object_printer):
* ui-gtk.c (emacs_gtk_boxed_printer):
* ui-gtk.c (gtk_type_to_lisp):
* ui-gtk.c (symbol_to_enum):
* ui-gtk.c (enum_to_symbol):
* unexaix.c (report_error):
* unexaix.c (ERROR0):
* unexec.c (report_error):
* unexec.c (ERROR0):
* unicode.c (unicode_to_ichar):
* win32.c (tstr_to_local_file_format):
* win32.c (Fmswindows_cygwin_to_win32_path):
* win32.c (struct read_link_hash):
* xemacs.def.in.in:
Rename:
write_c_string -> write_cistring
build_intstring -> build_istring
build_string -> build_cistring
build_ext_string -> build_extstring
make_ext_string -> make_extstring
buffer_insert_c_string -> buffer_insert_ascstring
intern_int -> intern_istring
These functions have been renamed so that the naming harmonizes
with the typedefs for strings: `cistring' along with CIbyte *,
`istring' along with Ibyte *, `extstring' along with Extbyte *,
`ascstring' along with Ascbyte *.
Also make buffer_insert_ascstring take Ascbyte * and assert
that its argument is ASCII.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 27 Jan 2010 00:35:36 -0600 |
parents | e29fcfd8df5f |
children | 308d34e9f07d |
rev | line source |
---|---|
428 | 1 ;;; map-ynp.el --- General-purpose boolean question-asker. |
2 | |
3 ;; Copyright (C) 1991-1995, 1997 Free Software Foundation, Inc. | |
4 | |
5 ;; Author: Roland McGrath <roland@gnu.ai.mit.edu> | |
6 ;; Keywords: lisp, extensions, dumped | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
10 ;; XEmacs is free software; you can redistribute it and/or modify it | |
11 ;; under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; XEmacs is distributed in the hope that it will be useful, but | |
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 ;; General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free | |
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
23 ;; 02111-1307, USA. | |
24 | |
25 ;;; Synched up with: Emacs/Mule zeta. | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This file is dumped with XEmacs. | |
30 | |
31 ;; map-y-or-n-p is a general-purpose question-asking function. | |
32 ;; It asks a series of y/n questions (a la y-or-n-p), and decides to | |
2757 | 33 ;; apply an action to each element of a list based on the answer. |
428 | 34 ;; The nice thing is that you also get some other possible answers |
35 ;; to use, reminiscent of query-replace: ! to answer y to all remaining | |
36 ;; questions; ESC or q to answer n to all remaining questions; . to answer | |
37 ;; y once and then n for the remainder; and you can get help with C-h. | |
38 | |
39 ;;; Code: | |
40 | |
41 (defun map-y-or-n-p (prompter actor list &optional help action-alist | |
42 no-cursor-in-echo-area) | |
43 "Ask a series of boolean questions. | |
44 Takes args PROMPTER ACTOR LIST, and optional args HELP and ACTION-ALIST. | |
45 | |
46 LIST is a list of objects, or a function of no arguments to return the next | |
47 object or nil. | |
48 | |
49 If PROMPTER is a string, the prompt is \(format PROMPTER OBJECT\). If not | |
50 a string, PROMPTER is a function of one arg (an object from LIST), which | |
51 returns a string to be used as the prompt for that object. If the return | |
52 value is not a string, it may be nil to ignore the object or non-nil to act | |
53 on the object without asking the user. | |
54 | |
55 ACTOR is a function of one arg (an object from LIST), | |
56 which gets called with each object that the user answers `yes' for. | |
57 | |
58 If HELP is given, it is a list (OBJECT OBJECTS ACTION), | |
59 where OBJECT is a string giving the singular noun for an elt of LIST; | |
60 OBJECTS is the plural noun for elts of LIST, and ACTION is a transitive | |
61 verb describing ACTOR. The default is \(\"object\" \"objects\" \"act on\"\). | |
62 | |
63 At the prompts, the user may enter y, Y, or SPC to act on that object; | |
64 n, N, or DEL to skip that object; ! to act on all following objects; | |
65 ESC or q to exit (skip all following objects); . (period) to act on the | |
66 current object and then exit; or \\[help-command] to get help. | |
67 | |
68 If ACTION-ALIST is given, it is an alist (KEY FUNCTION HELP) of extra keys | |
69 that will be accepted. KEY is a character; FUNCTION is a function of one | |
70 arg (an object from LIST); HELP is a string. When the user hits KEY, | |
71 FUNCTION is called. If it returns non-nil, the object is considered | |
72 \"acted upon\", and the next object from LIST is processed. If it returns | |
73 nil, the prompt is repeated for the same object. | |
74 | |
75 Final optional argument NO-CURSOR-IN-ECHO-AREA non-nil says not to set | |
76 `cursor-in-echo-area' while prompting. | |
77 | |
78 This function uses `query-replace-map' to define the standard responses, | |
79 but not all of the responses which `query-replace' understands | |
80 are meaningful here. | |
81 | |
82 Returns the number of actions taken." | |
83 (let* ((actions 0) | |
84 user-keys mouse-event map prompt char elt def | |
85 ;; Non-nil means we should use mouse menus to ask. | |
86 ;; use-menus | |
87 ;;delayed-switch-frame | |
88 (next (if (or (and list (symbolp list)) | |
89 (subrp list) | |
90 (compiled-function-p list) | |
91 (and (consp list) | |
92 (eq (car list) 'lambda))) | |
93 #'(lambda () (setq elt (funcall list))) | |
94 #'(lambda () | |
95 (if list | |
96 (progn | |
97 (setq elt (car list) | |
98 list (cdr list)) | |
99 t) | |
100 nil))))) | |
101 (if (should-use-dialog-box-p) | |
102 ;; Make a list describing a dialog box. | |
103 (let (;; (object (capitalize (or (nth 0 help) "object"))) | |
104 ;; (objects (capitalize (or (nth 1 help) "objects"))) | |
105 ;; (action (capitalize (or (nth 2 help) "act on"))) | |
106 ) | |
442 | 107 (setq map `(("%_Yes" . act) ("%_No" . skip) |
428 | 108 ; bogus crap. --ben |
109 ; ((, (if help | |
110 ; (capitalize | |
111 ; (or (nth 3 help) | |
112 ; (concat action " All " objects))) | |
113 ; "Do All")) . automatic) | |
114 ; ((, (if help | |
115 ; (capitalize | |
116 ; (or (nth 4 help) | |
117 ; (concat action " " object " And Quit"))) | |
118 ; "Do it and Quit")) . act-and-exit) | |
119 ; ((, (capitalize | |
120 ; (or (and help (nth 5 help)) "Quit"))) | |
121 ; . exit) | |
442 | 122 ("Yes %_All" . automatic) |
123 ("No A%_ll" . exit) | |
124 ("%_Cancel" . quit) | |
428 | 125 ,@(mapcar #'(lambda (elt) |
126 (cons (capitalize (nth 2 elt)) | |
127 (vector (nth 1 elt)))) | |
128 action-alist)) | |
129 mouse-event last-command-event)) | |
130 (setq user-keys (if action-alist | |
131 (concat (mapconcat #'(lambda (elt) | |
132 (key-description | |
133 (if (characterp (car elt)) | |
134 ;; XEmacs | |
135 (char-to-string (car elt)) | |
136 (car elt)))) | |
137 action-alist ", ") | |
138 " ") | |
139 "") | |
140 ;; Make a map that defines each user key as a vector containing | |
141 ;; its definition. | |
142 ;; XEmacs | |
143 map (let ((foomap (make-sparse-keymap))) | |
4783
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
144 (mapc #'(lambda (elt) |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
145 (define-key |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
146 foomap |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
147 (if (characterp (car elt)) |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
148 (char-to-string (car elt)) |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
149 (car elt)) |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
150 (vector (nth 1 elt)))) |
e29fcfd8df5f
Eliminate most core code byte-compile warnings.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4222
diff
changeset
|
151 action-alist) |
428 | 152 (set-keymap-parents foomap (list query-replace-map)) |
153 foomap))) | |
154 (unwind-protect | |
155 (progn | |
156 (if (stringp prompter) | |
157 (setq prompter `(lambda (object) | |
158 (format ,prompter object)))) | |
159 (while (funcall next) | |
160 (setq prompt (funcall prompter elt)) | |
161 (cond ((stringp prompt) | |
162 ;; Prompt the user about this object. | |
163 (setq quit-flag nil) | |
164 (if mouse-event ; XEmacs | |
4222 | 165 (setq def (or (and-fboundp |
166 #'get-dialog-box-response | |
167 (get-dialog-box-response | |
168 mouse-event | |
169 (cons prompt map))) | |
428 | 170 'quit)) |
171 ;; Prompt in the echo area. | |
172 (let ((cursor-in-echo-area (not no-cursor-in-echo-area))) | |
173 (display-message | |
174 'prompt | |
175 (format "%s(y, n, !, ., q, %sor %s) " | |
176 prompt user-keys | |
177 (key-description (vector help-char)))) | |
178 (setq char (next-command-event)) | |
179 ;; Show the answer to the question. | |
180 (display-message | |
181 'prompt | |
182 (format | |
183 "%s(y, n, !, ., q, %sor %s) %s" | |
184 prompt user-keys | |
185 (key-description (vector help-char)) | |
186 (single-key-description char)))) | |
187 (setq def (lookup-key map (vector char)))) | |
188 (cond ((eq def 'exit) | |
189 (setq next #'(lambda () nil))) | |
190 ((eq def 'act) | |
191 ;; Act on the object. | |
192 (funcall actor elt) | |
193 (setq actions (1+ actions))) | |
194 ((eq def 'skip) | |
195 ;; Skip the object. | |
196 ) | |
197 ((eq def 'act-and-exit) | |
198 ;; Act on the object and then exit. | |
199 (funcall actor elt) | |
200 (setq actions (1+ actions) | |
201 next (function (lambda () nil)))) | |
202 ((or (eq def 'quit) (eq def 'exit-prefix)) | |
203 (setq quit-flag t) | |
204 (setq next `(lambda () | |
205 (setq next ',next) | |
206 ',elt))) | |
207 ((eq def 'automatic) | |
208 ;; Act on this and all following objects. | |
209 ;; (if (funcall prompter elt) ; Emacs | |
210 (if (eval (funcall prompter elt)) | |
211 (progn | |
212 (funcall actor elt) | |
213 (setq actions (1+ actions)))) | |
214 (while (funcall next) | |
215 ;; (funcall prompter elt) ; Emacs | |
216 (if (eval (funcall prompter elt)) | |
217 (progn | |
218 (funcall actor elt) | |
219 (setq actions (1+ actions)))))) | |
220 ((eq def 'help) | |
221 (with-output-to-temp-buffer "*Help*" | |
222 (princ | |
223 (let ((object (if help (nth 0 help) "object")) | |
224 (objects (if help (nth 1 help) "objects")) | |
225 (action (if help (nth 2 help) "act on"))) | |
226 (concat | |
227 (format "Type SPC or `y' to %s the current %s; | |
228 DEL or `n' to skip the current %s; | |
229 ! to %s all remaining %s; | |
230 ESC or `q' to exit;\n" | |
231 action object object action objects) | |
232 (mapconcat (function | |
233 (lambda (elt) | |
234 (format "%c to %s" | |
235 (nth 0 elt) | |
2545 | 236 (downcase |
237 (normalize-menu-text | |
238 (nth 2 elt)))))) | |
428 | 239 action-alist |
240 ";\n") | |
241 (if action-alist ";\n") | |
242 (format "or . (period) to %s \ | |
243 the current %s and exit." | |
244 action object)))) | |
245 (save-excursion | |
246 (set-buffer standard-output) | |
247 (help-mode))) | |
248 | |
249 (setq next `(lambda () | |
250 (setq next ',next) | |
251 ',elt))) | |
252 ((vectorp def) | |
253 ;; A user-defined key. | |
254 (if (funcall (aref def 0) elt) ;Call its function. | |
255 ;; The function has eaten this object. | |
256 (setq actions (1+ actions)) | |
257 ;; Regurgitated; try again. | |
258 (setq next `(lambda () | |
259 (setq next ',next) | |
260 ',elt)))) | |
261 ;((and (consp char) ; Emacs | |
262 ; (eq (car char) 'switch-frame)) | |
263 ; ;; switch-frame event. Put it off until we're done. | |
264 ; (setq delayed-switch-frame char) | |
265 ; (setq next `(lambda () | |
266 ; (setq next ',next) | |
267 ; ',elt))) | |
268 (t | |
269 ;; Random char. | |
270 (message "Type %s for help." | |
271 (key-description (vector help-char))) | |
272 (beep) | |
273 (sit-for 1) | |
274 (setq next `(lambda () | |
275 (setq next ',next) | |
276 ',elt))))) | |
277 ((eval prompt) | |
278 (progn | |
279 (funcall actor elt) | |
280 (setq actions (1+ actions))))))) | |
281 ;;(if delayed-switch-frame | |
282 ;; (setq unread-command-events | |
283 ;; (cons delayed-switch-frame unread-command-events)))) | |
284 ;; ((eval prompt) | |
285 ;; (progn | |
286 ;; (funcall actor elt) | |
287 ;; (setq actions (1+ actions))))) | |
288 ) | |
289 ;; Clear the last prompt from the minibuffer. | |
290 (clear-message 'prompt) | |
291 ;; Return the number of actions that were taken. | |
292 actions)) | |
293 | |
294 ;;; map-ynp.el ends here |