From: Carsten Dominik <carsten.dominik@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: We need to widen before closing edit buffers
Date: Tue, 9 Feb 2010 21:59:21 +0100 [thread overview]
Message-ID: <7B84E6C1-F1DC-4E84-B5FC-0C7A65E0F761@gmail.com> (raw)
In-Reply-To: <874olqdxo1.fsf@stats.ox.ac.uk>
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
prev parent reply other threads:[~2010-02-09 20:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 19:19 We need to widen before closing edit buffers Dan Davison
2010-02-09 20:59 ` Carsten Dominik [this message]
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=7B84E6C1-F1DC-4E84-B5FC-0C7A65E0F761@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=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).