Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

multi-web-mode conflict: "Making autopair-emulation-alist buffer-local while locally let-bound!" #32

Open
fecundf opened this issue Oct 21, 2013 · 1 comment

Comments

@fecundf
Copy link

fecundf commented Oct 21, 2013

I'm seeing this warning, when in multi-web-mode and backspacing/re-typing a closing paren:

Making autopair-emulation-alist buffer-local while locally let-bound!

You do have to install multi-web-mode to see this, alas, but the error does seem to point to auto-pair. Here's how I reproduce it:

Set up multi-web-mode, this is in my .emacs:

(require 'multi-web-mode)
(setq mweb-default-major-mode 'html-mode)
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
                  (js-mode "<script[^>]*>" "</script>")
                  (css-mode "<style[^>]*>" "</style>")))
(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
(multi-web-global-mode 1)

Open an empty buffer and type:
<?php foo()

The M-x autopair-mode, multi-web-mode
Turn off any other minor modes that may have come up
Delete the final closing paren, and retype it

I now see:

Making autopair-emulation-alist buffer-local while locally let-bound! [2 times]
call-interactively: Wrong type argument: listp, set-from-style

@joaotavora
Copy link
Owner

multi-web-mode appears to do a lot of variable-changing tricks to support multiple major moes in a single buffer. I would suggest you also report the bug there, as I have no idea as to how to fix this at the moment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants