From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Butz Newsgroups: gmane.emacs.help Subject: Combine 2 commands in a toggle-function Date: Sat, 13 Oct 2012 11:06:11 +0200 Organization: Martin Butz Message-ID: <50792F03.2030601@mkblog.org> Reply-To: mb@mkblog.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350119184 12189 80.91.229.3 (13 Oct 2012 09:06:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 09:06:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 11:06:31 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMxfv-0002zy-Az for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 11:06:27 +0200 Original-Received: from localhost ([::1]:51166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxfo-0006f9-IS for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 05:06:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxfi-0006et-Rp for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:06:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMxfh-0008AV-Pl for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:06:14 -0400 Original-Received: from [212.227.83.185] (port=54446 helo=mail.sym.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMxfh-00088G-FI for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:06:13 -0400 Original-Received: (qmail 12560 invoked from network); 13 Oct 2012 09:06:11 -0000 Original-Received: from unknown (HELO ?192.168.2.100?) (butz@sym.net@88.70.216.154) by sym.net with ESMTPA; 13 Oct 2012 09:06:11 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18) Gecko/20081125 Thunderbird/2.0.0.18 Mnenhy/0.7.5.0 X-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!) X-Received-From: 212.227.83.185 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87232 Archived-At: Hi, as my lisp-knowledge is less than basic (up to now), I wonder if someone can help: I would like to create a toggle function binded to a key and combining two commands, such as: 'escreen-menu [1] 'kill-buffer-other-window Martin [1] I quite like escreen, but calling the menu leaves me with a new frame an a buffer, which I only need temporarily for reference. I do not know an escreen function, which does close the menu (such as /q/ closing the agenda in org-mode) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | G. Martin Butz, mb@mkblog.org, 0421 98749324, www.mkblog.org | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~