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 12:04:21 +0100 Organization: sometimes Message-ID: <7emzuw4fka.fsf@ada2.unipv.it> References: <87is5ln5pd.fsf@robotron.ath.cx> <35nimiF4q87bsU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106738158 22488 80.91.229.6 (26 Jan 2005 11:15:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2005 11:15:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 26 12:15:50 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 1Ctl9K-00044i-00 for ; Wed, 26 Jan 2005 12:15:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtlLd-00036u-02 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jan 2005 06:28:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1106737462 18638 193.204.44.145 (26 Jan 2005 11:04:22 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 26 Jan 2005 11:04:22 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:H8VPHjhtRaNbTh5lpymOc3phQpY= Original-Xref: shelby.stanford.edu gnu.emacs.help:128146 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:23645 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23645 ytrewq1 writes: > Does that sound like a reasonable/practical approach? it is reasonable and practical but not idiomatic. more idiomatic is to have the minor mode define a variable that has value nil when the minor mode is inactive. then, you add the variable to the formatting tree unconditionally, and the display engine takes care of things automatically. thi