[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
- Lazy load of org-protocol, Max Nikulin, 2022/02/05
- Re: Lazy load of org-protocol, Jim Porter, 2022/02/05
- Re: Lazy load of org-protocol, Max Nikulin, 2022/02/06
- Re: Lazy load of org-protocol, Jim Porter, 2022/02/06
- Re: Lazy load of org-protocol, Max Nikulin, 2022/02/07
- Re: Lazy load of org-protocol, Jim Porter, 2022/02/07
- Re: Lazy load of org-protocol, Max Nikulin, 2022/02/09
- Re: Lazy load of org-protocol, Jim Porter, 2022/02/09
- Re: Lazy load of org-protocol, Max Nikulin, 2022/02/10
- Re: Emacs-orgmode Digest, Vol 192, Issue 8,
Tianshu Wang <=