unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Subject: bug#5981: 24.0.50; Attempt to set a constant symbol: enable-multibyte-characters
Date: Tue, 20 Apr 2010 10:50:14 -0400	[thread overview]
Message-ID: <jwvtyr6tc68.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83hbn65x2v.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Apr 2010 11:48:08 +0300")

> With today's trunk, trying to display the HELLO file, like this:

>   emacs -Q
>   C-h H

> Causes Emacs to signal an error:

>    Attempt to set a constant symbol: enable-multibyte-characters

Fixed.
The problem was that view-hello-file did
(setq-default 'enable-multibyte-characters) so as to "DTRT" in
a unibyte session.  The previous code had a bug which made it allow this
even though enable-multibyte-characters is read-only.  I've fixed this
bug in the new variable code, which is why you now saw this error.

Since unibyte sessions are deprecated, I just removed the code (the
alternative would have been to revert to using
default-enable-multibyte-characters, since this variable has the curious
property of being real-only except when accessed via its
default-enable-multibyte-characters alias: another good reason to
dislike it).


        Stefan






  reply	other threads:[~2010-04-20 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-20  8:48 bug#5981: 24.0.50; Attempt to set a constant symbol: enable-multibyte-characters Eli Zaretskii
2010-04-20 14:50 ` Stefan Monnier [this message]
2010-04-23 17:40 ` ShiroiKuma
2010-04-23 21:20 ` JJ
2010-04-23 22:43 ` JJ
2010-04-24 17:26 ` JJ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtyr6tc68.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).