From unknown Thu Aug 21 22:56:47 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#19785 <19785@debbugs.gnu.org> To: bug#19785 <19785@debbugs.gnu.org> Subject: Status: 25.0.50; Let apply-partially make use of `lexical-binding' Reply-To: bug#19785 <19785@debbugs.gnu.org> Date: Fri, 22 Aug 2025 05:56:47 +0000 retitle 19785 25.0.50; Let apply-partially make use of `lexical-binding' reassign 19785 emacs submitter 19785 David Kastrup severity 19785 normal tag 19785 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 05 12:48:18 2015 Received: (at submit) by debbugs.gnu.org; 5 Feb 2015 17:48:18 +0000 Received: from localhost ([127.0.0.1]:34965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJQXJ-0004T2-AE for submit@debbugs.gnu.org; Thu, 05 Feb 2015 12:48:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50144) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJQXG-0004Sn-8K for submit@debbugs.gnu.org; Thu, 05 Feb 2015 12:48:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJQX5-000778-1w for submit@debbugs.gnu.org; Thu, 05 Feb 2015 12:48:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJQX4-000773-Vn for submit@debbugs.gnu.org; Thu, 05 Feb 2015 12:48:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJQX3-000419-KR for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 12:48:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJQX1-00076L-Sl for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 12:48:01 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJQX1-00076G-Q0 for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 12:47:59 -0500 Received: from localhost ([127.0.0.1]:59061 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJQX1-0002Xd-1L for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2015 12:47:59 -0500 Received: by lola (Postfix, from userid 1000) id 0A38AE6B62; Thu, 5 Feb 2015 18:47:54 +0100 (CET) From: David Kastrup To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Let apply-partially make use of `lexical-binding' Date: Thu, 05 Feb 2015 18:47:54 +0100 Message-ID: <87bnl8z1v9.fsf@fencepost.gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain This patch was discussed in the thread . --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Let-apply-partially-make-use-of-lexical-binding-in-s.patch >From 3ebbe29b9e7c9112933bdbad1b8f38119524d11e Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 25 Jan 2015 20:42:46 +0100 Subject: [PATCH] Let apply-partially make use of lexical binding in subr.el * subr.el (apply-partially): Use lexical binding here. See for discussion. --- lisp/ChangeLog | 4 ++++ lisp/subr.el | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 694a35b..9e8602a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2015-01-25 David Kastrup + + * subr.el (apply-partially): Use lexical binding here. + 2015-02-05 Stefan Monnier * delsel.el: Deprecate the `kill' option. Use lexical-binding. diff --git a/lisp/subr.el b/lisp/subr.el index 68cd230..496f711 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -136,8 +136,8 @@ ARGS is a list of the first N arguments to pass to FUN. The result is a new function which does the same as FUN, except that the first N arguments are fixed at the values with which this function was called." - `(closure (t) (&rest args) - (apply ',fun ,@(mapcar (lambda (arg) `',arg) args) args))) + (lambda (&rest args2) + (apply fun (append args args2)))) (defmacro push (newelt place) "Add NEWELT to the list stored in the generalized variable PLACE. -- 2.1.0 --=-=-= Content-Type: text/plain Configured using: `configure --without-toolkit-scroll-bars' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: InactiveMinibuffer Minor modes in effect: TeX-PDF-mode: t diff-auto-refine-mode: t desktop-save-mode: t minibuffer-electric-default-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow emacsbug apropos face-remap thingatpt eieio-opt speedbar sb-image ezimage dframe shr-color color pp rfc2368 gnus-topic ispell shr dom subr-x pcase browse-url nnir flow-fill mm-archive gnus-dup mule-util smiley gnus-cite gnus-async gnus-bcklg gnus-kill qp gnus-ml disp-table pop3 nndir nndraft nnmh gnutls network-stream nsm auth-source cl-macs eieio eieio-core starttls nnml nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime password-cache dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win sendmail mail-extr sort mailcap misearch multi-isearch find-func debug gv help-mode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader sh-script smie executable make-mode smerge-mode scheme latexenc nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok dired-x dired python json tex-info texinfo autorevert filenotify cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs lilypond-mode compile comint ansi-color ring bug-reference add-log preview prv-emacs reftex-dcr reftex-auc reftex reftex-vars tex-bar tex-buf toolbar-x noutline outline font-latex byte-opt bytecomp byte-compile cl-extra cconv latex edmacro kmacro tex-style tex dbus xml crm jka-compr vc-git diff-mode easy-mmode info easymenu package epg-config advice desktop frameset minibuf-eldef gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl-loaddefs cl-lib cus-start cus-load preview-latex tex-site auto-loads server time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 657308 150234) (symbols 24 52872 282) (miscs 20 1516 1461) (strings 16 118000 23120) (string-bytes 1 3627798) (vectors 8 45942) (vector-slots 4 1754129 45462) (floats 8 493 717) (intervals 28 36535 7536) (buffers 520 285) (heap 1024 55304 18053)) -- David Kastrup --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 05 12:57:50 2015 Received: (at control) by debbugs.gnu.org; 5 Feb 2015 17:57:50 +0000 Received: from localhost ([127.0.0.1]:34970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJQgX-0004g9-R3 for submit@debbugs.gnu.org; Thu, 05 Feb 2015 12:57:50 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:52020 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJQgW-0004g1-9o for control@debbugs.gnu.org; Thu, 05 Feb 2015 12:57:48 -0500 Received: from localhost ([127.0.0.1]:59327 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJQgU-0006uA-0E for control@debbugs.gnu.org; Thu, 05 Feb 2015 12:57:47 -0500 Received: by lola (Postfix, from userid 1000) id 72176E6B62; Thu, 5 Feb 2015 18:57:45 +0100 (CET) From: David Kastrup To: control@debbugs.gnu.org Subject: command Date: Thu, 05 Feb 2015 18:50:40 +0100 Message-ID: <877fvwz1qn.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tags 19785 patch -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 08 15:02:35 2015 Received: (at 19785) by debbugs.gnu.org; 8 Feb 2015 20:02:35 +0000 Received: from localhost ([127.0.0.1]:37622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKY3u-0000Qq-R3 for submit@debbugs.gnu.org; Sun, 08 Feb 2015 15:02:35 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:57396) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKY3s-0000Qb-5s for 19785@debbugs.gnu.org; Sun, 08 Feb 2015 15:02:32 -0500 Received: by mail-ob0-f182.google.com with SMTP id nt9so21336197obb.13 for <19785@debbugs.gnu.org>; Sun, 08 Feb 2015 12:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=qQmoJCteY/YR4VsG6SeYy/B2ASUDjnGXS62ENPUh6wA=; b=uR/RpzJLHjNTYJJeksg9x76pk0WwKxOtd/l8zdyESasHcNPNgWOEbD/P7hvNP0a6Il frCNMT2Fqr/GN3uW9Qpm7bCxPt46r6NE/N7M+a9luArfFKIA8nGUCeQfAMKFW3WjGewp VnU0hk2n/cOWndIHI0fCFLapDz2qeBreFItiXQvfwPKVpFeBbLetg8L5qvYuF6XfmakY C2/dvuLEcGvyXmvMdot0pdU54VGOxMh4ffMt1FQx32uc+cJiJ1NflGm2VSy2jcivb4vv tL1jnCYIsjmX//8mWmN/z8SRJXro03a47yULwkXr+TlYmxTiuWEXhVqucGsUUrvqm/Iy yucQ== MIME-Version: 1.0 X-Received: by 10.182.97.105 with SMTP id dz9mr9599461obb.46.1423425746629; Sun, 08 Feb 2015 12:02:26 -0800 (PST) Received: by 10.76.125.1 with HTTP; Sun, 8 Feb 2015 12:02:26 -0800 (PST) In-Reply-To: <87bnl8z1v9.fsf@fencepost.gnu.org> References: <87bnl8z1v9.fsf@fencepost.gnu.org> Date: Sun, 8 Feb 2015 18:02:26 -0200 X-Google-Sender-Auth: 55xF488lt8M6aItn0VNHqvWu4AQ Message-ID: Subject: Re: bug#19785: 25.0.50; Let apply-partially make use of `lexical-binding' From: Artur Malabarba To: David Kastrup Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19785 Cc: 19785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: bruce.connor.am@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Applied. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 09 09:42:31 2015 Received: (at 19785) by debbugs.gnu.org; 9 Feb 2015 14:42:32 +0000 Received: from localhost ([127.0.0.1]:38061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKpXj-0002zp-ME for submit@debbugs.gnu.org; Mon, 09 Feb 2015 09:42:31 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:54496 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKpXi-0002zi-0j for 19785@debbugs.gnu.org; Mon, 09 Feb 2015 09:42:30 -0500 Received: from localhost ([127.0.0.1]:33566 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpXh-000459-Ai; Mon, 09 Feb 2015 09:42:29 -0500 Received: by lola (Postfix, from userid 1000) id D93B4DF676; Mon, 9 Feb 2015 15:42:28 +0100 (CET) From: David Kastrup To: Artur Malabarba Subject: Re: bug#19785: 25.0.50; Let apply-partially make use of `lexical-binding' References: <87bnl8z1v9.fsf@fencepost.gnu.org> Date: Mon, 09 Feb 2015 15:42:28 +0100 In-Reply-To: (Artur Malabarba's message of "Sun, 8 Feb 2015 18:02:26 -0200") Message-ID: <87zj8ntacr.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19785 Cc: 19785@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Artur Malabarba writes: > Applied. Thanks. In case of problems, this code looks much more maintainable than the previous version. Also much less likely subject to bit rot due to changes in the byte compiler. -- David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 10 20:28:31 2015 Received: (at control) by debbugs.gnu.org; 11 Feb 2015 01:28:31 +0000 Received: from localhost ([127.0.0.1]:39717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLM6Q-0006IB-C0 for submit@debbugs.gnu.org; Tue, 10 Feb 2015 20:28:30 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:41203 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLM6P-0006I3-22 for control@debbugs.gnu.org; Tue, 10 Feb 2015 20:28:29 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YLM6O-00052E-EY for control@debbugs.gnu.org; Tue, 10 Feb 2015 20:28:28 -0500 Date: Tue, 10 Feb 2015 20:28:28 -0500 Message-Id: Subject: control message for bug 19785 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 19785 25.1 From unknown Thu Aug 21 22:56:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Mar 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator