emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading an output from prin1 (savehist bug).


From: Michaël Cadilhac
Subject: Re: Loading an output from prin1 (savehist bug).
Date: Tue, 23 May 2006 19:17:24 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

address@hidden (Michaël Cadilhac) writes:

>   I don't know how this bug can be worked around.
>
> emacs -Q
>
> (defun foo (marker)
>   (interactive (list (make-marker))))
>
> (defun bar (marker-list)
>   (interactive (list (list (make-marker)))))
>
> (defun baz (marker-vector)
>   (interactive (list (make-vector 1 (make-marker)))))
>
> (setq command-history nil)
>
> Then M-x foo M-x bar M-x baz
> Then C-h v command-history
>
>> [...]
>> Its value is 
>> ((describe-variable 'command-history)
>>  (baz
>>   '[#<marker in no buffer>])
>>  (bar
>>   '(#<marker in no buffer>))
>>  (foo '#<marker in no buffer>))
>> [...]
>
>   If some code output command-history with prin1 then try to load it
>   back, the # things will cause parse errors.
>
>   This bug occurs to me when I:
>   - Use bbdb-create, and add a new buddy,
>   - Quit Emacs and launch it again, with savehist-mode enabled.
>
>   Regards.

    I didn't see any fix for this one, and I don't know how to fix it
    without trying to remove all spurious entries in the saved values.

-- 
 |      Michaël `Micha' Cadilhac   |   Mieux vaut se taire                  |
 |         Epita/LRDE Promo 2007   |    Que de parler trop fort.            |
 | http://www.lrde.org/~cadilh_m   |            -- As de trèfle             |
 `--  -   JID: address@hidden --'                                   -  --'

Attachment: pgpKDcdoyzAPe.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]