From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Making a function than can only be used interactively Date: Mon, 4 Jul 2022 21:32:18 +0200 Message-ID: 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="3524"; mail-complaints-to="usenet@ciao.gmane.io" To: monnier@iro.umontreal.ca, tsdh@gnu.org, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 04 21:33:34 2022 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 1o8Rp8-0000fY-3w for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 21:33:34 +0200 Original-Received: from localhost ([::1]:40436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8Rp6-0006qf-QC for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 15:33:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8Ro1-000672-1A for help-gnu-emacs@gnu.org; Mon, 04 Jul 2022 15:32:25 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8Rnz-0005jh-3x; Mon, 04 Jul 2022 15:32:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656963138; bh=iqIS4sXjxN5kskcPbSGRd8AUsyJwmwZqQT7goqZ/0gU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=X4ZfC6gc5VtaencdTT7+UTx19AaVlYfltTEH7oHaMvAqbTZJv7xlODS+VFsXKVsTI YfP8eJ2Q/oOS47wiBO/oMTcr0mUMoc2u/YkJ63lS5zhL2GaANGHlZ+hiIAqhLJ0eOp gXc43EbZ71g2qZp/xouGx+Oo7emku9UjHPCJ8WcE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Mon, 4 Jul 2022 21:32:18 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:XAPm4LzgdYV0ZdizhGsGP32qNLXXSvj5EhEH1WYCAW6ribEU1pJ31yfXwKroAuMwyIX1Q sBKaO4vpA+1Dc9vps7DCnWfqIXspsj8IkFZhOsnQDDMD53Aps62mdbrU2Q7oU5Iq8dMUS1rRS3Tf zMM9ct/rY7UBpPYAJXH5SwY147OlMgSPwFeLbNBx8eam3wOsiU+gfbeePw63xnhkKa0lzevt1vc0 jAjaxBsx+bavKuTAuQb5KFxGPDBwXoZLeaZCNNQa9t+Bqzdq7bR6hEEOArL2cQsSbCxlz+7k7j56 eE= X-UI-Out-Filterresults: notjunk:1;V03:K0:c+9r+NrfaAQ=:wNCnbwxhIQyV2rPMDyaPuL qoBWB3wmvnehCLPjevvoYjToymQ+E8yqvDJLHx+M4pJi8Gc9FoVCCM4CAhKHbM9DKOYeDnyzy N4o55uUQ58zhmZgT85Lwh0XFjVX4LPgvn8UTnmZDcVRmFLiNEj/m2CjMdTyHKsX3C1qelSrkA qnckBZ60JP6/TxQStC98AMef4zVnXQe++npSjES3a3cfgu0wetIH4hwqvXDBt+R9G1uD/Bbx0 n/HZCKDGRdk/ZDxC9n4RS+UELsIb7+rz6w1zL838NvsIfndk2eXqiDQO6s1iq54xpL9EJ29zR Okw13ndPZR2hDiGCCIIIyunGVS1C5CGZ4VLjyrKiC24BJspkJylIVahOSKPhbqZJDXFja5KlM 1hbiaP/VRdn0fg8L1nPPa8JgEFQ9xhkUjpdIo+SVQQPIMVoVJ7sYnTEQsAAI9grYc42sv0bin 0ptNpIQoO/DM/jSyAz4IJ2tugW9sorjOAa74Uv/bpl5x7315J77Ah0Zinhq+c0ye+dqnGWy/j 1PGrnRG7orsVtTHZcx8In1bxMsVsC+R0L58SNrLYMKGmoQKQ8QfmdGETBdi3zLXLjyeYCLMuF LoeBJmuGcoPaul/qozdAizkzcfHo93HJMqliZUbd0Usp2/JV3bZzeK03/LvNkRPDc3XUGJ5QV yqyRm16on7Ja4l7IkSf3juCIex/cR9t52G2Yf2m1P2m6ofsxbEKZ+2kfKqU7vEuk5/7XhZy7P rwOgRApv8DLNutE6dqV9rKCtIjvd/ZQX/OUzzgfbYJUDbkYRJdcRY+40MeVCQ6AOcZWgUhot Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:138292 Archived-At: Jul 4, 2022, 13:21 by monnier@iro.umontreal.ca: > "interactive-only" should go far beyond a byte-compilation warning. > > I suggest that "interactive-only" does actually make the function work > in an interactive-only way. > >>> >>> What would be the benefit? >>> >>> Stefan That it would do what it says. Defining a function `interactive-only` would only work interactively. Currently, even with `interactive-only` the function would still run as if `interactive-only` did not exist. Currently it does not seem to me that `interactive-only` has any operational effect.