From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: INTERVAL_EXPRESSLY_WRITABLE_P Date: Wed, 01 May 2024 17:57:04 +0300 Message-ID: <86msp9oa0v.fsf@gnu.org> References: <86r0eloeb6.fsf@gnu.org> <871q6lwrva.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 01 16:57:41 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 1s2BOu-00049W-DQ for ged-emacs-devel@m.gmane-mx.org; Wed, 01 May 2024 16:57:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2BOU-0003xN-8y; Wed, 01 May 2024 10:57:14 -0400 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 1s2BOP-0003wW-Rg for emacs-devel@gnu.org; Wed, 01 May 2024 10:57:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2BOO-0007mC-8e; Wed, 01 May 2024 10:57:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C2SHn0BanmkGCaaCVBlMk6tTSN5w8830K7rI3LlL8sQ=; b=YHSBOS8VI1GM fUJXMKxHt7kQxjhKxctyXs71SPyw7XyOgq5LdeLHwny+HWzzUELvirgc8guZiow+JKjbv32ELys8V wKryhYDZojbvdjxQsIEPUrdkBcSPZNS4gT7HprcFPSQ5Ax1VkozuIjWn+QoKesALQ6IBYpZvf1hrJ VWvzh3BwJu8K8nehKXFDd2eb5ON2lIXAJTMG5gfBhzvZbHk4SM5EjEglmgUuOmY8Ybh48hv/x/X/m OCaAv2XqWJ4H1zycRtBXfpiAaIPE4ihvantdZRGv/sDCFMiBXS6NhWvWycJjXYk5l7f6xHxtwHrAx Iad5DbMvcATXXvgLEOUYyA==; In-Reply-To: <871q6lwrva.fsf@yahoo.com> (message from Po Lu on Wed, 01 May 2024 22:04:25 +0800) 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:318486 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Wed, 01 May 2024 22:04:25 +0800 > > Eli Zaretskii writes: > > > The comment is IMO misleading, since the code doesn't use Qread_only. > > It does, through RO. And you think I didn't see it? My point is that the comment should talk about RO, not about Qread_only, because the latter is nowhere in sight. > > OTOH, why did you need the RO argument if it is always set to the > > Qread_only property of the interval's text? > > To avoid calling textget twice (or thrice, if an error should be > signaled in response to the interval's being non-writable). That could be done by using a local variable. Anyway, my point is that the documentation of these macros "needs work".