home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!decwrl!parc!news!delacour
- From: delacour@waxwing.parc.xerox.com (Vincent Delacour)
- Subject: switch-to-buffer : how to require an existing buffer ??
- Message-ID: <DELACOUR.92Aug26115023@waxwing.parc.xerox.com>
- Sender: news@parc.xerox.com
- Organization: Xerox PARC, Palo Alto, CA
- Date: 26 Aug 92 11:50:23
- Lines: 22
-
-
-
- Hi,
-
- Does somebody know the right way to have switch-to-buffer and
- switch-to-buffer-other-window require an existing buffer ?
-
- Thanks in advance,
-
- Vincent
-
- ps: this is what I've tried. This works superfiocially, but the
- default buffer proposed by switch-to-buffer is now almost always the
- current buffer, which is not really satisfactory. In fact, both the
- solution and the reason why the simple function below does not work
- would interest me. Thanks again.
-
- (defun my-switch-to-buffer (bu)
- ;; require an existing buffer
- (interactive "bSwitch to buffer: ")
- (switch-to-buffer bu t))
-
-