From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: rust-ts-mode: appropriately fontify doc strings Date: Fri, 1 Dec 2023 02:50:44 +0200 Message-ID: References: <8734wotac6.fsf@poincare.umons.ac.be> 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="5872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Christophe TROESTLER , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 01 01:51:39 2023 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 1r8rkn-0001JE-HK for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Dec 2023 01:51:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8rk5-0000qU-Qd; Thu, 30 Nov 2023 19:50:53 -0500 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 1r8rk2-0000q6-TF for emacs-devel@gnu.org; Thu, 30 Nov 2023 19:50:51 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8rk0-0004xV-Gs for emacs-devel@gnu.org; Thu, 30 Nov 2023 19:50:50 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2FD7C5C0229; Thu, 30 Nov 2023 19:50:47 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 30 Nov 2023 19:50:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1701391847; x=1701478247; bh=meELGd/T43kDoPeocSbzhOP+ARDHNGd+oAg jXxzmrg0=; b=ndJDuWtB0jN+bCRXLR3mkj5OOMqukTrmHbty6NWkN2Q2XStN6+L rmQfvNeClgRKUjgQkPQ5ki/LJTL8ubltdVKMeXJjtQpbpXsN2cYzn2DaqcuRm50M uf13O+Htd7laZ5UIiltS3gB6eRYzvfYD0GyEtOzfNih4XBX/8V8K8E1ukOytADO2 qubirr0TrZPc2nWCXusKGlo4FfwbPdl1a83mghH7Jy+N42zZyoss2dvsldW2ngJ1 HIs3gikkxz0Lf/ZmKCW3M7zGHGkyeEFiDU+1obO6ft6cKJYTVoN4r9s66A7Xz7OE yDG2RvVWw0IXfA0iq5ExRf6DmMrk8NOYUMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701391847; x= 1701478247; bh=meELGd/T43kDoPeocSbzhOP+ARDHNGd+oAgjXxzmrg0=; b=W Ip2bIRDuiE+lu7sjdG5GjmbZ4SGLdS6JjwMhWXxcJ9721G1+WBke+f8I/BAsvLmT c7OOEPPONVgg06n+Ei3qVMX1d2p+2RYZ35l6rTWaiZxGPdG3lWEpSbJiQLoOdvnI G+adXrHjlfsluyatGvbp/YzMnOb552NZ/USOSSYOqv1x/im36kmUPcUMjXA7/CtN e4biEA83EazKKR5NK26iwAtOPhNEgTSpgEkfUoEw0balKUWXF8AB/3fUs4O3veVW y8Lqs+lB1gdXgEKvM32t071pp9nR5QIAYJkpMv8rJNkkvnPyPsC9sNQD92Evecck G7dKhALOEPRDalLZcoXig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeikedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeghedthedujeeiteeutddtjeekheejteeukeehffdutdejuedvfeevueeviedu udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Nov 2023 19:50:45 -0500 (EST) Content-Language: en-US In-Reply-To: <8734wotac6.fsf@poincare.umons.ac.be> Received-SPF: pass client-ip=66.111.4.29; envelope-from=dmitry@gutov.dev; helo=out5-smtp.messagingengine.com X-Spam_score_int: -49 X-Spam_score: -5.0 X-Spam_bar: ----- X-Spam_report: (-5.0 / 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, NICE_REPLY_A=-2.177, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313412 Archived-At: On 30/11/2023 01:21, Christophe TROESTLER wrote: > + (prefix (buffer-substring-no-properties beg (min (+ beg 3) end))) > + (face (if (string-equal "///" prefix) It'll probably be faster overall to use save-excursion and looking-at instead of creating a substring.