emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] is it possible to customise what headline level which-function d


From: Eric S Fraga
Subject: Re: [O] is it possible to customise what headline level which-function displays?
Date: Fri, 18 Apr 2014 08:58:08 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]