From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tianxiang Xiong Newsgroups: gmane.emacs.devel Subject: Re: Have `define-key` return the keymap Date: Sat, 13 May 2017 02:11:05 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114bd67aafdcf6054f64338f" X-Trace: blaine.gmane.org 1494666707 840 195.159.176.226 (13 May 2017 09:11:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 09:11:47 +0000 (UTC) Cc: Emacs developers To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 13 11:11:40 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 1d9T5O-0008Oc-JH for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 11:11:38 +0200 Original-Received: from localhost ([::1]:56788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9T5S-0000kU-DK for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 05:11:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9T4t-0000kE-LU for emacs-devel@gnu.org; Sat, 13 May 2017 05:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9T4s-0001cB-Sb for emacs-devel@gnu.org; Sat, 13 May 2017 05:11:07 -0400 Original-Received: from mail-yb0-x236.google.com ([2607:f8b0:4002:c09::236]:33028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9T4s-0001bv-NQ for emacs-devel@gnu.org; Sat, 13 May 2017 05:11:06 -0400 Original-Received: by mail-yb0-x236.google.com with SMTP id j17so18802250ybj.0 for ; Sat, 13 May 2017 02:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lWxd+KfhSE7jhnQ8ME6EqogQS6Yf+jtXnh6b/K4dQwI=; b=QW43gEItOHMN+QXY28MyVEloCwS3GbCwufSj4/9/z4fkG7t0x6EvUz1oGIR0xZfQqt 1+BDyWddHkOl8KHB9U1zvRA7/LjoJ2Rxtw1T3lq4V1ZtHT20ySjIzorpvqcCDeFtH5oP MdKYqK64cMUM5atf4txQtUssxRh3OYHsifdWbq6HqpV2Ni/zJWHogSqXXaMZYemHC6s2 LJQTjAAwQS0Xo8vxhZiVvwUoOev2D0qShTOZQuAuknZnJnhGLKHmQZ9gJBGtRCQPk6AR jFhKOzlfdOtiilLuD+2BWA8wMQXFYiP2npGNYLmghhf7DqamDMKpyE7LYTra/XfwmcL6 FOaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lWxd+KfhSE7jhnQ8ME6EqogQS6Yf+jtXnh6b/K4dQwI=; b=l7nMaSNJXveXpIDshLElxWyadbRUbDaKZG/BYzyGrUJnust9QVlQE04f6XR6ATPC7+ 31IaFEYGHoQYw7oiQzL88xKmDTBZ1+5qaDxOgXLuEwYYnNQ+h0AvOQJiZ6+KLVJpwsBM AhTruYteogwDzUzw7cFTQNEdw/L4H+aLlsQMUe0BsS0HSCOlDYpJHrv18guzaQuTteAL baw2ND0ElWN+VJayBwZEjJvRf37a8N+SURW0Q3nnkryd9StclwPqecbcNOUBYbFeEfcE lhBxvp/Hqzpjt0G8kAczlsWQ0wRKfcuVc665F6Kcm5lZPIVKq896vVduvcBqdvM05anD Yhsw== X-Gm-Message-State: AODbwcDcm/pFBZBWdxJ93rujE7qvw54H1WHXsNLsXUNy/sdiQNrLJkGe cAHmIHjl4IOOcen6KZioO7pS3QxIhA== X-Received: by 10.37.61.134 with SMTP id k128mr6478128yba.36.1494666666032; Sat, 13 May 2017 02:11:06 -0700 (PDT) Original-Received: by 10.13.232.22 with HTTP; Sat, 13 May 2017 02:11:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c09::236 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:214812 Archived-At: --001a114bd67aafdcf6054f64338f Content-Type: text/plain; charset="UTF-8" That's true...a valid concern. On Sat, May 13, 2017 at 1:32 AM, Andreas Schwab wrote: > 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." > --001a114bd67aafdcf6054f64338f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's true...a valid concern.

On Sat, May 13, 2017 at 1:32 AM, An= dreas Schwab <schwab@linux-m68k.org> wrote:
On Mai 13 2017, Tianxiang Xiong <= tianxiang.xiong@gmail.com&= gt; wrote:

> Would there be any issues with / objections to having `define-key` ret= urn
> 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 wi= th
M-: or ielm.=C2=A0 A keymap is a big structure to print.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.= org
GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756=C2=A0 01D3 44D5 214B 8276 = 4ED5
"And now for something completely different."

--001a114bd67aafdcf6054f64338f--