GNU bug report logs - #68370
30.0.50; pcase eieio, map, seq, and cl-struct constructs are not described in the manual

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Ihor Radchenko <yantar92@HIDDEN>; dated Wed, 10 Jan 2024 13:59:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 13 Jan 2024 13:28:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 13 08:28:29 2024
Received: from localhost ([127.0.0.1]:38736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOe3p-0004du-Ff
	for submit <at> debbugs.gnu.org; Sat, 13 Jan 2024 08:28:29 -0500
Received: from mout02.posteo.de ([185.67.36.66]:58371)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rOe3m-0004dh-QG
 for 68370 <at> debbugs.gnu.org; Sat, 13 Jan 2024 08:28:28 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 94250240105
 for <68370 <at> debbugs.gnu.org>; Sat, 13 Jan 2024 14:28:22 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1705152502; bh=qIIZv/ZOwmxD/OSYFszHcr21z/wQDxH1GzSSkY5kq7I=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=i01DXzLSZ+ZF3wbJLuQTIUZSicKjHg0D4O8Kk5Aq2R+OV4td4p/9i/29PRVE3nSwY
 ZuiDdx6LFg5jXRXi3cgYTuKZ25Qk/d6BfkIowEToOQYnib3Q1gyI7lgP6jHn+zDWf8
 9hurS+ibzLvBEoi4OppKNPFTNX/D8cT5oVBEs6cEJ7gF3X0/O0eGqc3Kxyuw5qsTQN
 Yb0MmvQVmpI+pvSwkeNxWIR7aKNwZwezCqFu1vqt7dSfcM4+cTTxbSvwcpjsCjFXX3
 zVGyM4i9xskrynfhPvJve5eao93lypMNuqE5JX/R60tq499HqAN4G4oWCzzAm/9qOg
 KAtpZlackvjOw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4TBzkF2fPqz6trs;
 Sat, 13 Jan 2024 14:28:21 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: rms@HIDDEN
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <E1rOV2F-0002Er-BG@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <E1rOV2F-0002Er-BG@HIDDEN>
Date: Sat, 13 Jan 2024 13:31:34 +0000
Message-ID: <87jzoduzpl.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: Stefan Kangas <stefankangas@HIDDEN>, monnier@HIDDEN,
 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Richard Stallman <rms@HIDDEN> writes:

>   > > I see no need to document specialized pcase constructs like
>   > > `eshell-index-range', but eieie, map, seq, and cl-struct appears to be
>   > > matching common Elisp data structures. I think that they should be
>   > > documented in the manual.
>
> That makes sense to me.
>
> However, what I'm actually asking for about these pcase constructs is
> not any change in Emacs, simply for someone to explain to me what they
> do so I can give cond* similar festures.

My email is not an answer to your question. It is a bug report about
Elisp manual. I did not try to answer you - I myself is also not
familiar with these extra `pcase' constructs. I missed them because they
were not mentioned in the manual.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 13 Jan 2024 03:54:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 22:54:36 2024
Received: from localhost ([127.0.0.1]:38095 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOV6R-00054z-Sg
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2024 22:54:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:56262)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1rOV6Q-00054m-6x
 for 68370 <at> debbugs.gnu.org; Fri, 12 Jan 2024 22:54:35 -0500
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 <rms@HIDDEN>)
 id 1rOV6M-000716-Iu; Fri, 12 Jan 2024 22:54:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=qqzYzWBU9RcUTmpCZ6cntd0nA7yMRdVklfDdSqrkjHk=; b=ALaaQImdmjYy
 LyAQ75YPI1T5QHqWi/IDoMJGMJg5eqfmy9wgdndeCBvbs2DE9BpvDs9hSg+eiuVli9uXn+WC1FV/y
 kkHEDFdpWBeUOTTNzyg8/ySNqocy9i7xHmVbnntz+35idf7/2W4oOy/Y097ci4VqP3I43g+BnWhFk
 4t83AwjoyW+RsjVLLQ9bM9IQ6i8fXY4lTCexBgCoJm7uuqcOHoW/TUsWkeXWOWaxsux06SLjBOG8Y
 24MxP4ILNbU3zQZ27V7Fi6lgNfpj8CnM48cP3vQkgrJjKap0sb5dc8I/oNXhWz4Gj0+yTtM5ALLqW
 s1PdUp/9HyarMVBSOq6pow==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1rOV6K-0004y4-0P; Fri, 12 Jan 2024 22:54:28 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Ihor Radchenko <yantar92@HIDDEN>
