From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Making a function than can only be used interactively Date: Mon, 04 Jul 2022 09:06:09 +0800 Message-ID: <87bku5vg8u.fsf@yahoo.com> 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="16170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Bruno Barbier , carlmarcos@tutanota.com To: carlmarcos--- via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 04 03:07:06 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 1o8AYL-00043p-6p for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 03:07:05 +0200 Original-Received: from localhost ([::1]:48026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8AYJ-0006uQ-OU for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 03 Jul 2022 21:07:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8AXg-0006u1-7O for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 21:06:24 -0400 Original-Received: from sonic304-22.consmr.mail.ne1.yahoo.com ([66.163.191.148]:42819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8AXe-0000td-2R for help-gnu-emacs@gnu.org; Sun, 03 Jul 2022 21:06:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656896779; bh=qf8oirA+CvPhat0ujbieg8USI9o7Y96m4THpm12Q+1c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=h/WueXgvufCBdJY4/voaubkAKTuZN7I4dFOMgXBhZ5fSzCJ8iOumtdXdDAQw97IOaZWBO6p81cgVJ337mnND6UjEt/WGTDiasGa9/vSlJoDcxta4P1LyUq0fZ6cTAd9OvE8669rfP52RPsI0Ef9gS+0YbfGVNP0rvdFtc9044L5uHEwjqTkYRS7gX6LPEWnuK4ly+NZteFmHBfxKUcn/V5xs0mHk75x1Oob4SOLQ1rWftex5O/RKpwm4Ba6XjvAL0+nt4NqGlFlaAJZgSSnulSqKgdHVGrCAn1K3pK5+bspaZKKZc0Dscv/psI0mw13fGivjkZhxVKOVOJW55L+LTQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656896779; bh=X7OcKyP0QmWz1FEhx+0h0KiFBRkSgwfN9+8/80uT+AN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=WoAAPhYxvta0xXTvR5UwGc3k7XoSF8y7xmZoQbbECrDLxDocdRh0gSx7qIGHRCK0d2rk1tbfWGaz1qqnMh5QpiIaWLjuTxbTY3PYPnH+fuYfHOpeYJYRDKBqmo+ktFoeI4rHL9B1uL/6ER1pwbRw9G0AaApnw7qLDsUGTEFzKVilhvADhzk7ry/M4EN4nI9SYFAIW3e5aKZzbotqIc28AcGRR2ZjxQnCXzhl/kob5SNfrnZowi91Lc26EMN68/2oPXm3IogOsIxaoktNUue8jDo1EcEKFmQ50bSQnEb3KpIqMjOrdijw1KQG0Cq8CYYuyihb4awFElodNzolCRQfKQ== X-YMail-OSG: OEomXvoVM1m9._jXY8MDUX6aW4xFzITqPusX5rVtkYkUDL8ORx3dYgUuuvjqdgx UzdItrRi8tnQjEuXoidLhNKUKz40zMoJTv6HTX61fii9fXBRRjHXr6JgvqZhnzyRGPF7N2nqQPVv 0eeiszBT8Af5nIoNy.xXxES2jdku4lbO2HbSveTgpklr8cTm_YKv1Om9DEtM_U9JMvRDW8plLW0Z SAV0Z7xgmcKbGGd9P5ueOeI22ZlXA3P.xHnXzXXWcfIawtzkP62Qphk0Xu7SwYyRuBCY7JwIguan jegawzP03PDzt.XyW5BZCISEsHx87BwwhLbTSDA5y4Nb2nKGuCQv5KZgJJszs07SkZmmghwNvQc3 ZKJrzuvr4uh1znCRclAbYYw.ex67.Ka.VfA44lXFaheS0iBTDbBR6FCjbp5mqvR75PEp4H2nYkY2 ikow1z2hS.jUrFHYlxzeBzXoA.PIdFLUbr0hm3GOcbz3lK0rr2T1ku5d4O2QFsSJjmWKuHQ9efSV 888NhyXVeS3lu4C1GBzs0RwICUS4UpPZs0z3KW_2Umif6KPy6tIjLFhjQ_cwHjA69Tv3F8nGzPQ3 e8ulEO5EwMOuQz1BWda9zuTmxichf.J7zE2aCoOAb6BqcRZPuVvMR4gMKcGURhumKkJX_.k1bJU1 V8rl4cGlW.JgE77EF_08M57ZReq8zivRFOi8Klkj.kqh9inSh9ETgZhRlK0SOQSJDxfQfQYOOI8Z oVcHOwM9IQ.EPBpphsmq6AKgj7xteJtklxrxXEf6tZ8S528lr26T1NNMt4gIAg64HtCXQjkM7amz H_LblRquXsheUhw9tYka1tyr6zv7NrB3TNUispiU9F X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Mon, 4 Jul 2022 01:06:19 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-27vvd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 244239528caec15d69cd7046c738b843; Mon, 04 Jul 2022 01:06:13 +0000 (UTC) In-Reply-To: (carlmarcos's message of "Sun, 3 Jul 2022 21:36:58 +0200 (CEST)") X-Mailer: WebService/1.1.20381 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.148; envelope-from=luangruo@yahoo.com; helo=sonic304-22.consmr.mail.ne1.yahoo.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, 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:138282 Archived-At: carlmarcos--- via Users list for the GNU Emacs text editor writes: > I do not want people to use the function non-interactively. Then throw an error if not `called-interactively-p'. But see the doc string for caveats.