Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning:variable assignment to constant `enable-multibyte-characters' #37

Open
limingsenior opened this issue Aug 21, 2012 · 1 comment

Comments

@limingsenior
Copy link

i use ubuntu, and i try to lots of times install pymacs, but failed. The message is
''Compiling file /usr/share/emacs/site-lisp/Pymacs/pymacs.el at Tue Aug 21 23:42:08 2012
Entering directory /usr/share/emacs/site-lisp/Pymacs/' pymacs.el:82:13:Warning: variable assignment to constantenable-multibyte-characters' ".

@pinard
Copy link
Owner

pinard commented Aug 31, 2012

Same here! I am a bit shocked! :-) File "pymacs.el.in" has this code:

(if (fboundp 'set-buffer-multibyte)
(defalias 'pymacs-set-buffer-multibyte 'set-buffer-multibyte)
(defun pymacs-set-buffer-multibyte (flag)
"For use in Emacs 20.2 or earlier. Under XEmacs: no operation."
(setq enable-multibyte-characters flag)))

Here, function set-buffer-multibyte exists, so the (setq enable-multibyte-characters ...) line should never be executed. How could I keep the parameterization while silencing the compiler?

François

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

No branches or pull requests

2 participants