From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: org-mode breaks buffer indexing in sclang-mode Date: Mon, 4 Oct 2010 18:07:44 +0800 Message-ID: References: <4C8CC884.5050000@dewdrop-world.net> Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1733427633==" Return-path: Received: from [140.186.70.92] (port=34981 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2hxT-0007oo-Mq for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2hxR-0008HG-Nb for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:07:47 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:46772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2hxR-0008H6-K8 for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 06:07:45 -0400 Received: by gyf3 with SMTP id 3so1431960gyf.0 for ; Mon, 04 Oct 2010 03:07:44 -0700 (PDT) In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============1733427633== Content-Type: multipart/alternative; boundary=90e6ba61368c2ea73c0491c7b794 --90e6ba61368c2ea73c0491c7b794 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 4, 2010 at 4:42 PM, Carsten Dominik wrote: > Hi James, > > does this only happen when Org-mode opens the calendar, > or also when you use M-x calendar? > Ah... I misdiagnosed it. Opening the calendar doesn't cause the problem. It's after choosing the date to insert as a timestamp or schedule/deadline. Then org-mode hides the *Calendar* buffer and it's at that point that the sclang buffers get messed up. (Or maybe it's when the calendar buf inserts the timestamp into the org-mode buffer - those are indistinguishable from the user's point of view.) Couldn't reproduce it with M-x calendar, which doesn't insert a timestamp AFAICS. That tipped me off... so I retested this way: 1. Open scd file (sclang-mode). Run "Document.current" -- reports "a ScelDocument." 2. Open org-mode file. 3. C-c ., then C-g (no timestamp insertion). 4. C-x b to the sclang mode doc. Run "Document.current" again -- reports "a ScelDocument." 5. C-x b to org-mode. C-c . and choose a date. 6. Step 4 again, but now "Document.current" replies "nil." Bingo! So it breaks when clicking on a date in *Calendar* to add the timestamp. hjh -- 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 --90e6ba61368c2ea73c0491c7b794 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Oct 4, 2010 at 4:42 PM, Carsten Dominik = <carsten.dominik@gmail.com> wrote:
Hi James,

does this only happen when Org-mode opens the calendar,
or also when you use M-x calendar?

Ah... I misdiag= nosed it. Opening the calendar doesn't cause the problem. It's afte= r choosing the date to insert as a timestamp or schedule/deadline. Then org= -mode hides the *Calendar* buffer and it's at that point that the sclan= g buffers get messed up. (Or maybe it's when the calendar buf inserts t= he timestamp into the org-mode buffer - those are indistinguishable from th= e user's point of view.)

Couldn't reproduce it with M-x calendar, which doesn't insert a= timestamp AFAICS. That tipped me off... so I retested this way:

1. = Open scd file (sclang-mode). Run "Document.current" -- reports &q= uot;a ScelDocument."
2. Open org-mode file.
3. C-c ., then C-g (no timestamp insertion).
4= . C-x b to the sclang mode doc. Run "Document.current" again -- r= eports "a ScelDocument."
5. C-x b to org-mode. C-c . and choos= e a date.
6. Step 4 again, but now "Document.current" replies "nil.&qu= ot; Bingo!

So it breaks when clicking on a date in *Calendar* to add= the timestamp.

hjh


--
Jame= s Harkins /// dewdrop world
jamshark7= 0@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."=A0 -- Whitman

blog: http://www.dewdrop-world.net= /words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks
--90e6ba61368c2ea73c0491c7b794-- --===============1733427633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1733427633==--