On Thu, Mar 8, 2012 at 15:11, Philip Hudson <[email protected]> wrote:
> On 7 Mar, 2012, at 11:28 am, Riccardo Murri wrote:
>
>>   (defadvice server-edit (before server-edit-save-to-register)
>>     "Save buffer contents to register `o' before running normal
>> `server-edit' action."
>>     (copy-to-register ?o (point-min) (point-max)))
>>   (ad-activate 'server-edit)
>
>
> Would it not be better practice to use `server-done-hook'?

Probably yes.  I just copied and adapted some other code that I had
which used `defadvice`, without thinking that `server-done-hook` is
available.

Best regards,
Riccardo
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to