diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c22f4ee85..986c8d2d0 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-05-19 Carsten Dominik + * org-publish.el (org-publish): Make this function behave + correctly in interactive use when called with a prefix argument. + * org.el (org-todo-statistics-hook): New hook. (org-update-parent-todo-statistics): Use new hook. (org-log-into-drawer): New function. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index 13114cf07..a80f72ff0 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -600,18 +600,18 @@ Default for INDEX-FILENAME is 'sitemap.org'." ;;;###autoload (defun org-publish (project &optional force) "Publish PROJECT." - (interactive "P") + (interactive + (list + (assoc (org-ido-completing-read + "Publish project: " + org-publish-project-alist nil t) + org-publish-project-alist) + current-prefix-arg)) (setq org-publish-initial-buffer (current-buffer)) (save-window-excursion - (let* ((force current-prefix-arg) - (org-publish-use-timestamps-flag + (let* ((org-publish-use-timestamps-flag (if force nil org-publish-use-timestamps-flag))) - (org-publish-projects - (list (or project - (assoc (org-ido-completing-read - "Publish project: " - org-publish-project-alist nil t) - org-publish-project-alist))))))) + (org-publish-projects (list project))))) ;;;###autoload (defun org-publish-all (&optional force)