From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Have `define-key` return the keymap Date: Sat, 13 May 2017 10:32:04 +0200 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494664386 14321 195.159.176.226 (13 May 2017 08:33:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 08:33:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Emacs developers To: Tianxiang Xiong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 13 10:33:01 2017 Return-path: Envelope-to: ged-emacs-devel@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 1d9SU0-0003YA-QY for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 10:33:00 +0200 Original-Received: from localhost ([::1]:56679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9SU4-0001V6-Mk for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 04:33:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9STI-00011n-4d for emacs-devel@gnu.org; Sat, 13 May 2017 04:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9STE-0001yM-76 for emacs-devel@gnu.org; Sat, 13 May 2017 04:32:16 -0400 Original-Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:60513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9STE-0001y5-0u for emacs-devel@gnu.org; Sat, 13 May 2017 04:32:12 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3wQ0Sm1qbKz1qrFw; Sat, 13 May 2017 10:32:08 +0200 (CEST) Original-Received: from localhost (dynscan01.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3wQ0Sm0Zzfz3hhXY; Sat, 13 May 2017 10:32:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan01.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Wg1s80EP2iNu; Sat, 13 May 2017 10:32:07 +0200 (CEST) X-Auth-Info: Duu7OciBIbb6XAsXQYI5yF5UenGe4SNFtKpBiA5V1TsjSu2kBLHFt/6zwMAHr1lo Original-Received: from linux.local (ppp-88-217-14-108.dynamic.mnet-online.de [88.217.14.108]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 13 May 2017 10:32:07 +0200 (CEST) Original-Received: by linux.local (Postfix, from userid 501) id 232431E54B3; Sat, 13 May 2017 10:32:04 +0200 (CEST) X-Yow: Am I in GRADUATE SCHOOL yet? In-Reply-To: (Tianxiang Xiong's message of "Sat, 13 May 2017 01:19:17 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:a60:0:28:0:1:25:1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214811 Archived-At: On Mai 13 2017, Tianxiang Xiong wrote: > Would there be any issues with / objections to having `define-key` return > the keymap it adds a key to? It currently returns `nil`, making it a > statement (bleh!) rather than a function. That would cause major inconvenience when define-key is evaluated with M-: or ielm. A keymap is a big structure to print. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."