From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: knubee Newsgroups: gmane.emacs.help Subject: Re: controlling window-configuration changes Date: Sun, 22 Jun 2008 03:47:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <915777c6-5fda-4d18-9175-b03d4611a694@h1g2000prh.googlegroups.com> References: <09a47707-ab27-4cae-a4b5-672c7ec04c33@s33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1214134845 17488 80.91.229.12 (22 Jun 2008 11:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Jun 2008 11:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 22 13:41:30 2008 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 1KANwm-0000Q1-F2 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jun 2008 13:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:54750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KANvx-0006CY-8r for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jun 2008 07:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h1g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 218.186.11.3 Original-X-Trace: posting.google.com 1214131650 24526 127.0.0.1 (22 Jun 2008 10:47:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 22 Jun 2008 10:47:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h1g2000prh.googlegroups.com; posting-host=218.186.11.3; posting-account=_zPoRwoAAABON32tn-LfL57pFd05oz25 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061015 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159678 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:55032 Archived-At: > add-hook need a function, not a variable. See > > =A0 =A0C-h f add-hook RET thanks for the pointer. i tried: (defun my-truncate () (setq truncate-partial-width-windows nil)) (add-hook 'moinmoin-mode-hook 'my-truncate) this "works" -- but only in the sense that all buffers and modes now treat truncate-partial-width-windows as nil. which seems equivalent to just setq'ing it at the global level. so i also tried: (add-hook 'moinmoin-mode-hook '(lambda () (setq truncate-partial- width-windows nil))) this does not seem to work. is using add-hook even the correct way to restrict this to a mode -- or am i just messing up the definitions? thanks.