From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ANN: org-sticky-header Date: Wed, 19 Apr 2017 07:52:31 +0200 Message-ID: References: <87k26itxex.fsf@alphapapa.net> <878tmxl3ix.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c05a74c9219e2054d7ea236 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0iXu-000645-Ft for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0iXt-00014f-7L for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:52:54 -0400 Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]:33242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0iXt-00014G-0i for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 01:52:53 -0400 Received: by mail-io0-x233.google.com with SMTP id k87so14569199ioi.0 for ; Tue, 18 Apr 2017 22:52:52 -0700 (PDT) In-Reply-To: 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: Adam Porter Cc: org-mode list --94eb2c05a74c9219e2054d7ea236 Content-Type: text/plain; charset=UTF-8 Hi Adam, and just after I send this, I now see that the faces of the headings in the path are now wrong - so you probably already had gone down this path. Sorry for the noise, need to come up with something better. Carsten On Wed, Apr 19, 2017 at 7:46 AM, Carsten Dominik wrote: > Hi Adam, > > thanks for adding the option to reverse the outline path. Great thinking > about using a different separator for the reversed path! > > It mostly works - however, if the window is too narrow, the abbreviation > ellipses are now applied to the most recent heading instead of to the last > one shown. It would be better to reverse the outline path before sending > it into org-format-outline-path, which also saves you the pain to split and > rejoin the path string. > > Please find attached a patch that makes this change. It also removes the > dependence on the string library which is, I think, not by default > available in Emacs. > > Thanks > > On Wed, Apr 19, 2017 at 1:06 AM, Adam Porter wrote: > >> Carsten Dominik writes: >> >> Hi Carsten, >> >> > I am wondering if you would consider the possibility to show on only >> > the most recent heading, but, space permitting, the outline path - >> > maybe in reverse order as to keep the sticky heading itself in the >> > left-most column. >> >> That's a great idea, I will add that. Thanks. >> >> >> > --94eb2c05a74c9219e2054d7ea236 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Adam,

and just after I send this, I = now see that the faces of the headings
in the path are now wrong = - so you probably already had gone down
this path.=C2=A0 Sorry fo= r the noise, need to come up with something better.

Carsten

On Wed, Apr 19, 2017 at 7:46 AM, Carsten Dominik <= dominik@uva.nl><= /span> wrote:
Hi Adam,
thanks for adding the option to reverse the outline path.= =C2=A0 Great thinking about using a different separator for the reversed pa= th!

It mostly works - however, if the window is to= o narrow, the abbreviation ellipses are now applied to the most recent head= ing instead of to the last one shown.=C2=A0 It would be better to reverse t= he outline path before sending it into org-format-outline-path, which also = saves you the pain to split and rejoin the path string.

Please find attached a patch that makes this change.=C2=A0 It also re= moves the dependence on the string library which is, I think, not by defaul= t available in Emacs.

Thanks

--94eb2c05a74c9219e2054d7ea236--