From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: is it possible to customise what headline level which-function displays? Date: Fri, 18 Apr 2014 08:58:08 +0100 Message-ID: <87tx9rnk6n.fsf@ucl.ac.uk> References: <87sipoq1nc.fsf@ucl.ac.uk> <87y4z455bq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb3gk-0003ar-Du for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 03:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb3gc-0007WM-Uh for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 03:58:22 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org 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