aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Robert2009-01-22 13:55:44 +0000
committerAdrian Robert2009-01-22 13:55:44 +0000
commit3fe53a835df4dbb01a5ba6bf5e7650fdab3a11f8 (patch)
tree941b180b6c8444e82e5fdca0df673c09cb1408fb /src
parent575fb8bdb4033a74f874948a2e533cf534eda6ad (diff)
downloademacs-3fe53a835df4dbb01a5ba6bf5e7650fdab3a11f8.tar.gz
emacs-3fe53a835df4dbb01a5ba6bf5e7650fdab3a11f8.zip
Remove '23' comments that indicated code added during update from emacs-20 -> emacs-23.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/nsfns.m20
-rw-r--r--src/nsgui.h6
-rw-r--r--src/nsmenu.m2
-rw-r--r--src/nsselect.m4
-rw-r--r--src/nsterm.h30
-rw-r--r--src/nsterm.m94
7 files changed, 77 insertions, 89 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2a0ad325f6d..f251d7549e0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com> 12009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2 2
3 * nsfns.m:
4 * nsgui.h:
5 * nsmenu.m:
6 * nsselect.m:
7 * nsterm.h:
8 * nsterm.m: Remove '23' comments that indicated code added during
9 update from emacs-20 -> emacs-23.
10
112009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12
3 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for 13 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4 ns_alternate_modifier. (Bug#1217) 14 ns_alternate_modifier. (Bug#1217)
5 15
diff --git a/src/nsfns.m b/src/nsfns.m
index aee371efc89..218674d864b 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -739,7 +739,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
739} 739}
740 740
741 741
742/* 23: toolbar support */ 742/* toolbar support */
743void 743void
744x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) 744x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
745{ 745{
@@ -883,7 +883,7 @@ x_set_icon_type (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
883} 883}
884 884
885 885
886/* 23: added Xism; we stub out (we do implement this in ns-win.el) */ 886/* Xism; we stub out (we do implement this in ns-win.el) */
887int 887int
888XParseGeometry (char *string, int *x, int *y, 888XParseGeometry (char *string, int *x, int *y,
889 unsigned int *width, unsigned int *height) 889 unsigned int *width, unsigned int *height)
@@ -939,8 +939,8 @@ x_set_cursor_type (f, arg, oldval)
939} 939}
940 940
941 941
942/* 23: called to set mouse pointer color, but all other terms use it to 942/* called to set mouse pointer color, but all other terms use it to
943 initialize pointer types (and don't set the color ;) */ 943 initialize pointer types (and don't set the color ;) */
944static void 944static void
945x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) 945x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
946{ 946{
@@ -1012,9 +1012,7 @@ x_icon (struct frame *f, Lisp_Object parms)
1012} 1012}
1013 1013
1014 1014
1015/* 23 Note: commented out ns_... entries are no longer used in 23. 1015/* Note: see frame.c for template, also where generic functions are impl */
1016 commented out x_... entries have not been implemented yet.
1017 see frame.c for template, also where all generic OK functions are impl */
1018frame_parm_handler ns_frame_parm_handlers[] = 1016frame_parm_handler ns_frame_parm_handlers[] =
1019{ 1017{
1020 x_set_autoraise, /* generic OK */ 1018 x_set_autoraise, /* generic OK */
@@ -2145,14 +2143,15 @@ t. In case the execution fails, an error is signaled. */)
2145 ========================================================================== */ 2143 ========================================================================== */
2146 2144
2147 2145
2148/* 23: call in image.c */ 2146/* called from image.c */
2149FRAME_PTR 2147FRAME_PTR
2150check_x_frame (Lisp_Object frame) 2148check_x_frame (Lisp_Object frame)
2151{ 2149{
2152 return check_ns_frame (frame); 2150 return check_ns_frame (frame);
2153} 2151}
2154 2152
2155/* 23: added, due to call in frame.c */ 2153
2154/* called from frame.c */
2156struct ns_display_info * 2155struct ns_display_info *
2157check_x_display_info (Lisp_Object frame) 2156check_x_display_info (Lisp_Object frame)
2158{ 2157{
@@ -2160,7 +2159,6 @@ check_x_display_info (Lisp_Object frame)
2160} 2159}
2161 2160
2162 2161
2163/* 23: new function; we don't have much in the way of flexibility though */
2164void 2162void
2165x_set_scroll_bar_default_width (f) 2163x_set_scroll_bar_default_width (f)
2166 struct frame *f; 2164 struct frame *f;
@@ -2172,7 +2170,7 @@ x_set_scroll_bar_default_width (f)
2172} 2170}
2173 2171
2174 2172
2175/* 23: terms now impl this instead of x-get-resource directly */ 2173/* terms impl this instead of x-get-resource directly */
2176const char * 2174const char *
2177x_get_string_resource (XrmDatabase rdb, char *name, char *class) 2175x_get_string_resource (XrmDatabase rdb, char *name, char *class)
2178{ 2176{
diff --git a/src/nsgui.h b/src/nsgui.h
index 10bdd5be2af..9bf6be695da 100644
--- a/src/nsgui.h
+++ b/src/nsgui.h
@@ -60,7 +60,7 @@ typedef struct _XCharStruct
60 int descent; 60 int descent;
61} XCharStruct; 61} XCharStruct;
62 62
63/* 23: Fake tructure from Xlib.h to represent two-byte characters. */ 63/* Fake tructure from Xlib.h to represent two-byte characters. */
64#ifndef __OBJC__ 64#ifndef __OBJC__
65typedef unsigned short unichar; 65typedef unsigned short unichar;
66#endif 66#endif
@@ -121,8 +121,8 @@ typedef int Display;
121typedef Lisp_Object XrmDatabase; 121typedef Lisp_Object XrmDatabase;
122 122
123 123
124/* 23: some sort of attempt to normalize rectangle handling.. seems a bit much 124/* some sort of attempt to normalize rectangle handling.. seems a bit much
125 for what is accomplished */ 125 for what is accomplished */
126typedef struct { 126typedef struct {
127 int x, y; 127 int x, y;
128 unsigned width, height; 128 unsigned width, height;
diff --git a/src/nsmenu.m b/src/nsmenu.m
index e52b0c44ff9..94e8cb73fa8 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -85,7 +85,7 @@ static int popup_activated_flag;
85 ========================================================================== */ 85 ========================================================================== */
86 86
87 87
88/*23: FIXME: not currently used, but should normalize with other terms. */ 88/* FIXME: not currently used, but should normalize with other terms. */
89void 89void
90x_activate_menubar (struct frame *f) 90x_activate_menubar (struct frame *f)
91{ 91{
diff --git a/src/nsselect.m b/src/nsselect.m
index 4ec07370e18..548639908e1 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -42,7 +42,6 @@ static Lisp_Object Vns_lost_selection_hooks;
42static Lisp_Object Vselection_alist; 42static Lisp_Object Vselection_alist;
43static Lisp_Object Vselection_converter_alist; 43static Lisp_Object Vselection_converter_alist;
44 44
45/* 23: new */
46static Lisp_Object Qforeign_selection; 45static Lisp_Object Qforeign_selection;
47 46
48NSString *NXSecondaryPboard; 47NSString *NXSecondaryPboard;
@@ -606,11 +605,8 @@ The functions are called with one argument, the selection type\n\
606\(a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD')."); 605\(a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD').");
607 Vns_lost_selection_hooks = Qnil; 606 Vns_lost_selection_hooks = Qnil;
608 607
609/* 23: { */
610 Qforeign_selection = intern ("foreign-selection"); 608 Qforeign_selection = intern ("foreign-selection");
611 staticpro (&Qforeign_selection); 609 staticpro (&Qforeign_selection);
612/* } */
613
614} 610}
615 611
616// arch-tag: 39d1dde7-06a6-49ff-95a7-0e7af12d2218 612// arch-tag: 39d1dde7-06a6-49ff-95a7-0e7af12d2218
diff --git a/src/nsterm.h b/src/nsterm.h
index 351c5160fe4..d1e4843adb3 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -453,7 +453,7 @@ struct nsfont_info
453 char bold, ital; /* convenience flags */ 453 char bold, ital; /* convenience flags */
454 char synthItal; 454 char synthItal;
455 float voffset; /* mean of ascender/descender offsets */ 455 float voffset; /* mean of ascender/descender offsets */
456 XCharStruct max_bounds; /* 23 */ 456 XCharStruct max_bounds;
457 /* we compute glyph codes and metrics on-demand in blocks of 256 indexed 457 /* we compute glyph codes and metrics on-demand in blocks of 256 indexed
458 by hibyte, lobyte */ 458 by hibyte, lobyte */
459 unsigned short **glyphs; /* map unicode index to glyph */ 459 unsigned short **glyphs; /* map unicode index to glyph */
@@ -483,38 +483,33 @@ struct ns_display_info
483 /* Minimum font height over all fonts in font_table. */ 483 /* Minimum font height over all fonts in font_table. */
484 int smallest_font_height; 484 int smallest_font_height;
485 485
486 /*/23 */
487 struct ns_bitmap_record *bitmaps; 486 struct ns_bitmap_record *bitmaps;
488 int bitmaps_size; 487 int bitmaps_size;
489 int bitmaps_last; 488 int bitmaps_last;
490 489
491 /* 23 */
492 struct image_cache *image_cache; 490 struct image_cache *image_cache;
493 491
494 struct ns_color_table *color_table; 492 struct ns_color_table *color_table;
495 493
496 /* 23: DPI resolution of this screen */ 494 /* DPI resolution of this screen */
497 double resx, resy; 495 double resx, resy;
498 496
499 /* 23: Mask of things that cause the mouse to be grabbed */ 497 /* Mask of things that cause the mouse to be grabbed */
500 int grabbed; 498 int grabbed;
501 499
502 /* 23 */
503 int n_planes; 500 int n_planes;
504 501
505 /* 23 */
506 int color_p; 502 int color_p;
507 503
508 /* 23 */
509 Window root_window; 504 Window root_window;
510 505
511 /* 23: Xism */ 506 /* Xism */
512 XrmDatabase xrdb; 507 XrmDatabase xrdb;
513 508
514 /* 23: The cursor to use for vertical scroll bars. */ 509 /* The cursor to use for vertical scroll bars. */
515 Cursor vertical_scroll_bar_cursor; 510 Cursor vertical_scroll_bar_cursor;
516 511
517 /* 23: most mouse face stuff moved in here (and reasonably so) */ 512 /* most mouse face stuff moved in here as of 21+ (and reasonably so) */
518 int mouse_face_beg_row, mouse_face_beg_col; 513 int mouse_face_beg_row, mouse_face_beg_col;
519 int mouse_face_end_row, mouse_face_end_col; 514 int mouse_face_end_row, mouse_face_end_col;
520 int mouse_face_beg_x, mouse_face_beg_y; 515 int mouse_face_beg_x, mouse_face_beg_y;
@@ -540,8 +535,6 @@ extern struct ns_display_info *x_display_list;
540extern Lisp_Object ns_display_name_list; 535extern Lisp_Object ns_display_name_list;
541extern struct ns_display_info *ns_display_info_for_name (); 536extern struct ns_display_info *ns_display_info_for_name ();
542 537
543/* 23: FIXME: these functions (we defined in nsfns) are used in various
544 places, but no prototypes are provided */
545struct ns_display_info *check_x_display_info (Lisp_Object frame); 538struct ns_display_info *check_x_display_info (Lisp_Object frame);
546FRAME_PTR check_x_frame (Lisp_Object frame); 539FRAME_PTR check_x_frame (Lisp_Object frame);
547 540
@@ -564,7 +557,7 @@ struct ns_output
564 void *toolbar; 557 void *toolbar;
565#endif 558#endif
566 559
567 /* 23: NSCursors init'ed in initFrameFromEmacs */ 560 /* NSCursors init'ed in initFrameFromEmacs */
568 Cursor text_cursor; 561 Cursor text_cursor;
569 Cursor nontext_cursor; 562 Cursor nontext_cursor;
570 Cursor modeline_cursor; 563 Cursor modeline_cursor;
@@ -572,10 +565,10 @@ struct ns_output
572 Cursor hourglass_cursor; 565 Cursor hourglass_cursor;
573 Cursor horizontal_drag_cursor; 566 Cursor horizontal_drag_cursor;
574 567
575 /* 23: NS-specific */ 568 /* NS-specific */
576 Cursor current_pointer; 569 Cursor current_pointer;
577 570
578 /* 23: lord knows why Emacs needs to know about our Window ids.. */ 571 /* lord knows why Emacs needs to know about our Window ids.. */
579 Window window_desc, parent_desc; 572 Window window_desc, parent_desc;
580 char explicit_parent; 573 char explicit_parent;
581 574
@@ -603,7 +596,7 @@ struct ns_output
603 struct ns_display_info *display_info; 596 struct ns_display_info *display_info;
604}; 597};
605 598
606/* 23: this dummy decl now needed to support TTYs */ 599/* this dummy decl needed to support TTYs */
607struct x_output 600struct x_output
608{ 601{
609 unsigned long background_pixel; 602 unsigned long background_pixel;
@@ -680,7 +673,6 @@ struct x_output
680 673
681#define FRAME_FONTSET(f) ((f)->output_data.ns->fontset) 674#define FRAME_FONTSET(f) ((f)->output_data.ns->fontset)
682 675
683/* 23 */
684#define FRAME_SMALLEST_CHAR_WIDTH(f) \ 676#define FRAME_SMALLEST_CHAR_WIDTH(f) \
685 (FRAME_NS_DISPLAY_INFO (f)->smallest_char_width) 677 (FRAME_NS_DISPLAY_INFO (f)->smallest_char_width)
686#define FRAME_SMALLEST_FONT_HEIGHT(f) \ 678#define FRAME_SMALLEST_FONT_HEIGHT(f) \
@@ -813,7 +805,7 @@ extern char gnustep_base_version[]; /* version tracking */
813 ? (min) : (((x)>(max)) ? (max) : (x))) 805 ? (min) : (((x)>(max)) ? (max) : (x)))
814#define SCREENMAXBOUND(x) (IN_BOUND (-SCREENMAX, x, SCREENMAX)) 806#define SCREENMAXBOUND(x) (IN_BOUND (-SCREENMAX, x, SCREENMAX))
815 807
816/* 23: needed somewhere... */ 808/* needed somewhere... */
817#define VERTICAL_SCROLL_BAR_WIDTH_TRIM (0) 809#define VERTICAL_SCROLL_BAR_WIDTH_TRIM (0)
818 810
819 811
diff --git a/src/nsterm.m b/src/nsterm.m
index 119839e05d1..37322b11adc 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -552,7 +552,7 @@ static void
552ns_update_begin (struct frame *f) 552ns_update_begin (struct frame *f)
553/* -------------------------------------------------------------------------- 553/* --------------------------------------------------------------------------
554 Prepare for a grouped sequence of drawing calls 554 Prepare for a grouped sequence of drawing calls
555 23: external (RIF) call; now split w/ and called before update_window_begin 555 external (RIF) call; whole frame, called before update_window_begin
556 -------------------------------------------------------------------------- */ 556 -------------------------------------------------------------------------- */
557{ 557{
558 NSView *view = FRAME_NS_VIEW (f); 558 NSView *view = FRAME_NS_VIEW (f);
@@ -571,7 +571,7 @@ static void
571ns_update_window_begin (struct window *w) 571ns_update_window_begin (struct window *w)
572/* -------------------------------------------------------------------------- 572/* --------------------------------------------------------------------------
573 Prepare for a grouped sequence of drawing calls 573 Prepare for a grouped sequence of drawing calls
574 23: external (RIF) call; now split with and called after update_begin 574 external (RIF) call; for one window, called after update_begin
575 -------------------------------------------------------------------------- */ 575 -------------------------------------------------------------------------- */
576{ 576{
577 struct frame *f = XFRAME (WINDOW_FRAME (w)); 577 struct frame *f = XFRAME (WINDOW_FRAME (w));
@@ -605,7 +605,7 @@ ns_update_window_end (struct window *w, int cursor_on_p,
605 int mouse_face_overwritten_p) 605 int mouse_face_overwritten_p)
606/* -------------------------------------------------------------------------- 606/* --------------------------------------------------------------------------
607 Finished a grouped sequence of drawing calls 607 Finished a grouped sequence of drawing calls
608 23: external (RIF) call; now split with and called before update_window_end 608 external (RIF) call; for one window called before update_end
609 -------------------------------------------------------------------------- */ 609 -------------------------------------------------------------------------- */
610{ 610{
611 struct ns_display_info *dpyinfo = FRAME_NS_DISPLAY_INFO (XFRAME (w->frame)); 611 struct ns_display_info *dpyinfo = FRAME_NS_DISPLAY_INFO (XFRAME (w->frame));
@@ -644,7 +644,7 @@ static void
644ns_update_end (struct frame *f) 644ns_update_end (struct frame *f)
645/* -------------------------------------------------------------------------- 645/* --------------------------------------------------------------------------
646 Finished a grouped sequence of drawing calls 646 Finished a grouped sequence of drawing calls
647 23: external (RIF) call; now split with and called after update_window_end 647 external (RIF) call; for whole frame, called after update_window_end
648 -------------------------------------------------------------------------- */ 648 -------------------------------------------------------------------------- */
649{ 649{
650 NSView *view = FRAME_NS_VIEW (f); 650 NSView *view = FRAME_NS_VIEW (f);
@@ -673,7 +673,7 @@ ns_update_end (struct frame *f)
673static void 673static void
674ns_flush (struct frame *f) 674ns_flush (struct frame *f)
675/* -------------------------------------------------------------------------- 675/* --------------------------------------------------------------------------
676 23: external (RIF) call 676 external (RIF) call
677 NS impl is no-op since currently we flush in ns_update_end and elsewhere 677 NS impl is no-op since currently we flush in ns_update_end and elsewhere
678 -------------------------------------------------------------------------- */ 678 -------------------------------------------------------------------------- */
679{ 679{
@@ -746,7 +746,7 @@ ns_focus (struct frame *f, NSRect *r, int n)
746 } 746 }
747#endif 747#endif
748 748
749 /*23: clipping */ 749 /* clipping */
750 if (r) 750 if (r)
751 { 751 {
752 [[NSGraphicsContext currentContext] saveGraphicsState]; 752 [[NSGraphicsContext currentContext] saveGraphicsState];
@@ -789,7 +789,7 @@ ns_unfocus (struct frame *f)
789static void 789static void
790ns_clip_to_row (struct window *w, struct glyph_row *row, int area, BOOL gc) 790ns_clip_to_row (struct window *w, struct glyph_row *row, int area, BOOL gc)
791/* -------------------------------------------------------------------------- 791/* --------------------------------------------------------------------------
792 23: Internal (but parallels other terms): Focus drawing on given row 792 Internal (but parallels other terms): Focus drawing on given row
793 -------------------------------------------------------------------------- */ 793 -------------------------------------------------------------------------- */
794{ 794{
795 struct frame *f = XFRAME (WINDOW_FRAME (w)); 795 struct frame *f = XFRAME (WINDOW_FRAME (w));
@@ -1376,9 +1376,9 @@ ns_get_color (const char *name, NSColor **col)
1376 return 0; 1376 return 0;
1377 } 1377 }
1378 1378
1379 /* 23: FIXME: emacs seems to downcase everything before passing it here, 1379 /* FIXME: emacs seems to downcase everything before passing it here,
1380 which we can work around, except for GRAY, since gray##, where ## is 1380 which we can work around, except for GRAY, since gray##, where ## is
1381 decimal between 0 and 99, is also an X11 colorname. */ 1381 decimal between 0 and 99, is also an X11 colorname. */
1382 if (name[0] == '#') /* X11 format */ 1382 if (name[0] == '#') /* X11 format */
1383 { 1383 {
1384 hex = name + 1; 1384 hex = name + 1;
@@ -1590,7 +1590,7 @@ int
1590ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc, 1590ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc,
1591 char makeIndex) 1591 char makeIndex)
1592/* -------------------------------------------------------------------------- 1592/* --------------------------------------------------------------------------
1593 23: Return 1 if named color found, and set color_def rgb accordingly. 1593 Return 1 if named color found, and set color_def rgb accordingly.
1594 If makeIndex and alloc are nonzero put the color in the color_table, 1594 If makeIndex and alloc are nonzero put the color in the color_table,
1595 and set color_def pixel to the resulting index. 1595 and set color_def pixel to the resulting index.
1596 If makeIndex is zero, set color_def pixel to ARGB. 1596 If makeIndex is zero, set color_def pixel to ARGB.
@@ -1985,7 +1985,7 @@ ns_clear_frame (struct frame *f)
1985void 1985void
1986ns_clear_frame_area (struct frame *f, int x, int y, int width, int height) 1986ns_clear_frame_area (struct frame *f, int x, int y, int width, int height)
1987/* -------------------------------------------------------------------------- 1987/* --------------------------------------------------------------------------
1988 23: External (RIF): Clear section of frame 1988 External (RIF): Clear section of frame
1989 -------------------------------------------------------------------------- */ 1989 -------------------------------------------------------------------------- */
1990{ 1990{
1991 NSRect r = NSMakeRect (x, y, width, height); 1991 NSRect r = NSMakeRect (x, y, width, height);
@@ -2038,7 +2038,7 @@ ns_clear_frame_area (struct frame *f, int x, int y, int width, int height)
2038static void 2038static void
2039ns_scroll_run (struct window *w, struct run *run) 2039ns_scroll_run (struct window *w, struct run *run)
2040/* -------------------------------------------------------------------------- 2040/* --------------------------------------------------------------------------
2041 23: External (RIF): Insert or delete n lines at line vpos 2041 External (RIF): Insert or delete n lines at line vpos
2042 -------------------------------------------------------------------------- */ 2042 -------------------------------------------------------------------------- */
2043{ 2043{
2044 struct frame *f = XFRAME (w->frame); 2044 struct frame *f = XFRAME (w->frame);
@@ -2101,7 +2101,7 @@ ns_scroll_run (struct window *w, struct run *run)
2101static void 2101static void
2102ns_after_update_window_line (struct glyph_row *desired_row) 2102ns_after_update_window_line (struct glyph_row *desired_row)
2103/* -------------------------------------------------------------------------- 2103/* --------------------------------------------------------------------------
2104 23: External (RIF): preparatory to fringe update after text was updated 2104 External (RIF): preparatory to fringe update after text was updated
2105 -------------------------------------------------------------------------- */ 2105 -------------------------------------------------------------------------- */
2106{ 2106{
2107 struct window *w = updated_window; 2107 struct window *w = updated_window;
@@ -2156,7 +2156,7 @@ ns_shift_glyphs_for_insert (struct frame *f,
2156 int x, int y, int width, int height, 2156 int x, int y, int width, int height,
2157 int shift_by) 2157 int shift_by)
2158/* -------------------------------------------------------------------------- 2158/* --------------------------------------------------------------------------
2159 23: External (RIF): copy an area horizontally, don't worry about clearing src 2159 External (RIF): copy an area horizontally, don't worry about clearing src
2160 -------------------------------------------------------------------------- */ 2160 -------------------------------------------------------------------------- */
2161{ 2161{
2162 NSRect srcRect = NSMakeRect (x, y, width, height); 2162 NSRect srcRect = NSMakeRect (x, y, width, height);
@@ -2182,7 +2182,7 @@ ns_shift_glyphs_for_insert (struct frame *f,
2182static inline void 2182static inline void
2183ns_compute_glyph_string_overhangs (struct glyph_string *s) 2183ns_compute_glyph_string_overhangs (struct glyph_string *s)
2184/* -------------------------------------------------------------------------- 2184/* --------------------------------------------------------------------------
2185 23: External (RIF); compute left/right overhang of whole string and set in s 2185 External (RIF); compute left/right overhang of whole string and set in s
2186 -------------------------------------------------------------------------- */ 2186 -------------------------------------------------------------------------- */
2187{ 2187{
2188 struct face *face = FACE_FROM_ID (s->f, s->first_glyph->face_id); 2188 struct face *face = FACE_FROM_ID (s->f, s->first_glyph->face_id);
@@ -2223,7 +2223,7 @@ static void
2223ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row, 2223ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
2224 struct draw_fringe_bitmap_params *p) 2224 struct draw_fringe_bitmap_params *p)
2225/* -------------------------------------------------------------------------- 2225/* --------------------------------------------------------------------------
2226 23: External (RIF); fringe-related 2226 External (RIF); fringe-related
2227 -------------------------------------------------------------------------- */ 2227 -------------------------------------------------------------------------- */
2228{ 2228{
2229 struct frame *f = XFRAME (WINDOW_FRAME (w)); 2229 struct frame *f = XFRAME (WINDOW_FRAME (w));
@@ -3094,7 +3094,7 @@ ns_read_socket (struct terminal *terminal, int expected,
3094/* -------------------------------------------------------------------------- 3094/* --------------------------------------------------------------------------
3095 External (hook): Post an event to ourself and keep reading events until 3095 External (hook): Post an event to ourself and keep reading events until
3096 we read it back again. In effect process all events which were waiting. 3096 we read it back again. In effect process all events which were waiting.
3097 23: Now we have to manage the event buffer ourselves. 3097 From 21+ we have to manage the event buffer ourselves.
3098 -------------------------------------------------------------------------- */ 3098 -------------------------------------------------------------------------- */
3099{ 3099{
3100 struct input_event ev; 3100 struct input_event ev;
@@ -3445,17 +3445,10 @@ ns_judge_scroll_bars (struct frame *f)
3445} 3445}
3446 3446
3447 3447
3448
3449/* ==========================================================================
3450
3451 Miscellaneous, mainly stubbed-out functions added in 23
3452
3453 ========================================================================== */
3454
3455
3456void 3448void
3457x_wm_set_icon_position (struct frame *f, int icon_x, int icon_y) 3449x_wm_set_icon_position (struct frame *f, int icon_x, int icon_y)
3458{ 3450{
3451 /* XXX irrelevant under NS */
3459} 3452}
3460 3453
3461 3454
@@ -3614,8 +3607,7 @@ ns_initialize_display_info (struct ns_display_info *dpyinfo)
3614} 3607}
3615 3608
3616 3609
3617/* 23: Needed as new part of display engine; this and next define public 3610/* This and next define (many of the) public functions in this file. */
3618 functions in this file (well, many of them, anyway). */
3619/* x_... are generic versions in xdisp.c that we, and other terms, get away 3611/* x_... are generic versions in xdisp.c that we, and other terms, get away
3620 with using despite presence in the "system dependent" redisplay 3612 with using despite presence in the "system dependent" redisplay
3621 interface. In addition, many of the ns_ methods have code that is 3613 interface. In addition, many of the ns_ methods have code that is
@@ -3624,28 +3616,28 @@ extern frame_parm_handler ns_frame_parm_handlers[];
3624static struct redisplay_interface ns_redisplay_interface = 3616static struct redisplay_interface ns_redisplay_interface =
3625{ 3617{
3626 ns_frame_parm_handlers, 3618 ns_frame_parm_handlers,
3627 x_produce_glyphs, /*generic OK */ 3619 x_produce_glyphs,
3628 x_write_glyphs, /*generic OK */ 3620 x_write_glyphs,
3629 x_insert_glyphs, /*generic OK */ 3621 x_insert_glyphs,
3630 x_clear_end_of_line, /*generic OK */ 3622 x_clear_end_of_line,
3631 ns_scroll_run, /*23 */ 3623 ns_scroll_run,
3632 ns_after_update_window_line, /*23: added */ 3624 ns_after_update_window_line,
3633 ns_update_window_begin, /*23: split from update_begin */ 3625 ns_update_window_begin,
3634 ns_update_window_end, /*23: split from update_end */ 3626 ns_update_window_end,
3635 x_cursor_to, /*generic OK */ 3627 x_cursor_to,
3636 ns_flush, 3628 ns_flush,
3637 0, /* flush_display_optional */ 3629 0, /* flush_display_optional */
3638 x_clear_window_mouse_face, /*generic OK */ 3630 x_clear_window_mouse_face,
3639 x_get_glyph_overhangs, /*23: generic OK */ 3631 x_get_glyph_overhangs,
3640 x_fix_overlapping_area, /*generic OK */ 3632 x_fix_overlapping_area,
3641 ns_draw_fringe_bitmap, /*23 */ 3633 ns_draw_fringe_bitmap,
3642 0, /* define_fringe_bitmap */ /* FIXME: simplify ns_draw_fringe_bitmap */ 3634 0, /* define_fringe_bitmap */ /* FIXME: simplify ns_draw_fringe_bitmap */
3643 0, /* destroy_fringe_bitmap */ 3635 0, /* destroy_fringe_bitmap */
3644 ns_compute_glyph_string_overhangs, /*23 */ 3636 ns_compute_glyph_string_overhangs,
3645 ns_draw_glyph_string, /*23: interface to nsfont.m */ 3637 ns_draw_glyph_string, /* interface to nsfont.m */
3646 ns_define_frame_cursor, /*23 */ 3638 ns_define_frame_cursor,
3647 ns_clear_frame_area, /*23 */ 3639 ns_clear_frame_area,
3648 ns_draw_window_cursor, /*23: revamped ns_dumpcursor */ 3640 ns_draw_window_cursor,
3649 ns_draw_vertical_window_border, 3641 ns_draw_vertical_window_border,
3650 ns_shift_glyphs_for_insert 3642 ns_shift_glyphs_for_insert
3651}; 3643};
@@ -3697,21 +3689,21 @@ ns_create_terminal (struct ns_display_info *dpyinfo)
3697 terminal->rif = &ns_redisplay_interface; 3689 terminal->rif = &ns_redisplay_interface;
3698 3690
3699 terminal->clear_frame_hook = ns_clear_frame; 3691 terminal->clear_frame_hook = ns_clear_frame;
3700 terminal->ins_del_lines_hook = 0; /* 23: vestigial? */ 3692 terminal->ins_del_lines_hook = 0; /* XXX vestigial? */
3701 terminal->delete_glyphs_hook = 0; /* 23: vestigial? */ 3693 terminal->delete_glyphs_hook = 0; /* XXX vestigial? */
3702 terminal->ring_bell_hook = ns_ring_bell; 3694 terminal->ring_bell_hook = ns_ring_bell;
3703 terminal->reset_terminal_modes_hook = ns_reset_terminal_modes; 3695 terminal->reset_terminal_modes_hook = ns_reset_terminal_modes;
3704 terminal->set_terminal_modes_hook = ns_set_terminal_modes; 3696 terminal->set_terminal_modes_hook = ns_set_terminal_modes;
3705 terminal->update_begin_hook = ns_update_begin; 3697 terminal->update_begin_hook = ns_update_begin;
3706 terminal->update_end_hook = ns_update_end; 3698 terminal->update_end_hook = ns_update_end;
3707 terminal->set_terminal_window_hook = NULL; /* 23: vestigial? */ 3699 terminal->set_terminal_window_hook = NULL; /* XXX vestigial? */
3708 terminal->read_socket_hook = ns_read_socket; 3700 terminal->read_socket_hook = ns_read_socket;
3709 terminal->frame_up_to_date_hook = ns_frame_up_to_date; 3701 terminal->frame_up_to_date_hook = ns_frame_up_to_date;
3710 terminal->mouse_position_hook = ns_mouse_position; 3702 terminal->mouse_position_hook = ns_mouse_position;
3711 terminal->frame_rehighlight_hook = ns_frame_rehighlight; 3703 terminal->frame_rehighlight_hook = ns_frame_rehighlight;
3712 terminal->frame_raise_lower_hook = ns_frame_raise_lower; 3704 terminal->frame_raise_lower_hook = ns_frame_raise_lower;
3713 3705
3714 terminal->fullscreen_hook = 0; /*XTfullscreen_hook;//23.50 */ 3706 terminal->fullscreen_hook = 0; /* see XTfullscreen_hook */
3715 3707
3716 terminal->set_vertical_scroll_bar_hook = ns_set_vertical_scroll_bar; 3708 terminal->set_vertical_scroll_bar_hook = ns_set_vertical_scroll_bar;
3717 terminal->condemn_scroll_bars_hook = ns_condemn_scroll_bars; 3709 terminal->condemn_scroll_bars_hook = ns_condemn_scroll_bars;
@@ -6432,7 +6424,7 @@ or shrunk (negative). Zero (the default) means standard line height.\n\
6432 staticpro (&last_mouse_motion_frame); 6424 staticpro (&last_mouse_motion_frame);
6433 last_mouse_motion_frame = Qnil; 6425 last_mouse_motion_frame = Qnil;
6434 6426
6435 /*23: now apparently we need to tell emacs what modifiers there are.. */ 6427 /* from 23+ we need to tell emacs what modifiers there are.. */
6436 Qmodifier_value = intern ("modifier-value"); 6428 Qmodifier_value = intern ("modifier-value");
6437 Qalt = intern ("alt"); 6429 Qalt = intern ("alt");
6438 Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); 6430 Fput (Qalt, Qmodifier_value, make_number (alt_modifier));