* data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and
authorJim Blandy <jimb@redhat.com>
Tue, 29 Sep 1992 04:54:28 +0000 (04:54 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 29 Sep 1992 04:54:28 +0000 (04:54 +0000)
HP/UX, not just under USG systems.

src/buffer.c
src/data.c

index 80d4ece..1d36373 100644 (file)
@@ -931,7 +931,7 @@ If BUFFER is omitted, the current buffer is buried.")
     }
 
   /* Remove it from the screen.  */
-  if (EQ (buf, XWINDOW (selected_frame)->buffer))
+  if (EQ (buf, XWINDOW (selected_window)->buffer))
     Fswitch_to_buffer (Fother_buffer (buf), Qnil);
 
   /* Move it to the end of the buffer list.  */
index 9b45fc6..50813f6 100644 (file)
@@ -1649,7 +1649,7 @@ Both must be numbers or markers.")
 
       f1 = XTYPE (num1) == Lisp_Float ? XFLOAT (num1)->data : XINT (num1);
       f2 = XTYPE (num2) == Lisp_Float ? XFLOAT (num2)->data : XINT (num2);
-#ifdef USG
+#if defined (USG) || defined (sun) || defined (ultrix) || defined (hpux)
       f1 = fmod (f1, f2);
 #else
       f1 = drem (f1, f2);