From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: is it possible to customise what headline level which-function displays?
Date: Fri, 18 Apr 2014 08:58:08 +0100 [thread overview]
Message-ID: <87tx9rnk6n.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87y4z455bq.fsf@bzg.ath.cx
On Thursday, 17 Apr 2014 at 16:44, Bastien wrote:
[...]
> `which-function' uses `imenu--index-alist' so you can
> change the value of `org-imenu-depth' from 2 to 3 to get
> what you want (not tested.)
This seems to work, in that it does look deeper in the
hierarchy. Thanks. Makes which-function much more useful for me.
However, in playing around, I have found what seems to be a bug, at
least for the which-function functionality (not sure about imenu as I
don't use that directly). If you have a hierarchy that looks like this:
#+begin_src org
,* A
,** A.1
,* B
We have some text here and point is |here.
#+end_src
then which-function thinks we are in A.1 when point is where
indicated. This is the case with the default value of org-imenu-depth.
Not a big issue but I thought I'd point it out in case it matters for
imenu usage. It could be a which-function issue in any case.
Thanks again,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-898-g11f8ef
next prev parent reply other threads:[~2014-04-18 7:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 21:18 is it possible to customise what headline level which-function displays? Eric S Fraga
2014-04-17 15:44 ` Bastien
2014-04-18 7:58 ` Eric S Fraga [this message]
2014-04-18 8:01 ` 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=87tx9rnk6n.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=bzg@gnu.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).