emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] We need to widen before closing edit buffers


From: Carsten Dominik
Subject: Re: [Orgmode] We need to widen before closing edit buffers
Date: Tue, 9 Feb 2010 21:59:21 +0100

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]