From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Naming of (indirect?) buffers opened by C-' Date: Thu, 18 Dec 2014 20:30:00 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1nKN-00048J-Be for emacs-orgmode@gnu.org; Thu, 18 Dec 2014 21:30:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1nKL-0005di-DS for emacs-orgmode@gnu.org; Thu, 18 Dec 2014 21:30:03 -0500 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:56759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1nKL-0005dR-75 for emacs-orgmode@gnu.org; Thu, 18 Dec 2014 21:30:01 -0500 Received: by mail-wg0-f43.google.com with SMTP id l18so156200wgh.30 for ; Thu, 18 Dec 2014 18:30:00 -0800 (PST) In-Reply-To: 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: Rainer M Krug Cc: "emacs-orgmode@gnu.org" (defun gcr/org-edit-src-code-plus-name () "Edit the well-described source code block. Attribution: URL `https://lists.gnu.org/archive/html/emacs-orgmode/2014-09/msg00778.html'" (interactive) (let* ((eop (org-element-at-point)) (name (or (org-element-property :name (org-element-context eop)) "=E0=A5=90")) (lang (org-element-property :language eop)) (buff-name (concat "*Org Src " name "[" lang "]*"))) (org-edit-src-code nil nil buff-name))) On Thu, Dec 18, 2014 at 5:00 AM, Rainer M Krug wrote: > Hi > > I remember there was a discussion recently about the naming of the > indirect buffers of source code block opened with C-' but I can't find > it at the moment. Was there a solution on giving these buffers a > useful name, i.e. the name of the code block? > > If this is included in org, it does not seem to be working for me? > > Thanks, > > Rainer > > -- > Rainer M. Krug > email: Rainerkrugsde > PGP: 0x0F52F982 --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson