From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lorenzo Isella" Newsgroups: gmane.emacs.help Subject: Smart switch interactor <----> edit area in ECB Date: Thu, 23 Oct 2008 15:54:54 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224772122 18134 80.91.229.12 (23 Oct 2008 14:28:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 14:28:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 16:29:43 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kt1Bn-0005qI-BY for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 16:29:27 +0200 Original-Received: from localhost ([127.0.0.1]:59353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt1Ah-0005Yf-Hv for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2008 10:28:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt0eV-0007jb-Dq for help-gnu-emacs@gnu.org; Thu, 23 Oct 2008 09:55:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt0eU-0007iP-Nb for help-gnu-emacs@gnu.org; Thu, 23 Oct 2008 09:55:02 -0400 Original-Received: from [199.232.76.173] (port=46291 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt0eU-0007i1-GV for help-gnu-emacs@gnu.org; Thu, 23 Oct 2008 09:55:02 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.153]:58984) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kt0eU-0000DW-FN for help-gnu-emacs@gnu.org; Thu, 23 Oct 2008 09:55:02 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so83042yxf.66 for ; Thu, 23 Oct 2008 06:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=WbwW9lNyAcBnZcotaKIXPshWtZzp7BJXhEtteMV6FaA=; b=rL1n3HN9oA8Tqr+qpTuBcGEeDa5Tw6xKQgADiF6n0N4rqfMhmR0xu4crHGkPLfrr1c 6VbQuhYOkQL++f1hL1XE9bRVPdWdJWuV4LE8xFN4QG7UPnJQrQ816M3KSRHsc5QHAAz+ s3Xu1ih9M9qyyMbQzl6HvgacMjbTM37C1ITkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=NMl8mI+OH0taPkdrPeQgCs0KYarWhw2nDdGoB1rS92PwFdDQLBpDuniFYZEJOcaxEL Tg8K1vxeQ0zn1lKidhBG7duNy7y6uZ6yzpU+kzSn1Vebvj1UiaIjtX9wXDdxNKByTfmg 9PIgIG8/2kIAs/JHL2CwxxFyFZFg0wD6lkRD4= Original-Received: by 10.187.230.4 with SMTP id h4mr73293far.12.1224770094280; Thu, 23 Oct 2008 06:54:54 -0700 (PDT) Original-Received: by 10.187.243.6 with HTTP; Thu, 23 Oct 2008 06:54:54 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: d39e285bc4c7e160 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: news.gmane.org gmane.emacs.help:59076 Archived-At: Dear All, I am giving a go to ECB (actually, I am finding it pretty useful). http://ecb.sourceforge.net/ I am using the 'left9' layout (so I only have the method interactor), and I can switch from the edit area to the interactor using this simple macro: ;; macro for going to interactor (fset 'go-to-interactor "\C-c.gm") (global-set-key (kbd "C-c e") 'go-to-interactor) However, there is a problem with this macro: I do not know how to leave the interactor and C-x o takes me to a different buffer with respect to the initial one where I invoked the macro. I would like to extend the macro in such a way that, if I am on the interactor, it takes me to the same buffer in the edit area where I previously invoked it. Any idea about how to do that? Many thanks Lorenzo -- Free will does not consist in inverting the river flow, but in being the fish that leaps upstream.