aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorKenichi Handa2012-10-06 21:55:09 +0900
committerKenichi Handa2012-10-06 21:55:09 +0900
commit16ddec7e9e6adcf615db097d9627d490ca29208c (patch)
tree1c16b9565c9cca81ec8f5b10f0f4110340d4654a /src/ChangeLog
parent2b89bca49d55cec1a004353354a76de2972c68f3 (diff)
parentd5acb99a199d83cde1a43482709c3e9d4ec34b2f (diff)
downloademacs-16ddec7e9e6adcf615db097d9627d490ca29208c.tar.gz
emacs-16ddec7e9e6adcf615db097d9627d490ca29208c.zip
merge trunk
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog384
1 files changed, 384 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1f5ad1e6d05..956e78e6c7e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,387 @@
12012-10-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * keyboard.c (read_char): Remove unnecessary 'volatile's and label.
4
52012-10-05 Eli Zaretskii <eliz@gnu.org>
6
7 * w32proc.c (stop_timer_thread): Fix declaration of 'err'.
8
9 * w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so
10 that time stamps of directories could also be changed. Don't
11 request the too broad GENERIC_WRITE, only the more restrictive
12 FILE_WRITE_ATTRIBUTES access rights.
13
14 * fileio.c (Fset_file_times): Special-case ignoring errors for
15 directories only on MSDOS, not on MS-Windows.
16
172012-10-05 Ikumi Keita <ikumi@ikumi.que.jp> (tiny change)
18
19 * minibuf.c (Fcompleting_read): Doc fix. (Bug#12555)
20
212012-10-04 Eli Zaretskii <eliz@gnu.org>
22
23 * w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to
24 see whether CreateFile failed.
25
262012-10-04 Paul Eggert <eggert@cs.ucla.edu>
27
28 * profiler.c (handle_profiler_signal): Inhibit pending signals too,
29 to avoid similar races.
30 * keyboard.c (pending_signals): Now bool, not int.
31
32 Port timers to OpenBSD, plus check for timer failures.
33 OpenBSD problem reported by Han Boetes.
34 * profiler.c (setup_cpu_timer): Check for failure of timer_settime
35 and/or setitimer.
36 (Fprofiler_cpu_stop): Don't assume HAVE_SETITIMER.
37 * syssignal.h (HAVE_ITIMERSPEC): New macro. This is for platforms
38 like OpenBSD, which has timer_settime but does not declare it.
39 OpenBSD does not define SIGEV_SIGNAL, so use that when deciding
40 whether to use itimerspec-related primitives. All uses of
41 HAVE_TIMER_SETTIME replaced with HAVE_ITIMERSPEC.
42
432012-10-02 Paul Eggert <eggert@cs.ucla.edu>
44
45 * profiler.c (handle_profiler_signal): Fix a malloc race
46 that caused Emacs to hang on Fedora 17 when profiling Lisp.
47
482012-10-02 Jan Djärv <jan.h.d@swipnet.se>
49
50 * nsterm.m (windowDidEnterFullScreen): Remove fprintf.
51
522012-10-02 Eli Zaretskii <eliz@gnu.org>
53
54 * w32proc.c (sys_wait): Declare 'signame' 'const char *', to be
55 consistent with the change in return value of 'safe_strsignal'.
56
572012-10-02 Paul Eggert <eggert@cs.ucla.edu>
58
59 Prefer plain 'static' to 'static inline' (Bug#12541).
60 * bidi.c (bidi_get_type, bidi_check_type, bidi_get_category)
61 (bidi_set_sor_type, bidi_push_embedding_level)
62 (bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it)
63 (bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state)
64 (bidi_cache_search, bidi_cache_ensure_space)
65 (bidi_cache_iterator_state, bidi_cache_find)
66 (bidi_peek_at_next_level, bidi_set_paragraph_end)
67 (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char)
68 (bidi_explicit_dir_char, bidi_resolve_neutral_1):
69 Now 'static', not 'static inline'.
70
71 Count overruns when profiling; change units to ns.
72 * profiler.c (handle_profiler_signal): Count sampling intervals, not ms.
73 Give extra weight to samples after overruns, to attempt to count
74 the time more accurately.
75 (setup_cpu_timer): Change sampling interval units from ms to ns, since
76 the underlying primitives nominally do ns.
77 (Fprofiler_cpu_start): Document the change. Mention that
78 the sampling intervals are only approximate.
79
802012-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP.
83
84 * coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special
85 case for the special 0 coding-system.
86
87 * buffer.c (Fset_buffer_multibyte): Signal an error instead of widening.
88 (Fmake_overlay): Remove redundant tests.
89 (fix_start_end_in_overlays): Remove redundant recentering.
90
912012-10-02 Juanma Barranquero <lekktu@gmail.com>
92
93 * makefile.w32-in ($(BLD)/alloc.$(O), $(BLD)/gmalloc.$(O)):
94 Update dependencies.
95
962012-10-01 Paul Eggert <eggert@cs.ucla.edu>
97
98 Fix a malloc race condition involving strsignal.
99 A signal can arrive in the middle of a malloc, and Emacs's signal
100 handler can invoke strsignal, which can invoke malloc, which is
101 not portable. This race condition bug makes Emacs hang on GNU/Linux.
102 Fix it by altering the signal handler so that it does not invoke
103 strsignal.
104 * emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal.
105 * process.c (status_message): Use const pointer, in case strsignal
106 is #defined to safe_strsignal.
107 * sysdep.c (sys_siglist, init_signals): Always define and
108 initialize a substitute sys_siglist if the system does not define
109 one, even if HAVE_STRSIGNAL.
110 (safe_strsignal): Rename from strsignal. Always define,
111 using sys_siglist. Return a const pointer.
112 * syssignal.h (safe_strsignal): New decl.
113 (strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal.
114
1152012-10-01 Eli Zaretskii <eliz@gnu.org>
116
117 * w32proc.c (timer_loop): Fix code that waits for timer
118 expiration, to avoid high CPU usage.
119
1202012-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
121
122 * fns.c (check_hash_table, get_key_arg, maybe_resize_hash_table)
123 (sweep_weak_table): Remove redundant prototypes.
124
1252012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
126
127 * emacs.c: Move the inclusion of TERM_HEADER after including
128 windows.h on WINDOWSNT. This avoids compilation problems with
129 MSVC.
130
1312012-10-01 Eli Zaretskii <eliz@gnu.org>
132
133 * unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
134 (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses.
135 (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *',
136 as the previous version used 'void *'.
137
138 * ralloc.c (ROUNDUP): Fix last change.
139 (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type
140 'size_t'.
141
142 * w32proc.c <disable_itimers>: New static flag.
143 (init_timers): Initialize it to zero, after creating the critical
144 sections used by the timer threads.
145 (term_timers): Set to 1 before deleting the critical sections.
146 (getitimer, setitimer): If disable_itimers is non-zero, return an
147 error indication without doing anything. Reported by Fabrice
148 Popineau <fabrice.popineau@supelec.fr> as part of bug#12544.
149 (alarm) [HAVE_SETITIMER]: Be more conformant to the expected
150 return results.
151 [!HAVE_SETITIMER]: Behave as the previous version that didn't
152 support timers.
153
154 * emacs.c (shut_down_emacs) [WINDOWSNT]: Move the call to
155 term_ntproc after all the other bookkeeping, to get timers working
156 as long as possible.
157
1582012-10-01 Paul Eggert <eggert@cs.ucla.edu>
159
160 * xdisp.c (syms_of_xdisp): Default message-log-max to 1000, not 100.
161 Suggested by Juri Linkov in
162 <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00821.html>.
163
164 Prefer plain 'static' to 'static inline' (Bug#12541).
165 With static functions, modern compilers inline pretty well by
166 themselves; advice from programmers often hurts as much as it helps.
167 On my host (x86-64, Fedora 17, GCC 4.7.2, default 'configure'),
168 this change shrinks the text size of the Emacs executable by 1.1%
169 without affecting CPU significantly in my benchmark.
170 * alloc.c (mem_find, live_string_p, live_cons_p, live_symbol_p)
171 (live_float_p, live_misc_p, live_vector_p, live_buffer_p)
172 (mark_maybe_object, mark_maybe_pointer, bounded_number):
173 * buffer.c (bset_abbrev_mode, bset_abbrev_table)
174 (bset_auto_fill_function, bset_auto_save_file_format)
175 (bset_auto_save_file_name, bset_backed_up, bset_begv_marker)
176 (bset_bidi_display_reordering, bset_buffer_file_coding_system)
177 (bset_cache_long_line_scans, bset_case_fold_search)
178 (bset_ctl_arrow, bset_cursor_in_non_selected_windows)
179 (bset_cursor_type, bset_display_table, bset_extra_line_spacing)
180 (bset_file_format, bset_file_truename, bset_fringe_cursor_alist)
181 (bset_fringe_indicator_alist, bset_fringes_outside_margins)
182 (bset_header_line_format, bset_indicate_buffer_boundaries)
183 (bset_indicate_empty_lines, bset_invisibility_spec)
184 (bset_left_fringe_width, bset_major_mode, bset_mark)
185 (bset_minor_modes, bset_mode_line_format, bset_mode_name)
186 (bset_name, bset_overwrite_mode, bset_pt_marker)
187 (bset_right_fringe_width, bset_save_length)
188 (bset_scroll_bar_width, bset_scroll_down_aggressively)
189 (bset_scroll_up_aggressively, bset_selective_display)
190 (bset_selective_display_ellipses, bset_vertical_scroll_bar_type)
191 (bset_word_wrap, bset_zv_marker, set_buffer_overlays_before)
192 (set_buffer_overlays_after):
193 * category.c (bset_category_table):
194 * charset.c (read_hex):
195 * coding.c (produce_composition, produce_charset)
196 (handle_composition_annotation, handle_charset_annotation)
197 (char_encodable_p):
198 * dispnew.c (swap_glyph_pointers, copy_row_except_pointers)
199 (assign_row, set_frame_matrix_frame, make_current)
200 (add_row_entry):
201 * eval.c (set_specpdl_symbol, set_specpdl_old_value):
202 * fns.c (maybe_resize_hash_table):
203 * frame.c (fset_buffer_predicate, fset_minibuffer_window):
204 * gmalloc.c (register_heapinfo):
205 * image.c (lookup_image_type):
206 * intervals.c (set_interval_object, set_interval_left)
207 (set_interval_right, copy_interval_parent, rotate_right)
208 (rotate_left, balance_possible_root_interval):
209 * keyboard.c (kset_echo_string, kset_kbd_queue)
210 (kset_keyboard_translate_table, kset_last_prefix_arg)
211 (kset_last_repeatable_command, kset_local_function_key_map)
212 (kset_overriding_terminal_local_map, kset_real_last_command)
213 (kset_system_key_syms, clear_event, set_prop):
214 * lread.c (digit_to_number):
215 * marker.c (attach_marker, live_buffer, set_marker_internal):
216 * nsterm.m (ns_compute_glyph_string_overhangs):
217 * process.c (pset_buffer, pset_command)
218 (pset_decode_coding_system, pset_decoding_buf)
219 (pset_encode_coding_system, pset_encoding_buf, pset_filter)
220 (pset_log, pset_mark, pset_name, pset_plist, pset_sentinel)
221 (pset_status, pset_tty_name, pset_type, pset_write_queue):
222 * syntax.c (bset_syntax_table, dec_bytepos):
223 * terminal.c (tset_param_alist):
224 * textprop.c (interval_has_some_properties)
225 (interval_has_some_properties_list):
226 * window.c (wset_combination_limit, wset_dedicated)
227 (wset_display_table, wset_hchild, wset_left_fringe_width)
228 (wset_left_margin_cols, wset_new_normal, wset_new_total)
229 (wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm)
230 (wset_right_fringe_width, wset_right_margin_cols)
231 (wset_scroll_bar_width, wset_start, wset_temslot, wset_vchild)
232 (wset_vertical_scroll_bar_type, wset_window_parameters):
233 * xdisp.c (wset_base_line_number, wset_base_line_pos)
234 (wset_column_number_displayed, wset_region_showing)
235 (window_box_edges, run_window_scroll_functions)
236 (append_glyph_string_lists, prepend_glyph_string_lists)
237 (append_glyph_string, set_glyph_string_background_width)
238 (append_glyph, append_composite_glyph)
239 (take_vertical_position_into_account):
240 * xfaces.c (x_create_gc, x_free_gc, merge_face_vectors)
241 (face_attr_equal_p, lface_equal_p, hash_string_case_insensitive)
242 (lface_hash, lface_same_font_attributes_p, lookup_face):
243 * xml.c (libxml2_loaded_p):
244 * xterm.c (x_set_mode_line_face_gc, x_set_glyph_string_gc)
245 (x_set_glyph_string_clipping, x_clear_glyph_string_rect):
246 Now 'static', not 'static inline'.
247
248 * bidi.c: Tune.
249 (bidi_copy_it): Do the whole copy with a single memcpy.
250 (bidi_char_at_pos): Merge the two STRING_CHAR calls into one.
251
252 Revert the FOLLOW-SYMLINKS change for file-attributes.
253 Doing it right would require several changes to Tramp, and there's
254 not enough time to get that tested before the freeze today.
255 * dired.c (directory_files_internal, Ffile_attributes):
256 Undo last change.
257
258 * frame.c (x_report_frame_params): Port better to wider ints.
259 Do not assume that EMACS_UINT is the same width as uprintmax_t,
260 or that pointers can be printed in 15 decimal digits.
261 Avoid GCC warnings if EMACS_UINT is wider than a pointer.
262
2632012-09-30 Fabrice Popineau <fabrice.popineau@supelec.fr>
264
265 Support x64 build on MS-Windows.
266 * w32term.h (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK): Define for x64.
267 (SET_SCROLL_BAR_W32_WINDOW): Cast ID to intptr_t, for
268 compatibility with x64.
269 (x_get_focus_frame): Add prototype.
270
271 * w32term.c (w32_draw_underwave): Don't use GCC extensions for
272 defining an XRectangle structure.
273
274 * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer
275 arithmetics for compatibility with x64.
276
277 * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for
278 compatibility with x64.
279
280 * w32heap.h: Adjust prototypes and declarations.
281
282 * w32heap.c (RVA_TO_PTR, allocate_heap, sbrk, init_heap)
283 (round_heap): Use DWORD_PTR, ptrdiff_t and size_t instead of
284 DWORD, long, and unsigned long, for compatibility with x64.
285 (allocate_heap) [_WIN64]: Reserve 32GB of memory.
286 (sbrk): Argument is now of type ptrdiff_t.
287
288 * w32fns.c (HMONITOR): Condition declaration on _WIN32_WINNT being
289 less than 0x0500.
290 (w32_msg_pump): Use WPARAM type for 'result'.
291
292 * w32.c (init_environment, get_emacs_configuration): Support AMD64
293 architecture.
294 (init_ntproc): Cast arguments of _open_osfhandle to intptr_t, for
295 compatibility with x64.
296
297 * vm-limit.c (lim_data): Now size_t.
298 (check_memory_limits): Adjust prototypes of real_morecore and
299 __morecore to receive argument of type ptrdiff_t. Use size_t for
300 five_percent and data_size.
301
302 * unexw32.c: Use DWORD_PTR instead of DWORD for file-scope
303 variables, for compatibility with x64.
304 (rva_to_section, offset_to_section, relocate_offset)
305 (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET)
306 (PTR_TO_RVA, RVA_TO_PTR, OFFSET_TO_PTR, get_section_info)
307 (copy_executable_and_dump_data): Use DWORD_PTR instead of DWORD
308 for compatibility with x64.
309
310 * sysdep.c (STDERR_FILENO): Define if not already defined.
311
312 * ralloc.c (real_morecore): Argument type is now ptrdiff_t.
313 (__morecore): Argument type is now ptrdiff_t.
314 (ROUNDUP, MEM_ROUNDUP): Use size_t instead of 'unsigned long'.
315 (relinquish): Use ptrdiff_t type for 'excess'.
316 (r_alloc_sbrk): Argument type is now ptrdiff_t.
317
318 * makefile.w32-in (HEAPSIZE): Get value from EMACS_HEAPSIZE.
319 (bootstrap-temacs-CMD, bootstrap-temacs-SH): Use $(EMACS_PURESIZE)
320 instead of a literal number.
321
322 * gmalloc.c [WINDOWSNT]: Include w32heap.h.
323 (min): Define only if not already defined.
324
325 * frame.c (x_report_frame_params): Use EMACS_UINT for the return
326 value of FRAME_X_WINDOW, to fit a 64-bit pointer on 64-bit Windows
327 hosts.
328
329 * image.c (x_bitmap_pixmap): Return ptrdiff_t, not int, since
330 'bitmaps' is a pointer.
331
332 * dispextern.h (x_bitmap_pixmap): Adjust prototype.
333
334 * alloc.c (gdb_make_enums_visible): Now conditional on __GNUC__.
335
3362012-09-30 Paul Eggert <eggert@cs.ucla.edu>
337
338 file-attributes has a new optional arg FOLLOW-SYMLINKS.
339 * dired.c (directory_files_internal, Ffile_attributes):
340 New arg follow_symlinks. All uses changed.
341
3422012-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 * .gdbinit (xbacktrace): Adjust to recent "struct backtrace" change.
345
3462012-09-30 Eli Zaretskii <eliz@gnu.org>
347
348 Support atimers and CPU profiler via profile.c on MS-Windows.
349 * w32proc.c (sig_mask, crit_sig): New static variables.
350 (sys_signal): Support SIGALRM and SIGPROF.
351 (sigemptyset, sigaddset, sigfillset, sigprocmask)
352 (pthread_sigmask, setpgrp): Move here from w32.c. sigaddset,
353 sigfillset, and sigprocmask are no longer no-ops.
354 (sigismember): New function.
355 (struct itimer_data): New definition.
356 (ticks_now, real_itimer, prof_itimer, clocks_min, crit_real)
357 (crit_prof): New static variables.
358 (MAX_SINGLE_SLEEP): New definition.
359 (timer_loop, stop_timer_thread, term_timers, init_timers)
360 (start_timer_thread, getitimer, setitimer): New functions.
361 (alarm): No longer a no-op, calls setitimer.
362
363 * w32.c (term_ntproc): Call term_timers.
364 (init_ntproc): Make sure all signals are unblocked at startup, to
365 erase any traces of dumping. Call init_timers.
366
367 * w32fns.c (hourglass_timer, HOURGLASS_ID): Remove.
368 Windows-specific code to display the hourglass mouse pointer is no
369 longer used.
370 (w32_wnd_proc): Remove code that handled the WM_TIMER message due
371 to hourglass timer expiration.
372 (start_hourglass, cancel_hourglass, DEFAULT_HOURGLASS_DELAY):
373 Remove, no longer used.
374 (w32_note_current_window, show_hourglass, hide_hourglass):
375 New functions, in support of hourglass cursor display similar to other
376 window systems.
377 (syms_of_w32fns): Don't initialize hourglass_timer.
378
379 * xdisp.c (start_hourglass, cancel_hourglass): Now used on
380 WINDOWSNT as well.
381 (start_hourglass) [WINDOWSNT]: Call w32_note_current_window.
382
383 * w32.h (init_timers, term_timers): Add prototypes.
384
12012-09-30 Kenichi Handa <handa@gnu.org> 3852012-09-30 Kenichi Handa <handa@gnu.org>
2 386
3 * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention 387 * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention