diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 479 |
1 files changed, 479 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b0899d67ca8..ced0e057e27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,481 @@ | |||
| 1 | 2012-10-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * profiler.c (handle_profiler_signal): Fix a malloc race | ||
| 4 | that caused Emacs to hang on Fedora 17 when profiling Lisp. | ||
| 5 | |||
| 6 | 2012-10-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7 | |||
| 8 | * nsterm.m (windowDidEnterFullScreen): Remove fprintf. | ||
| 9 | |||
| 10 | 2012-10-02 Eli Zaretskii <eliz@gnu.org> | ||
| 11 | |||
| 12 | * w32proc.c (sys_wait): Declare 'signame' 'const char *', to be | ||
| 13 | consistent with the change in return value of 'safe_strsignal'. | ||
| 14 | |||
| 15 | 2012-10-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16 | |||
| 17 | Prefer plain 'static' to 'static inline' (Bug#12541). | ||
| 18 | * bidi.c (bidi_get_type, bidi_check_type, bidi_get_category) | ||
| 19 | (bidi_set_sor_type, bidi_push_embedding_level) | ||
| 20 | (bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it) | ||
| 21 | (bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state) | ||
| 22 | (bidi_cache_search, bidi_cache_ensure_space) | ||
| 23 | (bidi_cache_iterator_state, bidi_cache_find) | ||
| 24 | (bidi_peek_at_next_level, bidi_set_paragraph_end) | ||
| 25 | (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char) | ||
| 26 | (bidi_explicit_dir_char, bidi_resolve_neutral_1): | ||
| 27 | Now 'static', not 'static inline'. | ||
| 28 | |||
| 29 | Count overruns when profiling; change units to ns. | ||
| 30 | * profiler.c (handle_profiler_signal): Count sampling intervals, not ms. | ||
| 31 | Give extra weight to samples after overruns, to attempt to count | ||
| 32 | the time more accurately. | ||
| 33 | (setup_cpu_timer): Change sampling interval units from ms to ns, since | ||
| 34 | the underlying primitives nominally do ns. | ||
| 35 | (Fprofiler_cpu_start): Document the change. Mention that | ||
| 36 | the sampling intervals are only approximate. | ||
| 37 | |||
| 38 | 2012-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 39 | |||
| 40 | * frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP. | ||
| 41 | |||
| 42 | * coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special | ||
| 43 | case for the special 0 coding-system. | ||
| 44 | |||
| 45 | * buffer.c (Fset_buffer_multibyte): Signal an error instead of widening. | ||
| 46 | (Fmake_overlay): Remove redundant tests. | ||
| 47 | (fix_start_end_in_overlays): Remove redundant recentering. | ||
| 48 | |||
| 49 | 2012-10-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 50 | |||
| 51 | * makefile.w32-in ($(BLD)/alloc.$(O), $(BLD)/gmalloc.$(O)): | ||
| 52 | Update dependencies. | ||
| 53 | |||
| 54 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 55 | |||
| 56 | Fix a malloc race condition involving strsignal. | ||
| 57 | A signal can arrive in the middle of a malloc, and Emacs's signal | ||
| 58 | handler can invoke strsignal, which can invoke malloc, which is | ||
| 59 | not portable. This race condition bug makes Emacs hang on GNU/Linux. | ||
| 60 | Fix it by altering the signal handler so that it does not invoke | ||
| 61 | strsignal. | ||
| 62 | * emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal. | ||
| 63 | * process.c (status_message): Use const pointer, in case strsignal | ||
| 64 | is #defined to safe_strsignal. | ||
| 65 | * sysdep.c (sys_siglist, init_signals): Always define and | ||
| 66 | initialize a substitute sys_siglist if the system does not define | ||
| 67 | one, even if HAVE_STRSIGNAL. | ||
| 68 | (safe_strsignal): Rename from strsignal. Always define, | ||
| 69 | using sys_siglist. Return a const pointer. | ||
| 70 | * syssignal.h (safe_strsignal): New decl. | ||
| 71 | (strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal. | ||
| 72 | |||
| 73 | 2012-10-01 Eli Zaretskii <eliz@gnu.org> | ||
| 74 | |||
| 75 | * w32proc.c (timer_loop): Fix code that waits for timer | ||
| 76 | expiration, to avoid high CPU usage. | ||
| 77 | |||
| 78 | 2012-10-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 79 | |||
| 80 | * fns.c (check_hash_table, get_key_arg, maybe_resize_hash_table) | ||
| 81 | (sweep_weak_table): Remove redundant prototypes. | ||
| 82 | |||
| 83 | 2012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 84 | |||
| 85 | * emacs.c: Move the inclusion of TERM_HEADER after including | ||
| 86 | windows.h on WINDOWSNT. This avoids compilation problems with | ||
| 87 | MSVC. | ||
| 88 | |||
| 89 | 2012-10-01 Eli Zaretskii <eliz@gnu.org> | ||
| 90 | |||
| 91 | * unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET) | ||
| 92 | (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses. | ||
| 93 | (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *', | ||
| 94 | as the previous version used 'void *'. | ||
| 95 | |||
| 96 | * ralloc.c (ROUNDUP): Fix last change. | ||
| 97 | (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type | ||
| 98 | 'size_t'. | ||
| 99 | |||
| 100 | * w32proc.c <disable_itimers>: New static flag. | ||
| 101 | (init_timers): Initialize it to zero, after creating the critical | ||
| 102 | sections used by the timer threads. | ||
| 103 | (term_timers): Set to 1 before deleting the critical sections. | ||
| 104 | (getitimer, setitimer): If disable_itimers is non-zero, return an | ||
| 105 | error indication without doing anything. Reported by Fabrice | ||
| 106 | Popineau <fabrice.popineau@supelec.fr> as part of bug#12544. | ||
| 107 | (alarm) [HAVE_SETITIMER]: Be more conformant to the expected | ||
| 108 | return results. | ||
| 109 | [!HAVE_SETITIMER]: Behave as the previous version that didn't | ||
| 110 | support timers. | ||
| 111 | |||
| 112 | * emacs.c (shut_down_emacs) [WINDOWSNT]: Move the call to | ||
| 113 | term_ntproc after all the other bookkeeping, to get timers working | ||
| 114 | as long as possible. | ||
| 115 | |||
| 116 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 117 | |||
| 118 | * xdisp.c (syms_of_xdisp): Default message-log-max to 1000, not 100. | ||
| 119 | Suggested by Juri Linkov in | ||
| 120 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00821.html>. | ||
| 121 | |||
| 122 | Prefer plain 'static' to 'static inline' (Bug#12541). | ||
| 123 | With static functions, modern compilers inline pretty well by | ||
| 124 | themselves; advice from programmers often hurts as much as it helps. | ||
| 125 | On my host (x86-64, Fedora 17, GCC 4.7.2, default 'configure'), | ||
| 126 | this change shrinks the text size of the Emacs executable by 1.1% | ||
| 127 | without affecting CPU significantly in my benchmark. | ||
| 128 | * alloc.c (mem_find, live_string_p, live_cons_p, live_symbol_p) | ||
| 129 | (live_float_p, live_misc_p, live_vector_p, live_buffer_p) | ||
| 130 | (mark_maybe_object, mark_maybe_pointer, bounded_number): | ||
| 131 | * buffer.c (bset_abbrev_mode, bset_abbrev_table) | ||
| 132 | (bset_auto_fill_function, bset_auto_save_file_format) | ||
| 133 | (bset_auto_save_file_name, bset_backed_up, bset_begv_marker) | ||
| 134 | (bset_bidi_display_reordering, bset_buffer_file_coding_system) | ||
| 135 | (bset_cache_long_line_scans, bset_case_fold_search) | ||
| 136 | (bset_ctl_arrow, bset_cursor_in_non_selected_windows) | ||
| 137 | (bset_cursor_type, bset_display_table, bset_extra_line_spacing) | ||
| 138 | (bset_file_format, bset_file_truename, bset_fringe_cursor_alist) | ||
| 139 | (bset_fringe_indicator_alist, bset_fringes_outside_margins) | ||
| 140 | (bset_header_line_format, bset_indicate_buffer_boundaries) | ||
| 141 | (bset_indicate_empty_lines, bset_invisibility_spec) | ||
| 142 | (bset_left_fringe_width, bset_major_mode, bset_mark) | ||
| 143 | (bset_minor_modes, bset_mode_line_format, bset_mode_name) | ||
| 144 | (bset_name, bset_overwrite_mode, bset_pt_marker) | ||
| 145 | (bset_right_fringe_width, bset_save_length) | ||
| 146 | (bset_scroll_bar_width, bset_scroll_down_aggressively) | ||
| 147 | (bset_scroll_up_aggressively, bset_selective_display) | ||
| 148 | (bset_selective_display_ellipses, bset_vertical_scroll_bar_type) | ||
| 149 | (bset_word_wrap, bset_zv_marker, set_buffer_overlays_before) | ||
| 150 | (set_buffer_overlays_after): | ||
| 151 | * category.c (bset_category_table): | ||
| 152 | * charset.c (read_hex): | ||
| 153 | * coding.c (produce_composition, produce_charset) | ||
| 154 | (handle_composition_annotation, handle_charset_annotation) | ||
| 155 | (char_encodable_p): | ||
| 156 | * dispnew.c (swap_glyph_pointers, copy_row_except_pointers) | ||
| 157 | (assign_row, set_frame_matrix_frame, make_current) | ||
| 158 | (add_row_entry): | ||
| 159 | * eval.c (set_specpdl_symbol, set_specpdl_old_value): | ||
| 160 | * fns.c (maybe_resize_hash_table): | ||
| 161 | * frame.c (fset_buffer_predicate, fset_minibuffer_window): | ||
| 162 | * gmalloc.c (register_heapinfo): | ||
| 163 | * image.c (lookup_image_type): | ||
| 164 | * intervals.c (set_interval_object, set_interval_left) | ||
| 165 | (set_interval_right, copy_interval_parent, rotate_right) | ||
| 166 | (rotate_left, balance_possible_root_interval): | ||
| 167 | * keyboard.c (kset_echo_string, kset_kbd_queue) | ||
| 168 | (kset_keyboard_translate_table, kset_last_prefix_arg) | ||
| 169 | (kset_last_repeatable_command, kset_local_function_key_map) | ||
| 170 | (kset_overriding_terminal_local_map, kset_real_last_command) | ||
| 171 | (kset_system_key_syms, clear_event, set_prop): | ||
| 172 | * lread.c (digit_to_number): | ||
| 173 | * marker.c (attach_marker, live_buffer, set_marker_internal): | ||
| 174 | * nsterm.m (ns_compute_glyph_string_overhangs): | ||
| 175 | * process.c (pset_buffer, pset_command) | ||
| 176 | (pset_decode_coding_system, pset_decoding_buf) | ||
| 177 | (pset_encode_coding_system, pset_encoding_buf, pset_filter) | ||
| 178 | (pset_log, pset_mark, pset_name, pset_plist, pset_sentinel) | ||
| 179 | (pset_status, pset_tty_name, pset_type, pset_write_queue): | ||
| 180 | * syntax.c (bset_syntax_table, dec_bytepos): | ||
| 181 | * terminal.c (tset_param_alist): | ||
| 182 | * textprop.c (interval_has_some_properties) | ||
| 183 | (interval_has_some_properties_list): | ||
| 184 | * window.c (wset_combination_limit, wset_dedicated) | ||
| 185 | (wset_display_table, wset_hchild, wset_left_fringe_width) | ||
| 186 | (wset_left_margin_cols, wset_new_normal, wset_new_total) | ||
| 187 | (wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm) | ||
| 188 | (wset_right_fringe_width, wset_right_margin_cols) | ||
| 189 | (wset_scroll_bar_width, wset_start, wset_temslot, wset_vchild) | ||
| 190 | (wset_vertical_scroll_bar_type, wset_window_parameters): | ||
| 191 | * xdisp.c (wset_base_line_number, wset_base_line_pos) | ||
| 192 | (wset_column_number_displayed, wset_region_showing) | ||
| 193 | (window_box_edges, run_window_scroll_functions) | ||
| 194 | (append_glyph_string_lists, prepend_glyph_string_lists) | ||
| 195 | (append_glyph_string, set_glyph_string_background_width) | ||
| 196 | (append_glyph, append_composite_glyph) | ||
| 197 | (take_vertical_position_into_account): | ||
| 198 | * xfaces.c (x_create_gc, x_free_gc, merge_face_vectors) | ||
| 199 | (face_attr_equal_p, lface_equal_p, hash_string_case_insensitive) | ||
| 200 | (lface_hash, lface_same_font_attributes_p, lookup_face): | ||
| 201 | * xml.c (libxml2_loaded_p): | ||
| 202 | * xterm.c (x_set_mode_line_face_gc, x_set_glyph_string_gc) | ||
| 203 | (x_set_glyph_string_clipping, x_clear_glyph_string_rect): | ||
| 204 | Now 'static', not 'static inline'. | ||
| 205 | |||
| 206 | * bidi.c: Tune. | ||
| 207 | (bidi_copy_it): Do the whole copy with a single memcpy. | ||
| 208 | (bidi_char_at_pos): Merge the two STRING_CHAR calls into one. | ||
| 209 | |||
| 210 | Revert the FOLLOW-SYMLINKS change for file-attributes. | ||
| 211 | Doing it right would require several changes to Tramp, and there's | ||
| 212 | not enough time to get that tested before the freeze today. | ||
| 213 | * dired.c (directory_files_internal, Ffile_attributes): | ||
| 214 | Undo last change. | ||
| 215 | |||
| 216 | * frame.c (x_report_frame_params): Port better to wider ints. | ||
| 217 | Do not assume that EMACS_UINT is the same width as uprintmax_t, | ||
| 218 | or that pointers can be printed in 15 decimal digits. | ||
| 219 | Avoid GCC warnings if EMACS_UINT is wider than a pointer. | ||
| 220 | |||
| 221 | 2012-09-30 Fabrice Popineau <fabrice.popineau@supelec.fr> | ||
| 222 | |||
| 223 | Support x64 build on MS-Windows. | ||
| 224 | * w32term.h (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK): Define for x64. | ||
| 225 | (SET_SCROLL_BAR_W32_WINDOW): Cast ID to intptr_t, for | ||
| 226 | compatibility with x64. | ||
| 227 | (x_get_focus_frame): Add prototype. | ||
| 228 | |||
| 229 | * w32term.c (w32_draw_underwave): Don't use GCC extensions for | ||
| 230 | defining an XRectangle structure. | ||
| 231 | |||
| 232 | * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer | ||
| 233 | arithmetics for compatibility with x64. | ||
| 234 | |||
| 235 | * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for | ||
| 236 | compatibility with x64. | ||
| 237 | |||
| 238 | * w32heap.h: Adjust prototypes and declarations. | ||
| 239 | |||
| 240 | * w32heap.c (RVA_TO_PTR, allocate_heap, sbrk, init_heap) | ||
| 241 | (round_heap): Use DWORD_PTR, ptrdiff_t and size_t instead of | ||
| 242 | DWORD, long, and unsigned long, for compatibility with x64. | ||
| 243 | (allocate_heap) [_WIN64]: Reserve 32GB of memory. | ||
| 244 | (sbrk): Argument is now of type ptrdiff_t. | ||
| 245 | |||
| 246 | * w32fns.c (HMONITOR): Condition declaration on _WIN32_WINNT being | ||
| 247 | less than 0x0500. | ||
| 248 | (w32_msg_pump): Use WPARAM type for 'result'. | ||
| 249 | |||
| 250 | * w32.c (init_environment, get_emacs_configuration): Support AMD64 | ||
| 251 | architecture. | ||
| 252 | (init_ntproc): Cast arguments of _open_osfhandle to intptr_t, for | ||
| 253 | compatibility with x64. | ||
| 254 | |||
| 255 | * vm-limit.c (lim_data): Now size_t. | ||
| 256 | (check_memory_limits): Adjust prototypes of real_morecore and | ||
| 257 | __morecore to receive argument of type ptrdiff_t. Use size_t for | ||
| 258 | five_percent and data_size. | ||
| 259 | |||
| 260 | * unexw32.c: Use DWORD_PTR instead of DWORD for file-scope | ||
| 261 | variables, for compatibility with x64. | ||
| 262 | (rva_to_section, offset_to_section, relocate_offset) | ||
| 263 | (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET) | ||
| 264 | (PTR_TO_RVA, RVA_TO_PTR, OFFSET_TO_PTR, get_section_info) | ||
| 265 | (copy_executable_and_dump_data): Use DWORD_PTR instead of DWORD | ||
| 266 | for compatibility with x64. | ||
| 267 | |||
| 268 | * sysdep.c (STDERR_FILENO): Define if not already defined. | ||
| 269 | |||
| 270 | * ralloc.c (real_morecore): Argument type is now ptrdiff_t. | ||
| 271 | (__morecore): Argument type is now ptrdiff_t. | ||
| 272 | (ROUNDUP, MEM_ROUNDUP): Use size_t instead of 'unsigned long'. | ||
| 273 | (relinquish): Use ptrdiff_t type for 'excess'. | ||
| 274 | (r_alloc_sbrk): Argument type is now ptrdiff_t. | ||
| 275 | |||
| 276 | * makefile.w32-in (HEAPSIZE): Get value from EMACS_HEAPSIZE. | ||
| 277 | (bootstrap-temacs-CMD, bootstrap-temacs-SH): Use $(EMACS_PURESIZE) | ||
| 278 | instead of a literal number. | ||
| 279 | |||
| 280 | * gmalloc.c [WINDOWSNT]: Include w32heap.h. | ||
| 281 | (min): Define only if not already defined. | ||
| 282 | |||
| 283 | * frame.c (x_report_frame_params): Use EMACS_UINT for the return | ||
| 284 | value of FRAME_X_WINDOW, to fit a 64-bit pointer on 64-bit Windows | ||
| 285 | hosts. | ||
| 286 | |||
| 287 | * image.c (x_bitmap_pixmap): Return ptrdiff_t, not int, since | ||
| 288 | 'bitmaps' is a pointer. | ||
| 289 | |||
| 290 | * dispextern.h (x_bitmap_pixmap): Adjust prototype. | ||
| 291 | |||
| 292 | * alloc.c (gdb_make_enums_visible): Now conditional on __GNUC__. | ||
| 293 | |||
| 294 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 295 | |||
| 296 | file-attributes has a new optional arg FOLLOW-SYMLINKS. | ||
| 297 | * dired.c (directory_files_internal, Ffile_attributes): | ||
| 298 | New arg follow_symlinks. All uses changed. | ||
| 299 | |||
| 300 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 301 | |||
| 302 | * .gdbinit (xbacktrace): Adjust to recent "struct backtrace" change. | ||
| 303 | |||
| 304 | 2012-09-30 Eli Zaretskii <eliz@gnu.org> | ||
| 305 | |||
| 306 | Support atimers and CPU profiler via profile.c on MS-Windows. | ||
| 307 | * w32proc.c (sig_mask, crit_sig): New static variables. | ||
| 308 | (sys_signal): Support SIGALRM and SIGPROF. | ||
| 309 | (sigemptyset, sigaddset, sigfillset, sigprocmask) | ||
| 310 | (pthread_sigmask, setpgrp): Move here from w32.c. sigaddset, | ||
| 311 | sigfillset, and sigprocmask are no longer no-ops. | ||
| 312 | (sigismember): New function. | ||
| 313 | (struct itimer_data): New definition. | ||
| 314 | (ticks_now, real_itimer, prof_itimer, clocks_min, crit_real) | ||
| 315 | (crit_prof): New static variables. | ||
| 316 | (MAX_SINGLE_SLEEP): New definition. | ||
| 317 | (timer_loop, stop_timer_thread, term_timers, init_timers) | ||
| 318 | (start_timer_thread, getitimer, setitimer): New functions. | ||
| 319 | (alarm): No longer a no-op, calls setitimer. | ||
| 320 | |||
| 321 | * w32.c (term_ntproc): Call term_timers. | ||
| 322 | (init_ntproc): Make sure all signals are unblocked at startup, to | ||
| 323 | erase any traces of dumping. Call init_timers. | ||
| 324 | |||
| 325 | * w32fns.c (hourglass_timer, HOURGLASS_ID): Remove. | ||
| 326 | Windows-specific code to display the hourglass mouse pointer is no | ||
| 327 | longer used. | ||
| 328 | (w32_wnd_proc): Remove code that handled the WM_TIMER message due | ||
| 329 | to hourglass timer expiration. | ||
| 330 | (start_hourglass, cancel_hourglass, DEFAULT_HOURGLASS_DELAY): | ||
| 331 | Remove, no longer used. | ||
| 332 | (w32_note_current_window, show_hourglass, hide_hourglass): | ||
| 333 | New functions, in support of hourglass cursor display similar to other | ||
| 334 | window systems. | ||
| 335 | (syms_of_w32fns): Don't initialize hourglass_timer. | ||
| 336 | |||
| 337 | * xdisp.c (start_hourglass, cancel_hourglass): Now used on | ||
| 338 | WINDOWSNT as well. | ||
| 339 | (start_hourglass) [WINDOWSNT]: Call w32_note_current_window. | ||
| 340 | |||
| 341 | * w32.h (init_timers, term_timers): Add prototypes. | ||
| 342 | |||
| 343 | 2012-09-30 Kenichi Handa <handa@gnu.org> | ||
| 344 | |||
| 345 | * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention | ||
| 346 | to the buffer relocation which may be caused by ccl_driver. | ||
| 347 | |||
| 348 | 2012-09-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 349 | |||
| 350 | * xfns.c (Fx_file_dialog): Update comment. | ||
| 351 | |||
| 352 | * w32fns.c (Fx_file_dialog): Update comment. | ||
| 353 | |||
| 354 | * nsfns.m (Fns_read_file_name): Add argument DIR_ONLY_P. | ||
| 355 | Initialize panel name field if OSX >= 10.6. | ||
| 356 | |||
| 357 | * fileio.c (Fnext_read_file_uses_dialog_p): Add HAVE_NS. | ||
| 358 | |||
| 359 | * nsfns.m (ns_frame_parm_handlers): Add x_set_fullscreen. | ||
| 360 | |||
| 361 | * nsterm.m (NEW_STYLE_FS): New define. | ||
| 362 | (ns_fullscreen_hook, windowWillEnterFullScreen) | ||
| 363 | (windowDidEnterFullScreen, windowWillExitFullScreen) | ||
| 364 | (windowDidExitFullScreen, toggleFullScreen, handleFS) | ||
| 365 | (setFSValue): New functions. | ||
| 366 | (EmacsFSWindow): New implementation. | ||
| 367 | (canBecomeKeyWindow): New function for EmacsFSWindow. | ||
| 368 | (ns_create_terminal): Set fullscreen_hook to ns_fullscreen_hook. | ||
| 369 | (dealloc): Release nonfs_window if in fullscreen. | ||
| 370 | (updateFrameSize:): Call windowDidMove to update top/left. | ||
| 371 | (windowWillResize:toSize:): Check if frame is still maximized. | ||
| 372 | (initFrameFromEmacs:): Initialize fs_state, fs_before_fs, | ||
| 373 | next_maximized, maximized_width, maximized_height and nonfs_window. | ||
| 374 | Call setCollectionBehavior if NEW_STYLE_FS. Initialize bwidth and | ||
| 375 | tbar_height. | ||
| 376 | (windowWillUseStandardFrame:defaultFrame:): Update frame parameter | ||
| 377 | fullscreen. Set maximized_width/height. Act on next_maximized. | ||
| 378 | |||
| 379 | * nsterm.h (MAC_OS_X_VERSION_10_7, MAC_OS_X_VERSION_10_8): New. | ||
| 380 | (EmacsView): Add variables for fullscreen. | ||
| 381 | (handleFS, setFSValue, toggleFullScreen): New in EmacsView. | ||
| 382 | (EmacsFSWindow): New interface for fullscreen. | ||
| 383 | |||
| 384 | 2012-09-30 Juanma Barranquero <lekktu@gmail.com> | ||
| 385 | |||
| 386 | * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. | ||
| 387 | |||
| 388 | 2012-09-30 Chong Yidong <cyd@gnu.org> | ||
| 389 | |||
| 390 | * fns.c (Frandom): Doc fix. | ||
| 391 | |||
| 392 | 2012-09-30 Martin Rudalics <rudalics@gmx.at> | ||
| 393 | |||
| 394 | * window.c (Vwindow_combination_limit): New default value. | ||
| 395 | (Qwindow_size): New symbol replacing Qtemp_buffer_resize. | ||
| 396 | |||
| 397 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 398 | |||
| 399 | * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING. | ||
| 400 | Suggested by Eli Zaretskii in | ||
| 401 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00811.html>. | ||
| 402 | |||
| 403 | 2012-09-30 Eli Zaretskii <eliz@gnu.org> | ||
| 404 | |||
| 405 | * profiler.c (Fprofiler_cpu_stop): Use timer_settime only if | ||
| 406 | HAVE_TIMER_SETTIME is defined. | ||
| 407 | |||
| 408 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 409 | |||
| 410 | Profiler improvements: more-accurate timers, overflow checks. | ||
| 411 | * profiler.c: Don't include stdio.h, limits.h, sys/time.h, | ||
| 412 | signal.h, setjmp.h. Include systime.h instead. | ||
| 413 | (saturated_add): New function. | ||
| 414 | (record_backtrace, current_sample_interval): Use EMACS_INT, not size_t. | ||
| 415 | (record_backtrace, handle_profiler_signal): Saturate on fixnum overflow. | ||
| 416 | (profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]: | ||
| 417 | New static vars. | ||
| 418 | (enum profiler_cpu_running): New enum. | ||
| 419 | (profiler_cpu_running): Now of that enum type, not bool. | ||
| 420 | All uses changed to store the new value. | ||
| 421 | (handle_profiler_signal): Rename from sigprof_handler_1, | ||
| 422 | for consistency with other handlers. Do not check whether | ||
| 423 | cpu_log is a hash-table if garbage collecting, since it | ||
| 424 | doesn't matter in that case. | ||
| 425 | (deliver_profiler_signal): Rename from sigprof_handler, | ||
| 426 | for consistency with other handlers. | ||
| 427 | (setup_cpu_timer): New function, with much of what used to be in | ||
| 428 | Fprofiler_cpu_start. Check for out-of-range argument. | ||
| 429 | Prefer timer_settime if available, and prefer | ||
| 430 | thread cputime clocks, then process cputime clocks, then | ||
| 431 | monotonic clocks, to the old realtime clock. Use make_timeval | ||
| 432 | to round more-correctly when falling back to setitimer. | ||
| 433 | (Fprofiler_cpu_start): Use it. | ||
| 434 | (Fprofiler_cpu_stop): Prefer timer_settime if available. | ||
| 435 | Don't assume that passing NULL as the 2nd argument of setitimer | ||
| 436 | is the same as passing a pointer to all-zero storage. | ||
| 437 | Ignore SIGPROF afterwards. | ||
| 438 | (malloc_probe): Saturate at MOST_POSITIVE_FIXNUM. | ||
| 439 | * sysdep.c (emacs_sigaction_init): Also mask out SIGPROF in | ||
| 440 | non-fatal signal handlers. Ignore SIGPROF on startup. | ||
| 441 | * syssignal.h (PROFILER_CPU_SUPPORT): Define this macro here, not | ||
| 442 | in profiler.c, since sysdep.c now uses it. | ||
| 443 | |||
| 444 | * sysdep.c (handle_fatal_signal): Bump backtrace size to 40. | ||
| 445 | Suggested by Eli Zaretskii in | ||
| 446 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00796.html>. | ||
| 447 | |||
| 448 | 2012-09-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 449 | |||
| 450 | * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. | ||
| 451 | |||
| 452 | 2012-09-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 453 | |||
| 454 | * lisp.h (struct backtrace): Remove indirection for `function' field. | ||
| 455 | * xdisp.c (redisplay_internal): | ||
| 456 | * profiler.c (record_backtrace, sigprof_handler_1): | ||
| 457 | * alloc.c (Fgarbage_collect): | ||
| 458 | * eval.c (interactive_p, Fsignal, eval_sub, Ffuncall, Fbacktrace) | ||
| 459 | (Fbacktrace_frame): Adjust accordingly. | ||
| 460 | |||
| 461 | 2012-09-28 Glenn Morris <rgm@gnu.org> | ||
| 462 | |||
| 463 | * eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success) | ||
| 464 | (Frun_hook_with_args_until_failure): Doc fixes. | ||
| 465 | |||
| 466 | 2012-09-28 Eli Zaretskii <eliz@gnu.org> | ||
| 467 | |||
| 468 | * xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from | ||
| 469 | Qautomatic_redisplay and change the symbol name. All users changed. | ||
| 470 | |||
| 471 | 2012-09-28 Tomohiro Matsuyama <tomo@cx4a.org> | ||
| 472 | |||
| 473 | * profiler.c (sigprof_handler): Fix race condition. | ||
| 474 | |||
| 475 | 2012-09-28 Glenn Morris <rgm@gnu.org> | ||
| 476 | |||
| 477 | * lread.c (lisp_file_lexically_bound_p): Handle #! lines. (Bug#12528) | ||
| 478 | |||
| 1 | 2012-09-27 Paul Eggert <eggert@cs.ucla.edu> | 479 | 2012-09-27 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 480 | ||
| 3 | Check more robustly for timer_settime. | 481 | Check more robustly for timer_settime. |
| @@ -49,6 +527,7 @@ | |||
| 49 | (redisplay_internal): Record itself in backtrace_list. | 527 | (redisplay_internal): Record itself in backtrace_list. |
| 50 | (syms_of_xdisp): Define Qautomatic_redisplay. | 528 | (syms_of_xdisp): Define Qautomatic_redisplay. |
| 51 | 529 | ||
| 530 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | ||
| 52 | 2012-09-25 Juanma Barranquero <lekktu@gmail.com> | 531 | 2012-09-25 Juanma Barranquero <lekktu@gmail.com> |
| 53 | 532 | ||
| 54 | * makefile.w32-in ($(BLD)/callproc.$(O)): Update dependencies. | 533 | * makefile.w32-in ($(BLD)/callproc.$(O)): Update dependencies. |