X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fbuffer.c;h=bd44a47fc40487a6f72cf828d6b7de1921c62d4d;hp=a1620b750d288b88c511bd3ca9bac91a596ff754;hb=79d2db7d65205bc85d471590726d0cf3af5598e0;hpb=21db8709c0c2dcedbd278c7fe571290d5ce80a71 diff --git a/src/buffer.c b/src/buffer.c index a1620b7..bd44a47 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -356,7 +356,7 @@ get_buffer (Lisp_Object name, int error_if_deleted_or_does_not_exist) struct buffer * decode_buffer (Lisp_Object buffer, int allow_string) { - if (NILP (buffer)) + if (NILP (buffer) || (!POINTER_TYPE_P( XTYPE(buffer)))) return current_buffer; if (allow_string && STRINGP (buffer)) @@ -998,8 +998,8 @@ The ordering is for this frame; If second optional argument FRAME is provided, then the ordering is for that frame. If the second arg is t, then the global ordering is returned. -Note: In FSF Emacs, this function takes two arguments: BUFFER and -VISIBLE-OK. +Note: In FSF Emacs, this function takes the arguments in the order of +BUFFER, VISIBLE-OK and FRAME. */ (buffer, frame, visible_ok)) {