GNU bug report logs - #30484
Use lexical binding

Previous Next

Package: auctex;

Reported by: Mosè Giordano <mose <at> gnu.org>

Date: Fri, 16 Feb 2018 08:22:01 UTC

Severity: wishlist

Tags: fixed

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

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 30484 in the body.
You can then email your comments to 30484 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-auctex <at> gnu.org:
bug#30484; Package auctex. (Fri, 16 Feb 2018 08:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mosè Giordano <mose <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Fri, 16 Feb 2018 08:22:01 GMT) Full text and rfc822 format available.

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

From: Mosè Giordano <mose <at> gnu.org>
To: bug-auctex <bug-auctex <at> gnu.org>
Subject: Use lexical binding
Date: Fri, 16 Feb 2018 09:20:34 +0100
We should make sure AUCTeX doesn't fundamentally use dynamic binding,
in order to later switch to lexical binding.

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#30484; Package auctex. (Fri, 16 Feb 2018 09:40:02 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 30484 <at> debbugs.gnu.org
Subject: Re: bug#30484: Use lexical binding
Date: Fri, 16 Feb 2018 10:39:34 +0100
Mosè Giordano <mose <at> gnu.org> writes:

> We should make sure AUCTeX doesn't fundamentally use dynamic binding,
> in order to later switch to lexical binding.

You have to pick one or the other for the equivalent of closures.

I do think we have a few cases of those that would benefit from lexical
binding.  Should I go over them?

As a first idea:

dak <at> lola:/usr/local/tmp/auctex$ git grep '`(lambda'
preview.el.in:                `(lambda (process command)
preview.el.in:    `(lambda() (interactive "@")
preview.el.in:     `(lambda() (interactive)
preview.el.in:  `(lambda nil
preview.el.in:     `(lambda() (interactive) (preview-regenerate ,ov)))
preview.el.in:  (add-hook 'desktop-delay-hook `(lambda ()
preview.el.in:            `(lambda(event) (interactive "e")
preview.el.in:            `(lambda(event) (interactive "e")
preview.el.in:              `(lambda(event) (interactive "e")
preview.el.in:              `(lambda(event) (interactive "e")
preview.el.in:        `(lambda (process string)
preview.el.in:            `(lambda (process string)
preview.el.in:     `(lambda () (preview-dump-state ,(current-buffer)))
tex-buf.el:     (file `(lambda (&rest args)
tex.el:        :filter `(lambda (&rest ignored)
toolbar-x.el:                 `(lambda nil (interactive)
toolbar-x.el:    `(lambda nil (interactive) (popup-menu (quote ,keymap)))))


-- 
David Kastrup




Information forwarded to bug-auctex <at> gnu.org:
bug#30484; Package auctex. (Sat, 17 Feb 2018 18:59:01 GMT) Full text and rfc822 format available.

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

From: Mosè Giordano <mose <at> gnu.org>
To: David Kastrup <dak <at> gnu.org>
Cc: 30484 <at> debbugs.gnu.org
Subject: Re: bug#30484: Use lexical binding
Date: Sat, 17 Feb 2018 19:57:45 +0100
Hi David,

2018-02-16 10:39 GMT+01:00 David Kastrup <dak <at> gnu.org>:
> Mosè Giordano <mose <at> gnu.org> writes:
>
>> We should make sure AUCTeX doesn't fundamentally use dynamic binding,
>> in order to later switch to lexical binding.
>
> You have to pick one or the other for the equivalent of closures.
>
> I do think we have a few cases of those that would benefit from lexical
> binding.  Should I go over them?

Are you volunteering to fix this issue?  If so, please go ahead :-)

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#30484; Package auctex. (Sat, 17 Feb 2018 19:37:01 GMT) Full text and rfc822 format available.

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

From: David Kastrup <dak <at> gnu.org>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 30484 <at> debbugs.gnu.org
Subject: Re: bug#30484: Use lexical binding
Date: Sat, 17 Feb 2018 20:36:18 +0100
Mosè Giordano <mose <at> gnu.org> writes:

> Hi David,
>
> 2018-02-16 10:39 GMT+01:00 David Kastrup <dak <at> gnu.org>:
>> Mosè Giordano <mose <at> gnu.org> writes:
>>
>>> We should make sure AUCTeX doesn't fundamentally use dynamic binding,
>>> in order to later switch to lexical binding.
>>
>> You have to pick one or the other for the equivalent of closures.
>>
>> I do think we have a few cases of those that would benefit from lexical
>> binding.  Should I go over them?
>
> Are you volunteering to fix this issue?  If so, please go ahead :-)

Uh, _fix_ this "issue"?  This is going to throw a real spanner into the
works of whoever plans keeping AUCTeX working on XEmacs.  Or it may
incentivize someone to implement lexical binding on it.

One of those.

-- 
David Kastrup




Severity set to 'wishlist' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 15 Apr 2020 15:24:01 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Sat, 27 Mar 2021 16:08:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 30484 <at> debbugs.gnu.org and Mosè Giordano <mose <at> gnu.org> Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Sat, 27 Mar 2021 16:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 25 Apr 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 338 days ago.

Previous Next


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