In-Reply-To: <87sf32pvkh.fsf@localhost> (message from Ihor Radchenko on Fri,
 12 Jan 2024 12:47:42 +0000)
Subject: Re: bug#68370: 30.0.50;
 pcase eieio, map, seq, and cl-struct constructs are not described in
 the manual
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN> <87h6jkjayn.fsf@localhost>
 <jwvr0innte6.fsf-monnier+emacs@HIDDEN> <87sf32pvkh.fsf@localhost>
Message-Id: <E1rOV6K-0004y4-0P@HIDDEN>
Date: Fri, 12 Jan 2024 22:54:28 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > 1. eieio is more or less clear - it is a separate manual

I don't think anything but eieio and its documentation needs to
describe how to use eieio.  I won't try to implement anything about
eieio in cond*.

If there is a general need for such a construct in cond*, it can
be added later.

  > 2. seq.el is documented in 6.1 section, which may be a problem - the
  >    very concept of pattern matching is only introduced in 11.4.1 (pcase)
  >    section. So, it might be confusing for the readers to see information
  >    about pattern matching so early in the manual.

Can someone please describe for me the construct used in pcase
for matching sequences -- tell me how to use it and what it does?
Then I could implement that facility in cond*.

  > 4. 11.4.1 The ‘pcase’ macro section already documents ‘(cl-type TYPE)’,
  >    but not (cl-struct TYPE &rest FIELDS). It will be awkward to document
  >    cl-struct pattern in CL manual, while leaving cl-type in the 11.4.1
  >    section of the Elisp manual.

I would like to implement matching of cl-structs in cond*.  But I have
never used cl-structs and I don't know how they are used.

Can someone tell me about the constructs for constructing a structure
of a specified type with specified field values?  Please tell me how
to use it and what it does.  Then I could implement that for cond*.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 13 Jan 2024 03:50:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 22:50:31 2024
Received: from localhost ([127.0.0.1]:38085 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOV2U-0004z5-R6
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2024 22:50:31 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1rOV2R-0004yr-FD
 for 68370 <at> debbugs.gnu.org; Fri, 12 Jan 2024 22:50:29 -0500
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 <rms@HIDDEN>)
 id 1rOV2K-0004fV-Me; Fri, 12 Jan 2024 22:50:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=KfIZH0LYs+IdAGYav4HcDlyFMV/a/L1zCc1OUBf8nwU=; b=IvSY3+T68ekp
 gELHEKCw8QQNiOGoxjIZs7SFawtAUEbTaz9QJkdKw15zlNxDWJ9PvPNiutY19dt/N5xJNDY2sPsjw
 durfukkzxIVThEbogWQi5KwyiQrL2wNyDCkaM+/SIL+bMRGIQDJh2GIvYYb8U9FYyN9N2IzzpSX7F
 116gGX81Nxslx1hEwQcTpyeYxf+UWmDqUe4C0TJL/MOLiqyyCrjRXAtLicqezWpIftU8oSnLoLTEC
 w7k2PVw/CRRtCfuiy0Jy+YHeznBbLIqB1o6M7r2tXWl5rWQpHtjd3ItfFB9rBwQ+zfS2Erk1chtNa
 zVv1BOt377tmd2emWzSqwQ==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1rOV2F-0002Er-BG; Fri, 12 Jan 2024 22:50:16 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 (message from Stefan Kangas on Wed, 10 Jan 2024 06:56:41 -0800)
