From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?J=C3=A9r=C3=A9my_Compostella?= Newsgroups: gmane.emacs.devel Subject: other-buffer advice on kill-buffer Date: Tue, 02 Aug 2011 01:03:57 +0200 Message-ID: <8662mgg2ea.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1312239913 19819 80.91.229.12 (1 Aug 2011 23:05:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2011 23:05:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 01:05:10 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 1Qo1Xp-000354-IB for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 01:05:09 +0200 Original-Received: from localhost ([::1]:51157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo1Xp-0002cU-1I for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2011 19:05:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo1Xm-0002ai-Cz for emacs-devel@gnu.org; Mon, 01 Aug 2011 19:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qo1Xl-0007VZ-FC for emacs-devel@gnu.org; Mon, 01 Aug 2011 19:05:06 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo1Xl-0007U1-8v for emacs-devel@gnu.org; Mon, 01 Aug 2011 19:05:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qo1Xj-00034F-Sd for emacs-devel@gnu.org; Tue, 02 Aug 2011 01:05:03 +0200 Original-Received: from lmontsouris-156-26-33-131.w80-14.abo.wanadoo.fr ([80.14.208.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Aug 2011 01:05:03 +0200 Original-Received: from jeremy.compostella by lmontsouris-156-26-33-131.w80-14.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Aug 2011 01:05:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lmontsouris-156-26-33-131.w80-14.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:RYg9boJhHUFdCy/esC3+FTYVrFk= 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:142649 Archived-At: All, I'm trying to modify the behavior of the kill-buffer function to fit my needs. I would like to limit the list of eligible buffers used to select the buffer which will be displayed in place of the killed buffer. I have tried to advice the other-buffer function which seems called (Cf. buffer.c) but my advice is never called in this case. Indeed, my other-buffer advice is correctly called on switch-to-buffer call but never on kill-buffer call. So am I missing something ? Is there a restriction on advices for C implemented function ? How the kill-buffer function select the new displayed buffer ? Could I really modify its behavior and how ? Thanks for your help. Jeremy