From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Wait for a specific command call Date: Sat, 20 Nov 2004 18:31:05 +0100 Message-ID: <86pt28v352.fsf@ketchup.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100971931 17852 80.91.229.6 (20 Nov 2004 17:32:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Nov 2004 17:32:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 20 18:32:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVZ5e-0007B8-00 for ; Sat, 20 Nov 2004 18:32:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVZEb-0004ic-OV for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Nov 2004 12:41:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVZEC-0004dE-VR for help-gnu-emacs@gnu.org; Sat, 20 Nov 2004 12:40:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVZEB-0004ch-2d for help-gnu-emacs@gnu.org; Sat, 20 Nov 2004 12:40:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVZEA-0004ce-VE for help-gnu-emacs@gnu.org; Sat, 20 Nov 2004 12:40:51 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVZ50-0003GA-BJ for help-gnu-emacs@gnu.org; Sat, 20 Nov 2004 12:31:22 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CVZ4z-0007wj-00 for ; Sat, 20 Nov 2004 18:31:21 +0100 Original-Received: from p5487c2f7.dip.t-dialin.net ([84.135.194.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Nov 2004 18:31:21 +0100 Original-Received: from kai by p5487c2f7.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Nov 2004 18:31:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p5487c2f7.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:05kyj8hixfe+IKthXNyXIrWnL4k= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22165 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22165 Matthias 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