Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!pasteur!ucbvax!LF-SERVER-2.BBN.COM!jr From: jr@LF-SERVER-2.BBN.COM (John Robinson) Newsgroups: comp.emacs Subject: Re: non disctructive split-window Message-ID: <8801211509.AA01901@ucbvax.Berkeley.EDU> Date: 21 Jan 88 14:47:49 GMT References: <605@athos.rutgers.edu> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: jr@BBN.COM Organization: The ARPA Internet Lines: 18 This function might be of use to you, assuming you are doing this in elisp code: save-window-excursion: Execute body, preserving window sizes and contents. Restores which buffer appears in which window, where display starts, as well as the current buffer. Does not restore the value of point in current buffer. If you need to preserve point, you probably also want: save-excursion: Save point (and mark), execute BODY, then restore point and mark. Executes BODY just like PROGN. Point and mark values are restored even in case of abnormal exit (throw or error). /jr jr@bbn.com or jr@bbn.uucp