emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Le Wang <l26wang@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: `session-jump-to-last-change' and org-mode
Date: Thu, 17 Mar 2011 14:20:23 +0800	[thread overview]
Message-ID: <AANLkTi=Zf0JwWx7uMYc57iqm0Q+5VoU_rzGgGSfVcvBy@mail.gmail.com> (raw)
In-Reply-To: <AANLkTim74_OrbApRbfi4_F4vL3hATGD-5s+kHVOwK6iq@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 720 bytes --]

On Thu, Mar 17, 2011 at 12:27 AM, Le Wang <l26wang@gmail.com> wrote:

> Yes, I didn't know about `org-reveal'.  That could work.  But how do I
> figure out if I need to expand the heading?  The last change could be to a
> folded heading itself, in which case, it shouldn't be expanded.
> Is there a org-goto-char type of function that always goes to that location
> in the buffer, expanding sections along the way?

I've solved it by advising goto-char like so:

(defadvice goto-char (around org-expand activate compile)
  (if (eq major-mode 'org-mode)

Can anyone see any problems with advising such a fundamental function?


[-- Attachment #2: Type: text/html, Size: 1053 bytes --]

  reply	other threads:[~2011-03-17  6:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 15:18 `session-jump-to-last-change' and org-mode Le Wang
2011-03-16 16:13 ` Samuel Wales
2011-03-16 16:27   ` Le Wang
2011-03-17  6:20     ` Le Wang [this message]
2011-03-17  7:02       ` Carsten Dominik
2011-03-17  8:53         ` Le Wang
2011-03-17 14:27           ` Nick Dokos
2011-03-17 14:54             ` Le Wang
2011-03-17 18:30               ` Eric S Fraga
2011-03-17 20:13                 ` Carsten Dominik
2011-04-13  1:59                   ` Le Wang

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:

  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='AANLkTi=Zf0JwWx7uMYc57iqm0Q+5VoU_rzGgGSfVcvBy@mail.gmail.com' \
    --to=l26wang@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \


* 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


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).