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: Re: Combine 2 commands in a toggle-function Date: Sat, 13 Oct 2012 11:54:04 +0200 Organization: Martin Butz Message-ID: <50793A3C.30907@mkblog.org> References: <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 1350122055 631 80.91.229.3 (13 Oct 2012 09:54:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 09:54:15 +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:54:22 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 1TMyQH-0000fP-EC for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 11:54:21 +0200 Original-Received: from localhost ([::1]:35459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMyQA-0000ik-Uu for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Oct 2012 05:54:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMyQ4-0000iR-TO for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:54:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMyQ4-0008NK-08 for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:54:08 -0400 Original-Received: from [212.227.83.185] (port=56219 helo=mail.sym.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMyQ3-0008N2-LY for help-gnu-emacs@gnu.org; Sat, 13 Oct 2012 05:54:07 -0400 Original-Received: (qmail 18886 invoked from network); 13 Oct 2012 09:54:05 -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:54:05 -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 In-Reply-To: <50792F03.2030601@mkblog.org> 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:87235 Archived-At: Pete, thanks. So far I know what to do. What I do not now is, how to combine the two commands in one function, in order to toggle them. A hint would be helpful. Greetings Martin Am 13.10.2012 11:06, schrieb Martin Butz: > 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 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~