Martin Blais <bl...@furius.ca> writes: > This is a known bug in the Emacs config. > It's getting on own nerves regularly actually, just haven't had time to dig > into fixing this. > (If you have Emacs chops and this is easy for you a patch is always > appreciated.) >
well tbanks, and as far as I can see: it has to do with the special combination of org-mode + beancount-mode: I don't get this strange behaviour of uncomment-region when specifying -*- mode: fundamental mode: beancount-*- eg. thus as a workaround (not good enough for a patch really, but it does remedy the situation for me): before that I had comment-region/uncomment-region defined on C-f3/C-f4 (define-key (current-global-map) (kbd "C-<f4>") 'comment-region) (define-key (current-global-map) (kbd "C-<f3>") 'uncomment-region) now I am switching to emacs-lisp-mode temporarily and back to org+beancount mode, I am using emacs-lisp-mode here, rather than say fundamental-mode, because it has the same comment-style ";; " (otherwise I get asked: what comment style?), thus now I have: (define-key (current-global-map) (kbd "C-<f4>") 'comment-region) (define-key (current-global-map) (kbd "C-<f3>") 'special-uncomment-region) (defun special-uncomment-region (beg end &optional arg) "blah blah..." ;; same params as in orig uncomment-region (interactive "*r\nP") (cond (( and (eq major-mode 'org-mode) (bound-and-true-p beancount-mode) ) (progn (message "org/beancount mode, special uncomment-region") (emacs-lisp-mode) (uncomment-region beg end arg) (org-mode) (beancount-mode) ) ) ;; default case (t (ignore nil) (uncomment-region beg end arg) ) ) ;; cond ) maybe this is helpful for someone ? - until the real cause has been found and a patch created. -Andreas -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/87in99rn7z.fsf%40a-rx.info. For more options, visit https://groups.google.com/d/optout.