;; capfail.el org-mode capture failure when region is active ;; $ emacs -q -l capfail.el (setq inhibit-splash-screen t) (add-to-list 'load-path "~/.emacs.d/org/lisp") (require 'org) (setq org-capture-templates '(("t" "Todo" entry (file "test.org") "* TODO Test %^g\n %?"))) (define-key global-map (kbd "C-c c") 'org-capture) (find-file "test.org") (insert "Select some text to make a region, then try C-c c t\ntest\n" "Emacs 23.1.1/23.3.1/24.1/24.2 & Org-mode version 8.2.6 result:\n" "Capture abort: (error: The mark is not set now, so there is no region)\n") (provide 'capfail)