all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Davis Herring" <herring@lanl.gov>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: sdl.web@gmail.com, Andreas Schwab <schwab@suse.de>,
	rms@gnu.org, emacs-pretest-bug@gnu.org
Subject: RE: 23.0.50; savehist save invalid syntax
Date: Mon, 10 Sep 2007 15:11:40 -0700 (PDT)	[thread overview]
Message-ID: <38309.128.165.123.18.1189462300.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICIEKFDPAA.drew.adams@oracle.com>

> I looked a bit closer at the rest as well, and I think that
> `savehist-prin1-readable' needs to actually read what it prints (like it
> did
> before Davis's patch). It should raise an error (hence remove the written
> entry and return nil) if either the write or the read fails.

I'm not sure if you're saying it should try reading because of the Emacs
20 bug you're about to describe, or because you don't know (having written
this before my reply to your previous mail) that printing now raises an
error if the read would fail.

> Emacs 20 serves as a good test for this, because it has a bug: If you do
> `M-x cancel-debug-on-entry RET', then Emacs 20 inserts this invalid entry
> in
> the `command-history': (cancel-debug-on-entry ') - note the quote mark
> before the right paren. This provoked a read error at load time, but the
> attached patch correctly does not include that invalid entry in the saved
> `command-history'.

I happen to have a copy of Emacs 20 handy: it seems that that expression
is (cancel-debug-on-entry (quote)).  In Emacs 20, `pp' printed that
erroneously, but `prin1' and friends printed that bogus expression
correctly.  So there are two bugs (whatever put that disembodied quote
into `command-history', and `pp'), but I don't see the relevance to
savehist, especially since the signaling print on which I made it rely
will never exist in Emacs 20.

> [savehist.el does not actually work with Emacs 20, for other reasons (e.g.
> md5), but I have a version that does work, and I used that to test
> `savehist-prin1-readable'.]

What I just said about signaling prints should explain your test results,
although I don't know how you got savehist to attempt to read output from
`pp'.  Feel free to keep the print/read trick for Emacs 20, of course!

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

  parent reply	other threads:[~2007-09-10 22:11 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-02 10:38 23.0.50; savehist save invalid syntax Leo
2007-09-02 13:21 ` Drew Adams
2007-09-03  3:04 ` Richard Stallman
2007-09-04 22:48   ` Davis Herring
2007-09-05  3:20     ` Stefan Monnier
2007-09-05  6:16     ` Richard Stallman
2007-09-05 18:16       ` Davis Herring
2007-09-06  5:00         ` Richard Stallman
2007-09-09 21:58         ` Drew Adams
2007-09-09 23:14           ` Andreas Schwab
2007-09-10  3:01             ` Drew Adams
2007-09-10  3:07               ` Drew Adams
2007-09-10 22:11               ` Davis Herring [this message]
2007-09-10 23:42                 ` Drew Adams
2007-09-10 23:54               ` Richard Stallman
2007-09-11 20:27                 ` Davis Herring
2007-09-10 21:59           ` Davis Herring
2007-09-10 23:42             ` Drew Adams
2007-09-11  0:55               ` Davis Herring
2007-09-11  1:11                 ` Stefan Monnier
2007-09-11 21:06                   ` [Released] " Davis Herring
2007-09-11 21:29                     ` Stefan Monnier
2007-09-14  7:04                     ` Richard Stallman
2007-09-11  1:18                 ` Drew Adams
2007-09-05 19:57       ` Leo
2007-10-18 21:08 ` Leo
2007-10-19  8:15   ` Leo
2007-10-19 14:01     ` Stefan Monnier

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=38309.128.165.123.18.1189462300.squirrel@webmail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=drew.adams@oracle.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    --cc=sdl.web@gmail.com \
    /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.