|
From: | Kevin Rodgers |
Subject: | Re: C-x C-b (switch-to-buffer) smarter suggestions? |
Date: | Thu, 11 Feb 2010 21:42:26 -0700 |
User-agent: | Thunderbird 2.0.0.23 (Macintosh/20090812) |
Jorgen Grahn wrote:
On Tue, 2010-02-09, Kevin Rodgers wrote:
...
Thanks! I can't get it to work though, when just pasted into ~/.emacs: - C-x b - prompt appears, I type 'foo' and press return - error message: 'Wrong type argument: listp, "foo"'
Sorry, I pasted a test version. The only change is: (defadvice switch-to-buffer (before switch-from-buffer activate) "Temporarily bind `switch-from-buffer' to the current buffer while reading args interactively. See `internal-complete-buffer'." (interactive (let ((switch-from-buffer (current-buffer))) (list (read-buffer "Switch to buffer: " (other-buffer)))))) -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |