* simplifying cond*
@ 2024-12-30 4:00 Richard Stallman
2024-12-30 13:27 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2024-12-30 4:00 UTC (permalink / raw)
To: emacs-devel
[[[ 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. ]]]
In writing text about cond* for the ELisp Reference Manual, I realized that
I can simplify its usage conventions with no change in the code.
Only the doc-string will change.
The change would document that all non-exit clauses are one-element clauses
and all one-element clauses are non-exit clauses. That would be true,
for all the clauses that will remain documented as acceptable
after this change.
The doc string would recommend
((progn BODY...))
instead of
(t BODY...)
and
((when COND BODY...))
instead of
(COND BODY... :non-exit)
WDYT?
Eli, I would like to put this change into version 30.
It can't break anything.
--
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: simplifying cond*
2024-12-30 4:00 simplifying cond* Richard Stallman
@ 2024-12-30 13:27 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-12-30 13:27 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
> From: Richard Stallman <rms@gnu.org>
> Date: Sun, 29 Dec 2024 23:00:35 -0500
>
> In writing text about cond* for the ELisp Reference Manual, I realized that
> I can simplify its usage conventions with no change in the code.
> Only the doc-string will change.
>
> The change would document that all non-exit clauses are one-element clauses
> and all one-element clauses are non-exit clauses. That would be true,
> for all the clauses that will remain documented as acceptable
> after this change.
>
> The doc string would recommend
>
> ((progn BODY...))
>
> instead of
>
> (t BODY...)
>
> and
>
> ((when COND BODY...))
>
> instead of
>
> (COND BODY... :non-exit)
>
> WDYT?
>
> Eli, I would like to put this change into version 30.
> It can't break anything.
Documentation changes are always okay on the release branch. However,
in this case, cond* is not in Emacs 30, only in Emacs 31. So you can
install any changes for it on the master branch without limitations,
but there's no cond* documentation to fix on the emacs-30 release
branch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-30 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 4:00 simplifying cond* Richard Stallman
2024-12-30 13:27 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).