emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs-orgmode Digest, Vol 192, Issue 8


From: Tianshu Wang
Subject: Re: Emacs-orgmode Digest, Vol 192, Issue 8
Date: Tue, 08 Feb 2022 18:44:35 +0800
User-agent: mu4e 1.6.10; emacs 28.0.90

Max Nikulin writes:

> Thank you, such approach, unlike mine example, does not have code
> duplication. On the other hand it loads org-protocol on any remote
> command, not only for "files" representing org-protocol URIs. Maybe
> defadvice in org-protocol.el should be changed by newer advice-add with
> a function containing body of the old advice.

Yes, I replaced the original code with advice-add (not fully tested).

(advice-add 'server-execute :before
            (defun enable-org-protocol (&rest r)
              (unless (featurep 'org-protocol) (require 'org-protocol))))

--
Tianshu Wang



reply via email to

[Prev in Thread] Current Thread [Next in Thread]