From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pip Cet Subject: Re: outorg issue Date: Tue, 18 Aug 2015 20:35:28 +0000 Message-ID: References: <87h9nw8ssi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113ed2f8d98ccb051d9bdb64 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRnbX-00033r-Pl for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRnbW-0005Qd-IC for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:35:31 -0400 Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]:35812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRnbV-0005QX-Qr for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 16:35:30 -0400 Received: by iodt126 with SMTP id t126so204537890iod.2 for ; Tue, 18 Aug 2015 13:35:29 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org --001a113ed2f8d98ccb051d9bdb64 Content-Type: text/plain; charset=UTF-8 Hi, can you confirm the issue only appears when the first line of the buffer isn't an outline heading? I think it's easy enough to fix then, and if you like you might want to try the patch I've attached. It's bugged me for a while that `org-back-to-heading' et al throw errors when they're used before the first heading, but I haven't really come up with a better solution. On 8/18/15, Andreas Leha wrote: > Hi Bastien, > > Bastien writes: >> Hi Andreas, >> >> Andreas Leha writes: >> >>> For quite some time now, I have to disable outshine/outorg [1] as it >>> does give me "Before first heading" (complete backtrace [2]) whenever I >>> open an org file followed by more issues actually using org mode. >> >> Copying Thorsten as the author of outshine.el, hopefully he's be able >> to dig deeper. > > Thanks, but my hopes are low. Quoting from the top of outshine's github > readme [1]: > > ,---- > | events in my life forced me away from Emacs and [...] I won't have the > | time to fix issues or code new features (though I will apply patches) > `---- > > Regards, > Andreas > > [1] https://github.com/tj64/outshine > > > --001a113ed2f8d98ccb051d9bdb64 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Avoid-error-when-first-line-of-the-buffer-isn-t-a-he.patch" Content-Disposition: attachment; filename="0001-Avoid-error-when-first-line-of-the-buffer-isn-t-a-he.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 RnJvbSA3NTNmNGUyNzIzYzQ5MzI3NGQ5ZTU1YzE5NTI5NmZlNWQwYjU3NzNlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXAgPHBpcGNldEBnbWFpbC5jb20+CkRhdGU6IFR1ZSwg MTggQXVnIDIwMTUgMjA6MjQ6MTMgKzAwMDAKU3ViamVjdDogW1BBVENIXSBBdm9pZCBlcnJvciB3 aGVuIGZpcnN0IGxpbmUgb2YgdGhlIGJ1ZmZlciBpc24ndCBhIGhlYWRpbmcuCgoJKiBvdXRzaGlu ZS5lbCAob3V0bGluZS1oaWRlLXN1YmxldmVscyk6IEF2b2lkIGVycm9yIGZvciBmaWxlcyB0aGF0 Cglkb24ndCBiZWdpbiB3aXRoIGEgaGVhZGluZy4KCShvdXRsaW5lLWN5Y2xlKTogQXZvaWQgZXJy b3IgZm9yIGZpbGVzIHRoYXQgZG9uJ3QgYmVnaW4gd2l0aCBhCgloZWFkaW5nLgotLS0KIG91dHNo aW5lLmVsIHwgOCArKysrKy0tLQogMSBmaWxlIGNoYW5nZWQsIDUgaW5zZXJ0aW9ucygrKSwgMyBk ZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9vdXRzaGluZS5lbCBiL291dHNoaW5lLmVsCmluZGV4 IDljY2JkMWYuLmFiYTUyNzEgMTAwNjQ0Ci0tLSBhL291dHNoaW5lLmVsCisrKyBiL291dHNoaW5l LmVsCkBAIC0xODI2LDggKzE4MjYsOSBAQCBUaGUgb2xkIHZhbHVlIGlzIHN0b3JlZCBpbgogICAo c2V0cSBrZWVwLWxldmVscyAoMS0ga2VlcC1sZXZlbHMpKQogICAoc2F2ZS1leGN1cnNpb24KICAg ICAoZ290by1jaGFyIChwb2ludC1taW4pKQotICAgIChoaWRlLXN1YnRyZWUpCi0gICAgKHNob3ct Y2hpbGRyZW4ga2VlcC1sZXZlbHMpCisgICAgKHdoZW4gKG91dGxpbmUtb24taGVhZGluZy1wKQor ICAgICAgKGhpZGUtc3VidHJlZSkKKyAgICAgIChzaG93LWNoaWxkcmVuIGtlZXAtbGV2ZWxzKSkK ICAgICAoY29uZGl0aW9uLWNhc2UgZXJyCiAgICAgICAod2hpbGUgKG91dGxpbmUtZ2V0LW5leHQt c2libGluZykKICAgICAgICAgKGhpZGUtc3VidHJlZSkKQEAgLTIwNDgsNyArMjA0OSw4IEBAIG1h eSBoYXZlIGNoYW5nZWQuIgogICAgICAgICAgICAgKG1lc3NhZ2UgIlNVQlRSRUUiKSkpCiAgICAg ICAgICAodAogICAgICAgICAgIDs7IERlZmF1bHQgYWN0aW9uOiBoaWRlIHRoZSBzdWJ0cmVlLgot ICAgICAgICAgIChoaWRlLXN1YnRyZWUpCisgICAgICAgICAgKHdoZW4gKG91dGxpbmUtb24taGVh ZGluZy1wKQorICAgICAgICAgICAgKGhpZGUtc3VidHJlZSkpCiAgICAgICAgICAgKHVubGVzcyBv dXRzaGluZS1jeWNsZS1zaWxlbnRseQogICAgICAgICAgICAgKG1lc3NhZ2UgIkZPTERFRCIpKSkp KSkKIAotLSAKMi41LjAKCg== --001a113ed2f8d98ccb051d9bdb64--