* could `minibufferp' have an optional BUFFER arg ?
@ 2002-09-25 13:00 John Paul Wallington
2002-09-26 8:05 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: John Paul Wallington @ 2002-09-25 13:00 UTC (permalink / raw)
Is it a good idea for `minibufferp' to have an optional BUFFER
argument?
If so, is the following reasonable ?
diff -c /build-emacs/emacs/src/minibuf.c.\~1.249.\~ /build-emacs/emacs/src/minibuf.c
*** /build-emacs/emacs/src/minibuf.c.~1.249.~ Tue Aug 13 23:52:05 2002
--- /build-emacs/emacs/src/minibuf.c Wed Sep 25 13:25:39 2002
***************
*** 319,331 ****
}
\f
DEFUN ("minibufferp", Fminibufferp,
! Sminibufferp, 0, 0, 0,
! doc: /* Return t if the current buffer is a minibuffer. */)
! ()
{
Lisp_Object tem;
! tem = Fmemq (Fcurrent_buffer (), Vminibuffer_list);
return ! NILP (tem) ? Qt : Qnil;
}
--- 319,338 ----
}
\f
DEFUN ("minibufferp", Fminibufferp,
! Sminibufferp, 0, 1, 0,
! doc: /* Return t if BUFFER is a minibuffer.
! No argument or nil as argument means use current buffer as BUFFER.*/)
! (buffer)
! Lisp_Object buffer;
{
Lisp_Object tem;
! if (NILP (buffer))
! buffer = Fcurrent_buffer ();
! else
! buffer = Fget_buffer (buffer);
!
! tem = Fmemq (buffer, Vminibuffer_list);
return ! NILP (tem) ? Qt : Qnil;
}
--
John Paul Wallington
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: could `minibufferp' have an optional BUFFER arg ?
2002-09-25 13:00 could `minibufferp' have an optional BUFFER arg ? John Paul Wallington
@ 2002-09-26 8:05 ` Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-09-26 8:05 UTC (permalink / raw)
Cc: emacs-devel
It seems ok to me, so please install it.
Please add an item to NEWS also.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-26 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-25 13:00 could `minibufferp' have an optional BUFFER arg ? John Paul Wallington
2002-09-26 8:05 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.