diff options
| author | Kim F. Storm <storm@cua.dk> | 2006-07-18 13:25:47 +0000 |
|---|---|---|
| committer | Kim F. Storm <storm@cua.dk> | 2006-07-18 13:25:47 +0000 |
| commit | 4c4dc0b09b15549b690d3a1baae7a3152acc67ee (patch) | |
| tree | fb761a2a98c01c224a6698b68c8ebb884e6ff7f0 | |
| parent | 9b306d3759bc16bdede5feb832a4f8fe785b8827 (diff) | |
| download | emacs-4c4dc0b09b15549b690d3a1baae7a3152acc67ee.tar.gz | |
(Fbuffer_local_value, Fbarf_if_buffer_read_only):
Use xsignal1.
| -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. */) result = XCDR (result); } - if (EQ (result, Qunbound)) - return Fsignal (Qvoid_variable, Fcons (variable, Qnil)); + if (!EQ (result, Qunbound)) + return result; - return result; + xsignal1 (Qvoid_variable, variable); } /* 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, { if (!NILP (current_buffer->read_only) && NILP (Vinhibit_read_only)) - Fsignal (Qbuffer_read_only, (Fcons (Fcurrent_buffer (), Qnil))); + xsignal1 (Qbuffer_read_only, Fcurrent_buffer ()); return Qnil; } |
