unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Auto-fit *Help* buffer
@ 2009-09-28 11:46 Nordlöw
  2009-09-28 14:04 ` Andreas Politz
       [not found] ` <mailman.7646.1254146726.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Nordlöw @ 2009-09-28 11:46 UTC (permalink / raw)
  To: help-gnu-emacs

If it want to auto-fit the *Help* buffer to its contents, in what
advice or hook should I insert a call to shrink-window-if-larger-
than-
buffer()?
/Nordlöw


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Auto-fit *Help* buffer
  2009-09-28 11:46 Auto-fit *Help* buffer Nordlöw
@ 2009-09-28 14:04 ` Andreas Politz
       [not found] ` <mailman.7646.1254146726.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Politz @ 2009-09-28 14:04 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> writes:

> If it want to auto-fit the *Help* buffer to its contents, in what
> advice or hook should I insert a call to shrink-window-if-larger-
> than-
> buffer()?
> /Nordlöw

(add-hook 'temp-buffer-show-hook
          (lambda nil
            (when (eq major-mode 'help-mode)
              (shrink-window-if-larger-than-buffer))))

-ap





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Auto-fit *Help* buffer
       [not found] ` <mailman.7646.1254146726.2239.help-gnu-emacs@gnu.org>
@ 2009-09-28 14:36   ` Nordlöw
  0 siblings, 0 replies; 4+ messages in thread
From: Nordlöw @ 2009-09-28 14:36 UTC (permalink / raw)
  To: help-gnu-emacs

On Sep 28, 4:04 pm, Andreas Politz <poli...@fh-trier.de> wrote:
> Nordlöw <per.nord...@gmail.com> writes:
> > If it want to auto-fit the *Help* buffer to its contents, in what
> > advice or hook should I insert a call to shrink-window-if-larger-
> > than-
> > buffer()?
> > /Nordlöw
>
> (add-hook 'temp-buffer-show-hook
>           (lambda nil
>             (when (eq major-mode 'help-mode)
>               (shrink-window-if-larger-than-buffer))))
>
> -ap

Great!

Thanks,
Nordlöw


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Auto-fit *Help* buffer
@ 2009-09-28 14:39 martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2009-09-28 14:39 UTC (permalink / raw)
  To: per.nordlow; +Cc: help-gnu-emacs

 > If it want to auto-fit the *Help* buffer to its contents, in what advice
 > or hook should I insert a call to shrink-window-if-larger-than-
 > buffer()?

You should use `temp-buffer-resize-mode' ;-)

martin




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-28 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 11:46 Auto-fit *Help* buffer Nordlöw
2009-09-28 14:04 ` Andreas Politz
     [not found] ` <mailman.7646.1254146726.2239.help-gnu-emacs@gnu.org>
2009-09-28 14:36   ` Nordlöw
  -- strict thread matches above, loose matches on Subject: below --
2009-09-28 14:39 martin rudalics

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