From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-mode breaks buffer indexing in sclang-mode Date: Mon, 4 Oct 2010 10:42:22 +0200 Message-ID: References: <4C8CC884.5050000@dewdrop-world.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=49793 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2gd1-0000ju-AC for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 04:42:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2gcs-0003bx-3O for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 04:42:28 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:39701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2gcr-0003br-R8 for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 04:42:26 -0400 Received: by eyh5 with SMTP id 5so2174589eyh.0 for ; Mon, 04 Oct 2010 01:42:25 -0700 (PDT) In-Reply-To: <4C8CC884.5050000@dewdrop-world.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: jamshark70@dewdrop-world.net Cc: emacs-orgmode@gnu.org Hi James, does this only happen when Org-mode opens the calendar, or also when you use M-x calendar? - Carsten On Sep 12, 2010, at 2:33 PM, James Harkins wrote: > As I said before, I'm really enjoying org-mode. I love that I can > keep all my semester's teaching data in one text file and zoom in > right to where I want quickly. But, today I found a not-good > interaction between it and the main programming mode that I use in > Emacs (sclang-mode, an interactive front end for the supercollider* > audio programming language). > > Supercollider keeps objects internally for code documents. These are > connected to Emacs buffers. The sclang-mode lisp code assigns an > integer index to buffers that supercollider is supposed to know > about, and passes those indices into the sc interpreter. When I run > sclang-mode on its own, this is all totally stable. It's also stable > if I have an org-mode buffer open and I'm editing only. > > As soon as org-mode opens a calendar buffer, the sclang interpreter > no longer knows about its Document buffers -- i.e., when in a buffer > that's been loaded from disk, the sc code "Document.current.path" > should return the full path to the file, but after opening the > calendar, Document.current returns 'nil' and .path fails with an > error. This could happen if Emacs tells sclang that the buffer > closed (but the buffer is still open). > > This is consistent behavior that I can reproduce on-demand, both in > Aquamacs 1.9 (OSX) and Emacs 23 on Ubuntu. Opening an agenda view > does not trigger the problem. It seems to be just the calendar. > > Why would opening a calendar buffer to choose a date mess around > with other modes' buffers? > > Not a major, major problem for me but it seems something fishy is > going on and I thought I would report it. > > James > > * http://supercollider.sourceforge.net > > > -- > James Harkins /// dewdrop world > jamshark70@dewdrop-world.net > http://www.dewdrop-world.net > > "Come said the Muse, > Sing me a song no poet has yet chanted, > Sing me the universal." -- Whitman > > blog: http://www.dewdrop-world.net/words > audio clips: http://www.dewdrop-world.net/audio > more audio: http://soundcloud.com/dewdrop_world/tracks > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten