From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: activate new org-tree-to-indirect-buffer to rename to name of heading Date: Thu, 03 Sep 2015 11:30:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXQqa-0000g6-SV for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 05:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXQqX-0004Xq-M7 for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 05:30:20 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:37541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXQqX-0004XZ-GX for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 05:30:17 -0400 Received: by wicfx3 with SMTP id fx3so45208380wic.0 for ; Thu, 03 Sep 2015 02:30:16 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id m4sm36745842wjb.37.2015.09.03.02.30.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 02:30:15 -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 I am following an older discussion of mine (Subject: org-tree-to-indirect-buffer - naming and prefix in define keyboard key). I have #+begin_src emacs-lisp (define-key org-mode-map "\C-ci" (lambda () (interactive) (org-tree-to-indirect-buffer '(4)))) #+end_src to open the org-tree in a new indirect buffer. This works nice, but I want to rename the buffer. I know from Alan Schmitt that I can do this by using #+begin_src emacs-lisp (rename-buffer (org-get-heading) t) #+end_src but I have to activate the new indirect buffer first. How can I activate the new indirect buffer, so that I can rename it to the name of the header? Thanks, 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 iQEcBAEBCAAGBQJV6BMlAAoJENvXNx4PUvmC/soH/126i4e8O8jLi72ZlKf/Quc7 VOChJrVwgms4jmy4NEmyd+VrvzdeYEDKwsYgWAWT7q13gzIyHpBvXqsHDHphd9lK iTbhlQIYA+UgoT0vNYGxNPP4oiQ45QaTqIwAOzufRdoIJcj2r4Od6mr5sqKxNG1g mfzNA15E449mKTYcoHWJJGJmJLi7VgL0LN4UQlsgoCjOmewYJbOT+eiLOepOdSDW LZqD5YEaTGya6bldvBdAN/80WLB+9Jk/sRhSwg0B4cJIqiRIwHZOPPL/FE3IhDXR Lj+FTnEEWXgjyGo01HHbZ3m6SeG6zX9Vx2tYwd/HUQKjE9fq43jC2lxrlX4x7w0= =iNzC -----END PGP SIGNATURE----- --=-=-=--