diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-07-01 11:02:13 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-07-01 11:02:46 +0200 |
commit | a6d8eb4ea9291a61021c8accfac61cf4778b79a5 (patch) | |
tree | d5e69ce792d9523a7ef1b5eec6ec70bdaea1097a | |
parent | 90afd8b7971f1caa4f56f2271d8f1652e1b86f84 (diff) | |
download | org-mode-a6d8eb4ea9291a61021c8accfac61cf4778b79a5.tar.gz |
Fix comment protection issue
* lisp/org-exp.el (org-export-handle-comments): Make sure to check
for protection in the comment line, and not in the line after it.
-rw-r--r-- | lisp/org-exp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 5a7328c..cf09799 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1663,7 +1663,7 @@ When it is nil, all comments will be removed." (while (or (looking-at re) (re-search-forward re nil t)) (setq pos (match-beginning 0)) - (if (get-text-property (point) 'org-protected) + (if (get-text-property pos 'org-protected) (goto-char (1+ pos)) (if (and commentsp (not (equal (char-before (match-end 1)) ?+))) |