From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: can Cap Lock key be detected in emacs? Date: Thu, 31 Jul 2008 11:16:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <07561d97-3391-49f0-920f-4ba87c7d67e8@q5g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1217529658 18161 80.91.229.12 (31 Jul 2008 18:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 18:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 20:41:48 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOd5r-0004kj-Vc for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2008 20:41:44 +0200 Original-Received: from localhost ([127.0.0.1]:52551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOd4w-0003xD-PW for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2008 14:40:46 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q5g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 24.6.97.120 Original-X-Trace: posting.google.com 1217528187 12204 127.0.0.1 (31 Jul 2008 18:16:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 31 Jul 2008 18:16:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q5g2000prf.googlegroups.com; posting-host=24.6.97.120; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160752 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56098 Archived-At: Xah Lee wrote: =C2=ABhow did you set Cap Lock to M-x in Windows? (i'd like to have that in osx too)=C2=BB "Lennart Borgman (gmail)" wrote: =C2=AB (setq w32-enable-caps-lock nil) (global-set-key [capslock] 'execute-extended-command) =C2=BB That's odd. I always thought Caps Lock isn't received at the application level. On my emacs, if i press Alt+x describe-key then Caps Lock, emacs behaves as if no key has been pressed. (this is OSX 10.4.x, PC keyboard, Carbon Emacs) How can i get this to work in the Mac? Xah =E2=88=91 http://xahlee.org/ =E2=98=84