From: Fredrik Salomonsson <plattfot@gmail.com>
To: 41732@debbugs.gnu.org
Subject: bug#41732: issue with emacs-lua-mode and emacs-next
Date: Fri, 5 Jun 2020 20:14:17 -0700 [thread overview]
Message-ID: <CABZcOATXwbLV71GCvP1ZksKjJyrU9OH4k1CEfHXLPysbFTmCEQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]
Hi,
When I launch emacs (emacs-next) with the emacs-lua-mode package, I'm
getting this error
"Error (use-package): lua-mode/:catch: Unknown rx form ‘symbol’"
It works when I let emacs download it from melpa. I tried updating
emacs-lua-mode to 20200508, which is the same version as on melpa.
Still the same issue.
Could this be an issue that it's using emacs-minimal-26.3 to byte compile
the files? Where I'm using emacs-next aka emasc-27.0. Judging by this issue
[1] the rx package has gone through some changes in 27.0.
My emacs config is here: https://github.com/plattfot/dotemacs/tree/emacs27
I've attached the backtrace and the patch for the latest emacs-lua-mode.
Thanks
[1] https://github.com/immerrr/lua-mode/issues/153
--
s/Fred[re]+i[ck]+/Fredrik/g
[-- Attachment #1.2: Type: text/html, Size: 1284 bytes --]
[-- Attachment #2: emacs-lua-mode.backtrace --]
[-- Type: application/octet-stream, Size: 2354 bytes --]
Debugger entered--Lisp error: (error "Unknown rx form ‘symbol’")
signal(error ("Unknown rx form ‘symbol’"))
error("Unknown rx form `%s'" symbol)
rx--translate-form((symbol "local"))
rx--translate((symbol "local"))
mapcar(rx--translate ((symbol "local") ws+))
rx--translate-seq(((symbol "local") ws+))
rx--translate-rep("?" t ((symbol "local") ws+))
rx--translate-form((32 (symbol "local") ws+))
rx--translate((32 (symbol "local") ws+))
mapcar(rx--translate (bol (32 (symbol "local") ws+) lua-funcheader))
rx--translate-seq((bol (32 (symbol "local") ws+) lua-funcheader))
rx--translate-form((: bol (32 (symbol "local") ws+) lua-funcheader))
rx--translate((: bol (32 (symbol "local") ws+) lua-funcheader))
rx-to-string((: bol (32 (symbol "local") ws+) lua-funcheader) nil)
lua-rx-to-string((: bol (32 (symbol "local") ws+) lua-funcheader))
(defvar lua--beginning-of-defun-re (lua-rx-to-string '(: bol (32 (symbol "local") ws+) lua-funcheader)) ("/home/plattfot/.guix-profile/share/emacs/site-lisp..." . 43496))
require(lua-mode nil t)
(not (require 'lua-mode nil t))
(if (not (require 'lua-mode nil t)) (display-warning 'use-package (format "Cannot load %s" 'lua-mode) :error))
(condition-case err (if (not (require 'lua-mode nil t)) (display-warning 'use-package (format "Cannot load %s" 'lua-mode) :error)) ((debug error) (funcall use-package--warning28 :catch err)))
eval-buffer(#<buffer *load*-564058> nil "/home/plattfot/.config/emacs/init.d/configuration...." nil t) ; Reading at buffer position 13216
load-with-code-conversion("/home/plattfot/.config/emacs/init.d/configuration...." "/home/plattfot/.config/emacs/init.d/configuration...." nil nil)
load("/home/plattfot/.config/emacs/init.d/configuration...." nil nil t)
load-file("~/.config/emacs/init.d/configuration.el")
org-babel-load-file("~/.config/emacs/init.d/configuration.org")
eval-buffer(#<buffer *load*> nil "/home/plattfot/.config/emacs/init.el" nil t) ; Reading at buffer position 81
load-with-code-conversion("/home/plattfot/.config/emacs/init.el" "/home/plattfot/.config/emacs/init.el" t t)
load("/home/plattfot/.config/emacs/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x97d559>) #f(compiled-function () #<bytecode 0x984959>) t)
command-line()
normal-top-level()
[-- Attachment #3: 0001-gnu-emacs-lua-mode-Update-to-20200508-0.35b6e4c.patch --]
[-- Type: text/x-patch, Size: 1921 bytes --]
From 1ef949ea0a9bdec2bdf42c0314b8e8e01acff72d Mon Sep 17 00:00:00 2001
From: Fredrik Salomonsson <plattfot@gmail.com>
Date: Fri, 5 Jun 2020 19:39:37 -0700
Subject: [PATCH] gnu: emacs-lua-mode: Update to 20200508-0.35b6e4c.
* gnu/packages/emacs-xyz.scm (emacs-lua-mode): Update to 20200508-0.35b6e4c.
---
gnu/packages/emacs-xyz.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6110374281..e2d91918e8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -8292,11 +8292,11 @@ using package inferred style.")
(license license:gpl3+))))
(define-public emacs-lua-mode
- (let ((commit "1f596a93b3f1caadd7bba01030f8c179b029600b")
- (revision "1"))
+ (let ((commit "35b6e4c20b8b4eaf783ccc8e613d0dd06dbd165c")
+ (revision "0"))
(package
(name "emacs-lua-mode")
- (version (git-version "20191204" revision commit))
+ (version (git-version "20200508" revision commit))
(home-page "https://github.com/immerrr/lua-mode/")
(source (origin
(method git-fetch)
@@ -8306,14 +8306,14 @@ using package inferred style.")
(file-name (git-file-name name version))
(sha256
(base32
- "0i4adlaik3qjx1wkb7rwk2clvj7ci2g8pm0siyb3yk90r6z5mspi"))))
+ "1hai6rqjm5py0bp57nhggmj9qigwdj3a46ngacpnjc1qmy9kkgfk"))))
(build-system emacs-build-system)
(arguments
`(#:tests? #t
- #:test-command '("buttercup" "-l" "lua-mode.el")))
+ #:test-command '("buttercup" "-l" "lua-mode.el")))
(native-inputs
`(("emacs-buttercup" ,emacs-buttercup)
- ("lua" ,lua)))
+ ("lua" ,lua)))
(synopsis "Major mode for lua")
(description
"This Emacs package provides a mode for @uref{https://www.lua.org/,
--
2.26.2
next reply other threads:[~2020-06-06 3:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-06 3:14 Fredrik Salomonsson [this message]
2020-06-06 3:17 ` bug#41732: issue with emacs-lua-mode and emacs-next Fredrik Salomonsson via web
2020-06-06 8:10 ` Nicolas Goaziou
2020-06-06 10:26 ` zimoun
2020-06-06 14:13 ` Nicolas Goaziou
2020-06-06 15:30 ` zimoun
2020-06-07 4:39 ` Maxim Cournoyer
2020-06-07 9:31 ` zimoun
2020-06-17 4:34 ` Maxim Cournoyer
2020-09-16 14:51 ` bug#41732: New ’package-with-emacs-next’ procedure zimoun
2020-09-26 16:12 ` zimoun
2020-09-26 16:53 ` Nicolas Goaziou
2020-09-27 3:45 ` Maxim Cournoyer
2020-09-27 9:00 ` Nicolas Goaziou
2020-09-28 3:03 ` Maxim Cournoyer
2020-09-28 8:29 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABZcOATXwbLV71GCvP1ZksKjJyrU9OH4k1CEfHXLPysbFTmCEQ@mail.gmail.com \
--to=plattfot@gmail.com \
--cc=41732@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.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).