unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Define-key doc string - binding changes always if it exists
Date: Fri, 12 Aug 2005 03:19:20 -0400	[thread overview]
Message-ID: <m1pssj62xh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <42FA738C.9020300@student.lu.se> (Lennart Borgman's message of "Wed, 10 Aug 2005 23:37:16 +0200")

>      (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

      parent reply	other threads:[~2005-08-12  7:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10 21:37 Define-key doc string - binding changes always if it exists Lennart Borgman
2005-08-11 15:05 ` Kevin Rodgers
2005-08-11 15:45   ` Lennart Borgman
2005-08-12  7:19 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1pssj62xh.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).