diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 722b9460a27..fcb842de83c 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -938,10 +938,10 @@ is the default binding of the variable. */) | |||
| 938 | result = XCDR (result); | 938 | result = XCDR (result); |
| 939 | } | 939 | } |
| 940 | 940 | ||
| 941 | if (EQ (result, Qunbound)) | 941 | if (!EQ (result, Qunbound)) |
| 942 | return Fsignal (Qvoid_variable, Fcons (variable, Qnil)); | 942 | return result; |
| 943 | 943 | ||
| 944 | return result; | 944 | xsignal1 (Qvoid_variable, variable); |
| 945 | } | 945 | } |
| 946 | 946 | ||
| 947 | /* Return an alist of the Lisp-level buffer-local bindings of | 947 | /* Return an alist of the Lisp-level buffer-local bindings of |
| @@ -1961,7 +1961,7 @@ DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, | |||
| 1961 | { | 1961 | { |
| 1962 | if (!NILP (current_buffer->read_only) | 1962 | if (!NILP (current_buffer->read_only) |
| 1963 | && NILP (Vinhibit_read_only)) | 1963 | && NILP (Vinhibit_read_only)) |
| 1964 | Fsignal (Qbuffer_read_only, (Fcons (Fcurrent_buffer (), Qnil))); | 1964 | xsignal1 (Qbuffer_read_only, Fcurrent_buffer ()); |
| 1965 | return Qnil; | 1965 | return Qnil; |
| 1966 | } | 1966 | } |
| 1967 | 1967 | ||