home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!pacbell.com!decwrl!parc!news!delacour
- From: delacour@waxwing.parc.xerox.com (Vincent Delacour)
- Subject: switch to existing buffer
- Message-ID: <DELACOUR.92Aug28102156@waxwing.parc.xerox.com>
- Sender: news@parc.xerox.com
- Organization: Xerox PARC, Palo Alto, CA
- Date: 28 Aug 92 10:21:56
- Lines: 23
-
-
-
- For various reasons I need a function equivalent to 'switch-to-buffer',
- but that accepts only _existing_ buffers.
-
- It seems the obvious solution doesn't work as expected:
-
- (defun my-switch-to-buffer (bu)
- ;; require an existing buffer
- (interactive "bSwitch to buffer: ")
- (switch-to-buffer bu ()))
-
- (this one apparently puts the buffer we switch to in front of the list
- of recently selected ones, so the buffer we are in is proposed as the
- default when later switching buffers)
-
- Does somebody know a satisfactory way to switch to an existing buffer
- only while preserving all other cheracteristics of switch-to-buffer ??
-
- Thanks,
-
- Vincent
-
-