unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
@ 2021-06-01 16:23 jakanakaevangeli
  2021-06-02  5:57 ` Lars Ingebrigtsen
  2021-06-02 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 7+ messages in thread
From: jakanakaevangeli @ 2021-06-01 16:23 UTC (permalink / raw)
  To: 48781


@@ -1,4 +1,4 @@
-;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix
+;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix  -*- lexical-binding: t; -*-

For 'adaptive-wrap.el' from ELPA 
(http://elpa.gnu.org/packages/adaptive-wrap-0.5.el)

After testing for a week, I haven't observed any changes in behaviour.

Best regards.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-06-01 16:23 bug#48781: adaptive-wrap.el (elpa): Enable lexical binding jakanakaevangeli
@ 2021-06-02  5:57 ` Lars Ingebrigtsen
  2021-06-02 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-02  5:57 UTC (permalink / raw)
  To: jakanakaevangeli; +Cc: 48781, monnier

jakanakaevangeli@chiru.no writes:

> @@ -1,4 +1,4 @@
> -;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix
> +;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix -*-
> lexical-binding: t; -*-
>
> For 'adaptive-wrap.el' from ELPA 
> (http://elpa.gnu.org/packages/adaptive-wrap-0.5.el)
>
> After testing for a week, I haven't observed any changes in behaviour.

I'm not sure what the range of supported Emacs versions there are for
adaptive-wrap -- lexical binding can't be used in older Emacs versions
(but perhaps there are no version that has both package.el and doesn't
support lexical binding; I forget).

Stefan added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-06-01 16:23 bug#48781: adaptive-wrap.el (elpa): Enable lexical binding jakanakaevangeli
  2021-06-02  5:57 ` Lars Ingebrigtsen
@ 2021-06-02 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-06-03  7:54   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-02 13:17 UTC (permalink / raw)
  To: jakanakaevangeli; +Cc: 48781

> -;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix
> +;;; adaptive-wrap.el --- Smart line-wrapping with wrap-prefix  -*- lexical-binding: t; -*-
>
> For 'adaptive-wrap.el' from ELPA 
> (http://elpa.gnu.org/packages/adaptive-wrap-0.5.el)
>
> After testing for a week, I haven't observed any changes in behaviour.

Thanks, installed.

Lars wrote:
> I'm not sure what the range of supported Emacs versions there are for
> adaptive-wrap -- lexical binding can't be used in older Emacs versions

To the extent that the code doesn't take advantage of lexical scoping,
it doesn't matter because it will still work just as well as before on
Emacs<24.

> (but perhaps there are no version that has both package.el and doesn't
> support lexical binding; I forget).

The first Emacs that came with `package.el` was Emacs-24, which is also
the first that came with `lexical-binding`.
There have been versions of `package.el` patched to work in Emacs<24
(not sure how far back it worked), but indeed I tend to consider
Emacs-24 as the "baseline" for ELPA packages.


        Stefan






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-06-02 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-06-03  7:54   ` Lars Ingebrigtsen
  2021-06-03 13:35     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-03  7:54 UTC (permalink / raw)
  To: jakanakaevangeli; +Cc: Stefan Monnier, 48781

Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> To the extent that the code doesn't take advantage of lexical scoping,
> it doesn't matter because it will still work just as well as before on
> Emacs<24.

Sure; I was just concerned that somebody might take that as a sign to
add non-compatible code to lexical-bound files (like closures and other
nice stuff) in indeed backwards compatibility beyond Emacs 24 was an
issue (which it doesn't really seem to be).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-06-03  7:54   ` Lars Ingebrigtsen
@ 2021-06-03 13:35     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-19 16:52       ` Stefan Kangas
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-06-03 13:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48781, jakanakaevangeli

>> To the extent that the code doesn't take advantage of lexical scoping,
>> it doesn't matter because it will still work just as well as before on
>> Emacs<24.
> Sure; I was just concerned that somebody might take that as a sign to
> add non-compatible code to lexical-bound files (like closures and other
> nice stuff) in indeed backwards compatibility beyond Emacs 24 was an
> issue (which it doesn't really seem to be).

AFAIK the desired compatibility for adaptive-wrap is not clearly known.
It hasn't been a problem so far, and if/when it turns into a problem it
should be easy to address ;-)


        Stefan






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-06-03 13:35     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-09-19 16:52       ` Stefan Kangas
  2021-09-20  5:31         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kangas @ 2021-09-19 16:52 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Lars Ingebrigtsen, 48781, jakanakaevangeli

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> To the extent that the code doesn't take advantage of lexical scoping,
>>> it doesn't matter because it will still work just as well as before on
>>> Emacs<24.
>> Sure; I was just concerned that somebody might take that as a sign to
>> add non-compatible code to lexical-bound files (like closures and other
>> nice stuff) in indeed backwards compatibility beyond Emacs 24 was an
>> issue (which it doesn't really seem to be).
>
> AFAIK the desired compatibility for adaptive-wrap is not clearly known.
> It hasn't been a problem so far, and if/when it turns into a problem it
> should be easy to address ;-)

Should we flip it to use lexical-binding then?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48781: adaptive-wrap.el (elpa): Enable lexical binding
  2021-09-19 16:52       ` Stefan Kangas
@ 2021-09-20  5:31         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-20  5:31 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Stefan Monnier, jakanakaevangeli, 48781

Stefan Kangas <stefan@marxist.se> writes:

> Should we flip it to use lexical-binding then?

Looks like this was done here:

commit 1a3cdaf967dfe1f611b15d177a3f6da7e07624fb
Author:     jakanakaevangeli <jakanakaevangeli@chiru.no>
AuthorDate: Wed Jun 2 09:14:46 2021 -0400

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-20  5:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 16:23 bug#48781: adaptive-wrap.el (elpa): Enable lexical binding jakanakaevangeli
2021-06-02  5:57 ` Lars Ingebrigtsen
2021-06-02 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-03  7:54   ` Lars Ingebrigtsen
2021-06-03 13:35     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-19 16:52       ` Stefan Kangas
2021-09-20  5:31         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).