emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global bar to display global information


From: martin rudalics
Subject: Re: Global bar to display global information
Date: Sun, 21 Aug 2011 10:45:06 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> Start by evaluating this in *scratch*
>
> (display-buffer
>  (get-buffer-create "foo")
>  '((use-side-window bottom 0) (pop-up-window-set-height . 1)))

This gets you two windows, one displaying *scratch* and the other one
displaying foo.

> Now do a C-h f <some-function-name> INTRO
>
> The frame is splitted into two windows, one for *scratch* and another
> for *Help*, "foo" is gone,

Not really.  The window of foo is reused for *Help*.

> C-x 1 does not work from *scratch*, C-x 1
> from the *Help* buffer reports
>
> byte-code: Cannot make side window the only window

C-x 0 from *Help* should have worked.  Anyway, this behavior was
reported by Juri Linkov immediately after my initial proposal and the
remedy I suggested was to use

(display-buffer
 (get-buffer-create "*global-mode-line*")
 '((use-side-window bottom 0) (dedicate . t) (pop-up-window-set-height . 1)))

In addition you probably want to do

(setq window-size-fixed 'height)

in *global-mode-line* to assure that the window doesn't get resized.

>> That's part of the idea.  C-x 1 should not delete such windows and
>> should not make such a window the only one on its frame.
>
> It seems that Emacs reuses that window for displaying other buffers
> (*Help*, in the recipe described above)

Should not happen any more with present trunk.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]