diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 1342 |
1 files changed, 1327 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3a2a36c0cf7..a1aa4efcc86 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,1319 @@ | |||
| 1 | 2013-06-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (gettimeofday): Make the signature identical to prototype | ||
| 4 | in nt/inc/sys/time.h. | ||
| 5 | |||
| 6 | 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7 | |||
| 8 | * eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to | ||
| 9 | .gdbinit. | ||
| 10 | |||
| 11 | * keyboard.c (safe_run_hooks_error): Improve error message. | ||
| 12 | |||
| 13 | * data.c (pure_write_error): Add `object' argument. | ||
| 14 | * puresize.h (CHECK_IMPURE): Use it. | ||
| 15 | |||
| 16 | 2013-06-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 17 | |||
| 18 | * Makefile.in (NOTIFY_OBJ): New variable. | ||
| 19 | (base_obj): Replace inotify.o by $(NOTIFY_OBJ). | ||
| 20 | |||
| 21 | * emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code. | ||
| 22 | Call syms_of_gfilenotify. | ||
| 23 | |||
| 24 | * gfilenotify.c: New file. | ||
| 25 | |||
| 26 | * keyboard.c (Qfile_notify): New variable. Replaces Qfile_inotify | ||
| 27 | and Qfile_w32notify. | ||
| 28 | (top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY, | ||
| 29 | HAVE_W32NOTIFY and USE_FILE_NOTIFY. | ||
| 30 | |||
| 31 | * lisp.h: Declare syms_of_gfilenotify. | ||
| 32 | |||
| 33 | * termhooks.h (e): Wrap enum by USE_FILE_NOTIFY. | ||
| 34 | |||
| 35 | 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 36 | |||
| 37 | Merge the specpdl and backtrace stacks. Make the structure of the | ||
| 38 | specpdl entries more obvious via a tagged union of structs. | ||
| 39 | * lisp.h (BITS_PER_PTRDIFF_T): New constant. | ||
| 40 | (enum specbind_tag): New enum. | ||
| 41 | (struct specbinding): Make it a tagged union of structs. | ||
| 42 | Add a case for backtrace records. | ||
| 43 | (specpdl_symbol, specpdl_old_value, specpdl_where, specpdl_arg) | ||
| 44 | (specpdl_func, backtrace_function, backtrace_nargs, backtrace_args) | ||
| 45 | (backtrace_debug_on_exit): New accessors. | ||
| 46 | (struct backtrace): Remove. | ||
| 47 | (struct catchtag): Remove backlist field. | ||
| 48 | * data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p): | ||
| 49 | Move to eval.c. | ||
| 50 | (Flocal_variable_p): Speed up the common case where the binding is | ||
| 51 | already loaded. | ||
| 52 | * eval.c (backtrace_list): Remove. | ||
| 53 | (set_specpdl_symbol, set_specpdl_old_value): Remove. | ||
| 54 | (set_backtrace_args, set_backtrace_nargs) | ||
| 55 | (set_backtrace_debug_on_exit, backtrace_p, backtrace_top) | ||
| 56 | (backtrace_next): New functions. | ||
| 57 | (Fdefvaralias, Fdefvar): Adjust to new specpdl format. | ||
| 58 | (unwind_to_catch, internal_lisp_condition_case) | ||
| 59 | (internal_condition_case, internal_condition_case_1) | ||
| 60 | (internal_condition_case_2, internal_condition_case_n): Don't bother | ||
| 61 | with backtrace_list any more. | ||
| 62 | (Fsignal): Adjust to new backtrace format. | ||
| 63 | (grow_specpdl): Move up. | ||
| 64 | (record_in_backtrace): New function. | ||
| 65 | (eval_sub, Ffuncall): Use it. | ||
| 66 | (apply_lambda): Adjust to new backtrace format. | ||
| 67 | (let_shadows_buffer_binding_p, let_shadows_global_binding_p): Move from | ||
| 68 | data.c. | ||
| 69 | (specbind): Adjust to new specpdl format. Simplify. | ||
| 70 | (record_unwind_protect, unbind_to): Adjust to new specpdl format. | ||
| 71 | (Fbacktrace_debug, Fbacktrace, Fbacktrace_frame): Adjust to new | ||
| 72 | backtrace format. | ||
| 73 | (mark_backtrace): Remove. | ||
| 74 | (mark_specpdl, get_backtrace, backtrace_top_function): New functions. | ||
| 75 | * xdisp.c (redisplay_internal): Use record_in_backtrace. | ||
| 76 | * alloc.c (Fgarbage_collect): Use record_in_backtrace. | ||
| 77 | Use mark_specpdl. | ||
| 78 | * profiler.c (record_backtrace): Use get_backtrace. | ||
| 79 | (handle_profiler_signal): Use backtrace_top_function. | ||
| 80 | * .gdbinit (xbacktrace, hookpost-backtrace): Use new backtrace | ||
| 81 | accessor functions. | ||
| 82 | |||
| 83 | 2013-06-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 84 | |||
| 85 | * process.h (catch_child_signal): Declare. | ||
| 86 | |||
| 87 | * process.c (catch_child_signal): New function. | ||
| 88 | (init_process_emacs): Call it. | ||
| 89 | |||
| 90 | * nsterm.m: Include process.h if NS_IMPL_GNUSTEP. | ||
| 91 | (ns_menu_bar_is_hidden, menu_will_open_state): Define only if | ||
| 92 | NS_IMPL_COCOA. | ||
| 93 | (x_set_cursor_type): Remove declaration. | ||
| 94 | (ns_update_begin): Only use r and bp if NS_IMPL_COCOA. | ||
| 95 | (ns_update_end, ns_focus, ns_unfocus): Remove GNUStep specific code. | ||
| 96 | (x_set_window_size): Remove 3 pixels from toolbar if NS_IMPL_GNUSTEP. | ||
| 97 | (ns_get_color): Use F suffix on float. | ||
| 98 | (ns_color_to_lisp, ns_query_color): Use EmacsCGFloat. | ||
| 99 | (ns_get_rgb_color): Remove. | ||
| 100 | (x_set_frame_alpha): Move view inside NS_IMPL_COCOA. | ||
| 101 | (note_mouse_movement): x and y are CGFloat. | ||
| 102 | (ns_draw_fringe_bitmap): Remove unused rowY. | ||
| 103 | Change #if to COCOA && >= 10_6. | ||
| 104 | (ns_draw_window_cursor): Remove unused overspill. | ||
| 105 | (ns_draw_underwave): width and x are EamcsCGFloat. | ||
| 106 | (ns_draw_box): thickness is CGFloat. | ||
| 107 | (ns_dumpglyphs_image): Change #if to COCOA && >= 10_6. | ||
| 108 | (ns_send_appdefined): When NS_IMPL_GNUSTEP, redirect to main thread | ||
| 109 | if not in main thread. | ||
| 110 | (ns_get_pending_menu_title, ns_check_menu_open) | ||
| 111 | (ns_check_pending_open_menu): Put inside #if COCOA && >= 10_5. | ||
| 112 | (ns_term_init): Call catch_child_signal if NS_IMPL_GNUSTEP && SIGCHLD. | ||
| 113 | (sendFromMainThread:): New method. | ||
| 114 | (changeFont:): size is CGFloat. | ||
| 115 | (keyDown:): Check for Delete when NS_IMPL_GNUSTEP. | ||
| 116 | Disable warning about permanent text. | ||
| 117 | (characterIndexForPoint:): Adjust return type depending on GNUStep | ||
| 118 | version. | ||
| 119 | (mouseDown:): delta is CGFloat. | ||
| 120 | (updateFrameSize): Remove unised variable f. | ||
| 121 | (initFrameFromEmacs): Move toggleButton inside NS_IMPL_COCOA. | ||
| 122 | Cast float to EmacsCGFloat. | ||
| 123 | (windowWillUseStandardFrame:defaultFrame:): Set maximized_height | ||
| 124 | also to -1 when restoring. | ||
| 125 | (windowDidExitFullScreen:): Put call to updateCollectionBehaviour | ||
| 126 | inside NS_IMPL_COCOA. | ||
| 127 | (toggleFullScreen:): Put call to toggleFullScreen inside | ||
| 128 | NS_IMPL_COCOA. Cast float to EmacsCGFloat. | ||
| 129 | (setPosition:portion:whole:): por is CGFloat. | ||
| 130 | (getMouseMotionPart:window:x:y:): Add F suffix to float. | ||
| 131 | (mouseDown:): Use CGFloat. | ||
| 132 | (mouseDragged:): Remove unised variable edge. | ||
| 133 | (EmacsDocument): Implement for NS_IMPL_GNUSTEP. | ||
| 134 | |||
| 135 | * nsterm.h (EmacsCGFloat): Typedef for OSX and GNUStep when the size | ||
| 136 | of CGFloat differs. | ||
| 137 | (EmacsApp): New variable nextappdefined. Declare sendFromMainThread | ||
| 138 | when NS_IMPL_GNUSTEP. | ||
| 139 | (EmacsDocument): Declare when NS_IMPL_GNUSTEP. | ||
| 140 | (EmacsView): Remove unlockFocusNeedsFlush, add windowDidMove. | ||
| 141 | (EmacsToolbar): Add clearAll. Add tag argument to | ||
| 142 | addDisplayItemWithImage. | ||
| 143 | (EmacsSavePanel, EmacsOpenPanel): Remove getFilename and getDirectory. | ||
| 144 | |||
| 145 | * nsselect.m (ns_get_local_selection): Remove unused variable type. | ||
| 146 | |||
| 147 | * nsmenu.m (ns_update_menubar): Make static. | ||
| 148 | (x_activate_menubar): Surround with ifdef NS_IMPL_COCOA | ||
| 149 | (fillWithWidgetValue:): Add cast to SEL for setAction. | ||
| 150 | (addSubmenuWithTitle:forFrame:): Add cast to SEL for action. | ||
| 151 | (update_frame_tool_bar): Update code for GNUStep. | ||
| 152 | (clearAll): New method. | ||
| 153 | (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag | ||
| 154 | argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP. Move | ||
| 155 | identifierToItem setObject and activeIdentifiers addObject before | ||
| 156 | call to insertItemWithItemIdentifier. | ||
| 157 | (validateVisibleItems): Fix indentation. | ||
| 158 | (toolbarAllowedItemIdentifiers:): Return activeIdentifiers. | ||
| 159 | (initWithContentRect:styleMask:backing:defer:): Add ClosableWindow and | ||
| 160 | UtilityWindow to aStyle, remove call to setStyleMask. | ||
| 161 | |||
| 162 | * nsimage.m (setXBMColor:, getPixelAtX:Y:): Use EmacsCGFloat. | ||
| 163 | |||
| 164 | * nsfont.m (ns_attribute_fvalue, ns_spec_to_descriptor) | ||
| 165 | (ns_charset_covers, ns_get_covering_families, nsfont_open): | ||
| 166 | Use F suffix on floats. | ||
| 167 | (ns_char_width): Returns CGFloat. | ||
| 168 | (ns_ascii_average_width): w is CGFloat instead of float. | ||
| 169 | (nsfont_draw): cbuf and c are unsigned. Cast to char* in call to | ||
| 170 | DPSxshow. | ||
| 171 | (ns_glyph_metrics): CGFloat instead of float. | ||
| 172 | |||
| 173 | * nsfns.m (x_set_foreground_color, x_set_background_color): Use | ||
| 174 | EmacsCGFloat. | ||
| 175 | (ns_implicitly_set_icon_type, Fx_create_frame): Make static, remove | ||
| 176 | unused variables. | ||
| 177 | (Fns_read_file_name): Keep track if panel is for save. Use | ||
| 178 | ns_filename_from_panel/ns_directory_from_panel. | ||
| 179 | (Fns_list_services): delegate only used for COCOA. | ||
| 180 | (Fns_convert_utf8_nfd_to_nfc): Remove warning for GNUStep. Just | ||
| 181 | return the input if GNUStep. | ||
| 182 | (x_screen_planes): Remove. | ||
| 183 | (Fxw_color_values): Use EmacsCGFloat | ||
| 184 | (Fns_display_monitor_attributes_list): Only get screen number for | ||
| 185 | Cocoa. | ||
| 186 | (getDirectory, getFilename): Removed from EmacsOpenPanel and | ||
| 187 | EmacsSavePanel. | ||
| 188 | (EmacsOpenPanel:ok:): Use ns_filename_from_panel and | ||
| 189 | ns_directory_from_panel. | ||
| 190 | |||
| 191 | 2013-06-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 192 | |||
| 193 | * process.c (handle_child_signal): Also use WCONTINUED. | ||
| 194 | This is so that list-processes doesn't mistakenly list the process | ||
| 195 | as stopped, when the process has actually been continued and is | ||
| 196 | now running. | ||
| 197 | |||
| 198 | 2013-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 199 | |||
| 200 | Don't let D-bus autolaunch mess up SIGCHLD handling (Bug#14474). | ||
| 201 | * xterm.c (x_term_init): Inhibit D-Bus autolaunch if D-Bus is | ||
| 202 | not already configured. | ||
| 203 | |||
| 204 | * fileio.c (Finsert_file_contents): Remove unused local (Bug#8447). | ||
| 205 | |||
| 206 | 2013-05-29 Eli Zaretskii <eliz@gnu.org> | ||
| 207 | |||
| 208 | * Makefile.in (mostlyclean): Remove *.res files. | ||
| 209 | |||
| 210 | 2013-05-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 211 | |||
| 212 | * fileio.c (Finsert_file_contents): Preserve undo info when reverting | ||
| 213 | a buffer (bug#8447). | ||
| 214 | |||
| 215 | 2013-05-27 Eli Zaretskii <eliz@gnu.org> | ||
| 216 | |||
| 217 | * xdisp.c (pos_visible_p): When CHARPOS is displayed frrom a | ||
| 218 | display vector, and we backtrack, handle the case that the | ||
| 219 | previous character position is also displayed from a display | ||
| 220 | vector or covered by a display string or image. (Bug#14476) | ||
| 221 | |||
| 222 | 2013-05-25 Jan Djärv <jan.h.d@swipnet.se> | ||
| 223 | |||
| 224 | * xfns.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove. | ||
| 225 | (struct MonitorInfo, free_monitors): Remove. | ||
| 226 | (x_make_monitor_attribute_list): Call make_monitor_attribute_list. | ||
| 227 | (Fx_display_monitor_attributes_list): Call make_monitor_attribute_list. | ||
| 228 | (syms_of_xfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size, | ||
| 229 | Qframes, Qsource. | ||
| 230 | |||
| 231 | * nsfns.m (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove. | ||
| 232 | (struct MonitorInfo, free_monitors): Remove. | ||
| 233 | (ns_screen_name): Make static. | ||
| 234 | (ns_make_monitor_attribute_list): Call make_monitor_attribute_list. | ||
| 235 | (syms_of_nsfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size, | ||
| 236 | Qframes, Qsource. | ||
| 237 | |||
| 238 | * frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare. | ||
| 239 | (struct MonitorInfo): New struct. | ||
| 240 | (free_monitors, make_monitor_attribute_list): Declare. | ||
| 241 | |||
| 242 | * frame.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): | ||
| 243 | New Lisp_Object:s. | ||
| 244 | (free_monitors, make_monitor_attribute_list): New functions. | ||
| 245 | (syms_of_frame): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes, | ||
| 246 | Qsource. | ||
| 247 | |||
| 248 | 2013-05-25 Xue Fuqiao <xfq.free@gmail.com> | ||
| 249 | |||
| 250 | * callproc.c (call_process): Refine the doc string. (Bug#14045) | ||
| 251 | |||
| 252 | 2013-05-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 253 | |||
| 254 | * keyboard.c: Apply keyboard decoding only to events that come directly | ||
| 255 | from the tty, not from unread-command-events (bug#14368). | ||
| 256 | (read_event_from_main_queue): New function, extracted from read_char). | ||
| 257 | (read_decoded_char): Remove. | ||
| 258 | (read_decoded_event_from_main_queue): New function to replace it. | ||
| 259 | (read_char): Use it. | ||
| 260 | (read_key_sequence): Use read_char rather than read_decoded_char. | ||
| 261 | |||
| 262 | * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403). | ||
| 263 | |||
| 264 | 2013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change) | ||
| 265 | |||
| 266 | * casetab.c (init_casetab_once): Fix last change (bug#14424). | ||
| 267 | |||
| 268 | 2013-05-22 Kenichi Handa <handa@gnu.org> | ||
| 269 | |||
| 270 | The following changes are to fix the setting of | ||
| 271 | buffer-file-coding-system on, for instance, C-x RET c unix RET | ||
| 272 | _FILE_OF_DOS_EOL_TYPE_ RET. | ||
| 273 | |||
| 274 | * coding.h (struct coding_system): New member detected_utf8_chars. | ||
| 275 | |||
| 276 | * coding.c (detect_coding_utf_8): Count characters and check EOL | ||
| 277 | format. Include CATEGORY_MASK_UTF_8_AUTO in detect_info->found if | ||
| 278 | BOM is there. | ||
| 279 | (setup_coding_system): Do not initialize coding->head_ascii. | ||
| 280 | (check_ascii): Do not set coding->eol_seen but update it. Do not | ||
| 281 | call adjust_coding_eol_type here. | ||
| 282 | (detect_coding): Fix detection of BOM for utf-8 and utf-16. | ||
| 283 | If the eol-type of CODING is already specified, adjust the eol type | ||
| 284 | of the found coding-system. | ||
| 285 | (decode_coding_gap): Cancel previous change. Utilize the | ||
| 286 | character numbers counted by detect_coding_utf_8. Fix detection | ||
| 287 | of BOM for utf-8. | ||
| 288 | |||
| 289 | 2013-05-21 Barry OReilly <gundaetiapo@gmail.com> (tiny change) | ||
| 290 | |||
| 291 | * search.c (looking_at_1): Only set last_thing_searched if the match | ||
| 292 | changed the match-data (bug#14281). | ||
| 293 | |||
| 294 | 2013-05-21 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 295 | |||
| 296 | * xdisp.c (reseat_at_previous_visible_line_start): | ||
| 297 | Already declared in dispextern.h, so remove it here. | ||
| 298 | (move_it_vertically_backward): Likewise. | ||
| 299 | |||
| 300 | 2013-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 301 | |||
| 302 | * xfns.c (check_x_display_info): Don't use XINT for terminal object. | ||
| 303 | (Fx_display_pixel_width, Fx_display_pixel_height) | ||
| 304 | (Fx_display_mm_width, Fx_display_mm_height): | ||
| 305 | Mention `display-monitor-attributes-list' in docstrings. | ||
| 306 | |||
| 307 | * nsfns.m (ns_get_screen): Remove function. All uses removed. | ||
| 308 | (check_ns_display_info): Sync with check_x_display_info in xfns.c. | ||
| 309 | (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version) | ||
| 310 | (Fx_display_screens, Fx_display_mm_width, Fx_display_mm_height) | ||
| 311 | (Fx_display_backing_store, Fx_display_visual_class) | ||
| 312 | (Fx_display_save_under, Fx_close_connection, Fxw_display_color_p) | ||
| 313 | (Fx_display_grayscale_p, Fx_display_pixel_width) | ||
| 314 | (Fx_display_pixel_height, Fx_display_planes) | ||
| 315 | (Fx_display_color_cells): Sync args and docstrings with xfns.c. | ||
| 316 | (Fx_display_screens): Don't confuse X11 screens with NS screens. | ||
| 317 | (Fx_display_mm_width, Fx_display_mm_height) | ||
| 318 | (Fx_display_pixel_width, Fx_display_pixel_width): Return width or | ||
| 319 | height for all physical monitors as in X11. | ||
| 320 | |||
| 321 | * nsterm.m (x_display_pixel_width, x_display_pixel_height): | ||
| 322 | Return pixel width or height for all physical monitors as in X11. | ||
| 323 | |||
| 324 | 2013-05-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 325 | |||
| 326 | Port --enable-gcc-warnings to clang. | ||
| 327 | * bytecode.c (exec_byte_code): | ||
| 328 | * regex.c: | ||
| 329 | Redo diagnostic pragmas to pacify clang, too. | ||
| 330 | * dbusbind.c (xd_retrieve_arg): Do not use uninitialized variable. | ||
| 331 | * editfns.c (Fencode_time): | ||
| 332 | * fileio.c (file_accessible_directory_p): | ||
| 333 | * font.c (font_unparse_xlfd): | ||
| 334 | Use '&"string"[index]' instead of '"string" + (index)'. | ||
| 335 | * undo.c (user_error): Remove; unused. | ||
| 336 | |||
| 337 | 2013-05-16 Eli Zaretskii <eliz@gnu.org> | ||
| 338 | |||
| 339 | * insdel.c (insert_1_both): Document the arguments, instead of | ||
| 340 | referring to insert_1, which no longer exists. | ||
| 341 | |||
| 342 | * xdisp.c (message_dolog): If the *Messages* buffer is shown in | ||
| 343 | some window, increment windows_or_buffers_changed, so that | ||
| 344 | *Messages* display in that window is updated. (Bug#14408) | ||
| 345 | |||
| 346 | * w32.c: Include epaths.h. | ||
| 347 | (init_environment): Use cmdproxy.exe without leading directories. | ||
| 348 | Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that | ||
| 349 | case. | ||
| 350 | (gettimeofday): Adjust signature and return value to Posix | ||
| 351 | expectations. | ||
| 352 | |||
| 353 | * unexw32.c (open_output_file): Delete the existing emacs.exe | ||
| 354 | before creating it, to break the hard link to the versioned | ||
| 355 | executable. | ||
| 356 | |||
| 357 | * Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK) | ||
| 358 | (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK) | ||
| 359 | (FIRSTFILE_OBJ): New variables. | ||
| 360 | (W32_RES): Rename to EMACSRES. All users changed. | ||
| 361 | (base_obj): Use $(CM_OBJ). | ||
| 362 | (ALLOBJS): Use $(FIRSTFILE_OBJ). | ||
| 363 | (emacs$(EXEEXT)): Depend on $(ADDSECTION). | ||
| 364 | (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move | ||
| 365 | $(W32_RES_LINK) before $(LIBES). | ||
| 366 | (emacs.res): Depend on $(EMACS_MANIFEST). Put emacs.rc in nt. | ||
| 367 | |||
| 368 | 2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 369 | |||
| 370 | * makefile.w32-in (DOC): Use just "DOC". | ||
| 371 | |||
| 372 | * Makefile.in (bootstrap-clean): DOC-* doesn't exist any more. | ||
| 373 | |||
| 374 | * process.c: Export default filters and sentinels to Elisp. | ||
| 375 | (Qinternal_default_process_sentinel, Qinternal_default_process_filter): | ||
| 376 | New constants. | ||
| 377 | (pset_filter, pset_sentinel, make_process, Fset_process_filter) | ||
| 378 | (Fset_process_sentinel, Fformat_network_address): | ||
| 379 | Default to them instead of nil. | ||
| 380 | (server_accept_connection): Sentinels can't be nil any more. | ||
| 381 | (read_and_dispose_of_process_output): New function, extracted from | ||
| 382 | read_process_output. | ||
| 383 | (read_process_output): Use it; filters can't be nil. | ||
| 384 | (Finternal_default_process_filter): New function, extracted from | ||
| 385 | read_process_output. | ||
| 386 | (exec_sentinel_unwind): Remove function. | ||
| 387 | (exec_sentinel): Don't zilch sentinel while running. | ||
| 388 | (status_notify): Sentinels can't be nil. | ||
| 389 | (Finternal_default_process_sentinel): New function extracted from | ||
| 390 | status_notify. | ||
| 391 | (setup_process_coding_systems): Default filter is not nil any more. | ||
| 392 | (syms_of_process): Export new Elisp functions and initialize | ||
| 393 | new constants. | ||
| 394 | * lisp.h (make_lisp_proc): New function. | ||
| 395 | |||
| 396 | 2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 397 | |||
| 398 | * regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart. | ||
| 399 | |||
| 400 | 2013-05-14 Eli Zaretskii <eliz@gnu.org> | ||
| 401 | |||
| 402 | * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT | ||
| 403 | unless we know that the window w is a leaf window. | ||
| 404 | Another attempt at solving bug#14062. | ||
| 405 | |||
| 406 | 2013-05-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 407 | |||
| 408 | * nsfont.m (ns_spec_to_descriptor): Retain and autorelease | ||
| 409 | fdesc (Bug#14375). | ||
| 410 | |||
| 411 | 2013-05-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 412 | |||
| 413 | * image.c (gif_load): Check that subimages fit (Bug#14345). | ||
| 414 | |||
| 415 | 2013-05-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 416 | |||
| 417 | * lread.c (skip_dyn_eof): New function. | ||
| 418 | (read1): Use it to skip the end of a file in response to #@00. | ||
| 419 | |||
| 420 | * doc.c (get_doc_string): Slightly relax the sanity checking. | ||
| 421 | |||
| 422 | 2013-05-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 423 | |||
| 424 | * nsfns.m: Include IOGraphicsLib.h if Cocoa. | ||
| 425 | (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare. | ||
| 426 | (MonitorInfo): New struct. | ||
| 427 | (free_monitors, ns_screen_name, ns_make_monitor_attribute_list) | ||
| 428 | (Fns_display_monitor_attributes_list): New functions. | ||
| 429 | (display-usable-bounds): Remove. | ||
| 430 | (syms_of_nsfns): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes and | ||
| 431 | Qsource. | ||
| 432 | |||
| 433 | 2013-05-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 434 | |||
| 435 | * xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION. | ||
| 436 | (GTK_CHECK_VERSION): New macro, if not already defined. | ||
| 437 | All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc. | ||
| 438 | replaced by GTK_CHECK_VERSION. | ||
| 439 | |||
| 440 | 2013-05-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 441 | |||
| 442 | * xterm.h (GTK_PREREQ): New macro. | ||
| 443 | All simple uses of GTK_MAJOR_VERSION and GTK_MINOR_VERSION changed | ||
| 444 | to use this macro instead, for consistency and clarity. | ||
| 445 | |||
| 446 | 2013-05-08 Eli Zaretskii <eliz@gnu.org> | ||
| 447 | |||
| 448 | * xdisp.c (row_for_charpos_p): New function, with code of | ||
| 449 | cursor_row_p, but accepts an additional argument CHARPOS instead | ||
| 450 | of using a hardcoded PT. | ||
| 451 | (cursor_row_p): Call row_for_charpos_p with 2nd argument PT. | ||
| 452 | (row_containing_pos): Call row_for_charpos_p instead of partially | ||
| 453 | doing the same. Fixes cursor positioning under longlines-mode | ||
| 454 | when longlines-show-effect includes more than one newline, when | ||
| 455 | moving the cursor vertically up. | ||
| 456 | |||
| 457 | 2013-05-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 458 | |||
| 459 | * makefile.w32-in (ACL_H): New macro. | ||
| 460 | ($(BLD)/fileio.$(O)): Update dependencies. | ||
| 461 | |||
| 462 | 2013-05-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 463 | |||
| 464 | Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295) | ||
| 465 | * Makefile.in (LIB_ACL): New macro. | ||
| 466 | (LIBACL_LIBS): Remove. | ||
| 467 | (LIBES): Use LIB_ACL, not LIBACL_LIBS. | ||
| 468 | * fileio.c: Include <acl.h>. | ||
| 469 | Use HAVE_ACL_SET_FILE rather than HAVE_POSIX_ACL. | ||
| 470 | (ACL_NOT_WELL_SUPPORTED): Remove. All uses replaced by | ||
| 471 | !acl_errno_valid. | ||
| 472 | (Fcopy_file) [!WINDOWSNT]: Use qcopy_acl instead of rolling | ||
| 473 | it ourselves. | ||
| 474 | |||
| 475 | * unexelf.c: Don't assume ElfW (Half) fits in int. | ||
| 476 | (entry_address, find_section, unexec): Use ptrdiff_t, not int, | ||
| 477 | when dealing with ElfW (Half) values, since they can exceed 2**31 | ||
| 478 | on 64-bit OpenBSD hosts. Problem reported privately by Han Boetes. | ||
| 479 | (entry_address): Omit unused NUM arg. All uses changed. | ||
| 480 | |||
| 481 | 2013-05-07 Juri Linkov <juri@jurta.org> | ||
| 482 | |||
| 483 | * callint.c (Fcall_interactively): Set `visargs[i]' for code 'n' | ||
| 484 | to the string converted from number with `Fnumber_to_string'. | ||
| 485 | (Bug#14254) | ||
| 486 | |||
| 487 | 2013-05-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 488 | |||
| 489 | * xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4. | ||
| 490 | This fixes a problem introduced by my previous change. | ||
| 491 | |||
| 492 | 2013-05-07 Glenn Morris <rgm@gnu.org> | ||
| 493 | |||
| 494 | * lread.c (readchar): Don't read from a dead buffer. (Bug#14280) | ||
| 495 | |||
| 496 | 2013-05-07 Jan Djärv <jan.h.d@swipnet.se> | ||
| 497 | |||
| 498 | * xfns.c: Move misplaced ifndef USE_GTK from previous checkin. | ||
| 499 | |||
| 500 | 2013-05-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 501 | |||
| 502 | Static checking by GCC 4.8.0. | ||
| 503 | * xfns.c (x_get_net_workarea, struct MonitorInfo, free_monitors) | ||
| 504 | (x_get_monitor_for_frame, x_make_monitor_attribute_list) | ||
| 505 | (x_get_monitor_attributes_fallback) | ||
| 506 | (x_get_monitor_attributes_xinerama) | ||
| 507 | (x_get_monitor_attributes_xrandr, x_get_monitor_attributes): | ||
| 508 | Define only if USE_GTK. | ||
| 509 | (free_monitors): Define only if HAVE_XINERAMA || HAVE_XRANDR. | ||
| 510 | (x_get_monitor_attributes_fallback): Omit unused locals. | ||
| 511 | (x_get_monitor_attributes_xinerama, Fx_display_monitor_attributes_list): | ||
| 512 | Use double, not float, to avoid mixed-mode floating point arithmetic. | ||
| 513 | |||
| 514 | 2013-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 515 | Jan Djärv <jan.h.d@swipnet.se> | ||
| 516 | |||
| 517 | * Makefile.in (XRANDR_LIBS, XRANDR_CFLAGS, XINERAMA_LIBS) | ||
| 518 | (XINERAMA_CFLAGS): New macros. | ||
| 519 | (ALL_CFLAGS, LIBES): Use them. | ||
| 520 | |||
| 521 | * xfns.c: Include <X11/extensions/Xrandr.h> if HAVE_XRANDR, and | ||
| 522 | include <X11/extensions/Xinerama.h> if HAVE_XINERAMA. | ||
| 523 | (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): New variables. | ||
| 524 | (syms_of_xfns): DEFSYM them. | ||
| 525 | (struct MonitorInfo): New struct. | ||
| 526 | (x_get_net_workarea, free_monitors, x_get_monitor_for_frame) | ||
| 527 | (x_make_monitor_attribute_list, x_get_monitor_attributes_fallback) | ||
| 528 | (x_get_monitor_attributes_xrandr, x_get_monitor_attributes) | ||
| 529 | (x_get_monitor_attributes_xinerama): New functions. | ||
| 530 | (Fx_display_monitor_attributes_list): New primitive. | ||
| 531 | (syms_of_xfns): Defsubr it. | ||
| 532 | |||
| 533 | * xterm.h (x_display_info): Add Xatom_net_workarea and | ||
| 534 | Xatom_net_current_desktop. | ||
| 535 | |||
| 536 | * xterm.c (x_term_init): Initialize dpyinfo->Xatom_net_workarea | ||
| 537 | and dpyinfo->Xatom_net_current_desktop. | ||
| 538 | |||
| 539 | 2013-05-06 Eli Zaretskii <eliz@gnu.org> | ||
| 540 | |||
| 541 | * xdisp.c (pos_visible_p): Use the special code for finding the | ||
| 542 | beginning of a display property or overlay for any "replacing" | ||
| 543 | display property, not just for display strings. This solves | ||
| 544 | incorrect reporting of position by posn-at-point. (Bug#14241) | ||
| 545 | |||
| 546 | 2013-05-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 547 | |||
| 548 | * unexelf.c: Fix some 32-bit integer problems, notably when debugging. | ||
| 549 | Include <limits.h>, <stdbool.h>, <intprops.h>, <verify.h>. | ||
| 550 | Verify that ElfW (Half) fits in int. | ||
| 551 | (fatal): Use same signature as lisp.h. | ||
| 552 | (UNEXELF_DEBUG): New macro, replacing DEBUG, so that people can | ||
| 553 | configure and build with -DUNEXELF_DEBUG without worrying about | ||
| 554 | other modules that use DEBUG. | ||
| 555 | (DEBUG_LOG) [UNEXELF_DEBUG]: New macro. All debug code that prints | ||
| 556 | possibly-wide integers now uses it instead of plain fprintf. | ||
| 557 | (entry_address): New function, which avoids problems with 32-bit | ||
| 558 | overflow on 64-bit hosts. | ||
| 559 | (OLD_SECTION_H, NEW_SECTION_H, NEW_PROGRAM_H): Use it. | ||
| 560 | (round_up): Don't assume the remainder fits in int. | ||
| 561 | (find_section): Use bool for boolean. Simplify debug code. | ||
| 562 | (unexec): Don't assume file sizes fit in int or size_t. | ||
| 563 | Omit unnecessary trailing newline in 'fatal' format. | ||
| 564 | Use strerror rather than outputting decimal error number. | ||
| 565 | Remove unused code when emacs is not defined; | ||
| 566 | this file relies on Emacs now. | ||
| 567 | Don't assume e_phnum and e_shnum are positive. | ||
| 568 | |||
| 569 | * regex.c: Fix problems when DEBUG is defined. | ||
| 570 | (extract_number, extract_number_and_incr): Define regardless of | ||
| 571 | whether DEBUG is defined; that's simpler and makes the code less | ||
| 572 | likely to go stale in the normal case when DEBUG is not defined. | ||
| 573 | Return int rather than taking an int * arg. All callers changed. | ||
| 574 | (DEBUG_PRINT1, DEBUG_PRINT2, DEBUG_PRINT3, DEBUG_PRINT4): | ||
| 575 | Remove, replacing with ... | ||
| 576 | (DEBUG_PRINT): New macro. All callers changed. | ||
| 577 | (DEBUG_COMPILES_ARGUMENTS): New macro. | ||
| 578 | (print_fastmap, print_partial_compiled_pattern) [DEBUG]: | ||
| 579 | (print_compiled_pattern, print_double_string) [DEBUG]: | ||
| 580 | Use prototype rather than old-style definition. | ||
| 581 | (print_partial_compiled_pattern, print_compiled_pattern) [DEBUG]: | ||
| 582 | (ENSURE_FAIL_STACK, PUSH_FAILURE_REG) [DEBUG]: | ||
| 583 | (POP_FAILURE_REG_OR_COUNT, PUSH_FAILURE_POINT) [DEBUG]: | ||
| 584 | (POP_FAILURE_POINT, re_match_2_internal) [DEBUG]: | ||
| 585 | Don't assume ptrdiff_t, size_t, and long are the same width as int. | ||
| 586 | (POINTER_TO_OFFSET): Return ptrdiff_t, not regoff_t. | ||
| 587 | This matters only when DEBUG is defined. | ||
| 588 | |||
| 589 | 2013-05-05 Eli Zaretskii <eliz@gnu.org> | ||
| 590 | |||
| 591 | * xdisp.c (set_iterator_to_next): Set the | ||
| 592 | ignore_overlay_strings_at_pos_p flag only if we are _really_ | ||
| 593 | iterating over an overlay string, as indicated by the | ||
| 594 | current.overlay_string_index member. (Bug#14306) | ||
| 595 | |||
| 596 | 2013-05-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 597 | |||
| 598 | * nsmenu.m (ns_update_menubar): Move initialization of submenuTitle | ||
| 599 | to where it is used, to avoid autorelease issues (Bug#14050). | ||
| 600 | |||
| 601 | 2013-05-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 602 | |||
| 603 | `write-region-inhibit-fsync' defaults to noninteractive (Bug#14273). | ||
| 604 | * fileio.c (syms_of_fileio): Implement this. | ||
| 605 | * filelock.c (create_lock_file): If symbolic links don't work, so | ||
| 606 | we use a regular file as a lock file, do not fsync the lock file; | ||
| 607 | it's not needed. | ||
| 608 | |||
| 609 | 2013-05-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 610 | |||
| 611 | * minibuf.c (Fread_minibuffer, Feval_minibuffer): Move to Elisp. | ||
| 612 | (syms_of_minibuf): Adjust accodingly. | ||
| 613 | * lread.c (Fread): | ||
| 614 | * callint.c (Fcall_interactively): Adjust calls accordingly. | ||
| 615 | |||
| 616 | 2013-05-04 Eli Zaretskii <eliz@gnu.org> | ||
| 617 | |||
| 618 | * dispextern.h (WINDOW_WANTS_HEADER_LINE_P): Verify that | ||
| 619 | w->contents is a buffer before computing everything else. | ||
| 620 | Use parentheses to disambiguate last part of the condition. | ||
| 621 | |||
| 622 | * w32fns.c (w32_wnd_proc): Remove temporary code used to trap | ||
| 623 | assertion violations. (Bug#14062) | ||
| 624 | |||
| 625 | 2013-05-01 David Reitter <david.reitter@gmail.com> | ||
| 626 | |||
| 627 | * nsfns.m (ns_tooltip): Initialize. | ||
| 628 | |||
| 629 | 2013-04-28 Eli Zaretskii <eliz@gnu.org> | ||
| 630 | |||
| 631 | * coding.c (decode_coding_gap): Don't remove the character before | ||
| 632 | a newline unless it's a CR character. (Bug#14287) | ||
| 633 | |||
| 634 | 2013-04-28 Dan Nicolaescu <dann@gnu.org> | ||
| 635 | |||
| 636 | * dispextern.h (struct face): Move enum face_underline_type | ||
| 637 | earlier so that bitfields can be in the same word. | ||
| 638 | |||
| 639 | 2013-04-28 Jan Djärv <jan.h.d@swipnet.se> | ||
| 640 | |||
| 641 | * nsfns.m (handlePanelKeys): New function. | ||
| 642 | (EmacsOpenPanel:performKeyEquivalent:) | ||
| 643 | (EmacsSavePanel:performKeyEquivalent:): Call handlePanelKeys to handle | ||
| 644 | arrows/function/control and copy/paste keys (Bug#14296). | ||
| 645 | |||
| 646 | 2013-04-27 Juri Linkov <juri@jurta.org> | ||
| 647 | |||
| 648 | * callint.c (Fcall_interactively): Call `Qread_number' for | ||
| 649 | interactive code letter `n' instead of using duplicate code. | ||
| 650 | (Bug#14254) | ||
| 651 | |||
| 652 | 2013-04-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 653 | |||
| 654 | * systime.h (make_timeval): Declare as 'const'. | ||
| 655 | |||
| 656 | 2013-04-27 Kenichi Handa <handa@gnu.org> | ||
| 657 | |||
| 658 | * font.c (font_open_entity): Always open a font of manageable | ||
| 659 | size. | ||
| 660 | |||
| 661 | 2013-04-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 662 | |||
| 663 | Port better to AIX (Bug#14258). | ||
| 664 | * lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too, | ||
| 665 | to pacify AIX xlc. | ||
| 666 | |||
| 667 | 2013-04-24 Kenichi Handa <handa@gnu.org> | ||
| 668 | |||
| 669 | * coding.c (decode_coding_iso_2022): When an invalid escape | ||
| 670 | sequence is encountered, reset the invocation and designation | ||
| 671 | status to the safest one. | ||
| 672 | |||
| 673 | 2013-04-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 674 | |||
| 675 | * Makefile.in (bootstrap-clean): Remove stamp-h1 too. | ||
| 676 | Without this fix, "make distclean" leaves stamp-h1 behind. | ||
| 677 | |||
| 678 | 2013-04-20 Erik Charlebois <erikcharlebois@gmail.com> | ||
| 679 | |||
| 680 | * w32fns.c (w32_fullscreen_rect): New function to compute the | ||
| 681 | window rectangle for the given fullscreen mode. | ||
| 682 | (w32_wnd_proc): When in a fullscreen mode, WM_WINDOWPOSCHANGING no | ||
| 683 | longer tunes the window size. This keeps the window's edges flush | ||
| 684 | with the screen and allows the taskbar to hide itself in fullboth. | ||
| 685 | |||
| 686 | * w32term.c (w32fullscreen_hook): 'fullboth' now shows without | ||
| 687 | window decorations and uses the entire screen. | ||
| 688 | |||
| 689 | * w32term.h (w32_fullscreen_rect) Add prototype. | ||
| 690 | (struct w32_output): Replace normal_width, normal_height, | ||
| 691 | normal_top, and normal_left members with a single normal_placement | ||
| 692 | struct. | ||
| 693 | (FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP): | ||
| 694 | Remove macros. | ||
| 695 | (FRAME_NORMAL_PLACEMENT): New macro. | ||
| 696 | |||
| 697 | 2013-04-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 698 | |||
| 699 | * minibuf.c (Ftest_completion): Silence compiler warning. | ||
| 700 | |||
| 701 | 2013-04-15 Eli Zaretskii <eliz@gnu.org> | ||
| 702 | |||
| 703 | * w32fns.c (w32_wnd_proc): Add more assertions to investigate | ||
| 704 | bug#14062. | ||
| 705 | |||
| 706 | * frame.h (WINDOW_FRAME): Protect macro and its argument with | ||
| 707 | parentheses. | ||
| 708 | |||
| 709 | * dispextern.h (CURRENT_MODE_LINE_HEIGHT) | ||
| 710 | (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P) | ||
| 711 | (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with | ||
| 712 | parentheses where appropriate. | ||
| 713 | |||
| 714 | 2013-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 715 | |||
| 716 | * keyboard.c (timer_start_idle): Remove no-longer-used local. | ||
| 717 | |||
| 718 | 2013-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 719 | |||
| 720 | * buffer.c (syms_of_buffer) <left-margin-width, right-margin-width> | ||
| 721 | <left-fringe-width, right-fringe-width, fringes-outside-margins>: | ||
| 722 | Mention in the doc string that setting these variables takes | ||
| 723 | effect only after a call to set-window-buffer. (Bug#14200) | ||
| 724 | |||
| 725 | 2013-04-13 Eli Zaretskii <eliz@gnu.org> | ||
| 726 | |||
| 727 | * indent.c (Fvertical_motion): Don't consider display strings on | ||
| 728 | overlay strings as display strings on the buffer position we | ||
| 729 | started from. This prevents vertical cursor motion from jumping | ||
| 730 | more than one line when there's an overlay string with a display | ||
| 731 | property at end of line. | ||
| 732 | Reported by Karl Chen <Karl.Chen@quarl.org> in | ||
| 733 | http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00362.html. | ||
| 734 | |||
| 735 | 2013-04-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 736 | |||
| 737 | * window.c (select_window): `record_buffer' even if window is | ||
| 738 | already selected (bug#14191). | ||
| 739 | |||
| 740 | 2013-04-11 Eli Zaretskii <eliz@gnu.org> | ||
| 741 | |||
| 742 | * window.c (Fwindow_end): Test more flags, including the buffer's | ||
| 743 | last_overlay_modified flag, to determine whether the window's | ||
| 744 | display is really up-to-date. Prevents the function from | ||
| 745 | returning a stale value. (Bug#14170) | ||
| 746 | (Fwindow_line_height): Fix the test for up-to-date-ness of the | ||
| 747 | current matrix. | ||
| 748 | |||
| 749 | 2013-04-10 Eli Zaretskii <eliz@gnu.org> | ||
| 750 | |||
| 751 | * frame.c (do_switch_frame): Mark the TTY frame we switch to as | ||
| 752 | garbaged only if it is not already the top frame on its TTY. | ||
| 753 | This prevents flickering due to constant redrawing of TTY frames when | ||
| 754 | there are GUI frames open in the same session. (Bug#13864) | ||
| 755 | |||
| 756 | 2013-04-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 757 | |||
| 758 | * keyboard.c (timer_start_idle): Call internal-timer-start-idle instead | ||
| 759 | of marking the idle timers directly. | ||
| 760 | |||
| 761 | 2013-04-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 762 | |||
| 763 | * minibuf.c (Ftest_completion): Ignore non-string/symbol keys in hash | ||
| 764 | tables (bug#14054). | ||
| 765 | |||
| 766 | 2013-04-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 767 | |||
| 768 | * window.c (select_window): Don't record_buffer while the invariant is | ||
| 769 | temporarily broken (bug#14161). | ||
| 770 | |||
| 771 | * fns.c (Fdelq): Don't assume !NILP => CONSP. | ||
| 772 | |||
| 773 | 2013-04-07 Eli Zaretskii <eliz@gnu.org> | ||
| 774 | |||
| 775 | * fileio.c (ACL_NOT_WELL_SUPPORTED): Define macro for WINDOWSNT. | ||
| 776 | |||
| 777 | 2013-04-07 Romain Francoise <romain@orebokech.com> | ||
| 778 | |||
| 779 | Ignore additional platform-specific ACL errors (Bug#13702). | ||
| 780 | * fileio.c (ACL_NOT_WELL_SUPPORTED): New macro copied from gnulib. | ||
| 781 | (Fcopy_file, Fset_file_acl) [HAVE_POSIX_ACL]: Use it. | ||
| 782 | |||
| 783 | 2013-03-31 Jan Djärv <jan.h.d@swipnet.se> | ||
| 784 | |||
| 785 | * nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking | ||
| 786 | f->output_data.ns. | ||
| 787 | |||
| 788 | 2013-04-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 789 | |||
| 790 | Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783). | ||
| 791 | This bug was introduced by my 2013-02-25 change that simplified | ||
| 792 | data_start configuration. Without this change, on GNU/Linux | ||
| 793 | an Emacs configured with --enable-profiling fails immediately | ||
| 794 | due to a profiler signal. | ||
| 795 | * Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link | ||
| 796 | with these flags. On platforms where special flags are needed | ||
| 797 | when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS. | ||
| 798 | (ALL_CFLAGS): Remove $(PROFILING_CFLAGS). | ||
| 799 | (.c.o, .m.o): Compile with $(PROFILING_CFLAGS). | ||
| 800 | |||
| 801 | 2013-04-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 802 | |||
| 803 | Get rid of some platform-specific functions examining window | ||
| 804 | system and its capabilities. This is a partial rework of the | ||
| 805 | 2013-04-05 change. | ||
| 806 | * lisp.h (have_menus_p): Remove prototype. This function is | ||
| 807 | replaced with platform-independent window_system_available. | ||
| 808 | (check_window_system): Move to... | ||
| 809 | * frame.h (decode_window_system_frame, window_system_available): | ||
| 810 | ...here, add new prototypes. | ||
| 811 | * frame.c (window_system_available, decode_window_system_frame): | ||
| 812 | New functions. | ||
| 813 | (check_window_system): Platform-independent now. | ||
| 814 | * xterm.h (x_in_use): Remove declaration. | ||
| 815 | (check_x_frame): | ||
| 816 | * w32term.h (check_x_frame): | ||
| 817 | * nsterm.h (check_x_frame): Remove prototypes. This function | ||
| 818 | is replaced with platform-independent decode_window_system_frame. | ||
| 819 | * msdos.c (have_menus_p): Remove. | ||
| 820 | * nsfns.m (check_window_system, have_menus_p, check_ns_frame): | ||
| 821 | Remove platform-specific functions. Use check_window_system, | ||
| 822 | decode_window_system_frame and check_ns_display_info where | ||
| 823 | appropriate. Minor style and comment tweaks. | ||
| 824 | * w32fns.c (w32_in_use, check_window_system, have_menus_p) | ||
| 825 | (check_x_frame): Likewise. | ||
| 826 | * xfns.c (x_in_use, check_window_system, have_menus_p, check_x_frame): | ||
| 827 | Likewise. | ||
| 828 | * fileio.c, fns.c, font.c, fontset.c, image.c, menu.c, nsmenu.m: | ||
| 829 | * nsselect.m, nsterm.m, w32font.c, w32menu.c, xfaces.c, xgselect.c: | ||
| 830 | * xmenu.c, xselect.c: All related users changed. | ||
| 831 | |||
| 832 | 2013-04-03 Kenichi Handa <handa@gnu.org> | ||
| 833 | |||
| 834 | The following changes is to optimize the code for reading UTF-8 | ||
| 835 | files. | ||
| 836 | |||
| 837 | * coding.c (check_ascii): Rename from detect_ascii. Return value | ||
| 838 | changed. Check EOL format. Do not call adjust_coding_eol_type | ||
| 839 | here. | ||
| 840 | (check_utf_8): New function. | ||
| 841 | (adjust_coding_eol_type): Do nothing if already adjusted. | ||
| 842 | (detect_coding): Compare the return value of check_ascii with | ||
| 843 | coding->src_bytes. Call adjust_coding_eol_type if necessary. | ||
| 844 | (decode_coding_gap): Optimize for valid UTF-8. | ||
| 845 | |||
| 846 | 2013-03-21 Kenichi Handa <handa@gnu.org> | ||
| 847 | |||
| 848 | * coding.c (syms_of_coding): Cancel previous change. | ||
| 849 | |||
| 850 | * insdel.c (insert_from_gap): Fix previous change. | ||
| 851 | |||
| 852 | 2013-04-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 853 | |||
| 854 | Consistently use platform-specific function to detect window system. | ||
| 855 | * lisp.h (check_window_system): New prototype. This function is | ||
| 856 | going to replace check_x, check_w32 and check_ns. | ||
| 857 | (have_menus_p): Mention msdos.c in comment. | ||
| 858 | * fontset.c (check_window_system_func): Remove. Adjust all users. | ||
| 859 | * fontset.h (check_window_system_func): Remove prototype. | ||
| 860 | * nsterm.h (check_ns): | ||
| 861 | * xterm.h (check_x): | ||
| 862 | * w32term.h (check_w32): Likewise. | ||
| 863 | * menu.c (Fx_popup_menu): Use check_window_system. | ||
| 864 | * msdos.c (check_window_system): Define for MS-DOS. | ||
| 865 | * nsfns.m (check_window_system): Define for NS. Adjust all users. | ||
| 866 | * w32fns.c (check_window_system): Likewise for MS-Windows. | ||
| 867 | * xfns.c (check_window_system): Likewise for X. | ||
| 868 | * font.c, frame.c, nsmenu.m, nsselect.m, nsterm.m, w32menu.c: | ||
| 869 | * xfaces.c, xmenu.c: Use check_window_system where appropriate. | ||
| 870 | |||
| 871 | 2013-04-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 872 | |||
| 873 | Prefer < to > in range checks such as 0 <= i && i < N. | ||
| 874 | This makes it easier to visualize quantities on a number line. | ||
| 875 | This patch doesn't apply to all such range checks, | ||
| 876 | only to the range checks affected by the 2013-03-24 change. | ||
| 877 | This patch reverts most of the 2013-03-24 change. | ||
| 878 | * alloc.c (xpalloc, Fgarbage_collect): | ||
| 879 | * ccl.c (ccl_driver, resolve_symbol_ccl_program): | ||
| 880 | * character.c (string_escape_byte8): | ||
| 881 | * charset.c (read_hex): | ||
| 882 | * data.c (cons_to_unsigned): | ||
| 883 | * dispnew.c (update_frame_1): | ||
| 884 | * doc.c (Fsubstitute_command_keys): | ||
| 885 | * doprnt.c (doprnt): | ||
| 886 | * editfns.c (hi_time, decode_time_components): | ||
| 887 | * fileio.c (file_offset): | ||
| 888 | * fns.c (larger_vector, make_hash_table, Fmake_hash_table): | ||
| 889 | * font.c (font_intern_prop): | ||
| 890 | * frame.c (x_set_alpha): | ||
| 891 | * gtkutil.c (get_utf8_string): | ||
| 892 | * indent.c (check_display_width): | ||
| 893 | * keymap.c (Fkey_description): | ||
| 894 | * lisp.h (FIXNUM_OVERFLOW_P, vcopy): | ||
| 895 | * lread.c (read1): | ||
| 896 | * minibuf.c (read_minibuf_noninteractive): | ||
| 897 | * process.c (wait_reading_process_output): | ||
| 898 | * search.c (Freplace_match): | ||
| 899 | * window.c (get_phys_cursor_glyph): | ||
| 900 | * xdisp.c (redisplay_internal): | ||
| 901 | * xsmfns.c (smc_save_yourself_CB): | ||
| 902 | Prefer < to > for range checks. | ||
| 903 | * dispnew.c (sit_for): Don't mishandle NaNs. | ||
| 904 | This fixes a bug introduced in the 2013-03-24 change. | ||
| 905 | * editfns.c (decode_time_components): Don't hoist comparison. | ||
| 906 | This fixes another bug introduced in the 2013-03-24 change. | ||
| 907 | |||
| 908 | 2013-03-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 909 | |||
| 910 | * frame.h (struct frame): Drop scroll_bottom_vpos | ||
| 911 | member becaue all real users are dead long ago. | ||
| 912 | (FRAME_SCROLL_BOTTOM_VPOS): Remove. | ||
| 913 | * xdisp.c (redisplay_internal): Adjust user. | ||
| 914 | |||
| 915 | 2013-03-30 Darren Ho <darren.hoo@gmail.com> (tiny change) | ||
| 916 | |||
| 917 | * nsmenu.m (showAtX:Y:for:): setLevel to | ||
| 918 | NSPopUpMenuWindowLevel (Bug#13998). | ||
| 919 | |||
| 920 | 2013-03-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 921 | |||
| 922 | * nsterm.h (ns_get_pending_menu_title, ns_check_menu_open) | ||
| 923 | (ns_check_pending_open_menu): Declare. | ||
| 924 | |||
| 925 | * nsmenu.m (ns_update_menubar): Correct NSTRACE. | ||
| 926 | (x_activate_menubar): Update the menu with title that matches | ||
| 927 | ns_get_pending_menu_title, and call | ||
| 928 | ns_check_pending_openmenu (Bug#12698). | ||
| 929 | (menuWillOpen:): New method. | ||
| 930 | (menuNeedsUpdate:): Add check for ! COCOA || OSX < 10.5 (Bug#12698). | ||
| 931 | |||
| 932 | * nsterm.m (menu_will_open_state, menu_mouse_point) | ||
| 933 | (menu_pending_title): New varaibles. | ||
| 934 | (ns_get_pending_menu_title, ns_check_menu_open) | ||
| 935 | (ns_check_pending_open_menu): New functions. | ||
| 936 | |||
| 937 | 2013-03-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 938 | |||
| 939 | * indent.c (current_column_bol_cache): Remove leftover which is not | ||
| 940 | used in Fmove_to_column any more. | ||
| 941 | (current_column, scan_for_column): Adjust users. | ||
| 942 | * keyboard.c (last_point_position_buffer, last_point_position_window): | ||
| 943 | Remove leftovers which are not used for recording undo any more. | ||
| 944 | (command_loop_1, syms_of_keyboard): Adjust users. | ||
| 945 | * xdisp.c (last_max_ascent): Remove leftover which is not used in | ||
| 946 | redisplay_window any more. | ||
| 947 | (move_it_to): Adjust user. | ||
| 948 | |||
| 949 | 2013-03-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 950 | |||
| 951 | * makefile.w32-in ($(BLD)/filelock.$(O), $(BLD)/filelock.$(O)): | ||
| 952 | Update dependencies. | ||
| 953 | |||
| 954 | 2013-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 955 | |||
| 956 | * lisp.h (save_type, XSAVE_POINTER, set_save_pointer, XSAVE_INTEGER) | ||
| 957 | (set_save_integer, XSAVE_OBJECT, XSAVE_VALUE): Move to avoid | ||
| 958 | forward references. | ||
| 959 | |||
| 960 | 2013-03-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 961 | |||
| 962 | * window.h (struct window): Replace hchild, vchild and buffer slots | ||
| 963 | with the only contents slot. This is possible because each valid | ||
| 964 | window may have either the child window (in vertical or horizontal | ||
| 965 | combination) or buffer to display (for the leaf window). Using that, | ||
| 966 | a lof of operations to traverse and/or change window hierarchies may | ||
| 967 | be simplified. New member horizontal is used to distinguish between | ||
| 968 | horizontal and vertical combinations of internal windows. | ||
| 969 | (WINDOW_LEAF_P, WINDOW_HORIZONTAL_COMBINATION_P) | ||
| 970 | (WINDOW_VERTICAL_COMBINATION_P): New macros. | ||
| 971 | (WINDOW_VALID_P, WINDOW_LIVE_P): Adjust to match struct window changes. | ||
| 972 | * window.c (wset_hchild, wset_vchild): Remove. Adjust all users. | ||
| 973 | Use contents slot, not buffer, where appropriate. | ||
| 974 | (wset_combination): New function. | ||
| 975 | (wset_buffer): Add eassert. | ||
| 976 | (Fframe_first_window): Simplify the loop reaching first window. | ||
| 977 | (Fwindow_buffer): Use WINDOW_LEAF_P. | ||
| 978 | (Fwindow_top_child): Use WINDOW_VERTICAL_COMBINATION_P. | ||
| 979 | (Fwindow_left_child): Use WINDOW_HORIZONTAL_COMBINATION_P. | ||
| 980 | (unshow_buffer): Convert initial debugging check to eassert. | ||
| 981 | (replace_window, recombine_windows, Fdelete_other_windows_internal) | ||
| 982 | (make_parent_window, window_resize_check, window_resize_apply) | ||
| 983 | (resize_frame_windows, Fsplit_window_internal, Fdelete_window_internal) | ||
| 984 | (Fset_window_configuration, delete_all_child_windows, save_window_save): | ||
| 985 | Adjust to match struct window changes. | ||
| 986 | (window_loop): Check for broken markers in CHECK_ALL_WINDOWS. | ||
| 987 | (mark_window_cursors_off, count_windows, get_leaf_windows) | ||
| 988 | (foreach_window_1): Simplify the loop. | ||
| 989 | * alloc.c (mark_object): Do not check for the leaf window because | ||
| 990 | internal windows has no glyph matrices anyway. | ||
| 991 | * dispnew.c (clear_window_matrices, showing_window_margins_p) | ||
| 992 | (allocate_matrices_for_window_redisplay, fake_current_matrices) | ||
| 993 | (allocate_matrices_for_frame_redisplay, free_window_matrices) | ||
| 994 | (build_frame_matrix_from_window_tree, mirror_make_current) | ||
| 995 | (frame_row_to_window, mirror_line_dance, check_window_matrix_pointers) | ||
| 996 | (update_window_tree, set_window_update_flags): Simplify the loop. | ||
| 997 | (sync_window_with_frame_matrix_rows): Enforce live window. | ||
| 998 | Use contents slot, not buffer, where appropriate. | ||
| 999 | * frame.c (set_menu_bar_lines_1): Use WINDOW_VERTICAL_COMBINATION_P | ||
| 1000 | and WINDOW_HORIZONTAL_COMBINATION_P. | ||
| 1001 | (make_frame_visible_1): Simplify the loop. | ||
| 1002 | Use contents slot, not buffer, where appropriate. | ||
| 1003 | * xdisp.c (hscroll_window_tree, mark_window_display_accurate) | ||
| 1004 | (redisplay_windows, redisplay_mode_lines, update_cursor_in_window_tree) | ||
| 1005 | (expose_window_tree): Likewise. | ||
| 1006 | Use contents slot, not buffer, where appropriate. | ||
| 1007 | * textprop.c (get_char_property_and_overlay): Add CHECK_LIVE_WINDOW | ||
| 1008 | to avoid deleted windows. Use contents slot instead of buffer. | ||
| 1009 | * buffer.c, dispextern.h, editfns.c, fileio.c, font.c, fringe.c: | ||
| 1010 | * indent.c, insdel.c, keyboard.c, keymap.c, minibuf.c, msdos.c: | ||
| 1011 | * nsfns.m, nsmenu.m, nsterm.m, print.c, w32fns.c, w32menu.c, xfaces.c: | ||
| 1012 | * xfns.c, xmenu.c: Use contents slot, not buffer, where appropriate. | ||
| 1013 | |||
| 1014 | 2013-03-28 Eli Zaretskii <eliz@gnu.org> | ||
| 1015 | |||
| 1016 | * w32fns.c (w32_wnd_proc) [ENABLE_CHECKING]: Add code to help | ||
| 1017 | identify the reasons for assertion violations in bug#14062 and | ||
| 1018 | similar ones. | ||
| 1019 | (Fx_show_tip): Fix compilation error under | ||
| 1020 | "--enable-check-lisp-object-type". (Bug#14073) | ||
| 1021 | |||
| 1022 | * image.c (g_error_free) [WINDOWSNT]: Add DEF_IMGLIB_FN. | ||
| 1023 | Reported by <rzl24ozi@gmail.com>. | ||
| 1024 | |||
| 1025 | 2013-03-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1026 | |||
| 1027 | * xdisp.c (with_echo_area_buffer_unwind_data): Save window | ||
| 1028 | start marker... | ||
| 1029 | (unwind_with_echo_area_buffer): ...to restore it here. | ||
| 1030 | This is needed to ensure that... | ||
| 1031 | (redisplay_window): ...both window markers are valid here, | ||
| 1032 | which is verified by eassert. | ||
| 1033 | * editfns.c (save_excursion_save): Do not assume that | ||
| 1034 | selected_window always displays the buffer. | ||
| 1035 | * buffer.c (Fbuffer_swap_text): Adjust window start markers. | ||
| 1036 | Fix comment. | ||
| 1037 | |||
| 1038 | 2013-03-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 1039 | |||
| 1040 | * casetab.c (init_casetab_once): Don't abuse the ascii eqv table for | ||
| 1041 | the upcase table. | ||
| 1042 | |||
| 1043 | 2013-03-27 rzl24ozi <rzl24ozi@gmail.com> (tiny changes) | ||
| 1044 | |||
| 1045 | * image.c [WINDOWSNT]: Fix calls to DEF_IMGLIB_FN for SVG function. | ||
| 1046 | |||
| 1047 | 2013-03-27 Eli Zaretskii <eliz@gnu.org> | ||
| 1048 | |||
| 1049 | * w32proc.c (IsValidLocale) [__GNUC__]: Don't declare prototype, | ||
| 1050 | since MinGW's w32api headers do. This avoids compiler warnings. | ||
| 1051 | |||
| 1052 | * w32.c (FSCTL_GET_REPARSE_POINT) [_MSC_VER || _W64]: Don't define | ||
| 1053 | if already defined. | ||
| 1054 | |||
| 1055 | 2013-03-26 Eli Zaretskii <eliz@gnu.org> | ||
| 1056 | |||
| 1057 | * w32.c (_REPARSE_DATA_BUFFER): Condition by _MSVC and _W64. | ||
| 1058 | |||
| 1059 | 2013-03-26 Jan Djärv <jan.h.d@swipnet.se> | ||
| 1060 | |||
| 1061 | * gtkutil.c (style_changed_cb): Check if frame is live and an | ||
| 1062 | X frame (Bug#14038). | ||
| 1063 | |||
| 1064 | 2013-03-26 Eli Zaretskii <eliz@gnu.org> | ||
| 1065 | |||
| 1066 | * w32.c (_PROCESS_MEMORY_COUNTERS_EX) [_WIN32_WINNT < 0x0500]: | ||
| 1067 | Define only for _WIN32_WINNT less than 0x0500. | ||
| 1068 | (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT) [!_W64]: Don't define for | ||
| 1069 | MinGW64. | ||
| 1070 | Move inclusion of time.h before sys/time.h, so that MinGW64 could | ||
| 1071 | see its own definitions of 'struct timeval' and 'struct timezone'. | ||
| 1072 | |||
| 1073 | Fix incompatibilities between MinGW.org and MinGW64 headers. | ||
| 1074 | * w32term.c (WCRANGE, GLYPHSET): Don't define if _W64 is defined. | ||
| 1075 | |||
| 1076 | * w32.c (REPARSE_DATA_BUFFER): Guard with | ||
| 1077 | MAXIMUM_REPARSE_DATA_BUFFER_SIZE being defined. | ||
| 1078 | |||
| 1079 | 2013-03-25 Jan Djärv <jan.h.d@swipnet.se> | ||
| 1080 | |||
| 1081 | * xterm.c: Include X11/XKBlib.h | ||
| 1082 | (XTring_bell): Use XkbBell if HAVE_XKB (Bug#14041). | ||
| 1083 | |||
| 1084 | 2013-03-24 Andreas Schwab <schwab@linux-m68k.org> | ||
| 1085 | |||
| 1086 | * alloc.c (xpalloc, Fgarbage_collect): Reorder conditions that are | ||
| 1087 | written backwards. | ||
| 1088 | * blockinput.h (input_blocked_p): Likewise. | ||
| 1089 | * bytecode.c (exec_byte_code): Likewise. | ||
| 1090 | * callproc.c (call_process_kill, call_process_cleanup) | ||
| 1091 | (Fcall_process): Likewise. | ||
| 1092 | * ccl.c (ccl_driver, resolve_symbol_ccl_program) | ||
| 1093 | (Fccl_execute_on_string): Likewise. | ||
| 1094 | * character.c (string_escape_byte8): Likewise. | ||
| 1095 | * charset.c (read_hex): Likewise. | ||
| 1096 | * cm.c (calccost): Likewise. | ||
| 1097 | * data.c (cons_to_unsigned): Likewise. | ||
| 1098 | * dired.c (directory_files_internal, file_name_completion): | ||
| 1099 | Likewise. | ||
| 1100 | * dispnew.c (scrolling_window, update_frame_1, Fsleep_for) | ||
| 1101 | (sit_for): Likewise. | ||
| 1102 | * doc.c (Fsubstitute_command_keys): Likewise. | ||
| 1103 | * doprnt.c (doprnt): Likewise. | ||
| 1104 | * editfns.c (hi_time, decode_time_components, Fformat): Likewise. | ||
| 1105 | * emacsgtkfixed.c: Likewise. | ||
| 1106 | * fileio.c (file_offset, Fwrite_region): Likewise. | ||
| 1107 | * floatfns.c (Fexpt, fmod_float): Likewise. | ||
| 1108 | * fns.c (larger_vector, make_hash_table, Fmake_hash_table): | ||
| 1109 | Likewise. | ||
| 1110 | * font.c (font_intern_prop): Likewise. | ||
| 1111 | * frame.c (x_set_alpha): Likewise. | ||
| 1112 | * gtkutil.c (get_utf8_string): Likewise. | ||
| 1113 | * indent.c (check_display_width): Likewise. | ||
| 1114 | * intervals.c (create_root_interval, rotate_right, rotate_left) | ||
| 1115 | (split_interval_right, split_interval_left) | ||
| 1116 | (adjust_intervals_for_insertion, delete_node) | ||
| 1117 | (interval_deletion_adjustment, adjust_intervals_for_deletion) | ||
| 1118 | (merge_interval_right, merge_interval_left, copy_intervals) | ||
| 1119 | (set_intervals_multibyte_1): Likewise. | ||
| 1120 | * keyboard.c (gobble_input, append_tool_bar_item): Likewise. | ||
| 1121 | * keymap.c (Fkey_description): Likewise. | ||
| 1122 | * lisp.h (FIXNUM_OVERFLOW_P, vcopy): Likewise. | ||
| 1123 | * lread.c (openp, read_integer, read1, string_to_number): | ||
| 1124 | Likewise. | ||
| 1125 | * menu.c (ensure_menu_items): Likewise. | ||
| 1126 | * minibuf.c (read_minibuf_noninteractive): Likewise. | ||
| 1127 | * print.c (printchar, strout): Likewise. | ||
| 1128 | * process.c (create_process, Faccept_process_output) | ||
| 1129 | (wait_reading_process_output, read_process_output, send_process) | ||
| 1130 | (wait_reading_process_output): Likewise. | ||
| 1131 | * profiler.c (make_log, handle_profiler_signal): Likewise. | ||
| 1132 | * regex.c (re_exec): Likewise. | ||
| 1133 | * regex.h: Likewise. | ||
| 1134 | * search.c (looking_at_1, Freplace_match): Likewise. | ||
| 1135 | * sysdep.c (get_child_status, procfs_ttyname) | ||
| 1136 | (procfs_get_total_memory): Likewise. | ||
| 1137 | * systime.h (EMACS_TIME_VALID_P): Likewise. | ||
| 1138 | * term.c (dissociate_if_controlling_tty): Likewise. | ||
| 1139 | * window.c (get_phys_cursor_glyph): Likewise. | ||
| 1140 | * xdisp.c (init_iterator, redisplay_internal, redisplay_window) | ||
| 1141 | (try_window_reusing_current_matrix, try_window_id, pint2hrstr): | ||
| 1142 | Likewise. | ||
| 1143 | * xfns.c (Fx_window_property): Likewise. | ||
| 1144 | * xmenu.c (set_frame_menubar): Likewise. | ||
| 1145 | * xselect.c (x_get_window_property, x_handle_dnd_message): | ||
| 1146 | Likewise. | ||
| 1147 | * xsmfns.c (smc_save_yourself_CB): Likewise. | ||
| 1148 | * xterm.c (x_scroll_bar_set_handle): Likewise. | ||
| 1149 | |||
| 1150 | 2013-03-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1151 | |||
| 1152 | * xfaces.c (Finternal_face_x_get_resource): Allow 3rd (frame) argument | ||
| 1153 | to be optional or nil. Adjust comment and convert it to docstring. | ||
| 1154 | * xselect.c (Fx_send_client_event): Rename to Fx_send_client_message. | ||
| 1155 | * frame.c (display_x_get_resource, Fx_get_resource): Break long line. | ||
| 1156 | |||
| 1157 | 2013-03-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1158 | |||
| 1159 | Static checking by GCC 4.8-20130319. | ||
| 1160 | * image.c (gif_load): Assume pass < 3 to pacify GCC. | ||
| 1161 | * process.c (Fset_process_datagram_address) | ||
| 1162 | (Fmake_network_process): Check get_lisp_to_sockaddr_size return value. | ||
| 1163 | * xdisp.c (get_char_face_and_encoding): | ||
| 1164 | (get_glyph_face_and_encoding): Ensure that *CHAR2B is initialized. | ||
| 1165 | (get_glyph_face_and_encoding): Prepare face before possibly using it. | ||
| 1166 | (get_per_char_metric): Don't use CHAR2B if it might not be initialized. | ||
| 1167 | |||
| 1168 | 2013-03-24 Ken Brown <kbrown@cornell.edu> | ||
| 1169 | |||
| 1170 | * w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro to | ||
| 1171 | fix compilation on 64-bit Cygwin, where underscores are not | ||
| 1172 | automatically prepended. | ||
| 1173 | |||
| 1174 | * w32term.c (w32_initialize): Silence compiler warning. | ||
| 1175 | |||
| 1176 | 2013-03-23 Eli Zaretskii <eliz@gnu.org> | ||
| 1177 | |||
| 1178 | * w32term.c (w32fullscreen_hook): Use FRAME_NORMAL_WIDTH, | ||
| 1179 | FRAME_NORMAL_HEIGHT, and FRAME_PREV_FSMODE, instead of static | ||
| 1180 | variables, to save and restore frame dimensions. | ||
| 1181 | Use FRAME_NORMAL_LEFT and FRAME_NORMAL_TOP to restore frame position | ||
| 1182 | after returning from a 'fullscreen' configuration. | ||
| 1183 | use SendMessage instead of PostMessage to send the SC_RESTORE message, | ||
| 1184 | to avoid races between the main thread and the input thread. | ||
| 1185 | |||
| 1186 | * w32term.h (struct w32_output): New members normal_width, | ||
| 1187 | normal_height, normal_top, normal_left, and prev_fsmode. | ||
| 1188 | (FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP) | ||
| 1189 | (FRAME_NORMAL_LEFT, FRAME_PREV_FSMODE): New macros to access these | ||
| 1190 | members of a frame. | ||
| 1191 | |||
| 1192 | * w32term.c (w32fullscreen_hook): Record last value of the frame's | ||
| 1193 | 'fullscreen' parameter. Always record previous width and height | ||
| 1194 | of the frame, except when switching out of maximized modes, so | ||
| 1195 | that they could be restored correctly, instead of resetting to the | ||
| 1196 | default frame dimensions. Send SC_RESTORE command to the frame, | ||
| 1197 | unless we are going to send SC_MAXIMIZE, to restore the frame | ||
| 1198 | resize hints in the mouse pointer shown by the window manager. | ||
| 1199 | (Bug#14032) | ||
| 1200 | |||
| 1201 | * frame.c (get_frame_param): Now extern for WINDOWSNT as well. | ||
| 1202 | |||
| 1203 | * lisp.h (get_frame_param): Adjust conditions for prototype | ||
| 1204 | declaration. | ||
| 1205 | |||
| 1206 | 2013-03-22 Ken Brown <kbrown@cornell.edu> | ||
| 1207 | |||
| 1208 | * unexcw.c: Drop unneeded inclusion of w32common.h. | ||
| 1209 | (report_sheap_usage): Declare. | ||
| 1210 | (read_exe_header): Add magic numbers for x86_64. | ||
| 1211 | (fixup_executable): Fix printf format specifier for unsigned long | ||
| 1212 | argument. | ||
| 1213 | |||
| 1214 | 2013-03-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1215 | |||
| 1216 | * frame.h (struct frame): Put menu_bar_window under #ifdef | ||
| 1217 | because this member is not needed when X toolkit is in use. | ||
| 1218 | (fset_menu_bar_window): | ||
| 1219 | * dispnew.c (clear_current_matrices, clear_desired_matrices) | ||
| 1220 | (free_glyphs, update_frame): | ||
| 1221 | * xdisp.c (expose_frame): Likewise. | ||
| 1222 | (display_menu_bar): Likewise. Remove redundant eassert. | ||
| 1223 | * window.h (WINDOW_MENU_BAR_P): Always define to 0 if X | ||
| 1224 | toolkit is in use. | ||
| 1225 | |||
| 1226 | 2013-03-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1227 | |||
| 1228 | Use functions and constants to manipulate Lisp_Save_Value objects. | ||
| 1229 | This replaces code that used macros and strings and token-pasting. | ||
| 1230 | The change makes the C source a bit easier to follow, | ||
| 1231 | and shrinks the Emacs executable a bit. | ||
| 1232 | * alloc.c: Verify some properties of Lisp_Save_Value's representation. | ||
| 1233 | (make_save_value): Change 1st arg from string to enum. All callers | ||
| 1234 | changed. | ||
| 1235 | (INTX): Remove. | ||
| 1236 | (mark_object): Use if, not #if, for GC_MARK_STACK. | ||
| 1237 | * lisp.h (SAVE_VALUEP, XSAVE_VALUE, XSAVE_POINTER, XSAVE_INTEGER) | ||
| 1238 | (XSAVE_OBJECT): Now functions, not macros. | ||
| 1239 | (STRING_BYTES_BOUND): Now just a macro, not a constant too; | ||
| 1240 | the constant was never used. | ||
| 1241 | (SAVE_SLOT_BITS, SAVE_VALUE_SLOTS, SAVE_TYPE_BITS, SAVE_TYPE_INT_INT) | ||
| 1242 | (SAVE_TYPE_INT_INT_INT, SAVE_TYPE_OBJ_OBJ, SAVE_TYPE_OBJ_OBJ_OBJ) | ||
| 1243 | (SAVE_TYPE_OBJ_OBJ_OBJ_OBJ, SAVE_TYPE_PTR_INT, SAVE_TYPE_PTR_OBJ) | ||
| 1244 | (SAVE_TYPE_PTR_PTR, SAVE_TYPE_PTR_PTR_OBJ, SAVE_TYPE_MEMORY): | ||
| 1245 | New constants. | ||
| 1246 | (struct Lisp_Save_Value): Replace members area, type0, type1, type2, | ||
| 1247 | type3 with a single member save_type. All uses changed. | ||
| 1248 | (save_type, set_save_pointer, set_save_integer): New functions. | ||
| 1249 | * print.c (PRINTX): Remove. | ||
| 1250 | |||
| 1251 | * alloc.c: Remove redundant static declarations. | ||
| 1252 | |||
| 1253 | 2013-03-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1254 | |||
| 1255 | * window.h (struct window): Convert left_col, top_line, total_lines | ||
| 1256 | and total_cols from Lisp_Objects to integers. Adjust comments. | ||
| 1257 | (wset_left_col, wset_top_line, wset_total_cols, wset_total_lines): | ||
| 1258 | Remove. | ||
| 1259 | (WINDOW_TOTAL_COLS, WINDOW_TOTAL_LINES, WINDOW_LEFT_EDGE_COL) | ||
| 1260 | (WINDOW_TOP_EDGE_LINE): Drop Lisp_Object to integer conversion. | ||
| 1261 | * dispnew.c, frame.c, w32fns.c, window.c, xdisp.c, xfns.c: | ||
| 1262 | Adjust users where appropriate. | ||
| 1263 | |||
| 1264 | 2013-03-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1265 | |||
| 1266 | * frame.h (struct frame): Drop resx and resy because the same data is | ||
| 1267 | available from window system-specific output context. Adjust users. | ||
| 1268 | (default_pixels_per_inch_x, default_pixels_per_inch_y): | ||
| 1269 | New functions to provide defaults when no window system available. | ||
| 1270 | (FRAME_RES_X, FRAME_RES_Y): New macros. | ||
| 1271 | (NUMVAL): Move from xdisp.c. | ||
| 1272 | * font.c (font_pixel_size, font_find_for_lface, font_open_for_lface) | ||
| 1273 | (Ffont_face_attributes, Fopen_font): | ||
| 1274 | * image.c (gs_load): | ||
| 1275 | * w32font.c (fill_in_logfont): | ||
| 1276 | * xdisp.c (calc_pixel_width_or_height): | ||
| 1277 | * xfaces.c (Fx_family_fonts, set_lface_from_font): Use them. | ||
| 1278 | * xsettings.c (apply_xft_settings): Drop frame loop and adjust comment. | ||
| 1279 | |||
| 1280 | 2013-03-20 Kenichi Handa <handa@gnu.org> | ||
| 1281 | |||
| 1282 | * coding.c (syms_of_coding): Initialize disable_ascii_optimization | ||
| 1283 | to 1 (temporary workaround until a bug related to ASCII | ||
| 1284 | optimization is fixed). | ||
| 1285 | |||
| 1286 | 2013-03-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1287 | |||
| 1288 | * window.c (Fwindow_combination_limit, Fset_window_combination_limit): | ||
| 1289 | Signal error if window is not internal. Adjust docstring. | ||
| 1290 | (delete_all_child_windows): Use combination_limit to save the buffer. | ||
| 1291 | (Fset_window_configuration): Adjust accordingly. | ||
| 1292 | * print.c (syms_of_print): Initialize debugging output not here... | ||
| 1293 | (init_print_once): ...but in a new function here. | ||
| 1294 | * lisp.h (init_print_once): Add prototype. | ||
| 1295 | * emacs.c (main): Add call to init_print_once. Adjust comments. | ||
| 1296 | |||
| 1297 | 2013-03-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1298 | |||
| 1299 | * window.c (window_resize_check, window_resize_apply) | ||
| 1300 | (window_from_coordinates, recombine_windows, set_window_buffer) | ||
| 1301 | (make_parent_window, Fwindow_resize_apply, resize_frame_windows) | ||
| 1302 | (Fsplit_window_internal, Fdelete_window_internal) | ||
| 1303 | (freeze_window_starts): Use bool for booleans. | ||
| 1304 | * window.h (window_frame_coordinates, resize_frame_windows) | ||
| 1305 | (freeze_window_starts, set_window_buffer): Adjust prototypes. | ||
| 1306 | |||
| 1307 | 2013-03-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 1308 | |||
| 1309 | * dispnew.c (bitch_at_user): Use `user-error'. | ||
| 1310 | |||
| 1311 | 2013-03-17 Ken Brown <kbrown@cornell.edu> | ||
| 1312 | |||
| 1313 | * dispextern.h (RGB_PIXEL_COLOR): Move here from image.c. Use it | ||
| 1314 | as return type of image_background. (Bug#13981) | ||
| 1315 | * image.c (RGB_PIXEL_COLOR): Move to dispextern.h. | ||
| 1316 | |||
| 1 | 2013-03-16 Jan Djärv <jan.h.d@swipnet.se> | 1317 | 2013-03-16 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 1318 | ||
| 3 | * nsterm.m (updateFrameSize:): Change resize increments if needed. | 1319 | * nsterm.m (updateFrameSize:): Change resize increments if needed. |
| @@ -6,8 +1322,8 @@ | |||
| 6 | * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename | 1322 | * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename |
| 7 | and getDirectory. | 1323 | and getDirectory. |
| 8 | 1324 | ||
| 9 | * nsfns.m (ns_filename_from_panel, ns_directory_from_panel): New | 1325 | * nsfns.m (ns_filename_from_panel, ns_directory_from_panel): |
| 10 | functions. | 1326 | New functions. |
| 11 | (Fns_read_file_name): ret is BOOL. If ! dir_only_p, don't choose | 1327 | (Fns_read_file_name): ret is BOOL. If ! dir_only_p, don't choose |
| 12 | directories. If filename is nil, get directory name (Bug#13932). | 1328 | directories. If filename is nil, get directory name (Bug#13932). |
| 13 | Use getFilename and getDirectory. | 1329 | Use getFilename and getDirectory. |
| @@ -19,7 +1335,7 @@ | |||
| 19 | 1335 | ||
| 20 | * coding.c (decode_coding_gap): Fix typo caught by static checking. | 1336 | * coding.c (decode_coding_gap): Fix typo caught by static checking. |
| 21 | 1337 | ||
| 22 | 2013-03-15 handa <handa@gnu.org> | 1338 | 2013-03-15 Kenichi Handa <handa@gnu.org> |
| 23 | 1339 | ||
| 24 | * insdel.c (insert_from_gap): New arg text_at_gap_tail. | 1340 | * insdel.c (insert_from_gap): New arg text_at_gap_tail. |
| 25 | (adjust_after_replace): Make it back to static. Delete the third | 1341 | (adjust_after_replace): Make it back to static. Delete the third |
| @@ -40,10 +1356,6 @@ | |||
| 40 | (syms_of_coding): Declare disable-ascii-optimization as a Lisp | 1356 | (syms_of_coding): Declare disable-ascii-optimization as a Lisp |
| 41 | variable. | 1357 | variable. |
| 42 | 1358 | ||
| 43 | * global.h (struct emacs_globals): New member | ||
| 44 | f_disable_ascii_optimization. | ||
| 45 | (disable_ascii_optimization): New macro. | ||
| 46 | |||
| 47 | * lisp.h (adjust_after_replace): Cancel externing it. | 1359 | * lisp.h (adjust_after_replace): Cancel externing it. |
| 48 | (insert_from_gap): Adjust prototype. | 1360 | (insert_from_gap): Adjust prototype. |
| 49 | 1361 | ||
| @@ -645,7 +1957,7 @@ | |||
| 645 | (Fcommand_execute): Remove, replace by an Elisp implementation. | 1957 | (Fcommand_execute): Remove, replace by an Elisp implementation. |
| 646 | (syms_of_keyboard): Adjust accordingly. | 1958 | (syms_of_keyboard): Adjust accordingly. |
| 647 | 1959 | ||
| 648 | 2013-02-19 Daniel Colascione <dancol@dancol.org> | 1960 | 2013-02-19 Daniel Colascione <dancol@dancol.org> |
| 649 | 1961 | ||
| 650 | * sheap.c (report_sheap_usage): Use message, not message1, so | 1962 | * sheap.c (report_sheap_usage): Use message, not message1, so |
| 651 | that we don't try to create a buffer while we're in the middle | 1963 | that we don't try to create a buffer while we're in the middle |
| @@ -2431,7 +3743,7 @@ | |||
| 2431 | Use xputenv instead of setenv or putenv, to detect memory exhaustion. | 3743 | Use xputenv instead of setenv or putenv, to detect memory exhaustion. |
| 2432 | * editfns.c (initial_tz): Move static var decl up. | 3744 | * editfns.c (initial_tz): Move static var decl up. |
| 2433 | (tzvalbuf_in_environ): New static var. | 3745 | (tzvalbuf_in_environ): New static var. |
| 2434 | (init_editfns): Initialize these two static vars. | 3746 | (init_editfns): Initialize these two static vars. |
| 2435 | (Fencode_time): Don't assume arbitrary limit on EMACS_INT width. | 3747 | (Fencode_time): Don't assume arbitrary limit on EMACS_INT width. |
| 2436 | Save old TZ value on stack, if it's small. | 3748 | Save old TZ value on stack, if it's small. |
| 2437 | (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly; | 3749 | (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly; |
| @@ -2710,7 +4022,7 @@ | |||
| 2710 | Use execve to avoid need to munge environ (Bug#13054). | 4022 | Use execve to avoid need to munge environ (Bug#13054). |
| 2711 | * callproc.c (Fcall_process): | 4023 | * callproc.c (Fcall_process): |
| 2712 | * process.c (create_process): | 4024 | * process.c (create_process): |
| 2713 | Don't save and restore environ; no longer needed. | 4025 | Don't save and restore environ; no longer needed. |
| 2714 | * callproc.c (child_setup): | 4026 | * callproc.c (child_setup): |
| 2715 | Use execve, not execvp, to preserve environ. | 4027 | Use execve, not execvp, to preserve environ. |
| 2716 | 4028 | ||
| @@ -5110,8 +6422,8 @@ | |||
| 5110 | a public macro and no need to inline by hand. | 6422 | a public macro and no need to inline by hand. |
| 5111 | 6423 | ||
| 5112 | 2012-09-26 Tomohiro Matsuyama <tomo@cx4a.org> | 6424 | 2012-09-26 Tomohiro Matsuyama <tomo@cx4a.org> |
| 5113 | Stefan Monnier <monnier@iro.umontreal.ca> | 6425 | Stefan Monnier <monnier@iro.umontreal.ca> |
| 5114 | Juanma Barranquero <lekktu@gmail.com> | 6426 | Juanma Barranquero <lekktu@gmail.com> |
| 5115 | 6427 | ||
| 5116 | * profiler.c: New file. | 6428 | * profiler.c: New file. |
| 5117 | * Makefile.in (base_obj): Add profiler.o. | 6429 | * Makefile.in (base_obj): Add profiler.o. |
| @@ -11469,9 +12781,9 @@ | |||
| 11469 | to denote vector blocks. Adjust users (live_vector_p, | 12781 | to denote vector blocks. Adjust users (live_vector_p, |
| 11470 | mark_maybe_pointer, valid_lisp_object_p) accordingly. | 12782 | mark_maybe_pointer, valid_lisp_object_p) accordingly. |
| 11471 | (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG. | 12783 | (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG. |
| 11472 | (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES), | 12784 | (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES) |
| 11473 | (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX), | 12785 | (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX) |
| 11474 | (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST), | 12786 | (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST) |
| 11475 | (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros. | 12787 | (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros. |
| 11476 | (roundup_size): New constant. | 12788 | (roundup_size): New constant. |
| 11477 | (struct vector_block): New data type. | 12789 | (struct vector_block): New data type. |