aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 73db9d21419..dc6bcd8f6d3 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -951,10 +951,10 @@ is the default binding of the variable. */)
951 result = XCDR (result); 951 result = XCDR (result);
952 } 952 }
953 953
954 if (EQ (result, Qunbound)) 954 if (!EQ (result, Qunbound))
955 return Fsignal (Qvoid_variable, Fcons (variable, Qnil)); 955 return result;
956 956
957 return result; 957 xsignal1 (Qvoid_variable, variable);
958} 958}
959 959
960/* Return an alist of the Lisp-level buffer-local bindings of 960/* Return an alist of the Lisp-level buffer-local bindings of
@@ -1991,7 +1991,7 @@ DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only,
1991{ 1991{
1992 if (!NILP (current_buffer->read_only) 1992 if (!NILP (current_buffer->read_only)
1993 && NILP (Vinhibit_read_only)) 1993 && NILP (Vinhibit_read_only))
1994 Fsignal (Qbuffer_read_only, (Fcons (Fcurrent_buffer (), Qnil))); 1994 xsignal1 (Qbuffer_read_only, Fcurrent_buffer ());
1995 return Qnil; 1995 return Qnil;
1996} 1996}
1997 1997