From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Please convert me to ielm (or sort of) Date: Wed, 20 Oct 2021 11:18:06 +0200 Message-ID: <3e0ec84a-91ff-425f-ecb0-e12fe63fe3ce@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8323"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: Eduardo Ochs , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 11:19:01 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md7kS-0001w0-Qo for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 11:19:00 +0200 Original-Received: from localhost ([::1]:59800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md7kR-00077V-1I for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 05:18:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md7jg-00076P-Dk for help-gnu-emacs@gnu.org; Wed, 20 Oct 2021 05:18:12 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:50946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1md7je-0004iU-O3 for help-gnu-emacs@gnu.org; Wed, 20 Oct 2021 05:18:12 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id o24so9980980wms.0 for ; Wed, 20 Oct 2021 02:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=TOrScXPoMiFeLNWQP1AWYrc1eN7STjEZLS2huQDem04=; b=DczM5/9ShnXxfd9AarvT8FfLqHAdopEnpX9qLtYZb8d5KAPb4ul48upYmPRhy+A7Tu P4CV3Y2m4WGJMQbWCJ6hB31wAvzzNPJ681eInxu0lTTl0sngXp81Dc99BqQD5zMk8KVT TL5jBHjpJrbIczgZjkw/yjfU65kh7FgcRoX5Uv8615OwG7HCgNRjVDQ5TOgJWMXBp56u Y0cHup78ABr99jnICDzG6q6oByvciIHD4K1O0t24AXwnN2GZAfR5E/TGRT7r4E5TMtna vZX/pMHzL2hAzZQWTtqCVZOr4+uqe4eBfPbFaZiyDnqdi/7m4P788XiWWEOE8iXQCy6K LS9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=TOrScXPoMiFeLNWQP1AWYrc1eN7STjEZLS2huQDem04=; b=ei2e4LU/SHP12bex6i8IVh9tqK+ehbph7NRaY0VAWhgv4o6a+IM0mwazIIfcuo234W ECDQKsZbom1fJQ+8zjrtMV2YJOqkvTm9yKm7EZFqoZTTC5OY7QFg0MNUuVnkrke2Yzid C6DJrk8q+nX0Lu0mY4rZhcgYikZW0G9ZOyQOMI+4jc6bzEh8iox/eFW/37Sq+RZwpT+C x/mEcDjddI/JQMPoegoemDd80j5yVOkz0ab8gfe99bSXMXK5GbOlRENrdXiBI+ymKok6 Z6zMRjkWbgnoM995aLtuVyj3i1gefoqZr8LUmCogDxEtOyQG/ABan6ldzh/MWAvrjXXr Zydg== X-Gm-Message-State: AOAM533eU+f8sripcDrn178Gbs6hEjaYcIWWJ+l39lttOAuhaGZCY86h wtaY0cKVHypwsdWcElRspJvk9Kcn80fhfw== X-Google-Smtp-Source: ABdhPJxvNlUySdgZOkBGr4J4BnTGP70G9xz8EuHmMDpehSZTEoSjUuQSWoajinKth5hM162/TQjSpw== X-Received: by 2002:a5d:64cd:: with SMTP id f13mr52558035wri.92.1634721487741; Wed, 20 Oct 2021 02:18:07 -0700 (PDT) Original-Received: from ?IPv6:2001:628:2010:4094:546e:e1d1:aadf:80e? ([2001:628:2010:4094:546e:e1d1:aadf:80e]) by smtp.gmail.com with ESMTPSA id r4sm1798377wrz.58.2021.10.20.02.18.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Oct 2021 02:18:07 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.074, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133921 Archived-At: On 20/10/2021 04:24, Eduardo Ochs wrote: > Hi people, > > How do you handle history in ielm?... > > More precisely: suppose that you were trying to learn something and > after running, say, 42 sexps, in ielm you sort of learned it - and a > lot more. How would you save these 42 sexps, or the more interesting > sexps among them, to your notes? > > I am asking because this is trivial in eev - eev enforces a style in > which we save all interesting sexps in our notes, see: > http://angg.twu.net/eev-intros/find-escripts-intro.html#7 - but I > would like to add a section to its docs explaining that I never > learned ielm properly, but it _seems_ that ielm people would do > something similar by doing the things such and such... > > I guess that most of the people who use ielm are not compulsive > note-takers like me, and don't have a goldfish-like memory (*) like > me, but some may be... Hello, The simplest answer is to C-x C-s or C-x C-w the *ielm* buffer to a file, and then if necessary, use emacs facilities to prettify the output. You can also look at the variable `comint-input-ring` and the functions using it. Best wishes, Thibaut