emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* We need to widen before closing edit buffers
@ 2010-02-09 19:19 Dan Davison
  2010-02-09 20:59 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2010-02-09 19:19 UTC (permalink / raw)
  To: emacs org-mode mailing list

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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: We need to widen before closing edit buffers
  2010-02-09 19:19 We need to widen before closing edit buffers Dan Davison
@ 2010-02-09 20:59 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-02-09 20:59 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-09 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 19:19 We need to widen before closing edit buffers Dan Davison
2010-02-09 20:59 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).