diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-05-28 08:15:49 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-05-28 08:15:49 +0200 |
commit | a9a5e6b8484db7c27324f13a0cb81d32cf8e49cb (patch) | |
tree | a3fc0d194dd4df36d8e2ab57fd3420ee2947311e | |
parent | 8dd4bafd8e17b33d53c2cc41498a23eec7b3a148 (diff) | |
download | org-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.el | 4 |
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))) |