From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: bug: org-narrow-to-subtree Date: Mon, 1 Nov 2010 19:02:53 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016367fb1499f1be70493fdd982 Return-path: Received: from [140.186.70.92] (port=45967 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCuVg-00076F-MC for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 09:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCuVf-0008WL-Fv for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 09:33:16 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCuVf-0008WD-A2 for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 09:33:15 -0400 Received: by wyf23 with SMTP id 23so5806038wyf.0 for ; Mon, 01 Nov 2010 06:33:14 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --0016367fb1499f1be70493fdd982 Content-Type: text/plain; charset=UTF-8 Hi, I hit a minor bug with the function org-narrow-to-subtree. When I narrow to a headline (subtree with just the headline) present at the end of a file, the last character of the headline isn't present in the narrowed region. [file1.org and file2.org shown at the end of the message are examples] I am attaching a possible patch for the same, but I don't think that is the "cleanest" way to handle it. Hope it'll help some one else to fix it in a better way. Thanks, Puneeth file1.org ----------------- * Hello * World * TestEOF ----------------- file2.org ------------------ * Test *** World *** Hello 1EOF ------------------ --0016367fb1499f1be70493fdd982 Content-Type: text/plain; charset=US-ASCII; name="org-narrow.patch.txt" Content-Disposition: attachment; filename="org-narrow.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gfze33vv1 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggNTljYWY0MS4uMDZi OWY5ZSAxMDA2NDQKLS0tIGEvbGlzcC9vcmcuZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTc1MDEs NyArNzUwMSw3IEBAIElmIHllcywgcmVtZW1iZXIgdGhlIG1hcmtlciBhbmQgdGhlIGRpc3RhbmNl IHRvIEJFRy4iCiAgICAgICAobmFycm93LXRvLXJlZ2lvbgogICAgICAgIChwcm9nbiAob3JnLWJh Y2stdG8taGVhZGluZyB0KSAocG9pbnQpKQogICAgICAgIChwcm9nbiAob3JnLWVuZC1vZi1zdWJ0 cmVlIHQgdCkKLQkgICAgICAoaWYgKG9yZy1vbi1oZWFkaW5nLXApIChiYWNrd2FyZC1jaGFyIDEp KQorCSAgICAgIChpZiAoYW5kIChvcmctb24taGVhZGluZy1wKSAob3JnLWF0LXJlZ2V4cC1wICIq IikpIChiYWNrd2FyZC1jaGFyIDEpKQogCSAgICAgIChwb2ludCkpKSkpKQogCiAoZXZhbC13aGVu LWNvbXBpbGUK --0016367fb1499f1be70493fdd982 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --0016367fb1499f1be70493fdd982--