From: Dan Davison <davison@stats.ox.ac.uk>
To: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: We need to widen before closing edit buffers
Date: Tue, 09 Feb 2010 14:19:42 -0500 [thread overview]
Message-ID: <874olqdxo1.fsf@stats.ox.ac.uk> (raw)
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)
next reply other threads:[~2010-02-09 19:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 19:19 Dan Davison [this message]
2010-02-09 20:59 ` We need to widen before closing edit buffers Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874olqdxo1.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).