From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: common lisp vs elisp. Date: Sun, 20 Jun 2021 14:57:49 +0800 Message-ID: References: <87bl81kz3b.fsf@zoho.eu> <87tult2fvq.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9326"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 20 08:59:00 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 1lurQ3-0002FR-VP for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Jun 2021 08:58:59 +0200 Original-Received: from localhost ([::1]:58312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lurQ2-0008QQ-SU for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Jun 2021 02:58:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lurPB-0008Q3-Dg for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 02:58:05 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:41549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lurP9-0000D7-Jv for help-gnu-emacs@gnu.org; Sun, 20 Jun 2021 02:58:05 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id z22so20275518ljh.8 for ; Sat, 19 Jun 2021 23:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CD163Pg/HaXy7iK6laUMVKi0049qVHvUcrjmyGvtrpk=; b=rlnnb5DX7E+UrVN+7pt/LB19gYSJJiAvEOXMVVkP2qiQtRoniEm54vqlvPECeMyLZx c6GWkPHE71oSLLu8ofq4AEZnqtvUQpWWdW/9lAHjva1/KGWtSCSNg1Om8GyLvrxxyL7k Y+3t9yHHpOV6+Sw0JOcstsnBy6c4Vw8nbe1jSmdgiyS22qx3VxAfOfXsGmVh/sIB00gZ SHuJD7xv9OwXu/QsxOJlQX57xCgqqT9guTc1QCgDuGIrA1tAQXkS/C4o6LaVhxaUnwBd GluFV/6598HpXAawMoYDoh7Ds1XmKmoBqo1D97eqEoeq7pl8jTDdyG30BwHJhDUn2pjK gSyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CD163Pg/HaXy7iK6laUMVKi0049qVHvUcrjmyGvtrpk=; b=Hk2jSvKx1Y/37BSVOQ1qkvUEhiw3mb01L3l5qbiYvzxJ3dyeb4sR76tF8Cqz7kuS1k w2GHYpi841GRv9PtGq0Bz++paTeLhlra4qnsbK1UXqW6A4vg5vqXb9rhg614LCq+aOto cGeRzsxZRc3N3+NayZrLEpET0z5+V2CE2BTrBjxTTlCKnwClEwHnzVj+NaQU8yqQXyLa eFwHZsnVuBry60qo2EyhUreQF8sl1Cxgw75iNhyvqlGzeSne69p1SlVNMkF4+P+5qbHJ SDk+esjLg+YTcK7e5heeX/o4Ly7EIi+W/Y3I+n2eKTCWkD0HZ6y2kOXHsiqG2S6Xca0G JjYg== X-Gm-Message-State: AOAM533IXU5v/RIY9ZVwoFAjBwnn57m4WxC9rYSjXKfufR2atavzzqKT umIUjeDXSxMvyY/qijENaxMnvg/l15bvJLXT1MQ= X-Google-Smtp-Source: ABdhPJwHLCj8g168ohWJvNRwPhBsSKD04p3renHKjWM/qmBsgGjPLfdTgwvb45tmIzrpqYpHISCGzNelyq6hwslGl0c= X-Received: by 2002:a05:651c:1408:: with SMTP id u8mr16091582lje.320.1624172280990; Sat, 19 Jun 2021 23:58:00 -0700 (PDT) In-Reply-To: <87tult2fvq.fsf@fastmail.fm> Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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:131079 Archived-At: On Sun, Jun 20, 2021 at 2:46 PM Joost Kremers wrote: > > > On Sun, Jun 20 2021, Hongyi Zhao wrote: > > Basically, this means that I can replace ielm with slime > > (https://github.com/slime/slime) for more comprehensive and advanced > > functionality. > > Well, that very much depends on what you want to do with it. First, Elisp and > Common Lisp look a lot alike, but they are not identical, nor is Elisp a proper > subset of Common Lisp. > > Second, IELM interacts with your Emacs session. If you set a variable or define > a function in it, the variable or function is available throughout Emacs. SLIME > interacts with a Common Lisp subprocess and whatever you do there has no effect > on Emacs. So you can't define a function in SLIME and then call it from > somewhere else in Emacs, nor can that function access Emacs' state. Such being the case, IELM is the only available REPL env for Elisp, but I'm not sure if it's full-featured. HY -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China