all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: gebser@mousecar.com
Cc: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: Re: desktop-read usage and syntax ::error, strange character :: half-SOLVED!!!
Date: Wed, 19 Jul 2017 13:46:31 +0700	[thread overview]
Message-ID: <CAP_d_8XNSjLoOYscdAO1Ho=umNaSxt1hW7BQqHR8z_iYU6foJw@mail.gmail.com> (raw)
In-Reply-To: <d2b62c30-be05-d14f-cbda-2b3249ceff15@mousecar.com>

On Wed, Jul 19, 2017 at 4:10 AM, ken <gebser@mousecar.com> wrote:

> Most of the info in .emacs.desktop is inscrutable... I don't know what the
> bejesus it is.  I even saw a bunch of lines like this:
>
>> (desktop-create-buffer <81><CE>
>
> (81x = 129d ; CEx = 206d !!!)
>
> and didn't think it terribly odd.  But then I compared that file to one of
> the backups I have of previous versions of the same file and, instead of the
> "<81><CE>", there was "206"... in every case.

The docstring for ‘desktop-create-buffer’ calls its first argument
FILE-VERSION. It is reasonable to expect that it’s an integer such as
206.

However, integers are also used as character codes, and 206 is the
character code of Î (U+00CE Latin capital letter I with circumflex).
In the UTF-8 encoding, this character is represented by two bytes 0x81
0xCE.

It is as if under some circumstances the code that saves the desktop
file writes the version as a character code instead of a decimal
integer.



  reply	other threads:[~2017-07-19  6:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 15:46 desktop-read usage and syntax ::error, strange character ken
2017-07-18 17:07 ` Sharon Kimble
2017-07-18 19:29   ` ken
2017-07-19 11:11     ` Sharon Kimble
2017-07-20 20:51       ` ken
2017-07-21  8:18         ` Sharon Kimble
2017-07-18 19:59 ` John Mastro
2017-07-18 21:10   ` desktop-read usage and syntax ::error, strange character :: half-SOLVED!!! ken
2017-07-19  6:46     ` Yuri Khan [this message]
2017-07-20 22:36       ` ken
2017-07-20 23:00         ` Nick Dokos

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

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

  git send-email \
    --in-reply-to='CAP_d_8XNSjLoOYscdAO1Ho=umNaSxt1hW7BQqHR8z_iYU6foJw@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=gebser@mousecar.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.