From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: other-buffer advice on kill-buffer Date: Thu, 4 Aug 2011 16:42:30 +1000 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312440164 12137 80.91.229.12 (4 Aug 2011 06:42:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2011 06:42:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 04 08:42:39 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 1Qordf-0001L8-0q for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2011 08:42:39 +0200 Original-Received: from localhost ([::1]:48352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qorde-0005P0-42 for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2011 02:42:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qorda-0005Oi-Si for emacs-devel@gnu.org; Thu, 04 Aug 2011 02:42:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QordZ-0003G2-S3 for emacs-devel@gnu.org; Thu, 04 Aug 2011 02:42:34 -0400 Original-Received: from mail-iy0-f175.google.com ([209.85.210.175]:45614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QordY-0003Fh-HP; Thu, 04 Aug 2011 02:42:32 -0400 Original-Received: by iyn15 with SMTP id 15so274746iyn.6 for ; Wed, 03 Aug 2011 23:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nNylmWybZ5GCzEk/qGyw/T4/lrYYRhKOx2u2C3WlMXY=; b=pd7+TsauXnWRTscq1KcqkK6MYzglzu3c21N7gHaxJ7jJ/EZWRp+gKIR2DroutsT/8N ICGxkN1TlA1y84Wpe5Jw9kA3JzCWnH6NGGMRDz9ft+h65jjQgOVRbpvIfAUEuUHqffJu JAF8100xYpfs21RicR6s71oCbzx9FC7h4JD0c= Original-Received: by 10.231.111.39 with SMTP id q39mr350589ibp.106.1312440151181; Wed, 03 Aug 2011 23:42:31 -0700 (PDT) Original-Received: by 10.231.15.12 with HTTP; Wed, 3 Aug 2011 23:42:30 -0700 (PDT) In-Reply-To: <87livb5885.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.175 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:142859 Archived-At: On Wed, Aug 3, 2011 at 4:18 PM, David Kastrup wrote: > Richard Stallman writes: > >> =A0 =A0 That's not correct. =A0You can advise a primitive function, but = the >> =A0 =A0 advice will only affect calls to that function made from Lisp, n= ot >> =A0 =A0 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. =A0But 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. =A0So it is hard to think of a case where > one would explicitly make a function advisable. > [ There is one special case where being able to add advice to more functions, especially some primitive ones, accessibility. At least two packages written to make emacs accessible to blind and vision impaired users achieves this through advising functions. Currently, there are a couple of places where accessibility is limited because of the problem of advising primitive functions. So, adding this ability would likely benefit at least one group of users and do so without any issue for other users. Tim