From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?) Date: Mon, 5 Aug 2013 15:50:58 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6TcC-0003oc-Sz for emacs-orgmode@gnu.org; Mon, 05 Aug 2013 18:51:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6TcB-0008Ok-UI for emacs-orgmode@gnu.org; Mon, 05 Aug 2013 18:51:00 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:35661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6TcB-0008OV-OJ for emacs-orgmode@gnu.org; Mon, 05 Aug 2013 18:50:59 -0400 Received: by mail-wg0-f50.google.com with SMTP id m15so2980719wgh.5 for ; Mon, 05 Aug 2013 15:50:58 -0700 (PDT) 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 I hope a kind soul can comment here. For years I have been trying to make it so that you can go to Org from Magit and have it reveal the way I want. [All I want is what for me is a normal visibility state, which means a visibility state that can be recreated using only arrow keys and TAB.] Is org-reveal the wrong tool for this job? Is there another tool that works better for it? The apparent bugs are in the comments below. Thanks. Samuel P.S. I am also hoping for the same effect upon going from the Org agenda to the Org outline. === (defadvice magit-visit-item (after org-visibility activate compile) "Make going to Org from Magit reveal canonically." (when (eq major-mode 'org-mode) (alpha-org-reveal-canonically))) (defun alpha-org-reveal-canonically () "Reveal around point canonically. Canonical visibility means that the buffer is always in a visibility state that can be created solely by arrow keys + TAB. Thus, merely showing the next header without all of its siblings is not canonical. Also, showing children without showing the parent's entry text is not canonical." (interactive) ;; bug 1: when point is in entry text, the first child of that ;; entry shows, but its siblings (i.e. the other children) do ;; not show, even though i have org-show-siblings and ;; org-show-hierarchy-above both set to t. ;; ;; the entry text must show because point is in it. and ;; because it must show, so must all children. how do i get it ;; to do this? ;; ;; bug 2: when point is on the first child headline, its ;; siblings show, but the entry text of its parent does not ;; show. how do i get it to show the parent's entry text? ;; ;; bug 3: org-reveal takes several seconds to run. is there a ;; way to speed it up? (org-reveal t) ;; (if ...) ;; (show-entry) )