From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: other-buffer advice on kill-buffer Date: Thu, 04 Aug 2011 11:24:10 +0900 Message-ID: <87ty9xhq2d.fsf@uwakimon.sk.tsukuba.ac.jp> 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 1312424652 7526 80.91.229.12 (4 Aug 2011 02:24:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2011 02:24:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?J=E9r=E9my?= Compostella Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 04 04:24:08 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 1QonbU-0002sC-9R for ged-emacs-devel@m.gmane.org; Thu, 04 Aug 2011 04:24:08 +0200 Original-Received: from localhost ([::1]:59532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QonbT-0002pT-8c for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2011 22:24:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QonbQ-0002pO-Sw for emacs-devel@gnu.org; Wed, 03 Aug 2011 22:24:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QonbP-0006b9-JZ for emacs-devel@gnu.org; Wed, 03 Aug 2011 22:24:04 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:34624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QonbP-0006b0-BQ for emacs-devel@gnu.org; Wed, 03 Aug 2011 22:24:03 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 1A36F3FA0576; Thu, 4 Aug 2011 11:24:02 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 75C771A26F8; Thu, 4 Aug 2011 11:24:10 +0900 (JST) In-Reply-To: X-Mailer: VM 8.1.93a under 21.5 (beta31) "ginger" cd1f8c4e81cd XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.223 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:142850 Archived-At: J=E9r=E9my Compostella writes: > I do not understand why all these primitives functions do not call the L= isp > symbol instead of the C one. What is the reason ? Performance ? Constrai= nts ? Partly performance, I would think. Advice is clearly a second-class citizen here. While I agree with the rule that advice must not be used to implement core functionality, even in "minor" modules such as rarely used modes, I think advice deserves more use than it gets. However, the general opinion is (as you saw) that advice is to be avoided. So making advice work everywhere is not considered to be as important as even a small performance loss in a very large number of function calls. However, code readability is probably far more important. `Fother_buffer(buffer_object)' is far more readable than `Ffuncall(2, intern("other_buffer"), buffer_object)' or even `Ffuncall(2, Qother_buffer, buffer_object)'.