all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: knubee <knubee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: controlling window-configuration changes
Date: Sun, 22 Jun 2008 14:15:39 +0200	[thread overview]
Message-ID: <485E426B.2040708@gmail.com> (raw)
In-Reply-To: <915777c6-5fda-4d18-9175-b03d4611a694@h1g2000prh.googlegroups.com>

knubee wrote:
>> add-hook need a function, not a variable. See
>>
>>    C-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:

Sorry, I should have checked what you where trying to set.

You have to make the variable buffer local to. Try

(defun my-truncate ()
   (set (make-local-variable 'truncate-partial-width-windows) nil))




  reply	other threads:[~2008-06-22 12:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-21  4:26 controlling window-configuration changes knubee
2008-06-21 14:03 ` Kevin Rodgers
     [not found] ` <mailman.13665.1214057002.18990.help-gnu-emacs@gnu.org>
2008-06-22  9:11   ` knubee
2008-06-22 10:04     ` Lennart Borgman (gmail)
     [not found]     ` <mailman.13695.1214129062.18990.help-gnu-emacs@gnu.org>
2008-06-22 10:47       ` knubee
2008-06-22 12:15         ` Lennart Borgman (gmail) [this message]
     [not found]         ` <mailman.13699.1214136949.18990.help-gnu-emacs@gnu.org>
2008-06-23  0:48           ` knubee
  -- strict thread matches above, loose matches on Subject: below --
2008-06-22 12:22 martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485E426B.2040708@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=knubee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.