From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?b?SsOpcsOpbXk=?= Compostella Newsgroups: gmane.emacs.devel Subject: Re: other-buffer advice on kill-buffer Date: Wed, 3 Aug 2011 15:14:29 +0000 (UTC) Message-ID: References: <8662mgg2ea.fsf@gmail.com> <87livb5885.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312385405 2333 80.91.229.12 (3 Aug 2011 15:30:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 15:30:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 03 17:30:01 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 1QodOL-0000bB-Rt for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2011 17:29:53 +0200 Original-Received: from localhost ([::1]:55140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qod9u-0001F0-0C for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2011 11:14:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qod9q-0001D6-TL for emacs-devel@gnu.org; Wed, 03 Aug 2011 11:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qod9j-0005XX-VB for emacs-devel@gnu.org; Wed, 03 Aug 2011 11:14:54 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qod9j-0005VT-FT for emacs-devel@gnu.org; Wed, 03 Aug 2011 11:14:47 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qod9d-0008Pm-AB for emacs-devel@gnu.org; Wed, 03 Aug 2011 17:14:41 +0200 Original-Received: from irdmzpr02-ext.ir.intel.com ([192.198.151.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 17:14:41 +0200 Original-Received: from jeremy.compostella by irdmzpr02-ext.ir.intel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 17:14:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 192.198.151.37 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17) 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:142819 Archived-At: David Kastrup gnu.org> writes: > > Richard Stallman gnu.org> 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. I do not understand why all these primitives functions do not call the Lisp symbol instead of the C one. What is the reason ? Performance ? Constraints ? It looks inconsistent that way from my point of view but I suppose there is a good reason. Thanks