From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Fri, 19 Jan 2007 12:37:36 +0200 Message-ID: References: <877ivkjb66.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1169203454 20109 80.91.229.12 (19 Jan 2007 10:44:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 10:44:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 11:44:12 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 1H7rE9-0006ls-WC for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 11:44:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7rE8-0002IM-Rn for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 05:44:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7r7s-0007SH-OJ for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 05:37:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7r7p-0007RU-33 for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 05:37:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7r7o-0007R7-22 for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 05:37:36 -0500 Original-Received: from [213.8.233.22] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7r7n-00055w-Lu for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 05:37:35 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-116-189.inter.net.il [84.229.116.189]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FUZ10532 (AUTH halo1); Fri, 19 Jan 2007 12:37:22 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (aguilar.james@gmail.com) 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:40457 Archived-At: > Date: Thu, 18 Jan 2007 14:33:14 -0800 > From: "James Aguilar" > Cc: help-gnu-emacs@gnu.org > > So there is no simple way to just make it apply to all buffers? There's no > "all-modes-hook" or anything like that? This is so frustrating. Someone > must have needed this functionality before I did. Actually, I'm not surprised at all that this functionality is missing: it really doesn't make much sense to turn on a minor mode in _all_ buffers. You seem to think that the buffers are only created when you visit a file, but that is false. Emacs creates temporary and hidden buffers a lot behind your back, because a buffer is one of the most efficient data structures in Emacs, so many operations that other languages do in memory, Emacs Lisp does with buffers. You really do NOT want to turn your column marker mode in those buffers that Emacs creates for its internal workings, because that could easily interfere with Emacs operation. One notable example of such buffers are the " *Minibuf-N*" buffers used for the minibuffer. Could you perhaps be more specific in the description of what you want? Specifically, what files do you visit in the buffers that you must have in column marker mode? Do these files have some special extension, or turn on some specific major or minor modes, or have something else in common?