summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-05-28 08:15:49 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-05-28 08:15:49 +0200
commita9a5e6b8484db7c27324f13a0cb81d32cf8e49cb (patch)
treea3fc0d194dd4df36d8e2ab57fd3420ee2947311e
parent8dd4bafd8e17b33d53c2cc41498a23eec7b3a148 (diff)
downloadorg-mode-a9a5e6b8484db7c27324f13a0cb81d32cf8e49cb.tar.gz
Fix id creation bug when remember is called from agenda
* lisp/org.el (org-store-link): Don't call org-store-link interactively when called through remember from the agenda Samuel Wales writes: > For months, I found ID properties where they didn't belong. > Finally I found that they are added when I do M-x > org-remember in an agenda buffer, to the headline under > point. Feels like a bug. [...]
-rw-r--r--lisp/org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index d21aa1f..453875c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7973,7 +7973,9 @@ For file links, arg negates `org-context-in-file-links'."
(get-text-property (point) 'org-marker))))
(when m
(org-with-point-at m
- (call-interactively 'org-store-link)))))
+ (if (interactive-p)
+ (call-interactively 'org-store-link)
+ (org-store-link nil))))))
((eq major-mode 'calendar-mode)
(let ((cd (calendar-cursor-to-date)))