Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well it sounds like somewhere there's some code causing this mode to be called, non-interactively, with no arguments: <code>(multi-web-mode)</code>. A common cause would be specifying a mode function symbol for use as a callback, rather than specifying a function which will <em>call</em> that mode function (with an argument).</p> <p>This certainly used to be bad form, as it would indeed act as a toggle, just as it does in the interactive case (e.g. <kbd>M-x</kbd> <code>multi-web-mode</code>). Since Emacs 24, however, it is actually safe to do (at least for modes defined with the standard macros), as a non-interactive call with no argument to a mode function now always means 'enable'. This might account for the fact that you're not actually seeing a problem.</p> <p><del>I don't think stock Emacs has ever generated such a message, so I would presume it's multi-web-mode itself which is detecting and reporting on this. It may need to be updated to reflect the change in Emacs 24.</del> (<em>Edit:</em> looks like I was wrong about that; I guess Emacs 23.4 did produce this warning.)</p> <p>Your simplest fix is probably to show us any lines from your config which mention <code>multi-web-mode</code>, so someone can show you how to change it to ensure that it passes an explicit argument (which is typically <code>1</code> to enable a mode).</p> <hr/> <p><em>Edit:</em> Okay, your problem is that <code>multi-web-mode</code> is a minor mode (as opposed to a major mode), but you have specified it in <code>auto-mode-alist</code> which is a mechanism for mapping filename patterns to <em>major</em> modes.</p> <p>So the cause is exactly as I suggested above when I said "A common cause would be specifying a mode function symbol for use as a callback", as those auto-mode-alist entries will result in a call to <code>(multi-web-mode)</code>.</p> <p>It appears to me that <code>multi-web-global-mode</code> handles enabling the minor mode as required, so you just need to remove the bad <code>auto-mode-alist</code> entries.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload