|
From: | Ivan Kanis |
Subject: | Re: This code won't match buffer names. Why not? |
Date: | Sat, 22 Aug 2009 09:27:12 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Chris Seberino <cseberino@gmail.com> wrote: > ; Sets F10 to execute a function that moves to another buffer. > (global-set-key [f10] (lambda () (interactive) > (next-buffer) > (if (equal (current-buffer) > "*scratch*") > (next-buffer) > (end-kbd-macro)) Try buffer-name instead of current-buffer and maybe string= instead of equal. I am not sure why you call end-kbd-macro. Also there is no need to put interactive because you won't call an anonymous function. -- Ivan Kanis http://kanis.fr Deep Hack Mode--that mysterious and frightening state of consciousness where Mortal Users fear to tread. -- Matt Welsh
[Prev in Thread] | Current Thread | [Next in Thread] |