immerrr/lua-mode — Issue #24: Error in lua-mark-all-multiline-literals()
Author: korbse
Created: 2012-01-19 07:18:36+00:00
State: open

Hi,

I get the following backtrace when I try to open a lua file (lua-mode v20111107):

Debugger entered--Lisp error: (wrong-number-of-arguments called-interactively-p 1)
(called-interactively-p (quote any))
(and (called-interactively-p (quote any)) (use-region-p))
(if (and (called-interactively-p ...) (use-region-p)) (setq begin (region-beginning) end (region-end)))
lua-mark-all-multiline-literals()
(let ((switches nil) s) (kill-all-local-variables) (setq major-mode (quote lua-mode)) (setq mode-name "Lua") (setq comint-prompt-regexp lua-prompt-regexp) (make-local-variable (quote lua-default-command-switches)) (set (make-local-variable ...) (quote lua-beginning-of-proc)) (set (make-local-variable ...) (quote lua-end-of-proc)) (set (make-local-variable ...) (quote lua-indent-line)) (set (make-local-variable ...) lua-comment-start) (set (make-local-variable ...) lua-comment-start-skip) (set (make-local-variable ...) (quote ...)) (set (make-local-variable ...) lua-imenu-generic-expression) (setq local-abbrev-table lua-mode-abbrev-table) (abbrev-mode 1) (make-local-variable (quote lua-default-eval)) (use-local-map lua-mode-map) (set-syntax-table (copy-syntax-table)) (modify-syntax-entry 43 ".") (modify-syntax-entry 45 ". 12") (modify-syntax-entry 42 ".") (modify-syntax-entry 47 ".") (modify-syntax-entry 94 ".") (modify-syntax-entry 46 "_") (modify-syntax-entry 62 ".") (modify-syntax-entry 60 ".") (modify-syntax-entry 61 ".") (modify-syntax-entry 126 ".") (modify-syntax-entry 10 ">") (modify-syntax-entry 39 "\"") (modify-syntax-entry 34 "\"") (if (and ... ... ... ... ...) (progn ... ...)) (if (boundp ...) (setq mode-popup-menu ...)) (unless (assq ... hs-special-modes-alist) (add-to-list ... ...)) (set (make-local-variable ...) t) (lua-mark-all-multiline-literals) (lua--automark-multiline-update-timer) (run-hooks (quote lua-mode-hook)))
lua-mode()
set-auto-mode-0(lua-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(# "~/test.lua" nil nil "~/test.lua" (3285412 2055))
find-file-noselect("~/test.lua" nil nil t)
find-file("~/test.lua" t)
call-interactively(find-file nil nil)

This error has got to do with giving an argument to (called-interactively-p) which takes no arguments in my emacs 23.1.1 or 22.2.1. You could work around this with: http://paste.lisp.org/display/115598

Regards,
Markus