From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 31 12:42:46 2019 Received: (at submit) by debbugs.gnu.org; 31 Dec 2019 17:42:46 +0000 Received: from localhost ([127.0.0.1]:35068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imLXa-0005CU-FR for submit@debbugs.gnu.org; Tue, 31 Dec 2019 12:42:46 -0500 Received: from lists.gnu.org ([209.51.188.17]:48319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imLXZ-0005CN-0d for submit@debbugs.gnu.org; Tue, 31 Dec 2019 12:42:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imLXX-0007v5-Lw for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 12:42:44 -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,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imLXW-0002MU-Ih for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 12:42:43 -0500 Received: from mail1444c50.megamailservers.eu ([91.136.14.44]:46684 helo=mail264c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1imLXW-0002GF-0c for bug-gnu-emacs@gnu.org; Tue, 31 Dec 2019 12:42:42 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1577807543; bh=/7o2pbsQYwAiJogwZshguIJkkpsOLsWz0OZMjPPXZ+s=; h=From:Subject:Date:To:From; b=FDRO/XhKrdzR2quHnf7kruTis/Qx/sI52JPrbK3XQbacSSWuAStoRD7IboaKRXXFe 1DN56Hniipqm1SEhnsKLO0f30s3IOz12ydDpNEV0H1Mmfuf0eBZEUSRrtMR3ZFy1R1 EmxOwezWW1RDIwLijUjWaekAUCCNe5xU5XMKbok0= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail264c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xBVFqIds014060 for ; Tue, 31 Dec 2019 15:52:20 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: 27; Recreated *scratch* buffer has lexical-binding = nil Message-Id: Date: Tue, 31 Dec 2019 16:52:18 +0100 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0205.5E0B6EB6.0015, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=ar3M9hRV c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=6MQI8xyLOZbf2pyj9bsA:9 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.136.14.44 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) The standard *scratch* buffer is blessed with lexical-binding =3D t, but = if killed and recreated via C-x b *scratch* RET, the new buffer isn't. Not sure where this logic belongs; the *scratch* handling seems a bit = spread out. In Fset_buffer_major_mode? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 11:14:33 2020 Received: (at 38835) by debbugs.gnu.org; 1 Jan 2020 16:14:33 +0000 Received: from localhost ([127.0.0.1]:37427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgdk-0001YI-Q4 for submit@debbugs.gnu.org; Wed, 01 Jan 2020 11:14:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgdi-0001Y3-Qh for 38835@debbugs.gnu.org; Wed, 01 Jan 2020 11:14:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imgdd-0006DC-K9; Wed, 01 Jan 2020 11:14:25 -0500 Received: from [176.228.60.248] (port=3899 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imgdc-0008GN-W0; Wed, 01 Jan 2020 11:14:25 -0500 Date: Wed, 01 Jan 2020 18:14:38 +0200 Message-Id: <83sgkzjgr5.fsf@gnu.org> From: Eli Zaretskii To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= In-reply-to: (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Tue, 31 Dec 2019 16:52:18 +0100) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38835 Cc: 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Mattias Engdegård > Date: Tue, 31 Dec 2019 16:52:18 +0100 > > The standard *scratch* buffer is blessed with lexical-binding = t, but if killed and recreated via C-x b *scratch* RET, the new buffer isn't. > > Not sure where this logic belongs; the *scratch* handling seems a bit spread out. In Fset_buffer_major_mode? Maybe we should have a command to recreate *scratch*, and call it from startup.el? Then that command could do this. Or maybe we should decide that lisp-interaction-mode should do this for any buffer? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 12:49:54 2020 Received: (at 38835) by debbugs.gnu.org; 1 Jan 2020 17:49:54 +0000 Received: from localhost ([127.0.0.1]:37527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imi82-0004Ys-Cx for submit@debbugs.gnu.org; Wed, 01 Jan 2020 12:49:54 -0500 Received: from mout.gmx.net ([212.227.15.15]:46967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imi80-0004YU-RK for 38835@debbugs.gnu.org; Wed, 01 Jan 2020 12:49:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1577900984; bh=fkQnW+GFeixxqwM7zbdbGHMAS7Z9B+ASFv03JS/L0Sk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=S10xmwBzYq/8maah3VBaTLqdmhvbCjBSPc/WrpRtdJ0eIBIm0ZPXIO5Nccc6H/7bt h8X5pqip++gWgjXMshydJ8VS2AvJP92kCP58Gf+Vb39PfpGe4svuNN6Cumbe6p90ab uKW1RKT0Q5HI5Z1c2CDj1ycDV2AO+dvGBs2juc4I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.100] ([212.95.5.74]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtOKi-1jaXpB3kkA-00uorn; Wed, 01 Jan 2020 18:49:44 +0100 Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil To: Eli Zaretskii , =?UTF-8?Q?Mattias_Engdeg=c3=a5rd?= References: <83sgkzjgr5.fsf@gnu.org> From: martin rudalics Message-ID: Date: Wed, 1 Jan 2020 18:49:43 +0100 MIME-Version: 1.0 In-Reply-To: <83sgkzjgr5.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:HJ+2nY0Tye1AtVro1JSbJlUJwDuLLCKTJw9xtGepoYzXTcu3Tuq dU617U7crOhgOw7RHvaPkBUzm4BHKE5g1iCBbuuioGf4VRJoa6G8/Ij4mAU/8aFzMpFCn2D zosrx9wSsNep9bEMfND2+6J36u3SFJinjWVS5gGVO+ltckmqdGiyBIoi+320I6k8hYpXrz/ raRlI3ZnV7tyL2nG8L34Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:q44ZtBxxlt8=:wjzxqTdNtSiUpRdI3EdDay 6L/EJ9MBwk9UXFqHQtvnhL02030HxODrSREuwEuK03F30Qkwfz6hPb1lC1/FmIudQkkFdtZHc 3i1bDSgroscFwhLgRqW7u3ns0Gd+9yTPdMRcESS3gH+hh06ZGf0li/uC5gO6bBU9rtdjEtlyJ pZarA2zEchyr6jzHQLUJWLb7rG6hZPwTfrOyNg17WB3+uLUMOBFUYsAVNQ8F6vrzXVj3SBjU+ nOx0ufi9M6vIhbqT/lr2+7XsTggn8TCFs7VfOGIFEMA/fVTV8fM9E1bpYTPAPqHBOtn9OheU9 VRLgG2ULeSrAofPMsxJVrq/6NILGaKymIZSaLWcQKgNZ+VTgj1AVpQrUxpAFoN4w7fuYGahcm 1RV9OrWKHTEB73yiEWEbrutgvEDpur5n84uoekYyvt9DWk0IdUGwj8Qa1G8iPhZRHmptIjpmz aa4VsPndwqqN2umKOmlaSFP9ZFVpKKalku917/5c3andSritKDgnlKyaeW6FIEVLDStQDq0Sl wopSuou9EhXPBitdD2HhdswFd7qUDF+wQOlG2qUN5f/nh98vujB5lZzYqQZA3wCk9grBgoVm9 eh60P0FyMOj/HQ2uxr8sFersTE7nyPQlBeYteHSQgPhWW7int42RAsIStZ6+TrerkTx+KiKMi WVcl/JyRfoX25jZZ5n1UEYqTeTTTDR7kkEuIP7Jq0tQFC/I+Q3kH+fTsImU8eGx6u89MsAwq6 EXNDp4hnKk1NXnMO9GjDp0cok1+Y84mKIwSizDmi7GW71Uqev+PfBP3aPz9Cn1iThFIEktUfy ZnslLDnZquiWOowKhXdirkl3LN/NkVFkKt/AdxeGMcLszaUdrp7JQ9Ei7CVCeCS0UfRy0FAJA h7jtRHXqmXDI0LvCKmBrWuXlgIJF5zBXtNDOo+e3KcbJgU+S81VMZjJQ73Or9WwLTCT8UuaAK svHvU16a0PWkxrv2+rRxNqPN+iOls7jUwnSKu5PbhRSPcioygxO10zlZtbgWVZTaBcymNH1Ql zupPyD2U2eZ0+nMInge5iQkT6ywx9x0w1migtd+9RRC9uLuBVNNybetqQzXHs7fcMqyVTWf1L XhIJH2AylptpWZuNh4Y0jOvN8Cdv8e3SGCJta/YVxCeT/vKvbFxmAQHOYJb0nH6RFeZ2MltE3 2r+qaXOpEqNyE+BGexrdAVobok9xvXYI6dU3KrMX/bBEjgHFm0x4+6EjS1FY21fNnCzqRj8vK RNmaOEKTSa41TzFnuFxV2jt1WzARjGa5c9YeMmYLrGQ62OYrwWXJFQUtG6no= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38835 Cc: 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) > Maybe we should have a command to recreate *scratch*, and call it from > startup.el? Then that command could do this. 'other_buffer_safely' would need it too. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 08:58:29 2020 Received: (at 38835) by debbugs.gnu.org; 13 Jan 2020 13:58:29 +0000 Received: from localhost ([127.0.0.1]:58759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir0Ee-0004vC-PX for submit@debbugs.gnu.org; Mon, 13 Jan 2020 08:58:28 -0500 Received: from mail1460c50.megamailservers.eu ([91.136.14.60]:55232 helo=mail267c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir0Ec-0004uv-BI for 38835@debbugs.gnu.org; Mon, 13 Jan 2020 08:58:27 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578923872; bh=KeSD9MAtmSk2uJFHsjXM91p7EWeKp4kYsAKlpU+P1ug=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=Kuit8Ldlb0Aoyyz7GAae4h2FNyV4Fh+qCSCm2a+kRydwF0wR9vzMAX1ntFLCikcT0 hYxcw4NtUZqWhU6daUcLdkPY3ZMIp7bO2sBrE/0+jmCjoSZjnWds1uhy9/G2EYZ5Se sxL8cIu2b95FO+WTKJHJj//Q81b2EHL4fLfP4o3c= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail267c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 00DDvT2J010811; Mon, 13 Jan 2020 13:57:31 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Message-Id: <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_F888CD3B-9695-47B9-B125-DE48DE6C8F6B" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil Date: Mon, 13 Jan 2020 14:57:29 +0100 In-Reply-To: <83sgkzjgr5.fsf@gnu.org> To: Eli Zaretskii , martin rudalics References: <83sgkzjgr5.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020A.5E1C7760.0061, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=OY7m8SbY c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=pZGMfonKDNSv4RtMJvMA:9 a=CjuIK1q_8ugA:10 a=ncZ9vwaUYPMA:10 a=b9BwvbIG4i7ti811xd0A:9 a=B2y7HmGcmWMA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 38835 Cc: 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --Apple-Mail=_F888CD3B-9695-47B9-B125-DE48DE6C8F6B Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 1 jan. 2020 kl. 17.14 skrev Eli Zaretskii : > Or maybe we should decide that lisp-interaction-mode should do this > for any buffer? Yes, that seems to be the best and simplest choice. Patch OK for emacs-27? --Apple-Mail=_F888CD3B-9695-47B9-B125-DE48DE6C8F6B Content-Disposition: attachment; filename=0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch" Content-Transfer-Encoding: quoted-printable =46rom=20e258f78fd1869d301d94ff555358591e49541d94=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Mon,=2013=20Jan=202020=2014:53:11=20+0100=0A= Subject:=20[PATCH]=20Always=20use=20lexical-binding=20in=20= lisp-interaction-mode=0A=20(bug#38835)=0A=0A*=20= lisp/progmodes/elisp-mode.el=20(lisp-interaction-mode):=0ASet=20= lexical-binding.=0A*=20lisp/startup.el=20(command-line,=20= startup--get-buffer-create-scratch):=0ADon't=20set=20lexical-binding=20= here.=0A---=0A=20lisp/progmodes/elisp-mode.el=20|=203=20++-=0A=20= lisp/startup.el=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=204=20+---=0A=20= 2=20files=20changed,=203=20insertions(+),=204=20deletions(-)=0A=0Adiff=20= --git=20a/lisp/progmodes/elisp-mode.el=20b/lisp/progmodes/elisp-mode.el=0A= index=20774e3324c2..2617a6e4cc=20100644=0A---=20= a/lisp/progmodes/elisp-mode.el=0A+++=20b/lisp/progmodes/elisp-mode.el=0A= @@=20-933,7=20+933,8=20@@=20lisp-interaction-mode=0A=20Semicolons=20= start=20comments.=0A=20=0A=20\\{lisp-interaction-mode-map}"=0A-=20=20= :abbrev-table=20nil)=0A+=20=20:abbrev-table=20nil=0A+=20=20(setq-local=20= lexical-binding=20t))=0A=20=0A=20;;;=20Emacs=20Lisp=20Byte-Code=20mode=0A= =20=0Adiff=20--git=20a/lisp/startup.el=20b/lisp/startup.el=0Aindex=20= c27af726f9..2a85c004da=20100644=0A---=20a/lisp/startup.el=0A+++=20= b/lisp/startup.el=0A@@=20-1435,8=20+1435,7=20@@=20command-line=0A=20=20=20= (if=20(get-buffer=20"*scratch*")=0A=20=20=20=20=20=20=20= (with-current-buffer=20"*scratch*"=0A=20=09(if=20(eq=20major-mode=20= 'fundamental-mode)=0A-=09=20=20=20=20(funcall=20initial-major-mode))=0A-=20= =20=20=20=20=20=20=20(setq-local=20lexical-binding=20t)))=0A+=09=20=20=20= =20(funcall=20initial-major-mode))))=0A=20=0A=20=20=20;;=20Load=20= library=20for=20our=20terminal=20type.=0A=20=20=20;;=20User=20init=20= file=20can=20set=20term-file-prefix=20to=20nil=20to=20prevent=20this.=0A= @@=20-2317,7=20+2316,6=20@@=20startup--get-buffer-create-scratch=0A=20=20= =20(or=20(get-buffer=20"*scratch*")=0A=20=20=20=20=20=20=20= (with-current-buffer=20(get-buffer-create=20"*scratch*")=0A=20=20=20=20=20= =20=20=20=20(set-buffer-major-mode=20(current-buffer))=0A-=20=20=20=20=20= =20=20=20(setq-local=20lexical-binding=20t)=0A=20=20=20=20=20=20=20=20=20= (current-buffer))))=0A=20=0A=20(defun=20command-line-1=20(args-left)=0A= --=20=0A2.21.0=20(Apple=20Git-122.2)=0A=0A= --Apple-Mail=_F888CD3B-9695-47B9-B125-DE48DE6C8F6B-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 11:30:34 2020 Received: (at 38835) by debbugs.gnu.org; 13 Jan 2020 16:30:34 +0000 Received: from localhost ([127.0.0.1]:59937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir2bp-0000sl-S8 for submit@debbugs.gnu.org; Mon, 13 Jan 2020 11:30:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir2bp-0000sa-4n for 38835@debbugs.gnu.org; Mon, 13 Jan 2020 11:30:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ir2bj-00078l-Lm; Mon, 13 Jan 2020 11:30:27 -0500 Received: from [176.228.60.248] (port=4296 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ir2bh-0006Ly-17; Mon, 13 Jan 2020 11:30:27 -0500 Date: Mon, 13 Jan 2020 18:30:33 +0200 Message-Id: <83wo9v5nfa.fsf@gnu.org> From: Eli Zaretskii To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= In-reply-to: <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Mon, 13 Jan 2020 14:57:29 +0100) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil References: <83sgkzjgr5.fsf@gnu.org> <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38835 Cc: rudalics@gmx.at, 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Mattias Engdegård > Date: Mon, 13 Jan 2020 14:57:29 +0100 > Cc: 38835@debbugs.gnu.org > > > Or maybe we should decide that lisp-interaction-mode should do this > > for any buffer? > > Yes, that seems to be the best and simplest choice. Patch OK for emacs-27? Yes, but this needs a NEWS entry, and please see if we say enough about lisp-interaction-mode and/or lexical-binding to mention this in the manual as well. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 12:04:34 2020 Received: (at 38835) by debbugs.gnu.org; 13 Jan 2020 17:04:34 +0000 Received: from localhost ([127.0.0.1]:59968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir38j-0001jj-Tu for submit@debbugs.gnu.org; Mon, 13 Jan 2020 12:04:34 -0500 Received: from mail1437c50.megamailservers.eu ([91.136.14.37]:40522 helo=mail263c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir38h-0001jW-Qj for 38835@debbugs.gnu.org; Mon, 13 Jan 2020 12:04:32 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578935065; bh=IrsYE45NiA9ep5hZY8YJbkVZ6YPvgk1gFtru2pVYx6I=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=UZoFvmIthXOpfhPlYVzV71riZt3nukO47vaV0zDJEl9YOHGtKp9GqLcVVRHgUDTUb nMNtbnE+uAbldxheKDZhf9mhuLaa41cvZ8zMwFfWRQnGHsHWFGwFspFKVR9c4yj0PI i60PG9DrQfm2JjtUxtV2ITKWBqqTXgt2svCU4bmM= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail263c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 00DH4MoD032518; Mon, 13 Jan 2020 17:04:24 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Message-Id: <590DC6F5-0485-438D-98E8-252C16C2A80C@acm.org> Content-Type: multipart/mixed; boundary="Apple-Mail=_D542C45F-4381-4F96-AF01-9A0E24E5D502" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil Date: Mon, 13 Jan 2020 18:04:22 +0100 In-Reply-To: <83wo9v5nfa.fsf@gnu.org> To: Eli Zaretskii References: <83sgkzjgr5.fsf@gnu.org> <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> <83wo9v5nfa.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0210.5E1CA319.0036, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=II989TnG c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=srmCTWKdJ71N2u4V2KIA:9 a=CjuIK1q_8ugA:10 a=FfSCYxZlL9QZb5pkQfoA:9 a=B2y7HmGcmWMA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 38835 Cc: rudalics@gmx.at, 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --Apple-Mail=_D542C45F-4381-4F96-AF01-9A0E24E5D502 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 13 jan. 2020 kl. 17.30 skrev Eli Zaretskii : > Yes, but this needs a NEWS entry, and please see if we say enough > about lisp-interaction-mode and/or lexical-binding to mention this in > the manual as well. New patch. The existing NEWS entry was rephrased slightly, and a = sentence added to the elisp manual. --Apple-Mail=_D542C45F-4381-4F96-AF01-9A0E24E5D502 Content-Disposition: attachment; filename=0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch" Content-Transfer-Encoding: quoted-printable =46rom=20d645628e3cf6ebe5eaea3b40100bd77b9c823f8b=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Mattias=3D20Engdeg=3DC3=3DA5rd?=3D=20= =0ADate:=20Mon,=2013=20Jan=202020=2014:53:11=20+0100=0A= Subject:=20[PATCH]=20Always=20use=20lexical-binding=20in=20= lisp-interaction-mode=0A=20(bug#38835)=0A=0A*=20= lisp/progmodes/elisp-mode.el=20(lisp-interaction-mode):=0ASet=20= lexical-binding.=0A*=20lisp/startup.el=20(command-line,=20= startup--get-buffer-create-scratch):=0ADon't=20set=20lexical-binding=20= here.=0A*=20doc/lispref/variables.texi:=0A*=20etc/NEWS:=0AMake=20it=20= clear=20that=20lisp-interaction-mode=20uses=20lexical-binding.=0A---=0A=20= doc/lispref/variables.texi=20=20=20|=203=20+++=0A=20etc/NEWS=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=203=20++-=0A=20= lisp/progmodes/elisp-mode.el=20|=203=20++-=0A=20lisp/startup.el=20=20=20=20= =20=20=20=20=20=20=20=20=20=20|=204=20+---=0A=204=20files=20changed,=208=20= insertions(+),=205=20deletions(-)=0A=0Adiff=20--git=20= a/doc/lispref/variables.texi=20b/doc/lispref/variables.texi=0Aindex=20= 1ec97e2f3d..1e357754ab=20100644=0A---=20a/doc/lispref/variables.texi=0A= +++=20b/doc/lispref/variables.texi=0A@@=20-1187,6=20+1187,9=20@@=20Using=20= Lexical=20Binding=0A=20lexical=20binding=20is=20enabled=20if=20the=20= @var{lexical}=20argument=20to=0A=20@code{eval}=20is=20non-@code{nil}.=20=20= @xref{Eval}.=0A=20=0A+Lexical=20binding=20is=20also=20enabled=20in=20= Lisp=20Interaction=20and=20IELM=0A+mode,=20used=20in=20the=20= @file{*scratch*}=20and=20@file{*ielm*}=20buffers.=0A+=0A=20@cindex=20= special=20variables=0A=20=20=20Even=20when=20lexical=20binding=20is=20= enabled,=20certain=20variables=20will=0A=20continue=20to=20be=20= dynamically=20bound.=20=20These=20are=20called=20@dfn{special=0Adiff=20= --git=20a/etc/NEWS=20b/etc/NEWS=0Aindex=2061b9e4a723..031ddf5800=20= 100644=0A---=20a/etc/NEWS=0A+++=20b/etc/NEWS=0A@@=20-338,7=20+338,8=20@@=20= answers,=20but=20also=20function=20keys=20like=20'F1',=20character=20= events=20such=20as=0A=20=0A=20**=20Lexical=20binding=20is=20now=20used=20= when=20evaluating=20interactive=20Elisp=20forms.=0A=20More=20= specifically,=20lexical-binding=20is=20now=20used=20for=20'M-:',=20= '--eval',=20as=0A-well=20as=20in=20the=20"*scratch*"=20and=20"*ielm*"=20= buffers.=0A+well=20as=20in=20lisp-interaction-mode=20and=20ielm-mode,=20= used=20in=20the=20"*scratch*"=0A+and=20"*ielm*"=20buffers.=0A=20=0A=20= ---=0A=20**=20The=20new=20user=20option=20'tooltip-resize-echo-area'=20= avoids=20truncating=0Adiff=20--git=20a/lisp/progmodes/elisp-mode.el=20= b/lisp/progmodes/elisp-mode.el=0Aindex=20774e3324c2..2617a6e4cc=20100644=0A= ---=20a/lisp/progmodes/elisp-mode.el=0A+++=20= b/lisp/progmodes/elisp-mode.el=0A@@=20-933,7=20+933,8=20@@=20= lisp-interaction-mode=0A=20Semicolons=20start=20comments.=0A=20=0A=20= \\{lisp-interaction-mode-map}"=0A-=20=20:abbrev-table=20nil)=0A+=20=20= :abbrev-table=20nil=0A+=20=20(setq-local=20lexical-binding=20t))=0A=20=0A= =20;;;=20Emacs=20Lisp=20Byte-Code=20mode=0A=20=0Adiff=20--git=20= a/lisp/startup.el=20b/lisp/startup.el=0Aindex=20c27af726f9..2a85c004da=20= 100644=0A---=20a/lisp/startup.el=0A+++=20b/lisp/startup.el=0A@@=20= -1435,8=20+1435,7=20@@=20command-line=0A=20=20=20(if=20(get-buffer=20= "*scratch*")=0A=20=20=20=20=20=20=20(with-current-buffer=20"*scratch*"=0A= =20=09(if=20(eq=20major-mode=20'fundamental-mode)=0A-=09=20=20=20=20= (funcall=20initial-major-mode))=0A-=20=20=20=20=20=20=20=20(setq-local=20= lexical-binding=20t)))=0A+=09=20=20=20=20(funcall=20= initial-major-mode))))=0A=20=0A=20=20=20;;=20Load=20library=20for=20our=20= terminal=20type.=0A=20=20=20;;=20User=20init=20file=20can=20set=20= term-file-prefix=20to=20nil=20to=20prevent=20this.=0A@@=20-2317,7=20= +2316,6=20@@=20startup--get-buffer-create-scratch=0A=20=20=20(or=20= (get-buffer=20"*scratch*")=0A=20=20=20=20=20=20=20(with-current-buffer=20= (get-buffer-create=20"*scratch*")=0A=20=20=20=20=20=20=20=20=20= (set-buffer-major-mode=20(current-buffer))=0A-=20=20=20=20=20=20=20=20= (setq-local=20lexical-binding=20t)=0A=20=20=20=20=20=20=20=20=20= (current-buffer))))=0A=20=0A=20(defun=20command-line-1=20(args-left)=0A= --=20=0A2.21.0=20(Apple=20Git-122.2)=0A=0A= --Apple-Mail=_D542C45F-4381-4F96-AF01-9A0E24E5D502-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 13:38:07 2020 Received: (at 38835) by debbugs.gnu.org; 13 Jan 2020 18:38:07 +0000 Received: from localhost ([127.0.0.1]:60056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir4bG-00066I-Rc for submit@debbugs.gnu.org; Mon, 13 Jan 2020 13:38:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir4bF-00065e-48 for 38835@debbugs.gnu.org; Mon, 13 Jan 2020 13:38:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ir4b9-000476-GD; Mon, 13 Jan 2020 13:37:59 -0500 Received: from [176.228.60.248] (port=4225 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ir4b8-00071m-14; Mon, 13 Jan 2020 13:37:59 -0500 Date: Mon, 13 Jan 2020 20:38:04 +0200 Message-Id: <83o8v75hir.fsf@gnu.org> From: Eli Zaretskii To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= In-reply-to: <590DC6F5-0485-438D-98E8-252C16C2A80C@acm.org> (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Mon, 13 Jan 2020 18:04:22 +0100) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil References: <83sgkzjgr5.fsf@gnu.org> <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> <83wo9v5nfa.fsf@gnu.org> <590DC6F5-0485-438D-98E8-252C16C2A80C@acm.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38835 Cc: rudalics@gmx.at, 38835@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Mattias Engdegård > Date: Mon, 13 Jan 2020 18:04:22 +0100 > Cc: rudalics@gmx.at, 38835@debbugs.gnu.org > > > Yes, but this needs a NEWS entry, and please see if we say enough > > about lisp-interaction-mode and/or lexical-binding to mention this in > > the manual as well. > > New patch. The existing NEWS entry was rephrased slightly, and a sentence added to the elisp manual. Thanks, LGTM. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 13:54:26 2020 Received: (at 38835-done) by debbugs.gnu.org; 13 Jan 2020 18:54:26 +0000 Received: from localhost ([127.0.0.1]:60066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir4r4-0006VN-Is for submit@debbugs.gnu.org; Mon, 13 Jan 2020 13:54:26 -0500 Received: from mail73c50.megamailservers.eu ([91.136.10.83]:34416 helo=mail92c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir4r1-0006VC-ML for 38835-done@debbugs.gnu.org; Mon, 13 Jan 2020 13:54:24 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578941661; bh=z0A199F3qGX41uOZRVKAlavKafEMmjg1SBDosUKqAmw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DidbV2RfzckdF7ty9YkS/NFgq0YZzb3Ni6IRYz8uFQUrXk4G0IKa/ivjUQT9ZXQQ4 fzsC5k3z1o6OMHsYjGMxp8ptrbC5HtEiM0SMb8U9M7YjjN+morgQLivU31fnGHCelt XhoT9doZcRXHO//Elp+8pRi3LyWL+r6kWNiKp1Rw= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 00DIsIqg000772; Mon, 13 Jan 2020 18:54:20 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding = nil From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <83o8v75hir.fsf@gnu.org> Date: Mon, 13 Jan 2020 19:54:18 +0100 Content-Transfer-Encoding: 7bit Message-Id: References: <83sgkzjgr5.fsf@gnu.org> <48D74E81-3535-4711-859B-5977F1D33B48@acm.org> <83wo9v5nfa.fsf@gnu.org> <590DC6F5-0485-438D-98E8-252C16C2A80C@acm.org> <83o8v75hir.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0206.5E1CBCDD.0039, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=RJbN4Lq+ c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=zlh9edM85VRb8QnOuK4A:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 38835-done Cc: martin rudalics , 38835-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) Thank you, pushed to emacs-27. From unknown Sat Jun 21 03:28:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Feb 2020 12:24:05 +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