GNU bug report logs - #33052
26.1; Emacs Calc Problem with sec and related trig functions

Previous Next

Package: emacs;

Reported by: Pierce Wang <pierce.g.wang <at> gmail.com>

Date: Mon, 15 Oct 2018 19:48:01 UTC

Severity: normal

Tags: confirmed

Found in version 26.1

Done: Mattias Engdegård <mattiase <at> acm.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 33052 in the body.
You can then email your comments to 33052 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#33052; Package emacs. (Mon, 15 Oct 2018 19:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierce Wang <pierce.g.wang <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Oct 2018 19:48:02 GMT) Full text and rfc822 format available.

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

From: Pierce Wang <pierce.g.wang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Emacs Calc Problem with sec and related trig functions
Date: Mon, 15 Oct 2018 12:04:08 -0700
[Message part 1 (text/plain, inline)]
Trying to evaluate "sec(pi/4)" in Calc's algebraic mode returns a "Wrong
type argument" instead of returning "sec( pi / 4 )" in the Calc as it
should. This bug is replicated with any number n (for sec(pi/n)) where n !=
1.

Recipe from emacs -Q:
C-x * *
m r
'sec(pi/4)

Thank you for all your hard work!

In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.2.0, NS appkit-1561.10
Version 10.13.1 (Build 17B1003))
of 2018-09-22 built on Pierces-MacBook-Air.local
Windowing system distributor 'Apple', version 10.3.1561
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
C-x *  (Type ? for a list of Calc options)
Loading /Users/piercewang/.emacs.d/calc.el (source)...done
Welcome to the GNU Emacs Calculator!  Press ‘?’ or ‘h’ for help, ‘q’ to quit
m-
Angles measured in radians
calc-do: Wrong type argument: number-or-marker-p, nil
Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/26.1_1/share/info/emacs
--prefix=/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x
--with-xml2 --without-dbus --without-imagemagick --with-ns
--disable-ns-self-contained'

Configured features:
JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS

Important settings:
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Calculator

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils calc-frac calc-arith calc-alg
calc-aent calc-math calc-ext calc-misc calc-menu easymenu calc
calc-loaddefs calc-macs elec-pair time-date tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 237129 9349)
(symbols 48 23211 1)
(miscs 40 53 193)
(strings 32 35244 1615)
(string-bytes 1 925272)
(vectors 16 37144)
(vector-slots 8 740188 18066)
(floats 8 54 240)
(intervals 56 232 0)
(buffers 992 13))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33052; Package emacs. (Wed, 10 Jul 2019 14:22:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pierce Wang <pierce.g.wang <at> gmail.com>
Cc: 33052 <at> debbugs.gnu.org
Subject: Re: bug#33052: 26.1; Emacs Calc Problem with sec and related trig
 functions
Date: Wed, 10 Jul 2019 16:20:53 +0200
Pierce Wang <pierce.g.wang <at> gmail.com> writes:

> Trying to evaluate "sec(pi/4)" in Calc's algebraic mode returns a "Wrong
> type argument" instead of returning "sec( pi / 4 )" in the Calc as it
> should. This bug is replicated with any number n (for sec(pi/n)) where n != 1.
>
> Recipe from emacs -Q:
> C-x * *
> m r
> 'sec(pi/4)

I spent half an hour trying to debug this, but the Calc code is a
mystery to me, with everything happening...  somewhere else, and
functions that don't take inputs but getting stuff from the
environment.  Or perhaps I just don't understand the approach, which is
pretty likely.

Does anybody else know how to debug things in Calc these days?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 10 Jul 2019 14:22:02 GMT) Full text and rfc822 format available.

Reply sent to Mattias Engdegård <mattiase <at> acm.org>:
You have taken responsibility. (Wed, 10 Jul 2019 17:38:02 GMT) Full text and rfc822 format available.

Notification sent to Pierce Wang <pierce.g.wang <at> gmail.com>:
bug acknowledged by developer. (Wed, 10 Jul 2019 17:38:02 GMT) Full text and rfc822 format available.

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

From: Mattias Engdegård <mattiase <at> acm.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Pierce Wang <pierce.g.wang <at> gmail.com>
Cc: 33052-done <at> debbugs.gnu.org
Subject: Re: bug#33052: 26.1; Emacs Calc Problem with sec and related trig
Date: Wed, 10 Jul 2019 19:37:03 +0200
In no way do I claim to know my way around Calc, but I made some guesses which seem to work.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33052; Package emacs. (Thu, 11 Jul 2019 14:20:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: Pierce Wang <pierce.g.wang <at> gmail.com>, 33052-done <at> debbugs.gnu.org
Subject: Re: bug#33052: 26.1; Emacs Calc Problem with sec and related trig
Date: Thu, 11 Jul 2019 16:19:44 +0200
Mattias Engdegård <mattiase <at> acm.org> writes:

> In no way do I claim to know my way around Calc, but I made some
> guesses which seem to work.

Great!

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 254 days ago.

Previous Next


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