From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mark Harig via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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) Message-ID: <1223299299.1262773.1614023650941@mail.yahoo.com> References: <1223299299.1262773.1614023650941.ref@mail.yahoo.com> Reply-To: Mark Harig Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1262772_1356092636.1614023650939" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26144"; mail-complaints-to="usenet@ciao.gmane.io" To: 46710@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 20:55:26 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEHIj-0006ge-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 20:55:25 +0100 Original-Received: from localhost ([::1]:46870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEHIi-0006rU-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 14:55:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEHIM-0006py-Op for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 14:55:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEHIM-0008NW-Em for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 14:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEHIM-0006xi-DO for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 14:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Harig Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2021 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46710 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.161402366526709 (code B ref -1); Mon, 22 Feb 2021 19:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Feb 2021 19:54:25 +0000 Original-Received: from localhost ([127.0.0.1]:57629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEHHk-0006wi-IG for submit@debbugs.gnu.org; Mon, 22 Feb 2021 14:54:24 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEHHj-0006wb-1H for submit@debbugs.gnu.org; Mon, 22 Feb 2021 14:54:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEHHi-0006OV-1I for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 14:54:22 -0500 Original-Received: from sonic313-9.consmr.mail.ne1.yahoo.com ([66.163.185.32]:32775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEHHc-00084o-Uh for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 14:54:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aim.com; s=a2048; t=1614023653; bh=SOW/GcJF7Za7QsF6ewcT0Bie4ApctVDnQZYacdinYdQ=; h=Date:From:Reply-To:To:Subject:References:From:Subject:Reply-To; b=PRGlOnpNfb8TZcOYqNOsK3qL2pdpO1HBZpY2wTVxjNgOXZPYBmpJI7bh16biBYsLu0IiGwJ5N2mCThEX0MUL55+D5FbyhqIsF1rAhZDB/lJc+DEh5QFB7NiR1fvs1Dge/eldwxuhtwT5v4P+OcszSbzY72+qxK3eA3oz4YpkE4U7WEZfPrkjfO2ICQl0lXeGH0vXuIUSUtGkQk2fXqoPlUSyubLOF+QRrBB+9+P+U7JLWudm8Z11QVJfobeRWVrwt2zFq67j/OxcRALraBTg5qseOypsbhF5ijanF7K5i6iHOjU0H++N2M91QT1l0U71mmQxdDNOR458bJbCoUo47A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1614023653; bh=mz6sqy55MTdR3VFRCw0sTMpEn72DlmGgTcxsTakJmmP=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=kSSO05DNhMF8jCPuzhJ8X9y3PcFrsCvMDCGcNFb/du72qU+iz0Ry1LVNGhQn7MQ0ymbgQPCJPa9+MdAuTcdYW+9YbCNdH6xDZY49X6QjMydULnwmh8h3HYWwKECpdKcSt7OfTm01WTNjCJ5gYofijDaP/dbUM5SVHsBLTtz3nNriv+6Q0o9lIcm7VZOMr7kgDCpwTlzVf/OostX/lQ9nLftvufdfH/X4cRwDfO96JbU717Mvi/po8kevROxG0u6WoLpoQYuaiQe9ChbS9yUCgcdkvCnxgJ7CBsb3EZJUfPwkdUV9TZuSn7S5pdBgYF/+IJtLRJILa62Q3Lr4imJCmw== X-YMail-OSG: vLR8ORAVM1na9pc4KR7oKfNPWNNiU3Dnz4OURkdYsN.nev1zLyjUQvujqqghKQP PyDYt2GGNBstS4c8lFMfAYTXnGZhJzjZKIVKypLTSH5R5LsVKLDAu1wNMOkUpDg42M3abXhng0Ar Ov2LfwiExt2hNlduB0RdCbgi1khDBg8sEWdPmESx6zylYvbA7NDW._FajZSrMZB7GYOwQKZIm1ru 4VbI0icDntmOOPfjYtaMeFb3hMKmkIiaAAQ75okCh7HS7shHoBoRON_Nsv0qVMxUIo.VygkC9eX2 H4B0gCfoCmZ4VJzvJ.PjC1snSuOOFBb5RvQ3zYD7IZ5S.EC1TKDkyvN.J5gokD3wobpd2bIm_PG7 5nemYZOht9Can_Mowg7kRVKkSQK4_WOMJ5Yz27MFQRYjbm.cCI007aVQjl6rCqU8gdnI2BAS.3ds bYmLPecb2uDICj9hev.HT9ZUDWCEBEhff76XhDCeFuYXePAKg6jgjOftfTN0Up2vvcGxUpV90oAS GujGJiSATHnUkiK4PQZJmv9M8RppyIZYzKaRteJtJF5JldWHG3QFaAK9FvNh1iOjHYc4n2ZWLbM_ vcRdriVS3PPi8LYWEzlqLWnl8EIdyOb48inZ5E66xWX6r3j5b8.zii.mjtgfmUjmV5Iwls1WO8kY t.EaJ5RHDDMUOh1U2AdR.6h7UfMqKxRMA.sF46ADMSLm29zZe3mYjpuIxWKDJW9k2MNFddFVjOAv uNA2th0TsaqqxTpUVhHrOG1iu1wQwACzgwbngMQet1vcBvbIlAYB3DM673sQpxwT5HpEguqxwKql 6Qdj1lCqDRsTQCu7BwKTRbLHRRdjoRmyBsV3UwHqT9 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Mon, 22 Feb 2021 19:54:13 +0000 X-Mailer: WebService/1.1.17712 aolwebmail Mozilla/5.0 (X11; CrOS x86_64 13729.29.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.57 Safari/537.36 Received-SPF: pass client-ip=66.163.185.32; envelope-from=idirectscm@aim.com; helo=sonic313-9.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" X-ACL-Warn: , Mark Harig Xref: news.gmane.io gmane.emacs.bugs:200618 Archived-At: ------=_Part_1262772_1356092636.1614023650939 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Emacs Maintainers, =C2=A0 It appears that a menu item in the =E2=80=98calc=E2=80=99 package at= tempts =C2=A0 to invoke a function that does not exist. =C2=A0 Recipe for producing the error, starting with "emacs -Q" =C2=A0 (Emacs version 27.1) =C2=A0 1. Start the =E2=80=98calc=E2=80=99 programmable calculator in Emacs= with =C2=A0 the keystrokes: C-x * c =C2=A0 2. Enter two three-element vectors onto calc=E2=80=99s stack with =C2=A0 the following keystrokes, separating each character with a =C2=A0 space or comma: =C2=A0 [ 1 2 3 ] =C2=A0 [ 4 5 6 ] =C2=A0 3. Attempting to calculate the dot product of the two =C2=A0 vectors using the Calc menu item: Calc -> Matrices/Vectors =C2=A0 -> Vectors -> (2:) dot (:1) =C2=A0 =C2=A0 Emacs responds with the following error message in the =C2=A0 echo area: "Wrong type argument: commandp, calc-mult". =C2=A0 =C2=A0 Note that the menu item also documents the keystroke =C2=A0 alternative, =E2=80=98*=E2=80=99.=C2=A0 C-h k * reports that =E2=80= =98*=E2=80=99 invokes the =C2=A0 function =E2=80=98calc-times=E2=80=99.=C2=A0 Likewise, the alternati= ve menu =C2=A0 item Calc -> Matrices/Vectors -> Matrices -> (2:) dot (:1) =C2=A0 also invokes the function =E2=80=98calc-times=E2=80=99.=C2=A0 This m= enu item =C2=A0 and =E2=80=98*=E2=80=99 produce the same result. =C2=A0 The Calc -> Matrices/Vectors -> Vectors sub-menu is =C2=A0 defined in the file calc-menu.el (in the lisp/calc =C2=A0 sub-directory): (defvar calc-vectors-menu ...). =C2=A0 The entry=C2=A0that lists the non-existent =E2=80=98calc-mult=E2=80= =99 function=C2=A0 reads: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ["(2:) dot (1:)" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc-mult =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :keys "*" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :active (>=3D (calc-stack-= size) 2) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :help "The dot product"] --=C2=A0 ------=_Part_1262772_1356092636.1614023650939 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Emacs Maintainers,

  It appears that a menu item in the =E2=80=98calc=E2=80=99= package attempts
  to invoke a function that does not exist.

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

  1. Start the =E2=80=98calc=E2=80=99 programmable calculat= or in Emacs with
  the keystrokes: C-x * c

  2. Enter two three-element vectors onto calc=E2=80=99s st= ack 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/Vec= tors
  -> 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 keystro= ke
  alternative, =E2=80=98*=E2=80=99.  C-h k * reports t= hat =E2=80=98*=E2=80=99 invokes the
  function =E2=80=98calc-times=E2=80=99.  Likewise, th= e alternative menu
  item Calc -> Matrices/Vectors -> Matrices -> (2:= ) dot (:1)
  also invokes the function =E2=80=98calc-times=E2=80=99.&n= bsp; This menu item
  and =E2=80=98*=E2=80=99 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 =E2=80=98calc-mult=E2=80=99 function
  reads:

              ["(2:) dot (1:)= "
              calc-mult
              :keys "*"
              :active (>= =3D (calc-stack-size) 2)
              :help "The dot = product"]

-- 


------=_Part_1262772_1356092636.1614023650939--