From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Emacs's Command Frequency and default keyboard shortcuts Date: Tue, 17 Oct 2006 22:00:21 -0400 Message-ID: References: <1159914415.055557.32190@i3g2000cwc.googlegroups.com> <1160574910.715784.64440@i42g2000cwa.googlegroups.com> <1160744232.506208.265870@k70g2000cwa.googlegroups.com> <87zmc0tj1r.fsf@post.rwth-aachen.de> <1161009567.067785.208350@i42g2000cwa.googlegroups.com> <874pu3tos2.fsf@localhorst.mine.nu> <851wp7e638.fsf@lola.goethe.zz> <877iyz719o.fsf@thalassa.informatimago.com> <8764eisbm3.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161137156 18077 80.91.229.2 (18 Oct 2006 02:05:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2006 02:05:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 18 04:05:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ga0jc-0006du-Dh for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 04:00:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga0jb-0002BK-UK for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 22:00:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ga0jM-00028O-1m for emacs-devel@gnu.org; Tue, 17 Oct 2006 22:00:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ga0jK-00024j-2d for emacs-devel@gnu.org; Tue, 17 Oct 2006 22:00:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga0jJ-00024M-Rw for emacs-devel@gnu.org; Tue, 17 Oct 2006 22:00:25 -0400 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ga0jG-0001ZS-Oq; Tue, 17 Oct 2006 22:00:23 -0400 Original-Received: from pastel.home ([70.55.81.188]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061018020021.NRAV1747.tomts25-srv.bellnexxia.net@pastel.home>; Tue, 17 Oct 2006 22:00:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8F46D80C5; Tue, 17 Oct 2006 22:00:21 -0400 (EDT) Original-To: Miles Bader In-Reply-To: <8764eisbm3.fsf@catnip.gol.com> (Miles Bader's message of "Wed\, 18 Oct 2006 09\:37\:08 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60852 Archived-At: > (define-minor-mode caps-lock-mode > "When enabled, all self-inserting characters will be converted to uppercase." > :lighter " CapsLock" > (if caps-lock-mode > (local-set-key [remap self-insert-command] 'self-insert-upcased) > (local-unset-key [remap self-insert-command]))) You mean (defvar caps-lock-mode-map (let ((map (make-sparse-keymap))) (define-key map [remap self-insert-command] 'self-insert-upcased) map)) (define-minor-mode caps-lock-mode "When enabled, convert all self-inserting characters to uppercase." :lighter " CapsLock") -- Stefan