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: Tue, 5 Jul 2022 01:42:50 +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="36164"; mail-complaints-to="usenet@ciao.gmane.io" To: monnier@iro.umontreal.ca, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 05 01:43:55 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 1o8VjP-0009I4-CE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 01:43:55 +0200 Original-Received: from localhost ([::1]:60976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8VjN-0002el-I7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 19:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ViT-0002L7-8h for help-gnu-emacs@gnu.org; Mon, 04 Jul 2022 19:42:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:43067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ViR-0005tB-E2 for help-gnu-emacs@gnu.org; Mon, 04 Jul 2022 19:42:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656978170; bh=5ItN2IXXDDQ2BqnoCBGs88bnZ/ki4IgZX6FAe9AkINQ=; h=X-UI-Sender-Class:From:To:Subject:Date; b=O7t2E9NUJwS9jztWpfm33JWW87OlZV5Lv4dL/gXBJTbleWjQdOQIa7JPkkmb8Hi7q jfiyVkExgsOXv0Lh8FSUVikAUM/apfzQLEp291LKuv4Tb36Xb3qPbvhpuCOk0+7EaX 6ge+YNc8Ty9rY6ae8/RxreAyUvN5MqDHqTgP91sE= 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-bs07.server.lan [172.19.170.175]) (via HTTP); Tue, 5 Jul 2022 01:42:50 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:Zu5vsLSCB1HYuvF0+AoZ/69jBtn/5jB4uMwLVjICtNU3hTFYuIpVyrScpxQPXnJtwynLb 5ZTzXqEO4ZmVR/HTGrEs3yLUmzYboY+g4NlheAu8XNk1ibcBSBpkx62Gt8JSdShvSzQ+L+qCMvWr Y2ok39NSrTubMw6/B40uRQciyEn2oug7waa6gzDENKgsdhzEEuP+N9DeSRKx+8CkIXLs/+VvZ1KQ B1iL7Q//Qx1dB80GzADxNACLHvQUh0nEFGJwN5TzVCGyB+5JicO/4IdDoLI019FL4R2ZtENEcRTx yA= X-UI-Out-Filterresults: notjunk:1;V03:K0:jmUHzDMU2w8=:9kQnHkwLwi+nBgtetGBgTy idwyChvv4BHMv86sQpytdSSZLpTxaqXK4C832UaqTOF1VH4gOCH4u/IjFpW5bIrSNREe7SgXL cbbBMKj+SJlba+hQxGeZhfMEzv9x+iO7O21k2e/gbKDHqFvI8qS7MwBhq3URNDh6LDACnB1gR K7XpW7zRvyKAAmyoMO5RGIIxJ1IVnH8gFc6hf1Iie74c5P4qnSAEk6ff2rLUUjyHoUx2UlrY0 TYaRZUcQr38XnWiKg00X9rF16D4573+WfYEmMDRBTiWsMd6z95doWLcY4/t0JX7+mfXPcqJqE l2/dRhAIPyuXiRLHNErXZAl9Eh3stwsuGboq7lpzbULjZrm3sHgN177xgDuACK2Tle15m1jJi c0fXtmPT7CqqnS3Ku05ugShsEP3CTe08rVIneEyd2bmYyFLWS8DTuQt5HTBa84i9CizH7Lnz5 7qNhJMzNX5RoXOjZ3C43e7nWgK00SV5ytUgfQ4G+a/Hbb6ZLXzDxXqp6TZ9Z5uGA3A9iTTmjN 8Uvh6dWjmfKgILrIMyOGAqFsQ79KTQ2j34sRxnTMv83hspYgJeXWwLRNfdBsoM7suRqzV24mI 33pZQtmAu93UV4AeElu0AfPjSmmx8IUJ0cRG1l0oGIUhuM5m9FALwV1v2omntoM7gPTYqskTn Z2NXF1ibkinfP9yQAUKM5UfQUOXsarK5xD5VzANvGCNCky+mKG+QcKEzP7JOCwTRZw1LnnFpB +UQ4tBBQhSFMEAJm4wAB8Loo8vvzry8XM7kGpp13MaMGl2AWxjA7I4jAHgG5PzStHRWt31qa Received-SPF: pass client-ip=212.227.15.18; 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:138308 Archived-At: Jul 4, 2022, 22:35 by help-gnu-emacs@gnu.org: >>>>> Depends whether the person coding that function thinks it is. >>>>> What can he do then? Issue warning as you suggested with `declare`? >>> I don't think we can answer this in the abstract. So, we'd first need >>> to have some concrete scenario before we can start discussing it. >>> Stefan Even with a concrete example, it is quite likely that we would not be able to capture the way it was used. Especially if one uses (defun foo () (interactive) (let ((a ...) (b ...) (c ...)) ...))