From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: header-line-format hacking Date: Wed, 26 Jan 2005 15:12:26 +0100 Organization: sometimes Message-ID: <7eis5k46ut.fsf@ada2.unipv.it> References: <87is5ln5pd.fsf@robotron.ath.cx> <35nimiF4q87bsU1@individual.net> <7emzuw4fka.fsf@ada2.unipv.it> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106749366 23979 80.91.229.6 (26 Jan 2005 14:22:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2005 14:22:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 26 15:22:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cto45-0001eP-00 for ; Wed, 26 Jan 2005 15:22:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtoGP-0004um-2g for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jan 2005 09:35:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1106748746 27263 193.204.44.145 (26 Jan 2005 14:12:26 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 26 Jan 2005 14:12:26 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:00ate8NBsyzD29l7iuK+Is67+C4= Original-Xref: shelby.stanford.edu gnu.emacs.help:128149 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:23648 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23648 ytrewq1 writes: > I don't think I quite follow you. Do you mean that the minor > mode code should not be modifying header-line-format? If it's > not supposed to, does that mean each user should add something > to their .emacs to define header-line-format? the minor mode code presuambly comprises a bunch of defuns plus some "load-time actions". the load-time actions is where the variable is inserted into `header-line-format' (be sure to check that it's not already there). the idea is to modify `header-line-format' at most one time, and use indirection (through the variable) to effect state toggling and notification. thi