[gnu.emacs.bug] Kbd-macro problem with dired/view modes

pinard@EDDIE.MIT.EDU (Francois Pinard) (05/30/89)

In GNU Emacs 18.53.1 of Sat Mar  4 1989 on odyssee (berkeley-unix)

Inside a dired-view-file command, I execute the sequence:

	C-x ( q d v C-x )

which is supposed to:

	exit view mode and return to dired display
	mark the current file for deletion and move the cursor down
	call view mode on the new file indicated by the cursor

But q or C-c are implemented by exit-recursive-edit, which seems to
have the side effect of interrupting the macro playback.  Is that
true?  I did not find any clear documentation for this behaviour.

This looks like a bug which could have an ``explanation'' and, as one
put it, ``violates the principle of least astonishment'' :-).

neitzel@tubsibr.UUCP (Martin Neitzel) (05/31/89)

mcgill-vision!odyssee!pinard@EDDIE.MIT.EDU (Francois Pinard) writes:
FP>	
FP>	But q or C-c are implemented by exit-recursive-edit, which seems to
FP>	have the side effect of interrupting the macro playback.  Is that
FP>	true?

Basically, yes.  The view-mode of the standard distribution uses
recursive-edit, and thus works on its own input stream.  Seperation of
the input for recursive-edits and an macro-sequence *is* a good thing.
This allows the nifty keyboard-macro-query (^X-q).

What's really disturbing, especially for novices, is that the standard
view-mode is implemented as a major-mode with the recursive-edit.  I
suggest to replace this view-mode with David Gudeman's view.  This one
is patterned after less and a minor-mode.  (I like to toggle this mode
on and off frequently even in those buffers I *am* editing, to have a
convenient browsing mode and to be safe.)

							Martin