From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: other-buffer advice on kill-buffer Date: Wed, 03 Aug 2011 08:18:02 +0200 Organization: Organization?!? Message-ID: <87livb5885.fsf@fencepost.gnu.org> References: <8662mgg2ea.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312352304 27495 80.91.229.12 (3 Aug 2011 06:18:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 06:18:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 03 08:18:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QoUma-0004SP-HK for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2011 08:18:20 +0200 Original-Received: from localhost ([::1]:40494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoUma-0000er-2K for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2011 02:18:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoUmX-0000du-Hd for emacs-devel@gnu.org; Wed, 03 Aug 2011 02:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoUmW-0006zH-D8 for emacs-devel@gnu.org; Wed, 03 Aug 2011 02:18:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoUmW-0006z9-88 for emacs-devel@gnu.org; Wed, 03 Aug 2011 02:18:16 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QoUmU-0004QX-3z for emacs-devel@gnu.org; Wed, 03 Aug 2011 08:18:14 +0200 Original-Received: from p508ed11f.dip.t-dialin.net ([80.142.209.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 08:18:14 +0200 Original-Received: from dak by p508ed11f.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 08:18:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508ed11f.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:VUz6IGJ/CKHCxMX5uLL19kZWRq0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142783 Archived-At: Richard Stallman writes: > That's not correct. You can advise a primitive function, but the > advice will only affect calls to that function made from Lisp, not > calls from other primitives. > > It may be that in a few special cases > we should modify calls within C code to some primitive functions > so that they call the Lisp symbol. > That way, it would work to advise those functions. > > To do this for all the primitive functions would be impossible, I > think, and certainly not worth the pain. But there might be a few > functions for which this would be particularly useful, and it might be > worth doing this for them. If it is worth making it advisable, it is worth giving it a hook. The problem is that advice is intended for adding functionality that has not been imagined previously. So it is hard to think of a case where one would explicitly make a function advisable. -- David Kastrup