home *** CD-ROM | disk | FTP | other *** search
- I am using the following function to create a new mode dependent screen for buffers:
-
- (defun find-file-new-screen-with-mode-dependent-name (filename)
- "Just like find-file, but creates a new screen for it first, if it isn't
- displayed yet. The name of the screen depends on the major-mode of
- the buffer."
- (interactive ."FFind file in new screen: ")
- (let* ((buf (find-file-noselect filename))
- (scr (get-screen-for-buffer buf)))
- (if scr (select-screen scr))
- (switch-to-buffer buf)))
-
-
-
- In my .emacs file I load
- (require 'fib-menubar)
-
- If I put
- (find-file-new-screen-with-mode-dependent-name ".")
- in .emacs and start lucid just with
- lucid
- (in order to get the *scratch* buffer) I do
- not get the fib-menubar in the *scratch* buffer until I click on the menubar.
- Everything works fine if I do not open a buffer having pending messages like
- *scratch*.
- A very similar problem appears if I try to open vm in a separate screen at
- startup as long as I don't set vm-inhibit-startup-message.
-
- Does anybody know a fix for that?
-
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; please send your comments to pth@ibm-1.mpa-garching.mpg.de
- ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-