emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Burtzlaff <andy13@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Org-mode version 6.30trans (release_6.30d.19.g1db9); Last character in file not folded correctly
Date: Mon, 7 Sep 2009 22:34:39 +0200	[thread overview]
Message-ID: <20090907223439.ab06e893.andy13@gmx.net> (raw)
In-Reply-To: <87r5uisq3x.wl%maus.david@gmail.com>

On Mon, 07 Sep 2009 17:59:14 +0200
David Maus <maus.david@gmail.com> wrote:

> 
> According to Carsten this misbehaviour is not Orgmode's fault, but
> Outline-Mode's
> 
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg16542.html
> 
> and should be reported as a bug in Emacs23 (what I do use, too).
> 
> *But*: I didn't file a bugreport for Emacs because I cannot reproduce
> this misbehavior outside Orgmode. It's indeed (hide-subtree) that
> causes the last char beneath a headline be displayed after the
> three-dots-thingy but (hide-subtree) behaves fine when used in 'pure'
> outline-mode.

It was indeed org-modes rewrite of outline-end-of-subtree that
triggered the misbehaviour.

Here's the patch:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/org.el b/lisp/org.el
index 74d7f78..c75f1b9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16880,7 +16880,7 @@ If there is no such heading, return nil."
   (if (eq major-mode 'org-mode)
       (progn
        (org-end-of-subtree nil t)
-       (backward-char 1))
+       (if (not (eobp)) (backward-char 1)))
     ad-do-it))
 
 (defun org-forward-same-level (arg &optional invisible-ok)
--8<---------------cut here---------------end--------------->8---

Andreas

  reply	other threads:[~2009-09-07 20:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07 13:16 Org-mode version 6.30trans (release_6.30d.19.g1db9); Last character in file not folded correctly Andreas Burtzlaff
2009-09-07 13:27 ` Giovanni Ridolfi
2009-09-07 15:59 ` David Maus
2009-09-07 20:34   ` Andreas Burtzlaff [this message]
2009-09-07 22:39     ` [PATCH] " Bastien

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=20090907223439.ab06e893.andy13@gmx.net \
    --to=andy13@gmx.net \
    --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).