home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.centerline.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!sdd.hp.com!decwrl!pacbell.com!hoptoad!amdcad!amdahl!JUTS!climb!tlp00
- From: tlp00@ras.amdahl.com (Tibor Polgar)
- Newsgroups: alt.lucid-emacs.help
- Subject: Re: Buffer mode addition
- Message-ID: <eezU02Su2a.O01@JUTS.ccc.amdahl.com>
- Date: 13 Nov 92 00:37:46 GMT
- References: <bbFQ02MO2a5N01@JUTS.ccc.amdahl.com>
- Sender: netnews@ccc.amdahl.com
- Reply-To: tlp00@ras.amdahl.com
- Organization: Sun Microsystems
- Lines: 37
-
- Whoops forgot that i had a local function called from within Buffer-menu-new-screen.
-
- --------------------------------------------------------------------------------------
- (defun close-window-nosave ()
- "Smart close window, without saving the file."
- (interactive)
- (close-window nil)
- )
-
- (defun close-window (save)
- "Smart close window, optionally save and kill buffer."
-
- (let
- ((multiple-windows (buffer-in-multiple-windows))
- (this-buffer (current-buffer)))
-
- (if (and save (not multiple-windows) (not buffer-read-only))
- (save-buffer)) ; Save the buffer.
- (if server-buffer-clients ; Take care of server-edit stuff.
- (server-edit))
- (if (not multiple-windows)
- (kill-buffer this-buffer)) ; Kill the buffer.
- (delete-window) ; Remove window or screen.
- )
- )
-
-
- -------------------------------------------------------------------------------
- | Tibor L. Polgar | (408) 746-8649 | tlp00@climb.ras.amdahl.com
- | Amdahl Corporation
- | 1250 East Arques Avenue (M/S 281)
- | P.O. Box 3470
- | Sunnyvale, CA 94088-3470
- |
- | The opinions expressed above are mine, solely, and do not in any way
- | shape or form reflect the opinions or policies of Amdahl Corp.
- -------------------------------------------------------------------------------
-