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: Define-key doc string - binding changes always if it exists Date: Fri, 12 Aug 2005 03:19:20 -0400 Message-ID: References: <42FA738C.9020300@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123832300 23424 80.91.229.2 (12 Aug 2005 07:38:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 07:38:20 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 12 09:38:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3U6C-0000aq-Ix for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2005 09:37:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3U9P-0002xy-7T for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2005 03:40:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3U2d-0000eI-Oi for emacs-devel@gnu.org; Fri, 12 Aug 2005 03:33:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3U2V-0000b6-BU for emacs-devel@gnu.org; Fri, 12 Aug 2005 03:33:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3U2U-0000Mf-07 for emacs-devel@gnu.org; Fri, 12 Aug 2005 03:33:14 -0400 Original-Received: from [195.186.19.66] (helo=mail22.bluewin.ch) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3U3X-0005pU-Ns for emacs-devel@gnu.org; Fri, 12 Aug 2005 03:34:19 -0400 Original-Received: from empanada.local (62.203.41.131) by mail22.bluewin.ch (Bluewin 7.2.063) id 42E684E000257DE6; Fri, 12 Aug 2005 07:19:15 +0000 Original-Received: by empanada.local (Postfix, from userid 502) id AF1D560222B; Fri, 12 Aug 2005 03:19:20 -0400 (EDT) Original-To: Lennart Borgman In-Reply-To: <42FA738C.9020300@student.lu.se> (Lennart Borgman's message of "Wed, 10 Aug 2005 23:37:16 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) 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:41937 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41937 > (DEFN should be a valid definition in its own right), > or a cons (MAP . CHAR), meaning use definition of CHAR in keymap MAP. > -If KEYMAP is a sparse keymap with a binding for KEY, the existing > -binding is altered. If there is no binding for KEY, the new pair > -binding KEY to DEF is added at the front of KEYMAP. */) > +If KEYMAP is a sparse keymap and there is no binding for KEY, the new > +pair binding KEY to DEF is added at the front of KEYMAP. */) The behavior should be the same with sparse maps as for dense maps, at least from the function's user point of view, so the docstring shouldn't need to distinguish. Instead of the above patch, I'd remove the word "sparse". Dense maps also use pairs (KEY . DEF) for non-char keys. Stefan