unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / Atom feed
* bug#46710: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function.
       [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
  2021-02-24 16:54   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-02-22 19:54 UTC (permalink / raw)
  To: 46710

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#46710: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function.
  2021-02-22 19:54 ` bug#46710: 27.1; `calc' sub-menu item invokes non-existent `calc-mult' function Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-02-24 16:54   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-24 16:54 UTC (permalink / raw)
  To: Mark Harig; +Cc: 46710

Mark Harig <idirectscm@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-24 16:54 UTC | newest]

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

unofficial mirror of bug-gnu-emacs@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/emacs-bugs/0 emacs-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 emacs-bugs emacs-bugs/ https://yhetil.org/emacs-bugs \
		bug-gnu-emacs@gnu.org
	public-inbox-index emacs-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.bugs
	nntp://news.gmane.io/gmane.emacs.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git