GNU bug report logs - #73427
29.4; Doc of `append` not quite complete/correct

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 22 Sep 2024 18:02:02 UTC

Severity: minor

Found in version 29.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73427 in the body.
You can then email your comments to 73427 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#73427; Package emacs. (Sun, 22 Sep 2024 18:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 22 Sep 2024 18:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 29.4; Doc of `append` not quite complete/correct
Date: Sun, 22 Sep 2024 18:01:06 +0000
See https://emacs.stackexchange.com/a/82238/105 for a complete
description of the doc bug (omission).

The doc, at least in the Elisp manual, should explicitly mention the
case where all args except the last are nil and the last is a sequence
(e.g. a string) that's not a proper list.

In that particular case the last argument is returned, as is - a
non-list sequence. This is an exception to the otherwise correct
statements that the result is a list (including perhaps a dotted list).

Please read the last part of that StackExchange post, which refers to
this Common Lisp doc as calling out the particular case that's missing
from our doc:

https://lisp-docs.github.io/cl-language-reference/chap-14/be-c-dictionary/append_function


In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05 built on
 AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.4894)

Configured using:
 'configure --with-modules --without-dbus --with-native-compilation=aot
 --without-compress-install --with-sqlite3 --with-tree-sitter
 CFLAGS=-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 23 Sep 2024 11:45:01 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Mon, 23 Sep 2024 11:45:01 GMT) Full text and rfc822 format available.

Message #10 received at 73427-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 73427-done <at> debbugs.gnu.org
Subject: Re: bug#73427: 29.4; Doc of `append` not quite complete/correct
Date: Mon, 23 Sep 2024 14:43:33 +0300
> Date: Sun, 22 Sep 2024 18:01:06 +0000
> From:  Drew Adams via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> See https://emacs.stackexchange.com/a/82238/105 for a complete
> description of the doc bug (omission).
> 
> The doc, at least in the Elisp manual, should explicitly mention the
> case where all args except the last are nil and the last is a sequence
> (e.g. a string) that's not a proper list.
> 
> In that particular case the last argument is returned, as is - a
> non-list sequence. This is an exception to the otherwise correct
> statements that the result is a list (including perhaps a dotted list).

Thanks, fixed on the emacs-30 branch, and closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 22 Oct 2024 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 300 days ago.

Previous Next


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