From unknown Sun Aug 17 06:59:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48 <48@debbugs.gnu.org> To: bug#48 <48@debbugs.gnu.org> Subject: Status: bugs in (loop for ... being the key-codes|key-seqs ...) Reply-To: bug#48 <48@debbugs.gnu.org> Date: Sun, 17 Aug 2025 13:59:13 +0000 retitle 48 bugs in (loop for ... being the key-codes|key-seqs ...) reassign 48 emacs submitter 48 "Jonas Bernoulli" severity 48 normal thanks From monnier@iro.umontreal.ca Mon Mar 10 09:07:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Mar 2008 16:07:15 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2AG79Cl004603 for ; Mon, 10 Mar 2008 09:07:10 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhUHAHD51EfO+JwVQWdsb2JhbACQdAEBAR4IElZEkgGFD4EH X-IronPort-AV: E=Sophos;i="4.25,474,1199682000"; d="scan'208";a="15794887" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 10 Mar 2008 12:06:46 -0400 Received: from pastel.home ([206.248.156.21]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id QTQ72845 for ; Mon, 10 Mar 2008 12:06:45 -0400 Received: by pastel.home (Postfix, from userid 20848) id B2B9B805A; Mon, 10 Mar 2008 12:06:45 -0400 (EDT) Resent-Message-ID: Resent-To: submit@debbugs.gnu.org Resent-From: Stefan Monnier Resent-Date: Mon, 10 Mar 2008 12:06:45 -0400 X-Original-To: monnier@iro.umontreal.ca Delivered-To: monnier@iro.umontreal.ca Received: from perlin.iro.umontreal.ca (perlin.iro.umontreal.ca [132.204.24.51]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 922A22CF730 for ; Mon, 10 Mar 2008 09:29:17 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by perlin.iro.umontreal.ca (Postfix) with ESMTP id C0142148218 for ; Mon, 10 Mar 2008 09:29:09 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYi3x-0008Oa-FQ for monnier@iro.umontreal.ca; Mon, 10 Mar 2008 09:29:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYi3J-0007r5-EC for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:28:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYi3H-0007pw-SK for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:28:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYi3H-0007pp-HW for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:28:27 -0400 Received: from nf-out-0910.google.com ([64.233.182.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYi3G-0002tT-Lc for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2008 09:28:27 -0400 Received: by nf-out-0910.google.com with SMTP id f5so697053nfh.26 for ; Mon, 10 Mar 2008 06:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=+AiyXfOWlSsQH4wI5ozhd9p6nl0DsvGeDVDVOVmOLoE=; b=m6iKHydPThxUpnB+ADiJuG/EWgldYGhIFZXfOh3LTW6ub9MsPk7c0W3w2tlfNUcF7Gvd/pbibZBLQ1zZ6PB+e/QaVr6vuBNXfqqYWkrJdBImvH5FBmZVk6xasAePjnsYf9N4FI3J1cwUHvxVNvjR8r3tgeQbtZ6SDlydIKfMT14= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=Ac8wMRygzymPvcBDp3L+PmmV+SFYAI7bhmMpuTiaZxkp92X7JB+SNdcwid6fTdomAZQ/kTlontMFhhrtRuF5xbTsHsFXys6Lj4OjC5Y+9vI2mNQb9KL+H7fu4ZtvDBgDrAzrOuHVANg8y20OS1FysQMPE2FgSC84YByj6fKenpo= Received: by 10.78.100.1 with SMTP id x1mr13669331hub.47.1205155704588; Mon, 10 Mar 2008 06:28:24 -0700 (PDT) Received: by 10.78.124.1 with HTTP; Mon, 10 Mar 2008 06:28:24 -0700 (PDT) Message-ID: <201bac3a0803100628h6e07df4fgb775560257ef6267@mail.gmail.com> Date: Mon, 10 Mar 2008 14:28:24 +0100 From: "Jonas Bernoulli" To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: b5e3d309e657198f X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: bugs in (loop for ... being the key-codes|key-seqs ...) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.873, requis 5, BAYES_00 -2.60, RCVD_BY_IP 0.07, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org Both 22.1 and 23.0.60 are affected. (loop for key being the key-seqs of (let ((map (make-sparse-keymap))) (define-key map "a" 'a-97) (define-key map "b" 'b-98) map) collect key) => ([97] [97]) but should be: => ([98] [97]) (loop for key being the key-codes of (let ((map (make-sparse-keymap))) (define-key map "a" 'a-97) (define-key map "b" 'b-98) (set-keymap-parent map (let ((map (make-sparse-keymap))) (define-key map "c" 'c-99) map)) map) collect key) => (98 97 99) but should be: => (98 97) `for VAR being the key-codes of KEYMAP' This clause iterates over the entries in KEYMAP. The iteration does not enter nested keymaps or inherited (parent) keymaps. -- jonas From monnier@iro.umontreal.ca Tue Mar 18 19:39:55 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.5 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 48-done) by emacsbugs.donarmstrong.com; 19 Mar 2008 02:39:56 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2J2dqEV030632 for <48-done@emacsbugs.donarmstrong.com>; Tue, 18 Mar 2008 19:39:54 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAGcZ4EdMCrTo/2dsb2JhbACpQYEJ X-IronPort-AV: E=Sophos;i="4.25,521,1199682000"; d="scan'208";a="16217445" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 18 Mar 2008 22:39:19 -0400 Received: from pastel.home ([76.10.180.232]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id ZFG33019; Tue, 18 Mar 2008 22:39:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id 545D780C6; Tue, 18 Mar 2008 22:39:16 -0400 (EDT) From: Stefan Monnier To: 48-done@debbugs.gnu.org Subject: bugs in (loop for ... being the key-codes|key-seqs ...) Message-ID: Date: Tue, 18 Mar 2008 22:39:16 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I changed the documentation to match the behavior of the code. Stefan From unknown Sun Aug 17 06:59:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Apr 2008 14:24:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator