From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ytrewq1 Newsgroups: gmane.emacs.help Subject: Re: header-line-format hacking Date: Sun, 30 Jan 2005 23:32:30 +0000 (UTC) Message-ID: References: <87is5ln5pd.fsf@robotron.ath.cx> <35nimiF4q87bsU1@individual.net> <7emzuw4fka.fsf@ada2.unipv.it> <35qnudF4mocesU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107130647 18888 80.91.229.6 (31 Jan 2005 00:17:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 00:17:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 31 01:17:22 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 1CvPFq-0006M6-00 for ; Mon, 31 Jan 2005 01:17:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvPSS-00064U-DM for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Jan 2005 19:30:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CvPR7-0005fG-JJ for help-gnu-emacs@gnu.org; Sun, 30 Jan 2005 19:29:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CvPR2-0005bz-TV for help-gnu-emacs@gnu.org; Sun, 30 Jan 2005 19:28:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvPR0-0005Yr-P2 for help-gnu-emacs@gnu.org; Sun, 30 Jan 2005 19:28:54 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CvP98-0001Po-A2 for help-gnu-emacs@gnu.org; Sun, 30 Jan 2005 19:10:26 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1CvP8s-00085A-JM for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 01:10:16 +0100 Original-Received: from p2113-ipbf613marunouchi.tokyo.ocn.ne.jp ([222.149.225.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 01:10:10 +0100 Original-Received: from ytrewq1 by p2113-ipbf613marunouchi.tokyo.ocn.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 01:10:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 222.149.225.113 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0) X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: geh-help-gnu-emacs@m.gmane.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:23764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23764 Kevin Rodgers writes: > Instead of adding the value of foo-header-line-format to > header-line-format when the foo minor mode is turned on then removing it > when the mode is turned off, add the foo-header-line-format symbol > itself unconditionally when foo.el is loaded. foo-header-line-format > should be a buffer local variable whose default value is nil; turning > the mode on should set it to your desired display format; turning the > mode off should set it to back to nil. Thanks for the explanation. I've posted a follow-up to one of ttn's recent posts as it was similar and I encountered it earlier :-)