GNU bug report logs - #46710
27.1; `calc' sub-menu item invokes non-existent `calc-mult' function.

Previous Next

Package: emacs;

Reported by: Mark Harig <idirectscm <at> aim.com>

Date: Mon, 22 Feb 2021 19:55:02 UTC

Severity: normal

Tags: fixed

Found in version 27.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 46710 in the body.
You can then email your comments to 46710 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#46710; Package emacs. (Mon, 22 Feb 2021 19:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark Harig <idirectscm <at> aim.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Feb 2021 19:55:02 GMT) Full text and rfc822 format available.

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

From: Mark Harig <idirectscm <at> aim.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function.
Date: Mon, 22 Feb 2021 19:54:10 +0000 (UTC)
[Message part 1 (text/plain, inline)]
Emacs Maintainers,

  It appears that a menu item in the ‘calc’ package attempts
  to invoke a function that does not exist.

  Recipe for producing the error, starting with "emacs -Q"
  (Emacs version 27.1)

  1. Start the ‘calc’ programmable calculator in Emacs with
  the keystrokes: C-x * c

  2. Enter two three-element vectors onto calc’s stack with
  the following keystrokes, separating each character with a
  space or comma:
  [ 1 2 3 ]
  [ 4 5 6 ]

  3. Attempting to calculate the dot product of the two
  vectors using the Calc menu item: Calc -> Matrices/Vectors
  -> Vectors -> (2:) dot (:1)

    Emacs responds with the following error message in the
  echo area: "Wrong type argument: commandp, calc-mult".

    Note that the menu item also documents the keystroke
  alternative, ‘*’.  C-h k * reports that ‘*’ invokes the
  function ‘calc-times’.  Likewise, the alternative menu
  item Calc -> Matrices/Vectors -> Matrices -> (2:) dot (:1)
  also invokes the function ‘calc-times’.  This menu item
  and ‘*’ produce the same result.

  The Calc -> Matrices/Vectors -> Vectors sub-menu is
  defined in the file calc-menu.el (in the lisp/calc
  sub-directory): (defvar calc-vectors-menu ...).
  The entry that lists the non-existent ‘calc-mult’ function  reads:
              ["(2:) dot (1:)"
              calc-mult
              :keys "*"
              :active (>= (calc-stack-size) 2)
              :help "The dot product"]

-- 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46710; Package emacs. (Wed, 24 Feb 2021 16:56:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Harig <idirectscm <at> aim.com>
Cc: 46710 <at> debbugs.gnu.org
Subject: Re: bug#46710: 27.1; `calc' sub-menu item invokes non-existent
 `calc-mult' function.
Date: Wed, 24 Feb 2021 17:54:50 +0100
Mark Harig <idirectscm <at> aim.com> writes:

>     Note that the menu item also documents the keystroke
>   alternative, ‘*’.  C-h k * reports that ‘*’ invokes the
>   function ‘calc-times’.  Likewise, the alternative menu
>   item Calc -> Matrices/Vectors -> Matrices -> (2:) dot (:1)
>   also invokes the function ‘calc-times’.  This menu item
>   and ‘*’ produce the same result.
>
>   The Calc -> Matrices/Vectors -> Vectors sub-menu is
>   defined in the file calc-menu.el (in the lisp/calc
>   sub-directory): (defvar calc-vectors-menu ...).
>
>   The entry that lists the non-existent ‘calc-mult’ function
>   reads:
>
>               ["(2:) dot (1:)"
>               calc-mult
>               :keys "*"
>               :active (>= (calc-stack-size) 2)
>               :help "The dot product"]

Thanks for the thorough analysis here.  I've now changed this to use
calc-times in Emacs 28, and that does indeed seem to produce the correct
results here (i.e., the same as the `*' command).

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 24 Feb 2021 16:56:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 46710 <at> debbugs.gnu.org and Mark Harig <idirectscm <at> aim.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 24 Feb 2021 16:56: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. (Thu, 25 Mar 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 33 days ago.

Previous Next


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