From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinkanon pinkanon Subject: Re: org-show-context-detail and tree expansion Date: Wed, 27 Mar 2019 19:10:02 +0200 Message-ID: <4481741553706602@iva5-be053096037b.qloud-c.yandex.net> References: <10741401553630502@iva6-628714d786b2.qloud-c.yandex.net> <87d0mcz8ys.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9C3z-0007DV-Jq for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 13:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9C3y-00039s-HD for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 13:10:07 -0400 Received: from forward500o.mail.yandex.net ([37.140.190.195]:32985) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h9C3x-000381-P0 for emacs-orgmode@gnu.org; Wed, 27 Mar 2019 13:10:06 -0400 In-Reply-To: <87d0mcz8ys.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org" OK, problem found. The helm code is this: (defun helm-org-goto-marker (marker) (switch-to-buffer (marker-buffer marker)) (goto-char (marker-position marker)) (org-show-context) (re-search-backward "^\\*+ " nil t) (org-show-entry)) So, org-show-entry is called and it results in ellipsis instead of childr= en. > org-show-entry > Show the body directly following this heading. > Show the heading too, if it is currently invisible. Fair to say, it does what it says. I will go w/ custom a function which uses org-cycle for now, though the helm implementation would probably be better off having some general org-show function which works like org-show-context (i.e. refers to some list of customizable defaults + takes an argument) but for headings. Is there such function? 27.03.2019, 16:29, "Nicolas Goaziou" : > Hello, > > pinkanon pinkanon writes: > >> =C2=A0Hi! I use helm, which can list all headings using helm-org-in-bu= ffer-headings, >> =C2=A0and lets you choose one to jump to. >> =C2=A0When I jump to a heading, the tree is expanded. >> >> =C2=A0My problem is as follows. >> >> =C2=A0When I expand this tree on "(2) Downers" (when it is collapsed): >> >> =C2=A0* (1) Uppers >> =C2=A0** (2) Downers >> =C2=A0=C2=A0=C2=A0=C2=A0screamers >> =C2=A0*** laughers >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0...and also a quart of tequila >> =C2=A0** (3) a quart of rum, >> =C2=A0=C2=A0=C2=A0=C2=A0a case of Budweiser, >> =C2=A0** (4) a pint of raw ether and two dozen amyls. >> >> =C2=A0I get: >> >> =C2=A0* (1) Uppers >> =C2=A0** (2) Downers >> =C2=A0=C2=A0=C2=A0=C2=A0screamers >> =C2=A0... >> =C2=A0** (3) a quart of rum,... >> =C2=A0** (4) a pint of raw ether and two dozen amyls.... >> >> =C2=A0Instead of: >> >> =C2=A0* (1) Uppers >> =C2=A0** (2) Downers >> =C2=A0=C2=A0=C2=A0=C2=A0screamers >> =C2=A0*** laughers... >> =C2=A0** (3) a quart of rum,... >> =C2=A0** (4) a pint of raw ether and two dozen amyls. >> >> =C2=A0I was advised to modify 'org-show-context-detail, as helm uses o= rg-show-context function. >> =C2=A0But none of the possible values fixed the behaviour for me. >> =C2=A0I used 'canonical for the example above: >> =C2=A0(setf (alist-get 'default org-show-context-detail) 'canonical) > > You may want to debug `org-show-set-visibility' first. If it gives no > clue, you may want to report it to Helm. > > Regards, > > -- > Nicolas Goaziou