Function: org-protocol-create-for-org

org-protocol-create-for-org is an interactive and byte-compiled function defined in org-protocol.el.gz.

Signature

(org-protocol-create-for-org)

Documentation

Create an Org protocol project for the current file's project.

The visited file needs to be part of a publishing project in org-publish-project-alist for this to work. The function delegates most of the work to org-protocol-create.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-protocol.el.gz
;;; Org specific functions:

(defun org-protocol-create-for-org ()
  "Create an Org protocol project for the current file's project.
The visited file needs to be part of a publishing project in
`org-publish-project-alist' for this to work.  The function
delegates most of the work to `org-protocol-create'."
  (interactive)
  (require 'ox-publish)
  (let ((all (or (org-publish-get-project-from-filename buffer-file-name))))
    (if all (org-protocol-create (cdr all))
      (message "%s"
	       (substitute-command-keys
		"Not in an Org project.  \
Did you mean `\\[org-protocol-create]'?")))))