From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adriaan Sticker Subject: meaningfull names for org-src buffers Date: Fri, 12 Sep 2014 00:05:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c38328594edb0502d15d3b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSCUV-0002eF-NR for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 18:05:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSCUU-0002yh-5S for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 18:05:23 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:40031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSCUT-0002xf-VC for emacs-orgmode@gnu.org; Thu, 11 Sep 2014 18:05:22 -0400 Received: by mail-we0-f170.google.com with SMTP id u57so7581832wes.29 for ; Thu, 11 Sep 2014 15:05:21 -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 --001a11c38328594edb0502d15d3b Content-Type: text/plain; charset=UTF-8 Hi all I was wondering if it's somehow possible to give named org src buffer the name they were give in their #+NAME tag? Now there are just called something like: *Org Src test.org[ R ]* But if you have multiple org-src buffers opened at the same time, its hard to find the correct one back. Greets --001a11c38328594edb0502d15d3b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

I was wondering if it&#= 39;s somehow possible to give named org src buffer the name they were give = in their #+NAME tag? Now there are just called something like:
*Org Src = test.org[ R ]*=C2=A0

But if y= ou have multiple org-src buffers opened at the same time, its hard to find = the correct one back.

Greets
--001a11c38328594edb0502d15d3b-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: meaningfull names for org-src buffers Date: Sun, 21 Sep 2014 08:49:04 -0500 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]:40129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVhVn-0001va-Im for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 09:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVhVm-0002OK-9W for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 09:49:11 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:59318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVhVm-0002O4-4O for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 09:49:10 -0400 Received: by mail-ob0-f182.google.com with SMTP id wo20so3120880obc.27 for ; Sun, 21 Sep 2014 06:49:04 -0700 (PDT) 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: Adriaan Sticker Cc: "emacs-orgmode@gnu.org" On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker wrote: > I was wondering if it's somehow possible to give named org src buffer the > name they were give in their #+NAME tag? Now there are just called someth= ing > like: > *Org Src test.org[ R ]* > > But if you have multiple org-src buffers opened at the same time, its har= d > to find the correct one back. Excellent idea. I've got so many small source blocks that it is too difficult to make sense of keeping multiple source block edit buffers open and limit them to one at a time eg ,---- | (setq org-src-window-setup 'current-window) `---- How have you come upon your workflow of keeping multiple open and what are some of the pros and cons that you've found with it? --=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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adriaan Sticker Subject: Re: meaningfull names for org-src buffers Date: Sun, 21 Sep 2014 17:07:59 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7ba9777431a7b0050394b337 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVikC-0002Sj-2x for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVikA-0002A8-LV for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:08:08 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:43554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVikA-00028n-BJ for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:08:06 -0400 Received: by mail-we0-f172.google.com with SMTP id p10so1325746wes.3 for ; Sun, 21 Sep 2014 08:08:00 -0700 (PDT) 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: Grant Rettke Cc: "emacs-orgmode@gnu.org" --047d7ba9777431a7b0050394b337 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Well, I ussually just try to live with this limitation. :) I try to C-c ' in and out src block whenever possible so my my list with buffer names doesnt get to cluttered. Im also thinking about investigating the usefullness of polymode ( https://github.com/vitoshka/polymode) So I dont have to go to a different buffer all the time. Do you have any experience with this? Greetings 2014-09-21 15:49 GMT+02:00 Grant Rettke : > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker > wrote: > > I was wondering if it's somehow possible to give named org src buffer t= he > > name they were give in their #+NAME tag? Now there are just called > something > > like: > > *Org Src test.org[ R ]* > > > > But if you have multiple org-src buffers opened at the same time, its > hard > > to find the correct one back. > > Excellent idea. I've got so many small source blocks that it is too > difficult to make sense of > keeping multiple source block edit buffers open and limit them to one > at a time eg > > ,---- > | (setq org-src-window-setup 'current-window) > `---- > > How have you come upon your workflow of keeping multiple open and what > are some of the pros and > cons that you've found with it? > > -- > 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 = stop > taking it seriously.=E2=80=9D --Thompson > --047d7ba9777431a7b0050394b337 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well, I ussually just try to live with= this limitation. :)
I try to C-c ' in and out src block whene= ver possible so my my list with buffer names doesnt get to cluttered.
<= br>
Im also thinking about investigating the usefullness of polymode (= https://github.com/vitoshk= a/polymode)
So I dont have to go to a different buffer all the= time. Do you have any experience with this?

Greetings

2014-09-21 15:4= 9 GMT+02:00 Grant Rettke <gcr@wisdomandwonder.com>:
On = Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker
<adriaan.sticker@gmail.com<= /a>> wrote:
> I was wondering if it's somehow possible to give named org src buf= fer the
> name they were give in their #+NAME tag? Now there are just called som= ething
> like:
> *Org Src
test.org[ R= ]*
>
> But if you have multiple org-src buffers opened at the same time, its = hard
> to find the correct one back.

Excellent idea. I've got so many small source blocks that i= t is too
difficult to make sense of
keeping multiple source block edit buffers open and limit them to one
at a time eg

,----
| (setq org-src-window-setup 'current-window)
`----

How have you come upon your workflow of keeping multiple open and what
are some of the pros and
cons that you've found with it?

--
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisd= omandwonder.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

--047d7ba9777431a7b0050394b337-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: meaningfull names for org-src buffers Date: Sun, 21 Sep 2014 10:51:33 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVjQV-0002Pq-CJ for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:51:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVjQU-0002Ts-GD for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:51:51 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:61821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVjQU-0002St-B3 for emacs-orgmode@gnu.org; Sun, 21 Sep 2014 11:51:50 -0400 Received: by mail-oi0-f46.google.com with SMTP id i138so3013377oig.5 for ; Sun, 21 Sep 2014 08:51:34 -0700 (PDT) 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: Adriaan Sticker Cc: "emacs-orgmode@gnu.org" On Sun, Sep 21, 2014 at 10:07 AM, Adriaan Sticker wrote: > Im also thinking about investigating the usefullness of polymode > (https://github.com/vitoshka/polymode) > So I dont have to go to a different buffer all the time. Do you have any > experience with this? No and it is on my TODO list because you may use it for .Rmd files so it is a must-learn. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: meaningfull names for org-src buffers Date: Thu, 25 Sep 2014 11:55:53 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBgE-0000FH-BJ for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXBg8-00018L-Hx for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:42052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBg8-00015Y-C0 for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XX6mK-0004J9-My for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 13:00:04 +0200 Received: from 193.63.222.28 ([193.63.222.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 13:00:04 +0200 Received: from andreas.leha by 193.63.222.28 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 13:00:04 +0200 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 Hi, Grant Rettke writes: > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker > wrote: >> I was wondering if it's somehow possible to give named org src buffer the >> name they were give in their #+NAME tag? Now there are just called something >> like: >> *Org Src test.org[ R ]* >> >> But if you have multiple org-src buffers opened at the same time, its hard >> to find the correct one back. > > Excellent idea. I've got so many small source blocks that it is too > difficult to make sense of > keeping multiple source block edit buffers open and limit them to one > at a time eg > > ,---- > | (setq org-src-window-setup 'current-window) > `---- > > How have you come upon your workflow of keeping multiple open and what > are some of the pros and > cons that you've found with it? I'd be interested in this as well. Regards, Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: meaningfull names for org-src buffers Date: Thu, 25 Sep 2014 11:54:43 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBgH-0000FR-VI for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXBgC-00019U-3p for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:42063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXBgB-00017K-UI for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:14:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XX6hT-0006dG-Ds for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 12:55:03 +0200 Received: from 193.63.222.28 ([193.63.222.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 12:55:03 +0200 Received: from andreas.leha by 193.63.222.28 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 12:55:03 +0200 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 Hi Adriaan, Adriaan Sticker writes: > Well, I ussually just try to live with this limitation. :) > I try to C-c ' in and out src block whenever possible so my my list > with buffer names doesnt get to cluttered. > > Im also thinking about investigating the usefullness of polymode > (https://github.com/vitoshka/polymode) > So I dont have to go to a different buffer all the time. Do you have > any experience with this? I have finally looked into this some weeks back. And got emacs lock up. To quote from the author [fn:1]: ,---- | The work on polymode got stuck a bit as Emacs folks strongly discourage | inderect buffer usage. So I will have to remove indirect buffers from | the picture. This will solve all the font-locking problems as the one | you have described. `---- I am looking forward to testing any next version, though. Regards, Andreas Footnotes: [fn:1] http://article.gmane.org/gmane.emacs.ess.general/8342/match=polymode From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: meaningfull names for org-src buffers Date: Thu, 25 Sep 2014 19:55:45 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXF9C-0004YK-8Z for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 15:56:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXF97-00071f-D9 for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 15:56:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:55043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXF97-00070C-6q for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 15:56:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XXF8v-00067t-H4 for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 21:55:57 +0200 Received: from 137.110.37.92 ([137.110.37.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 21:55:57 +0200 Received: from ccberry by 137.110.37.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 21:55:57 +0200 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 Andreas Leha med.uni-goettingen.de> writes: > > Hi, > > Grant Rettke wisdomandwonder.com> writes: > > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker > > gmail.com> wrote: > >> I was wondering if it's somehow possible to give named org src buffer the > >> name they were give in their #+NAME tag? Now there are just called > >> something like: > >> *Org Src test.org[ R ]* > >> > >> But if you have multiple org-src buffers opened at the same time, its > >> hard to find the correct one back. > > > > Excellent idea. I've got so many small source blocks that it is too > > difficult to make sense of > > keeping multiple source block edit buffers open and limit them to one > > at a time eg > > > > ,---- > > | (setq org-src-window-setup 'current-window) > > `---- > > > > How have you come upon your workflow of keeping multiple open and what > > are some of the pros and > > cons that you've found with it? > > I'd be interested in this as well. > > Regards, > Andreas > > Maybe I am answering the wrong question, but org-edit-src-code allows you to specify the buffer name: ,----[ C-h f org-edit-src-code RET ] | org-edit-src-code is an interactive compiled Lisp function in | `org-src.el'. | | (org-edit-src-code &optional CONTEXT CODE EDIT-BUFFER-NAME) | | ... `---- So you can do something like this: #+BEGIN_SRC emacs-lisp (defun org-edit-src-code-plus-name () (interactive) (let* ((eop (org-element-at-point)) (name (or (org-element-property :name (org-element-context eop)) "unnamed")) (lang (org-element-property :language eop)) (buff-name (concat "*Org Src " name "[ " lang " ] *"))) (org-edit-src-code nil nil buff-name))) #+END_SRC which leads to a buffer named like "*Org Src My-block[ R ] *", where 'My-block' is the name of the src block. HTH, Chuck From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: meaningfull names for org-src buffers Date: Thu, 25 Sep 2014 21:22:07 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXFYZ-0005RP-RO for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 16:22:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXFYV-0005zo-7d for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 16:22:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:38030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXFYV-0005y4-14 for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 16:22:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XXFYP-0007dh-0I for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 22:22:17 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 22:22:17 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Sep 2014 22:22:17 +0200 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 Hi Charles, Charles Berry writes: > Andreas Leha med.uni-goettingen.de> writes: > >> >> Hi, >> >> Grant Rettke wisdomandwonder.com> writes: >> > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker >> > gmail.com> wrote: >> >> I was wondering if it's somehow possible to give named org src buffer the >> >> name they were give in their #+NAME tag? Now there are just called >> >> something like: >> >> *Org Src test.org[ R ]* >> >> >> >> But if you have multiple org-src buffers opened at the same time, its >> >> hard to find the correct one back. >> > >> > Excellent idea. I've got so many small source blocks that it is too >> > difficult to make sense of >> > keeping multiple source block edit buffers open and limit them to one >> > at a time eg >> > >> > ,---- >> > | (setq org-src-window-setup 'current-window) >> > `---- >> > >> > How have you come upon your workflow of keeping multiple open and what >> > are some of the pros and >> > cons that you've found with it? >> >> I'd be interested in this as well. >> >> Regards, >> Andreas >> >> > > Maybe I am answering the wrong question, but org-edit-src-code allows > you to specify the buffer name: > You are answering my exact question. > > ,----[ C-h f org-edit-src-code RET ] > | org-edit-src-code is an interactive compiled Lisp function in > | `org-src.el'. > | > | (org-edit-src-code &optional CONTEXT CODE EDIT-BUFFER-NAME) > | > | ... > `---- > > So you can do something like this: > > #+BEGIN_SRC emacs-lisp > (defun org-edit-src-code-plus-name () > (interactive) > (let* ((eop (org-element-at-point)) > (name (or (org-element-property :name (org-element-context eop)) > "unnamed")) > (lang (org-element-property :language eop)) > (buff-name (concat "*Org Src " name "[ " lang " ] *"))) > (org-edit-src-code nil nil buff-name))) > #+END_SRC > > which leads to a buffer named like "*Org Src My-block[ R ] *", where > 'My-block' is the name of the src block. > Thanks! On my first quick tests that works great! It is in my initialization and I'll use that regularly. Is there any drawback to this? Otherwise I'd advocate for org-edit-src-code doing that by default. > HTH, It sure does. Thanks, Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: meaningfull names for org-src buffers Date: Fri, 26 Sep 2014 08:33:49 +0200 Message-ID: References: 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]:49728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXP6X-0003hp-6I for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 02:34:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXP6S-0005Al-EY for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 02:34:09 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:39472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXP6S-0005A2-9L for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 02:34:04 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so628278wgh.34 for ; Thu, 25 Sep 2014 23:33:58 -0700 (PDT) In-Reply-To: (Andreas Leha's message of "Thu, 25 Sep 2014 21:22:07 +0100") 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: Andreas Leha Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andreas Leha writes: > Hi Charles, > > Charles Berry writes: >> Andreas Leha med.uni-goettingen.de> writes: >> >>>=20 >>> Hi, >>>=20 >>> Grant Rettke wisdomandwonder.com> writes: >>> > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker >>> > gmail.com> wrote: >>> >> I was wondering if it's somehow possible to give named org src buffe= r the >>> >> name they were give in their #+NAME tag? Now there are just called=20 >>> >> something like: >>> >> *Org Src test.org[ R ]* >>> >> >>> >> But if you have multiple org-src buffers opened at the same time, it= s=20 >>> >> hard to find the correct one back. >>> > >>> > Excellent idea. I've got so many small source blocks that it is too >>> > difficult to make sense of >>> > keeping multiple source block edit buffers open and limit them to one >>> > at a time eg >>> > >>> > ,---- >>> > | (setq org-src-window-setup 'current-window) >>> > `---- >>> > >>> > How have you come upon your workflow of keeping multiple open and what >>> > are some of the pros and >>> > cons that you've found with it? >>>=20 >>> I'd be interested in this as well. >>>=20 >>> Regards, >>> Andreas >>>=20 >>>=20 >> >> Maybe I am answering the wrong question, but org-edit-src-code allows >> you to specify the buffer name: >> > > You are answering my exact question. > >> >> ,----[ C-h f org-edit-src-code RET ] >> | org-edit-src-code is an interactive compiled Lisp function in >> | `org-src.el'. >> |=20 >> | (org-edit-src-code &optional CONTEXT CODE EDIT-BUFFER-NAME) >> |=20 >> | ... >> `---- >> >> So you can do something like this: >> >> #+BEGIN_SRC emacs-lisp >> (defun org-edit-src-code-plus-name () >> (interactive) >> (let* ((eop (org-element-at-point)) >> (name (or (org-element-property :name (org-element-context eo= p)) >> "unnamed")) >> (lang (org-element-property :language eop)) >> (buff-name (concat "*Org Src " name "[ " lang " ] *"))) >> (org-edit-src-code nil nil buff-name))) >> #+END_SRC >> >> which leads to a buffer named like "*Org Src My-block[ R ] *", where=20 >> 'My-block' is the name of the src block. >> > > Thanks! On my first quick tests that works great! It is in my > initialization and I'll use that regularly. > > Is there any drawback to this? Otherwise I'd advocate for > org-edit-src-code doing that by default. Haven't tried it out yet, but I second that statement. Rainer > >> HTH, > > It sure does. > > Thanks, > Andreas > > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUJQjRAAoJENvXNx4PUvmCrgwH/0xFyNMv8Fio7nhgrej4qVFA nBZnN3IiHdlxwNMDnLBSLwVVu0yWUcOq5/9qYsTd+jll6ibPRsRh9hQj78vsVmoq sqQbSDyFVEaMz8/k0MKFS32FBjvFzDhHNB99MTgxsxvl4gYpjIZBPYRgJ5O85SyS nBTMbjA2IrUdJAU/R6VAMsmlXdJqMLZlcXSK38IqxkjJxE0FfYVmqoslDVLvZOrZ 4fAtshJWeKSg6yE5xgAribezt5AGRvAzReSKiTmrnrxzPGChXI0hBNuC0+qMTLk5 KLpKE6/2LWYr8a1hPxzSoxzX1rO/coFY+yhOFWqcathLjk1/FhKZfbak9k9TrOs= =RTKi -----END PGP SIGNATURE----- --=-=-=--