help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wait for a specific command call


From: Kai Grossjohann
Subject: Re: Wait for a specific command call
Date: Sat, 20 Nov 2004 18:31:05 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Matthias <cimosque@free.fr> writes:

> I have written a command displaying a list of buffer, the user can
> edit it, etc. I want this command to end (or return) if and only if
> the user call `quit-window'...

Why do you want to do this?

The normal Emacs way goes like this:

You write a major mode for editing the buffer list.  You write the
command to display the buffer list in such a way that it invokes the
major mode.  The major mode binds a specific key (q, say) to a special
quit command which does whatever you wanted to do after the user
invoked quit-window.

My question was intended to find out why the normal Emacs approach
wouldn't work for you, to be able to make better suggestions.

Kai





reply via email to

[Prev in Thread] Current Thread [Next in Thread]