unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Harig via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 46710@debbugs.gnu.org
Subject: bug#46710: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function.
Date: Mon, 22 Feb 2021 19:54:10 +0000 (UTC)	[thread overview]
Message-ID: <1223299299.1262773.1614023650941@mail.yahoo.com> (raw)
In-Reply-To: 1223299299.1262773.1614023650941.ref@mail.yahoo.com

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

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"]

-- 


[-- Attachment #2: Type: text/html, Size: 6918 bytes --]

       reply	other threads:[~2021-02-22 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1223299299.1262773.1614023650941.ref@mail.yahoo.com>
2021-02-22 19:54 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-02-24 16:54   ` bug#46710: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function Lars Ingebrigtsen

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=1223299299.1262773.1614023650941@mail.yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=46710@debbugs.gnu.org \
    --cc=idirectscm@aim.com \
    /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).