home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!aifh!aifh!tfb
- From: tfb@aisb.ed.ac.uk (Tim Bradshaw)
- Newsgroups: alt.lucid-emacs.help
- Subject: Re: 2 questions
- Message-ID: <TFB.92Aug12134552@eagle.aisb.ed.ac.uk>
- Date: 12 Aug 92 12:45:52 GMT
- References: <9208112202.AA03604@maestro.mitre.org>
- <9208112232.AA14929@thalidomide.lucid>
- Sender: news@aifh.ed.ac.uk (Network News Administrator)
- Organization: Not
- Lines: 32
- In-Reply-To: jwz@lucid.com's message of 11 Aug 92 22:32:44 GMT
-
- >>>>> On 11 Aug 92 22:32:44 GMT, jwz@lucid.com (Jamie Zawinski) said:
-
- > In message <9208112202.AA03604@maestro.mitre.org> Michael Lamoureux wrote:
- >>
- >> I was trying to get get-screen-for-buffer to work as documented. I did a
- >> grep through the source, and I determined that get-screen-for-buffer never
- >> get's called.
-
- > It's called by virtue of begin the value of pre-display-buffer-hook, which
- > is called from display-buffer. The problem is that there are several other
- > ways that buffers can get displayed besides calling display-buffer. If you
- > do find-file, it just calls switch-to-buffer, meaning reuse the current
- > window. If you do find-file-other-window, it uses display-buffer, so it
- > should pop up in another screen.
-
- >> I don't know why it works at all, and I don't know why, if it works at all,
- >> that it doesn't work as documented.
-
- > I think it does work as documented, but it's not clear that what it does is
- > all that useful.
-
- I think that get-screen-for-buffer works correctly. However I am
- fairly sure that the code that drives it is broken in some way. I
- have code that uses it to display manual pages in their own screens &
- quite often but in some unpredictable way, the wrong buffer ends up in
- the newly created screen. I looked at what get-screen-for-buffer was
- doing and it creates & returns the correct screen, but somewhere after
- then the buffer-screen correspondence is lost. I couldn't really work
- out what was doing this but it seemed to be obscure, and I'm still not
- 100% sure it's not my misunderstanding of what is meant to happen.
-
- --tim
-