From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: Making a function than can only be used interactively Date: Sun, 03 Jul 2022 21:28:13 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36965"; mail-complaints-to="usenet@ciao.gmane.io" To: carlmarcos@tutanota.com, Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 03 21:27:19 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 1o85FW-0009NW-UC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 21:27:18 +0200 Original-Received: from localhost ([::1]:33304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o85FU-0007JA-Jq for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 15:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o85Eg-0007In-Nj for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 15:26:26 -0400 Original-Received: from smtp1-g21.free.fr ([212.27.42.1]:16798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o85Ef-0007Yz-1l for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 15:26:26 -0400 Original-Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp1-g21.free.fr (Postfix) with ESMTPS id C7A31B004E8; Sun, 3 Jul 2022 21:26:20 +0200 (CEST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 03 Jul 2022 21:28:13 +0200 In-Reply-To: Received-SPF: softfail client-ip=212.27.42.1; envelope-from=brubar.cs@gmail.com; helo=smtp1-g21.free.fr X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MISSING_MID=0.497, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:138271 Archived-At: carlmarcos--- via Users list for the GNU Emacs text editor writes: > Is it possible to make an interactive function than can only be used interactively? I'm not sure I understand your question. A function, that may be called interactively, is called a "command" in Emacs. And a command can definitely be called interactively, either by using it's name (using M-x) or binding it to a key. See: (info "(elisp) Defining Commands") Does it answer your question ? Bruno