dsill@RELAY.NSWC.NAVY.MIL (02/03/89)
When the last line of a buffer ending with a newline is also the last line in the window, (pos-visible-in-window-p (point-max)) correctly returns nil, but (scroll-up nil) won't scroll the buffer up a line as it should. In other words, say you have a buffer displayed in a 10-line window that contains 10 words, one word per line, each word followed by a newline. Type M-< to go to the top of the buffer, and all ten words will be visible. Type C-v or ESC scroll-up and you get "End of Buffer". Type M-> to go to the end of the buffer, and the window will scroll up. Big deal, right? Well, I noticed it when I was reading a bunch of files using dired's view command. Normally, I would just page through a file by hitting the space bar, and when I got to the end of the file one more space would quit the view and return me to dired. But... When a file is just the right (wrong) size, scroll-up will fail to scroll up the last line of the file, and view won't let me quit without hitting the "q" key. By the way, scroll-up-in-place, recently posted by Joe Wells, handles the situation properly. ================================================================ "In complex systems, malfunction and even total nonfunction may not be detectable for long periods, if ever." -- John Gall