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: How to add pseudo vector types Date: Sun, 25 Jul 2021 01:54:41 +0300 Message-ID: <3e863f20-82d1-405c-0393-f2be39c8fe89@yandex.ru> References: <83h7gw6pyj.fsf@gnu.org> <45EBF16A-C953-42C7-97D1-3A2BFEF7DD01@gmail.com> <83y2a764oy.fsf@gnu.org> <83v95b60fn.fsf@gnu.org> <00DD5BFE-D14E-449A-9319-E7B725DEBFB3@gmail.com> <83r1fz5xr9.fsf@gnu.org> <1AAB1BCC-362B-4249-B785-4E0530E15C60@gmail.com> <83czri67h0.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> <865yx09hum.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2017"; 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 Cc: Eli Zaretskii , =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= , Stefan Monnier , emacs-devel@gnu.org To: Stephen Leake , Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 25 00:55:36 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 1m7QYS-0000HH-Q5 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Jul 2021 00:55:36 +0200 Original-Received: from localhost ([::1]:37138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7QYR-0003Pd-PA for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 18:55:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7QXf-0002iV-K9 for emacs-devel@gnu.org; Sat, 24 Jul 2021 18:54:47 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:36588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7QXd-00066p-Vt; Sat, 24 Jul 2021 18:54:47 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id l11-20020a7bc34b0000b029021f84fcaf75so5744202wmj.1; Sat, 24 Jul 2021 15:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ypq5Ru7UlzcBYysY1tn+1DN6bDtJoowjhBZe26/tSZg=; b=nL/MB6OHrUqkGfiH3J/NvOaUgXzhh+by+ytDO02pe4NmOcftTcCpSLmwsT85uUmYOK +gnQ6Or0ftcrP4Qtfebt8iDassQibgC0awRCUwuaE5A7EQ8WU4+Sy/00YT5Qik8Fp3/Z rhnyGpnwqwP6Phke8TkKt1CH7ng4Vr32tqtk7kEG6S0A/rtGpI+49ggMJ2U9mr85W/g5 gmoERouuNELEZCZuONYnSXjD4BRVL4e+UrYVZZtucfDJnIAMgQFj+VzYi5OFKAePosw8 3wOy0cPfnBJqvpdGV155qL+V9MvTE+IijGupo00dRe8fah08EJQaJgmIPQUu1Fqqmmxy Su5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ypq5Ru7UlzcBYysY1tn+1DN6bDtJoowjhBZe26/tSZg=; b=fj31KdOmH04QdbEm3ZyWkc3L+FekjPcFqBj2GDZB0vpJAZXHq8gjQCMIXA1f71Bc1H T8iBfRsAVKYS5TAzz3Ee2QxFNRr3BPzGQh9x9rVWixZ56ZxdKpSRoAl5P4WwfIwz9LRH bpEHiVNN0/1wM2s2GvnbZiSdY00g78ZLNgUxzVOUnpVrpdeSeg+9yy9IAAsg3kiRX6pq PHtKxY0cZNbDIuC4F6Hpe+MM+LXpDDRzBsdRMLBhPy7Nk6YSi2PMgzPBgqS1QAv6Kn0s HHgs5wVtYWo3a//j8En5/kiOS0GkaRv4gUOFHEdp7gf0jt6HTzlRfHrB07y97ubDcEOo xzdQ== X-Gm-Message-State: AOAM531962CNo40GAMzADH5rsF0FeQHWDWTBXWI9HQlC0jXN5eZnNc7e xZFYsXQ//unus0UvnbWhCt0= X-Google-Smtp-Source: ABdhPJya3Ri+RatFZBqr19+k83GyZmoCUlfbLfY7fyv26ZWxJhU6nx/j/g1+JZ7QrTWqPt4vz2NzdQ== X-Received: by 2002:a1c:cc1a:: with SMTP id h26mr6490883wmb.47.1627167283636; Sat, 24 Jul 2021 15:54:43 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o7sm43276778wrv.72.2021.07.24.15.54.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Jul 2021 15:54:43 -0700 (PDT) In-Reply-To: <865yx09hum.fsf@stephe-leake.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=raaahh@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.058, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:271579 Archived-At: On 24.07.2021 12:33, Stephen Leake wrote: >> Plus, if tree-sitter respects narrowing, it could happen where a user >> narrows the buffer, the font-locking changes and is not correct >> anymore. Maybe that’s not the user want. > Exactly. The indent will be wrong, too, if narrowing excludes a > containing block. The important pieces of code now (in recent Emacs versions) undo narrowing when do fundamental operations like parsing the buffer (with syntax-spss), applying font-lock rules or doing indentation, unless instructed otherwise by the major mode, or the multiple-major-mode framework.