[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63509: [PATCH] Make copy-tree work with records
From: |
Joseph Turner |
Subject: |
bug#63509: [PATCH] Make copy-tree work with records |
Date: |
Thu, 18 May 2023 12:05:57 -0700 |
Eli Zaretskii <eliz@gnu.org> writes:
> Yes, this new feature will be installed on the master branch, which
> will become Emacs 30.
Moved note from NEWS.29 to NEWS.
>> --- a/doc/lispref/records.texi
>> +++ b/doc/lispref/records.texi
>> @@ -81,6 +81,18 @@ This function returns a new record with type @var{type}
>> and
>> @end example
>> @end defun
>>
>> +@defun copy-tree tree &optional vector-like-p
>> +This function copies a record when @var{vector-like-p} is
>> +non-@code{nil}.
>> +
>> +@example
>> +@group
>> +(copy-tree (record 'foo "a"))
>> + @result{} #s(foo "a")
>> +@end group
>> +@end example
>> +@end defun
>
> This addition is redundant. We don't describe the same function in
> more than one place. If there are reasons to mention it in other
> places, we just add there a short note with a cross-reference to the
> detailed description.
Replaced @defun with a short sentence with @pxref.
>> ++++
>> +** 'copy-tree' now correctly copies records when its optional second
>
> The "correctly" part hints that the previous behavior was a bug, which
> it wasn't (and we don't mention bugfixes in NEWS anyway). So I would
> rephrase
>
> 'copy-tree' can now copy records as well, when its optional...
>
>> +argument is non-nil. The second argument has been renamed from VECP
>> +to VECTOR-LIKE-P since it now works with both vectors and records.
>
> The last sentence should be removed: we don't mention such minor
> details in NEWS, unless the change is an incompatible change.
Done.
> Last, but not least: please always accompany your changes with
> ChageLog-style commit log messages describing the changes. You can
> find more information about this in the file CONTRIBUTE in the Emacs
> tree, and you can see many examples by typing "git log" in the
> repository.
Done.
Please let me know if any further changes need to be made!
Best,
Joseph
0001-Make-copy-tree-work-with-records.patch
Description: Text Data