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: FW: RE: RE: [External] : Making a function than can only be used interactively Date: Wed, 6 Jul 2022 01:05:04 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6300"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 06 01:05:57 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 1o8rcD-0001SU-Cz for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 01:05:57 +0200 Original-Received: from localhost ([::1]:39586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8rcB-0001AZ-Ob for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Jul 2022 19:05:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8rbU-0001AM-0v for help-gnu-emacs@gnu.org; Tue, 05 Jul 2022 19:05:12 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:44883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8rbS-0002dT-3i for help-gnu-emacs@gnu.org; Tue, 05 Jul 2022 19:05:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657062304; bh=D/D0iGrnOrE5UysHox9I35Bq++DNpnGnFkqKAcBqTyM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=iov4fc3WN/FNzN7j/B8Ww7lsZLMQdGCiiYixXex5TOjhR+51292Hpk96OfzJab382 eii5LJhhMh/BkaK/isMRxdZoJZ7GsMjmxOMJS4H7v3gCnDpC5xicDMZo2pZOkUKhYJ I1lFUWJIwKhCOUhK9xDZvsuCef6GJful94yC6hT0= 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-bs14.server.lan [172.19.170.182]) (via HTTP); Wed, 6 Jul 2022 01:05:04 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:cVg5tBvoiA/ZCqp7rKBkLpAE4Hu5LlHzhsjkOEX3g9y+qStcVMnJYWoTNOPTNXsv/Qn4N rzQVXCp4BWY6uJJHyvzeg4auy2vIqoT175noTDJHhsLkJSz2DV6PVqvY5YrxVbpRvl5B9xyYl445 XnqpfdSfKhzSDKHKMcUE17bytQmyzuunTose0pn7nQPlvJTlvzY7aK6eiyteBNwWvT5dHsE2agDJ mWQm9Rt8TZRzr8k2LrvJ62j/IvjTQOaC/W2goJ/BPHo/FC1hEcEiAziDUTBuFLn1t4p7Ko3j3UQc pY= X-UI-Out-Filterresults: notjunk:1;V03:K0:ubjFc9SRCno=:X+CHayVoNMlJvyhAk0XDlM 4ZXRfHTPXdWkv5iEXBMds5YZLwJPRZxeIqCrWwhUYz7WqnTqhTEtKc5oV07AHwXhcLtiqBc8Q TYN4dHQJwThpO8IQ8xRgICcTQW2p4OPiSBMBdo6ArROzNfkGOkyTdx1McpVb6o5ubEYnDZz0t mhJyPISmOwEfd0ufMutZY5nAdRFZQ0ZEiJ7dD2IAYrUouYsZLbDo5yE6lsvSya96wGSQduND6 /UMNCnOZkjvzjFE6giRm/8CQ2q69sHuiU1+pafZLLStNqviHK+K7bYHxC15NeAi6Vp78PClml K/c8TE8dIwnyxbl8axdTXkJvGsiNwH0jF/Cxp0vRScasdMrHsht2/95moxK58Gy+6+Z4+m/tk hdkRJ1BjdlF52AH8Ulm4ppEYWSAjZ59JsvIi7ni50c33/BXuhai3Hae+LvFuKXqA5YZPKnniB /5TYKnfpP8ccWFUAASiCQb7+KIVJ4vlfOSVYmL2oOaB6554gwFSD6eYA0P0CZ7EFaExH6Pfaw s/0bAXqIzN1A8fCf+69UwZQkjFZpap8krOvgfMNPZTByG/+MlAk3zIC3scXkl4pkXmHdbJjl7 POg+7WA46t+yu4AZ/55e/J62ik4De8W7Aaz6J4VpQG8Iz2q3QhSfqIaSb0zCBSs/llVSNtYYl JVY58w+V1y0I3fI+NZJXJhKX6CJLIkvYErEU6UAzmjisUZUjJGWYk3+M6mNE3ucu8lnPlwFgW YVM0rjCRgOvF6y4aiFRVD5TYx/862aKqAt6qM+Dtfejan1l/qTRXcJGU3wknUl11X2vL2dRh Received-SPF: pass client-ip=212.227.15.15; 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:138320 Archived-At: > Sent: Wednesday, July 06, 2022 at 10:40 AM > From: "Drew Adams" > To: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" > Cc: "Christopher Dimech" > Subject: FW: RE: RE: [External] : Making a function than can only be us= ed interactively > > I guess this was maybe intended for the help list? It was. Thanks. > -----Original Message----- > From: Christopher Dimech > Sent: Tuesday, July 5, 2022 2:15 PM > To: Drew Adams > > > > > > Has any concrete description been presented > > > > in this thread that makes clear what the real > > > > problem to be solved is - the use case behind > > > > the question? > > > > > > The filling of arguments could be difficult > > > if a sequence of interactive prompt depend > > > on previous values. > > > > Hard to guess what you mean. Example? > > > > What's to prevent someone from calling the > > function (whatever it is) with appropriate > > arguments, whether or not some of them depend > > on others? > > > > > One thing that has been discussed is the following > > > (defun foo () > > > (interactive) > > > (let ((a ...) > > > (b ...) > > > (c ...)) > > > ...)) > > > > Didn't Stefan show that only to indicate that > > you can prompt for values in the body of a > > function, instead of (or in addition to) doing > > so in an `interactive' spec? > > Yes. That strategy could easily make a function inappropriate > for non-interactive use. The result would not necessarily be > a result of bad design. > > > IOW, presumably he was suggesting that some of > > the "..." to provide values for a, b, and c > > could come from prompting a user - IOW, making > > the function interactive regardless of how > > it's called. > > > > I don't see what that has to do with any > > problem of "filling arguments" when calling > > from Lisp. > > > > Sorry, but so far I'm not grasping what the > > problem is - what OP is really trying to do. > > The OP wants to make the function purely interactive. > But at a low-level, you can't have a function that > can be called interactively and not non-interactively. > > The sensible way out is for the OP to include its inappropriateness > for use in elisp code in the documentation. Either that, or using > a specific part-name separated by "--" for the function name, as > indicator that function is inappropriate for elisp code. Emacs > has done this strategy before. > > > But again, I only skimmed the thread. If you > > think the question / use case is clear to > > others then please ignore my feedback. > > Although I understand it, the result would either be unreliable or > too cumbersome for actual use. > > > > >