unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Calc; v p fails in script
@ 2020-03-20 12:17 Bart Nielsen
  2020-03-21  7:42 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Nielsen @ 2020-03-20 12:17 UTC (permalink / raw)
  To: emacs-devel


Please describe exactly what actions triggered the bug and the
precise symptoms of the bug.  If possible, include a backtrace by
doing `\[toggle-debug-on-error]', then reproducing the bug.

When I pack a set of vectors on teh stack in a keyboard macro, it fails
to do that when I run the keyboard macro.


In particular:

If I define a macro that builds a matrix from two vectors, the result on
the stack is my two vectors plus rev(2)

^x (
vx 2
<return>
2 vp
^x )

This defines a macro, which I named make.matrix.x2


(fset 'make\.matrix\.x2
   [?v ?x ?2 return return ?2 ?v ?v ?p])

when I run it, I end up with the following on the stack:

--- Emacs Calculator Mode ---
4:  [ [ 1, 2 ]
      [ 1, 2 ] ]
3:  [1, 2]
2:  [1, 2]
1:  rev(2)
    .

I had to abort the macro with ^g to get it to show up.

Emacs  : GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))
 of 2016-09-20
Package: Calc




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Calc; v p fails in script
@ 2020-03-20 12:20 Bart Nielsen
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Nielsen @ 2020-03-20 12:20 UTC (permalink / raw)
  To: emacs-devel

I don’t think the emacs/mail interface works. If this is a repeat, I apologize, but it has been a real problem for me for years.

Thanks,


Please describe exactly what actions triggered the bug and the
precise symptoms of the bug.  If possible, include a backtrace by
doing `\[toggle-debug-on-error]', then reproducing the bug.

When I pack a set of vectors on teh stack in a keyboard macro, it fails
to do that when I run the keyboard macro.


In particular:

If I define a macro that builds a matrix from two vectors, the result on
the stack is my two vectors plus rev(2)

^x (
vx 2
<return>
2 vp
^x )

This defines a macro, which I named make.matrix.x2


(fset 'make\.matrix\.x2
   [?v ?x ?2 return return ?2 ?v ?v ?p])

when I run it, I end up with the following on the stack:

--- Emacs Calculator Mode ---
4:  [ [ 1, 2 ]
      [ 1, 2 ] ]
3:  [1, 2]
2:  [1, 2]
1:  rev(2)
    .

I had to abort the macro with ^g to get it to show up.

Emacs  : GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911))
 of 2016-09-20
Package: Calc


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

end of thread, other threads:[~2020-03-21  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-20 12:17 Calc; v p fails in script Bart Nielsen
2020-03-21  7:42 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2020-03-20 12:20 Bart Nielsen

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).