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: Mon, 26 Jul 2021 22:57:35 +0300 Message-ID: References: <83h7gw6pyj.fsf@gnu.org> <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> <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> <88007ACB-31E5-440F-876D-9F43C8EE02CC@gmail.com> <83pmv4vr9u.fsf@gnu.org> <2F54BF2A-702C-414B-8B9A-12AEAFBF4DA2@gmail.com> <83im0wvq4f.fsf@gnu.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="7236"; 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: cpitclaudel@gmail.com, Stephen Leake , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuan Fu , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 26 21:58:37 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 1m86kH-0001iH-Kk for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 21:58:37 +0200 Original-Received: from localhost ([::1]:49260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m86kG-0005An-J1 for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 15:58:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m86jP-0003so-09 for emacs-devel@gnu.org; Mon, 26 Jul 2021 15:57:43 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:35807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m86jN-00086J-5W; Mon, 26 Jul 2021 15:57:42 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id o5so18363138ejy.2; Mon, 26 Jul 2021 12:57:40 -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=YStAvzPH8yUT2itZ3cATzbsmNDRPJLENMMwrQzh6sMU=; b=uSMJKp/2R96bivgE/jGZF0cBTkLQumOJXq6Qvej1HKl+O7cD+fZLaDPa7XKExZ4Xmy 4VBFlHNIRVRD+rjaOk24G6t9RODiVkv6jdO6n5MFMUqxd6rPK2+XSC3LeLIsf2T1wTXV qJSR1eWuedTPx7VPb1gRtk8JIJDiW81WYfCEF2IPUEIftkLktMt+aUwceIcZecq6ZfOk PAEK6gXrwBnykLeFYcqTo2E0rBh4o4yWJeTJ9U0DAVY560qRLg27njG4o9Dlql1aJC+4 SRowKU96gG12MdFvtWZ2pEDoIEZxNydIO3OrlSMYk3gY6pIy5ts7JzMUdicfjPS+f8i3 Sbew== 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=YStAvzPH8yUT2itZ3cATzbsmNDRPJLENMMwrQzh6sMU=; b=lIzm/vg/xB7ECWb6pgjE7tY8viNVWrR9DXbJ/YJjkJetQt/+fnmNhM4V6u/vgne7UV YPWNGeWhwuK7Wb/US4NzVD7bUG7Fc3JTjuSNadBHND0apdYTAh7A+TmriYCoRP06z723 QL3IbIVZEbQ5voeTlMVwje5T86fmURRA5MrTT+S5xtPx9URS0mo7sM57zJvl3SkT6VZ1 e/qIzV1cRWRfGus7xZaMG597PHW+BqEXwEBDsFfwKb9NKtbKyXm2rN7XBNqH0SivBORp PZX8AEIg8Rd8Wo6QU/FSNK6mVKK0nAXC85k4bqFyCy1RxeFST/dmSFs9E2YE4BDRJCyl eU7w== X-Gm-Message-State: AOAM532apmqxwaBj6bpu1/QLVKvrfsGw7+gGpMQuO2TK84sUeKtgm44H tb5Pz9GQQDMJstns2tLVAqT9RlFaugk= X-Google-Smtp-Source: ABdhPJxXk3NfbKz3pIn08yuWbIL6v9VVv2LbAVyeg86XNGMlUF/bQMYbv5tw4v/TOjb9bA1AN90wlQ== X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr18709264ejc.184.1627329458469; Mon, 26 Jul 2021 12:57:38 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id f20sm192078ejz.30.2021.07.26.12.57.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 12:57:37 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=raaahh@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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:271668 Archived-At: On 26.07.2021 22:45, Yuan Fu wrote: >> Last time something like these discontinuous ranges was discussed as a >> general feature in Emacs, we couldn't come up with an agreed-upon >> design and implementation. So adding something like that to Emacs is >> not an easy job. > We can provide both. Those who needs the more powerful ranges could use that, and those who don’t can use narrowing. If one wanted to continue where the previous discussions stopped, we tentatively decided that the variable prog-indentation-context could help. I.e. when some multiple-major-mode framework wanted to tell the current major mode that there are more "ranges" of the same mode in the buffer, it would bind prog-indentation-context to some particular value. It's very much "to be discussed later", but the second element of prog-indentation-context can be a list of those ranges, or, more likely, a functions that produces that list.