From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: mode-line-format - local variableness Date: Mon, 06 Apr 2009 09:50:43 +0900 Message-ID: References: <004901c9b63c$77c768e0$0200a8c0@us.oracle.com> <004a01c9b646$5b15efa0$0200a8c0@us.oracle.com> <004b01c9b647$75e428f0$0200a8c0@us.oracle.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238979076 7616 80.91.229.12 (6 Apr 2009 00:51:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2009 00:51:16 +0000 (UTC) Cc: emacs-devel@gnu.org, Johan =?iso-8859-1?Q?Bockg=E5rd?= To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 06 02:52:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lqd4k-0001Nh-7G for ged-emacs-devel@m.gmane.org; Mon, 06 Apr 2009 02:52:34 +0200 Original-Received: from localhost ([127.0.0.1]:54121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqd3M-0004pm-4V for ged-emacs-devel@m.gmane.org; Sun, 05 Apr 2009 20:51:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lqd3H-0004pb-H7 for emacs-devel@gnu.org; Sun, 05 Apr 2009 20:51:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lqd3C-0004pH-4t for emacs-devel@gnu.org; Sun, 05 Apr 2009 20:51:02 -0400 Original-Received: from [199.232.76.173] (port=45539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqd3C-0004pE-09 for emacs-devel@gnu.org; Sun, 05 Apr 2009 20:50:58 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:52096) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lqd39-0004yZ-Kl; Sun, 05 Apr 2009 20:50:56 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n360oiLv011891; Mon, 6 Apr 2009 09:50:44 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Mon, 6 Apr 2009 09:50:44 +0900 Original-Received: from dhlpc061 ([10.114.113.70] [10.114.113.70]) by relay11.aps.necel.com with ESMTP; Mon, 6 Apr 2009 09:50:44 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 763FC52E24F; Mon, 6 Apr 2009 09:50:44 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: <004b01c9b647$75e428f0$0200a8c0@us.oracle.com> (Drew Adams's message of "Sun, 5 Apr 2009 16:37:18 -0700") Original-Lines: 16 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110078 Archived-At: "Drew Adams" writes: > Don't `let'-bind `mode-line-format', but you can `let'-bind something to its > value and then restore that later. Ugh! The issue is that things like buffer-local variables are (useful but) weird, and there's a certain amount of hair involved in their implementation. They work pretty well when used as intended, but beyond that, all bets are off. [BTW, if you're gonna use setq, you should of course use unwind-protect.] -Miles -- I'm beginning to think that life is just one long Yoko Ono album; no rhyme or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff