Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reseting to previous error stacks #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Affonso-Gui
Copy link
Member

Split from #362 to be easier to merge.

This is necessary for euslime.

Copy pasting description below

With this fixes, (reset 2) throws 2 and goes back to level 1:

1.eus$ (let ((a 1)) (error "1st error"))
Call Stack (max depth: 20):
  0: at (error "1st error")
  1: at (let ((a 1)) (error "1st error"))
  2: at #<compiled-code #X64dfdc0>
eus 0 error:  1st error in (error "1st error")
2.E1-eus$ (let ((b 2)) (error "2nd error"))
Call Stack (max depth: 20):
  0: at (error "2nd error")
  1: at (let ((b 2)) (error "2nd error"))
  2: at euserror
  3: at euserror
  4: at (error "1st error")
  5: at (let ((a 1)) (error "1st error"))
  6: at #<compiled-code #X64dfdc0>
eus 0 error:  2nd error in (error "2nd error")
3.E2-eus$ (eval-dynamic 'a)
1
4.E2-eus$ (eval-dynamic 'b)
2
5.E2-eus$ (reset 2)
6.E1-eus$ (eval-dynamic 'a)
1
7.E1-eus$ (eval-dynamic 'b)
*unbound*

@Affonso-Gui
Copy link
Member Author

EDIT: actually this does not seems to be necessary for euslime because it overwrites the euserror

@k-okada
Copy link
Member

k-okada commented Jun 19, 2019

Thank you for contributing EusLisp documentation

Please check latest documents before merging

PDF version of English manual: manual.pdf
PDF version of Japanese jmanual: jmanual.pdf
HTML version of English manual: manual.html
HTML version of Japanese manual: jmanual.html
Sphinx (ReST) version of English manual: manual.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants