From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: How to activate (and rename) new org-tree-to-indirect-buffer buffer? Date: Wed, 10 Jun 2015 15:09:04 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2fnU-0005gW-1a for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 09:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2fnQ-00078b-Iq for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 09:11:59 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2fnQ-00078H-CU for emacs-orgmode@gnu.org; Wed, 10 Jun 2015 09:11:56 -0400 Received: by wibut5 with SMTP id ut5so47987632wib.1 for ; Wed, 10 Jun 2015 06:11:55 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (LPuteaux-656-1-180-203.w80-14.abo.wanadoo.fr. [80.14.247.203]) by mx.google.com with ESMTPSA id o6sm7916117wiz.24.2015.06.10.06.09.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 06:11:54 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Thanks to Alan Schmitt, I managed to bind C-u M-x ~org-tree-to-indirect-buffer~ but I would now like to activate and rename the new buffer. He suggested that=20 ~(rename-buffer (org-get-heading) t)~ would rename the buffer, but it needs to be activated first. My question: how can I activate this new buffer? Along this line, it seems a little bit counter-intuitive that the new indirect buffer is *not* activated, as it is the case when editing source code blocks. The ideal solution probably would be to add this to the function, depending on a new configuration variable ~org-tree-to-indirect-buffer-activate~ which can be either nil : as it is now (the default) b : new buffer not activated B : new buffer is activated possibly even f : new buffer in new frame and *not* activated F : new buffer in new frame and activated Cheers, Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVeDbwAAoJENvXNx4PUvmCOKMH/2WLBpqu5/JtT1EL2oPOwvKz 7ltDqeCHrlQmFTs3N1Bvn/ROsMJXg/hT6fpFArh1LwvOsVvms4hkyhtQkldADpd3 k/l+FKg2zvF6DQSrMIwTRZmPwLMbe3VIsRO/4QvwMC/jGa53xwIht4mcUgY3yloJ ZJxGeAwrg0NeUorfluxnVuzvVyxksK+IH2DuKJpmRwupjFshL7uC/7hIq1yJbXJy rqCfgDJU+mXvqX0jbrZHnNFR9sDtr4pWjaKPaAsdtDS3IPVHw0p7x1f4FBkCP5hJ dBgtOIAx9lrODRultIgMh9lwb3gxcALhZp02kRiiCZewtUxyMjFFQUDJoog7t5A= =Scgq -----END PGP SIGNATURE----- --=-=-=--