From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: introduction to lisp Date: Tue, 20 Jun 2017 00:25:20 +0000 Message-ID: References: <86vantbokk.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497918372 8265 195.159.176.226 (20 Jun 2017 00:26:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2017 00:26:12 +0000 (UTC) To: =?UTF-8?Q?John_Ankarstr=C3=B6m?= , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 20 02:26:05 2017 Return-path: Envelope-to: geh-help-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 1dN6zc-0001dR-QO for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jun 2017 02:26:04 +0200 Original-Received: from localhost ([::1]:44948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dN6ze-0008QF-Qs for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jun 2017 20:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dN6z9-0008QA-E6 for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 20:25:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dN6z7-0002Gh-WA for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 20:25:35 -0400 Original-Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:33613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dN6z7-0002GN-O1 for help-gnu-emacs@gnu.org; Mon, 19 Jun 2017 20:25:33 -0400 Original-Received: by mail-lf0-x231.google.com with SMTP id m77so64831810lfe.0 for ; Mon, 19 Jun 2017 17:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=q7VyBFx9mSaDym/W9ZGlxXn4gita/1DDRUeIARhvJz4=; b=HsGYNvK4X9KCwx+oroBIi5YbRMFrXDXSVUTXLqeYiw09cX6nTfTJD6N5+lsLV9eB3d sP7ZX4yTeGpAW/GpSKNeu/TnNgnFD38CkMPZ3CFI2NYHETwPMk3bkwtKSsEPpUfuvLwr TpIogWiRaCK2XltsoewCPZ6AxFpTuH3Lo+NoRBjlst/7OcozLLggZSSdxIDc1y5XuhY2 vrQzHH9nKU5nxCYjygTkeWJhBQB8Ttwtt7g7wzIFern/+MoZGxXuj0/mFEd4DzHgJIv7 nc9PVZk/mDffrsRgDyXTHroS2G8wwvTCuE7DQgAbgdfzd8G+GL54LEM2I8yqpRthGuTa /fDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=q7VyBFx9mSaDym/W9ZGlxXn4gita/1DDRUeIARhvJz4=; b=LOA5YKuLvx1J628JdI20vtghjTxXu+Te9mNwvaE8yGdWSXBeYJZuxpl4gT3nr8pTAY IW2M1rpx/fqKSTHmx5RfNTIUkV3r6/S6+8lquRgwkvVd00oE0WQoc66Iug76ZWg0XKZm SciKM0cDgWhzQkKcliLYmjbFgL3xvvbYWR3474hyGB9fqQs8ZToJUUug7f9N89zM4qn5 MKpOMwBrUBFVP8/2p5La0sYPfznbApK9fod/lCf9U2jwiEMvErfBVefIjphB8N9+mTG7 c4RitfZ1H2MOd/OgdhQ4aB1i08Sd6ofP0Xi5ctAL8mOH45U9r71YMQTEmZTAERqtwfpw PCXg== X-Gm-Message-State: AKS2vOxneWDVC88ZZqZmVTKnD49+XFl2QK88fYsO74fevbVeViBNZy16 5r48wkOuV6qf6ncGDCEIwrXfFg5ROA== X-Received: by 10.25.38.139 with SMTP id m133mr7272110lfm.127.1497918332148; Mon, 19 Jun 2017 17:25:32 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113529 Archived-At: On Mon, Jun 19, 2017, 8:14 PM John Ankarstr=C3=B6m wro= te: > Emanuel Berg writes: > > > Also I would write > > > > (global-set-key (kbd "C-c C-d") 'buster-disable-test) > > > > like this: > > > > (global-set-key "\C-c\C-d" #'buster-disable-test) > > I'm 100% with you on everything else you said, but I personally > prefer the `kbd' notation. It's clearer and easier to understand, > because it's consistent with how Emacs itself displays key > bindings for the user (through `describe-key'). > +1. It's simply type what you see. Example: - How do I bind F1? - Do C-h k F1.. Realize that emacs shows that as - Simply wrap that with (kbd "...") and you have (kbd "") - Put that in the global-set-key or define-key form. I do agree that #' is better than ' for functions :-) > +1 > -- Kaushal Modi