1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-05 11:45:52 +00:00

Fixed bug with remember to non-org files

This commit is contained in:
Carsten Dominik 2009-11-02 11:00:29 +01:00
parent 78bf8c962e
commit bfa5ec12d3
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2009-11-02 Carsten Dominik <carsten.dominik@gmail.com>
* org-remember.el (org-remember-handler): Set
text-before-node-creation even if this already looks like a node,
because the string might be needed on non-org-mode target files.
* org-agenda.el (org-agenda-open-link): Make this work in agenda
clocktables.
(org-agenda-switch-to): Follow a link at point if

View File

@ -887,9 +887,9 @@ See also the variable `org-reverse-note-order'."
;; remove empty lines at end
(replace-match "")))
(goto-char (point-min))
(setq text-before-node-creation (buffer-string))
(unless (looking-at org-outline-regexp)
;; add a headline
(setq text-before-node-creation (buffer-string))
(insert (concat "* " (current-time-string)
" (" (remember-buffer-desc) ")\n"))
(backward-char 1)