From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: Help Understanding syntax-propertize-function Date: Thu, 25 Mar 2021 01:54:42 +0300 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="5563"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: emacs-devel@gnu.org, Reza Nikoopour To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 24 23:56:39 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lPCQY-0001LY-LH for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 23:56:38 +0100 Original-Received: from localhost ([::1]:58286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPCQX-0002Jf-8t for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 18:56:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPCOn-00010Q-7j for emacs-devel@gnu.org; Wed, 24 Mar 2021 18:54:49 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPCOl-0001Ha-KR for emacs-devel@gnu.org; Wed, 24 Mar 2021 18:54:49 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CA7A05C0159; Wed, 24 Mar 2021 18:54:46 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 24 Mar 2021 18:54:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=mXO3Ha0rHXHaN3t9d4xwm9b/YY BOzvFLXMm1lI+A/LE=; b=eKoRatoBLehOnJ1V6GJjQltOoP0NyMTb10oWl0+8Yy wNGE5HXC9c5hu+a2zXoWsbpwFU7MVocqqJNtO7LDjDKObHDwCKUzU7D6LvjvJfAg NnBBSAcLs3zHJyIEuvbNo3gCN1d24wBttqVc8Fb+N6T4msbssm69Xsnz9+cULKqE HtWeWDxRln7XL5TQvOJR19oG+UfBEZO9UEAyO18iMP+vJg4ZPrwG4DsleTJkMhVe umCng8HHVSEWwoHOIAqrxcMhVVKbaRUH5KJ5rE0AcWAnm75AHPVMswU8z2PWuCW3 MyCrq3ud7ygY0cudyn/wYaMNe/utWjKA9mE+4zznsi8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mXO3Ha 0rHXHaN3t9d4xwm9b/YYBOzvFLXMm1lI+A/LE=; b=k7f8wm3/PisHpKui7dJxul v6GFOKz8RPy3rQwLgaoCyelTK0rUVnIcy5JAenlPBUy1UhIeAGki/DOIhrtbIxK6 mh0haNa/bEHSsS393jKORBa29bXt2672iSNhqGMATmj6qm+KJVJYa10FlvFu37Rr bDZk+sMpP2wlvY9sbd226J4uCL6Tqq/VJyUdBKynNVKCB98mQqFWsLNFjgM3A9DL LmXGh/hDiRP2uahKogDbKRE6amxAh1rc2eJ6+4+oHSfK5mCiyu9DYA46esnWUiab QF8v1GG1QoX4kqQzgojyRkCFflEatgOS+jjz9kJp+XQidrPsFRaFuH2rigP/bdfw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegledgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecukfhppeekfedruddtvddrudegjedrheeknecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepfhhguhhnsghinhesfhgrshhtmhgrihhl rdhfmh X-ME-Proxy: Original-Received: from fgunbin.local (unknown [83.102.147.58]) by mail.messagingengine.com (Postfix) with ESMTPA id EC315108005C; Wed, 24 Mar 2021 18:54:45 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 24 Mar 2021 18:10:20 -0400") Mail-Followup-To: Stefan Monnier , Reza Nikoopour , emacs-devel@gnu.org Received-SPF: pass client-ip=66.111.4.27; envelope-from=fgunbin@fastmail.fm; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266993 Archived-At: On 24/03/2021 18:10 -0400, Stefan Monnier wrote: >> There's the prog1 form at the end of hcl--font-lock-open-heredoc: >> >> ... >> (prog1 (string-to-syntax "|") >> (goto-char (+ 2 start)))))) > > Indeed, there is, but I don't know what worries you bout it. > >> It looks like it's meant to be a special "(prog1 EXP . EXPS)" form for >> syntax-propertize-rules. > > I don't think so. Then prog1 is confusing there. It's not special, as you confirm, and it's not needed otherwise. Just (goto-char (+ 2 start)) (string-to-syntax "|") will do - without raising suspicions :-) Filipp