From: Le Wang <l26wang@gmail.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: [patch] fix bug introduced in commit aba9e2b9
Date: Mon, 29 Oct 2012 00:11:58 +0800 [thread overview]
Message-ID: <CAM=K+ioXjbK-StU2vtfiHn_KK9+PW4KQcbB=5D_W+c4pP3ypvQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 88 bytes --]
This commit broke editing any source section with blank lines.
Patch included.
--
Le
[-- Attachment #2: org-src.el.diff --]
[-- Type: application/octet-stream, Size: 437 bytes --]
diff --git a/lisp/org-src.el b/lisp/org-src.el
index b4d4c04..75db1d7 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -690,7 +690,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
(goto-char beg)
(when allow-write-back-p
(delete-region beg (max beg (1- end)))
- (unless (string-match "^[ \t]*$" code)
+ (unless (string-match "\\`[ \t]*\\'" code)
(insert code)
(delete-char 1))
(goto-char beg)
next reply other threads:[~2012-10-28 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 16:11 Le Wang [this message]
2012-10-29 5:39 ` [patch] fix bug introduced in commit aba9e2b9 Bastien
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='CAM=K+ioXjbK-StU2vtfiHn_KK9+PW4KQcbB=5D_W+c4pP3ypvQ@mail.gmail.com' \
--to=l26wang@gmail.com \
--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).