diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 45 | ||||
| -rw-r--r-- | src/Makefile.in | 3 | ||||
| -rw-r--r-- | src/coding.c | 2 | ||||
| -rw-r--r-- | src/deps.mk | 6 | ||||
| -rw-r--r-- | src/nsmenu.m | 3 | ||||
| -rw-r--r-- | src/nsterm.h | 1 | ||||
| -rw-r--r-- | src/nsterm.m | 31 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/xfns.c | 6 |
9 files changed, 70 insertions, 31 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ec9c0ce42fd..1db9e8768e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -4,6 +4,51 @@ | |||
| 4 | (MAX_CHARBUF_EXTRA_SIZE): New macro. | 4 | (MAX_CHARBUF_EXTRA_SIZE): New macro. |
| 5 | (ALLOC_CONVERSION_WORK_AREA): Use MAX_CHARBUF_EXTRA_SIZE. | 5 | (ALLOC_CONVERSION_WORK_AREA): Use MAX_CHARBUF_EXTRA_SIZE. |
| 6 | 6 | ||
| 7 | 2014-06-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8 | |||
| 9 | * nsterm.m (judge): EmacsScroller: Move dealloc code here. | ||
| 10 | (dealloc): Remove for EmacsScroller. | ||
| 11 | |||
| 12 | * nsterm.h (EmacsScroller): Remove dealloc. | ||
| 13 | |||
| 14 | 2014-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 15 | |||
| 16 | * coding.c (MIN_CHARBUF_SIZE): Enlarge to 32. (Bug#17881) | ||
| 17 | |||
| 18 | 2014-06-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19 | |||
| 20 | * nsmenu.m (update_frame_tool_bar): Set wait_for_tool_bar to NO | ||
| 21 | when setNeedsDisplay is called so we don't trigger redisplay for every | ||
| 22 | tool bar update. | ||
| 23 | |||
| 24 | * nsterm.m (any_help_event_p): New variable. | ||
| 25 | (mouseMoved:): Set any_help_event_p to YES if help event is | ||
| 26 | generated. Remove else with empty help event that triggered redisplay | ||
| 27 | for every mouse move. | ||
| 28 | (windowDidResignKey:): If any_help_event_p, generate empty help | ||
| 29 | event. | ||
| 30 | |||
| 31 | 2014-06-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 32 | |||
| 33 | * xfns.c (Qsuppress_icon): Remove; no real users. | ||
| 34 | (syms_of_xfns): Don't DEFSYM it. Remove ancient comments. | ||
| 35 | * w32fns.c (Qsuppress_icon): Remove, for the same reason. | ||
| 36 | (syms_of_w32fns): Don't DEFSYM it. | ||
| 37 | |||
| 38 | 2014-06-29 Glenn Morris <rgm@gnu.org> | ||
| 39 | |||
| 40 | * Makefile.in (ns-app): Mark as PHONY. | ||
| 41 | |||
| 42 | 2014-06-28 Glenn Morris <rgm@gnu.org> | ||
| 43 | |||
| 44 | * Makefile.in (mostlyclean): There are no libXMenu11.a, | ||
| 45 | liblw.a in this directory. | ||
| 46 | |||
| 47 | 2014-06-28 Andreas Schwab <schwab@linux-m68k.org> | ||
| 48 | |||
| 49 | * coding.c (encode_coding_utf_8): Correctly count produced_chars | ||
| 50 | also in unibyte case. (Bug#17865) | ||
| 51 | |||
| 7 | 2014-06-28 K. Handa <handa@gnu.org> | 52 | 2014-06-28 K. Handa <handa@gnu.org> |
| 8 | 53 | ||
| 9 | * coding.c (MAX_CHARBUF_SIZE): Renamed from CHARBUF_SIZE. | 54 | * coding.c (MAX_CHARBUF_SIZE): Renamed from CHARBUF_SIZE. |
diff --git a/src/Makefile.in b/src/Makefile.in index 748f38e55bd..a13f7b8b8be 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -518,6 +518,7 @@ emacs.res: $(ntsource)/emacs.rc \ | |||
| 518 | $(WINDRES) -O COFF --include-dir=$(srcdir)/../nt \ | 518 | $(WINDRES) -O COFF --include-dir=$(srcdir)/../nt \ |
| 519 | -o $@ $(ntsource)/emacs.rc | 519 | -o $@ $(ntsource)/emacs.rc |
| 520 | 520 | ||
| 521 | .PHONY: ns-app | ||
| 521 | ns-app: emacs$(EXEEXT) | 522 | ns-app: emacs$(EXEEXT) |
| 522 | $(MAKE) -C ../nextstep all | 523 | $(MAKE) -C ../nextstep all |
| 523 | 524 | ||
| @@ -525,7 +526,7 @@ ns-app: emacs$(EXEEXT) | |||
| 525 | .PHONY: versionclean extraclean | 526 | .PHONY: versionclean extraclean |
| 526 | 527 | ||
| 527 | mostlyclean: | 528 | mostlyclean: |
| 528 | rm -f temacs$(EXEEXT) core *.core \#* *.o libXMenu11.a liblw.a | 529 | rm -f temacs$(EXEEXT) core *.core \#* *.o |
| 529 | rm -f ../etc/DOC | 530 | rm -f ../etc/DOC |
| 530 | rm -f bootstrap-emacs$(EXEEXT) emacs-$(version)$(EXEEXT) | 531 | rm -f bootstrap-emacs$(EXEEXT) emacs-$(version)$(EXEEXT) |
| 531 | rm -f buildobj.h | 532 | rm -f buildobj.h |
diff --git a/src/coding.c b/src/coding.c index e68700c099d..d4c468cfbbf 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1549,8 +1549,8 @@ encode_coding_utf_8 (struct coding_system *coding) | |||
| 1549 | *dst++ = CHAR_TO_BYTE8 (c); | 1549 | *dst++ = CHAR_TO_BYTE8 (c); |
| 1550 | else | 1550 | else |
| 1551 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); | 1551 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); |
| 1552 | produced_chars++; | ||
| 1553 | } | 1552 | } |
| 1553 | produced_chars = dst - (coding->destination + coding->produced); | ||
| 1554 | } | 1554 | } |
| 1555 | record_conversion_result (coding, CODING_RESULT_SUCCESS); | 1555 | record_conversion_result (coding, CODING_RESULT_SUCCESS); |
| 1556 | coding->produced_char += produced_chars; | 1556 | coding->produced_char += produced_chars; |
diff --git a/src/deps.mk b/src/deps.mk index 1d67d750983..3fdbbe6605f 100644 --- a/src/deps.mk +++ b/src/deps.mk | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs | 1 | ### deps.mk --- src/Makefile fragment for GNU Emacs |
| 2 | 2 | ||
| 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 Free Software | 3 | ## Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2014 |
| 4 | ## Foundation, Inc. | 4 | ## Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ## This file is part of GNU Emacs. | 6 | ## This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -27,8 +27,6 @@ | |||
| 27 | ## Eg callproc.c only depends on w32.h for WINDOWSNT builds. | 27 | ## Eg callproc.c only depends on w32.h for WINDOWSNT builds. |
| 28 | ## One way to fix this would be to replace w32.h (etc) by $(W32_H), | 28 | ## One way to fix this would be to replace w32.h (etc) by $(W32_H), |
| 29 | ## a variable set by configure. Does not seem worth the trouble. | 29 | ## a variable set by configure. Does not seem worth the trouble. |
| 30 | ## Since the w32 build does not even use this file, you might ask | ||
| 31 | ## why these dependencies are here at all... | ||
| 32 | 30 | ||
| 33 | ## nsgui.h: In fact, every .o file depends directly or indirectly on | 31 | ## nsgui.h: In fact, every .o file depends directly or indirectly on |
| 34 | ## dispextern.h and hence nsgui.h under NS. But the ones that actually | 32 | ## dispextern.h and hence nsgui.h under NS. But the ones that actually |
diff --git a/src/nsmenu.m b/src/nsmenu.m index 24c1189584b..778b068ef8b 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1152,7 +1152,10 @@ update_frame_tool_bar (struct frame *f) | |||
| 1152 | FRAME_TOOLBAR_HEIGHT (f) = 0; | 1152 | FRAME_TOOLBAR_HEIGHT (f) = 0; |
| 1153 | 1153 | ||
| 1154 | if (view->wait_for_tool_bar && FRAME_TOOLBAR_HEIGHT (f) > 0) | 1154 | if (view->wait_for_tool_bar && FRAME_TOOLBAR_HEIGHT (f) > 0) |
| 1155 | { | ||
| 1156 | view->wait_for_tool_bar = NO; | ||
| 1155 | [view setNeedsDisplay: YES]; | 1157 | [view setNeedsDisplay: YES]; |
| 1158 | } | ||
| 1156 | 1159 | ||
| 1157 | unblock_input (); | 1160 | unblock_input (); |
| 1158 | } | 1161 | } |
diff --git a/src/nsterm.h b/src/nsterm.h index e77aca3d50d..2619b710073 100644 --- a/src/nsterm.h +++ b/src/nsterm.h | |||
| @@ -412,7 +412,6 @@ typedef float EmacsCGFloat; | |||
| 412 | 412 | ||
| 413 | - initFrame: (NSRect )r window: (Lisp_Object)win; | 413 | - initFrame: (NSRect )r window: (Lisp_Object)win; |
| 414 | - (void)setFrame: (NSRect)r; | 414 | - (void)setFrame: (NSRect)r; |
| 415 | - (void)dealloc; | ||
| 416 | 415 | ||
| 417 | - setPosition: (int) position portion: (int) portion whole: (int) whole; | 416 | - setPosition: (int) position portion: (int) portion whole: (int) whole; |
| 418 | - (int) checkSamePosition: (int)position portion: (int)portion | 417 | - (int) checkSamePosition: (int)position portion: (int)portion |
diff --git a/src/nsterm.m b/src/nsterm.m index c6450804f57..f2eeeda93bf 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -283,6 +283,11 @@ static NSMutableArray *ns_pending_files, *ns_pending_service_names, | |||
| 283 | static BOOL ns_do_open_file = NO; | 283 | static BOOL ns_do_open_file = NO; |
| 284 | static BOOL ns_last_use_native_fullscreen; | 284 | static BOOL ns_last_use_native_fullscreen; |
| 285 | 285 | ||
| 286 | /* Non-zero means that a HELP_EVENT has been generated since Emacs | ||
| 287 | start. */ | ||
| 288 | |||
| 289 | static BOOL any_help_event_p = NO; | ||
| 290 | |||
| 286 | static struct { | 291 | static struct { |
| 287 | struct input_event *q; | 292 | struct input_event *q; |
| 288 | int nr, cap; | 293 | int nr, cap; |
| @@ -5688,14 +5693,10 @@ not_in_argv (NSString *arg) | |||
| 5688 | /* NOTE: help_echo_{window,pos,object} are set in xdisp.c | 5693 | /* NOTE: help_echo_{window,pos,object} are set in xdisp.c |
| 5689 | (note_mouse_highlight), which is called through the | 5694 | (note_mouse_highlight), which is called through the |
| 5690 | note_mouse_movement () call above */ | 5695 | note_mouse_movement () call above */ |
| 5696 | any_help_event_p = YES; | ||
| 5691 | gen_help_event (help_echo_string, frame, help_echo_window, | 5697 | gen_help_event (help_echo_string, frame, help_echo_window, |
| 5692 | help_echo_object, help_echo_pos); | 5698 | help_echo_object, help_echo_pos); |
| 5693 | } | 5699 | } |
| 5694 | else | ||
| 5695 | { | ||
| 5696 | help_echo_string = Qnil; | ||
| 5697 | gen_help_event (Qnil, frame, Qnil, Qnil, 0); | ||
| 5698 | } | ||
| 5699 | 5700 | ||
| 5700 | if (emacsframe->mouse_moved && send_appdefined) | 5701 | if (emacsframe->mouse_moved && send_appdefined) |
| 5701 | ns_send_appdefined (-1); | 5702 | ns_send_appdefined (-1); |
| @@ -5973,6 +5974,14 @@ if (cols > 0 && rows > 0) | |||
| 5973 | x_set_frame_alpha (emacsframe); | 5974 | x_set_frame_alpha (emacsframe); |
| 5974 | } | 5975 | } |
| 5975 | 5976 | ||
| 5977 | if (any_help_event_p) | ||
| 5978 | { | ||
| 5979 | Lisp_Object frame; | ||
| 5980 | XSETFRAME (frame, emacsframe); | ||
| 5981 | help_echo_string = Qnil; | ||
| 5982 | gen_help_event (Qnil, frame, Qnil, Qnil, 0); | ||
| 5983 | } | ||
| 5984 | |||
| 5976 | if (emacs_event && is_focus_frame) | 5985 | if (emacs_event && is_focus_frame) |
| 5977 | { | 5986 | { |
| 5978 | [self deleteWorkingText]; | 5987 | [self deleteWorkingText]; |
| @@ -7135,15 +7144,6 @@ if (cols > 0 && rows > 0) | |||
| 7135 | } | 7144 | } |
| 7136 | 7145 | ||
| 7137 | 7146 | ||
| 7138 | - (void)dealloc | ||
| 7139 | { | ||
| 7140 | NSTRACE (EmacsScroller_dealloc); | ||
| 7141 | if (!NILP (win)) | ||
| 7142 | wset_vertical_scroll_bar (XWINDOW (win), Qnil); | ||
| 7143 | [super dealloc]; | ||
| 7144 | } | ||
| 7145 | |||
| 7146 | |||
| 7147 | - condemn | 7147 | - condemn |
| 7148 | { | 7148 | { |
| 7149 | NSTRACE (condemn); | 7149 | NSTRACE (condemn); |
| @@ -7171,6 +7171,9 @@ if (cols > 0 && rows > 0) | |||
| 7171 | view = (EmacsView *)FRAME_NS_VIEW (frame); | 7171 | view = (EmacsView *)FRAME_NS_VIEW (frame); |
| 7172 | if (view != nil) | 7172 | if (view != nil) |
| 7173 | view->scrollbarsNeedingUpdate++; | 7173 | view->scrollbarsNeedingUpdate++; |
| 7174 | if (!NILP (win)) | ||
| 7175 | wset_vertical_scroll_bar (XWINDOW (win), Qnil); | ||
| 7176 | win = Qnil; | ||
| 7174 | [self removeFromSuperview]; | 7177 | [self removeFromSuperview]; |
| 7175 | [self release]; | 7178 | [self release]; |
| 7176 | unblock_input (); | 7179 | unblock_input (); |
diff --git a/src/w32fns.c b/src/w32fns.c index 057bc95ee94..e24148af4ff 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -96,7 +96,6 @@ static HWND hourglass_hwnd = NULL; | |||
| 96 | #define IDC_HAND MAKEINTRESOURCE(32649) | 96 | #define IDC_HAND MAKEINTRESOURCE(32649) |
| 97 | #endif | 97 | #endif |
| 98 | 98 | ||
| 99 | Lisp_Object Qsuppress_icon; | ||
| 100 | Lisp_Object Qundefined_color; | 99 | Lisp_Object Qundefined_color; |
| 101 | Lisp_Object Qcancel_timer; | 100 | Lisp_Object Qcancel_timer; |
| 102 | Lisp_Object Qfont_param; | 101 | Lisp_Object Qfont_param; |
| @@ -8091,7 +8090,6 @@ syms_of_w32fns (void) | |||
| 8091 | 8090 | ||
| 8092 | w32_visible_system_caret_hwnd = NULL; | 8091 | w32_visible_system_caret_hwnd = NULL; |
| 8093 | 8092 | ||
| 8094 | DEFSYM (Qsuppress_icon, "suppress-icon"); | ||
| 8095 | DEFSYM (Qundefined_color, "undefined-color"); | 8093 | DEFSYM (Qundefined_color, "undefined-color"); |
| 8096 | DEFSYM (Qcancel_timer, "cancel-timer"); | 8094 | DEFSYM (Qcancel_timer, "cancel-timer"); |
| 8097 | DEFSYM (Qhyper, "hyper"); | 8095 | DEFSYM (Qhyper, "hyper"); |
| @@ -8106,8 +8104,6 @@ syms_of_w32fns (void) | |||
| 8106 | DEFSYM (Qworkarea, "workarea"); | 8104 | DEFSYM (Qworkarea, "workarea"); |
| 8107 | DEFSYM (Qmm_size, "mm-size"); | 8105 | DEFSYM (Qmm_size, "mm-size"); |
| 8108 | DEFSYM (Qframes, "frames"); | 8106 | DEFSYM (Qframes, "frames"); |
| 8109 | /* This is the end of symbol initialization. */ | ||
| 8110 | |||
| 8111 | 8107 | ||
| 8112 | Fput (Qundefined_color, Qerror_conditions, | 8108 | Fput (Qundefined_color, Qerror_conditions, |
| 8113 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); | 8109 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); |
diff --git a/src/xfns.c b/src/xfns.c index c3d9900207f..651d21294e3 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -125,7 +125,6 @@ extern LWLIB_ID widget_id_tick; | |||
| 125 | 125 | ||
| 126 | #define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) | 126 | #define MAXREQUEST(dpy) (XMaxRequestSize (dpy)) |
| 127 | 127 | ||
| 128 | static Lisp_Object Qsuppress_icon; | ||
| 129 | static Lisp_Object Qundefined_color; | 128 | static Lisp_Object Qundefined_color; |
| 130 | static Lisp_Object Qcompound_text, Qcancel_timer; | 129 | static Lisp_Object Qcompound_text, Qcancel_timer; |
| 131 | Lisp_Object Qfont_param; | 130 | Lisp_Object Qfont_param; |
| @@ -6137,15 +6136,10 @@ frame_parm_handler x_frame_parm_handlers[] = | |||
| 6137 | void | 6136 | void |
| 6138 | syms_of_xfns (void) | 6137 | syms_of_xfns (void) |
| 6139 | { | 6138 | { |
| 6140 | /* The section below is built by the lisp expression at the top of the file, | ||
| 6141 | just above where these variables are declared. */ | ||
| 6142 | /*&&& init symbols here &&&*/ | ||
| 6143 | DEFSYM (Qsuppress_icon, "suppress-icon"); | ||
| 6144 | DEFSYM (Qundefined_color, "undefined-color"); | 6139 | DEFSYM (Qundefined_color, "undefined-color"); |
| 6145 | DEFSYM (Qcompound_text, "compound-text"); | 6140 | DEFSYM (Qcompound_text, "compound-text"); |
| 6146 | DEFSYM (Qcancel_timer, "cancel-timer"); | 6141 | DEFSYM (Qcancel_timer, "cancel-timer"); |
| 6147 | DEFSYM (Qfont_param, "font-parameter"); | 6142 | DEFSYM (Qfont_param, "font-parameter"); |
| 6148 | /* This is the end of symbol initialization. */ | ||
| 6149 | 6143 | ||
| 6150 | Fput (Qundefined_color, Qerror_conditions, | 6144 | Fput (Qundefined_color, Qerror_conditions, |
| 6151 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); | 6145 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); |