GNU bug report logs - #38835
27; Recreated *scratch* buffer has lexical-binding = nil

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattiase <at> acm.org>

Date: Tue, 31 Dec 2019 17:43:02 UTC

Severity: minor

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38835 in the body.
You can then email your comments to 38835 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Tue, 31 Dec 2019 17:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mattias Engdegård <mattiase <at> acm.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 31 Dec 2019 17:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 27; Recreated *scratch* buffer has lexical-binding = nil
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?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Wed, 01 Jan 2020 16:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27;
 Recreated *scratch* buffer has lexical-binding = nil
Date: Wed, 01 Jan 2020 18:14:38 +0200
> From: Mattias Engdegård <mattiase <at> acm.org>
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Wed, 01 Jan 2020 17:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, Mattias Engdegård
 <mattiase <at> acm.org>
Cc: 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Wed, 1 Jan 2020 18:49:43 +0100
> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Mon, 13 Jan 2020 13:59:02 GMT) Full text and rfc822 format available.

Message #14 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: Eli Zaretskii <eliz <at> gnu.org>, martin rudalics <rudalics <at> gmx.at>
Cc: 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Mon, 13 Jan 2020 14:57:29 +0100
[Message part 1 (text/plain, inline)]
1 jan. 2020 kl. 17.14 skrev Eli Zaretskii <eliz <at> 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?

[0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Mon, 13 Jan 2020 16:31:02 GMT) Full text and rfc822 format available.

Message #17 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: rudalics <at> gmx.at, 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Mon, 13 Jan 2020 18:30:33 +0200
> From: Mattias Engdegård <mattiase <at> acm.org>
> Date: Mon, 13 Jan 2020 14:57:29 +0100
> Cc: 38835 <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Mon, 13 Jan 2020 17:05:01 GMT) Full text and rfc822 format available.

Message #20 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rudalics <at> gmx.at, 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Mon, 13 Jan 2020 18:04:22 +0100
[Message part 1 (text/plain, inline)]
13 jan. 2020 kl. 17.30 skrev Eli Zaretskii <eliz <at> 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.

[0001-Always-use-lexical-binding-in-lisp-interaction-mode-.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38835; Package emacs. (Mon, 13 Jan 2020 18:39:02 GMT) Full text and rfc822 format available.

Message #23 received at 38835 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: rudalics <at> gmx.at, 38835 <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Mon, 13 Jan 2020 20:38:04 +0200
> From: Mattias Engdegård <mattiase <at> acm.org>
> Date: Mon, 13 Jan 2020 18:04:22 +0100
> Cc: rudalics <at> gmx.at, 38835 <at> 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.




Reply sent to Mattias Engdegård <mattiase <at> acm.org>:
You have taken responsibility. (Mon, 13 Jan 2020 18:55:02 GMT) Full text and rfc822 format available.

Notification sent to Mattias Engdegård <mattiase <at> acm.org>:
bug acknowledged by developer. (Mon, 13 Jan 2020 18:55:02 GMT) Full text and rfc822 format available.

Message #28 received at 38835-done <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattiase <at> acm.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: martin rudalics <rudalics <at> gmx.at>, 38835-done <at> debbugs.gnu.org
Subject: Re: bug#38835: 27; Recreated *scratch* buffer has lexical-binding =
 nil
Date: Mon, 13 Jan 2020 19:54:18 +0100
Thank you, pushed to emacs-27.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Feb 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.