Subject: Re: bug#68370: 30.0.50;
 pcase eieio, map, seq, and cl-struct constructs are not described in
 the manual
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
Message-Id: <E1rOV2F-0002Er-BG@HIDDEN>
Date: Fri, 12 Jan 2024 22:50:15 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: yantar92@HIDDEN, monnier@HIDDEN, 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > I see no need to document specialized pcase constructs like
  > > `eshell-index-range', but eieie, map, seq, and cl-struct appears to be
  > > matching common Elisp data structures. I think that they should be
  > > documented in the manual.

That makes sense to me.

However, what I'm actually asking for about these pcase constructs is
not any change in Emacs, simply for someone to explain to me what they
do so I can give cond* similar festures.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 12 Jan 2024 23:04:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 18:04:20 2024
Received: from localhost ([127.0.0.1]:37956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOQZX-0005tc-Sq
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2024 18:04:20 -0500
Received: from mout01.posteo.de ([185.67.36.65]:48075)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rOQZV-0005tO-2u
 for 68370 <at> debbugs.gnu.org; Fri, 12 Jan 2024 18:04:18 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 97847240028
 for <68370 <at> debbugs.gnu.org>; Sat, 13 Jan 2024 00:04:12 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1705100652; bh=mhEgF39VDVZMEaIF96zwDckwnksXUklgryUrMRFKlqA=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=Nsn60pX8kFq9Vge3Oc0XRZtZWVrSaPnndqeyRSYSrgmVYpHaIsApHB4A6EoWszP7c
 GCm9bR8xHrpAKt2T3HRUeIpEGxlr4LUSt1l7jKeRjvg/hHLlCH+7i0O+rjhXbkc6Jd
 UiyZyFyIDeih4e1INuFPYYYOj4jLjeBKeid6WbVQ2IJfB/3pTOUHtstSqlEpmEZ73M
 zUsMBrPU4EgQtTUUiEPi8eIN9mAUR/ep54NEEzkOFu+uq7SCXl91cnj2v71jxOoQZ9
 ByL8wthNCIusrnczxvq+2YP2/bNwRHhsmLubf2uMavk1AWVbZ4hp2Pa/MgpIin74TG
 C4nFcwCX/8nkw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4TBcY70zJgz9rxK;
 Sat, 13 Jan 2024 00:04:10 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <46b88ed2-199a-e438-ef2c-0d30480a231a@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <46b88ed2-199a-e438-ef2c-0d30480a231a@HIDDEN>
Date: Fri, 12 Jan 2024 23:07:23 +0000
Message-ID: <87h6jinob8.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Jim Porter <jporterbugs@HIDDEN> writes:

> On 1/10/2024 4:46 AM, Ihor Radchenko wrote:
>> I see no need to document specialized pcase constructs like
>> `eshell-index-range'...
> Indeed. If I could figure out a way to prevent that from being added to 
> the 'pcase' docstring, I would. :) It's really just a utility function 
> for Eshell so that it's easier to handle index ranges internally.

