unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: knubee <knubee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: controlling window-configuration changes
Date: Sun, 22 Jun 2008 03:47:30 -0700 (PDT)	[thread overview]
Message-ID: <915777c6-5fda-4d18-9175-b03d4611a694@h1g2000prh.googlegroups.com> (raw)
In-Reply-To: mailman.13695.1214129062.18990.help-gnu-emacs@gnu.org

> 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:

 (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.


  parent reply	other threads:[~2008-06-22 10:47 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 [this message]
2008-06-22 12:15         ` Lennart Borgman (gmail)
     [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=915777c6-5fda-4d18-9175-b03d4611a694@h1g2000prh.googlegroups.com \
    --to=knubee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).