unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Invalid read syntax for compiled bool vector
Date: Tue, 27 Apr 2004 00:01:07 +0200	[thread overview]
Message-ID: <je1xmacsbg.fsf@sykes.suse.de> (raw)
In-Reply-To: <85u0z64onq.fsf@junk.nocrew.org> (Lars Brinkhoff's message of "26 Apr 2004 19:47:21 +0200")

Lars Brinkhoff <lars@nocrew.org> writes:

> Andreas Schwab <schwab@suse.de> writes:
>> Richard Stallman <rms@gnu.org> writes:
>> >     Apparently, you have to bind coding-system-for-write before
>> >     writing a source file with a literal bool-vector constant in
>> >     it, or else Emacs will either ask the user for the coding
>> >     system, or write the file using some default coding system
>> >     which may not do the right thing.
>> > I guess we should change the syntax for bool-vectors so as to put
>> > just 4 bits into each character.  The question is how to do that
>> > in a somewhat compatible way.
>> The print syntax could use octal or hexadecimal escapes in the bit string.
>
> Yes.  Since the print syntax for bool-vectors looks like strings, I
> would sugggest doing whatever the print syntax for strings does.

I have now changed the print syntax to always use octal escapes for
non-ascii characters in the bool-vector string.  This way the string will
always be read as unibyte string, avoiding all coding issues.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  reply	other threads:[~2004-04-26 22:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <85k70cbeil.fsf@junk.nocrew.org>
     [not found] ` <E1BFdNk-0003Ia-Oq@fencepost.gnu.org>
     [not found]   ` <857jw35hcq.fsf@junk.nocrew.org>
2004-04-26 14:10     ` Invalid read syntax for compiled bool vector Richard Stallman
2004-04-26 16:08       ` Andreas Schwab
2004-04-26 17:47         ` Lars Brinkhoff
2004-04-26 22:01           ` Andreas Schwab [this message]
2004-04-26 22:53             ` David Kastrup
2004-04-27 12:42               ` Andreas Schwab
2004-04-27 12:52                 ` David Kastrup
2004-04-27 16:29             ` Richard Stallman
2004-04-27 17:54               ` Andreas Schwab
2004-04-27 16:28         ` Richard Stallman
2004-04-27 17:47           ` Andreas Schwab
2004-04-29 10:43             ` Richard Stallman

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=je1xmacsbg.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).