Function: org-publish-current-project

org-publish-current-project is an autoloaded, interactive and byte-compiled function defined in ox-publish.el.gz.

Signature

(org-publish-current-project &optional FORCE ASYNC)

Documentation

Publish the project associated with the current file.

With a prefix argument, force publishing of all files in the project.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-publish.el.gz
;;;###autoload
(defun org-publish-current-project (&optional force async)
  "Publish the project associated with the current file.
With a prefix argument, force publishing of all files in
the project."
  (interactive "P")
  (save-window-excursion
    (let ((project (org-publish-get-project-from-filename
		    (buffer-file-name (buffer-base-buffer)) 'up)))
      (if project (org-publish project force async)
	(error "File %s is not part of any known project"
	       (buffer-file-name (buffer-base-buffer)))))))