From: Michael Sperber <sperber@deinprogramm.de>
To: emacs-orgmode@gnu.org, Robert Pluim <rpluim@gmail.com>,
carsten.dominik@gmail.com
Subject: Re: org-capture and XEmacs, indenting too far
Date: Sat, 22 Oct 2011 16:46:07 +0200 [thread overview]
Message-ID: <y9lipnhjd8w.fsf@deinprogramm.de> (raw)
In-Reply-To: <pknlj4b5dhp.fsf@gmail.com> (Robert Pluim's message of "Tue, 30 Nov 2010 11:09:54 +0100")
Robert Pluim <rpluim@gmail.com> writes:
> Hi, I'm using XEmacs 21.5 (beta29) "garbanzo" d27c1ee1943b+ [Lucid]
> (i686-pc-cygwin, Mule) of Mon Oct 18 2010 on RPluim, with the following
> org-capture-templates
>
> (("t" "Todo" entry (file+headline "~/org/notes.org" "Tasks") "* TODO %?"))
>
> The problem is that for some reason the resulting TODO heading is has 2
> extra spaces, and is placed at too deep a level, giving:
>
> * Tasks
> *** TODO a task
>
> I've tested this on a fairly recent emacs24 build, and everything works
> fine there, so this is probably something XEmacs specific. Can anyone
> suggest any way to track this down (I'd bisect, but I've yet to find a
> 'good' version)?
I finally got around to looking into this: The reason is that, in
org-capture mode, `outline-level' is bound to outline.el's function,
which is off by one compared to org-mode's. I used this patch to fix
it:
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index e1b8a4f..cfa35d5 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -848,6 +848,7 @@ it. When it is a variable, retrieve the value. Return whatever we get."
(goto-char (org-capture-get :pos))
(org-set-local 'org-capture-target-marker
(move-marker (make-marker) (point)))
+ (org-set-local 'outline-level 'org-outline-level)
(let* ((template (org-capture-get :template))
(type (org-capture-get :type)))
(case type
Could somebody review and maybe apply this?
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
next prev parent reply other threads:[~2011-10-22 14:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 10:09 org-capture and XEmacs, indenting too far Robert Pluim
2011-10-22 14:46 ` Michael Sperber [this message]
2011-10-23 8:15 ` Michael Sperber
2011-10-23 9:54 ` Carsten Dominik
2011-10-23 17:53 ` Bastien
2011-10-26 17:43 ` Bastien
2011-10-26 17:50 ` [Accepted] " Bastien Guerry
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=y9lipnhjd8w.fsf@deinprogramm.de \
--to=sperber@deinprogramm.de \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rpluim@gmail.com \
/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).