From: "Rémi Vanicat" <vanicat@debian.org>
To: Bastien <bzg@altern.org>
Cc: "Rémi Vanicat" <vanicat@debian.org>, emacs-orgmode@gnu.org
Subject: Re: Bugs in org-cycle-internal-local?
Date: Thu, 27 Dec 2012 16:44:10 +0100 [thread overview]
Message-ID: <87pq1vbiut.fsf@gobelin.at.home> (raw)
In-Reply-To: <87obhiyfyr.fsf@bzg.ath.cx> (Bastien's message of "Tue, 25 Dec 2012 04:21:16 +0100")
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
Bastien <bzg@altern.org> writes:
> Rémi Vanicat <vanicat@debian.org> writes:
>
[...]
> Well, it was, I just skipped it inadvertantly.
> I can reproduce the problem, but don't have an easy fix
> at hand. If you find one, please let us know.
This seem to do it
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: move to beggining of line for end of section --]
[-- Type: text/x-diff, Size: 937 bytes --]
From e7344cd512af57fc9c85205876d6e3bfed2e53fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= <vanicat@debian.org>
Date: Thu, 27 Dec 2012 16:41:28 +0100
Subject: [PATCH] Find end of section only at beginning of line when cycling
When hiding a section in non org-mode using outline-minor-mode, if the
next section begin with white space, its header line used to appeared
on the same line as the one we hide.
---
lisp/org.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index ee4c70e..b1ffb8f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6399,7 +6399,8 @@ in special contexts.
(setq eos (save-excursion
(org-end-of-subtree t)
(unless (eobp)
- (skip-chars-forward " \t\n"))
+ (skip-chars-forward " \t\n")
+ (forward-line 0))
(if (eobp) (point) (1- (point)))))
(setq has-children
(or (save-excursion
--
1.7.10.4
[-- Attachment #3: Type: text/plain, Size: 26 bytes --]
--
Rémi Vanicat
next prev parent reply other threads:[~2012-12-27 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 21:43 Bugs in org-cycle-internal-local? Rémi Vanicat
2012-12-18 15:06 ` Bastien
2012-12-18 18:57 ` Rémi Vanicat
2012-12-25 3:21 ` Bastien
2012-12-27 15:44 ` Rémi Vanicat [this message]
2012-12-28 11:43 ` 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=87pq1vbiut.fsf@gobelin.at.home \
--to=vanicat@debian.org \
--cc=bzg@altern.org \
--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).