From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Elson Newsgroups: gmane.emacs.help Subject: syntax question for defun Date: Wed, 28 Aug 2024 13:01:33 -0700 Message-ID: <6a7b894c-8c00-482e-b75c-ce87c0eb2b9c@greatalpha.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8075"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 05:29:13 2024 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 1sjVqT-0001yz-4C for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 05:29:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjVpq-0002E0-7V; Wed, 28 Aug 2024 23:28:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjOrN-0007hU-P6 for help-gnu-emacs@gnu.org; Wed, 28 Aug 2024 16:01:41 -0400 Original-Received: from smtprelay0012.hostedemail.com ([216.40.44.12] helo=relay.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjOrL-0003E9-6Y for help-gnu-emacs@gnu.org; Wed, 28 Aug 2024 16:01:41 -0400 Original-Received: from omf16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B57FC160746; Wed, 28 Aug 2024 20:01:36 +0000 (UTC) Original-Received: from [HIDDEN] (Authenticated sender: delson@greatalpha.com) by omf16.hostedemail.com (Postfix) with ESMTPA id 3CE712000F; Wed, 28 Aug 2024 20:01:35 +0000 (UTC) Content-Language: en-US X-Rspamd-Queue-Id: 3CE712000F X-Rspamd-Server: rspamout03 X-Stat-Signature: sdrwxz1sfhuqbmroezpu87cg6z7mkqka X-Session-Marker: 64656C736F6E406772656174616C7068612E636F6D X-Session-ID: U2FsdGVkX1/hbOpLS01Pr+q9qnCeUen7abXQ0FkBG4U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greatalpha.com; h=content-type:message-id:date:mime-version:to:from:subject; s=he; bh=4mmURvz8lI1ivekCsGUWeZFr5PnmebVROlLgS8fvBsA=; b=VIBK3u7JacPOH9NFt4Eo56VPSuMB5i4cyVwC7bt/jpFYRSuiiQ0g60oGh9GKG7r+5nScn6jL/lM/Dp0+OE+BW+DZwqSqufw3BbUdutPmbKJ/u11HLpJ+DJpgn5YWhUZb5X56+jK+kAgng0QHhyR701J1LaBaagCfntgwZUIcL50= X-HE-Tag: 1724875295-480978 X-HE-Meta: U2FsdGVkX19OTjyOY6jcn50/CVGViyP0JQId7hCEuQJ/NVDU4idn8jLKeWJr+D0TQ9hocyQMPgLoRnAXrFV1zehJNQt/mOHpKO3KR3aIMB5ouMwq4gQ81a+8dhedosI9NjbwuBHc0y9xP7sAAIR4cECOUQFbMUux6el/8ICOkvvZamNAVjVVsL1s+pWNK/yj3FKzhjeqtU/zIWbP2g8tqd2YpKKzrHXnMGJRN8wI1u4Xj6Ua4O4FXUinvSpRuYzG1Vj3awSwU9aFydzIWt56dV02jotrC07Qhf/I5fZ1xEESByy/lhicaDFxsfcjATsqzv1YGKGFQ5nAChl2MrjWX6xS1w08uYklyU4rI7Nd3N7bEQd3wj1aW+9q8QGHyE9rUsA2CnV60/Mhb0QNTvqDHC585i31rFY+ Received-SPF: pass client-ip=216.40.44.12; envelope-from=delson@greatalpha.com; helo=relay.hostedemail.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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Aug 2024 23:28:28 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147846 Archived-At: Hello. I have been using emacs for ... a while. For questions, I have often browsed and browsed (i.e. googled) and ... and usually find a good explanation. But sometimes I don't find an answer, even when it is staring right at me. My question: To emulate something akin to the PL1/C/C++ arrow notation, I have used: *(defun -> (object method &rest args) ...)* and it works. *Is this valid elisp/lisp?* If it works only coincidentally, then it might break in the future, when a pressing emacs issue is resolved in a manner that requires plugging this "loophole". If it is formally valid, where does it document the level of flexibility that allows this syntax? If it is not formally valid, then why does it work coincidentally? I'd like to enhance/use this code, but I hesitate due to this question. Thanks in advance? -David