From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: org-mode breaks buffer indexing in sclang-mode Date: Sun, 12 Sep 2010 20:33:08 +0800 Message-ID: <4C8CC884.5050000@dewdrop-world.net> Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=46046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OulkG-0002Lx-6w for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 08:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OulkE-0007hQ-Pn for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 08:33:20 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:48488) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OulkE-0007hD-Kp for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 08:33:18 -0400 Received: by pzk26 with SMTP id 26so2360221pzk.0 for ; Sun, 12 Sep 2010 05:33:17 -0700 (PDT) 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: emacs-orgmode@gnu.org 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