emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [patch] fix bug introduced in commit aba9e2b9
@ 2012-10-28 16:11 Le Wang
  2012-10-29  5:39 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Le Wang @ 2012-10-28 16:11 UTC (permalink / raw)
  To: Orgmode Mailing List

[-- 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)

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

* Re: [patch] fix bug introduced in commit aba9e2b9
  2012-10-28 16:11 [patch] fix bug introduced in commit aba9e2b9 Le Wang
@ 2012-10-29  5:39 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-10-29  5:39 UTC (permalink / raw)
  To: Le Wang; +Cc: Orgmode Mailing List

Le Wang <l26wang@gmail.com> writes:

> This commit broke editing any source section with blank lines.

Er.. yes, indeed.  Thanks for the fix!  I just applied it.

-- 
 Bastien

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

end of thread, other threads:[~2012-10-29  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-28 16:11 [patch] fix bug introduced in commit aba9e2b9 Le Wang
2012-10-29  5:39 ` Bastien

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).