]> git.eshelyaron.com Git - emacs.git/commitdiff
* minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Sep 2006 17:37:26 +0000 (17:37 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Sep 2006 17:37:26 +0000 (17:37 +0000)
src/ChangeLog
src/minibuf.c

index 1082f792934a96742354a06c04c21f009a6176e0..76a292d43bfecb5575e88e4f1822abf034e9a4b1 100644 (file)
@@ -1,3 +1,7 @@
+2006-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
+
 2006-09-02  Jindrich Makovicka  <makovick@gmail.com>  (tiny change)
 
        * fns.c (concat) [__GNUC__]: Declare with
index a5ad7077dbeb53a85dabaa9c9f75d772ef1e59ae..58da5385728b685cdc0de28ae3ba1c7550f41efb 100644 (file)
@@ -1149,24 +1149,6 @@ A user variable is one for which `user-variable-p' returns non-nil.  */)
   return Fintern (name, Qnil);
 }
 
-DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0,
-       doc: /* Perform completion on buffer names.
-If the argument FLAG is nil, invoke `try-completion', if it's t, invoke
-`all-completions', otherwise invoke `test-completion'.
-
-The arguments STRING and PREDICATE are as in  `try-completion',
-`all-completions', and `test-completion'. */)
-     (string, predicate, flag)
-     Lisp_Object string, predicate, flag;
-{
-  if (NILP (flag))
-    return Ftry_completion (string, Vbuffer_alist, predicate);
-  else if (EQ (flag, Qt))
-    return Fall_completions (string, Vbuffer_alist, predicate, Qt);
-  else                         /* assume `lambda' */
-    return Ftest_completion (string, Vbuffer_alist, predicate);
-}
-
 DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 3, 0,
        doc: /* Read the name of a buffer and return as a string.
 Prompt with PROMPT.
@@ -1923,6 +1905,24 @@ the values STRING, PREDICATE and `lambda'.  */)
     return Qt;
 }
 
+DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0,
+       doc: /* Perform completion on buffer names.
+If the argument FLAG is nil, invoke `try-completion', if it's t, invoke
+`all-completions', otherwise invoke `test-completion'.
+
+The arguments STRING and PREDICATE are as in  `try-completion',
+`all-completions', and `test-completion'. */)
+     (string, predicate, flag)
+     Lisp_Object string, predicate, flag;
+{
+  if (NILP (flag))
+    return Ftry_completion (string, Vbuffer_alist, predicate);
+  else if (EQ (flag, Qt))
+    return Fall_completions (string, Vbuffer_alist, predicate, Qt);
+  else                         /* assume `lambda' */
+    return Ftest_completion (string, Vbuffer_alist, predicate);
+}
+
 /* returns:
  * 0 no possible completion
  * 1 was already an exact and unique completion