* is it possible to customise what headline level which-function displays?
@ 2014-04-07 21:18 Eric S Fraga
2014-04-17 15:44 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2014-04-07 21:18 UTC (permalink / raw)
To: emacs-orgmode
Hello all,
I have started using which-function (now that I have a monitor big
enough for my emacs mode-line... ;-). I was pleasantly surprised to see
that org supports which-function out of the box, although I shouldn't by
now be surprised at anything that org does.
Anyway, a quick question: which-function for org files seems to only
keep track of second level headings (or first level in some cases). My
documents often have three levels and I would like to have the third
level, or even a hierarchical representation (e.g. "first -> second ->
third") shown. I have not been able to figure out how which-function picks up the
information it displays. Is there any way to customise org to display
different information?
Thanks,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-888-g798bb8
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: is it possible to customise what headline level which-function displays?
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
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2014-04-17 15:44 UTC (permalink / raw)
To: Eric S Fraga; +Cc: emacs-orgmode
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> I have not been able to figure out how which-function picks up the
> information it displays. Is there any way to customise org to
> display different information?
`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.)
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: is it possible to customise what headline level which-function displays?
2014-04-17 15:44 ` Bastien
@ 2014-04-18 7:58 ` Eric S Fraga
2014-04-18 8:01 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2014-04-18 7:58 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: is it possible to customise what headline level which-function displays?
2014-04-18 7:58 ` Eric S Fraga
@ 2014-04-18 8:01 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2014-04-18 8:01 UTC (permalink / raw)
To: Eric S Fraga; +Cc: emacs-orgmode
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> 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.
Surely an issue with Emacs, as I can't reproduce the problem here
with latest Emacs.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-18 8:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-04-18 8:01 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.