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: customizing key definitions with Customize Date: Tue, 13 May 2008 21:10:02 -0400 Message-ID: References: <000301c8b39e$ded16a50$0200a8c0@us.oracle.com> <003701c8b438$9d6e9f20$0200a8c0@us.oracle.com> <87r6c75brc.fsf@jurta.org> <87od79sttq.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210727435 25787 80.91.229.12 (14 May 2008 01:10:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2008 01:10:35 +0000 (UTC) Cc: rms@gnu.org, drew.adams@oracle.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 14 03:11:11 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jw5WK-0003yH-ID for ged-emacs-devel@m.gmane.org; Wed, 14 May 2008 03:11:04 +0200 Original-Received: from localhost ([127.0.0.1]:43999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw5Vb-00054t-GL for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 21:10:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jw5VX-00054o-Dq for emacs-devel@gnu.org; Tue, 13 May 2008 21:10:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jw5VW-00054c-2B for emacs-devel@gnu.org; Tue, 13 May 2008 21:10:15 -0400 Original-Received: from [199.232.76.173] (port=33003 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw5VV-00054Z-TN for emacs-devel@gnu.org; Tue, 13 May 2008 21:10:13 -0400 Original-Received: from 76-10-154-189.dsl.teksavvy.com ([76.10.154.189]:56845 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jw5VV-0001yf-Jb for emacs-devel@gnu.org; Tue, 13 May 2008 21:10:13 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6F5A670492; Tue, 13 May 2008 21:10:02 -0400 (EDT) In-Reply-To: <87od79sttq.fsf@jurta.org> (Juri Linkov's message of "Wed, 14 May 2008 02:59:27 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 39044 seconds by postgrey-1.27 at monty-python; Tue, 13 May 2008 21:10:13 EDT 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:97105 Archived-At: >> Another alternative is to make keybindings first-class entities >> for Customize like faces with their `defface' definition. >> So customized and saved settings in a customization file >> would be like: >> >> (custom-set-keybindings >> ;; custom-set-keybindings was added by Custom. >> ;; If you edit it by hand, you could mess it up, so be careful. >> ;; Your init file should contain only one such instance. >> ;; If there is more than one, they won't work right. >> '(emacs-lisp-mode-map (([tab] 'lisp-indent-or-complete) ...)) >> ...) >> >> That looks clean and useful to me. > A question remains to decide is what would be a good user interface > for editing key bindings. For instance, after typing Also, what would be the semantics of the above `custom-set-keybindings'. Stefan