all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Syntax to use (let...) in key binding
@ 2015-03-02 15:37 Tory S. Anderson
  2015-03-02 15:55 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Tory S. Anderson @ 2015-03-02 15:37 UTC (permalink / raw)
  To: Emacs Help List

I'm guessing it's some stupid mistake, but why doesn't this work? 
--8<---------------cut here---------------start------------->8---
;; Resume bookmark view or create it
(global-set-key [f10] '(let ((b "*Bookmark List*")) (if (get-buffer b) '(switch-to-buffer b) 'bookmark-bmenu-list)))
--8<---------------cut here---------------end--------------->8---

This results in:
command-execute: Wrong type argument: commandp, (let ((b "*Bookmark List*")) (if (get-buffer b) (quote (switch-to-buffer b)) (quote bookmark-bmenu-list)))

Is the "let" not returning a command like I want it to? debug-on-error doesn't seem to be helping me understand this. 




^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.1150.1425310684.31049.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-03-02 23:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02 15:37 Syntax to use (let...) in key binding Tory S. Anderson
2015-03-02 15:55 ` Drew Adams
     [not found] <mailman.1150.1425310684.31049.help-gnu-emacs@gnu.org>
2015-03-02 23:49 ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.