GNU bug report logs -
#64344
[PATCH] Make calculator work with customized mode-line
Previous Next
Reported by: john muhl <jm <at> pub.pink>
Date: Thu, 29 Jun 2023 06:44:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#64344: [PATCH] Make calculator work with customized mode-line
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 64344 <at> debbugs.gnu.org.
--
64344: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64344
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: john muhl <jm <at> pub.pink>
> Cc: 64344 <at> debbugs.gnu.org
> Date: Thu, 29 Jun 2023 10:12:06 -0500
>
> > Shouldn't that be 'consp' instead? 'listp' returns non-nil for nil
> > argument.
>
> I’m not expert enough to say more than that either way works to fix the
> issue. Originally I did the ‘(cdr lh)’ unconditionally and got an error
> mentioning ‘listp’ so I just used that when I added the condition; if it
> had said ‘conps’ I would have used that.
>
> Here is the patch with ‘consp’ instead.
Thanks. That still uses 'listp', so I fixed that manually.
This is now installed on the emacs-29 branch; closing the bug.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
calculator.el doesn’t work after customizing the mode-line. It assumes
the line-width is always an integer but after using customize it is a
dotted list.
- emacs -Q
- M-x customize-apropos-faces RET mode-line RET
- Ensure ‘mode-line-face’ has a box property with vertical and
horizontal widths. The default config includes these already.
- Set for current session
- M-x calculator RET
=> calculator: Wrong type argument: number-or-marker-p, (1 . -1)
In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version
3.24.38, cairo version 1.17.8) of 2023-06-28 built on localhost
Repository revision: c5d6102313076b83526dc79bfb563621671fb70b
Repository branch: master
System Description: Fedora Linux 38 (Workstation Edition)
Configured using:
'configure --with-native-compilation --with-pgtk'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB
[0001-lisp-calculator-el--calculator-need-3-lines---Ch.patch (text/x-patch, attachment)]
[Message part 6 (text/plain, inline)]
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 1 year and 331 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.