From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: bug: org-narrow-to-subtree Date: Mon, 01 Nov 2010 19:30:58 +0100 Message-ID: <87iq0gyjz1.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1335444368==" Return-path: Received: from [140.186.70.92] (port=56131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCz9u-0005Bz-G0 for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 14:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCz9t-0003Z3-2I for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 14:31:06 -0400 Received: from mailout108.xlhost.de ([213.202.242.108]:48572 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCz9s-0003YV-SN for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 14:31:05 -0400 In-Reply-To: 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: Puneeth Cc: emacs-orgmode --===============1335444368== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Nov__1_19:30:58_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Mon_Nov__1_19:30:58_2010-1 Content-Type: text/plain; charset=US-ASCII At Mon, 1 Nov 2010 19:02:53 +0530, Puneeth wrote: > > 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. Confirmed and fixed in master. Different solution to the problem: Don't move point one character back if point is at end of buffer (eobp). Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Mon_Nov__1_19:30:58_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkzPB2IACgkQma24O1pEeOaWYAEAjVg0qNXhmR7hxicUmscbEkRQ JLtRcHeZcfy+aQoF5xoA/3EZUhFP0pa4LIe36V7hM3NT/Rg6qWXnr2ie09nXg85K =X2QY -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Nov__1_19:30:58_2010-1-- --===============1335444368== 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 --===============1335444368==--