Selaa lähdekoodia

Block editing: Do not quote # lines if there is no plus after #

Carsten Dominik 16 vuotta sitten
vanhempi
commit
6c5428d5d4
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 2 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 2 - 0
lisp/ChangeLog

@@ -11,6 +11,8 @@
 	(org-block-map, org-hide-block-toggle-all, org-hide-block-all)
 	(org-show-block-all, org-hide-block-toggle-maybe)
 	(org-hide-block-toggle): New functions.
+	(org-edit-src-exit): Do not quote lines starting with # and no +
+	behind it.
 
 2009-05-30  Carsten Dominik  <carsten.dominik@gmail.com>
 

+ 1 - 1
lisp/org.el

@@ -6867,7 +6867,7 @@ the language, a switch telling of the content should be in a single line."
   (when (org-bound-and-true-p org-edit-src-from-org-mode)
     (goto-char (point-min))
     (while (re-search-forward
-	    (if (org-mode-p) "^\\(.\\)" "^\\([*#]\\|[ \t]*#\\+\\)") nil t)
+	    (if (org-mode-p) "^\\(.\\)" "^\\([*]\\|[ \t]*#\\+\\)") nil t)
       (replace-match ",\\1")))
   (when (org-bound-and-true-p org-edit-src-picture)
     (untabify (point-min) (point-max))