From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: M-: (org-display-outline-path) doesn't work correctly Date: Wed, 12 Mar 2014 16:48:22 +0100 Message-ID: <87siqnquyh.fsf@gmail.com> References: <8738inscnt.fsf@gmail.com> <87zjkvxxnb.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNlNX-00019g-Af for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNlNR-0004Wy-Gc for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:47:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:40215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNlNR-0004WX-AS for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:47:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNlNN-0005cV-EX for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 16:47:25 +0100 Received: from e178190177.adsl.alicedsl.de ([85.178.190.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 16:47:25 +0100 Received: from tjolitz by e178190177.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 16:47:25 +0100 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: emacs-orgmode@gnu.org Bastien writes: Hi Bastien, > Thorsten Jolitz writes: > >> How is this function supposed to be called from another program? Why >> does it have (interactive "P") if the prefix arg is never used? Or do I >> simply miss something important here? > > I think you miss the fact that it displays a path only if the headline > is not a top-level headline. Not really, on the same 2nd level headline calling it with M-x and M-: give different messages, and only in the first case a useful one. With point at start of ** 2nd level #+begin_src org * 1st level Hello ** 2nd level Work #+end_src ,----------------------------------------------------- | Eval: (org-display-outline-path) | Eval: (call-interactively 'org-display-outline-path) `----------------------------------------------------- both print this in the message buffer ,-------------------------------------- | byte-code: End of buffer | #("1st level" 0 9 (face org-level-1)) `-------------------------------------- while using M-x shows the string "1st Level" as expected. -- cheers, Thorsten