From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Fogel Subject: Re: [PROPOSAL] New function `org-headings-to-point' and displayer. Date: Tue, 03 Dec 2019 17:34:40 -0600 Message-ID: <87lfrt3rvz.fsf@red-bean.com> References: <878snui0ay.fsf@red-bean.com> <87pnh5t66x.fsf@alphapapa.net> Reply-To: Karl Fogel Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icHgr-0000if-Tp for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 18:34:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icHgp-0005V1-QA for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 18:34:45 -0500 Received: from mail-yb1-xb42.google.com ([2607:f8b0:4864:20::b42]:46675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icHgp-0005TT-KX for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 18:34:43 -0500 Received: by mail-yb1-xb42.google.com with SMTP id v15so2280131ybp.13 for ; Tue, 03 Dec 2019 15:34:43 -0800 (PST) Received: from kwork (c-67-173-70-191.hsd1.il.comcast.net. [67.173.70.191]) by smtp.gmail.com with ESMTPSA id 129sm2257036ywm.67.2019.12.03.15.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 15:34:41 -0800 (PST) In-Reply-To: <87pnh5t66x.fsf@alphapapa.net> (Adam Porter's message of "Tue, 03 Dec 2019 16:06:30 -0600") 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" To: emacs-orgmode@gnu.org On 03 Dec 2019, Adam Porter wrote: >This seems to duplicate functionality from org-get-outline-path. As >well, org-eldoc displays in the minibuffer the outline path for the >heading at point. Thank you, Adam -- I didn't know about those. I had searched for something like that before implementing my own, but I think I searched using the term "heading" or something instead of "outline", unfortunately, so I never found them. Now that I know about `org-display-outline-path', the one improvement I'd like to make is to enable it to display the headings with per-level indentation, and treat the first level specially (with an anchoring dot instead of a directional arrow), as my code did. It's a lot more readable that way displayed in the minibuffer. I suppose I would implement this by adding two new optional arguments to `org-display-outline-path': * `per-level-indentation': add a newline followed by in front of each SEPARATOR * `level-1-prefix': a special prefix for the first level's heading ...and make corresponding changes to the helper functions of course. There should also be some way to access the new functionality interactively; the solution might be a new interactive wrapper function with its own name, or maybe some new variables? I don't know; I haven't thought it all the way through yet. Is there any interest in or opposition to such a patch? I'd like to get a sense of whether it would be able to land in Org Mode before I start working on it. Best regards, -Karl