From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 332f465: Make lisp/jsonrpc.el work with Emacs 25.1 Date: Tue, 03 Jul 2018 09:06:34 +0100 Message-ID: <87k1qcg2ut.fsf@gmail.com> References: <20180702165742.23596.60390@vcs0.savannah.gnu.org> <20180702165745.231D1204E8@vcs0.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530605092 21677 195.159.176.226 (3 Jul 2018 08:04:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2018 08:04:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 03 10:04:47 2018 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 1faGIp-0005Wq-GH for ged-emacs-devel@m.gmane.org; Tue, 03 Jul 2018 10:04:47 +0200 Original-Received: from localhost ([::1]:38760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faGKw-00021D-Pq for ged-emacs-devel@m.gmane.org; Tue, 03 Jul 2018 04:06:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faGKi-0001yS-LJ for emacs-devel@gnu.org; Tue, 03 Jul 2018 04:06:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faGKd-0006N9-LT for emacs-devel@gnu.org; Tue, 03 Jul 2018 04:06:44 -0400 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:53712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faGKd-0006MW-EE for emacs-devel@gnu.org; Tue, 03 Jul 2018 04:06:39 -0400 Original-Received: by mail-wm0-x234.google.com with SMTP id b188-v6so1262076wme.3 for ; Tue, 03 Jul 2018 01:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1GC8tUPPFpt0Enm45uf8lrfwxVfGrlb67t5lGMnC2cM=; b=rKhWExHyM8PdWohyTlCj3ddesZ7/zdvue5OtHd6roJupQ334BMMojME+WTXFqjvfrS TibQFBuebOZw/2O3ZMI86BUw3g0TLOJhxbgRziZ93XWbJRgdy4gZfwNdqcRAAoiQxGuw M66kxLBfmbPHrB4cv/yXPjHK06YrhSYfqJK6K0rtou0R4yJGhiugcv9Xd1Ra4Klnyp8i VXTQKlok3goI+04mgGGuI35VIIj8W3jdPan0Wc7g/2y2cggqkRgfi+RLj/0LE3ajeAXS qgwImScANuDdomEoGsrghCjR55I2UHLpH2qKjR2W4RcBtb0pTcFt6TO+PPK8VrxulTUy hMTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1GC8tUPPFpt0Enm45uf8lrfwxVfGrlb67t5lGMnC2cM=; b=pTx/NvU9qzmswEqgN7KDQWUoSsc25oNHTL5rKsm2zcU3f3At2EhKTleo96TcfCG2W2 Dt+WJ/DNoE7ro9n1LiMAcLwTbQ33Fy5KjlGo44FhY2FjB2phcH9P3LEyjB+gF8dAAdpX JKndvCyCpPxBHVjkedKFBPh6w57coQxcbjJzRVJ2c9X8Dd/DkcHAblD+gJ99dkMdolBf BtCcd8BBIVcKxKRbll66fjdCP17us1S6xiX6fbGS8BLPJ0cU2JKgSMKbnJ0kavYn6BBu tN3rPNIP+EIsSzfa8hMDukDIlXdqZYNNXyr3aZhgLcGchp6LS4bR6jnBM/RLGUtpHSqA uvfw== X-Gm-Message-State: APt69E3h8jRbICV2Y2jQ0Lxmt8/GN/RfK3XKSFti31gtRMLYeC4e1Uad gRzFPjHFYLwwhfRR9qROCXD1LqOV X-Google-Smtp-Source: AAOMgpeE0hJxDlAnOI3nizLXppywAuPCPq9/YW44fU96oGQePmue2ZxqaDc48C0KDO1dVLL8vZGgwg== X-Received: by 2002:a1c:9042:: with SMTP id s63-v6mr8313476wmd.91.1530605198060; Tue, 03 Jul 2018 01:06:38 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id 74-v6sm1282655wmt.31.2018.07.03.01.06.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 01:06:37 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 02 Jul 2018 22:40:18 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 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:226899 Archived-At: Stefan Monnier writes: >> - (jsonrpc--debug connection `(:maybe-run-deferred ,(mapcar #'caddr actions))) >> + (jsonrpc--debug connection `(:maybe-run-deferred >> + ,(mapcar (lambda (action) (car (cdr (cdr action)))) >> + actions))) > `caddr` is available in cl-lib as cl-caddr. This said I often find > (nth 2 ...) more readable. Right, I just used (apply-partially #'nth 2)