* bug#44157: 28.0.50; skeleton bug due to lexical-binding
@ 2020-10-22 23:09 Stephen Berman
2020-10-26 21:22 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Berman @ 2020-10-22 23:09 UTC (permalink / raw)
To: 44157
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
0. emacs -Q
1. C-x C-f test.html RET
2. C-c C-t html RET Test RET
=> error in skeleton-internal-1: Symbol’s value as variable is void: resume:
I believe this bug was introduced by this commit:
commit e038a7571ddb9ec2110533fdd1b359150939c58c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
CommitDate: Thu Aug 6 18:45:33 2020 -0400
* lisp/skeleton.el: Use lexical-binding
The following patch fixes the bug, at least for the above recipe.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: skeleton-internal-list patch --]
[-- Type: text/x-patch, Size: 576 bytes --]
diff --git a/lisp/skeleton.el b/lisp/skeleton.el
index ea4e5dbc22..6e2c10d971 100644
--- a/lisp/skeleton.el
+++ b/lisp/skeleton.el
@@ -339,7 +339,8 @@ skeleton-internal-list
(dlet ((str (or str
`(setq str
(skeleton-read ',(car skeleton-il)
- nil ,recursive)))))
+ nil ,recursive))))
+ resume:)
(when (and (eq (cadr skeleton-il) '\n) (not recursive)
(save-excursion (skip-chars-backward " \t") (bolp)))
(setq skeleton-il (cons nil (cons '> (cddr skeleton-il)))))
[-- Attachment #3: Type: text/plain, Size: 643 bytes --]
In GNU Emacs 28.0.50 (build 38, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cairo version 1.17.3)
of 2020-10-21 built on strobe-jhalfs
Repository revision: 39271ed108380494667ab680fc71b800f9ea5097
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Linux From Scratch SVN-20200401
Configured using:
'configure --with-xwidgets 'CFLAGS=-Og -g3''
Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD PDUMPER LCMS2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#44157: 28.0.50; skeleton bug due to lexical-binding
2020-10-22 23:09 bug#44157: 28.0.50; skeleton bug due to lexical-binding Stephen Berman
@ 2020-10-26 21:22 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-26 21:22 UTC (permalink / raw)
To: Stephen Berman; +Cc: 44157
Stephen Berman <stephen.berman@gmx.net> writes:
> 0. emacs -Q
> 1. C-x C-f test.html RET
> 2. C-c C-t html RET Test RET
> => error in skeleton-internal-1: Symbol’s value as variable is void: resume:
Yup.
> The following patch fixes the bug, at least for the above recipe.
>
> diff --git a/lisp/skeleton.el b/lisp/skeleton.el
> index ea4e5dbc22..6e2c10d971 100644
> --- a/lisp/skeleton.el
> +++ b/lisp/skeleton.el
> @@ -339,7 +339,8 @@ skeleton-internal-list
> (dlet ((str (or str
> `(setq str
> (skeleton-read ',(car skeleton-il)
> - nil ,recursive)))))
> + nil ,recursive))))
> + resume:)
So I've applied the patch to Emacs 28, but I guess there may be similar
things lurking in the skeleton code, if I understand it correctly (but I
probably don't).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-26 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-22 23:09 bug#44157: 28.0.50; skeleton bug due to lexical-binding Stephen Berman
2020-10-26 21:22 ` 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).