Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:50:11+00:00 2026-05-24T03:50:11+00:00

I’m trying to install lua-mode (version 20110428) for emacs 21.4.1 and am having problems.

  • 0

I’m trying to install lua-mode (version 20110428) for emacs 21.4.1 and am having problems. In my .emacs file I’ve got:

(add-to-list 'load-path "~/.emacs.d/lua-mode/")
...
(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist))
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)

I used the installation instructions from here: http://lua-mode.luaforge.net/ Also, in my .emacs.d/ dir I have lua-mode/ which contains lua-mode.el. All of those files have the correct permissions.

Except now when I use emacs to open the new file “test.lua” I get the following message in the scratch buffer:

“File mode specification error: (void-function called-interactively-p)”

I’m running RHEL5. I’ve looked online but haven’t found much help. Does anyone have any suggestions? I don’t know any LISP (so it’s hard to debug lua-mode.el) and apart from a handful of shortcuts, I don’t know that much about emacs.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:50:12+00:00Added an answer on May 24, 2026 at 3:50 am

    You are using a version of Emacs that doesn’t have the version of the “called-interactively-p” function that takes 1 argument (earlier versions of the function didn’t take an argument). You can get around this by putting this workaround (posted here: http://paste.lisp.org/display/115598/raw) in your Emacs init file:

    (condition-case nil (called-interactively-p 'interactive)
      (error
       ; Save reference to called-interactively-p in
       ; inglorion-system-called-interactively-p
       (fset 'inglorion-system-called-interactively-p
             (symbol-function 'called-interactively-p))
       ; Define called-interactively-p so that it discards
       ; its arguments and calls inglorion-system-called-interactively-p
       (fset 'called-interactively-p
             (lambda (&rest args)
               (inglorion-system-called-interactively-p)))))
    

    However, when I did this and attempted to test with Emacs 22, I encountered other errors as well due to certain functions not being present so you may have to upgrade your version of Emacs if you want to use lua-mode.

    With Emacs 23 & 24, “lua-mode.el” seems to work (I’m not a lua programmer so I couldn’t test it properly) with existing lua files but breaks when you attempt to create a new lua file. It’s actually a bug in the “lua-mode.el” code that occurs when you try to open a new lua file (it doesn’t occur if you attempt to open an existing lua file). The problem is that the “remove-text-properties” call at line# 1218 (in the “lua-unmark-multiline-literals” function) is calling the “remove-text-properties” function with a begin value of “1” and an end value of “0” (it’s “0” because the buffer-size is “0” for a new file. You can fix this by changing line# 1218 from:

        (remove-text-properties (or begin 1) (or end (buffer-size)) '(syntax-table ()))
    

    to:

        (remove-text-properties (or begin 1)
                                (or end
                                    (if (> (buffer-size) 0)
                                        (buffer-size)
                                      (or begin 1)))
                                '(syntax-table ()))
    

    You should let the developer of “lua-mode.el” know about the bug and possibly also request support for earlier Emacs versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.