[Top][All Lists]

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

Re: Adding a hook to list-processes

From: Stefan Monnier
Subject: Re: Adding a hook to list-processes
Date: Sun, 28 Nov 2010 13:49:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>    I tried to do this using the patch below; it compiles without
> warning, but seems to have no effect.  Evaluating the following code in
> src/emacs:

>       (defun rgr-list-processes-hook ()
>         (message "In buffer %S" (current-buffer)))
>       (add-hook 'after-list-processes-hook 'rgr-list-processes-hook)

BTW, rather than add a hook to this piece of C code, I'd much rather
move this piece of code to Elisp first.  There is no good reason for it
to be written in C.  If it can't currently be written in Elisp because
of some missing Elisp primitives, then they should be added.


reply via email to

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