From: Bastien <bzg@altern.org>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org, Kelly Dean <kellydeanch@yahoo.com>
Subject: Re: Outline and org-mode don't insert text into folded sections logically
Date: Sat, 29 Oct 2011 17:40:08 +0200 [thread overview]
Message-ID: <87hb2ru7qf.fsf@gnu.org> (raw)
In-Reply-To: <CAMXnza1KYprG7n6n18-ckAW+7tEC-q1bEN1uc_Ldd7eXXdeQRA@mail.gmail.com> (suvayu ali's message of "Sat, 29 Oct 2011 16:57:31 +0200")
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
Hi Suvayu,
suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> Did you by any chance attach the old patch again? ;)
Er, yes :)
Here is the fresh one -- thanks for testing it.
>> As for `org-reveal', please report a bug if it doesn't work
>> as expected in specific parts of the buffer.
>
> I will try to make a more complete analysis and report it.
Thanks!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-Unfold-invisible-region-at-point-or-right-bef.patch --]
[-- Type: text/x-patch, Size: 1693 bytes --]
From 23ef0209d53b0acdf2158da9dd8d4532b437f97e Mon Sep 17 00:00:00 2001
From: Bastien Guerry <bzg@altern.org>
Date: Sat, 29 Oct 2011 16:08:27 +0200
Subject: [PATCH] org.el: Unfold invisible region at point or right before
point when editing.
* org.el (org-self-insert-command): Unfold invisible region at
point or right before point when editing.
Thanks to Suvayu Ali for discussing this.
---
lisp/org.el | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index fe45cf7..6c809be 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17393,6 +17393,23 @@ hook. The default setting is `org-speed-command-default-hook'."
If the cursor is in a table looking at whitespace, the whitespace is
overwritten, and the table is not marked as requiring realignment."
(interactive "p")
+ (let ((invisible-at-point
+ (car (get-char-property-and-overlay (point) 'invisible)))
+ (invisible-before-point
+ (car (get-char-property-and-overlay (1- (point)) 'invisible))))
+ (when (or (eq invisible-at-point 'outline)
+ (eq invisible-at-point 'org-hide-block)
+ (eq invisible-before-point 'outline)
+ (eq invisible-before-point 'org-hide-block))
+ (if (or (eq invisible-before-point 'outline)
+ (eq invisible-before-point 'org-hide-block))
+ (goto-char (previous-overlay-change (point))))
+ (org-cycle)
+ (if (or (eq invisible-before-point 'outline)
+ (eq invisible-before-point 'org-hide-block))
+ (forward-char 1))
+ (message "Unfolding invisible region around point before editing")
+ (sit-for 1)))
(cond
((and org-use-speed-commands
(setq org-speed-command
--
1.7.7.1
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Bastien
next prev parent reply other threads:[~2011-10-29 15:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-03 19:14 Outline and org-mode don't insert text into folded sections logically Kelly Dean
2011-09-05 7:52 ` Giovanni Ridolfi
2011-09-05 8:01 ` suvayu ali
2011-10-22 10:13 ` Bastien
2011-10-22 10:17 ` suvayu ali
2011-10-22 10:21 ` Jambunathan K
2011-10-22 13:53 ` Bastien
2011-10-23 2:18 ` suvayu ali
2011-10-29 14:10 ` Bastien
2011-10-29 14:57 ` suvayu ali
2011-10-29 15:40 ` Bastien [this message]
2011-10-29 15:53 ` suvayu ali
2011-10-29 16:15 ` Bastien
2011-10-29 16:22 ` suvayu ali
2011-10-30 1:07 ` Bastien
2011-10-30 6:28 ` Carsten Dominik
2011-10-30 7:30 ` Jambunathan K
2011-10-30 7:47 ` Carsten Dominik
2011-10-30 9:04 ` Bastien
2011-10-30 15:37 ` Carsten Dominik
2011-10-31 20:58 ` Carsten Dominik
2011-11-02 7:12 ` Carsten Dominik
2011-11-02 10:10 ` Bastien
2011-11-02 12:53 ` Carsten Dominik
2011-11-03 1:30 ` 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=87hb2ru7qf.fsf@gnu.org \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
--cc=kellydeanch@yahoo.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).