@@ -271,64 +271,42 @@ Minibuffer
271271    - calls to :code: `turtles-with-grab-buffer ` to test the content of
272272      the minibuffer or any other window.
273273
274-     - keys passed to the minibuffer, with :code:  ` turtles-input- keys` 
274+     - keys passed to the minibuffer, with :keys, see below. 
275275
276276    - commands that manipulate the minibuffer, either called directly
277-       or using :code:  ` turtles-input- command` 
277+       or using :command, see below. 
278278
279279    At the end of BODY, the minibuffer is closed, if needed, and
280280    control returns to READ, which checks the result of running BODY.
281281
282-     See the :ref: `tut_minibuffer ` and :ref: `tut_isearch ` sections of
283-     the tutorial for usage examples.
284- 
285- .. _input :
286- 
287- Input Events
288- ------------ 
289- 
290- .. index ::
291-     pair: function; turtles-input-keys
292-     pair: function; turtles-input-events
293-     pair: function; turtles-input-command
282+     Special forms are available within BODY to simulate the user inputing
283+     events using the command loop. In contrast to :code: `execute-kbd-macro `,
284+     :code: `ert-simulate-commands ` and :code: `ert-simulate-keys `, these
285+     function use the real event loop, triggered by real, external events
286+     (terminal keys). This isn't as simulation.
294287
295- The following functions send events to the Emacs instance to be 
296- processed using the normal event loop .
288+     :keys keys 
289+         This expression provides KEYS as user input to the minibuffer .
297290
298- In contrast to :code: `execute-kbd-macro `,
299- :code: `ert-simulate-commands ` and :code: `ert-simulate-keys `, these
300- function use the real event loop, triggered by real, external events
301- (terminal keys). This isn't as simulation. In most cases, the
302- difference doesn't matter, of course.
291+         KEYS is in the same format as passed to :code: `kbd `.
303292
304- These functions all use :code: `recursive-edit ` to make it possible to
305- handle events directly from ERT tests.
293+     :events events
294+         This expression provides a vector of events as the user input
295+         to the minibuffer.
306296
307- (turtles-input-keys keys) :  function
308-     This function provides KEYS as user input to the current instance .
297+         This is more general than the previous  function as the events 
298+         can be any kind of UI events .
309299
310-     KEYS is in the same format as passed to :code: `kbd `.
300+     :command command
301+         This expression runs the given interactive command in the event
302+         loop, triggered by a key stroke.
311303
312- (turtles-input-events events) : function 
313-     This function provides a vector of events  as the user input to  the
314-     current instance .
304+     :command-with-keybinding keybinding command 
305+         This expression works  as above, but makes sure that  the command 
306+         will find in  :code: ` (this-command-keys) `, if it asks .
315307
316-     This is more general than the previous function as the events can
317-     be any kind of UI events.
318- 
319- (turtles-input-command command &optional keybinding) : function
320-     This function runs the given interactive command in the event
321-     loop, triggered by a key stroke.
322- 
323-     If provided, keybinding is what what the command will find in
324-     :code: `(this-command-keys) `, if it asks.
325- 
326-     This is implemented using a transient map, so the key binding is
327-     only available for one call.
328- 
329-     Note that in the majority of cases, calling the command directly,
330-     outside of the event loop, works just fine in tests and is more
331-     convenient.
308+     See the :ref: `tut_minibuffer ` and :ref: `tut_isearch ` sections of
309+     the tutorial for usage examples.
332310
333311.. _instances :
334312
0 commit comments