aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2018-10-09 13:12:56 -0700
committerGlenn Morris2018-10-09 13:12:56 -0700
commitb89b5ca648015fc00db4328f5019095e0dc7b6db (patch)
tree28f4ac148a2383ed03574698e339dd194260088a /src
parent641d98531ef7177d9ff0cf6f7362c7ff5ad2fc1c (diff)
parent14c032d5f8d4ccb608cc906db34ddf17ce465449 (diff)
downloademacs-b89b5ca648015fc00db4328f5019095e0dc7b6db.tar.gz
emacs-b89b5ca648015fc00db4328f5019095e0dc7b6db.zip
Merge from origin/emacs-26
14c032d Avoid assertion violations in nonsensical calls to 'signal' b99192f * lisp/simple.el (transient-mark-mode): Correct documentation... 7e42294 Update the locale and language database 8c53d9f Fix a typo in a doc string. 79bda3b Make nneething allow CRLF-encoded files (bug#32940)
Diffstat (limited to 'src')
-rw-r--r--src/eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 5e25caaa847..42c275de6bc 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1591,7 +1591,7 @@ DEFUN ("signal", Fsignal, Ssignal, 2, 2, 0,
1591This function does not return. 1591This function does not return.
1592 1592
1593An error symbol is a symbol with an `error-conditions' property 1593An error symbol is a symbol with an `error-conditions' property
1594that is a list of condition names. 1594that is a list of condition names. The symbol should be non-nil.
1595A handler for any of those names will get to handle this signal. 1595A handler for any of those names will get to handle this signal.
1596The symbol `error' should normally be one of them. 1596The symbol `error' should normally be one of them.
1597 1597
@@ -1603,6 +1603,9 @@ See also the function `condition-case'. */
1603 attributes: noreturn) 1603 attributes: noreturn)
1604 (Lisp_Object error_symbol, Lisp_Object data) 1604 (Lisp_Object error_symbol, Lisp_Object data)
1605{ 1605{
1606 /* If they call us with nonsensical arguments, produce "peculiar error". */
1607 if (NILP (error_symbol) && NILP (data))
1608 error_symbol = Qerror;
1606 signal_or_quit (error_symbol, data, false); 1609 signal_or_quit (error_symbol, data, false);
1607 eassume (false); 1610 eassume (false);
1608} 1611}