help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lisp lexical-let related


From: poppyer
Subject: lisp lexical-let related
Date: 19 May 2007 05:06:24 +0100
User-agent: Emacs Gnus

Hi, all,

I try to re-bind TAB key to call (tab) or (m-tab), according to weather
it stops at the end of a word. But the following lisp code not working
as expected. Any idea?

==========
  (lexical-let ((tab (key-binding (kbd "TAB")))
                (mtab (key-binding (kbd "M-TAB"))))
    (local-set-key (kbd "TAB") (lambda()
                                 (interactive)
                                 (if (looking-at "\\>")
                                     mtab
                                   tab
                                   )
                                 )
                   )
    )
==========

-- 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]