From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: M-: (org-display-outline-path) doesn't work correctly Date: Thu, 13 Mar 2014 10:28:35 +0100 Message-ID: <87fvmmih18.fsf@yahoo.fr> References: <8738inscnt.fsf@gmail.com> <87zjkvxxnb.fsf@bzg.ath.cx> <87siqnquyh.fsf@gmail.com> <87d2hrwg3m.fsf@bzg.ath.cx> <87eh27qrxd.fsf@gmail.com> <87mwgvia6t.fsf@bzg.ath.cx> <87a9cvqo2k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO1wO-0005C2-6f for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 05:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO1wG-0000Gr-TE for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 05:28:40 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:45863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO1wG-0000GP-NU for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 05:28:32 -0400 In-Reply-To: <87a9cvqo2k.fsf@gmail.com> (Thorsten Jolitz's message of "Wed, 12 Mar 2014 19:17:07 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Thorsten Jolitz writes: > Ok, I see ... that seems to be a common pattern in Org-mode to make > functions behave differently if called (non-)interactively, that > sometimes causes confusion when using M-: instead of M-x. Note that using M-: will always hide any (message "foo") might have been called because M-: outputs the return value of the function. Usually you can recover those by inspecting the *Messages* buffer, but in this case org uses org-unlogged-message so you can't see it there either. Try this : M-: (prog1 (org-display-outline-path) (sit-for 2)) RET It shows the message (for up to 2 seconds), and then it is hidden by the return value (a string with properties) when the call to M-: terminates. -- Nico.