I think that it might be something akin `rx-let', but binds the pcase
macros temporarily. Looking into `pcase-defun', I do not see anything
difficult in implementing an equivalent feature `pcase-let-defun'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 12 Jan 2024 12:44:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 12 07:44:37 2024
Received: from localhost ([127.0.0.1]:35123 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOGtp-0001El-Fq
	for submit <at> debbugs.gnu.org; Fri, 12 Jan 2024 07:44:37 -0500
Received: from mout02.posteo.de ([185.67.36.66]:54175)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rOGtm-0001ES-Rg
 for 68370 <at> debbugs.gnu.org; Fri, 12 Jan 2024 07:44:36 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id C90EC240104
 for <68370 <at> debbugs.gnu.org>; Fri, 12 Jan 2024 13:44:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1705063470; bh=RvFs9fmUONIHfm//kqz4X3cTVUTJaln4QViuLHgocfA=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=DgQ7qmET/2Kv0kdfROMDIRlUItgAVCz8DWPpIqPv57uc5wBVSN+TUhoB4dwK1NzDS
 gyD1zNkW2cD7PQ8pYQDmaqo3qypl+ijswHaX6DB1eqCemHYPPWKQxOSOef/BzOTy9A
 cBGNmqnDEAn/1p2yGgSjuDstzir/1GU2eN/7yscWkGjURM7tDgTqwJ+3KQ1Uqn8tEE
 lNmnWyOXs2WwQlA8uKbSWeHTSxkNy7A5O/HD52LG7UW4LTHTGkj3/BmNbxf49bifrB
 eRBM2VBj3KNXBYj2j5Y9oaEK8TfUIybbB7sPsOcT44dg4O3YNWDE1GNEgEauME29t4
 rZzss6L8c9LDw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4TBLp56H8Tz9rxS;
 Fri, 12 Jan 2024 13:44:29 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <jwvr0innte6.fsf-monnier+emacs@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN> <87h6jkjayn.fsf@localhost>
 <jwvr0innte6.fsf-monnier+emacs@HIDDEN>
Date: Fri, 12 Jan 2024 12:47:42 +0000
Message-ID: <87sf32pvkh.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: Stefan Kangas <stefankangas@HIDDEN>, 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

>>> AFAIK these "belong" to `map.el`, `seq.el`, etc... so that's where they
>>> should be documented.  The documentation for `pcase` could of course
>>> include corresponding cross-references.
>> Do you mean "6.1 Sequences" section of the manual?
>
> I meant "where ever it's documented", so yes that sounds about right :-)

This might be tricky in practice:

1. eieio is more or less clear - it is a separate manual
2. seq.el is documented in 6.1 section, which may be a problem - the
   very concept of pattern matching is only introduced in 11.4.1 (pcase)
   section. So, it might be confusing for the readers to see information
   about pattern matching so early in the manual.
3. map.el does not have any documentation in manual. It may mean that
   (map ..) pattern should not be documented. Or it may mean that we
   need to add a map.el section to the manual.
4. 11.4.1 The =E2=80=98pcase=E2=80=99 macro section already documents =E2=
=80=98(cl-type TYPE)=E2=80=99,
   but not (cl-struct TYPE &rest FIELDS). It will be awkward to document
   cl-struct pattern in CL manual, while leaving cl-type in the 11.4.1
   section of the Elisp manual.

--=20
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 12 Jan 2024 04:00:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 11 23:00:51 2024
Received: from localhost ([127.0.0.1]:34547 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rO8iw-0001Zz-Gi
	for submit <at> debbugs.gnu.org; Thu, 11 Jan 2024 23:00:51 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:47170)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1rO8iu-0001P2-Aj
 for 68370 <at> debbugs.gnu.org; Thu, 11 Jan 2024 23:00:49 -0500
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 <rms@HIDDEN>)
 id 1rO8ir-0000qN-7S; Thu, 11 Jan 2024 23:00:45 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=fHjPKWangI229hsrV9FjIiQGj0Z6ucLembZdizPAor0=; b=Ty8Cs549uzBH
 v0IDIFkwDDir8SXxlSE7CB86K0zZyHvkRg514adlEbPXJVIH3K97S6CMd+9evG1RZSuaQxd+JqFTq
 sRTcVLPSvuvIvJS6NMiileeYPKzU4XURV4nBkmt2co8P7i5kb/8y/LKSIxHG9/XdArgYb6Ph1wK6D
 oNOp+oupoVOgu5eH2+9jhT3RB6fGfqhgFxRHOYWSjnIlH8ZLcb4MM/w6mvvWzAm+MLkBvAwmJ4wPQ
 6Nh6h8B2Xjs9f9iHOken62zKgvlzvgjf/xlQmEMzCxnWtEFJ3ejNFupFqQQtwy056beHjHkJmCfKd
 5xKLiY7gAk5qra+WMkYbQg==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1rO8ip-0001Lo-Nc; Thu, 11 Jan 2024 23:00:43 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#68370: 30.0.50;
 pcase eieio, map, seq, and cl-struct constructs are not described in
 the manual
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN>
Message-Id: <E1rO8ip-0001Lo-Nc@HIDDEN>
Date: Thu, 11 Jan 2024 23:00:43 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > AFAIK these "belong" to `map.el`, `seq.el`, etc... so that's where they
  > should be documented.  The documentation for `pcase` could of course
  > include corresponding cross-references.

This suggests to me that there is no need for cond* to define how to
handle these.  It can be done by extensions for cond* also.

Thanks.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 12 Jan 2024 03:06:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 11 22:06:41 2024
Received: from localhost ([127.0.0.1]:34495 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rO7sW-0007L9-P4
	for submit <at> debbugs.gnu.org; Thu, 11 Jan 2024 22:06:41 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60304)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1rO7sU-0007Ku-8Z
 for 68370 <at> debbugs.gnu.org; Thu, 11 Jan 2024 22:06:38 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 14B308072D;
 Thu, 11 Jan 2024 22:06:35 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1705028793;
 bh=Mzr1NeHdmG+aTzd4scM2S0KF0XPSDTErSjgt2Yb6BUI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=CQ67SD7dV3dlmcS8pR7D1xUVDtVFCOWNfWShmmMGjEE36YE+IT3hYGLRYIge7LPev
 nNMkcIHDO+2dYZO6VJwCTiosvrgRMjrGT6z5mZo2xfgELjCOoNs3su85wsIKyV/6Sy
 LA3qsfSuNCvgg3cdXMJ3mH12SIfNpht0wy55sVQX9iBoy6yJ8BK+c49otYxkfYv9wY
 RiG5CE8V99dVjh2Nzga1vd727Nkon4RJYwgbWtncFXR0voFjCZZhPmOr3LXmnnI9U5
 7UbeH3KsAfyiB1D8f0OJD6EccseN/SfNWNkPRi1WOjf9knF30AdfmjT+lZCrixFoWo
 JUhKGV+oJpAhQ==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E58C280A64;
 Thu, 11 Jan 2024 22:06:33 -0500 (EST)
Received: from pastel (65-110-221-238.cpe.pppoe.ca [65.110.221.238])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B6C06120A8E;
 Thu, 11 Jan 2024 22:06:33 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Ihor Radchenko <yantar92@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <87h6jkjayn.fsf@localhost> (Ihor Radchenko's message of "Thu, 11
 Jan 2024 12:44:48 +0000")
Message-ID: <jwvr0innte6.fsf-monnier+emacs@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN> <87h6jkjayn.fsf@localhost>
Date: Thu, 11 Jan 2024 22:06:33 -0500
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.041 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: Stefan Kangas <stefankangas@HIDDEN>, 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> AFAIK these "belong" to `map.el`, `seq.el`, etc... so that's where they
>> should be documented.  The documentation for `pcase` could of course
>> include corresponding cross-references.
> Do you mean "6.1 Sequences" section of the manual?

I meant "where ever it's documented", so yes that sounds about right :-)

> Or the source code?

No, not that: we already have docstrings there, I think.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 11 Jan 2024 19:09:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 11 14:09:19 2024
Received: from localhost ([127.0.0.1]:33903 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rO0QZ-0001Bv-5S
	for submit <at> debbugs.gnu.org; Thu, 11 Jan 2024 14:09:19 -0500
Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:59819)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1rO0QR-0001Bd-OJ
 for 68370 <at> debbugs.gnu.org; Thu, 11 Jan 2024 14:09:17 -0500
Received: by mail-pf1-x42f.google.com with SMTP id
 d2e1a72fcca58-6d9af1f12d5so4781590b3a.3
 for <68370 <at> debbugs.gnu.org>; Thu, 11 Jan 2024 11:09:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1705000148; x=1705604948; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=yrnww46cJaaRHQfYE563QCLmWSqxYJq8apGgEPBl65s=;
 b=Qkw6mUJrie2+XsCDuyiUQ1MCveAqtcC0v2s1rS3DKYw0v0OPBqhPGsrQQnK6uNWRBr
 fi7VUng29Gp/2C/KCWBV/ScPAnUMYjht0Vh2cNhP0WahpW6vTOtwxCLsp3O61eBFJTub
 yTn5EDDh6vHUGmBTSqehqW3xVu/xO4Hqr3tiP6DG5GdTKBIhfFMfMDDNascHkdlgMm6q
 CsJ1KOKGm72EatjwOe0cAH8QL0lCdB5TYBkbcS+M89qmAtjN/lTkf6XkyPoSo7RN0WGj
 uoIBH3Drvz1h12WpjQOmyNPS3B352XwiBGGk1xwBqY2WFfCCtQEWVMYGgPTuFj7xgxdy
 vmVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1705000148; x=1705604948;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=yrnww46cJaaRHQfYE563QCLmWSqxYJq8apGgEPBl65s=;
 b=ZCGvHu0alRn3Qag6Y0vsWxXR83lgsnJHyk55UE6jLj1pvAx243A2Pq3x6UnhcQd60t
 1d7VWJiq95VafDzjb6t9k4TluuhAH5toxH/p+Fs6nz1Ft3stfIzEJ9XzdkA6npfd337S
 1EaJCJSRB41xDS5pIDyQj4bcsXP0xSwBbTyp6FtZGJhgEjkLBLWOI+R+rdUYUeOySv2r
 PsLCH5OumHy9Lhr3cD76cp10mRIBG7Egqj0XclB9QAinY+Ws7XAAJsaDLHQLz9kB/qar
 3IUcFMzHMwj9mrL6VQcNG/BLfVQ0bQF0l/fdOG4huHAmwyqxrR47mGDqzaYWFtLGCUR+
 OeqQ==
X-Gm-Message-State: AOJu0Yymazn3UA+AWzfP9u6GX/Slp8SAA3Yse/eLg5jHPA//w99Had7O
 fZ/fkiIuxo8mmixgnKD+/Rk=
X-Google-Smtp-Source: AGHT+IEAgAVmVZzb+K3CoYSClPw4ruEv9AW/7td0DDq8jSp5Efd3IcgxudK4KSP1hsLiQzNOQF8Syg==
X-Received: by 2002:a05:6a20:7483:b0:19a:1c9a:3fb4 with SMTP id
 p3-20020a056a20748300b0019a1c9a3fb4mr376714pzd.107.1705000148237; 
 Thu, 11 Jan 2024 11:09:08 -0800 (PST)
Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 n9-20020a654509000000b005cd835182c5sm1380233pgq.79.2024.01.11.11.09.07
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 11 Jan 2024 11:09:07 -0800 (PST)
Message-ID: <46b88ed2-199a-e438-ef2c-0d30480a231a@HIDDEN>
Date: Thu, 11 Jan 2024 11:09:06 -0800
MIME-Version: 1.0
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
To: Ihor Radchenko <yantar92@HIDDEN>, 68370 <at> debbugs.gnu.org
References: <87zfxdpd99.fsf@localhost>
Content-Language: en-US
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <87zfxdpd99.fsf@localhost>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68370
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 1/10/2024 4:46 AM, Ihor Radchenko wrote:
> I see no need to document specialized pcase constructs like
> `eshell-index-range'...
Indeed. If I could figure out a way to prevent that from being added to 
the 'pcase' docstring, I would. :) It's really just a utility function 
for Eshell so that it's easier to handle index ranges internally.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 11 Jan 2024 12:41:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 11 07:41:46 2024
Received: from localhost ([127.0.0.1]:58969 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNuNV-0004LQ-W7
	for submit <at> debbugs.gnu.org; Thu, 11 Jan 2024 07:41:46 -0500
Received: from mout02.posteo.de ([185.67.36.66]:35791)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rNuNR-0004L0-H0
 for 68370 <at> debbugs.gnu.org; Thu, 11 Jan 2024 07:41:44 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 57E40240104
 for <68370 <at> debbugs.gnu.org>; Thu, 11 Jan 2024 13:41:38 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1704976898; bh=i/r8qGHS30ZzJOuNL+X7c12yd4T/sVRPH+Pm65c9Vlc=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=DR0koBxDBPf5sbp5Y5x8mrAqHdQuQptqjp59p7ixlaj0MNz+9mI9sOlR4i2CPBj8V
 f8hzv5IhMmpxqGlYOy+GoQBi2MNjkkFEyvzENO6Gx8ptY4tK4i72mwcc64KGqr0xzL
 CNpRVoAPBybXWmu89wol56leRgv4dYzRCmKOZOpank24Ojw95p7POGxX/dSPw+v8wY
 y1qegJRix7HAfVO8xUX48ZS3sZf52L444nSI/pZE9hOWksi7LJR0fYIhN38rPzr8Gd
 UXXIN73RH28pRaGYum7TVPD8VACxbn2eCQtK88Q77ohm+6jgsQrnos6Yq6jJ62sbFh
 4yi1Er22p6Izw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4T9knF1ycHz6twd;
 Thu, 11 Jan 2024 13:41:36 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN>
Date: Thu, 11 Jan 2024 12:44:48 +0000
Message-ID: <87h6jkjayn.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: Stefan Kangas <stefankangas@HIDDEN>, 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Monnier <monnier@HIDDEN> writes:

> AFAIK these "belong" to `map.el`, `seq.el`, etc... so that's where they
> should be documented.  The documentation for `pcase` could of course
> include corresponding cross-references.

Do you mean "6.1 Sequences" section of the manual? Or the source code?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 10 Jan 2024 16:20:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 11:20:15 2024
Received: from localhost ([127.0.0.1]:42573 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNbJP-00015F-2u
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 11:20:15 -0500
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1rNbJN-000151-IA
 for 68370 <at> debbugs.gnu.org; Wed, 10 Jan 2024 11:20:14 -0500
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 32A12811EC;
 Wed, 10 Jan 2024 11:20:09 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1704903608;
 bh=wpQEEm1sgFwXDoO3h9fpo85HddbcSc7Q5dNdBDhnBUI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=fuzr1ev/sdWuK3JINCm3LYh1ld+xxt0eucsfDAGRVhXrN/FSWgv0WczHXkW3rK+9h
 68XnJkb9nmMZimjhXjL9M3apz9LsgR/SG4/9BJMhspMTxvm+BEgzZGXuMwds/7SFsK
 F3LfWWvoKHTWTjIG5flsD9LrSrjDWFTRJet1X3oGVHL4sRnXiuRT7BxT0W62bRAhX1
 UvIEpplqQfGtQsWFIg2gz9mVfahrabJReV2wK/UYLO00aS44RJ4Ocp4+D49LW8JZp6
 ZjveHn5aJx1BvX3iDiDTUaF2M+crEMATOJKfeA8vlsJctMlHQJ4iKxewYRkI7rGhFe
 GOXZMFtF5HK2w==
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0DB5280CC9;
 Wed, 10 Jan 2024 11:20:08 -0500 (EST)
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F40F11201A9;
 Wed, 10 Jan 2024 11:20:07 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
In-Reply-To: <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
 (Stefan Kangas's message of "Wed, 10 Jan 2024 06:56:41 -0800")
Message-ID: <jwv7ckh88oc.fsf-monnier+emacs@HIDDEN>
References: <87zfxdpd99.fsf@localhost>
 <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
Date: Wed, 10 Jan 2024 11:19:13 -0500
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.242 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
 DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from
 domain T_SCC_BODY_TEXT_LINE    -0.01 -
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68370
Cc: Ihor Radchenko <yantar92@HIDDEN>, 68370 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>> RMS recently pointed that `pcase' docstring describes map, seq, and
>> radix-tree-leaf constructs.
>>
>> However, they are not documented in the 11.4.1 The =E2=80=98pcase=E2=80=
=99 macro section
>> of Elisp manual.
>>
>> AFAIU, eieio, map, seq, cl-struct, and a number of other constructs
>> mentioned in the docstring are automatically added there by
>> `pcase-defmacro'.
>>
>> I see no need to document specialized pcase constructs like
>> `eshell-index-range', but eieie, map, seq, and cl-struct appears to be
>> matching common Elisp data structures. I think that they should be
>> documented in the manual.
>
> Copying in Stefan Monnier.

AFAIK these "belong" to `map.el`, `seq.el`, etc... so that's where they
should be documented.  The documentation for `pcase` could of course
include corresponding cross-references.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at 68370 <at> debbugs.gnu.org:


Received: (at 68370) by debbugs.gnu.org; 10 Jan 2024 14:56:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 09:56:50 2024
Received: from localhost ([127.0.0.1]:42465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNa0f-0008F2-Rg
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 09:56:50 -0500
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:42249)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1rNa0c-0008Ew-Jz
 for 68370 <at> debbugs.gnu.org; Wed, 10 Jan 2024 09:56:48 -0500
Received: by mail-ed1-x532.google.com with SMTP id
 4fb4d7f45d1cf-557c188f313so5291030a12.1
 for <68370 <at> debbugs.gnu.org>; Wed, 10 Jan 2024 06:56:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704898602; x=1705503402; darn=debbugs.gnu.org;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=MKJjk3cmwNgV2XxeIhumfgq1wTmrrtrn4C0kfKIbazc=;
 b=YR+Zvak5SMdCix4nfWra5y1qehpxisw1w11fXxcg6F5G4/+wbcSNlZPsTYodP9x7Ht
 gWfCTo4svmlQXUDSXt96LwAnPoVnKiGn9G4D5ngz2t3jjeoEYpQwX1tJAgwzRFhBGizS
 PtcRrGOgyS9UeKAhPTYub25rFb0bKb8siHk/v9HEnuHLf3bTh9KabKr6i6wQn5jMMTnH
 ZIgDfKwLirVRex7iRowiwvmcMR3xaXHus1Wnt87/Ww0xg8jhSSDzPijRN7EmaO6uMwDS
 IiggL25EqE/uW0c3Ehssr+QZpoksWpovh4poos638NDYETAgKdwSDSrTIQTUdFyLWiH1
 uXQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704898602; x=1705503402;
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=MKJjk3cmwNgV2XxeIhumfgq1wTmrrtrn4C0kfKIbazc=;
 b=kIieL9QnRBDJqDP9N5GbezuDnLOt5RcVXAh8dBBmO7ACRhuI63iBn4Po9DVIW8fDqs
 cDl8yhgmkxC3MMv+QeJPVF+gwCPG8lejh0ZJzKA/+SV/vLXxFZ7Xh0ni4ziqpQeSNni6
 9/SBnFeptxfkuHI9WX5KtBlH0EHkH10+MdXxYtaATf6GOd/PdEGPGqho18S77BHlQGeR
 KXOxVEmstZ+d0Xc4Y9BeZu6N6sPMU6hR7D1fR9aSlOPxL/6BUxnuz+wtEEfPUGBvaEmL
 LJ/okqz6r6n0YDxFtyEIFPWrDlQLTdvwDgfEs+lGxA3qyjSMY59cGlzE2bcDc+xt4V42
 H8rQ==
X-Gm-Message-State: AOJu0YxAcjlHGFATbAnXMT3b+FodBoqz301uDbTNdjGg9GCJrKjdlQL5
 tAKfhlk+0isLL29XSnXszHEIScpvZoXTKv+0iJyY/YHFqCJndA==
X-Google-Smtp-Source: AGHT+IGi3BppgWsuXY8DDgbk77XnHrR855ku2lmcTuimxlSQfMR88Y63VPVvtWZE2MclxAUfo0IJA3ZmSSRtF7qIUkY=
X-Received: by 2002:a50:c2c9:0:b0:54d:8e5b:565b with SMTP id
 u9-20020a50c2c9000000b0054d8e5b565bmr135109edf.22.1704898601879; Wed, 10 Jan
 2024 06:56:41 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 10 Jan 2024 06:56:41 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87zfxdpd99.fsf@localhost>
References: <87zfxdpd99.fsf@localhost>
MIME-Version: 1.0
Date: Wed, 10 Jan 2024 06:56:41 -0800
Message-ID: <CADwFkm=dmUrKdSYRw=Bn8nd0Z49BE0Pe4jd8EjGwgXcp8=uqjw@HIDDEN>
Subject: Re: bug#68370: 30.0.50; pcase eieio, map, seq, and cl-struct
 constructs are not described in the manual
To: Ihor Radchenko <yantar92@HIDDEN>, 68370 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68370
Cc: Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Ihor Radchenko <yantar92@HIDDEN> writes:

> RMS recently pointed that `pcase' docstring describes map, seq, and
> radix-tree-leaf constructs.
>
> However, they are not documented in the 11.4.1 The =E2=80=98pcase=E2=80=
=99 macro section
> of Elisp manual.
>
> AFAIU, eieio, map, seq, cl-struct, and a number of other constructs
> mentioned in the docstring are automatically added there by
> `pcase-defmacro'.
>
> I see no need to document specialized pcase constructs like
> `eshell-index-range', but eieie, map, seq, and cl-struct appears to be
> matching common Elisp data structures. I think that they should be
> documented in the manual.

Copying in Stefan Monnier.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jan 2024 13:58:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 08:58:47 2024
Received: from localhost ([127.0.0.1]:39345 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNZ6U-0003T3-GB
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 08:58:47 -0500
Received: from lists.gnu.org ([2001:470:142::17]:44900)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1rNZ6D-0003Py-QH
 for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 08:58:42 -0500
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 <yantar92@HIDDEN>)
 id 1rNXva-0003d7-DY
 for bug-gnu-emacs@HIDDEN; Wed, 10 Jan 2024 07:43:27 -0500
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@HIDDEN>)
 id 1rNXvU-00078B-8B
 for bug-gnu-emacs@HIDDEN; Wed, 10 Jan 2024 07:43:25 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 986E4240104
 for <bug-gnu-emacs@HIDDEN>; Wed, 10 Jan 2024 13:43:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1704890596; bh=SgXr1wiDUGpJENl+liyeOxXeOU2iaQnnsH0CWJzIeLk=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:
 Content-Transfer-Encoding:From;
 b=rpSxScwQtBg9OjP9e1HchJiR8ZHXt2u97gi8Rv1tcYzQ6LfMkFPBOPJ7AGOQQ0Q/C
 Sal44OBZHqYwqEy6UFU1Pi41NjC+97zoEiOg7E9yfkNhSwcl07256iEDyM0zbDzuGj
 2P/cTcmaO8egZ288cKjCZNPIuJRF1SehZ1n6jutRZP/l6IuYUlYy5r/MckCEZXr4ET
 3BrVKlT7rLoRe81b6vDsB423dL353VMgkMa2AGfgtEdAJsKUYTQ7N9xy3kDSVhLaGf
 kxJb726Zuoh2kyo6HyDdl7FCCbirtmzafbf20ajzKgOazes/LpmBJsCXXdsgHoxFox
 DEOrkUPCnJL9g==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4T96sb5nvMz9rxW
 for <bug-gnu-emacs@HIDDEN>; Wed, 10 Jan 2024 13:43:15 +0100 (CET)
From: Ihor Radchenko <yantar92@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; pcase eieio, map, seq, and cl-struct constructs are not
 described in the manual
X-Debbugs-Cc: 
Date: Wed, 10 Jan 2024 12:46:26 +0000
Message-ID: <87zfxdpd99.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 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-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello,

RMS recently pointed that `pcase' docstring describes map, seq, and
radix-tree-leaf constructs.

However, they are not documented in the 11.4.1 The =E2=80=98pcase=E2=80=99 =
macro section
of Elisp manual.

AFAIU, eieio, map, seq, cl-struct, and a number of other constructs
mentioned in the docstring are automatically added there by
`pcase-defmacro'.

I see no need to document specialized pcase constructs like
`eshell-index-range', but eieie, map, seq, and cl-struct appears to be
matching common Elisp data structures. I think that they should be
documented in the manual.

In GNU Emacs 30.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version
 3.24.38, cairo version 1.18.0) of 2024-01-07 built on localhost
Repository revision: fa559d058d4d286201f785e5248bc609865bc3b6
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101009
System Description: Gentoo Linux

--=20
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Acknowledgement sent to Ihor Radchenko <yantar92@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68370; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.