diff options
author | Bastien Guerry <bzg@gnu.org> | 2014-04-22 16:07:45 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@gnu.org> | 2014-04-22 16:07:45 +0200 |
commit | 30cb51f1bc9ce5976f492b5df5d30c6298f5a2aa (patch) | |
tree | 782f2f5767065ad571bf5b82a162da96064cf22a /lisp/org/org-capture.el | |
parent | d5ff4ded7a225306017006fc96b0a30180ae6f6b (diff) | |
download | emacs-30cb51f1bc9ce5976f492b5df5d30c6298f5a2aa.tar.gz |
Merge Org 8.2.6-1.
The last merge was from 8.2.5c, but many important bugs got
fixed between 8.2.5c and 8.2.6-1.
Diffstat (limited to 'lisp/org/org-capture.el')
-rw-r--r-- | lisp/org/org-capture.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org/org-capture.el b/lisp/org/org-capture.el index 8eaa313b28a..0433306a909 100644 --- a/lisp/org/org-capture.el +++ b/lisp/org/org-capture.el @@ -741,7 +741,8 @@ captured item after finalizing." (pos (org-capture-get :initial-target-position)) (ipt (org-capture-get :insertion-point)) (size (org-capture-get :captured-entry-size))) - (when reg + (if (not reg) + (widen) (cond ((< ipt (car reg)) ;; insertion point is before the narrowed region (narrow-to-region (+ size (car reg)) (+ size (cdr reg)))) |