branch: elpa/beancount
commit 1343aaaf188a89d3744eb824bd1c9e03937b09d3
Author: Martin Blais <bl...@furius.ca>
Commit: Martin Blais <bl...@furius.ca>

    Fixed Emacs functionality to uncomment regions (change submitted by Stefan 
Monnier).
---
 beancount.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/beancount.el b/beancount.el
index d56119b5d2..7ca2a02931 100644
--- a/beancount.el
+++ b/beancount.el
@@ -181,6 +181,11 @@ is great for sectioning large files with many transactions.
   ;; Default to `;;' in comment-region.
   (set (make-local-variable 'comment-add) 1)
 
+  ;; Org-mode sets both of these to `org-comment-or-uncomment-region',
+  ;; which doesn't know about our ";" comments.
+  (kill-local-variable 'comment-region-function)
+  (kill-local-variable 'uncomment-region-function)
+
   ;; No tabs by default.
   (set (make-local-variable 'indent-tabs-mode) nil)
 

Reply via email to