mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Fix bug when creating a link from the agenda
This commit is contained in:
parent
922c697870
commit
a70cf873c3
@ -2,6 +2,8 @@
|
||||
|
||||
* org.el (org-on-heading-p, org-at-heading-p): Make sure these are
|
||||
always with `invisible-ok'.
|
||||
(org-store-link): No error when there is nothing to link to in the
|
||||
agenda.
|
||||
|
||||
* org-list.el (org-update-checkbox-count): Insert changed cookie
|
||||
before the old, to avoid problems with invisibility at the end of
|
||||
|
@ -7205,9 +7205,9 @@ For file links, arg negates `org-context-in-file-links'."
|
||||
;; We are in the agenda, link to referenced location
|
||||
(let ((m (or (get-text-property (point) 'org-hd-marker)
|
||||
(get-text-property (point) 'org-marker))))
|
||||
(unless m (error "Don't know what location to link to"))
|
||||
(org-with-point-at m
|
||||
(call-interactively 'org-store-link))))
|
||||
(when m
|
||||
(org-with-point-at m
|
||||
(call-interactively 'org-store-link)))))
|
||||
|
||||
((eq major-mode 'calendar-mode)
|
||||
(let ((cd (calendar-cursor-to-date)))
|
||||
|
Loading…
Reference in New Issue
Block a user