unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 66570@debbugs.gnu.org
Subject: bug#66570: 29.1; Regression when printing option set with value of wrong type
Date: Sun, 15 Oct 2023 21:25:00 +0000	[thread overview]
Message-ID: <SJ0PR10MB54881A472046910981F658D6F3D0A@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)

emacs -Q

Evaluate (customize-set-variable 'fill-column nil).

No message or error about improver value (just as in previous releases).

C-h v fill-column

An error is raised, but the *Compile-Log* message doesn't say what
function raised the error:

z:/path/to/Emacs-29.1.2/share/emacs/29.1/lisp/emacs-lisp/cl-print.elc:
Error: Wrong type argument: number-or-marker-p, nil

And why does is the error message shown in that buffer?

C-h v fill-column ; Repeat it.

Another error is raised, producing this incomprehensible error msg (this
time it is not shown in *Compile-Log*):

  Symbol's function definition is void: t

What function is void, `t'?

Buffer *Messages* shows this:

cl--generic-make-next-function: Symbol's function definition is void: t

In previous releases there is no such problem.  The improper value is
just shown in buffer *Help*.

[Arguably, options defined in C should maybe have a non-nil property
`custom-set', with the proper :set function, so that using
`customize-set-variable' raises an error when setting to an improper
value.  But that too would be backward-incompatible.]

In Emacs 28.2, you get a similar wrong-type-argument error in
*Compile-Log*, but identifiying seq.elc, not cl-print.elc.  And in Emacs
28.2 the *Help* buffer is shown normally (as in previous releases).

In Emacs 27 and prior there is no confusing display of buffer
*Compile-Log* with its error message that is only half-helpful.

In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-08-02 built on
 AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.3448)

Configured using:
 'configure --with-modules --without-dbus --with-native-compilation=aot
 --without-compress-install --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	other threads:[~2023-10-15 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-15 21:25 Drew Adams [this message]
2023-10-23 14:53 ` bug#66570: 29.1; Regression when printing option set with value of wrong type Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB54881A472046910981F658D6F3D0A@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=66570@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).