From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leonardo Boiko Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Mon, 05 Feb 2007 15:07:48 -0200 Message-ID: <873b5ka5y3.wl%leonardo.boiko@corp.orolix.com> References: <877ivkjb66.fsf@trick.ulm.malte.spiess> <87lkjgs6lf.wl%leonardo.boiko@corp.orolix.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1170712972 14247 80.91.229.12 (5 Feb 2007 22:02:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Feb 2007 22:02:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 05 23:02:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HEBv5-0003F4-J2 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Feb 2007 23:02:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEBv4-0002dB-Rj for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Feb 2007 17:02:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HE7Ju-0006ZF-5n for help-gnu-emacs@gnu.org; Mon, 05 Feb 2007 12:07:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HE7Js-0006YU-Ij for help-gnu-emacs@gnu.org; Mon, 05 Feb 2007 12:07:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HE7Js-0006YM-DA for help-gnu-emacs@gnu.org; Mon, 05 Feb 2007 12:07:56 -0500 Original-Received: from mx.oromail.net ([216.82.86.134] helo=automatix.orolix.com.br) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HE7Js-0000HC-02 for help-gnu-emacs@gnu.org; Mon, 05 Feb 2007 12:07:56 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by automatix.orolix.com.br (Postfix) with ESMTP id E7DC3680DB for ; Mon, 5 Feb 2007 17:07:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at oromail.com.br Original-Received: from automatix.orolix.com.br ([127.0.0.1]) by localhost (automatix.orolix.com.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KE1zSgOsC3OJ for ; Mon, 5 Feb 2007 15:07:51 -0200 (BRST) Original-Received: from smtp.corp.orolix.com (unknown [192.168.120.2]) by automatix.orolix.com.br (Postfix) with ESMTP id 0A92E680CB for ; Mon, 5 Feb 2007 15:07:50 -0200 (BRST) Original-Received: from localhost.localdomain ([192.168.120.22]) by smtp.corp.orolix.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 5 Feb 2007 15:07:49 -0200 In-Reply-To: Mail-Followup-To: "Juanma Barranquero" , help-gnu-emacs@gnu.org, leonardo.boiko@corp.orolix.com User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.93 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-OriginalArrivalTime: 05 Feb 2007 17:07:49.0578 (UTC) FILETIME=[2A1412A0:01C74948] X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 05 Feb 2007 17:02:28 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40913 Archived-At: At Sat, 3 Feb 2007 16:29:46 +0100, Juanma Barranquero wrote: > > I want to be able to run arbitrary functions every time > > a buffer is created. > Wouldn't it work an `after' defadvice to `get-buffer-create' and > `generate-new-buffer'? Well, it probably would, I guess. And yet, don=E2=80=99t you agree that a fundamental-mode-hook would be much cleaner? You can make mostly anything with defadvice, but it=E2=80=99s a bit hackish. -- Leonardo Boiko http://namakajiri.net