unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* savehist-mode: invalid-read-syntax "#"
@ 2006-01-01 18:13 Reiner Steib
  2006-01-04  6:27 ` Juri Linkov
  2006-01-04  8:08 ` Hrvoje Niksic
  0 siblings, 2 replies; 15+ messages in thread
From: Reiner Steib @ 2006-01-01 18:13 UTC (permalink / raw)
  Cc: emacs-devel

Hi,

`savehist-mode' is a very nice new feature in Emacs 22.  I like it
very much.  Thanks, Hrvoje!

Alas, from time to time `savehist-mode' saves entries containing "#"
like...

  (setq command-history '((describe-key '[(mouse-6 (#<window 14 on
  site-start.el> 41046 (293 . 354) 5470111 nil 41046 (48 . 27)
  nil (221 . 3) (6 . 13)))] 1 nil)))

... to `~/.emacs.d/history'.  The mouse-6 entry came from using `C-h
k'.  I've also seen offending entries after using "#" in with `M-!'
(shell-command-history).  When starting Emacs next, I got...

Debugger entered--Lisp error: (invalid-read-syntax "#")
  signal(invalid-read-syntax ("#"))
  byte-code("STRIPPED" [savehist-mode errvar nil savehist-uninstall signal] 3)
  savehist-mode(nil)
  call-interactively(savehist-mode)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

Probably `savehist-mode' shouldn't try to save describe-key entries in
the first place.  And it should try to make sure that the history file
is syntactically correct.

Bye, Reiner.


Version  information follows...

In GNU Emacs 22.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.4.9)
 of 2005-12-29 on shrubbery
X server distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure '--prefix=/import/xtra/emacs/HEAD' '--with-gtk' '--exec-prefix=/import/xtra/emacs/HEAD-i686''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: de_DE@euro
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-8859-15
  default-enable-multibyte-characters: t

Major mode: Message

Minor modes in effect:
  flyspell-mode: t
  mml-mode: t
  iswitchb-mode: t
  msb-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  show-paren-mode: t
  which-function-mode: t
  recentf-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-decoding-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: identity
  abbrev-mode: t

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-04-03 17:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-01 18:13 savehist-mode: invalid-read-syntax "#" Reiner Steib
2006-01-04  6:27 ` Juri Linkov
2006-01-04 10:53   ` David Kastrup
2006-01-04 19:59     ` Reiner Steib
2006-01-08 19:44       ` Reiner Steib
2006-01-08 22:26         ` Hrvoje Niksic
2006-01-08 23:23           ` Reiner Steib
2006-01-08 23:46             ` Hrvoje Niksic
2006-03-03 17:17               ` Reiner Steib
2006-04-03 17:32                 ` Reiner Steib
2006-01-05  6:41     ` Juri Linkov
2006-01-05  3:46   ` Richard M. Stallman
2006-01-05  6:38     ` Juri Linkov
2006-01-04  8:08 ` Hrvoje Niksic
2006-01-04 14:46   ` Reiner Steib

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).