Pymacs icon indicating copy to clipboard operation
Pymacs copied to clipboard

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

Open limingsenior opened this issue 12 years ago • 1 comments

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' ".

limingsenior avatar Aug 21 '12 15:08 limingsenior

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

pinard avatar Aug 31 '12 03:08 pinard