[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ielm automatic saving of history -- bug 67000
From: |
Eli Zaretskii |
Subject: |
Re: ielm automatic saving of history -- bug 67000 |
Date: |
Mon, 14 Oct 2024 17:05:31 +0300 |
> From: Augusto Stoffel <arstoffel@gmail.com>
> Cc: Madhu <enometh@meer.net>, Simen Heggestøyl
> <simenheg@runbox.com>,
> emacs-devel@gnu.org
> Date: Mon, 14 Oct 2024 08:23:09 +0200
>
> I have a different suggestion. I think IELM should use savehist-mode to
> preserve its history.
>
> When loading ielm.el:
>
> (cl-pushnew 'ielm-history savehist-minibuffer-history-variables)
>
> When starting an IELM buffer:
>
> (setq comint-input-ring (make-ring comint-input-ring-size))
> (dolist (cmd (take comint-input-ring-size ielm-history))
> (ring-insert-at-beginning comint-input-ring cmd))
>
> After each evaluation:
>
> (add-to-history 'ielm-history code comint-input-ring-size)
This addresses only some of the issues brought up by Madhu. For
example, the main bug, the one with encoding the saved history, is not
addressed, AFAIU.
- ielm automatic saving of history -- bug 67000, Madhu, 2024/10/13
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/13
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/13
- Re: ielm automatic saving of history -- bug 67000, Augusto Stoffel, 2024/10/14
- Re: ielm automatic saving of history -- bug 67000,
Eli Zaretskii <=
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/15
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/15
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/15
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/15
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/16
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/16
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/16
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/16
- Re: ielm automatic saving of history -- bug 67000, Madhu, 2024/10/31
- Re: ielm automatic saving of history -- bug 67000, Eli Zaretskii, 2024/10/31