From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: We need to widen before closing edit buffers Date: Tue, 9 Feb 2010 21:59:21 +0100 Message-ID: <7B84E6C1-F1DC-4E84-B5FC-0C7A65E0F761@gmail.com> References: <874olqdxo1.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NexB9-0004zE-Ds for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 15:59:27 -0500 Received: from [199.232.76.173] (port=39577 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NexB8-0004yq-4c for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 15:59:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NexB7-0005J1-KB for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 15:59:26 -0500 Received: from ey-out-1920.google.com ([74.125.78.147]:7580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NexB7-0005Iv-4Q for emacs-orgmode@gnu.org; Tue, 09 Feb 2010 15:59:25 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1080290eyh.2 for ; Tue, 09 Feb 2010 12:59:23 -0800 (PST) In-Reply-To: <874olqdxo1.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs org-mode mailing list Hi Dan, Yes, please check this in. Thanks. - Carsten On Feb 9, 2010, at 8:19 PM, Dan Davison wrote: > At the moment, if we use narrowing in source code edit buffers, then > we > need to be very careful that we widen before exiting with C-c '. So > shall we change org-src as below? > > Dan > > diff --git a/lisp/org-src.el b/lisp/org-src.el > index 1d155cc..a11fac2 100644 > --- a/lisp/org-src.el > +++ b/lisp/org-src.el > @@ -515,6 +515,7 @@ the language, a switch telling if the content > should be in a single line." > (interactive) > (unless org-edit-src-from-org-mode > (error "This is not a sub-editing buffer, something is wrong...")) > + (widen) > (let* ((beg org-edit-src-beg-marker) > (end org-edit-src-end-marker) > (ovl org-edit-src-overlay) > > > _______________________________________________ > 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 - Carsten