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.  [...]
This commit is contained in:
Carsten Dominik 2010-05-28 08:15:49 +02:00
parent 8dd4bafd8e
commit a9a5e6b848
1 changed files with 3 additions and 1 deletions

View File

@ -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)))