From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#14797: 24.3.50; new, undocumented menu structure using VECTORS? Date: Sat, 6 Aug 2016 11:42:14 -0400 Message-ID: References: <6b4ca396-4d2b-4719-8b1e-1ef9eb6f5610@default> <87d1lm6o2p.fsf@users.sourceforge.net> <83k2fuj6vp.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1470498304 16962 195.159.176.226 (6 Aug 2016 15:45:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2016 15:45:04 +0000 (UTC) Cc: Stefan Monnier , 14797@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 17:44:57 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW3kq-0007h3-Jh for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 17:43:16 +0200 Original-Received: from localhost ([::1]:49751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW3kn-0005v6-Br for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 11:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW3kg-0005uy-T4 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 11:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bW3kc-0002EK-K0 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 11:43:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW3kc-0002EF-Gv for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bW3kc-0001Jf-6U for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 11:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2016 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14797-submit@debbugs.gnu.org id=B14797.14704981435014 (code B ref 14797); Sat, 06 Aug 2016 15:43:02 +0000 Original-Received: (at 14797) by debbugs.gnu.org; 6 Aug 2016 15:42:23 +0000 Original-Received: from localhost ([127.0.0.1]:58076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW3jz-0001In-EL for submit@debbugs.gnu.org; Sat, 06 Aug 2016 11:42:23 -0400 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:36567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW3jx-0001IZ-2V for 14797@debbugs.gnu.org; Sat, 06 Aug 2016 11:42:22 -0400 Original-Received: by mail-oi0-f46.google.com with SMTP id f189so125371519oig.3 for <14797@debbugs.gnu.org>; Sat, 06 Aug 2016 08:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=706+uGBOjXziTP/AzV2lygdqVOmk/HFmH6X9xnkUuDI=; b=cNkgJ/roYQrpltWSj+MyE83Xk3nIOrudCFIz6XwJmcWqCE1K/aoM4NnxvgNX/QLrJ5 1GwI//JD74lKV//wgM3l5BgUjsv+4XDuRKxemPxSEn85KVOsI9ZTK/voXFsgIpx6HYwz Vov16zUpMOffMg0AK5FqG3/Kb33hYzKrAfFCpU8P+L+vttl6+20myDNbNp2mFCV/KmyJ PIq30L64bO8w5arBHWpMUTutnN3YL7yweV83gXgfICKC8ptHznP+ljuUn+R+F0o2KZSd rnuXOZfHWfPmtyCXzrSXozgeOxxZWEs/v1FZa4pjKZs9lzdMnsw4vmVwgbPaA9xDSom0 +LqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=706+uGBOjXziTP/AzV2lygdqVOmk/HFmH6X9xnkUuDI=; b=Wcsc0fIb0bjazm8MEWTTOhbMjyu98c0gwcwpCEAobTdt2mwyIB9upvw8HyocYQCAjt U9S0pNUha4IghbdvliW7iYP9Ll2N9xuLVsiKG5yJOnP2M0duSyQPii2pMSzX5c3nWSlY fkX309SCxnZjKZJufD7UJiloBvLofbK3ck9/vzfrAvG02j/aKoKhOFdzOV9JRvezxoch OAJjwdnYkZf1QrmK4Npb51C4xG7uqqkhQoo344xDeETGnMdYywrwcXJlQSgjUm/MoATk LQspPJxzS/B/xxBSeDPOCbEb9Se7Tq56dZmAsGyY5Vmv5JCFnYRXSILcZ3SAEMScBhUO c/Sg== X-Gm-Message-State: AEkoouuTPY4pHXgEvHFlOWvEh/+dbogxdipZHwbk5S9ytsSl12kNBaGkXmZ4VKj+FM03BQh9euraZSM5vYXYLQ== X-Received: by 10.202.73.205 with SMTP id w196mr577563oia.40.1470498135475; Sat, 06 Aug 2016 08:42:15 -0700 (PDT) Original-Received: by 10.157.7.161 with HTTP; Sat, 6 Aug 2016 08:42:14 -0700 (PDT) In-Reply-To: <83k2fuj6vp.fsf@gnu.org> X-Google-Sender-Auth: MwmB4viSOPJlH70qLt8RffZCspA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121904 Archived-At: On Sat, Aug 6, 2016 at 10:42 AM, Eli Zaretskii wrote: >> From: npostavs@users.sourceforge.net >> Date: Sat, 06 Aug 2016 09:09:50 -0400 >> Cc: Stefan Monnier , 14797@debbugs.gnu.org >> >> --- a/doc/lispref/keymaps.texi >> +++ b/doc/lispref/keymaps.texi >> @@ -199,6 +199,14 @@ Format of Keymaps >> bindings. A keymap with such a char-table is called a @dfn{full >> keymap}. Other keymaps are called @dfn{sparse keymaps}. >> >> +@item @var{vector} >> +This kind of element is similar to a char-table: element @var{n} is >> +the binding for the character with code @var{n}. Since the range of >> +characters that can be bound this way is limited by the vector size, >> +and vector creation allocates space for all character codes from 0 up, >> +this format should not be used except for creating menu keymaps >> +(@pxref{Menu Keymaps}), where the bindings themselves don't matter. >> + >> @item @var{string} >> @cindex keymap prompt string >> @cindex overall prompt string > > LGTM, except that "the character with code N" could use some better > wording. How about > > ... element whose index is @var{c} is the binding for the character > @var{c}. > > instead? Sure. I guess the char-table paragraph should use the same wording, right?