GNU bug report logs -
#60501
28.2; pr-interface: widget-default-create: Wrong type argument
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60501 in the body.
You can then email your comments to 60501 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Mon, 02 Jan 2023 20:10:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Fernando de Morais <fernandodemorais.jf <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 02 Jan 2023 20:10:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
To reproduce, which is possible with `emacs -Q', just:
M-x pr-interface
Results in:
A mostly empty `*Print Interface*' buffer appears along with the
`widget-default-create: Wrong type argument: listp, "<buffer-name>"'
error message, where `<buffer-name>' is the name of the buffer the
command was called from, e.g. "*scratch*".
In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)
of 2022-09-12 built on frederik
Windowing system distributor 'The X.Org Foundation', version 11.0.12101006
System Description: Arch Linux
Configured using:
'configure --with-x-toolkit=gtk3 --with-native-compilation
--sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
--localstatedir=/var --with-cairo --with-harfbuzz --with-libsystemd
--with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt
-fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -g
-ffile-prefix-map=/build/emacs/src=/usr/src/debug -flto=auto'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto''
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XDBE XIM XPM GTK3 ZLIB
Important settings:
value of $LC_CTYPE: pt_BR.UTF-8
value of $LANG: pt_BR.UTF-8
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
shell-dirtrack-mode: t
savehist-mode: t
minions-mode: t
movemail-auto-fetch-mode: t
marginalia-mode: t
icomplete-vertical-mode: t
icomplete-mode: t
minibuffer-electric-default-mode: t
minibuffer-depth-indicate-mode: t
display-time-mode: t
global-so-long-mode: t
recentf-mode: t
electric-pair-mode: t
delete-selection-mode: t
display-battery-mode: t
gcmh-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
temp-buffer-resize-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow gnus-cite footnote mail-extr emacsbug sendmail rx qp mm-archive
timezone url-http url-gw url-cache url-auth gnutls network-stream nsm
printing ps-print ps-print-loaddefs ps-def lpr mule-util sort gnus-ml
disp-table nnmaildir nnagent nnml nnnil nnrss mm-url gnus-topic mairix
gnus-search eieio-opt speedbar ezimage dframe find-func gnus-dup
gnus-draft nndraft nnmh gnus-demon gnus-async gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig nntp gnus-cache gnus-sum shr-tag-pre-highlight
language-detection shr kinsoku svg dom gnus-group gnus-undo gnus-start
gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822
mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils
mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs
mail-utils corfu time-date checkdoc lisp-mnt mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr dired-x dired-aux dired
dired-loaddefs flymake-proc flymake project compile text-property-search
exec-path-from-shell bash-completion shell pcomplete comint ansi-color
ring warnings display-line-numbers epa-file epa derived epg rfc6068
epg-config cl-extra flyspell ispell goto-addr hl-line hideshow yasnippet
help-mode rainbow-delimiters cus-start savehist server minions
easy-mmode let-alist ibuf-macs marginalia icomplete minibuf-eldef
mb-depth orderless time so-long recentf tree-widget edmacro kmacro
elec-pair delsel format-spec battery dbus xml auth-source-pass
modus-operandi-theme modus-themes pcase ffap thingatpt no-littering
compat compat-macs gcmh system-packages tex-site info package browse-url
url url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cus-edit pp
cus-load wid-edit cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)
Memory information:
((conses 16 472440 74995)
(symbols 48 29036 5)
(strings 32 139616 51220)
(string-bytes 1 10442933)
(vectors 16 242900)
(vector-slots 8 2631490 273363)
(floats 8 91540 511)
(intervals 56 671 274)
(buffers 992 25))
--
Regards,
Fernando de Morais.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 10:49:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 60501 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Mon, 02 Jan 2023 17:08:33 -0300, Fernando de Morais <fernandodemorais.jf <at> gmail.com> said:
Fernando> To reproduce, which is possible with `emacs -Q', just:
Fernando> M-x pr-interface
This has been broken for quite some time. Bisected to the following:
commit cbd24607d7b7419eb0f639c95185aff13f99c10d
Mauro, any chance you could take a look?
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 15:23:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 60501 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
>>>>>> On Mon, 02 Jan 2023 17:08:33 -0300, Fernando de Morais
> <fernandodemorais.jf <at> gmail.com> said:
>
> Fernando> To reproduce, which is possible with `emacs -Q', just:
> Fernando> M-x pr-interface
>
> This has been broken for quite some time. Bisected to the following:
>
> commit cbd24607d7b7419eb0f639c95185aff13f99c10d
>
> Mauro, any chance you could take a look?
>
> Robert
Hi Robert,
thanks for CCing me.
I don't have a lot of time right now, but I took a look at the code in
printing.el and I don't really understand why its using :inline t
when creating the menu-choice widget, since the values seem to be
strings or symbols. That is, nothing that needs to be inlined.
I wasn't aware of this breakage, of course, but it looks like I
should've made the code be more defensive (i.e., use car-safe instead of
car).
If I get more time, I'll try to see if that's a solution here.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 16:01:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 60501 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 4 Jan 2023 12:21:55 -0300, Mauro Aranda <maurooaranda <at> gmail.com> said:
Mauro> I don't have a lot of time right now, but I took a look at the code in
Mauro> printing.el and I don't really understand why its using :inline t
Mauro> when creating the menu-choice widget, since the values seem to be
Mauro> strings or symbols. That is, nothing that needs to be inlined.
OK. I canʼt comment on that, but we should try to be defensive
Mauro> I wasn't aware of this breakage, of course, but it looks like I
Mauro> should've made the code be more defensive (i.e., use car-safe instead of
Mauro> car).
How about this (using car-safe would result in nil):
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 8250316bcc7..f4a49f58bed 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -2231,7 +2231,9 @@ widget-choice-value-create
(if (widget-get current :inline)
(setq val value
fun :match-inline)
- (setq val (car value)
+ (setq val (if (consp value)
+ (car value)
+ value)
fun :match))
(setq val value
fun :match))
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 16:08:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 60501 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> gmail.com> writes:
>>>>>> On Wed, 4 Jan 2023 12:21:55 -0300, Mauro Aranda
> <maurooaranda <at> gmail.com> said:
>
> Mauro> I don't have a lot of time right now, but I took a look at
> Mauro> the code in
> Mauro> printing.el and I don't really understand why its using
:inline t
> Mauro> when creating the menu-choice widget, since the values
seem to be
> Mauro> strings or symbols. That is, nothing that needs to be
inlined.
>
> OK. I canʼt comment on that, but we should try to be defensive
>
> Mauro> I wasn't aware of this breakage, of course, but it looks
like I
> Mauro> should've made the code be more defensive (i.e., use
> Mauro> car-safe instead of
> Mauro> car).
>
> How about this (using car-safe would result in nil):
>
> diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
> index 8250316bcc7..f4a49f58bed 100644
> --- a/lisp/wid-edit.el
> +++ b/lisp/wid-edit.el
> @@ -2231,7 +2231,9 @@ widget-choice-value-create
> (if (widget-get current :inline)
> (setq val value
> fun :match-inline)
> - (setq val (car value)
> + (setq val (if (consp value)
> + (car value)
> + value)
> fun :match))
> (setq val value
> fun :match))
Yes, that should do.
Thanks for taking care of this.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 16:14:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 60501 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 4 Jan 2023 13:07:21 -0300, Mauro Aranda <maurooaranda <at> gmail.com> said:
Mauro> Yes, that should do.
Mauro> Thanks for taking care of this.
np.
Eli, this is a regression from emacs-27, so Iʼd suggest putting it on
the release branch, but itʼs taken a *long* time to be reported.
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Wed, 04 Jan 2023 17:11:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 60501 <at> debbugs.gnu.org (full text, mbox):
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Fernando de Morais <fernandodemorais.jf <at> gmail.com>, 60501 <at> debbugs.gnu.org,
> Eli Zaretskii <eliz <at> gnu.org>
> Date: Wed, 04 Jan 2023 17:12:53 +0100
>
> Eli, this is a regression from emacs-27, so Iʼd suggest putting it on
> the release branch, but itʼs taken a *long* time to be reported.
Fine with me, thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#60501
; Package
emacs
.
(Fri, 06 Jan 2023 09:09:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 60501 <at> debbugs.gnu.org (full text, mbox):
tags 60501 fixed
close 60501 29.1
quit
>>>>> On Wed, 04 Jan 2023 19:10:23 +0200, Eli Zaretskii <eliz <at> gnu.org> said:
Eli> Fine with me, thanks.
Done.
Robert
--
Closing.
Committed as 7420b6dcc37
Added tag(s) fixed.
Request was from
Robert Pluim <rpluim <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 06 Jan 2023 09:09:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 29.1, send any further explanations to
60501 <at> debbugs.gnu.org and Fernando de Morais <fernandodemorais.jf <at> gmail.com>
Request was from
Robert Pluim <rpluim <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 06 Jan 2023 09:09:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 03 Feb 2023 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 194 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.