[Top][All Lists]

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

advice vs hooks in org (was DWIM region)

From: Rusi
Subject: advice vs hooks in org (was DWIM region)
Date: Mon, 8 Jan 2018 08:09:50 -0800 (PST)
User-agent: G2/1.0

On Friday, January 5, 2018 at 4:33:59 AM UTC+5:30, Emanuel Berg wrote:
> Kaushal Modi wrote:
> > (defun modi/advice-region-or-whole (orig-fun
> > &rest args) "Advice function that applies
> Sweet heaven! Advices make you crazy sooner
> rather than later... And especially for this
> simple task I dare not imagine how the rest of
> your system ever sticks together. But TEHO, of
> course...

This reminds me…
I find that org-protocol uses advice on server-visit-files to work
Would it not have been possible to do it cleaner using the various server-hooks?

[Ive spent the last several days trying to get it to work.
Its particularly rough going since have to debug across firefox and emacs

reply via email to

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