From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ANN: org-sticky-header Date: Wed, 19 Apr 2017 08:11:41 +0200 Message-ID: References: <87k26itxex.fsf@alphapapa.net> <878tmxl3ix.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113ed19a2155bc054d7ee711 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0iqS-0001l6-L0 for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 02:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0iqR-0007Lz-IY for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 02:12:04 -0400 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:35005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0iqR-0007Lk-CL for emacs-orgmode@gnu.org; Wed, 19 Apr 2017 02:12:03 -0400 Received: by mail-io0-x230.google.com with SMTP id r16so14764219ioi.2 for ; Tue, 18 Apr 2017 23:12:03 -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 --001a113ed19a2155bc054d7ee711 Content-Type: multipart/alternative; boundary=001a113ed19a2155b7054d7ee70f --001a113ed19a2155b7054d7ee70f Content-Type: text/plain; charset=UTF-8 Hi Adam, here is a new patch with does do this correctly. Cheers Carsten On Wed, Apr 19, 2017 at 7:52 AM, Carsten Dominik wrote: > 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. >>> >>> >>> >> > --001a113ed19a2155b7054d7ee70f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Adam,

here is a new patch with does = do this correctly.

Cheers

Carsten

On Wed, Apr 19, 2017 at 7:52 AM, Carsten Dominik <<= a href=3D"mailto:dominik@uva.nl" target=3D"_blank">dominik@uva.nl> wrote:
Hi Adam,
and just after I send this, I now see that the faces of th= e headings
in the path are now wrong - so you probably already ha= d gone down
this path.=C2=A0 Sorry for the noise, need to come up= with something better.

Carsten

On Wed, Apr 19, 2017 at 7:46 AM, Carsten Dominik <dominik@uva.nl> 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

On Wed, Apr 19, 2017= at 1:06 AM, Adam Porter <adam@alphapapa.net> wrote:
Carsten Dominik <dominik@uva.nl> 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.=C2=A0 Thanks.





--001a113ed19a2155b7054d7ee70f-- --001a113ed19a2155bc054d7ee711 Content-Type: application/octet-stream; name=patch Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_j1okwym70 LS0tIG9yZy1zdGlja3ktaGVhZGVyLmVsLm9yaWcJMjAxNy0wNC0xOSAwNzozMzoyNi4wMDAwMDAw MDAgKzAyMDAKKysrIG9yZy1zdGlja3ktaGVhZGVyLmVsCTIwMTctMDQtMTkgMDg6MDc6NDEuMDAw MDAwMDAwICswMjAwCkBAIC00Miw3ICs0Miw2IEBACiA7OzsgQ29kZToKIAogKHJlcXVpcmUgJ2Rh c2gpCi0ocmVxdWlyZSAncykKIAogKGRlZnZhciBvcmctc3RpY2t5LWhlYWRlci1vbGQtaGxmIG5p bAogICAiVmFsdWUgb2YgdGhlIGhlYWRlciBsaW5lIHdoZW4gZW50ZXJpbmcgb3JnLXN0aWNreS1o ZWFkZXIgbW9kZS4iKQpAQCAtMTAyLDE0ICsxMDEsMTkgQEAKICAgICAgICAgKCduaWwgKGNvbmNh dCBvcmctc3RpY2t5LWhlYWRlci1wcmVmaXggKG9yZy1nZXQtaGVhZGluZyB0IHQpKSkKICAgICAg ICAgKCdmdWxsIChjb25jYXQgb3JnLXN0aWNreS1oZWFkZXItcHJlZml4IChvcmctZm9ybWF0LW91 dGxpbmUtcGF0aCAob3JnLWdldC1vdXRsaW5lLXBhdGggdCkgKHdpbmRvdy13aWR0aCkgbmlsCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgb3JnLXN0aWNreS1oZWFkZXItb3V0bGluZS1wYXRoLXNlcGFyYXRvcikp KQotICAgICAgICAoJ3JldmVyc2VkIChjb25jYXQgb3JnLXN0aWNreS1oZWFkZXItcHJlZml4Ci0g ICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBVc2luZyAi8J+QsSIgIkNBVCBGQUNFIiBhcyBz ZXBhcmF0b3IgY2hhcmFjdGVyLiBJdCBuZWVkcyB0byBiZSBhIHNpbmdsZSBjaGFyYWN0ZXIsCi0g ICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBvdGhlcndpc2UgaXQgY291bGQgZ2V0IHRydW5j YXRlZCBhbmQgY2F1c2Ugc3BsaXR0aW5nIHRvIGZhaWwsIGFuZCB0aGUgY2hhbmNlcyBvZiB0aGlz Ci0gICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBjaGFyYWN0ZXIgYmVpbmcgaW4gYSBoZWFk aW5nIGlzIGxvdyBlbm91Z2guLi5yaWdodD8KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICgt Pj4gKG9yZy1mb3JtYXQtb3V0bGluZS1wYXRoIChvcmctZ2V0LW91dGxpbmUtcGF0aCB0KSAod2lu ZG93LXdpZHRoKSBuaWwgIvCfkLEiKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo cy1zcGxpdCAi8J+QsSIpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChucmV2ZXJz ZSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHMtam9pbiBvcmctc3RpY2t5LWhl YWRlci1vdXRsaW5lLXBhdGgtcmV2ZXJzZWQtc2VwYXJhdG9yKSkpKSkpKSkKKyAgICAgICAgKCdy ZXZlcnNlZAorCSAobGV0ICgocyAobWFwY29uY2F0CisJCSAgICdpZGVudGl0eQorCQkgICAob3Jn LXNwbGl0LXN0cmluZworCQkgICAgKGNvbmNhdCBvcmctc3RpY2t5LWhlYWRlci1wcmVmaXgKKwkJ CSAgICAob3JnLWZvcm1hdC1vdXRsaW5lLXBhdGgKKwkJCSAgICAgKG9yZy1nZXQtb3V0bGluZS1w YXRoIHQpCisJCQkgICAgIDEwMDAgbmlsICLwn5CxIikpCisJCSAgICAi8J+QsSIpCisJCSAgIG9y Zy1zdGlja3ktaGVhZGVyLW91dGxpbmUtcGF0aC1yZXZlcnNlZC1zZXBhcmF0b3IpKSkKKwkgICAo aWYgKD4gKGxlbmd0aCBzKSAod2luZG93LXdpZHRoKSkKKwkgICAgICAgKGNvbmNhdCAoc3Vic3Ry aW5nIHMgMCAoLSAod2luZG93LXdpZHRoKSAyKSkgIi4uIikKKwkgICAgIHMpKSkpKSkpCiAKIDs7 OyMjI2F1dG9sb2FkCiAoZGVmaW5lLW1pbm9yLW1vZGUgb3JnLXN0aWNreS1oZWFkZXItbW9kZQo= --001a113ed19a2155bc054d7ee711--