From e1fa353e0a0ae59701c119e9759f1d4000e193bd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 28 Feb 2017 13:37:48 +0100 Subject: [PATCH] org-protocol: Fix library name * lisp/org-protocol.el (org-protocol-create-for-org): Use `ox-publish' instead of outdated `org-publish'. Improve warning message. Reported-by: Jonas Bernoulli --- lisp/org-protocol.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index c2abb2f26..a031d51df 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -651,11 +651,13 @@ 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 'org-publish) + (require 'ox-publish) (let ((all (or (org-publish-get-project-from-filename buffer-file-name)))) (if all (org-protocol-create (cdr all)) - (message "Not in an org-project. Did you mean `%s'?" - (substitute-command-keys "`\\[org-protocol-create]'"))))) + (message "%s" + (substitute-command-keys + "Not in an Org project. \ +Did you mean `\\[org-protocol-create]'?"))))) (defun org-protocol-create (&optional project-plist) "Create a new org-protocol project interactively. -- 2.11.4.GIT