Changeset 1711

Show
Ignore:
Timestamp:
02/17/98 01:45:20 (11 years ago)
Author:
himi
Message:

FSF GNU Emacs 20.3 98/8/21 Release.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/GNU/src/window.c

    r1703 r1711  
    3636#endif 
    3737 
    38 Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p
     38Lisp_Object Qwindowp, Qwindow_live_p
    3939 
    4040static struct window *decode_window P_ ((Lisp_Object)); 
     
    13081308  DELETE_BUFFER_WINDOWS,        /* Arg is buffer */ 
    13091309  GET_LARGEST_WINDOW, 
    1310   UNSHOW_BUFFER,                /* Arg is buffer */ 
    1311   CHECK_ALL_WINDOWS 
     1310  UNSHOW_BUFFER         /* Arg is buffer */ 
    13121311}; 
    13131312 
     
    13761375         if that is desired, under the control of frame_arg.  */ 
    13771376      if (! MINI_WINDOW_P (XWINDOW (w)) 
    1378           /* For UNSHOW_BUFFER, we must always consider all windows.  */ 
    1379           || type == UNSHOW_BUFFER 
    13801377          || (mini && minibuf_level > 0)) 
    13811378        switch (type) 
     
    15201517              } 
    15211518            break; 
    1522  
    1523             /* Check for a window that has a killed buffer.  */ 
    1524           case CHECK_ALL_WINDOWS: 
    1525             if (! NILP (XWINDOW (w)->buffer) 
    1526                 && NILP (XBUFFER (XWINDOW (w)->buffer)->name)) 
    1527               abort (); 
    15281519          } 
    15291520 
     
    15351526 
    15361527  return best_window; 
    1537 } 
    1538  
    1539 /* Used for debugging.  Abort if any window has a dead buffer.  */ 
    1540  
    1541 check_all_windows () 
    1542 { 
    1543   window_loop (CHECK_ALL_WINDOWS, Qnil, 1, Qt); 
    15441528} 
    15451529 
     
    23972381 
    23982382                  /* Select the window that was chosen, for running the hook.  */ 
    2399                   record_unwind_protect (Fselect_window, prev_window); 
     2383                  record_unwind_protect (Fset_window_configuration, 
     2384                                         Fcurrent_window_configuration (Qnil)); 
     2385 
    24002386                  select_window_1 (window, 0); 
    24012387                  Fset_buffer (w->buffer); 
     
    32933279} 
    32943280 
    3295 DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0, 
    3296   "Return the frame that CONFIG, a window-configuration object, is about.") 
    3297   (config) 
    3298      Lisp_Object config; 
    3299 { 
    3300   register struct save_window_data *data; 
    3301   struct Lisp_Vector *saved_windows; 
    3302  
    3303   if (! WINDOW_CONFIGURATIONP (config)) 
    3304     wrong_type_argument (Qwindow_configuration_p, config); 
    3305  
    3306   data = (struct save_window_data *) XVECTOR (config); 
    3307   saved_windows = XVECTOR (data->saved_windows); 
    3308   return XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame; 
    3309 } 
    3310  
    33113281DEFUN ("set-window-configuration", Fset_window_configuration, 
    33123282  Sset_window_configuration, 1, 1, 0, 
    33133283  "Set the configuration of windows and buffers as specified by CONFIGURATION.\n\ 
    33143284CONFIGURATION must be a value previously returned\n\ 
    3315 by `current-window-configuration' (which see).\n\ 
    3316 If CONFIGURATION was made from a frame that is now deleted,\n\ 
    3317 only frame-independent values can be restored.  In this case,\n\ 
    3318 the return value is nil.  Otherwise the value is t.") 
    3319   (configuration) 
     3285by `current-window-configuration' (which see).") 
     3286     (configuration) 
    33203287     Lisp_Object configuration; 
    33213288{ 
     
    33283295 
    33293296  while (!WINDOW_CONFIGURATIONP (configuration)) 
    3330     wrong_type_argument (Qwindow_configuration_p, configuration); 
     3297    { 
     3298      configuration = wrong_type_argument (intern ("window-configuration-p"), 
     3299                                           configuration); 
     3300    } 
    33313301 
    33323302  data = (struct save_window_data *) XVECTOR (configuration); 
     
    35603530  Vminibuf_scroll_window = data->minibuf_scroll_window; 
    35613531 
    3562   return (FRAME_LIVE_P (f) ? Qt : Qnil)
     3532  return Qnil
    35633533} 
    35643534 
     
    38873857  Qwindowp = intern ("windowp"); 
    38883858  staticpro (&Qwindowp); 
    3889  
    3890   Qwindow_configuration_p = intern ("window-configuration-p"); 
    3891   staticpro (&Qwindow_configuration_p); 
    38923859 
    38933860  Qwindow_live_p = intern ("window-live-p"); 
     
    40954062  defsubr (&Smove_to_window_line); 
    40964063  defsubr (&Swindow_configuration_p); 
    4097   defsubr (&Swindow_configuration_frame); 
    40984064  defsubr (&Sset_window_configuration); 
    40994065  defsubr (&Scurrent_window_configuration); 
  • branches/GNU/src/window.h

    r1707 r1711  
    140140    Lisp_Object vertical_scroll_bar; 
    141141 
    142     /* Some of these are currently not used or only half used */ 
     142/* The rest are currently not used or only half used */ 
    143143    /* Frame coords of point at that time */ 
    144144    Lisp_Object last_point_x; 
     
    148148    Lisp_Object last_mark_x; 
    149149    Lisp_Object last_mark_y; 
    150  
    151150    /* Number of characters in buffer past bottom of window, 
    152151       as of last redisplay that finished. */ 
     
    187186       must run the redisplay-end-trigger-hook.  */ 
    188187    Lisp_Object redisplay_end_trigger; 
    189     /* Non-nil means don't delete this window for becoming "too small".  */ 
    190     Lisp_Object too_small_ok; 
    191188  }; 
    192189 
  • branches/GNU/src/xdisp.c

    r1705 r1711  
    336336            { 
    337337              c = STRING_CHAR (m + i, len - i); 
    338               i += CHAR_BYTES (c); 
     338              i += XFASTINT (Fchar_bytes (make_number (c))); 
    339339              /* Truncate the character to its last byte--we can only hope 
    340340                 the user is happy with the character he gets, 
     
    448448{ 
    449449  int i; 
    450   int len = Z_BYTE - 1 - this_bol_byte
     450  int len = Z - 1 - this_bol
    451451  int seen_dots = 0; 
    452452  unsigned char *p1 = BUF_BYTE_ADDRESS (current_buffer, prev_bol_byte); 
  • branches/GNU/src/xfaces.c

    r1703 r1711  
    163163#define FACE_DEFAULT (~0) 
    164164 
    165 Lisp_Object Qface
     165Lisp_Object Qface, Qmouse_face
    166166Lisp_Object Qpixmap_spec_p; 
    167167 
     
    175175static void merge_face_list ( /* FRAME_PTR, struct face *, Lisp_Object */ ); 
    176176 
    177 extern Lisp_Object Qforeground_color, Qbackground_color, Qmouse_face
     177extern Lisp_Object Qforeground_color, Qbackground_color
    178178  
    179179/* Allocating, copying, and comparing struct faces.  */ 
     
    13131313  Qface = intern ("face"); 
    13141314  staticpro (&Qface); 
     1315  Qmouse_face = intern ("mouse-face"); 
     1316  staticpro (&Qmouse_face); 
    13151317  Qpixmap_spec_p = intern ("pixmap-spec-p"); 
    13161318  staticpro (&Qpixmap_spec_p); 
  • branches/GNU/src/xfns.c

    r1703 r1711  
    195195Lisp_Object Qmouse_color; 
    196196Lisp_Object Qnone; 
    197 Lisp_Object Qouter_window_id; 
    198197Lisp_Object Qparent_id; 
    199198Lisp_Object Qscroll_bar_width; 
     
    266265  if (NILP (frame)) 
    267266    { 
    268       if (FRAME_X_P (selected_frame) 
    269           && FRAME_LIVE_P (selected_frame)) 
     267      if (FRAME_X_P (selected_frame)) 
    270268        return FRAME_X_DISPLAY_INFO (selected_frame); 
    271269      else if (x_display_list != 0) 
     
    592590  fd = openp (Vx_bitmap_file_path, file, "", &found, 0); 
    593591  if (fd < 0) 
    594     return -1; 
    595   /* XReadBitmapFile won't handle magic file names.  */ 
    596   if (fd == 0) 
    597592    return -1; 
    598593  close (fd); 
     
    10611056  sprintf (buf, "%ld", (long) FRAME_X_WINDOW (f)); 
    10621057  store_in_alist (alistptr, Qwindow_id, 
    1063            build_string (buf)); 
    1064   sprintf (buf, "%ld", (long) FRAME_OUTER_WINDOW (f)); 
    1065   store_in_alist (alistptr, Qouter_window_id, 
    10661058           build_string (buf)); 
    10671059  store_in_alist (alistptr, Qicon_name, f->icon_name); 
     
    52955287  Qwindow_id = intern ("window-id"); 
    52965288  staticpro (&Qwindow_id); 
    5297   Qouter_window_id = intern ("outer-window-id"); 
    5298   staticpro (&Qouter_window_id); 
    52995289  Qx_frame_parameter = intern ("x-frame-parameter"); 
    53005290  staticpro (&Qx_frame_parameter);