From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: [PROPOSAL] New function `org-headings-to-point' and displayer. Date: Thu, 05 Dec 2019 02:42:39 -0600 Message-ID: <87blsntb7k.fsf@alphapapa.net> References: <878snui0ay.fsf@red-bean.com> <87pnh5t66x.fsf@alphapapa.net> <87lfrt3rvz.fsf@red-bean.com> <87h82gu8xj.fsf@alphapapa.net> <87sglz1nig.fsf@red-bean.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48132) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icmip-0001U5-4d for emacs-orgmode@gnu.org; Thu, 05 Dec 2019 03:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icmio-0006FL-2N for emacs-orgmode@gnu.org; Thu, 05 Dec 2019 03:42:50 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:59140 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1icmin-00063y-Po for emacs-orgmode@gnu.org; Thu, 05 Dec 2019 03:42:49 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1icmij-000EuN-Uy for emacs-orgmode@gnu.org; Thu, 05 Dec 2019 09:42:45 +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" To: emacs-orgmode@gnu.org Karl Fogel writes: > Unless you meant make a new interactive function to display a vertical > hierarchy and base it on the existing Org Mode functions you informed > me of the existence of? But I don't think there's a way to do that > without adding some new parameters to those existing functions, and, > as you point out, that's probably not worth the extra complexity. I'm not sure what you mean about having to add new parameters to existing functions. For example, if I understand correctly what you're wanting, this code does approximately that: (defun ap/org-display-olp-lines () (interactive) (thread-first (cl-loop for heading in (org-get-outline-path t) for i from 0 for indent = (make-string (* i 2) ? ) collect (concat indent "* " heading)) (string-join "\n") message)) Which displays, e.g. * Computers * Software * Emacs * Org-mode * Articles * Orgmode for GTD