emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode breaks buffer indexing in sclang-mode
Date: Mon, 4 Oct 2010 18:07:44 +0800	[thread overview]
Message-ID: <AANLkTinDTe=LWS7cBc-_PBkDoVqAoHcJB9nw+AN3B6cr@mail.gmail.com> (raw)
In-Reply-To: <AE7E7680-FE84-497B-B8E9-DCC5F0D354E2@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1498 bytes --]

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 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

[-- Attachment #1.2: Type: text/html, Size: 2335 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      reply	other threads:[~2010-10-04 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-12 12:33 org-mode breaks buffer indexing in sclang-mode James Harkins
2010-10-04  8:42 ` Carsten Dominik
2010-10-04 10:07   ` James Harkins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinDTe=LWS7cBc-_PBkDoVqAoHcJB9nw+AN3B6cr@mail.gmail.com' \
    --to=jamshark70@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@dewdrop-world.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).