From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sora Takai Newsgroups: gmane.emacs.devel Subject: Re: About the interpretation of negative integer values for 'priority overlay property Date: Mon, 19 Feb 2024 22:06:38 +0900 Message-ID: References: <86zfvwprfz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003fd9970611bbc46e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="972"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 19 14:07:32 2024 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 1rc3Mp-000AW6-0q for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Feb 2024 14:07:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc3MK-0008KC-GT; Mon, 19 Feb 2024 08:07:00 -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 1rc3MG-0008Dm-IG for emacs-devel@gnu.org; Mon, 19 Feb 2024 08:06:56 -0500 Original-Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc3MD-00037y-Es; Mon, 19 Feb 2024 08:06:56 -0500 Original-Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6e2de202d9aso1777161a34.0; Mon, 19 Feb 2024 05:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708348009; x=1708952809; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=whJ+QCw3Q1j9+KXQfWWUMVc/2tQLqBtfmMEzwX4949g=; b=G9fvY5/ukaxFMjQujlJVPu74Vt+e0spEYvBrLkK1Cdy0tF4VW9UaVuFFy6w/ygBP3n 9RMjZypEYnqYViPDKkDYg3tCJKxVE+KSUcZwuKgmuRZqkmlSM95nKnVbSdvJbJMDHxp+ feEvtAu9810Ko3FoJuhJ7xX/YIfioWIkXOZViRuaGe1zJzLzVpmFg8kl2dfANEGokZ4O oXyfjTmitQvMjjuNp5Qf9ridnK0bk2e3o4mV0tl2O0VJzXdLz+Oh533KCxxFls6R4e13 PV2HGf1kwD6Pv3RtNP2uP2TFhu1x6tZhvhBwSafgbDGQuZ4C9sEyLAGgRZJ6fuukZPEo jVmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708348009; x=1708952809; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=whJ+QCw3Q1j9+KXQfWWUMVc/2tQLqBtfmMEzwX4949g=; b=Nnhyis9Q5r0ikuDokS2yMb5LWaPA1VLZC/c6aL31cKvf9sIyZhiLA8W6G0E/NFys/C CZfibvWEbEmSJ4GcL3QV0Xw5gRw+7J9Bwx8wQCNAdP+11POUaTCbci6ePqEZgZvTyN1v RHj5MdOb+VbRTqWKb0zOej+3VZja6R3W5+rb4ebXBInC0x6KUwIEuZ3bBFjj0pxhcbGj vTduUtzwGEDWQd+Gnluwgw13YK3fZYqcpy7FUkV/avMBEkO2PZDkod1K4eIe8bD2KdJo IEXUFD9jwkcU2HLMFLp6OjpxMihj8xa4zoKyTSMKP041MdiTnQxaVH7Mnu/wVhdvrM4x GObQ== X-Gm-Message-State: AOJu0YyMMiY8y4fkbpiTydq/U0lxlpZHoyf2WIrslScXoUoQbnQHaUXC AqB9RKYxgBZyFSuUAmTGsHrLE80yv8CFybA0ynESVxyqzlWfOuebVkB8nEQZI4vWc9qN3VLb74W MZo1raY5nz0xvsen3QZQxXXR2ah6hDUI5 X-Google-Smtp-Source: AGHT+IGWh5BWm6zvZnBl+FDo9Lvk4zFCEHX8YH7qw1wqSME0IMOHsTZDbjd0CIaiwl/Ap/nd45FsO769fA/hHPR0Zdc= X-Received: by 2002:a05:6808:2f11:b0:3c1:5d20:179b with SMTP id gu17-20020a0568082f1100b003c15d20179bmr2396896oib.9.1708348009338; Mon, 19 Feb 2024 05:06:49 -0800 (PST) In-Reply-To: <86zfvwprfz.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::335; envelope-from=booksipadtest@gmail.com; helo=mail-ot1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:316347 Archived-At: --0000000000003fd9970611bbc46e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Got it - thanks for clarifying! -Sora On Mon, Feb 19, 2024 at 9:30=E2=80=AFPM Eli Zaretskii wrote: > > From: Sora Takai > > Date: Mon, 19 Feb 2024 11:10:42 +0900 > > > > 1. Are negative 'priority integers interpreted in an intuitive sense? > That is, would overlays with negative > > 'priority numbers rank distinctly lower than anything with higher > 'priority values (0 or above)? > > > > 2. Are they "valid" in a sense that emacs intends 'priority property to > be (in which case the manual description > > would have to be changed). > > Negative priority values are valid, but used internally by Emacs. So > we don't recommend using them in Lisp programs, as doing so might get > in the way of some Emacs features. > > > Personally, I think having negative 'priority -- given it works as > intended -- is useful, since I sometimes bump > > into use cases where I'd like to make sure certain overlays have the > lowest 'priority possible below all others. > > We recommend you not to use these values. > --0000000000003fd9970611bbc46e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Got it - thanks for clarifying!

-Sora

On Mon, Feb 19, 2024 at 9:30=E2=80=AFPM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Sora Takai <booksipadtest@gmail.com>= ;
> Date: Mon, 19 Feb 2024 11:10:42 +0900
>
> 1. Are negative 'priority integers interpreted in an intuitive sen= se?=C2=A0 That is, would overlays with negative
> 'priority numbers rank distinctly lower than anything with higher = 'priority values (0 or above)?
>
> 2. Are they "valid" in a sense that emacs intends 'prior= ity property to be (in which case the manual description
> would have to be changed).

Negative priority values are valid, but used internally by Emacs.=C2=A0 So<= br> we don't recommend using them in Lisp programs, as doing so might get in the way of some Emacs features.

> Personally, I think having negative 'priority -- given it works as= intended -- is useful, since I sometimes bump
> into use cases where I'd like to make sure certain overlays have t= he lowest 'priority possible below all others.

We recommend you not to use these values.
--0000000000003fd9970611bbc46e--