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

Use user-error instead of error where applicable #1

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

Conversation

luismbo
Copy link

@luismbo luismbo commented Aug 21, 2019

Quoting from section 11.7.3.1 How to Signal an Error in the GNU Emacs
Lisp Reference Manual (version 26.2):

"[user-error] behaves exactly like error, except that it uses the error
symbol user-error rather than error. [It] is intended to report errors
on the part of the user, rather than errors in the code itself. For
example, if you try to use the command Info-history-back (l) to move
back beyond the start of your Info browsing history, Emacs signals a
user-error. Such errors do not cause entry to the debugger, even when
debug-on-error is non-nil."

Quoting from section 11.7.3.1 How to Signal an Error in the GNU Emacs
Lisp Reference Manual (version 26.2):

"[user-error] behaves exactly like error, except that it uses the error
symbol user-error rather than error. [It] is intended to report errors
on the part of the user, rather than errors in the code itself. For
example, if you try to use the command Info-history-back (l) to move
back beyond the start of your Info browsing history, Emacs signals a
user-error. Such errors do not cause entry to the debugger, even when
debug-on-error is non-nil."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant