From unknown Wed Jun 18 23:15:49 2025 X-Loop: don@donarmstrong.com Subject: bug#445: Invalid read syntax in savehist-mode's history file Reply-To: Daniel Colascione , 445@debbugs.gnu.org Resent-From: Daniel Colascione Original-Sender: Daniel Colascione Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Jun 2008 18:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121381395911972 (code B ref -1); Wed, 18 Jun 2008 18:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2008 18:32:39 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5IIWW2d011966 for ; Wed, 18 Jun 2008 11:32:33 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K92SN-0001EH-MG for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K92SM-0001E5-5d for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:31 -0400 Received: from [199.232.76.173] (port=33449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K92SM-0001E2-2c for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:30 -0400 Received: from vpn.merrillpress.com ([64.61.107.78]:58369) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K92SL-0001DG-W0 for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:30 -0400 Received: from pluto.merrillpress.net ([10.136.5.5]) by mars.merrillpress.net with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1K92SJ-0000Mw-8z for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:27 -0400 Received: from danc by pluto.merrillpress.net with local (Exim 4.68) (envelope-from ) id 1K92SJ-0008SB-3D for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2008 14:32:27 -0400 From: Daniel Colascione To: bug-gnu-emacs@gnu.org Message-Id: Sender: Daniel Colascione Date: Wed, 18 Jun 2008 14:32:27 -0400 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) I found this line in my ~/.emacs.d/history. I've trimmed the list to include only the problematic element and formatted it for email. (setq command-history ... '(describe-key-briefly '[mode-line (down-mouse-1 (# mode-line (110 . 617) -97640112 ("Calc: 12 Deg " . 6) 41 (13 . 47) nil (5 . 9) (8 . 16)))] nil 1) ...) The lisp reader complains about the #. In GNU Emacs 22.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.5) of 2008-05-05 on xenbuilder2.fedora.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-pop' '--with-sound' '--with-gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil 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.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: eldoc-mode: t paredit-mode: t cua-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x b m e s M-< M-> C-x C-f . d . e m . d h i s C-s # C-s C-s C-s C-r C-r C-r C-r C-r M-< C-s # < w i n d o w C-s C-s # w < w i n d C-s C-s M-x r e p o r t - e m Recent messages: Making completion list... Loading "/net/home/danc/.emacs.d/byte-cache/net!home!danc!emacs!misc!paredit.elc" as "/net/home/danc/emacs/misc/paredit.el"... Loading edmacro...done Loading "/net/home/danc/.emacs.d/byte-cache/net!home!danc!emacs!misc!paredit.elc" as "/net/home/danc/emacs/misc/paredit.el"...done Loading "/net/home/danc/.emacs.d/byte-cache/net!home!danc!emacs!misc!trailing-whitespace.elc" as "/net/home/danc/emacs/misc/trailing-whitespace.el"...done Loading eldoc...done Mark saved where search started Mark set Mark saved where search started [2 times] Loading emacsbug...done From unknown Wed Jun 18 23:15:49 2025 X-Loop: don@donarmstrong.com Subject: bug#445: Invalid read syntax in savehist-mode's history file Reply-To: Chong Yidong , 445@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 Aug 2008 19:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 445-submit@emacsbugs.donarmstrong.com id=B445.121908857714225 (code B ref 445); Mon, 18 Aug 2008 19:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 445) by emacsbugs.donarmstrong.com; 18 Aug 2008 19:42:57 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7IJgrXQ014219 for <445@emacsbugs.donarmstrong.com>; Mon, 18 Aug 2008 12:42:54 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 04E6757E1C6; Mon, 18 Aug 2008 15:43:56 -0400 (EDT) From: Chong Yidong To: Daniel Colascione Cc: 445@debbugs.gnu.org Date: Mon, 18 Aug 2008 15:43:56 -0400 Message-ID: <87pro6hzwj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I found this line in my ~/.emacs.d/history. I've trimmed the list to > include only the problematic element and formatted it for email. > > (setq command-history > ... > '(describe-key-briefly > '[mode-line (down-mouse-1 > (# mode-line (110 . 617) > -97640112 > ("Calc: 12 Deg " . 6) > 41 (13 . 47) nil (5 . 9) (8 . 16)))] nil 1) > ...) > > The lisp reader complains about the #. AFAIK, savehist-mode doesn't save command-history. Please provide a recipe for reproducing this bug. From unknown Wed Jun 18 23:15:49 2025 X-Loop: don@donarmstrong.com Subject: bug#445: Invalid read syntax in savehist-mode's history file Reply-To: "Daniel Colascione" , 445@debbugs.gnu.org Resent-From: "Daniel Colascione" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 Aug 2008 20:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 445-submit@emacsbugs.donarmstrong.com id=B445.121908907317182 (code B ref 445); Mon, 18 Aug 2008 20:00:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 445) by emacsbugs.donarmstrong.com; 18 Aug 2008 19:51:13 +0000 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7IJpAAW017176 for <445@emacsbugs.donarmstrong.com>; Mon, 18 Aug 2008 12:51:11 -0700 Received: by rv-out-0506.google.com with SMTP id k40so2128249rvb.1 for <445@emacsbugs.donarmstrong.com>; Mon, 18 Aug 2008 12:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lWVhJm15ChHuwDuP0FQaww1XTTiSqE9zk6qWagwxxQo=; b=Zl5453Jtf25F1Gff54wBMtG4Ewv5d38KiCv/QRkwmdwKo92A3q3TMkWdNreS6pjcT3 cN5rkV/0hcmtDMTFJcAXQjmP58KBvdN0gTyOLcl4zXxV1Q4SOuAO/Pvg4vwwVAfbqZG2 /iBPDgZ84PABH9wdFek3uu1BLv61XkhMvUQvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RFcN1csl7ybZmIsmKJgjYeIzJ0nK0J485wkJRvuHJh0kHWdtEXJ51MrEvzQWuWWUho CyR2VF0c6qCP7Hawqh9Hw8c/up7Tit/L7AIA3EbOFPnTH0kEUiZ2DE2LcIZpcK3NCzne OXJKg13w5qor9Jhj/VbjB7645htmXG8ximAV8= Received: by 10.141.194.11 with SMTP id w11mr3579199rvp.228.1219089070003; Mon, 18 Aug 2008 12:51:10 -0700 (PDT) Received: by 10.141.180.12 with HTTP; Mon, 18 Aug 2008 12:51:09 -0700 (PDT) Message-ID: Date: Mon, 18 Aug 2008 15:51:09 -0400 From: "Daniel Colascione" To: "Chong Yidong" Cc: 445@debbugs.gnu.org In-Reply-To: <87pro6hzwj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87pro6hzwj.fsf@cyd.mit.edu> On Mon, Aug 18, 2008 at 3:43 PM, Chong Yidong wrote: > AFAIK, savehist-mode doesn't save command-history. Please provide a > recipe for reproducing this bug. Actually, it's moot: the CVS savehist.el delicately works around the problem, starting at line 314 in my copy. From unknown Wed Jun 18 23:15:49 2025 X-Loop: don@donarmstrong.com Subject: bug#445: Invalid read syntax in savehist-mode's history file Reply-To: martin rudalics , 445@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 Aug 2008 20:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 445-submit@emacsbugs.donarmstrong.com id=B445.12190924692370 (code B ref 445); Mon, 18 Aug 2008 20:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 445) by emacsbugs.donarmstrong.com; 18 Aug 2008 20:47:49 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7IKliRK002364 for <445@emacsbugs.donarmstrong.com>; Mon, 18 Aug 2008 13:47:45 -0700 Received: (qmail invoked by alias); 18 Aug 2008 20:47:38 -0000 Received: from 62-47-40-33.adsl.highway.telekom.at (EHLO [62.47.40.33]) [62.47.40.33] by mail.gmx.net (mp066) with SMTP; 18 Aug 2008 22:47:38 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/RPJE4UVDRHLn3W9Tbtk6Dwqp5NT0HdciOIL1Ldm TM1P9KOfE794KL Message-ID: <48A9DF65.3050507@gmx.at> Date: Mon, 18 Aug 2008 22:45:25 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chong Yidong , 445@debbugs.gnu.org CC: Daniel Colascione References: <87pro6hzwj.fsf@cyd.mit.edu> In-Reply-To: <87pro6hzwj.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 > AFAIK, savehist-mode doesn't save command-history. Please provide a > recipe for reproducing this bug. The comment below seems to contradict this (defcustom savehist-ignored-variables nil ;; '(command-history) but I'm a stranger here. martin From unknown Wed Jun 18 23:15:49 2025 X-Loop: don@donarmstrong.com Subject: bug#445: Invalid read syntax in savehist-mode's history file Reply-To: "Drew Adams" , 445@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 Aug 2008 21:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 445 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 445-submit@emacsbugs.donarmstrong.com id=B445.121909470314042 (code B ref 445); Mon, 18 Aug 2008 21:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 445) by emacsbugs.donarmstrong.com; 18 Aug 2008 21:25:03 +0000 Received: from rgminet01.oracle.com (rgminet01.oracle.com [148.87.113.118]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7ILOxf9014004 for <445@emacsbugs.donarmstrong.com>; Mon, 18 Aug 2008 14:25:00 -0700 Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m7ILOqFL025477; Mon, 18 Aug 2008 15:24:52 -0600 Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m7I3NAfS023757; Mon, 18 Aug 2008 15:24:49 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt355.oracle.com with ESMTP id 11547842861219094661; Mon, 18 Aug 2008 14:24:21 -0700 Received: from dradamslap1 (/141.144.87.68) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Aug 2008 14:24:21 -0700 From: "Drew Adams" To: "'martin rudalics'" , <445@debbugs.gnu.org>, "'Chong Yidong'" Cc: "'Daniel Colascione'" References: <87pro6hzwj.fsf@cyd.mit.edu> <48A9DF65.3050507@gmx.at> Date: Mon, 18 Aug 2008 14:24:52 -0700 Message-ID: <004c01c90178$dad3b2a0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 thread-index: AckBdphRvZo5VhRPQJCIEKyQKt4CYAAADkSA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <48A9DF65.3050507@gmx.at> X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > > AFAIK, savehist-mode doesn't save command-history. Please > > provide a recipe for reproducing this bug. > > The comment below seems to contradict this > (defcustom savehist-ignored-variables nil ;; '(command-history) > but I'm a stranger here. Yes, you need a recipe and knowledge of the user's savehist variables. It's likely that `savehist-save-hook' added `command-history' to `savehist-minibuffer-history-variables'. That is the default behavior (and a good one), since `savehist-ignored-variables' is nil by default. Another, less likely possibility is that `command-history' was included in `savehist-additional-variables' or `savehist-save-minibuffer-history'. My own values, FWIW: `savehist-additional-variables' is (search-ring regexp-search-ring) `savehist-save-minibuffer-history' is t `savehist-minibuffer-history-variables' is automatically set to: (color-theme-history iswitchb-history icicle-face-name-history find-tag-history icicle-doc-history junk-ring woman-file-history woman-topic-history icicle-command-abbrev-history ediff-url-read-url-history grep-find-history variable-name-history widget-function-prompt-value-history icicle-font-name-history hi-lock-face-history hi-lock-regexp-history shell-command-history icicle-search-replacement-history icicle-function-name-history face-name-history icicle-function-history icicle-text-property-value-history icicle-dictionary-history icicle-kill-history icicle-color-theme-history icicle-bookmark-history icicle-kmacro-history icicle-buffer-config-history icicle-search-history icicle-completion-set-history frame-name-history comint-input-ring dired-shell-command-history imenu--history-list compile-history Info-search-history search-ring dired-regexp-history info-lookup-history coding-system-history synonyms-history icicle-thesaurus-history input-method-history minibuffer-history-search-history bookmark-history set-any-variable-value-history yes-or-no-p-history set-variable-value-history query-replace-history grep-history read-expression-history buffer-name-history command-history regexp-history file-name-history minibuffer-history extended-command-history) As you can see, `command-history' was automatically added to `savehist-minibuffer-history-variables' (because `savehist-save-minibuffer-history' is t).