unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41732: issue with emacs-lua-mode and emacs-next
@ 2020-06-06  3:14 Fredrik Salomonsson
  2020-06-06  3:17 ` Fredrik Salomonsson via web
  2020-06-06  8:10 ` Nicolas Goaziou
  0 siblings, 2 replies; 16+ messages in thread
From: Fredrik Salomonsson @ 2020-06-06  3:14 UTC (permalink / raw)
  To: 41732


[-- 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


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

end of thread, other threads:[~2020-09-28  8:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-06  3:14 bug#41732: issue with emacs-lua-mode and emacs-next Fredrik Salomonsson
2020-06-06  3:17 ` 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

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).