From: "Eduardo Ochs" <eduardoochs@gmail.com>
To: emacs-orgmode@gnu.org
Subject: doing `M-x org-mode' loses point
Date: Fri, 16 Jun 2006 11:41:03 -0300 [thread overview]
Message-ID: <d46ca6c20606160741y2fad1f5bjce53a56a40336cdc@mail.gmail.com> (raw)
Hello list,
Suppose that I have a file with a structure like this:
* an org header
(some elisp code)
* another org header
(more elisp code)
* another org header
(more elisp code)
In a file like that it would be natural to switch between org-mode and
emacs-lisp-mode; M-x emacs-lisp-mode works as expected, but when I do
M-x org-mode the point moves to the first header line, and that
doesn't look like the right thing...
One solution that just occurred to me is to have a line like this in
each elisp block:
;; (progn (save-excursion (org-mode)) (reveal-post-command))
by executing it with C-x C-e (*) I can switch back to org-mode without
losing point... the next obvious steps - binding that to a key,
patching org-mode, etc, are not relevant here, so I won't talk about
them...
So, is this org-mode-jumps-to-the-first-header-line a bug or a
feature? Is there a standard workaround?
Thanks in advance, cheers,
Eduardo Ochs
http://angg.twu.net/
eduardoochs@gmail.com
(*): We need this: (autoload 'reveal-post-command "reveal"))
next reply other threads:[~2006-06-16 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-16 14:41 Eduardo Ochs [this message]
2006-06-16 19:17 ` doing `M-x org-mode' loses point Carsten Dominik
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=d46ca6c20606160741y2fad1f5bjce53a56a40336cdc@mail.gmail.com \
--to=eduardoochs@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).