From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Adding a hook to list-processes Date: Sun, 28 Nov 2010 13:49:36 -0500 Message-ID: References: <19697.21373.201776.909872@rgr.rgrjr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290970194 1418 80.91.229.12 (28 Nov 2010 18:49:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 18:49:54 +0000 (UTC) Cc: emacs-devel To: Bob Rogers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 28 19:49:50 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMmJq-00029l-5q for ged-emacs-devel@m.gmane.org; Sun, 28 Nov 2010 19:49:50 +0100 Original-Received: from localhost ([127.0.0.1]:43063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMmJp-0005NS-MK for ged-emacs-devel@m.gmane.org; Sun, 28 Nov 2010 13:49:49 -0500 Original-Received: from [140.186.70.92] (port=55151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMmJh-0005Mf-0o for emacs-devel@gnu.org; Sun, 28 Nov 2010 13:49:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMmJf-0000B7-Uh for emacs-devel@gnu.org; Sun, 28 Nov 2010 13:49:40 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:57926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMmJf-0000At-Nc for emacs-devel@gnu.org; Sun, 28 Nov 2010 13:49:39 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oASInaQT026304; Sun, 28 Nov 2010 13:49:37 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 47C9EA85F1; Sun, 28 Nov 2010 13:49:36 -0500 (EST) In-Reply-To: <19697.21373.201776.909872@rgr.rgrjr.com> (Bob Rogers's message of "Sat, 27 Nov 2010 13:52:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3693=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133206 Archived-At: > 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. Stefan