From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: How to add pseudo vector types Date: Mon, 26 Jul 2021 17:30:44 -0400 Message-ID: <2a75e32a-796e-837d-7215-aceead84fb52@gmail.com> References: <83h7gw6pyj.fsf@gnu.org> <46BBFF88-76C3-4818-8805-5437409BEA93@gmail.com> <83wnpq46uk.fsf@gnu.org> <533BD53B-4E85-4E9E-B46A-346A5BBAD0F5@gmail.com> <258CB68D-1CC1-42C8-BDCD-2A8A8099B783@gmail.com> <1a776770-50b7-93cd-6591-c9a5b3a56eb8@gmail.com> <8335s64v10.fsf@gnu.org> <5380C92B-6C15-4490-A1E0-1C3132DBB16A@gmail.com> <83k0li2shw.fsf@gnu.org> <86wnpg82v3.fsf@stephe-leake.org> <83lf5wyn0z.fsf@gnu.org> <86pmv66yqg.fsf@stephe-leake.org> <83a6maw705.fsf@gnu.org> <83r1fluikh.fsf@gnu.org> <83mtq8vqmn.fsf@gnu.org> <87y29sg7rt.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 26 23:32:02 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 1m88Cg-000644-Ah for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 23:32:02 +0200 Original-Received: from localhost ([::1]:34848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m88Cf-0004Vg-4i for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 17:32:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m88BV-0003p2-8C for emacs-devel@gnu.org; Mon, 26 Jul 2021 17:30:49 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:36527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m88BT-0003B9-JF for emacs-devel@gnu.org; Mon, 26 Jul 2021 17:30:48 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id b20so10380652qkj.3 for ; Mon, 26 Jul 2021 14:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=s31PGmmajyFsFSkX3mOhdKeBQ8qASVaMF8kqNwIyvPQ=; b=P32zvrYjnq25N8jM0NXmUFXQ+Y3EvTJYg53HOpc/euC5HejGCCYQtBnN+XG6glbayD fl9jdXG7yCzKEx1f+pVYw8pR9++GUmGLyjIPZjrfeU9mPx9KeK9pdXLpZbj45J7x9LMA SquuGfrDxZ/Y1AnDCnR75H1mWb0+QP/KxEMfd6bwZTMDCFS9mWooVeSjF9R0D3wV3IOz R1NYtJkGxT+6gaORELri6ocnQEWIoS4wKrlx+p9Itayh72ZIdYWkRMwVR+xkw4QWAAnt 7x9CefScJKMX+6+P8E3vDDX3OqsnpINHT4GJ3S3DnUuUjyuKaWWTrjf63NNrvg9hWm2N idBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s31PGmmajyFsFSkX3mOhdKeBQ8qASVaMF8kqNwIyvPQ=; b=bfUDgGWsnguwJyV+t7uQ+jIQMm7CKRXuNvwJQ0h2FOKDru0gODZ9ciCr96C5yWwmvw cSk9l0mOAE6nLnvKs3DLL2WXQGA7KKKctmBvceC1FE9sveCP8P1y7Mw/D/p7gEivot3i UuZV3wZw1dpZop/z8W53MdEECV+p7jGyz6ppZWXdSr1PSH8ouZL0ZQa1LBCGlICaZYYI hAtRVrYcCgBCUTbKMzHvMSwGWHs3/bFSOLOWXSFlH85U1mtbvFI4puD7+iZwCB8/sQIA 3lyCYl7oJWc80LAR09jrx/Shkk0lASIbtSN5HSlr4Dov3NSExIX52V/7g5HlQkSgQ5Af DIvw== X-Gm-Message-State: AOAM531B/gWuN+LWqAyl+2wEQV5CEPSZn4qhamrLy+wXdFT8N4Mx0UKl ILiYP6nAfChUdCDGwLQEN2rblkb8DfU= X-Google-Smtp-Source: ABdhPJyNHnf0Crdwb6nKCen6qLfNOQj+vkGZVchzIu+YH999jYOk3Xun7ty8/Yd0CO8e/3qX1WDrwA== X-Received: by 2002:a05:620a:2953:: with SMTP id n19mr11831394qkp.223.1627335045803; Mon, 26 Jul 2021 14:30:45 -0700 (PDT) Original-Received: from [192.168.1.11] (c-24-61-240-80.hsd1.ma.comcast.net. [24.61.240.80]) by smtp.googlemail.com with ESMTPSA id d19sm664371qkn.94.2021.07.26.14.30.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 14:30:45 -0700 (PDT) In-Reply-To: <87y29sg7rt.fsf@telefonica.net> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=cpitclaudel@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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, NICE_REPLY_A=-0.438, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:271673 Archived-At: On 7/26/21 4:05 PM, Óscar Fuentes wrote: > Think of an Org file with some code blocks. It makes no sense to > expose the whole Org file to TS and, I guess, it would just > complicate things for no benefit. On that scenario, it might make > sense to deal with the code blocks as independent entities instead of > parts of something else. Isn't this example actually in favor of *not* narrowing before giving the buffer to TS? Consecutive org code blocks often build upon each other, so you'd want to give the whole buffer to TS and restrict its analysis to just the code blocks (multiple disjoint ranges), a results that you couldn't achieve with narrowing.