diff options
| author | Tom Tromey | 2013-07-06 23:18:58 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-07-06 23:18:58 -0600 |
| commit | 6dacdad5fcb278e5a16b38bb81786aac9ca27be4 (patch) | |
| tree | f5f331ea361ba0f99e0f9b638d183ad492a7da31 /src/ChangeLog | |
| parent | 0a6f2ff0c8ceb29703e76cddd46ea3f176dd873a (diff) | |
| parent | 219afb88d9d484393418820d1c08dc93299110ec (diff) | |
| download | emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.tar.gz emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.zip | |
merge from trunk
this merges frmo trunk and fixes various build issues.
this needed a few ugly tweaks.
this hangs in "make check" now
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 23674 |
1 files changed, 748 insertions, 22926 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d6e669612f..b95488c1e70 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,748 @@ | |||
| 1 | 2013-07-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG. | ||
| 4 | |||
| 5 | * nsterm.h (NSSavePanel): Update comment. | ||
| 6 | (NSAPP_DATA2_RUNFILEDIALOG): Define. | ||
| 7 | (ns_run_file_dialog): Declare. | ||
| 8 | |||
| 9 | * nsfns.m: Remove panelOK. | ||
| 10 | (ns_fd_data): New. | ||
| 11 | (ns_run_file_dialog): New function. | ||
| 12 | (Fns_read_file_name): Fill in ns_fd_data, post an event and start the | ||
| 13 | event loop, so file dialog is popped up by ns_run_file_dialog, called | ||
| 14 | by sendEvent (Bug#14578). | ||
| 15 | (EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods. | ||
| 16 | |||
| 17 | 2013-07-06 Eli Zaretskii <eliz@gnu.org> | ||
| 18 | |||
| 19 | * xdisp.c (default_line_pixel_height): New function. | ||
| 20 | (pos_visible_p, move_it_vertically_backward, try_scrolling) | ||
| 21 | (try_cursor_movement, redisplay_window, try_window) | ||
| 22 | (try_window_id): Use it instead of FRAME_LINE_HEIGHT. (Bug#14771) | ||
| 23 | |||
| 24 | * window.c (window_scroll_pixel_based): use | ||
| 25 | default_line_pixel_height. | ||
| 26 | |||
| 27 | * dispextern.h (default_line_pixel_height): Add prototype. | ||
| 28 | |||
| 29 | * frame.c (x_set_line_spacing): Accept a float value for | ||
| 30 | line-spacing parameter, per the documentation. | ||
| 31 | |||
| 32 | * data.c (Fmultibyte_string_p): Doc fix. | ||
| 33 | |||
| 34 | 2013-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 35 | |||
| 36 | Use emacs_open more consistently when opening files. | ||
| 37 | This handles EINTR more consistently now, and makes it easier | ||
| 38 | to introduce other uniform changes to file descriptor handling. | ||
| 39 | * src/systdio.h: New file. | ||
| 40 | * src/buffer.c (mmap_init): | ||
| 41 | * cygw32.c (chdir_to_default_directory): | ||
| 42 | * dispnew.c (Fopen_termscript): | ||
| 43 | * emacs.c (Fdaemon_initialized): | ||
| 44 | * fileio.c (Fdo_auto_save): | ||
| 45 | * image.c (slurp_file, png_load_body, jpeg_load_body): | ||
| 46 | * keyboard.c (Fopen_dribble_file): | ||
| 47 | * lread.c (Fload): | ||
| 48 | * print.c (Fredirect_debugging_output): | ||
| 49 | * sysdep.c (get_up_time, procfs_ttyname, procfs_get_total_memory): | ||
| 50 | * termcap.c (tgetent): | ||
| 51 | * unexaix.c, unexcoff.c (unexec, adjust_lnnoptrs): | ||
| 52 | * unexcw.c, unexelf.c, unexhp9k800.c, unexmacosx.c (unexec): | ||
| 53 | * w32term.c (w32_initialize) [CYGWIN]: | ||
| 54 | * xfaces.c (Fx_load_color_file): | ||
| 55 | Use emacs_open instead of plain open, and emacs_fopen instead of | ||
| 56 | plain fopen. | ||
| 57 | * dispnew.c, fileio.c, image.c, keyboard.c, lread.c, print.c, sysdep.c: | ||
| 58 | * xfaces.c: Include sysstdio.h rather than stdio.h, for emacs_fopen. | ||
| 59 | * callproc.c (default_output_mode): New constant. | ||
| 60 | (Fcall_process): Use it to call emacs_open instead of plain creat. | ||
| 61 | * dispnew.c (Fopen_termscript): Fix minor race in opening termscript. | ||
| 62 | * sysdep.c (emacs_open): Add commentary and don't call file name "path". | ||
| 63 | (emacs_fopen): New function. | ||
| 64 | * unexaix.c, unexcoff.c, unexelf.c, unexhp9k800.c, unexmacosx.c: | ||
| 65 | Include <lisp.h>, for emacs_open. | ||
| 66 | * unexelf.c (fatal): Remove decl; not needed with <lisp.h> included. | ||
| 67 | |||
| 68 | Remove duplicate #include directives. | ||
| 69 | * alloc.c [GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES]: | ||
| 70 | * xfaces.c: | ||
| 71 | Don't include stdio.h twice. | ||
| 72 | * buffer.c [USE_MMAP_FOR_BUFFERS]: | ||
| 73 | Don't include sys/types.h or stdio.h twice. | ||
| 74 | * fileio.c [WINDOWSNT | MSDOS]: Don't include fcntl.h twice. | ||
| 75 | * lread.c: Don't include coding.h twice. | ||
| 76 | * nsfont.m: Don't include frame.h twice. | ||
| 77 | * process.c [HAVE_RES_INIT]: Don't include <netinet/in.h> twice. | ||
| 78 | * ralloc.c: Don't include <unistd.h> twice. | ||
| 79 | * xdisp.c: Don't include font.h twice. | ||
| 80 | * xterm.c: Don't include fontset.h twice. | ||
| 81 | * xterm.h [USE_X_TOOLKIT]: Don't include X11/StringDefs.h twice. | ||
| 82 | |||
| 83 | 2013-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 84 | |||
| 85 | Scale ImageMagick images more carefully. | ||
| 86 | * image.c (scale_image_size) [HAVE_IMAGEMAGICK]: New function. | ||
| 87 | (compute_image_size): Use it. Define only if HAVE_IMAGEMAGICK. | ||
| 88 | Be more careful about avoiding undefined behavior after | ||
| 89 | integer overflow and division by zero. | ||
| 90 | |||
| 91 | 2013-07-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 92 | |||
| 93 | * w32fns.c (Qgeometry, Qworkarea, Qmm_size, Qframes): New variables. | ||
| 94 | (syms_of_w32fns): DEFSYM them. | ||
| 95 | (MONITORINFOF_PRIMARY, SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN) | ||
| 96 | (CCHDEVICENAME): Define macros if not defined. | ||
| 97 | (struct MONITOR_INFO_EX): New struct. | ||
| 98 | (MonitorEnum_Proc, EnumDisplayMonitors_Proc): New prototypes. | ||
| 99 | (enum_display_monitors_fn): New variable. | ||
| 100 | (globals_of_w32fns): Initialize it. | ||
| 101 | (Fx_display_pixel_width, Fx_display_pixel_height) | ||
| 102 | (Fx_display_mm_height, Fx_display_mm_width): Mention behavior on | ||
| 103 | multi-monitor setups in docstrings. | ||
| 104 | (Fx_display_mm_height, Fx_display_mm_width): Approximate whole | ||
| 105 | screen size by primary monitor's millimeter per pixel. | ||
| 106 | (w32_monitor_enum, w32_display_monitor_attributes_list) | ||
| 107 | (w32_display_monitor_attributes_list_fallback) | ||
| 108 | (Fw32_display_monitor_attributes_list): New functions. | ||
| 109 | (syms_of_w32fns): Defsubr Sw32_display_monitor_attributes_list. | ||
| 110 | |||
| 111 | * w32term.c (SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN): Define macros | ||
| 112 | if not defined. | ||
| 113 | (x_display_pixel_height, x_display_pixel_width): Use GetSystemMetrics. | ||
| 114 | |||
| 115 | 2013-07-04 Michael Albinus <michael.albinus@gmx.de> | ||
| 116 | |||
| 117 | * fileio.c (Qfile_notify_error): New error symbol. | ||
| 118 | |||
| 119 | * gfilenotify.c (Fgfile_add_watch, Fgfile_rm_watch): | ||
| 120 | * inotify.c (inotify_callback, symbol_to_inotifymask) | ||
| 121 | (Finotify_add_watch, Finotify_rm_watch): Use it. | ||
| 122 | (inotifyevent_to_event): Exchange order of cookie and file name. | ||
| 123 | (Finotify_add_watch): Adapt docstring. | ||
| 124 | |||
| 125 | * lisp.h (Qfile_notify_error): Declare. | ||
| 126 | |||
| 127 | 2013-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 128 | |||
| 129 | Try again to fix FreeBSD bug re multithreaded memory alloc (Bug#14569). | ||
| 130 | * emacs.c (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | ||
| 131 | Do not clear _malloc_thread_enabled_p, undoing the previous change, | ||
| 132 | which did not work (see <http://bugs.gnu.org/14569#307>). | ||
| 133 | (main): Do not invoke malloc_enable_thread if (! CANNOT_DUMP | ||
| 134 | && (!noninteractive || initialized)). This attempts to thread | ||
| 135 | the needle between the Scylla of FreeBSD and the Charybdis of Cygwin. | ||
| 136 | |||
| 137 | 2013-07-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 138 | |||
| 139 | * image.c (x_to_xcolors) [HAVE_NTGUI]: Remove unused var `hdc'. | ||
| 140 | (x_build_heuristic_mask) [HAVE_NTGUI]: Remove unused var `frame_dc'. | ||
| 141 | |||
| 142 | 2013-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 143 | |||
| 144 | Try to fix FreeBSD bug re multithreaded memory allocation (Bug#14569). | ||
| 145 | * emacs.c (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | ||
| 146 | Clear _malloc_thread_enabled_p at startup. Reported by Ashish SHUKLA in | ||
| 147 | <http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00088.html>. | ||
| 148 | |||
| 149 | 2013-07-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 150 | |||
| 151 | * sysdep.c (sys_siglist) [HAVE_DECL___SYS_SIGLIST]: | ||
| 152 | Define to __sys_siglist. | ||
| 153 | |||
| 154 | 2013-07-02 Eli Zaretskii <eliz@gnu.org> | ||
| 155 | |||
| 156 | * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Don't disallow | ||
| 157 | word-wrap, so that overflow-newline-into-fringe would work in | ||
| 158 | visual-line-mode. (Bug#2749) | ||
| 159 | (move_it_in_display_line_to): When the last scanned display | ||
| 160 | element fits exactly on the display line, and | ||
| 161 | overflow-newline-into-fringe is non-nil, but wrap_it is valid, | ||
| 162 | don't return MOVE_NEWLINE_OR_CR, but instead back up to the last | ||
| 163 | wrap point and return MOVE_LINE_CONTINUED. Fixes problems with | ||
| 164 | finding buffer position that corresponds to pixel coordinates, | ||
| 165 | e.g. in buffer_posn_from_coords. | ||
| 166 | |||
| 167 | 2013-07-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 168 | |||
| 169 | * process.c (handle_child_signal): Call catch_child_signal if | ||
| 170 | NS_IMPL_GNUSTEP. | ||
| 171 | |||
| 172 | 2013-07-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 173 | |||
| 174 | Don't convert function pointers to void * and back. | ||
| 175 | It isn't portable C, and it's easy enough to avoid. | ||
| 176 | * alloc.c: Verify SAVE_FUNCPOINTER bits, too. | ||
| 177 | (make_save_value): Add support for SAVE_FUNCPOINTER. | ||
| 178 | * keymap.c (map_keymap_char_table_item, map_keymap_internal): | ||
| 179 | * print.c (print_object): | ||
| 180 | Distinguish function from object pointers. | ||
| 181 | * lisp.h (SAVE_FUNCPOINTER): New constant. | ||
| 182 | (SAVE_SLOT_BITS): Adjust to it. | ||
| 183 | (SAVE_TYPE_FUNCPTR_PTR_OBJ): New constant, replacing | ||
| 184 | SAVE_TYPE_PTR_PTR_OBJ. Change the only use. | ||
| 185 | (voidfuncptr): New typedef. | ||
| 186 | (struct Lisp_Save_Value): New member data[0].funcpointer. | ||
| 187 | (XSAVE_FUNCPOINTER): New function. | ||
| 188 | |||
| 189 | Simplify buildobj processing. | ||
| 190 | * Makefile.in (buildobj.h): Make it a sequence of strings each | ||
| 191 | followed by comma, rather than a single string. Put it into a | ||
| 192 | .tmp file in case there's an error while generating it. | ||
| 193 | (gl-stamp): Use .tmp for temp files. | ||
| 194 | (mostlyclean): Clean .tmp files. | ||
| 195 | * doc.c (buildobj): Move to just the routine that needs it. | ||
| 196 | It's now an array of strings, so processing is simpler. | ||
| 197 | |||
| 198 | 2013-07-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 199 | |||
| 200 | Fix bug re noninteractive multithreaded memory allocation (Bug#14569). | ||
| 201 | * emacs.c (malloc_enable_thread): Hoist extern decl to top level. | ||
| 202 | (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | ||
| 203 | Invoke malloc_enable_thread even when not interactive. | ||
| 204 | Problem reported by Ken Brown in <http://bugs.gnu.org/14569#275>. | ||
| 205 | * process.c (init_process_emacs) [CYGWIN]: Tickle glib even | ||
| 206 | in this case, since the underlying bug has now been fixed. | ||
| 207 | |||
| 208 | 2013-07-01 Juanma Barranquero <lekktu@gmail.com> | ||
| 209 | |||
| 210 | * emacs.c (Fkill_emacs): Expand Vauto_save_list_file_name before | ||
| 211 | unlinking it (bug#14691). | ||
| 212 | |||
| 213 | 2013-06-30 Michal Nazarewicz <mina86@mina86.com> | ||
| 214 | |||
| 215 | * buffer.c (FKill_buffer): Run `kill-buffer-query-functions' | ||
| 216 | before checking whether buffer is modified. This lets | ||
| 217 | `kill-buffer-query-functions' cancel killing of the buffer or save | ||
| 218 | its content before `kill-buffer' asks user the "Buffer %s | ||
| 219 | modified; kill anyway?" question. | ||
| 220 | |||
| 221 | 2013-06-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 222 | |||
| 223 | * nsfns.m (handlePanelKeys): Don't process Command+Function keys. | ||
| 224 | Let the super performKeyEquivalent deal with them (Bug#14747). | ||
| 225 | |||
| 226 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 227 | |||
| 228 | * widget.c (resize_cb): Remove unused local. | ||
| 229 | |||
| 230 | Do not use GTK 3 if it exists but cannot be compiled. | ||
| 231 | * xmenu.c (x_menu_wait_for_event) [!USE_GTK]: | ||
| 232 | * xterm.c (x_error_handler) [!USE_GTK]: | ||
| 233 | Do not use GTK 3. | ||
| 234 | |||
| 235 | * intervals.c (get_local_map): Actually clip POSITION (Bug#14753). | ||
| 236 | |||
| 237 | 2013-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 238 | |||
| 239 | * intervals.c (get_local_map): Instead of aborting, clip POSITION | ||
| 240 | to the valid range of values. (Bug#14753) | ||
| 241 | |||
| 242 | * xdisp.c (Fmove_point_visually): Invalidate the cursor position | ||
| 243 | when moving point by using the current glyph matrix. This avoids | ||
| 244 | the need to force redisplay when this function is called in a | ||
| 245 | loop. | ||
| 246 | |||
| 247 | 2013-06-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 248 | |||
| 249 | Fix minor problems found by static checking. | ||
| 250 | * coding.c (encode_inhibit_flag, inhibit_flag): New functions. | ||
| 251 | Redo the latter's body to sidestep GCC parenthesization warnings. | ||
| 252 | (setup_coding_system, detect_coding, detect_coding_system): Use them. | ||
| 253 | * coding.c (detect_coding, detect_coding_system): | ||
| 254 | * coding.h (struct undecided_spec): | ||
| 255 | Use bool for boolean. | ||
| 256 | * image.c (QCmax_width, QCmax_height): Now static. | ||
| 257 | * xdisp.c (Fmove_point_visually): Remove unused local. | ||
| 258 | |||
| 259 | 2013-06-29 Eli Zaretskii <eliz@gnu.org> | ||
| 260 | |||
| 261 | * xdisp.c (Fmove_point_visually): New function. | ||
| 262 | |||
| 263 | 2013-06-28 Kenichi Handa <handa@gnu.org> | ||
| 264 | |||
| 265 | * coding.h (define_coding_undecided_arg_index): New enum. | ||
| 266 | (coding_attr_index): New members | ||
| 267 | coding_attr_undecided_inhibit_null_byte_detection, | ||
| 268 | coding_attr_undecided_inhibit_iso_escape_detection, | ||
| 269 | coding_attr_undecided_prefer_utf_8. | ||
| 270 | (undecided_spec): New struct. | ||
| 271 | (struct coding_system): New member `undecided' of the member | ||
| 272 | `spec'. | ||
| 273 | |||
| 274 | * coding.c (setup_coding_system): Handle CODING->spec.undecided. | ||
| 275 | (detect_coding): Likewise. | ||
| 276 | (detect_coding_system): Likewise. | ||
| 277 | (Fdefine_coding_system_internal): New coding system properties | ||
| 278 | :inhibit-null-byte-detection, :inhibit-iso-escape-detection, and | ||
| 279 | :prefer-utf-8. | ||
| 280 | (syms_of_coding): Adjust for coding_arg_undecided_max. | ||
| 281 | |||
| 282 | 2013-06-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 283 | |||
| 284 | * image.c (x_from_xcolors): Remove unused local. | ||
| 285 | |||
| 286 | 2013-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 287 | |||
| 288 | Defer image data transfer between X client and server until actual | ||
| 289 | display happens. | ||
| 290 | |||
| 291 | * dispextern.h (struct image) [HAVE_X_WINDOWS]: New members `ximg' | ||
| 292 | and `mask_img'. | ||
| 293 | |||
| 294 | * image.c (Destroy_Image): Remove. | ||
| 295 | (x_clear_image_1): New arg `flags' instead of 3 bools `pixmap_p', | ||
| 296 | `mask_p', and `colors_p'. All uses changed. | ||
| 297 | (x_clear_image_1) [HAVE_X_WINDOWS]: Destroy `ximg' and `mask_img'. | ||
| 298 | (CLEAR_IMAGE_PIXMAP, CLEAR_IMAGE_MASK, CLEAR_IMAGE_COLORS): | ||
| 299 | New macros for `flags' arg to x_clear_image_1. | ||
| 300 | (postprocess_image, xpm_load_image, x_build_heuristic_mask) | ||
| 301 | (png_load_body): Use x_clear_image_1 instead of Free_Pixmap. | ||
| 302 | (ZPixmap, XGetImage) [HAVE_NS]: Remove. | ||
| 303 | (image_get_x_image_or_dc, image_unget_x_image_or_dc) | ||
| 304 | (image_get_x_image, image_unget_x_image): New functions or macros. | ||
| 305 | (image_background, image_background_transparent, x_to_xcolors) | ||
| 306 | (x_build_heuristic_mask): Use image_get_x_image_or_dc instead of | ||
| 307 | XGetImage or CreateCompatibleDC. Use image_unget_x_image_or_dc | ||
| 308 | instead of Destroy_Image. | ||
| 309 | (image_create_x_image_and_pixmap, image_put_x_image): New functions. | ||
| 310 | (xpm_load_image, x_from_xcolors, x_build_heuristic_mask, pbm_load) | ||
| 311 | (png_load_body, jpeg_load_body, tiff_load, gif_load) | ||
| 312 | (imagemagick_load_image, svg_load_image): Use them instead of | ||
| 313 | x_create_x_image_and_pixmap, and x_put_x_image followed by | ||
| 314 | x_destroy_x_image, respectively. | ||
| 315 | (xpm_load) [HAVE_XPM && !HAVE_NTGUI]: Use XpmReadFileToImage and | ||
| 316 | XpmCreateImageFromBuffer instead of XpmReadFileToPixmap and | ||
| 317 | XpmCreatePixmapFromBuffer. Create pixmaps. Fill background and | ||
| 318 | background_transparent fields. | ||
| 319 | (image_sync_to_pixmaps) [HAVE_X_WINDOWS]: New function. | ||
| 320 | (prepare_image_for_display, x_disable_image) [HAVE_X_WINDOWS]: Use it. | ||
| 321 | |||
| 322 | 2013-06-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 323 | |||
| 324 | Do not tickle glib SIGCHLD handling if Cygwin (Bug#14569). | ||
| 325 | This mostly consists of undoing recent changes. | ||
| 326 | * callproc.c (Fcall_process): | ||
| 327 | * process.c (create_process): | ||
| 328 | Do not worry about catching SIGCHLD here, undoing previous change. | ||
| 329 | * nsterm.m (ns_term_init): Re-catch SIGCHLD, undoing previous change. | ||
| 330 | * process.c, process.h (catch_child_signal): | ||
| 331 | No longer extern if !NS_IMPL_GNUSTEP, undoing 06-22 change. | ||
| 332 | * process.c (catch_child_handler): Don't worry about being called | ||
| 333 | lazily and do not assume caller has blocked SIGCHLD, undoing | ||
| 334 | previous change. Move first-time stuff back to | ||
| 335 | init_process_emacs, undoing 06-22 change. If CYGWIN, do not | ||
| 336 | tickle glib, as that causes Cygwin bootstrap to fail. Do not | ||
| 337 | set lib_child_handler if it's already initialized, which may | ||
| 338 | help avoid problems on GNUStep. | ||
| 339 | |||
| 340 | 2013-06-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 341 | |||
| 342 | A more-conservative workaround for Cygwin SIGCHLD issues (Bug#14569). | ||
| 343 | * callproc.c (Fcall_process): | ||
| 344 | * process.c (create_process): | ||
| 345 | Make sure SIGCHLD is caught before we fork, | ||
| 346 | since Emacs startup no arranges to catch SIGCHLD. | ||
| 347 | * process.c (lib_child_handler): Initialize to null, not to | ||
| 348 | dummy_handler. | ||
| 349 | (catch_child_signal): Allow self to be called lazily. | ||
| 350 | Do nothing if it's already been called. | ||
| 351 | Assume caller has blocked SIGCHLD (all callers do now). | ||
| 352 | * emacs.c (main): Do not catch SIGCHLD here; defer it until | ||
| 353 | just before it's really needed. | ||
| 354 | * nsterm.m (ns_term_init): No need to re-catch SIGCHLD here, | ||
| 355 | since it hasn't been caught yet. | ||
| 356 | |||
| 357 | 2013-06-23 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 358 | |||
| 359 | * image.c (compute_image_size): New function to implement | ||
| 360 | :max-width and :max-height. | ||
| 361 | (imagemagick_load_image): Use it. | ||
| 362 | |||
| 363 | 2013-06-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 364 | |||
| 365 | Try to avoid malloc SEGVs on Cygwin (Bug#14569). | ||
| 366 | * callproc.c, process.h (block_child_signal, unblock_child_signal): | ||
| 367 | Now extern. | ||
| 368 | * emacs.c (main): Catch SIGCHLD just before initializing gfilenotify. | ||
| 369 | * process.c (catch_child_signal): Block SIGCHLD while futzing with | ||
| 370 | the SIGCHLD handler, since the code is not atomic and (due to glib) | ||
| 371 | signals may be arriving now. | ||
| 372 | * sysdep.c (init_signals): Do not catch child signals here; | ||
| 373 | 'main' now does that later, at a safer time. | ||
| 374 | |||
| 375 | 2013-06-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 376 | |||
| 377 | Clean up SIGCHLD handling a bit (Bug#14569). | ||
| 378 | * process.c, process.h (catch_child_signal): | ||
| 379 | Now always extern, even if !NS_IMPL_GNUSTEP. | ||
| 380 | * process.c (catch_child_signal): Move glib tickler here from | ||
| 381 | init_process_emacs, so that it's done earlier in Emacs | ||
| 382 | initialization. Also move the noninteractive && !initialized | ||
| 383 | check here from init_process_emacs. This is all a bit cleaner for | ||
| 384 | GNUish platforms, and I hope it works around the Cygwin bug. | ||
| 385 | * sysdep.c (init_signals): Invoke catch_child_signal here, so | ||
| 386 | that glib signal handling is tickled before glib creates threads. | ||
| 387 | |||
| 388 | * process.c (wait_reading_process_output): Avoid int overflow | ||
| 389 | when reading more than 2 GiB total from a process. | ||
| 390 | |||
| 391 | 2013-06-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 392 | |||
| 393 | * process.c (create_process): Handle a couple more cases, | ||
| 394 | i.e., work even if new_argv and wait_child_setup[i] are cached. | ||
| 395 | Use Fcall_process's style for volatile vars. | ||
| 396 | |||
| 397 | 2013-06-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 398 | |||
| 399 | * process.c (create_process): Mark PROCESS volatile. | ||
| 400 | |||
| 401 | 2013-06-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 402 | |||
| 403 | Use C99-style flexible array members if available. | ||
| 404 | This avoids some subtle aliasing issues, which typically | ||
| 405 | aren't a problem with GCC but may be a problem elsewhere. | ||
| 406 | * alloc.c (sdata): New typedef, replacing the old struct sdata. | ||
| 407 | It is a struct if GC_CHECK_STRING_BYTES, a union otherwise. | ||
| 408 | In either case, it uses a flexible array member rather than | ||
| 409 | the old struct hack. All uses changed. | ||
| 410 | (SDATA_NBYTES, sweep_strings) [!GC_CHECK_STRING_BYTES]: | ||
| 411 | Adjust to sdata reorganization. | ||
| 412 | * alloc.c (VBLOCK_BYTES_MIN, allocate_vectorlike, Fgarbage_collect): | ||
| 413 | Use offsetof (struct, flex_array_member), not sizeof (struct), as | ||
| 414 | that ports better to pre-C99 non-GCC. | ||
| 415 | * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table): | ||
| 416 | Use CHAR_TABLE_STANDARD_SLOTS rather than its definition, | ||
| 417 | as the latter has changed. | ||
| 418 | * conf_post.h (FLEXIBLE_ARRAY_MEMBER): Move here from w32.c, | ||
| 419 | and port better to pre-C99 GCC. | ||
| 420 | * image.c (struct xpm_cached_color): | ||
| 421 | * lisp.h (struct Lisp_Vector, struct Lisp_Bool_Vector) | ||
| 422 | (struct Lisp_Char_Table, struct Lisp_Sub_Char_Table): | ||
| 423 | Use FLEXIBLE_ARRAY_MEMBER. | ||
| 424 | * lisp.h (string_bytes) [GC_CHECK_STRING_BYTES]: | ||
| 425 | Move decl to top level so it gets checked against implementation. | ||
| 426 | (CHAR_TABLE_STANDARD_SLOTS): Adjust to struct Lisp_Char_Table change. | ||
| 427 | * w32.c (FLEXIBLE_ARRAY_MEMBER): Move to conf_post.h. | ||
| 428 | |||
| 429 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 430 | |||
| 431 | * syntax.c: Integer cleanups. | ||
| 432 | (SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2. | ||
| 433 | All uses that need 0-or-2 changed to: | ||
| 434 | (SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics | ||
| 435 | as the old SYNTAX_FLAGS_COMMENT_STYLEC. | ||
| 436 | (struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table) | ||
| 437 | (char_quoted, prev_char_comend_first, back_comment) | ||
| 438 | (Finternal_describe_syntax_value, skip_chars, skip_syntaxes) | ||
| 439 | (in_classes, forw_comment, scan_lists, scan_sexps_forward): | ||
| 440 | Use bool for boolean. | ||
| 441 | (update_syntax_table, skip_chars, skip_syntaxes): | ||
| 442 | Prefer int to unsigned when either will do. | ||
| 443 | (back_comment): Return boolean success flag, like forw_comment, | ||
| 444 | instead of positive-or-minus-1 (which might have overflowed int anyway). | ||
| 445 | Don't stuff ptrdiff_t into int. | ||
| 446 | (syntax_spec_code, syntax_code_spec): Now const. | ||
| 447 | (Fmatching_paren, scan_lists, scan_sexps_forward): | ||
| 448 | Use enum syntaxcode for syntax code. | ||
| 449 | (Fmatching_paren): Check that arg is a character, not just an integer. | ||
| 450 | (Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode. | ||
| 451 | (Finternal_describe_syntax_value): Omit no-longer-needed | ||
| 452 | comparison to 0. | ||
| 453 | (skip_chars): Use char, not unsigned char, when the distinction | ||
| 454 | doesn't matter. | ||
| 455 | (forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap. | ||
| 456 | * bytecode.c (exec_byte_code): | ||
| 457 | * syntax.c (syntax_spec_code, Fchar_syntax) | ||
| 458 | (Finternal_describe_syntax_value, skip_chars, skip_syntaxes) | ||
| 459 | (init_syntax_once): | ||
| 460 | * syntax.h (SYNTAX_WITH_FLAGS): | ||
| 461 | Omit unnecessary casts. | ||
| 462 | |||
| 463 | 2013-06-20 Eli Zaretskii <eliz@gnu.org> | ||
| 464 | |||
| 465 | * w32fns.c (w32_wnd_proc): Don't compute the header line and mode | ||
| 466 | line dimensions here, to avoid race conditions with the main | ||
| 467 | thread. (Bug#14062, bug#14630, bug#14669) | ||
| 468 | |||
| 469 | * w32term.c (w32_draw_window_cursor): Compute the header line and | ||
| 470 | mode line dimensions here. | ||
| 471 | <w32_system_caret_window, w32_system_caret_hdr_height>: | ||
| 472 | <w32_system_caret_mode_height>: New variables. | ||
| 473 | |||
| 474 | * w32term.h: Declare them. | ||
| 475 | |||
| 476 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 477 | |||
| 478 | * alloc.c (die): Move "assertion failed" string here ... | ||
| 479 | * lisp.h (eassert): ... from here. Also, suppress evaluation of | ||
| 480 | COND when SUPPRESS_CHECKING. This shrinks the executable text | ||
| 481 | size by 0.8% to 2.2% when configured with --enable-checking, | ||
| 482 | depending on optimization flags (GCC 4.8.1 x86-64). | ||
| 483 | |||
| 484 | * floatfns.c (Flog10): Move to Lisp (marked obsolete there). | ||
| 485 | |||
| 486 | 2013-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de> | ||
| 487 | |||
| 488 | * floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the | ||
| 489 | base is 2; this is more accurate. | ||
| 490 | |||
| 491 | 2013-06-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 492 | |||
| 493 | * sound.c (string_default): Move to !WINDOWSNT section. | ||
| 494 | (Fplay_sound_internal) [WINDOWSNT]: Remove i_result to avoid warning. | ||
| 495 | |||
| 496 | 2013-06-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 497 | |||
| 498 | * sound.c: Integer cleanups. | ||
| 499 | Remove unnecessary forward decls. | ||
| 500 | (struct sound_device): The 'file' member is now a Lisp_Object, not | ||
| 501 | a char *, so that we needn't invoke alloca on a huge size. | ||
| 502 | (Fplay_sound_internal): Adjust to this. | ||
| 503 | (string_default): New function. | ||
| 504 | (vox_open, vox_init, alsa_open, alsa_configure, alsa_init): | ||
| 505 | Use it to adjust to the struct sound_device change. | ||
| 506 | (parse_sound, wav_init, au_init, alsa_init): Use bool for booleans. | ||
| 507 | (be2hs) [0]: Remove. | ||
| 508 | |||
| 509 | * syntax.c (skip_chars): Don't use uninitialized storage | ||
| 510 | when searching a multibyte buffer for characters that are not in a | ||
| 511 | unibyte string that contains non-ASCII characters. | ||
| 512 | |||
| 513 | 2013-06-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 514 | |||
| 515 | * process.c: Include xgselect.h if HAVE_GLIB. Include glib.h | ||
| 516 | if HAVE_GLIB && ! WINDOWSNT (Bug#14654). | ||
| 517 | |||
| 518 | 2013-06-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 519 | |||
| 520 | * conf_post.h: Add comments for INLINE, EXTERN_INLINE, etc. | ||
| 521 | |||
| 522 | 2013-06-18 Kenichi Handa <handa@gnu.org> | ||
| 523 | |||
| 524 | * font.c (Ffont_spec): Signal an error for an invalid font name | ||
| 525 | (Bug#14648). | ||
| 526 | |||
| 527 | 2013-06-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 528 | |||
| 529 | Porting fixes for merged specpdl and backtrace stacks (Bug#14643). | ||
| 530 | In particular this ports to 32-bit sparc Sun cc. | ||
| 531 | * eval.c (init_eval_once, grow_specpdl): Allocate a specbinding | ||
| 532 | array with a dummy element at specpdl[-1], so that its address can | ||
| 533 | be taken portably. | ||
| 534 | (unbind_to): Do not copy the binding; not needed, now that we | ||
| 535 | copy old_value in the one place where the copy is needed. | ||
| 536 | * fileio.c (Fwrite_region): Use ptrdiff_t, not int, for specpdl count. | ||
| 537 | * lisp.h (BITS_PER_PTRDIFF_T): Remove; no longer needed. | ||
| 538 | (union specbinding): Rename from struct specbinding. Redo layout | ||
| 539 | to avoid the need for 'ptrdiff_t nargs : BITS_PER_PTRDIFF_T - 1;', | ||
| 540 | which is not portable. With Sun C 5.12 32-bit sparc, the | ||
| 541 | declaration causes nargs to be an unsigned bitfield, a behavior | ||
| 542 | that the C standard allows; but Emacs wants nargs to be signed. | ||
| 543 | The overall type is now a union of structures rather than a | ||
| 544 | structure of union of structures, and the 'kind' member is now a | ||
| 545 | bitfield, so that the overall type doesn't grow. All uses changed. | ||
| 546 | * process.c (Fmake_serial_process): Remove unnecessary initialization. | ||
| 547 | |||
| 548 | 2013-06-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 549 | |||
| 550 | * frame.c (x_report_frame_params): Cast parent_desc to uintptr_t. | ||
| 551 | Needed if HAVE_NTGUI. Reported by Juanma Barranquero. | ||
| 552 | |||
| 553 | * nsfont.m (ns_registry_to_script): Parenthesize while expression. | ||
| 554 | |||
| 555 | 2013-06-17 Eli Zaretskii <eliz@gnu.org> | ||
| 556 | |||
| 557 | * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT | ||
| 558 | unless we know that the window w's frame is a frame object. | ||
| 559 | Another attempt at solving bug#14062 and bug#14630. | ||
| 560 | |||
| 561 | 2013-06-17 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 562 | |||
| 563 | * textprop.c (property_set_type): New enum. | ||
| 564 | (add_properties): Allow appending/prepending text properties. | ||
| 565 | (add_text_properties_1): Factored out of Fadd_text_properties. | ||
| 566 | (Fadd_text_properties): Move all the code into | ||
| 567 | add_text_properties_1. | ||
| 568 | (Fadd_face_text_property): New function that calls | ||
| 569 | add_text_properties_1. | ||
| 570 | |||
| 571 | 2013-06-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 572 | |||
| 573 | Move functions from lisp.h to individual modules when possible. | ||
| 574 | From a suggestion by Andreas Schwab in <http://bugs.gnu.org/11935#68>. | ||
| 575 | * alloc.c (XFLOAT_INIT, set_symbol_name): | ||
| 576 | * buffer.c (CHECK_OVERLAY): | ||
| 577 | * chartab.c (CHECK_CHAR_TABLE, set_char_table_ascii) | ||
| 578 | (set_char_table_parent): | ||
| 579 | * coding.c (CHECK_NATNUM_CAR, CHECK_NATNUM_CDR): | ||
| 580 | * data.c (BOOLFWDP, INTFWDP, KBOARD_OBJFWDP, OBJFWDP, XBOOLFWD) | ||
| 581 | (XKBOARD_OBJFWD, XINTFWD, XOBJFWD, CHECK_SUBR, set_blv_found) | ||
| 582 | (blv_value, set_blv_value, set_blv_where, set_blv_defcell) | ||
| 583 | (set_blv_valcell): | ||
| 584 | * emacs.c (setlocale) [!HAVE_SETLOCALE]: | ||
| 585 | * eval.c (specpdl_symbol, specpdl_old_value, specpdl_where) | ||
| 586 | (specpdl_arg, specpdl_func, backtrace_function, backtrace_nargs) | ||
| 587 | (backtrace_args, backtrace_debug_on_exit): | ||
| 588 | * floatfns.c (CHECK_FLOAT): | ||
| 589 | * fns.c (CHECK_HASH_TABLE, CHECK_LIST_END) | ||
| 590 | (set_hash_key_and_value, set_hash_next, set_hash_next_slot) | ||
| 591 | (set_hash_hash, set_hash_hash_slot, set_hash_index) | ||
| 592 | (set_hash_index_slot): | ||
| 593 | * keymap.c (CHECK_VECTOR_OR_CHAR_TABLE): | ||
| 594 | * marker.c (CHECK_MARKER): | ||
| 595 | * textprop.c (CHECK_STRING_OR_BUFFER): | ||
| 596 | * window.c (CHECK_WINDOW_CONFIGURATION): | ||
| 597 | Move here from lisp.h, and make these functions static rather than | ||
| 598 | extern inline. | ||
| 599 | * buffer.c (Qoverlayp): | ||
| 600 | * data.c (Qsubrp): | ||
| 601 | * fns.c (Qhash_table_p): | ||
| 602 | * window.c (Qwindow_configuration_p): | ||
| 603 | Now static. | ||
| 604 | * lisp.h: Remove the abovementioned defns and decls. | ||
| 605 | |||
| 606 | Use functions, not macros, for XINT etc. (Bug#11935). | ||
| 607 | In lisp.h, prefer functions to function-like macros, and | ||
| 608 | constants to object-like macros, when either will do. This: | ||
| 609 | . simplifies use, as there's no more need to worry about | ||
| 610 | arguments' side effects being evaluated multiple times. | ||
| 611 | . makes the code easier to debug on some platforms. | ||
| 612 | However, when using gcc -O0, keep using function-like macros | ||
| 613 | for a few critical operations, for performance reasons. | ||
| 614 | This sort of thing isn't needed with gcc -Og, but -Og | ||
| 615 | is a GCC 4.8 feature and isn't widely-enough available yet. | ||
| 616 | * alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]: | ||
| 617 | Remove enum lsb_bits; no longer needed. | ||
| 618 | (allocate_misc, free_misc): Don't use XMISCTYPE as an lvalue. | ||
| 619 | * buffer.c (Qoverlap): | ||
| 620 | * data.c (Qsubrp): | ||
| 621 | * fns.c (Qhash_table_p): | ||
| 622 | Now extern, so lisp.h can use these symbols. | ||
| 623 | * dispextern.h: Include character.h, for MAX_CHAR etc. | ||
| 624 | (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE) | ||
| 625 | (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE) | ||
| 626 | (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P) | ||
| 627 | (GLYPH_CODE_P): Move here from lisp.h. | ||
| 628 | (GLYPH_CHAR, GLYPH_FACE, GLYPH_CODE_CHAR, GLYPH_CODE_FACE) | ||
| 629 | (GLYPH_CHAR_VALID_P, GLYPH_CODE_P): Now functions, not macros. | ||
| 630 | (GLYPH_MODE_LINE_FACE): Now enums, not macros. | ||
| 631 | * eval.c (Fautoload): Cast XUNTAG output to intptr_t, since | ||
| 632 | XUNTAG now returns void *. | ||
| 633 | * lisp.h (lisp_h_XLI, lisp_h_XIL, lisp_h_CHECK_LIST_CONS) | ||
| 634 | (lisp_h_CHECK_NUMBER CHECK_SYMBOL, lisp_h_CHECK_TYPE) | ||
| 635 | (lisp_h_CONSP, lisp_h_EQ, lisp_h_FLOATP, lisp_h_INTEGERP) | ||
| 636 | (lisp_h_MARKERP, lisp_h_MISCP, lisp_h_NILP) | ||
| 637 | (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_CONSTANT_P) | ||
| 638 | (lisp_h_SYMBOL_VAL, lisp_h_SYMBOLP, lisp_h_VECTORLIKEP) | ||
| 639 | (lisp_h_XCAR, lisp_h_XCDR, lisp_h_XCONS, lisp_h_XHASH) | ||
| 640 | (lisp_h_XPNTR, lisp_h_XSYMBOL): | ||
| 641 | New macros, renamed from their sans-lisp_h_ counterparts. | ||
| 642 | (XLI, XIL, CHECK_LIST_CONS, CHECK_NUMBER CHECK_SYMBOL) | ||
| 643 | (CHECK_TYPE, CONSP, EQ, FLOATP, INTEGERP, MARKERP) | ||
| 644 | (MISCP, NILP, SET_SYMBOL_VAL, SYMBOL_CONSTANT_P, SYMBOL_VAL, SYMBOLP) | ||
| 645 | (VECTORLIKEP, XCAR, XCDR, XCONS, XHASH, XPNTR, XSYMBOL): | ||
| 646 | If compiling via GCC without optimization, define these as macros | ||
| 647 | in addition to inline functions. | ||
| 648 | To disable this, compile with -DINLINING=0. | ||
| 649 | (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): New macros. | ||
| 650 | (check_cons_list) [!GC_CHECK_CONS_LIST]: Likewise. | ||
| 651 | (make_number, XFASTINT, XINT, XTYPE, XUNTAG): Likewise, but | ||
| 652 | hand-optimize only in the USE_LSB_TAG case, as GNUish hosts do that. | ||
| 653 | (INTMASK, VALMASK): Now macros, since static values cannot be | ||
| 654 | accessed from extern inline functions. | ||
| 655 | (VALMASK): Also a constant, for benefit of old GDB. | ||
| 656 | (LISP_INT_TAG_P): Remove; no longer needed as the only caller | ||
| 657 | is INTEGERP, which can fold it in. | ||
| 658 | (XLI, XIL, XHASH, XTYPE,XINT, XFASTINT, XUINT) | ||
| 659 | (make_number, XPNTR, XUNTAG, EQ, XCONS, XVECTOR, XSTRING, XSYMBOL) | ||
| 660 | (XFLOAT, XPROCESS, XWINDOW, XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE) | ||
| 661 | (XSUB_CHAR_TABLE, XBOOL_VECTOR, make_lisp_ptr, CHECK_TYPE) | ||
| 662 | (CHECK_STRING_OR_BUFFER, XCAR, XCDR, XSETCAR, XSETCDR, CAR, CDR) | ||
| 663 | (CAR_SAFE, CDR_SAFE, STRING_MULTIBYTE, SDATA, SSDATA, SREF, SSET) | ||
| 664 | (SCHARS, STRING_BYTES, SBYTES, STRING_SET_CHARS, STRING_COPYIN, AREF) | ||
| 665 | (ASIZE, ASET, CHAR_TABLE_REF_ASCII, CHAR_TABLE_REF) | ||
| 666 | (CHAR_TABLE_SET, CHAR_TABLE_EXTRA_SLOTS, SYMBOL_VAL, SYMBOL_ALIAS) | ||
| 667 | (SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL, SET_SYMBOL_ALIAS) | ||
| 668 | (SET_SYMBOL_BLV, SET_SYMBOL_FWD, SYMBOL_NAME, SYMBOL_INTERNED_P) | ||
| 669 | (SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P, SYMBOL_CONSTANT_P) | ||
| 670 | (XHASH_TABLE, HASH_TABLE_P, CHECK_HASH_TABLE, HASH_KEY, HASH_VALUE) | ||
| 671 | (HASH_NEXT, HASH_HASH, HASH_INDEX, HASH_TABLE_SIZE) | ||
| 672 | (XMISC, XMISCANY, XMARKER, XOVERLAY, XSAVE_VALUE, XFWDTYPE) | ||
| 673 | (XINTFWD, XBOOLFWD, XOBJFWD, XBUFFER_OBJFWD, XKBOARD_OBJFWD) | ||
| 674 | (XFLOAT_DATA, XFLOAT_INIT, NILP, NUMBERP, NATNUMP) | ||
| 675 | (RANGED_INTEGERP, CONSP, FLOATP, MISCP, STRINGP, SYMBOLP) | ||
| 676 | (INTEGERP, VECTORLIKEP, VECTORP, OVERLAYP) | ||
| 677 | (MARKERP, SAVE_VALUEP, AUTOLOADP, INTFWDP, BOOLFWDP, OBJFWDP) | ||
| 678 | (BUFFER_OBJFWDP, KBOARD_OBJFWDP, PSEUDOVECTOR_TYPEP) | ||
| 679 | (PSEUDOVECTORP, WINDOW_CONFIGURATIONP, PROCESSP, WINDOWP) | ||
| 680 | (TERMINALP, SUBRP, COMPILEDP, BUFFERP, CHAR_TABLE_P) | ||
| 681 | (SUB_CHAR_TABLE_P, BOOL_VECTOR_P, FRAMEP, IMAGEP, ARRAYP) | ||
| 682 | (CHECK_LIST, CHECK_LIST_CONS, CHECK_LIST_END, CHECK_STRING) | ||
| 683 | (CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE) | ||
| 684 | (CHECK_VECTOR, CHECK_VECTOR_OR_STRING, CHECK_ARRAY) | ||
| 685 | (CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER, CHECK_WINDOW) | ||
| 686 | (CHECK_WINDOW_CONFIGURATION, CHECK_PROCESS, CHECK_SUBR) | ||
| 687 | (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, XFLOATINT) | ||
| 688 | (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT, CHECK_OVERLAY) | ||
| 689 | (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR, CHECK_NATNUM_CAR) | ||
| 690 | (CHECK_NATNUM_CDR, FUNCTIONP, SPECPDL_INDEX, LOADHIST_ATTACH) | ||
| 691 | Now functions. | ||
| 692 | (check_cons_list) [!GC_CHECK_CONS_LIST]: New empty function. | ||
| 693 | (LISP_MAKE_RVALUE, TYPEMASK): Remove; no longer needed. | ||
| 694 | (VALMASK): Define in one place rather than in two, merging the | ||
| 695 | USE_LSB_TAG parts; this is simpler. | ||
| 696 | (aref_addr, gc_aset, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM) | ||
| 697 | (max, min, struct Lisp_String, UNSIGNED_CMP, ASCII_CHAR_P): | ||
| 698 | Move up, to avoid use before definition. | ||
| 699 | Also include "globals.h" earlier, for the same reason. | ||
| 700 | (make_natnum): New function. | ||
| 701 | (XUNTAG): Now returns void *, not intptr_t, as this means fewer casts. | ||
| 702 | (union Lisp_Fwd, BOOLFWDP, BOOL_VECTOR_P, BUFFER_OBJFWDP, BUFFERP) | ||
| 703 | (CHAR_TABLE_P, CHAR_TABLE_REF_ASCII, CONSP, FLOATP, INTEGERP, INTFWDP) | ||
| 704 | (KBOARD_OBJFWDP, MARKERP, MISCP, NILP, OBJFWDP, OVERLAYP, PROCESSP) | ||
| 705 | (PSEUDOVECTORP, SAVE_VALUEP, STRINGP, SUB_CHAR_TABLE_P, SUBRP, SYMBOLP) | ||
| 706 | (VECTORLIKEP, WINDOWP, Qoverlayp, char_table_ref, char_table_set) | ||
| 707 | (char_table_translate, Qarrayp, Qbufferp, Qbuffer_or_string_p) | ||
| 708 | (Qchar_table_p, Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp) | ||
| 709 | (Qnil, Qnumberp, Qsubrp, Qstringp, Qsymbolp, Qvectorp) | ||
| 710 | (Qvector_or_char_table_p, Qwholenump, Ffboundp, wrong_type_argument) | ||
| 711 | (initialized, Qhash_table_p, extract_float, Qprocessp, Qwindowp) | ||
| 712 | (Qwindow_configuration_p, Qimage): New forward declarations. | ||
| 713 | (XSETFASTINT): Simplify by rewriting in terms of make_natnum. | ||
| 714 | (STRING_COPYIN): Remove; unused. | ||
| 715 | (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Remove these macros, replacing with ... | ||
| 716 | (xcar_addr, xcdr_addr): New functions. All uses changed. | ||
| 717 | (IEEE_FLOATING_POINT): Now a constant, not a macro. | ||
| 718 | (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE) | ||
| 719 | (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE) | ||
| 720 | (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P) | ||
| 721 | (GLYPH_CODE_P): Move to dispextern.h, to avoid define-before-use. | ||
| 722 | (TYPE_RANGED_INTEGERP): Simplify. | ||
| 723 | (Qsubrp, Qhash_table_p, Qoverlayp): New extern decls. | ||
| 724 | (setlocale, fixup_locale, synchronize_system_messages_locale) | ||
| 725 | (synchronize_system_time_locale) [!HAVE_SETLOCALE]: | ||
| 726 | Now empty functions, not macros. | ||
| 727 | (functionp): Return bool, not int. | ||
| 728 | * window.c (Qwindow_configuration_p): Now extern, | ||
| 729 | so window.h can use it. | ||
| 730 | * window.h (Qwindowp): Move decl back to lisp.h. | ||
| 731 | |||
| 732 | 2013-06-15 Eli Zaretskii <eliz@gnu.org> | ||
| 733 | |||
| 734 | * xdisp.c (Fline_pixel_height): New function, required for solving | ||
| 735 | bug #14567. | ||
| 736 | |||
| 737 | 2013-06-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 738 | |||
| 739 | * fns.c (Fcopy_sequence): Simplify XTYPE calculation. | ||
| 740 | |||
| 741 | 2013-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 742 | |||
| 743 | * lread.c (syms_of_lread): | ||
| 744 | * fns.c (Fprovide): Adjust to new format of after-load-alist. | ||
| 745 | |||
| 1 | 2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change) | 746 | 2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change) |
| 2 | 747 | ||
| 3 | * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479) | 748 | * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479) |
| @@ -357,7 +1102,7 @@ | |||
| 357 | (update_frame_tool_bar): Update code for GNUStep. | 1102 | (update_frame_tool_bar): Update code for GNUStep. |
| 358 | (clearAll): New method. | 1103 | (clearAll): New method. |
| 359 | (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag | 1104 | (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag |
| 360 | argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP. | 1105 | argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP. |
| 361 | Move identifierToItem setObject and activeIdentifiers addObject before | 1106 | Move identifierToItem setObject and activeIdentifiers addObject before |
| 362 | call to insertItemWithItemIdentifier. | 1107 | call to insertItemWithItemIdentifier. |
| 363 | (validateVisibleItems): Fix indentation. | 1108 | (validateVisibleItems): Fix indentation. |
| @@ -389,7 +1134,7 @@ | |||
| 389 | (Fxw_color_values): Use EmacsCGFloat | 1134 | (Fxw_color_values): Use EmacsCGFloat |
| 390 | (Fns_display_monitor_attributes_list): Only get screen number for | 1135 | (Fns_display_monitor_attributes_list): Only get screen number for |
| 391 | Cocoa. | 1136 | Cocoa. |
| 392 | (getDirectory, getFilename): Removed from EmacsOpenPanel and | 1137 | (getDirectory, getFilename): Remove from EmacsOpenPanel and |
| 393 | EmacsSavePanel. | 1138 | EmacsSavePanel. |
| 394 | (EmacsOpenPanel:ok:): Use ns_filename_from_panel and | 1139 | (EmacsOpenPanel:ok:): Use ns_filename_from_panel and |
| 395 | ns_directory_from_panel. | 1140 | ns_directory_from_panel. |
| @@ -1641,22930 +2386,7 @@ | |||
| 1641 | __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin | 2386 | __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin |
| 1642 | and FreeBSD now. | 2387 | and FreeBSD now. |
| 1643 | 2388 | ||
| 1644 | 2013-03-11 Paul Eggert <eggert@cs.ucla.edu> | 2389 | See ChangeLog.12 for earlier changes. |
| 1645 | |||
| 1646 | * insdel.c (adjust_after_replace): Use bool for boolean. | ||
| 1647 | |||
| 1648 | 2013-03-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 1649 | |||
| 1650 | * keyboard.c: Move keyboard decoding to read_key_sequence. | ||
| 1651 | (decode_keyboard_code): Remove. | ||
| 1652 | (tty_read_avail_input): Don't try to decode input. | ||
| 1653 | (read_decoded_char): New function. | ||
| 1654 | (read_key_sequence): Use it. | ||
| 1655 | |||
| 1656 | 2013-03-10 Daniel Colascione <dancol@dancol.org> | ||
| 1657 | |||
| 1658 | * w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN) | ||
| 1659 | (GUI_SDATA, guichar_t): Macros to abstract out differences between | ||
| 1660 | NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of | ||
| 1661 | w32fns.c. | ||
| 1662 | |||
| 1663 | * w32term.c (construct_drag_n_drop): Use the above macros to make | ||
| 1664 | drag-and-drop work for non-ASCII filenames in cygw32 builds. | ||
| 1665 | |||
| 1666 | * w32fns.c (x_set_name, x_set_title): Use the above macros to | ||
| 1667 | properly display non-ASCII frame titles in cygw32 builds. | ||
| 1668 | |||
| 1669 | * w32fns.c (Fw32_shell_execute): Use the above macros to properly | ||
| 1670 | call ShellExecute in cygw32 builds. | ||
| 1671 | |||
| 1672 | * w32fn.c (Fx_file_dialog): Use the above macros to simplify the | ||
| 1673 | common file dialog code. | ||
| 1674 | |||
| 1675 | * w32fns.c (Ffile_system_info): Remove from cygw32 builds, which | ||
| 1676 | can just use du like other systems. | ||
| 1677 | |||
| 1678 | * coding.c (from_unicode_buffer): Declare. | ||
| 1679 | * coding.c (from_unicode_buffer): Implement. | ||
| 1680 | |||
| 1681 | 2013-03-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 1682 | |||
| 1683 | * lread.c: Minor cleanup. | ||
| 1684 | (FROM_FILE_P): New macro. | ||
| 1685 | (skip_dyn_bytes, unreadchar, read1): Use it. | ||
| 1686 | (read_list): Consolidate duplicated code. | ||
| 1687 | |||
| 1688 | * bytecode.c (struct byte_stack): Remove `constants' when unused. | ||
| 1689 | |||
| 1690 | 2013-03-10 Eli Zaretskii <eliz@gnu.org> | ||
| 1691 | |||
| 1692 | * xdisp.c (display_tool_bar_line, redisplay_tool_bar) | ||
| 1693 | (redisplay_internal, set_cursor_from_row, try_window) | ||
| 1694 | (try_window_id, dump_glyph_row, extend_face_to_end_of_line) | ||
| 1695 | (display_line, notice_overwritten_cursor) | ||
| 1696 | (mouse_face_from_buffer_pos, note_mouse_highlight): | ||
| 1697 | Use MATRIX_ROW_DISPLAYS_TEXT_P. | ||
| 1698 | (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START. | ||
| 1699 | (mouse_face_from_string_pos, fast_find_string_pos): | ||
| 1700 | Use MATRIX_ROW_VPOS. | ||
| 1701 | |||
| 1702 | * xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P. | ||
| 1703 | |||
| 1704 | * w32fns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P. | ||
| 1705 | |||
| 1706 | * xdisp.c (try_cursor_movement): Use MATRIX_ROW and | ||
| 1707 | MATRIX_MODE_LINE_ROW. | ||
| 1708 | |||
| 1709 | * dispnew.c (update_window): Use MATRIX_ROW and MATRIX_MODE_LINE_ROW. | ||
| 1710 | |||
| 1711 | 2013-03-10 handa <handa@gnu.org> | ||
| 1712 | |||
| 1713 | * lisp.h (adjust_after_replace): Extern it. | ||
| 1714 | |||
| 1715 | * coding.c (detect_coding): Cound the heading ASCII bytes in the | ||
| 1716 | case of detection for coding_category_utf_8_auto. | ||
| 1717 | (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]: | ||
| 1718 | Skip decoding if all bytes are ASCII. | ||
| 1719 | |||
| 1720 | * insdel.c (adjust_after_replace): Make it public. New arg | ||
| 1721 | text_at_gap_tail. | ||
| 1722 | (adjust_after_insert): Call adjust_after_replace with the new arg | ||
| 1723 | value 0. | ||
| 1724 | |||
| 1725 | 2013-03-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 1726 | |||
| 1727 | * keyboard.h (EVENT_START, EVENT_END, POSN_WINDOW, POSN_POSN) | ||
| 1728 | (POSN_WINDOW_POSN, POSN_TIMESTAMP): Be careful since events may come | ||
| 1729 | from Elisp via unread-command-events. | ||
| 1730 | |||
| 1731 | * keyboard.c (access_keymap_keyremap): Accept nil return value from | ||
| 1732 | functions to mean "no change". | ||
| 1733 | |||
| 1734 | 2013-03-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1735 | |||
| 1736 | region-cache.c, scroll.c, search.c: Use bool for booleans. | ||
| 1737 | * lisp.h (compile_pattern): | ||
| 1738 | * scroll.c (do_scrolling, do_direct_scrolling): | ||
| 1739 | * search.c (struct regexp_cache, compile_pattern_1) | ||
| 1740 | (compile_pattern, string_match_1, search_command) | ||
| 1741 | (trivial_regexp_p, search_buffer, Freplace_match, match_limit) | ||
| 1742 | (search_regs_saved, Fregexp_quote): | ||
| 1743 | Use bool for boolean. | ||
| 1744 | * region-cache.c (region_cache_forward, region_cache_backward): | ||
| 1745 | Fix comments to match code: these functions return int, not boolean. | ||
| 1746 | |||
| 1747 | 2013-03-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1748 | |||
| 1749 | * search.c (find_newline): Accept start and end byte positions | ||
| 1750 | as arguments and allow -1 if not known. | ||
| 1751 | (find_newline_no_quit): Likewise for start position. | ||
| 1752 | * lisp.h (find_newline, find_newline_no_quit): Adjust prototype. | ||
| 1753 | * bidi.c (bidi_find_paragraph_start): Pass byte position to | ||
| 1754 | find_newline_no_quit, thus eliminating CHAR_TO_BYTE. | ||
| 1755 | * editfns.c (Fconstrain_to_field): Break long line. | ||
| 1756 | Adjust call to find_newline. | ||
| 1757 | * indent.c (vmotion): Adjust calls to find_newline_no_quit. | ||
| 1758 | Use DEC_BOTH to start next search from the previous buffer | ||
| 1759 | position, where appropriate. | ||
| 1760 | * xdisp.c (back_to_previous_line_start, forward_to_next_line_start) | ||
| 1761 | (get_visually_first_element, move_it_vertically_backward): Likewise. | ||
| 1762 | Obtain byte position from the display iterator, where appropriate. | ||
| 1763 | |||
| 1764 | 2013-03-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1765 | |||
| 1766 | print.c, process.c: Use bool for booleans. | ||
| 1767 | * lisp.h (wait_reading_process_output): | ||
| 1768 | * print.c (print_output_debug_flag, PRINTDECLARE, printchar) | ||
| 1769 | (strout, debug_output_compilation_hack, float_to_string, print) | ||
| 1770 | (print_object): | ||
| 1771 | * process.c (kbd_is_on_hold, inhibit_sentinels, process_output_skip) | ||
| 1772 | (decode_status, status_message, create_process, create_pty) | ||
| 1773 | (Fmake_network_process, Fnetwork_interface_info) | ||
| 1774 | (wait_reading_process_output, read_process_output) | ||
| 1775 | (write_queue_push, write_queue_pop, process_send_signal) | ||
| 1776 | (handle_child_signal, keyboard_bit_set, kbd_on_hold_p): | ||
| 1777 | * process.h (struct Lisp_Process, inhibit_sentinels, kbd_on_hold_p): | ||
| 1778 | Use bool for booleans. | ||
| 1779 | * process.c (Fnetwork_interface_list): Remove unused local. | ||
| 1780 | (connect_counter): Now EMACS_INT, not int. | ||
| 1781 | |||
| 1782 | 2013-03-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1783 | |||
| 1784 | * bidi.c (bidi_fetch_char): Swap first and second arguments | ||
| 1785 | to match other functions accepting character and byte positions. | ||
| 1786 | Adjust comment. | ||
| 1787 | (bidi_resolve_explicit_1, bidi_level_of_next_char): Adjust users. | ||
| 1788 | (bidi_paragraph_init): Likewise. Use DEC_BOTH which is faster | ||
| 1789 | when you need just to move to the previous buffer position. | ||
| 1790 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Use DEC_BOTH. | ||
| 1791 | |||
| 1792 | 2013-03-07 Eli Zaretskii <eliz@gnu.org> | ||
| 1793 | |||
| 1794 | * .gdbinit (prowlims): Display the enabled_p flag of the row. | ||
| 1795 | |||
| 1796 | 2013-03-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1797 | |||
| 1798 | Avoid character to byte conversions in motion subroutines. | ||
| 1799 | * indent.h (compute_motion, vmotion): Add byte position argument. | ||
| 1800 | * indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE. | ||
| 1801 | Add eassert. | ||
| 1802 | (Fcompute_motion): Break long line. Adjust call to compute_motion. | ||
| 1803 | Use list5 for return value. | ||
| 1804 | (vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE. | ||
| 1805 | Adjust comments, style and calls to compute_motion. | ||
| 1806 | (Fvertical_motion): Adjust call to vmotion. | ||
| 1807 | * window.c (Fdelete_other_windows_internal): Record window start | ||
| 1808 | byte position and adjust call to vmotion. | ||
| 1809 | (window_scroll_line_based): Likewise with call to compute_motion. | ||
| 1810 | Use SET_PT_BOTH. | ||
| 1811 | (Frecenter): Adjust calls to vmotion. | ||
| 1812 | |||
| 1813 | 2013-03-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1814 | |||
| 1815 | * lisp.h (list2i, list3i): New functions. | ||
| 1816 | (list4i): Move from window.c and make LISP_INLINE. | ||
| 1817 | * editfns.c (make_lisp_time): | ||
| 1818 | * fns.c (Flocale_info): | ||
| 1819 | * keyboard.c (parse_modifiers): | ||
| 1820 | * xterm.c (x_ewmh_activate_frame): Use list2i. | ||
| 1821 | * instel.c (signal_after_change): | ||
| 1822 | * nsfns.m (Fx_server_version, Fxw_color_values): | ||
| 1823 | * w32fns.c (Fxw_color_values, Fx_server_version): | ||
| 1824 | * xfns.c (Fxw_color_values, Fx_server_version): Use list3i. | ||
| 1825 | * fileio.c (Fvisited_file_modtime): | ||
| 1826 | * nsfns.m (Fns_display_usable_bounds): | ||
| 1827 | * w32.c (ltime): Use list4i. | ||
| 1828 | |||
| 1829 | 2013-03-06 Eli Zaretskii <eliz@gnu.org> | ||
| 1830 | |||
| 1831 | * search.c (find_newline_no_quit): Rename from find_next_newline. | ||
| 1832 | Add commentary. | ||
| 1833 | |||
| 1834 | * lisp.h (find_newline_no_quit): Rename prototype. | ||
| 1835 | |||
| 1836 | * xdisp.c (back_to_previous_line_start) | ||
| 1837 | (forward_to_next_line_start, get_visually_first_element) | ||
| 1838 | (move_it_vertically_backward): Callers of find_newline_no_quit changed. | ||
| 1839 | * indent.c (vmotion): Callers of find_newline_no_quit changed. | ||
| 1840 | * bidi.c (bidi_find_paragraph_start): Callers of | ||
| 1841 | find_newline_no_quit changed. | ||
| 1842 | |||
| 1843 | * msdos.c: Change encoding to cp850. (Bug#13879) | ||
| 1844 | (fr_keyboard, it_keyboard, dk_keyboard): Update keyboard layouts. | ||
| 1845 | |||
| 1846 | 2013-03-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1847 | |||
| 1848 | Coding system support cleanup and minor refactoring. | ||
| 1849 | * coding.h (enum coding_result_code): Remove | ||
| 1850 | CODING_RESULT_INCONSISTENT_EOL and CODING_RESULT_INSUFFICIENT_MEM. | ||
| 1851 | (toplevel): Remove unused CODING_MODE_INHIBIT_INCONSISTENT_EOL. | ||
| 1852 | (CODING_MODE_LAST_BLOCK, CODING_MODE_SELECTIVE_DISPLAY) | ||
| 1853 | (CODING_MODE_DIRECTION, CODING_MODE_FIXED_DESTINATION) | ||
| 1854 | (CODING_MODE_SAFE_ENCODING): Rearrange bit values. | ||
| 1855 | (decode_coding_region, encode_coding_region, decode_coding_string): | ||
| 1856 | Remove unused compatibility macros. | ||
| 1857 | * coding.c (Qinconsistent_eol, Qinsufficient_memory): Remove. | ||
| 1858 | (record_conversion_result): Adjust user. | ||
| 1859 | (syms_of_coding): Likewise. | ||
| 1860 | (ALLOC_CONVERSION_WORK_AREA): Use SAFE_ALLOCA. | ||
| 1861 | (decode_coding, encode_coding): Add USE_SAFE_ALLOCA and SAFE_FREE. | ||
| 1862 | (decode_coding_object): Simplify since xrealloc never returns NULL. | ||
| 1863 | Add eassert. | ||
| 1864 | |||
| 1865 | 2013-03-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1866 | |||
| 1867 | Fix a build failure on OpenBSD 4.x and MirBSD (Bug#13881). | ||
| 1868 | * sysdep.c (list_system_processes) | ||
| 1869 | [BSD_SYSTEM && !DARWIN_OS && !__FreeBSD__]: | ||
| 1870 | Make it a stub in this case; otherwise the build might fail, | ||
| 1871 | and this code hasn't been tested on such hosts anyway. | ||
| 1872 | Problem reported by Nelson H. F. Beebe in | ||
| 1873 | <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html> | ||
| 1874 | and analyzed by Jérémie Courrèges-Anglas in | ||
| 1875 | <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00062.html>. | ||
| 1876 | |||
| 1877 | 2013-03-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1878 | |||
| 1879 | * lisp.h (find_next_newline_no_quit): Rename to find_next_newline. | ||
| 1880 | * xdisp.c (back_to_previous_line_start, forward_to_next_line_start) | ||
| 1881 | (get_visually_first_element, move_it_vertically_backward): Ajust users. | ||
| 1882 | * bidi.c (bidi_find_paragraph_start): Likewise. | ||
| 1883 | * indent.c (vmotion): Likewise. | ||
| 1884 | |||
| 1885 | 2013-03-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1886 | |||
| 1887 | FILE's lock is now always .#FILE and may be a regular file (Bug#13807). | ||
| 1888 | * filelock.c: Include <c-ctype.h>. | ||
| 1889 | (MAX_LFINFO): New top-level constant. | ||
| 1890 | (lock_info_type): Remove members pid, boot_time. Add members at, | ||
| 1891 | dot, colon. Change user member to be the entire buffer, not a | ||
| 1892 | pointer. This allows us to handle the case where a foreign | ||
| 1893 | pid or boot time exceeds the local range. All uses changed. | ||
| 1894 | (LINKS_MIGHT_NOT_WORK): New constant. | ||
| 1895 | (FREE_LOCK_INFO): Remove, as the pieces no longer need freeing. | ||
| 1896 | (defined_WINDOWSNT): Remove. | ||
| 1897 | (MAKE_LOCK_NAME, file_in_lock_file_name): | ||
| 1898 | Always use .#FILE (not .#-FILE) for the file lock, | ||
| 1899 | even if it is a regular file. | ||
| 1900 | (rename_lock_file): New function. | ||
| 1901 | (create_lock_file): Use it. | ||
| 1902 | (create_lock_file, read_lock_data): | ||
| 1903 | Prefer a symbolic link for the lock file, falling back on a | ||
| 1904 | regular file if symlinks don't work. Do not try to create | ||
| 1905 | symlinks on MS-Windows, due to security hassles. Stick with | ||
| 1906 | POSIXish functions (open, read, write, close, fchmod, readlink, symlink, | ||
| 1907 | link, rename, unlink, mkstemp) when creating locks, as a GNUish | ||
| 1908 | host may be using a Windowsish file system, and cannot use | ||
| 1909 | MS-Windows-only system calls. Fall back on mktemp if mkstemp | ||
| 1910 | doesn't work. Don't fail merely because of a symlink-contents | ||
| 1911 | length limit in the current file system; fall back on regular | ||
| 1912 | files. Increase the symlink contents length limit to 8 KiB, this | ||
| 1913 | should be big enough for any real use and doesn't crunch the | ||
| 1914 | stack. | ||
| 1915 | (create_lock_file, lock_file_1, read_lock_data): | ||
| 1916 | Simplify allocation of lock file buffers now that they fit in 8 KiB. | ||
| 1917 | (lock_file_1): Return error number, not bool. All callers changed. | ||
| 1918 | (ELOOP): New macro, if not already defined. | ||
| 1919 | (read_lock_data): Return size of lock file contents, not Lisp object. | ||
| 1920 | All callers changed. Handle a race condition if some other process | ||
| 1921 | replaces a regular-file lock with a symlink lock or vice versa, | ||
| 1922 | while we're trying to read the lock. | ||
| 1923 | (current_lock_owner): Parse contents more carefully, to help avoid | ||
| 1924 | confusing a regular-file lock with some other application's use | ||
| 1925 | of the file. Check for lock file contents being too long, or | ||
| 1926 | not parsing correctly. | ||
| 1927 | (current_lock_owner, lock_file): | ||
| 1928 | Allow foreign pid and boot times that exceed the local range. | ||
| 1929 | (current_lock_owner, lock_if_free, lock_file): | ||
| 1930 | Simplify allocation of lock file contents. | ||
| 1931 | * w32.c (sys_rename_replace): New function, containing most of | ||
| 1932 | the contents of the old sys_rename. | ||
| 1933 | (sys_rename): Use it. | ||
| 1934 | (fchmod): New dummy function. | ||
| 1935 | * w32.h (sys_rename_replace, fchmod): New decls. | ||
| 1936 | |||
| 1937 | 2013-03-05 Eli Zaretskii <eliz@gnu.org> | ||
| 1938 | |||
| 1939 | * bidi.c (bidi_resolve_explicit_1): Don't call CHAR_TO_BYTE or | ||
| 1940 | bidi_count_bytes, as the callers now arrange for bidi_it->charpos | ||
| 1941 | to be in sync with bidi_it->bytepos. Suggested by Dmitry Antipov | ||
| 1942 | <dmantipov@yandex.ru>. | ||
| 1943 | |||
| 1944 | 2013-03-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1945 | |||
| 1946 | * composite.c (get_composition_id, fill_gstring_header): | ||
| 1947 | Use make_uninit_vector where appropriate. | ||
| 1948 | * font.c (Ffont_get_glyphs, build_style_table): Likewise. | ||
| 1949 | * xselect.c (clean_local_selection_data): Likewise. | ||
| 1950 | |||
| 1951 | 2013-03-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1952 | |||
| 1953 | Fix misuse of ImageMagick that caused core dump (Bug#13846). | ||
| 1954 | * image.c (imagemagick_load_image): Calculate height and width | ||
| 1955 | after flattening the image, not before. | ||
| 1956 | |||
| 1957 | 2013-03-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 1958 | |||
| 1959 | * font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW. | ||
| 1960 | * ftfont.c (ftfont_shape_by_flt): Likewise. | ||
| 1961 | * w32uniscribe.c (uniscribe_shape): Likewise. | ||
| 1962 | |||
| 1963 | 2013-03-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1964 | |||
| 1965 | The lock for FILE is now .#FILE or .#-FILE (Bug#13807). | ||
| 1966 | The old approach, which fell back on DIR/.#FILE.0 through | ||
| 1967 | DIR/.#FILE.9, had race conditions that could not be easily fixed. | ||
| 1968 | If DIR/.#FILE is a non-symlink file, Emacs now does not create a | ||
| 1969 | lock file for DIR/FILE; that is, DIR/FILE is no longer partly | ||
| 1970 | protected by a lock if DIR/.#FILE is a non-symlink file ("partly" | ||
| 1971 | because the locking mechanism was never reliable in that case). | ||
| 1972 | This patch fixes this and other bugs discovered by a code | ||
| 1973 | inspection that was prompted by | ||
| 1974 | <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00531.html>. | ||
| 1975 | Also, this patch switches to .#-FILE (not .#FILE) on MS-Windows, | ||
| 1976 | to avoid interoperability problems between the MS-Windows and | ||
| 1977 | non-MS-Windows implementations. MS-Windows and non-MS-Windows | ||
| 1978 | instances of Emacs now ignore each others' locks. | ||
| 1979 | * filelock.c (defined_WINDOWSNT): New constant. | ||
| 1980 | (MAKE_LOCK_NAME, fill_in_lock_file_name): | ||
| 1981 | Don't create DIR/.#FILE.0 through DIR/.#FILE.9. Instead, create | ||
| 1982 | DIR/.#FILE symlinks on non-MS-Windows hosts, and DIR/.#-FILE | ||
| 1983 | regular files on MS-Windows hosts. | ||
| 1984 | (MAKE_LOCK_NAME, unlock_file, Ffile_locked_p): | ||
| 1985 | Use SAFE_ALLOCA to avoid problems with long file names. | ||
| 1986 | (MAX_LFINFO): Now a local constant, not a global macro. | ||
| 1987 | (IS_LOCK_FILE): Remove. | ||
| 1988 | (lock_file_1): Don't inspect errno if symlink call succeeds; | ||
| 1989 | that's not portable. | ||
| 1990 | (lock_file): Document that this function can return if lock | ||
| 1991 | creation fails. | ||
| 1992 | (lock_file): Don't access freed storage. | ||
| 1993 | |||
| 1994 | 2013-03-02 Andreas Schwab <schwab@linux-m68k.org> | ||
| 1995 | |||
| 1996 | * lisp.h (XPNTR) [!USE_LSB_TAG]: Remove extra paren. (Bug#13734) | ||
| 1997 | |||
| 1998 | 2013-03-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 1999 | |||
| 2000 | * textprop.c: Use bool for booleans. | ||
| 2001 | (validate_interval_range, Fadd_text_properties) | ||
| 2002 | (Fremove_text_properties): Prefer bool to int when either works. | ||
| 2003 | |||
| 2004 | 2013-03-02 Eli Zaretskii <eliz@gnu.org> | ||
| 2005 | |||
| 2006 | * textprop.c (Fadd_text_properties, Fremove_text_properties): | ||
| 2007 | If the interval tree changes as a side effect of calling | ||
| 2008 | modify_region, re-do processing starting from the call to | ||
| 2009 | validate_interval_range. (Bug#13743) | ||
| 2010 | |||
| 2011 | 2013-02-28 Eli Zaretskii <eliz@gnu.org> | ||
| 2012 | |||
| 2013 | * w32.c (sys_open): Don't reset the flags for FD in fd_info[]. | ||
| 2014 | (Bug#13546). | ||
| 2015 | |||
| 2016 | 2013-02-27 Eli Zaretskii <eliz@gnu.org> | ||
| 2017 | |||
| 2018 | * filelock.c (create_lock_file) [WINDOWSNT]: Use _sopen with | ||
| 2019 | _SH_DENYRW flag, instead of emacs_open, to deny any other process | ||
| 2020 | access to the lock file until it is written and closed. | ||
| 2021 | (Bug#13807) | ||
| 2022 | |||
| 2023 | 2013-02-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2024 | |||
| 2025 | * callint.c (Qcall_interactively): | ||
| 2026 | * macros.c (Qexecute_kbd_macro): | ||
| 2027 | Now static. | ||
| 2028 | |||
| 2029 | 2013-02-26 Bastien Guerry <bzg@gnu.org> | ||
| 2030 | |||
| 2031 | * window.c (Frecenter): Tiny docstring enhancement. | ||
| 2032 | |||
| 2033 | 2013-02-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2034 | |||
| 2035 | Minor textprop integer cleanup. | ||
| 2036 | * intervals.h, textprop.c (add_text_properties_from_list): | ||
| 2037 | Return void, not int, since nobody uses the return value. | ||
| 2038 | * textprop.c (validate_plist, add_properties, remove_properties) | ||
| 2039 | (Fadd_text_properties): | ||
| 2040 | Don't assume list length fits in int. | ||
| 2041 | (interval_has_all_properties, interval_has_some_properties) | ||
| 2042 | (interval_has_some_properties_list, add_properties, remove_properties) | ||
| 2043 | (Fadd_text_properties, Fremove_text_properties) | ||
| 2044 | (Fremove_list_of_text_properties, text_property_stickiness): | ||
| 2045 | Use bool for booleans. | ||
| 2046 | (Fadd_text_properties, Fremove_text_properties): | ||
| 2047 | (Fremove_list_of_text_properties): | ||
| 2048 | Reindent do-while as per GNU style. | ||
| 2049 | |||
| 2050 | 2013-02-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2051 | |||
| 2052 | Implement CLASH_DETECTION for MS-Windows. | ||
| 2053 | |||
| 2054 | * filelock.c [WINDOWSNT]: Include w32.h. | ||
| 2055 | (MAKE_LOCK_NAME): Don't use 'lock', it clashes with MS runtime | ||
| 2056 | function of that name. Up-case the macro arguments. | ||
| 2057 | (IS_LOCK_FILE): New macro. | ||
| 2058 | (fill_in_lock_file_name): Use IS_LOCK_FILE instead of S_ISLNK. | ||
| 2059 | (create_lock_file): New function, with body extracted from | ||
| 2060 | lock_file_1. | ||
| 2061 | [WINDOWSNT]: Implement lock files by writing a regular file with | ||
| 2062 | the lock information as its contents. | ||
| 2063 | (read_lock_data): New function, on Posix platforms just calls | ||
| 2064 | emacs_readlinkat. | ||
| 2065 | [WINDOWSNT]: Read the lock info from the file. | ||
| 2066 | (current_lock_owner): Call read_lock_data instead of calling | ||
| 2067 | emacs_readlinkat directly. | ||
| 2068 | (lock_file) [WINDOWSNT]: Run the file name through | ||
| 2069 | dostounix_filename. | ||
| 2070 | |||
| 2071 | * w32proc.c (sys_kill): Support the case of SIG = 0, in which case | ||
| 2072 | just check if the process by that PID exists. | ||
| 2073 | |||
| 2074 | * w32.c (sys_open): Don't reset the _O_CREAT flag if _O_EXCL is | ||
| 2075 | also present, as doing so will fail to error out if the file | ||
| 2076 | already exists. | ||
| 2077 | |||
| 2078 | * makefile.w32-in ($(BLD)/filelock.$(O)): Depend on src/w32.h. | ||
| 2079 | |||
| 2080 | * textprop.c (Fadd_text_properties, Fremove_text_properties) | ||
| 2081 | (Fremove_list_of_text_properties): Skip all of the intervals in | ||
| 2082 | the region between START and END that already have resp. don't | ||
| 2083 | have the requested properties, not just the first one. | ||
| 2084 | Add assertions that the loop afterwards always modifies the | ||
| 2085 | properties. (Bug#13743) | ||
| 2086 | |||
| 2087 | 2013-02-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2088 | |||
| 2089 | * callint.c (Fcall_interactively): Use the right lexical environment | ||
| 2090 | for `interactive' specs (bug#13811). | ||
| 2091 | * eval.c (Feval): Accept a lexical environment. | ||
| 2092 | |||
| 2093 | 2013-02-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2094 | |||
| 2095 | Simplify data_start configuration (Bug#13783). | ||
| 2096 | This is a followon simplification to the fix for Bug#13650. | ||
| 2097 | * Makefile.in (LD_FIRSTFLAG, LIB_GCC, CRT_DIR, LIB_STANDARD) | ||
| 2098 | (START_FILES): Remove. All uses removed. | ||
| 2099 | (otherobj): Remove $(VMLIMIT_OBJ), as it's now first. | ||
| 2100 | (ALLOBJS): Move here from autodeps.mk, and with VMLIMITS_OBJ first. | ||
| 2101 | (buildobj.h): Use it. | ||
| 2102 | ($(ALLOBJS)): Depend on globals.h. | ||
| 2103 | (temacs$(EXEEXT)): Use $(ALLOBJS). | ||
| 2104 | * autodeps.mk (ALLOBJS): Move to Makefile.in. | ||
| 2105 | * deps.mk (vm-limit.o): | ||
| 2106 | * makefile.w32-in ($(BLD)/vm-limit.$(O)): | ||
| 2107 | Do not depend on mem-limits.h. | ||
| 2108 | * emacs.c (__do_global_ctors, __do_global_ctors_aux) | ||
| 2109 | (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__) | ||
| 2110 | [__GNUC__ && !ORDINARY_LINK]: Remove. | ||
| 2111 | * mem-limits.h, pre-crt0.c: Remove. | ||
| 2112 | * unexaix.c, unexcoff.c: Don't include mem-limits.h. | ||
| 2113 | * unexcoff.c (etext): New decl. | ||
| 2114 | (make_hdr): Use DATA_START instead of start_of_data. | ||
| 2115 | * vm-limit.c: Move most of mem-limits.h's contents here. | ||
| 2116 | (data_start): New decl. It's OK if this is approximate, | ||
| 2117 | so simplify-away some unnecessary exactness. | ||
| 2118 | (POINTER): Remove; all uses removed. | ||
| 2119 | (data_space_start): Now char *, to avoid casts. | ||
| 2120 | (exceeds_lisp_ptr): New function, replacing the old | ||
| 2121 | EXCEEDS_LISP_PTR macro. All uses changed. | ||
| 2122 | (check_memory_limits): Simplify and remove casts. | ||
| 2123 | (start_of_data) [!CANNOT_DUMP || !SYSTEM_MALLOC]: Remove. | ||
| 2124 | (memory_warnings): Use data_start instead of start_of_data. | ||
| 2125 | |||
| 2126 | 2013-02-24 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2127 | |||
| 2128 | * xdisp.c (set_message): Only check for debug-on-message if STRING | ||
| 2129 | is a string. (Bug#13797) | ||
| 2130 | |||
| 2131 | 2013-02-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2132 | |||
| 2133 | Fix regression introduced by July 10 filelock.c patch. | ||
| 2134 | * filelock.c (fill_in_lock_file_name): Fix crash caused by the | ||
| 2135 | 2012-07-10 patch to this file. Reported by Eli Zaretskii in | ||
| 2136 | <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00533.html> | ||
| 2137 | and diagnosed by Andreas Schwab in | ||
| 2138 | <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00534.html>. | ||
| 2139 | |||
| 2140 | 2013-02-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2141 | |||
| 2142 | Assume C89 or better. | ||
| 2143 | * ralloc.c (SIZE, POINTER, NIL): | ||
| 2144 | * vm-limit.c (POINTER): | ||
| 2145 | Remove, replacing all uses with C89 equivalents. These old | ||
| 2146 | symbols were present only for porting to pre-C89 platforms. | ||
| 2147 | |||
| 2148 | 2013-02-22 Claudio Bley <claudio.bley@gmail.com> | ||
| 2149 | |||
| 2150 | * w32.c (emacs_gnutls_pull): Don't call 'select', and don't loop. | ||
| 2151 | This avoids warning messages reported as part of Bug#13546. | ||
| 2152 | |||
| 2153 | 2013-02-21 Ken Brown <kbrown@cornell.edu> | ||
| 2154 | |||
| 2155 | * sheap.c (report_sheap_usage): Fix arguments of message1_no_log. | ||
| 2156 | |||
| 2157 | 2013-02-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2158 | |||
| 2159 | * sheap.c (report_sheap_usage): Prefer message1_nolog. | ||
| 2160 | |||
| 2161 | * keyboard.c (Qcommand_execute): New var. | ||
| 2162 | (command_loop_1, read_char): Use it. | ||
| 2163 | (Fcommand_execute): Remove, replace by an Elisp implementation. | ||
| 2164 | (syms_of_keyboard): Adjust accordingly. | ||
| 2165 | |||
| 2166 | 2013-02-19 Daniel Colascione <dancol@dancol.org> | ||
| 2167 | |||
| 2168 | * sheap.c (report_sheap_usage): Use message, not message1, so | ||
| 2169 | that we don't try to create a buffer while we're in the middle | ||
| 2170 | of dumping Emacs. Explain why. | ||
| 2171 | |||
| 2172 | 2013-02-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2173 | |||
| 2174 | * search.c (find_newline): Return byte position in bytepos. | ||
| 2175 | Adjust comment. | ||
| 2176 | (find_next_newline_no_quit, find_before_next_newline): | ||
| 2177 | Add bytepos argument. | ||
| 2178 | * lisp.h (find_newline, find_next_newline_no_quit) | ||
| 2179 | (find_before_next_newline): Adjust prototypes. | ||
| 2180 | * bidi.c (bidi_find_paragraph_start): | ||
| 2181 | * editfns.c (Fconstrain_to_field, Fline_end_position): | ||
| 2182 | * indent.c (compute_motion, vmotion): | ||
| 2183 | * xdisp.c (back_to_previous_line_start, forward_to_next_line_start): | ||
| 2184 | (get_visually_first_element, move_it_vertically_backward): | ||
| 2185 | Adjust users and avoid calls to CHAR_TO_BYTE where appropriate. | ||
| 2186 | |||
| 2187 | 2013-02-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2188 | |||
| 2189 | * w32proc.c (new_child): Avoid leaking handles if the subprocess | ||
| 2190 | resources were not orderly released. | ||
| 2191 | |||
| 2192 | 2013-02-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2193 | |||
| 2194 | * xdisp.c (x_draw_vertical_border): For a window that is neither | ||
| 2195 | the leftmost nor the rightmost, redraw both the left and the right | ||
| 2196 | vertical borders. (Bug#13723) | ||
| 2197 | |||
| 2198 | 2013-02-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2199 | |||
| 2200 | * xml.c (init_libxml2_functions): | ||
| 2201 | * sound.c (sound_warning): | ||
| 2202 | * sheap.c (report_sheap_usage): | ||
| 2203 | * process.c (wait_reading_process_output): | ||
| 2204 | * msdos.c (XMenuActivate): | ||
| 2205 | * macros.c (Fstart_kbd_macro, Fend_kbd_macro): | ||
| 2206 | * keyboard.c (top_level_1): | ||
| 2207 | * editfns.c (Fmessage, Fmessage_box): | ||
| 2208 | * callint.c (Fcall_interactively): | ||
| 2209 | * fns.c (Fyes_or_no_p): Prefer `message1' over `message'. | ||
| 2210 | |||
| 2211 | 2013-02-17 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2212 | |||
| 2213 | * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ... | ||
| 2214 | * frame.c (syms_of_frame): ... to here. | ||
| 2215 | |||
| 2216 | 2013-02-16 Eli Zaretskii <eliz@gnu.org> | ||
| 2217 | |||
| 2218 | * w32.c (sys_chown): Remove unused function. | ||
| 2219 | |||
| 2220 | * w32term.c <input_signal_count>: Declare 'volatile' | ||
| 2221 | unconditionally. (Bug#9066) | ||
| 2222 | |||
| 2223 | * w32.c (set_errno): Reset h_errno and don't set it to any other | ||
| 2224 | value. Set errno instead. | ||
| 2225 | (check_errno): Reset h_errno. | ||
| 2226 | (sys_socket, socket_to_fd, sys_bind, sys_connect) | ||
| 2227 | (sys_gethostname, sys_getservbyname, sys_getpeername) | ||
| 2228 | (sys_shutdown, sys_setsockopt, sys_listen, sys_getsockname) | ||
| 2229 | (sys_accept, sys_recvfrom, sys_sendto, fcntl, sys_read): Don't set | ||
| 2230 | h_errno. | ||
| 2231 | (sys_gethostbyname): Set h_errno only errors detected. | ||
| 2232 | |||
| 2233 | 2013-02-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2234 | |||
| 2235 | * process.c (h_errno) [!HAVE_H_ERRNO]: Remove unused decl. | ||
| 2236 | |||
| 2237 | 2013-02-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2238 | |||
| 2239 | * keyboard.c (read_char): Fix calculation of auto-save time out | ||
| 2240 | when auto-save-timeout is less than 4. (Bug#13720) | ||
| 2241 | |||
| 2242 | * w32proc.c (new_child): Free up to 2 slots of dead processes at a | ||
| 2243 | time. Improve diagnostics in DebPrint. (Bug#13546) | ||
| 2244 | |||
| 2245 | * w32.c (sys_socket, sys_bind, sys_connect, sys_gethostname) | ||
| 2246 | (sys_gethostbyname, sys_getservbyname, sys_getpeername) | ||
| 2247 | (sys_shutdown, sys_setsockopt, sys_listen, sys_getsockname) | ||
| 2248 | (sys_accept, sys_recvfrom, sys_sendto, fcntl): In case of failure, | ||
| 2249 | make sure errno is set to an appropriate value. (Bug#13546) | ||
| 2250 | (socket_to_fd): Add assertion against indexing fd_info[] with a | ||
| 2251 | value that is out of bounds. | ||
| 2252 | (sys_accept): If fd is negative, do not set up the child_process | ||
| 2253 | structure for reading. | ||
| 2254 | |||
| 2255 | 2013-02-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2256 | |||
| 2257 | * composite.c (fill_gstring_header): Remove useless prototype. | ||
| 2258 | Break long line. | ||
| 2259 | * lisp.h (message_dolog, compile_pattern): Adjust prototype. | ||
| 2260 | * print.c (PRINTDECLARE, print_object): | ||
| 2261 | * search.c (compile_pattern, fast_looking_at, search_buffer): | ||
| 2262 | (simple_search, boyer_moore, Freplace_match): | ||
| 2263 | * xdisp.c (c_string_pos, number_of_chars, message_dolog): | ||
| 2264 | (get_overlay_arrow_glyph_row, display_mode_element): | ||
| 2265 | (decode_mode_spec_coding, message3): | ||
| 2266 | * xfaces.c (face_at_string_position): Use bool for booleans. | ||
| 2267 | Adjust comments. | ||
| 2268 | |||
| 2269 | 2013-02-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2270 | |||
| 2271 | Fix AIX port (Bug#13650). | ||
| 2272 | * lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]: | ||
| 2273 | Fix bug introduced in 2012-07-27 change. DATA_SEG_BITS, if set, | ||
| 2274 | was #undeffed earlier, so it cannot be used as a macro here. | ||
| 2275 | Use the constant and not the macro. | ||
| 2276 | |||
| 2277 | 2013-02-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2278 | |||
| 2279 | * w32proc.c (new_child): If no vacant slots are found in | ||
| 2280 | child_procs[], make another pass looking for slots whose process | ||
| 2281 | has exited or died. (Bug#13546) | ||
| 2282 | |||
| 2283 | * w32.c (sys_pipe): When failing due to file descriptors above | ||
| 2284 | MAXDESC, set errno to EMFILE. | ||
| 2285 | (_sys_read_ahead): Update cp->status when failing to read serial | ||
| 2286 | communications input, so that the status doesn't stay at | ||
| 2287 | STATUS_READ_IN_PROGRESS. (Bug#13546) | ||
| 2288 | |||
| 2289 | 2013-02-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2290 | |||
| 2291 | * gtkutil.c (tb_size_cb): New function. | ||
| 2292 | (xg_create_tool_bar): Connect size-allocate to tb_size_cb (Bug#13512). | ||
| 2293 | |||
| 2294 | 2013-02-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2295 | |||
| 2296 | * keyboard.c (active_maps): Fcurrent_active_maps expects a position, not | ||
| 2297 | an event. | ||
| 2298 | |||
| 2299 | 2013-02-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2300 | |||
| 2301 | * keyboard.c (syms_of_keyboard): Further tweaks of docstring. | ||
| 2302 | |||
| 2303 | 2013-02-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2304 | |||
| 2305 | * font.c (font_range): Add pos_byte argument. Adjust comment | ||
| 2306 | and break long line. | ||
| 2307 | * font.h (font_range): Adjust prototype. | ||
| 2308 | * composite.c (autocmp_chars): Pass byte position to font_range. | ||
| 2309 | Break long line. Remove useless prototype and format comment. | ||
| 2310 | |||
| 2311 | 2013-02-13 Glenn Morris <rgm@gnu.org> | ||
| 2312 | |||
| 2313 | * keyboard.c (input-decode-map, key-translation-map): Doc fixes. | ||
| 2314 | |||
| 2315 | 2013-02-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2316 | |||
| 2317 | Improve AIX port some more (Bug#13650). | ||
| 2318 | With this, it should be as good as it was in 23.3, though it's | ||
| 2319 | still pretty bad: the dumped emacs does not run. See Mark Fleishman in | ||
| 2320 | http://lists.gnu.org/archive/html/help-gnu-emacs/2011-04/msg00287.html | ||
| 2321 | * unexaix.c (start_of_text): Remove. | ||
| 2322 | (_data, _text): Declare as char[], not int, as AIX manual suggests. | ||
| 2323 | (bias, lnnoptr, text_scnptr, data_scnptr, load_scnptr) | ||
| 2324 | (orig_load_scnptr, orig_data_scnptr): | ||
| 2325 | Now off_t, not long, since they are file offsets. | ||
| 2326 | (make_hdr): Use _data, not start_of_data (). | ||
| 2327 | This is the key part of the fix. | ||
| 2328 | (make_hdr, unrelocate_symbols): Use off_t for file offsets. | ||
| 2329 | (unrelocate_symbols): Cast pointers to intptr_t, not to ulong. | ||
| 2330 | |||
| 2331 | * pre-crt0.c (data_start): Initialize to 1. | ||
| 2332 | This ports to compilers that optimize the external declaration | ||
| 2333 | 'int x = 0;' as if it were 'int x;' to shrink the executable. | ||
| 2334 | |||
| 2335 | Improve AIX port (Bug#13650). | ||
| 2336 | This doesn't fix the bug, but it makes progress: Emacs builds now. | ||
| 2337 | * unexaix.c: Include inttypes.h, stdarg.h. | ||
| 2338 | (report_error, report_error_1): Mark as _Noreturn. | ||
| 2339 | (report_error): Don't report the wrong errno. | ||
| 2340 | (report_error_1): Now varargs. All callers changed. | ||
| 2341 | (make_hdr): Use uintptr_t, not unsigned, when converting pointers | ||
| 2342 | to unsigned. Don't use ADDR_CORRECT, as it no longer exists. | ||
| 2343 | (write_ptr): Use %p to print address rather than %lx and a cast | ||
| 2344 | to unsigned long. Grow buffer a bit, to be safer. | ||
| 2345 | |||
| 2346 | 2013-02-13 Eli Zaretskii <eliz@gnu.org> | ||
| 2347 | |||
| 2348 | * bidi.c (bidi_resolve_neutral): After finding the next | ||
| 2349 | non-neutral character, accept NEUTRAL_ON type as well, because | ||
| 2350 | directional control characters, such as LRE and RLE, have their | ||
| 2351 | type converted to that by bidi_resolve_weak. This avoids aborts | ||
| 2352 | when LRE/RLE follows a run of neutrals. | ||
| 2353 | (bidi_move_to_visually_next): Assert that return value of | ||
| 2354 | bidi_peek_at_next_level is non-negative. Negative values will | ||
| 2355 | cause an infloop. | ||
| 2356 | |||
| 2357 | 2013-02-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2358 | |||
| 2359 | Minor getenv-related fixes. | ||
| 2360 | * callproc.c (Fcall_process_region) [!DOS_NT]: | ||
| 2361 | Avoid unnecessary duplicate call to getenv. | ||
| 2362 | * callproc.c (init_callproc): | ||
| 2363 | * dispnew.c (init_display): | ||
| 2364 | * sysdep.c (sys_subshell): | ||
| 2365 | Omit unnecessary cast of getenv or egetenv. | ||
| 2366 | |||
| 2367 | 2013-02-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 2368 | |||
| 2369 | * makefile.w32-in ($(BLD)/filelock.$(O), $(BLD)/sysdep.$(O)): | ||
| 2370 | Update dependencies. | ||
| 2371 | |||
| 2372 | 2013-02-12 Eli Zaretskii <eliz@gnu.org> | ||
| 2373 | |||
| 2374 | * xdisp.c (redisplay_internal): Don't set w->region_showing to the | ||
| 2375 | marker's position. | ||
| 2376 | (display_line): Set w->region_showing to the value of | ||
| 2377 | it->region_beg_charpos, not to -1. This fixes redisplay | ||
| 2378 | optimization when cursor is moved up after M->. (Bug#13623) | ||
| 2379 | (Bug#13626) | ||
| 2380 | (try_scrolling): Scroll text up more if point is too close to ZV | ||
| 2381 | and inside the scroll margin. This makes sure point is moved | ||
| 2382 | outside the scroll margin in these cases. | ||
| 2383 | |||
| 2384 | * window.h (struct window): region_showing can no longer be | ||
| 2385 | negative. | ||
| 2386 | |||
| 2387 | 2013-02-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2388 | |||
| 2389 | Tune by using memchr and memrchr. | ||
| 2390 | * doc.c (Fsnarf_documentation): | ||
| 2391 | * fileio.c (Fsubstitute_in_file_name): | ||
| 2392 | * search.c (find_newline, scan_newline): | ||
| 2393 | * xdisp.c (pos_visible_p, display_count_lines): | ||
| 2394 | Use memchr and memrchr rather than scanning byte-by-byte. | ||
| 2395 | * search.c (find_newline): Rename from scan_buffer. | ||
| 2396 | Omit first arg TARGET, as it's always '\n'. All callers changed. | ||
| 2397 | |||
| 2398 | Clean up read_key_sequence a tiny bit more. | ||
| 2399 | * keyboard.c (read_char_x_menu_prompt) [HAVE_MENUS]: | ||
| 2400 | (read_key_sequence): Remove unused locals. | ||
| 2401 | |||
| 2402 | 2013-02-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2403 | |||
| 2404 | Clean up read_key_sequence a bit; reread active keymaps after first event. | ||
| 2405 | * keyboard.c (read_char, read_char_x_menu_prompt) | ||
| 2406 | (read_char_minibuf_menu_prompt): | ||
| 2407 | Replace nmaps+maps with a single `map' arg. | ||
| 2408 | (follow_key): Operate on a single map. | ||
| 2409 | (active_maps): New function. | ||
| 2410 | (test_undefined): Also return true for nil bindings. | ||
| 2411 | (read_key_sequence): Use active_maps to replace the arrays of keymaps with | ||
| 2412 | a single (composed) keymap. Remember `first_event' to choose the right | ||
| 2413 | set of active keymaps. Recompute the set of keymaps after receiving | ||
| 2414 | the first event. Remove GOBBLE_FIRST_EVENT. | ||
| 2415 | (syms_of_keyboard): Remove inhibit_local_menu_bar_menus. | ||
| 2416 | * keyboard.h (read_char): Update declaration. | ||
| 2417 | * lread.c (read_filtered_event): Adjust call to read_char. | ||
| 2418 | |||
| 2419 | 2013-02-11 Eli Zaretskii <eliz@gnu.org> | ||
| 2420 | |||
| 2421 | * xdisp.c (move_it_vertically_backward, move_it_by_lines): | ||
| 2422 | Don't use the limitation on backwards movement when lines are truncated | ||
| 2423 | in the window. (Bug#13675) | ||
| 2424 | |||
| 2425 | 2013-02-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2426 | |||
| 2427 | * marker.c (set_marker_internal): If desired position is passed | ||
| 2428 | as a marker, avoid call to buf_charpos_to_bytepos. | ||
| 2429 | * window.c (Fset_window_point): Omit redundant type checking. | ||
| 2430 | (Fset_window_start): Likewise. Format comment. | ||
| 2431 | (window_scroll_pixel_based): Use set_marker_restricted_both | ||
| 2432 | with character and byte positions obtained from an iterator. | ||
| 2433 | (Fset_window_configuration): Use set_marker_restricted_both. | ||
| 2434 | * xdisp.c (message_dolog): Likewise. | ||
| 2435 | |||
| 2436 | 2013-02-10 Eli Zaretskii <eliz@gnu.org> | ||
| 2437 | |||
| 2438 | * xdisp.c (move_it_vertically_backward, move_it_by_lines): | ||
| 2439 | When text lines are longer than window's screen lines, don't move back | ||
| 2440 | too far. This speeds up some redisplay operations. (Bug#13675) | ||
| 2441 | |||
| 2442 | 2013-02-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2443 | |||
| 2444 | * syntax.c (scan_sexps_forward): Fix byte position calculation | ||
| 2445 | Bug#13664 (a.k.a Bug#13667) introduced with 2013-02-08 change. | ||
| 2446 | |||
| 2447 | 2013-02-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2448 | |||
| 2449 | * fileio.c (Fexpand_file_name): Omit confusing pointer comparison | ||
| 2450 | that was not needed. | ||
| 2451 | |||
| 2452 | 2013-02-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2453 | |||
| 2454 | Minor hashing refactoring. | ||
| 2455 | * fns.c (SXHASH_REDUCE): Move to lisp.h. | ||
| 2456 | (sxhash_float): Return EMACS_UINT, for consistency with the other | ||
| 2457 | hash functions. | ||
| 2458 | * lisp.h (INTMASK): Now a macro, since SXHASH_REDUCE is now a | ||
| 2459 | non-static inline function and therefore can't use static vars. | ||
| 2460 | (SXHASH_REDUCE): Move here from fns.c, and make it inline. | ||
| 2461 | * profiler.c (hashfn_profiler): Use SXHASH_REDUCE, to be consistent | ||
| 2462 | with the other hash functions. | ||
| 2463 | |||
| 2464 | 2013-02-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2465 | |||
| 2466 | * callproc.c (Fcall_process_region) [WINDOWSNT]: Make sure the | ||
| 2467 | XXXXXX part of the temporary file pattern is not downcased even | ||
| 2468 | when w32-downcase-file-names is non-nil. (Bug#13661) | ||
| 2469 | |||
| 2470 | * xdisp.c (decode_mode_spec): Remove handling of %t. | ||
| 2471 | |||
| 2472 | * msdos.c (careadlinkatcwd): Remove. | ||
| 2473 | |||
| 2474 | 2013-02-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2475 | |||
| 2476 | * lread.c (skip_dyn_bytes): New function (bug#12598). | ||
| 2477 | (read1): Use it. Use getc instead of READCHAR to read bytes. | ||
| 2478 | (load_each_byte): Remove. Update users. | ||
| 2479 | |||
| 2480 | 2013-02-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2481 | |||
| 2482 | * search.c (scan_buffer): Calculate end byte position just once. | ||
| 2483 | (scan_newline): Do not recalculate start_byte. | ||
| 2484 | (search_command): Use eassert. | ||
| 2485 | * syntax.c (struct lisp_parse_state): New member location_byte. | ||
| 2486 | (scan_sexps_forward): Record from_byte and avoid redundant | ||
| 2487 | character to byte position calculation ... | ||
| 2488 | (Fparse_partial_sexp): ... here. Break too long line. | ||
| 2489 | |||
| 2490 | 2013-02-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2491 | |||
| 2492 | * lisp.h (make_uninit_vector): New function. | ||
| 2493 | * alloc.c (Fvector, Fmake_byte_code): | ||
| 2494 | * ccl.c (Fregister_ccl_program): | ||
| 2495 | * charset.c (Fdefine_charset_internal, define_charset_internal): | ||
| 2496 | * coding.c (make_subsidiaries, Fdefine_coding_system_internal): | ||
| 2497 | * composite.c (syms_of_composite): | ||
| 2498 | * font.c (Fquery_font, Ffont_info, syms_of_font): | ||
| 2499 | * fontset.c (FONT_DEF_NEW, Fset_fontset_font): | ||
| 2500 | * ftfont.c (ftfont_shape_by_flt): | ||
| 2501 | * indent.c (recompute_width_table): | ||
| 2502 | * nsselect.m (clean_local_selection_data): | ||
| 2503 | * syntax.c (init_syntax_once): | ||
| 2504 | * w32unsubscribe.c (uniscribe_shape): | ||
| 2505 | * window.c (Fcurrent_window_configuration): | ||
| 2506 | * xfaces.c (Fx_family_fonts): | ||
| 2507 | * xselect.c (selection_data_to_lisp_data): Use it. | ||
| 2508 | |||
| 2509 | 2013-02-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2510 | |||
| 2511 | * coding.c (Fdefine_coding_system_internal): Use AREF where | ||
| 2512 | argument is known to be a vector. | ||
| 2513 | * fns.c (Flocale_info): Likewise for ASET. | ||
| 2514 | * xselect.c (selection_data_to_lisp_data): Likewise for ASET. | ||
| 2515 | * w32fns.c (w32_parse_hot_key): Likewise for ASIZE and AREF. | ||
| 2516 | |||
| 2517 | 2013-02-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2518 | |||
| 2519 | * nsmenu.m (update_frame_tool_bar): Check for negative tool bar | ||
| 2520 | height. | ||
| 2521 | |||
| 2522 | * nsterm.h (HAVE_NATIVE_FS): Define if OSX => 10.7. | ||
| 2523 | (EmacsView): Add fs_is_native, fsIsNative, isFullscreen and | ||
| 2524 | updateCollectionBehaviour. | ||
| 2525 | |||
| 2526 | * nsterm.m (NEW_STYLE_FS): Remove. | ||
| 2527 | (ns_last_use_native_fullscreen): New variable. | ||
| 2528 | (x_make_frame_visible): Replace NEW_STYLE_FS with isFullscreen. | ||
| 2529 | (x_set_window_size): Do not take title bar and tool bar into account | ||
| 2530 | if isFullscreen returns YES. | ||
| 2531 | (ns_fullscreen_hook): Replace NEW_STYLE_FS with isFullscreen. | ||
| 2532 | (check_native_fs): New function. | ||
| 2533 | (ns_select, ns_read_socket): Call check_native_fs if HAVE_NATIVE_FS. | ||
| 2534 | (ns_term_init): Remove NEW_STYLE_FS. | ||
| 2535 | (updateFrameSize:, windowWillResize:toSize:): Only adjust for title bar | ||
| 2536 | and tool bar if isFullscreen returns NO. | ||
| 2537 | (windowDidResize:): Replace NEW_STYLE_FS with fsIsNative. | ||
| 2538 | (initFrameFromEmacs:): Initialize fs_is_native. Replace NEW_STYLE_FS | ||
| 2539 | with HAVE_NATIVE_FS. | ||
| 2540 | (window:willUseFullScreenPresentationOptions:): New method. | ||
| 2541 | (windowDidEnterFullScreen:): Replace NEW_STYLE_FS with fsIsNative. | ||
| 2542 | Hide toolbar if not enabled (Bug#13444). | ||
| 2543 | (windowDidExitFullScreen:): Call updateCollectionBehaviour. | ||
| 2544 | Restore tool bar if enabled, hide it otherwise (Bug#13444). | ||
| 2545 | (fsIsNative, isFullscreen, updateCollectionBehaviour): New methods. | ||
| 2546 | (toggleFullScreen:): If fs_is_native, call toggleFullScreen on | ||
| 2547 | window. Do no set FRAME_EXTERNAL_TOOL_BAR (f) to 0. | ||
| 2548 | Check FRAME_EXTERNAL_TOOL_BAR (f) before restoring | ||
| 2549 | FRAME_TOOLBAR_HEIGHT (f). Call updateFrameSize when going non-fs. | ||
| 2550 | (syms_of_nsterm): Add ns-use-native-fullscreen. | ||
| 2551 | |||
| 2552 | 2013-02-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2553 | |||
| 2554 | * fileio.c (Qchoose_write_coding_system): Now static. | ||
| 2555 | |||
| 2556 | 2013-02-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2557 | |||
| 2558 | * xdisp.c (window_buffer_changed): region_showing can be negative, | ||
| 2559 | which still means region is being displayed. | ||
| 2560 | (redisplay_internal): Resurrect code that forced redisplay of the | ||
| 2561 | whole window when showing region and the mark has changed. | ||
| 2562 | Record the new mark position to allow redisplay optimizations. | ||
| 2563 | (display_line): If it->region_beg_charpos is non-zero, set the | ||
| 2564 | window's region_showing member to -1. (Bug#13623) (Bug#13626) | ||
| 2565 | |||
| 2566 | * window.h (struct window) <region_showing>: Declare ptrdiff_t, | ||
| 2567 | not bitfield of 1 bit. | ||
| 2568 | |||
| 2569 | 2013-02-03 Daniel Colascione <dancol@dancol.org> | ||
| 2570 | |||
| 2571 | * emacs.c: Use execvp, not execv, when DAEMON_MUST_EXEC, so that | ||
| 2572 | daemon mode works on cygw32 when Emacs is installed and not just | ||
| 2573 | during development. | ||
| 2574 | |||
| 2575 | 2013-02-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2576 | |||
| 2577 | Avoid file time stamp bug on MS-Windows (Bug#13149). | ||
| 2578 | * fileio.c (Fwrite_region): Don't use the heuristic on empty files, | ||
| 2579 | as FAT32 doesn't update time stamps when truncating them. | ||
| 2580 | Also, check that a file time stamp is not a multiple of 100 ns; | ||
| 2581 | this should catch all instances of the problem on MS-Windows, | ||
| 2582 | as its native file system resolution is 100 ns or worse, and | ||
| 2583 | checking for a non-multiple of 100 ns should impose only a small | ||
| 2584 | overhead on systems with ns resolution. | ||
| 2585 | |||
| 2586 | 2013-02-02 Eli Zaretskii <eliz@gnu.org> | ||
| 2587 | |||
| 2588 | Avoid encoding file names on MS-Windows when they need to be run | ||
| 2589 | through dostounix_filename. | ||
| 2590 | * w32.c (normalize_filename): Accept an additional argument | ||
| 2591 | MULTIBYTE; if non-zero, traverse the file name by bytes and don't | ||
| 2592 | downcase it even if w32-downcase-file-names is non-nil. | ||
| 2593 | (dostounix_filename): Accept an additional argument MULTIBYTE and | ||
| 2594 | pass it to normalize_filename. | ||
| 2595 | (emacs_root_dir): Adjust. | ||
| 2596 | |||
| 2597 | * msdos.h (dostounix_filename): Adjust prototype. | ||
| 2598 | |||
| 2599 | * w32.h (dostounix_filename): Adjust prototype. | ||
| 2600 | |||
| 2601 | * msdos.c (dostounix_filename): Accept an additional argument and | ||
| 2602 | ignore it. | ||
| 2603 | (init_environment): Adjust callers of dostounix_filename. | ||
| 2604 | |||
| 2605 | * fileio.c (Ffile_name_directory, file_name_as_directory) | ||
| 2606 | (directory_file_name, Fexpand_file_name) | ||
| 2607 | (Fsubstitute_in_file_name): [DOS_NT] Adjust call to | ||
| 2608 | dostounix_filename. | ||
| 2609 | [WINDOWSNT]: Downcase file names if w32-downcase-file-names is | ||
| 2610 | non-nil. | ||
| 2611 | (Fsubstitute_in_file_name): [DOS_NT] Don't downcase environment | ||
| 2612 | variables, as egetenv is case-insensitive for DOS_NT. | ||
| 2613 | |||
| 2614 | * dired.c (file_name_completion): Don't call Fdirectory_file_name | ||
| 2615 | with an encoded file name. | ||
| 2616 | |||
| 2617 | * w32proc.c (Fw32_short_file_name, Fw32_long_file_name): | ||
| 2618 | Adjust calls to dostounix_filename. | ||
| 2619 | |||
| 2620 | * w32fns.c (Fx_file_dialog): Adjust call to dostounix_filename. | ||
| 2621 | |||
| 2622 | * unexw32.c (unexec): Adjust call to dostounix_filename. | ||
| 2623 | |||
| 2624 | * termcap.c (tgetent) [MSDOS]: Adjust call to dostounix_filename. | ||
| 2625 | |||
| 2626 | * emacs.c (decode_env_path) [DOS_NT]: Adjust call to | ||
| 2627 | dostounix_filename. | ||
| 2628 | |||
| 2629 | * callproc.c (Fcall_process) [MSDOS]: Adjust call to | ||
| 2630 | dostounix_filename. | ||
| 2631 | |||
| 2632 | * callproc.c (Fcall_process): Make sure program name in PATH and | ||
| 2633 | new_argv[0] is encoded, if needed. Otherwise, un-encoded string | ||
| 2634 | is passed to exec/spawnve, which fails unless the file-name | ||
| 2635 | encoding is UTF-8. | ||
| 2636 | |||
| 2637 | * w32proc.c (sys_spawnve): Make sure escape_char is initialized, | ||
| 2638 | even if w32-quote-process-args is nil. | ||
| 2639 | |||
| 2640 | 2013-02-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2641 | |||
| 2642 | Fix timestamp bug when write-region appends nothing (Bug#13149). | ||
| 2643 | * fileio.c (Fwrite_region): When neither O_EXCL nor O_TRUNC is used, | ||
| 2644 | the file's time stamp doesn't change if Emacs happens to write nothing | ||
| 2645 | to the file, and on a buggy file system this could cause Emacs to | ||
| 2646 | incorrectly infer that the file system doesn't have the bug. | ||
| 2647 | Avoid this problem by inhibiting the inference in this case. | ||
| 2648 | |||
| 2649 | 2013-02-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2650 | |||
| 2651 | * window.h (struct window): Convert base_line_number, base_line_pos | ||
| 2652 | and column_number_displayed members from Lisp_Object to ptrdiff_t. | ||
| 2653 | Convert region_showing member from Lisp_Object to bitfield. | ||
| 2654 | Remove sequence_number member. Adjust comments. | ||
| 2655 | * window.c (sequence_number): Remove. | ||
| 2656 | (make_window): Initialize column_number_displayed. | ||
| 2657 | * print.c (print_object): Follow the printed representation of | ||
| 2658 | frames and print window pointer to distinguish between windows. | ||
| 2659 | (adjust_window_count): Invalidate base_line_pos. Adjust comment. | ||
| 2660 | * xdisp.c (wset_base_line_number, wset_base_line_pos) | ||
| 2661 | (wset_column_number_displayed, wset_region_showing): Remove. | ||
| 2662 | (window_buffer_changed, mode_line_update_needed, redisplay_internal) | ||
| 2663 | (try_scrolling, try_cursor_movement, redisplay_window) | ||
| 2664 | (try_window_reusing_current_matrix, try_window_id, display_line) | ||
| 2665 | (display_mode_lines, decode_mode_spec): Adjust users. | ||
| 2666 | * .gdbinit (pwinx): Do not print sequence_number. | ||
| 2667 | |||
| 2668 | 2013-02-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2669 | |||
| 2670 | Use fdopendir, fstatat and readlinkat, for efficiency (Bug#13539). | ||
| 2671 | * conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): Remove. | ||
| 2672 | * dired.c: Include <fcntl.h>. | ||
| 2673 | (open_directory): New function, which uses open and fdopendir | ||
| 2674 | rather than opendir. DOS_NT platforms still use opendir, though. | ||
| 2675 | (directory_files_internal, file_name_completion): Use it. | ||
| 2676 | (file_attributes): New function, with most of the old Ffile_attributes. | ||
| 2677 | (directory_files_internal, Ffile_attributes): Use it. | ||
| 2678 | (file_attributes, file_name_completion_stat): First arg is now fd, | ||
| 2679 | not dir name. All uses changed. Use fstatat rather than lstat + | ||
| 2680 | stat. | ||
| 2681 | (file_attributes): Use emacs_readlinkat rather than Ffile_symlink_p. | ||
| 2682 | * fileio.c: Include <allocator.h>, <careadlinkat.h>. | ||
| 2683 | (emacs_readlinkat): New function, with much of the old | ||
| 2684 | Ffile_symlink_p, but with an fd argument for speed. | ||
| 2685 | It uses readlinkat rather than careadlinkatcwd, so that it | ||
| 2686 | need not assume the working directory. | ||
| 2687 | (Ffile_symlink_p): Use it. | ||
| 2688 | * filelock.c (current_lock_owner): Use emacs_readlinkat | ||
| 2689 | rather than emacs_readlink. | ||
| 2690 | * lisp.h (emacs_readlinkat): New decl. | ||
| 2691 | (READLINK_BUFSIZE, emacs_readlink): Remove. | ||
| 2692 | * sysdep.c: Do not include <allocator.h>, <careadlinkat.h>. | ||
| 2693 | (emacs_norealloc_allocator, emacs_readlink): Remove. | ||
| 2694 | This stuff is moved to fileio.c. | ||
| 2695 | * w32.c (fstatat, readlinkat): New functions. | ||
| 2696 | (careadlinkat): Don't check that fd == AT_FDCWD. | ||
| 2697 | (careadlinkatcwd): Remove; no longer needed. | ||
| 2698 | |||
| 2699 | 2013-01-31 Glenn Morris <rgm@gnu.org> | ||
| 2700 | |||
| 2701 | * fileio.c (choose_write_coding_system): Make it callable from Lisp. | ||
| 2702 | (Fwrite_region): Update for new choose_write_coding_system args. | ||
| 2703 | Move the last piece of choose_write_coding_system here. (Bug#13522) | ||
| 2704 | (syms_of_fileio): Add choose-write-coding-system. | ||
| 2705 | |||
| 2706 | 2013-01-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2707 | |||
| 2708 | * w32.c (sys_open): Zero out the flags for the new file descriptor. | ||
| 2709 | (sys_close): Zero out the flags for the file descriptor before | ||
| 2710 | closing it. (Bug#13546) | ||
| 2711 | |||
| 2712 | * w32.c (parse_root, get_volume_info, readdir, read_unc_volume) | ||
| 2713 | (logon_network_drive, stat_worker, symlink, chase_symlinks): | ||
| 2714 | Use CharNextExA and CharPrevExA to iterate over file names encoded in | ||
| 2715 | DBCS. (Bug#13553) | ||
| 2716 | |||
| 2717 | * w32.c (w32_get_long_filename, init_environment, readlink): | ||
| 2718 | Support file names encoded in DBCS codepages. | ||
| 2719 | (readlink): Use the current file-name-coding-system, not the ANSI | ||
| 2720 | codepage, to decode and handle targets of symlinks. | ||
| 2721 | |||
| 2722 | 2013-01-28 Eli Zaretskii <eliz@gnu.org> | ||
| 2723 | |||
| 2724 | * w32.c (opendir): Now accepts a 'const char *'. | ||
| 2725 | |||
| 2726 | 2013-01-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2727 | |||
| 2728 | Remove obsolete redisplay code. See the discussion at | ||
| 2729 | http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00576.html. | ||
| 2730 | * dispnew.c (preemption_period, preemption_next_check): Remove. | ||
| 2731 | (Vredisplay_preemption_period): Likewise. | ||
| 2732 | (update_frame, update_single_window, update_window, update_frame_1): | ||
| 2733 | Adjust users. Always assume that PERIODIC_PREEMPTION_CHECKING is not | ||
| 2734 | used, following the 2012-06-22 change. | ||
| 2735 | |||
| 2736 | 2013-01-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2737 | |||
| 2738 | * w32notify.c (Fw32notify_add_watch): Doc fix. (Bug#13540) | ||
| 2739 | |||
| 2740 | 2013-01-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2741 | |||
| 2742 | * font.c (num_fonts): Remove the leftover from old | ||
| 2743 | debugging code. Adjust comment style here and there. | ||
| 2744 | * insdel.c (insert_1): Remove. | ||
| 2745 | * lisp.h (insert_1): Remove prototype. | ||
| 2746 | * xdisp.c (message_dolog): Adjust users to call insert_1_both. | ||
| 2747 | |||
| 2748 | 2013-01-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2749 | |||
| 2750 | * w32.c (max_filename_mbslen): New function. | ||
| 2751 | (normalize_filename, readdir): Use it to detect locales where ANSI | ||
| 2752 | encoding of file names uses a double-byte character set (DBCS). | ||
| 2753 | If a DBCS encoding is used, advance by characters using | ||
| 2754 | CharNextExA, instead of incrementing a 'char *' pointer. | ||
| 2755 | Use _mbslwr instead of _strlwr. (Bug#13515) | ||
| 2756 | |||
| 2757 | * w32heap.c (allocate_heap) [!_WIN64]: Decrease the initial | ||
| 2758 | request of memory reservation to 1.7GB. (Bug#13065) | ||
| 2759 | |||
| 2760 | 2013-01-25 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2761 | |||
| 2762 | * coding.c (detect_coding_iso_2022): Move back mis-reordered code | ||
| 2763 | at check_extra_latin label. (Bug#13505) | ||
| 2764 | |||
| 2765 | 2013-01-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2766 | |||
| 2767 | * nsfont.m (ns_escape_name, ns_unescape_name, ns_registry_to_script): | ||
| 2768 | Avoid redundant calls to strlen. | ||
| 2769 | |||
| 2770 | 2013-01-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2771 | |||
| 2772 | Drop async_visible and async_iconified fields of struct frame. | ||
| 2773 | This is possible because async input is gone; for details, see | ||
| 2774 | http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00734.html. | ||
| 2775 | * frame.h (struct frame): Remove async_visible and async_iconified | ||
| 2776 | members, convert garbaged to unsigned bitfield. Adjust comments. | ||
| 2777 | (FRAME_SAMPLE_VISIBILITY): Remove. Adjust all users. | ||
| 2778 | (SET_FRAME_VISIBLE, SET_FRAME_ICONIFIED): New macros. | ||
| 2779 | * frame.c, gtkutil.c, term.c, w32fns.c, window.c, xdisp.c: | ||
| 2780 | Consistently use SET_FRAME_VISIBLE, SET_FRAME_ICONIFIED, | ||
| 2781 | FRAME_VISIBLE_P and FRAME_ICONIFIED_P macros where appropriate. | ||
| 2782 | * w32term.c: Ditto. | ||
| 2783 | (w32_read_socket): Save iconified state to generate DEICONIFY_EVENT | ||
| 2784 | properly. Likewise for obscured. | ||
| 2785 | * xterm.c: Ditto. | ||
| 2786 | (handle_one_xevent): Save visible state to generate ICONIFY_EVENT | ||
| 2787 | properly. | ||
| 2788 | * nsterm.m: Ditto. | ||
| 2789 | (windowDidDeminiaturize): Generate DEICONIFY_EVENT. | ||
| 2790 | |||
| 2791 | 2013-01-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2792 | |||
| 2793 | * insdel.c (prepare_to_modify_buffer): Revert last change as suggested | ||
| 2794 | in http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00555.html. | ||
| 2795 | |||
| 2796 | 2013-01-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2797 | |||
| 2798 | * xdisp.c (message2, message2_nolog): Remove functions. | ||
| 2799 | (message3, message3_nolog): Extract nbytes and multibyteness directly | ||
| 2800 | from the string. Change all callers. | ||
| 2801 | (message3_nolog): Don't set message_enable_multibyte since set_message | ||
| 2802 | will reset it anyway. | ||
| 2803 | (message1, message1_nolog): Use message3. | ||
| 2804 | (vmessage): Use a stack allocated buffer rather than f->message_buf. | ||
| 2805 | (with_echo_area_buffer): Remove last two arguments. Update all callers. | ||
| 2806 | (set_message): Drop all but the second arg, which has to be a string. | ||
| 2807 | (set_message_1): Simplify now that we know that a1 is NULL and the | ||
| 2808 | second arg is a string. | ||
| 2809 | * frame.h (struct frame): Remove `message_buf' field. | ||
| 2810 | Use glyphs_initialized_p instead. | ||
| 2811 | (FRAME_MESSAGE_BUF): Remove macro. | ||
| 2812 | * w16select.c (Fw16_set_clipboard_data): Prefer message3 to message2. | ||
| 2813 | * lisp.h (message2, message2_nolog): Remove declarations. | ||
| 2814 | (message3, message3_nolog): Update declarations. | ||
| 2815 | * keyboard.c (read_char_minibuf_menu_text) | ||
| 2816 | (read_char_minibuf_menu_width): Remove vars. | ||
| 2817 | (read_char_minibuf_menu_prompt): Rewrite the menu's construction so as | ||
| 2818 | to correctly handle multibyte strings. | ||
| 2819 | * frame.c (delete_frame): Don't free message_buf any more. | ||
| 2820 | * editfns.c (message_text, message_length): Remove vars. | ||
| 2821 | (Fmessage_box): Don't copy the Lisp string's bytes any longer. | ||
| 2822 | * fileio.c (auto_save_error): Use message3 instead of message2. | ||
| 2823 | * dispnew.c (adjust_frame_message_buffer): Remove function. | ||
| 2824 | |||
| 2825 | 2013-01-23 Eli Zaretskii <eliz@gnu.org> | ||
| 2826 | |||
| 2827 | * w32term.c (w32fullscreen_hook): Account correctly for the screen | ||
| 2828 | real estate used for the tool bar and the menu bar. | ||
| 2829 | |||
| 2830 | 2013-01-23 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2831 | |||
| 2832 | * insdel.c (prepare_to_modify_buffer): Force redisplay if | ||
| 2833 | hidden buffer is prepared to modification (Bug#13164). | ||
| 2834 | |||
| 2835 | 2013-01-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2836 | |||
| 2837 | * window.h (struct window): Change window_end_valid member from | ||
| 2838 | Lisp_Object to a bitfield. Adjust comments. | ||
| 2839 | (wset_window_end_valid): Remove. | ||
| 2840 | * window.c (adjust_window_count): Clear window_end_valid. | ||
| 2841 | (Fwindow_end): Adjust user. Remove ancient #if 0 code. | ||
| 2842 | (Fwindow_line_height, set_window_buffer, Frecenter) | ||
| 2843 | (Fsplit_window_internal, Fdelete_other_windows_internal) | ||
| 2844 | (Fset_window_fringes, Fset_window_scroll_bars): Adjust users. | ||
| 2845 | * dispnew.c (adjust_glyph_matrix, clear_window_matrices): Likewise. | ||
| 2846 | * xdisp.c (check_window_end, reconsider_clip_changes) | ||
| 2847 | (redisplay_internal, mark_window_display_accurate_1, redisplay_window) | ||
| 2848 | (try_window, try_window_reusing_current_matrix, note_mouse_highlight) | ||
| 2849 | (find_first_unchanged_at_end_row, try_window_id): Likewise. | ||
| 2850 | |||
| 2851 | 2013-01-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2852 | |||
| 2853 | * xdisp.c (mark_window_display_accurate): Simplify the loop | ||
| 2854 | assuming that the only one of vchild, hchild or buffer window | ||
| 2855 | slots is non-nil. Call mark_window_display_accurate_1 for | ||
| 2856 | the leaf windows only. | ||
| 2857 | (mark_window_display_accurate_1): Always assume leaf window. | ||
| 2858 | Adjust comment. | ||
| 2859 | |||
| 2860 | 2013-01-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2861 | |||
| 2862 | * emacs.c (Qkill_emacs_hook): Now static. | ||
| 2863 | |||
| 2864 | * fileio.c (Finsert_file_contents): Simplify. | ||
| 2865 | Remove unnecessary assignments and tests. | ||
| 2866 | |||
| 2867 | 2013-01-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2868 | |||
| 2869 | * w32.c (acl_set_file): Don't test for errors unless | ||
| 2870 | set_file_security returns FALSE. Avoids spurious errors when | ||
| 2871 | saving files. | ||
| 2872 | |||
| 2873 | 2013-01-21 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2874 | |||
| 2875 | * fileio.c (Finsert_file_contents): Revert code introduced at | ||
| 2876 | 2013-01-18 in favor of the simpler and generally better fix. | ||
| 2877 | Save stack space by removing 'buffer' and reusing 'read_buf' | ||
| 2878 | where appropriate. | ||
| 2879 | |||
| 2880 | 2013-01-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2881 | |||
| 2882 | * lisp.h (eabs): Define unconditionally (Bug#13419). | ||
| 2883 | The old "#if !defined (eabs)" was an unnecessary revenant of back | ||
| 2884 | when this macro was called "abs". Document 'eabs' better. | ||
| 2885 | |||
| 2886 | 2013-01-19 Glenn Morris <rgm@gnu.org> | ||
| 2887 | |||
| 2888 | * fns.c (Frandom): Doc fix. | ||
| 2889 | |||
| 2890 | 2013-01-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2891 | |||
| 2892 | * editfns.c (get_pos_property): Use SAFE_ALLOCA_LISP, to avoid | ||
| 2893 | segfault when there are lots of overlays. | ||
| 2894 | |||
| 2895 | * buffer.c (sort_overlays): Use SAFE_NALLOCA, to avoid segfault | ||
| 2896 | when there are lots of overlays. | ||
| 2897 | See http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00421.html | ||
| 2898 | for the details and a way to reproduce. | ||
| 2899 | |||
| 2900 | 2013-01-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2901 | |||
| 2902 | * fileio.c: Use O_APPEND to append. | ||
| 2903 | This corresponds better to the natural interpretation of "append", | ||
| 2904 | and avoids the need to open the output file twice, or to invoke | ||
| 2905 | lseek when APPEND is neither nil nor a number. | ||
| 2906 | This relies on POSIX 1003.1-1988 or later, which is OK nowadays. | ||
| 2907 | (Fwrite_region): Simplify. Use O_APPEND instead of opening the | ||
| 2908 | file possibly twice, and lseeking to its end; this avoids the | ||
| 2909 | need to lseek on non-regular files. Do not use O_EXCL and O_TRUNC | ||
| 2910 | at the same time: the combination is never needed and apparently | ||
| 2911 | it doesn't work with DOS_NT. | ||
| 2912 | |||
| 2913 | Fix size bug on DOS_NT introduced by CIFS workaround (Bug#13149). | ||
| 2914 | * fileio.c (Fwrite_region): Use O_BINARY in checking code, too. | ||
| 2915 | |||
| 2916 | Allow floating-point file offsets. | ||
| 2917 | Problem reported by Vitalie Spinu in | ||
| 2918 | <http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00411.html>. | ||
| 2919 | * fileio.c (emacs_lseek): Remove. | ||
| 2920 | (file_offset): New function. | ||
| 2921 | (Finsert_file_contents, Fwrite_region): Use it. | ||
| 2922 | |||
| 2923 | 2013-01-19 Chong Yidong <cyd@gnu.org> | ||
| 2924 | |||
| 2925 | * emacs.c (Fkill_emacs): Set waiting_for_input to 0 to avoid | ||
| 2926 | aborting on Fsignal (Bug#13289). | ||
| 2927 | |||
| 2928 | 2013-01-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2929 | |||
| 2930 | * w32.c (acl_set_file): Treat ERROR_ACCESS_DENIED from | ||
| 2931 | set_file_security as failure due to insufficient privileges. | ||
| 2932 | Reported by Fabrice Popineau <fabrice.popineau@supelec.fr>. | ||
| 2933 | (fstat): Return owner and group like 'stat' and 'lstat' do. | ||
| 2934 | |||
| 2935 | 2013-01-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2936 | |||
| 2937 | Work around bug in CIFS and vboxsf file systems (Bug#13149). | ||
| 2938 | The bug was observed on Ubuntu operating inside a virtual machine, | ||
| 2939 | editing files mounted via CIFS or vboxsf from the MS Windows 7 host. | ||
| 2940 | The workaround introduces a race condition on non-buggy hosts, | ||
| 2941 | but it's an unlikely race and anyway there's a nearly identical | ||
| 2942 | nearby race that can't be fixed. | ||
| 2943 | * fileio.c (valid_timestamp_file_system, timestamp_file_system): | ||
| 2944 | New static vars. | ||
| 2945 | (Fwrite_region): Test for file system time stamp bug. | ||
| 2946 | (init_fileio): New function. | ||
| 2947 | * lisp.h (init_fileio): Declare it. | ||
| 2948 | * emacs.c (main): Call it. | ||
| 2949 | |||
| 2950 | * fileio.c (Finsert_file_contents): Simplify new diagnostic | ||
| 2951 | and make it more consistent with other stat-failure diagnostics. | ||
| 2952 | |||
| 2953 | 2013-01-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2954 | |||
| 2955 | Fix crash when inserting data from non-regular files. | ||
| 2956 | See http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00406.html | ||
| 2957 | for the error description produced by valgrind. | ||
| 2958 | * fileio.c (read_non_regular): Rename to read_contents. | ||
| 2959 | Free Lisp_Save_Value object used to pass parameters. | ||
| 2960 | (read_non_regular_quit): Rename to read_contents_quit. | ||
| 2961 | (Finsert_file_contents): Redesign internal file reading loop to adjust | ||
| 2962 | gap and end positions after each read and so help make_gap to work | ||
| 2963 | properly. Do not signal an I/O error too early and so do not leave | ||
| 2964 | not yet decoded characters in a buffer, which was the reason of | ||
| 2965 | redisplay crash. Use list2 to build return value. Adjust comments. | ||
| 2966 | |||
| 2967 | 2013-01-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2968 | |||
| 2969 | Close a race when statting and reading files (Bug#13149). | ||
| 2970 | * fileio.c (Finsert_file_contents): Use open+fstat, not stat+open. | ||
| 2971 | This avoids a race if the file is renamed between stat and open. | ||
| 2972 | This race is not the problem originally noted in Bug#13149; | ||
| 2973 | see <http://bugs.gnu.org/13149#73> and later messages in the thread. | ||
| 2974 | |||
| 2975 | 2013-01-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2976 | |||
| 2977 | * lisp.h (toplevel): Add comment about using Lisp_Save_Value | ||
| 2978 | objects, related functions and macros. | ||
| 2979 | (make_save_value): Adjust prototype. | ||
| 2980 | (make_save_pointer): New prototype. | ||
| 2981 | (SAFE_NALLOCA): Fix indentation. Use make_save_pointer. | ||
| 2982 | (SAFE_ALLOCA_LISP): Adjust make_save_value usage. | ||
| 2983 | * alloc.c (format_save_value): Rename to make_save_value. | ||
| 2984 | (make_save_pointer): New function. | ||
| 2985 | (record_xmalloc): Use make_save_pointer. | ||
| 2986 | * dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c: | ||
| 2987 | * nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c: | ||
| 2988 | Change users of make_save_value to make_save_pointer. | ||
| 2989 | Likewise for format_save_value and make_save_value. | ||
| 2990 | |||
| 2991 | 2013-01-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2992 | |||
| 2993 | * buffer.h (NARROWED, BUF_NARROWED): Drop unused macros. | ||
| 2994 | (DECODE_POSITION, BUFFER_CHECK_INDIRECTION): Fix indentation. | ||
| 2995 | * buffer.c (toplevel, syms_of_buffer): Drop old commented-out | ||
| 2996 | debugging stubs. | ||
| 2997 | |||
| 2998 | 2013-01-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2999 | |||
| 3000 | * alloc.c (free_save_value): Now static. | ||
| 3001 | |||
| 3002 | 2013-01-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3003 | |||
| 3004 | * keymap.c (map_keymap_internal): Use format_save_value. | ||
| 3005 | (map_keymap_char_table_item): Adjust accordingly. | ||
| 3006 | * fileio.c (non_regular_fd, non_regular_inserted) | ||
| 3007 | (non_regular_nbytes): Remove. | ||
| 3008 | (Finsert_file_contents): Convert trytry to ptrdiff_t. | ||
| 3009 | Use format_save_value to pass parameters to read_non_regular. | ||
| 3010 | (read_non_regular): Use XSAVE_ macros to extract parameters. | ||
| 3011 | Adjust comment. | ||
| 3012 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Use | ||
| 3013 | format_save_value. | ||
| 3014 | (pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Adjust user. | ||
| 3015 | |||
| 3016 | 2013-01-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3017 | |||
| 3018 | * lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow | ||
| 3019 | extraction from any Lisp_Save_Value slot. Add type checking. | ||
| 3020 | * alloc.c, dired.c, editfns.c, fileio.c, ftfont.c, gtkutil.c: | ||
| 3021 | * keymap.c, lread.c, nsterm.h, nsmenu.c, xfns.c, xmenu.c: | ||
| 3022 | * xselect.c: All users changed. | ||
| 3023 | |||
| 3024 | 2013-01-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3025 | |||
| 3026 | Some convenient bits to deal with Lisp_Save_Values. | ||
| 3027 | * lisp.h (XSAVE_OBJECT): New macro to extract saved objects. | ||
| 3028 | (allocate_misc): Remove prototype. | ||
| 3029 | (format_save_value): New prototype. | ||
| 3030 | * alloc.c (allocate_misc): Revert back to static. | ||
| 3031 | (format_save_value): New function to build Lisp_Save_Value | ||
| 3032 | object with the specified internal structure. | ||
| 3033 | (make_save_value): Reimplement using format_save_value. | ||
| 3034 | * editfns.c (save_excursion_save): Use format_save_value. | ||
| 3035 | (save_excursion_restore): Use XSAVE_OBJECT. | ||
| 3036 | |||
| 3037 | 2013-01-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3038 | |||
| 3039 | Avoid needless casts with XSAVE_POINTER. | ||
| 3040 | * alloc.c (mark_object) [GC_MARK_STACK]: | ||
| 3041 | * dired.c (directory_files_internal_unwind): | ||
| 3042 | * fileio.c (do_auto_save_unwind): | ||
| 3043 | * gtkutil.c (pop_down_dialog): | ||
| 3044 | * keymap.c (map_keymap_char_table_item): | ||
| 3045 | * lread.c (load_unwind): | ||
| 3046 | * nsmenu.m (pop_down_menu): | ||
| 3047 | * print.c (print_object) [GC_MARK_STACK]: | ||
| 3048 | * xfns.c (clean_up_file_dialog): | ||
| 3049 | * xmenu.c (cleanup_widget_value_tree): | ||
| 3050 | Omit casts between XSAVE_POINTER and a pointer type. | ||
| 3051 | |||
| 3052 | 2013-01-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3053 | |||
| 3054 | Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE. | ||
| 3055 | * eval.c (eval_sub): Protect `form' from being GCed before its | ||
| 3056 | car and cdr becomes protected with the backtrace entry. | ||
| 3057 | |||
| 3058 | 2013-01-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3059 | |||
| 3060 | Make Lisp_Save_Value more versatile storage for up to four objects. | ||
| 3061 | * lisp.h (toplevel): Enumeration to describe types of saved objects. | ||
| 3062 | (struct Lisp_Save_Value): New layout. Adjust comments. | ||
| 3063 | (XSAVE_POINTER): New macro. | ||
| 3064 | (XSAVE_INTEGER): Likewise. | ||
| 3065 | (allocate_misc): Add prototype. | ||
| 3066 | (free_misc): Likewise. | ||
| 3067 | * alloc.c (allocate_misc): Now global. | ||
| 3068 | (free_misc): Likewise. Adjust comment. | ||
| 3069 | (make_save_value): Use new Lisp_Save_Value layout. Adjust comment. | ||
| 3070 | (free_save_value): Likewise. | ||
| 3071 | (mark_object): Likewise. | ||
| 3072 | * editfns.c (save_excursion_save): Pack everything within | ||
| 3073 | Lisp_Save_Value and so avoid xmalloc. | ||
| 3074 | (save_excursion_restore): Adjust to match new layout. Use free_misc | ||
| 3075 | because we do not allocate extra memory any more. Add eassert. | ||
| 3076 | * print.c (print_object): New code to print Lisp_Save_Value. Do not | ||
| 3077 | rely on valid_lisp_object_p if !GC_MARK_STACK. Adjust comments. | ||
| 3078 | * dired.c, fileio.c, font.c, ftfont.c, gtkutil.c, keymap.c, | ||
| 3079 | * lread.c, nsmenu.m, nsterm.h, xfns.c, xmenu.c, xselect.c: | ||
| 3080 | Use XSAVE_POINTER and XSAVE_INTEGER where appropriate. | ||
| 3081 | |||
| 3082 | 2013-01-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3083 | |||
| 3084 | * nsfont.m (LCD_SMOOTHING_MARGIN): New define. | ||
| 3085 | (nsfont_draw): Remove disabling of LCD smoothing. | ||
| 3086 | (ns_glyph_metrics): Add LCD_SMOOTHING_MARGIN to bearings to fix | ||
| 3087 | Bug#11484 with LCD smoothing on. | ||
| 3088 | |||
| 3089 | 2013-01-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3090 | |||
| 3091 | Fix SIGDANGER handlers, for AIX (Bug#13408). | ||
| 3092 | * sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]: | ||
| 3093 | Move handlers here from emacs.c; they were out of place. | ||
| 3094 | |||
| 3095 | 2013-01-11 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3096 | |||
| 3097 | * xterm.c (syms_of_xterm): Adjust documentation for | ||
| 3098 | scroll-bar-adjust-thumb-portion. | ||
| 3099 | |||
| 3100 | 2012-12-31 Adam Sjøgren <asjo@koldfront.dk> (tiny change) | ||
| 3101 | |||
| 3102 | * xterm.c (scroll-bar-adjust-thumb-portion): New variable to | ||
| 3103 | determine whether scroll bar thumb size should be adjusted or not. | ||
| 3104 | Use variable for MOTIF. | ||
| 3105 | |||
| 3106 | * gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for GTK. | ||
| 3107 | |||
| 3108 | 2013-01-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3109 | |||
| 3110 | * nsterm.m (keyDown:): Set processingCompose to NO if an emacs key | ||
| 3111 | event is generated. | ||
| 3112 | (doCommandBySelector:): Set processingCompose to NO. | ||
| 3113 | |||
| 3114 | * nsfont.m (ns_findfonts): Add block/unblock_input calls. | ||
| 3115 | Remove check for fkeys count > zero, block/unblock fixes the real bug. | ||
| 3116 | (nsfont_list_family): Add block/unblock_input calls. | ||
| 3117 | (nsfont_open): Move block_input earlier. Add unblock_input before early | ||
| 3118 | return. | ||
| 3119 | (nsfont_draw): Add block/unblock_input calls. | ||
| 3120 | |||
| 3121 | 2013-01-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3122 | |||
| 3123 | * indent.c (Fvertical_motion): Remove now-incorrect GCPROs | ||
| 3124 | for old_charpos and old_bytepos. | ||
| 3125 | |||
| 3126 | 2013-01-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3127 | |||
| 3128 | Fix bug with set-time-zone-rule and LOCALTIME_CACHE (Bug#13415). | ||
| 3129 | * editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]: | ||
| 3130 | Clear tzvalbuf_in_environ if this workaround is in effect. | ||
| 3131 | Problem and fix reported by Kazuhiro Ito. | ||
| 3132 | |||
| 3133 | 2013-01-11 Aaron S. Hawley <Aaron.Hawley@vtinfo.com> | ||
| 3134 | |||
| 3135 | * insdel.c (Fcombine_after_change_execute, syms_of_insdel): | ||
| 3136 | Fix ambiguous doc string cross-reference(s). | ||
| 3137 | |||
| 3138 | * keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous | ||
| 3139 | doc string cross-reference(s). | ||
| 3140 | |||
| 3141 | * window.c (Fwindow_point, syms_of_window): Fix ambiguous doc | ||
| 3142 | string cross-reference(s). | ||
| 3143 | |||
| 3144 | 2013-01-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3145 | |||
| 3146 | Avoid unnecessary byte position calculation for the gap movement. | ||
| 3147 | Since all users of move_gap do CHAR_TO_BYTE for other purposes | ||
| 3148 | anyway, all of them should use move_gap_both instead. | ||
| 3149 | * lisp.h (move_gap): Remove prototype. | ||
| 3150 | * insdel.c (move_gap): Remove. | ||
| 3151 | (move_gap_both): Add eassert. | ||
| 3152 | * editfns.c (Ftranspose_regions): Tweak to use move_gap_both. | ||
| 3153 | * xml.c (parse_region): Likewise. | ||
| 3154 | |||
| 3155 | 2013-01-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3156 | |||
| 3157 | emacsclient -t should not suspend Emacs server (Bug#13387) | ||
| 3158 | * lisp.h, sysdep.c (block_tty_out_signal, unblock_tty_out_signal): | ||
| 3159 | New functions. | ||
| 3160 | * term.c (init_tty): Use them instead of rolling our own code. | ||
| 3161 | * sysdep.c (tcsetpgrp_without_stopping): Likewise. Here, this | ||
| 3162 | switches from 'signal' to 'pthread_sigmask', which is safer in | ||
| 3163 | multithreaded applications. | ||
| 3164 | * term.c (Fresume_tty): Don't bother dissociating if O_IGNORE_CTTY, | ||
| 3165 | which has already arranged for that. | ||
| 3166 | (dissociate_if_controlling_tty): If setsid fails, fall back on TIOCNOTTY. | ||
| 3167 | This is the main part of the bug fix. | ||
| 3168 | |||
| 3169 | 2013-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> (tiny change) | ||
| 3170 | |||
| 3171 | * gtkutil.c (xg_initialize): Add ifdef HAVE_FREETYPE around | ||
| 3172 | x_last_font_name (Bug#13403). | ||
| 3173 | |||
| 3174 | 2013-01-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3175 | |||
| 3176 | Omit buffer_slot_type_mismatch and use generic predicates to enforce | ||
| 3177 | the type of per-buffer values where appropriate. | ||
| 3178 | * lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to | ||
| 3179 | predicate, which is how it's really used now. Adjust comment. | ||
| 3180 | * buffer.h (buffer_slot_type_mismatch): Remove prototype. | ||
| 3181 | * buffer.c (buffer_slot_type_mismatch): Remove. | ||
| 3182 | (DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to | ||
| 3183 | predicate. Adjust comment. | ||
| 3184 | (syms_of_buffer): Use Qsymbolp for major-mode. Use Qintegerp for | ||
| 3185 | fill-column, left-margin, tab-width, buffer-saved-size, | ||
| 3186 | left-margin-width, right-margin-width, left-fringe-width, | ||
| 3187 | right-fringe-width, scroll-bar-width and buffer-display-count. | ||
| 3188 | Use Qstringp for default-directory, buffer-file-name, | ||
| 3189 | buffer-file-truename and buffer-auto-save-file-name. Use Qfloatp for | ||
| 3190 | scroll-up-aggressively and scroll-down-aggressively. Use Qnumberp for | ||
| 3191 | line-spacing. | ||
| 3192 | * data.c (store_symval_forwarding): Adjust to call the predicate. | ||
| 3193 | |||
| 3194 | 2013-01-09 Juanma Barranquero <lekktu@gmail.com> | ||
| 3195 | |||
| 3196 | * w32.c (get_name_and_id, acl_set_file): | ||
| 3197 | * w32term.c (w32fullscreen_hook): Remove unused local variables. | ||
| 3198 | |||
| 3199 | 2013-01-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3200 | |||
| 3201 | * lisp.h (make_gap_1): New prototype. | ||
| 3202 | * buffer.h (GAP_BYTES_DFL, GAP_BYTES_MIN): New macros for the special | ||
| 3203 | gap size values. | ||
| 3204 | * editfns.c (Fbuffer_size): Rename from Fbufsize to fit the common | ||
| 3205 | naming convention. | ||
| 3206 | (syms_of_editfns): Adjust defsubr. Drop commented-out obsolete code. | ||
| 3207 | * insdel.c (make_gap_larger): Use GAP_BYTES_DFL. Adjust comment. | ||
| 3208 | (make_gap_smaller): Use GAP_BYTES_MIN. Adjust comment. | ||
| 3209 | (make_gap_1): New function to adjust the gap of any buffer. | ||
| 3210 | * coding.c (coding_alloc_by_making_gap): Use it. | ||
| 3211 | * buffer.c (compact_buffer): Likewise. Use BUF_Z_BYTE, BUF_GAP_SIZE, | ||
| 3212 | GAP_BYTES_DFL and GAP_BYTES_MIN. Adjust comment. | ||
| 3213 | |||
| 3214 | 2013-01-08 Juri Linkov <juri@jurta.org> | ||
| 3215 | |||
| 3216 | * xfaces.c (tty_supports_face_attributes_p): Return 0 for the case | ||
| 3217 | of (supports :underline (:style wave)). (Bug#13000) | ||
| 3218 | |||
| 3219 | 2013-01-08 Aaron S. Hawley <aaron.s.hawley@gmail.com> | ||
| 3220 | |||
| 3221 | * undo.c (Fprimitive_undo): Move to simple.el. | ||
| 3222 | (syms_of_undo): Remove declarations for Sprimitive_undo. | ||
| 3223 | |||
| 3224 | 2013-01-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3225 | |||
| 3226 | * keyboard.c (echo_add_key): Rename from echo_add_char. | ||
| 3227 | |||
| 3228 | 2013-01-06 Chong Yidong <cyd@gnu.org> | ||
| 3229 | |||
| 3230 | * keyboard.c (echo_add_char): New function, factored out from | ||
| 3231 | echo_char. Don't add a space if the previous echo string was | ||
| 3232 | empty (Bug#13255). | ||
| 3233 | (echo_char): Use it. | ||
| 3234 | (read_key_sequence): When echoing mock input, ensure that the | ||
| 3235 | trailing dash is properly added. | ||
| 3236 | |||
| 3237 | 2013-01-05 Eli Zaretskii <eliz@gnu.org> | ||
| 3238 | |||
| 3239 | * xdisp.c (dump_glyph): Align glyph data better. Use "pD" instead | ||
| 3240 | of a non-portable "t" to print ptrdiff_t values. Allow up to 9 | ||
| 3241 | digits for buffer positions, before misalignment starts. | ||
| 3242 | Display "0" for integer "object" field. | ||
| 3243 | (dump_glyph_row): Adapt the header line to changes in dump_glyph. | ||
| 3244 | Display the newline glyph more unambiguously. | ||
| 3245 | |||
| 3246 | 2013-01-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 3247 | |||
| 3248 | * nsterm.m (ns_draw_underwave): | ||
| 3249 | * w32term.c (w32_draw_underwave): | ||
| 3250 | * xterm.c (x_draw_underwave): Make underwave look more triangular | ||
| 3251 | and also degrade gracefully for small fonts. (Bug#13000) | ||
| 3252 | |||
| 3253 | * nsterm.m (ns_draw_text_decoration): | ||
| 3254 | * w32term.c (x_draw_glyph_string): | ||
| 3255 | * xterm.c (x_draw_glyph_string): Don't use previous underline | ||
| 3256 | thickness and position if previous underline type is underwave. | ||
| 3257 | |||
| 3258 | 2013-01-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3259 | |||
| 3260 | * fileio.c (Ffile_acl): Undocument return format. | ||
| 3261 | |||
| 3262 | 2013-01-02 Glenn Morris <rgm@gnu.org> | ||
| 3263 | |||
| 3264 | * keymap.c (Fkey_description): Doc fix. (Bug#13323) | ||
| 3265 | |||
| 3266 | 2013-01-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3267 | |||
| 3268 | Simplify via eabs. | ||
| 3269 | * dired.c (file_name_completion): | ||
| 3270 | * doc.c (get_doc_string): | ||
| 3271 | * floatfns.c (round2): | ||
| 3272 | * font.c (font_score, font_delete_unmatched): | ||
| 3273 | * fringe.c (compute_fringe_widths): | ||
| 3274 | * lread.c (read_list): | ||
| 3275 | * minibuf.c (Ftry_completion): | ||
| 3276 | * term.c (tty_ins_del_lines): | ||
| 3277 | * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1): | ||
| 3278 | Use eabs (x) rather than open-coding it as (x < 0 ? -x : x). | ||
| 3279 | |||
| 3280 | 2012-12-31 Eli Zaretskii <eliz@gnu.org> | ||
| 3281 | |||
| 3282 | * w32.c (unsetenv): Set up the string passed to _putenv | ||
| 3283 | correctly. | ||
| 3284 | See http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html | ||
| 3285 | for the bug this caused. | ||
| 3286 | |||
| 3287 | 2012-12-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3288 | |||
| 3289 | * coding.c (Qmac): Now static. | ||
| 3290 | |||
| 3291 | 2012-12-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3292 | |||
| 3293 | * gtkutil.c (TOOLBAR_TOP_WIDGET): New macro. | ||
| 3294 | (xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of | ||
| 3295 | handlebox_widget. Set toolbar_in_hbox to false/true, set | ||
| 3296 | toolbar_is_packed to true. | ||
| 3297 | (xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET. | ||
| 3298 | (update_frame_tool_bar): Check toolbar_is_packed for packing. | ||
| 3299 | Show all on TOOLBAR_TOP_WIDGET. | ||
| 3300 | (free_frame_tool_bar): Check toolbar_is_packed. Use widget returned | ||
| 3301 | by TOOLBAR_TOP_WIDGET. | ||
| 3302 | (xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET. | ||
| 3303 | Check toolbar_is_packed. | ||
| 3304 | (xg_have_tear_offs, tearoff_remove, tearoff_activate): Condition on | ||
| 3305 | HAVE_GTK_TEAROFF_MENU_ITEM_NEW. | ||
| 3306 | (xg_have_tear_offs): When ! HAVE_GTK_TEAROFF_MENU_ITEM_NEW, return | ||
| 3307 | false. | ||
| 3308 | (create_menus): Create tearoff only if HAVE_GTK_TEAROFF_MENU_ITEM_NEW. | ||
| 3309 | (xg_update_menubar): Update title only if | ||
| 3310 | HAVE_GTK_TEAROFF_MENU_ITEM_NEW. | ||
| 3311 | (xg_update_submenu): Skip tearoff only if | ||
| 3312 | HAVE_GTK_TEAROFF_MENU_ITEM_NEW. | ||
| 3313 | (xg_initialize): Initialize xg_detached_menus only if | ||
| 3314 | HAVE_GTK_TEAROFF_MENU_ITEM_NEW. | ||
| 3315 | |||
| 3316 | * xterm.h (struct x_output): Surround handlebox_widget with | ||
| 3317 | #ifdef HAVE_GTK_HANDLE_BOX_NEW. toolbar_is_packed is new, | ||
| 3318 | toolbar_in_hbox is bool. | ||
| 3319 | |||
| 3320 | 2012-12-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 3321 | |||
| 3322 | * src/Makefile.in (TEMACS_LDFLAGS2): Remove. | ||
| 3323 | (LIBS_GNUSTEP): Define. | ||
| 3324 | (LIBES): Add $(LIBS_GNUSTEP). | ||
| 3325 | (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2). | ||
| 3326 | |||
| 3327 | 2012-12-30 Eli Zaretskii <eliz@gnu.org> | ||
| 3328 | |||
| 3329 | * xdisp.c (set_cursor_from_row): Don't confuse a truncation or | ||
| 3330 | continuation glyph on a TTY with an indication of an empty line. | ||
| 3331 | (Bug#13277) | ||
| 3332 | |||
| 3333 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> | ||
| 3334 | |||
| 3335 | * fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if | ||
| 3336 | file's SELinux context or ACLs successfully set, nil otherwise. | ||
| 3337 | (Bug#13298) | ||
| 3338 | (Fcopy_file) [WINDOWSNT]: Improve diagnostics when CopyFile fails. | ||
| 3339 | |||
| 3340 | * w32proc.c (reader_thread): Avoid passing NULL handles to | ||
| 3341 | SetEvent and WaitForSingleObject. | ||
| 3342 | |||
| 3343 | 2012-12-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3344 | |||
| 3345 | Port EXTERNALLY_VISIBLE to Clang 3.2. | ||
| 3346 | * conf_post.h (__has_attribute): New macro. | ||
| 3347 | (EXTERNALLY_VISIBLE): Use it. This ports to Clang 3.2. | ||
| 3348 | |||
| 3349 | 2012-12-27 Glenn Morris <rgm@gnu.org> | ||
| 3350 | |||
| 3351 | * cygw32.c (Fcygwin_convert_file_name_to_windows) | ||
| 3352 | (Fcygwin_convert_file_name_from_windows): Doc fixes. | ||
| 3353 | |||
| 3354 | 2012-12-27 Eli Zaretskii <eliz@gnu.org> | ||
| 3355 | |||
| 3356 | * fileio.c (file_name_as_directory, directory_file_name): | ||
| 3357 | Accept an additional argument MULTIBYTE to indicate whether the input C | ||
| 3358 | came from a multibyte or a unibyte Lisp string; all callers | ||
| 3359 | adjusted. Don't assume the input string is always multibyte. | ||
| 3360 | (Bug#13262) | ||
| 3361 | (Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly: | ||
| 3362 | don't ENCODE_FILE them, and return a unibyte string if the input | ||
| 3363 | was unibyte. | ||
| 3364 | (Fexpand_file_name): Don't mix unibyte with multibyte strings, and | ||
| 3365 | don't assume the input strings will always be multibyte. If the | ||
| 3366 | input strings are multibyte, decode strings obtained from C | ||
| 3367 | library functions. | ||
| 3368 | |||
| 3369 | 2012-12-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3370 | |||
| 3371 | * lisp.h (toplevel): Add two notices to the comment about | ||
| 3372 | defining a new Lisp data type. | ||
| 3373 | * print.c (print_object): If Lisp_Save_Value object's pointer | ||
| 3374 | is the address of a memory area containing Lisp_Objects, try | ||
| 3375 | to print them. | ||
| 3376 | * alloc.c (valid_lisp_object_p): Adjust comment. | ||
| 3377 | |||
| 3378 | 2012-12-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3379 | |||
| 3380 | * keyboard.c (record_asynch_buffer_change): Initialize an event | ||
| 3381 | only if it's really needed. | ||
| 3382 | * frame.h (enum output_method): Remove output_mac member since | ||
| 3383 | it's a leftover from the deleted code. | ||
| 3384 | * frame.c (Fframep): Adjust user here ... | ||
| 3385 | * terminal.c (Fterminal_live_p): ... and here. | ||
| 3386 | * coding.c (Qmac): Now here because it's only used to denote | ||
| 3387 | end-of-line encoding type. | ||
| 3388 | (syms_of_coding): DEFSYM it. | ||
| 3389 | * frame.h (Qmac): Remove duplicated declaration. | ||
| 3390 | |||
| 3391 | 2012-12-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3392 | |||
| 3393 | * window.c (select_window_1): Now static, since it's used only here. | ||
| 3394 | |||
| 3395 | 2012-12-25 Eli Zaretskii <eliz@gnu.org> | ||
| 3396 | |||
| 3397 | * window.c (window_body_cols): Subtract display margins from the | ||
| 3398 | window body width on TTYs as well. See | ||
| 3399 | http://lists.gnu.org/archive/html/help-gnu-emacs/2012-12/msg00317.html | ||
| 3400 | for the original report. | ||
| 3401 | |||
| 3402 | 2012-12-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3403 | |||
| 3404 | * xdisp.c (redisplay_window): Remove inner local variable | ||
| 3405 | because the outer shadowed one has the same meaning. | ||
| 3406 | * xterm.h (struct x_output): Remove toolbar_detached member since it's | ||
| 3407 | set but never used. | ||
| 3408 | * gtkutil.c (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) | ||
| 3409 | (xg_create_tool_bar): Adjust users. | ||
| 3410 | |||
| 3411 | 2012-12-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3412 | |||
| 3413 | * buffer.h (BUF_COMPACT): New macro to follow the common style. | ||
| 3414 | * buffer.c (Fget_buffer_create): Use it to set compact field of | ||
| 3415 | struct buffer_text to avoid accessing an uninitialized value | ||
| 3416 | when compact_buffer is called for the first time. | ||
| 3417 | (compact_buffer): Use convenient BUF_COMPACT and BUF_MODIFF. | ||
| 3418 | (Fset_buffer_modified_p): Use buffer_window_count to check | ||
| 3419 | whether the buffer is displayed in some window. | ||
| 3420 | * xdisp.c (message_dolog): Likewise. | ||
| 3421 | |||
| 3422 | 2012-12-23 Eli Zaretskii <eliz@gnu.org> | ||
| 3423 | |||
| 3424 | * w32.c (acl_set_file): If setting the file security descriptor | ||
| 3425 | fails, and the new DACL is identical to the existing one, silently | ||
| 3426 | return success. This fixes problems for users backing up their | ||
| 3427 | own files without having the necessary privileges for setting | ||
| 3428 | security descriptors. | ||
| 3429 | |||
| 3430 | * w32proc.c (reader_thread): Do not index fd_info[] with negative | ||
| 3431 | values. | ||
| 3432 | (reader_thread): Exit when cp->status becomes STATUS_READ_ERROR | ||
| 3433 | after WaitForSingleObject returns normally. This expedites reader | ||
| 3434 | thread shutdown when delete_child triggers it. | ||
| 3435 | (reap_subprocess): More accurate commentary for why we call | ||
| 3436 | delete_child only when cp->fd is negative. | ||
| 3437 | |||
| 3438 | * w32.c (sys_close): Do not call delete_child on a subprocess | ||
| 3439 | whose handle is not yet closed. Instead, set its file descriptor | ||
| 3440 | to a negative value, so that reap_subprocess will call | ||
| 3441 | delete_child on that subprocess when its SIGCHLD arrives. | ||
| 3442 | This avoids closing handles used for communications between sys_select | ||
| 3443 | and reader_thread, which doesn't give sys_select a chance to | ||
| 3444 | notice that the process exited and invoke the SIGCHLD handler for | ||
| 3445 | it. | ||
| 3446 | |||
| 3447 | 2012-12-23 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3448 | |||
| 3449 | * nsfns.m (Fns_do_applescript): Run event loop until script has | ||
| 3450 | been executed (Bug#12969). | ||
| 3451 | (ns_run_ascript): Chech as_script for nil, set to nil after | ||
| 3452 | executing script. | ||
| 3453 | |||
| 3454 | 2012-12-22 Martin Rudalics <rudalics@gmx.at> | ||
| 3455 | |||
| 3456 | * window.c (Fselect_window): Reword doc-string (Bug#13248). | ||
| 3457 | |||
| 3458 | 2012-12-22 Eli Zaretskii <eliz@gnu.org> | ||
| 3459 | |||
| 3460 | * w32term.c (w32fullscreen_hook): New function. | ||
| 3461 | (w32_create_terminal): Plug it into the terminal's fullscreen_hook. | ||
| 3462 | |||
| 3463 | 2012-12-21 Eli Zaretskii <eliz@gnu.org> | ||
| 3464 | |||
| 3465 | * fileio.c (Finsert_file_contents): Doc fix. | ||
| 3466 | |||
| 3467 | * w32proc.c (new_child, delete_child, find_child_pid): For a | ||
| 3468 | subprocess, consider its slot being in use as long as its process | ||
| 3469 | handle (procinfo.hProcess) is not NULL. This avoids reusing the | ||
| 3470 | slot when a new process is started immediately after killing | ||
| 3471 | another one, without waiting enough time for the first process to | ||
| 3472 | be reaped and resources allocated for it be orderly freed. | ||
| 3473 | (Bug#13086) | ||
| 3474 | Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>. | ||
| 3475 | |||
| 3476 | 2012-12-21 Chong Yidong <cyd@gnu.org> | ||
| 3477 | |||
| 3478 | * buffer.c (Fset_buffer_major_mode): Doc fix (Bug#13231). | ||
| 3479 | |||
| 3480 | * fns.c (Fcompare_strings): Doc fix (Bug#13081). | ||
| 3481 | |||
| 3482 | 2012-12-21 Eli Zaretskii <eliz@gnu.org> | ||
| 3483 | |||
| 3484 | * w32.c (get_name_and_id): Always pass NULL as the first argument | ||
| 3485 | of lookup_account_sid. Avoids crashes with UNC file names that | ||
| 3486 | refer to DFS domains, not to specific machine names. (Bug#12621) | ||
| 3487 | Remove now unused argument FNAME; all callers changed. | ||
| 3488 | (get_file_owner_and_group): Remove now unused argument FNAME; all | ||
| 3489 | callers changed. | ||
| 3490 | |||
| 3491 | 2012-12-21 Chong Yidong <cyd@gnu.org> | ||
| 3492 | |||
| 3493 | * editfns.c (Finsert_char): Since read-char-by-name now signals an | ||
| 3494 | error for invalid chars, don't check for a nil return value. | ||
| 3495 | |||
| 3496 | 2012-12-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3497 | |||
| 3498 | Avoid calls to CHAR_TO_BYTE if byte position is known. | ||
| 3499 | * editfns.c (make_buffer_string_both): Use move_gap_both. | ||
| 3500 | (Fbuffer_string): Use make_buffer_string_both. | ||
| 3501 | * marker.c (buf_charpos_to_bytepos): Convert to eassert. | ||
| 3502 | Adjust comment. | ||
| 3503 | (buf_bytepos_to_charpos): Likewise. | ||
| 3504 | (charpos_to_bytepos): Remove. | ||
| 3505 | * fileio.c (Finsert_file_contents): Use move_gap_both. | ||
| 3506 | * search.c (Freplace_match): Likewise. | ||
| 3507 | * process.c (process_send_region): Likewise. Use convenient | ||
| 3508 | names for byte positions. | ||
| 3509 | * lisp.h (charpos_to_bytepos): Remove prototype. | ||
| 3510 | * indent.c (scan_for_column): Use CHAR_TO_BYTE. | ||
| 3511 | * insdel.c (move_gap): Likewise. | ||
| 3512 | |||
| 3513 | 2012-12-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3514 | |||
| 3515 | * xdisp.c (redisplay_internal): Remove now-unused local. | ||
| 3516 | |||
| 3517 | 2012-12-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3518 | |||
| 3519 | * xdisp.c (select_frame_for_redisplay, ensure_selected_frame): Remove. | ||
| 3520 | (redisplay_internal): Don't bother selecting the frame to get the | ||
| 3521 | proper value of frame-local variables (bug#13225). | ||
| 3522 | |||
| 3523 | 2012-12-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3524 | |||
| 3525 | * textprop.c (set_text_properties_1): Do not allow NULL interval. | ||
| 3526 | Rename 4th argument since it may be buffer or string. Adjust comment. | ||
| 3527 | * intervals.c (graft_intervals_info_buffer): Find an interval here. | ||
| 3528 | |||
| 3529 | 2012-12-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3530 | |||
| 3531 | * coding.c (Fdetect_coding_region): Do not check start and end with | ||
| 3532 | CHECK_NUMBER_COERCE_MARKER since validate_region does that itself. | ||
| 3533 | (code_convert_region): Likewise. | ||
| 3534 | |||
| 3535 | 2012-12-18 Eli Zaretskii <eliz@gnu.org> | ||
| 3536 | |||
| 3537 | * w32.c (acl_get_file, acl_set_file): Run the file name through | ||
| 3538 | map_w32_filename, and resolve any symlinks in the file name, like | ||
| 3539 | Posix platforms do. | ||
| 3540 | (acl_set_file): Call revert_to_self, if any privileges were | ||
| 3541 | enabled. | ||
| 3542 | |||
| 3543 | 2012-12-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 3544 | |||
| 3545 | * makefile.w32-in ($(BLD)/editfns.$(O), $(BLD)/fileio.$(O)) | ||
| 3546 | ($(BLD)/w32.$(O)): Update dependencies. | ||
| 3547 | |||
| 3548 | 2012-12-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3549 | |||
| 3550 | * xdisp.c (select_frame_for_redisplay): Use select_window_1 to | ||
| 3551 | propagate redisplay's scrolling (if any) to the right window. | ||
| 3552 | (redisplay_internal): Use ensure_selected_frame. | ||
| 3553 | (display_mode_lines): Complete last fix. | ||
| 3554 | * window.c (select_window_1): New func, extracted from select_window. | ||
| 3555 | (select_window): Use it. | ||
| 3556 | * window.h (select_window_1): Declare. | ||
| 3557 | |||
| 3558 | 2012-12-17 Eli Zaretskii <eliz@gnu.org> | ||
| 3559 | |||
| 3560 | Emulate Posix ACL APIs on MS-Windows. | ||
| 3561 | * w32.c: Include sddl.h and sys/acl.h. | ||
| 3562 | (SDDL_REVISION_1): Define if not already defined. | ||
| 3563 | (g_b_init_get_security_descriptor_dacl) | ||
| 3564 | (g_b_init_convert_sd_to_sddl, g_b_init_convert_sddl_to_sd) | ||
| 3565 | (g_b_init_is_valid_security_descriptor) | ||
| 3566 | (g_b_init_set_file_security): New static flags. | ||
| 3567 | (globals_of_w32): Initialize them to zero. | ||
| 3568 | (SetFileSecurity_Name): New string constant. | ||
| 3569 | (SetFileSecurity_Proc, GetSecurityDescriptorDacl_Proc) | ||
| 3570 | (ConvertStringSecurityDescriptorToSecurityDescriptor_Proc) | ||
| 3571 | (ConvertSecurityDescriptorToStringSecurityDescriptor_Proc) | ||
| 3572 | (IsValidSecurityDescriptor_Proc): New typedefs. | ||
| 3573 | (get_file_security, get_security_descriptor_owner) | ||
| 3574 | (get_security_descriptor_group): Set errno to ENOTSUP. | ||
| 3575 | (set_file_security, get_security_descriptor_dacl) | ||
| 3576 | (is_valid_security_descriptor, convert_sd_to_sddl) | ||
| 3577 | (convert_sddl_to_sd, acl_valid, acl_to_text, acl_from_text) | ||
| 3578 | (acl_free, acl_get_file, acl_set_file): New functions. | ||
| 3579 | |||
| 3580 | * fileio.c (Fcopy_file) [WINDOWSNT]: Support copying ACLs. | ||
| 3581 | |||
| 3582 | 2012-12-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3583 | |||
| 3584 | Don't reraise SIGCHLD, as that can now lose (Bug#13192). | ||
| 3585 | With the 2012-12-03 fix for Bug#12980 in place, an old workaround | ||
| 3586 | for some of that bug's symptoms can now cause Emacs to abort. | ||
| 3587 | Remove the workaround. | ||
| 3588 | * process.c (wait_reading_process_output): Don't reraise SIGCHLD. | ||
| 3589 | The bug that caused SIGCHLD to get lost has been fixed, and the | ||
| 3590 | workaround for it can now cause Emacs to abort. | ||
| 3591 | |||
| 3592 | 2012-12-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3593 | |||
| 3594 | * sysdep.c (emacs_abort): Bump backtrace size to 40. | ||
| 3595 | Companion to the 2012-09-30 patch. Suggested by Eli Zaretskii in | ||
| 3596 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00796.html>. | ||
| 3597 | |||
| 3598 | 2012-12-16 Romain Francoise <romain@orebokech.com> | ||
| 3599 | |||
| 3600 | * fileio.c (Ffile_acl, Fset_file_acl): New functions. | ||
| 3601 | (Fcopy_file): Change last arg to `preserve_extended_attributes' | ||
| 3602 | and copy ACL entries of file in addition to SELinux context if set. | ||
| 3603 | (syms_of_fileio): Add `file-acl' and `set-file-acl'. | ||
| 3604 | |||
| 3605 | * Makefile.in (LIBACL_LIBS): New macro. | ||
| 3606 | (LIBES): Use it. | ||
| 3607 | |||
| 3608 | 2012-12-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3609 | |||
| 3610 | * fileio.c (internal_delete_file): Use bool for boolean. | ||
| 3611 | |||
| 3612 | 2012-12-15 Eli Zaretskii <eliz@gnu.org> | ||
| 3613 | |||
| 3614 | Fix bug #13079 on MS-Windows with temp files not being deleted. | ||
| 3615 | * w32.h (_child_process): New members input_file and | ||
| 3616 | pending_deletion. | ||
| 3617 | (register_child): First argument is now pid_t. | ||
| 3618 | (record_infile, record_pending_deletion): New prototypes. | ||
| 3619 | |||
| 3620 | * w32proc.c (new_child): Initialize input_file and | ||
| 3621 | pending_deletion members of the child. | ||
| 3622 | (delete_child): Delete the child's temporary input file, if any, | ||
| 3623 | that is pending deletion. | ||
| 3624 | (register_child): First argument is now pid_t. | ||
| 3625 | (record_infile, record_pending_deletion): New functions. | ||
| 3626 | (reap_subprocess): Fix a typo in DebPrint string. | ||
| 3627 | (sys_spawnve, sys_kill): Use pid_t for PID arguments. | ||
| 3628 | |||
| 3629 | * fileio.c (internal_delete_file): Return an int again: non-zero | ||
| 3630 | if delete-file succeeds, zero otherwise. | ||
| 3631 | |||
| 3632 | * lisp.h (internal_delete_file): Adjust prototype. | ||
| 3633 | |||
| 3634 | * callproc.c (Fcall_process): Don't overwrite infile with result | ||
| 3635 | of DECODE_FILE. | ||
| 3636 | [WINDOWSNT] If BUFFER is an integer, i.e. we are launching an | ||
| 3637 | asynchronous subprocess, record the name of the input file name, | ||
| 3638 | if any. | ||
| 3639 | (delete_temp_file) [WINDOWSNT]: If internal_delete_file fails to | ||
| 3640 | delete the file, record it as pending deletion when the subprocess | ||
| 3641 | exits. | ||
| 3642 | |||
| 3643 | 2012-12-14 Eli Zaretskii <eliz@gnu.org> | ||
| 3644 | |||
| 3645 | * editfns.c [HAVE_PWD_H]: Include grp.h. | ||
| 3646 | |||
| 3647 | * makefile.w32-in ($(BLD)/editfns.$(O)): Add $(NT_INC)/grp.h. | ||
| 3648 | |||
| 3649 | 2012-12-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3650 | |||
| 3651 | Fix permissions bugs with setgid directories etc. (Bug#13125) | ||
| 3652 | * dired.c (Ffile_attributes): Return t as the 9th attribute, | ||
| 3653 | to mark it as a placeholder. The old value was often wrong. | ||
| 3654 | The only user of this attribute has been changed to use | ||
| 3655 | file-ownership-preserved-p instead, with its new group arg. | ||
| 3656 | * editfns.c (Fgroup_gid, Fgroup_real_gid): New functions. | ||
| 3657 | |||
| 3658 | 2012-12-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 3659 | |||
| 3660 | * xdisp.c (select_frame_for_redisplay, display_mode_lines): | ||
| 3661 | Keep selected_window and selected_frame in sync. | ||
| 3662 | |||
| 3663 | 2012-12-14 Eli Zaretskii <eliz@gnu.org> | ||
| 3664 | |||
| 3665 | * w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not | ||
| 3666 | try to get accurate owner and group information from NT file | ||
| 3667 | security APIs. This is to make most callers of 'stat' and | ||
| 3668 | 'lstat', which don't need that information, much faster. | ||
| 3669 | |||
| 3670 | * dired.c (Ffile_attributes) [WINDOWSNT]: | ||
| 3671 | Set w32_stat_get_owner_group to a non-zero value, to request accurate | ||
| 3672 | owner and group information from 'lstat'. | ||
| 3673 | |||
| 3674 | 2012-12-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3675 | |||
| 3676 | * fileio.c (Finsert_file_contents): Don't put tail into head area, | ||
| 3677 | as that confuses set-auto-coding, so insist on the head-read | ||
| 3678 | returning the full 1024 bytes. Let lseek compute the tail offset; | ||
| 3679 | less work for us. Do not ignore I/O errors when reading the tail. | ||
| 3680 | |||
| 3681 | * xdisp.c: Minor style fixes. | ||
| 3682 | (init_iterator): Hoist assignment out of if-expression. | ||
| 3683 | (markpos_of_region): Callers now test for sign, not for -1. | ||
| 3684 | |||
| 3685 | 2012-12-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3686 | |||
| 3687 | Minor redisplay optimization when the region length is zero. | ||
| 3688 | * xdisp.c (markpos_of_region): New function. | ||
| 3689 | (init_iterator): Do not highlight the region of zero length. | ||
| 3690 | (redisplay_window): Check whether the region is of non-zero length. | ||
| 3691 | (try_cursor_movement): Allow if the region length is zero. | ||
| 3692 | (try_window_reusing_current_matrix, try_window_id): Likewise. | ||
| 3693 | |||
| 3694 | 2012-12-13 Eli Zaretskii <eliz@gnu.org> | ||
| 3695 | |||
| 3696 | * search.c (search_buffer): Check the inverse translations of each | ||
| 3697 | character in pattern when the buffer being searched is unibyte. | ||
| 3698 | (Bug#13084) | ||
| 3699 | |||
| 3700 | 2012-12-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3701 | |||
| 3702 | * fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent | ||
| 3703 | files, fixing a regression from 24.2. | ||
| 3704 | (Fverify_visited_file_modtime): Don't read uninitialized st.st_size. | ||
| 3705 | |||
| 3706 | 2012-12-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3707 | |||
| 3708 | * fileio.c (Fcopy_file): Make fstat failure as serious as open failure. | ||
| 3709 | fstat shouldn't fail, and if it does fail copy-file should not proceed. | ||
| 3710 | Remove unnecessary S_ISLNK test, as (contra the comments) this | ||
| 3711 | function can't copy symlinks. Improve quality of error message | ||
| 3712 | when attempting to copy files that are neither regular files nor | ||
| 3713 | directories. | ||
| 3714 | |||
| 3715 | 2012-12-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3716 | |||
| 3717 | * dispnew.c (set_window_cursor_after_update): Use clip_to_bounds. | ||
| 3718 | * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): | ||
| 3719 | * window.c (Frecenter): | ||
| 3720 | * xdisp.c (resize_mini_window, hscroll_window_tree, draw_glyphs): | ||
| 3721 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Likewise. | ||
| 3722 | |||
| 3723 | 2012-12-12 Daniel Colascione <dancol@dancol.org> | ||
| 3724 | |||
| 3725 | * unexcw.c (fixup_executable): Use posix_fallocate to ensure that | ||
| 3726 | the dumped Emacs is not a sparse file, greatly improving Cygwin | ||
| 3727 | "make bootstrap" performance. | ||
| 3728 | |||
| 3729 | 2012-12-11 Michael Albinus <michael.albinus@gmx.de> | ||
| 3730 | |||
| 3731 | * inotify.c (inotify_callback): Generate an Emacs event for every | ||
| 3732 | incoming inotify event. | ||
| 3733 | |||
| 3734 | 2012-12-11 Eli Zaretskii <eliz@gnu.org> | ||
| 3735 | |||
| 3736 | * xdisp.c (handle_face_prop): Fix logic of computing | ||
| 3737 | it->start_of_box_run_p. | ||
| 3738 | (append_space_for_newline): If the glyph row is R2L, reset the | ||
| 3739 | iterator's end_of_box_run_p flag before prepending the space glyph. | ||
| 3740 | (extend_face_to_end_of_line): If the glyph row is R2L, reset the | ||
| 3741 | iterator's start_of_box_run_p flag before prepending the stretch. | ||
| 3742 | (append_glyph, produce_image_glyph, append_composite_glyph) | ||
| 3743 | (append_stretch_glyph, append_glyphless_glyph): Reverse the | ||
| 3744 | left_box_line_p and right_box_line_p flags of the glyph for R2L | ||
| 3745 | glyph rows. (Bug#13011) | ||
| 3746 | |||
| 3747 | 2012-12-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3748 | |||
| 3749 | * buffer.c (Fset_buffer_multibyte): Do not force redisplay | ||
| 3750 | if changed buffer is not shown in a window. | ||
| 3751 | * insdel.c (prepare_to_modify_buffer): Likewise. | ||
| 3752 | * window.c (replace_buffer_in_windows_safely): Do nothing | ||
| 3753 | if buffer is not shown in a window. | ||
| 3754 | (Fforce_window_update): Likewise if string or buffer argument | ||
| 3755 | is passed. | ||
| 3756 | |||
| 3757 | 2012-12-11 Eli Zaretskii <eliz@gnu.org> | ||
| 3758 | |||
| 3759 | * inotify.c (Finotify_add_watch): Rename decoded_file_name to | ||
| 3760 | encoded_file_name, which is what it is. | ||
| 3761 | |||
| 3762 | 2012-12-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3763 | |||
| 3764 | Consistently use marker_position and marker_byte_position. | ||
| 3765 | * fringe.c (Ffringe_bitmaps_at_pos): | ||
| 3766 | * indent.c (Fvertical_motion): | ||
| 3767 | * insdel.c (prepare_to_modify_buffer): | ||
| 3768 | * keyboard.c (make_lispy_position): | ||
| 3769 | * window.c (Fwindow_end, Fpos_visible_in_window_p, unshow_buffer) | ||
| 3770 | (window_scroll_pixel_based, displayed_window_lines) | ||
| 3771 | (Fset_window_configuration): | ||
| 3772 | * xdisp.c (message_dolog, with_echo_area_buffer_unwind_data) | ||
| 3773 | (mark_window_display_accurate_1, redisplay_window, decode_mode_spec): | ||
| 3774 | Replace direct access to marker fields with calls | ||
| 3775 | to marker_position and/or marker_byte_position. | ||
| 3776 | |||
| 3777 | 2012-12-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 3778 | |||
| 3779 | * makefile.w32-in (SIG2STR_H): New macro. | ||
| 3780 | (SYSWAIT_H, $(BLD)/emacs.$(O), $(BLD)/process.$(O)) | ||
| 3781 | ($(BLD)/w32notify.$(O)): Update dependencies. | ||
| 3782 | |||
| 3783 | 2012-12-10 Daniel Colascione <dancol@dancol.org> | ||
| 3784 | |||
| 3785 | * w32term.c, keyboard.c: Fix build break in cygw32 by omitting | ||
| 3786 | Windows file notification functionality unless WINDOWSNT. | ||
| 3787 | |||
| 3788 | * w32gui.h (hprevinst, lpCmdLine, nCmdShow): Remove unused | ||
| 3789 | declarations. | ||
| 3790 | |||
| 3791 | * w32fns.c (cache_system_info): Initialize the global hinst | ||
| 3792 | variable here so various initialization calls DTRT. | ||
| 3793 | |||
| 3794 | * unexw32.c (hprevinst, lpCmdLine, nCmdShow): Remove unused variables. | ||
| 3795 | (hinst): Remove unneeded extern declaration. | ||
| 3796 | (_start): Remove initialization of above variables; remove | ||
| 3797 | initialization of hinst, as cache_system_info now does that. | ||
| 3798 | |||
| 3799 | * emacs.c (main): Call cache_system_info early in startup; we | ||
| 3800 | previously weren't calling it in Cygwin builds. | ||
| 3801 | |||
| 3802 | * Makefile.in (ntsource, WINDRES, W32_RES, W#@_RES_LINK): | ||
| 3803 | Teach the autoconf build system how to compile a Windows resource file | ||
| 3804 | and link it to Emacs. | ||
| 3805 | |||
| 3806 | 2012-12-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 3807 | |||
| 3808 | Per-buffer window counters. | ||
| 3809 | * buffer.h (struct buffer): New member window_count. | ||
| 3810 | (buffer_window_count): New function. | ||
| 3811 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): | ||
| 3812 | Initialize window_count. | ||
| 3813 | (Fkill_buffer): Verify window_count for the buffer being killed. | ||
| 3814 | (modify_overlay): Do not force redisplay if buffer is not shown | ||
| 3815 | in any window. | ||
| 3816 | (init_buffer_once): Initialize window_count for buffer_defaults | ||
| 3817 | and buffer_local_symbols. | ||
| 3818 | * window.h (buffer_shared): Remove declaration. | ||
| 3819 | (wset_buffer): Convert from inline ... | ||
| 3820 | * window.c (wset_buffer): ... to an ordinary function. | ||
| 3821 | (adjust_window_count): New function. | ||
| 3822 | (make_parent_window): Use it. | ||
| 3823 | * xdisp.c (buffer_shared): Remove. | ||
| 3824 | (redisplay_internal, redisplay_window): Adjust users. | ||
| 3825 | (buffer_shared_and_changed): Use per-buffer window counter. | ||
| 3826 | |||
| 3827 | 2012-12-10 Eli Zaretskii <eliz@gnu.org> | ||
| 3828 | |||
| 3829 | Support for filesystem notifications on MS-Windows. | ||
| 3830 | * w32proc.c (sys_select): If drain_message_queue returns non-zero, | ||
| 3831 | and this is a TTY frame, signal the caller that keyboard input is | ||
| 3832 | available. | ||
| 3833 | |||
| 3834 | * w32xfns.c (drain_message_queue): Now returns an int: an | ||
| 3835 | indication whether any WM_EMACS_FILENOTIFY messages were found in | ||
| 3836 | the queue. | ||
| 3837 | |||
| 3838 | * w32inevt.c (handle_file_notifications): New function. | ||
| 3839 | (w32_console_read_socket): Call it to process file notifications. | ||
| 3840 | |||
| 3841 | * w32console.c (initialize_w32_display): Record the main thread ID | ||
| 3842 | in dwMainThreadId. | ||
| 3843 | |||
| 3844 | * deps.mk (inotify.o): New dependency list. | ||
| 3845 | |||
| 3846 | * Makefile.in (SOME_MACHINE_OBJECTS): Add w32notify.o. | ||
| 3847 | |||
| 3848 | * w32term.h (WM_EMACS_FILENOTIFY): New custom message. | ||
| 3849 | (WM_EMACS_END): Bump value by 1. | ||
| 3850 | (notification_buffer_in_use, file_notifications) | ||
| 3851 | (notifications_size, notifications_desc): Declare. | ||
| 3852 | (w32_get_watch_object, lispy_file_action, globals_of_w32notify): | ||
| 3853 | Add prototypes. | ||
| 3854 | |||
| 3855 | * w32term.c (lispy_file_action, queue_notifications): New functions. | ||
| 3856 | (syms_of_w32term) <Qadded, Qremoved, Qmodified, Qrenamed_from> | ||
| 3857 | <Qrenamed_to>: New symbols. | ||
| 3858 | (w32_read_socket): Handle the WM_EMACS_FILENOTIFY message. | ||
| 3859 | |||
| 3860 | * w32notify.c: New file, implements file event notifications for | ||
| 3861 | MS-Windows. | ||
| 3862 | |||
| 3863 | * w32fns.c (w32_wnd_proc): Handle the WM_EMACS_FILENOTIFY message | ||
| 3864 | by posting it to the w32_read_socket queue. | ||
| 3865 | |||
| 3866 | * termhooks.h (enum event_kind) [HAVE_NTGUI]: Support FILE_NOTIFY_EVENT. | ||
| 3867 | |||
| 3868 | * makefile.w32-in (OBJ2): Add $(BLD)/w32notify.$(O). | ||
| 3869 | (GLOBAL_SOURCES): Add w32notify.c | ||
| 3870 | ($(BLD)/w32notify.$(O)): New set of dependencies. | ||
| 3871 | |||
| 3872 | * lisp.h (syms_of_w32notify) [WINDOWSNT]: Add prototype. | ||
| 3873 | |||
| 3874 | * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: | ||
| 3875 | Handle FILE_NOTIFY_EVENT. | ||
| 3876 | (syms_of_keyboard) [HAVE_NTGUI] <Qfile_notify>: New symbol. | ||
| 3877 | (keys_of_keyboard) [WINDOWSNT]: Bind file-notify to | ||
| 3878 | w32notify-handle-event by default. | ||
| 3879 | |||
| 3880 | * emacs.c (main) [WINDOWSNT]: Call globals_of_w32notify and | ||
| 3881 | syms_of_w32notify. | ||
| 3882 | |||
| 3883 | 2012-12-10 Rüdiger Sonderfeld <ruediger@c-plusplus.de> | ||
| 3884 | |||
| 3885 | Support for filesystem notifications on GNU/Linux via inotify. | ||
| 3886 | * termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add FILE_NOTIFY_EVENT. | ||
| 3887 | |||
| 3888 | * lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype. | ||
| 3889 | |||
| 3890 | * keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable. | ||
| 3891 | (syms_of_keyboard): DEFSYM it. | ||
| 3892 | (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT. | ||
| 3893 | (make_lispy_event): Support FILE_NOTIFY_EVENT by generating | ||
| 3894 | Qfile_inotify events. | ||
| 3895 | (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in | ||
| 3896 | special-event-map to inotify-handle-event. | ||
| 3897 | |||
| 3898 | * emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify. | ||
| 3899 | |||
| 3900 | * Makefile.in (base_obj): Add inotify.o. | ||
| 3901 | |||
| 3902 | * inotify.c: New file. | ||
| 3903 | |||
| 3904 | 2012-12-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 3905 | |||
| 3906 | * nsterm.m (fd_handler:): FD_ZERO fds (Bug#13103). | ||
| 3907 | |||
| 3908 | 2012-12-10 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 3909 | |||
| 3910 | * w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to | ||
| 3911 | DWORD_PTR, for compatibility with 64-bit builds. | ||
| 3912 | |||
| 3913 | * w32.c (_PROCESS_MEMORY_COUNTERS_EX): | ||
| 3914 | (GetProcessWorkingSetSize_Proc, get_process_working_set_size) | ||
| 3915 | (system_process_attributes): Use SIZE_T rather than DWORD, for | ||
| 3916 | compatibility with 64-bit builds. | ||
| 3917 | |||
| 3918 | 2012-12-10 Christopher Schmidt <christopher@ch.ristopher.com> | ||
| 3919 | |||
| 3920 | * lread.c (Vload_source_file_function): Doc fix (Bug#11647). | ||
| 3921 | |||
| 3922 | 2012-12-10 Eli Zaretskii <eliz@gnu.org> | ||
| 3923 | |||
| 3924 | * indent.c (Fvertical_motion): If a display string will be | ||
| 3925 | displayed on the left or the right margin, don't consider it as a | ||
| 3926 | factor in cursor positioning. (Bug#13108) | ||
| 3927 | |||
| 3928 | 2012-12-10 Martin Rudalics <rudalics@gmx.at> | ||
| 3929 | |||
| 3930 | * editfns.c (Fcompare_buffer_substrings): Reword doc-string. | ||
| 3931 | |||
| 3932 | 2012-12-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3933 | |||
| 3934 | * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int, | ||
| 3935 | for string length. | ||
| 3936 | |||
| 3937 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> | ||
| 3938 | |||
| 3939 | * w32.c (unsetenv): Return 0 if the input string is too long. | ||
| 3940 | |||
| 3941 | 2012-12-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3942 | |||
| 3943 | Use putenv+unsetenv instead of modifying environ directly (Bug#13070). | ||
| 3944 | * alloc.c (xputenv): New function. | ||
| 3945 | * dbusbind.c (Fdbus_init_bus): | ||
| 3946 | * emacs.c (main): | ||
| 3947 | * xterm.c (x_term_init): | ||
| 3948 | Use xputenv instead of setenv or putenv, to detect memory exhaustion. | ||
| 3949 | * editfns.c (initial_tz): Move static var decl up. | ||
| 3950 | (tzvalbuf_in_environ): New static var. | ||
| 3951 | (init_editfns): Initialize these two static vars. | ||
| 3952 | (Fencode_time): Don't assume arbitrary limit on EMACS_INT width. | ||
| 3953 | Save old TZ value on stack, if it's small. | ||
| 3954 | (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly; | ||
| 3955 | instead, use xputenv+unsetenv to set and restore TZ. | ||
| 3956 | (environbuf): Remove static var. All uses removed. | ||
| 3957 | (Fset_time_zone_rule): Do not save TZ and environ; | ||
| 3958 | no longer needed here. | ||
| 3959 | (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]: | ||
| 3960 | Move to inside set_time_zone_rule; they don't need file scope any more. | ||
| 3961 | (set_time_zone_rule): Maintain the TZ=value string separately. | ||
| 3962 | (syms_of_editfns): Don't initialize initial_tz; | ||
| 3963 | init_editfns now does it. | ||
| 3964 | * emacs.c (dump_tz) [HAVE_TZSET]: Now const. | ||
| 3965 | * lisp.h (xputenv): New decl. | ||
| 3966 | |||
| 3967 | 2012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 3968 | |||
| 3969 | * w32fns.c (emacs_abort): Don't do arithmetics on void pointers. | ||
| 3970 | |||
| 3971 | 2012-12-08 Eli Zaretskii <eliz@gnu.org> | ||
| 3972 | |||
| 3973 | * w32.c (unsetenv, sys_putenv): New functions. | ||
| 3974 | |||
| 3975 | 2012-12-08 Chong Yidong <cyd@gnu.org> | ||
| 3976 | |||
| 3977 | * editfns.c (Finsert_char): Make the error message more | ||
| 3978 | informative (Bug#12992). | ||
| 3979 | |||
| 3980 | 2012-12-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 3981 | |||
| 3982 | Simplify get_lim_data. | ||
| 3983 | * vm-limit.c (get_lim_data): Combine RLIMIT_AS and RLIMIT_DATA methods. | ||
| 3984 | Remove USG and vlimit methods; no longer used these days. | ||
| 3985 | Add #error catchall just in case. | ||
| 3986 | |||
| 3987 | Assume POSIX 1003.1-1988 or later for signal.h (Bug#13026). | ||
| 3988 | Exceptions: do not assume SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN, | ||
| 3989 | SIGTTOU, SIGUSR1, SIGUSR2, as Microsoft platforms lack these. | ||
| 3990 | * process.c [subprocesses]: Include <c-ctype.h>, <sig2str.h>. | ||
| 3991 | (deleted_pid_list, Fdelete_process, create_process) | ||
| 3992 | (record_child_status_change, handle_child_signal, deliver_child_signal) | ||
| 3993 | (init_process_emacs, syms_of_process): | ||
| 3994 | Assume SIGCHLD is defined. | ||
| 3995 | (parse_signal): Remove. All uses removed. | ||
| 3996 | (abbr_to_signal): New static function. | ||
| 3997 | (Fsignal_process): Use it to convert signal names to ints. | ||
| 3998 | * sysdep.c (sys_suspend) [!DOS_NT]: Use kill (0, ...) rather than | ||
| 3999 | kill (getpgrp (), ...). | ||
| 4000 | (emacs_sigaction_init): Assume SIGCHLD is defined. | ||
| 4001 | (init_signals): Assume SIGALRM, SIGCHLD, SIGHUP, SIGKILL, | ||
| 4002 | SIGPIPE, and SIGQUIT are defined. Do not worry about SIGCLD any more. | ||
| 4003 | * syssignal.h (EMACS_KILLPG): Remove. | ||
| 4004 | All uses replaced by 'kill' with a negative pid. | ||
| 4005 | (SIGCHLD): Remove definition, as we now assume SIGCHLD. | ||
| 4006 | * w32proc.c (sys_kill): Support negative pids compatibly with POSIX. | ||
| 4007 | |||
| 4008 | 2012-12-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4009 | |||
| 4010 | * sysdep.c (get_child_status): Abort on internal error (Bug#13086). | ||
| 4011 | This will cause a production Emacs to dump core instead of | ||
| 4012 | infinite-looping. | ||
| 4013 | |||
| 4014 | 2012-12-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4015 | |||
| 4016 | * frame.c (make_frame): Do not set window's buffer to t. | ||
| 4017 | * window.c (Fsplit_window_internal): Likewise. Previously it was | ||
| 4018 | used to indicate that the window is being set up. Now we use | ||
| 4019 | set_window_buffer for all new windows, so the condition in ... | ||
| 4020 | (Fset_window_buffer): ... is always true and can be removed. | ||
| 4021 | |||
| 4022 | 2012-12-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4023 | |||
| 4024 | Convenient macro to check whether the buffer is hidden. | ||
| 4025 | * buffer.h (BUFFER_HIDDEN_P): New macro. | ||
| 4026 | * frame.c (make_frame): Use it. Adjust comment. | ||
| 4027 | * buffer.c (candidate_buffer): New function. | ||
| 4028 | (Fother_buffer, other_buffer_safely): Use it. | ||
| 4029 | |||
| 4030 | 2012-12-06 Eli Zaretskii <eliz@gnu.org> | ||
| 4031 | |||
| 4032 | * w32proc.c (waitpid): Avoid busy-waiting when called with WNOHANG | ||
| 4033 | if the child process is still running. Instead, exit the wait | ||
| 4034 | loop and return zero. (Bug#13086) | ||
| 4035 | |||
| 4036 | 2012-12-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4037 | |||
| 4038 | * frame.h (x_char_width, x_char_height): Remove prototypes. | ||
| 4039 | * w32term.h (x_char_width, x_char_height): Likewise. | ||
| 4040 | * xfns.c (x_char_width, x_char_height): Remove. | ||
| 4041 | * w32fns.c (x_char_width, x_char_height): Likewise. | ||
| 4042 | * nsfns.c (x_char_width, x_char_height): Likewise. | ||
| 4043 | * frame.c (Fframe_char_width): Use FRAME_COLUMN_WIDTH for | ||
| 4044 | all window frames. | ||
| 4045 | (Fframe_char_height): Likewise with FRAME_LINE_HEIGHT. | ||
| 4046 | * keyboard.c (command_loop_1): Remove prototype. | ||
| 4047 | (command_loop_2, top_level_1): Add static to match prototype. | ||
| 4048 | |||
| 4049 | 2012-12-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4050 | |||
| 4051 | Fix a recently-introduced delete-process race condition. | ||
| 4052 | * callproc.c, process.h (record_kill_process): | ||
| 4053 | New function, containing part of the old call_process_kill. | ||
| 4054 | (call_process_kill): Use it. | ||
| 4055 | This does not change call_process_kill's behavior. | ||
| 4056 | * process.c (Fdelete_process): Use record_kill_process to fix a | ||
| 4057 | race condition that could cause Emacs to lose track of a child. | ||
| 4058 | |||
| 4059 | 2012-12-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4060 | |||
| 4061 | Avoid code duplication between prev_frame and next_frame. | ||
| 4062 | * frame.c (candidate_frame): New function. Add comment. | ||
| 4063 | (prev_frame, next_frame): Use it. Adjust comment. | ||
| 4064 | |||
| 4065 | 2012-12-06 Eli Zaretskii <eliz@gnu.org> | ||
| 4066 | |||
| 4067 | * callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp | ||
| 4068 | fails, signal an error instead of continuing with an empty | ||
| 4069 | string. (Bug#13079) | ||
| 4070 | Encode expanded temp file pattern before passing it to mkstemp or | ||
| 4071 | mktemp. | ||
| 4072 | |||
| 4073 | * fileio.c (file_name_as_directory, directory_file_name) [DOS_NT]: | ||
| 4074 | Encode the file name before passing it to dostounix_filename, in | ||
| 4075 | case it will downcase it (under w32-downcase-file-names). | ||
| 4076 | (Bug#12933) | ||
| 4077 | |||
| 4078 | 2012-12-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4079 | |||
| 4080 | Minor call-process cleanups. | ||
| 4081 | * callproc.c (Fcall_process): Do record-unwind-protect on MSDOS | ||
| 4082 | at the same time as other platforms, to simplify analysis. | ||
| 4083 | No need for fd0_volatile since we have synch_process_fd. | ||
| 4084 | Avoid needless emacs_close; arg is always negative. | ||
| 4085 | |||
| 4086 | 2012-12-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 4087 | |||
| 4088 | * callproc.c (Fcall_process): Fix specpdl nesting for asynchronous | ||
| 4089 | processes. | ||
| 4090 | |||
| 4091 | 2012-12-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4092 | |||
| 4093 | * lisp.h (Mouse_HLInfo): Remove set-but-unused mouse_face_image_state | ||
| 4094 | member. Adjust users. Convert mouse_face_past_end, mouse_face_defer | ||
| 4095 | and mouse_face_hidden members to a bitfields. | ||
| 4096 | * frame.h (struct frame): Remove set-but-not-used space_width member. | ||
| 4097 | (FRAME_SPACE_WIDTH): Remove. | ||
| 4098 | * nsterm.m, w32term.c, xterm.c: Adjust users. | ||
| 4099 | * termchar.h (struct tty_display_info): Remove set-but-unused se_is_so | ||
| 4100 | member. Adjust users. Convert term_initted, delete_in_insert_mode, | ||
| 4101 | costs_set, insert_mode, standout_mode, cursor_hidden and flow_control | ||
| 4102 | members to a bitfields. | ||
| 4103 | |||
| 4104 | 2012-12-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4105 | |||
| 4106 | Don't let call-process be a zombie factory (Bug#12980). | ||
| 4107 | Fixing this bug required some cleanup of the signal-handling code. | ||
| 4108 | As a side effect, this change also fixes a longstanding rare race | ||
| 4109 | condition whereby Emacs could mistakenly kill unrelated processes, | ||
| 4110 | and it fixes a bug where a second C-g does not kill a recalcitrant | ||
| 4111 | synchronous process in GNU/Linux and similar platforms. | ||
| 4112 | The patch should also fix the last vestiges of Bug#9488, | ||
| 4113 | a bug which has mostly been fixed on the trunk by other changes. | ||
| 4114 | * callproc.c, process.h (synch_process_alive, synch_process_death) | ||
| 4115 | (synch_process_termsig, sync_process_retcode): | ||
| 4116 | Remove. All uses removed, to simplify analysis and so that | ||
| 4117 | less consing is done inside critical sections. | ||
| 4118 | * callproc.c (call_process_exited): Remove. All uses replaced | ||
| 4119 | with !synch_process_pid. | ||
| 4120 | * callproc.c (synch_process_pid, synch_process_fd): New static vars. | ||
| 4121 | These take the role of what used to be in unwind-protect arg. | ||
| 4122 | All uses changed. | ||
| 4123 | (block_child_signal, unblock_child_signal): | ||
| 4124 | New functions, to avoid races that could kill innocent-victim processes. | ||
| 4125 | (call_process_kill, call_process_cleanup, Fcall_process): Use them. | ||
| 4126 | (call_process_kill): Record killed processes as deleted, so that | ||
| 4127 | zombies do not clutter up the system. Do this inside a critical | ||
| 4128 | section, to avoid a race that would allow the clutter. | ||
| 4129 | (call_process_cleanup): Fix code so that the second C-g works again | ||
| 4130 | on common platforms such as GNU/Linux. | ||
| 4131 | (Fcall_process): Create the child process in a critical section, | ||
| 4132 | to fix a race condition. If creating an asynchronous process, | ||
| 4133 | record it as deleted so that zombies do not clutter up the system. | ||
| 4134 | Do unwind-protect for WINDOWSNT too, as that's simpler in the | ||
| 4135 | light of these changes. Omit unnecessary call to emacs_close | ||
| 4136 | before failure, as the unwind-protect code does that. | ||
| 4137 | * callproc.c (call_process_cleanup): | ||
| 4138 | * w32proc.c (waitpid): Simplify now that synch_process_alive is gone. | ||
| 4139 | * process.c (record_deleted_pid): New function, containing | ||
| 4140 | code refactored out of Fdelete_process. | ||
| 4141 | (Fdelete_process): Use it. | ||
| 4142 | (process_status_retrieved): Remove. All callers changed to use | ||
| 4143 | child_status_change. | ||
| 4144 | (record_child_status_change): Remove, folding its contents into ... | ||
| 4145 | (handle_child_signal): ... this signal handler. Now, this | ||
| 4146 | function is purely a handler for SIGCHLD, and is not called after | ||
| 4147 | a synchronous waitpid returns; the synchronous code is moved to | ||
| 4148 | wait_for_termination. There is no need to worry about reaping | ||
| 4149 | more than one child now. | ||
| 4150 | * sysdep.c (get_child_status, child_status_changed): New functions. | ||
| 4151 | (wait_for_termination): Now takes int * status and bool | ||
| 4152 | interruptible arguments, too. Do not record child status change; | ||
| 4153 | that's now the caller's responsibility. All callers changed. | ||
| 4154 | Reimplement in terms of get_child_status. | ||
| 4155 | (wait_for_termination_1, interruptible_wait_for_termination): | ||
| 4156 | Remove. All callers changed to use wait_for_termination. | ||
| 4157 | * syswait.h: Include <stdbool.h>, for bool. | ||
| 4158 | (record_child_status_change, interruptible_wait_for_termination): | ||
| 4159 | Remove decls. | ||
| 4160 | (record_deleted_pid, child_status_changed): New decls. | ||
| 4161 | (wait_for_termination): Adjust to API changes noted above. | ||
| 4162 | |||
| 4163 | * bytecode.c, lisp.h (Qbytecode): Remove. | ||
| 4164 | No longer needed after 2012-11-20 interactive-p changes. | ||
| 4165 | |||
| 4166 | 2012-12-03 Eli Zaretskii <eliz@gnu.org> | ||
| 4167 | |||
| 4168 | * xdisp.c (redisplay_window): If the cursor is visible, but inside | ||
| 4169 | the scroll margin, move point outside the margin. (Bug#13055) | ||
| 4170 | |||
| 4171 | 2012-12-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4172 | |||
| 4173 | * gtkutil.c (my_log_handler): New function. | ||
| 4174 | (xg_set_geometry): Set log handler to my_log_handler (Bug#11177). | ||
| 4175 | |||
| 4176 | 2012-12-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4177 | |||
| 4178 | * lisp.h (modify_region): Rename to... | ||
| 4179 | (modify_region_1): ...new prototype. | ||
| 4180 | * textprop.c (modify_region): Now static. Adjust users. | ||
| 4181 | * insdel.c (modify_region): Rename to... | ||
| 4182 | (modify_region_1): ...new function to work with current buffer. | ||
| 4183 | Adjust comment and users. Use true and false for booleans. | ||
| 4184 | |||
| 4185 | 2012-12-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4186 | |||
| 4187 | * alloc.c (free_save_value): New function. | ||
| 4188 | (safe_alloca_unwind): Use it. | ||
| 4189 | * lisp.h (free_save_value): New prototype. | ||
| 4190 | * editfns.c (save_excursion_save): Use Lisp_Misc_Save_Value. | ||
| 4191 | Add comment. | ||
| 4192 | (save_excursion_restore): Adjust to match saved data structure. | ||
| 4193 | Use free_save_value to offload some work from GC. Drop obsolete | ||
| 4194 | #if 0 code. | ||
| 4195 | |||
| 4196 | 2012-12-03 Chong Yidong <cyd@gnu.org> | ||
| 4197 | |||
| 4198 | * fileio.c (Vauto_save_list_file_name): Doc fix. | ||
| 4199 | |||
| 4200 | 2012-12-03 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 4201 | |||
| 4202 | * w32fns.c: Remove prototype of atof. | ||
| 4203 | (syspage_mask): Make it DWORD_PTR, for compatibility with 64-bit | ||
| 4204 | builds. | ||
| 4205 | (file_dialog_callback): Make it UINT_PTR. | ||
| 4206 | |||
| 4207 | * w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility | ||
| 4208 | with 64-bit builds. | ||
| 4209 | |||
| 4210 | * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) | ||
| 4211 | (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already | ||
| 4212 | defined. | ||
| 4213 | |||
| 4214 | 2012-12-03 Glenn Morris <rgm@gnu.org> | ||
| 4215 | |||
| 4216 | * data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding. | ||
| 4217 | |||
| 4218 | 2012-12-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4219 | |||
| 4220 | Fix xpalloc confusion after memory is exhausted. | ||
| 4221 | * alloc.c (xpalloc): Comment fix. | ||
| 4222 | * charset.c (Fdefine_charset_internal): If xpalloc exhausts memory | ||
| 4223 | and signals an error, do not clear charset_table_size, as | ||
| 4224 | charset_table is still valid. | ||
| 4225 | * doprnt.c (evxprintf): Clear *BUF after freeing it. | ||
| 4226 | |||
| 4227 | Use execve to avoid need to munge environ (Bug#13054). | ||
| 4228 | * callproc.c (Fcall_process): | ||
| 4229 | * process.c (create_process): | ||
| 4230 | Don't save and restore environ; no longer needed. | ||
| 4231 | * callproc.c (child_setup): | ||
| 4232 | Use execve, not execvp, to preserve environ. | ||
| 4233 | |||
| 4234 | 2012-12-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4235 | |||
| 4236 | * xterm.c (x_draw_image_relief): Remove unused locals (Bug#10500). | ||
| 4237 | |||
| 4238 | 2012-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 4239 | |||
| 4240 | * xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief | ||
| 4241 | display for sliced images (Bug#10500). | ||
| 4242 | |||
| 4243 | * w32term.c (w32_draw_relief_rect, x_draw_image_relief): Likewise. | ||
| 4244 | |||
| 4245 | 2012-11-30 Juanma Barranquero <lekktu@gmail.com> | ||
| 4246 | |||
| 4247 | * doc.c (Fdocumentation): Re-add handling of function-documentation, | ||
| 4248 | accidentally removed in 2012-11-09T04:10:16Z!monnier@iro.umontreal.ca (bug#13034). | ||
| 4249 | |||
| 4250 | 2012-11-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4251 | |||
| 4252 | * xdisp.c (window_outdated): Remove eassert since it hits | ||
| 4253 | some suspicious corner cases (see Bug#13007 and Bug#13012). | ||
| 4254 | (mode_line_update_needed): New function. | ||
| 4255 | (redisplay_internal, redisplay_window): Use it. | ||
| 4256 | (ensure_selected_frame): New function. | ||
| 4257 | (redisplay_internal, unwind_redisplay): Use it. | ||
| 4258 | (redisplay_internal): Move comment about buffer_shared... | ||
| 4259 | (buffer_shared_and_changed): ...near to its real use. | ||
| 4260 | |||
| 4261 | 2012-11-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4262 | |||
| 4263 | * callproc.c (Fcall_process): Don't misreport vfork failure. | ||
| 4264 | |||
| 4265 | 2012-11-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4266 | |||
| 4267 | * callproc.c (Fcall_process): Fix vfork portability problems. | ||
| 4268 | Do not assume that fd[0], count, filefd, and save_environ survive | ||
| 4269 | vfork. Fix bug whereby wrong errno value could be reported for | ||
| 4270 | pipe failure. Some minor cleanups, too, as follows. Move buf and | ||
| 4271 | bufsize to the context where they're needed. Change new_argv to | ||
| 4272 | be of type char **, as this is more convenient and avoids casts. | ||
| 4273 | (CALLPROC_BUFFER_SIZE_MIN, CALLPROC_BUFFER_SIZE_MAX): | ||
| 4274 | Now local constants, not macros. | ||
| 4275 | |||
| 4276 | 2012-11-18 Kenichi Handa <handa@gnu.org> | ||
| 4277 | |||
| 4278 | * font.c (font_unparse_xlfd): Fix previous change. Keep "const" | ||
| 4279 | for the variable "f". | ||
| 4280 | |||
| 4281 | 2012-11-13 Kenichi Handa <handa@gnu.org> | ||
| 4282 | |||
| 4283 | * font.c (font_unparse_xlfd): Exclude special characters from the | ||
| 4284 | generating XLFD name. | ||
| 4285 | |||
| 4286 | 2012-11-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4287 | |||
| 4288 | Assume POSIX 1003.1-1988 or later for grp.h, pwd.h. | ||
| 4289 | * dired.c (stat_uname, stat_gname): | ||
| 4290 | * fileio.c (Fexpand_file_name): Remove no-longer-needed casts. | ||
| 4291 | |||
| 4292 | Assume POSIX 1003.1-1988 or later for errno.h (Bug#12968). | ||
| 4293 | * dired.c (directory_files_internal, file_name_completion): | ||
| 4294 | Assume EAGAIN and EINTR are defined. | ||
| 4295 | |||
| 4296 | * fileio.c (Fcopy_file): Assume EISDIR is defined. | ||
| 4297 | * gmalloc.c (ENOMEM, EINVAL): Assume they're defined. | ||
| 4298 | * gnutls.c (emacs_gnutls_write): Assume EAGAIN is defined. | ||
| 4299 | * lread.c (readbyte_from_file): Assume EINTR is defined. | ||
| 4300 | * process.c (wait_reading_process_output, send_process) [subprocesses]: | ||
| 4301 | Assume EIO and EAGAIN are defined. | ||
| 4302 | * unexcoff.c (write_segment): Assume EFAULT is defined. | ||
| 4303 | |||
| 4304 | 2012-11-27 Eli Zaretskii <eliz@gnu.org> | ||
| 4305 | |||
| 4306 | * fontset.c (Finternal_char_font): Return nil on non-GUI frames. | ||
| 4307 | (Bug#11964) | ||
| 4308 | |||
| 4309 | * xdisp.c (draw_glyphs): Don't draw in mouse face if mouse | ||
| 4310 | highlighting on the frame was cleared. Prevents assertion | ||
| 4311 | violations when repeatedly clicking on the "Top" link of the | ||
| 4312 | "bread-crumbs" in Info buffers. | ||
| 4313 | |||
| 4314 | 2012-11-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4315 | |||
| 4316 | * sysdep.c (sys_subshell): Don't assume pid_t fits in int. | ||
| 4317 | |||
| 4318 | 2012-11-24 Ken Brown <kbrown@cornell.edu> | ||
| 4319 | |||
| 4320 | * keyboard.c (HAVE_MOUSE): | ||
| 4321 | * frame.c (HAVE_MOUSE): Remove, and rewrite code as if HAVE_MOUSE | ||
| 4322 | were always defined. | ||
| 4323 | |||
| 4324 | 2012-11-24 Eli Zaretskii <eliz@gnu.org> | ||
| 4325 | |||
| 4326 | * xdisp.c (set_cursor_from_row): Skip step 2 only if point is not | ||
| 4327 | between bpos_covered and bpos_max. This fixes cursor display when | ||
| 4328 | several display strings follow each other. | ||
| 4329 | |||
| 4330 | * .gdbinit (pgx): If the glyph's object is a string, display the | ||
| 4331 | pointer to string data, rather than the value of the string object | ||
| 4332 | itself (which barfs under CHECK_LISP_OBJECT_TYPE). | ||
| 4333 | |||
| 4334 | * indent.c (Fvertical_motion): If the starting position is covered | ||
| 4335 | by a display string, return to one position before that, to avoid | ||
| 4336 | overshooting it inside move_it_to. (Bug#12930) | ||
| 4337 | |||
| 4338 | 2012-11-23 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4339 | |||
| 4340 | * frame.h (struct frame): Remove display_preempted member | ||
| 4341 | since all users are dead long ago. | ||
| 4342 | * nsterm.h (struct x_output): Use the only dummy member. | ||
| 4343 | * w32menu.c (pending_menu_activation): Remove since not | ||
| 4344 | really used. | ||
| 4345 | (set_frame_menubar): Adjust user. | ||
| 4346 | * w32term.h (struct x_output): Drop outdated #if 0 code. | ||
| 4347 | (struct w32_output): Use bitfields for explicit_parent, | ||
| 4348 | asked_for_visible and menubar_active members. | ||
| 4349 | Drop unused pending_menu_activation member. | ||
| 4350 | * xterm.h (struct x_output): Drop outdated #if 0 code. | ||
| 4351 | Use bitfields for explicit_parent, asked_for_visible, | ||
| 4352 | has_been_visible and net_wm_state_hidden_seen members. | ||
| 4353 | |||
| 4354 | 2012-11-23 Eli Zaretskii <eliz@gnu.org> | ||
| 4355 | |||
| 4356 | * makefile.w32-in (globals.h, gl-stamp): Use $(SWITCHCHAR) instead | ||
| 4357 | of a literal "/". (Bug#12955) | ||
| 4358 | (gl-stamp): Invoke fc.exe directly, not through cmd. | ||
| 4359 | |||
| 4360 | 2012-11-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4361 | |||
| 4362 | Assume POSIX 1003.1-1988 or later for dirent.h (Bug#12958). | ||
| 4363 | * dired.c: Assume HAVE_DIRENT_H. | ||
| 4364 | (NAMLEN): Remove, replacing with ... | ||
| 4365 | (dirent_namelen): New function. All uses changed. Use the GNU macro | ||
| 4366 | _D_EXACT_NAMELEN if available, as it's faster than strlen. | ||
| 4367 | (DIRENTRY): Remove, replacing all uses with 'struct dirent'. | ||
| 4368 | (DIRENTRY_NONEMPTY): Remove. All callers now assume it's nonzero. | ||
| 4369 | * makefile.w32-in (DIR_H): Remove. All uses replaced with | ||
| 4370 | $(NT_INC)/dirent.h. | ||
| 4371 | ($(BLD)/w32.$(O)): Do not depend on $(SRC)/ndir.h. | ||
| 4372 | * ndir.h: Rename to ../nt/inc/dirent.h. | ||
| 4373 | * sysdep.h (closedir) [!HAVE_CLOSEDIR]: Remove. | ||
| 4374 | Do not include <dirent.h>; no longer needed. | ||
| 4375 | * w32.c: Include <dirent.h> rather than "ndir.h". | ||
| 4376 | |||
| 4377 | 2012-11-23 Chong Yidong <cyd@gnu.org> | ||
| 4378 | |||
| 4379 | * xftfont.c (xftfont_open): Remove duplicate assignment. | ||
| 4380 | |||
| 4381 | 2012-11-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4382 | |||
| 4383 | * alloc.c (Fgarbage_collect): Unblock input after clearing | ||
| 4384 | gc_in_progress to avoid note_mouse_highlight glitch with GC. | ||
| 4385 | * frame.h (FRAME_MOUSE_UPDATE): New macro. | ||
| 4386 | * msdos.c (IT_frame_up_to_date): Use it here... | ||
| 4387 | * w32term.c (w32_frame_up_to_date): ...here... | ||
| 4388 | * xterm.c (XTframe_up_to_date): ...and here... | ||
| 4389 | * nsterm.m (ns_frame_up_to_date): ...but not here. | ||
| 4390 | * lisp.h (Mouse_HLInfo): Remove mouse_face_deferred_gc member. | ||
| 4391 | Adjust users. | ||
| 4392 | * xdisp.c (message2_nolog, message3_nolog, note_mouse_highlight): | ||
| 4393 | Do not check whether GC is in progress. | ||
| 4394 | |||
| 4395 | 2012-11-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4396 | |||
| 4397 | * xdisp.c (window_buffer_changed): New function. | ||
| 4398 | (update_menu_bar, update_tool_bar): Use it to | ||
| 4399 | simplify large 'if' statements. | ||
| 4400 | (redisplay_internal): Generalize commonly used | ||
| 4401 | 'tail' and 'frame' local variables. | ||
| 4402 | |||
| 4403 | 2012-11-22 Eli Zaretskii <eliz@gnu.org> | ||
| 4404 | |||
| 4405 | * w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts | ||
| 4406 | with Windows system header. | ||
| 4407 | |||
| 4408 | 2012-11-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4409 | |||
| 4410 | Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945). | ||
| 4411 | * alloc.c: Assume unistd.h exists. | ||
| 4412 | * fileio.c (Fexpand_file_name) [DOS_NT]: Use getcwd, not getwd. | ||
| 4413 | * sysdep.c (get_current_dir_name): Assume getcwd exists. | ||
| 4414 | (getwd) [USG]: Remove; no longer needed. | ||
| 4415 | (sys_subshell) [DOS_NT]: Use getcwd, not getwd. | ||
| 4416 | * w32.c (getcwd): Rename from getwd, and switch to getcwd's API. | ||
| 4417 | * w32.h (getcwd): Remove decl. | ||
| 4418 | |||
| 4419 | 2012-11-21 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4420 | |||
| 4421 | * xdisp.c (fast_set_selected_frame): Rename from update_tool_bar_unwind. | ||
| 4422 | Make it set selected_window as well. | ||
| 4423 | (update_tool_bar): Use it. | ||
| 4424 | |||
| 4425 | 2012-11-21 Ken Brown <kbrown@cornell.edu> | ||
| 4426 | |||
| 4427 | * emacs.c (main): Set the G_SLICE environment variable for all | ||
| 4428 | Cygwin builds, not just GTK builds. See | ||
| 4429 | https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html. | ||
| 4430 | |||
| 4431 | 2012-11-21 Eli Zaretskii <eliz@gnu.org> | ||
| 4432 | |||
| 4433 | * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) | ||
| 4434 | (FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]: | ||
| 4435 | Define for the MSVC compiler. | ||
| 4436 | |||
| 4437 | * w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing semi-colon. | ||
| 4438 | |||
| 4439 | * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) | ||
| 4440 | (Fexpand_file_name) [DOS_NT]: Pass encoded file name to | ||
| 4441 | dostounix_filename. Prevents crashes down the road, because | ||
| 4442 | dostounix_filename assumes it gets a unibyte string. | ||
| 4443 | Reported by Michel de Ruiter <michel@sentient.nl>, see | ||
| 4444 | http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html | ||
| 4445 | |||
| 4446 | 2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4447 | |||
| 4448 | Conflate Qnil and Qunbound for `symbol-function'. | ||
| 4449 | * alloc.c (Fmake_symbol): Initialize `function' to Qnil. | ||
| 4450 | * lread.c (init_obarray): Set `function' fields to Qnil. | ||
| 4451 | * eval.c (Fcommandp): Ignore Qunbound. | ||
| 4452 | (Fautoload, eval_sub, Fapply, Ffuncall, Fmacroexpand): | ||
| 4453 | * data.c (Ffset, Ffboundp, indirect_function, Findirect_function): | ||
| 4454 | Test NILP rather than Qunbound. | ||
| 4455 | (Ffmakunbound): Set to Qnil. | ||
| 4456 | (Fsymbol_function): Never signal an error. | ||
| 4457 | (Finteractive_form): Ignore Qunbound. | ||
| 4458 | |||
| 4459 | 2012-11-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4460 | |||
| 4461 | * eval.c (interactive_p): Remove no-longer-used decl. | ||
| 4462 | |||
| 4463 | 2012-11-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4464 | |||
| 4465 | * xdisp.c (buffer_shared): Adjust comment. | ||
| 4466 | (buffer_shared_and_changed): New function. | ||
| 4467 | (prepare_menu_bars, redisplay_internal): Use it to | ||
| 4468 | decide whether all windows or frames should be updated. | ||
| 4469 | (window_outdated): New function. | ||
| 4470 | (text_outside_line_unchanged_p, redisplay_window): Use it. | ||
| 4471 | (redisplay_internal): Likewise. Fix indentation. | ||
| 4472 | |||
| 4473 | 2012-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4474 | |||
| 4475 | * eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove. | ||
| 4476 | (syms_of_eval): Remove corresponding defsubr. | ||
| 4477 | * bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function. | ||
| 4478 | |||
| 4479 | 2012-11-19 Daniel Colascione <dancol@dancol.org> | ||
| 4480 | |||
| 4481 | * w32fns.c (Fx_file_dialog): | ||
| 4482 | (Fx_file_dialog): Accomodate rename of cygwin_convert_path* to | ||
| 4483 | cygwin_convert_file_name*. | ||
| 4484 | |||
| 4485 | * cygw32.c (Fcygwin_convert_path_to_windows, syms_of_cygw32): | ||
| 4486 | Rename cygwin_convert_path* to cygwin_convert_file_name*. | ||
| 4487 | |||
| 4488 | 2012-11-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4489 | |||
| 4490 | * nsterm.m (ns_select): Send SIGIO only to self, not to process group. | ||
| 4491 | |||
| 4492 | 2012-11-18 Eli Zaretskii <eliz@gnu.org> | ||
| 4493 | |||
| 4494 | * w32select.c: Include w32common.h before w32term.h, so that | ||
| 4495 | windows.h gets included before w32term.h uses some of its | ||
| 4496 | features, see below. | ||
| 4497 | |||
| 4498 | * w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: | ||
| 4499 | New typedefs. | ||
| 4500 | (EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: | ||
| 4501 | New prototypes. | ||
| 4502 | (EnumSystemLocales) [_MSC_VER]: Define if undefined. (Bug#12878) | ||
| 4503 | |||
| 4504 | 2012-11-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4505 | |||
| 4506 | * nsterm.m (hold_event): Set send_appdefined to YES (Bug#12834). | ||
| 4507 | (ns_select): Return at once if events are held (Bug#12834). | ||
| 4508 | |||
| 4509 | 2012-11-18 enami tsugutomo <tsugutomo.enami@jp.sony.com> | ||
| 4510 | |||
| 4511 | * unexelf.c (ELFSIZE) [__NetBSD__ && _LP64]: Set to 64. | ||
| 4512 | Needed following 2012-10-20 change. (Bug#12902) | ||
| 4513 | |||
| 4514 | 2012-11-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 4515 | |||
| 4516 | * w32proc.c (waitpid): Remove unused label get_result. | ||
| 4517 | |||
| 4518 | 2012-11-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 4519 | |||
| 4520 | * makefile.w32-in (SYSWAIT_H): New macro. | ||
| 4521 | ($(BLD)/callproc.$(O), $(BLD)/w32proc.$(O), $(BLD)/process.$(O)) | ||
| 4522 | ($(BLD)/sysdep.$(O)): Update dependencies. | ||
| 4523 | |||
| 4524 | 2012-11-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4525 | |||
| 4526 | Assume POSIX 1003.1-1988 or later for fcntl.h (Bug#12881). | ||
| 4527 | * callproc.c (relocate_fd): Assume F_DUPFD. | ||
| 4528 | * emacs.c, term.c (O_RDWR): Remove. | ||
| 4529 | * keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than | ||
| 4530 | O_NDELAY, since O_NONBLOCK is the standard name for this flag. | ||
| 4531 | * nsterm.m: Assume <fcntl.h> exists. | ||
| 4532 | * process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process) | ||
| 4533 | (create_pty, Fmake_network_process, server_accept_connection) | ||
| 4534 | (wait_reading_process_output, init_process_emacs): | ||
| 4535 | Assume O_NONBLOCK. | ||
| 4536 | (wait_reading_process_output): Put in a special case for WINDOWSNT | ||
| 4537 | to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK. | ||
| 4538 | It's not clear this is needed, but it's a more-conservative change. | ||
| 4539 | (create_process): Assume FD_CLOEXEC. | ||
| 4540 | (create_process, create_pty): Assume O_NOCTTY. | ||
| 4541 | * sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL. | ||
| 4542 | (reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY. | ||
| 4543 | Omit if not DOS_NT, since F_GETFL is not defined there. | ||
| 4544 | (serial_open): Assume O_NONBLOCK and O_NOCTTY. | ||
| 4545 | * term.c: Include <fcntl.h>, for flags like O_NOCTTY. | ||
| 4546 | (O_NOCTTY): Remove. | ||
| 4547 | (init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that | ||
| 4548 | lack it, since gnulib guarantees this. | ||
| 4549 | * w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY. | ||
| 4550 | |||
| 4551 | 2012-11-17 Eli Zaretskii <eliz@gnu.org> | ||
| 4552 | |||
| 4553 | * w32.c (faccessat): Pretend that directories have the execute bit | ||
| 4554 | set. Emacs expects that, e.g., in files.el:cd-absolute. | ||
| 4555 | |||
| 4556 | * w32proc.c (create_child): Don't clip the PID of the child | ||
| 4557 | process to fit into an Emacs integer, as this is no longer a | ||
| 4558 | restriction. | ||
| 4559 | (waitpid): Rename from sys_wait. Emulate a Posix 'waitpid' by | ||
| 4560 | reaping only the process specified by PID argument, if that is | ||
| 4561 | positive. Use PID instead of dead_child to know which process to | ||
| 4562 | reap. Wait for the child to die only if WNOHANG is not in | ||
| 4563 | OPTIONS. | ||
| 4564 | (sys_select): Don't set dead_child. | ||
| 4565 | |||
| 4566 | * sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion, | ||
| 4567 | as it is no longer needed. | ||
| 4568 | |||
| 4569 | * process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions, | ||
| 4570 | no longer needed. | ||
| 4571 | (record_child_status_change): Remove the setting of | ||
| 4572 | record_at_most_one_child for the !WNOHANG case. | ||
| 4573 | |||
| 4574 | 2012-11-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4575 | |||
| 4576 | Fix problems in ns port found by static checking. | ||
| 4577 | * nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc. | ||
| 4578 | (hold_event, setPosition:portion:whole:): Send SIGIO only to self, | ||
| 4579 | not to process group. | ||
| 4580 | (ns_select): Use emacs_write, not write, as that's more robust | ||
| 4581 | in the presence of signals. | ||
| 4582 | (fd_handler:): Check for read errors. | ||
| 4583 | |||
| 4584 | 2012-11-16 Glenn Morris <rgm@gnu.org> | ||
| 4585 | |||
| 4586 | * editfns.c (Fmessage): Mention message-log-max. (Bug#12849) | ||
| 4587 | |||
| 4588 | 2012-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4589 | |||
| 4590 | * eval.c (Finteractive_p): Revert lexbind-merge mishap. | ||
| 4591 | |||
| 4592 | 2012-11-16 Eli Zaretskii <eliz@gnu.org> | ||
| 4593 | |||
| 4594 | * w32proc.c (timer_loop): Make sure SuspendThread and ResumeThread | ||
| 4595 | use the same value of thread handle. | ||
| 4596 | (start_timer_thread): If the timer thread exited (due to error), | ||
| 4597 | clean up by closing the two handles it used. Duplicate the caller | ||
| 4598 | thread's handle here, so it gets duplicated only once, when | ||
| 4599 | launching the timer thread. Set priority of the timer thread, not | ||
| 4600 | the caller thread. | ||
| 4601 | (getitimer): Don't duplicate the caller thread's handle here. | ||
| 4602 | (Bug#12832) | ||
| 4603 | |||
| 4604 | 2012-11-16 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4605 | |||
| 4606 | * nsterm.m (hold_event): Send SIGIO to make sure ns_read_socket is | ||
| 4607 | called (Bug#12834). | ||
| 4608 | |||
| 4609 | 2012-11-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4610 | |||
| 4611 | Remove no-longer-used pty_max_bytes variable. | ||
| 4612 | * process.c (pty_max_bytes): Remove; unused. | ||
| 4613 | (send_process): Do not set it. | ||
| 4614 | |||
| 4615 | 2012-11-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 4616 | |||
| 4617 | * makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/emacs.$(O)): | ||
| 4618 | Update dependencies. | ||
| 4619 | |||
| 4620 | 2012-11-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4621 | |||
| 4622 | * eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'. | ||
| 4623 | This follows up on the 2012-09-29 patch that removed indirection | ||
| 4624 | for the 'function' field. Reported by Sergey Vinokurov in | ||
| 4625 | <http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>. | ||
| 4626 | |||
| 4627 | 2012-11-14 Eli Zaretskii <eliz@gnu.org> | ||
| 4628 | |||
| 4629 | * w32.c (faccessat): Rename from sys_faccessat. (No need to use a | ||
| 4630 | different name, as the MS runtime does not have such a function, | ||
| 4631 | and probably never will.) All callers changed. Ignore DIRFD | ||
| 4632 | value if PATH is an absolute file name, to match Posix spec | ||
| 4633 | better. If AT_SYMLINK_NOFOLLOW is set in FLAGS, don't resolve | ||
| 4634 | symlinks. | ||
| 4635 | |||
| 4636 | 2012-11-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4637 | |||
| 4638 | * xdisp.c (echo_area_display, redisplay_internal): | ||
| 4639 | Omit redundant check whether frame_garbaged is set. | ||
| 4640 | |||
| 4641 | 2012-11-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4642 | |||
| 4643 | Use faccessat, not access, when checking file permissions (Bug#12632). | ||
| 4644 | This fixes a bug that has been present in Emacs since its creation. | ||
| 4645 | It was reported by Chris Torek in 1983 even before GNU Emacs existed, | ||
| 4646 | which must set some sort of record. (Torek's bug report was against | ||
| 4647 | a predecessor of GNU Emacs, but GNU Emacs happened to have the | ||
| 4648 | same common flaw.) See Torek's Usenet posting | ||
| 4649 | "setuid/setgid programs & Emacs" Article-I.D.: sri-arpa.858 | ||
| 4650 | Posted: Fri Apr 8 14:18:56 1983. | ||
| 4651 | * Makefile.in (LIB_EACCESS): New macro. | ||
| 4652 | (LIBES): Use it. | ||
| 4653 | * callproc.c (init_callproc): | ||
| 4654 | * charset.c (init_charset): | ||
| 4655 | * fileio.c (check_existing, check_executable, check_writable) | ||
| 4656 | (Ffile_readable_p): | ||
| 4657 | * lread.c (openp, load_path_check): | ||
| 4658 | * process.c (allocate_pty): | ||
| 4659 | * xrdb.c (file_p): | ||
| 4660 | Use effective UID when checking permissions, not real UID. | ||
| 4661 | * callproc.c (init_callproc): | ||
| 4662 | * charset.c (init_charset): | ||
| 4663 | * lread.c (load_path_check, init_lread): | ||
| 4664 | Test whether directories are accessible, not merely whether they exist. | ||
| 4665 | * conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): New macro. | ||
| 4666 | * fileio.c (check_existing, check_executable, check_writable) | ||
| 4667 | (Ffile_readable_p): | ||
| 4668 | Use symbolic names instead of integers for the flags, as they're | ||
| 4669 | portable now. | ||
| 4670 | (check_writable): New arg AMODE. All uses changed. | ||
| 4671 | Set errno on failure. | ||
| 4672 | (Ffile_readable_p): Use faccessat, not stat + open + close. | ||
| 4673 | (Ffile_writable_p): No need to call check_existing + check_writable. | ||
| 4674 | Just call check_writable and then look at errno. This saves a syscall. | ||
| 4675 | dir should never be nil; replace an unnecessary runtime check | ||
| 4676 | with an eassert. When checking the parent directory of a nonexistent | ||
| 4677 | file, check that the directory is searchable as well as writable, as | ||
| 4678 | we can't create files in unsearchable directories. | ||
| 4679 | (file_directory_p): New function, which uses 'stat' on most platforms | ||
| 4680 | but faccessat with D_OK (for efficiency) if WINDOWSNT. | ||
| 4681 | (Ffile_directory_p, Fset_file_times): Use it. | ||
| 4682 | (file_accessible_directory_p): New function, which uses a single | ||
| 4683 | syscall for efficiency. | ||
| 4684 | (Ffile_accessible_directory_p): Use it. | ||
| 4685 | * xrdb.c (file_p): Use file_directory_p. | ||
| 4686 | * lisp.h (file_directory_p, file_accessible_directory_p): New decls. | ||
| 4687 | * lread.c (openp): When opening a file, use fstat rather than | ||
| 4688 | stat, as that avoids a permissions race. When not opening a file, | ||
| 4689 | use file_directory_p rather than stat. | ||
| 4690 | (dir_warning): First arg is now a usage string, not a format. | ||
| 4691 | Use errno. All uses changed. | ||
| 4692 | * nsterm.m (ns_term_init): Remove unnecessary call to file-readable | ||
| 4693 | that merely introduced a race. | ||
| 4694 | * process.c, sysdep.c, term.c: All uses of '#ifdef O_NONBLOCK' | ||
| 4695 | changed to '#if O_NONBLOCK', to accommodate gnulib O_* style, | ||
| 4696 | and similarly for the other O_* flags. | ||
| 4697 | * w32.c (sys_faccessat): Rename from sys_access and switch to | ||
| 4698 | faccessat's API. All uses changed. | ||
| 4699 | * xrdb.c: Do not include <sys/stat.h>; no longer needed. | ||
| 4700 | (magic_db): Rename from magic_file_p. | ||
| 4701 | (magic_db, search_magic_path): Return an XrmDatabase rather than a | ||
| 4702 | char *, so that we don't have to test for file existence | ||
| 4703 | separately from opening the file for reading. This removes a race | ||
| 4704 | fixes a permission-checking problem, and simplifies the code. | ||
| 4705 | All uses changed. | ||
| 4706 | (file_p): Remove; no longer needed. | ||
| 4707 | |||
| 4708 | 2012-11-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4709 | |||
| 4710 | Omit glyphs initialization at startup. | ||
| 4711 | * dispnew.c (glyphs_initialized_initially_p): Remove. | ||
| 4712 | (adjust_frame_glyphs_initially): Likewise. Adjust users. | ||
| 4713 | (Fredraw_frame): Move actual code from here... | ||
| 4714 | (redraw_frame): ...to here. Add eassert. Adjust comment. | ||
| 4715 | (Fredraw_display): Use redraw_frame. | ||
| 4716 | * xdisp.c (clear_garbaged_frames): Likewise. | ||
| 4717 | |||
| 4718 | 2012-11-13 Eli Zaretskii <eliz@gnu.org> | ||
| 4719 | |||
| 4720 | * xdisp.c (decode_mode_spec): Limit the value of WIDTH argument | ||
| 4721 | passed to pint2str and pint2hrstr to be at most the size of the | ||
| 4722 | frame's decode_mode_spec_buffer. This avoids crashes with very | ||
| 4723 | large values of FIELD_WIDTH argument to decode_mode_spec. | ||
| 4724 | (Bug#12867) | ||
| 4725 | |||
| 4726 | 2012-11-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4727 | |||
| 4728 | Fix a race with verify-visited-file-modtime (Bug#12863). | ||
| 4729 | Since at least 1991 Emacs has ignored an mtime difference of no | ||
| 4730 | more than one second, but my guess is that this was to work around | ||
| 4731 | file system bugs that were fixed long ago. Since the race is | ||
| 4732 | causing problems now, let's remove that code. | ||
| 4733 | * fileio.c (Fverify_visited_file_modtime): Do not accept a file | ||
| 4734 | whose time stamp is off by no more than a second. Insist that the | ||
| 4735 | file time stamps match exactly. | ||
| 4736 | |||
| 4737 | 2012-11-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4738 | |||
| 4739 | * frame.h (struct frame): Convert external_tool_bar member to | ||
| 4740 | 1-bit unsigned bitfield. | ||
| 4741 | * termhooks.h (struct terminal): Remove mouse_moved member since | ||
| 4742 | all users are long dead. Adjust comment on mouse_position_hook. | ||
| 4743 | |||
| 4744 | 2012-11-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4745 | |||
| 4746 | Simplify by using FOR_EACH_FRAME here and there. | ||
| 4747 | * frame.c (next_frame, prev_frame, other_visible_frames) | ||
| 4748 | (delete_frame, visible-frame-list): Use FOR_EACH_FRAME. | ||
| 4749 | * w32term.c (x_window_to_scroll_bar): Likewise. | ||
| 4750 | * window.c (window_list): Likewise. | ||
| 4751 | * xdisp.c (x_consider_frame_title): Likewise. | ||
| 4752 | * xfaces.c (Fdisplay_supports_face_attributes_p): Likewise. | ||
| 4753 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | ||
| 4754 | (x_menubar_window_to_frame, x_top_window_to_frame): Likewise. | ||
| 4755 | * xmenu.c (menubar_id_to_frame): Likewise. | ||
| 4756 | * xselect.c (frame_for_x_selection): Likewise. | ||
| 4757 | * xterm.c (x_frame_of_widget, x_window_to_scroll_bar) | ||
| 4758 | (x_window_to_menu_bar): Likewise. | ||
| 4759 | * w32fns.c (x_window_to_frame): Likewise. Adjust comment. | ||
| 4760 | |||
| 4761 | 2012-11-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4762 | |||
| 4763 | * data.c (Qdefalias_fset_function): Now static. | ||
| 4764 | |||
| 4765 | Another tweak to vectorlike_header change. | ||
| 4766 | * alloc.c (struct Lisp_Vectorlike_Free, NEXT_IN_FREE_LIST): | ||
| 4767 | Remove, and replace all uses with ... | ||
| 4768 | (next_in_free_list, set_next_in_free_list): | ||
| 4769 | New functions, which respect C's aliasing rules better. | ||
| 4770 | |||
| 4771 | 2012-11-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4772 | |||
| 4773 | * window.c (list4i): Rename from 'quad'. All uses changed. | ||
| 4774 | Needed because <sys/types.h> defines 'quad' on Solaris 10. | ||
| 4775 | |||
| 4776 | 2012-11-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 4777 | |||
| 4778 | * xdisp.c (start_hourglass) [HAVE_NTGUI]: Add block to silence | ||
| 4779 | warning about mixing declarations and code in ISO C90. | ||
| 4780 | |||
| 4781 | 2012-11-10 Martin Rudalics <rudalics@gmx.at> | ||
| 4782 | |||
| 4783 | * window.c (Fsplit_window_internal): Set combination limit of | ||
| 4784 | new parent window to t iff Vwindow_combination_limit is t; | ||
| 4785 | fixing a regression introduced with the change from 2012-09-22. | ||
| 4786 | (Fset_window_combination_limit): Fix doc-string. | ||
| 4787 | |||
| 4788 | 2012-11-10 Eli Zaretskii <eliz@gnu.org> | ||
| 4789 | |||
| 4790 | * xdisp.c (try_scrolling): Fix correction of aggressive-scroll | ||
| 4791 | amount when the scroll margins are too large. When scrolling | ||
| 4792 | backwards in the buffer, give up if cannot reach point or the | ||
| 4793 | scroll margin within a reasonable number of screen lines. | ||
| 4794 | Fixes point position in window under scroll-up/down-aggressively when | ||
| 4795 | point is positioned many lines beyond the window top/bottom. | ||
| 4796 | (Bug#12811) | ||
| 4797 | |||
| 4798 | * ralloc.c (relinquish): If real_morecore fails to return memory | ||
| 4799 | to the system, don't crash; instead, leave the last heap | ||
| 4800 | unchanged and return. (Bug#12774) | ||
| 4801 | |||
| 4802 | 2012-11-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4803 | |||
| 4804 | * lisp.h (AUTOLOADP): New macro. | ||
| 4805 | * eval.c (Fautoload): Don't attach to loadhist, call Fdefalias instead. | ||
| 4806 | * data.c (Ffset): Remove special ad-advice-info handling. | ||
| 4807 | (Fdefalias): Handle autoload definitions and new Qdefalias_fset_function. | ||
| 4808 | (Fsubr_arity): CSE. | ||
| 4809 | (Finteractive_form): Simplify. | ||
| 4810 | (Fquo): Don't insist on having at least 2 arguments. | ||
| 4811 | (Qdefalias_fset_function): New var. | ||
| 4812 | |||
| 4813 | 2012-11-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4814 | |||
| 4815 | * image.c (xpm_make_color_table_h): Change to hashtest_equal. | ||
| 4816 | |||
| 4817 | * nsfont.m (Qcondensed, Qexpanded): New variables. | ||
| 4818 | (ns_descriptor_to_entity): Restore Qcondensed, Qexpanded setting. | ||
| 4819 | (syms_of_nsfont): Defsym Qcondensed, Qexpanded. | ||
| 4820 | |||
| 4821 | 2012-11-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4822 | |||
| 4823 | Fix recently introduced crash on MS-Windows (Bug#12839). | ||
| 4824 | * w32term.h (struct scroll_bar): Use convenient header. | ||
| 4825 | (SCROLL_BAR_VEC_SIZE): Remove. | ||
| 4826 | * w32term.c (x_scroll_bar_create): Use VECSIZE. | ||
| 4827 | |||
| 4828 | 2012-11-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4829 | |||
| 4830 | Tweak last vectorlike_header change. | ||
| 4831 | * alloc.c (struct Lisp_Vectorlike_Free): Special type to represent | ||
| 4832 | vectorlike object on the free list. This is introduced to avoid | ||
| 4833 | some (but not all) pointer casting and aliasing problems, see | ||
| 4834 | http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00105.html. | ||
| 4835 | * .gdbinit (pvectype, pvecsize): New commands to examine vectorlike | ||
| 4836 | objects. | ||
| 4837 | (xvectype, xvecsize): Use them to examine Lisp_Object values. | ||
| 4838 | |||
| 4839 | 2012-11-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4840 | |||
| 4841 | * nsfont.m (ns_descriptor_to_entity): Qcondensed and Qexpanded has | ||
| 4842 | been removed, so remove them here also. | ||
| 4843 | |||
| 4844 | 2012-11-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4845 | |||
| 4846 | * doc.c (Fdocumentation): Handle new property | ||
| 4847 | dynamic-docstring-function to replace the old ad-advice-info. | ||
| 4848 | |||
| 4849 | 2012-11-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4850 | |||
| 4851 | * fns.c (Qeql, hashtest_eq): Now static. | ||
| 4852 | |||
| 4853 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4854 | |||
| 4855 | * lisp.h (XHASH): Redefine to be imperfect and fit in a Lisp int. | ||
| 4856 | * fns.c (hashfn_eq, hashfn_eql, sxhash): | ||
| 4857 | * profiler.c (hashfn_profiler): Don't use XUINT on non-integers. | ||
| 4858 | * buffer.c (compare_overlays): Use XLI rather than XHASH. | ||
| 4859 | |||
| 4860 | 2012-11-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4861 | |||
| 4862 | Use same hash function for hashfn_profiler as for hash_string etc. | ||
| 4863 | * fns.c (SXHASH_COMBINE): Remove. All uses replaced by sxhash_combine. | ||
| 4864 | * lisp.h (sxhash_combine): New inline function, with the contents | ||
| 4865 | of the old SXHASH_COMBINE. | ||
| 4866 | * profiler.c (hashfn_profiler): Use it, instead of having a | ||
| 4867 | special hash function containing a comparison that always yields 1. | ||
| 4868 | |||
| 4869 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4870 | |||
| 4871 | * xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic) | ||
| 4872 | (Qultra_condensed, Qextra_condensed, Qcondensed, Qsemi_condensed) | ||
| 4873 | (Qsemi_expanded, Qextra_expanded, Qexpanded, Qultra_expanded): | ||
| 4874 | Remove unused vars. | ||
| 4875 | |||
| 4876 | 2012-11-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4877 | |||
| 4878 | * image.c (xpm_make_color_table_h): Fix compiler error because | ||
| 4879 | make_hash_table changed. | ||
| 4880 | |||
| 4881 | 2012-11-08 Thomas Kappler <tkappler@gmail.com> (tiny change) | ||
| 4882 | |||
| 4883 | * nsfont.m (ns_findfonts): Handle empty matchingDescs (Bug#11541). | ||
| 4884 | |||
| 4885 | 2012-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 4886 | |||
| 4887 | Use ad-hoc comparison function for the profiler's hash-tables. | ||
| 4888 | * profiler.c (Qprofiler_backtrace_equal, hashtest_profiler): New vars. | ||
| 4889 | (make_log): Use them. | ||
| 4890 | (handle_profiler_signal): Don't inhibit quit any longer since we don't | ||
| 4891 | call Fequal any more. | ||
| 4892 | (Ffunction_equal): New function. | ||
| 4893 | (cmpfn_profiler, hashfn_profiler): New functions. | ||
| 4894 | (syms_of_profiler): Initialize them. | ||
| 4895 | * lisp.h (struct hash_table_test): New struct. | ||
| 4896 | (struct Lisp_Hash_Table): Use it. | ||
| 4897 | * alloc.c (mark_object): Mark hash_table_test fields of hash tables. | ||
| 4898 | * fns.c (make_hash_table): Take a struct to describe the test. | ||
| 4899 | (cmpfn_eql, cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql) | ||
| 4900 | (hashfn_equal, hashfn_user_defined): Adjust to new calling convention. | ||
| 4901 | (hash_lookup, hash_remove_from_table): Move assertion checking of | ||
| 4902 | hashfn result here. Check hash-equality before calling cmpfn. | ||
| 4903 | (Fmake_hash_table): Adjust call to make_hash_table. | ||
| 4904 | (hashtest_eq, hashtest_eql, hashtest_equal): New structs. | ||
| 4905 | (syms_of_fns): Initialize them. | ||
| 4906 | * emacs.c (main): Move syms_of_fns earlier. | ||
| 4907 | * xterm.c (syms_of_xterm): | ||
| 4908 | * category.c (hash_get_category_set): Adjust call to make_hash_table. | ||
| 4909 | * print.c (print_object): Adjust to new hash-table struct. | ||
| 4910 | * composite.c (composition_gstring_put_cache): Adjust to new hashfn. | ||
| 4911 | |||
| 4912 | 2012-11-08 Eli Zaretskii <eliz@gnu.org> | ||
| 4913 | |||
| 4914 | * w32fns.c (modifier_set): Fix handling of Scroll Lock when the | ||
| 4915 | value of w32-scroll-lock-modifier is neither nil nor one of the | ||
| 4916 | known key modifiers. (Bug#12806) | ||
| 4917 | |||
| 4918 | 2012-11-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4919 | |||
| 4920 | Shrink struct vectorlike_header to the only size field. | ||
| 4921 | * lisp.h (enum pvec_type): Avoid explicit enum member values. | ||
| 4922 | Adjust comment. | ||
| 4923 | (enum More_Lisp_Bits): Change PSEUDOVECTOR_SIZE_BITS and | ||
| 4924 | PVEC_TYPE_MASK to arrange new bitfield in the vector header. | ||
| 4925 | (PSEUDOVECTOR_REST_BITS, PSEUDOVECTOR_REST_MASK): New members. | ||
| 4926 | (PSEUDOVECTOR_AREA_BITS): New member used to extract subtype | ||
| 4927 | information from the vector header. Adjust comment. | ||
| 4928 | (XSETPVECTYPE, XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR) | ||
| 4929 | (PSEUDOVECTOR_TYPEP, DEFUN): Adjust to match new vector header | ||
| 4930 | layout. | ||
| 4931 | (XSETSUBR, SUBRP): Adjust to match new Lisp_Subr layout. | ||
| 4932 | (struct vectorlike_header): Remove next member. Adjust comment. | ||
| 4933 | (struct Lisp_Subr): Add convenient header. Adjust comment. | ||
| 4934 | (allocate_pseudovector): Adjust prototype. | ||
| 4935 | * alloc.c (mark_glyph_matrix, mark_face_cache, allocate_string) | ||
| 4936 | (sweep_string, lisp_malloc): Remove useless prototypes. | ||
| 4937 | (enum mem_type): Adjust comment. | ||
| 4938 | (NEXT_IN_FREE_LIST): New macro. | ||
| 4939 | (SETUP_ON_FREE_LIST): Adjust XSETPVECTYPESIZE usage. | ||
| 4940 | (Fmake_bool_vector): Likewise. | ||
| 4941 | (struct large_vector): New type to represent allocation unit for | ||
| 4942 | the vectors with the memory footprint more than VBLOOCK_BYTES_MAX. | ||
| 4943 | (large_vectors): Change type to struct large_vector. | ||
| 4944 | (allocate_vector_from_block): Simplify. | ||
| 4945 | (PSEUDOVECTOR_NBYTES): Replace with... | ||
| 4946 | (vector_nbytes): ...new function. Adjust users. | ||
| 4947 | (sweep_vectors): Adjust processing of large vectors. | ||
| 4948 | (allocate_vectorlike): Likewise. | ||
| 4949 | (allocate_pseudovector): Change type of 3rd arg to enum pvec_type. | ||
| 4950 | Add easserts. Adjust XSETPVECTYPESIZE usage. | ||
| 4951 | (allocate_buffer): Use BUFFER_PVEC_INIT. | ||
| 4952 | (live_vector_p): Adjust to match large vector. | ||
| 4953 | * buffer.c (init_buffer_once): Use BUFFER_PVEC_INIT. | ||
| 4954 | * buffer.h (struct buffer): Add next member. | ||
| 4955 | (BUFFER_LISP_SIZE, BUFFER_REST_SIZE, BUFFER_PVEC_INIT): | ||
| 4956 | New macros. | ||
| 4957 | (FOR_EACH_BUFFER): Adjust to match struct buffer change. | ||
| 4958 | * fns.c (internal_equal): Adjust to match enum pvec_type change. | ||
| 4959 | (copy_hash_table): Adjust to match vector header change. | ||
| 4960 | * lread.c (defsubr): Use XSETPVECTYPE. | ||
| 4961 | * .gdbinit (xpr, xbacktrace): Adjust to match vector header change. | ||
| 4962 | (xvectype): Likewise. Print PVEC_NORMAL_VECTOR for regular vectors. | ||
| 4963 | (xvecsize): New command. | ||
| 4964 | |||
| 4965 | 2012-11-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4966 | |||
| 4967 | * keyboard.c (event_to_kboard): Do not dereference | ||
| 4968 | frame_or_window field of SELECTION_REQUEST_EVENT | ||
| 4969 | and SELECTION_CLEAR_EVENT events (Bug#12814). | ||
| 4970 | * xterm.h (struct selection_input_event): Adjust comment. | ||
| 4971 | |||
| 4972 | 2012-11-07 Eli Zaretskii <eliz@gnu.org> | ||
| 4973 | |||
| 4974 | * w32fns.c (modifier_set): Don't report modifiers from toggle key, | ||
| 4975 | such as Scroll Lock, if the respective keys are treated as | ||
| 4976 | function keys, not as modifiers. This avoids destroying non-ASCII | ||
| 4977 | keyboard input when Scroll Lock is toggled ON. (Bug#12806) | ||
| 4978 | |||
| 4979 | 2012-11-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 4980 | |||
| 4981 | * xfns.c (Fx_wm_set_size_hint): Use check_x_frame. Adjust docstring. | ||
| 4982 | |||
| 4983 | 2012-11-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4984 | |||
| 4985 | Restore some duplicate definitions (Bug#12814). | ||
| 4986 | This undoes part of the 2012-11-03 changes. Some people build | ||
| 4987 | with plain -g rather than with -g3, and they need the duplicate | ||
| 4988 | definitions for .gdbinit to work; see <http://bugs.gnu.org/12814#26>. | ||
| 4989 | * lisp.h (GCTYPEBITS, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): | ||
| 4990 | Define as macros, as well as as enums or as constants. | ||
| 4991 | |||
| 4992 | 2012-11-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 4993 | |||
| 4994 | * nsterm.m (convert_ns_to_X_keysym, keyDown:): Add NSNumericPadKeyMask | ||
| 4995 | to keypad keys (Bug#12816). | ||
| 4996 | |||
| 4997 | 2012-11-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 4998 | |||
| 4999 | Minor adjustments of recently-changed frame functions. | ||
| 5000 | * buffer.c (Fbuffer_list): Omit CHECK_FRAME, since arg is already | ||
| 5001 | known to be a frame (we're in the FRAMEP branch). | ||
| 5002 | * lisp.h (Qframep): Remove decl. frame.h declares this. | ||
| 5003 | * window.c (quad): Args are of type EMACS_INT, not ptrdiff_t, | ||
| 5004 | since they're meant for Lisp fixnum values. | ||
| 5005 | |||
| 5006 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5007 | |||
| 5008 | * window.c (Fwindow_combination_limit): Revert to the only | ||
| 5009 | required argument and adjust docstring as suggested in | ||
| 5010 | http://lists.gnu.org/archive/html/emacs-diffs/2012-11/msg01082.html | ||
| 5011 | by Martin Rudalics <rudalics@gmx.at>. | ||
| 5012 | |||
| 5013 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5014 | |||
| 5015 | Widely used frame validity and checking functions. | ||
| 5016 | * frame.h (decode_live_frame, decode_any_frame): Add prototypes. | ||
| 5017 | * frame.c (decode_live_frame, decode_any_frame): New functions. | ||
| 5018 | (delete_frame, Fredirect_frame_focus, Fframe_parameters) | ||
| 5019 | (Fframe_parameter, Fframe_char_height, Fframe_char_width) | ||
| 5020 | (Fframe_pixel_height, Fframe_pixel_width, Ftool_bar_pixel_width) | ||
| 5021 | (Fframe_pointer_visible_p): Use decode_any_frame. | ||
| 5022 | (Fmake_frame_visible, Fmake_frame_invisible, Ficonify_frame) | ||
| 5023 | (Fraise_frame, Flower_frame, Fmodify_frame_parameters) | ||
| 5024 | (Fset_frame_height, Fset_frame_width): Use decode_live_frame. | ||
| 5025 | (Fframe_focus): Likewise. Allow zero number of arguments. | ||
| 5026 | Adjust docstring. | ||
| 5027 | (frame_buffer_list, frame_buffer_predicate): Remove. | ||
| 5028 | * lisp.h (frame_buffer_predicate): Remove prototype. | ||
| 5029 | * buffer.c (Fother_buffer): Use decode_any_frame. | ||
| 5030 | * xdisp.c (Ftool_bar_lines_needed): Likewise. | ||
| 5031 | * xfaces.c (Fcolor_gray_p, Fcolor_supported_p): Likewise. | ||
| 5032 | * font.c (Ffont_face_attributes, Ffont_family_list, Fopen_font) | ||
| 5033 | (Fclose_font, Ffont_info): Use decode_live_frame. | ||
| 5034 | * fontset.c (check_fontset_name): Likewise. | ||
| 5035 | * terminal.c (Fframe_terminal): Likewise. | ||
| 5036 | * w32fns.c (check_x_frame): Likewise. | ||
| 5037 | * window.c (Fminibuffer_window, Fwindow_at) | ||
| 5038 | (Fcurrent_window_configuration): Likewise. | ||
| 5039 | (Frun_window_configuration_change_hook, Fwindow_resize_apply): | ||
| 5040 | Likewise. Allow zero number of arguments. Adjust docstring. | ||
| 5041 | * dispnew.c (Fredraw_frame): Likewise. | ||
| 5042 | * xfaces.c (frame_or_selected_frame): Remove. | ||
| 5043 | (Fx_list_fonts, Finternal_get_lisp_face_attribute, Fface_font) | ||
| 5044 | (Finternal_lisp_face_equal_p, Finternal_lisp_face_empty_p) | ||
| 5045 | (Fframe_face_alist): Use decode_live_frame. | ||
| 5046 | * xfns.c (check_x_frame): Likewise. | ||
| 5047 | |||
| 5048 | 2012-11-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5049 | |||
| 5050 | * window.c (quad): New function. | ||
| 5051 | (Fwindow_edges, Fwindow_pixel_edges, Fwindow_inside_edges) | ||
| 5052 | (Fwindow_absolute_pixel_edges, Fwindow_inside_absolute_pixel_edges) | ||
| 5053 | (Fwindow_inside_pixel_edges, Fpos_visible_in_window_p) | ||
| 5054 | (Fwindow_line_height): Use it. | ||
| 5055 | (Fwindow_fringes): Use list3. | ||
| 5056 | (Fwindow_scroll_bars): Use list4. | ||
| 5057 | (Fwindow_frame, Fwindow_top_child, Fwindow_left_child) | ||
| 5058 | (Fwindow_combination_limit): Allow zero number of arguments. | ||
| 5059 | |||
| 5060 | 2012-11-05 Eli Zaretskii <eliz@gnu.org> | ||
| 5061 | |||
| 5062 | * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(NT_INC)/unistd.h. | ||
| 5063 | |||
| 5064 | * w32fns.c: Include unistd.h, to avoid compiler warnings on Cygwin. | ||
| 5065 | (emacs_abort) [CYGWIN]: Don't call _open_osfhandle; instead, use | ||
| 5066 | file descriptor 2 for standard error. (Bug#12805) | ||
| 5067 | |||
| 5068 | 2012-11-05 Chong Yidong <cyd@gnu.org> | ||
| 5069 | |||
| 5070 | * process.c (wait_reading_process_output): Revert previous change. | ||
| 5071 | |||
| 5072 | 2012-11-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5073 | |||
| 5074 | Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid (Bug#12800). | ||
| 5075 | This removes code that has been obsolete since around 1990. | ||
| 5076 | * callproc.c (Fcall_process): | ||
| 5077 | * emacs.c (main): | ||
| 5078 | * process.c (create_process): | ||
| 5079 | * term.c (dissociate_if_controlling_tty): | ||
| 5080 | Assume setsid exists. | ||
| 5081 | * callproc.c (child_setup): Assume setpgid exists and behaves as | ||
| 5082 | per POSIX.1-1988 or later. | ||
| 5083 | * conf_post.h (setpgid) [!HAVE_SETPGID]: Remove. | ||
| 5084 | * emacs.c (shut_down_emacs): | ||
| 5085 | * sysdep.c (sys_suspend, init_foreground_group): | ||
| 5086 | Assume getpgrp behaves as per POSIX.1-1998 or later. | ||
| 5087 | * msdos.c (setpgrp): Remove. | ||
| 5088 | (tcgetpgrp, setpgid, setsid): New functions. | ||
| 5089 | * systty.h (EMACS_GETPGRP): Remove. All callers now use getpgrp. | ||
| 5090 | * term.c (no_controlling_tty): Remove; unused. | ||
| 5091 | * w32proc.c (setpgrp): Remove. | ||
| 5092 | (setsid, tcgetpgrp): New functions. | ||
| 5093 | |||
| 5094 | Simplify by assuming __fpending. | ||
| 5095 | * dispnew.c: Include <fpending.h>, not <stdio_ext.h>. | ||
| 5096 | (update_frame_1): Use __fpending, not PENDING_OUTPUT_COUNT. | ||
| 5097 | Do not assume that __fpending's result fits in int. | ||
| 5098 | |||
| 5099 | 2012-11-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5100 | |||
| 5101 | Remove EMACS_OUTQSIZE+sleep hack. | ||
| 5102 | * dispnew.c (update_frame_1): Remove hack for terminals slower | ||
| 5103 | than 2400 bps, which throttled Emacs by having it sleep. | ||
| 5104 | This code hasn't worked since at least 2007, when the multi-tty stuff | ||
| 5105 | was added, and anyway those old terminals are long dead. | ||
| 5106 | * systty.h (EMACS_OUTQSIZE): Remove; unused. The macro isn't used even | ||
| 5107 | without the dispnew.c change, as dispnew.c doesn't include systty.h. | ||
| 5108 | |||
| 5109 | Fix data-loss with --version (Bug#9574). | ||
| 5110 | * emacs.c (close_output_streams): Use strerror, not emacs_strerror, | ||
| 5111 | as we can't assume that emacs_strerror is initialized, and strerror | ||
| 5112 | is good enough here. | ||
| 5113 | (main): Invoke atexit earlier, to catch earlier instances of | ||
| 5114 | sending data to stdout and exiting, e.g., "emacs --version >/dev/full". | ||
| 5115 | |||
| 5116 | 2012-11-04 Michael Marchionna <tralfaz@pacbell.net> | ||
| 5117 | |||
| 5118 | * nsterm.m: Add NSClearLineFunctionKey and keypad keys (Bug#8680). | ||
| 5119 | (keyDown): Remap keypad keys to X11 virtual key codes. | ||
| 5120 | |||
| 5121 | 2012-11-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5122 | |||
| 5123 | Fix data-loss with --batch (Bug#9574). | ||
| 5124 | * emacs.c: Include <close-stream.h>. | ||
| 5125 | (close_output_streams): New function. | ||
| 5126 | (main): Pass it to atexit, so that Emacs closes stdout and stderr | ||
| 5127 | and handles errors appropriately. | ||
| 5128 | (Fkill_emacs): Don't worry about flushing, as close_output_stream | ||
| 5129 | does that now. | ||
| 5130 | |||
| 5131 | Fix a race condition that causes Emacs to mess up glib (Bug#8855). | ||
| 5132 | The symptom is a diagnostic "GLib-WARNING **: In call to | ||
| 5133 | g_spawn_sync(), exit status of a child process was requested but | ||
| 5134 | SIGCHLD action was set to SIG_IGN and ECHILD was received by | ||
| 5135 | waitpid(), so exit status can't be returned." The diagnostic | ||
| 5136 | is partly wrong, as the SIGCHLD action is not set to SIG_IGN. | ||
| 5137 | The real bug is a race condition between Emacs and glib: Emacs | ||
| 5138 | does a waitpid (-1, ...) and reaps glib's subprocess by mistake, | ||
| 5139 | so that glib can't find it. Work around the bug by invoking | ||
| 5140 | waitpid only on subprocesses that Emacs itself creates. | ||
| 5141 | * process.c (create_process, record_child_status_change): | ||
| 5142 | Don't use special value -1 in pid field, as the caller now must | ||
| 5143 | know the pid rather than having the callee infer it. | ||
| 5144 | The inference was sometimes incorrect anyway, due to another race. | ||
| 5145 | (create_process): Set new 'alive' member if child is created. | ||
| 5146 | (process_status_retrieved): New function. | ||
| 5147 | (record_child_status_change): Use it. | ||
| 5148 | Accept negative 1st argument, which means to wait for the | ||
| 5149 | processes that Emacs already knows about. Move special-case code | ||
| 5150 | for DOS_NT (which lacks WNOHANG) here, from caller. Keep track of | ||
| 5151 | processes that have already been waited for, by testing and | ||
| 5152 | clearing new 'alive' member. | ||
| 5153 | (CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change | ||
| 5154 | now does this internally. | ||
| 5155 | (handle_child_signal): Let record_child_status_change do all | ||
| 5156 | the work, since we do not want to reap all exited child processes, | ||
| 5157 | only the child processes that Emacs itself created. | ||
| 5158 | * process.h (Lisp_Process): New boolean member 'alive'. | ||
| 5159 | |||
| 5160 | Omit duplicate definitions no longer needed with gcc -g3. | ||
| 5161 | * lisp.h (GCTYPEBITS, GCALIGNMENT, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG) | ||
| 5162 | (VALMASK, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM): | ||
| 5163 | Define only as macros. There's no longer any need to also define | ||
| 5164 | these symbols as enums or as constants, since we now assume | ||
| 5165 | gcc -g3 when debugging. | ||
| 5166 | |||
| 5167 | 2012-11-03 Eli Zaretskii <eliz@gnu.org> | ||
| 5168 | |||
| 5169 | * lisp.mk: Adjust comments to the fact that term/internal is now | ||
| 5170 | loaded from loadup.el. | ||
| 5171 | |||
| 5172 | * msdos.c (msdos_abort): Rename from emacs_abort, and make static. | ||
| 5173 | (msdos_fatal_signal): New function. | ||
| 5174 | (XMenuActivate): Adjust the call to kbd_buffer_events_waiting to | ||
| 5175 | its argument list. | ||
| 5176 | |||
| 5177 | * conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline" | ||
| 5178 | for GCC versions before 4. | ||
| 5179 | (emacs_raise): Define to call msdos_fatal_signal. | ||
| 5180 | |||
| 5181 | * xdisp.c (init_from_display_pos): Fix initialization of the bidi | ||
| 5182 | iterator when starting in the middle of a display or overlay | ||
| 5183 | string. (Bug#12745) | ||
| 5184 | |||
| 5185 | 2012-11-03 Chong Yidong <cyd@gnu.org> | ||
| 5186 | |||
| 5187 | * process.c (wait_reading_process_output): Clean up the last | ||
| 5188 | change. | ||
| 5189 | |||
| 5190 | 2012-11-03 Jim Paris <jim@jtan.com> (tiny change) | ||
| 5191 | |||
| 5192 | * process.c (wait_reading_process_output): Avoid a race condition | ||
| 5193 | with SIGIO delivery (Bug#11536). | ||
| 5194 | |||
| 5195 | 2012-11-03 Chong Yidong <cyd@gnu.org> | ||
| 5196 | |||
| 5197 | * buffer.c (cursor_type): Untabify docstring. | ||
| 5198 | |||
| 5199 | 2012-11-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5200 | |||
| 5201 | * frame.h (struct frame): Drop can_have_scroll_bars member | ||
| 5202 | which is meaningless for a long time. Adjust comments. | ||
| 5203 | (FRAME_CAN_HAVE_SCROLL_BARS): Remove. | ||
| 5204 | * frame.c, nsfns.m, term.c, w32fns.c, xfns.c: Adjust users. | ||
| 5205 | |||
| 5206 | 2012-11-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5207 | |||
| 5208 | * window.c (decode_next_window_args): Update window arg after | ||
| 5209 | calling decode_live_window and so fix crash reported at | ||
| 5210 | http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00035.html | ||
| 5211 | by Juanma Barranquero <lekktu@gmail.com>. | ||
| 5212 | (Fwindow_body_width, Fwindow_body_height): Simplify a bit. | ||
| 5213 | * font.c (Ffont_at): Likewise. | ||
| 5214 | |||
| 5215 | 2012-11-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5216 | |||
| 5217 | * widget.c (resize_cb): New function. | ||
| 5218 | (EmacsFrameRealize): Add resize_cb as event handler (Bug#12733). | ||
| 5219 | (EmacsFrameResize): Check if all is up to date before changing frame | ||
| 5220 | size. | ||
| 5221 | |||
| 5222 | 2012-11-02 Eli Zaretskii <eliz@gnu.org> | ||
| 5223 | |||
| 5224 | Implement backtrace output for fatal errors on MS-Windows. | ||
| 5225 | * w32fns.c (CaptureStackBackTrace_proc): New typedef. | ||
| 5226 | (BACKTRACE_LIMIT_MAX): New macro. | ||
| 5227 | (w32_backtrace): New function. | ||
| 5228 | (emacs_abort): Use w32_backtrace when the user chooses not to | ||
| 5229 | attach a debugger. Update the text of the abort dialog. | ||
| 5230 | |||
| 5231 | 2012-11-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5232 | |||
| 5233 | Window-related stuff cleanup here and there. | ||
| 5234 | * dispnew.c (Finternal_show_cursor, Finternal_show_cursor_p): | ||
| 5235 | Use decode_any_window. | ||
| 5236 | * fringe.c (Ffringe_bitmaps_at_pos): Likewise. | ||
| 5237 | * xdisp.c (Fformat_mode_line): Likewise. | ||
| 5238 | * font.c (Ffont_at): Use decode_live_window. | ||
| 5239 | * indent.c (Fcompute_motion, Fvertical_motion): Likewise. | ||
| 5240 | * window.c (decode_next_window_args): Likewise. | ||
| 5241 | (decode_any_window): Remove static. | ||
| 5242 | * window.h (decode_any_window): Add prototype. | ||
| 5243 | * lisp.h (CHECK_VALID_WINDOW, CHECK_LIVE_WINDOW): Move from here... | ||
| 5244 | * window.h: ...to here, redefine via WINDOW_VALID_P and WINDOW_LIVE_P, | ||
| 5245 | respectively. | ||
| 5246 | |||
| 5247 | 2012-11-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5248 | |||
| 5249 | Remove pad from struct input_event. | ||
| 5250 | * termhooks.h (struct input_event): Remove padding field. | ||
| 5251 | Adjust comment. | ||
| 5252 | * keyboard.c (event_to_kboard): Simplify because frame_or_window | ||
| 5253 | member is never cons for a long time. Adjust comment. | ||
| 5254 | (mark_kboards): Adjust because SELECTION_REQUEST_EVENT and | ||
| 5255 | SELECTION_CLEAR_EVENT has no Lisp_Objects to mark. Add comment. | ||
| 5256 | * xterm.c (handle_one_xevent): Do not initialize frame_or_window | ||
| 5257 | field of SELECTION_REQUEST_EVENT and SELECTION_CLEAR_EVENT. | ||
| 5258 | |||
| 5259 | 2012-11-01 Eli Zaretskii <eliz@gnu.org> | ||
| 5260 | |||
| 5261 | * w32proc.c (getpgrp, setpgid): New functions. (Bug#12776) | ||
| 5262 | |||
| 5263 | 2012-10-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5264 | |||
| 5265 | Fix crash when using Emacs as commit editor for git (Bug#12697). | ||
| 5266 | * callproc.c (setpgrp): Remove macro, as we now use setpgid | ||
| 5267 | and it is configured in conf_post.h. | ||
| 5268 | (Fcall_process): Don't invoke both setsid and setpgid; the former | ||
| 5269 | is enough, if it exists. | ||
| 5270 | * callproc.c (Fcall_process, child_setup): | ||
| 5271 | * process.c (create_process): Use setpgid. | ||
| 5272 | * conf_post.h (setpgid) [!HAVE_SETPGID]: New macro, which substitutes | ||
| 5273 | for the real thing. | ||
| 5274 | * dispnew.c (init_display): Initialize the foreground group | ||
| 5275 | if we are running a tty display. | ||
| 5276 | * emacs.c (main): Do not worry about setpgrp; init_display does it now. | ||
| 5277 | * lisp.h (init_foreground_group): New decl. | ||
| 5278 | * sysdep.c (inherited_pgroup): New static var. | ||
| 5279 | (init_foreground_group, tcsetpgrp_without_stopping) | ||
| 5280 | (narrow_foreground_group, widen_foreground_group): New functions. | ||
| 5281 | (init_sys_modes): Narrow foreground group. | ||
| 5282 | (reset_sys_modes): Widen foreground group. | ||
| 5283 | |||
| 5284 | 2012-10-31 Michael Albinus <michael.albinus@gmx.de> | ||
| 5285 | |||
| 5286 | * dbusbind.c: Fix cut'n'waste error. Use HAVE_DBUS_VALIDATE_INTERFACE. | ||
| 5287 | |||
| 5288 | 2012-10-31 Martin Rudalics <rudalics@gmx.at> | ||
| 5289 | |||
| 5290 | * minibuf.c (read_minibuf): Restore current buffer since | ||
| 5291 | choose_minibuf_frame calling Fset_frame_selected_window may | ||
| 5292 | change it (Bug#12766). | ||
| 5293 | |||
| 5294 | 2012-10-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5295 | |||
| 5296 | * frame.c (Fframe_pixel_height): Fix documentation (Bug#12733). | ||
| 5297 | |||
| 5298 | 2012-10-30 Kenichi Handa <handa@gnu.org> | ||
| 5299 | |||
| 5300 | * font.c (Ffont_at): If WINDOW is specified and it is not | ||
| 5301 | displaying the current buffer, signal an error. | ||
| 5302 | |||
| 5303 | 2012-10-29 Daniel Colascione <dancol@dancol.org> | ||
| 5304 | |||
| 5305 | * cygw32.h, cygw32.c (Qutf_16le, from_unicode, to_unicode): | ||
| 5306 | In preparation for fixing bug#12739, move these functions from | ||
| 5307 | here... | ||
| 5308 | |||
| 5309 | * coding.h, coding.c: ... to here, and compile them only when | ||
| 5310 | WINDOWSNT or CYGWIN. Moving these functions out of cygw32 proper | ||
| 5311 | lets us write cygw32-agnostic code for the HAVE_NTGUI case. | ||
| 5312 | |||
| 5313 | 2012-10-28 Eli Zaretskii <eliz@gnu.org> | ||
| 5314 | |||
| 5315 | * w32proc.c (TIMER_TICKS_PER_SEC): New macro. | ||
| 5316 | (timer_loop, getitimer, setitimer): Use it instead of | ||
| 5317 | CLOCKS_PER_SEC, which is no longer pertinent, since we don't use | ||
| 5318 | 'clock'. | ||
| 5319 | (w32_get_timer_time): Use 10*TIMER_TICKS_PER_SEC instead of a | ||
| 5320 | literal 10000. | ||
| 5321 | |||
| 5322 | 2012-10-28 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5323 | |||
| 5324 | * nsterm.m (NO_APPDEFINED_DATA): New define. | ||
| 5325 | (last_appdefined_event_data): New variable | ||
| 5326 | (last_appdefined_event): Remove. | ||
| 5327 | (ns_select): Initialize t from last_appdefined_event_data instead | ||
| 5328 | of [last_appdefined_event data1]. | ||
| 5329 | (sendEvent:): Save [theEvent data1] to last_appdefined_event_data, | ||
| 5330 | remove last_appdefined_event (Bug#12698). | ||
| 5331 | |||
| 5332 | 2012-10-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 5333 | |||
| 5334 | * frame.c (x_set_font): Catch internal error. | ||
| 5335 | |||
| 5336 | 2012-10-27 Eli Zaretskii <eliz@gnu.org> | ||
| 5337 | |||
| 5338 | Avoid overflow in w32 implementation of interval timers. | ||
| 5339 | When possible, for ITIMER_PROF count only times the main thread | ||
| 5340 | actually executes. | ||
| 5341 | * w32proc.c <struct itimer_data>: 'expire' and 'reload' are now | ||
| 5342 | 'volatile ULONGLONG' types. All the other data which was | ||
| 5343 | previously clock_t is now ULONGLONG. 'terminate' is 'volatile int'. | ||
| 5344 | (GetThreadTimes_Proc): New typedef. | ||
| 5345 | (w32_get_timer_time): New function, returns a suitable time value | ||
| 5346 | for the timer. | ||
| 5347 | (timer_loop): Enter critical section when accessing ULONGLONG | ||
| 5348 | values of the itimer_data struct, as these accesses are no longer | ||
| 5349 | atomic. Call 'w32_get_timer_time' instead of 'clock'. | ||
| 5350 | Remove unused variable. | ||
| 5351 | (init_timers): Initialize s_pfn_Get_Thread_Times. | ||
| 5352 | (start_timer_thread): Don't assign itimer->caller_thread here. | ||
| 5353 | (getitimer): Assign itimer->caller_thread here. | ||
| 5354 | (setitimer): Always call getitimer to get the value of ticks_now. | ||
| 5355 | (sys_spawnve): Avoid compiler warning about format mismatch. | ||
| 5356 | |||
| 5357 | 2012-10-26 Eli Zaretskii <eliz@gnu.org> | ||
| 5358 | |||
| 5359 | * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Don't enable tracking of | ||
| 5360 | mouse movement events if the menu bar is active. This avoids | ||
| 5361 | producing a busy "hour-glass" cursor by Windows if the mouse | ||
| 5362 | pointer is positioned over a tooltip shown for some menu item. | ||
| 5363 | |||
| 5364 | 2012-10-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5365 | |||
| 5366 | Don't assume process IDs fit in int. | ||
| 5367 | * emacs.c (shut_down_emacs) [!DOS_NT]: | ||
| 5368 | * sysdep.c (sys_suspend) [SIGTSTP && !MSDOS]: | ||
| 5369 | * term.c (dissociate_if_controlling_tty) [!DOS_NT]: | ||
| 5370 | Use pid_t, not int, to store process IDs, as 'int' | ||
| 5371 | is not wide enough on a few platforms (e.g., AIX and IRIX). | ||
| 5372 | |||
| 5373 | 2012-10-23 Kenichi Handa <handa@gnu.org> | ||
| 5374 | |||
| 5375 | The following change is to make face-font-rescale-alist work | ||
| 5376 | correctly for non-ASCII fonts. | ||
| 5377 | |||
| 5378 | * font.c (font_open_entity): Don't handle Vface_font_rescale_alist. | ||
| 5379 | (font_open_for_lface): Handle Vface_font_rescale_alist. | ||
| 5380 | |||
| 5381 | 2012-10-23 Chong Yidong <cyd@gnu.org> | ||
| 5382 | |||
| 5383 | * xfaces.c (Vfont_list_limit): Move unused variable to faces.el. | ||
| 5384 | |||
| 5385 | 2012-10-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5386 | |||
| 5387 | * nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement | ||
| 5388 | for screen font. | ||
| 5389 | (nsfont_draw): Turn off LCD-smoothing (Bug#11484). | ||
| 5390 | |||
| 5391 | * xterm.c (x_focus_changed): Check if daemonp when sending focus in | ||
| 5392 | event (Bug#12681). | ||
| 5393 | |||
| 5394 | 2012-10-21 Glenn Morris <rgm@gnu.org> | ||
| 5395 | |||
| 5396 | * lisp.mk (lisp): Add cp51932.el and eucjp-ms.el. | ||
| 5397 | |||
| 5398 | 2012-10-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5399 | |||
| 5400 | Port to OpenBSD 5.1. | ||
| 5401 | * frame.c (Fmouse_position, Fmouse_pixel_position): | ||
| 5402 | * xdisp.c (produce_stretch_glyph): | ||
| 5403 | Declare local vars only when they're needed. | ||
| 5404 | This is clearer and avoids a warning on OpenBSD about unused vars. | ||
| 5405 | * frame.h (FRAME_WINDOW_P): Always evaluate its argument. | ||
| 5406 | This is safer, and avoids OpenBSD warnings about unused vars. | ||
| 5407 | * keyboard.c (record_menu_key): Remove unnecessary decl. | ||
| 5408 | (poll_timer): Define only if POLL_FOR_INPUT is defined. | ||
| 5409 | * unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined, | ||
| 5410 | as our definition clashes with OpenBSD's. | ||
| 5411 | * xfaces.c (load_face_colors, check_lface_attrs) | ||
| 5412 | (get_lface_attributes_no_remap, get_lface_attributes) | ||
| 5413 | (lface_fully_specified_p, x_supports_face_attributes_p) | ||
| 5414 | (tty_supports_face_attributes_p, face_fontset, realize_face) | ||
| 5415 | (realize_x_face, realize_tty_face): | ||
| 5416 | Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not | ||
| 5417 | merely Lisp_Object *. This is more informative and avoids | ||
| 5418 | a warning on OpenBSD about accessing beyond an object's size. | ||
| 5419 | |||
| 5420 | 2012-10-20 Chong Yidong <cyd@gnu.org> | ||
| 5421 | |||
| 5422 | * lread.c (Fload): Doc fix (Bug#12592). | ||
| 5423 | |||
| 5424 | 2012-10-19 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | ||
| 5425 | |||
| 5426 | * font.c (Ffont_at): Fix previous change. | ||
| 5427 | |||
| 5428 | 2012-10-19 Eli Zaretskii <eliz@gnu.org> | ||
| 5429 | |||
| 5430 | * puresize.h (BASE_PURESIZE): Bump the base value to 1700000. | ||
| 5431 | See http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html | ||
| 5432 | for the reasons. | ||
| 5433 | |||
| 5434 | * alloc.c (NSTATICS): Decrease to 0x800. | ||
| 5435 | |||
| 5436 | 2012-10-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 5437 | |||
| 5438 | * fns.c (Fnreverse): Include the problem element when signaling an | ||
| 5439 | error (bug#12677). | ||
| 5440 | |||
| 5441 | 2012-10-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5442 | |||
| 5443 | * nsterm.m (ns_select): Check writefds before call to | ||
| 5444 | FD_ISSET (Bug#12668). | ||
| 5445 | |||
| 5446 | 2012-10-18 Daniel Colascione <dancol@dancol.org> | ||
| 5447 | |||
| 5448 | * alloc.c (NSTATICS): Increase from 0x650 to 0x1000 | ||
| 5449 | (staticpro): If we run out of staticpro slots, die with an | ||
| 5450 | informative error instead of just calling emacs_abort. | ||
| 5451 | |||
| 5452 | 2012-10-18 Martin Rudalics <rudalics@gmx.at> | ||
| 5453 | |||
| 5454 | Fix two flaws reported by Dmitry Antipov. | ||
| 5455 | * window.c (Ftemp_output_buffer_show): Remove. | ||
| 5456 | (Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window. | ||
| 5457 | (syms_of_window): Remove defsubr for Stemp_output_buffer_show. | ||
| 5458 | |||
| 5459 | 2012-10-17 Eli Zaretskii <eliz@gnu.org> | ||
| 5460 | |||
| 5461 | * makefile.w32-in ($(BLD)/w32.$(O)): | ||
| 5462 | ($(BLD)/vm-limit.$(O)): | ||
| 5463 | ($(BLD)/term.$(O)): | ||
| 5464 | ($(BLD)/unexw32.$(O)): | ||
| 5465 | ($(BLD)/fileio.$(O)): | ||
| 5466 | ($(BLD)/dispnew.$(O)): Update dependencies. | ||
| 5467 | |||
| 5468 | * w32term.h (w32_initialize_display_info, initialize_w32_display): | ||
| 5469 | Add prototypes. | ||
| 5470 | |||
| 5471 | * w32proc.c: Include ctype.h. | ||
| 5472 | |||
| 5473 | * w32.h (init_environment, check_windows_init_file) | ||
| 5474 | (syms_of_ntproc, syms_of_ntterm, dostounix_filename) | ||
| 5475 | (unixtodos_filename, init_winsock, srandom, random, sys_pipe) | ||
| 5476 | (set_process_dir, sys_spawnve, register_child, sys_sleep, getwd) | ||
| 5477 | (sys_link): Add prototypes. | ||
| 5478 | |||
| 5479 | * w32.c: Include w32select.h. | ||
| 5480 | (sys_access, e_malloc, sys_select): Add prototypes. | ||
| 5481 | (emacs_gnutls_pull): 'timeout' is now EMACS_TIME, not struct timeval. | ||
| 5482 | |||
| 5483 | * vm-limit.c [WINDOWSNT]: Include w32heap.h. | ||
| 5484 | |||
| 5485 | * unexw32.c: Include lisp.h and w32.h. | ||
| 5486 | |||
| 5487 | * term.c [WINDOWSNT]: Include w32term.h. | ||
| 5488 | |||
| 5489 | * process.c [WINDOWSNT]: Add prototype of sys_select. | ||
| 5490 | |||
| 5491 | * fileio.c [WINDOWSNT]: Include w32.h. | ||
| 5492 | |||
| 5493 | * dispnew.c [WINDOWSNT]: Include w32.h. | ||
| 5494 | |||
| 5495 | * cygw32.c (Fcygwin_convert_path_to_windows) | ||
| 5496 | (Fcygwin_convert_path_from_windows): Use EQ to compare 2 | ||
| 5497 | Lisp_Object values. (Bug#12661) | ||
| 5498 | |||
| 5499 | * w32fns.c (w32_msg_pump): Use XIL instead of casting an integer | ||
| 5500 | to Lisp_Object. (Bug#12661) | ||
| 5501 | |||
| 5502 | 2012-10-17 Kenichi Handa <handa@gnu.org> | ||
| 5503 | |||
| 5504 | * xdisp.c (reseat_1): Make the information stored in it->cmp_it | ||
| 5505 | invalidate. | ||
| 5506 | |||
| 5507 | 2012-10-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5508 | |||
| 5509 | * buffer.c (Fkill_buffer): When unchaining the marker, | ||
| 5510 | reset its buffer pointer to NULL (Bug#12652). | ||
| 5511 | |||
| 5512 | 2012-10-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5513 | |||
| 5514 | Do not verify indirection counters of killed buffers (Bug#12579). | ||
| 5515 | * buffer.h (BUFFER_CHECK_INDIRECTION): New macro. | ||
| 5516 | * buffer.c (compact_buffer, set_buffer_internal_1): Use it. | ||
| 5517 | |||
| 5518 | 2012-10-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5519 | |||
| 5520 | * alloc.c (Fmake_byte_code): Fix typo in comment. | ||
| 5521 | * print.c (print_interval): Define as static to match prototype. | ||
| 5522 | * indent.c (disptab_matches_widthtab, recompute_width_table): | ||
| 5523 | Convert to eassert. | ||
| 5524 | |||
| 5525 | 2012-10-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5526 | |||
| 5527 | * editfns.c (get_system_name): Remove. | ||
| 5528 | * lisp.h (get_system_name): Remove prototype. | ||
| 5529 | * xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes. | ||
| 5530 | (get_environ_db): Use Vsystem_name. Avoid call to strlen. | ||
| 5531 | |||
| 5532 | 2012-10-15 Daniel Colascione <dancol@dancol.org> | ||
| 5533 | |||
| 5534 | * dbusbind.c: Add comment explaining reason for previous change. | ||
| 5535 | |||
| 5536 | 2012-10-15 Martin Rudalics <rudalics@gmx.at> | ||
| 5537 | |||
| 5538 | * window.c (Fwindow_end): Rewrite check whether cached position | ||
| 5539 | can be used (Bug#12600). | ||
| 5540 | (resize_frame_windows, grow_mini_window, shrink_mini_window): | ||
| 5541 | Set windows_or_buffers_changed. | ||
| 5542 | |||
| 5543 | 2012-10-15 Daniel Colascione <dancol@dancol.org> | ||
| 5544 | |||
| 5545 | * dbusbind.c: Fix cygw32 build break when compiling with dbus | ||
| 5546 | enabled by undefining the symbol "interface", which the platform | ||
| 5547 | headers define to something incompatible. | ||
| 5548 | |||
| 5549 | 2012-10-14 Daniel Colascione <dancol@dancol.org> | ||
| 5550 | |||
| 5551 | * image.c (init_tiff_functions, init_imagemagick_functions) | ||
| 5552 | (init_svg_functions): Fix cygw32 build break by using these | ||
| 5553 | functions only when WINDOWSNT _and_ HAVE_NTGUI. | ||
| 5554 | |||
| 5555 | 2012-10-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5556 | |||
| 5557 | * nsterm.m (ns_select): Count fd:s in writefs also (Bug#12422). | ||
| 5558 | |||
| 5559 | 2012-10-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5560 | |||
| 5561 | * gtkutil.c (xg_set_widget_bg): Divide by 65535 (Bug#12612). | ||
| 5562 | |||
| 5563 | 2012-10-13 HANATAKA, Shinya <bogytech@gmail.com> (tiny change) | ||
| 5564 | |||
| 5565 | * coding.c (detect_coding): Set coding->id before calling | ||
| 5566 | this->detector. | ||
| 5567 | |||
| 5568 | 2012-10-13 Andreas Schwab <schwab@linux-m68k.org> | ||
| 5569 | |||
| 5570 | * fileio.c: Formatting fixes. | ||
| 5571 | |||
| 5572 | 2012-10-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5573 | |||
| 5574 | Fix some stat-related races. | ||
| 5575 | * fileio.c (Fwrite_region): Avoid race condition if a file is | ||
| 5576 | removed or renamed by some other process immediately after Emacs | ||
| 5577 | writes it but before Emacs stats it. Do not assume that stat (or | ||
| 5578 | fstat) succeeds. | ||
| 5579 | * image.c (slurp_file): Resolve the file name with fopen + fstat | ||
| 5580 | rather than stat + fopen. | ||
| 5581 | (pbm_read_file) [0]: Remove unused code with stat race. | ||
| 5582 | * process.c (allocate_pty) [HAVE_PTYS && !PTY_ITERATION && !PTY_OPEN]: | ||
| 5583 | Remove ineffective code with stat race. | ||
| 5584 | |||
| 5585 | 2012-10-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 5586 | |||
| 5587 | * doc.c (get_doc_string): Don't signal an error if the file is missing. | ||
| 5588 | |||
| 5589 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5590 | |||
| 5591 | * nsterm.m (hold_event_q): New static variable. | ||
| 5592 | (EV_TRAILER, sendScrollEventAtLoc:fromEvent:): Call hold_event if | ||
| 5593 | ! q_event_ptr. | ||
| 5594 | (hold_event): New function. | ||
| 5595 | (ns_read_socket): If hold_event_q have events, store them and | ||
| 5596 | return (Bug#12384). | ||
| 5597 | (setPosition:portion:whole:): Send SIGIO to ourselves if apploopnr | ||
| 5598 | is zero (Bug#12384). | ||
| 5599 | |||
| 5600 | 2012-10-12 Juanma Barranquero <lekktu@gmail.com> | ||
| 5601 | |||
| 5602 | * makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies. | ||
| 5603 | |||
| 5604 | 2012-10-12 Eli Zaretskii <eliz@gnu.org> | ||
| 5605 | |||
| 5606 | * makefile.w32-in ($(BLD)/fileio.$(O)): Add sys/file.h. | ||
| 5607 | |||
| 5608 | * fileio.c (check_existing): New function. | ||
| 5609 | (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it | ||
| 5610 | instead of calling 'stat', when what's needed is to check whether | ||
| 5611 | a file exists. This avoids expensive system calls on MS-Windows. | ||
| 5612 | (Bug#12587) | ||
| 5613 | |||
| 5614 | * w32.c (init_environment): Call 'check_existing' instead of 'stat'. | ||
| 5615 | |||
| 5616 | * lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to | ||
| 5617 | determine whether a file exists and is not a directory. | ||
| 5618 | |||
| 5619 | * lisp.h (check_existing): Add prototype. | ||
| 5620 | |||
| 5621 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5622 | |||
| 5623 | * nsfont.m (nsfont_open): Remove font cache, it is not GC correct. | ||
| 5624 | |||
| 5625 | 2012-10-12 Glenn Morris <rgm@gnu.org> | ||
| 5626 | |||
| 5627 | * buffer.c (Fset_buffer): Doc fix. (Bug#12624) | ||
| 5628 | |||
| 5629 | 2012-10-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 5630 | |||
| 5631 | * buffer.c (Fkill_buffer): Null out the overlay list(s) as well. | ||
| 5632 | |||
| 5633 | * eval.c (Fautoload): Remember previous autoload status in load-history. | ||
| 5634 | |||
| 5635 | 2012-10-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5636 | |||
| 5637 | lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans. | ||
| 5638 | * lread.c (load_each_byte, new_backquote_flag, readchar) | ||
| 5639 | (read_filtered_event, lisp_file_lexically_bound_p) | ||
| 5640 | (safe_to_load_version, Fload, complete_filename_p, openp) | ||
| 5641 | (build_load_history, readevalloop, read_escape, read1) | ||
| 5642 | (string_to_number, read_vector, read_list): | ||
| 5643 | * macros.c (Fstart_kbd_macro): | ||
| 5644 | * marker.c (CONSIDER): | ||
| 5645 | * menu.c (parse_single_submenu, digest_single_submenu) | ||
| 5646 | (find_and_return_menu_selection, Fx_popup_menu): | ||
| 5647 | * minibuf.c (read_minibuf_noninteractive, read_minibuf) | ||
| 5648 | (Ftry_completion): | ||
| 5649 | * nsmenu.m (ns_update_menubar, runMenuAt:forFrame:keymaps:): | ||
| 5650 | (ns_menu_show): | ||
| 5651 | * xmenu.c (set_frame_menubar, create_and_show_popup_menu) | ||
| 5652 | (xmenu_show, xdialog_show): | ||
| 5653 | Use bool for booleans. | ||
| 5654 | * lread.c (safe_to_load_version): Rename from safe_to_load_p, | ||
| 5655 | as it's not a predicate. All uses changed. Omit unnecessary | ||
| 5656 | buffer termination. | ||
| 5657 | |||
| 5658 | 2012-10-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5659 | |||
| 5660 | * editfns.c (save_excursion_save): Use nil if mark points to nowhere. | ||
| 5661 | (save_excursion_restore): Do not restore mark if it was not saved. | ||
| 5662 | |||
| 5663 | 2012-10-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5664 | |||
| 5665 | * marker.c (cached_modiff): EMACS_INT, not int. | ||
| 5666 | |||
| 5667 | * w32select.c (waiting_for_input): Declare by including "keyboard.h" | ||
| 5668 | instead of having a wrong decl. | ||
| 5669 | * nsmenu.m (waiting_for_input): Remove wrong decl. | ||
| 5670 | |||
| 5671 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5672 | |||
| 5673 | keyboard.c, keymap.c: Use bool for booleans. | ||
| 5674 | * dispnew.c (sit_for): Distinguish between 3-way display_option | ||
| 5675 | and boolean do_display. | ||
| 5676 | * keyboard.c (single_kboard, this_command_key_count_reset) | ||
| 5677 | (waiting_for_input, echoing, immediate_quit, input_pending) | ||
| 5678 | (interrupt_input, interrupts_deferred, pop_kboard) | ||
| 5679 | (temporarily_switch_to_single_kboard, ignore_mouse_drag_p) | ||
| 5680 | (command_loop_1, adjust_point_for_property) | ||
| 5681 | (safe_run_hooks_error, input_polling_used, read_char): | ||
| 5682 | (help_char_p, readable_events, kbd_buffer_events_waiting) | ||
| 5683 | (kbd_buffer_get_event, timer_check_2, make_lispy_event) | ||
| 5684 | (lucid_event_type_list_p, get_input_pending): | ||
| 5685 | (gobble_input, menu_separator_name_p, menu_bar_item) | ||
| 5686 | (parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt) | ||
| 5687 | (read_char_minibuf_menu_prompt, access_keymap_keyremap) | ||
| 5688 | (keyremap_step, test_undefined, read_key_sequence) | ||
| 5689 | (detect_input_pending, detect_input_pending_ignore_squeezables) | ||
| 5690 | (detect_input_pending_run_timers, requeued_events_pending_p) | ||
| 5691 | (quit_throw_to_read_char, Fset_input_interrupt_mode): | ||
| 5692 | * keymap.c (get_keymap, keymap_parent, keymap_memberp) | ||
| 5693 | (access_keymap_1, access_keymap, map_keymap, get_keyelt) | ||
| 5694 | (Fdefine_key, Flookup_key, struct accessible_keymaps_data) | ||
| 5695 | (accessible_keymaps_1, Fkey_description, push_key_description): | ||
| 5696 | (shadow_lookup, struct where_is_internal_data) | ||
| 5697 | (where_is_internal, Fwhere_is_internal, where_is_internal_1) | ||
| 5698 | (Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt) | ||
| 5699 | (describe_map, describe_vector): | ||
| 5700 | * menu.c (single_menu_item): | ||
| 5701 | * nsmenu.m (ns_update_menubar): | ||
| 5702 | * process.c (wait_reading_process_output): | ||
| 5703 | * search.c (scan_buffer, scan_newline): | ||
| 5704 | Use bool for boolean. | ||
| 5705 | * keyboard.c (timers_run, swallow_events) | ||
| 5706 | (detect_input_pending_run_timers): | ||
| 5707 | * process.c (wait_reading_process_output): | ||
| 5708 | Use unsigned for counter where wraparound-on-overflow is desired, | ||
| 5709 | since unsigned is guaranteed to have that behavior and signed is not. | ||
| 5710 | (read_char): Use ptrdiff_t for string length. | ||
| 5711 | (get_input_pending): Remove first argument, since it was always | ||
| 5712 | the same pointer-to-int (now pointer-to-boolean) &input_pending, | ||
| 5713 | and behave as if it had that value. Return new value of | ||
| 5714 | input_pending. All callers changed. | ||
| 5715 | * keyboard.h (struct kboard): Use unsigned : 1 for boolean member | ||
| 5716 | immediate_echo. Use ptrdiff_t for echo_after_prompt, since it's | ||
| 5717 | a string length. | ||
| 5718 | * keymap.c (push_key_description): Omit last arg, which was always 1. | ||
| 5719 | All callers changed. | ||
| 5720 | |||
| 5721 | * regex.c (immediate_quit) [emacs]: Remove duplicate decl. | ||
| 5722 | |||
| 5723 | 2012-10-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 5724 | |||
| 5725 | * makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/indent.$(O)) | ||
| 5726 | ($(BLD)/term.$(O)): Update dependencies. | ||
| 5727 | |||
| 5728 | 2012-10-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5729 | |||
| 5730 | * alloc.c (mark_object): Use meaningful PVEC_NORMAL_VECTOR. | ||
| 5731 | * lisp.h (enum pvec_type): Adjust comments and omit explicit | ||
| 5732 | initializer for PVEC_NORMAL_VECTOR. | ||
| 5733 | |||
| 5734 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5735 | |||
| 5736 | Clean out old termopts cruft. | ||
| 5737 | * termopts.h (flow_control, meta_key): Remove unused decls. | ||
| 5738 | * dispnew.c, indent.c, nsterm.m, term.c, xsettings.c, xsmfns.c: | ||
| 5739 | Don't include termopts.h. | ||
| 5740 | |||
| 5741 | 2012-10-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 5742 | |||
| 5743 | * alloc.c (gc_sweep): Use pointer-to-a-pointer loop for buffers. | ||
| 5744 | |||
| 5745 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 5746 | |||
| 5747 | * commands.h (immediate_quit): Remove duplicate decl. | ||
| 5748 | |||
| 5749 | 2012-10-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5750 | |||
| 5751 | * nsfont.m (Vfonts_in_cache): Remove, not needed as font.c handles | ||
| 5752 | caching. | ||
| 5753 | (nsfont_open): Remove setting of Vfonts_in_cache. | ||
| 5754 | (syms_of_nsfont): Remove initialization of Vfonts_in_cache. | ||
| 5755 | |||
| 5756 | 2012-10-09 Eli Zaretskii <eliz@gnu.org> | ||
| 5757 | |||
| 5758 | * w32fns.c (w32_last_error): Change the return value to DWORD, to | ||
| 5759 | match what GetLastError returns. Explain why the function is | ||
| 5760 | needed. | ||
| 5761 | |||
| 5762 | * frame.c (delete_frame): Rename local variable 'tooltip_frame' to | ||
| 5763 | 'is_tooltip_frame', to avoid confusion with its global namesake. | ||
| 5764 | |||
| 5765 | 2012-10-08 Daniel Colascione <dancol@dancol.org> | ||
| 5766 | |||
| 5767 | * xdisp.c (start_hourglass): Call w32_note_current_window when | ||
| 5768 | HAVE_NTGUI, not just WINDOWSNT, resolving a problem in the cygw32 | ||
| 5769 | build that caused Emacs to display the hourglass cursor forever. | ||
| 5770 | |||
| 5771 | * w32fns.c (Fx_display_color_cells): Instead of using NCOLORS, | ||
| 5772 | which is broken under remote desktop, calculate the number of | ||
| 5773 | colors available for a display based on the display's number of | ||
| 5774 | planes and number of bits per pixel per plane. (bug#10397). | ||
| 5775 | |||
| 5776 | 2012-10-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 5777 | |||
| 5778 | * nsfont.m (Vfonts_in_cache): New variable. | ||
| 5779 | (nsfont_open): Use unsignedLongLongValue for cache in case wide ints | ||
| 5780 | are used. Add cached fonts to Vfonts_in_cache. | ||
| 5781 | (syms_of_nsfont): Initialize and staticpro Vfonts_in_cache. | ||
| 5782 | |||
| 5783 | 2012-10-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 5784 | |||
| 5785 | * makefile.w32-in (LOCAL_FLAGS): Don't define HAVE_NTGUI, it's now | ||
| 5786 | in nt/config.nt. | ||
| 5787 | (FONT_H): Define after FRAME_H. | ||
| 5788 | ($(BLD)/emacs.$(O), $(BLD)/process.$(O), $(BLD)/w32heap.$(O)): | ||
| 5789 | Update dependencies. | ||
| 5790 | |||
| 5791 | * w32term.c: Remove leftover declaration of keyboard_codepage. | ||
| 5792 | |||
| 5793 | 2012-10-08 Eli Zaretskii <eliz@gnu.org> | ||
| 5794 | |||
| 5795 | * makefile.w32-in (FONT_H): Add $(FRAME_H). | ||
| 5796 | (W32TERM_H): Add $(ATIMER_H) and $(FRAME_H). | ||
| 5797 | ($(BLD)/emacs.$(O), $(BLD)/w32console.$(O)): Update dependencies. | ||
| 5798 | (GLOBAL_SOURCES): Add cygw32.c. | ||
| 5799 | ($(BLD)/unexw32.$(O)): | ||
| 5800 | ($(BLD)/w32.$(O)): | ||
| 5801 | ($(BLD)/w32console.$(O)): | ||
| 5802 | ($(BLD)/w32fns.$(O)): | ||
| 5803 | ($(BLD)/w32heap.$(O)): | ||
| 5804 | ($(BLD)/w32menu.$(O)): | ||
| 5805 | ($(BLD)/w32proc.$(O)): Add w32common.h. | ||
| 5806 | |||
| 5807 | * w32fns.c (w32_color_map_lookup, x_to_w32_color): Argument is now | ||
| 5808 | 'const char *'. | ||
| 5809 | (x_to_w32_color): Don't modify the argument, modify a copy instead. | ||
| 5810 | |||
| 5811 | 2012-10-08 Daniel Colascione <dancol@dancol.org> | ||
| 5812 | |||
| 5813 | * w32term.h (WM_EMACS_BRINGTOTOP, WM_EMACS_INPUT_READY) | ||
| 5814 | (WM_EMACS_END): Change WM_EMACS_BRINGTOTOP from 22 to 21 to close | ||
| 5815 | accidental message numbering hole. Change other messages to | ||
| 5816 | match. | ||
| 5817 | |||
| 5818 | * w32select.h (HAVE_W32SELECT): Remove. | ||
| 5819 | |||
| 5820 | * w32select.c, w32proc.c, w32menu.c, w32console.c, w32.c: Include | ||
| 5821 | w32common.h instead of w32heap.h. | ||
| 5822 | |||
| 5823 | * w32heap.h (ROUND_UP, ROUND_DOWN, get_page_size) | ||
| 5824 | (get_allocation_unit, get_processor_type, get_w32_major_version) | ||
| 5825 | (get_w32_minor_version, sysinfo_cache, osinfo_cache) | ||
| 5826 | (w32_major_version, w32_minor_version, w32_build_number, OS_9X) | ||
| 5827 | (OS_NT, os_subtype, cache_system_info): Move declarations to | ||
| 5828 | w32common. | ||
| 5829 | |||
| 5830 | * w32heap.c: Include w32common.h. | ||
| 5831 | (sysinfo_cache, syspage_mask, osinfo_cache, w32_major_version) | ||
| 5832 | (w32_minor_version, w32_build_number, w32_subtype): | ||
| 5833 | Remove duplicate definitions. | ||
| 5834 | |||
| 5835 | * w32fns.c: Include w32common.h; include w32heap.h only in | ||
| 5836 | WINDOWSNT. | ||
| 5837 | |||
| 5838 | (Fx_file_dialog): Clarify comment on GetOpenFileName structure. | ||
| 5839 | Use `report_file_error' instead of `error' in order to better | ||
| 5840 | inform users of what went wrong. Increase NTGUI_UNICODE file | ||
| 5841 | dialog box file name length to 32k, the maximum allowed by the NT | ||
| 5842 | kernel. | ||
| 5843 | |||
| 5844 | * w32common.h: New file. | ||
| 5845 | (ROUND_UP, ROUND_DOWN, get_page_size) | ||
| 5846 | (get_allocation_unit, get_processor_type, get_w32_major_version) | ||
| 5847 | (get_w32_minor_version, sysinfo_cache, osinfo_cache) | ||
| 5848 | (w32_major_version, w32_minor_version, w32_build_number, OS_9X) | ||
| 5849 | (OS_NT, os_subtype, cache_system_info): Move here. | ||
| 5850 | |||
| 5851 | * unexw32.c, unexcw.c: Include w32common.h. | ||
| 5852 | |||
| 5853 | * emacs.c (main): Use (defined (WINDOWSNT) || defined | ||
| 5854 | HAVE_NTGUI) instead of removed HAVE_W32SELECT to decide whether | ||
| 5855 | to call syms_of_w32select. | ||
| 5856 | |||
| 5857 | * cygw32.h: Remove obsolete EXFUN declarations. | ||
| 5858 | |||
| 5859 | * cygw32.c (Qutf_16_le): Rename to Qutf_16le. | ||
| 5860 | |||
| 5861 | * Makefile.in (SOME_MACHINE_OBJECTS): Reverse accidental removal | ||
| 5862 | of w32inevt.o from SOME_MACHINE_OBJECTS. | ||
| 5863 | |||
| 5864 | 2012-10-08 Daniel Colascione <dancol@dancol.org> | ||
| 5865 | |||
| 5866 | * image.c: Permanent fix for JPEG compilation issue --- limit | ||
| 5867 | jpeglib `boolean' redefinition to Cygwin builds. | ||
| 5868 | |||
| 5869 | 2012-10-08 Eli Zaretskii <eliz@gnu.org> | ||
| 5870 | |||
| 5871 | * image.c (CHECK_LIB_AVAILABLE): Remove, no longer used. | ||
| 5872 | |||
| 5873 | * emacs.c (DAEMON_MUST_EXEC) [HAVE_NTGUI]: Define this only on | ||
| 5874 | Cygwin. | ||
| 5875 | |||
| 5876 | 2012-10-08 Daniel Colascione <dancol@dancol.org> | ||
| 5877 | |||
| 5878 | * xfaces.c, xdisp.c, window.c, w32xfns.c, w32term.h, w32term.c, | ||
| 5879 | w32select.h w32select.c, w32proc.c, w32menu.c, w32inevt.c, | ||
| 5880 | w32help.c, w32font.c, w32font.c, w32fns.c, w32console.c, w32.h, | ||
| 5881 | w32.c, unexw32.c, termhooks.h, process.c, menu.c, keyboard.h, | ||
| 5882 | keyboard.c, image.c, frame.h, frame.c, fontset.c, font.h, font.c, | ||
| 5883 | emacs.c, dispextern.h, cygw32.h, cygw32.c, conf_post.h, | ||
| 5884 | Makefile.in: use HAVE_NTGUI for W32 GUI and WINDOWSNT for the | ||
| 5885 | operating system. defined(HAVE_NTGUI) && !defined(WINDOWSNT) is | ||
| 5886 | now a supported configuration. | ||
| 5887 | |||
| 5888 | * Makefile.in: consolidate image variables into LIBIMAGE; add | ||
| 5889 | W32_OBJ and W32_LIBS. Compile new files. | ||
| 5890 | |||
| 5891 | * conf_post.h: | ||
| 5892 | (_DebPrint) declare tracing facility for W32 debugging. We need | ||
| 5893 | to unify tracing later. | ||
| 5894 | |||
| 5895 | (NTGUI_UNICODE) Define when compiling for Cygwin to allow the | ||
| 5896 | unconditional use of W32 Unicode functions. Cygwin runs only on | ||
| 5897 | 100% Unicode operating systems. | ||
| 5898 | |||
| 5899 | * cygw32.c: New file. Define Cygwin-specific facilities. | ||
| 5900 | (Fcygwin_convert_path_to_windows) | ||
| 5901 | (Fcygwin_convert_path_from_windows): New user functions for | ||
| 5902 | accessing Cygwin path-munging routines. | ||
| 5903 | |||
| 5904 | * cygw32.h: New file. | ||
| 5905 | (WCSDATA, to_unicode, from_unicode): Define facilities for storing | ||
| 5906 | UTF-16LE strings temporarily inside non-Lisp-visible string | ||
| 5907 | objects. | ||
| 5908 | |||
| 5909 | (w32_strerror): Just what it says on the tin. | ||
| 5910 | |||
| 5911 | * emacs.c: Make the NS fork-then-exec code for daemon-launching | ||
| 5912 | also run for Cygwin; both systems have the same problem with using | ||
| 5913 | GUI facilities in a forked child. Also call syms_of_cygw32, | ||
| 5914 | syms_of_w32select in correct places. | ||
| 5915 | |||
| 5916 | (DAEMON_MUST_EXEC): new macro defined to signal that a platform | ||
| 5917 | needs fork-then-exec for daemon launching. | ||
| 5918 | |||
| 5919 | * font.h: Include frame.h. | ||
| 5920 | |||
| 5921 | * image.c: Use the image library cache machinery only when we're | ||
| 5922 | compiling for native WINDOWSNT; Cygwin can use shared libraries | ||
| 5923 | like any other Unixlike system. | ||
| 5924 | |||
| 5925 | * keyboard.c: Clarify a comment regarding the input loop. | ||
| 5926 | |||
| 5927 | * menu.c: When NTGUI_UNICODE is defined, use Unicode menu | ||
| 5928 | functions directly instead of trying to detect at runtime that our | ||
| 5929 | host operating system supports them. We make this change for two | ||
| 5930 | reasons: Cygwin lacks support for the multibyte character | ||
| 5931 | conversion functions used by the legacy menu code, and Cygwin | ||
| 5932 | never needs to rely on non-Unicode APIs. | ||
| 5933 | |||
| 5934 | * unexw32.c (hinst): Declare extern. | ||
| 5935 | |||
| 5936 | * w32.c: Change header order; | ||
| 5937 | (w32_strerror): Move to w32fns.c because we need it for | ||
| 5938 | non-WINDOWSNT builds. | ||
| 5939 | |||
| 5940 | * w32.h: Add #error macro to make sure we don't include w32.h for | ||
| 5941 | Cygwin builds. Remove w32select declarations. | ||
| 5942 | |||
| 5943 | * w32console.c (w32_sys_ring_bell, Fset_message_beep): Move to | ||
| 5944 | w32fns.c. w32console.c is WINDOWSNT-only. | ||
| 5945 | |||
| 5946 | * w32fns.c: Include cygw32.h or w32.h depending on CYGWIN; more | ||
| 5947 | NTGUI_UNICODE tweaks. (See above.) Change _snprintf to the more | ||
| 5948 | POSIXy alternative. | ||
| 5949 | (faked_key, sysinfo_cache, osinfo_cahce, syspage_mask) | ||
| 5950 | (w32_major_version, w32_minor_version, w32_build_number) | ||
| 5951 | (os_subtype, sound_type): Define here | ||
| 5952 | (w32_defined_color): Make color parameter const for consistency | ||
| 5953 | with other _defined_color functions. | ||
| 5954 | (w32_createwindow): Unconditionally call w32_init_class instead of | ||
| 5955 | doing so only when hprevinst is non-NULL. Plumbing hprevinst | ||
| 5956 | through the code is complex and unnecessary because class | ||
| 5957 | registration is practically free. | ||
| 5958 | (w32_name_of_message): New EMACSDEBUG-only function. | ||
| 5959 | (Fset_message_beep): Move here | ||
| 5960 | (Fx_open_connection): Require that the display name for Windows be | ||
| 5961 | "w32" for consistency, emacsclient disambiguation, and maybe, one | ||
| 5962 | day, multi-window-system support. | ||
| 5963 | (file_dialog_callback): NTGUI_UNICODE changes; encode and decode | ||
| 5964 | Cygwin files for W32 GUI facilities, since these clearly don't | ||
| 5965 | expect Cygwin names. | ||
| 5966 | (_DebPrint): Define. | ||
| 5967 | (w32_strerror, w32_console_toggle_lock_key, w32_kbd_mods_to_emacs) | ||
| 5968 | (w32_kbd_patch_key, w32_sys_ring_bell): Move here. | ||
| 5969 | (Ssystem_move_file_to_trash): Define only for native WINDOWSNT. | ||
| 5970 | (w32_last_error): Remove. | ||
| 5971 | |||
| 5972 | * w32font.c: Define _strlwr to strlwr for non-WINDOWSNT builds. | ||
| 5973 | |||
| 5974 | * w32heap.c (syspage_mask): Declare here. | ||
| 5975 | (cache_system_info): Remove. | ||
| 5976 | |||
| 5977 | * w32inevt.c (faked_key): Define globally, not statically. | ||
| 5978 | (w32_kbd_mods_to_emacs, w32_kbd_patch_key, faked_key) | ||
| 5979 | (w32_console_toggle_lock_key): Move to w32fns.c. | ||
| 5980 | |||
| 5981 | * w32menu.c: Include setjmp.h. NTGUI_UNICODE changes throughout. | ||
| 5982 | |||
| 5983 | * w32proc.c (_DebPrint): Move to w32fns.c. | ||
| 5984 | * w32select.c: Include string.h, stdio.h for Cygwin. | ||
| 5985 | * w32select.h: New File. | ||
| 5986 | |||
| 5987 | * w32term.c: Include io.h for non-CYGWIN builds; needed for | ||
| 5988 | get_osfhandle. | ||
| 5989 | (w32_message_fd): New variable. Under Cygwin, holds the file | ||
| 5990 | descriptor the system used to tell us about pending thread | ||
| 5991 | messages. | ||
| 5992 | |||
| 5993 | (w32_init_term): Remove incorrect calls to fcntl and init_sigio | ||
| 5994 | that prevented compilation under non-WINDOWSNT systems. | ||
| 5995 | |||
| 5996 | (w32_initialize): Open /dev/windows and assign it to | ||
| 5997 | w32_message_fd. Provide w32 feature. | ||
| 5998 | |||
| 5999 | * w32term.h: Include frame.h, atimer.h. Declare various frame functions. | ||
| 6000 | (WM_EMACS_INPUT_READY): add. | ||
| 6001 | (prepend_msg, w32_message_fd): Declare globally. | ||
| 6002 | |||
| 6003 | * w32xfns.c: | ||
| 6004 | (keyboard_handle): Use only when WINDOWSNT. | ||
| 6005 | (notify_msg_ready): New function. Posts a message to the main | ||
| 6006 | thread's message queue under CYGWIN, which wakes up the main | ||
| 6007 | thread from select(2) by making the /dev/windows file descriptor | ||
| 6008 | ready. Under WINDOWSNT, it sets an event the same way the old | ||
| 6009 | code did. | ||
| 6010 | |||
| 6011 | (post, prepend_msg): Actually call notify_msg_ready instead of | ||
| 6012 | setting the input event directly. | ||
| 6013 | |||
| 6014 | 2012-10-07 Eli Zaretskii <eliz@gnu.org> | ||
| 6015 | |||
| 6016 | * ralloc.c (relinquish): If a heap is ready to be relinquished, | ||
| 6017 | but it still has blocs in it, don't return it to the system, | ||
| 6018 | instead of aborting. (Bug#12402) | ||
| 6019 | |||
| 6020 | 2012-10-07 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6021 | |||
| 6022 | * nsterm.m (ns_dumpglyphs_image): Only draw slice of image (Bug#12506). | ||
| 6023 | |||
| 6024 | * nsterm.m (ns_update_auto_hide_menu_bar): Remove defintion of | ||
| 6025 | MAC_OS_X_VERSION_10_6. | ||
| 6026 | (syms_of_nsterm): Remove comment about Panther and above for | ||
| 6027 | ns-antialias-text. | ||
| 6028 | * nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove. | ||
| 6029 | (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4. | ||
| 6030 | (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3. | ||
| 6031 | |||
| 6032 | * nsselect.m (ns_string_from_pasteboard): Remove check for >= | ||
| 6033 | MAC_OS_X_VERSION_10_4. | ||
| 6034 | |||
| 6035 | * nsmenu.m (fillWithWidgetValue:): Remove code for < | ||
| 6036 | MAC_OS_X_VERSION_10_2. | ||
| 6037 | |||
| 6038 | * nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger. | ||
| 6039 | |||
| 6040 | * nsfns.m (Fns_list_services): Remove comment and check for OSX < 10.4. | ||
| 6041 | (ns_do_applescript): Remove check for >= MAC_OS_X_VERSION_10_4. | ||
| 6042 | |||
| 6043 | * nsterm.m (ns_in_resize): Remove (Bug#12479). | ||
| 6044 | (ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove. | ||
| 6045 | (ns_clear_frame, sendEvent, windowDidResize, drawRect:): | ||
| 6046 | Remove ns_in_resize check. | ||
| 6047 | (ns_clear_frame_area): Remove resize handle code. | ||
| 6048 | |||
| 6049 | * nsfns.m (ns_in_resize): Remove. | ||
| 6050 | (x_set_icon_name, ns_set_name, ns_set_name_as_filename): | ||
| 6051 | Remove ns_in_resize check. | ||
| 6052 | |||
| 6053 | 2012-10-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6054 | |||
| 6055 | Improve sys_siglist detection. | ||
| 6056 | * sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's | ||
| 6057 | defined as a macro, as is done in Solaris. | ||
| 6058 | (sys_siglist_entries): New macro. | ||
| 6059 | (save_strsignal): Use it. | ||
| 6060 | * syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify | ||
| 6061 | GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection. | ||
| 6062 | |||
| 6063 | 2012-10-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6064 | |||
| 6065 | * nsfns.m (Fx_create_frame): Call x_default_parameter with | ||
| 6066 | fullscreen/Fullscreen. | ||
| 6067 | |||
| 6068 | * nsterm.h (EmacsView): Rename tbar_height to tibar_height. | ||
| 6069 | tobar_height is new. | ||
| 6070 | |||
| 6071 | * nsterm.m (x_make_frame_visible): Check for fullscreen. | ||
| 6072 | (ns_fullscreen_hook): Activate old style fullscreen with a timer. | ||
| 6073 | (ns_term_init): Set activateIgnoringOtherApps if old style fullscreen. | ||
| 6074 | (windowDidResize:): Check for correct window if old style fullscreen. | ||
| 6075 | Capitalize word in comment. Remove incorrect comment. | ||
| 6076 | (initFrameFromEmacs:): tbar_height renamed tibar_height. | ||
| 6077 | (windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix | ||
| 6078 | error in drawing background. | ||
| 6079 | (toggleFullScreen:): Remove comment. Rearrange calls. | ||
| 6080 | Set toolbar values to zero, save old height in tobar_height. | ||
| 6081 | Restore tool bar height when leaving fullscreen. | ||
| 6082 | (canBecomeMainWindow): New function. | ||
| 6083 | |||
| 6084 | 2012-10-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6085 | |||
| 6086 | * keyboard.c (read_char): Remove unnecessary 'volatile's and label. | ||
| 6087 | |||
| 6088 | 2012-10-05 Eli Zaretskii <eliz@gnu.org> | ||
| 6089 | |||
| 6090 | * w32proc.c (stop_timer_thread): Fix declaration of 'err'. | ||
| 6091 | |||
| 6092 | * w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so | ||
| 6093 | that time stamps of directories could also be changed. | ||
| 6094 | Don't request the too broad GENERIC_WRITE, only the more restrictive | ||
| 6095 | FILE_WRITE_ATTRIBUTES access rights. | ||
| 6096 | |||
| 6097 | * fileio.c (Fset_file_times): Special-case ignoring errors for | ||
| 6098 | directories only on MSDOS, not on MS-Windows. | ||
| 6099 | |||
| 6100 | 2012-10-05 Ikumi Keita <ikumi@ikumi.que.jp> (tiny change) | ||
| 6101 | |||
| 6102 | * minibuf.c (Fcompleting_read): Doc fix. (Bug#12555) | ||
| 6103 | |||
| 6104 | 2012-10-04 Eli Zaretskii <eliz@gnu.org> | ||
| 6105 | |||
| 6106 | * w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to | ||
| 6107 | see whether CreateFile failed. | ||
| 6108 | |||
| 6109 | 2012-10-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6110 | |||
| 6111 | * profiler.c (handle_profiler_signal): Inhibit pending signals too, | ||
| 6112 | to avoid similar races. | ||
| 6113 | * keyboard.c (pending_signals): Now bool, not int. | ||
| 6114 | |||
| 6115 | Port timers to OpenBSD, plus check for timer failures. | ||
| 6116 | OpenBSD problem reported by Han Boetes. | ||
| 6117 | * profiler.c (setup_cpu_timer): Check for failure of timer_settime | ||
| 6118 | and/or setitimer. | ||
| 6119 | (Fprofiler_cpu_stop): Don't assume HAVE_SETITIMER. | ||
| 6120 | * syssignal.h (HAVE_ITIMERSPEC): New macro. This is for platforms | ||
| 6121 | like OpenBSD, which has timer_settime but does not declare it. | ||
| 6122 | OpenBSD does not define SIGEV_SIGNAL, so use that when deciding | ||
| 6123 | whether to use itimerspec-related primitives. All uses of | ||
| 6124 | HAVE_TIMER_SETTIME replaced with HAVE_ITIMERSPEC. | ||
| 6125 | |||
| 6126 | 2012-10-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6127 | |||
| 6128 | * profiler.c (handle_profiler_signal): Fix a malloc race | ||
| 6129 | that caused Emacs to hang on Fedora 17 when profiling Lisp. | ||
| 6130 | |||
| 6131 | 2012-10-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6132 | |||
| 6133 | * nsterm.m (windowDidEnterFullScreen): Remove fprintf. | ||
| 6134 | |||
| 6135 | 2012-10-02 Eli Zaretskii <eliz@gnu.org> | ||
| 6136 | |||
| 6137 | * w32proc.c (sys_wait): Declare 'signame' 'const char *', to be | ||
| 6138 | consistent with the change in return value of 'safe_strsignal'. | ||
| 6139 | |||
| 6140 | 2012-10-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6141 | |||
| 6142 | Prefer plain 'static' to 'static inline' (Bug#12541). | ||
| 6143 | * bidi.c (bidi_get_type, bidi_check_type, bidi_get_category) | ||
| 6144 | (bidi_set_sor_type, bidi_push_embedding_level) | ||
| 6145 | (bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it) | ||
| 6146 | (bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state) | ||
| 6147 | (bidi_cache_search, bidi_cache_ensure_space) | ||
| 6148 | (bidi_cache_iterator_state, bidi_cache_find) | ||
| 6149 | (bidi_peek_at_next_level, bidi_set_paragraph_end) | ||
| 6150 | (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char) | ||
| 6151 | (bidi_explicit_dir_char, bidi_resolve_neutral_1): | ||
| 6152 | Now 'static', not 'static inline'. | ||
| 6153 | |||
| 6154 | Count overruns when profiling; change units to ns. | ||
| 6155 | * profiler.c (handle_profiler_signal): Count sampling intervals, not ms. | ||
| 6156 | Give extra weight to samples after overruns, to attempt to count | ||
| 6157 | the time more accurately. | ||
| 6158 | (setup_cpu_timer): Change sampling interval units from ms to ns, since | ||
| 6159 | the underlying primitives nominally do ns. | ||
| 6160 | (Fprofiler_cpu_start): Document the change. Mention that | ||
| 6161 | the sampling intervals are only approximate. | ||
| 6162 | |||
| 6163 | 2012-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6164 | |||
| 6165 | * frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP. | ||
| 6166 | |||
| 6167 | * coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special | ||
| 6168 | case for the special 0 coding-system. | ||
| 6169 | |||
| 6170 | * buffer.c (Fset_buffer_multibyte): Signal an error instead of widening. | ||
| 6171 | (Fmake_overlay): Remove redundant tests. | ||
| 6172 | (fix_start_end_in_overlays): Remove redundant recentering. | ||
| 6173 | |||
| 6174 | 2012-10-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 6175 | |||
| 6176 | * makefile.w32-in ($(BLD)/alloc.$(O), $(BLD)/gmalloc.$(O)): | ||
| 6177 | Update dependencies. | ||
| 6178 | |||
| 6179 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6180 | |||
| 6181 | Fix a malloc race condition involving strsignal. | ||
| 6182 | A signal can arrive in the middle of a malloc, and Emacs's signal | ||
| 6183 | handler can invoke strsignal, which can invoke malloc, which is | ||
| 6184 | not portable. This race condition bug makes Emacs hang on GNU/Linux. | ||
| 6185 | Fix it by altering the signal handler so that it does not invoke | ||
| 6186 | strsignal. | ||
| 6187 | * emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal. | ||
| 6188 | * process.c (status_message): Use const pointer, in case strsignal | ||
| 6189 | is #defined to safe_strsignal. | ||
| 6190 | * sysdep.c (sys_siglist, init_signals): Always define and | ||
| 6191 | initialize a substitute sys_siglist if the system does not define | ||
| 6192 | one, even if HAVE_STRSIGNAL. | ||
| 6193 | (safe_strsignal): Rename from strsignal. Always define, | ||
| 6194 | using sys_siglist. Return a const pointer. | ||
| 6195 | * syssignal.h (safe_strsignal): New decl. | ||
| 6196 | (strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal. | ||
| 6197 | |||
| 6198 | 2012-10-01 Eli Zaretskii <eliz@gnu.org> | ||
| 6199 | |||
| 6200 | * w32proc.c (timer_loop): Fix code that waits for timer | ||
| 6201 | expiration, to avoid high CPU usage. | ||
| 6202 | |||
| 6203 | 2012-10-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6204 | |||
| 6205 | * fns.c (check_hash_table, get_key_arg, maybe_resize_hash_table) | ||
| 6206 | (sweep_weak_table): Remove redundant prototypes. | ||
| 6207 | |||
| 6208 | 2012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com> | ||
| 6209 | |||
| 6210 | * emacs.c: Move the inclusion of TERM_HEADER after including | ||
| 6211 | windows.h on WINDOWSNT. This avoids compilation problems with | ||
| 6212 | MSVC. | ||
| 6213 | |||
| 6214 | 2012-10-01 Eli Zaretskii <eliz@gnu.org> | ||
| 6215 | |||
| 6216 | * unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET) | ||
| 6217 | (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses. | ||
| 6218 | (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *', | ||
| 6219 | as the previous version used 'void *'. | ||
| 6220 | |||
| 6221 | * ralloc.c (ROUNDUP): Fix last change. | ||
| 6222 | (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type | ||
| 6223 | 'size_t'. | ||
| 6224 | |||
| 6225 | * w32proc.c <disable_itimers>: New static flag. | ||
| 6226 | (init_timers): Initialize it to zero, after creating the critical | ||
| 6227 | sections used by the timer threads. | ||
| 6228 | (term_timers): Set to 1 before deleting the critical sections. | ||
| 6229 | (getitimer, setitimer): If disable_itimers is non-zero, return an | ||
| 6230 | error indication without doing anything. Reported by Fabrice | ||
| 6231 | Popineau <fabrice.popineau@supelec.fr> as part of bug#12544. | ||
| 6232 | (alarm) [HAVE_SETITIMER]: Be more conformant to the expected | ||
| 6233 | return results. | ||
| 6234 | [!HAVE_SETITIMER]: Behave as the previous version that didn't | ||
| 6235 | support timers. | ||
| 6236 | |||
| 6237 | * emacs.c (shut_down_emacs) [WINDOWSNT]: Move the call to | ||
| 6238 | term_ntproc after all the other bookkeeping, to get timers working | ||
| 6239 | as long as possible. | ||
| 6240 | |||
| 6241 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6242 | |||
| 6243 | * xdisp.c (syms_of_xdisp): Default message-log-max to 1000, not 100. | ||
| 6244 | Suggested by Juri Linkov in | ||
| 6245 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00821.html>. | ||
| 6246 | |||
| 6247 | Prefer plain 'static' to 'static inline' (Bug#12541). | ||
| 6248 | With static functions, modern compilers inline pretty well by | ||
| 6249 | themselves; advice from programmers often hurts as much as it helps. | ||
| 6250 | On my host (x86-64, Fedora 17, GCC 4.7.2, default 'configure'), | ||
| 6251 | this change shrinks the text size of the Emacs executable by 1.1% | ||
| 6252 | without affecting CPU significantly in my benchmark. | ||
| 6253 | * alloc.c (mem_find, live_string_p, live_cons_p, live_symbol_p) | ||
| 6254 | (live_float_p, live_misc_p, live_vector_p, live_buffer_p) | ||
| 6255 | (mark_maybe_object, mark_maybe_pointer, bounded_number): | ||
| 6256 | * buffer.c (bset_abbrev_mode, bset_abbrev_table) | ||
| 6257 | (bset_auto_fill_function, bset_auto_save_file_format) | ||
| 6258 | (bset_auto_save_file_name, bset_backed_up, bset_begv_marker) | ||
| 6259 | (bset_bidi_display_reordering, bset_buffer_file_coding_system) | ||
| 6260 | (bset_cache_long_line_scans, bset_case_fold_search) | ||
| 6261 | (bset_ctl_arrow, bset_cursor_in_non_selected_windows) | ||
| 6262 | (bset_cursor_type, bset_display_table, bset_extra_line_spacing) | ||
| 6263 | (bset_file_format, bset_file_truename, bset_fringe_cursor_alist) | ||
| 6264 | (bset_fringe_indicator_alist, bset_fringes_outside_margins) | ||
| 6265 | (bset_header_line_format, bset_indicate_buffer_boundaries) | ||
| 6266 | (bset_indicate_empty_lines, bset_invisibility_spec) | ||
| 6267 | (bset_left_fringe_width, bset_major_mode, bset_mark) | ||
| 6268 | (bset_minor_modes, bset_mode_line_format, bset_mode_name) | ||
| 6269 | (bset_name, bset_overwrite_mode, bset_pt_marker) | ||
| 6270 | (bset_right_fringe_width, bset_save_length) | ||
| 6271 | (bset_scroll_bar_width, bset_scroll_down_aggressively) | ||
| 6272 | (bset_scroll_up_aggressively, bset_selective_display) | ||
| 6273 | (bset_selective_display_ellipses, bset_vertical_scroll_bar_type) | ||
| 6274 | (bset_word_wrap, bset_zv_marker, set_buffer_overlays_before) | ||
| 6275 | (set_buffer_overlays_after): | ||
| 6276 | * category.c (bset_category_table): | ||
| 6277 | * charset.c (read_hex): | ||
| 6278 | * coding.c (produce_composition, produce_charset) | ||
| 6279 | (handle_composition_annotation, handle_charset_annotation) | ||
| 6280 | (char_encodable_p): | ||
| 6281 | * dispnew.c (swap_glyph_pointers, copy_row_except_pointers) | ||
| 6282 | (assign_row, set_frame_matrix_frame, make_current) | ||
| 6283 | (add_row_entry): | ||
| 6284 | * eval.c (set_specpdl_symbol, set_specpdl_old_value): | ||
| 6285 | * fns.c (maybe_resize_hash_table): | ||
| 6286 | * frame.c (fset_buffer_predicate, fset_minibuffer_window): | ||
| 6287 | * gmalloc.c (register_heapinfo): | ||
| 6288 | * image.c (lookup_image_type): | ||
| 6289 | * intervals.c (set_interval_object, set_interval_left) | ||
| 6290 | (set_interval_right, copy_interval_parent, rotate_right) | ||
| 6291 | (rotate_left, balance_possible_root_interval): | ||
| 6292 | * keyboard.c (kset_echo_string, kset_kbd_queue) | ||
| 6293 | (kset_keyboard_translate_table, kset_last_prefix_arg) | ||
| 6294 | (kset_last_repeatable_command, kset_local_function_key_map) | ||
| 6295 | (kset_overriding_terminal_local_map, kset_real_last_command) | ||
| 6296 | (kset_system_key_syms, clear_event, set_prop): | ||
| 6297 | * lread.c (digit_to_number): | ||
| 6298 | * marker.c (attach_marker, live_buffer, set_marker_internal): | ||
| 6299 | * nsterm.m (ns_compute_glyph_string_overhangs): | ||
| 6300 | * process.c (pset_buffer, pset_command) | ||
| 6301 | (pset_decode_coding_system, pset_decoding_buf) | ||
| 6302 | (pset_encode_coding_system, pset_encoding_buf, pset_filter) | ||
| 6303 | (pset_log, pset_mark, pset_name, pset_plist, pset_sentinel) | ||
| 6304 | (pset_status, pset_tty_name, pset_type, pset_write_queue): | ||
| 6305 | * syntax.c (bset_syntax_table, dec_bytepos): | ||
| 6306 | * terminal.c (tset_param_alist): | ||
| 6307 | * textprop.c (interval_has_some_properties) | ||
| 6308 | (interval_has_some_properties_list): | ||
| 6309 | * window.c (wset_combination_limit, wset_dedicated) | ||
| 6310 | (wset_display_table, wset_hchild, wset_left_fringe_width) | ||
| 6311 | (wset_left_margin_cols, wset_new_normal, wset_new_total) | ||
| 6312 | (wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm) | ||
| 6313 | (wset_right_fringe_width, wset_right_margin_cols) | ||
| 6314 | (wset_scroll_bar_width, wset_start, wset_temslot, wset_vchild) | ||
| 6315 | (wset_vertical_scroll_bar_type, wset_window_parameters): | ||
| 6316 | * xdisp.c (wset_base_line_number, wset_base_line_pos) | ||
| 6317 | (wset_column_number_displayed, wset_region_showing) | ||
| 6318 | (window_box_edges, run_window_scroll_functions) | ||
| 6319 | (append_glyph_string_lists, prepend_glyph_string_lists) | ||
| 6320 | (append_glyph_string, set_glyph_string_background_width) | ||
| 6321 | (append_glyph, append_composite_glyph) | ||
| 6322 | (take_vertical_position_into_account): | ||
| 6323 | * xfaces.c (x_create_gc, x_free_gc, merge_face_vectors) | ||
| 6324 | (face_attr_equal_p, lface_equal_p, hash_string_case_insensitive) | ||
| 6325 | (lface_hash, lface_same_font_attributes_p, lookup_face): | ||
| 6326 | * xml.c (libxml2_loaded_p): | ||
| 6327 | * xterm.c (x_set_mode_line_face_gc, x_set_glyph_string_gc) | ||
| 6328 | (x_set_glyph_string_clipping, x_clear_glyph_string_rect): | ||
| 6329 | Now 'static', not 'static inline'. | ||
| 6330 | |||
| 6331 | * bidi.c: Tune. | ||
| 6332 | (bidi_copy_it): Do the whole copy with a single memcpy. | ||
| 6333 | (bidi_char_at_pos): Merge the two STRING_CHAR calls into one. | ||
| 6334 | |||
| 6335 | Revert the FOLLOW-SYMLINKS change for file-attributes. | ||
| 6336 | Doing it right would require several changes to Tramp, and there's | ||
| 6337 | not enough time to get that tested before the freeze today. | ||
| 6338 | * dired.c (directory_files_internal, Ffile_attributes): | ||
| 6339 | Undo last change. | ||
| 6340 | |||
| 6341 | * frame.c (x_report_frame_params): Port better to wider ints. | ||
| 6342 | Do not assume that EMACS_UINT is the same width as uprintmax_t, | ||
| 6343 | or that pointers can be printed in 15 decimal digits. | ||
| 6344 | Avoid GCC warnings if EMACS_UINT is wider than a pointer. | ||
| 6345 | |||
| 6346 | 2012-09-30 Fabrice Popineau <fabrice.popineau@supelec.fr> | ||
| 6347 | |||
| 6348 | Support x64 build on MS-Windows. | ||
| 6349 | * w32term.h (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK): Define for x64. | ||
| 6350 | (SET_SCROLL_BAR_W32_WINDOW): Cast ID to intptr_t, for | ||
| 6351 | compatibility with x64. | ||
| 6352 | (x_get_focus_frame): Add prototype. | ||
| 6353 | |||
| 6354 | * w32term.c (w32_draw_underwave): Don't use GCC extensions for | ||
| 6355 | defining an XRectangle structure. | ||
| 6356 | |||
| 6357 | * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer | ||
| 6358 | arithmetics for compatibility with x64. | ||
| 6359 | |||
| 6360 | * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for | ||
| 6361 | compatibility with x64. | ||
| 6362 | |||
| 6363 | * w32heap.h: Adjust prototypes and declarations. | ||
| 6364 | |||
| 6365 | * w32heap.c (RVA_TO_PTR, allocate_heap, sbrk, init_heap) | ||
| 6366 | (round_heap): Use DWORD_PTR, ptrdiff_t and size_t instead of | ||
| 6367 | DWORD, long, and unsigned long, for compatibility with x64. | ||
| 6368 | (allocate_heap) [_WIN64]: Reserve 32GB of memory. | ||
| 6369 | (sbrk): Argument is now of type ptrdiff_t. | ||
| 6370 | |||
| 6371 | * w32fns.c (HMONITOR): Condition declaration on _WIN32_WINNT being | ||
| 6372 | less than 0x0500. | ||
| 6373 | (w32_msg_pump): Use WPARAM type for 'result'. | ||
| 6374 | |||
| 6375 | * w32.c (init_environment, get_emacs_configuration): Support AMD64 | ||
| 6376 | architecture. | ||
| 6377 | (init_ntproc): Cast arguments of _open_osfhandle to intptr_t, for | ||
| 6378 | compatibility with x64. | ||
| 6379 | |||
| 6380 | * vm-limit.c (lim_data): Now size_t. | ||
| 6381 | (check_memory_limits): Adjust prototypes of real_morecore and | ||
| 6382 | __morecore to receive argument of type ptrdiff_t. Use size_t for | ||
| 6383 | five_percent and data_size. | ||
| 6384 | |||
| 6385 | * unexw32.c: Use DWORD_PTR instead of DWORD for file-scope | ||
| 6386 | variables, for compatibility with x64. | ||
| 6387 | (rva_to_section, offset_to_section, relocate_offset) | ||
| 6388 | (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET) | ||
| 6389 | (PTR_TO_RVA, RVA_TO_PTR, OFFSET_TO_PTR, get_section_info) | ||
| 6390 | (copy_executable_and_dump_data): Use DWORD_PTR instead of DWORD | ||
| 6391 | for compatibility with x64. | ||
| 6392 | |||
| 6393 | * sysdep.c (STDERR_FILENO): Define if not already defined. | ||
| 6394 | |||
| 6395 | * ralloc.c (real_morecore): Argument type is now ptrdiff_t. | ||
| 6396 | (__morecore): Argument type is now ptrdiff_t. | ||
| 6397 | (ROUNDUP, MEM_ROUNDUP): Use size_t instead of 'unsigned long'. | ||
| 6398 | (relinquish): Use ptrdiff_t type for 'excess'. | ||
| 6399 | (r_alloc_sbrk): Argument type is now ptrdiff_t. | ||
| 6400 | |||
| 6401 | * makefile.w32-in (HEAPSIZE): Get value from EMACS_HEAPSIZE. | ||
| 6402 | (bootstrap-temacs-CMD, bootstrap-temacs-SH): Use $(EMACS_PURESIZE) | ||
| 6403 | instead of a literal number. | ||
| 6404 | |||
| 6405 | * gmalloc.c [WINDOWSNT]: Include w32heap.h. | ||
| 6406 | (min): Define only if not already defined. | ||
| 6407 | |||
| 6408 | * frame.c (x_report_frame_params): Use EMACS_UINT for the return | ||
| 6409 | value of FRAME_X_WINDOW, to fit a 64-bit pointer on 64-bit Windows | ||
| 6410 | hosts. | ||
| 6411 | |||
| 6412 | * image.c (x_bitmap_pixmap): Return ptrdiff_t, not int, since | ||
| 6413 | 'bitmaps' is a pointer. | ||
| 6414 | |||
| 6415 | * dispextern.h (x_bitmap_pixmap): Adjust prototype. | ||
| 6416 | |||
| 6417 | * alloc.c (gdb_make_enums_visible): Now conditional on __GNUC__. | ||
| 6418 | |||
| 6419 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6420 | |||
| 6421 | file-attributes has a new optional arg FOLLOW-SYMLINKS. | ||
| 6422 | * dired.c (directory_files_internal, Ffile_attributes): | ||
| 6423 | New arg follow_symlinks. All uses changed. | ||
| 6424 | |||
| 6425 | 2012-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6426 | |||
| 6427 | * .gdbinit (xbacktrace): Adjust to recent "struct backtrace" change. | ||
| 6428 | |||
| 6429 | 2012-09-30 Eli Zaretskii <eliz@gnu.org> | ||
| 6430 | |||
| 6431 | Support atimers and CPU profiler via profile.c on MS-Windows. | ||
| 6432 | * w32proc.c (sig_mask, crit_sig): New static variables. | ||
| 6433 | (sys_signal): Support SIGALRM and SIGPROF. | ||
| 6434 | (sigemptyset, sigaddset, sigfillset, sigprocmask) | ||
| 6435 | (pthread_sigmask, setpgrp): Move here from w32.c. sigaddset, | ||
| 6436 | sigfillset, and sigprocmask are no longer no-ops. | ||
| 6437 | (sigismember): New function. | ||
| 6438 | (struct itimer_data): New definition. | ||
| 6439 | (ticks_now, real_itimer, prof_itimer, clocks_min, crit_real) | ||
| 6440 | (crit_prof): New static variables. | ||
| 6441 | (MAX_SINGLE_SLEEP): New definition. | ||
| 6442 | (timer_loop, stop_timer_thread, term_timers, init_timers) | ||
| 6443 | (start_timer_thread, getitimer, setitimer): New functions. | ||
| 6444 | (alarm): No longer a no-op, calls setitimer. | ||
| 6445 | |||
| 6446 | * w32.c (term_ntproc): Call term_timers. | ||
| 6447 | (init_ntproc): Make sure all signals are unblocked at startup, to | ||
| 6448 | erase any traces of dumping. Call init_timers. | ||
| 6449 | |||
| 6450 | * w32fns.c (hourglass_timer, HOURGLASS_ID): Remove. | ||
| 6451 | Windows-specific code to display the hourglass mouse pointer is no | ||
| 6452 | longer used. | ||
| 6453 | (w32_wnd_proc): Remove code that handled the WM_TIMER message due | ||
| 6454 | to hourglass timer expiration. | ||
| 6455 | (start_hourglass, cancel_hourglass, DEFAULT_HOURGLASS_DELAY): | ||
| 6456 | Remove, no longer used. | ||
| 6457 | (w32_note_current_window, show_hourglass, hide_hourglass): | ||
| 6458 | New functions, in support of hourglass cursor display similar to other | ||
| 6459 | window systems. | ||
| 6460 | (syms_of_w32fns): Don't initialize hourglass_timer. | ||
| 6461 | |||
| 6462 | * xdisp.c (start_hourglass, cancel_hourglass): Now used on | ||
| 6463 | WINDOWSNT as well. | ||
| 6464 | (start_hourglass) [WINDOWSNT]: Call w32_note_current_window. | ||
| 6465 | |||
| 6466 | * w32.h (init_timers, term_timers): Add prototypes. | ||
| 6467 | |||
| 6468 | 2012-09-30 Kenichi Handa <handa@gnu.org> | ||
| 6469 | |||
| 6470 | * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention | ||
| 6471 | to the buffer relocation which may be caused by ccl_driver. | ||
| 6472 | |||
| 6473 | 2012-09-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6474 | |||
| 6475 | * xfns.c (Fx_file_dialog): Update comment. | ||
| 6476 | |||
| 6477 | * w32fns.c (Fx_file_dialog): Update comment. | ||
| 6478 | |||
| 6479 | * nsfns.m (Fns_read_file_name): Add argument DIR_ONLY_P. | ||
| 6480 | Initialize panel name field if OSX >= 10.6. | ||
| 6481 | |||
| 6482 | * fileio.c (Fnext_read_file_uses_dialog_p): Add HAVE_NS. | ||
| 6483 | |||
| 6484 | * nsfns.m (ns_frame_parm_handlers): Add x_set_fullscreen. | ||
| 6485 | |||
| 6486 | * nsterm.m (NEW_STYLE_FS): New define. | ||
| 6487 | (ns_fullscreen_hook, windowWillEnterFullScreen) | ||
| 6488 | (windowDidEnterFullScreen, windowWillExitFullScreen) | ||
| 6489 | (windowDidExitFullScreen, toggleFullScreen, handleFS) | ||
| 6490 | (setFSValue): New functions. | ||
| 6491 | (EmacsFSWindow): New implementation. | ||
| 6492 | (canBecomeKeyWindow): New function for EmacsFSWindow. | ||
| 6493 | (ns_create_terminal): Set fullscreen_hook to ns_fullscreen_hook. | ||
| 6494 | (dealloc): Release nonfs_window if in fullscreen. | ||
| 6495 | (updateFrameSize:): Call windowDidMove to update top/left. | ||
| 6496 | (windowWillResize:toSize:): Check if frame is still maximized. | ||
| 6497 | (initFrameFromEmacs:): Initialize fs_state, fs_before_fs, | ||
| 6498 | next_maximized, maximized_width, maximized_height and nonfs_window. | ||
| 6499 | Call setCollectionBehavior if NEW_STYLE_FS. Initialize bwidth and | ||
| 6500 | tbar_height. | ||
| 6501 | (windowWillUseStandardFrame:defaultFrame:): Update frame parameter | ||
| 6502 | fullscreen. Set maximized_width/height. Act on next_maximized. | ||
| 6503 | |||
| 6504 | * nsterm.h (MAC_OS_X_VERSION_10_7, MAC_OS_X_VERSION_10_8): New. | ||
| 6505 | (EmacsView): Add variables for fullscreen. | ||
| 6506 | (handleFS, setFSValue, toggleFullScreen): New in EmacsView. | ||
| 6507 | (EmacsFSWindow): New interface for fullscreen. | ||
| 6508 | |||
| 6509 | 2012-09-30 Juanma Barranquero <lekktu@gmail.com> | ||
| 6510 | |||
| 6511 | * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. | ||
| 6512 | |||
| 6513 | 2012-09-30 Chong Yidong <cyd@gnu.org> | ||
| 6514 | |||
| 6515 | * fns.c (Frandom): Doc fix. | ||
| 6516 | |||
| 6517 | 2012-09-30 Martin Rudalics <rudalics@gmx.at> | ||
| 6518 | |||
| 6519 | * window.c (Vwindow_combination_limit): New default value. | ||
| 6520 | (Qwindow_size): New symbol replacing Qtemp_buffer_resize. | ||
| 6521 | |||
| 6522 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6523 | |||
| 6524 | * syssignal.h (PROFILER_CPU_SUPPORT): Don't define if PROFILING. | ||
| 6525 | Suggested by Eli Zaretskii in | ||
| 6526 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00811.html>. | ||
| 6527 | |||
| 6528 | 2012-09-30 Eli Zaretskii <eliz@gnu.org> | ||
| 6529 | |||
| 6530 | * profiler.c (Fprofiler_cpu_stop): Use timer_settime only if | ||
| 6531 | HAVE_TIMER_SETTIME is defined. | ||
| 6532 | |||
| 6533 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6534 | |||
| 6535 | Profiler improvements: more-accurate timers, overflow checks. | ||
| 6536 | * profiler.c: Don't include stdio.h, limits.h, sys/time.h, | ||
| 6537 | signal.h, setjmp.h. Include systime.h instead. | ||
| 6538 | (saturated_add): New function. | ||
| 6539 | (record_backtrace, current_sample_interval): Use EMACS_INT, not size_t. | ||
| 6540 | (record_backtrace, handle_profiler_signal): Saturate on fixnum overflow. | ||
| 6541 | (profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]: | ||
| 6542 | New static vars. | ||
| 6543 | (enum profiler_cpu_running): New enum. | ||
| 6544 | (profiler_cpu_running): Now of that enum type, not bool. | ||
| 6545 | All uses changed to store the new value. | ||
| 6546 | (handle_profiler_signal): Rename from sigprof_handler_1, | ||
| 6547 | for consistency with other handlers. Do not check whether | ||
| 6548 | cpu_log is a hash-table if garbage collecting, since it | ||
| 6549 | doesn't matter in that case. | ||
| 6550 | (deliver_profiler_signal): Rename from sigprof_handler, | ||
| 6551 | for consistency with other handlers. | ||
| 6552 | (setup_cpu_timer): New function, with much of what used to be in | ||
| 6553 | Fprofiler_cpu_start. Check for out-of-range argument. | ||
| 6554 | Prefer timer_settime if available, and prefer | ||
| 6555 | thread cputime clocks, then process cputime clocks, then | ||
| 6556 | monotonic clocks, to the old realtime clock. Use make_timeval | ||
| 6557 | to round more-correctly when falling back to setitimer. | ||
| 6558 | (Fprofiler_cpu_start): Use it. | ||
| 6559 | (Fprofiler_cpu_stop): Prefer timer_settime if available. | ||
| 6560 | Don't assume that passing NULL as the 2nd argument of setitimer | ||
| 6561 | is the same as passing a pointer to all-zero storage. | ||
| 6562 | Ignore SIGPROF afterwards. | ||
| 6563 | (malloc_probe): Saturate at MOST_POSITIVE_FIXNUM. | ||
| 6564 | * sysdep.c (emacs_sigaction_init): Also mask out SIGPROF in | ||
| 6565 | non-fatal signal handlers. Ignore SIGPROF on startup. | ||
| 6566 | * syssignal.h (PROFILER_CPU_SUPPORT): Define this macro here, not | ||
| 6567 | in profiler.c, since sysdep.c now uses it. | ||
| 6568 | |||
| 6569 | * sysdep.c (handle_fatal_signal): Bump backtrace size to 40. | ||
| 6570 | Suggested by Eli Zaretskii in | ||
| 6571 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00796.html>. | ||
| 6572 | |||
| 6573 | 2012-09-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 6574 | |||
| 6575 | * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. | ||
| 6576 | |||
| 6577 | 2012-09-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6578 | |||
| 6579 | * lisp.h (struct backtrace): Remove indirection for `function' field. | ||
| 6580 | * xdisp.c (redisplay_internal): | ||
| 6581 | * profiler.c (record_backtrace, sigprof_handler_1): | ||
| 6582 | * alloc.c (Fgarbage_collect): | ||
| 6583 | * eval.c (interactive_p, Fsignal, eval_sub, Ffuncall, Fbacktrace) | ||
| 6584 | (Fbacktrace_frame): Adjust accordingly. | ||
| 6585 | |||
| 6586 | 2012-09-28 Glenn Morris <rgm@gnu.org> | ||
| 6587 | |||
| 6588 | * eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success) | ||
| 6589 | (Frun_hook_with_args_until_failure): Doc fixes. | ||
| 6590 | |||
| 6591 | 2012-09-28 Eli Zaretskii <eliz@gnu.org> | ||
| 6592 | |||
| 6593 | * xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from | ||
| 6594 | Qautomatic_redisplay and change the symbol name. All users changed. | ||
| 6595 | |||
| 6596 | 2012-09-28 Tomohiro Matsuyama <tomo@cx4a.org> | ||
| 6597 | |||
| 6598 | * profiler.c (sigprof_handler): Fix race condition. | ||
| 6599 | |||
| 6600 | 2012-09-28 Glenn Morris <rgm@gnu.org> | ||
| 6601 | |||
| 6602 | * lread.c (lisp_file_lexically_bound_p): Handle #! lines. (Bug#12528) | ||
| 6603 | |||
| 6604 | 2012-09-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6605 | |||
| 6606 | Check more robustly for timer_settime. | ||
| 6607 | * Makefile.in (LIB_TIMER_TIME): New macro. | ||
| 6608 | (LIBES): Add it. | ||
| 6609 | * atimer.c (alarm_timer, alarm_timer_ok, set_alarm, init_atimer): | ||
| 6610 | Use HAVE_TIMER_SETTIME, not SIGEV_SIGNAL, to decide whether to | ||
| 6611 | call timer_settime. | ||
| 6612 | |||
| 6613 | 2012-09-26 Tomohiro Matsuyama <tomo@cx4a.org> | ||
| 6614 | |||
| 6615 | * profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO. | ||
| 6616 | |||
| 6617 | 2012-09-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 6618 | |||
| 6619 | * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. | ||
| 6620 | |||
| 6621 | 2012-09-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6622 | |||
| 6623 | * character.h (MAYBE_UNIFY_CHAR): Remove. | ||
| 6624 | * charset.c, charset.h (maybe_unify_char): Now static. | ||
| 6625 | * charset.c (decode_char): Use maybe_unify_char, not MAYBE_UNIFY_CHAR. | ||
| 6626 | Since this stuff is now private to charset.c, there's no need for | ||
| 6627 | a public macro and no need to inline by hand. | ||
| 6628 | |||
| 6629 | 2012-09-26 Tomohiro Matsuyama <tomo@cx4a.org> | ||
| 6630 | Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6631 | Juanma Barranquero <lekktu@gmail.com> | ||
| 6632 | |||
| 6633 | * profiler.c: New file. | ||
| 6634 | * Makefile.in (base_obj): Add profiler.o. | ||
| 6635 | * makefile.w32-in (OBJ2, GLOBAL_SOURCES): Add profiler.c. | ||
| 6636 | ($(BLD)/profiler.$(O)): New target. | ||
| 6637 | * emacs.c (main): Call syms_of_profiler. | ||
| 6638 | * alloc.c (Qautomatic_gc): New constant. | ||
| 6639 | (MALLOC_PROBE): New macro. | ||
| 6640 | (xmalloc, xzalloc, xrealloc, lisp_malloc, lisp_align_malloc): Use it. | ||
| 6641 | (total_bytes_of_live_objects): New function. | ||
| 6642 | (Fgarbage_collect): Use it. Record itself in backtrace_list. | ||
| 6643 | Call malloc_probe for the memory profiler. | ||
| 6644 | (syms_of_alloc): Define Qautomatic_gc. | ||
| 6645 | * eval.c (eval_sub, Ffuncall): Reorder assignments to avoid | ||
| 6646 | race condition. | ||
| 6647 | (struct backtrace): Move definition... | ||
| 6648 | * lisp.h (struct backtrace): ..here. | ||
| 6649 | (Qautomatic_gc, profiler_memory_running): Declare vars. | ||
| 6650 | (malloc_probe, syms_of_profiler): Declare functions. | ||
| 6651 | * xdisp.c (Qautomatic_redisplay): New constant. | ||
| 6652 | (redisplay_internal): Record itself in backtrace_list. | ||
| 6653 | (syms_of_xdisp): Define Qautomatic_redisplay. | ||
| 6654 | |||
| 6655 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | ||
| 6656 | 2012-09-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 6657 | |||
| 6658 | * makefile.w32-in ($(BLD)/callproc.$(O)): Update dependencies. | ||
| 6659 | |||
| 6660 | 2012-09-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6661 | |||
| 6662 | Prefer POSIX timers if available. | ||
| 6663 | They avoid a race if the timer is too close to the current time. | ||
| 6664 | * atimer.c (alarm_timer, alarm_timer_ok) [SIGEV_SIGNAL]: New static vars. | ||
| 6665 | (set_alarm) [SIGEV_SIGNAL]: Use POSIX timers if available. | ||
| 6666 | (init_atimer) [SIGEV_SIGNAL]: Initialize them. | ||
| 6667 | |||
| 6668 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | ||
| 6669 | |||
| 6670 | * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY): Make it an alias of | ||
| 6671 | CHAR_STRING_ADVANCE. | ||
| 6672 | (STRING_CHAR_ADVANCE_NO_UNIFY): Make it an alias of | ||
| 6673 | STRING_CHAR_ADVANCE. | ||
| 6674 | |||
| 6675 | 2012-09-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 6676 | |||
| 6677 | Move Vlibrary_cache to emacs.c and reset before dumping. | ||
| 6678 | |||
| 6679 | * lisp.h (reset_image_types): Declare. | ||
| 6680 | [WINDOWSNT] (Vlibrary_cache): Declare. | ||
| 6681 | |||
| 6682 | * image.c (reset_image_types): New function. | ||
| 6683 | |||
| 6684 | * emacs.c [WINDOWSNT] (Vlibrary_cache): Move from w32.c. | ||
| 6685 | (syms_of_emacs) [WINDOWSNT] <Vlibrary_cache>: Initialize and staticpro. | ||
| 6686 | (Fdump_emacs): Reset Vlibrary_cache and image_types. | ||
| 6687 | |||
| 6688 | * w32.c (Vlibrary_cache): Do not define; moved to emacs.c | ||
| 6689 | (globals_of_w32) <Vlibrary_cache>: Do not initialize. | ||
| 6690 | |||
| 6691 | * w32.h (Vlibrary_cache): Do not declare. | ||
| 6692 | |||
| 6693 | 2012-09-25 Eli Zaretskii <eliz@gnu.org> | ||
| 6694 | |||
| 6695 | * w32proc.c (sys_signal): Handle all signals defined by the | ||
| 6696 | MS-Windows runtime, not just SIGCHLD. Actually install the signal | ||
| 6697 | handlers for signals supported by Windows. Don't override | ||
| 6698 | term_ntproc as the handler for SIGABRT. | ||
| 6699 | (sigaction): Rewrite to call sys_signal instead of duplicating its | ||
| 6700 | code. | ||
| 6701 | (sys_kill): Improve commentary. | ||
| 6702 | |||
| 6703 | * w32.c (term_ntproc): Accept (and ignore) one argument, for | ||
| 6704 | consistency with a signature of a signal handler. All callers | ||
| 6705 | changed. | ||
| 6706 | (init_ntproc): Accept an argument DUMPING. If dumping, don't | ||
| 6707 | install term_ntproc as a signal handler for SIGABRT, as that | ||
| 6708 | should be done by the dumped Emacs. | ||
| 6709 | |||
| 6710 | * w32.h (init_ntproc, term_ntproc): Adjust prototypes. | ||
| 6711 | |||
| 6712 | * w32select.c (term_w32select): Protect against repeated | ||
| 6713 | invocation by setting clipboard_owner to NULL after calling | ||
| 6714 | DestroyWindow. | ||
| 6715 | |||
| 6716 | * emacs.c (shut_down_emacs, main): Adapt the calls to init_ntproc | ||
| 6717 | and term_ntproc to their modified signatures. | ||
| 6718 | |||
| 6719 | * character.c (char_string, string_char): Remove calls to | ||
| 6720 | MAYBE_UNIFY_CHAR. See the discussion starting at | ||
| 6721 | http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00433.html | ||
| 6722 | for the details. | ||
| 6723 | |||
| 6724 | 2012-09-25 Chong Yidong <cyd@gnu.org> | ||
| 6725 | |||
| 6726 | * xdisp.c (mode_line_inverse_video): Delete obsolete variable. | ||
| 6727 | |||
| 6728 | 2012-09-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 6729 | |||
| 6730 | * bytecode.c (exec_byte_code): Signal an error instead of aborting, | ||
| 6731 | when encountering an unknown bytecode. | ||
| 6732 | |||
| 6733 | 2012-09-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6734 | |||
| 6735 | image.c, indent.c: Use bool for booleans. | ||
| 6736 | * dispextern.h (struct image_type): Members valid_p, load, init | ||
| 6737 | now return bool, not int. All uses changed. | ||
| 6738 | * image.c: Omit unnecessary static decls. | ||
| 6739 | (x_create_bitmap_mask, x_build_heuristic_mask): | ||
| 6740 | Return void, not int, since callers don't care about the return value. | ||
| 6741 | (x_create_bitmap_mask, define_image_type, valid_image_p) | ||
| 6742 | (struct image_keyword, parse_image_spec, image_spec_value) | ||
| 6743 | (check_image_size, image_background) | ||
| 6744 | (image_background_transparent, x_clear_image_1) | ||
| 6745 | (postprocess_image, lookup_image, x_check_image_size) | ||
| 6746 | (x_create_x_image_and_pixmap, xbm_image_p) | ||
| 6747 | (Create_Pixmap_From_Bitmap_Data, xbm_read_bitmap_data) | ||
| 6748 | (xbm_load_image, xbm_file_p, xbm_load, xpm_lookup_color) | ||
| 6749 | (init_xpm_functions, xpm_valid_color_symbols_p, xpm_image_p) | ||
| 6750 | (xpm_load, xpm_load_image, lookup_rgb_color, lookup_pixel_color) | ||
| 6751 | (x_to_xcolors, x_build_heuristic_mask, pbm_image_p, pbm_load) | ||
| 6752 | (png_image_p, init_png_functions, png_load_body, png_load) | ||
| 6753 | (jpeg_image_p, init_jpeg_functions, jpeg_load_body, jpeg_load) | ||
| 6754 | (tiff_image_p, init_tiff_functions, tiff_load, gif_image_p) | ||
| 6755 | (init_gif_functions, gif_load, imagemagick_image_p) | ||
| 6756 | (imagemagick_load_image, imagemagick_load, svg_image_p) | ||
| 6757 | (init_svg_functions, svg_load, svg_load_image, gs_image_p) | ||
| 6758 | (gs_load): | ||
| 6759 | * nsimage.m (ns_load_image): | ||
| 6760 | * nsterm.m (ns_defined_color): | ||
| 6761 | * xfaces.c (tty_lookup_color, tty_defined_color, defined_color): | ||
| 6762 | * xfns.c (x_defined_color): | ||
| 6763 | * xterm.c (x_alloc_lighter_color_for_widget) | ||
| 6764 | (x_alloc_nearest_color_1, x_alloc_nearest_color) | ||
| 6765 | (x_alloc_lighter_color): | ||
| 6766 | * indent.c (disptab_matches_widthtab, current_column) | ||
| 6767 | (scan_for_column, string_display_width, indented_beyond_p) | ||
| 6768 | (compute_motion, vmotion, Fvertical_motion): | ||
| 6769 | Use bool for booleans. | ||
| 6770 | |||
| 6771 | 2012-09-24 Chong Yidong <cyd@gnu.org> | ||
| 6772 | |||
| 6773 | * chartab.c (Fset_char_table_default): Obsolete function removed. | ||
| 6774 | |||
| 6775 | 2012-09-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6776 | |||
| 6777 | Move pid_t related decls out of lisp.h. | ||
| 6778 | * lisp.h, syswait.h (record_child_status_change, wait_for_termination) | ||
| 6779 | (interruptible_wait_for_termination): | ||
| 6780 | Move these decls from lisp.h to syswait.h, since they use pid_t. | ||
| 6781 | Needed on FreeBSD; see Herbert J. Skuhra in | ||
| 6782 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00571.html>. | ||
| 6783 | * callproc.c: Include syswait.h. | ||
| 6784 | |||
| 6785 | gnutls.c, gtkutil.c: Use bool for boolean. | ||
| 6786 | * gnutls.c (gnutls_global_initialized, init_gnutls_functions) | ||
| 6787 | (emacs_gnutls_handle_error): | ||
| 6788 | * gtkutil.c (xg_check_special_colors, xg_prepare_tooltip) | ||
| 6789 | (xg_hide_tooltip, xg_create_frame_widgets) | ||
| 6790 | (create_dialog, xg_uses_old_file_dialog) | ||
| 6791 | (xg_get_file_with_chooser, xg_get_file_with_selection) | ||
| 6792 | (xg_get_file_name, xg_have_tear_offs, create_menus, xg_create_widget) | ||
| 6793 | (xg_item_label_same_p, xg_update_menubar) | ||
| 6794 | (xg_modify_menubar_widgets, xg_event_is_for_menubar) | ||
| 6795 | (xg_ignore_gtk_scrollbar, xg_set_toolkit_scroll_bar_thumb) | ||
| 6796 | (xg_event_is_for_scrollbar, xg_pack_tool_bar, xg_make_tool_item) | ||
| 6797 | (is_box_type, xg_tool_item_stale_p, xg_update_tool_bar_sizes) | ||
| 6798 | (update_frame_tool_bar, free_frame_tool_bar): | ||
| 6799 | * gtkutil.c, w32term.c, xterm.c (x_wm_set_size_hint): | ||
| 6800 | * nsmenu.m (ns_update_menubar): | ||
| 6801 | * nsmenu.m, w32menu.c, xmenu.c (set_frame_menubar): | ||
| 6802 | * xfns.c (Fx_show_tip) [USE_GTK]: | ||
| 6803 | Use bool for boolean. | ||
| 6804 | * gtkutil.c (xg_update_frame_menubar): | ||
| 6805 | * xmenu.c (update_frame_menubar): | ||
| 6806 | Return void, not int, since caller ignores return value. | ||
| 6807 | * gtkutil.c (xg_change_toolbar_position): | ||
| 6808 | Return void, not 1. | ||
| 6809 | |||
| 6810 | 2012-09-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 6811 | |||
| 6812 | * makefile.w32-in (BLOCKINPUT_H): Remove. | ||
| 6813 | (SYSSIGNAL_H): New macro. | ||
| 6814 | ($(BLD)/alloc.$(O), $(BLD)/atimer.$(O), $(BLD)/buffer.$(O)) | ||
| 6815 | ($(BLD)/callproc.$(O), $(BLD)/data.$(O), $(BLD)/dired.$(O)) | ||
| 6816 | ($(BLD)/dispnew.$(O), $(BLD)/editfns.$(O), $(BLD)/emacs.$(O)) | ||
| 6817 | ($(BLD)/eval.$(O), $(BLD)/fileio.$(O), $(BLD)/floatfns.$(O)) | ||
| 6818 | ($(BLD)/fns.$(O), $(BLD)/fontset.$(O), $(BLD)/frame.$(O)) | ||
| 6819 | ($(BLD)/fringe.$(O), $(BLD)/image.$(O), $(BLD)/insdel.$(O)) | ||
| 6820 | ($(BLD)/keyboard.$(O), $(BLD)/keymap.$(O), $(BLD)/lread.$(O)) | ||
| 6821 | ($(BLD)/menu.$(O), $(BLD)/w32inevt.$(O), $(BLD)/w32proc.$(O)) | ||
| 6822 | ($(BLD)/print.$(O), $(BLD)/process.$(O), $(BLD)/ralloc.$(O)) | ||
| 6823 | ($(BLD)/search.$(O), $(BLD)/sound.$(O), $(BLD)/sysdep.$(O)) | ||
| 6824 | ($(BLD)/term.$(O), $(BLD)/window.$(O), $(BLD)/xdisp.$(O)) | ||
| 6825 | ($(BLD)/xfaces.$(O), $(BLD)/w32fns.$(O), $(BLD)/w32menu.$(O)) | ||
| 6826 | ($(BLD)/w32term.$(O), $(BLD)/w32select.$(O), $(BLD)/w32reg.$(O)) | ||
| 6827 | ($(BLD)/w32xfns.$(O)): Update dependencies. | ||
| 6828 | |||
| 6829 | 2012-09-23 Eli Zaretskii <eliz@gnu.org> | ||
| 6830 | |||
| 6831 | * .gdbinit: Set breakpoint on terminate_due_to_signal, not on | ||
| 6832 | fatal_error_backtrace. | ||
| 6833 | |||
| 6834 | * w32proc.c (sys_kill): Undo last change: don't do anything when | ||
| 6835 | invoked to deliver SIGABRT to our own process. This is now | ||
| 6836 | handled by emacs_raise. | ||
| 6837 | |||
| 6838 | 2012-09-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 6839 | |||
| 6840 | * w32term.c (w32_read_socket): Remove leftover reference to | ||
| 6841 | interrupt_input_pending. | ||
| 6842 | |||
| 6843 | 2012-09-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6844 | |||
| 6845 | Do not use SA_NODEFER. | ||
| 6846 | Problem reported by Dani Moncayo in | ||
| 6847 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00557.html>. | ||
| 6848 | * alloc.c (die): | ||
| 6849 | * sysdep.c (emacs_abort): Do not reset signal handler. | ||
| 6850 | * emacs.c (terminate_due_to_signal): Reset signal handler here. | ||
| 6851 | * sysdep.c (init_signals): Do not use SA_NODEFER. It wasn't | ||
| 6852 | wanted even on POSIXish hosts, and it doesn't work on Windows. | ||
| 6853 | |||
| 6854 | 2012-09-23 Jan Djärv <jan.h.d@swipnet.se> | ||
| 6855 | |||
| 6856 | * xterm.c (x_term_init): Call fixup_locale before and after calling | ||
| 6857 | gtk_init (Bug#12392). | ||
| 6858 | |||
| 6859 | 2012-09-23 Chong Yidong <cyd@gnu.org> | ||
| 6860 | |||
| 6861 | * w32.c (w32_delayed_load): Remove LIBRARIES argument; always use | ||
| 6862 | Vdynamic_library_alist. | ||
| 6863 | |||
| 6864 | * gnutls.c (init_gnutls_functions): Caller changed; remove arg. | ||
| 6865 | (Fgnutls_available_p): Caller changed. | ||
| 6866 | |||
| 6867 | * xml.c (init_libxml2_functions, Flibxml_parse_html_region) | ||
| 6868 | (Flibxml_parse_xml_region): Likewise. | ||
| 6869 | |||
| 6870 | * dispextern.h (struct image_type): Remove arg from init function. | ||
| 6871 | |||
| 6872 | * image.c (Finit_image_library, lookup_image_type) | ||
| 6873 | (define_image_type): Remove now-unneeded second arg. | ||
| 6874 | (init_xpm_functions, init_png_functions, init_jpeg_functions) | ||
| 6875 | (init_tiff_functions, init_gif_functions, init_svg_functions): | ||
| 6876 | Arglist and w32_delayed_load calling convention changed. | ||
| 6877 | (gs_type): Remove init_gs_functions; there is no such function. | ||
| 6878 | (valid_image_p, make_image): Fix caller to lookup_image_type. | ||
| 6879 | |||
| 6880 | 2012-09-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 6881 | |||
| 6882 | Simplify and avoid signal-handling races (Bug#12471). | ||
| 6883 | * alloc.c (die): | ||
| 6884 | * sysdep.c (emacs_abort) [HAVE_NTGUI]: | ||
| 6885 | Avoid recursive loop if there's a fatal error in the function itself. | ||
| 6886 | * atimer.c (pending_atimers): | ||
| 6887 | * blockinput.h: Don't include "atimer.h"; no longer needed. | ||
| 6888 | (interrupt_input_pending): Remove. All uses removed. | ||
| 6889 | pending_signals now counts both atimers and ordinary interrupts. | ||
| 6890 | This is less racy than having three separate pending-signal flags. | ||
| 6891 | (block_input, unblock_input, totally_unblock_input, unblock_input_to) | ||
| 6892 | (input_blocked_p): | ||
| 6893 | Rename from their upper-case counterparts BLOCK_INPUT, | ||
| 6894 | UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT_TO, | ||
| 6895 | INPUT_BLOCKED_P, and turn into functions. All uses changed. | ||
| 6896 | This makes it easier to access volatile variables more accurately. | ||
| 6897 | (BLOCK_INPUT_RESIGNAL): Remove. All uses replaced by unblock_input (). | ||
| 6898 | (input_blocked_p): Prefer this to 'interrupt_input_blocked', as | ||
| 6899 | that's more reliable if the code is buggy and sets | ||
| 6900 | interrupt_input_blocked to a negative value. All uses changed. | ||
| 6901 | * atimer.c (deliver_alarm_signal): | ||
| 6902 | Remove. No need to deliver this to the parent; any thread can | ||
| 6903 | handle this signal now. All uses replaced by underlying handler. | ||
| 6904 | * atimer.c (turn_on_atimers): | ||
| 6905 | * dispnew.c (handle_window_change_signal): | ||
| 6906 | * emacs.c (handle_danger_signal): | ||
| 6907 | * keyboard.c (kbd_buffer_get_event): | ||
| 6908 | Don't reestablish signal handler; not needed with sigaction. | ||
| 6909 | * blockinput.h (UNBLOCK_INPUT_TO, TOTALLY_UNBLOCK_INPUT) | ||
| 6910 | (UNBLOCK_INPUT_TO): | ||
| 6911 | Rework to avoid unnecessary accesses to volatile variables. | ||
| 6912 | (UNBLOCK_INPUT_TO): Now a function. | ||
| 6913 | (totally_unblock_input, unblock_input): New decls. | ||
| 6914 | * data.c (handle_arith_signal, deliver_arith_signal): Move to sysdep.c | ||
| 6915 | (init_data): Remove. Necessary stuff now done in init_signal. | ||
| 6916 | * emacs.c, xdisp.c: Include "atimer.h", since we invoke atimer functions. | ||
| 6917 | * emacs.c (handle_fatal_signal, deliver_fatal_signal): Move to sysdep.c. | ||
| 6918 | (fatal_error_code): Remove; no longer needed. | ||
| 6919 | (terminate_due_to_signal): Rename from fatal_error_backtrace, since | ||
| 6920 | it doesn't always backtrace. All uses changed. No need to reset | ||
| 6921 | signal to default, since sigaction and/or die does that for us now. | ||
| 6922 | Use emacs_raise (FOO), not kill (getpid (), FOO). | ||
| 6923 | (main): Check more-accurately whether we're dumping. | ||
| 6924 | Move fatal-error setup to sysdep.c | ||
| 6925 | * floatfns.c: Do not include "syssignal.h"; no longer needed. | ||
| 6926 | * gtkutil.c (xg_get_file_name, xg_get_font): | ||
| 6927 | Remove no-longer-needed signal-mask manipulation. | ||
| 6928 | * keyboard.c, process.c (POLL_FOR_INPUT): | ||
| 6929 | Don't depend on USE_ASYNC_EVENTS, a symbol that is never defined. | ||
| 6930 | * keyboard.c (read_avail_input): Remove. | ||
| 6931 | All uses replaced by gobble_input. | ||
| 6932 | (Ftop_level): Use TOTALLY_UNBLOCK_INPUT rather than open code. | ||
| 6933 | (kbd_buffer_store_event_hold, gobble_input): | ||
| 6934 | (record_asynch_buffer_change) [USABLE_SIGIO]: | ||
| 6935 | (store_user_signal_events): | ||
| 6936 | No need to mess with signal mask. | ||
| 6937 | (gobble_input): If blocking input and there are terminals, simply | ||
| 6938 | set pending_signals to 1 and return. All hooks changed to not | ||
| 6939 | worry about whether input is blocked. | ||
| 6940 | (process_pending_signals): Clear pending_signals before processing | ||
| 6941 | them, in case a signal comes in while we're processing. | ||
| 6942 | By convention callers now test pending_signals before calling us. | ||
| 6943 | (UNBLOCK_INPUT_TO, unblock_input, totally_unblock_input): | ||
| 6944 | New functions, to support changes to blockinput.h. | ||
| 6945 | (handle_input_available_signal): Now extern. | ||
| 6946 | (reinvoke_input_signal): Remove. All uses replaced by | ||
| 6947 | handle_async_input. | ||
| 6948 | (quit_count): Now volatile, since a signal handler uses it. | ||
| 6949 | (handle_interrupt): Now takes bool IN_SIGNAL_HANDLER as arg. | ||
| 6950 | All callers changed. Block SIGINT only if not already blocked. | ||
| 6951 | Clear sigmask reliably, even if Fsignal returns, which it can. | ||
| 6952 | Omit unnecessary accesses to volatile var. | ||
| 6953 | (quit_throw_to_read_char): No need to restore sigmask. | ||
| 6954 | * keyboard.c (gobble_input, handle_user_signal): | ||
| 6955 | * process.c (wait_reading_process_output): | ||
| 6956 | Call signal-handling code rather than killing ourselves. | ||
| 6957 | * lisp.h: Include <float.h>, for... | ||
| 6958 | (IEEE_FLOATING_POINT): New macro, moved here to avoid duplication. | ||
| 6959 | (pending_signals): Now volatile. | ||
| 6960 | (syms_of_data): Now const if IEEE floating point. | ||
| 6961 | (handle_input_available_signal) [USABLE_SIGIO]: | ||
| 6962 | (terminate_due_to_signal, record_child_status_change): New decls. | ||
| 6963 | * process.c (create_process): Avoid disaster if memory is exhausted | ||
| 6964 | while we're processing a vfork, by tightening the critical section | ||
| 6965 | around the vfork. | ||
| 6966 | (send_process_frame, process_sent_to, handle_pipe_signal) | ||
| 6967 | (deliver_pipe_signal): Remove. No longer needed, as Emacs now | ||
| 6968 | ignores SIGPIPE. | ||
| 6969 | (send_process): No need for setjmp/longjmp any more, since the | ||
| 6970 | SIGPIPE stuff is now gone. Instead, report an error if errno | ||
| 6971 | is EPIPE. | ||
| 6972 | (record_child_status_change): Now extern. PID and W are now args. | ||
| 6973 | Return void, not bool. All callers changed. | ||
| 6974 | * sysdep.c (wait_debugging) [(BSD_SYSTEM || HPUX) && !defined (__GNU__)]: | ||
| 6975 | Remove. All uses removed. This bug should be fixed now in a | ||
| 6976 | different way. | ||
| 6977 | (wait_for_termination_1): Use waitpid rather than sigsuspend, | ||
| 6978 | and record the child status change directly. This avoids the | ||
| 6979 | need to futz with the signal mask. | ||
| 6980 | (process_fatal_action): Move here from emacs.c. | ||
| 6981 | (emacs_sigaction_flags): New function, containing | ||
| 6982 | much of what used to be in emacs_sigaction_init. | ||
| 6983 | (emacs_sigaction_init): Use it. Block nonfatal system signals that are | ||
| 6984 | caught by emacs, to make races less likely. | ||
| 6985 | (deliver_process_signal): Rename from handle_on_main_thread. | ||
| 6986 | All uses changed. | ||
| 6987 | (BACKTRACE_LIMIT_MAX): Now at top level. | ||
| 6988 | (thread_backtrace_buffer, threadback_backtrace_pointers): | ||
| 6989 | New static vars. | ||
| 6990 | (deliver_thread_signal, deliver_fatal_thread_signal): | ||
| 6991 | New functions, for more-accurate delivery of thread-specific signals. | ||
| 6992 | (handle_fatal_signal, deliver_fatal_signal): Move here from emacs.c. | ||
| 6993 | (deliver_arith_signal): Handle in this thread, not | ||
| 6994 | in the main thread, since it's triggered by this thread. | ||
| 6995 | (maybe_fatal_sig): New function. | ||
| 6996 | (init_signals): New arg DUMPING so that we can be more accurate | ||
| 6997 | about whether we're dumping. Caller changed. | ||
| 6998 | Treat thread-specific signals differently from process-general signals. | ||
| 6999 | Block all signals while handling fatal error; that's safer. | ||
| 7000 | xsignal from SIGFPE only on non-IEEE hosts, treating it as fatal | ||
| 7001 | on IEEE hosts. | ||
| 7002 | When batch, ignore SIGHUP, SIGINT, SIGTERM if they were already ignored. | ||
| 7003 | Ignore SIGPIPE unless batch. | ||
| 7004 | (emacs_backtrace): Output backtrace for the appropriate thread, | ||
| 7005 | which is not necessarily the main thread. | ||
| 7006 | * syssignal.h: Include <stdbool.h>. | ||
| 7007 | (emacs_raise): New macro. | ||
| 7008 | * xterm.c (x_connection_signal): Remove; no longer needed | ||
| 7009 | now that we use sigaction. | ||
| 7010 | (x_connection_closed): No need to mess with sigmask now. | ||
| 7011 | (x_initialize): No need to reset SIGPIPE handler here, since | ||
| 7012 | init_signals does this for us now. | ||
| 7013 | |||
| 7014 | 2012-09-23 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7015 | |||
| 7016 | * nsterm.m (ns_dumpglyphs_image): dr is a new rect to draw image into, | ||
| 7017 | background rect may be larger (Bug#12245). | ||
| 7018 | |||
| 7019 | 2012-09-23 Chong Yidong <cyd@gnu.org> | ||
| 7020 | |||
| 7021 | * keyboard.c (timer_check): Avoid quitting during Fcopy_sequence. | ||
| 7022 | |||
| 7023 | 2012-09-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7024 | |||
| 7025 | * .gdbinit: Just stop at fatal_error_backtrace. | ||
| 7026 | See Stefan Monnier's request in | ||
| 7027 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00549.html>. | ||
| 7028 | Remove no-longer-used query of system type. | ||
| 7029 | |||
| 7030 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 7031 | |||
| 7032 | * search.c (Freplace_match): Doc fix (Bug#12325). | ||
| 7033 | |||
| 7034 | * minibuf.c (Finternal_complete_buffer): Doc fix (Bug#12391). | ||
| 7035 | |||
| 7036 | * editfns.c (Fline_beginning_position): Doc fix (Bug#12416). | ||
| 7037 | (Fline_end_position): Doc fix. | ||
| 7038 | |||
| 7039 | * cmds.c (Fforward_char, Fbackward_char): Doc fix (Bug#12414). | ||
| 7040 | |||
| 7041 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 7042 | |||
| 7043 | * dispextern.h (struct image_type): Add new slot, storing a type | ||
| 7044 | initialization function. | ||
| 7045 | |||
| 7046 | * image.c (define_image_type): Call the image initializer function | ||
| 7047 | if it is defined. Arguments and return value changed. | ||
| 7048 | (valid_image_p, make_image): Callers changed. | ||
| 7049 | (xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type) | ||
| 7050 | (gif_type, imagemagick_type, svg_type, gs_type): | ||
| 7051 | Add initialization functions. | ||
| 7052 | (Finit_image_library): Call lookup_image_type. | ||
| 7053 | (CHECK_LIB_AVAILABLE): Macro deleted. | ||
| 7054 | (lookup_image_type): Call define_image_type here, rather than via | ||
| 7055 | Finit_image_library, and without using CHECK_LIB_AVAILABLE. | ||
| 7056 | (syms_of_image): Move define_image_type calls for xbm_type and | ||
| 7057 | pbm_type to lookup_image_type. | ||
| 7058 | |||
| 7059 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> | ||
| 7060 | |||
| 7061 | * keyboard.c (timer_check_2): Move calculation of 'timers' and | ||
| 7062 | 'idle_timers' from here ... | ||
| 7063 | (timer_check): ... to here. Use Fcopy_sequence to copy the timer | ||
| 7064 | lists, to avoid infloops when the timer does something stupid, | ||
| 7065 | like reinvoke itself with the same or smaller time-out. | ||
| 7066 | (Bug#12447) | ||
| 7067 | |||
| 7068 | 2012-09-22 Martin Rudalics <rudalics@gmx.at> | ||
| 7069 | |||
| 7070 | * window.c (Fsplit_window_internal): Handle only Qt value of | ||
| 7071 | Vwindow_combination_limit separately. | ||
| 7072 | (Qtemp_buffer_resize): New symbol. | ||
| 7073 | (Vwindow_combination_limit): New default value. | ||
| 7074 | Rewrite doc-string. | ||
| 7075 | |||
| 7076 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> | ||
| 7077 | |||
| 7078 | * xdisp.c (next_overlay_string): Initialize it->end_charpos for | ||
| 7079 | the new overlay string. (Bug#10159) | ||
| 7080 | |||
| 7081 | 2012-09-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7082 | |||
| 7083 | * emacs.c (shut_down_emacs): Don't assume stderr is buffered, | ||
| 7084 | or that fprintf is async-signal-safe. POSIX doesn't require | ||
| 7085 | either assumption. | ||
| 7086 | |||
| 7087 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 7088 | |||
| 7089 | * buffer.c (Fset_buffer_modified_p): Handle indirect buffers | ||
| 7090 | (Bug#8207). | ||
| 7091 | |||
| 7092 | 2012-09-22 Kenichi Handa <handa@gnu.org> | ||
| 7093 | |||
| 7094 | * composite.c (composition_reseat_it): Handle the case that a | ||
| 7095 | grapheme cluster is not covered by a single font (Bug#12352). | ||
| 7096 | |||
| 7097 | 2012-09-21 Chong Yidong <cyd@gnu.org> | ||
| 7098 | |||
| 7099 | * image.c (define_image_type): Avoid adding duplicate types to | ||
| 7100 | image_types (Bug#12463). Suggested by Jörg Walter. | ||
| 7101 | |||
| 7102 | 2012-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 7103 | |||
| 7104 | * unexmacosx.c: Define LC_DATA_IN_CODE if not defined. | ||
| 7105 | (print_load_command_name): Add case LC_DATA_IN_CODE. | ||
| 7106 | (dump_it) [LC_DATA_IN_CODE]: Call copy_linkedit_data. | ||
| 7107 | |||
| 7108 | 2012-09-21 Glenn Morris <rgm@gnu.org> | ||
| 7109 | |||
| 7110 | * eval.c (Frun_hook_with_args_until_success) | ||
| 7111 | (Frun_hook_with_args_until_failure): Doc fixes. (Bug#12393) | ||
| 7112 | |||
| 7113 | 2012-09-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 7114 | |||
| 7115 | * fileio.c (Ffile_selinux_context): Only call freecon when | ||
| 7116 | lgetfilecon succeeded. | ||
| 7117 | (Fset_file_selinux_context): Likewise. (Bug#12444) | ||
| 7118 | |||
| 7119 | 2012-09-21 Eli Zaretskii <eliz@gnu.org> | ||
| 7120 | |||
| 7121 | * xdisp.c (try_window_reusing_current_matrix): Under bidi | ||
| 7122 | reordering, locate the cursor by calling set_cursor_from_row; if | ||
| 7123 | that fails, clear the desired glyph matrix before returning a | ||
| 7124 | failure indication to the caller. Fixes leaving garbled display | ||
| 7125 | when fast scrolling with a down-key. (Bug#12403) | ||
| 7126 | (compute_stop_pos_backwards): Fix a typo that caused crashes while | ||
| 7127 | scrolling through multibyte text. | ||
| 7128 | |||
| 7129 | 2012-09-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7130 | |||
| 7131 | * alloc.c (mark_object) <PVEC_WINDOW>: Mark prev/next_buffers *after* | ||
| 7132 | calling mark_vectorlike since that's the one that marks the window. | ||
| 7133 | (mark_discard_killed_buffers): Mark the final cdr. | ||
| 7134 | * window.h (struct window): Move prev/next_buffers to the | ||
| 7135 | non-standard fields. | ||
| 7136 | * window.c (make_window): Initialize prev/next_buffers manually. | ||
| 7137 | |||
| 7138 | 2012-09-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7139 | |||
| 7140 | Omit unused arg EXPECTED from socket hooks. | ||
| 7141 | * keyboard.c (gobble_input, read_avail_input, tty_read_avail_input): | ||
| 7142 | * nsterm.m (ns_term_init): | ||
| 7143 | * termhooks.h (struct terminal.read_socket_hook): | ||
| 7144 | * w32inevt.c (w32_console_read_socket): | ||
| 7145 | * w32term.c (w32_read_socket): | ||
| 7146 | * xterm.c (XTread_socket): | ||
| 7147 | Omit unused arg EXPECTED. All callers changed. | ||
| 7148 | (store_user_signal_events): Return void, not int, since callers no | ||
| 7149 | longer care about the return value. All uses changed. | ||
| 7150 | |||
| 7151 | 2012-09-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 7152 | |||
| 7153 | * w32gui.h (XParseGeometry): Do not declare. | ||
| 7154 | |||
| 7155 | 2012-09-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7156 | |||
| 7157 | * w32inevt.c (w32_console_read_socket): Return -1 on failure, not 0. | ||
| 7158 | Ignore 'expected'. See Eli Zaretskii in | ||
| 7159 | <http://bugs.gnu.org/12471#8> (last line). | ||
| 7160 | |||
| 7161 | * frame.c (read_integer): Remove. All uses replaced by strtol/strtoul. | ||
| 7162 | (XParseGeometry): Now static. Substitute extremal values for | ||
| 7163 | values that are out of range. | ||
| 7164 | |||
| 7165 | 2012-09-19 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7166 | |||
| 7167 | * w32xfns.c (read_integer, XParseGeometry): Move to frame.c. | ||
| 7168 | |||
| 7169 | * nsfns.m (XParseGeometry): Remove. | ||
| 7170 | (Fx_create_frame): Call x_set_offset to correctly interpret | ||
| 7171 | top_pos in geometry. | ||
| 7172 | |||
| 7173 | * frame.c (read_integer, XParseGeometry): Move from w32xfns.c. | ||
| 7174 | (Fx_parse_geometry): If there is a space in string, call | ||
| 7175 | Qns_parse_geometry, otherwise do as on other terms (Bug#12368). | ||
| 7176 | |||
| 7177 | 2012-09-17 Eli Zaretskii <eliz@gnu.org> | ||
| 7178 | |||
| 7179 | * search.c (scan_buffer): Use character positions in calls to | ||
| 7180 | region_cache_forward and region_cache_backward, not byte | ||
| 7181 | positions. (Bug#12196) | ||
| 7182 | |||
| 7183 | * w32term.c (w32_read_socket): Set pending_signals to 1, like | ||
| 7184 | xterm.c does. Reported by Daniel Colascione <dancol@dancol.org>. | ||
| 7185 | |||
| 7186 | * ralloc.c (r_alloc_init) [!SYSTEM_MALLOC]: Initialize | ||
| 7187 | __malloc_extra_blocks to 32 instead of 64, like alloc.c did in | ||
| 7188 | emacs_blocked_malloc, now deleted. | ||
| 7189 | |||
| 7190 | 2012-09-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7191 | |||
| 7192 | Remove no-longer-needed Solaris 2.4 vfork bug workaround. | ||
| 7193 | The workaround was for improving performance on Solaris 2.4, but | ||
| 7194 | is getting in the way now. Emacs will still work if someone is | ||
| 7195 | still running Solaris 2.4 in a museum somewhere; Sun dropped | ||
| 7196 | support for Solaris 2.4 in 2003. | ||
| 7197 | * callproc.c (Fcall_process) [HAVE_WORKING_VFORK]: | ||
| 7198 | * process.c (create_process) [HAVE_WORKING_VFORK]: | ||
| 7199 | Omit now-unnecessary workaround for the Solaris 2.4 vfork bug, | ||
| 7200 | since Emacs no longer uses vfork on that platform. | ||
| 7201 | |||
| 7202 | 2012-09-17 Glenn Morris <rgm@gnu.org> | ||
| 7203 | |||
| 7204 | * emacs.c: Use COPYRIGHT. | ||
| 7205 | |||
| 7206 | 2012-09-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7207 | |||
| 7208 | Remove configure's --without-sync-input option (Bug#12450). | ||
| 7209 | When auditing signal-handling in preparation for cleaning it up, | ||
| 7210 | I found that SYNC_INPUT has race conditions and would be a real | ||
| 7211 | pain to fix. Since it's an undocumented and deprecated | ||
| 7212 | configure-time option, now seems like a good time to remove it. | ||
| 7213 | Also see <http://bugs.gnu.org/11080#16>. | ||
| 7214 | * alloc.c (_bytes_used, __malloc_extra_blocks, _malloc_internal) | ||
| 7215 | (_free_internal) [!DOUG_LEA_MALLOC]: Remove decls. | ||
| 7216 | (alloc_mutex) [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: | ||
| 7217 | (malloc_hysteresis): | ||
| 7218 | (check_depth) [XMALLOC_OVERRUN_CHECK]: | ||
| 7219 | (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): | ||
| 7220 | (__malloc_hook, __realloc_hook, __free_hook, BYTES_USED) | ||
| 7221 | (dont_register_blocks, bytes_used_when_reconsidered) | ||
| 7222 | (bytes_used_when_full, emacs_blocked_free, emacs_blocked_malloc) | ||
| 7223 | (emacs_blocked_realloc, reset_malloc_hooks, uninterrupt_malloc): | ||
| 7224 | [!SYSTEM_MALLOC && !SYNC_INPUT]: | ||
| 7225 | Remove. All uses removed. | ||
| 7226 | (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): Use a different | ||
| 7227 | implementation, one that depends on whether the new macro | ||
| 7228 | XMALLOC_BLOCK_INPUT_CHECK is defined, not on whether SYNC_INPUT | ||
| 7229 | is defined. | ||
| 7230 | * atimer.c (run_timers, handle_alarm_signal): | ||
| 7231 | * keyboard.c (pending_signal, poll_for_input_1, poll_for_input) | ||
| 7232 | (handle_async_input, process_pending_signals) | ||
| 7233 | (handle_input_available_signal, init_keyboard): | ||
| 7234 | * nsterm.m (ns_read_socket): | ||
| 7235 | * process.c (wait_reading_process_output): | ||
| 7236 | * regex.c (immediate_quit, IMMEDIATE_QUIT_CHECK): | ||
| 7237 | * sysdep.c (emacs_sigaction_init) [SA_RESTART]: | ||
| 7238 | (emacs_write): | ||
| 7239 | * xterm.c (XTread_socket): | ||
| 7240 | Assume SYNC_INPUT. | ||
| 7241 | * conf_post.h (SA_RESTART) [IRIX6_5]: Do not #undef. | ||
| 7242 | * eval.c (handling_signal): Remove. All uses removed. | ||
| 7243 | * lisp.h (ELSE_PENDING_SIGNALS): Remove. | ||
| 7244 | All uses replaced with the SYNC_INPUT version. | ||
| 7245 | (reset_malloc_hooks, uninterrupt_malloc, handling_signal): | ||
| 7246 | Remove decls. | ||
| 7247 | * sysdep.c, syssignal.h (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 7248 | Now static. | ||
| 7249 | |||
| 7250 | * font.c (Ffont_shape_gstring): Remove unused local. | ||
| 7251 | |||
| 7252 | 2012-09-16 Glenn Morris <rgm@gnu.org> | ||
| 7253 | |||
| 7254 | * Makefile.in (clean): No longer run nextstep's clean. | ||
| 7255 | |||
| 7256 | * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Remove variables. | ||
| 7257 | (ns_frag): Remove. | ||
| 7258 | (ns-app): Move here from ns.mk, and simplify. | ||
| 7259 | (clean): Simplify nextstep entry. | ||
| 7260 | * ns.mk: Remove file. | ||
| 7261 | |||
| 7262 | 2012-09-17 Kenichi Handa <handa@gnu.org> | ||
| 7263 | |||
| 7264 | * font.c (Ffont_shape_gstring): Fix previous change; GLYPHs may | ||
| 7265 | not covert the last few charactes. | ||
| 7266 | |||
| 7267 | 2012-09-16 Kenichi Handa <handa@gnu.org> | ||
| 7268 | |||
| 7269 | * font.c (Ffont_shape_gstring): Don't adjust grapheme cluster | ||
| 7270 | here, but just check the validity of glyphs in the glyph-string. | ||
| 7271 | |||
| 7272 | 2012-09-16 Martin Rudalics <rudalics@gmx.at> | ||
| 7273 | |||
| 7274 | * window.c (Fwindow_parameter, Fset_window_parameter): | ||
| 7275 | Accept any window as argument (Bug#12452). | ||
| 7276 | |||
| 7277 | 2012-09-16 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7278 | |||
| 7279 | * nsfns.m (Fx_open_connection): Move initialization of ns_*_types | ||
| 7280 | to ns_term_init to avoid memory leak. | ||
| 7281 | |||
| 7282 | * nsterm.m (ns_update_begin): Initialize bp after lcokFocus, use | ||
| 7283 | explicit retain/release. | ||
| 7284 | (ns_term_init): Only allow one display. Initialize outerpool and | ||
| 7285 | ns_*_types. | ||
| 7286 | |||
| 7287 | 2012-09-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7288 | |||
| 7289 | Port _setjmp fix to POSIXish hosts as well as Microsoft. | ||
| 7290 | * image.c (_setjmp) [!HAVE__SETJMP]: Restore definition, as | ||
| 7291 | it's needed on POSIXish hosts that lack _setjmp. Attempt to solve | ||
| 7292 | the Microsoft problem in a different way, by altering ../nt/config.nt. | ||
| 7293 | |||
| 7294 | 2012-09-15 Eli Zaretskii <eliz@gnu.org> | ||
| 7295 | |||
| 7296 | * w32xfns.c: | ||
| 7297 | * w32uniscribe.c: | ||
| 7298 | * w32term.c: | ||
| 7299 | * w32select.c: | ||
| 7300 | * w32reg.c: | ||
| 7301 | * w32proc.c: | ||
| 7302 | * w32menu.c: | ||
| 7303 | * w32inevt.c: | ||
| 7304 | * w32heap.c: | ||
| 7305 | * w32font.c: | ||
| 7306 | * w32fns.c: | ||
| 7307 | * w32console.c: | ||
| 7308 | * w32.c: | ||
| 7309 | * w16select.c: Remove inclusion of setjmp.h, as it is now included | ||
| 7310 | by lisp.h. This completes removal of setjmp.h inclusion | ||
| 7311 | erroneously announced in the previous commit. (Bug#12446) | ||
| 7312 | |||
| 7313 | * lisp.h [!HAVE__SETJMP, !HAVE_SIGSETJMP]: Make the commentary | ||
| 7314 | more accurate. | ||
| 7315 | |||
| 7316 | * image.c (_setjmp) [!HAVE__SETJMP]: Define only if 'setjmp' is | ||
| 7317 | not defined as a macro. The latter happens on MS-Windows. | ||
| 7318 | (Bug#12446) | ||
| 7319 | |||
| 7320 | 2012-09-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7321 | |||
| 7322 | Port better to POSIX hosts lacking _setjmp (Bug#12446). | ||
| 7323 | * lisp.h: Include <setjmp.h> here, since we use its symbols here. | ||
| 7324 | Some instances of '#include <setjmp.h>' removed, if the | ||
| 7325 | only reason for the instance was because "lisp.h" was included. | ||
| 7326 | (sys_jmp_buf, sys_setjmp, sys_longjmp): New symbols. | ||
| 7327 | Unless otherwise specified, replace all uses of jmp_buf, _setjmp, | ||
| 7328 | and _longjmp with the new symbols. Emacs already uses _setjmp if | ||
| 7329 | available, so this change affects only POSIXish hosts that have | ||
| 7330 | sigsetjmp but not _setjmp, such as some versions of Solaris and | ||
| 7331 | Unixware. (Also, POSIX-2008 marks _setjmp as obsolescent.) | ||
| 7332 | * image.c (_setjmp, _longjmp) [HAVE_PNG && !HAVE__SETJMP]: New macros. | ||
| 7333 | (png_load_body) [HAVE_PNG]: | ||
| 7334 | (PNG_LONGJMP) [HAVE_PNG && PNG_LIBPNG_VER < 10500]: | ||
| 7335 | (PNG_JMPBUF) [HAVE_PNG && PNG_LIBPNG_VER >= 10500]: | ||
| 7336 | Use _setjmp and _longjmp rather than sys_setjmp and sys_longjmp, | ||
| 7337 | since PNG requires jmp_buf. This is the only exception to the | ||
| 7338 | general rule that we now use sys_setjmp and sys_longjmp. | ||
| 7339 | This exception is OK since this code does not change the signal | ||
| 7340 | mask or longjmp out of a signal handler. | ||
| 7341 | |||
| 7342 | 2012-09-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7343 | |||
| 7344 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: | ||
| 7345 | Include "syssignal.h", for 'main_thread'. | ||
| 7346 | |||
| 7347 | 2012-09-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7348 | |||
| 7349 | Avoid out-of-range marker position (Bug#12426). | ||
| 7350 | * insdel.c (replace_range, replace_range_2): | ||
| 7351 | Adjust markers before overlays, as suggested by comments. | ||
| 7352 | (insert_1_both, insert_from_buffer_1, adjust_after_replace): | ||
| 7353 | Remove redundant check before calling offset_intervals. | ||
| 7354 | |||
| 7355 | 2012-09-14 Martin Rudalics <rudalics@gmx.at> | ||
| 7356 | |||
| 7357 | * xdisp.c (Fformat_mode_line): Unconditionally save/restore | ||
| 7358 | current buffer (Bug#12387). | ||
| 7359 | |||
| 7360 | 2012-09-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 7361 | |||
| 7362 | * makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies. | ||
| 7363 | |||
| 7364 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7365 | |||
| 7366 | Use a more backwards-compatible timer format (Bug#12430). | ||
| 7367 | * keyboard.c (decode_timer): Get PSECS from the 8th (origin-0) | ||
| 7368 | vector element, not from the 4th, since PSECS is now at the end. | ||
| 7369 | (Fcurrent_idle_time): Doc fix. | ||
| 7370 | |||
| 7371 | 2012-09-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7372 | |||
| 7373 | Function to mark objects and remove killed buffers at once. | ||
| 7374 | * alloc.c (discard_killed_buffers): Rename to ... | ||
| 7375 | (mark_discard_killed buffers) ... new name. Add marking | ||
| 7376 | of remaining objects. Fix comment. Adjust users. | ||
| 7377 | (mark_object): Do not touch frame buffer lists here. | ||
| 7378 | * frame.c (delete_frame): Reset frame buffer lists here. | ||
| 7379 | |||
| 7380 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7381 | |||
| 7382 | Better workaround for GNOME bug when --enable-gcc-warnings. | ||
| 7383 | * emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change. | ||
| 7384 | Instead, disable -Wunused-local-typedefs. See Dmitry Antipov in | ||
| 7385 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00335.html>. | ||
| 7386 | |||
| 7387 | Simplify SIGIO usage (Bug#12408). | ||
| 7388 | The code that dealt with SIGIO was crufty and confusing, e.g., it | ||
| 7389 | played tricks like "#undef SIGIO" but these tricks were not used | ||
| 7390 | consistently. Simplify mostly by not #undeffing standard symbols, | ||
| 7391 | e.g., use "defined USABLE_SIGIO" (our symbol, which we can define | ||
| 7392 | or not as we please) rather than "defined SIGIO" (standard symbol | ||
| 7393 | that we probably shouldn't #undef). | ||
| 7394 | * conf_post.h [USG5_4]: Do not include <sys/wait.h> here. | ||
| 7395 | Modules that need it can include it. | ||
| 7396 | [USG5_4 && emacs]: Likewise, do not include the streams stuff here. | ||
| 7397 | * dispextern.h (ignore_sigio): New decl. | ||
| 7398 | * emacs.c (shut_down_emacs): Invoke unrequest_sigio | ||
| 7399 | unconditionally, since it's now a no-op if !USABLE_SIGIO. | ||
| 7400 | * emacs.c (shut_down_emacs): | ||
| 7401 | * keyboard.c (kbd_buffer_store_event_hold): | ||
| 7402 | Use ignore_sigio rather than invoking 'signal' directly. | ||
| 7403 | * keyboard.c (USABLE_FIONREAD && USG5_4): Include <sys/filio.h>, | ||
| 7404 | for FIONREAD. | ||
| 7405 | (FIONREAD, SIGIO): Do not #undef. | ||
| 7406 | (tty_read_avail_input): Use #error rather than a syntax error. | ||
| 7407 | * process.c [USG5_4]: Include <sys/stream.h> and <sys/stropts.h>, | ||
| 7408 | for I_PIPE, used by SETUP_SLAVE_PTY. | ||
| 7409 | (DATAGRAM_SOCKETS): Simplify defn, based on USABLE_FIONREAD. | ||
| 7410 | * sysdep.c (croak): Remove; no longer needed. This bit of | ||
| 7411 | temporary code, with Fred N. Fish's comment that it's temporary, | ||
| 7412 | has been in Emacs since at least 1992! | ||
| 7413 | (init_sigio, reset_sigio, request_sigio, unrequest_sigio): | ||
| 7414 | Arrange for them to be no-ops in all cases when ! USABLE_SIGIO. | ||
| 7415 | * syssignal.h (croak): Remove decl. | ||
| 7416 | (SIGIO, SIGPOO, SIGAIO, SIGPTY): Do not #undef; that's too fragile. | ||
| 7417 | * systty.h [!NO_TERMIO]: Do not include <termio.h>; no longer needed | ||
| 7418 | now that we're termios-only. | ||
| 7419 | (FIONREAD, ASYNC) [BROKEN_FIONREAD]: Do not #undef. | ||
| 7420 | * term.c (dissociate_if_controlling_tty): Use #error rather than | ||
| 7421 | a run-time error. | ||
| 7422 | |||
| 7423 | Work around GCC and GNOME bugs when --enable-gcc-warnings. | ||
| 7424 | * emacsgtkfixed.c (G_STATIC_ASSERT): Redefine to use 'verify', | ||
| 7425 | to work around GNOME bug 683906. | ||
| 7426 | * image.c (jpeg_load_body) [HAVE_JPEG && lint]: Pacify gcc -Wclobber. | ||
| 7427 | (struct my_jpeg_error_mgr) [HAVE_JPEG && lint]: New member fp. | ||
| 7428 | This works around GCC bug 54561. | ||
| 7429 | |||
| 7430 | 2012-09-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7431 | |||
| 7432 | More fixes for 'volatile' and setjmp/longjmp. | ||
| 7433 | * eval.c (Fdefvar, Fcondition_case): Remove unnecessary 'volatile's. | ||
| 7434 | * image.c (struct png_load_context) [HAVE_PNG]: New type. | ||
| 7435 | (png_load_body) [HAVE_PNG]: | ||
| 7436 | (jpeg_load_body) [HAVE_JPEG]: | ||
| 7437 | New function, with most of the old parent function's body. | ||
| 7438 | (png_load) [HAVE_PNG]: | ||
| 7439 | (jpeg_load) [HAVE_JPEG]: | ||
| 7440 | Invoke the new function, to avoid longjmp munging our locals. | ||
| 7441 | (struct my_jpeg_error_mgr) [HAVE_JPEG]: New members cinfo, failure_code. | ||
| 7442 | (my_error_exit) [HAVE_JPEG]: Don't trust 'setjmp' to return 2 when | ||
| 7443 | longjmp is passed 2, as the C standard doesn't guarantee this. | ||
| 7444 | Instead, store the failure code into mgr->failure_code. | ||
| 7445 | |||
| 7446 | 2012-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7447 | |||
| 7448 | * keyboard.c (read_char, requeued_events_pending_p, Finput_pending_p) | ||
| 7449 | (Fdiscard_input, quit_throw_to_read_char, init_keyboard) | ||
| 7450 | (syms_of_keyboard): Remove support for unread-command-char. | ||
| 7451 | |||
| 7452 | 2012-09-12 Eli Zaretskii <eliz@gnu.org> | ||
| 7453 | |||
| 7454 | * w32proc.c (sys_kill): If PID is our process ID and the signal is | ||
| 7455 | SIGABRT, call emacs_abort. Avoids silently exiting upon assertion | ||
| 7456 | violation. (Bug#12426) | ||
| 7457 | |||
| 7458 | 2012-09-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7459 | |||
| 7460 | * image.c (jpeg_memory_src): Don't assume string len fits in unsigned. | ||
| 7461 | |||
| 7462 | 2012-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7463 | |||
| 7464 | * eval.c: Add `inhibit-debugger'. | ||
| 7465 | (Qinhibit_debugger): New symbol. | ||
| 7466 | (call_debugger): Bind it instead of Qdebug_on_error. | ||
| 7467 | (maybe_call_debugger): Test Vinhibit_debugger. | ||
| 7468 | (syms_of_eval): Define inhibit-debugger. | ||
| 7469 | * xdisp.c (set_message): Don't bind Qinhibit_debug_on_message. | ||
| 7470 | (syms_of_xdisp): Remove inhibit-debug-on-message. | ||
| 7471 | |||
| 7472 | 2012-09-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7473 | |||
| 7474 | Avoid _setjmp/_longjmp problems with local nonvolatile variables. | ||
| 7475 | If a nonvolatile local variable is written before a _longjmp to | ||
| 7476 | the frame containing the variable, and is read after the _longjmp, | ||
| 7477 | the value read is indeterminate. Some local variables of type | ||
| 7478 | 'struct handler' and 'struct catchtag' are used in this way, so | ||
| 7479 | mark each of their slots as volatile if the slot can be set before | ||
| 7480 | _longjmp and read afterwards. | ||
| 7481 | * lisp.h (struct handler): var and chosen_clause are now volatile. | ||
| 7482 | (struct catchtag): val, next, and pdlcount are now volatile. | ||
| 7483 | |||
| 7484 | * bidi.c (bidi_push_it, bidi_pop_it): | ||
| 7485 | * fns.c (copy_hash_table): | ||
| 7486 | * image.c (define_image_type): | ||
| 7487 | * keyboard.c (kbd_buffer_store_event_hold): | ||
| 7488 | * process.c (Fprocess_send_eof): | ||
| 7489 | * xfaces.c (x_create_gc) [HAVE_NS]: | ||
| 7490 | * xgselect.c (xg_select): | ||
| 7491 | Prefer assignment to memcpy when either will do. | ||
| 7492 | |||
| 7493 | * alloc.c (discard_killed_buffers): Tune and simplify a bit. | ||
| 7494 | Use pointer-to-a-pointer to simplify and avoid a NILP check each | ||
| 7495 | time an item is removed. No need to mark this function 'inline'; | ||
| 7496 | the compiler knows better than we do. | ||
| 7497 | |||
| 7498 | 2012-09-11 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7499 | |||
| 7500 | * nsterm.m (ns_judge_scroll_bars): Pass NO to updateFrameSize. | ||
| 7501 | (updateFrameSize:): Add delay parameter to updateFrameSize, send it | ||
| 7502 | to change_frame_size (Bug#12388). | ||
| 7503 | (windowDidResize:): Pass YES to updateFrameSize. | ||
| 7504 | |||
| 7505 | * nsterm.h: Add delay parameter to updateFrameSize. | ||
| 7506 | |||
| 7507 | 2012-09-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7508 | |||
| 7509 | Discard killed buffers from deleted window and frame objects. | ||
| 7510 | This reduces an amount of references to killed buffers and | ||
| 7511 | helps GC to reclaim them faster. | ||
| 7512 | * alloc.c (discard_killed_buffers): New function. | ||
| 7513 | (mark_object): Use it for deleted windows and frames. | ||
| 7514 | (mark_object): If symbol's value is set up for a killed buffer | ||
| 7515 | or deleted frame, restore its global binding. | ||
| 7516 | * data.c (swap_in_global_binding): Add GC notice. | ||
| 7517 | (swap_in_symval_forwarding): Use convenient set_blv_where. | ||
| 7518 | * window.c (wset_next_buffers, wset_prev_buffers): Move ... | ||
| 7519 | * window.h: ... to here. | ||
| 7520 | |||
| 7521 | 2012-09-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7522 | |||
| 7523 | Convenient macro to check whether the buffer is live. | ||
| 7524 | * buffer.h (BUFFER_LIVE_P): New macro. | ||
| 7525 | * alloc.c, buffer.c, editfns.c, insdel.c, lread.c, marker.c: | ||
| 7526 | * minibuf.c, print.c, process.c, window.c, xdisp.c: Use it. | ||
| 7527 | |||
| 7528 | 2012-09-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 7529 | |||
| 7530 | * xdisp.c (right_overwritten, right_overwriting): Also handle gstring | ||
| 7531 | composition cases (Bug#12364). | ||
| 7532 | |||
| 7533 | * xterm.c (x_draw_glyph_string): Avoid overwriting inverted left | ||
| 7534 | overhang of succeeding glyphs overlapping box cursor. | ||
| 7535 | |||
| 7536 | * w32term.c (x_draw_glyph_string): Likewise. | ||
| 7537 | |||
| 7538 | 2012-09-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7539 | |||
| 7540 | Simplify, document, and port floating-point (Bug#12381). | ||
| 7541 | The porting part of this patch fixes bugs on non-IEEE platforms | ||
| 7542 | with frexp, ldexp, logb. | ||
| 7543 | * data.c, lisp.h (Qdomain_error, Qsingularity_error, Qunderflow_error): | ||
| 7544 | Now static. | ||
| 7545 | * floatfns.c: Simplify discussion of functions that Emacs doesn't | ||
| 7546 | support, by removing commented-out code and briefly listing the | ||
| 7547 | C89 functions excluded. The commented-out stuff was confusing | ||
| 7548 | maintenance, e.g., we thought we needed cbrt but it was commented out. | ||
| 7549 | (logb): Remove decl; no longer needed. | ||
| 7550 | (isfinite): New macro, if not already supplied. | ||
| 7551 | (isnan): Don't replace any existing macro. | ||
| 7552 | (Ffrexp, Fldexp): Define even if !HAVE_COPYSIGN, as frexp and ldexp | ||
| 7553 | are present on all C89 platforms. | ||
| 7554 | (Ffrexp): Do not special-case zero, as frexp does the right thing | ||
| 7555 | for that case. | ||
| 7556 | (Flogb): Do not use logb, as it doesn't have the desired meaning | ||
| 7557 | on hosts that use non-base-2 floating point. Instead, stick with | ||
| 7558 | frexp, which is C89 anyway. Do not pass an infinity or a NaN to | ||
| 7559 | frexp, to avoid getting an unspecified result. | ||
| 7560 | |||
| 7561 | * xdisp.c (Qinhibit_debug_on_message): Now static. | ||
| 7562 | |||
| 7563 | 2012-09-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7564 | |||
| 7565 | * nsterm.m (ns_update_begin): Set clip path to whole view by using | ||
| 7566 | NSBezierPath (Bug#12131). | ||
| 7567 | |||
| 7568 | 2012-09-10 Chong Yidong <cyd@gnu.org> | ||
| 7569 | |||
| 7570 | * fns.c (Fdelq, Fdelete): Doc fix. | ||
| 7571 | |||
| 7572 | 2012-09-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7573 | |||
| 7574 | * lisp.h (XSETINT, XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL) | ||
| 7575 | (XSETFLOAT, XSETMISC): Parenthesize macro bodies. | ||
| 7576 | |||
| 7577 | 2012-09-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7578 | |||
| 7579 | * lisp.h (make_lisp_ptr): New macro to replace XSET. | ||
| 7580 | (XSETCONS, XSETVECTOR, XSETSTRING, XSETSYMBOL, XSETFLOAT, XSETMISC): | ||
| 7581 | Use it. | ||
| 7582 | |||
| 7583 | 2012-09-09 Eli Zaretskii <eliz@gnu.org> | ||
| 7584 | |||
| 7585 | * fringe.c (draw_fringe_bitmap_1): Don't reduce the width of the | ||
| 7586 | left fringe if the window has a left margin. This avoids leaving | ||
| 7587 | traces of the cursor because its leftmost pixel is not drawn over. | ||
| 7588 | |||
| 7589 | * dispnew.c (update_window_line): When the left margin area of a | ||
| 7590 | screen line is updated, set the redraw_fringe_bitmaps_p flag of | ||
| 7591 | that screen line. (Bug#12277) | ||
| 7592 | |||
| 7593 | 2012-09-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7594 | |||
| 7595 | Assume C89 or later for math functions (Bug#12381). | ||
| 7596 | This simplifies the code, and makes it a bit smaller and faster, | ||
| 7597 | and (most important) makes it easier to clean up signal handling | ||
| 7598 | since we can stop worring about floating-point exceptions in | ||
| 7599 | library code. That was a problem before C89, but the problem | ||
| 7600 | went away many years ago on all practical Emacs targets. | ||
| 7601 | * data.c, image.c, lread.c, print.c: | ||
| 7602 | Don't include <math.h>; no longer needed. | ||
| 7603 | * data.c, floatfns.c (IEEE_FLOATING_POINT): Don't worry that it | ||
| 7604 | might be autoconfigured, as that never happens. | ||
| 7605 | * data.c (fmod): | ||
| 7606 | * doprnt.c (DBL_MAX_10_EXP): | ||
| 7607 | * print.c (DBL_DIG): | ||
| 7608 | Remove. C89 or later always defines these. | ||
| 7609 | * floatfns.c (HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CHECK_DOMAIN) | ||
| 7610 | (in_float, float_error_arg, float_error_arg2, float_error_fn_name) | ||
| 7611 | (arith_error, domain_error, domain_error2): | ||
| 7612 | Remove all this pre-C89 cruft. Do not include <errno.h> as that's | ||
| 7613 | no longer needed -- we simply return what C returns. All uses removed. | ||
| 7614 | (IN_FLOAT, IN_FLOAT2): Remove. All uses replaced with | ||
| 7615 | the wrapped code. | ||
| 7616 | (FLOAT_TO_INT, FLOAT_TO_INT2, range_error, range_error2): | ||
| 7617 | Remove. All uses expanded, as these macros are no longer used | ||
| 7618 | more than once and are now more trouble than they're worth. | ||
| 7619 | (Ftan): Use tan, not sin / cos. | ||
| 7620 | (Flogb): Assume C89 frexp. | ||
| 7621 | (fmod_float): Assume C89 fmod. | ||
| 7622 | (matherr) [HAVE_MATHERR]: Remove; no longer needed. | ||
| 7623 | (init_floatfns): Remove. All uses removed. | ||
| 7624 | |||
| 7625 | 2012-09-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7626 | |||
| 7627 | * nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Take back | ||
| 7628 | compositeToPoint for OSX < 10.6 (Bug#12390). | ||
| 7629 | |||
| 7630 | 2012-09-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7631 | |||
| 7632 | * floatfns.c (Ftan): Use tan (x), not (sin (x) / cos (x)). | ||
| 7633 | This produces more-accurate results. | ||
| 7634 | |||
| 7635 | 2012-09-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7636 | |||
| 7637 | * nsterm.m (updateFrameSize): Call setFrame: on the view when size | ||
| 7638 | changes (Bug#12088). | ||
| 7639 | |||
| 7640 | 2012-09-08 Chong Yidong <cyd@gnu.org> | ||
| 7641 | |||
| 7642 | * syntax.c (Fstring_to_syntax): Doc fix. | ||
| 7643 | |||
| 7644 | 2012-09-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 7645 | |||
| 7646 | * nsterm.m (ns_clip_to_row): Remove code that deals with drawing fringe | ||
| 7647 | in the internal border. | ||
| 7648 | (x_set_window_size): Remove static variables and their usage. | ||
| 7649 | (ns_redraw_scroll_bars): Fix NSTRACE arg. | ||
| 7650 | (ns_after_update_window_line, ns_draw_fringe_bitmap): | ||
| 7651 | Remove fringe/internal border adjustment (Bug#11052). | ||
| 7652 | (ns_draw_fringe_bitmap): Make code more like other terms (xterm.c). | ||
| 7653 | (ns_draw_window_cursor): Remove fringe/internal border adjustment. | ||
| 7654 | (ns_fix_rect_ibw): Remove. | ||
| 7655 | (ns_get_glyph_string_clip_rect): Remove call to ns_fix_rect_ibw. | ||
| 7656 | (ns_dumpglyphs_box_or_relief): Ditto. | ||
| 7657 | (ns_maybe_dumpglyphs_background): Remove fringe/internal border | ||
| 7658 | adjustment. | ||
| 7659 | (ns_dumpglyphs_image): Ditto. | ||
| 7660 | (ns_dumpglyphs_stretch): Fix coding style. Remove fringe/internal | ||
| 7661 | border adjustment. | ||
| 7662 | (ns_set_vertical_scroll_bar): Remove variables barOnVeryLeft/Right and | ||
| 7663 | their usage. Add fringe_extended_p and its use as in other terms. | ||
| 7664 | (ns_judge_scroll_bars): Code style fix. Call updateFrameSize if | ||
| 7665 | scroll bar was removed. | ||
| 7666 | (updateFrameSize): New function. | ||
| 7667 | (windowDidResize): Move code to updateFrameSize and call it. | ||
| 7668 | |||
| 7669 | * nsterm.h (EmacsView): Add updateFrameSize. | ||
| 7670 | |||
| 7671 | 2012-09-07 Chong Yidong <cyd@gnu.org> | ||
| 7672 | |||
| 7673 | * textprop.c (Fget_text_property): Minor doc fix (Bug#12323). | ||
| 7674 | |||
| 7675 | * data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713). | ||
| 7676 | |||
| 7677 | 2012-09-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7678 | |||
| 7679 | More signal-handler cleanup (Bug#12327). | ||
| 7680 | * emacs.c (main): Convert three 'signal' calls to 'sigaction' calls. | ||
| 7681 | Problem introduced when merging patches. Noted by Eli Zaretskii in | ||
| 7682 | <http://bugs.gnu.org/12327#67>. | ||
| 7683 | * floatfns.c: Comment fix. | ||
| 7684 | * lisp.h (force_auto_save_soon): Declare regardless of SIGDANGER. | ||
| 7685 | SIGDANGER might not be in scope so "#ifdef SIGDANGER" is not right, | ||
| 7686 | and anyway the declaration is harmless even if SIGDANGER is not defined. | ||
| 7687 | * syssignal.h (SIGIO): Also #undef if (! defined FIONREAD || | ||
| 7688 | defined BROKEN_FIONREAD). systty.h formerly did this, but other | ||
| 7689 | source files not surprisingly expected syssignal.h to define, or | ||
| 7690 | not define, SIGIO, and it's cleaner to do it that way, for consistency. | ||
| 7691 | Include <sys/ioctl.h>, for FIONREAD. | ||
| 7692 | * systty.h (SIGIO): Do not #undef here; it's now syssignal.h's job. | ||
| 7693 | This eliminates a problem whereby other files mysteriously had | ||
| 7694 | to include "syssignal.h" before including "systty.h" if they | ||
| 7695 | wanted to use "#ifdef SIGIO". | ||
| 7696 | |||
| 7697 | 2012-09-07 Eli Zaretskii <eliz@gnu.org> | ||
| 7698 | |||
| 7699 | * w32proc.c (sigaction): New function, emulates Posix 'sigaction'. | ||
| 7700 | |||
| 7701 | * w32.c (sigemptyset): Empty the set. | ||
| 7702 | (sigsetmask, sigmask, sigblock, sigunblock): Remove unused functions. | ||
| 7703 | |||
| 7704 | * alloc.c [ENABLE_CHECKING]: Include signal.h, since we need SIGABRT. | ||
| 7705 | |||
| 7706 | 2012-09-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7707 | |||
| 7708 | * alloc.c (mark_buffer): Revert unsafe marking optimization. | ||
| 7709 | (mark_object): Likewise for frame objects. | ||
| 7710 | |||
| 7711 | 2012-09-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7712 | |||
| 7713 | * syssignal.h (handle_on_main_thread): Always declare, | ||
| 7714 | even if FORWARD_SIGNAL_TO_MAIN_THREAD is not defined. | ||
| 7715 | This ports to platforms without HAVE_PTHREAD. | ||
| 7716 | |||
| 7717 | 2012-09-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7718 | |||
| 7719 | Signal-handler cleanup (Bug#12327). | ||
| 7720 | Emacs's signal handlers were written in the old 4.2BSD style with | ||
| 7721 | sigblock and sigmask and so forth, and this led to some | ||
| 7722 | inefficiencies and confusion. Rewrite these to use | ||
| 7723 | pthread_sigmask etc. without copying signal sets around. Also, | ||
| 7724 | get rid of the confusing macros 'SIGNAL_THREAD_CHECK' and | ||
| 7725 | 'signal', and instead use functions that do not attempt to take | ||
| 7726 | over the system name space. This patch causes Emacs's text | ||
| 7727 | segment to shrink by 0.7% on my platform, Fedora 17 x86-64. | ||
| 7728 | * alloc.c, emacsgtkfixed.c, nsfns.m, widget.c, xmenu.c: | ||
| 7729 | Do not include <signal.h> or "syssignal.h", as these | ||
| 7730 | modules do not use signals. | ||
| 7731 | * atimer.c, callproc.c, data.c, dispnew.c, emacs.c, floatfns.c: | ||
| 7732 | * gtkutil.c, keyboard.c, process.c, sound.c, sysdep.c, term.c, xterm.c: | ||
| 7733 | Do not include <signal.h>, as "syssignal.h" does that for us now. | ||
| 7734 | * atimer.c (sigmask_atimers): New function. | ||
| 7735 | (block_atimers, unblock_atimers): New functions, | ||
| 7736 | replacing the old macros BLOCK_ATIMERS and UNBLOCK_ATIMERS. | ||
| 7737 | All uses replaced. | ||
| 7738 | * conf_post.h [SIGNAL_H_AHB]: Do not include <signal.h>; | ||
| 7739 | no longer needed here. | ||
| 7740 | * emacs.c (main): Inspect existing signal handler with sigaction, | ||
| 7741 | so that there's no need to block and unblock SIGHUP. | ||
| 7742 | * sysdep.c (struct save_signal): New member 'action', replacing | ||
| 7743 | old member 'handler'. | ||
| 7744 | (save_signal_handlers, restore_signal_handlers): | ||
| 7745 | Use sigaction instead of 'signal' to save and restore. | ||
| 7746 | (get_set_sighandler, set_sighandler) [!WINDOWSNT]: | ||
| 7747 | New function. All users of 'signal' modified to use set_sighandler | ||
| 7748 | if they're writeonly, and to use sys_signal if they're read+write. | ||
| 7749 | (emacs_sigaction_init, forwarded_signal): New functions. | ||
| 7750 | (sys_signal): Remove. All uses replaced by calls to sigaction | ||
| 7751 | and emacs_sigaction_init, or by direct calls to 'signal'. | ||
| 7752 | (sys_sigmask) [!__GNUC__]: Remove; no longer needed. | ||
| 7753 | (sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove; | ||
| 7754 | all uses replaced by pthread_sigmask etc. calls. | ||
| 7755 | * syssignal.h: Include <signal.h>. | ||
| 7756 | (emacs_sigaction_init, forwarded_signal): New decls. | ||
| 7757 | (SIGMASKTYPE): Remove. All uses replaced by its definiens, sigset_t. | ||
| 7758 | (SIGEMPTYMASK): Remove; all uses replaced by its definiens, empty_mask. | ||
| 7759 | (sigmask, sys_sigmask): Remove; no longer needed. | ||
| 7760 | (sigpause): Remove. All uses replaced by its definiens, sigsuspend. | ||
| 7761 | (sigblock, sigunblock, sigfree): | ||
| 7762 | (sigsetmask) [!defined sigsetmask]: | ||
| 7763 | Remove. All uses replaced by pthread_sigmask. | ||
| 7764 | (signal): Remove. Its remaining uses (with SIG_DFL and SIG_IGN) | ||
| 7765 | no longer need to be replaced, and its typical old uses | ||
| 7766 | are now done via emacs_sigaction_init and sigaction. | ||
| 7767 | (sys_sigblock, sys_sigunblock, sys_sigsetmask): Remove decls. | ||
| 7768 | (sys_sigdel): Remove; unused. | ||
| 7769 | (NSIG): Remove a FIXME; the code's fine. Remove an unnecessary ifdef. | ||
| 7770 | |||
| 7771 | 2012-09-06 Eli Zaretskii <eliz@gnu.org> | ||
| 7772 | |||
| 7773 | * process.c (CAN_HANDLE_MULTIPLE_CHILDREN): Fix a typo that broke | ||
| 7774 | SIGCHLD handling on systems that don't have WNOHANG. (Bug#12327) | ||
| 7775 | |||
| 7776 | 2012-09-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7777 | |||
| 7778 | Explicitly mark buffer_defaults and buffer_local_symbols. | ||
| 7779 | * alloc.c (Fgarbage_collect): Mark buffer_defaults and | ||
| 7780 | mark_local_symbols here. | ||
| 7781 | (mark_object): If GC_CHECK_MARKED_OBJECTS, simplify checking | ||
| 7782 | since special buffers aren't marked here any more. | ||
| 7783 | (allocate_buffer): Chain new buffer with all_buffers here... | ||
| 7784 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): ...and | ||
| 7785 | not here. | ||
| 7786 | (Vbuffer_defaults, Vbuffer_local_symbols): Remove. | ||
| 7787 | (syms_of_buffer): Remove staticpro of the above. | ||
| 7788 | (init_buffer_once): Set names for buffer_defaults and | ||
| 7789 | buffer_local_symbols. | ||
| 7790 | |||
| 7791 | 2012-09-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7792 | |||
| 7793 | Use bool for booleans in font-related modules. | ||
| 7794 | * font.c (font_intern_prop, font_style_to_value) | ||
| 7795 | (font_style_symbolic, font_parse_xlfd, font_parse_fcname) | ||
| 7796 | (generate_otf_features, font_check_otf_features, font_check_otf) | ||
| 7797 | (font_match_p, font_list_entities, font_at): | ||
| 7798 | * fontset.c (fontset_id_valid_p, reorder_font_vector | ||
| 7799 | (fontset_find_font, Fset_fontset_font) | ||
| 7800 | (face_suitable_for_char_p) [0]: | ||
| 7801 | * ftfont.c (fc_initialized, ftfont_get_open_type_spec) | ||
| 7802 | (ftfont_open, ftfont_text_extents, ftfont_check_otf): | ||
| 7803 | (m17n_flt_initialized, ftfont_shape_by_flt): | ||
| 7804 | * ftxfont.c (ftxfont_draw_bitmap, ftxfont_draw): | ||
| 7805 | * nsfont.m (nsfont_draw): | ||
| 7806 | * w32font.c (w32font_draw): | ||
| 7807 | * w32term.c (x_draw_glyphless_glyph_string_foreground): | ||
| 7808 | Use bool for booleans. | ||
| 7809 | * font.h: Adjust to above API changes. | ||
| 7810 | (struct font, struct font_driver, struct font_driver_list): | ||
| 7811 | Use bool for booleans. | ||
| 7812 | (struct font): Remove useless member encoding_type. | ||
| 7813 | All users removed. | ||
| 7814 | * fontset.c, xftfont.c: Omit unnecessary static decls. | ||
| 7815 | |||
| 7816 | 2012-09-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7817 | |||
| 7818 | * alloc.c (mark_object): Revert window marking code | ||
| 7819 | since it's unsafe for the Fset_window_configuration. | ||
| 7820 | |||
| 7821 | 2012-09-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7822 | |||
| 7823 | Fix race conditions with signal handlers and errno (Bug#12327). | ||
| 7824 | Be more systematic about preserving errno whenever a signal | ||
| 7825 | handler returns, even if it's not in the main thread. Do this by | ||
| 7826 | renaming signal handlers to distinguish between signal delivery | ||
| 7827 | and signal handling. All uses changed. | ||
| 7828 | * atimer.c (deliver_alarm_signal): Rename from alarm_signal_handler. | ||
| 7829 | * data.c (deliver_arith_signal): Rename from arith_error. | ||
| 7830 | * dispnew.c (deliver_window_change_signal): Rename from | ||
| 7831 | window_change_signal. | ||
| 7832 | * emacs.c (deliver_error_signal): Rename from fatal_error_signal. | ||
| 7833 | (deliver_danger_signal) [SIGDANGER]: Rename from memory_warning_signal. | ||
| 7834 | * keyboard.c (deliver_input_available_signal): Rename from | ||
| 7835 | input_available_signal. | ||
| 7836 | (deliver_user_signal): Rename from handle_user_signal. | ||
| 7837 | (deliver_interrupt_signal): Rename from interrupt_signal. | ||
| 7838 | * process.c (deliver_pipe_signal): Rename from send_process_trap. | ||
| 7839 | (deliver_child_signal): Rename from sigchld_handler. | ||
| 7840 | * atimer.c (handle_alarm_signal): | ||
| 7841 | * data.c (handle_arith_signal): | ||
| 7842 | * dispnew.c (handle_window_change_signal): | ||
| 7843 | * emacs.c (handle_fatal_signal, handle_danger_signal): | ||
| 7844 | * keyboard.c (handle_input_available_signal): | ||
| 7845 | * keyboard.c (handle_user_signal, handle_interrupt_signal): | ||
| 7846 | * process.c (handle_pipe_signal, handle_child_signal): | ||
| 7847 | New functions, with the actual signal-handling code taken from the | ||
| 7848 | original respective signal handlers, sans the sporadic attempts to | ||
| 7849 | preserve errno, since that's now done by handle_on_main_thread. | ||
| 7850 | * atimer.c (alarm_signal_handler): Remove unnecessary decl. | ||
| 7851 | * emacs.c, floatfns.c, lisp.h: Remove unused FLOAT_CATCH_SIGKILL cruft. | ||
| 7852 | * emacs.c (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 7853 | Move to sysdep.c. | ||
| 7854 | (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 7855 | Move initialization of main_thread to sysdep.c's init_signals. | ||
| 7856 | * process.c (waitpid) [!WNOHANG]: #define to wait; that's good enough for | ||
| 7857 | our usage, and simplifies the mainline code. | ||
| 7858 | (record_child_status_change): New static function, as a helper | ||
| 7859 | for handle_child_signal, and with most of the old child handler's | ||
| 7860 | contents. | ||
| 7861 | (CAN_HANDLE_MULTIPLE_CHILDREN): New constant. | ||
| 7862 | (handle_child_signal): Use the above. | ||
| 7863 | * sysdep.c (main_thread) [FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 7864 | Moved here from emacs.c. | ||
| 7865 | (init_signals) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it; | ||
| 7866 | code moved here from emacs.c's main function. | ||
| 7867 | * sysdep.c, syssignal.h (handle_on_main_thread): New function, | ||
| 7868 | replacing the old SIGNAL_THREAD_CHECK. All uses changed. | ||
| 7869 | This lets callers save and restore errno properly. | ||
| 7870 | |||
| 7871 | 2012-09-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7872 | |||
| 7873 | Remove redundant or unused things here and there. | ||
| 7874 | * lisp.h (CYCLE_CHECK, CHAR_TABLE_TRANSLATE): Remove. | ||
| 7875 | * conf_post.h (RE_TRANSLATE): Use char_table_translate. | ||
| 7876 | * editfns.c (Fcompare_buffer_substrings): Likewise. | ||
| 7877 | * frame.h (struct terminal, struct font_driver_list): | ||
| 7878 | Remove redundant declarations. | ||
| 7879 | * window.h (Qleft, Qright): Likewise. | ||
| 7880 | |||
| 7881 | 2012-09-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7882 | |||
| 7883 | Do not mark objects from deleted buffers, windows and frames. | ||
| 7884 | * alloc.c (mark_buffer): Mark just the buffer if it is dead. | ||
| 7885 | (mark_object): Likewise for windows and frames. | ||
| 7886 | |||
| 7887 | 2012-09-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7888 | |||
| 7889 | * alloc.c (valid_lisp_object_p): Treat killed buffers, | ||
| 7890 | buffer_defaults and buffer_local_symbols as valid objects. | ||
| 7891 | Return special value to denote them. | ||
| 7892 | |||
| 7893 | 2012-09-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7894 | |||
| 7895 | * fileio.c, filelock.c, floatfns.c, fns.c: Use bool for boolean. | ||
| 7896 | * fileio.c (auto_saving, auto_save_error_occurred, make_temp_name) | ||
| 7897 | (Fexpand_file_name, barf_or_query_if_file_exists, Fcopy_file) | ||
| 7898 | (file_name_absolute_p, Fsubstitute_in_file_name): | ||
| 7899 | (check_executable, check_writable, Ffile_accessible_directory_p) | ||
| 7900 | (Fset_file_selinux_context, Fdefault_file_modes) | ||
| 7901 | (Finsert_file_contents, choose_write_coding_system) | ||
| 7902 | (Fwrite_region, build_annotations, a_write, e_write) | ||
| 7903 | (Fdo_auto_save): | ||
| 7904 | * filelock.c (boot_time_initialized, get_boot_time) | ||
| 7905 | (get_boot_time_1, lock_file_1, within_one_second): | ||
| 7906 | * floatfns.c (in_float): | ||
| 7907 | * fns.c (concat, internal_equal, Frequire, base64_encode_1) | ||
| 7908 | (base64_decode_1, cmpfn_eql, cmpfn_user_defined) | ||
| 7909 | (sweep_weak_table, sweep_weak_hash_tables, secure_hash): | ||
| 7910 | * lisp.h (struct Lisp_Hash_Table.cmpfn): | ||
| 7911 | * window.c (compare_window_configurations): | ||
| 7912 | Use bool for booleans. | ||
| 7913 | * fileio.c (auto_saving_dir_umask, auto_saving_mode_bits) | ||
| 7914 | (Fdefault_file_modes): Now mode_t, not int, for modes. | ||
| 7915 | (Fdo_auto_save): Set a boolean to 1 rather than using ++. | ||
| 7916 | (internal_delete_file): Now returns void, not a (boolean) int, | ||
| 7917 | since nobody was looking at the return value. | ||
| 7918 | * lisp.h, window.h: Adjust to above API changes. | ||
| 7919 | |||
| 7920 | * xdisp.c (set_message): Simplify and reindent last change. | ||
| 7921 | |||
| 7922 | 2012-09-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 7923 | |||
| 7924 | * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies. | ||
| 7925 | |||
| 7926 | 2012-09-04 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 7927 | |||
| 7928 | * eval.c (call_debugger): Make the function non-static so that we | ||
| 7929 | can call it from set_message. | ||
| 7930 | |||
| 7931 | * xdisp.c (set_message): Implement the new variable `debug-on-message'. | ||
| 7932 | (syms_of_xdisp): Defvar it and `inhibit-debug-on-message'. | ||
| 7933 | |||
| 7934 | 2012-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7935 | |||
| 7936 | Give more-useful info on a fatal error (Bug#12328). | ||
| 7937 | * alloc.c [ENABLE_CHECKING]: Do not include <execinfo.h>. | ||
| 7938 | (die) [ENABLE_CHECKING]: Call fatal_error_backtrace instead | ||
| 7939 | of doing the work ourselves. | ||
| 7940 | * emacs.c (fatal_error_signal): Let fatal_error_backtrace | ||
| 7941 | do most of the work. | ||
| 7942 | (fatal_error_backtrace): New function, taken from the guts | ||
| 7943 | of the old fatal_error_signal, but with a new option to output | ||
| 7944 | a backtrace. | ||
| 7945 | (shut_down_emacs) [!DOS_NT]: Use strsignal to give more-useful | ||
| 7946 | info about the signal than just its number. | ||
| 7947 | * lisp.h (fatal_error_backtrace, emacs_backtrace): New decls. | ||
| 7948 | * sysdep.c: Include <execinfo.h> | ||
| 7949 | (emacs_backtrace): New function, taken partly from the previous | ||
| 7950 | code of the 'die' function. | ||
| 7951 | (emacs_abort): Call fatal_error_backtrace rather than abort. | ||
| 7952 | |||
| 7953 | 2012-09-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7954 | |||
| 7955 | * lread.c (readevalloop): Call internal-macroexpand-for-load to perform | ||
| 7956 | eager (load-time) macro-expansion. | ||
| 7957 | * lisp.mk (lisp): Add macroexp. | ||
| 7958 | |||
| 7959 | 2012-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7960 | |||
| 7961 | Simplify redefinition of 'abort' (Bug#12316). | ||
| 7962 | Do not try to redefine the 'abort' function. Instead, redo | ||
| 7963 | the code so that it calls 'emacs_abort' rather than 'abort'. | ||
| 7964 | This removes the need for the NO_ABORT configure-time macro | ||
| 7965 | and makes it easier to change the abort code to do a backtrace. | ||
| 7966 | * .gdbinit: Just stop at emacs_abort, not at w32_abort or abort. | ||
| 7967 | * emacs.c (abort) [!DOS_NT && !NO_ABORT]: | ||
| 7968 | Remove; sysdep.c's emacs_abort now takes its place. | ||
| 7969 | * lisp.h (emacs_abort): New decl. All calls from Emacs code to | ||
| 7970 | 'abort' changed to use 'emacs_abort'. | ||
| 7971 | * msdos.c (dos_abort) [defined abort]: Remove; not used. | ||
| 7972 | (abort) [!defined abort]: Rename to ... | ||
| 7973 | (emacs_abort): ... new name. | ||
| 7974 | * sysdep.c (emacs_abort) [!HAVE_NTGUI]: New function, taking | ||
| 7975 | the place of the old 'abort' in emacs.c. | ||
| 7976 | * w32.c, w32fns.c (abort): Do not #undef. | ||
| 7977 | * w32.c (emacs_abort): Rename from w32_abort. | ||
| 7978 | |||
| 7979 | 2012-09-04 Eli Zaretskii <eliz@gnu.org> | ||
| 7980 | |||
| 7981 | * w32uniscribe.c (uniscribe_shape): Reverse the sign of | ||
| 7982 | offsets[j].dv, since the y axis of the screen coordinates points | ||
| 7983 | down, while the y axis of the font definition coordinates points | ||
| 7984 | up. This fixes display of Arabic diacritics such as KASRA and | ||
| 7985 | KASRATAN. (Bug#11860) | ||
| 7986 | |||
| 7987 | 2012-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7988 | |||
| 7989 | Be more systematic about _setjmp vs setjmp. | ||
| 7990 | * alloc.c (test_setjmp, mark_stack): | ||
| 7991 | * image.c (PNG_LONGJMP) [PNG_LIBPNG_VER < 10500]: | ||
| 7992 | (PNG_JMPBUF) [! (PNG_LIBPNG_VER < 10500)]: | ||
| 7993 | (png_load, my_error_exit, jpeg_load): | ||
| 7994 | * process.c (send_process_trap, send_process): | ||
| 7995 | Uniformly prefer _setjmp and _longjmp to setjmp and longjmp. | ||
| 7996 | The underscored versions are up to 30x faster on some hosts. | ||
| 7997 | Formerly, the code used setjmp+longjmp sometimes and | ||
| 7998 | _setjmp+_longjmp at other times, with no particular reason to | ||
| 7999 | prefer setjmp+longjmp. | ||
| 8000 | |||
| 8001 | 2012-09-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8002 | |||
| 8003 | Fix minor problem found by static checking. | ||
| 8004 | * buffer.c (Fdelete_all_overlays): Return nil. | ||
| 8005 | |||
| 8006 | 2012-09-03 Martin Rudalics <rudalics@gmx.at> | ||
| 8007 | |||
| 8008 | * buffer.c (Fdelete_all_overlays): New function. | ||
| 8009 | |||
| 8010 | 2012-09-03 Chong Yidong <cyd@gnu.org> | ||
| 8011 | |||
| 8012 | * gtkutil.c: Add extern decl for Qxft. | ||
| 8013 | |||
| 8014 | 2012-09-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8015 | |||
| 8016 | * emacs.c, eval.c: Use bool for boolean. | ||
| 8017 | * emacs.c (initialized, inhibit_window_system, running_asynch_code): | ||
| 8018 | (malloc_using_checking) [DOUG_LEA_MALLOC]: | ||
| 8019 | (display_arg) [HAVE_X_WINDOWS || HAVE_NS]: | ||
| 8020 | (noninteractive, no_site_lisp, fatal_error_in_progress, argmatch) | ||
| 8021 | (main, decode_env_path, Fdaemon_initialized): | ||
| 8022 | * eval.c (call_debugger, Finteractive_p, interactive_p): | ||
| 8023 | (unwind_to_catch, Fsignal, wants_debugger, skip_debugger) | ||
| 8024 | (maybe_call_debugger, Fbacktrace): | ||
| 8025 | * process.c (read_process_output, exec_sentinel): | ||
| 8026 | Use bool for booleans. | ||
| 8027 | * emacs.c (shut_down_emacs): Omit unused boolean argument NO_X. | ||
| 8028 | All callers changed. | ||
| 8029 | * eval.c (interactive_p): Omit always-true boolean argument | ||
| 8030 | EXCLUDE_SUBRS_P. All callers changed. | ||
| 8031 | * dispextern.h, lisp.h: Reflect above API changes. | ||
| 8032 | * firstfile.c (dummy): Use the address of 'main', whose signature | ||
| 8033 | won't change, instead of the address of 'initialize', whose | ||
| 8034 | signature just changed from int to bool. | ||
| 8035 | * lisp.h (fatal_error_in_progress): New decl of boolean, moved here ... | ||
| 8036 | * msdos.c (fatal_error_in_progress): ... from here. | ||
| 8037 | * xdisp.c (redisplaying_p): Now a boolean. Set it to 1 instead | ||
| 8038 | of incrementing it. | ||
| 8039 | (redisplay_internal, unwind_redisplay): Simply clear | ||
| 8040 | REDISPLAYING_P when unwinding, instead of saving its previous, | ||
| 8041 | always-false value and then restoring it. | ||
| 8042 | |||
| 8043 | Clean up some extern decls. | ||
| 8044 | Mostly, this hoists extern decls out of .c files and into .h files. | ||
| 8045 | That way, we're more likely to catch errors if the interfaces change. | ||
| 8046 | * alloc.c [USE_GTK]: Include "gtkutil.h" so that we need not | ||
| 8047 | declare xg_mark_data. | ||
| 8048 | * dispextern.h (x_frame_parm_handlers): | ||
| 8049 | * font.h (Qxft): | ||
| 8050 | * lisp.h (Qlexical_binding, Qinternal_interpreter_environment) | ||
| 8051 | (Qextra_light, Qlight, Qsemi_light, Qsemi_bold, Qbold, Qextra_bold) | ||
| 8052 | (Qultra_bold, Qoblique, Qitalic): | ||
| 8053 | Move extern decl here from .c file. | ||
| 8054 | * alloc.c (xg_mark_data) [USE_GTK]: | ||
| 8055 | * doc.c (Qclosure): | ||
| 8056 | * eval.c (Qlexical_binding): | ||
| 8057 | * fns.c (time) [!HAVE_UNISTD_H]: | ||
| 8058 | * gtkutil.c (Qxft, Qnormal, Qextra_light, Qlight, Qsemi_light) | ||
| 8059 | (Qsemi_bold, Qbold, Qextra_bold, Qultra_bold, Qoblique, Qitalic): | ||
| 8060 | * image.c (Vlibrary_cache, QCloaded_from) [HAVE_NTGUI]: | ||
| 8061 | * lread.c (Qinternal_interpreter_environment): | ||
| 8062 | * minibuf.c (Qbuffer): | ||
| 8063 | * process.c (QCfamily, QCfilter): | ||
| 8064 | * widget.c (free_frame_faces): | ||
| 8065 | * xfaces.c (free_frame_menubar) [USE_X_TOOLKIT]: | ||
| 8066 | * xfont.c (x_clear_errors): | ||
| 8067 | * xterm.c (x_frame_parm_handlers): | ||
| 8068 | Remove now-redundant extern decls. | ||
| 8069 | * keyboard.c, keyboard.h (ignore_mouse_drag_p) [USE_GTK || HAVE_NS]: | ||
| 8070 | * xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic): | ||
| 8071 | Now static. | ||
| 8072 | * xfaces.c: Remove unnecessary static decls. | ||
| 8073 | * xterm.c (updating_frame): Remove decl of nonexistent object. | ||
| 8074 | |||
| 8075 | * Makefile.in (gl-stamp): Don't scan $(SOME_MACHINE_OBJECTS) | ||
| 8076 | when building globals.h, as the objects that are not built on | ||
| 8077 | this host are not needed to compile C files on this host. | ||
| 8078 | |||
| 8079 | 2012-09-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8080 | |||
| 8081 | * gtkutil.h: Remove prototype for x_wm_set_size_hint. | ||
| 8082 | |||
| 8083 | * frame.h: Add missing prototype for x_wm_set_size_hint. | ||
| 8084 | |||
| 8085 | 2012-09-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8086 | |||
| 8087 | * doc.c, editfns.c, insdel.c, intervals.c: Use bool for boolean. | ||
| 8088 | * doc.c (read_bytecode_char, get_doc_string, reread_doc_file) | ||
| 8089 | (Fdocumentation, Fdocumentation_property, Fsnarf_documentation) | ||
| 8090 | (Fsubstitute_command_keys): | ||
| 8091 | * editfns.c (region_limit, find_field, Fconstrain_to_field) | ||
| 8092 | (save_excursion_save, save_excursion_restore) | ||
| 8093 | (disassemble_lisp_time, decode_time_components, emacs_nmemftime) | ||
| 8094 | (format_time_string, general_insert_function) | ||
| 8095 | (make_buffer_string, make_buffer_string_both) | ||
| 8096 | (Fsubst_char_in_region, Ftranslate_region_internal, Fformat): | ||
| 8097 | * insdel.c (check_markers, gap_left, adjust_markers_for_insert) | ||
| 8098 | (copy_text, insert_1, insert_1_both, insert_from_string) | ||
| 8099 | (insert_from_string_before_markers, insert_from_string_1) | ||
| 8100 | (insert_from_buffer, insert_from_buffer_1, replace_range) | ||
| 8101 | (replace_range_2, del_range_1, del_range_byte, del_range_both) | ||
| 8102 | (del_range_2, modify_region): | ||
| 8103 | * intervals.c (intervals_equal, balance_possible_root_interval) | ||
| 8104 | (adjust_intervals_for_insertion, merge_properties_sticky) | ||
| 8105 | (graft_intervals_into_buffer, lookup_char_property) | ||
| 8106 | (adjust_for_invis_intang, set_point_both) | ||
| 8107 | (get_property_and_range, compare_string_intervals) | ||
| 8108 | (set_intervals_multibyte_1, set_intervals_multibyte): | ||
| 8109 | * keyboard.c (decode_timer): | ||
| 8110 | Use bool for boolean. | ||
| 8111 | * intervals.h, lisp.h, systime.h: Reflect above API changes. | ||
| 8112 | * editfns.c (struct info): Use 1-bit unsigned bitfields for booleans. | ||
| 8113 | |||
| 8114 | 2012-09-02 Chong Yidong <cyd@gnu.org> | ||
| 8115 | |||
| 8116 | * keymap.c (push_key_description): Print M-TAB as C-M-i | ||
| 8117 | (Bug#11758). | ||
| 8118 | |||
| 8119 | 2012-09-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 8120 | |||
| 8121 | * makefile.w32-in (CCL_H, W32FONT_H): New macros. | ||
| 8122 | (ATIMER_H, FONT_H, $(BLD)/alloc.$(O), $(BLD)/callproc.$(O)) | ||
| 8123 | ($(BLD)/editfns.$(O), $(BLD)/ccl.$(O), $(BLD)/chartab.$(O)) | ||
| 8124 | ($(BLD)/coding.$(O), $(BLD)/sysdep.$(O), $(BLD)/fontset.$(O)) | ||
| 8125 | ($(BLD)/sysdep.$(O), $(BLD)/w32fns.$(O), $(BLD)/keyboard.$(O)) | ||
| 8126 | ($(BLD)/w32term.$(O), $(BLD)/w32menu.$(O), $(BLD)/process.$(O)) | ||
| 8127 | ($(BLD)/w32font.$(O), $(BLD)/w32uniscribe.$(O)): Update dependencies. | ||
| 8128 | |||
| 8129 | 2012-09-01 Eli Zaretskii <eliz@gnu.org> | ||
| 8130 | |||
| 8131 | * w32uniscribe.c (uniscribe_shape): Handle correctly the case of | ||
| 8132 | more than one grapheme cluster passed to the shaper: compute the | ||
| 8133 | offset adjustment values separately for each cluster. (Bug#11860) | ||
| 8134 | |||
| 8135 | * image.c: Restore mistakenly removed inclusion of w32.h. Without | ||
| 8136 | it, GCC doesn't see prototypes of w32_delayed_load, and complains | ||
| 8137 | about implicit conversions from integer to pointer. | ||
| 8138 | |||
| 8139 | 2012-09-01 Daniel Colascione <dancol@dancol.org> | ||
| 8140 | |||
| 8141 | * w32fns.c (x_display_info_for_name): Prevent crash if w32 window | ||
| 8142 | system used too early. | ||
| 8143 | |||
| 8144 | 2012-09-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8145 | |||
| 8146 | Better seed support for (random). | ||
| 8147 | * emacs.c (main): Call init_random. | ||
| 8148 | * fns.c (Frandom): Set the seed from a string argument, if given. | ||
| 8149 | Remove long-obsolete Gentzel cruft. | ||
| 8150 | * lisp.h, sysdep.c (seed_random): Now takes address and size, not long. | ||
| 8151 | (init_random): New function. | ||
| 8152 | |||
| 8153 | 2012-09-01 Daniel Colascione <dancol@dancol.org> | ||
| 8154 | |||
| 8155 | * xterm.h: Add header guards. Declare x_menubar_window_to_frame. | ||
| 8156 | Remove x_set_frame_alpha, x_bitmap_icon, x_make_frame_visible, | ||
| 8157 | x_make_frame_invisible, x_iconify_frame, x_free_frame_resources, | ||
| 8158 | x_wm_set_size_hint, x_query_colors, x_real_positions, | ||
| 8159 | x_set_menu_bar_lines, x_char_width, x_char_height, x_sync, | ||
| 8160 | x_set_tool_bar_lines, x_activate_menubar, and free_frame_menubar, | ||
| 8161 | all of which have been moved to common code. | ||
| 8162 | |||
| 8163 | * xfaces.c: Include TERM_HEADER instead of listing all possible | ||
| 8164 | window-system headers. | ||
| 8165 | |||
| 8166 | * w32xfns.c (x_sync): Correct definition of x_sync (a no-op here) | ||
| 8167 | to match header. | ||
| 8168 | |||
| 8169 | * w32term.h (FRAME_X_WINDOW): Use FRAME_W32_WINDOW instead of | ||
| 8170 | directly accessing frame internals. | ||
| 8171 | |||
| 8172 | * w32font.h: Include font.h. Define syms_of_w32font and | ||
| 8173 | globals_of_w32font. | ||
| 8174 | |||
| 8175 | * process.c: Include TERM_HEADER instead of listing all possible | ||
| 8176 | window-system headers. | ||
| 8177 | |||
| 8178 | * nsterm.h: Remove declarations now in frame.h. | ||
| 8179 | Define FRAME_X_SCREEN, FRAME_X_VISUAL. | ||
| 8180 | |||
| 8181 | * menu.c: Include TERM_HEADER instead of listing all possible | ||
| 8182 | window-system headers. | ||
| 8183 | |||
| 8184 | * keyboard.h: Declare ignore_mouse_drag_p whenever we have a | ||
| 8185 | window system. | ||
| 8186 | |||
| 8187 | * keyboard.c: Include TERM_HEADER instead of listing all possible | ||
| 8188 | window-system headers. | ||
| 8189 | |||
| 8190 | * image.c: Include TERM_HEADER instead of listing all possible | ||
| 8191 | window-system headers. Declare Vlibrary_cache when compiling for | ||
| 8192 | Windows. | ||
| 8193 | |||
| 8194 | * gtkutil.h (xg_list_node_): Include xterm.h to pick up needed | ||
| 8195 | window system declarations. | ||
| 8196 | |||
| 8197 | * frame.h: Move common functions here: set_frame_menubar, | ||
| 8198 | x_set_window_size, x_sync, x_get_focus_frame, | ||
| 8199 | x_set_mouse_position, x_set_mouse_pixel_position, | ||
| 8200 | x_make_frame_visible, x_make_frame_invisible, x_iconify_frame, | ||
| 8201 | x_char_width, x_char_height, x_pixel_width, x_pixel_height, | ||
| 8202 | x_set_frame_alpha, x_set_menu_bar_lines, x_set_tool_bar_lines, | ||
| 8203 | x_activate_menubar, x_real_positions, x_bitmap_icon, | ||
| 8204 | x_set_menu_bar_lines, free_frame_menubar, x_free_frame_resources, | ||
| 8205 | and x_query_colors. | ||
| 8206 | |||
| 8207 | * frame.c: Include TERM_HEADER instead of listing all possible | ||
| 8208 | window-system headers. | ||
| 8209 | |||
| 8210 | * font.c: Include TERM_HEADER instead of listing all possible | ||
| 8211 | window-system headers. | ||
| 8212 | |||
| 8213 | * emacs.c: Include TERM_HEADER. | ||
| 8214 | |||
| 8215 | * dispnew.c: Include TERM_HEADER instead of listing all possible | ||
| 8216 | window-system headers. | ||
| 8217 | |||
| 8218 | * ccl.h: Include character.h. | ||
| 8219 | |||
| 8220 | * Makefile.in: Define WINDOW_SYSTEM_OBJ to hold objects needed for | ||
| 8221 | the current window system; include in list of objects to link into | ||
| 8222 | Emacs. | ||
| 8223 | |||
| 8224 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8225 | |||
| 8226 | Remove mark_ttys function and fix tty_display_info initialization. | ||
| 8227 | * lisp.h (mark_ttys): Remove prototype. | ||
| 8228 | * alloc.c (Fgarbage_collect): Remove redundant (and the only) call | ||
| 8229 | to mark_ttys because all possible values of 'top_frame' slot are | ||
| 8230 | the frames which are reachable from Vframe_list. | ||
| 8231 | * term.c (mark_ttys): Remove. | ||
| 8232 | (init_tty): Safely initialize 'top_frame' slot with Qnil. | ||
| 8233 | |||
| 8234 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8235 | |||
| 8236 | Change struct frame bitfields from unsigned char to unsigned. | ||
| 8237 | * frame.h (struct frame): Change type of 'display_preempted', | ||
| 8238 | 'visible', 'iconified', 'has_minibuffer', 'wants_modeline', | ||
| 8239 | 'auto_raise', 'auto_lower', 'no_split', 'explicit_name', | ||
| 8240 | 'window_sizes_changed', 'mouse_moved' and 'pointer_invisible' | ||
| 8241 | bitfields from unsigned char to unsigned. | ||
| 8242 | |||
| 8243 | 2012-08-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8244 | |||
| 8245 | Remove unused member of struct x_output and struct w32_output. | ||
| 8246 | * xterm.h (struct x_output): Remove unused field 'needs_exposure'. | ||
| 8247 | * w32term.h (struct w32_output): Likewise. | ||
| 8248 | |||
| 8249 | 2012-08-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8250 | |||
| 8251 | * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it | ||
| 8252 | does not become zero (Bug#12234). | ||
| 8253 | |||
| 8254 | 2012-08-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8255 | |||
| 8256 | * dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow | ||
| 8257 | for GCC 4.7.1 x86-64. | ||
| 8258 | |||
| 8259 | 2012-08-30 Glenn Morris <rgm@gnu.org> | ||
| 8260 | |||
| 8261 | * lread.c (init_lread): For out-of-tree builds, only add the | ||
| 8262 | source directory's site-lisp dir to the load-path if it exists, | ||
| 8263 | consistent with in-tree builds. (Bug#12302) | ||
| 8264 | |||
| 8265 | 2012-08-28 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8266 | |||
| 8267 | * nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize | ||
| 8268 | button_values to NULL. Call setStykeMask so dialogs get a close button. | ||
| 8269 | (windowShouldClose:): Set window_closed. | ||
| 8270 | (dealloc): New member, free button_values. | ||
| 8271 | (process_dialog:): Make member function. Remove window argument, | ||
| 8272 | replace window with self. Count buttons and allocate and store values | ||
| 8273 | in button_values. | ||
| 8274 | (addButton:value:row:): value is int with the name tag. Call setTag | ||
| 8275 | with tag. Remove return self, declare return value as void. | ||
| 8276 | (addString:row:): Remove return self, declare return value as void. | ||
| 8277 | (addSplit): Remove return self, declare return value as void. | ||
| 8278 | (clicked:): Remove return self, declare return value as void. | ||
| 8279 | Set dialog_return to button_values[seltag]. Code formatting change. | ||
| 8280 | (initFromContents:isQuestion:): Adjust call to process_dialog. | ||
| 8281 | Code formatting change. | ||
| 8282 | (timeout_handler:): Set timer_fired to YES. | ||
| 8283 | (runDialogAt:): Set timer_fired to NO. | ||
| 8284 | Handle click on close button as quit. | ||
| 8285 | |||
| 8286 | * nsterm.h (EmacsDialogPanel): Make timer_fired BOOL. | ||
| 8287 | Add window_closed and button_values. Add void as return value for | ||
| 8288 | add(Button|String|Split). addButton takes int instead of Lisp_Object. | ||
| 8289 | Add process_dialog as new member. | ||
| 8290 | |||
| 8291 | 2012-08-28 Eli Zaretskii <eliz@gnu.org> | ||
| 8292 | |||
| 8293 | * ralloc.c (free_bloc): Don't dereference a 'heap' structure if it | ||
| 8294 | is not one of the heaps we manage. (Bug#12242) | ||
| 8295 | |||
| 8296 | 2012-08-28 Glenn Morris <rgm@gnu.org> | ||
| 8297 | |||
| 8298 | * eval.c (Fcalled_interactively_p): Doc fix. (Bug#11747) | ||
| 8299 | |||
| 8300 | 2012-08-28 Martin Rudalics <rudalics@gmx.at> | ||
| 8301 | |||
| 8302 | * window.c (Fset_window_configuration): Remove handling of | ||
| 8303 | auto-buffer-name window parameter. Install revision of reverted | ||
| 8304 | fix. | ||
| 8305 | |||
| 8306 | 2012-08-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8307 | |||
| 8308 | Do not allow to set major mode for a dead buffer. | ||
| 8309 | * buffer.c (Fset_buffer_major_mode): Signal an error | ||
| 8310 | if the buffer is dead. | ||
| 8311 | (Fother_buffer, other_buffer_safely): Remove redundant | ||
| 8312 | nested declaration. | ||
| 8313 | |||
| 8314 | 2012-08-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8315 | |||
| 8316 | Always use set_buffer_if_live to restore original buffer at unwind. | ||
| 8317 | * buffer.h (record_unwind_current_buffer): New function. | ||
| 8318 | * bytecode.c, dispnew.c, editfns.c, fileio.c, fns.c, insdel.c: | ||
| 8319 | * keyboard.c, keymap.c, minibuf.c, print.c, process.c, textprop.c: | ||
| 8320 | * undo.c, window.c: Adjust users. | ||
| 8321 | * buffer.c (set_buffer_if_live): Fix comment. | ||
| 8322 | |||
| 8323 | 2012-08-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8324 | |||
| 8325 | Fix usage of set_buffer_internal. | ||
| 8326 | * buffer.h (set_buffer_internal): Make it BUFFER_INLINE. | ||
| 8327 | * buffer.c (set_buffer_if_live): Use set_buffer_internal. | ||
| 8328 | * coding.c (decode_coding): Omit redundant test. | ||
| 8329 | * fileio.c (decide_coding_unwind): Likewise. | ||
| 8330 | * fns.c (secure_hash): Likewise. | ||
| 8331 | * insdel.c (modify_region): Likewise. | ||
| 8332 | * keyboard.c (command_loop_1): Likewise. | ||
| 8333 | * print.c (PRINTFINISH): Likewise. | ||
| 8334 | * xdisp.c (run_window_scroll_functions): Use set_buffer_internal. | ||
| 8335 | |||
| 8336 | 2012-08-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8337 | |||
| 8338 | * dispnew.c: Use bool for boolean. | ||
| 8339 | (frame_garbaged, display_completed, delayed_size_change) | ||
| 8340 | (fonts_changed_p, add_window_display_history) | ||
| 8341 | (add_frame_display_history, verify_row_hash) | ||
| 8342 | (adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p) | ||
| 8343 | (row_equal_p, realloc_glyph_pool) | ||
| 8344 | (allocate_matrices_for_frame_redisplay) | ||
| 8345 | (showing_window_margins_p) | ||
| 8346 | (adjust_frame_glyphs_for_frame_redisplay) | ||
| 8347 | (build_frame_matrix_from_leaf_window, make_current) | ||
| 8348 | (mirrored_line_dance, mirror_line_dance, update_frame) | ||
| 8349 | (update_window_tree, update_single_window) | ||
| 8350 | (check_current_matrix_flags, update_window, update_text_area) | ||
| 8351 | (update_window_line, set_window_update_flags, scrolling_window) | ||
| 8352 | (update_frame_1, scrolling, buffer_posn_from_coords) | ||
| 8353 | (do_pending_window_change, change_frame_size) | ||
| 8354 | (change_frame_size_1, sit_for): | ||
| 8355 | Use bool for boolean. | ||
| 8356 | (clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows, | ||
| 8357 | and remove last int (actually boolean) argument, which was always 0. | ||
| 8358 | All callers changed. | ||
| 8359 | * dispextern.h, frame.h, lisp.h: Reflect above API changes. | ||
| 8360 | * dispextern.h (struct composition_it): Use bool for boolean. | ||
| 8361 | (struct glyph_matrix): Don't assume buffer sizes can fit in 'int'. | ||
| 8362 | (struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf. | ||
| 8363 | * dired.c (file_name_completion): | ||
| 8364 | Use bool for boolean. (This was missed in an earlier change.) | ||
| 8365 | |||
| 8366 | 2012-08-27 Martin Rudalics <rudalics@gmx.at> | ||
| 8367 | |||
| 8368 | * window.c (Fset_window_configuration): Revert first part of | ||
| 8369 | last change. | ||
| 8370 | |||
| 8371 | 2012-08-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8372 | |||
| 8373 | * nsterm.h (NSPanel): New class variable dialog_return. | ||
| 8374 | |||
| 8375 | * nsmenu.m (initWithContentRect:styleMask:backing:defer:): | ||
| 8376 | Initialize dialog_return. | ||
| 8377 | (windowShouldClose:): Use stop instead of stopModalWithCode. | ||
| 8378 | (clicked:): Ditto, and also set dialog_return (Bug#12258). | ||
| 8379 | (timeout_handler:): Use stop instead of abortModal. Send a dummy | ||
| 8380 | event. | ||
| 8381 | (runDialogAt:): Make ret Lisp_Object. Set it from dialog_return when | ||
| 8382 | modal loop returns. | ||
| 8383 | |||
| 8384 | 2012-08-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8385 | |||
| 8386 | * composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans. | ||
| 8387 | * composite.c (find_composition, composition_gstring_p) | ||
| 8388 | (composition_reseat_it, find_automatic_composition): | ||
| 8389 | * data.c (let_shadows_buffer_binding_p) | ||
| 8390 | (let_shadows_global_binding_p, set_internal, make_blv) | ||
| 8391 | (Fmake_variable_buffer_local, Fmake_local_variable) | ||
| 8392 | (Fmake_variable_frame_local, arithcompare, cons_to_unsigned) | ||
| 8393 | (cons_to_signed, arith_driver): | ||
| 8394 | * dbusbind.c (xd_in_read_queued_messages): | ||
| 8395 | * dired.c (directory_files_internal, file_name_completion): | ||
| 8396 | Use bool for booleans. | ||
| 8397 | * dired.c (file_name_completion): | ||
| 8398 | * process.h (fd_callback): | ||
| 8399 | Omit int (actually boolean) argument. It wasn't being used. | ||
| 8400 | All uses changed. | ||
| 8401 | * composite.h, lisp.h: Reflect above API changes. | ||
| 8402 | |||
| 8403 | * cmds.c, coding.c: Use bool for booleans. | ||
| 8404 | * cmds.c (move_point, Fself_insert_command): | ||
| 8405 | * coding.h (struct composition status, struct coding_system): | ||
| 8406 | * coding.c (detect_coding_utf_8, encode_coding_utf_8) | ||
| 8407 | (detect_coding_utf_16, encode_coding_utf_16, detect_coding_emacs_mule) | ||
| 8408 | (emacs_mule_char, decode_coding_emacs_mule) | ||
| 8409 | (encode_coding_emacs_mule, detect_coding_iso_2022) | ||
| 8410 | (decode_coding_iso_2022, encode_invocation_designation) | ||
| 8411 | (encode_designation_at_bol, encode_coding_iso_2022) | ||
| 8412 | (detect_coding_sjis, detect_coding_big5, decode_coding_sjis) | ||
| 8413 | (decode_coding_big5, encode_coding_sjis, encode_coding_big5) | ||
| 8414 | (detect_coding_ccl, encode_coding_ccl, decode_coding_raw_text) | ||
| 8415 | (encode_coding_raw_text, detect_coding_charset) | ||
| 8416 | (decode_coding_charset, encode_coding_charset, detect_eol) | ||
| 8417 | (detect_coding, get_translation_table, produce_chars) | ||
| 8418 | (consume_chars, reused_workbuf_in_use) | ||
| 8419 | (make_conversion_work_buffer, code_conversion_save) | ||
| 8420 | (decode_coding_object, encode_coding_object) | ||
| 8421 | (detect_coding_system, char_encodable_p) | ||
| 8422 | (Funencodable_char_position, code_convert_region) | ||
| 8423 | (code_convert_string, code_convert_string_norecord) | ||
| 8424 | (Fset_coding_system_priority): | ||
| 8425 | * fileio.c (Finsert_file_contents): | ||
| 8426 | Use bool for booleans. | ||
| 8427 | * coding.h, lisp.h: Reflect above API changes. | ||
| 8428 | * coding.c: Remove unnecessary static function decls. | ||
| 8429 | (detect_coding): Use unsigned, not signed, to copy an unsigned field. | ||
| 8430 | (decode_coding, encode_coding, decode_coding_gap): Return 'void', | ||
| 8431 | not a boolean 'int', since callers never look at the return value. | ||
| 8432 | (ALLOC_CONVERSION_WORK_AREA): Assume caller returns 'void', not 'int'. | ||
| 8433 | * coding.h (decoding_buffer_size, encoding_buffer_size) | ||
| 8434 | (emacs_mule_string_char): Remove unused extern decls. | ||
| 8435 | (struct iso_2022_spec, struct coding_system): | ||
| 8436 | Use 'unsigned int : 1' for boolean fields, since there's more than one. | ||
| 8437 | (struct emacs_mule_spec): Remove unused field 'full_support'. | ||
| 8438 | All initializations removed. | ||
| 8439 | * cmds.c (internal_self_insert): Don't assume EMACS_INT fits in 'int'. | ||
| 8440 | |||
| 8441 | 2012-08-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8442 | |||
| 8443 | Fix spare memory change (Bug#12286). | ||
| 8444 | * alloc.c (mark_maybe_pointer): Handle MEM_TYPE_SPARE. | ||
| 8445 | (valid_lisp_object_p): Likewise. | ||
| 8446 | |||
| 8447 | 2012-08-27 Martin Rudalics <rudalics@gmx.at> | ||
| 8448 | |||
| 8449 | * window.c (Fset_window_configuration): Record any window's old | ||
| 8450 | buffer if it's replaced (see Bug#8789). If the new current | ||
| 8451 | buffer doesn't appear in the selected window, go to its old | ||
| 8452 | point (Bug#12208). | ||
| 8453 | |||
| 8454 | 2012-08-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8455 | |||
| 8456 | Special MEM_TYPE_SPARE to denote reserved memory. | ||
| 8457 | * alloc.c (enum mem_type): New memory type. | ||
| 8458 | (refill_memory_reserve): Use new type for spare memory. | ||
| 8459 | This prevents live_cons_p and live_string_p from incorrect | ||
| 8460 | detection of uninitialized objects from spare memory as live. | ||
| 8461 | |||
| 8462 | 2012-08-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8463 | |||
| 8464 | Spelling fixes. | ||
| 8465 | * Makefile.in (.PHONY): versioclean -> versionclean. | ||
| 8466 | |||
| 8467 | Remove unused external symbols. | ||
| 8468 | * data.c (Qcons, Qfloat, Qmisc, Qstring, Qvector): | ||
| 8469 | * window.c (Qwindow_valid_p, decode_valid_window): | ||
| 8470 | Now static, not extern. | ||
| 8471 | * data.c (Qinterval): Remove; unused. | ||
| 8472 | (syms_of_data): Do not define 'interval'. | ||
| 8473 | * lisp.h (Qinteger, Qstring, Qmisc, Qvector, Qfloat, Qcons): | ||
| 8474 | * window.h (decode_valid_window): | ||
| 8475 | Remove decls. | ||
| 8476 | |||
| 8477 | * character.c, charset.c, chartab.c: Use bool for booleans. | ||
| 8478 | * character.c (lisp_string_width, string_count_byte8) | ||
| 8479 | (string_escape_byte8): | ||
| 8480 | * charset.c (charset_map_loaded, load_charset_map, read_hex): | ||
| 8481 | (load_charset_map_from_file, map_charset_chars) | ||
| 8482 | (Fdefine_charset_internal, define_charset_internal) | ||
| 8483 | (Fdeclare_equiv_charset, find_charsets_in_text) | ||
| 8484 | (Ffind_charset_region, char_charset, Fiso_charset): | ||
| 8485 | * chartab.c (sub_char_table_ref, sub_char_table_ref_and_range) | ||
| 8486 | (sub_char_table_set, sub_char_table_set_range) | ||
| 8487 | (char_table_set_range, optimize_sub_char_table) | ||
| 8488 | (map_sub_char_table): | ||
| 8489 | Use bool for boolean. | ||
| 8490 | * character.c (str_to_unibyte): Omit last boolean argument; it was | ||
| 8491 | always 0. All callers changed. | ||
| 8492 | * character.h, charset.h: Adjust to match previous changes. | ||
| 8493 | * character.h (char_printable_p): Remove decl of nonexistent function. | ||
| 8494 | * charset.h (struct charset): Members code_linear_p, iso_chars_96, | ||
| 8495 | ascii_compatible_p, supplementary_p, compact_codes_p, unified_p | ||
| 8496 | are all boolean, so make them single-bit bitfields. | ||
| 8497 | |||
| 8498 | * lisp.h (ASET): Remove attempt to detect side effects. | ||
| 8499 | It was meant to be temporary and it often doesn't work, | ||
| 8500 | because when IDX has side effects the behavior of IDX==IDX | ||
| 8501 | is undefined. See Stefan Monnier in | ||
| 8502 | <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00762.html>. | ||
| 8503 | |||
| 8504 | 2012-08-26 Barry OReilly <gundaetiapo@gmail.com> (tiny change) | ||
| 8505 | |||
| 8506 | * lisp.h (functionp): New function (extracted from Ffunctionp). | ||
| 8507 | (FUNCTIONP): Use it. | ||
| 8508 | * eval.c (Ffunctionp): Use it. | ||
| 8509 | |||
| 8510 | 2012-08-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8511 | |||
| 8512 | * xgselect.c (xg_select): Use auto storage for the GPollFD buffer | ||
| 8513 | as that's faster and simpler than static storage. Don't bother | ||
| 8514 | with the g_main_context_query overhead if g_main_context_pending | ||
| 8515 | says no events are pending. | ||
| 8516 | (gfds, gfds_size): Remove these static vars. | ||
| 8517 | (xgselect_initialize): Remove; no longer needed. | ||
| 8518 | All uses and decls removed. | ||
| 8519 | |||
| 8520 | * emacs.c (fatal_error_signal_hook): Remove. | ||
| 8521 | All uses removed. This leftover from old code was always 0. | ||
| 8522 | |||
| 8523 | * casefiddle.c, casetab.c, category.c: Use bool for boolean. | ||
| 8524 | * casefiddle.c (casify_object, casify_region): | ||
| 8525 | * casetab.c (set_case_table): | ||
| 8526 | * category.c, category.h (word_boundary_p): | ||
| 8527 | * category.h (CHAR_HAS_CATEGORY): | ||
| 8528 | Use bool for booleans, instead of int. | ||
| 8529 | |||
| 8530 | 2012-08-25 Eli Zaretskii <eliz@gnu.org> | ||
| 8531 | |||
| 8532 | * makefile.w32-in ($(BLD)/alloc.$(O)): Depend on $(GNU_LIB)/execinfo.h. | ||
| 8533 | |||
| 8534 | 2012-08-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8535 | |||
| 8536 | On assertion failure, print backtrace if available. | ||
| 8537 | * alloc.c [ENABLE_CHECKING]: Include <execinfo.h>. | ||
| 8538 | (die) [ENABLE_CHECKING]: Print a backtrace if available. | ||
| 8539 | * Makefile.in (LIB_EXECINFO): New macro. | ||
| 8540 | (LIBES): Use it. | ||
| 8541 | |||
| 8542 | * bytecode.c, callint.c, callproc.c: Use bool for boolean. | ||
| 8543 | * bytecode.c (exec_byte_code): | ||
| 8544 | * callint.c (check_mark, Fcall_interactively): | ||
| 8545 | * callproc.c (Fcall_process, add_env, child_setup, getenv_internal_1) | ||
| 8546 | (getenv_internal, sync_process_alive, call_process_exited): | ||
| 8547 | * lisp.h (USE_SAFE_ALLOCA): | ||
| 8548 | Use bool for booleans, instead of int. | ||
| 8549 | * lisp.h, process.h: Adjust prototypes to match above changes. | ||
| 8550 | * callint.c (Fcall_interactively): Don't assume the mark's | ||
| 8551 | offset fits in 'int'. | ||
| 8552 | |||
| 8553 | 2012-08-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8554 | |||
| 8555 | * buffer.c, buffer.h: Use bool for boolean. | ||
| 8556 | * buffer.c (reset_buffer_local_variables) | ||
| 8557 | (buffer_lisp_local_variables, Fset_buffer_modified_p) | ||
| 8558 | (Frestore_buffer_modified_p, Fset_buffer_multibyte): | ||
| 8559 | (overlays_at, overlays_in, mouse_face_overlay_overlaps) | ||
| 8560 | (overlay_touches_p, overlay_strings, Foverlay_put) | ||
| 8561 | (report_overlay_modification, call_overlay_mod_hooks): | ||
| 8562 | (mmap_enlarge, mmap_set_vars): | ||
| 8563 | * buffer.h (buffer_has_overlays, uppercasep, lowercasep): | ||
| 8564 | Use bool for booleans, instead of int. | ||
| 8565 | * buffer.c (compact_buffer, mmap_free_1): Return void, not int, | ||
| 8566 | since the 1-or-0 return value is always ignored anyway. | ||
| 8567 | (mmap_initialized_p): | ||
| 8568 | * buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int. | ||
| 8569 | * buffer.h, lisp.h: Adjust prototypes to match above changes. | ||
| 8570 | |||
| 8571 | 2012-08-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8572 | |||
| 8573 | * bidi.c: Use bool for boolean. | ||
| 8574 | This is a bit more readable, and makes the text segment of bidi.o | ||
| 8575 | 0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15). | ||
| 8576 | Presumably it's faster too. | ||
| 8577 | (bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level): | ||
| 8578 | Now bool. | ||
| 8579 | (bidi_cache_find_level_change, bidi_cache_iterator_state) | ||
| 8580 | (bidi_unshelve_cache, bidi_init_it, bidi_count_bytes) | ||
| 8581 | (bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init) | ||
| 8582 | (bidi_explicit_dir_char, bidi_level_of_next_char) | ||
| 8583 | (bidi_find_other_level_edge, bidi_move_to_visually_next): | ||
| 8584 | Use bool for booleans, instead of int. | ||
| 8585 | * dispextern.h (bidi_init_it, bidi_paragraph_init) | ||
| 8586 | (bidi_unshelve_cache): Adjust decls to match code. | ||
| 8587 | |||
| 8588 | 2012-08-23 Martin Rudalics <rudalics@gmx.at> | ||
| 8589 | |||
| 8590 | * keyboard.c (Fposn_at_x_y): Do not allow internal window as | ||
| 8591 | argument. | ||
| 8592 | |||
| 8593 | 2012-08-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8594 | |||
| 8595 | * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean. | ||
| 8596 | * atimer.h: Include <stdbool.h>. | ||
| 8597 | |||
| 8598 | 2012-08-22 Dan Nicolaescu <dann@gnu.org> | ||
| 8599 | |||
| 8600 | * frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to | ||
| 8601 | compile time tests instead of run time tests on systems that do | ||
| 8602 | not use them. | ||
| 8603 | (FRAME_MAC_P): Remove leftover from deleted code. | ||
| 8604 | * frame.c (syms_of_frame): Remove leftover from deleted code. | ||
| 8605 | |||
| 8606 | 2012-08-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8607 | |||
| 8608 | * nsterm.m (insertText:): Don't clear modifiers if code is space. | ||
| 8609 | |||
| 8610 | 2012-08-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8611 | |||
| 8612 | * fontset.c (FONTSET_ADD): Return void, not Lisp_Object. | ||
| 8613 | Otherwise, the compiler complains about (A?B:C) where B is void | ||
| 8614 | and C is Lisp_Object. This fixes an incompatibility with Sun C 5.12. | ||
| 8615 | (fontset_add): Return void, for FONTSET_ADD. | ||
| 8616 | |||
| 8617 | 2012-08-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8618 | |||
| 8619 | * alloc.c: Use bool for booleans. | ||
| 8620 | (gc_in_progress, abort_on_gc) | ||
| 8621 | (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: | ||
| 8622 | (dont_register_blocks) [GC_MALLOC_CHECK]: | ||
| 8623 | (suppress_checking) [ENABLE_CHECKING]: Now bool, not int. | ||
| 8624 | (check_string_bytes, make_specified_string, memory_full) | ||
| 8625 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | ||
| 8626 | (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object) | ||
| 8627 | (mark_stack, valid_pointer_p, make_pure_string) | ||
| 8628 | (Fgarbage_collect, survives_gc_p, gc_sweep): | ||
| 8629 | Use bool for booleans, instead of int. | ||
| 8630 | (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: | ||
| 8631 | Remove unused local. | ||
| 8632 | * alloc.c (PURE_POINTER_P): | ||
| 8633 | * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean. | ||
| 8634 | * editfns.c (Fformat): | ||
| 8635 | * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name) | ||
| 8636 | (Fdo_auto_save): | ||
| 8637 | * fns.c (sweep_weak_table): | ||
| 8638 | * lisp.h (suppress_checking, push_message, survives_gc_p) | ||
| 8639 | (make_pure_string, gc_in_progress, abort_on_gc): | ||
| 8640 | * lread.c (readchar, read1): | ||
| 8641 | * print.c (Fprin1_to_string): | ||
| 8642 | * xdisp.c (push_message): | ||
| 8643 | Use bool for booleans affected directly or indirectly by | ||
| 8644 | alloc.c's changes. | ||
| 8645 | |||
| 8646 | Make recently-introduced setters macros. | ||
| 8647 | * fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii) | ||
| 8648 | (set_fontset_base, set_fontset_frame, set_fontset_nofont_face) | ||
| 8649 | (set_fontset_default, set_fontset_fallback): Rename from their | ||
| 8650 | upper-case counterparts, and make them functions rather than macros. | ||
| 8651 | This is more consistent with the other recently-introduced setters. | ||
| 8652 | These don't need to be inline, since they're local. | ||
| 8653 | |||
| 8654 | 2012-08-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 8655 | |||
| 8656 | * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in | ||
| 8657 | the loop (Bug#12247). | ||
| 8658 | |||
| 8659 | 2012-08-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8660 | |||
| 8661 | * lisp.h (vcopy): Use memcpy rather than our own loop. | ||
| 8662 | This fixes a performance regression introduced by the recent | ||
| 8663 | addition of vcopy. This means 'vcopy' will need to be modified | ||
| 8664 | for a copying collector, but that's OK. Also, tighten the | ||
| 8665 | checking in the assertion. | ||
| 8666 | |||
| 8667 | 2012-08-21 Eli Zaretskii <eliz@gnu.org> | ||
| 8668 | |||
| 8669 | * w32uniscribe.c (uniscribe_shape): Fix producing gstring | ||
| 8670 | components for RTL text (Bug#11860). Adjust X-OFFSET of each | ||
| 8671 | non-base glyph for the width of the base character, according to | ||
| 8672 | what x_draw_composite_glyph_string_foreground expects. | ||
| 8673 | Generate WADJUST value according to composition_gstring_width's | ||
| 8674 | expectations, to produce correct width of the composed character. | ||
| 8675 | Reverse the sign of the DU offset produced by ScriptPlace. | ||
| 8676 | |||
| 8677 | 2012-08-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8678 | |||
| 8679 | * dbusbind.c (xd_remove_watch): Do not assume C99 comments. | ||
| 8680 | |||
| 8681 | 2012-08-21 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8682 | |||
| 8683 | Avoid direct writes to contents member of struct Lisp_Vector. | ||
| 8684 | * lisp.h (vcopy): New function to copy data into vector. | ||
| 8685 | * dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET. | ||
| 8686 | * fns.c (Ffillarray): Use ASET. | ||
| 8687 | * keyboard.c (timer_check_2): Use AREF and ASET. | ||
| 8688 | (append_tool_bar_item, Frecent_keys): Use vcopy. | ||
| 8689 | * lread.c (read_vector): Use ASET. | ||
| 8690 | * msdos.c (Frecent_doskeys): Use vcopy. | ||
| 8691 | * xface.c (Finternal_copy_lisp_face): Use vcopy. | ||
| 8692 | (Finternal_merge_in_global_face): Use ASET and vcopy. | ||
| 8693 | * xfont.c (xfont_list_pattern): Likewise. | ||
| 8694 | |||
| 8695 | 2012-08-21 Martin Rudalics <rudalics@gmx.at> | ||
| 8696 | |||
| 8697 | * window.c (Fwindow_point): For the selected window always return | ||
| 8698 | the position of its buffer's point. | ||
| 8699 | (Fset_window_point): For the selected window always go in its | ||
| 8700 | buffer to the specified position. | ||
| 8701 | |||
| 8702 | 2012-08-21 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8703 | |||
| 8704 | Setter macros for fontsets. | ||
| 8705 | * fontset.c (SET_FONTSET_ID, SET_FONTSET_NAME, SET_FONTSET_ASCII) | ||
| 8706 | (SET_FONTSET_BASE, SET_FONTSET_FRAME, SET_FONTSET_NOFONT_FACE) | ||
| 8707 | (SET_FONTSET_DEFAULT, SET_FONTSET_FALLBACK): New macros. | ||
| 8708 | Adjust users. | ||
| 8709 | |||
| 8710 | 2012-08-20 Glenn Morris <rgm@gnu.org> | ||
| 8711 | |||
| 8712 | * Makefile.in (emacs$(EXEEXT), bootstrap-emacs$(EXEEXT)): | ||
| 8713 | Don't assume that `ln -f' works. | ||
| 8714 | |||
| 8715 | 2012-08-20 Eli Zaretskii <eliz@gnu.org> | ||
| 8716 | |||
| 8717 | * .gdbinit: Use "set $dummy = ..." to avoid warnings from GDB 7.5 | ||
| 8718 | and later about non-assignments with no effect. See discussion at | ||
| 8719 | http://sourceware.org/ml/gdb-patches/2012-08/msg00518.html for | ||
| 8720 | details. | ||
| 8721 | |||
| 8722 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8723 | |||
| 8724 | Inline setter functions for Lisp_Objects slots of struct specbinding. | ||
| 8725 | * eval.c (set_specpdl_symbol, set_specpdl_old_value): New functions. | ||
| 8726 | Adjust users. | ||
| 8727 | |||
| 8728 | 2012-08-20 Martin Rudalics <rudalics@gmx.at> | ||
| 8729 | |||
| 8730 | * window.c (select_window): Always make selected window's buffer | ||
| 8731 | current. | ||
| 8732 | |||
| 8733 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8734 | |||
| 8735 | Use AREF and ASET for docstrings of category tables. | ||
| 8736 | * category.h (CATEGORY_DOCSTRING): Use AREF. | ||
| 8737 | (SET_CATEGORY_DOCSTRING): Use ASET. | ||
| 8738 | * category.c (Fdefine_category): Use SET_CATEGORY_DOCSTRING. | ||
| 8739 | |||
| 8740 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8741 | |||
| 8742 | Inline setter functions for hash table members. | ||
| 8743 | * lisp.h (set_hash_key, set_hash_value, set_hash_next) | ||
| 8744 | (set_hash_hash, set_hash_index): Rename with _slot suffix. | ||
| 8745 | (set_hash_key_and_value, set_hash_index, set_hash_next) | ||
| 8746 | (set_hash_hash): New functions. | ||
| 8747 | * charset.c, fns.c: Adjust users. | ||
| 8748 | |||
| 8749 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8750 | |||
| 8751 | Inline getter and setter functions for per-buffer values. | ||
| 8752 | * buffer.h (per_buffer_default, set_per_buffer_default) | ||
| 8753 | (per_buffer_value, set_per_buffer_value): New functions. | ||
| 8754 | (PER_BUFFER_VALUE, PER_BUFFER_DEFAULT): Remove. | ||
| 8755 | * buffer.c, data.c: Adjust users. | ||
| 8756 | |||
| 8757 | 2012-08-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 8758 | |||
| 8759 | * makefile.w32-in ($(BLD)/vm-limit.$(O)): Update dependencies. | ||
| 8760 | |||
| 8761 | 2012-08-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8762 | |||
| 8763 | Rely on <config.h> + <unistd.h> to declare 'environ', | ||
| 8764 | as gnulib does this if the system doesn't. | ||
| 8765 | * callproc.c, editfns.c, process.c (environ) [!USE_CRT_DLL]: | ||
| 8766 | Remove declaration. MS-Windows declares it on stdlib.h which is | ||
| 8767 | included by conf_post.h. | ||
| 8768 | * emacs.c (environ) [DOUG_LEA_MALLOC]: | ||
| 8769 | * vm-limit.c (environ) [ORDINARY_LINK]: Remove decl. | ||
| 8770 | * vm-limit.c: Include <unistd.h>, for 'environ'. | ||
| 8771 | |||
| 8772 | * unexaix.c, unexcoff.c: Include "mem-limits.h". | ||
| 8773 | (start_of_data): Remove decl; mem-limits.h provides it. | ||
| 8774 | |||
| 8775 | * xdisp.c (handle_invisible_prop): Make it a bit faster | ||
| 8776 | and avoid a gcc -Wmaybe-uninitialized diagnostic. | ||
| 8777 | |||
| 8778 | 2012-08-19 Chong Yidong <cyd@gnu.org> | ||
| 8779 | |||
| 8780 | * xdisp.c (handle_invisible_prop): Fix ellipses at overlay string | ||
| 8781 | ends (Bug#3874). | ||
| 8782 | |||
| 8783 | 2012-08-19 Andreas Schwab <schwab@linux-m68k.org> | ||
| 8784 | |||
| 8785 | * .gdbinit: Use call instead of set when calling a function in the | ||
| 8786 | inferior. | ||
| 8787 | |||
| 8788 | * data.c (set_internal): Don't use set_blv_found. | ||
| 8789 | (Fkill_local_variable): Likewise. | ||
| 8790 | |||
| 8791 | 2012-08-18 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 8792 | |||
| 8793 | * nsfont.m (ns_ascii_average_width): Ensure the string | ||
| 8794 | ascii_printable is initialized with a null-terminated character | ||
| 8795 | array. Otherwise, it can contain undesired extra characters. | ||
| 8796 | |||
| 8797 | 2012-08-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8798 | |||
| 8799 | port new setting code to Sun C 5.8 2005/10/13 | ||
| 8800 | * chartab.c, lisp.h (char_table_set, char_table_set_range): | ||
| 8801 | Return void, not Lisp_Object. Otherwise, the compiler | ||
| 8802 | complains about (A?B:C) where B is void and C is Lisp_Object | ||
| 8803 | when compiling CHAR_TABLE_SET, due to the recent change to | ||
| 8804 | the API of sub_char_table_set_contents. | ||
| 8805 | |||
| 8806 | 2012-08-18 Chong Yidong <cyd@gnu.org> | ||
| 8807 | |||
| 8808 | * xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE | ||
| 8809 | for the string case (Bug#3874). | ||
| 8810 | |||
| 8811 | 2012-08-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8812 | |||
| 8813 | * buffer.h (BSET): Remove (Bug#12215). | ||
| 8814 | Replace all uses with calls to new setter functions. | ||
| 8815 | (bset_bidi_paragraph_direction, bset_case_canon_table) | ||
| 8816 | (bset_case_eqv_table, bset_directory, bset_display_count) | ||
| 8817 | (bset_display_time, bset_downcase_table) | ||
| 8818 | (bset_enable_multibyte_characters, bset_filename, bset_keymap) | ||
| 8819 | (bset_last_selected_window, bset_local_var_alist) | ||
| 8820 | (bset_mark_active, bset_point_before_scroll, bset_read_only) | ||
| 8821 | (bset_truncate_lines, bset_undo_list, bset_upcase_table) | ||
| 8822 | (bset_width_table): | ||
| 8823 | * buffer.c (bset_abbrev_mode, bset_abbrev_table) | ||
| 8824 | (bset_auto_fill_function, bset_auto_save_file_format) | ||
| 8825 | (bset_auto_save_file_name, bset_backed_up, bset_begv_marker) | ||
| 8826 | (bset_bidi_display_reordering, bset_buffer_file_coding_system) | ||
| 8827 | (bset_cache_long_line_scans, bset_case_fold_search) | ||
| 8828 | (bset_ctl_arrow, bset_cursor_in_non_selected_windows) | ||
| 8829 | (bset_cursor_type, bset_display_table, bset_extra_line_spacing) | ||
| 8830 | (bset_file_format, bset_file_truename, bset_fringe_cursor_alist) | ||
| 8831 | (bset_fringe_indicator_alist, bset_fringes_outside_margins) | ||
| 8832 | (bset_header_line_format, bset_indicate_buffer_boundaries) | ||
| 8833 | (bset_indicate_empty_lines, bset_invisibility_spec) | ||
| 8834 | (bset_left_fringe_width, bset_major_mode, bset_mark) | ||
| 8835 | (bset_minor_modes, bset_mode_line_format, bset_mode_name) | ||
| 8836 | (bset_name, bset_overwrite_mode, bset_pt_marker) | ||
| 8837 | (bset_right_fringe_width, bset_save_length) | ||
| 8838 | (bset_scroll_bar_width, bset_scroll_down_aggressively) | ||
| 8839 | (bset_scroll_up_aggressively, bset_selective_display) | ||
| 8840 | (bset_selective_display_ellipses, bset_vertical_scroll_bar_type) | ||
| 8841 | (bset_word_wrap, bset_zv_marker): | ||
| 8842 | * category.c (bset_category_table): | ||
| 8843 | * syntax.c (bset_syntax_table): | ||
| 8844 | New setter functions. | ||
| 8845 | |||
| 8846 | * process.h (PSET): Remove (Bug#12215). | ||
| 8847 | Replace all uses with calls to new setter functions. | ||
| 8848 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 8849 | (PROCESS_INLINE): New macro. | ||
| 8850 | (pset_childp): New setter function. | ||
| 8851 | (pset_gnutls_cred_type) [HAVE_GNUTLS]: New setter function. | ||
| 8852 | * process.c (PROCESS_INLINE): | ||
| 8853 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 8854 | are compiled into code. | ||
| 8855 | (pset_buffer, pset_command, pset_decode_coding_system) | ||
| 8856 | (pset_decoding_buf, pset_encode_coding_system) | ||
| 8857 | (pset_encoding_buf, pset_filter, pset_log, pset_mark, pset_name) | ||
| 8858 | (pset_plist, pset_sentinel, pset_status, pset_tty_name) | ||
| 8859 | (pset_type, pset_write_queue): New setter functions. | ||
| 8860 | |||
| 8861 | * window.h (WSET): Remove (Bug#12215). | ||
| 8862 | Replace all uses with calls to new setter functions. | ||
| 8863 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 8864 | (WINDOW_INLINE): New macro. | ||
| 8865 | (wset_buffer, wset_frame, wset_left_col, wset_next, wset_prev) | ||
| 8866 | (wset_redisplay_end_trigger, wset_top_line, wset_total_cols) | ||
| 8867 | (wset_total_lines, wset_vertical_scroll_bar) | ||
| 8868 | (wset_window_end_pos, wset_window_end_valid) | ||
| 8869 | (wset_window_end_vpos): New setter functions. | ||
| 8870 | * window.c (WINDOW_INLINE): | ||
| 8871 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 8872 | are compiled into code. | ||
| 8873 | (wset_combination_limit, wset_dedicated, wset_display_table) | ||
| 8874 | (wset_hchild, wset_left_fringe_width, wset_left_margin_cols) | ||
| 8875 | (wset_new_normal, wset_new_total, wset_next_buffers) | ||
| 8876 | (wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm) | ||
| 8877 | (wset_prev_buffers, wset_right_fringe_width) | ||
| 8878 | (wset_right_margin_cols, wset_scroll_bar_width, wset_start) | ||
| 8879 | (wset_temslot, wset_vchild, wset_vertical_scroll_bar_type) | ||
| 8880 | (wset_window_parameters): | ||
| 8881 | * xdisp.c (wset_base_line_number, wset_base_line_pos) | ||
| 8882 | (wset_column_number_displayed, wset_region_showing): | ||
| 8883 | New setter functions. | ||
| 8884 | |||
| 8885 | * termhooks.h (TSET): Remove (Bug#12215). | ||
| 8886 | Replace all uses with calls to new setter functions. | ||
| 8887 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 8888 | (TERMHOOKS_INLINE): New macro. | ||
| 8889 | (tset_charset_list, tset_selection_alist): New setter functions. | ||
| 8890 | * terminal.c (TERMHOOKS_INLINE): | ||
| 8891 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 8892 | are compiled into code. | ||
| 8893 | (tset_param_alist): New setter function. | ||
| 8894 | |||
| 8895 | 2012-08-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8896 | |||
| 8897 | * keyboard.h (KSET): Remove (Bug#12215). | ||
| 8898 | Replace all uses with calls to new setter functions. | ||
| 8899 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 8900 | (KEYBOARD_INLINE): New macro. | ||
| 8901 | (kset_default_minibuffer_frame, kset_defining_kbd_macro) | ||
| 8902 | (kset_input_decode_map, kset_last_command, kset_last_kbd_macro) | ||
| 8903 | (kset_prefix_arg, kset_system_key_alist, kset_window_system): | ||
| 8904 | New setter functions. | ||
| 8905 | * keyboard.c (KEYBOARD_INLINE): | ||
| 8906 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 8907 | are compiled into code. | ||
| 8908 | (kset_echo_string, kset_kbd_queue) | ||
| 8909 | (kset_keyboard_translate_table, kset_last_prefix_arg) | ||
| 8910 | (kset_last_repeatable_command, kset_local_function_key_map) | ||
| 8911 | (kset_overriding_terminal_local_map, kset_real_last_command) | ||
| 8912 | (kset_system_key_syms): New setter functions. | ||
| 8913 | |||
| 8914 | * frame.h (FSET): Remove (Bug#12215). | ||
| 8915 | Replace all uses with calls to new setter functions. | ||
| 8916 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 8917 | (FRAME_INLINE): New macro. | ||
| 8918 | (fset_buffer_list, fset_buried_buffer_list, fset_condemned_scroll_bars) | ||
| 8919 | (fset_current_tool_bar_string, fset_desired_tool_bar_string) | ||
| 8920 | (fset_face_alist, fset_focus_frame, fset_icon_name, fset_menu_bar_items) | ||
| 8921 | (fset_menu_bar_vector, fset_menu_bar_window, fset_name) | ||
| 8922 | (fset_param_alist, fset_root_window, fset_scroll_bars) | ||
| 8923 | (fset_selected_window, fset_title, fset_tool_bar_items) | ||
| 8924 | (fset_tool_bar_position, fset_tool_bar_window): New functions. | ||
| 8925 | * frame.c (FRAME_INLINE): | ||
| 8926 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 8927 | are compiled into code. | ||
| 8928 | (fset_buffer_predicate, fset_minibuffer_window): New setter functions. | ||
| 8929 | |||
| 8930 | A few more naming-convention fixes for getters and setters. | ||
| 8931 | * buffer.c (set_buffer_overlays_before): Move here from buffer.h, | ||
| 8932 | and rename from buffer_overlays_set_before. | ||
| 8933 | (set_buffer_overlays_after): Move here from buffer.h, and rename | ||
| 8934 | from buffer_overlays_set_after. | ||
| 8935 | * buffer.h (buffer_intervals): Rename from buffer_get_intervals. | ||
| 8936 | All uses changed. | ||
| 8937 | (set_buffer_intervals): Rename from buffer_set_intervals. | ||
| 8938 | * intervals.c (set_interval_object): Move here from intervals.h, | ||
| 8939 | and rename from interval_set_object. | ||
| 8940 | (set_interval_left): Move here from intervals.h, and rename from | ||
| 8941 | interval_set_left. | ||
| 8942 | (set_interval_right): Move here from intervals.h, and rename from | ||
| 8943 | interval_set_right. | ||
| 8944 | (copy_interval_parent): Move here from intervals.h, and rename from | ||
| 8945 | interval_copy_parent. | ||
| 8946 | * intervals.h (set_interval_parent): Rename from interval_set_parent. | ||
| 8947 | (set_interval_plist): Rename from interval_set_plist. | ||
| 8948 | Return void, not Lisp_Object, since no caller uses the result. | ||
| 8949 | * lisp.h (string_intervals): Rename from string_get_intervals. | ||
| 8950 | (set_string_intervals): Rename from string_set_intervals. | ||
| 8951 | |||
| 8952 | * lisp.h (set_char_table_extras): Rename from char_table_set_extras. | ||
| 8953 | (set_char_table_contents): Rename from char_table_set_contents. | ||
| 8954 | (set_sub_char_table_contents): Rename from sub_char_table_set_contents. | ||
| 8955 | All uses changed. See the end of | ||
| 8956 | <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00549.html>. | ||
| 8957 | |||
| 8958 | * lisp.h (CSET): Remove (Bug#12215). | ||
| 8959 | (set_char_table_ascii, set_char_table_defalt, set_char_table_parent) | ||
| 8960 | (set_char_table_purpose): New functions, | ||
| 8961 | replacing CSET. All uses changed. For example, replace | ||
| 8962 | "CSET (XCHAR_TABLE (char_table), parent, parent);" with | ||
| 8963 | "set_char_table_parent (char_table, parent);". | ||
| 8964 | The old version was confusing because it used the same name | ||
| 8965 | 'parent' for two different things. | ||
| 8966 | |||
| 8967 | 2012-08-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8968 | |||
| 8969 | Functions to get and set Lisp_Object fields of buffer-local variables. | ||
| 8970 | * lisp.h (blv_found, set_blv_found, blv_value, set_blv_value) | ||
| 8971 | (set_blv_where, set_blv_defcell, set_blv_valcell): New functions. | ||
| 8972 | (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): Remove. | ||
| 8973 | * data.c, eval.c, frame.c: Adjust users. | ||
| 8974 | |||
| 8975 | 2012-08-17 Chong Yidong <cyd@gnu.org> | ||
| 8976 | |||
| 8977 | * xfaces.c (merge_face_vectors): If the target font specfies a | ||
| 8978 | font spec, make the font's attributes take precedence over | ||
| 8979 | directly-specified attributes. | ||
| 8980 | (merge_face_ref): Recognize :font. | ||
| 8981 | |||
| 8982 | 2012-08-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 8983 | |||
| 8984 | Do not use memcpy for copying intervals. | ||
| 8985 | * intervals.c (reproduce_interval): New function. | ||
| 8986 | (reproduce_tree, reproduce_tree_obj): Use it. | ||
| 8987 | (reproduce_tree_obj): Remove prototype. | ||
| 8988 | |||
| 8989 | 2012-08-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 8990 | |||
| 8991 | * lisp.h (duration_to_sec_usec): Remove unused decl. | ||
| 8992 | |||
| 8993 | 2012-08-17 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 8994 | |||
| 8995 | * nsfont.m (ns_ascii_average_width): Send initWithFormat selector | ||
| 8996 | to an allocated instance of NSString, not to the class itself. | ||
| 8997 | |||
| 8998 | 2012-08-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 8999 | |||
| 9000 | * makefile.w32-in (C_CTYPE_H): New macro. | ||
| 9001 | (LISP_H, $(BLD)/ccl.$(O), $(BLD)/doc.$(O), $(BLD)/w32console.$(O)): | ||
| 9002 | ($(BLD)/fontset.$(O), $(BLD)/frame.$(O), $(BLD)/composite.$(O)): | ||
| 9003 | ($(BLD)/sysdep.$(O), $(BLD)/w32uniscribe.$(O)): Update dependencies. | ||
| 9004 | |||
| 9005 | 2012-08-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9006 | |||
| 9007 | Use ASCII tests for character types. | ||
| 9008 | * category.c, dispnew.c, doprnt.c, editfns.c, syntax.c, term.c: | ||
| 9009 | * xfns.c, xterm.c: | ||
| 9010 | Don't include <ctype.h>; was not needed. | ||
| 9011 | * charset.c, doc.c, fileio.c, font.c, frame.c, gtkutil.c, image.c: | ||
| 9012 | * sysdep.c, xfaces.c: | ||
| 9013 | Include <c-ctype.h> instead of <ctype.h>. | ||
| 9014 | * nsterm.m: Include <c-ctype.h>. | ||
| 9015 | * charset.c (read_hex): | ||
| 9016 | * doc.c (Fsnarf_documentation): | ||
| 9017 | * fileio.c (IS_DRIVE) [WINDOWSNT]: | ||
| 9018 | (DRIVE_LETTER) [DOS_NT]: | ||
| 9019 | (Ffile_name_directory, Fexpand_file_name) | ||
| 9020 | (Fsubstitute_in_file_name): | ||
| 9021 | * font.c (font_parse_xlfd, font_parse_fcname): | ||
| 9022 | * frame.c (x_set_font_backend): | ||
| 9023 | * gtkutil.c (xg_get_font): | ||
| 9024 | * image.c (xbm_scan, xpm_scan, pbm_scan_number): | ||
| 9025 | * nsimage.m (hexchar): | ||
| 9026 | * nsterm.m (ns_xlfd_to_fontname): | ||
| 9027 | * sysdep.c (system_process_attributes): | ||
| 9028 | * xfaces.c (hash_string_case_insensitive): | ||
| 9029 | Use C-locale tests instead of locale-specific tests for character | ||
| 9030 | types, since we want the ASCII interpretation here, not the | ||
| 9031 | interpretation suitable for whatever happens to be the current locale. | ||
| 9032 | |||
| 9033 | 2012-08-16 Martin Rudalics <rudalics@gmx.at> | ||
| 9034 | |||
| 9035 | Consistently check windows for validity/liveness | ||
| 9036 | (Bug#11984, Bug#12025, Bug#12026). | ||
| 9037 | * lisp.h (CHECK_VALID_WINDOW): New macro. | ||
| 9038 | * window.c (decode_window): Rename to decode_live_window. | ||
| 9039 | (decode_valid_window, Fwindow_valid_p): New functions. | ||
| 9040 | (Fwindow_frame, Fframe_root_window, Fwindow_minibuffer_p) | ||
| 9041 | (Fframe_first_window, Fframe_selected_window, Fwindow_parent) | ||
| 9042 | (Fwindow_top_child, Fwindow_left_child, Fwindow_next_sibling) | ||
| 9043 | (Fwindow_prev_sibling, Fwindow_combination_limit) | ||
| 9044 | (Fset_window_combination_limit, Fwindow_use_time) | ||
| 9045 | (Fwindow_total_height, Fwindow_total_width, Fwindow_new_total) | ||
| 9046 | (Fwindow_normal_size, Fwindow_new_normal, Fwindow_left_column) | ||
| 9047 | (Fwindow_top_line, Fwindow_body_height, Fwindow_body_width) | ||
| 9048 | (Fwindow_hscroll, Fset_window_hscroll) | ||
| 9049 | (Fwindow_redisplay_end_trigger) | ||
| 9050 | (Fset_window_redisplay_end_trigger, Fwindow_edges) | ||
| 9051 | (Fwindow_pixel_edges, Fwindow_absolute_pixel_edges) | ||
| 9052 | (Fwindow_inside_edges, Fwindow_inside_pixel_edges) | ||
| 9053 | (Fcoordinates_in_window_p, Fwindow_point, Fwindow_start) | ||
| 9054 | (Fwindow_end, Fset_window_point, Fset_window_start) | ||
| 9055 | (Fpos_visible_in_window_p, Fwindow_line_height) | ||
| 9056 | (Fwindow_dedicated_p, Fset_window_dedicated_p) | ||
| 9057 | (Fwindow_prev_buffers, Fset_window_prev_buffers) | ||
| 9058 | (Fwindow_next_buffers, Fwindow_parameters, Fwindow_parameter) | ||
| 9059 | (Fset_window_parameter, Fwindow_display_table) | ||
| 9060 | (Fset_window_display_table, Fdelete_other_windows_internal) | ||
| 9061 | (Fset_window_buffer, Fset_window_new_total) | ||
| 9062 | (Fset_window_new_normal, Fdelete_window_internal) | ||
| 9063 | (Fwindow_text_height, Fset_window_margins, Fwindow_margins) | ||
| 9064 | (Fset_window_fringes, Fwindow_fringes, Fset_window_scroll_bars) | ||
| 9065 | (Fwindow_scroll_bars): Check whether argument window is a valid or | ||
| 9066 | live window. Update doc-strings. | ||
| 9067 | (syms_of_window): New symbol Qwindow_valid_p. | ||
| 9068 | * keyboard.c (Fposn_at_x_y): Check whether argument | ||
| 9069 | frame_or_window denotes a valid window. | ||
| 9070 | |||
| 9071 | 2012-08-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9072 | |||
| 9073 | Fix previous char table change. | ||
| 9074 | * lisp.h (CHAR_TABLE_SET): Use sub_char_table_set_contents. | ||
| 9075 | * chartab.c (optimize_sub_char_table): Likewise. | ||
| 9076 | |||
| 9077 | 2012-08-16 Chong Yidong <cyd@gnu.org> | ||
| 9078 | |||
| 9079 | * gtkutil.c (xg_get_font): Demand an Xft font (Bug#3228). | ||
| 9080 | |||
| 9081 | * xfont.c (xfont_open): | ||
| 9082 | * xftfont.c (xftfont_open): Set the font's max_width field. | ||
| 9083 | |||
| 9084 | * nsfont.m (nsfont_open): Similar to the Xft backend, set | ||
| 9085 | min_width to space_width and average_width to the average over | ||
| 9086 | printable ASCII characters. | ||
| 9087 | (ns_char_width): Code cleanup. | ||
| 9088 | (ns_ascii_average_width): New utility function. | ||
| 9089 | |||
| 9090 | * font.h (struct font): Update comments. | ||
| 9091 | |||
| 9092 | 2012-08-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9093 | |||
| 9094 | Simple interface to set Lisp_Object fields of character tables. | ||
| 9095 | * lisp.h (CSET): New macro. | ||
| 9096 | (char_table_set_extras, char_table_set_contents) | ||
| 9097 | (sub_char_table_set_contents): New function. | ||
| 9098 | * casetab.c, category.c, chartab.c, fns.c, fontset.c, search.c: | ||
| 9099 | * syntax.c: Adjust users. | ||
| 9100 | |||
| 9101 | 2012-08-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9102 | |||
| 9103 | * eval.c (eval_sub): Bind lexical-binding. | ||
| 9104 | * lread.c (Qlexical_binding): Make non-static. | ||
| 9105 | |||
| 9106 | 2012-08-15 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9107 | |||
| 9108 | * nsmenu.m (popupSession): Remove. | ||
| 9109 | (pop_down_menu): Remove endModalSession. | ||
| 9110 | (timeout_handler:): New method. | ||
| 9111 | (runDialogAt:): Get next timeout. Start a NSTimer with that timeout. | ||
| 9112 | Call runModalForWindow. Check timer_fired when it returns. | ||
| 9113 | If not set, cancel timer and break out of loop. | ||
| 9114 | Otherwise loop again, with a new timeout. | ||
| 9115 | |||
| 9116 | * nsterm.m: Include fcntl.h if present. | ||
| 9117 | (fd_entry, t_readfds, inNsSelect): Remove. | ||
| 9118 | (select_writefds, select_valid, select_timeout, selfds) | ||
| 9119 | (select_mutex, apploopnr): Add. | ||
| 9120 | (EV_TRAILER): Call kbd_buffer_store_event_hold only if q_event_ptr. | ||
| 9121 | Otherwise call kbd_buffer_store_event. | ||
| 9122 | (ns_send_appdefined): Remove release of fd_entry. | ||
| 9123 | (ns_read_socket): Always send appdefined. Remove inNsSelect check. | ||
| 9124 | Increment and decrement apploopnr. | ||
| 9125 | (ns_select): If no file descriptors, just do a NSTimer. | ||
| 9126 | Otherwise copy read/write masks and start select thread (fd_handler). | ||
| 9127 | Start main loop and wait for application defined event. | ||
| 9128 | Inform select thread to stop selecting after main loop is exited. | ||
| 9129 | (ns_term_init): Create selfds pipe and set non-blocking. | ||
| 9130 | Initialize select_mutex. Start the select thread (fd_handler). | ||
| 9131 | (fd_handler:): Loop forever, wait for info from the main thread | ||
| 9132 | to either start or stop selecting. When select returns, send | ||
| 9133 | and appdefined event. | ||
| 9134 | (sendScrollEventAtLoc:fromEvent:): Check if q_event_ptr is set. | ||
| 9135 | If not call kbd_buffer_store_event. | ||
| 9136 | |||
| 9137 | * nsterm.h (EmacsApp): fd_handler takes id argument. | ||
| 9138 | (EmacsDialogPanel): Add timer_fired and timeout_handler. | ||
| 9139 | |||
| 9140 | * gtkutil.c (xg_mark_data): Use FRAME_X_P. | ||
| 9141 | |||
| 9142 | 2012-08-15 Eli Zaretskii <eliz@gnu.org> | ||
| 9143 | |||
| 9144 | * region-cache.c (move_cache_gap): Update gap_len using the actual | ||
| 9145 | growth of the boundaries array. Do not change cache_len. | ||
| 9146 | (Bug#12196) | ||
| 9147 | |||
| 9148 | 2012-08-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9149 | |||
| 9150 | Generalize and cleanup font subsystem checks. | ||
| 9151 | * font.h (FONT_DEBUG, font_assert): Remove. | ||
| 9152 | * font.c, fontset.c, w32font.c, xfont.c, xftfont.c: | ||
| 9153 | Change font_assert to eassert. Use eassert where appropriate. | ||
| 9154 | |||
| 9155 | 2012-08-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9156 | |||
| 9157 | * gtkutil.c (xg_get_font): Use pango_units_to_double. | ||
| 9158 | |||
| 9159 | 2012-08-15 Chong Yidong <cyd@gnu.org> | ||
| 9160 | |||
| 9161 | * gtkutil.c (xg_get_font): Rename from xg_get_font_name. | ||
| 9162 | When using the new font chooser, use gtk_font_chooser_get_font_desc to | ||
| 9163 | extract the font descriptor instead of just the font name. | ||
| 9164 | In that case, return a font spec instead of a string. | ||
| 9165 | (x_last_font_name): Move to this file from xfns.c. | ||
| 9166 | |||
| 9167 | * xfns.c (Fx_select_font): The return value can also be a font | ||
| 9168 | spec. Move x_last_font_name management to gtkutil.c. | ||
| 9169 | |||
| 9170 | * xfaces.c: Make font weight and style symbols non-static. | ||
| 9171 | |||
| 9172 | 2012-08-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9173 | |||
| 9174 | * minibuf.c (read_minibuf): Ignore caller's inhibit-read-only | ||
| 9175 | (bug#12117). | ||
| 9176 | |||
| 9177 | 2012-08-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9178 | |||
| 9179 | * alloc.c (Fgarbage_collect): Use plural form consistently. | ||
| 9180 | |||
| 9181 | 2012-08-14 Eli Zaretskii <eliz@gnu.org> | ||
| 9182 | |||
| 9183 | * keyboard.c (command_loop_1): Reset ignore_mouse_drag_p flag each | ||
| 9184 | iteration through the command loop. Fixes a problem whereby mouse | ||
| 9185 | movements are ignored until the first mouse click. | ||
| 9186 | |||
| 9187 | 2012-08-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9188 | |||
| 9189 | Use bool, not int, for Lisp booleans. | ||
| 9190 | This is more natural, and on my platform (GCC 4.7.1 x86-64) it | ||
| 9191 | makes Emacs a bit smaller and presumably a bit faster. | ||
| 9192 | * lisp.h: Include <stdbool.h>. | ||
| 9193 | (struct Lisp_Boolfwd, defvar_bool): | ||
| 9194 | * lread.c (defvar_bool): Use bool, not int, for Lisp booleans. | ||
| 9195 | * regex.c [!emacs]: Include <stdbool.h>. | ||
| 9196 | (false, true): Remove; <stdbool.h> does this for us now. | ||
| 9197 | |||
| 9198 | 2012-08-14 Chong Yidong <cyd@gnu.org> | ||
| 9199 | |||
| 9200 | * character.c (Fcharacterp): Doc fix (Bug#12076). | ||
| 9201 | |||
| 9202 | * data.c (Findirect_variable): Doc fix (Bug#11040). | ||
| 9203 | |||
| 9204 | * chartab.c (Fmap_char_table): Doc fix (Bug#12061). | ||
| 9205 | |||
| 9206 | * editfns.c (Fformat): Doc fix (Bug#12059). | ||
| 9207 | (Fsave_current_buffer): Doc fix (Bug#11542). | ||
| 9208 | |||
| 9209 | 2012-08-14 Barry OReilly <gundaetiapo@gmail.com> (tiny change) | ||
| 9210 | |||
| 9211 | * keyboard.c (access_keymap_keyremap): Accept anonymous functions | ||
| 9212 | (bug#12022). | ||
| 9213 | |||
| 9214 | 2012-08-14 Martin Rudalics <rudalics@gmx.at> | ||
| 9215 | |||
| 9216 | * frame.c (make_frame_without_minibuffer, make_minibuffer_frame) | ||
| 9217 | (delete_frame, Fmake_frame_invisible, Ficonify_frame): | ||
| 9218 | * minibuf.c (choose_minibuf_frame, read_minibuf): | ||
| 9219 | * w32fns.c (x_create_tip_frame): | ||
| 9220 | * xfns.c (x_create_tip_frame): Call set_window_buffer instead of | ||
| 9221 | Fset_window_buffer (Bug#11984, Bug#12025, Bug#12026). | ||
| 9222 | |||
| 9223 | 2012-08-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9224 | |||
| 9225 | * intervals.c (offset_intervals): Remove obsolete comment. | ||
| 9226 | |||
| 9227 | 2012-08-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 9228 | |||
| 9229 | * gtkutil.c (find_rtl_image, update_frame_tool_bar): Use NILP. | ||
| 9230 | |||
| 9231 | 2012-08-14 Gergely Risko <gergely@risko.hu> | ||
| 9232 | |||
| 9233 | * coding.c (decode_coding): Record buffer modification before | ||
| 9234 | disabling undo_list (Bug#11773). | ||
| 9235 | |||
| 9236 | 2012-08-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9237 | |||
| 9238 | Revert and cleanup some recent overlay changes. | ||
| 9239 | * buffer.h (enum overlay_type): Remove. | ||
| 9240 | (buffer_get_overlays, buffer_set_overlays): Likewise. | ||
| 9241 | (buffer_set_overlays_before, buffer_set_overlays_after): | ||
| 9242 | New function. Adjust users. | ||
| 9243 | (unchain_both): Add eassert. | ||
| 9244 | |||
| 9245 | 2012-08-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9246 | |||
| 9247 | * gtkutil.c (update_frame_tool_bar): Use EQ where appropriate. | ||
| 9248 | |||
| 9249 | 2012-08-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9250 | |||
| 9251 | * gtkutil.c (xg_mark_data): Don't assume C99. | ||
| 9252 | |||
| 9253 | 2012-08-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9254 | |||
| 9255 | * gtkutil.c (xg_frame_tb_info): New struct. | ||
| 9256 | (TB_INFO_KEY): New define. | ||
| 9257 | (xg_free_frame_widgets): Free xg_frame_tb_info for frame if present. | ||
| 9258 | (xg_mark_data): Mark Lisp_Objects in xg_frame_tb_info. | ||
| 9259 | (xg_create_tool_bar): Allocate and initialize a xg_frame_tb_info | ||
| 9260 | if not present. | ||
| 9261 | (update_frame_tool_bar): Return early if data in xg_frame_tb_info | ||
| 9262 | is up to date. Otherwise store new data. | ||
| 9263 | (free_frame_tool_bar): Free xg_frame_tb_info if present. | ||
| 9264 | |||
| 9265 | 2012-08-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9266 | |||
| 9267 | Use KSET for write access to Lisp_Object members of struct kboard. | ||
| 9268 | * keyboard.h (KSET): New macro. | ||
| 9269 | * callint.c, category.c, frame.c, keyboard.c, keyboard.h, macros.c: | ||
| 9270 | * msdos.c, nsfns.m, nsterm.m, term.c, w32fns.c, w32term.c, xfns.c: | ||
| 9271 | * xterm.c: Adjust users. | ||
| 9272 | |||
| 9273 | 2012-08-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9274 | |||
| 9275 | Use BSET for write access to Lisp_Object members of struct buffer. | ||
| 9276 | * buffer.h (BSET): New macro. | ||
| 9277 | * buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c: | ||
| 9278 | * fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c: | ||
| 9279 | * minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c: | ||
| 9280 | * window.c, xdisp.c, xfns.c: Adjust users. | ||
| 9281 | |||
| 9282 | 2012-08-11 BT Templeton <bpt@hcoop.net> (tiny change) | ||
| 9283 | |||
| 9284 | * lread.c (syms_of_lread): Initialize Vlexical_binding. | ||
| 9285 | |||
| 9286 | 2012-08-11 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9287 | |||
| 9288 | * nsterm.m (not_in_argv): New function. | ||
| 9289 | (application:openFile, application:openTempFile:): | ||
| 9290 | (application:openFileWithoutUI:, application:openFiles:): Open file | ||
| 9291 | if not_in_argv returns non-zero (bug#12171). | ||
| 9292 | |||
| 9293 | * gtkutil.c (gtk_font_chooser_dialog_new, GTK_FONT_CHOOSER) | ||
| 9294 | (gtk_font_chooser_set_font, gtk_font_chooser_get_font): | ||
| 9295 | Define for Gtk+ versions less than 3.2. | ||
| 9296 | (xg_get_font_name): Use those functions/macros here. | ||
| 9297 | Reported by Frans Oilinki <moilinki@gmail.com>. | ||
| 9298 | |||
| 9299 | 2012-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 9300 | |||
| 9301 | * unexmacosx.c (copy_data_segment): Copy initialized data in | ||
| 9302 | statically linked libraries from input file rather than memory. | ||
| 9303 | |||
| 9304 | * unexmacosx.c (print_load_command_name): Add cases LC_MAIN, | ||
| 9305 | LC_SOURCE_VERSION, and LC_DYLIB_CODE_SIGN_DRS. | ||
| 9306 | (dump_it) [LC_DYLIB_CODE_SIGN_DRS]: Call copy_linkedit_data. | ||
| 9307 | |||
| 9308 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 9309 | |||
| 9310 | * conf_post.h (IF_LINT, lint_assume): Move here from lisp.h. | ||
| 9311 | * lisp.h (IF_LINT, lint_assume): Move to conf_post.h. | ||
| 9312 | |||
| 9313 | 2012-08-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9314 | |||
| 9315 | Fix last change to allow compilation with low optimization levels. | ||
| 9316 | * intervals.c (INTERVALS_INLINE): Define to EXTERN_INLINE. | ||
| 9317 | Reported by Jan Djärv <jan.h.d@swipnet.se>. | ||
| 9318 | |||
| 9319 | 2012-08-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9320 | |||
| 9321 | Use common inline syntax in intervals.h. | ||
| 9322 | * intervals.h (INTERVALS_INLINE): New macro. | ||
| 9323 | Change all users from LISP_INLINE. | ||
| 9324 | |||
| 9325 | 2012-08-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9326 | |||
| 9327 | Define Qnone once for all platforms. | ||
| 9328 | * frame.c (Qnone): Define here. | ||
| 9329 | (syms_of_frame): DEFSYM it. | ||
| 9330 | * lisp.h (Qnone): New declaration. | ||
| 9331 | * nsfns.m, nsterm.h, nsterm.m, w32fns.c, w32font.c: | ||
| 9332 | * xfns.c: Remove duplication. Adjust users. | ||
| 9333 | |||
| 9334 | 2012-08-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9335 | |||
| 9336 | Remove unused macros from intervals.h. | ||
| 9337 | * intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove. | ||
| 9338 | * intervals.c: Adjust comment. | ||
| 9339 | |||
| 9340 | 2012-08-10 Eli Zaretskii <eliz@gnu.org> | ||
| 9341 | |||
| 9342 | * w32fns.c <w32_unicode_gui>: New static variable. | ||
| 9343 | (globals_of_w32fns): Initialize it according to os_subtype. | ||
| 9344 | (w32_init_class, w32_msg_pump, w32_wnd_proc): Use it instead of | ||
| 9345 | testing os_subtype. | ||
| 9346 | |||
| 9347 | 2012-08-10 Joakim Hårsman <joakim.harsman@gmail.com> (tiny change) | ||
| 9348 | Eli Zaretskii <eliz@gnu.org> | ||
| 9349 | |||
| 9350 | Fix bug #10299 with Unicode characters sent by customized | ||
| 9351 | keyboards created by MSKLC. | ||
| 9352 | * w32fns.c (INIT_WINDOW_CLASS): New macro. | ||
| 9353 | (w32_init_class): Use it to initialize the Emacs class with either | ||
| 9354 | ANSI or Unicode API calls. | ||
| 9355 | (w32_msg_pump): Call GetMessageW and DispatchMessageW on NT and | ||
| 9356 | later. | ||
| 9357 | (w32_wnd_proc): If the character code sent by WM_CHAR or | ||
| 9358 | WM_SYSCHAR is above 255, post a WM_UNICHAR message, not the | ||
| 9359 | original message. Call DefWindowProcW on NT and later. | ||
| 9360 | |||
| 9361 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 9362 | |||
| 9363 | * Makefile.in (config_h): Fix conf_post.h out-of-tree build location. | ||
| 9364 | |||
| 9365 | * lisp.h (DIRECTORY_SEP): Let configure set it. | ||
| 9366 | |||
| 9367 | 2012-08-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9368 | |||
| 9369 | Use TSET for write access to Lisp_Object slots of struct terminal. | ||
| 9370 | * termhooks.h (TSET): New macro. | ||
| 9371 | * coding.c, terminal.c, xselect.c: Adjust users. | ||
| 9372 | |||
| 9373 | 2012-08-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9374 | |||
| 9375 | * xdisp.c (safe_eval_handler): Remove prototype. Receive args describing | ||
| 9376 | the failing expression, include them in the error message. | ||
| 9377 | * eval.c (internal_condition_case_n): Pass nargs and args to hfun. | ||
| 9378 | * lisp.h (internal_condition_case_n): Update declaration. | ||
| 9379 | |||
| 9380 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9381 | |||
| 9382 | Inline functions to examine and change buffer overlays. | ||
| 9383 | * buffer.c (unchain_both): New function. | ||
| 9384 | * buffer.h (buffer_get_overlays, buffer_set_overlays): | ||
| 9385 | (buffer_has_overlays): New function. | ||
| 9386 | (enum overlay_type): New enum. | ||
| 9387 | * alloc.c, buffer.c, editfns.c, fileio.c, indent.c: | ||
| 9388 | * insdel.c, intervals.c, print.c, xdisp.c: Adjust users. | ||
| 9389 | |||
| 9390 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9391 | |||
| 9392 | Inline functions to examine and change buffer intervals. | ||
| 9393 | * alloc.c (mark_interval_tree): Remove. | ||
| 9394 | (MARK_INTERVAL_TREE): Simplify. | ||
| 9395 | (UNMARK_BALANCE_INTERVALS): Remove. Adjust users. | ||
| 9396 | * intervals.c (buffer_balance_intervals): New function. | ||
| 9397 | (graft_intervals_into_buffer): Adjust indentation. | ||
| 9398 | (set_intervals_multibyte): Simplify. | ||
| 9399 | * buffer.h (BUF_INTERVALS): Remove. | ||
| 9400 | (buffer_get_intervals, buffer_set_intervals): New function. | ||
| 9401 | * alloc.c, buffer.c, editfns.c, fileio.c, indent.c, insdel.c: | ||
| 9402 | * intervals.c, textprop.c: Adjust users. | ||
| 9403 | |||
| 9404 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9405 | |||
| 9406 | Inline functions to examine and change string intervals. | ||
| 9407 | * lisp.h (STRING_INTERVALS, STRING_SET_INTERVALS): Remove. | ||
| 9408 | (string_get_intervals, string_set_intervals): New function. | ||
| 9409 | * alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c: | ||
| 9410 | * lread.c, print.c, textprop.c: Adjust users. | ||
| 9411 | |||
| 9412 | 2012-08-08 Glenn Morris <rgm@gnu.org> | ||
| 9413 | |||
| 9414 | * lisp.mk (lisp): Remove language/persian.elc. | ||
| 9415 | |||
| 9416 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9417 | |||
| 9418 | Cleanup intervals. | ||
| 9419 | * intervals.h (NULL_INTERVAL, DEFAULT_INTERVAL): Remove. | ||
| 9420 | (NULL_INTERVAL_P): Likewise. Adjust users. | ||
| 9421 | (FRONT_STICKY_P, END_NONSTICKY_P, FRONT_NONSTICKY_P): | ||
| 9422 | Adjust comment. Move under #if 0. | ||
| 9423 | * alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c: | ||
| 9424 | * print.c, syntax.c, textprop.c, xdisp.c: Adjust users. | ||
| 9425 | |||
| 9426 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9427 | |||
| 9428 | Check total length of intervals with eassert. | ||
| 9429 | * intervals.h (CHECK_TOTAL_LENGTH): Remove. | ||
| 9430 | * intervals.c: Change all users to eassert. | ||
| 9431 | |||
| 9432 | 2012-08-07 Eli Zaretskii <eliz@gnu.org> | ||
| 9433 | |||
| 9434 | * .gdbinit (xframe, xwindow, nextcons, xcar, xcdr, xlist): | ||
| 9435 | Rename fields to match removal of FGET and WGET and disuse of | ||
| 9436 | INTERNAL_FIELD in Lisp_Cons. | ||
| 9437 | |||
| 9438 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9439 | |||
| 9440 | Revert and cleanup Lisp_Cons, Lisp_Misc and Lisp_Symbol things. | ||
| 9441 | * lisp.h (struct Lisp_Symbol): Change xname to meaningful | ||
| 9442 | name since all xname users are fixed long time ago. Do not | ||
| 9443 | use INTERNAL_FIELD. | ||
| 9444 | (set_symbol_name, set_symbol_function, set_symbol_plist): | ||
| 9445 | (set_symbol_next, set_overlay_plist): New function. | ||
| 9446 | (struct Lisp_Cons): Do not use INTERNAL_FIELD. | ||
| 9447 | (struct Lisp_Overlay): Likewise. | ||
| 9448 | (CVAR, MVAR, SVAR): Remove. | ||
| 9449 | * alloc.c, buffer.c, buffer.h, bytecode.c, cmds.c, data.c: | ||
| 9450 | * doc.c, eval.c, fns.c, keyboard.c, lread.c, nsselect.m: | ||
| 9451 | * xterm.c: Adjust users. | ||
| 9452 | * .gdbinit: Change to use name field of struct Lisp_Symbol | ||
| 9453 | where appropriate. | ||
| 9454 | |||
| 9455 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9456 | |||
| 9457 | Basic functions to set Lisp_Object and pointer slots of intervals. | ||
| 9458 | * intervals.h (interval_set_parent, interval_set_object): | ||
| 9459 | (interval_set_left, interval_set_right, interval_set_plist): | ||
| 9460 | (interval_copy_parent): New function. | ||
| 9461 | (SET_INTERVAL_OBJECT, SET_INTERVAL_PARENT, INTERVAL_PTR_SIZE): Remove. | ||
| 9462 | (RESET_INTERVAL, COPY_INTERVAL_CACHE, MERGE_INTERVAL_CACHE): | ||
| 9463 | Adjust indentation. | ||
| 9464 | (INTERVAL_SIZE): Remove. Adjust users. | ||
| 9465 | * alloc.c, intervals.c, lread.c, textprop.c: Use new functions. | ||
| 9466 | |||
| 9467 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9468 | |||
| 9469 | Drop PGET and revert read access to Lisp_Objects slots of Lisp_Process. | ||
| 9470 | * process.h (PGET): Remove. | ||
| 9471 | (struct Lisp_Process): Do not use INTERNAL_FIELD. | ||
| 9472 | * gnutls.c, print.c, process.c, sysdep.c, w32.c, xdisp.c: Adjust users. | ||
| 9473 | |||
| 9474 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9475 | |||
| 9476 | Drop WGET and revert read access to Lisp_Objects slots of struct window. | ||
| 9477 | * window.h (WGET): Remove. | ||
| 9478 | (struct window): Do not use INTERNAL_FIELD. | ||
| 9479 | * alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c: | ||
| 9480 | * fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c: | ||
| 9481 | * insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m: | ||
| 9482 | * nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c: | ||
| 9483 | * w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | ||
| 9484 | Adjust users. | ||
| 9485 | |||
| 9486 | 2012-08-07 Chong Yidong <cyd@gnu.org> | ||
| 9487 | |||
| 9488 | * window.c (Fwindow_edges, Fwindow_pixel_edges) | ||
| 9489 | (Fwindow_absolute_pixel_edges, Fdelete_other_windows_internal) | ||
| 9490 | (Fdelete_window_internal): Signal an error if the window is not on | ||
| 9491 | a live frame (Bug#12025). | ||
| 9492 | |||
| 9493 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9494 | |||
| 9495 | Drop FGET and revert read access to Lisp_Objects slots of struct frame. | ||
| 9496 | * frame.h (FGET): Remove. | ||
| 9497 | (struct frame): Do not use INTERNAL_FIELD. | ||
| 9498 | * buffer.c, data.c, dispnew.c, dosfns.c, eval.c, fontset.c, frame.c: | ||
| 9499 | * fringe.c, gtkutil.c, minibuf.c, msdos.c, nsfns.m, nsmenu.m, nsterm.m: | ||
| 9500 | * print.c, term.c, w32fns.c, w32menu.c, w32term.c, window.c, window.h: | ||
| 9501 | * xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Adjust users. | ||
| 9502 | |||
| 9503 | 2012-08-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 9504 | |||
| 9505 | * w32.c: Silence compiler warnings. | ||
| 9506 | (map_w32_filename): Remove unused variable `is_fat'. | ||
| 9507 | (chase_symlinks): Add parentheses around expression. | ||
| 9508 | |||
| 9509 | 2012-08-06 Glenn Morris <rgm@gnu.org> | ||
| 9510 | |||
| 9511 | * sysdep.c: Respect BROKEN_GETWD. | ||
| 9512 | |||
| 9513 | * dispnew.c (GNU_LIBRARY_PENDING_OUTPUT_COUNT, PENDING_OUTPUT_COUNT): | ||
| 9514 | Let configure handle it. | ||
| 9515 | (stdio_ext.h) [DISPNEW_NEEDS_STDIO_EXT]: Include it. | ||
| 9516 | |||
| 9517 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9518 | |||
| 9519 | Use GCALIGNMENT where appropriate. | ||
| 9520 | * alloc.c (XMALLOC_HEADER_ALIGNMENT, roundup_size): | ||
| 9521 | (union aligned_Lisp_Symbol, union aligned_Lisp_Misc): | ||
| 9522 | (mark_maybe_pointer, pure_alloc): Change to use GCALIGNMENT. | ||
| 9523 | |||
| 9524 | 2012-08-06 Eli Zaretskii <eliz@gnu.org> | ||
| 9525 | |||
| 9526 | * w32menu.c (set_frame_menubar, initialize_frame_menubar): | ||
| 9527 | Don't use FRAME_MENU_BAR_ITEMS as an lvalue. | ||
| 9528 | |||
| 9529 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9530 | |||
| 9531 | * buffer.h (struct buffer): Revert `indirections' to a simple int; | ||
| 9532 | that should be sufficient for everyone. | ||
| 9533 | |||
| 9534 | 2012-08-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9535 | |||
| 9536 | * keyboard.c (timer_check_2): Add break so timer_check returns next | ||
| 9537 | timeout. | ||
| 9538 | |||
| 9539 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9540 | |||
| 9541 | Fix Windows build errors introduced after converting to WGET and WSET. | ||
| 9542 | * w32term.c (w32_set_vertical_scroll_bar): Change to use WSET. | ||
| 9543 | Reported by Andy Moreton <andrewjmoreton@gmail.com>. | ||
| 9544 | |||
| 9545 | 2012-08-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9546 | |||
| 9547 | * nsterm.m (ns_frame_rehighlight): Use FSET. | ||
| 9548 | |||
| 9549 | * nsmenu.m (ns_update_menubar): Use FSET. | ||
| 9550 | |||
| 9551 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9552 | |||
| 9553 | Separate read and write access to Lisp_Object slots of Lisp_Process. | ||
| 9554 | * process.h (PGET, PSET): New macros similar to AREF and ASET. | ||
| 9555 | * gnutls.c, print.c, process.c, sysdep.c, w32.c, xdisp.c: Adjust users. | ||
| 9556 | |||
| 9557 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9558 | |||
| 9559 | Separate read and write access to Lisp_Object slots of struct window. | ||
| 9560 | * window.h (WGET, WSET): New macros similar to AREF and ASET. | ||
| 9561 | * alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c: | ||
| 9562 | * fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c: | ||
| 9563 | * insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m: | ||
| 9564 | * nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c: | ||
| 9565 | * w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | ||
| 9566 | Adjust users. | ||
| 9567 | |||
| 9568 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9569 | |||
| 9570 | Fix Windows build errors introduced after converting to FGET and FSET. | ||
| 9571 | * w32term.c (x_frame_rehighlight, x_scroll_bar_create): | ||
| 9572 | (w32_condemn_scroll_bars, w32_redeem_scroll_bar): | ||
| 9573 | (w32_judge_scroll_bars): Change to use FSET. | ||
| 9574 | Reported by Andy Moreton <andrewjmoreton@gmail.com>. | ||
| 9575 | |||
| 9576 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9577 | |||
| 9578 | Fix replacement typo. | ||
| 9579 | * window.c (replace_window): Set root_window instead of | ||
| 9580 | selected_window. This fixes a total window subsystem | ||
| 9581 | malfunction reported by Bastien Guerry <bzg@gnu.org>. | ||
| 9582 | |||
| 9583 | 2012-08-06 Glenn Morris <rgm@gnu.org> | ||
| 9584 | |||
| 9585 | * lisp.mk (lisp): Add language/persian.elc. | ||
| 9586 | |||
| 9587 | 2012-08-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9588 | |||
| 9589 | Separate read and write access to Lisp_Object slots of struct frame. | ||
| 9590 | * frame.h (FGET, FSET): New macros similar to AREF and ASET. | ||
| 9591 | * buffer.c, data.c, dispnew.c, dosfns.c, eval.c, fontset.c, frame.c: | ||
| 9592 | * fringe.c, gtkutil.c, minibuf.c, msdos.c, nsfns.m, nsmenu.m, nsterm.m: | ||
| 9593 | * print.c, term.c, w32fns.c, w32menu.c, w32term.c, window.c, window.h: | ||
| 9594 | * xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Adjust users. | ||
| 9595 | |||
| 9596 | 2012-08-05 Andreas Schwab <schwab@linux-m68k.org> | ||
| 9597 | |||
| 9598 | * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT. | ||
| 9599 | |||
| 9600 | 2012-08-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9601 | |||
| 9602 | Generalize common compile-time constants. | ||
| 9603 | * lisp.h (header_size, bool_header_size, word_size): Now here. | ||
| 9604 | (struct Lisp_Vector): Add comment. | ||
| 9605 | (struct Lisp_Bool_Vector): Move up to define handy constants. | ||
| 9606 | (VECSIZE, PSEUDOVECSIZE): Simplify. | ||
| 9607 | (SAFE_ALLOCA_LISP): Use new constant. Adjust indentation. | ||
| 9608 | * buffer.c, buffer.h, bytecode.c, callint.c, eval.c, fns.c: | ||
| 9609 | * font.c, fontset.c, keyboard.c, keymap.c, macros.c, menu.c: | ||
| 9610 | * msdos.c, w32menu.c, w32term.h, window.c, xdisp.c, xfaces.c: | ||
| 9611 | * xfont.c, xmenu.c: Use word_size where appropriate. | ||
| 9612 | |||
| 9613 | 2012-08-05 Lawrence Mitchell <wence@gmx.li> | ||
| 9614 | |||
| 9615 | * search.c (Freplace_match): Treat \? in the replacement text | ||
| 9616 | literally (Bug#8161). | ||
| 9617 | |||
| 9618 | 2012-08-05 Chong Yidong <cyd@gnu.org> | ||
| 9619 | |||
| 9620 | * term.c (Vsuspend_tty_functions, Vresume_tty_functions): | ||
| 9621 | * frame.c (Vdelete_frame_functions): | ||
| 9622 | * emacs.c (Vkill_emacs_hook): Doc fix. | ||
| 9623 | |||
| 9624 | 2012-08-04 Eli Zaretskii <eliz@gnu.org> | ||
| 9625 | |||
| 9626 | * xfns.c (x_set_menu_bar_lines): Fix compilation error in | ||
| 9627 | --with-x-toolkit=no builds. | ||
| 9628 | Reported by Carsten Mattner <carstenmattner@gmail.com>. | ||
| 9629 | |||
| 9630 | 2012-08-04 Chong Yidong <cyd@gnu.org> | ||
| 9631 | |||
| 9632 | * syntax.c (Fmodify_syntax_entry): Doc fix. | ||
| 9633 | |||
| 9634 | 2012-08-04 Eli Zaretskii <eliz@gnu.org> | ||
| 9635 | |||
| 9636 | Fix startup warnings about ../site-lisp on MS-Windows. (Bug#11959) | ||
| 9637 | * w32.c (init_environment): Change the default values of many | ||
| 9638 | environment variables in dflt_envvars[] to NULL, to avoid pushing | ||
| 9639 | them into environment when they were not already defined. | ||
| 9640 | Remove the code that deletes site-lisp subdirectories from the default | ||
| 9641 | value of EMACSLOADPATH, as it is no longer needed. | ||
| 9642 | (check_windows_init_file): Now external, not static. | ||
| 9643 | Use Vload_path as is, without adding anything, as this function is now | ||
| 9644 | called when Vload_path is already set up. | ||
| 9645 | |||
| 9646 | * w32.h (check_windows_init_file): Add prototype. | ||
| 9647 | |||
| 9648 | * emacs.c (init_cmdargs) [WINDOWSNT]: When running from the build | ||
| 9649 | directory, ignore the /*/i386/ tail in Vinvocation_directory, for | ||
| 9650 | compatibility with Posix platforms. | ||
| 9651 | (main): Move the call to check_windows_init_file to here from | ||
| 9652 | w32.c. | ||
| 9653 | (decode_env_path) [WINDOWSNT]: Expand the %emacs_dir%/ prefix, if | ||
| 9654 | any, in the DEFALT argument into the root of the Emacs build or | ||
| 9655 | installation tree, as appropriate. | ||
| 9656 | |||
| 9657 | * callproc.c (init_callproc_1): Call decode_env_path instead of | ||
| 9658 | doing its equivalent by hand. | ||
| 9659 | (init_callproc): Replace DOS_NT condition with MSDOS, thus letting | ||
| 9660 | the code that sets Vexec_path run on MS-Windows. | ||
| 9661 | |||
| 9662 | * lread.c (init_lread): Add comments to #ifdef's. | ||
| 9663 | |||
| 9664 | * msdos.c (dos_set_window_size, IT_update_begin) | ||
| 9665 | (IT_frame_up_to_date, IT_set_frame_parameters): Use FVAR and WVAR | ||
| 9666 | instead of direct references. | ||
| 9667 | |||
| 9668 | 2012-08-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9669 | |||
| 9670 | Export DEFAULT_REHASH_* to GDB. | ||
| 9671 | * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE): | ||
| 9672 | Now constants, not macros. | ||
| 9673 | |||
| 9674 | 2012-08-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9675 | |||
| 9676 | Remove unnecessary casts involving pointers. | ||
| 9677 | These casts are no longer needed now that we assume C89 or later, | ||
| 9678 | since they involve casting to or from void *. | ||
| 9679 | * alloc.c (make_pure_string, make_pure_c_string, pure_cons) | ||
| 9680 | (make_pure_float, make_pure_vector): | ||
| 9681 | * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): | ||
| 9682 | * macros.c (Fstart_kbd_macro): | ||
| 9683 | * menu.c (find_and_return_menu_selection): | ||
| 9684 | * minibuf.c (read_minibuf_noninteractive): | ||
| 9685 | * sysdep.c (closedir): | ||
| 9686 | * xdisp.c (x_produce_glyphs): | ||
| 9687 | * xfaces.c (compare_fonts_by_sort_order): | ||
| 9688 | * xfns.c (x_real_positions, select_visual): | ||
| 9689 | * xselect.c (x_stop_queuing_selection_requests) | ||
| 9690 | (x_get_window_property, x_get_window_property_as_lisp_data): | ||
| 9691 | * xterm.c (x_set_frame_alpha, x_find_modifier_meanings): | ||
| 9692 | Remove unnecessary pointer casts. | ||
| 9693 | * alloc.c (record_xmalloc): New function. | ||
| 9694 | * lisp.h (record_xmalloc): New decl. | ||
| 9695 | (SAFE_ALLOCA): Now takes just one arg -- the size -- and acts | ||
| 9696 | more like a function. This is because the pointer cast is not | ||
| 9697 | needed. All uses changed. | ||
| 9698 | * print.c (print_string, print_error_message): Avoid length recalc. | ||
| 9699 | |||
| 9700 | Improve fix for macroexp crash with debugging (Bug#12118). | ||
| 9701 | * lisp.h (ASET) [ENABLE_CHECKING]: Pay attention to | ||
| 9702 | ARRAY_MARK_FLAG when checking subscripts, because ASET is | ||
| 9703 | not supposed to be invoked from the garbage collector. | ||
| 9704 | See Andreas Schwab in <http://bugs.gnu.org/12118#25>. | ||
| 9705 | (gc_aset): New function, which is like ASET but can be | ||
| 9706 | used in the garbage collector. | ||
| 9707 | (set_hash_key, set_hash_value, set_hash_next, set_hash_hash) | ||
| 9708 | (set_hash_index): Use it instead of ASET. | ||
| 9709 | |||
| 9710 | 2012-08-03 Eli Zaretskii <eliz@gnu.org> | ||
| 9711 | |||
| 9712 | Support symlinks on latest versions of MS-Windows. | ||
| 9713 | * w32.c: Include winioctl.h and aclapi.h. | ||
| 9714 | (is_symlink, chase_symlinks, enable_privilege, restore_privilege) | ||
| 9715 | (revert_to_self): Forward declarations of static functions. | ||
| 9716 | <static BOOL g_b_init_get_security_info>: | ||
| 9717 | <g_b_init_create_symbolic_link>: New static flags. | ||
| 9718 | (globals_of_w32): Initialize them to zero. | ||
| 9719 | (GetSecurityInfo_Proc, CreateSymbolicLink_Proc): New typedefs. | ||
| 9720 | (map_w32_filename): Improve commentary. Simplify switch. | ||
| 9721 | (SYMBOLIC_LINK_FLAG_DIRECTORY): Define if not defined in system | ||
| 9722 | headers (most versions of MinGW w32api don't). | ||
| 9723 | (get_security_info, create_symbolic_link) | ||
| 9724 | (get_file_security_desc_by_handle, is_symlink, chase_symlinks): | ||
| 9725 | New functions. | ||
| 9726 | (sys_access, sys_chmod): Call 'chase_symlinks' to resolve symlinks | ||
| 9727 | in the argument file name. | ||
| 9728 | (sys_access): Call unc_volume_file_attributes only if | ||
| 9729 | GetFileAttributes fails with network-related error codes. | ||
| 9730 | (sys_rename): Diagnose renaming of a symlink when the user doesn't | ||
| 9731 | have the required privileges. | ||
| 9732 | (get_file_security_desc_by_name): Rename from | ||
| 9733 | get_file_security_desc. | ||
| 9734 | (stat_worker): New function, with most of the guts of 'stat', and | ||
| 9735 | with addition of handling of symlinks and support for 'lstat'. | ||
| 9736 | If possible, get file's attributes and security information by | ||
| 9737 | handle, not by name. Produce S_IFLNK bit for symlinks, when | ||
| 9738 | called from 'lstat'. | ||
| 9739 | (stat, lstat): New functions, call 'stat_worker'. | ||
| 9740 | (symlink, readlink, careadlinkat): Rewritten to create and resolve | ||
| 9741 | symlinks when the underlying filesystem supports them. | ||
| 9742 | |||
| 9743 | 2012-08-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9744 | |||
| 9745 | Fix macroexp crash on Windows with debugging (Bug#12118). | ||
| 9746 | * lisp.h (ASET) [ENABLE_CHECKING]: Ignore ARRAY_MARK_FLAG when | ||
| 9747 | checking subscripts; problem introduced with the recent | ||
| 9748 | "ASET (a, i, v)" rather than "AREF (a, i) = v" patch. | ||
| 9749 | (ARRAY_MARK_FLAG): Now a macro as well as a constant, | ||
| 9750 | since it's used in non-static inline functions now. | ||
| 9751 | |||
| 9752 | * xfaces.c (face_at_buffer_position, face_for_overlay_string): | ||
| 9753 | Don't assume buffer size fits in 'int'. Remove unused local. | ||
| 9754 | |||
| 9755 | Use C99-style 'extern inline' if available. | ||
| 9756 | * buffer.h (BUFFER_INLINE): | ||
| 9757 | * category.h (CATEGORY_INLINE): | ||
| 9758 | * character.h (CHARACTER_INLINE): | ||
| 9759 | * charset.h (CHARSET_INLINE): | ||
| 9760 | * composite.h (COMPOSITE_INLINE): | ||
| 9761 | * dispextern.h (DISPEXTERN_INLINE): | ||
| 9762 | * lisp.h (LISP_INLINE): | ||
| 9763 | * systime.h (SYSTIME_INLINE): | ||
| 9764 | New macro, replacing 'static inline' in this header. | ||
| 9765 | * buffer.h, category.h, character.h, charset.h, composite.h: | ||
| 9766 | * dispextern.h, lisp.h, systime.h: | ||
| 9767 | Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. | ||
| 9768 | * alloc.c (LISP_INLINE): | ||
| 9769 | * buffer.c (BUFFER_INLINE): | ||
| 9770 | * category.c (CATEGORY_INLINE): | ||
| 9771 | * character.c (CHARACTER_INLINE): | ||
| 9772 | * charset.c (CHARSET_INLINE): | ||
| 9773 | * composite.c (COMPOSITE_INLINE): | ||
| 9774 | * dispnew.c (DISPEXTERN_INLINE): | ||
| 9775 | * sysdep.c (SYSTIME_INLINE): | ||
| 9776 | Define to EXTERN_INLINE, so that the corresponding functions | ||
| 9777 | are compiled into code. | ||
| 9778 | * conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN) | ||
| 9779 | (INLINE_HEADER_END): New macros. | ||
| 9780 | * lisp.h (PSEUDOVECTOR_FLAG): Now a macro as well as a constant, | ||
| 9781 | since it's used in non-static inline functions now. | ||
| 9782 | (VALMASK) [!USE_LSB_TAG]: Likewise. | ||
| 9783 | |||
| 9784 | 2012-08-02 Glenn Morris <rgm@gnu.org> | ||
| 9785 | |||
| 9786 | * s/: Remove empty directory. | ||
| 9787 | |||
| 9788 | * s/ms-w32.h: Move to ../nt/inc. | ||
| 9789 | * makefile.w32-in (TAGS, TAGS-gmake, MS_W32_H): | ||
| 9790 | Update for new ms-w32.h location. | ||
| 9791 | |||
| 9792 | 2012-08-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9793 | |||
| 9794 | Port to Solaris 8. | ||
| 9795 | * syswait.h (WRETCODE): Remove, consistently with ../configure.ac. | ||
| 9796 | |||
| 9797 | 2012-08-02 Glenn Morris <rgm@gnu.org> | ||
| 9798 | |||
| 9799 | * nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR rather than | ||
| 9800 | hard-coding the path separator. | ||
| 9801 | |||
| 9802 | 2012-08-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9803 | |||
| 9804 | Use "ASET (a, i, v)" rather than "AREF (a, i) = v". | ||
| 9805 | This how ASET and AREF are supposed to work, and makes | ||
| 9806 | it easier to think about future improvements. See | ||
| 9807 | <http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00026.html>. | ||
| 9808 | * charset.h (set_charset_attr): New function. | ||
| 9809 | All lvalue-style uses of CHARSET_DECODER etc. changed to use it. | ||
| 9810 | * lisp.h (ASET): Rewrite so as not to use AREF in an lvalue style. | ||
| 9811 | (aref_addr): New function. All uses of &AREF(...) changed. | ||
| 9812 | (set_hash_key, set_hash_value, set_hash_next, set_hash_hash) | ||
| 9813 | (set_hash_index): New functions. All lvalue-style uses of | ||
| 9814 | HASH_KEY etc. changed. | ||
| 9815 | * keyboard.c (set_prop): New function. All lvalue-style uses | ||
| 9816 | of PROP changed. | ||
| 9817 | |||
| 9818 | 2012-08-01 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 9819 | |||
| 9820 | * nsterm.m (ns_set_vertical_scroll_bar, ns_redeem_scroll_bar) | ||
| 9821 | (EmacsWindow-accessibilityAttributeValue, EmacsScroller-initFrame:) | ||
| 9822 | (EmacsScroller-dealloc): Adjust to use WVAR. (Bug#12114) | ||
| 9823 | * nsfns.m (ns_set_name_as_filename): Likewise. | ||
| 9824 | * nsmenu.m (ns_update_menubar): Likewise. | ||
| 9825 | * nsselect.m (symbol_to_nsstring): Adjust to use SVAR. | ||
| 9826 | |||
| 9827 | 2012-08-01 Eli Zaretskii <eliz@gnu.org> | ||
| 9828 | |||
| 9829 | * .gdbinit (xcar, xcdr, xlist, xwindow, nextcons, xprintsym): | ||
| 9830 | Adapt to latest changes in field names of the corresponding Lisp | ||
| 9831 | objects. | ||
| 9832 | |||
| 9833 | * xdisp.c (try_window_id): Use WVAR in IF_DEBUG code. | ||
| 9834 | |||
| 9835 | 2012-08-01 Glenn Morris <rgm@gnu.org> | ||
| 9836 | |||
| 9837 | * s/msdos.h: Remove file. | ||
| 9838 | * conf_post.h [MSDOS]: New section, moved from s/msdos.h. | ||
| 9839 | * Makefile.in (S_FILE): Remove. | ||
| 9840 | (config_h): Remove S_FILE. | ||
| 9841 | |||
| 9842 | 2012-08-01 Juanma Barranquero <lekktu@gmail.com> | ||
| 9843 | |||
| 9844 | * s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP): | ||
| 9845 | Remove; moved to nt/config.nt. | ||
| 9846 | |||
| 9847 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9848 | |||
| 9849 | Use INTERNAL_FIELD for conses and overlays. | ||
| 9850 | * lisp.h (struct Lisp_Cons): Use INTERNAL_FIELD. | ||
| 9851 | Remove obsolete comment. | ||
| 9852 | (MVAR): New macro. | ||
| 9853 | (struct Lisp_Overlay): Use INTERNAL_FIELD. | ||
| 9854 | * alloc.c, buffer.c, buffer.h, fns.c: Adjust users. | ||
| 9855 | |||
| 9856 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9857 | |||
| 9858 | Use INTERNAL_FIELD for symbols. | ||
| 9859 | * lisp.h (SVAR): New macro. Adjust users. | ||
| 9860 | * alloc.c, bytecode.c, cmds.c, data.c, doc.c, eval.c: | ||
| 9861 | * fns.c, keyboard.c, lread.c, xterm.c: Users changed. | ||
| 9862 | |||
| 9863 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9864 | |||
| 9865 | Use INTERNAL_FIELD for processes. | ||
| 9866 | * process.h (PVAR): New macro. Adjust style. | ||
| 9867 | (struct Lisp_Process): Change Lisp_Object members to INTERNAL_FIELD. | ||
| 9868 | * print.c, process.c, sysdep.c, w32.c, xdisp.c: Users changed. | ||
| 9869 | |||
| 9870 | 2012-08-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9871 | |||
| 9872 | Use INTERNAL_FIELD for windows. | ||
| 9873 | * window.h (WVAR): New macro. | ||
| 9874 | (struct window): Change Lisp_Object members to INTERNAL_FIELD. | ||
| 9875 | * alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c: | ||
| 9876 | * fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c: | ||
| 9877 | * insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, nsterm.m, print.c: | ||
| 9878 | * textprop.c, w32fns.c, w32menu.c, w32term.c, window.c, xdisp.c: | ||
| 9879 | * xfaces.c, xfns.c, xmenu.c, xterm.c: Users changed. | ||
| 9880 | |||
| 9881 | 2012-08-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9882 | |||
| 9883 | * coding.h (CODING_ATTR_FLUSHING): Remove; unused and wouldn't work. | ||
| 9884 | |||
| 9885 | 2012-08-01 Glenn Morris <rgm@gnu.org> | ||
| 9886 | |||
| 9887 | * lisp.h (IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP): | ||
| 9888 | Move to configure.ac. | ||
| 9889 | |||
| 9890 | 2012-08-01 Juanma Barranquero <lekktu@gmail.com> | ||
| 9891 | |||
| 9892 | * makefile.w32-in (CONFIG_H): Update dependencies. | ||
| 9893 | (CONF_POST_H): New macro. | ||
| 9894 | |||
| 9895 | * s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt. | ||
| 9896 | |||
| 9897 | 2012-07-31 Glenn Morris <rgm@gnu.org> | ||
| 9898 | |||
| 9899 | * Makefile.in (S_FILE): No longer set by configure. | ||
| 9900 | |||
| 9901 | * conf_post.h (config_opsysfile): Move earlier, so that WINDOWSNT | ||
| 9902 | is available. | ||
| 9903 | (alloca.h) [WINDOWSNT]: Don't include it on MS Windows. | ||
| 9904 | |||
| 9905 | * process.h (NULL_DEVICE): | ||
| 9906 | * emacs.c (SEPCHAR): | ||
| 9907 | * editfns.c (USER_FULL_NAME): Let configure set them. | ||
| 9908 | |||
| 9909 | * s/README, s/template.h: Remove files. | ||
| 9910 | |||
| 9911 | * conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT. | ||
| 9912 | |||
| 9913 | * conf_post.h (AMPERSAND_FULL_NAME, subprocesses): | ||
| 9914 | Move to configure.ac. | ||
| 9915 | |||
| 9916 | 2012-07-31 Eli Zaretskii <eliz@gnu.org> | ||
| 9917 | |||
| 9918 | * .gdbinit (xframe): Adapt to introduction of FVAR and the | ||
| 9919 | resulting renaming of 'struct frame' members. | ||
| 9920 | |||
| 9921 | * w32menu.c (w32_menu_show): Revert bogus introduction of FVAR. | ||
| 9922 | |||
| 9923 | * fontset.c (dump_fontset): Fix compilation with ENABLE_CHECKING | ||
| 9924 | after introduction of FVAR. | ||
| 9925 | |||
| 9926 | 2012-07-31 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9927 | |||
| 9928 | * nsmenu.m (update_frame_tool_bar): Change key from NSObject* to id. | ||
| 9929 | |||
| 9930 | * nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Use drawInRect | ||
| 9931 | instead of compositeToPoint. | ||
| 9932 | (applicationShouldTerminate): Pass NS String literal to NSRunAlertPanel. | ||
| 9933 | |||
| 9934 | * nsfns.m, nsmenu.m, nsterm.m: Adopt to struct frame/FVAR changes. | ||
| 9935 | |||
| 9936 | 2012-07-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9937 | |||
| 9938 | Generalize INTERNAL_FIELD between buffers, keyboards and frames. | ||
| 9939 | * lisp.h (INTERNAL_FIELD): New macro. | ||
| 9940 | * buffer.h (BUFFER_INTERNAL_FIELD): Remove. | ||
| 9941 | (BVAR): Change to use INTERNAL_FIELD. | ||
| 9942 | * keyboard.h (KBOARD_INTERNAL_FIELD): Likewise. | ||
| 9943 | (KVAR): Change to use INTERNAL_FIELD. | ||
| 9944 | * frame.h (FVAR): New macro. | ||
| 9945 | (struct frame): Use INTERNAL_FIELD for all Lisp_Object fields. | ||
| 9946 | * alloc.c, buffer.c, data.c, dispnew.c, dosfns.c, eval.c, frame.c: | ||
| 9947 | * fringe.c, gtkutil.c, minibuf.c, nsfns.m, nsterm.m, print.c: | ||
| 9948 | * term.c, w32fns.c, w32menu.c, w32term.c, window.c, window.h: | ||
| 9949 | * xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Users changed. | ||
| 9950 | |||
| 9951 | 2012-07-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 9952 | |||
| 9953 | Miscellaneous fixes for non-default X toolkits. | ||
| 9954 | * xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings. | ||
| 9955 | * xterm.c (x_frame_of_widget): Remove redundant prototype. | ||
| 9956 | Move under #ifdef USE_LUCID. | ||
| 9957 | (x_create_toolkit_scroll_bar): Adjust scroll_bar_name | ||
| 9958 | definition and usage to avoid warnings. | ||
| 9959 | |||
| 9960 | 2012-07-31 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9961 | |||
| 9962 | * nsterm.m (openFiles): Fix previous checkin. | ||
| 9963 | |||
| 9964 | 2012-07-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9965 | |||
| 9966 | * indent.c (compute_motion): Remove unused local. | ||
| 9967 | |||
| 9968 | 2012-07-31 Glenn Morris <rgm@gnu.org> | ||
| 9969 | |||
| 9970 | * s/usg5-4-common.h (wait3, WRETCODE): Let configure set them. | ||
| 9971 | |||
| 9972 | * conf_post.h [USG5_4]: | ||
| 9973 | Move remaining contents of s/usg5-4-common.h here. | ||
| 9974 | * s/usg5-4-common.h: Remove file. | ||
| 9975 | |||
| 9976 | * conf_post.h [IRIX6_5]: Move remaining contents of s/irix6-5.h here. | ||
| 9977 | * s/irix6-5.h: Remove file. | ||
| 9978 | |||
| 9979 | * conf_post.h [DARWIN_OS]: Move remaining contents of s/darwin.h here. | ||
| 9980 | * s/darwin.h: Remove file. | ||
| 9981 | |||
| 9982 | * conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h. | ||
| 9983 | * s/hpux10-20.h: Remove file, which is now empty. | ||
| 9984 | |||
| 9985 | 2012-07-30 Glenn Morris <rgm@gnu.org> | ||
| 9986 | |||
| 9987 | * conf_post.h: New, split from configure.ac's AH_BOTTOM. | ||
| 9988 | * Makefile.in (config_h): Add conf_post.h. | ||
| 9989 | * makefile.w32-in (CONFIG_H): Add conf_post.h. | ||
| 9990 | |||
| 9991 | 2012-07-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 9992 | |||
| 9993 | * nsterm.m (ns_do_open_file): New variable. | ||
| 9994 | (ns_term_init): Set ns_do_open_file to YES after run returns. | ||
| 9995 | (openFile, openTempFile, openFileWithoutUI, openFiles): | ||
| 9996 | Open files only if ns_do_open_file. | ||
| 9997 | |||
| 9998 | 2012-07-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 9999 | |||
| 10000 | * lisp.h (SWITCH_ENUM_CAST): Remove. All uses removed. | ||
| 10001 | This no-op macro hasn't been needed for many years. | ||
| 10002 | * src/regex.c (SWITCH_ENUM_CAST) [!emacs]: Likewise. | ||
| 10003 | |||
| 10004 | Export DIRECTORY_SEP, TYPEMASK, VALMASK to GDB. | ||
| 10005 | * alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]: Add lsb_bits. | ||
| 10006 | * lisp.h (enum lsb_bits) [USE_LSB_TAG]: New enum, for | ||
| 10007 | gdb_make_enums_visible. | ||
| 10008 | (TYPEMASK, VALMASK) [USE_LSB_TAGS]: Now enum constants, not macros. | ||
| 10009 | (DIRECTORY_SEP): Now a constant, not a macro. | ||
| 10010 | |||
| 10011 | 2012-07-30 Eli Zaretskii <eliz@gnu.org> | ||
| 10012 | |||
| 10013 | * w32fns.c (w32_wnd_proc): Pass w32_keyboard_codepage to | ||
| 10014 | w32_kbd_patch_key as the 2nd arg. (Bug#12082) | ||
| 10015 | |||
| 10016 | * w32term.c <w32_keyboard_codepage>: Renamed from | ||
| 10017 | keyboard_codepage and now external. All users changed. | ||
| 10018 | |||
| 10019 | * w32term.h: Add declaration of w32_keyboard_codepage. | ||
| 10020 | |||
| 10021 | * w32inevt.c (w32_kbd_patch_key): Accept an additional argument -- | ||
| 10022 | the codepage to translate keys to Unicode. If this argument is | ||
| 10023 | -1, use the value returned by GetConsoleCP. All callers changed. | ||
| 10024 | |||
| 10025 | 2012-07-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10026 | |||
| 10027 | Update .PHONY listings in makefiles. | ||
| 10028 | * Makefile.in (.PHONY): Add all, mostlyclean, clean, | ||
| 10029 | bootstrap-clean, distclean, maintainer-clean, versioclean, | ||
| 10030 | extraclean, frc. | ||
| 10031 | |||
| 10032 | * lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t. | ||
| 10033 | This is a bit clearer. Fix some commentary typos. | ||
| 10034 | |||
| 10035 | 2012-07-30 Glenn Morris <rgm@gnu.org> | ||
| 10036 | |||
| 10037 | * s/netbsd.h: Let configure include signal.h if needed. | ||
| 10038 | Remove file, which is now empty. | ||
| 10039 | |||
| 10040 | * s/usg5-4-common.h (_longjmp, _setjmp, TIOCSIGSEND): | ||
| 10041 | Let configure set them. | ||
| 10042 | * s/irix6-5.h (_longjmp, _setjmp, TIOCSIGSEND): | ||
| 10043 | No more need to undefine. | ||
| 10044 | |||
| 10045 | 2012-07-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10046 | |||
| 10047 | * keymap.c (Fkey_description): Don't remove 0x80 bit from | ||
| 10048 | non-single-byte char when adding meta modifier. (Bug#12090) | ||
| 10049 | |||
| 10050 | 2012-07-30 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10051 | |||
| 10052 | Convert safe_call to use variable number of arguments. | ||
| 10053 | * xdisp.c (safe_call): Convert to use varargs. Adjust users. | ||
| 10054 | (safe_call2): Fix comment. | ||
| 10055 | * lisp.h (safe_call): Adjust prototype. | ||
| 10056 | * coding.c (encode_coding_object): Change to use safe_call2. | ||
| 10057 | * xfaces.c (merge_face_heights): Change to use safe_call1. | ||
| 10058 | |||
| 10059 | 2012-07-30 Glenn Morris <rgm@gnu.org> | ||
| 10060 | |||
| 10061 | * s/aix4-2.h (sigmask): No need to undefine it, since syssignal.h | ||
| 10062 | does that unconditionally. Remove file, which is now empty. | ||
| 10063 | |||
| 10064 | * s/freebsd.h, s/gnu-linux.h, s/sol2-6.h, s/unixware.h: | ||
| 10065 | Remove empty files. | ||
| 10066 | |||
| 10067 | 2012-07-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10068 | |||
| 10069 | Export to GDB most of lisp.h's remaining object-like macros. | ||
| 10070 | * lisp.h (min, max): Move earlier, because they're used earlier now. | ||
| 10071 | (INTMASK, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK) | ||
| 10072 | (CHAR_TABLE_STANDARD_SLOTS, CHARTAB_SIZE_BITS_0) | ||
| 10073 | (CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2, CHARTAB_SIZE_BITS_3) | ||
| 10074 | (DEFAULT_HASH_SIZE, COMPILED_ARGLIST, COMPILED_BYTECODE) | ||
| 10075 | (COMPILED_CONSTANTS, COMPILED_STACK_DEPTH, COMPILED_DOC_STRING) | ||
| 10076 | (COMPILED_INTERACTIVE, CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT) | ||
| 10077 | (CHAR_CTL, CHAR_META, CHAR_MODIFIER_MASK, CHARACTERBITS) | ||
| 10078 | (MANY, UNEVALLED, FLOAT_TO_STRING_BUFSIZE, MAX_ALLOCA): | ||
| 10079 | Now constants, for GDB. They need not be macros. | ||
| 10080 | (MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM, STRING_BYTES_BOUND): | ||
| 10081 | Now constants, for GDB, as well as macros, for static initializers. | ||
| 10082 | (CHAR_TABLE_STANDARD_SLOTS, CHAR_TABLE_EXTRA_SLOTS): | ||
| 10083 | Move to after the definition of struct Lisp_Char_Table, | ||
| 10084 | since the former now needs that type defined. | ||
| 10085 | (enum CHARTAB_SIZE_BITS, enum CHAR_TABLE_STANDARD_SLOTS) | ||
| 10086 | (enum DEFAULT_HASH_SIZE, enum Lisp_Compiled, enum char_bits) | ||
| 10087 | (enum maxargs, enum FLOAT_TO_STRING_BUFSIZE, enum MAX_ALLOCA): | ||
| 10088 | New enums, for gdb_make_enums_visible. | ||
| 10089 | (GLYPH_MODE_LINE_FACE): Remove; unused. | ||
| 10090 | * alloc.c (STRING_BYTES_MAX): Now a constant, not a macro. | ||
| 10091 | (gdb_make_enums_visible): Add enum CHARTAB_SIZE_BITS, enum | ||
| 10092 | CHAR_TABLE_STANDARD_SLOTS, enum char_bits, enum DEFAULT_HASH_SIZE, | ||
| 10093 | enum FLOAT_TO_STRING_BUFSIZE, enum Lisp_Bits, enum Lisp_Compiled, | ||
| 10094 | enum maxargs, enum MAX_ALLOCA. | ||
| 10095 | (ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL): Remove. | ||
| 10096 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Remove; | ||
| 10097 | no longer needed, now that they are done in lisp.h. | ||
| 10098 | |||
| 10099 | 2012-07-30 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10100 | |||
| 10101 | Cleanup string bytes checking. | ||
| 10102 | * alloc.c (GC_STRING_BYTES, CHECK_STRING_BYTES): Remove. Convert | ||
| 10103 | all users to STRING_BYTES or string_bytes if GC_CHECK_STRING_BYTES. | ||
| 10104 | (check_string_bytes): Define to empty if not GC_CHECK_STRING_BYTES. | ||
| 10105 | (check_sblock, compact_small_strings): Simplify. | ||
| 10106 | |||
| 10107 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10108 | |||
| 10109 | * lisp.h (LISP_INT_TAG, LISP_INT1_TAG, LISP_STRING_TAG): Remove. | ||
| 10110 | These macros are confusing and no longer need to be defined, as | ||
| 10111 | the enum values now suffice. All uses replaced with definiens. | ||
| 10112 | (Lisp_Int1, Lisp_String): Define directly; this is clearer. | ||
| 10113 | |||
| 10114 | 2012-07-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 10115 | |||
| 10116 | * makefile.w32-in (LISP_H, $(BLD)/emacs.$(O), $(BLD)/w32inevt.$(O)) | ||
| 10117 | ($(BLD)/w32console.$(O)): Update dependencies. | ||
| 10118 | |||
| 10119 | 2012-07-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10120 | |||
| 10121 | Remove HIDE_LISP_IMPLEMENTATION and cleanup cons free list check. | ||
| 10122 | * lisp.h (HIDE_LISP_IMPLEMENTATION): Remove as useless for a long | ||
| 10123 | time. Adjust users. | ||
| 10124 | (CHECK_CONS_LIST): Remove. Convert all users to check_cons_list. | ||
| 10125 | |||
| 10126 | 2012-07-29 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10127 | |||
| 10128 | * lread.c (init_lread): Remove if-statement in ifdef HAVE_NS before | ||
| 10129 | setting sitelisp (Bug#12010). | ||
| 10130 | |||
| 10131 | 2012-07-29 Eli Zaretskii <eliz@gnu.org> | ||
| 10132 | |||
| 10133 | * w32heap.h (OS_9X): Rename from OS_WINDOWS_95. | ||
| 10134 | |||
| 10135 | * w32heap.c (cache_system_info): | ||
| 10136 | * w32.c (sys_rename): | ||
| 10137 | * w32proc.c (find_child_console, sys_kill): All users changed. | ||
| 10138 | |||
| 10139 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10140 | |||
| 10141 | * alloc.c (Fgarbage_collect): Indent as per usual Emacs style. | ||
| 10142 | |||
| 10143 | 2012-07-29 Eli Zaretskii <eliz@gnu.org> | ||
| 10144 | |||
| 10145 | * makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h. | ||
| 10146 | |||
| 10147 | 2012-07-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10148 | |||
| 10149 | Cleanup statistics calculation in Fgarbage_collect. | ||
| 10150 | * alloc.c (Fgarbage_collect): Rename t1 to meaningful start. | ||
| 10151 | Fix zombies percentage calculation. Simplify elapsed time calculation. | ||
| 10152 | |||
| 10153 | 2012-07-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10154 | |||
| 10155 | Generalize marker debugging code under MARKER_DEBUG and use eassert. | ||
| 10156 | * insdel.c (CHECK_MARKERS, check_markers_debug_flag): Remove. | ||
| 10157 | (gap_left, gap_right, adjust_markers_for_delete, insert_1_both) | ||
| 10158 | (insert_from_string_1, insert_from_gap, insert_from_buffer_1) | ||
| 10159 | (replace_range, replace_range_2, del_range_2): Change to eassert. | ||
| 10160 | * marker.c (byte_char_debug_check): Adjust style. | ||
| 10161 | |||
| 10162 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10163 | |||
| 10164 | Don't use the abbreviation "win" to refer to Windows (Bug#10421). | ||
| 10165 | * regex.c (MAX_BUF_SIZE): Remove some incorrect and | ||
| 10166 | long-ago-commented-out code that talks about "WIN32". | ||
| 10167 | * w32heap.h (OS_WINDOWS_95): Rename from OS_WIN95. | ||
| 10168 | All uses changed. | ||
| 10169 | |||
| 10170 | 2012-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10171 | |||
| 10172 | Use Gnulib stdalign module (Bug#9772, Bug#9960). | ||
| 10173 | * alloc.c (XMALLOC_BASE_ALIGNMENT, GC_POINTER_ALIGNMENT, pure_alloc): | ||
| 10174 | Simplify by using alignof. | ||
| 10175 | (pure_alloc) [! USE_LSB_TAG]: Don't over-align EMACS_INT values. | ||
| 10176 | * lisp.h: Include <stdalign.h>. | ||
| 10177 | (GCALIGNMENT): New macro and constant. | ||
| 10178 | (DECL_ALIGN): Remove. All uses replaced by alignas (GCALIGNMENT). | ||
| 10179 | (USE_LSB_TAG): ifdef on alignas, not on DECL_ALIGN. | ||
| 10180 | (stdalign): New macro, if not already defined. | ||
| 10181 | |||
| 10182 | 2012-07-28 Eli Zaretskii <eliz@gnu.org> | ||
| 10183 | |||
| 10184 | Fix non-ASCII input in non-GUI frames on MS-Windows. (Bug#12055) | ||
| 10185 | * w32inevt.c: Include w32inevt.h. | ||
| 10186 | (w32_read_console_input): New inline function, calls either | ||
| 10187 | ReadConsoleInputA or ReadConsoleInputW, depending on the value of | ||
| 10188 | w32_console_unicode_input. | ||
| 10189 | (fill_queue): Call w32_read_console_input instead of ReadConsoleInput. | ||
| 10190 | (w32_kbd_patch_key, key_event): Use the codepage returned by | ||
| 10191 | GetConsoleCP, rather than the ANSI codepage returned by GetLocaleInfo. | ||
| 10192 | (key_event): use uChar.UnicodeChar only if | ||
| 10193 | w32_console_unicode_input is non-zero. | ||
| 10194 | |||
| 10195 | * w32console.c: Include w32heap.h. | ||
| 10196 | <w32_console_unicode_input>: New global variable. | ||
| 10197 | (initialize_w32_display): Set w32_console_unicode_input to 1 on NT | ||
| 10198 | family of Windows, zero otherwise. | ||
| 10199 | |||
| 10200 | * w32inevt.h: Declare w32_console_unicode_input. | ||
| 10201 | |||
| 10202 | * xdisp.c (init_iterator): Don't reference tip_frame in a build | ||
| 10203 | --without-x. (Bug#11742) | ||
| 10204 | |||
| 10205 | 2012-07-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10206 | |||
| 10207 | Adjust GDB to reflect pvec_type changes (Bug#12036). | ||
| 10208 | * .gdbinit (xvectype, xpr, xbacktrace): Adjust to reflect the | ||
| 10209 | 2012-07-04 changes to pseudovector representation. | ||
| 10210 | Problem reported by Eli Zaretskii in <http://bugs.gnu.org/12036#30>. | ||
| 10211 | |||
| 10212 | 2012-07-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 10213 | |||
| 10214 | * dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS): Canonicalize session | ||
| 10215 | bus address. | ||
| 10216 | (xd_close_bus, Fdbus_init_bus): Handle reference counter properly. | ||
| 10217 | |||
| 10218 | 2012-07-27 Eli Zaretskii <eliz@gnu.org> | ||
| 10219 | |||
| 10220 | * alloc.c (listn): Fix the order the arguments are consed onto the | ||
| 10221 | list. | ||
| 10222 | |||
| 10223 | * lisp.h (enum constype): Use CONSTYPE_HEAP and CONSTYPE_PURE for | ||
| 10224 | enumeration constants, as PURE and HEAP are too general, and clash | ||
| 10225 | with other headers and sources, such as gmalloc.c and the | ||
| 10226 | MS-Windows system headers. All users changed. | ||
| 10227 | |||
| 10228 | 2012-07-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10229 | |||
| 10230 | Revert last save_excursion_save and save_excursion_restore changes. | ||
| 10231 | * alloc.c, editfns.c, marker.c, lisp.h: Revert. | ||
| 10232 | Lots of crashes reported by Chong Yidong <cyd@gnu.org>. | ||
| 10233 | |||
| 10234 | 2012-07-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10235 | |||
| 10236 | Fix recently-introduced typos in Windows port. | ||
| 10237 | Reported by Martin Rudalics <rudalics@gmx.at>. | ||
| 10238 | * w32.c (init_environment): Replace comma with semicolon. | ||
| 10239 | * w32fns.c (syms_of_w32fns): Add missing parenthesis. | ||
| 10240 | |||
| 10241 | 2012-07-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10242 | |||
| 10243 | Improve GDB symbol export (Bug#12036). | ||
| 10244 | * .gdbinit (xgetptr, xgetint, xgettype): Set $bugfix in different | ||
| 10245 | arms of an 'if', not using conditional expressions; otherwise GDB | ||
| 10246 | complains about the types in the unevaluated arm when the argument | ||
| 10247 | is an integer literal. | ||
| 10248 | (xgetint): Simplify expression. | ||
| 10249 | * alloc.c (gdb_make_enums_visible): New constant. This ports to | ||
| 10250 | GCC 3.4.2 the export of symbols to GDB. Problem reported by Eli | ||
| 10251 | Zaretskii in <http://bugs.gnu.org/12036#13>. | ||
| 10252 | * lisp.h (PUBLISH_TO_GDB): Remove. All uses removed. No longer | ||
| 10253 | needed now that we have gdb_make_enums_visible. | ||
| 10254 | (enum CHECK_LISP_OBJECT_TYPE, enum Lisp_Bits, enum More_Lisp_Bits) | ||
| 10255 | (enum enum_USE_LSB_TAG): | ||
| 10256 | New enum types, packaging up enums that need to be exported to GDB. | ||
| 10257 | |||
| 10258 | 2012-07-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10259 | |||
| 10260 | Utility function to make a list from specified amount of objects. | ||
| 10261 | * lisp.h (enum constype): New datatype. | ||
| 10262 | (listn): New prototype. | ||
| 10263 | * alloc.c (listn): New function. | ||
| 10264 | (Fmemory_use_count, syms_of_alloc): Use it. | ||
| 10265 | * buffer.c (syms_of_buffer): Likewise. | ||
| 10266 | * callint.c (syms_of_callint): Likewise. | ||
| 10267 | * charset.c (define_charset_internal): Likewise. | ||
| 10268 | * coding.c (syms_of_coding): Likewise. | ||
| 10269 | * keymap.c (syms_of_keymap): Likewise. | ||
| 10270 | * search.c (syms_of_search): Likewise. | ||
| 10271 | * syntax.c (syms_of_syntax): Likewise. | ||
| 10272 | * w32.c (init_environment): Likewise. | ||
| 10273 | * w32fns.c (Fw32_battery_status, syms_of_w32fns): Likewise. | ||
| 10274 | * xdisp.c (syms_of_xdisp): Likewise. | ||
| 10275 | * xfns.c (syms_of_xfns): Likewise. | ||
| 10276 | |||
| 10277 | 2012-07-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10278 | |||
| 10279 | Fast save_excursion_save and save_excursion_restore. | ||
| 10280 | * lisp.h (struct Lisp_Excursion): New data type. | ||
| 10281 | (PVEC_EXCURSION): New pseudovector type. | ||
| 10282 | (XEXCURSION, XSETEXCURSION, EXCURSIONP): Convenient macros | ||
| 10283 | to deal with it. Adjust comments. | ||
| 10284 | (init_marker, attach_marker): New prototype. | ||
| 10285 | (unchain_marker): Adjust prototype. | ||
| 10286 | * marker.c (attach_marker): Change to global. | ||
| 10287 | (init_marker): New function. | ||
| 10288 | * alloc.c (Fmake_marker, build_marker): Use it. | ||
| 10289 | (build_marker): More easserts. | ||
| 10290 | (mark_object): Handle struct Lisp_Excursion. | ||
| 10291 | * editfns.c (save_excursion_save, save_excursion_restore): | ||
| 10292 | Reimplement to use struct Lisp_Excursion. Add comments. | ||
| 10293 | |||
| 10294 | 2012-07-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10295 | |||
| 10296 | Fix export of symbols to GDB (Bug#12036). | ||
| 10297 | * alloc.c (ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL) | ||
| 10298 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Move these here from | ||
| 10299 | emacs.c, as this is a more-suitable home. Had this been done earlier | ||
| 10300 | the fix for 12036 would have avoided some of the problems noted in | ||
| 10301 | <http://bugs.gnu.org/12036#13> by Eli Zaretskii, as the scope problems | ||
| 10302 | would have been more obvious. | ||
| 10303 | * emacs.c: Do not include <verify.h>; no longer needed. | ||
| 10304 | (gdb_CHECK_LISP_OBJECT_TYPE, gdb_DATA_SEG_BITS) | ||
| 10305 | (gdb_GCTYPEBITS, gdb_USE_LSB_TAG) | ||
| 10306 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS, GCTYPEBITS, USE_LSB_TAG): | ||
| 10307 | Remove; now done in lisp.h. | ||
| 10308 | * lisp.h (PUBLISH_TO_GDB): New macro. | ||
| 10309 | (GCTYPEBITS, USE_LSB_TAG, CHECK_LISP_OBJECT_TYPE, enum pvec_type) | ||
| 10310 | (DATA_SEG_BITS): Use it. | ||
| 10311 | (GCTYPEBITS, USE_LSB_TAG): Now also an enum, for GDB. | ||
| 10312 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS): Now just an enum, for GDB. | ||
| 10313 | * mem-limits.h (EXCEEDS_LISP_PTR): Redo so that DATA_SEG_BITS need | ||
| 10314 | not be usable in #if. This simplifies things. | ||
| 10315 | |||
| 10316 | 2012-07-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 10317 | |||
| 10318 | * makefile.w32-in ($(BLD)/emacs.$(O)): Update dependencies. | ||
| 10319 | |||
| 10320 | 2012-07-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10321 | |||
| 10322 | Simplify export of symbols to GDB (Bug#12036). | ||
| 10323 | * .gdbinit (xgetptr, xgetint, xgettype): Don't use "set $bugfix = | ||
| 10324 | $bugfix.i", as this doesn't work (with GDB 7.4.1, anyway). | ||
| 10325 | (xgetptr, xgetint, xgettype, xcoding, xcharset, xprintbytestr): | ||
| 10326 | Adjust to changes in lisp.h and emacs.c, by using | ||
| 10327 | CHECK_LISP_OBJECT_TYPE rather than gdb_use_struct, VALMASK instead | ||
| 10328 | of $valmask, DATA_SEG_BITS instead of gdb_data_seg_bits, | ||
| 10329 | INTTYPEBITS instead of gdb_gctypebits - 1, USE_LSB_TAG instead of | ||
| 10330 | gdb_use_lsb, (1 << GCTYPEBITS) - 1 instead of $tagmask, VALBITS | ||
| 10331 | instead of gdb_valbits. | ||
| 10332 | (xvectype, xvector, xpr, xprintstr, xbacktrace): Similarly, use | ||
| 10333 | PSEUDOVECTOR_FLAG instead of PVEC_FLAG, and ARRAY_MARK_FLAG | ||
| 10334 | instead of gdb_array_mark_flag. | ||
| 10335 | (xboolvector): Get size from $->size, not $->header.size. | ||
| 10336 | Use BOOL_VECTOR_BITS_PER_CHAR rather than mystery constants. | ||
| 10337 | (xreload, hook-run, hookpost-run): Remove. | ||
| 10338 | * emacs.c: Include <verify.h>. | ||
| 10339 | (gdb_use_lsb, gdb_use_struct, gdb_valbits, gdb_gctypebits) | ||
| 10340 | (gdb_data_seg_bits, PVEC_FLAG, gdb_array_mark_flag, gdb_pvec_type): | ||
| 10341 | Remove. | ||
| 10342 | (gdb_CHECK_LISP_OBJECT_TYPE, gdb_DATA_SEG_BITS, gdb_GCTYPEBITS) | ||
| 10343 | (gdb_USE_LSB_TAG): New enum constants. | ||
| 10344 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS, GCTYPEBITS, USE_LSB_TAG): | ||
| 10345 | Also define these as enum constants, so they're visible to GDB. | ||
| 10346 | (ARRAY_MARK_FLAG_VAL, PSEUDOVECTOR_FLAG_VAL, VALMASK_VAL): New macros. | ||
| 10347 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Also define these | ||
| 10348 | as constants, so they're visible to GDB. | ||
| 10349 | * lisp.h (VALBITS, INTTYPEBITS, FIXNUM_BITS, PSEUDOVECTOR_SIZE_BITS) | ||
| 10350 | (PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK, BOOL_VECTOR_BITS_PER_CHAR): | ||
| 10351 | Now enum constants, not macros, so they're visible to GDB. | ||
| 10352 | (CHECK_LISP_OBJECT_TYPE, DATA_SEG_BITS): Default to 0, as this is | ||
| 10353 | more convenient now. All uses changed. | ||
| 10354 | (VALMASK) [USE_LSB_TAG]: Also define in this case. | ||
| 10355 | * mem-limits.h (EXCEEDS_LISP_PTR): Adjust to DATA_SEG_BITS change. | ||
| 10356 | |||
| 10357 | 2012-07-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10358 | |||
| 10359 | Explicitly free restriction data that are not needed anymore. | ||
| 10360 | * editfns.c (save_restriction_restore): Free restriction data. | ||
| 10361 | |||
| 10362 | 2012-07-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 10363 | |||
| 10364 | * eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp, | ||
| 10365 | add argument, tune behavior, and adjust all callers. | ||
| 10366 | |||
| 10367 | 2012-07-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10368 | |||
| 10369 | Use typedef for EMACS_INT, EMACS_UINT. | ||
| 10370 | * lisp.h, s/ms-w32.h (EMACS_INT, EMACS_UINT): Use typedefs rather | ||
| 10371 | than macros. This simplifies debugging in the usual case, since | ||
| 10372 | it lets GDB show addresses as 'EMACS_INT *' rather than 'long int *' | ||
| 10373 | and it allows expressions involving EMACS_INT casts. | ||
| 10374 | * .gdbinit (xreload): Simplify by using EMACS_INT cast. | ||
| 10375 | |||
| 10376 | 2012-07-25 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10377 | |||
| 10378 | * nsterm.m (ns_read_socket): Return early if there is a modal | ||
| 10379 | window (Bug#12043). | ||
| 10380 | |||
| 10381 | 2012-07-25 Martin Rudalics <rudalics@gmx.at> | ||
| 10382 | |||
| 10383 | * frame.c (Fredirect_frame_focus): In doc-string don't mention | ||
| 10384 | that FOCUS-FRAME can be omitted. | ||
| 10385 | |||
| 10386 | 2012-07-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10387 | |||
| 10388 | Adjust buffer text indirection counters at the end of Fkill_buffer. | ||
| 10389 | * buffer.c (Fkill_buffer): Adjust indirection counters when the | ||
| 10390 | buffer is definitely dead. This should really fix an issue reported | ||
| 10391 | by Christoph Scholtes again. (Bug#12007). | ||
| 10392 | (init_buffer_once): Initialize indirection counters of | ||
| 10393 | buffer_defaults and buffer_local_symbols (for sanity and safety). | ||
| 10394 | |||
| 10395 | 2012-07-24 Eli Zaretskii <eliz@gnu.org> | ||
| 10396 | |||
| 10397 | * xdisp.c (init_iterator): Don't compute dimensions of truncation | ||
| 10398 | and continuation glyphs on tooltip frames, leave them at zero. | ||
| 10399 | Avoids continued lines in tooltips. (Bug#11832) | ||
| 10400 | |||
| 10401 | 2012-07-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10402 | |||
| 10403 | Simplify copy_overlay. | ||
| 10404 | * buffer.c (copy_overlay): Simplify. Use build_marker. | ||
| 10405 | * lisp.h (struct Lisp_Overlay): Restore comment with minor tweaks. | ||
| 10406 | |||
| 10407 | 2012-07-23 Eli Zaretskii <eliz@gnu.org> | ||
| 10408 | |||
| 10409 | * print.c (print_object): Don't crash when a frame's name is nil | ||
| 10410 | or invalid. (Bug#12025) | ||
| 10411 | |||
| 10412 | * window.c (decode_any_window): Disable CHECK_LIVE_FRAME test, as | ||
| 10413 | it signals an error when a tooltip frame is being created. | ||
| 10414 | |||
| 10415 | 2012-07-23 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10416 | |||
| 10417 | Cleanup miscellaneous objects allocation and initialization. | ||
| 10418 | * alloc.c (allocate_misc): Change to static. Add argument to | ||
| 10419 | specify the subtype. Adjust comment and users. | ||
| 10420 | (build_overlay): New function. | ||
| 10421 | * buffer.c (copy_overlays, Fmake_overlay): Use it. | ||
| 10422 | * lisp.h (struct Lisp_Overlay): Remove obsolete comment. | ||
| 10423 | (allocate_misc): Remove prototype. | ||
| 10424 | (build_overlay): Add prototype. | ||
| 10425 | |||
| 10426 | 2012-07-23 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10427 | |||
| 10428 | Swap buffer text indirection counters in Fbuffer_swap_text. | ||
| 10429 | * buffer.c (Fbuffer_swap_text): Swap indirections too. | ||
| 10430 | This avoids crash reported by Christoph Scholtes at | ||
| 10431 | http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-07/msg00785.html. | ||
| 10432 | |||
| 10433 | 2012-07-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10434 | |||
| 10435 | * nsmenu.m (Popdown_data): New struct. | ||
| 10436 | (pop_down_menu): p->pointer is Popdown_data. Release the pool and | ||
| 10437 | free Popdown_data. | ||
| 10438 | (ns_popup_dialog): Use NSAutoreleasePool and pass it to pop_down_menu. | ||
| 10439 | (initWithContentRect): Make imgView and contentView non-static | ||
| 10440 | and autorelease them. Also autorelease img and matrix (Bug#12005). | ||
| 10441 | (dealloc): Remove (Bug#12005). | ||
| 10442 | |||
| 10443 | 2012-07-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10444 | |||
| 10445 | Adjust consing_since_gc when objects are explicitly freed. | ||
| 10446 | * alloc.c (GC_DEFAULT_THRESHOLD): New macro. | ||
| 10447 | (Fgarbage_collect): Use it. Change minimum to 1/10 of default. | ||
| 10448 | (free_cons, free_misc): Subtract object size from consing_since_gc. | ||
| 10449 | |||
| 10450 | 2012-07-22 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10451 | |||
| 10452 | Simplify and cleanup markers positioning code. | ||
| 10453 | * marker.c (attach_marker): More useful eassert. | ||
| 10454 | (live_buffer, set_marker_internal): New function. | ||
| 10455 | (Fset_marker, set_marker_restricted): Use set_marker_internal. | ||
| 10456 | (set_marker_both, set_marker_restricted_both): Use live_buffer. | ||
| 10457 | |||
| 10458 | 2012-07-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10459 | |||
| 10460 | * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int, | ||
| 10461 | as it's limited by the amount of memory, not by INT_MAX. | ||
| 10462 | |||
| 10463 | 2012-07-21 Eli Zaretskii <eliz@gnu.org> | ||
| 10464 | |||
| 10465 | * keyboard.c (keys_of_keyboard): Bind language-change to 'ignore' | ||
| 10466 | in special-event-map. See the discussion at | ||
| 10467 | http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00417.html | ||
| 10468 | for the reasons. | ||
| 10469 | |||
| 10470 | * w32menu.c (add_menu_item): Cast to ULONG_PTR when assigning | ||
| 10471 | info.dwItemData. Fixes crashes on 64-bit Windows. | ||
| 10472 | Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>. | ||
| 10473 | |||
| 10474 | 2012-07-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10475 | |||
| 10476 | * nsterm.m (accessibilityAttributeValue): New function. (Bug#11134). | ||
| 10477 | (conversationIdentifier): Return value is NSInteger. | ||
| 10478 | * nsterm.m (accessibilityAttributeValue): Surround with NS_IMPL_COCOA. | ||
| 10479 | |||
| 10480 | 2012-07-21 Chong Yidong <cyd@gnu.org> | ||
| 10481 | |||
| 10482 | * window.c (decode_any_window): Signal an error if the window is | ||
| 10483 | on a dead frame (Bug#11984). | ||
| 10484 | |||
| 10485 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10486 | |||
| 10487 | Add indirection counting to speed up Fkill_buffer. | ||
| 10488 | * buffer.h (struct buffer): New member. | ||
| 10489 | * buffer.c (Fget_buffer_create): Set indirection counter to 0. | ||
| 10490 | (Fmake_indirect_buffer): Set indirection counter to -1, increment | ||
| 10491 | base buffer indirection counter. | ||
| 10492 | (compact_buffer): If ENABLE_CHECKING, verify indirection counters. | ||
| 10493 | (Fkill_buffer): Adjust indirection counters as needed, don't walk | ||
| 10494 | through buffer list if indirection counter is 0. | ||
| 10495 | |||
| 10496 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10497 | |||
| 10498 | Extend the value returned by Fgarbage_collect with heap statistics. | ||
| 10499 | * alloc.c (Qheap): New symbol. | ||
| 10500 | (syms_of_alloc): DEFSYM it. | ||
| 10501 | (Fgarbage_collect): If DOUG_LEA_MALLOC, add mallinfo data. | ||
| 10502 | (Fmemory_free): Remove. | ||
| 10503 | (syms_of_alloc): Don't defsubr it. | ||
| 10504 | * buffer.c (Fcompact_buffer): Remove. | ||
| 10505 | (syms_of_buffer): Don't defsubr it. | ||
| 10506 | |||
| 10507 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10508 | |||
| 10509 | Make maybe_gc inline. | ||
| 10510 | Verify that inlining is always possible (GCC 4.7.1, -O3 -Winline). | ||
| 10511 | * lisp.h (consing_since_gc, gc_relative_threshold) | ||
| 10512 | (memory_full_cons_threshold): Revert declaration. | ||
| 10513 | (maybe_gc): Remove prototype, define as inline. | ||
| 10514 | * alloc.c: Remove old commented-out code. | ||
| 10515 | (consing_since_gc, gc_relative_threshold) | ||
| 10516 | (memory_full_cons_threshold): Revert to global. | ||
| 10517 | (maybe_gc): Remove. | ||
| 10518 | |||
| 10519 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10520 | |||
| 10521 | Simple wrapper for make_unibyte_string, adjust font_open_by_name. | ||
| 10522 | * lisp.h (build_unibyte_string): New function. | ||
| 10523 | * dosfns.c, fileio.c, fns.c, ftfont.c, process.c: | ||
| 10524 | * sysdep.c, w32fns.c, xfns.c: Use it. | ||
| 10525 | * font.c (font_open_by_name): Change 2nd and 3rd args to the only arg | ||
| 10526 | of type Lisp_Object to avoid redundant calls to make_unibyte_string. | ||
| 10527 | Adjust users accordingly. | ||
| 10528 | * font.h (font_open_by_name): Adjust prototype. | ||
| 10529 | |||
| 10530 | 2012-07-20 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10531 | |||
| 10532 | Cleanup calls to Fgarbage_collect. | ||
| 10533 | * lisp.h (maybe_gc): New prototype. | ||
| 10534 | (consing_since_gc, gc_relative_threshold, memory_full_cons_threshold): | ||
| 10535 | Remove declarations. | ||
| 10536 | * alloc.c (maybe_gc): New function. | ||
| 10537 | (consing_since_gc, gc_relative_threshold, memory_full_cons_threshold): | ||
| 10538 | Make them static. | ||
| 10539 | * bytecode.c (MAYBE_GC): Use maybe_gc. | ||
| 10540 | * eval.c (eval_sub, Ffuncall): Likewise. | ||
| 10541 | * keyboard.c (read_char): Likewise. Adjust call to maybe_gc | ||
| 10542 | to avoid dependency from auto-save feature. | ||
| 10543 | |||
| 10544 | 2012-07-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10545 | |||
| 10546 | * buffer.h (FOR_EACH_BUFFER): Rename from 'for_each_buffer'. | ||
| 10547 | (FOR_EACH_PER_BUFFER_OBJECT_AT): Rename from | ||
| 10548 | 'for_each_per_buffer_object_at'. | ||
| 10549 | All uses changed. It's better to use upper-case for macros that | ||
| 10550 | cannot be implemented as functions, to give the reader a clue | ||
| 10551 | that they're special. | ||
| 10552 | |||
| 10553 | 2012-07-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 10554 | |||
| 10555 | * alloc.c (Fgarbage_collect): Tweak docstring. | ||
| 10556 | |||
| 10557 | 2012-07-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10558 | |||
| 10559 | Tweak the value returned from Fgarbage_collect again. | ||
| 10560 | * alloc.c (Fgarbage_collect): New return value, as confirmed in | ||
| 10561 | http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00418.html. | ||
| 10562 | Adjust documentation. | ||
| 10563 | (total_vector_bytes): Rename to total_vector_slots, adjust | ||
| 10564 | accounting. | ||
| 10565 | (total_free_vector_bytes): Rename to total_free_vector_slots, | ||
| 10566 | adjust accounting. | ||
| 10567 | (Qstring_bytes, Qvector_slots): New symbols. | ||
| 10568 | (syms_of_alloc): DEFSYM them. | ||
| 10569 | |||
| 10570 | 2012-07-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10571 | |||
| 10572 | Buffer compaction primitive which may be used from Lisp. | ||
| 10573 | * buffer.c (compact_buffer, Fcompact_buffer): New function. | ||
| 10574 | (syms_of_buffer): Register Fcompact_buffer. | ||
| 10575 | * alloc.c (Fgarbage_collect): Use compact_buffer. | ||
| 10576 | * buffer.h (compact_buffer): New prototype. | ||
| 10577 | (struct buffer_text): New member. | ||
| 10578 | |||
| 10579 | 2012-07-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10580 | |||
| 10581 | New macro to iterate over all buffers, miscellaneous cleanups. | ||
| 10582 | * lisp.h (all_buffers): Remove declaration. | ||
| 10583 | * buffer.h (all_buffers): Add declaration, with comment. | ||
| 10584 | (for_each_buffer): New macro. | ||
| 10585 | * alloc.c (Fgarbage_collect, mark_object): Use it. | ||
| 10586 | * buffer.c (Fkill_buffer, Fbuffer_swap_text, Fset_buffer_multibyte) | ||
| 10587 | (init_buffer): Likewise. | ||
| 10588 | * data.c (Fset_default): Likewise. | ||
| 10589 | * coding.c (code_conversion_restore): Remove redundant check | ||
| 10590 | for dead buffer. | ||
| 10591 | * buffer.c (Fkill_buffer): Likewise. Remove obsolete comment. | ||
| 10592 | |||
| 10593 | 2012-07-18 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10594 | |||
| 10595 | Fix bug that created negative-length intervals. | ||
| 10596 | * intervals.c (merge_interval_right, merge_interval_left): | ||
| 10597 | Do not zero out this interval if it is absorbed by its children, | ||
| 10598 | as this interval's total length doesn't change in that case. See | ||
| 10599 | <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00403.html>. | ||
| 10600 | |||
| 10601 | 2012-07-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10602 | |||
| 10603 | * alloc.c (Fmake_bool_vector): Fix off-by-8 bug | ||
| 10604 | when invoking (make-bool-vector N t) and N is a positive | ||
| 10605 | multiple of 8 -- the last 8 bits were mistakenly cleared. | ||
| 10606 | |||
| 10607 | Remove some struct layout assumptions in bool vectors. | ||
| 10608 | * alloc.c (bool_header_size): New constant. | ||
| 10609 | (header_size, word_size): Move earlier, as they're now used earlier. | ||
| 10610 | Use 'word_size' in a few more places, where it's appropriate. | ||
| 10611 | (Fmake_bool_vector, sweep_vectors): Don't assume that there is no | ||
| 10612 | padding before the data member of a bool vector. | ||
| 10613 | (sweep_vectors): Use PSEUDOVECTOR_TYPEP, in an eassert, rather | ||
| 10614 | than doing the check by hand with an abort (). | ||
| 10615 | |||
| 10616 | 2012-07-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 10617 | |||
| 10618 | * eval.c (Fdefvar): Don't check constants since we only set the var if | ||
| 10619 | it's not yet defined anyway (bug#11904). | ||
| 10620 | |||
| 10621 | * lisp.h (last_undo_boundary): Declare new var. | ||
| 10622 | * keyboard.c (command_loop_1): Set it. | ||
| 10623 | * cmds.c (Fself_insert_command): Use it to only remove boundaries that | ||
| 10624 | were auto-added by the command loop (bug#11774). | ||
| 10625 | |||
| 10626 | 2012-07-18 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10627 | |||
| 10628 | * w32font.c (Qsymbol): Remove local definition. | ||
| 10629 | (syms_of_w32font): Don't DEFSYM it. | ||
| 10630 | |||
| 10631 | 2012-07-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10632 | |||
| 10633 | Fix sweep_vectors to handle large bool vectors correctly. | ||
| 10634 | * alloc.c (sweep_vectors): Account total_vector_bytes for | ||
| 10635 | bool vectors larger than VBLOCK_BYTES_MAX. | ||
| 10636 | |||
| 10637 | 2012-07-18 Chong Yidong <cyd@gnu.org> | ||
| 10638 | |||
| 10639 | * frame.c (x_set_frame_parameters): Revert bogus change introduced | ||
| 10640 | in 2012-05-25 commit by Paul Eggert (Bug#11738). | ||
| 10641 | |||
| 10642 | 2012-07-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10643 | |||
| 10644 | Return more descriptive data from Fgarbage_collect. | ||
| 10645 | Suggested by Stefan Monnier in | ||
| 10646 | http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00369.html. | ||
| 10647 | * alloc.c (bounded_number): New function. | ||
| 10648 | (total_buffers, total_vectors): New variable. | ||
| 10649 | (total_string_size): Rename to total_string_bytes, adjust users. | ||
| 10650 | (total_vector_size): Rename to total_vector_bytes, adjust users. | ||
| 10651 | (sweep_vectors): Account total_vectors and total_vector_bytes. | ||
| 10652 | (Fgarbage_collect): New return value. Adjust documentation. | ||
| 10653 | (gc_sweep): Account total_buffers. | ||
| 10654 | (Fmemory_free, Fmemory_use_counts): Use bounded_number. | ||
| 10655 | (VECTOR_SIZE): Remove. | ||
| 10656 | * data.c (Qfloat, Qvector, Qsymbol, Qstring, Qcons): Make global. | ||
| 10657 | (Qinterval, Qmisc): New symbols. | ||
| 10658 | (syms_of_data): Initialize them. | ||
| 10659 | * lisp.h (Qinterval, Qsymbol, Qstring, Qmisc, Qvector, Qfloat) | ||
| 10660 | (Qcons, Qbuffer): New declarations. | ||
| 10661 | |||
| 10662 | 2012-07-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10663 | |||
| 10664 | * alloc.c (Fmemory_free): Account for memory-free's own storage. | ||
| 10665 | Round up, not down. Improve doc. | ||
| 10666 | |||
| 10667 | 2012-07-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10668 | |||
| 10669 | Restore old code in allocate_string_data to avoid Faset breakage. | ||
| 10670 | Reported by Julien Danjou <julien@danjou.info> in | ||
| 10671 | http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00371.html. | ||
| 10672 | * alloc.c (allocate_string_data): Restore old code with minor | ||
| 10673 | adjustments, fix comment to explain this subtle issue. | ||
| 10674 | |||
| 10675 | 2012-07-17 Eli Zaretskii <eliz@gnu.org> | ||
| 10676 | |||
| 10677 | Remove FILE_SYSTEM_CASE. | ||
| 10678 | * s/msdos.h (FILE_SYSTEM_CASE): Don't define. | ||
| 10679 | |||
| 10680 | * fileio.c (FILE_SYSTEM_CASE): Don't define. | ||
| 10681 | (Ffile_name_directory, Fexpand_file_name): Don't use FILE_SYSTEM_CASE. | ||
| 10682 | Fixes problems on MS-DOS with Vtemp_file_name_pattern when | ||
| 10683 | call-process-region passes it through expand-file-name. | ||
| 10684 | |||
| 10685 | * dired.c (file_name_completion): Don't use FILE_SYSTEM_CASE. | ||
| 10686 | |||
| 10687 | 2012-07-17 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10688 | |||
| 10689 | Fix crash when creating indirect buffer (Bug#11917) | ||
| 10690 | * buffer.c (buffer_lisp_local_variables): Add argument CLONE. | ||
| 10691 | Don't handle unbound variables specially if non-zero. | ||
| 10692 | (Fbuffer_local_variables): Pass zero. | ||
| 10693 | (clone_per_buffer_values): Pass non-zero. | ||
| 10694 | |||
| 10695 | 2012-07-17 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10696 | |||
| 10697 | * gnutls.c (emacs_gnutls_handshake): Revert last change. Add QUIT | ||
| 10698 | to make the loop interruptible. | ||
| 10699 | |||
| 10700 | 2012-07-17 Andreas Schwab <schwab@linux-m68k.org> | ||
| 10701 | |||
| 10702 | * gnutls.c (emacs_gnutls_handshake): Only retry if | ||
| 10703 | GNUTLS_E_INTERRUPTED. | ||
| 10704 | |||
| 10705 | 2012-07-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10706 | |||
| 10707 | Cleanup and convert miscellaneous checks to eassert. | ||
| 10708 | * alloc.c (mark_interval): Fix comment, partially rephrase | ||
| 10709 | old comment from intervals.h (see below). | ||
| 10710 | * intervals.c (find_interval, adjust_intervals_for_insertion) | ||
| 10711 | (delete_interval, adjust_intervals_for_deletion) | ||
| 10712 | (graft_intervals_into_buffer, temp_set_point_both, copy_intervals): | ||
| 10713 | Convert to eassert. | ||
| 10714 | (adjust_intervals_for_insertion, make_new_interval): | ||
| 10715 | Remove obsolete and unused code. | ||
| 10716 | * intervals.h (struct interval): Remove obsolete comment. | ||
| 10717 | * textprotp.c (erase_properties): Remove unused code. | ||
| 10718 | (Fadd_text_properties, set_text_properties_1, Fremove_text_properties) | ||
| 10719 | (Fremove_list_of_text_properties): Convert to eassert. | ||
| 10720 | |||
| 10721 | 2012-07-17 Chong Yidong <cyd@gnu.org> | ||
| 10722 | |||
| 10723 | * editfns.c (Finsert_char): Doc fix. | ||
| 10724 | |||
| 10725 | 2012-07-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10726 | |||
| 10727 | Fix previous change to make Fmemory_free always accurate. | ||
| 10728 | * alloc.c (make_interval): Update total_free_intervals. | ||
| 10729 | (make_float): Likewise for total_free_floats. | ||
| 10730 | (free_cons, Fcons): Likewise for total_free_conses. | ||
| 10731 | (SETUP_ON_FREE_LIST, allocate_vector_from_block): | ||
| 10732 | Likewise for total_free_vector_bytes. | ||
| 10733 | (Fmake_symbol): Likewise for total_free_symbols. | ||
| 10734 | (bytes_free): Remove. | ||
| 10735 | |||
| 10736 | 2012-07-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10737 | |||
| 10738 | Simple free memory accounting feature. | ||
| 10739 | * alloc.c (bytes_free, total_free_vector_bytes): New variable. | ||
| 10740 | (sweep_vectors): Accumulate size of free vectors. | ||
| 10741 | (Fgarbage_collect): Setup bytes_free. | ||
| 10742 | (Fmemory_free): New function. | ||
| 10743 | (syms_of_alloc): Register it. | ||
| 10744 | |||
| 10745 | 2012-07-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10746 | |||
| 10747 | Cleanup overlays checking. | ||
| 10748 | * buffer.h (OVERLAY_VALID): Remove as useless synonym of OVERLAYP. | ||
| 10749 | * buffer.c (overlay_touches_p, recenter_overlay_lists): Change to | ||
| 10750 | eassert and OVERLAYP. | ||
| 10751 | (sort_overlays): Change to use OVERLAYP. | ||
| 10752 | |||
| 10753 | 2012-07-16 René Kyllingstad <Rene@Kyllingstad.com> (tiny change) | ||
| 10754 | |||
| 10755 | * editfns.c (Finsert_char): Make it interactive, and make the | ||
| 10756 | second arg optional. Copy interactive spec and docstring from | ||
| 10757 | ucs-insert. | ||
| 10758 | |||
| 10759 | 2012-07-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10760 | |||
| 10761 | * floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT (Bug#11913). | ||
| 10762 | Unlike the other wrapped functions, fabs has an unspecified | ||
| 10763 | effect on errno. | ||
| 10764 | |||
| 10765 | 2012-07-16 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10766 | |||
| 10767 | * nsterm.m (keyDown): Interpret flags without left/right bits | ||
| 10768 | as the left key (Bug#11670). | ||
| 10769 | |||
| 10770 | 2012-07-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10771 | |||
| 10772 | Remove empty and useless init functions. | ||
| 10773 | * lisp.h (init_character_once, init_fns, init_image) | ||
| 10774 | (init_filelock, init_sound): Remove prototype. | ||
| 10775 | * character.c (init_character_once): Remove. | ||
| 10776 | * filelock.c (init_filelock): Likewise. | ||
| 10777 | * fns.c (init_fns): Likewise. | ||
| 10778 | * image.c (init_image): Likewise. | ||
| 10779 | * sound.c (init_sound): Likewise. | ||
| 10780 | * emacs.c (main): Adjust accordingly. | ||
| 10781 | |||
| 10782 | 2012-07-16 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10783 | |||
| 10784 | * gtkutil.h: Tiny cleanups. | ||
| 10785 | (use_old_gtk_file_dialog): Remove useless declaration. | ||
| 10786 | (xg_uses_old_file_dialog): Add suggested const attribute. | ||
| 10787 | |||
| 10788 | 2012-07-15 Eli Zaretskii <eliz@gnu.org> | ||
| 10789 | |||
| 10790 | * bidi.c (MAX_STRONG_CHAR_SEARCH): New macro. | ||
| 10791 | (bidi_paragraph_init): Use it to limit search forward for a strong | ||
| 10792 | directional character in abnormally large paragraphs full of | ||
| 10793 | neutral or weak characters. (Bug#11943) | ||
| 10794 | |||
| 10795 | 2012-07-15 Stefano Facchini <stefano.facchini@gmail.com> (tiny change) | ||
| 10796 | |||
| 10797 | * gtkutil.c (xg_create_tool_bar): Apply "primary-toolbar" style to | ||
| 10798 | the toolbar (Bug#9451). | ||
| 10799 | (xg_make_tool_item): Give the widget event box a transparent | ||
| 10800 | background. | ||
| 10801 | |||
| 10802 | 2012-07-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10803 | |||
| 10804 | Cleanup basic allocation variables and functions. | ||
| 10805 | * alloc.c (ignore_warnings, init_intervals, init_float) | ||
| 10806 | (init_cons, init_symbol, init_marker): Remove. | ||
| 10807 | (interval_block_index): Initialize to INTERVAL_BLOCK_SIZE. | ||
| 10808 | (float_block_index): Initialize to FLOAT_BLOCK_SIZE. | ||
| 10809 | (cons_block_index): Initialize to CONS_BLOCK_SIZE. | ||
| 10810 | (symbol_block_size): Initialize to SYMBOL_BLOCK_SIZE. | ||
| 10811 | (marker_block_index): Initialize to MARKER_BLOCK_SIZE. | ||
| 10812 | (staticidx, init_alloc_once, init_strings, free_ablock): | ||
| 10813 | Remove redundant initialization. | ||
| 10814 | * fns.c (init_weak_hash_tables): Remove. | ||
| 10815 | * lisp.h (init_weak_hash_tables): Remove prototype. | ||
| 10816 | |||
| 10817 | 2012-07-15 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 10818 | |||
| 10819 | Use zero_vector where appropriate. | ||
| 10820 | * alloc.c (zero_vector): Define as Lisp_Object. Adjust users | ||
| 10821 | accordingly. | ||
| 10822 | * lisp.h (zero_vector): New declaration. | ||
| 10823 | * font.c (null_vector): Remove. | ||
| 10824 | (syms_of_font): Remove initialization and staticpro. | ||
| 10825 | (font_list_entities, font_find_for_lface): Change to use zero_vector. | ||
| 10826 | * keymap.c (Faccessible_keymaps): Likewise. | ||
| 10827 | |||
| 10828 | 2012-07-15 Leo Liu <sdl.web@gmail.com> | ||
| 10829 | |||
| 10830 | * fringe.c: Fix typo in comments. | ||
| 10831 | |||
| 10832 | 2012-07-14 Leo Liu <sdl.web@gmail.com> | ||
| 10833 | |||
| 10834 | * fringe.c: Add a new bitmap exclamation-mark. | ||
| 10835 | |||
| 10836 | 2012-07-14 Eli Zaretskii <eliz@gnu.org> | ||
| 10837 | |||
| 10838 | * gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference. | ||
| 10839 | |||
| 10840 | * s/msdos.h (BSD_SYSTEM, DATA_START, GC_SETJMP_WORKS, HAVE_MOUSE) | ||
| 10841 | (HAVE_MENUS): Don't define, defined by editing config.in with | ||
| 10842 | msdos/sed2v2.inp. | ||
| 10843 | (GMALLOC_INHIBIT_VALLOC): Don't define. | ||
| 10844 | (MODE_LINE_BINARY_TEXT): Remove, not used anymore. | ||
| 10845 | |||
| 10846 | 2012-07-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 10847 | |||
| 10848 | * s/ms-w32.h (GC_SETJMP_WORKS, GC_MARK_STACK): Set in nt/config.nt. | ||
| 10849 | |||
| 10850 | 2012-07-14 Glenn Morris <rgm@gnu.org> | ||
| 10851 | |||
| 10852 | * s/aix4-2.h, s/freebsd.h, s/gnu-linux.h, s/hpux10-20.h: | ||
| 10853 | * s/irix6-5.h, s/netbsd.h, s/sol2-6.h, s/unixware.h: | ||
| 10854 | Let configure set GC_SETJMP_WORKS, GC_MARK_STACK. | ||
| 10855 | |||
| 10856 | 2012-07-13 Glenn Morris <rgm@gnu.org> | ||
| 10857 | |||
| 10858 | * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it. | ||
| 10859 | |||
| 10860 | * s/usg5-4-common.h (SETUP_SLAVE_PTY): Let configure set it. | ||
| 10861 | * s/irix6-5.h (SETUP_SLAVE_PTY): No more need to unset it. | ||
| 10862 | |||
| 10863 | 2012-07-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 10864 | |||
| 10865 | * nsterm.m (uRect): Only define if NS_IMPL_GNUSTEP. | ||
| 10866 | (x_free_frame_resources): Pass x_free_frame_resources to NSTRACE. | ||
| 10867 | (ns_lisp_to_color, ns_string_to_lispmod, ns_term_init) | ||
| 10868 | (ns_term_shutdown, requestService, initFrameFromEmacs): Use SSDATA | ||
| 10869 | where appropriate. | ||
| 10870 | (ns_exec_path, ns_load_path, changeFont): Put () around assignment used | ||
| 10871 | as boolean expression. | ||
| 10872 | (x_set_window_size): Remove unused variable toolbar. | ||
| 10873 | (ns_get_color_default, ns_mod_to_lisp): Remove. | ||
| 10874 | (ns_mouse_position): Remove unused variables xchar and ychar. | ||
| 10875 | (ns_compute_glyph_string_overhangs): Remove unused variable face. | ||
| 10876 | (ns_set_vertical_scroll_bar): Remove unused variable count. | ||
| 10877 | (ns_delete_terminal): Remove unused variable i. | ||
| 10878 | (ns_term_init): Remove unused variables r, g and b. | ||
| 10879 | (mouseDown): Remove unused variable window. | ||
| 10880 | (windowDidResize): Move definition of theWindow inside NS_IMPL_GNUSTEP. | ||
| 10881 | (initFrameFromEmacs): Remove unused variable vbextra. | ||
| 10882 | (mouseEntered): Remove unused variables p and dpyinfo. | ||
| 10883 | (mouseExited): Remove unused variables p and r. | ||
| 10884 | (ns_define_frame_cursor, ns_clear_frame_area) | ||
| 10885 | (ns_draw_window_cursor, ns_initialize_display_info): Make static. | ||
| 10886 | (menuDown): Assign [sender tag] to variable and cast the variable. | ||
| 10887 | |||
| 10888 | * nsterm.h (menuDown): Add id as type to argument sender. | ||
| 10889 | (ns_display_info_for_name): Add Lisp_Object argument. | ||
| 10890 | (ns_term_init): Add Lisp_Object argument. | ||
| 10891 | (ns_map_event_to_object): Add void argument. | ||
| 10892 | (ns_string_from_pasteboard, ns_string_to_pasteboard): Add correct | ||
| 10893 | prototype with arguments and only declare if __OBJC__. | ||
| 10894 | (nxatoms_of_nsselect): Add void argument. | ||
| 10895 | (ns_lisp_to_cursor_type): Add Lisp_Object argument. | ||
| 10896 | (ns_alloc_autorelease_pool): Add void argument. | ||
| 10897 | (ns_release_autorelease_pool): Add void* argument. | ||
| 10898 | (ns_get_defaults_value): Add const char* argument. | ||
| 10899 | |||
| 10900 | * nsmenu.m (ns_update_menubar, ns_menu_show, process_dialog) | ||
| 10901 | (initFromContents): Use SSDATA where appropriate. | ||
| 10902 | (ns_update_menubar): Add braces to ambigous if-else. | ||
| 10903 | (initWithTitle): Put () around assignment in if statement. | ||
| 10904 | (ns_menu_show): Remove unused variables window and keymap. | ||
| 10905 | (update_frame_tool_bar): Remove unused variable selected_p. | ||
| 10906 | (initWithContentRect): Remove unused variable this_cmd_name. | ||
| 10907 | |||
| 10908 | * nsimage.m (ns_load_image, allocInitFromFile): Use SSDATA where | ||
| 10909 | appropriate. | ||
| 10910 | (setXBMColor): Remove unused variable len. | ||
| 10911 | (setPixmapData): Put () around assignment in loop statement. | ||
| 10912 | |||
| 10913 | * nsfont.m (ns_get_family, ns_lang_to_script, ns_otf_to_script) | ||
| 10914 | (ns_registry_to_script, ns_get_req_script, nsfont_open): Use SSDATA | ||
| 10915 | where appropriate. | ||
| 10916 | (ns_get_covering_families, ns_findfonts, nsfont_list_family): Put () | ||
| 10917 | around assignment in loop statement. | ||
| 10918 | (nsfont_open): Remove unused variable i. | ||
| 10919 | (nsfont_open): Remove unused variable len. | ||
| 10920 | (nsfont_draw): Remove unused variable cs. | ||
| 10921 | |||
| 10922 | * nsfns.m (x_set_icon_name, ns_set_name_internal) | ||
| 10923 | (ns_set_name_as_filename, ns_implicitly_set_icon_type) | ||
| 10924 | (x_set_icon_type, ns_lisp_to_cursor_type, Fns_read_file_name) | ||
| 10925 | (Fns_get_resource, Fns_set_resource, Fx_open_connection) | ||
| 10926 | (Fns_font_name, Fns_perform_service) | ||
| 10927 | (Fns_convert_utf8_nfd_to_nfc, ns_do_applescript) | ||
| 10928 | (Fns_do_applescript, Fx_show_tip): Use SSDATA where appropriate. | ||
| 10929 | (ns_set_name): Remove unused variable view. | ||
| 10930 | (x_set_menu_bar_lines): Remove unused variable olines. | ||
| 10931 | (x_set_tool_bar_lines): Remove unused variable root_window. | ||
| 10932 | (Fns_list_colors): Put () around assignment in while statement. | ||
| 10933 | (Fns_perform_service): Remove unused variable len. | ||
| 10934 | (Fns_display_usable_bounds): Remove unused variable top. | ||
| 10935 | (syms_of_nsfns): Remove unused variable i. | ||
| 10936 | |||
| 10937 | * nsmenu.m (ns_update_menubar): Exchange place of argument 2 and 3 to | ||
| 10938 | memcpy (Bug#11907). | ||
| 10939 | |||
| 10940 | 2012-07-13 Kalle Kankare <kalle.kankare@iki.fi> (tiny change) | ||
| 10941 | |||
| 10942 | * image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo | ||
| 10943 | and free it with DestroyExceptionInfo (Bug#11558). | ||
| 10944 | |||
| 10945 | 2012-07-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 10946 | |||
| 10947 | * s/ms-w32.h (FIRST_PTY_LETTER, HAVE_SOCKETS): Move to nt/config.nt. | ||
| 10948 | (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT): | ||
| 10949 | Set here, not in nt/config.nt. | ||
| 10950 | |||
| 10951 | 2012-07-13 Eli Zaretskii <eliz@gnu.org> | ||
| 10952 | |||
| 10953 | * xdisp.c (move_it_in_display_line_to): On GUI terminals, allow | ||
| 10954 | cursor overflow into the last glyph on display line when the right | ||
| 10955 | fringe is off. (Bug#11832) | ||
| 10956 | |||
| 10957 | 2012-07-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 10958 | |||
| 10959 | * xdisp.c (produce_special_glyphs): Now static. | ||
| 10960 | * dispextern.h (produce_special_glyphs): Remove decl. | ||
| 10961 | |||
| 10962 | 2012-07-13 Glenn Morris <rgm@gnu.org> | ||
| 10963 | |||
| 10964 | * s/bsd-common.h, s/cygwin.h: Remove empty files. | ||
| 10965 | * s/freebsd.h, s/netbsd.h: Do not include bsd-common.h. | ||
| 10966 | |||
| 10967 | * s/usg5-4-common.h (USG, USG5): | ||
| 10968 | * s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM): | ||
| 10969 | * s/sol2-6.h (SOLARIS2): | ||
| 10970 | * s/irix6-5.h (IRIX6_5): | ||
| 10971 | * s/hpux10-20.h (USG, USG5, HPUX): | ||
| 10972 | * s/gnu-linux.h (USG, GNU_LINUX): | ||
| 10973 | * s/freebsd.h (BSD_SYSTEM): | ||
| 10974 | * s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS): | ||
| 10975 | * s/cygwin.h (CYGWIN): | ||
| 10976 | * s/bsd-common.h (BSD_SYSTEM, BSD4_2): | ||
| 10977 | * s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure. | ||
| 10978 | |||
| 10979 | 2012-07-13 BT Templeton <bpt@hcoop.net> (tiny change) | ||
| 10980 | |||
| 10981 | * nsfont.m (ns_charset_covers): Don't abort if no bitmap (Bug#11853). | ||
| 10982 | |||
| 10983 | 2012-07-13 Glenn Morris <rgm@gnu.org> | ||
| 10984 | |||
| 10985 | * s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it. | ||
| 10986 | |||
| 10987 | * s/gnu-linux.h, s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE. | ||
| 10988 | |||
| 10989 | * process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION. | ||
| 10990 | * s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro. | ||
| 10991 | |||
| 10992 | 2012-07-12 Glenn Morris <rgm@gnu.org> | ||
| 10993 | |||
| 10994 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure. | ||
| 10995 | |||
| 10996 | * process.c (init_process_emacs): Rename from init_process. | ||
| 10997 | The old name is also the name of a Mach system call. | ||
| 10998 | * lisp.h, emacs.c: Update for this name change. | ||
| 10999 | * nsgui.h, sysselect.h, s/darwin.h: Remove workaround that is no | ||
| 11000 | longer needed. | ||
| 11001 | |||
| 11002 | 2012-07-12 Eli Zaretskii <eliz@gnu.org> | ||
| 11003 | |||
| 11004 | * xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in | ||
| 11005 | memmove call that removes glyphs covered by the left truncation | ||
| 11006 | glyph. Improve commentary. | ||
| 11007 | (display_line): Fix display of continuation glyphs on GUI frames | ||
| 11008 | when the right fringe is turned off and variable-size fonts are | ||
| 11009 | used in the window. Move the code that appends a stretch glyph to | ||
| 11010 | produce_special_glyphs, so that it could be used for truncation | ||
| 11011 | and continuation glyphs alike. | ||
| 11012 | (produce_special_glyphs) [HAVE_WINDOW_SYSTEM]: Produce a stretch | ||
| 11013 | glyph of a suitably computed width, to align the special glyphs at | ||
| 11014 | the window margin. Code moved from display_line. (Bug#11832) | ||
| 11015 | |||
| 11016 | 2012-07-12 Glenn Morris <rgm@gnu.org> | ||
| 11017 | |||
| 11018 | * s/aix4-2.h, s/hpux10-20.h: Let configure set NO_EDITRES. | ||
| 11019 | |||
| 11020 | * s/gnu-linux.h, s/hpux10-20.h: | ||
| 11021 | Do not unconditionally define HAVE_XRMSETDATABASE. | ||
| 11022 | |||
| 11023 | * s/gnu-linux.h (UNIX98_PTYS): Let configure set it. | ||
| 11024 | |||
| 11025 | 2012-07-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11026 | |||
| 11027 | Fix typos that broke OS X build. | ||
| 11028 | Reported by Randal L. Schwartz in | ||
| 11029 | <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>. | ||
| 11030 | * nsterm.m (ns_timeout): Add missing local decl. | ||
| 11031 | (ns_get_color): snprintf -> sprintf, to fix typo. | ||
| 11032 | |||
| 11033 | 2012-07-12 Glenn Morris <rgm@gnu.org> | ||
| 11034 | |||
| 11035 | * src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h: | ||
| 11036 | * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h: | ||
| 11037 | * src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h: | ||
| 11038 | Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure. | ||
| 11039 | |||
| 11040 | * s/cygwin.h, s/darwin.h, s/gnu-linux.h, s/irix6-5.h: | ||
| 11041 | Move PTY_OPEN to configure. | ||
| 11042 | |||
| 11043 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: | ||
| 11044 | * s/gnu-linux.h, s/hpux10-20.h, s/irix6-5.h, s/template.h: | ||
| 11045 | * s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure. | ||
| 11046 | |||
| 11047 | 2012-07-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11048 | |||
| 11049 | Use empty_unibyte_string where applicable. | ||
| 11050 | * keyboard.c (parse_tool_bar_item): Use empty_unibyte_string. | ||
| 11051 | * lread.c (read1): Likewise. | ||
| 11052 | * xsettings.c (syms_of_xsettings): Likewise. | ||
| 11053 | |||
| 11054 | 2012-07-12 Glenn Morris <rgm@gnu.org> | ||
| 11055 | |||
| 11056 | * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): | ||
| 11057 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): | ||
| 11058 | * s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP): | ||
| 11059 | * s/hpux10-20.h (RUN_TIME_REMAP): | ||
| 11060 | * s/bsd-common.h (TABDLY): Move to configure. | ||
| 11061 | |||
| 11062 | * s/hpux10-20.h, s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure. | ||
| 11063 | |||
| 11064 | * s/bsd-common.h, s/darwin.h: Move TAB3 to configure. | ||
| 11065 | |||
| 11066 | * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) | ||
| 11067 | (BROKEN_SIGPOLL, BROKEN_GET_CURRENT_DIR_NAME): Let configure set them. | ||
| 11068 | |||
| 11069 | * s/darwin.h (NO_ABORT, NO_MATHERR): Let configure set them. | ||
| 11070 | |||
| 11071 | * s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/irix6-5.h: | ||
| 11072 | * s/template.h: Move NARROWPROTO to configure. | ||
| 11073 | |||
| 11074 | 2012-07-11 Glenn Morris <rgm@gnu.org> | ||
| 11075 | |||
| 11076 | * s/gnu-linux.h, s/sol2-6.h: No longer define POSIX, | ||
| 11077 | unused since 2011-01-17 change to systty.h. | ||
| 11078 | |||
| 11079 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h, s/gnu-linux.h: | ||
| 11080 | * s/hpux10-20.h, s/template.h, s/usg5-4-common.h: | ||
| 11081 | Move HAVE_PTYS and HAVE_SOCKETS to configure. | ||
| 11082 | |||
| 11083 | 2012-07-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11084 | |||
| 11085 | * s/sol2-6.h (HAVE_LIBKSTAT): Remove. (Bug#11914) | ||
| 11086 | |||
| 11087 | 2012-07-11 Glenn Morris <rgm@gnu.org> | ||
| 11088 | |||
| 11089 | * s/darwin.h, s/gnu-linux.h, s/template.h: | ||
| 11090 | Move INTERRUPT_INPUT to configure. | ||
| 11091 | |||
| 11092 | 2012-07-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11093 | |||
| 11094 | Minor adjustments to interning code. | ||
| 11095 | * lisp.h (intern, intern_c_string): Redefine as static inline | ||
| 11096 | wrappers for intern_1 and intern_c_string_1, respectively. | ||
| 11097 | (intern_1, intern_c_string_1): Rename prototypes. | ||
| 11098 | * lread.c (intern_1, intern_c_string_1, oblookup): | ||
| 11099 | Simplify Vobarray checking. | ||
| 11100 | * font.c (font_intern_prop): Likewise. Adjust comment. | ||
| 11101 | * w32font.c (intern_font_name): Likewise. | ||
| 11102 | |||
| 11103 | 2012-07-11 Andreas Schwab <schwab@linux-m68k.org> | ||
| 11104 | |||
| 11105 | * gnutls.c (Fgnutls_boot): Properly parse :keylist argument. | ||
| 11106 | |||
| 11107 | * coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead | ||
| 11108 | of Fcar/Fcdr if possible. | ||
| 11109 | * font.c (check_otf_features): Likewise. | ||
| 11110 | * fontset.c (Fnew_fontset): Likewise. | ||
| 11111 | * gnutls.c (Fgnutls_boot): Likewise. | ||
| 11112 | * minibuf.c (read_minibuf): Likewise. | ||
| 11113 | * msdos.c (IT_set_frame_parameters): Likewise. | ||
| 11114 | * xmenu.c (Fx_popup_dialog): Likewise. | ||
| 11115 | * w32menu.c (Fx_popup_dialog): Likewise. | ||
| 11116 | |||
| 11117 | 2012-07-11 Glenn Morris <rgm@gnu.org> | ||
| 11118 | |||
| 11119 | * s/bsd-common.h, s/cygwin.h: No need to undefine INTERRUPT_INPUT, | ||
| 11120 | since nothing has defined it on these platforms. | ||
| 11121 | |||
| 11122 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h: | ||
| 11123 | * s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure. | ||
| 11124 | |||
| 11125 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: | ||
| 11126 | * s/gnu-linux.h, s/hpux10-20.h, s/template.h, s/usg5-4-common.h: | ||
| 11127 | Move CLASH_DETECTION to configure. | ||
| 11128 | |||
| 11129 | * s/gnu.h: Remove file, which is now empty. | ||
| 11130 | |||
| 11131 | * s/gnu.h, s/gnu-linux.h: | ||
| 11132 | Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure. | ||
| 11133 | |||
| 11134 | 2012-07-11 John Wiegley <johnw@newartisans.com> | ||
| 11135 | |||
| 11136 | * alloc.c (mark_memory): Guard the "no_address_safety_analysis" | ||
| 11137 | function attribute, so we only use it if it exists in the | ||
| 11138 | compiler. | ||
| 11139 | |||
| 11140 | 2012-07-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11141 | |||
| 11142 | Avoid call to strlen in fast_c_string_match_ignore_case. | ||
| 11143 | * search.c (fast_c_string_match_ignore_case): Change to use | ||
| 11144 | length argument. Adjust users accordingly. | ||
| 11145 | * lisp.h (fast_c_string_match_ignore_case): Adjust prototype. | ||
| 11146 | |||
| 11147 | 2012-07-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11148 | |||
| 11149 | Assume mkdir, rmdir. | ||
| 11150 | * sysdep.c (mkdir) [!HAVE_MKDIR]: Remove. | ||
| 11151 | * sysdep.c (rmdir) [!HAVE_RMDIR]: Remove. | ||
| 11152 | |||
| 11153 | Assume rename. | ||
| 11154 | * sysdep.c (rename) [!HAVE_RENAME]: Remove. | ||
| 11155 | |||
| 11156 | Assume perror. | ||
| 11157 | * s/hpux10-20.h (HAVE_PERROR): Remove. | ||
| 11158 | * sysdep.c (perror) [HPUX && !HAVE_PERROR]: | ||
| 11159 | Remove dummy definition, as this problem was obsolete long ago. | ||
| 11160 | |||
| 11161 | Assume strerror. | ||
| 11162 | * sysdep.c (strerror) [!HAVE_STRERROR && !WINDOWSNT]: Remove. | ||
| 11163 | |||
| 11164 | 2012-07-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11165 | |||
| 11166 | Avoid calls to strlen in font processing functions. | ||
| 11167 | * font.c (font_parse_name, font_parse_xlfd, font_parse_fcname) | ||
| 11168 | (font_open_by_name): Change to use length argument. | ||
| 11169 | Adjust users accordingly. | ||
| 11170 | * font.h (font_open_by_name, font_parse_xlfd, font_unparse_xlfd): | ||
| 11171 | Adjust prototypes. | ||
| 11172 | * xfont.c (xfont_decode_coding_xlfd, font_unparse_xlfd): | ||
| 11173 | Change to return ptrdiff_t. | ||
| 11174 | (xfont_list_pattern, xfont_match): Use length returned by | ||
| 11175 | xfont_decode_coding_xlfd. | ||
| 11176 | * xfns.c (x_default_font_parameter): Omit useless xstrdup. | ||
| 11177 | |||
| 11178 | 2012-07-11 Glenn Morris <rgm@gnu.org> | ||
| 11179 | |||
| 11180 | * s/darwin.h, s/freebsd.h, s/netbsd.h: | ||
| 11181 | Move DONT_REOPEN_PTY to configure. | ||
| 11182 | |||
| 11183 | * sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]: | ||
| 11184 | * s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it. | ||
| 11185 | |||
| 11186 | 2012-07-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11187 | |||
| 11188 | Remove "#define unix" that is no longer needed (Bug#11905). | ||
| 11189 | * s/aix4-2.h (unix): Remove; no longer needed. | ||
| 11190 | |||
| 11191 | EMACS_TIME simplification (Bug#11875). | ||
| 11192 | This replaces macros (which typically do not work in GDB) | ||
| 11193 | with functions, typedefs and enums, making the code easier to debug. | ||
| 11194 | The functional style also makes code easier to read and maintain. | ||
| 11195 | * systime.h: Include <sys/time.h> on all hosts, not just if | ||
| 11196 | WINDOWSNT, since 'struct timeval' is needed in general. | ||
| 11197 | (EMACS_TIME): Now a typedef, not a macro. | ||
| 11198 | (EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants, | ||
| 11199 | not macros. | ||
| 11200 | (EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P) | ||
| 11201 | (EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ) | ||
| 11202 | (EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT) | ||
| 11203 | (EMACS_TIME_LE): Now functions, not macros. | ||
| 11204 | (EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS) | ||
| 11205 | (EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros, | ||
| 11206 | which are not functions. All uses rewritten to use: | ||
| 11207 | (make_emacs_time): New function. | ||
| 11208 | (EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME) | ||
| 11209 | (EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are | ||
| 11210 | not functions. All uses rewritten to use the following, respectively: | ||
| 11211 | (emacs_secs_addr, invalid_emacs_time, get_emacs_time) | ||
| 11212 | (add_emacs_time, sub_emacs_time): New functions. | ||
| 11213 | * atimer.c: Don't include <sys/time.h>, as "systime.h" does this. | ||
| 11214 | * fileio.c (Fcopy_file): | ||
| 11215 | * xterm.c (XTflash): Get the current time closer to when it's used. | ||
| 11216 | * makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies. | ||
| 11217 | |||
| 11218 | * bytecode.c (targets): Suppress -Woverride-init warnings. | ||
| 11219 | |||
| 11220 | Simplify by avoiding confusing use of strncpy etc. | ||
| 11221 | * doc.c (Fsnarf_documentation): | ||
| 11222 | * fileio.c (Ffile_name_directory, Fsubstitute_in_file_name): | ||
| 11223 | * frame.c (Fmake_terminal_frame): | ||
| 11224 | * gtkutil.c (get_utf8_string): | ||
| 11225 | * lread.c (openp): | ||
| 11226 | * nsmenu.m (ns_update_menubar): | ||
| 11227 | * regex.c (regerror): | ||
| 11228 | Prefer memcpy to strncpy and strncat when either will do. | ||
| 11229 | * fileio.c (Fsubstitute_in_file_name): | ||
| 11230 | * keyboard.c (MULTI_LETTER_MOD, parse_modifiers_uncached) | ||
| 11231 | (menu_separator_name_p): | ||
| 11232 | * nsmenu.m (ns_update_menubar): | ||
| 11233 | Prefer memcmp to strncmp when either will do. | ||
| 11234 | * nsterm.m: Include <ftoastr.h>. | ||
| 11235 | (ns_get_color): | ||
| 11236 | * s/gnu-linux.h, s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): | ||
| 11237 | Prefer snprintf to strncpy. | ||
| 11238 | * nsterm.m (ns_term_init): | ||
| 11239 | * widget.c (set_frame_size) [0]: Prefer xstrdup to xmalloc + strncpy. | ||
| 11240 | * nsterm.m (ns_term_init): | ||
| 11241 | Avoid the need for strncpy, by using build_string or | ||
| 11242 | make_unibyte_string directly. Use dtoastr, not snprintf. | ||
| 11243 | * process.c (Fmake_network_process): Diagnose service names that | ||
| 11244 | are too long, rather than silently truncating them or creating | ||
| 11245 | non-null-terminated names. | ||
| 11246 | (Fnetwork_interface_info): Likewise, for interface names. | ||
| 11247 | * sysdep.c (system_process_attributes) [GNU_LINUX]: | ||
| 11248 | Prefer sprintf to strncat. | ||
| 11249 | * xdisp.c (debug_method_add) [GLYPH_DEBUG]: | ||
| 11250 | Prefer vsnprintf to vsprintf + strncpy. | ||
| 11251 | |||
| 11252 | 2012-07-10 Glenn Morris <rgm@gnu.org> | ||
| 11253 | |||
| 11254 | * dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: | ||
| 11255 | Clarify fallback case. | ||
| 11256 | |||
| 11257 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11258 | |||
| 11259 | Use XCAR and XCDR instead of Fcar and Fcdr where possible. | ||
| 11260 | * callint.c, coding.c, doc.c, editfns.c, eval.c, font.c, fontset.c, | ||
| 11261 | * frame.c, gnutls.c, minibuf.c, msdos.c, textprop.c, w32fns.c, | ||
| 11262 | * w32menu.c, window.c, xmenu.c: Change to use XCAR and XCDR | ||
| 11263 | where argument type is known to be a Lisp_Cons. | ||
| 11264 | |||
| 11265 | 2012-07-10 Tom Tromey <tromey@redhat.com> | ||
| 11266 | |||
| 11267 | * bytecode.c (BYTE_CODE_THREADED): New macro. | ||
| 11268 | (BYTE_CODES): New macro. Replaces all old byte-code defines. | ||
| 11269 | (enum byte_code_op): New type. | ||
| 11270 | (CASE, NEXT, FIRST, CASE_DEFAULT, CASE_ABORT): New macros. | ||
| 11271 | (exec_byte_code): Use them. Use token threading when applicable. | ||
| 11272 | |||
| 11273 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11274 | |||
| 11275 | Optimize pure C strings initialization. | ||
| 11276 | * lisp.h (make_pure_string): Fix prototype. | ||
| 11277 | (build_pure_c_string): New function, defined as static inline. This | ||
| 11278 | provides a better opportunity to optimize away calls to strlen when | ||
| 11279 | the function is called with compile-time constant argument. | ||
| 11280 | * alloc.c (make_pure_c_string): Fix comment. Change to add nchars | ||
| 11281 | argument, adjust users accordingly. Use build_pure_c_string where | ||
| 11282 | appropriate. | ||
| 11283 | * buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c, | ||
| 11284 | * keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c, | ||
| 11285 | * xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate. | ||
| 11286 | |||
| 11287 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11288 | |||
| 11289 | Avoid calls to strlen in miscellaneous functions. | ||
| 11290 | * buffer.c (init_buffer): Use precalculated len, adjust if needed. | ||
| 11291 | * font.c (Ffont_xlfd_name): Likewise. Change to call make_string. | ||
| 11292 | * lread.c (openp): Likewise. | ||
| 11293 | |||
| 11294 | 2012-07-10 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11295 | |||
| 11296 | Avoid calls to strlen in path processing functions. | ||
| 11297 | * fileio.c (file_name_as_directory): Add comment. Change to add | ||
| 11298 | srclen argument and return the length of result. Adjust users | ||
| 11299 | accordingly. | ||
| 11300 | (directory_file_name): Fix comment. Change to add srclen argument, | ||
| 11301 | swap 1st and 2nd arguments to obey the common convention. | ||
| 11302 | Adjust users accordingly. | ||
| 11303 | * filelock.c (fill_in_lock_file_name): Avoid calls to strlen. | ||
| 11304 | |||
| 11305 | 2012-07-10 Glenn Morris <rgm@gnu.org> | ||
| 11306 | |||
| 11307 | * s/cygwin.h, s/darwin.h, s/freebsd.h, s/netbsd.h, s/unixware.h: | ||
| 11308 | Move PENDING_OUTPUT_COUNT definition to configure. | ||
| 11309 | |||
| 11310 | * s/irix6-5.h (DATA_START, DATA_SEG_BITS): | ||
| 11311 | * s/hpux10-20.h (DATA_SEG_BITS, DATA_START): | ||
| 11312 | * s/gnu.h (DATA_START): Move definitions to configure. | ||
| 11313 | |||
| 11314 | * s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards. | ||
| 11315 | We include usg5-4-common.h, which defines them both. | ||
| 11316 | |||
| 11317 | * s/gnu.h: Don't include fcntl.h (every file in Emacs that uses | ||
| 11318 | O_RDONLY already includes it). | ||
| 11319 | |||
| 11320 | Stop ns builds setting the EMACSLOADPATH environment variable. | ||
| 11321 | * nsterm.m (ns_load_path): Rename from ns_init_paths. | ||
| 11322 | Now it does not set EMACSLOADPATH, just returns the load-path string. | ||
| 11323 | * nsterm.h: Update accordingly. | ||
| 11324 | * lread.c [HAVE_NS]: Include nsterm.h. | ||
| 11325 | (init_lread) [HAVE_NS]: Use ns_load_path. | ||
| 11326 | * emacs.c (main) [HAVE_NS]: No longer call ns_init_paths. | ||
| 11327 | |||
| 11328 | 2012-07-09 Glenn Morris <rgm@gnu.org> | ||
| 11329 | |||
| 11330 | * s/gnu.h (SIGNALS_VIA_CHARACTERS): No need to define it here, | ||
| 11331 | since the included bsd-common.h does so. | ||
| 11332 | |||
| 11333 | Stop ns builds setting the EMACSPATH environment variable. | ||
| 11334 | * nsterm.m (ns_exec_path): New function, split from ns_init_paths. | ||
| 11335 | (ns_init_paths): Do not set EMACSPATH. | ||
| 11336 | * nsterm.h (ns_exec_path): Add it. | ||
| 11337 | * callproc.c (init_callproc_1, init_callproc) [HAVE_NS]: | ||
| 11338 | Use ns_exec_path. | ||
| 11339 | |||
| 11340 | * nsterm.m, nsterm.h (ns_etc_directory): Fix type, empty return. | ||
| 11341 | |||
| 11342 | 2012-07-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11343 | |||
| 11344 | * process.c (wait_reading_process_output): 'waitchannels' was unset | ||
| 11345 | when read_kbd || !NILP (wait_for_cell); fix this. | ||
| 11346 | |||
| 11347 | Add GCC-style 'const' attribute to functions that can use it. | ||
| 11348 | * character.h (char_resolve_modifier_mask): | ||
| 11349 | * keyboard.h (make_ctrl_char): | ||
| 11350 | * lisp.h (multibyte_char_to_unibyte, multibyte_char_to_unibyte_safe) | ||
| 11351 | (init_character_once, next_almost_prime, init_fns, init_image) | ||
| 11352 | (flush_pending_output, init_sound): | ||
| 11353 | * mem-limits.h (start_of_data): | ||
| 11354 | * menu.h (finish_menu_items): | ||
| 11355 | Add ATTRIBUTE_CONST. | ||
| 11356 | * emacs.c (DEFINE_DUMMY_FUNCTION): | ||
| 11357 | Declare the dummy function with ATTRIBUTE_CONST. | ||
| 11358 | * lisp.h (Fbyteorder, Fmax_char, Fidentity): | ||
| 11359 | Add decls with ATTRIBUTE_CONST. | ||
| 11360 | |||
| 11361 | Minor improvements to make_formatted_string. | ||
| 11362 | * alloc.c (make_formatted_string): Prefer int to ptrdiff_t | ||
| 11363 | where int is good enough, as vsprintf returns an int. | ||
| 11364 | * lisp.h (make_formatted_string): Add ATTRIBUTE_FORMAT_PRINTF. | ||
| 11365 | |||
| 11366 | 2012-07-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11367 | |||
| 11368 | Use make_formatted_string to avoid double length calculation. | ||
| 11369 | * lisp.h (make_formatted_string): New prototype. | ||
| 11370 | * alloc.c (make_formatted_string): New function. | ||
| 11371 | * buffer.c (Fgenerate_new_buffer_name): Use it. | ||
| 11372 | * dbusbind.c (syms_of_dbusbind): Likewise. | ||
| 11373 | * editfns.c (Fcurrent_time_zone): Likewise. | ||
| 11374 | * filelock.c (get_boot_time): Likewise. | ||
| 11375 | * frame.c (make_terminal_frame, set_term_frame_name) | ||
| 11376 | (x_report_frame_params): Likewise. | ||
| 11377 | * image.c (gs_load): Likewise. | ||
| 11378 | * minibuf.c (get_minibuffer): Likewise. | ||
| 11379 | * msdos.c (dos_set_window_size): Likewise. | ||
| 11380 | * process.c (make_process): Likewise. | ||
| 11381 | * xdisp.c (ensure_echo_area_buffers): Likewise. | ||
| 11382 | * xsettings.c (apply_xft_settings): Likewise. | ||
| 11383 | |||
| 11384 | 2012-07-09 Glenn Morris <rgm@gnu.org> | ||
| 11385 | |||
| 11386 | Stop ns builds polluting the environment with EMACSDATA, EMACSDOC. | ||
| 11387 | * nsterm.m (ns_etc_directory): New function, split from ns_init_paths. | ||
| 11388 | (ns_init_paths): Do not set EMACSDATA, EMACSDOC. | ||
| 11389 | * nsterm.h (ns_etc_directory): Add it. | ||
| 11390 | * callproc.c [HAVE_NS]: Include nsterm.h. | ||
| 11391 | (init_callproc_1, init_callproc) [HAVE_NS]: Use ns_etc_directory. | ||
| 11392 | |||
| 11393 | 2012-07-09 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11394 | |||
| 11395 | Move marker debugging code under MARKER_DEBUG. | ||
| 11396 | * marker.c (MARKER_DEBUG): Move marker debugging code under | ||
| 11397 | #ifdef MARKER_DEBUG because byte_char_debug_check is too slow | ||
| 11398 | for bootstrap with --enable-checking (~3x slowdown reported | ||
| 11399 | by Juanma Barranquero <lekktu@gmail.com>). | ||
| 11400 | (verify_bytepos): Move under #ifdef MARKER_DEBUG. | ||
| 11401 | |||
| 11402 | 2012-07-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11403 | |||
| 11404 | * systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t. | ||
| 11405 | See <http://bugs.gnu.org/11825#29>. | ||
| 11406 | |||
| 11407 | 2012-07-08 Eli Zaretskii <eliz@gnu.org> | ||
| 11408 | |||
| 11409 | * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph | ||
| 11410 | has no font, use the frame's font. (Bug#11813) | ||
| 11411 | (display_line): Add commentary about displaying truncation glyphs | ||
| 11412 | on GUI frames. | ||
| 11413 | (produce_special_glyphs): Move here from term.c. | ||
| 11414 | |||
| 11415 | * term.c (produce_special_glyphs): Move to xdisp.c. | ||
| 11416 | |||
| 11417 | * dispextern.h (produce_special_glyphs): Move prototype to xdisp.c | ||
| 11418 | section. | ||
| 11419 | |||
| 11420 | 2012-07-07 Andreas Schwab <schwab@linux-m68k.org> | ||
| 11421 | |||
| 11422 | * xdisp.c (display_line): Avoid warning about implicit declaration | ||
| 11423 | of FRAME_FONT. | ||
| 11424 | |||
| 11425 | * frame.c (get_frame_param): Define only if HAVE_WINDOW_SYSTEM. | ||
| 11426 | |||
| 11427 | * lisp.h: Remove empty conditional. | ||
| 11428 | |||
| 11429 | 2012-07-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11430 | |||
| 11431 | * lread.c (load_path_check): Now static. | ||
| 11432 | |||
| 11433 | Fix some minor --with-ns problems found by static checking. | ||
| 11434 | * frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]: | ||
| 11435 | (x_set_font) [!HAVE_X_WINDOWS]: | ||
| 11436 | * image.c (xpm_load_image) [HAVE_NS]: | ||
| 11437 | (x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]: | ||
| 11438 | (x_disable_image) [!HAVE_NS && !HAVE_NTGUI]: | ||
| 11439 | Remove unused local. | ||
| 11440 | (Fx_parse_geometry) [HAVE_NS]: Don't return garbage. | ||
| 11441 | (xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label. | ||
| 11442 | * image.c (x_create_bitmap_from_file) [HAVE_NS]: | ||
| 11443 | (xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]: | ||
| 11444 | * nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal): | ||
| 11445 | * xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]: | ||
| 11446 | Fix pointer signedness problem. | ||
| 11447 | * xfaces.c (FRAME_X_FONT_TABLE): | ||
| 11448 | * xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros. | ||
| 11449 | |||
| 11450 | 2012-07-07 Glenn Morris <rgm@gnu.org> | ||
| 11451 | |||
| 11452 | * lread.c (load_path_check): New function, split from init_lread. | ||
| 11453 | (init_lread): Reorganize. Motivation: | ||
| 11454 | If EMACSLOADPATH is set, check/warn about that rather than the | ||
| 11455 | defaults, which we are not going to use. Hence we can remove | ||
| 11456 | the turn_off_warning and WINDOWSNT || HAVE_NS tests. | ||
| 11457 | Don't warn if site-lisp directories are missing. | ||
| 11458 | If not installed, start from a blank load-path, since | ||
| 11459 | PATH_LOADSEARCH refers to the eventual installation directories. | ||
| 11460 | |||
| 11461 | 2012-07-07 Eli Zaretskii <eliz@gnu.org> | ||
| 11462 | |||
| 11463 | Support truncation and continuation glyphs on GUI frames, when | ||
| 11464 | fringes are disabled. (Bug#11832) | ||
| 11465 | * xdisp.c (init_iterator): Get dimensions of truncation and | ||
| 11466 | continuation glyphs even if on GUI frames. | ||
| 11467 | Adjust it->last_visible_x on GUI frames when the left or right fringes, | ||
| 11468 | or both, are absent. | ||
| 11469 | (start_display, move_it_in_display_line_to): Handle the case of a | ||
| 11470 | GUI frame without a fringe to display continuation or truncation | ||
| 11471 | glyphs. | ||
| 11472 | (insert_left_trunc_glyphs): Support GUI frames: make sure | ||
| 11473 | truncation glyphs overwrite enough glyphs from the current line to | ||
| 11474 | have sufficient space in pixels. | ||
| 11475 | (display_line): Support truncation and continuation glyphs on GUI | ||
| 11476 | frames. If some spare pixels are left on the line after inserting | ||
| 11477 | the truncation glyphs, fill that space with a stretch glyph of a | ||
| 11478 | suitably computed width. | ||
| 11479 | |||
| 11480 | * term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not | ||
| 11481 | produce_glyphs, to support GUI sessions. | ||
| 11482 | |||
| 11483 | 2012-07-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11484 | |||
| 11485 | * sysdep.c (ULLONG_MAX): Define if not already defined (Bug#11781). | ||
| 11486 | |||
| 11487 | * sysdep.c (list_system_processes): Port to NetBSD-current (Bug#11797). | ||
| 11488 | |||
| 11489 | Do not require float-time's arg to fit in time_t (Bug#11825). | ||
| 11490 | This works better on hosts where time_t is unsigned, and where | ||
| 11491 | float-time is applied to the (negative) difference between two times. | ||
| 11492 | * editfns.c (decode_time_components): Last arg is now double *, | ||
| 11493 | not int *, and means to store all the result as a double, without | ||
| 11494 | worrying about whether the seconds part fits in time_t. | ||
| 11495 | All callers changed. | ||
| 11496 | (lisp_time_argument): Remove last int * arg, as it's no longer needed. | ||
| 11497 | All callers changed. | ||
| 11498 | (Ffloat_time): Do not fail merely because the specified time falls | ||
| 11499 | outside of time_t range. | ||
| 11500 | |||
| 11501 | 2012-07-07 Glenn Morris <rgm@gnu.org> | ||
| 11502 | |||
| 11503 | * s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV): | ||
| 11504 | * s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM): | ||
| 11505 | * s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively). | ||
| 11506 | |||
| 11507 | 2012-07-07 Juanma Barranquero <lekktu@gmail.com> | ||
| 11508 | |||
| 11509 | * makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)): | ||
| 11510 | Update dependencies. | ||
| 11511 | |||
| 11512 | * s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp. | ||
| 11513 | |||
| 11514 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11515 | |||
| 11516 | Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). | ||
| 11517 | * dispextern.h, nsfns.m, nsterm.m: Include <c-strcase.h>. | ||
| 11518 | * dispextern.h (xstrcasecmp): Rewrite using c_strcasecmp. | ||
| 11519 | * nsfns.m (x_get_string_resource): Use c_strncasecmp, not strncasecmp. | ||
| 11520 | * nsterm.m (ns_default): Use c_strcasecmp, not strcasecmp. | ||
| 11521 | * xfaces.c (xstrcasecmp) [!HAVE_STRCASECMP]: Remove. | ||
| 11522 | |||
| 11523 | * xfont.c (compare_font_names): Redo to omit the need for casts. | ||
| 11524 | |||
| 11525 | 2012-07-06 Andreas Schwab <schwab@linux-m68k.org> | ||
| 11526 | |||
| 11527 | * xfns.c (Fx_change_window_property): Doc fix. | ||
| 11528 | * w32fns.c (Fx_change_window_property): Doc fix. | ||
| 11529 | |||
| 11530 | * w32fns.c (Fx_window_property): Accept the same arguments as the | ||
| 11531 | X Windows version. Doc fix. | ||
| 11532 | * xfns.c (Fx_window_property): Doc fix. (Bug#11870) | ||
| 11533 | |||
| 11534 | 2012-07-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 11535 | Eli Zaretskii <eliz@gnu.org> | ||
| 11536 | |||
| 11537 | * s/ms-w32.h: Settings not specific to Windows moved to nt/config.nt. | ||
| 11538 | Windows-specific code from nt/config.nt moved here. | ||
| 11539 | Obsolete settings removed. | ||
| 11540 | |||
| 11541 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11542 | |||
| 11543 | * process.c: Avoid unnecessary calls to gettime. | ||
| 11544 | (wait_reading_process_output): Don't get the time of day | ||
| 11545 | when gobbling data immediately and not waiting, as there's no need | ||
| 11546 | for it in that case. This removes a FIXME. | ||
| 11547 | |||
| 11548 | 2012-07-06 Jan Djärv <jan.h.d@swipnet.se> | ||
| 11549 | |||
| 11550 | * gtkutil.c (xg_event_is_for_scrollbar): Assign gwin when HAVE_GTK3 | ||
| 11551 | is defined (Bug#11768). | ||
| 11552 | |||
| 11553 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11554 | |||
| 11555 | Fix marker debugging code. | ||
| 11556 | * marker.c (byte_char_debug_check): Do not perform the check | ||
| 11557 | if buffer is not multibyte. | ||
| 11558 | (buf_charpos_to_bytepos, buf_bytepos_to_charpos): | ||
| 11559 | Call byte_char_debug_check with correct arguments. | ||
| 11560 | |||
| 11561 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11562 | |||
| 11563 | Compile marker debugging code only if ENABLE_CHECKING is defined. | ||
| 11564 | * marker.c (byte_char_debug_check, count_markers): | ||
| 11565 | Use only if ENABLE_CHECKING is defined. | ||
| 11566 | (byte_debug_flag): Remove. | ||
| 11567 | (CONSIDER, buf_charpos_to_bytepos, buf_bytepos_to_charpos): | ||
| 11568 | Always call byte_char_debug_check if ENABLE_CHECKING is defined. | ||
| 11569 | |||
| 11570 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11571 | |||
| 11572 | Avoid code repetition in marker-related functions. | ||
| 11573 | * marker.c (attach_marker): New function. | ||
| 11574 | (Fset_marker, set_marker_restricted, set_marker_both) | ||
| 11575 | (set_marker_restricted_both): Use it. | ||
| 11576 | (Fset_marker, set_marker_restricted, Fbuffer_has_markers_at): | ||
| 11577 | Consistently rename charno to charpos. | ||
| 11578 | (marker_position): Add eassert. | ||
| 11579 | (marker_byte_position): Convert to eassert. | ||
| 11580 | |||
| 11581 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11582 | |||
| 11583 | Simplify list operations in unchain_overlay and unchain_marker. | ||
| 11584 | * buffer.c (unchain_overlay): Simplify. Add comment. | ||
| 11585 | * marker.c (unchain_marker): Simplify. Fix comments. | ||
| 11586 | |||
| 11587 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11588 | |||
| 11589 | Introduce fast path for the widely used marker operation. | ||
| 11590 | * alloc.c (build_marker): New function. | ||
| 11591 | * lisp.h (build_marker): New prototype. | ||
| 11592 | * buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it. | ||
| 11593 | * composite.c (autocmp_chars): Likewise. | ||
| 11594 | * editfns.c (buildmark): Remove. | ||
| 11595 | (Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker) | ||
| 11596 | (save_restriction_save): Use build_marker. | ||
| 11597 | * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise. | ||
| 11598 | * window.c (save_window_save): Likewise. | ||
| 11599 | |||
| 11600 | 2012-07-06 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11601 | |||
| 11602 | Do not use Fdelete_overlay in delete_all_overlays | ||
| 11603 | to avoid redundant calls to unchain_overlay. | ||
| 11604 | * buffer.c (drop_overlay): New function. | ||
| 11605 | (delete_all_overlays, Fdelete_overlay): Use it. | ||
| 11606 | * minibuf.c (get_minibuffer): Fix comment. | ||
| 11607 | |||
| 11608 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11609 | |||
| 11610 | Port to OpenBSD 5.1 amd64. | ||
| 11611 | * sysdep.c [BSD_SYSTEM]: Include <sys/param.h> before <sys/sysctl.h>. | ||
| 11612 | This is needed for OpenBSD, and should be harmless on all BSD systems. | ||
| 11613 | Also, include <sys/sysctl.h>, as it should be available on all | ||
| 11614 | BSD_SYSTEM hosts given that we're already calling sysctl in that case. | ||
| 11615 | (list_system_processes) [__OpenBSD__]: Use DARWIN_OS style mib, but | ||
| 11616 | use p_pid member, not kp_proc.pid. | ||
| 11617 | |||
| 11618 | 2012-07-06 Glenn Morris <rgm@gnu.org> | ||
| 11619 | |||
| 11620 | * Makefile.in (emacs$(EXEEXT)): Don't check for load-path shadows. | ||
| 11621 | |||
| 11622 | 2012-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11623 | |||
| 11624 | More xmalloc and related cleanup. | ||
| 11625 | * alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c: | ||
| 11626 | * callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c: | ||
| 11627 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c: | ||
| 11628 | * font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c: | ||
| 11629 | * gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c: | ||
| 11630 | * nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c: | ||
| 11631 | * regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c: | ||
| 11632 | * sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c: | ||
| 11633 | * xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c: | ||
| 11634 | * xterm.c: | ||
| 11635 | Omit needless casts involving void * pointers and allocation. | ||
| 11636 | Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))", | ||
| 11637 | as the former is more robust if P's type is changed. | ||
| 11638 | Prefer xzalloc to xmalloc + memset 0. | ||
| 11639 | Simplify malloc-or-realloc to realloc. | ||
| 11640 | Don't worry about xmalloc returning a null pointer. | ||
| 11641 | Prefer xstrdup to xmalloc + strcpy. | ||
| 11642 | * editfns.c (Fmessage_box): Grow message_text by at least 80 when | ||
| 11643 | growing it. | ||
| 11644 | * keyboard.c (apply_modifiers_uncached): Prefer local array to | ||
| 11645 | alloca of a constant. | ||
| 11646 | |||
| 11647 | 2012-07-05 Eli Zaretskii <eliz@gnu.org> | ||
| 11648 | |||
| 11649 | * xdisp.c (display_line): Fix horizontal pixel coordinates when | ||
| 11650 | hscroll is larger than the line width. Fixes long and futile | ||
| 11651 | looping inside extend_face_to_end_of_line (on a TTY) producing | ||
| 11652 | glyphs that are not needed and thrown away. | ||
| 11653 | |||
| 11654 | 2012-07-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11655 | |||
| 11656 | * marker.c (set_marker_restricted_both): Simplify by using | ||
| 11657 | clip_to_bounds. | ||
| 11658 | |||
| 11659 | 2012-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11660 | |||
| 11661 | * editfns.c (region_limit): Simplify by using clip_to_bounds. | ||
| 11662 | |||
| 11663 | 2012-07-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 11664 | |||
| 11665 | * gtkutil.c (gtk_scrollbar_new, gtk_box_new): Define when HAVE_GTK3 is | ||
| 11666 | not defined (Bug#11768). | ||
| 11667 | (xg_create_frame_widgets): Use gtk_plug_new_for_display (Bug#11768). | ||
| 11668 | (xg_create_frame_widgets, create_dialog, xg_get_file_with_chooser) | ||
| 11669 | (make_widget_for_menu_item, xg_make_tool_item): Use gtk_box_new | ||
| 11670 | followed by gtk_box_set_homogeneous (Bug#11768). | ||
| 11671 | (xg_update_menu_item): Use GTK_IS_BOX (Bug#11768). | ||
| 11672 | (update_theme_scrollbar_width, xg_create_scroll_bar): | ||
| 11673 | Use gtk_scrollbar_new (Bug#11768). | ||
| 11674 | (xg_event_is_for_scrollbar): Use Gdk Device functions for HAVE_GTK3. | ||
| 11675 | (is_box_type): New function (Bug#11768). | ||
| 11676 | (xg_tool_item_stale_p): Call is_box_type. | ||
| 11677 | (xg_initialize): Get settings by calling gtk_settings_get_for_screen | ||
| 11678 | with default display (Bug#11768). | ||
| 11679 | |||
| 11680 | 2012-07-05 Eli Zaretskii <eliz@gnu.org> | ||
| 11681 | |||
| 11682 | * xdisp.c (window_hscroll_limited): New function. | ||
| 11683 | (pos_visible_p, init_iterator): Use it to avoid overflow of pixel | ||
| 11684 | coordinates when window's hscroll is set to insanely large | ||
| 11685 | values. (Bug#11857) | ||
| 11686 | |||
| 11687 | 2012-07-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 11688 | |||
| 11689 | * makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo. | ||
| 11690 | ($(BLD)/terminal.$(O), $(BLD)/syntax.$(O)): Update dependencies. | ||
| 11691 | |||
| 11692 | 2012-07-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11693 | |||
| 11694 | Cleanup xmalloc. | ||
| 11695 | * lisp.h (xzalloc): New prototype. Omit needless casts. | ||
| 11696 | * alloc.c (xzalloc): New function. Omit needless casts. | ||
| 11697 | * charset.c: Omit needless casts. Convert all calls to | ||
| 11698 | xmalloc with following memset to xzalloc. | ||
| 11699 | * dispnew.c: Likewise. | ||
| 11700 | * fringe.c: Likewise. | ||
| 11701 | * image.c: Likewise. | ||
| 11702 | * sound.c: Likewise. | ||
| 11703 | * term.c: Likewise. | ||
| 11704 | * w32fns.c: Likewise. | ||
| 11705 | * w32font.c: Likewise. | ||
| 11706 | * w32term.c: Likewise. | ||
| 11707 | * xfaces.c: Likewise. | ||
| 11708 | * xfns.c: Likewise. | ||
| 11709 | * xterm.c: Likewise. | ||
| 11710 | * atimer.c: Omit needless casts. | ||
| 11711 | * buffer.c: Likewise. | ||
| 11712 | * callproc.c: Likewise. | ||
| 11713 | * ccl.c: Likewise. | ||
| 11714 | * coding.c: Likewise. | ||
| 11715 | * composite.c: Likewise. | ||
| 11716 | * doc.c: Likewise. | ||
| 11717 | * doprnt.c: Likewise. | ||
| 11718 | * editfns.c: Likewise. | ||
| 11719 | * emacs.c: Likewise. | ||
| 11720 | * eval.c: Likewise. | ||
| 11721 | * filelock.c: Likewise. | ||
| 11722 | * fns.c: Likewise. | ||
| 11723 | * gtkutil.c: Likewise. | ||
| 11724 | * keyboard.c: Likewise. | ||
| 11725 | * lisp.h: Likewise. | ||
| 11726 | * lread.c: Likewise. | ||
| 11727 | * minibuf.c: Likewise. | ||
| 11728 | * msdos.c: Likewise. | ||
| 11729 | * print.c: Likewise. | ||
| 11730 | * process.c: Likewise. | ||
| 11731 | * region-cache.c: Likewise. | ||
| 11732 | * search.c: Likewise. | ||
| 11733 | * sysdep.c: Likewise. | ||
| 11734 | * termcap.c: Likewise. | ||
| 11735 | * terminal.c: Likewise. | ||
| 11736 | * tparam.c: Likewise. | ||
| 11737 | * w16select.c: Likewise. | ||
| 11738 | * w32.c: Likewise. | ||
| 11739 | * w32reg.c: Likewise. | ||
| 11740 | * w32select.c: Likewise. | ||
| 11741 | * w32uniscribe.c: Likewise. | ||
| 11742 | * widget.c: Likewise. | ||
| 11743 | * xdisp.c: Likewise. | ||
| 11744 | * xmenu.c: Likewise. | ||
| 11745 | * xrdb.c: Likewise. | ||
| 11746 | * xselect.c: Likewise. | ||
| 11747 | |||
| 11748 | 2012-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11749 | |||
| 11750 | * fileio.c (time_error_value): Check the right error number. | ||
| 11751 | Problem reported by Troels Nielsen in | ||
| 11752 | <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>. | ||
| 11753 | |||
| 11754 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11755 | |||
| 11756 | * window.c (set_window_hscroll): Revert the 100000 hscroll limit. | ||
| 11757 | This should be fixed in a better way; see Eli Zaretskii in | ||
| 11758 | <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00088.html>. | ||
| 11759 | (HSCROLL_MAX): Remove; this is now internal to set_window_hscroll. | ||
| 11760 | |||
| 11761 | * fileio.c (time_error_value): Rename from special_mtime. | ||
| 11762 | The old name's problems were noted by Eli Zaretskii in | ||
| 11763 | <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00087.html>. | ||
| 11764 | |||
| 11765 | * emacs.c (gdb_pvec_type): Change it back to enum pvec_type. | ||
| 11766 | This variable's comment says Emacs needs at least one GDB-visible | ||
| 11767 | symbol of type enum pvec_type, to work around GDB problems. | ||
| 11768 | The symbol's value doesn't matter. | ||
| 11769 | |||
| 11770 | * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';' | ||
| 11771 | that causes compilation to fail on pre-C99 compilers. | ||
| 11772 | |||
| 11773 | 2012-07-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 11774 | |||
| 11775 | * s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY) | ||
| 11776 | (HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete. | ||
| 11777 | |||
| 11778 | 2012-07-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11779 | |||
| 11780 | * buffer.c (init_buffer_once): Fix initialization of | ||
| 11781 | headers for buffer_defaults and buffer_local_symbols. | ||
| 11782 | Reported by Juanma Barranquero <lekktu@gmail.com>. | ||
| 11783 | |||
| 11784 | 2012-07-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 11785 | |||
| 11786 | Turn VECTOR_FREE_LIST_FLAG into PVEC_FREE. | ||
| 11787 | * lisp.h (enum pvec_type): Use fewer bits. | ||
| 11788 | (PSEUDOVECTOR_SIZE_BITS): New constant. | ||
| 11789 | (PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK): Use it. | ||
| 11790 | (XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR, DEFUN): Adapt code to | ||
| 11791 | change in pvec_type. | ||
| 11792 | (PSEUDOVECTOR_TYPEP): New macro. | ||
| 11793 | (TYPED_PSEUDOVECTORP): Use it. | ||
| 11794 | * fns.c (internal_equal): Adapt code to extract pvectype. | ||
| 11795 | * emacs.c (gdb_pvec_type): Update type. | ||
| 11796 | * alloc.c (PSEUDOVECTOR_NBYTES): New macro. | ||
| 11797 | (VECTOR_FREE_LIST_SIZE_MASK): Remove (=> PSEUDOVECTOR_SIZE_MASK). | ||
| 11798 | (VECTOR_FREE_LIST_FLAG): Remove (=> PVEC_FREE). | ||
| 11799 | (SETUP_ON_FREE_LIST): Use XSETPVECTYPESIZE. | ||
| 11800 | (sweep_vectors): Use it. Use local var `total_bytes' instead of | ||
| 11801 | abusing vector->header.next.nbytes. | ||
| 11802 | (live_vector_p): Use PVEC_TYPE. | ||
| 11803 | (mark_object): Adapt code to extract pvectype. Use switch. | ||
| 11804 | |||
| 11805 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11806 | |||
| 11807 | * doprnt.c (doprnt): Don't assume string length fits in 'int'. | ||
| 11808 | Tighten new eassert a bit. | ||
| 11809 | |||
| 11810 | 2012-07-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11811 | |||
| 11812 | Fix compilation with --enable-gcc-warnings and -O1 | ||
| 11813 | optimization level. | ||
| 11814 | * doprnt.c (doprnt): Change type of tem to int, initialize | ||
| 11815 | to avoid compiler warning. Add eassert. | ||
| 11816 | * search.c (simple_search): Initialize match_byte to avoid | ||
| 11817 | compiler warning. Add eassert. | ||
| 11818 | |||
| 11819 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11820 | |||
| 11821 | Avoid weird behavior with large horizontal scrolls. | ||
| 11822 | Without this change, for example, large hscroll values would | ||
| 11823 | mess up Emacs's display on Fedora 15 x86, presumably due to | ||
| 11824 | overflows in int calculations in the display code. | ||
| 11825 | Also, if buffers had long lines, Emacs would freeze. | ||
| 11826 | * window.c (HSCROLL_MAX): Reduce to 100000, and make it visible to GDB. | ||
| 11827 | (set_window_hscroll): New function, containing the old guts of | ||
| 11828 | Fset_window_hscroll. Return the clipped value. | ||
| 11829 | (Fset_window_hscroll, Fscroll_left, Fscroll_right): Use it. | ||
| 11830 | This avoids the need to check against PTRDIFF_MAX. | ||
| 11831 | |||
| 11832 | * buffer.c (Fgenerate_new_buffer_name): Fix sprintf format mismatch. | ||
| 11833 | |||
| 11834 | 2012-07-04 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11835 | |||
| 11836 | * buffer.c (Fgenerate_new_buffer_name): Fix type mismatch. | ||
| 11837 | |||
| 11838 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11839 | |||
| 11840 | * regex.c: Suppress GCC warning on RHEL 6. (Bug#11207) | ||
| 11841 | Conditionalize the pragmas on GCC 4.5 or later, not GCC 4.3 or later, | ||
| 11842 | since GCC 4.4.6 issues a bogus warning for them. | ||
| 11843 | |||
| 11844 | Fix bugs in file timestamp newness comparisons. | ||
| 11845 | * fileio.c (Ffile_newer_than_file_p): | ||
| 11846 | * lread.c (Fload): Use full timestamp resolution of files, | ||
| 11847 | not just the 1-second resolution, so that files that are only | ||
| 11848 | slightly newer still count as newer. | ||
| 11849 | * fileio.c (Ffile_newer_than_file_p): Don't assume file | ||
| 11850 | timestamps fit in 'int'; this fixes a Y2038 bug on most hosts. | ||
| 11851 | |||
| 11852 | 2012-07-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11853 | |||
| 11854 | * fileio.c: Improve handling of file time marker. (Bug#11852) | ||
| 11855 | (special_mtime): New function. | ||
| 11856 | (Finsert_file_contents, Fverify_visited_file_modtime): | ||
| 11857 | Use it to set special mtime values consistently. | ||
| 11858 | |||
| 11859 | 2012-07-03 Andreas Schwab <schwab@linux-m68k.org> | ||
| 11860 | |||
| 11861 | * fileio.c (Finsert_file_contents): Properly handle st_mtime | ||
| 11862 | marker for non-existing file. (Bug#11852) | ||
| 11863 | |||
| 11864 | 2012-07-03 Glenn Morris <rgm@gnu.org> | ||
| 11865 | |||
| 11866 | * lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN | ||
| 11867 | and did not make it into globals.h). | ||
| 11868 | |||
| 11869 | 2012-07-03 Tom Tromey <tromey@redhat.com> | ||
| 11870 | |||
| 11871 | * window.c (Fset_window_margins, Fset_window_fringes) | ||
| 11872 | (Fset_window_scroll_bars, Fset_window_vscroll): No longer static. | ||
| 11873 | * textprop.c (Fprevious_property_change): No longer static. | ||
| 11874 | * syntax.c (Fsyntax_table_p): No longer static. | ||
| 11875 | * process.c (Fget_process, Fprocess_datagram_address): No longer | ||
| 11876 | static. | ||
| 11877 | * keymap.c (Flookup_key, Fcopy_keymap): No longer static. | ||
| 11878 | * keyboard.c (Fcommand_execute): No longer static. | ||
| 11879 | Remove EXFUN. | ||
| 11880 | * insdel.c (Fcombine_after_change_execute): No longer static. | ||
| 11881 | * image.c (Finit_image_library): No longer static. | ||
| 11882 | * fileio.c (Fmake_symbolic_link): No longer static. | ||
| 11883 | * eval.c (Ffetch_bytecode): No longer static. | ||
| 11884 | * editfns.c (Fuser_full_name): No longer static. | ||
| 11885 | * doc.c (Fdocumentation_property, Fsnarf_documentation): | ||
| 11886 | No longer static. | ||
| 11887 | * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): No longer | ||
| 11888 | static. | ||
| 11889 | * dired.c (Ffile_attributes): No longer static. | ||
| 11890 | * composite.c (Fcomposition_get_gstring): No longer static. | ||
| 11891 | * callproc.c (Fgetenv_internal): No longer static. | ||
| 11892 | |||
| 11893 | * ccl.h: Remove EXFUNs. | ||
| 11894 | * buffer.h: Remove EXFUNs. | ||
| 11895 | * dispextern.h: Remove EXFUNs. | ||
| 11896 | * intervals.h: Remove EXFUNs. | ||
| 11897 | * fontset.h: Remove EXFUN. | ||
| 11898 | * font.h: Remove EXFUNs. | ||
| 11899 | * dosfns.c (system_process_attributes): Remove EXFUN. | ||
| 11900 | * keymap.h: Remove EXFUNs. | ||
| 11901 | * lisp.h: Remove EXFUNs. | ||
| 11902 | * w32term.h: Remove EXFUNs. | ||
| 11903 | * window.h: Remove EXFUNs. | ||
| 11904 | * xsettings.h: Remove EXFUN. | ||
| 11905 | * xterm.h: Remove EXFUN. | ||
| 11906 | |||
| 11907 | 2012-07-03 Glenn Morris <rgm@gnu.org> | ||
| 11908 | |||
| 11909 | * lisp.h (Frandom): Make it visible to C. | ||
| 11910 | * buffer.c (Fgenerate_new_buffer_name): Speed up finding a new | ||
| 11911 | buffer for invisible buffers. (Bug#1229) | ||
| 11912 | |||
| 11913 | 2012-07-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11914 | |||
| 11915 | Fix block vector allocation code to allow VECTOR_BLOCK_SIZE | ||
| 11916 | values which aren't power of 2. | ||
| 11917 | * alloc.c (VECTOR_FREE_LIST_SIZE_MASK): New macro. | ||
| 11918 | Verify its value and the value of VECTOR_BLOCK_SIZE. Adjust users | ||
| 11919 | accordingly. | ||
| 11920 | |||
| 11921 | 2012-07-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 11922 | |||
| 11923 | * lisp.h (Lisp_Misc, Lisp_Fwd): Move around to group better. | ||
| 11924 | |||
| 11925 | * alloc.c (mark_object): Revert part of last patch to use `switch'. | ||
| 11926 | |||
| 11927 | 2012-07-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11928 | |||
| 11929 | * alloc.c (allocate_vector_block): Remove redundant | ||
| 11930 | calls to mallopt if DOUG_LEA_MALLOC is defined. | ||
| 11931 | (allocate_vectorlike): If DOUG_LEA_MALLOC is defined, | ||
| 11932 | avoid calls to mallopt if zero_vector is returned. | ||
| 11933 | |||
| 11934 | 2012-07-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11935 | |||
| 11936 | * alloc.c (check_string_bytes): If GC_CHECK_STRING_BYTES | ||
| 11937 | is enabled, avoid dereferencing NULL current_sblock if | ||
| 11938 | running undumped. | ||
| 11939 | |||
| 11940 | 2012-07-03 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11941 | |||
| 11942 | Cleanup basic buffer management. | ||
| 11943 | * buffer.h (struct buffer): Change layout to use generic vector | ||
| 11944 | marking code. Fix some comments. Change type of 'clip_changed' | ||
| 11945 | to bitfield. Remove unused #ifndef old. | ||
| 11946 | (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): Remove. | ||
| 11947 | (GET_OVERLAYS_AT): Fix indentation. | ||
| 11948 | (for_each_per_buffer_object_at): New macro. | ||
| 11949 | * buffer.c (clone_per_buffer_values, reset_buffer_local_variables) | ||
| 11950 | (Fbuffer_local_variables): Use it. | ||
| 11951 | (init_buffer_once, syms_of_buffer): Remove unused #ifndef old. | ||
| 11952 | * alloc.c (allocate_buffer): Adjust to match new layout of | ||
| 11953 | struct buffer. Fix comment. | ||
| 11954 | (mark_overlay): New function. | ||
| 11955 | (mark_buffer): Use it. Use mark_vectorlike to mark normal | ||
| 11956 | Lisp area of struct buffer. | ||
| 11957 | (mark_object): Use it. Adjust marking of misc objects | ||
| 11958 | and related comments. | ||
| 11959 | |||
| 11960 | 2012-07-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11961 | |||
| 11962 | * alloc.c (mark_object): Remove "#ifdef GC_CHECK_MARKED_OBJECTS" | ||
| 11963 | wrapper that is not needed because the wrapped code is a no-op (zero | ||
| 11964 | machine instructions) when GC_CHECK_MARKED_OBJECTS is not defined. | ||
| 11965 | This avoids a -Wunused-macros diagnostic with GCC 4.7.1 x86-64. | ||
| 11966 | |||
| 11967 | 2012-07-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 11968 | |||
| 11969 | * alloc.c (mark_buffer): Simplify. Remove prototype. | ||
| 11970 | (mark_object): Add comment. Reorganize marking of vector-like | ||
| 11971 | objects. Use CHECK_LIVE for all vector-like objects except buffers | ||
| 11972 | and subroutines when GC_CHECK_MARKED_OBJECTS is defined. | ||
| 11973 | Avoid redundant calls to mark_vectorlike for bool vectors. | ||
| 11974 | |||
| 11975 | 2012-06-30 Glenn Morris <rgm@gnu.org> | ||
| 11976 | |||
| 11977 | * nsterm.m (ns_init_paths): Ignore site-lisp if --no-site-lisp. | ||
| 11978 | |||
| 11979 | * epaths.in (PATH_SITELOADSEARCH): New. | ||
| 11980 | * lread.c (init_lread): Use PATH_SITELOADSEARCH. | ||
| 11981 | This is rather than relying on --enable-locallisppath elements | ||
| 11982 | having "site-lisp" in their names. (Bug#10208#25, 11658) | ||
| 11983 | |||
| 11984 | 2012-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 11985 | |||
| 11986 | * w32proc.c (sys_select): Accept and ignore one more argument. | ||
| 11987 | |||
| 11988 | * w32.c (emacs_gnutls_pull): Call select with one more argument. | ||
| 11989 | |||
| 11990 | * sysselect.h [DOS_NT]: Don't include sys/select.h. | ||
| 11991 | (pselect) [!MS_DOS]: Redirect to sys_select. | ||
| 11992 | |||
| 11993 | * sysdep.c: Don't include dos.h and dosfns.h. | ||
| 11994 | |||
| 11995 | * process.c (sys_select): | ||
| 11996 | * msdos.c (sys_select): Accept one more argument and ignore it. | ||
| 11997 | |||
| 11998 | * msdos.c (event_timestamp, sys_select): Use gnulib's gettime; | ||
| 11999 | adapt data types and code to that. | ||
| 12000 | |||
| 12001 | * dosfns.c: | ||
| 12002 | * msdos.c (gettime, settime): Define away the prototypes in dos.h, | ||
| 12003 | which clashes with the gnulib function of the same name. | ||
| 12004 | |||
| 12005 | 2012-06-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12006 | |||
| 12007 | * font.c (font_style_to_value, font_style_symbolic) | ||
| 12008 | (font_prop_validate_style): Add type checks for values in | ||
| 12009 | font_style_table. | ||
| 12010 | |||
| 12011 | * lisp.h (CHECK_RANGED_INTEGER): Make value to check the first | ||
| 12012 | argument. | ||
| 12013 | * character.c, charset.c, menu.c, process.c, window.c: Adjust all | ||
| 12014 | uses. | ||
| 12015 | |||
| 12016 | 2012-06-29 Eli Zaretskii <eliz@gnu.org> | ||
| 12017 | |||
| 12018 | * xdisp.c (try_window_id): Undo last change. | ||
| 12019 | |||
| 12020 | * w32.c (getwd): Adjust commentary about startup_dir. | ||
| 12021 | (init_environment): Always call sys_access, even in non-MSVC | ||
| 12022 | builds. Don't chdir to the directory of the Emacs executable. | ||
| 12023 | This undoes code from 1997 which was justified by the need to | ||
| 12024 | "avoid conflicts when removing and renaming directories". But its | ||
| 12025 | downside was that every relative file name was being interpreted | ||
| 12026 | relative to the directory of the Emacs executable, which can never | ||
| 12027 | be TRT. In particular, it broke sys_access when called with | ||
| 12028 | relative file names. | ||
| 12029 | (sys_access): Map GetLastError to errno. | ||
| 12030 | |||
| 12031 | 2012-06-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12032 | |||
| 12033 | * window.h (struct window): Change type of 'fringes_outside_margins' | ||
| 12034 | to bitfield. Fix comment. Adjust users accordingly. | ||
| 12035 | (struct window): Change type of 'window_end_bytepos' to ptrdiff_t. | ||
| 12036 | Adjust comment. | ||
| 12037 | * xdisp.c (try_window_id): Change type of 'first_vpos' and 'vpos' | ||
| 12038 | to ptrdiff_t. | ||
| 12039 | |||
| 12040 | 2012-06-29 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12041 | |||
| 12042 | * gnutls.c (emacs_gnutls_handshake): | ||
| 12043 | Add QUIT to make the loop interruptible. | ||
| 12044 | |||
| 12045 | 2012-06-29 Glenn Morris <rgm@gnu.org> | ||
| 12046 | |||
| 12047 | * charset.c (init_charset): Make lack of etc/charsets fatal. | ||
| 12048 | |||
| 12049 | 2012-06-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12050 | |||
| 12051 | * editfns.c (region_limit): Fix type mismatch. | ||
| 12052 | |||
| 12053 | 2012-06-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12054 | |||
| 12055 | * nsfns.m: Fix GLYPH_DEBUG usage assuming that it may be | ||
| 12056 | undefined. Convert from xassert to eassert. | ||
| 12057 | * nsmenu.m: Convert from xassert to eassert. | ||
| 12058 | * nsterm.m: Likewise. | ||
| 12059 | |||
| 12060 | 2012-06-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12061 | |||
| 12062 | * editfns.c (region_limit): Clip to narrowing (bug#11770). | ||
| 12063 | |||
| 12064 | 2012-06-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12065 | |||
| 12066 | Avoid integer overflow on scroll-left and scroll-right. | ||
| 12067 | * window.c (HSCROLL_MAX): New macro. | ||
| 12068 | (Fscroll_left, Fscroll_right): Avoid undefined behavior on integer | ||
| 12069 | overflow when requested scroll falls outside ptrdiff_t range. | ||
| 12070 | |||
| 12071 | 2012-06-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12072 | |||
| 12073 | * window.h (struct window): Change type of 'hscroll', | ||
| 12074 | 'min_hscroll' and 'last_point' from Lisp_Object to ptrdiff_t, | ||
| 12075 | 'last_modified' and 'last_overlay_modified' to EMACS_INT. | ||
| 12076 | Adjust users accordingly. | ||
| 12077 | * xdisp.c (try_cursor_movement): Replace type check with eassert. | ||
| 12078 | * window.c (Fscroll_left, Fscroll_right): Change type of 'hscroll' | ||
| 12079 | from EMACS_INT to ptrdiff_t. | ||
| 12080 | (make_window): Omit redundant initialization. | ||
| 12081 | |||
| 12082 | 2012-06-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 12083 | |||
| 12084 | * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies. | ||
| 12085 | |||
| 12086 | 2012-06-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12087 | |||
| 12088 | * window.h (struct window): Change type of 'use_time' and | ||
| 12089 | 'sequence_number' from Lisp_Object to int. | ||
| 12090 | * frame.c (make_frame): Adjust users accordingly. | ||
| 12091 | * print.c (print_object): Likewise. | ||
| 12092 | * window.c (select_window, Fwindow_use_time, make_parent_window) | ||
| 12093 | (make_window): Likewise. | ||
| 12094 | |||
| 12095 | 2012-06-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12096 | |||
| 12097 | * dispextern.h (GLYPH_DEBUG): Now defined in config.h if | ||
| 12098 | enabled with --enable-checking=[all,glyphs] configure option. | ||
| 12099 | Fix GLYPH_DEBUG usage assuming that it may be undefined, | ||
| 12100 | adjust comments accordingly. | ||
| 12101 | * dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be | ||
| 12102 | undefined, adjust comments accordingly. | ||
| 12103 | * image.c: Likewise. | ||
| 12104 | * scroll.c: Likewise. | ||
| 12105 | * w32fns.c: Likewise. | ||
| 12106 | * w32term.c: Likewise. | ||
| 12107 | * xdisp.c: Likewise. | ||
| 12108 | * xfaces.c: Likewise. | ||
| 12109 | * xfns.c: Likewise. | ||
| 12110 | * xterm.c: Likewise. | ||
| 12111 | |||
| 12112 | 2012-06-28 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12113 | |||
| 12114 | Generalize run-time debugging checks. | ||
| 12115 | * dispextern.h (XASSERTS): Remove. | ||
| 12116 | * fontset.c (xassert): Remove. | ||
| 12117 | Convert from xassert to eassert. | ||
| 12118 | * alloc.c: Convert from xassert to eassert. | ||
| 12119 | * bidi.c: Likewise. | ||
| 12120 | * dispnew.c: Likewise. | ||
| 12121 | * fns.c: Likewise. | ||
| 12122 | * fringe.c: Likewise. | ||
| 12123 | * ftfont.c: Likewise. | ||
| 12124 | * gtkutil.c: Likewise. | ||
| 12125 | * image.c: Likewise. | ||
| 12126 | * keyboard.c: Likewise. | ||
| 12127 | * menu.c: Likewise. | ||
| 12128 | * process.c: Likewise. | ||
| 12129 | * scroll.c: Likewise. | ||
| 12130 | * sound.c: Likewise. | ||
| 12131 | * term.c: Likewise. | ||
| 12132 | * w32console.c: Likewise. | ||
| 12133 | * w32fns.c: Likewise. | ||
| 12134 | * w32term.c: Likewise. | ||
| 12135 | * window.c: Likewise. | ||
| 12136 | * xdisp.c: Likewise. | ||
| 12137 | * xfaces.c: Likewise. | ||
| 12138 | * xfns.c: Likewise. | ||
| 12139 | * xselect.c: Likewise. | ||
| 12140 | * xterm.c: Likewise. | ||
| 12141 | |||
| 12142 | 2012-06-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12143 | |||
| 12144 | * fns.c (maybe_resize_hash_table): Output message when growing the | ||
| 12145 | purify-hashtable. | ||
| 12146 | |||
| 12147 | 2012-06-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12148 | |||
| 12149 | * alloc.c (allocate_string_data): Remove dead code. | ||
| 12150 | * xsettings.c (XSETTINGS_FONT_NAME): Move under HAVE_XFT to | ||
| 12151 | avoid GCC warning about unused macro. | ||
| 12152 | |||
| 12153 | 2012-06-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12154 | |||
| 12155 | * alloc.c (allocate_string): Omit intervals initialization. | ||
| 12156 | * alloc.c (make_uninit_multibyte_string): Initialize intervals | ||
| 12157 | as in make_pure_string and make_pure_c_string. | ||
| 12158 | |||
| 12159 | 2012-06-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12160 | |||
| 12161 | * alloc.c (allocate_string): Fix last change. | ||
| 12162 | |||
| 12163 | 2012-06-27 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12164 | |||
| 12165 | * alloc.c (allocate_string): Remove two redundant calls | ||
| 12166 | to memset, add explicit initialization where appropriate. | ||
| 12167 | |||
| 12168 | 2012-06-27 Glenn Morris <rgm@gnu.org> | ||
| 12169 | |||
| 12170 | * lisp.mk (lisp): Remove paths.elc. | ||
| 12171 | |||
| 12172 | 2012-06-27 Chong Yidong <cyd@gnu.org> | ||
| 12173 | |||
| 12174 | * doc.c (Fsubstitute_command_keys): Fix punctuation. | ||
| 12175 | |||
| 12176 | 2012-06-26 John Wiegley <johnw@newartisans.com> | ||
| 12177 | |||
| 12178 | * unexmacosx.c (copy_data_segment): Add two section names used | ||
| 12179 | on Mac OS X Lion: __mod_init_func and __mod_term_func. | ||
| 12180 | |||
| 12181 | * alloc.c (mark_memory): Do not check with -faddress-sanitizer | ||
| 12182 | when building with Clang. | ||
| 12183 | |||
| 12184 | 2012-06-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12185 | |||
| 12186 | * eval.c (Fapply): Allow calling it with a single argument. | ||
| 12187 | |||
| 12188 | 2012-06-26 Eli Zaretskii <eliz@gnu.org> | ||
| 12189 | |||
| 12190 | * s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to | ||
| 12191 | _stricmp and _strnicmp. | ||
| 12192 | (HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1. | ||
| 12193 | |||
| 12194 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12195 | |||
| 12196 | * alloc.c (allocate_window): Zero out non-Lisp part of newly | ||
| 12197 | allocated window. | ||
| 12198 | (allocate_process): Likewise for new process. | ||
| 12199 | (allocate_terminal): Change to use offsetof. | ||
| 12200 | (allocate_frame): Likewise. | ||
| 12201 | * frame.c (make_frame): Omit redundant initialization. | ||
| 12202 | * window.c (make_parent_window): Use memset. | ||
| 12203 | (make_window): Omit redundant initialization. | ||
| 12204 | * process.c (make_process): Omit redundant initialization. | ||
| 12205 | * terminal.c (create_terminal): Likewise. | ||
| 12206 | |||
| 12207 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12208 | |||
| 12209 | * term.c (delete_tty): Remove redundant call to memset. | ||
| 12210 | |||
| 12211 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12212 | |||
| 12213 | * alloc.c: Remove build_string. | ||
| 12214 | * lisp.h: Define build_string as static inline. This provides | ||
| 12215 | a better opportunity to optimize away calls to strlen when the | ||
| 12216 | function is called with compile-time constant argument. | ||
| 12217 | * image.c (imagemagick_error): Convert to build_string. | ||
| 12218 | * w32proc.c (sys_spawnve): Likewise. | ||
| 12219 | * xterm.c (x_term_init): Likewise. | ||
| 12220 | |||
| 12221 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12222 | |||
| 12223 | Use sprintf return value instead of invoking strlen on result. | ||
| 12224 | In the old days this wasn't portable, since some sprintf | ||
| 12225 | implementations returned char *. But they died out years ago and | ||
| 12226 | Emacs already assumes sprintf returns int. | ||
| 12227 | Similarly for float_to_string. | ||
| 12228 | This patch speeds up (number-to-string 1000) by 3% on Fedora 15 x86-64. | ||
| 12229 | * ccl.c (ccl_driver): | ||
| 12230 | * character.c (string_escape_byte8): | ||
| 12231 | * data.c (Fnumber_to_string): | ||
| 12232 | * doprnt.c (doprnt): | ||
| 12233 | * print.c (print_object): | ||
| 12234 | * xdisp.c (message_dolog): | ||
| 12235 | * xfns.c (syms_of_xfns): | ||
| 12236 | Use sprintf or float_to_string result to avoid need to call strlen. | ||
| 12237 | * data.c (Fnumber_to_string): | ||
| 12238 | Use make_unibyte_string, since the string must be ASCII. | ||
| 12239 | * lisp.h, print.c (float_to_string): Now returns int length. | ||
| 12240 | * term.c (produce_glyphless_glyph): | ||
| 12241 | Use sprintf result rather than recomputing it. | ||
| 12242 | |||
| 12243 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 12244 | * Makefile.in (ALL_CFLAGS): | ||
| 12245 | * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H. | ||
| 12246 | * gmalloc.c, regex.c: Include <config.h> unconditionally. | ||
| 12247 | |||
| 12248 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12249 | |||
| 12250 | * dispextern.h (xstrcasecmp): Define to library function | ||
| 12251 | strcasecmp if available. | ||
| 12252 | * xfaces.c: Do not use xstrcasecmp if strcasecmp is available. | ||
| 12253 | |||
| 12254 | 2012-06-25 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12255 | |||
| 12256 | * keyboard.c (menu_bar_items, menu_bar_item, read_key_sequence): | ||
| 12257 | Avoid comma operator. | ||
| 12258 | * menu.c (push_submenu_start, push_submenu_end) | ||
| 12259 | (push_left_right_boundary, push_menu_pane): Likewise. | ||
| 12260 | * msdos.c (dos_rawgetc): Likewise. | ||
| 12261 | |||
| 12262 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12263 | |||
| 12264 | * xfns.c (xic_create_fontsetname): Remove redundant calls | ||
| 12265 | to memset. | ||
| 12266 | |||
| 12267 | 2012-06-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12268 | |||
| 12269 | * gtkutil.c (get_utf8_string): Remove redundant assignment. | ||
| 12270 | sprintf already null-terminates its output. | ||
| 12271 | |||
| 12272 | * xfns.c (x_window): Remove redundant cast. | ||
| 12273 | |||
| 12274 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12275 | |||
| 12276 | * xmenu.c (xmenu_show, xdialog_show): Explicit cast from | ||
| 12277 | `const char *' to `char *' to avoid compiler warning. | ||
| 12278 | |||
| 12279 | 2012-06-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12280 | |||
| 12281 | * xterm.c (x_term_init): Build proper-sized _XSETTINGS_Snnn string | ||
| 12282 | instead of truncating it to 63 (admittedly a generous limit). | ||
| 12283 | |||
| 12284 | * process.c: Fix spelling and caps in comments. | ||
| 12285 | |||
| 12286 | 2012-06-24 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 12287 | |||
| 12288 | * emacs.c (setpgrp): Remove definition, unused. | ||
| 12289 | * sysdep.c (setpgrp): Remove definition, not used in this file. | ||
| 12290 | |||
| 12291 | 2012-06-24 Juanma Barranquero <lekktu@gmail.com> | ||
| 12292 | |||
| 12293 | * makefile.w32-in: Update dependencies. | ||
| 12294 | |||
| 12295 | 2012-06-24 Eli Zaretskii <eliz@gnu.org> | ||
| 12296 | |||
| 12297 | * makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h. | ||
| 12298 | (SYSTIME_H): Add nt/inc/sys/time.h. | ||
| 12299 | |||
| 12300 | * systime.h [WINDOWSNT]: Include sys/time.h. | ||
| 12301 | |||
| 12302 | * s/ms-w32.h (struct timespec): Definition moved from | ||
| 12303 | nt/inc/sys/time.h. Suggested by Paul Eggert <eggert@cs.ucla.edu>. | ||
| 12304 | |||
| 12305 | 2012-06-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12306 | |||
| 12307 | Switch from NO_RETURN to C11's _Noreturn (Bug#11750). | ||
| 12308 | * buffer.h (buffer_slot_type_mismatch): | ||
| 12309 | * data.c (arith_error) [!FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 12310 | * eval.c (unwind_to_catch): | ||
| 12311 | * image.c (my_png_error, my_error_exit): | ||
| 12312 | * keyboard.c (quit_throw_to_read_char, user_error) | ||
| 12313 | (Fexit_recursive_edit, Fabort_recursive_edit): | ||
| 12314 | * lisp.h (die, args_out_of_range, args_out_of_range_3) | ||
| 12315 | (wrong_type_argument, buffer_overflow, __executable_start) | ||
| 12316 | (memory_full, buffer_memory_full, string_overflow, Fthrow) | ||
| 12317 | (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error) | ||
| 12318 | (error, verror, nsberror, report_file_error, Ftop_level, Fkill_emacs) | ||
| 12319 | (fatal): | ||
| 12320 | (child_setup) [!DOS_NT]: | ||
| 12321 | * lread.c (end_of_file_error, invalid_syntax): | ||
| 12322 | * process.c (send_process_trap) [!FORWARD_SIGNAL_TO_MAIN_THREAD]: | ||
| 12323 | * puresize.h (pure_write_error): | ||
| 12324 | * search.c (matcher_overflow): | ||
| 12325 | * sound.c (sound_perror, alsa_sound_perror): | ||
| 12326 | * sysdep.c, syssignal.h (croak): | ||
| 12327 | * term.c (maybe_fatal, vfatal): | ||
| 12328 | * textprop.c (text_read_only): | ||
| 12329 | * undo.c (user_error): | ||
| 12330 | * unexmacosx.c (unexec_error): | ||
| 12331 | * xterm.c (x_ins_del_lines, x_delete_glyphs): | ||
| 12332 | Use _Noreturn rather than NO_RETURN. | ||
| 12333 | No need for separate decl merely because of _Noreturn. | ||
| 12334 | * sound.c (sound_warning, parse_sound): | ||
| 12335 | Remove unnecessary forward decls. | ||
| 12336 | |||
| 12337 | 2012-06-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12338 | |||
| 12339 | Fix bug when time_t is unsigned and as wide as intmax_t (Bug#9000). | ||
| 12340 | * lisp.h (WAIT_READING_MAX): New macro. | ||
| 12341 | * dispnew.c (Fsleep_for, sit_for): | ||
| 12342 | * keyboard.c (kbd_buffer_get_event): | ||
| 12343 | * process.c (Faccept_process_output): | ||
| 12344 | Use it to avoid bogus compiler warnings with obsolescent GCC versions. | ||
| 12345 | This improves on the previous patch, which introduced a bug | ||
| 12346 | when time_t is unsigned and as wide as intmax_t. | ||
| 12347 | See <http://bugs.gnu.org/9000#51>. | ||
| 12348 | |||
| 12349 | 2012-06-23 Eli Zaretskii <eliz@gnu.org> | ||
| 12350 | |||
| 12351 | * dispnew.c (sit_for, Fsleep_for): | ||
| 12352 | * keyboard.c (kbd_buffer_get_event): | ||
| 12353 | * process.c (Faccept_process_output): Avoid compiler warnings when | ||
| 12354 | comparing a 32-bit time_t with a 64-bit INTMAX_MAX. | ||
| 12355 | |||
| 12356 | 2012-06-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 12357 | |||
| 12358 | * makefile.w32-in: Update dependencies. | ||
| 12359 | |||
| 12360 | * w32.c (ltime): Add return type and declare static. | ||
| 12361 | (w32_get_internal_run_time): Remove usused variable `time_100ns'. | ||
| 12362 | |||
| 12363 | 2012-06-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12364 | |||
| 12365 | * sysdep.c [__FreeBSD__]: Fix more recently-introduced typos. | ||
| 12366 | Privately reported by Herbert J. Skuhra. | ||
| 12367 | (make_lisp_timeval) [__FreeBSD__]: Rename from TIMELIST. | ||
| 12368 | All uses changed. | ||
| 12369 | (system_process_attributes) [__FreeBSD__]: Invoke make_lisp_time, | ||
| 12370 | not make_lisp_timeval, when the argument is of type EMACS_TIME. | ||
| 12371 | |||
| 12372 | 2012-06-23 Eli Zaretskii <eliz@gnu.org> | ||
| 12373 | |||
| 12374 | * w32proc.c (Fw32_get_locale_info): Fix an off-by-one error in | ||
| 12375 | last argument of make_unibyte_string. | ||
| 12376 | |||
| 12377 | * keyboard.c (kbd_buffer_get_event): Include the codepage and the | ||
| 12378 | language ID in the event parameters. | ||
| 12379 | |||
| 12380 | * w32term.c (w32_read_socket): Put the new keyboard codepage into | ||
| 12381 | event.code, not the obscure "character set ID". | ||
| 12382 | |||
| 12383 | 2012-06-23 Chong Yidong <cyd@gnu.org> | ||
| 12384 | |||
| 12385 | * xmenu.c (x_menu_wait_for_event): Adapt GTK3 to new xg_select. | ||
| 12386 | |||
| 12387 | 2012-06-23 Eli Zaretskii <eliz@gnu.org> | ||
| 12388 | |||
| 12389 | Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu. | ||
| 12390 | * w32.c (fdutimens): New function. | ||
| 12391 | |||
| 12392 | * w32proc.c (sys_select): Adapt to change in the EMACS_TIME type. | ||
| 12393 | |||
| 12394 | * s/ms-w32.h (pselect): Redirect to sys_select. | ||
| 12395 | |||
| 12396 | * sysselect.h [WINDOWSNT]: Don't include sys/select.h. | ||
| 12397 | |||
| 12398 | * ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko | ||
| 12399 | in the logic of incrementing and decrementing the value of | ||
| 12400 | use_relocatable_buffers. | ||
| 12401 | |||
| 12402 | 2012-06-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12403 | |||
| 12404 | * sysdep.c [__FreeBSD__]: Fix recently-introduced typos. | ||
| 12405 | Privately reported by Herbert J. Skuhra. | ||
| 12406 | [__FreeBSD__]: Remove "*/" typo after "#include". | ||
| 12407 | (timeval_to_EMACS_TIME) [__FreeBSD__]: New static function. | ||
| 12408 | (TIMEVAL) [__FreeBSD__]: Now a static function rather than a macro. | ||
| 12409 | (TIMEVAL, system_process_attributes) [__FreeBSD__]: | ||
| 12410 | Don't assume EMACS_TIME and struct timeval are the same type. | ||
| 12411 | |||
| 12412 | 2012-06-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12413 | |||
| 12414 | Support higher-resolution time stamps (Bug#9000). | ||
| 12415 | The time stamps are only nanosecond-resolution at the C level, | ||
| 12416 | since that's the best that any real-world system supports now. | ||
| 12417 | But they are picosecond-resolution at the Lisp level, as that's | ||
| 12418 | easy, and leaves room for future OS improvements. | ||
| 12419 | |||
| 12420 | * Makefile.in (LIB_CLOCK_GETTIME): New macro. | ||
| 12421 | (LIBES): Use it. | ||
| 12422 | |||
| 12423 | * alloc.c (Fgarbage_collect): Port to higher-res time stamps. | ||
| 12424 | Don't get current time unless it's needed. | ||
| 12425 | |||
| 12426 | * atimer.c: Include <sys/time.h> unconditionally, since gnulib | ||
| 12427 | now provides it if it's absent. | ||
| 12428 | (start_atimer): Port to higher-res time stamps. | ||
| 12429 | Check for time stamp overflow. Don't get current time more | ||
| 12430 | often than is needed. | ||
| 12431 | |||
| 12432 | * buffer.h (struct buffer): Buffer modtime now has high resolution. | ||
| 12433 | Include systime.h, not time.h. | ||
| 12434 | (NONEXISTENT_MODTIME_NSECS, UNKNOWN_MODTIME_NSECS): New macros. | ||
| 12435 | |||
| 12436 | * dired.c: Include stat-time.h. | ||
| 12437 | (Ffile-attributes): File times now have higher resolution. | ||
| 12438 | |||
| 12439 | * dispextern.h [HAVE_WINDOW_SYSTEM]: Include systime.h. | ||
| 12440 | (struct image): Timestamp now has higher resolution. | ||
| 12441 | |||
| 12442 | * dispnew.c (PERIODIC_PREEMPTION_CHECKING): Remove, as Emacs always | ||
| 12443 | has at least microseconds now. All uses removed. | ||
| 12444 | (update_frame, update_single_window, update_window, update_frame_1) | ||
| 12445 | (Fsleep_for, sit_for): Port to higher-resolution time stamps. | ||
| 12446 | (duration_to_sec_usec): Remove; no longer needed. | ||
| 12447 | |||
| 12448 | * editfns.c (time_overflow): Now extern. | ||
| 12449 | (Fcurrent_time, Fget_internal_run_time, make_time, lisp_time_argument) | ||
| 12450 | (float-time, Fformat_time_string, Fcurrent_time_string) | ||
| 12451 | (Fcurrent_time_zone): Accept and generate higher-resolution | ||
| 12452 | time stamps. | ||
| 12453 | (make_time_tail, make_lisp_time, dissassemble_lisp_time) | ||
| 12454 | (decode_time_components, lisp_seconds_argument): New functions. | ||
| 12455 | (make_time): Now static. | ||
| 12456 | (lisp_time_argument): Now returns EMACS_TIME. New arg ppsec. | ||
| 12457 | Report an error if the time is invalid, rather than having the caller | ||
| 12458 | do that. | ||
| 12459 | |||
| 12460 | * fileio.c: Include <stat-time.h> | ||
| 12461 | (Fcopy_file): Copy higher-resolution time stamps. | ||
| 12462 | Prefer to set the time stamp via a file descriptor if that works. | ||
| 12463 | (Fset_file_times, Finsert_file_contents, Fwrite_region) | ||
| 12464 | (Fverify_visited_file_modtime, Fclear_visited_file_modtime) | ||
| 12465 | (Fvisited_file_modtime, Fset_visited_file_modtime): | ||
| 12466 | Support higher-resolution time stamps. | ||
| 12467 | |||
| 12468 | * fns.c (Frandom): Use nanoseconds, not microseconds, for seed. | ||
| 12469 | |||
| 12470 | * gtkutil.c (xg_maybe_add_timer): Port to higher-res time stamps. | ||
| 12471 | |||
| 12472 | * image.c (prepare_image_for_display, clear_image_cache) | ||
| 12473 | (lookup_image): Port to higer-resolution time stamps. | ||
| 12474 | |||
| 12475 | * keyboard.c (start_polling, bind_polling_period): | ||
| 12476 | Check for time stamp overflow. | ||
| 12477 | (read_char, kbd_buffer_get_event, timer_start_idle) | ||
| 12478 | (timer_stop_idle, timer_resume_idle, timer_check_2, timer_check) | ||
| 12479 | (Fcurrent_idle_time, init_keyboard, set_waiting_for_input): | ||
| 12480 | Port to higher-resolution time stamps. Do not assume time_t is signed. | ||
| 12481 | (decode_timer): New function. Timers are now vectors of length 9, | ||
| 12482 | not 8, to accommodate the picosecond component. | ||
| 12483 | (timer_check_2): Use it. | ||
| 12484 | |||
| 12485 | * nsterm.m (select_timeout, timeval_subtract): Remove. | ||
| 12486 | (ns_timeout): Use Emacs's facilities for time stamp arithmetic, | ||
| 12487 | as they're a bit more accurate and handle overflow better. | ||
| 12488 | (ns_select): Change prototype to be compatible with pselect. | ||
| 12489 | (ns_select, ns_term_shutdown): Port to ns-resolution time stamps. | ||
| 12490 | * nsterm.h (ns_select): Adjust prototype. | ||
| 12491 | |||
| 12492 | * msdos.c (EMACS_TIME_ZERO_OR_NEG_P): Remove, as it assumes | ||
| 12493 | us-resolution time stamps. | ||
| 12494 | (sys_select): Use the new EMACS_TIME_SIGN macro instead. | ||
| 12495 | |||
| 12496 | * lread.c (read_filtered_event): Port to ns-resolution time stamps. | ||
| 12497 | |||
| 12498 | * lisp.h (time_overflow): New decl. | ||
| 12499 | (wait_reading_process_output): First arg is now intmax_t, not int, | ||
| 12500 | to accommodate larger waits. | ||
| 12501 | |||
| 12502 | * process.h (struct Lisp_Process.read_output_delay): | ||
| 12503 | Now counts nanoseconds, not microseconds. | ||
| 12504 | * process.c (ADAPTIVE_READ_BUFFERING): Don't worry about | ||
| 12505 | EMACS_HAS_USECS. | ||
| 12506 | (READ_OUTPUT_DELAY_INCREMENT, Faccept_process_output) | ||
| 12507 | (wait_reading_process_output): | ||
| 12508 | Port to ns-resolution time stamps. | ||
| 12509 | (Faccept_process_output, wait_reading_process_output): | ||
| 12510 | Check for time stamp overflow. Do not assume time_t is signed. | ||
| 12511 | (select_wrapper): Remove; we now use pselect. | ||
| 12512 | (Fprocess_attributes): Now generates ns-resolution time stamps. | ||
| 12513 | |||
| 12514 | * sysdep.c: Include utimens.h. Don't include utime.h | ||
| 12515 | or worry about struct utimbuf; gnulib does that for us now. | ||
| 12516 | (gettimeofday): Remove; gnulib provides a substitute. | ||
| 12517 | (make_timeval): New function. | ||
| 12518 | (set_file_times): Now sets ns-resolution time stamps. | ||
| 12519 | New arg FD; all uses changed. | ||
| 12520 | (time_from_jiffies, ltime_from_jiffies, get_up_time) | ||
| 12521 | (system_process_attributes): | ||
| 12522 | Now returns ns-resolution time stamp. All uses changed. | ||
| 12523 | Check for time stamp overflow. | ||
| 12524 | |||
| 12525 | * sysselect.h: Don't depend on HAVE_SYS_SELECT_H; gnulib | ||
| 12526 | provides a substitute now. | ||
| 12527 | |||
| 12528 | * systime.h: Include timespec.h rather than sys/time.h and time.h, | ||
| 12529 | since it guarantees struct timespec. | ||
| 12530 | (EMACS_TIME): Now struct timespec, so that we can support | ||
| 12531 | ns-resolution time stamps. | ||
| 12532 | (EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): New macros. | ||
| 12533 | (EMACS_HAS_USECS): Remove; Emacs always has sub-second time stamps now. | ||
| 12534 | (EMACS_USECS): Remove. | ||
| 12535 | (EMACS_SET_USECS): The underlying time stamp now has ns resolution, | ||
| 12536 | so multiply the arg by 1000 before storing it. | ||
| 12537 | (EMACS_NSECS, EMACS_SECS_ADDR, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS): | ||
| 12538 | New macros. | ||
| 12539 | (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): | ||
| 12540 | Port to ns-resolution time stamps. | ||
| 12541 | (EMACS_TIME_NEG_P): Remove; replaced by.... | ||
| 12542 | (EMACS_TIME_SIGN): New macro. | ||
| 12543 | (EMACS_SET_INVALID_TIME, EMACS_TIME_VALID_P) | ||
| 12544 | (EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE): New macros. | ||
| 12545 | (set_file_times, make_time, lisp_time_argument): Adjust signature. | ||
| 12546 | (make_timeval, make_lisp_time, decode_time_components): New decls. | ||
| 12547 | (EMACS_TIME_CMP): Remove; no longer used. Plus, it was buggy, in | ||
| 12548 | that it mishandled time_t overflow. You can't compare by subtracting! | ||
| 12549 | (EMACS_TIME_EQ, EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE) | ||
| 12550 | (EMACS_TIME_LT, EMACS_TIME_LE): Rewrite in terms of timespec_cmp. | ||
| 12551 | |||
| 12552 | * term.c: Include <sys/time.h>. | ||
| 12553 | (timeval_to_Time): New function, for proper overflow wraparound. | ||
| 12554 | (term_mouse_position, term_mouse_click): Use it. | ||
| 12555 | |||
| 12556 | * undo.c (record_first_change): Support higher-resolution time stamps | ||
| 12557 | in the undo buffer. | ||
| 12558 | (Fprimitive_undo): Use them when restoring time stamps. | ||
| 12559 | |||
| 12560 | * w32.c (ltime, U64_TO_LISP_TIME, process_times, emacs_gnutls_pull) | ||
| 12561 | (w32_get_internal_run_time): | ||
| 12562 | Port to higher-resolution Emacs time stamps. | ||
| 12563 | (ltime): Now accepts single 64-bit integer, as that's more convenient | ||
| 12564 | for callers. | ||
| 12565 | |||
| 12566 | * xdisp.c (start_hourglass): Port to ns-resolution time stamps. | ||
| 12567 | |||
| 12568 | * xgselect.c, xgselect.h (xg_select): Add sigmask argument, | ||
| 12569 | for compatibility with pselect. Support ns-resolution time stamps. | ||
| 12570 | |||
| 12571 | * xmenu.c (x_menu_wait_for_event): Support ns-resolution time stamps. | ||
| 12572 | |||
| 12573 | * xselect.c (wait_for_property_change, x_get_foreign_selection): | ||
| 12574 | Check for time stamp overflow, and support ns-resolution time stamps. | ||
| 12575 | |||
| 12576 | * xterm.c: Don't include sys/time.h; gnulib does that for us now. | ||
| 12577 | Don't worry about whether HAVE_TIMEVAL and HAVE_SELECT are set. | ||
| 12578 | (timeval_subtract): Remove; no longer needed. | ||
| 12579 | (XTflash, XTring_bell, x_wait_for_event): | ||
| 12580 | Port to ns-resolution time stamps. Don't assume time_t is signed. | ||
| 12581 | |||
| 12582 | 2012-06-22 Chong Yidong <cyd@gnu.org> | ||
| 12583 | |||
| 12584 | * xdisp.c (x_consider_frame_title): Revert last change. | ||
| 12585 | |||
| 12586 | 2012-06-22 Eli Zaretskii <eliz@gnu.org> | ||
| 12587 | |||
| 12588 | * alloc.c (NSTATICS): Enlarge to 0x650. Otherwise, Emacs compiled | ||
| 12589 | with -DENABLE_CHECKING -DXASSERTS -DGLYPH_DEBUG=1 -DBYTE_CODE_METER | ||
| 12590 | aborts in staticpro during startup. (Without -DBYTE_CODE_METER, | ||
| 12591 | staticidx goes up to 1597 out of 1600 = 0x640.) | ||
| 12592 | |||
| 12593 | 2012-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12594 | |||
| 12595 | * fileio.c (Fdefault_file_modes): Block input while fiddling with umask. | ||
| 12596 | Otherwise, the umask might be mistakenly 0 while handling input signals. | ||
| 12597 | |||
| 12598 | 2012-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12599 | |||
| 12600 | * minibuf.c (Fread_string): Bind minibuffer-completion-table. | ||
| 12601 | |||
| 12602 | 2012-06-19 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12603 | |||
| 12604 | * alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c: | ||
| 12605 | * font.c, image.c, keyboard.c, lread.c, menu.c, minibuf.c, msdos.c: | ||
| 12606 | * print.c, syntax.c, window.c, xmenu.c, xselect.c: Replace direct | ||
| 12607 | access to `contents' member of Lisp_Vector objects with AREF and ASET | ||
| 12608 | where appropriate. | ||
| 12609 | |||
| 12610 | 2012-06-19 Chong Yidong <cyd@gnu.org> | ||
| 12611 | |||
| 12612 | * frame.c (delete_frame): When selecting a frame on a different | ||
| 12613 | text terminal, do not alter the terminal's top-frame. | ||
| 12614 | |||
| 12615 | * xdisp.c (format_mode_line_unwind_data): Record the target | ||
| 12616 | frame's selected window and its terminal's top-frame. | ||
| 12617 | (unwind_format_mode_line): Restore them. | ||
| 12618 | (x_consider_frame_title, display_mode_line, Fformat_mode_line): | ||
| 12619 | Callers changed. | ||
| 12620 | (x_consider_frame_title): Do not condition on HAVE_WINDOW_SYSTEM, | ||
| 12621 | since tty frames can be explicitly named. | ||
| 12622 | (prepare_menu_bars): Likewise. | ||
| 12623 | |||
| 12624 | * term.c (Ftty_top_frame): New function. | ||
| 12625 | |||
| 12626 | 2012-06-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12627 | |||
| 12628 | Port byte-code-meter to modern targets. | ||
| 12629 | * bytecode.c (METER_CODE) [BYTE_CODE_METER]: Don't assume | ||
| 12630 | !CHECK_LISP_OBJECT_TYPE && !USE_LSB_TAG. Problem with | ||
| 12631 | CHECK_LISP_OBJECT_TYPE reported by Dmitry Antipov in | ||
| 12632 | <http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00282.html>. | ||
| 12633 | (METER_1, METER_2): Simplify. | ||
| 12634 | |||
| 12635 | 2012-06-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12636 | |||
| 12637 | * data.c (Fdefalias): Return `symbol' (bug#11686). | ||
| 12638 | |||
| 12639 | 2012-06-18 Martin Rudalics <rudalics@gmx.at> | ||
| 12640 | |||
| 12641 | * buffer.c (Fkill_buffer): Don't throw an error when the buffer | ||
| 12642 | gets killed during executing of this function (Bug#11665). | ||
| 12643 | Try to always return Qt when the buffer has been actually killed. | ||
| 12644 | (Vkill_buffer_query_functions): In doc-string say that functions | ||
| 12645 | run by this hook should not change the current buffer. | ||
| 12646 | |||
| 12647 | 2012-06-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12648 | |||
| 12649 | Fix recently-introduced process.c problems found by static checking. | ||
| 12650 | * process.c (write_queue_push, write_queue_pop, send_process): | ||
| 12651 | Use ptrdiff_t, not int or EMACS_INT, for buffer lengths and offsets. | ||
| 12652 | (write_queue_pop): Fix pointer signedness problem. | ||
| 12653 | (send_process): Remove unused local. | ||
| 12654 | |||
| 12655 | 2012-06-17 Chong Yidong <cyd@gnu.org> | ||
| 12656 | |||
| 12657 | * xdisp.c (redisplay_internal): No need to redisplay terminal | ||
| 12658 | frames that are not on top. | ||
| 12659 | |||
| 12660 | 2012-06-17 Troels Nielsen <bn.troels@gmail.com> | ||
| 12661 | |||
| 12662 | * process.c (make_process): Initialize write_queue. | ||
| 12663 | (write_queue_push, write_queue_pop): New functions. | ||
| 12664 | (send_process): Use them to maintain correct ordering of process | ||
| 12665 | writes (Bug#10815). | ||
| 12666 | |||
| 12667 | 2012-06-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12668 | |||
| 12669 | * lisp.h (eassert): Assume C89 or later. | ||
| 12670 | This removes the need for CHECK. | ||
| 12671 | (CHECK): Remove. Its comments about always evaluating its | ||
| 12672 | argument were confusing, as 'eassert' typically does not evaluate | ||
| 12673 | its argument. | ||
| 12674 | |||
| 12675 | * coding.c (produce_chars): Use ptrdiff_t, not int. | ||
| 12676 | |||
| 12677 | * xterm.c (x_draw_underwave): Check for integer overflow. | ||
| 12678 | This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64. | ||
| 12679 | |||
| 12680 | 2012-06-17 Jan Djärv <jan.h.d@swipnet.se> | ||
| 12681 | |||
| 12682 | * nsterm.m (x_free_frame_resources): Move xfree so freed memory isn't | ||
| 12683 | referenced (Bug#11583). | ||
| 12684 | |||
| 12685 | 2012-06-16 Aurelien Aptel <aurelien.aptel@gmail.com> | ||
| 12686 | |||
| 12687 | Implement wave-style variant of underlining. | ||
| 12688 | * dispextern.h (face_underline_type): New enum. | ||
| 12689 | (face): Add field for underline type. | ||
| 12690 | * nsterm.m (ns_draw_underwave): New function. | ||
| 12691 | (ns_draw_text_decoration): Use it. | ||
| 12692 | * w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave): | ||
| 12693 | New functions. | ||
| 12694 | (x_draw_glyph_string): Use them. | ||
| 12695 | * xfaces.c (Qline, Qwave): New Lisp objects. | ||
| 12696 | (check_lface_attrs, merge_face_ref) | ||
| 12697 | (Finternal_set_lisp_face_attribute, realize_x_face): | ||
| 12698 | Handle wave-style underline face attributes. | ||
| 12699 | * xterm.c (x_draw_underwave): New function. | ||
| 12700 | (x_draw_glyph_string): Use it. | ||
| 12701 | |||
| 12702 | 2012-06-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 12703 | |||
| 12704 | * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/fringe.$(O)) | ||
| 12705 | ($(BLD)/xml.$(O), $(BLD)/intervals.$(O), $(BLD)/macros.$(O)) | ||
| 12706 | ($(BLD)/minibuf.$(O), $(BLD)/regex.$(O), $(BLD)/region-cache.$(O)) | ||
| 12707 | ($(BLD)/textprop.$(O), $(BLD)/undo.$(O), $(BLD)/window.$(O)) | ||
| 12708 | ($(BLD)/w32select.$(O)): Update dependencies. | ||
| 12709 | |||
| 12710 | 2012-06-16 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12711 | |||
| 12712 | * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. | ||
| 12713 | (BUF_FETCH_MULTIBYTE_CHAR): Likewise. | ||
| 12714 | * character.c (_fetch_multibyte_char_p): Remove. | ||
| 12715 | * alloc.c: Include "character.h" before "buffer.h". | ||
| 12716 | * bidi.c: Likewise. | ||
| 12717 | * buffer.c: Likewise. | ||
| 12718 | * bytecode.c: Likewise. | ||
| 12719 | * callint.c: Likewise. | ||
| 12720 | * callproc.c: Likewise. | ||
| 12721 | * casefiddle.c: Likewise. | ||
| 12722 | * casetab.c: Likewise. | ||
| 12723 | * category.c: Likewise. | ||
| 12724 | * cmds.c: Likewise. | ||
| 12725 | * coding.c: Likewise. | ||
| 12726 | * composite.c: Likewise. | ||
| 12727 | * dired.c: Likewise. | ||
| 12728 | * dispnew.c: Likewise. | ||
| 12729 | * doc.c: Likewise. | ||
| 12730 | * dosfns.c: Likewise. | ||
| 12731 | * editfns.c: Likewise. | ||
| 12732 | * emacs.c: Likewise. | ||
| 12733 | * fileio.c: Likewise. | ||
| 12734 | * filelock.c: Likewise. | ||
| 12735 | * font.c: Likewise. | ||
| 12736 | * fontset.c: Likewise. | ||
| 12737 | * fringe.c: Likewise. | ||
| 12738 | * indent.c: Likewise. | ||
| 12739 | * insdel.c: Likewise. | ||
| 12740 | * intervals.c: Likewise. | ||
| 12741 | * keyboard.c: Likewise. | ||
| 12742 | * keymap.c: Likewise. | ||
| 12743 | * lread.c: Likewise. | ||
| 12744 | * macros.c: Likewise. | ||
| 12745 | * marker.c: Likewise. | ||
| 12746 | * minibuf.c: Likewise. | ||
| 12747 | * nsfns.m: Likewise. | ||
| 12748 | * nsmenu.m: Likewise. | ||
| 12749 | * print.c: Likewise. | ||
| 12750 | * process.c: Likewise. | ||
| 12751 | * regex.c: Likewise. | ||
| 12752 | * region-cache.c: Likewise. | ||
| 12753 | * search.c: Likewise. | ||
| 12754 | * syntax.c: Likewise. | ||
| 12755 | * term.c: Likewise. | ||
| 12756 | * textprop.c: Likewise. | ||
| 12757 | * undo.c: Likewise. | ||
| 12758 | * unexsol.c: Likewise. | ||
| 12759 | * w16select.c: Likewise. | ||
| 12760 | * w32fns.c: Likewise. | ||
| 12761 | * w32menu.c: Likewise. | ||
| 12762 | * window.c: Likewise. | ||
| 12763 | * xdisp.c: Likewise. | ||
| 12764 | * xfns.c: Likewise. | ||
| 12765 | * xmenu.c: Likewise. | ||
| 12766 | * xml.c: Likewise. | ||
| 12767 | * xselect.c: Likewise. | ||
| 12768 | |||
| 12769 | 2012-06-16 Eli Zaretskii <eliz@gnu.org> | ||
| 12770 | |||
| 12771 | * xdisp.c (set_cursor_from_row): Don't dereference glyphs_end. | ||
| 12772 | If all the glyphs of the glyph row came from strings, and we have no | ||
| 12773 | cursor positioning clues, put the cursor on the first glyph of the | ||
| 12774 | row. | ||
| 12775 | (handle_face_prop): Use chunk-relative overlay string index when | ||
| 12776 | indexing into it->string_overlays array. (Bug#11653) | ||
| 12777 | (set_cursor_from_row): Use the leftmost glyph as GLYPH_BEFORE, not | ||
| 12778 | the rightmost. (Bug#11720) | ||
| 12779 | |||
| 12780 | 2012-06-16 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12781 | |||
| 12782 | * category.h (CHAR_HAS_CATEGORY): Define as inline. | ||
| 12783 | (CATEGORY_MEMBER): Enforce 1/0 value. | ||
| 12784 | * category.c (_temp_category_set): Remove. | ||
| 12785 | |||
| 12786 | 2012-06-16 Eli Zaretskii <eliz@gnu.org> | ||
| 12787 | |||
| 12788 | * window.c (Fdelete_other_windows_internal) | ||
| 12789 | (Fdelete_window_internal): Don't access frame's mouse highlight | ||
| 12790 | info of the initial frame. (Bug#11677) | ||
| 12791 | |||
| 12792 | 2012-06-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12793 | |||
| 12794 | * .gdbinit (xgetint): Fix recently-introduced paren typo. | ||
| 12795 | Assume USE_2_TAGS_FOR_INTS. | ||
| 12796 | (xreload): Adjust $tagmask width to match recent lisp.h change. | ||
| 12797 | |||
| 12798 | Simplify lisp.h in minor ways that should not affect code. | ||
| 12799 | * lisp.h (USE_2_TAGS_FOR_INTS): Remove, as it was always defined. | ||
| 12800 | (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P) | ||
| 12801 | (LISP_INT1_TAG, enum Lisp_Type, XINT, XUINT, make_number): | ||
| 12802 | Simplify under the assumption that USE_2_TAGS_FOR_INTS is defined. | ||
| 12803 | (INTTYPEBITS): New macro, for clarity. | ||
| 12804 | (INTMASK, MOST_POSITIVE_FIXNUM): Use it. | ||
| 12805 | (LISP_INT1_TAG, LISP_STRING_TAG, LISP_INT_TAG_P): | ||
| 12806 | Simplify now that USE_LSB_TAG is always defined. | ||
| 12807 | (TYPEMASK, XINT) [USE_LSB_TAG]: Remove unnecessary cast. | ||
| 12808 | (make_number) [!USE_LSB_TAG]: Use INTMASK; that's simpler. | ||
| 12809 | |||
| 12810 | 2012-06-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 12811 | |||
| 12812 | * makefile.w32-in ($(BLD)/data.$(O)): Update dependencies. | ||
| 12813 | |||
| 12814 | 2012-06-13 Glenn Morris <rgm@gnu.org> | ||
| 12815 | |||
| 12816 | * s/bsd-common.h (BSD4_3): | ||
| 12817 | * s/usg5-4-common.h (USG5_4): No longer define; unused. | ||
| 12818 | |||
| 12819 | 2012-06-13 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12820 | |||
| 12821 | * lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Define as struct | ||
| 12822 | instead of union. | ||
| 12823 | (XLI, XIL): Define. | ||
| 12824 | (XHASH, XTYPE, XINT, XUINT, make_number, XSET, XPNTR, XUNTAG): | ||
| 12825 | Use them. | ||
| 12826 | * emacs.c (gdb_use_struct): Rename from gdb_use_union. | ||
| 12827 | * .gdbinit: Check gdb_use_struct instead of gdb_use_union. | ||
| 12828 | * alloc.c (widen_to_Lisp_Object): Remove. | ||
| 12829 | (mark_memory): Use XIL instead of widen_to_Lisp_Object. | ||
| 12830 | * frame.c (delete_frame): Remove outdated comment. | ||
| 12831 | * w32fns.c (Fw32_register_hot_key): Use XLI instead of checking | ||
| 12832 | USE_LISP_UNION_TYPE. | ||
| 12833 | (Fw32_unregister_hot_key): Likewise. | ||
| 12834 | (Fw32_toggle_lock_key): Likewise. | ||
| 12835 | * w32menu.c (add_menu_item): Likewise. | ||
| 12836 | (w32_menu_display_help): Use XIL instead of checking | ||
| 12837 | USE_LISP_UNION_TYPE. | ||
| 12838 | * w32heap.c (allocate_heap): Don't check USE_LISP_UNION_TYPE. | ||
| 12839 | (init_heap): Likewise. | ||
| 12840 | * w32term.c (w32_read_socket): Update comment. | ||
| 12841 | |||
| 12842 | 2012-06-13 Glenn Morris <rgm@gnu.org> | ||
| 12843 | |||
| 12844 | * s/usg5-4-common.h, src/s/unixware.h: | ||
| 12845 | Remove define/undef of HAVE_SYSV_SIGPAUSE (not used since 2010-05-04). | ||
| 12846 | |||
| 12847 | * s/gnu.h (POSIX_SIGNALS): Remove (not used since 2010-05-04). | ||
| 12848 | |||
| 12849 | 2012-06-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12850 | |||
| 12851 | USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup (Bug#11604) | ||
| 12852 | * alloc.c (make_number) [!defined make_number]: | ||
| 12853 | Remove, as lisp.h always defines this now. | ||
| 12854 | (mark_maybe_pointer): Simplify since USE_LSB_TAG is always defined now. | ||
| 12855 | (roundup_size): Verify that it is a power of 2. | ||
| 12856 | * data.c (Fmake_variable_buffer_local, Fmake_local_variable): | ||
| 12857 | * ftfont.c (ftfont_driver): Use LISP_INITIALLY_ZERO. | ||
| 12858 | * lisp.h (USE_LSB_TAG): Allow the builder to compile with | ||
| 12859 | -DUSE_LSB_TAG=0, to override the automatically-selected default. | ||
| 12860 | USE_LSB_TAG now is always defined to be either 0 or 1. | ||
| 12861 | All uses changed. | ||
| 12862 | (union Lisp_Object): Don't worry about WORDS_BIGENDIAN; the | ||
| 12863 | code works fine either way, and efficiency is not a concern here, | ||
| 12864 | as the union type is for debugging, not for production. | ||
| 12865 | (LISP_MAKE_RVALUE, make_number) [USE_LISP_UNION_TYPE]: | ||
| 12866 | Use an inline function on all platforms when using the union type, | ||
| 12867 | since this is simpler and 'static inline' can be used portably | ||
| 12868 | within Emacs now. | ||
| 12869 | (LISP_INITIALLY_ZERO): New macro. | ||
| 12870 | (XFASTINT, XSETFASTINT) [USE_LISP_UNION_TYPE]: Remove. | ||
| 12871 | (XSET) [USE_LISP_UNION_TYPE]: Don't overparenthesize. | ||
| 12872 | |||
| 12873 | 2012-06-12 Glenn Morris <rgm@gnu.org> | ||
| 12874 | |||
| 12875 | * s/gnu-kfreebsd.h, s/hpux11.h, s/openbsd.h, s/sol2-10.h: Remove files. | ||
| 12876 | |||
| 12877 | * s/gnu-linux.h (HAVE_PROCFS): Move to configure. | ||
| 12878 | |||
| 12879 | * s/hpux10-20.h, s/openbsd.h, s/usg5-4-common.h: | ||
| 12880 | Move BROKEN_SIGIO to configure. | ||
| 12881 | |||
| 12882 | * s/bsd-common.h, s/darwin.h, s/gnu-kfreebsd.h, s/hpux10-20.h: | ||
| 12883 | Move NO_TERMIO to configure. | ||
| 12884 | |||
| 12885 | 2012-06-12 Chong Yidong <cyd@gnu.org> | ||
| 12886 | |||
| 12887 | * image.c (imagemagick_load_image): Use MagickFlattenImage if | ||
| 12888 | MagickMergeImageLayers is undefined. Use pixel pusher loop if | ||
| 12889 | MagickExportImagePixels is undefined. | ||
| 12890 | |||
| 12891 | 2012-06-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12892 | |||
| 12893 | * image.c (imagemagick_load_image): Remove unused label. | ||
| 12894 | |||
| 12895 | 2012-06-11 Glenn Morris <rgm@gnu.org> | ||
| 12896 | |||
| 12897 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: | ||
| 12898 | * s/gnu-kfreebsd.h, s/gnu-linux.h, s/gnu.h, s/hpux10-20.h: | ||
| 12899 | * s/irix6-5.h, s/ms-w32.h, s/msdos.h, s/template.h: | ||
| 12900 | * s/usg5-4-common.h: Move SYSTEM_TYPE to configure. | ||
| 12901 | |||
| 12902 | 2012-06-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12903 | |||
| 12904 | * alloc.c (make_byte_code): New function. | ||
| 12905 | (Fmake_byte_code): Use it. Don't purify here. | ||
| 12906 | * lread.c (read1): Use it as well to avoid extra allocation. | ||
| 12907 | |||
| 12908 | 2012-06-11 Chong Yidong <cyd@gnu.org> | ||
| 12909 | |||
| 12910 | * image.c (imagemagick_load_image): Implement transparency. | ||
| 12911 | |||
| 12912 | 2012-06-10 Andreas Schwab <schwab@linux-m68k.org> | ||
| 12913 | |||
| 12914 | * regex.c (at_begline_loc_p): Also recognize `(?N:' and correctly | ||
| 12915 | account for preceding backslashes. (Bug#11663) | ||
| 12916 | |||
| 12917 | 2012-06-09 Chong Yidong <cyd@gnu.org> | ||
| 12918 | |||
| 12919 | * term.c: Support italics in capable terminals (Bug#9652). | ||
| 12920 | (no_color_bit): Replace unused NC_BLINK with NC_ITALIC. | ||
| 12921 | (turn_on_face): Output using TS_enter_italic_mode if available. | ||
| 12922 | Don't handle unused blinking and alt-charset cases. | ||
| 12923 | (turn_off_face): Handle italic case; discard unused tty_blinking_p | ||
| 12924 | and tty_alt_charset_p cases. | ||
| 12925 | (tty_capable_p, init_tty): Support italics. | ||
| 12926 | |||
| 12927 | * termchar.h (struct tty_display_info): Add field for italics. | ||
| 12928 | Remove unused blink field. | ||
| 12929 | |||
| 12930 | * xfaces.c (tty_supports_face_attributes_p, realize_tty_face): | ||
| 12931 | Handle slant. | ||
| 12932 | |||
| 12933 | * dispextern.h: Replace unused TTY_CAP_BLINK with TTY_CAP_ITALIC. | ||
| 12934 | (struct face): Remove unused fields tty_dim_p, tty_blinking_p, and | ||
| 12935 | tty_alt_charset_p. Add tty_italic_p. | ||
| 12936 | |||
| 12937 | 2012-06-09 Michael Albinus <michael.albinus@gmx.de> | ||
| 12938 | |||
| 12939 | * dbusbind.c (XD_BASIC_DBUS_TYPE): Use dbus_type_is_valid and | ||
| 12940 | dbus_type_is_basic if available. | ||
| 12941 | (xd_extract_signed, xd_extract_unsigned): Rename from | ||
| 12942 | extract_signed and extract_unsigned, respectively. Adapt callers. | ||
| 12943 | |||
| 12944 | 2012-06-09 Chong Yidong <cyd@gnu.org> | ||
| 12945 | |||
| 12946 | * xfaces.c (face_for_overlay_string): Handle face remapping (Bug#2066). | ||
| 12947 | |||
| 12948 | * fringe.c (Fset_fringe_bitmap_face): Handle the noninteractive | ||
| 12949 | case (Bug#9752). | ||
| 12950 | |||
| 12951 | 2012-06-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12952 | |||
| 12953 | * xdisp.c (vmessage): Treat frame message as multibyte. | ||
| 12954 | Without this change, (let ((§ 1)) (make-variable-buffer-local '§)) | ||
| 12955 | would generate the diagnostic "Making \302\247 buffer-local while | ||
| 12956 | let-bound!". | ||
| 12957 | |||
| 12958 | 2012-06-08 Eli Zaretskii <eliz@gnu.org> | ||
| 12959 | |||
| 12960 | * dispnew.c (showing_window_margins_p): Undo last change, which | ||
| 12961 | was done due to an inadvertent commit. | ||
| 12962 | (adjust_frame_glyphs_for_frame_redisplay): Do call | ||
| 12963 | showing_window_margins_p. | ||
| 12964 | |||
| 12965 | 2012-06-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 12966 | |||
| 12967 | * eval.c (Fmake_var_non_special): New primitive. | ||
| 12968 | (syms_of_eval): Defsubr it. | ||
| 12969 | * lread.c (syms_of_lread): Mark `values' as lexically scoped. | ||
| 12970 | |||
| 12971 | 2012-06-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 12972 | |||
| 12973 | * dispnew.c (showing_window_margins_p): Wrap in #if 0 to prevent unused | ||
| 12974 | function warning (the only call is inside #if 0 since 2012-06-08T08:44:45Z!eliz@gnu.org). | ||
| 12975 | |||
| 12976 | 2012-06-08 Eli Zaretskii <eliz@gnu.org> | ||
| 12977 | |||
| 12978 | * alloc.c (allocate_vectorlike): Fix last change. | ||
| 12979 | |||
| 12980 | 2012-06-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 12981 | |||
| 12982 | Block-based vector allocation of small vectors. | ||
| 12983 | * lisp.h (struct vectorlike_header): New field `nbytes', | ||
| 12984 | adjust comment accordingly. | ||
| 12985 | * alloc.c (enum mem_type): New type `MEM_TYPE_VECTOR_BLOCK' | ||
| 12986 | to denote vector blocks. Adjust users (live_vector_p, | ||
| 12987 | mark_maybe_pointer, valid_lisp_object_p) accordingly. | ||
| 12988 | (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG. | ||
| 12989 | (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES) | ||
| 12990 | (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX) | ||
| 12991 | (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST) | ||
| 12992 | (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros. | ||
| 12993 | (roundup_size): New constant. | ||
| 12994 | (struct vector_block): New data type. | ||
| 12995 | (vector_blocks, vector_free_lists, zero_vector): New variables. | ||
| 12996 | (all_vectors): Rename to `large_vectors'. | ||
| 12997 | (allocate_vector_from_block, init_vectors, allocate_vector_from_block) | ||
| 12998 | (sweep_vectors): New functions. | ||
| 12999 | (allocate_vectorlike): Return `zero_vector' as the only vector of | ||
| 13000 | 0 items. Allocate new vector from block if vector size is less than | ||
| 13001 | or equal to VBLOCK_BYTES_MAX. | ||
| 13002 | (Fgarbage_collect): Move all vector sweeping code to sweep_vectors. | ||
| 13003 | (init_alloc_once): Add call to init_vectors. | ||
| 13004 | |||
| 13005 | 2012-06-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 13006 | |||
| 13007 | * eval.c (Fmacroexpand): Stop if the macro returns the same form. | ||
| 13008 | |||
| 13009 | 2012-06-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13010 | |||
| 13011 | * doprnt.c (doprnt): Truncate multibyte char correctly. | ||
| 13012 | Without this change, doprnt (buf, 2, "%s", FORMAT_END, AP) | ||
| 13013 | would mishandle a string argument "Xc" if X was a multibyte | ||
| 13014 | character of length 2: it would truncate after X's first byte | ||
| 13015 | rather than including all of X. | ||
| 13016 | |||
| 13017 | 2012-06-06 Chong Yidong <cyd@gnu.org> | ||
| 13018 | |||
| 13019 | * buffer.c (word_wrap): Doc fix. | ||
| 13020 | |||
| 13021 | 2012-06-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13022 | |||
| 13023 | * xdisp.c (note_mode_line_or_margin_highlight): Pacify gcc -Wall. | ||
| 13024 | |||
| 13025 | 2012-06-03 Glenn Morris <rgm@gnu.org> | ||
| 13026 | |||
| 13027 | * xdisp.c (tool-bar-style): Doc fix. | ||
| 13028 | |||
| 13029 | 2012-06-03 Ulrich Müller <ulm@gentoo.org> | ||
| 13030 | |||
| 13031 | * Makefile.in (PAXCTL): Define. | ||
| 13032 | (temacs$(EXEEXT)): Disable memory randomization for the temacs | ||
| 13033 | binary via PaX flags if the paxctl utility is available. | ||
| 13034 | (emacs$(EXEEXT), bootstrap-emacs$(EXEEXT)): | ||
| 13035 | Restore PaX flags to their default. (Bug#11398) | ||
| 13036 | |||
| 13037 | 2012-06-03 Chong Yidong <cyd@gnu.org> | ||
| 13038 | |||
| 13039 | * xdisp.c (decode_mode_spec_coding): Display a space for a unibyte | ||
| 13040 | buffer (Bug#11226). | ||
| 13041 | |||
| 13042 | 2012-06-03 Chong Yidong <cyd@gnu.org> | ||
| 13043 | |||
| 13044 | * xdisp.c (calc_pixel_width_or_height): Use Fbuffer_local_value. | ||
| 13045 | (note_mode_line_or_margin_highlight): If there is no help echo, | ||
| 13046 | use mode-line-default-help-echo. Handle the case where the mouse | ||
| 13047 | position is past the end of the mode line string. | ||
| 13048 | |||
| 13049 | * buffer.c (buffer_local_value_1): New function, split from | ||
| 13050 | Fbuffer_local_value; can return Qunbound. | ||
| 13051 | (Fbuffer_local_value): Use it. | ||
| 13052 | (Vmode_line_format): Docstring tweaks. | ||
| 13053 | |||
| 13054 | 2012-06-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13055 | |||
| 13056 | * sysdep.c (system_process_attributes): Improve comment. | ||
| 13057 | |||
| 13058 | 2012-06-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 13059 | |||
| 13060 | * keyboard.c: Export real-this-command to Elisp. | ||
| 13061 | (syms_of_keyboard): Rename real_this_command to Vreal_this_command | ||
| 13062 | and DEFVAR it. Update all users. | ||
| 13063 | |||
| 13064 | 2012-06-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13065 | |||
| 13066 | * minibuf.c (Fassoc_string): Remove duplicate declaration. | ||
| 13067 | |||
| 13068 | * sysdep.c (system_process_attributes) [SOLARIS2 && HAVE_PROCFS]: | ||
| 13069 | Convert pctcpu and pctmem to Lisp float properly. | ||
| 13070 | Let the compiler fold better, as 100.0/0x8000 is exact. | ||
| 13071 | |||
| 13072 | 2012-06-02 Andreas Schwab <schwab@linux-m68k.org> | ||
| 13073 | |||
| 13074 | * alloc.c (CONS_BLOCK_SIZE): Account for padding at the end of | ||
| 13075 | cons_block. | ||
| 13076 | |||
| 13077 | 2012-06-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13078 | |||
| 13079 | * xfns.c (x_set_tool_bar_lines) [USE_GTK]: Adjust to bitfield change. | ||
| 13080 | |||
| 13081 | 2012-06-01 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 13082 | |||
| 13083 | For a 'struct window', replace some Lisp_Object fields to | ||
| 13084 | bitfields where appropriate, remove unused fields. | ||
| 13085 | * window.h (struct window): Remove unused 'last_mark_x' and | ||
| 13086 | 'last_mark_y' fields. Rename 'mini_p' field to 'mini', | ||
| 13087 | change its type from Lisp_Object to bitfield. | ||
| 13088 | Change type of 'force_start', 'optional_new_start', | ||
| 13089 | 'last_had_star', 'update_mode_line' and 'start_at_line_beg' | ||
| 13090 | fields from Lisp_Object to bitfield. Adjust users accordingly. | ||
| 13091 | |||
| 13092 | 2012-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13093 | |||
| 13094 | Pacify gcc -Wdouble-precision when using Xaw. | ||
| 13095 | * xterm.c (xaw_jump_callback, x_set_toolkit_scroll_bar_thumb) | ||
| 13096 | [HAVE_X_WINDOWS && USE_TOOLKIT_SCROLL_BARS && !USE_MOTIF && !USE_GTK]: | ||
| 13097 | Use 'float' consistently, rather than 'float' in most places | ||
| 13098 | and 'double' in a couple of places. | ||
| 13099 | |||
| 13100 | 2012-05-31 Eli Zaretskii <eliz@gnu.org> | ||
| 13101 | |||
| 13102 | * xdisp.c (handle_stop): Detect whether we have overlay strings | ||
| 13103 | loaded by testing it->current.overlay_string_index to be | ||
| 13104 | non-negative, instead of checking whether n_overlay_strings is | ||
| 13105 | positive. (Bug#11587) | ||
| 13106 | |||
| 13107 | 2012-05-31 Chong Yidong <cyd@gnu.org> | ||
| 13108 | |||
| 13109 | * keymap.c (describe_map_tree): Revert 2011-07-07 change (Bug#1169). | ||
| 13110 | |||
| 13111 | * doc.c (Fsubstitute_command_keys): Doc fix. | ||
| 13112 | |||
| 13113 | 2012-05-31 Eli Zaretskii <eliz@gnu.org> | ||
| 13114 | |||
| 13115 | * search.c (search_buffer): Remove calls to | ||
| 13116 | r_alloc_inhibit_buffer_relocation, as it is now called by | ||
| 13117 | maybe_unify_char, which was the cause of relocation of buffer text | ||
| 13118 | in bug#11519. | ||
| 13119 | |||
| 13120 | 2012-05-31 Eli Zaretskii <eliz@gnu.org> | ||
| 13121 | |||
| 13122 | * charset.c (maybe_unify_char): Inhibit relocation of buffer text | ||
| 13123 | for the duration of call to load_charset, to avoid problems with | ||
| 13124 | callers of maybe_unify_char that access buffer text through C | ||
| 13125 | pointers. | ||
| 13126 | |||
| 13127 | * ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and | ||
| 13128 | decrement the inhibition flag, instead of just setting or | ||
| 13129 | resetting it. | ||
| 13130 | |||
| 13131 | 2012-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13132 | |||
| 13133 | Remove obsolete '#define static' cruft. | ||
| 13134 | * s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef. | ||
| 13135 | This #undef was "temporary" in 2000; it is no longer needed | ||
| 13136 | now that '#define static' has gone away. | ||
| 13137 | * xfns.c, xterm.h (gray_bitmap_width, gray_bitmap_height) | ||
| 13138 | (gray_bitmap_bits): Remove; no longer needed. | ||
| 13139 | All uses replaced with definiens. | ||
| 13140 | * xterm.c: Include "bitmaps/gray.xbm". | ||
| 13141 | |||
| 13142 | 2012-05-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13143 | |||
| 13144 | Clean up __executable_start, monstartup when --enable-profiling. | ||
| 13145 | The following changes affect the code only when profiling. | ||
| 13146 | * dispnew.c (__executable_start): Rename from safe_bcopy. | ||
| 13147 | Define only on platforms that need it. | ||
| 13148 | * emacs.c: Include <sys/gmon.h> when profiling. | ||
| 13149 | (_mcleanup): Remove decl, since <sys/gmon.h> does it now. | ||
| 13150 | (__executable_start): Remove decl, since lisp.h does it now. | ||
| 13151 | (safe_bcopy): Remove decl; no longer has that name. | ||
| 13152 | (main): Coalesce #if into single bit of code, for simplicity. | ||
| 13153 | Cast pointers to uintptr_t, since standard libraries want integers | ||
| 13154 | and not pointers. | ||
| 13155 | * lisp.h (__executable_start): New decl. | ||
| 13156 | |||
| 13157 | 2012-05-31 Glenn Morris <rgm@gnu.org> | ||
| 13158 | |||
| 13159 | * image.c (Fimagemagick_types): Doc fix. | ||
| 13160 | |||
| 13161 | 2012-05-30 Jim Meyering <meyering@redhat.com> | ||
| 13162 | |||
| 13163 | * callproc.c (Fcall_process_region): Include directory component | ||
| 13164 | in mkstemp error message (Bug#11586). | ||
| 13165 | |||
| 13166 | 2012-05-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13167 | |||
| 13168 | * alloc.c, lisp.h (make_pure_vector): Now static. | ||
| 13169 | |||
| 13170 | 2012-05-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 13171 | |||
| 13172 | * eval.c (Fdefun, Fdefmacro, Vmacro_declaration_function): | ||
| 13173 | Move to byte-run.el. | ||
| 13174 | (Fautoload): Do the hash-doc more carefully. | ||
| 13175 | * data.c (Fdefalias): Purify definition, except for keymaps. | ||
| 13176 | (Qdefun): Move from eval.c. | ||
| 13177 | * lisp.h (Qdefun): Remove. | ||
| 13178 | * lread.c (read1): Tiny simplification. | ||
| 13179 | |||
| 13180 | 2012-05-29 Troels Nielsen <bn.troels@gmail.com> | ||
| 13181 | |||
| 13182 | Do not create empty overlays with the evaporate property (Bug#9642). | ||
| 13183 | * buffer.c (Fmove_overlay): Reinstate the earlier fix for | ||
| 13184 | Bug#9642, but explicitly check that the buffer the overlay would | ||
| 13185 | be moved to is live and rearrange lines to make sure that errors | ||
| 13186 | will not put the overlay in an inconsistent state. | ||
| 13187 | (Fdelete_overlay): Cosmetics. | ||
| 13188 | |||
| 13189 | 2012-05-28 Eli Zaretskii <eliz@gnu.org> | ||
| 13190 | |||
| 13191 | * w32term.c (my_bring_window_to_top): New function. | ||
| 13192 | (x_raise_frame): Use handle returned by DeferWindowPos, which | ||
| 13193 | could be different from the original one. | ||
| 13194 | Call my_bring_window_to_top instead of my_set_foreground_window. | ||
| 13195 | (Bug#11513) | ||
| 13196 | |||
| 13197 | * w32fns.c (w32_wnd_proc): Accept and process WM_EMACS_BRINGTOTOP | ||
| 13198 | by calling BringWindowToTop. | ||
| 13199 | |||
| 13200 | * w32term.h (WM_EMACS_BRINGTOTOP): New message. | ||
| 13201 | (WM_EMACS_END): Increase by one. | ||
| 13202 | |||
| 13203 | 2012-05-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13204 | |||
| 13205 | * bidi.c (bidi_mirror_char): Put eassert before conversion to int. | ||
| 13206 | This avoids undefined behavior that might cause the eassert | ||
| 13207 | to not catch an out-of-range value. | ||
| 13208 | |||
| 13209 | 2012-05-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 13210 | |||
| 13211 | * makefile.w32-in ($(BLD)/w32inevt.$(O), $(BLD)/w32console.$(O)): | ||
| 13212 | Update dependencies. | ||
| 13213 | |||
| 13214 | 2012-05-27 Eli Zaretskii <eliz@gnu.org> | ||
| 13215 | |||
| 13216 | * bidi.c (bidi_mirror_char): Fix last change. | ||
| 13217 | |||
| 13218 | 2012-05-27 Andreas Schwab <schwab@linux-m68k.org> | ||
| 13219 | |||
| 13220 | * unexmacosx.c (copy_data_segment): Truncate after 16 characters | ||
| 13221 | when referring to sectname field in printf format. | ||
| 13222 | |||
| 13223 | 2012-05-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13224 | |||
| 13225 | * lisp.h [REL_ALLOC]: Omit duplicate prototypes. | ||
| 13226 | Only r_alloc_inhibit_buffer_relocation needed to be added; | ||
| 13227 | the others were already declared. | ||
| 13228 | |||
| 13229 | * bidi.c (bidi_mirror_char): Don't possibly truncate the integer | ||
| 13230 | before checking whether it's out of range. Put the check inside | ||
| 13231 | eassert. See | ||
| 13232 | <http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00485.html>. | ||
| 13233 | |||
| 13234 | 2012-05-27 Ken Brown <kbrown@cornell.edu> | ||
| 13235 | |||
| 13236 | * callproc.c (Fcall_process): Restore a line that was accidentally | ||
| 13237 | commented out in the 2011-02-13 change (bug#11547). | ||
| 13238 | |||
| 13239 | 2012-05-27 Eli Zaretskii <eliz@gnu.org> | ||
| 13240 | |||
| 13241 | * lisp.h [REL_ALLOC]: Add prototypes for external functions | ||
| 13242 | defined on ralloc.c. | ||
| 13243 | |||
| 13244 | * buffer.c [REL_ALLOC]: Remove prototypes of | ||
| 13245 | r_alloc_reset_variable, r_alloc, r_re_alloc, and r_alloc_free, | ||
| 13246 | they are now on lisp.h. | ||
| 13247 | |||
| 13248 | * ralloc.c (r_alloc_inhibit_buffer_relocation): New function. | ||
| 13249 | |||
| 13250 | * search.c (search_buffer): Use it to inhibit relocation of buffer | ||
| 13251 | text while re_search_2 is doing its job, because re_search_2 is | ||
| 13252 | passed C pointers to buffer text. (Bug#11519) | ||
| 13253 | |||
| 13254 | * msdos.c (internal_terminal_init) <Vwindow_system_version>: | ||
| 13255 | Update value to 24. | ||
| 13256 | |||
| 13257 | * xdisp.c (move_it_to): Under MOVE_TO_Y, when restoring iterator | ||
| 13258 | state after an additional call to move_it_in_display_line_to, keep | ||
| 13259 | the values of it->max_ascent and it->max_descent found for the | ||
| 13260 | entire line. | ||
| 13261 | (pos_visible_p): Revert the comparison against bottom_y to what it | ||
| 13262 | was in revid eliz@gnu.org-20120513182235-4p6386j761ld0nwb. | ||
| 13263 | (Bug#11464) | ||
| 13264 | |||
| 13265 | 2012-05-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13266 | |||
| 13267 | Fix coding-related core dumps with gcc -ftrapv. | ||
| 13268 | The code was computing A - B, where A and B are pointers, and B is | ||
| 13269 | random garbage. This can lead to core dumps on platforms that | ||
| 13270 | have special pointer registers, and it also leads to core dumps on | ||
| 13271 | x86-64 when compiled with gcc -ftrapv. The fix is to compute | ||
| 13272 | A - B only when B is initialized properly. | ||
| 13273 | * coding.c (coding_set_source, coding_set_destination): Return void. | ||
| 13274 | (coding_change_source, coding_change_destinations): New functions, | ||
| 13275 | with the old behaviors of coding_set_source and coding_set_destination. | ||
| 13276 | All callers that need an offset changed to use these new functions. | ||
| 13277 | |||
| 13278 | 2012-05-26 Glenn Morris <rgm@gnu.org> | ||
| 13279 | |||
| 13280 | * nsterm.m (ns_init_paths): Don't mess with INFOPATH. (Bug#2791) | ||
| 13281 | |||
| 13282 | 2012-05-26 Eli Zaretskii <eliz@gnu.org> | ||
| 13283 | |||
| 13284 | Extend mouse support on W32 text-mode console. | ||
| 13285 | * xdisp.c (draw_row_with_mouse_face): | ||
| 13286 | Call tty_draw_row_with_mouse_face for WINDOWSNT as well. | ||
| 13287 | |||
| 13288 | * w32console.c: Include window.h. | ||
| 13289 | (w32con_write_glyphs_with_face, tty_draw_row_with_mouse_face): | ||
| 13290 | New functions. | ||
| 13291 | (initialize_w32_display): Initialize mouse-highlight data. | ||
| 13292 | |||
| 13293 | * w32inevt.c: Include termchar.h and window.h. | ||
| 13294 | (do_mouse_event): Support mouse-autoselect-window. When the mouse | ||
| 13295 | moves, call note_mouse_highlight. If help_echo changed, call | ||
| 13296 | gen_help_event to produce help-echo message in the echo area. | ||
| 13297 | Call clear_mouse_face if mouse_face_hidden is set in the mouse | ||
| 13298 | highlight info. | ||
| 13299 | |||
| 13300 | 2012-05-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13301 | |||
| 13302 | * lread.c (read1): Simplify slightly to avoid an overflow warning | ||
| 13303 | with GCC 4.7.0 on x86-64. | ||
| 13304 | |||
| 13305 | 2012-05-26 Eli Zaretskii <eliz@gnu.org> | ||
| 13306 | |||
| 13307 | * bidi.c (bidi_mirror_char): Revert last change: an int is | ||
| 13308 | definitely wide enough here. | ||
| 13309 | |||
| 13310 | 2012-05-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 13311 | |||
| 13312 | Fix integer width and related bugs (Bug#9874). | ||
| 13313 | * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): | ||
| 13314 | (allocate_vectorlike, buffer_memory_full, struct sdata, SDATA_SIZE) | ||
| 13315 | (string_bytes, check_sblock, allocate_string_data): | ||
| 13316 | (compact_small_strings, Fmake_bool_vector, make_string) | ||
| 13317 | (make_unibyte_string, make_multibyte_string) | ||
| 13318 | (make_string_from_bytes, make_specified_string) | ||
| 13319 | (allocate_vectorlike, Fmake_vector, find_string_data_in_pure) | ||
| 13320 | (make_pure_string, make_pure_c_string, make_pure_vector, Fpurecopy) | ||
| 13321 | (mark_vectorlike): | ||
| 13322 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13323 | (allocate_pseudovector): | ||
| 13324 | Use int, not EMACS_INT, where int is wide enough. | ||
| 13325 | (inhibit_garbage_collection, Fgarbage_collect): | ||
| 13326 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13327 | * bidi.c (bidi_mirror_char): Use EMACS_INT, not int, where | ||
| 13328 | int might not be wide enough. | ||
| 13329 | (bidi_cache_search, bidi_cache_find, bidi_init_it) | ||
| 13330 | (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char) | ||
| 13331 | (bidi_at_paragraph_end, bidi_find_paragraph_start) | ||
| 13332 | (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak) | ||
| 13333 | (bidi_level_of_next_char, bidi_move_to_visually_next): | ||
| 13334 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13335 | * buffer.c (copy_overlays, Fgenerate_new_buffer_name) | ||
| 13336 | (Fkill_buffer, Fset_buffer_major_mode) | ||
| 13337 | (advance_to_char_boundary, Fbuffer_swap_text) | ||
| 13338 | (Fset_buffer_multibyte, overlays_at, overlays_in) | ||
| 13339 | (overlay_touches_p, struct sortvec, record_overlay_string) | ||
| 13340 | (overlay_strings, recenter_overlay_lists) | ||
| 13341 | (adjust_overlays_for_insert, adjust_overlays_for_delete) | ||
| 13342 | (fix_start_end_in_overlays, fix_overlays_before, modify_overlay) | ||
| 13343 | (Fmove_overlay, Fnext_overlay_change, Fprevious_overlay_change) | ||
| 13344 | (Foverlay_recenter, last_overlay_modification_hooks_used) | ||
| 13345 | (report_overlay_modification, evaporate_overlays, enlarge_buffer_text): | ||
| 13346 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13347 | (validate_region): Omit unnecessary test for b <= e, | ||
| 13348 | since that's guaranteed by the previous test. | ||
| 13349 | (adjust_overlays_for_delete): Avoid pos + length overflow. | ||
| 13350 | (Fmove_overlay, Fdelete_overlay, add_overlay_mod_hooklist) | ||
| 13351 | (report_overlay_modification): | ||
| 13352 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13353 | (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): | ||
| 13354 | Omit pointer cast, which isn't needed anyway, and doesn't work | ||
| 13355 | after the EMACS_INT -> ptrdiff_t change. | ||
| 13356 | (Fmove_overlay): Clip BEG and END to ptrdiff_t to avoid overflow. | ||
| 13357 | * buffer.h: Adjust decls to match defn changes elsewhere. | ||
| 13358 | (struct buffer_text, struct buffer): | ||
| 13359 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13360 | Use EMACS_INT, not int, where int might not be wide enough. | ||
| 13361 | * bytecode.c (unmark_byte_stack, exec_byte_code): Use ptrdiff_t, | ||
| 13362 | not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13363 | (exec_byte_code): Use tighter memory-full test, one that checks | ||
| 13364 | for alloca overflow. Don't compute the address of the object just | ||
| 13365 | before an array, as that's not portable. Use EMACS_INT, not | ||
| 13366 | ptrdiff_t or int, where ptrdiff_t or int might not be wide enough. | ||
| 13367 | * callint.c (Fcall_interactively): | ||
| 13368 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13369 | * callproc.c (call_process_kill, Fcall_process): | ||
| 13370 | Don't assume pid_t fits into an Emacs fixnum. | ||
| 13371 | (call_process_cleanup, Fcall_process, child_setup): | ||
| 13372 | Don't assume pid_t fits into int. | ||
| 13373 | (call_process_cleanup, Fcall_process, delete_temp_file) | ||
| 13374 | (Fcall_process_region): | ||
| 13375 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13376 | (Fcall_process): Simplify handling of volatile integers. | ||
| 13377 | Use int, not EMACS_INT, where int will do. | ||
| 13378 | * casefiddle.c (casify_object, casify_region, operate_on_word) | ||
| 13379 | (Fupcase_word, Fdowncase_word, Fcapitalize_word): | ||
| 13380 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13381 | (casify_object): Avoid integer overflow when overallocating buffer. | ||
| 13382 | * casetab.c (set_identity, shuffle): Prefer int to unsigned when | ||
| 13383 | either works. Use lint_assume to convince GCC 4.6.1 that it's OK. | ||
| 13384 | * category.c (Fchar_category_set): Don't assume fixnum fits in int. | ||
| 13385 | * category.h (CATEGORYP): Don't assume arg is nonnegative. | ||
| 13386 | * ccl.c (GET_CCL_INT): Remove; no longer needed, since the | ||
| 13387 | integers are now checked earlier. All uses replaced with XINT. | ||
| 13388 | (ccl_driver): | ||
| 13389 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13390 | For CCL_MapSingle, check that content and value are in int range. | ||
| 13391 | (ccl_driver, Fregister_code_conversion_map): | ||
| 13392 | Check that Vcode_version_map_vector is a vector. | ||
| 13393 | (resolve_symbol_ccl_program): Check that vector header is in range. | ||
| 13394 | Always copy the vector, so that we can check its contents reliably | ||
| 13395 | now rather than having to recheck each instruction as it's being | ||
| 13396 | executed. Check that vector words fit in 'int'. | ||
| 13397 | (ccl_get_compiled_code, Fregister_ccl_program) | ||
| 13398 | (Fregister_code_conversion_map): Use ptrdiff_t, not int, for | ||
| 13399 | program indexes, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13400 | (Fccl_execute, Fccl_execute_on_string): Check that initial reg | ||
| 13401 | contents are in range. | ||
| 13402 | (Fccl_execute_on_string): Check that status is in range. | ||
| 13403 | * ccl.h (struct ccl_program.idx): Now ptrdiff_t, not int. | ||
| 13404 | * character.c (char_resolve_modifier_mask, Fchar_resolve_modifiers): | ||
| 13405 | Accept and return EMACS_INT, not int, because callers can pass values | ||
| 13406 | out of 'int' range. | ||
| 13407 | (c_string_width, strwidth, lisp_string_width, chars_in_text) | ||
| 13408 | (multibyte_chars_in_text, parse_str_as_multibyte) | ||
| 13409 | (str_as_multibyte, count_size_as_multibyte, str_to_multibyte) | ||
| 13410 | (str_as_unibyte, str_to_unibyte, string_count_byte8) | ||
| 13411 | (string_escape_byte8, Fget_byte): | ||
| 13412 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13413 | (Funibyte_string): Use CHECK_RANGED_INTEGER, not CHECK_NATNUM, to | ||
| 13414 | avoid mishandling large integers. | ||
| 13415 | * character.h: Adjust decls to match defn changes elsewhere. | ||
| 13416 | * charset.c (load_charset_map_from_file, find_charsets_in_text) | ||
| 13417 | (Ffind_charset_region): | ||
| 13418 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13419 | (load_charset_map_from_file): Redo idx calculation to avoid overflow. | ||
| 13420 | (load_charset_map_from_vector, Fdefine_charset_internal): | ||
| 13421 | Don't assume fixnum fits in int. | ||
| 13422 | (load_charset_map_from_vector, Fmap_charset_chars): | ||
| 13423 | Remove now-unnecessary CHECK_NATNUMs. | ||
| 13424 | (Fdefine_charset_internal): Check ranges here, more carefully. | ||
| 13425 | Don't rely on undefined behavior with signed left shift overflow. | ||
| 13426 | Don't assume unsigned int fits into fixnum, or that fixnum fits | ||
| 13427 | into unsigned int. Don't require max_code to be a valid fixnum; | ||
| 13428 | that's not true for gb10830 4-byte on a 32-bit host. Allow | ||
| 13429 | invalid_code to be a cons, for the same reason. Require code_offset | ||
| 13430 | to be a character. Avoid int overflow if max_char is close | ||
| 13431 | to INT_MAX. | ||
| 13432 | (CODE_POINT_TO_INDEX): On 32-bit hosts, return int, not unsigned; | ||
| 13433 | this is intended anyway and avoids some undefined behavior. | ||
| 13434 | (load_charset_map): Pass unsigned, not int, as 2nd arg of | ||
| 13435 | INDEX_TO_CODE_POINT, as that's what it expects. | ||
| 13436 | (Funify_charset, encode_char): Don't stuff unsigned vals into int vars. | ||
| 13437 | * charset.h (DECODE_CHAR): Return int, not unsigned; | ||
| 13438 | this is what was intended anyway, and it avoids undefined behavior. | ||
| 13439 | (CHARSET_OFFSET): Remove unused macro, instead of fixing its | ||
| 13440 | integer-overflow issues. | ||
| 13441 | (ENCODE_CHAR): Return unsigned on all hosts, not just on 32-bit hosts. | ||
| 13442 | Formerly, it returned EMACS_INT on 64-bit hosts in the common case | ||
| 13443 | where the argument is EMACS_INT, and this behavior is not intended. | ||
| 13444 | * chartab.c (Fmake_char_table, Fset_char_table_range) | ||
| 13445 | (uniprop_get_decoder, uniprop_get_encoder): | ||
| 13446 | Don't assume fixnum fits in int. | ||
| 13447 | * cmds.c (move_point): New function, that does the gist of | ||
| 13448 | Fforward_char and Fbackward_char, but does so while checking | ||
| 13449 | for integer overflow more accurately. | ||
| 13450 | (Fforward_char, Fbackward_char): Use it. | ||
| 13451 | (Fforward_line, Fend_of_line, internal_self_insert) | ||
| 13452 | (internal_self_insert): | ||
| 13453 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13454 | Fix a FIXME, by checking for integer overflow when calculating | ||
| 13455 | target_clm and actual_clm. | ||
| 13456 | * coding.c (detect_coding_XXX, encode_coding_XXX, CODING_DECODE_CHAR) | ||
| 13457 | (CODING_ENCODE_CHAR, CODING_CHAR_CHARSET, CODING_CHAR_CHARSET_P) | ||
| 13458 | (ASSURE_DESTINATION, coding_alloc_by_realloc) | ||
| 13459 | (coding_alloc_by_making_gap, alloc_destination) | ||
| 13460 | (detect_coding_utf_8, encode_coding_utf_8, decode_coding_utf_16) | ||
| 13461 | (encode_coding_utf_16, detect_coding_emacs_mule) | ||
| 13462 | (decode_coding_emacs_mule, encode_coding_emacs_mule) | ||
| 13463 | (detect_coding_iso_2022, decode_coding_iso_2022) | ||
| 13464 | (encode_invocation_designation, encode_designation_at_bol) | ||
| 13465 | (encode_coding_iso_2022, detect_coding_sjis, detect_coding_big5) | ||
| 13466 | (decode_coding_sjis, decode_coding_big5, encode_coding_sjis) | ||
| 13467 | (encode_coding_big5, detect_coding_ccl, decode_coding_ccl) | ||
| 13468 | (encode_coding_ccl, encode_coding_raw_text) | ||
| 13469 | (detect_coding_charset, decode_coding_charset) | ||
| 13470 | (encode_coding_charset, detect_eol, decode_eol, produce_chars) | ||
| 13471 | (produce_composition, produce_charset, produce_annotation) | ||
| 13472 | (decode_coding, handle_composition_annotation) | ||
| 13473 | (handle_charset_annotation, consume_chars, decode_coding_gap) | ||
| 13474 | (decode_coding_object, encode_coding_object, detect_coding_system) | ||
| 13475 | (Ffind_coding_systems_region_internal, Fcheck_coding_systems_region) | ||
| 13476 | (code_convert_region, code_convert_string) | ||
| 13477 | (Fdefine_coding_system_internal) | ||
| 13478 | (coding_set_source, coding_set_destination): | ||
| 13479 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13480 | (setup_iso_safe_charsets, consume_chars, Funencodable_char_position) | ||
| 13481 | (Fdefine_coding_system_internal): | ||
| 13482 | Don't assume fixnums fit in int. | ||
| 13483 | (decode_coding_gap, decode_coding_object, encode_coding_object) | ||
| 13484 | (Fread_coding_system, Fdetect_coding_region) | ||
| 13485 | (Funencodable_char_position, Fcheck_coding_systems_region) | ||
| 13486 | (get_translation, handle_composition_annotation, consume_chars): | ||
| 13487 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13488 | (consume_chars): Rewrite to not calculate an address outside buffer. | ||
| 13489 | (Ffind_operation_coding_system): NATNUMP can eval its arg twice. | ||
| 13490 | Don't access memory outside of the args array. | ||
| 13491 | (Fdefine_coding_system_internal): Check for charset-id overflow. | ||
| 13492 | (ENCODE_ISO_CHARACTER): Use unsigned, not int, to store the unsigned | ||
| 13493 | result of ENCODE_CHAR. | ||
| 13494 | * coding.h: Adjust decls to match defn changes elsewhere. | ||
| 13495 | (struct coding_system): | ||
| 13496 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13497 | * composite.c (get_composition_id, find_composition) | ||
| 13498 | (run_composition_function, update_compositions) | ||
| 13499 | (compose_text, composition_gstring_put_cache) | ||
| 13500 | (composition_gstring_p, composition_gstring_width) | ||
| 13501 | (fill_gstring_header, fill_gstring_body, autocmp_chars) | ||
| 13502 | (composition_compute_stop_pos, composition_reseat_it) | ||
| 13503 | (composition_update_it, struct position_record) | ||
| 13504 | (find_automatic_composition, composition_adjust_point) | ||
| 13505 | (Fcomposition_get_gstring, Ffind_composition_internal): | ||
| 13506 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13507 | (update_compositions): | ||
| 13508 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13509 | * composite.h: Adjust decls to match defn changes elsewhere. | ||
| 13510 | (struct composition): | ||
| 13511 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13512 | * data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p): | ||
| 13513 | Do not attempt to compute the address of the object just before a | ||
| 13514 | buffer; this is not portable. | ||
| 13515 | (Faref, Faset): | ||
| 13516 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13517 | (Faset): Use int, not EMACS_INT, where int is wide enough. | ||
| 13518 | (Fstring_to_number): Don't assume fixnums fit in int. | ||
| 13519 | (Frem): Don't assume arg is nonnegative. | ||
| 13520 | * dbusbind.c (xd_append_arg): Check for integers out of range. | ||
| 13521 | (Fdbus_call_method): Don't overflow the timeout int. | ||
| 13522 | (extract_signed, extract_unsigned): New functions. | ||
| 13523 | (XD_CHECK_DBUS_SERIAL): Remove; superseded by extract_unsigned. | ||
| 13524 | (xd_get_connection_references): Return ptrdiff_t, not int. | ||
| 13525 | All uses changed. | ||
| 13526 | (xd_signature, xd_append_arg, xd_retrieve_arg, Fdbus_message_internal) | ||
| 13527 | (xd_read_message_1): | ||
| 13528 | Use int, not unsigned, where the dbus API uses int. | ||
| 13529 | (Fdbus_message_internal): Don't overflow mtype. | ||
| 13530 | (syms_of_dbusbind): Allocate right-sized buffer for integers. | ||
| 13531 | * dired.c (directory_files_internal, file_name_completion, scmp) | ||
| 13532 | (file_name_completion_stat): | ||
| 13533 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13534 | (file_name_completion): Don't overflow matchcount. | ||
| 13535 | (file_name_completion_stat): Use SAFE_ALLOCA, not alloca. | ||
| 13536 | * dispextern.h: Adjust decls to match defn changes elsewhere. | ||
| 13537 | (struct text_pos, struct glyph, struct bidi_saved_info) | ||
| 13538 | (struct bidi_string_data, struct bidi_it, struct composition_it) | ||
| 13539 | (struct it): | ||
| 13540 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13541 | (struct display_pos, struct composition_it, struct it): | ||
| 13542 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13543 | * dispnew.c (increment_matrix_positions) | ||
| 13544 | (increment_row_positions, mode_line_string) | ||
| 13545 | (marginal_area_string): | ||
| 13546 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13547 | (change_frame_size_1, Fredisplay, Fframe_or_buffer_changed_p): | ||
| 13548 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13549 | (duration_to_sec_usec): New function, to check for overflow better. | ||
| 13550 | (Fsleep_for, sit_for): Use it. | ||
| 13551 | * doc.c (get_doc_string, store_function_docstring): | ||
| 13552 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13553 | (get_doc_string, Fsnarf_documentation): | ||
| 13554 | Use int, not EMACS_INT, where int is wide enough. | ||
| 13555 | (get_doc_string): | ||
| 13556 | Use SAFE_ALLOCA, not alloca. | ||
| 13557 | Check for overflow when converting EMACS_INT to off_t. | ||
| 13558 | * doprnt.c (doprnt): | ||
| 13559 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13560 | * editfns.c (init_editfns, Fuser_uid, Fuser_real_uid): | ||
| 13561 | Don't assume uid_t fits into fixnum. | ||
| 13562 | (buildmark, Fgoto_char, overlays_around, find_field, Fdelete_field) | ||
| 13563 | (Ffield_string, Ffield_string_no_properties, Ffield_beginning) | ||
| 13564 | (Ffield_end, Fconstrain_to_field, Fline_beginning_position) | ||
| 13565 | (Fline_end_position, Fprevious_char, Fchar_after, Fchar_before) | ||
| 13566 | (general_insert_function) | ||
| 13567 | (Finsert_char, make_buffer_string, make_buffer_string_both) | ||
| 13568 | (update_buffer_properties, Fbuffer_substring) | ||
| 13569 | (Fbuffer_substring_no_properties, Fcompare_buffer_substrings) | ||
| 13570 | (Fsubst_char_in_region, check_translation) | ||
| 13571 | (Ftranslate_region_internal, save_restriction_restore, Fformat) | ||
| 13572 | (transpose_markers, Ftranspose_regions): | ||
| 13573 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13574 | (clip_to_bounds): Move to lisp.h as an inline function). | ||
| 13575 | (Fconstrain_to_field): Don't assume integers are nonnegative. | ||
| 13576 | (Fline_beginning_position, Fsave_excursion, Fsave_current_buffer): | ||
| 13577 | (Fsubst_char_in_region, Fsave_restriction): | ||
| 13578 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13579 | (Femacs_pid): Don't assume pid_t fits into fixnum. | ||
| 13580 | (lo_time): Use int, not EMACS_INT, when int suffices. | ||
| 13581 | (lisp_time_argument): Check for usec out of range. | ||
| 13582 | (Fencode_time): Don't assume fixnum fits in int. | ||
| 13583 | (Fuser_login_name, Fuser_full_name): Signal an error | ||
| 13584 | if a uid argument is out of range, rather than relying on | ||
| 13585 | undefined behavior. | ||
| 13586 | (Fformat_time_string): Remove now-unnecessary check. | ||
| 13587 | lisp_time_argument checks for out-of-range usec now. | ||
| 13588 | Use ptrdiff_t, not size_t, where ptrdiff_t will do. | ||
| 13589 | * emacs.c (gdb_valbits, gdb_gctypebits): Now int, not EMACS_INT. | ||
| 13590 | (gdb_data_seg_bits): Now uintptr_t, not EMACS_INT. | ||
| 13591 | (PVEC_FLAG, gdb_array_mark_flag): Now ptrdiff_t, not EMACS_INT. | ||
| 13592 | (init_cmdargs, Fdump_emacs): | ||
| 13593 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13594 | (Fkill_emacs): Don't assume fixnum fits in int; instead, take just | ||
| 13595 | the bottom (typically) 32 bits of the fixnum. | ||
| 13596 | * eval.c (specpdl_size, call_debugger): | ||
| 13597 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13598 | (when_entered_debugger, Fbacktrace_debug): | ||
| 13599 | Don't assume fixnum can fit in int. | ||
| 13600 | (Fdefvaralias, Fdefvar): Do not attempt to compute the address of | ||
| 13601 | the object just before a buffer; this is not portable. | ||
| 13602 | (FletX, Flet, Funwind_protect, do_autoload, Feval, funcall_lambda) | ||
| 13603 | (grow_specpdl, unbind_to): | ||
| 13604 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13605 | (Fapply, apply_lambda): Don't assume ptrdiff_t can hold fixnum. | ||
| 13606 | (grow_specpdl): Simplify allocation by using xpalloc. | ||
| 13607 | (Fprog1, Fprog2): Don't assume list length fits in int. Simplify. | ||
| 13608 | * fileio.c (Ffind_file_name_handler, Fcopy_file, Frename_file) | ||
| 13609 | (Finsert_file_contents, Fwrite_region, Fdo_auto_save): | ||
| 13610 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13611 | (Ffind_file_name_handler, non_regular_inserted, Finsert_file_contents) | ||
| 13612 | (a_write, e_write): | ||
| 13613 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13614 | (Fcopy_file, non_regular_nbytes, read_non_regular) | ||
| 13615 | (Finsert_file_contents): | ||
| 13616 | Use int, not EMACS_INT, where int is wide enough. | ||
| 13617 | (READ_BUF_SIZE): Verify that it fits in int. | ||
| 13618 | (Finsert_file_contents): Check that counts are in proper range, | ||
| 13619 | rather than assuming fixnums fit into ptrdiff_t etc. | ||
| 13620 | Don't assume fixnums fit into int. | ||
| 13621 | * floatfns.c (Fexpt): Avoid undefined signed * signed overflow. | ||
| 13622 | * fns.c (Fcompare_strings, Fstring_lessp, struct textprop_rec, concat) | ||
| 13623 | (string_char_byte_cache_charpos, string_char_byte_cache_bytepos) | ||
| 13624 | (string_char_to_byte, string_byte_to_char) | ||
| 13625 | (string_make_multibyte, string_to_multibyte) | ||
| 13626 | (string_make_unibyte, Fstring_as_unibyte, Fstring_as_multibyte) | ||
| 13627 | (Fstring_to_unibyte, Fsubstring, Fsubstring_no_properties) | ||
| 13628 | (substring_both, Fdelete, internal_equal, Ffillarray) | ||
| 13629 | (Fclear_string, mapcar1) | ||
| 13630 | (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1) | ||
| 13631 | (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1) | ||
| 13632 | (larger_vector, make_hash_table, maybe_resize_hash_table) | ||
| 13633 | (hash_lookup, hash_remove_from_table, hash_clear, sweep_weak_table) | ||
| 13634 | (Fmaphash, secure_hash): | ||
| 13635 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13636 | (concat): Check for string index and length overflow. | ||
| 13637 | (Fmapconcat): Don't assume fixnums fit into ptrdiff_t. | ||
| 13638 | (Frequire): | ||
| 13639 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13640 | (larger_vector): New API (vec, incr_min, size_max) replaces old | ||
| 13641 | one (vec, new_size, init). This catches size overflow. | ||
| 13642 | INIT was removed because it was always Qnil. | ||
| 13643 | All callers changed. | ||
| 13644 | (INDEX_SIZE_BOUND): New macro, which calculates more precisely | ||
| 13645 | the upper bound on a hash table index size. | ||
| 13646 | (make_hash_table, maybe_resize_hash_table): Use it. | ||
| 13647 | (secure_hash): Computer start_byte and end_byte only after | ||
| 13648 | they're known to be in ptrdiff_t range. | ||
| 13649 | * font.c (font_intern_prop, font_at, font_range, Ffont_shape_gstring) | ||
| 13650 | (Ffont_get_glyphs, Ffont_at): | ||
| 13651 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13652 | (font_style_to_value, font_prop_validate_style, font_expand_wildcards) | ||
| 13653 | (Flist_fonts, Fopen_font): | ||
| 13654 | Don't assume fixnum can fit in int. | ||
| 13655 | (check_gstring): Don't assume index can fit in int. | ||
| 13656 | (font_match_p): Check that fixnum is a character, not a nonnegative | ||
| 13657 | fixnum, since the later code needs to stuff it into an int. | ||
| 13658 | (font_find_for_lface): Use SAFE_ALLOCA_LISP, not alloca. | ||
| 13659 | (font_fill_lglyph_metrics): Use unsigned, not EMACS_INT, to avoid | ||
| 13660 | conversion overflow issues. | ||
| 13661 | (Fopen_font): Check for integer out of range. | ||
| 13662 | (Ffont_get_glyphs): Don't assume index can fit in int. | ||
| 13663 | * font.h: Adjust decls to match defn changes elsewhere. | ||
| 13664 | * fontset.c (reorder_font_vector): Redo score calculation to avoid | ||
| 13665 | integer overflow. | ||
| 13666 | (num_auto_fontsets, fontset_from_font): Use ptrdiff_t, not | ||
| 13667 | printmax_t, where ptrdiff_t is wide enough. | ||
| 13668 | (Finternal_char_font): | ||
| 13669 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13670 | * frame.c (Fset_mouse_position, Fset_mouse_pixel_position) | ||
| 13671 | (Fset_frame_height, Fset_frame_width, Fset_frame_size) | ||
| 13672 | (Fset_frame_position, x_set_frame_parameters) | ||
| 13673 | (x_set_line_spacing, x_set_border_width) | ||
| 13674 | (x_set_internal_border_width, x_set_alpha, x_figure_window_size): | ||
| 13675 | Check that fixnums are in proper range for system types. | ||
| 13676 | (frame_name_fnn_p, Fframe_parameter, Fmodify_frame_parameters): | ||
| 13677 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13678 | (Fmodify_frame_parameters): Don't assume fixnum fits in int. | ||
| 13679 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 13680 | * frame.h (struct frame): Use intptr_t, not EMACS_INT, where | ||
| 13681 | intptr_t is wide enough. | ||
| 13682 | * fringe.c (lookup_fringe_bitmap, get_logical_fringe_bitmap) | ||
| 13683 | (Fdefine_fringe_bitmap): Don't assume fixnum fits in int. | ||
| 13684 | (Ffringe_bitmaps_at_pos): Don't assume index fits in int. | ||
| 13685 | Check for fixnum out of range. | ||
| 13686 | * ftfont.c (ftfont_list): Don't assume index fits in int. | ||
| 13687 | Check that fixnums are in proper range for system types. | ||
| 13688 | (ftfont_shape_by_flt): | ||
| 13689 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13690 | * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): | ||
| 13691 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13692 | (Fgnutls_error_fatalp, Fgnutls_error_string, Fgnutls_boot): | ||
| 13693 | Check that fixnums are in proper range for system types. | ||
| 13694 | * gnutls.h: Adjust decls to match defn changes elsewhere. | ||
| 13695 | * gtkutil.c (xg_dialog_run): | ||
| 13696 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13697 | (update_frame_tool_bar): | ||
| 13698 | Check that fixnums are in proper range for system types. | ||
| 13699 | * image.c (parse_image_spec): Redo count calculation to avoid overflow. | ||
| 13700 | (lookup_image): Check that fixnums are in range for system types. | ||
| 13701 | * indent.c (last_known_column, last_known_column_point): | ||
| 13702 | (current_column_bol_cache): | ||
| 13703 | (skip_invisible, current_column, check_display_width): | ||
| 13704 | (check_display_width, scan_for_column, current_column_1) | ||
| 13705 | (Findent_to, Fcurrent_indentation, position_indentation) | ||
| 13706 | (indented_beyond_p, Fmove_to_column, compute_motion): | ||
| 13707 | (Fcompute_motion, Fvertical_motion): | ||
| 13708 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13709 | (last_known_column_modified): Use EMACS_INT, not int. | ||
| 13710 | (check_display_width): | ||
| 13711 | (Fcompute_motion): | ||
| 13712 | Check that fixnums and floats are in proper range for system types. | ||
| 13713 | (compute_motion): Don't assume index or fixnum fits in int. | ||
| 13714 | (compute_motion, Fcompute_motion): | ||
| 13715 | Use int, not EMACS_INT, when it is wide enough. | ||
| 13716 | (vmotion): Omit local var start_hpos that is always 0; that way | ||
| 13717 | we don't need to worry about overflow in expressions involving it. | ||
| 13718 | * indent.h: Adjust decls to match defn changes elsewhere. | ||
| 13719 | (struct position): | ||
| 13720 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13721 | Use int, not EMACS_INT, where int is wide enough. | ||
| 13722 | Remove unused members ovstring_chars_done and tab_offset; | ||
| 13723 | all uses removed. | ||
| 13724 | * insdel.c (move_gap, move_gap_both, gap_left, gap_right) | ||
| 13725 | (adjust_markers_for_delete, adjust_markers_for_insert, adjust_point) | ||
| 13726 | (adjust_markers_for_replace, make_gap_larger, make_gap_smaller) | ||
| 13727 | (make_gap, copy_text, insert, insert_and_inherit) | ||
| 13728 | (insert_before_markers, insert_before_markers_and_inherit) | ||
| 13729 | (insert_1, count_combining_before, count_combining_after) | ||
| 13730 | (insert_1_both, insert_from_string) | ||
| 13731 | (insert_from_string_before_markers, insert_from_string_1) | ||
| 13732 | (insert_from_gap, insert_from_buffer, insert_from_buffer_1) | ||
| 13733 | (adjust_after_replace, adjust_after_insert, replace_range) | ||
| 13734 | (replace_range_2, del_range, del_range_1, del_range_byte) | ||
| 13735 | (del_range_both, del_range_2, modify_region) | ||
| 13736 | (prepare_to_modify_buffer, signal_before_change) | ||
| 13737 | (signal_after_change, Fcombine_after_change_execute): | ||
| 13738 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13739 | * intervals.c (traverse_intervals, rotate_right, rotate_left) | ||
| 13740 | (balance_an_interval, split_interval_right, split_interval_left) | ||
| 13741 | (find_interval, next_interval, update_interval) | ||
| 13742 | (adjust_intervals_for_insertion, delete_node, delete_interval) | ||
| 13743 | (interval_deletion_adjustment, adjust_intervals_for_deletion) | ||
| 13744 | (static_offset_intervals, offset_intervals) | ||
| 13745 | (merge_interval_right, merge_interval_left, make_new_interval) | ||
| 13746 | (graft_intervals_into_buffer, temp_set_point_both) | ||
| 13747 | (temp_set_point, set_point, adjust_for_invis_intang) | ||
| 13748 | (set_point_both, move_if_not_intangible, get_property_and_range) | ||
| 13749 | (get_local_map, copy_intervals, copy_intervals_to_string) | ||
| 13750 | (compare_string_intervals, set_intervals_multibyte_1): | ||
| 13751 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13752 | * intervals.h: Adjust decls to match defn changes elsewhere. | ||
| 13753 | (struct interval): | ||
| 13754 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13755 | * keyboard.c (this_command_key_count, this_single_command_key_start) | ||
| 13756 | (before_command_key_count, before_command_echo_length, echo_now) | ||
| 13757 | (echo_length, recursive_edit_1, Frecursive_edit, Ftrack_mouse) | ||
| 13758 | (command_loop_1, safe_run_hooks, read_char, timer_check_2) | ||
| 13759 | (menu_item_eval_property, read_key_sequence, Fread_key_sequence) | ||
| 13760 | (Fread_key_sequence_vector, Fexecute_extended_command, Fsuspend_emacs): | ||
| 13761 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13762 | (last_non_minibuf_size, last_point_position, echo_truncate) | ||
| 13763 | (command_loop_1, adjust_point_for_property, read_char, gen_help_event) | ||
| 13764 | (make_lispy_position, make_lispy_event, parse_modifiers_uncached) | ||
| 13765 | (parse_modifiers, modify_event_symbol, Fexecute_extended_command) | ||
| 13766 | (stuff_buffered_input): | ||
| 13767 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13768 | (last_auto_save, command_loop_1, read_char): | ||
| 13769 | Use EMACS_INT, not int, to avoid integer overflow. | ||
| 13770 | (record_char): Avoid overflow in total_keys computation. | ||
| 13771 | (parse_modifiers_uncached): Redo index calculation to avoid overflow. | ||
| 13772 | * keyboard.h: Adjust decls to match defn changes elsewhere. | ||
| 13773 | * keymap.c (Fdefine_key, Fcurrent_active_maps, accessible_keymaps_1) | ||
| 13774 | (Fkey_description, Fdescribe_vector, Flookup_key): | ||
| 13775 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13776 | (click_position): New function, to check that positions are in range. | ||
| 13777 | (Fcurrent_active_maps): | ||
| 13778 | (describe_command): | ||
| 13779 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13780 | (Faccessible_keymaps, Fkey_description): | ||
| 13781 | (preferred_sequence_p): | ||
| 13782 | Don't assume fixnum can fit into int. | ||
| 13783 | (Fkey_description): Use SAFE_ALLOCA_LISP, not alloca. | ||
| 13784 | Check for integer overflow in size calculations. | ||
| 13785 | (Ftext_char_description): Use CHECK_CHARACTER, not CHECK_NUMBER, to | ||
| 13786 | avoid mishandling large integers. | ||
| 13787 | * lisp.h: Adjust decls to match defn changes elsewhere. | ||
| 13788 | (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, struct Lisp_String) | ||
| 13789 | (struct vectorlike_header, struct Lisp_Subr, struct Lisp_Hash_Table) | ||
| 13790 | (struct Lisp_Marker): | ||
| 13791 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13792 | (clip_to_bounds): Now an inline function, moved here from editfns.c. | ||
| 13793 | (GLYPH_CODE_P): Check for overflow in system types, subsuming the | ||
| 13794 | need for GLYPH_CODE_CHAR_VALID_P and doing proper checking ourselves. | ||
| 13795 | All callers changed. | ||
| 13796 | (GLYPH_CODE_CHAR, GLYPH_CODE_FACE): | ||
| 13797 | Assume the arg has valid form, since it always does. | ||
| 13798 | (TYPE_RANGED_INTEGERP): Avoid bug when checking against a wide | ||
| 13799 | unsigned integer system type. | ||
| 13800 | (CHECK_RANGED_INTEGER, CHECK_TYPE_RANGED_INTEGER): New macros. | ||
| 13801 | (struct catchtag, specpdl_size, SPECPDL_INDEX, USE_SAFE_ALLOCA): | ||
| 13802 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13803 | (struct catchtag): Use EMACS_INT, not int, since it may be a fixnum. | ||
| 13804 | (duration_to_sec_usec): New decl. | ||
| 13805 | * lread.c (read_from_string_index, read_from_string_index_byte) | ||
| 13806 | (read_from_string_limit, readchar, unreadchar, openp) | ||
| 13807 | (read_internal_start, read1, oblookup): | ||
| 13808 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13809 | (Fload, readevalloop, Feval_buffer, Feval_region): | ||
| 13810 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13811 | (openp): Check for out-of-range argument to 'access'. | ||
| 13812 | (read1): Use int, not EMACS_INT, where int is wide enough. | ||
| 13813 | Don't assume fixnum fits into int. | ||
| 13814 | Fix off-by-one error that can read outside a buffer. | ||
| 13815 | (read_filtered_event): Use duration_to_sec_usec | ||
| 13816 | to do proper overflow checking on durations. | ||
| 13817 | * macros.c (Fstart_kbd_macro): Use xpalloc to check for overflow | ||
| 13818 | in size calculation. | ||
| 13819 | (Fexecute_kbd_macro): | ||
| 13820 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13821 | * marker.c (cached_charpos, cached_bytepos, CONSIDER) | ||
| 13822 | (byte_char_debug_check, buf_charpos_to_bytepos, verify_bytepos) | ||
| 13823 | (buf_bytepos_to_charpos, Fset_marker, set_marker_restricted) | ||
| 13824 | (set_marker_both, set_marker_restricted_both, marker_position) | ||
| 13825 | (marker_byte_position, Fbuffer_has_markers_at): | ||
| 13826 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13827 | (Fset_marker, set_marker_restricted): Don't assume fixnum fits in int. | ||
| 13828 | * menu.c (ensure_menu_items): Rename from grow_menu_items. | ||
| 13829 | It now merely ensures that the menu is large enough, without | ||
| 13830 | necessarily growing it, as this avoids some integer overflow issues. | ||
| 13831 | All callers changed. | ||
| 13832 | (keymap_panes, parse_single_submenu, Fx_popup_menu): | ||
| 13833 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13834 | (parse_single_submenu, Fx_popup_menu): Don't assume fixnum fits in int. | ||
| 13835 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 13836 | (find_and_return_menu_selection): Avoid unnecessary casts of pointers | ||
| 13837 | to EMACS_INT. Check that fixnums are in proper range for system types. | ||
| 13838 | * minibuf.c (minibuf_prompt_width, string_to_object) | ||
| 13839 | (Fminibuffer_contents, Fminibuffer_contents_no_properties) | ||
| 13840 | (Fminibuffer_completion_contents, Ftry_completion, Fall_completions): | ||
| 13841 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13842 | (get_minibuffer, read_minibuf_unwind): | ||
| 13843 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13844 | (read_minibuf): Omit unnecessary arg BACKUP_N, which is always nil; | ||
| 13845 | this simplifies overflow checking. All callers changed. | ||
| 13846 | (read_minibuf, Fread_buffer, Ftry_completion, Fall_completions) | ||
| 13847 | (Ftest_completion): | ||
| 13848 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13849 | * nsfns.m (check_ns_display_info): Don't assume fixnum fits in long. | ||
| 13850 | (x_set_menu_bar_lines, x_set_tool_bar_lines, Fx_create_frame): | ||
| 13851 | Check that fixnums are in proper range for system types. | ||
| 13852 | (Fx_create_frame, Fx_show_tip): | ||
| 13853 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13854 | * nsfont.m (ns_findfonts, nsfont_list_family): | ||
| 13855 | Don't assume fixnum fits in long. | ||
| 13856 | * nsmenu.m (ns_update_menubar, ns_menu_show, ns_popup_dialog): | ||
| 13857 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13858 | (ns_update_menubar): Use intptr_t, not EMACS_INT, when intptr_t is | ||
| 13859 | wide enough. | ||
| 13860 | * nsselect.m (ns_get_local_selection, clean_local_selection_data): | ||
| 13861 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13862 | * print.c (print_buffer_size, print_buffer_pos, print_buffer_pos_byte) | ||
| 13863 | (PRINTDECLARE, PRINTPREPARE): | ||
| 13864 | (strout, print_string): | ||
| 13865 | (print, print_preprocess, print_check_string_charset_prop) | ||
| 13866 | (print_object): | ||
| 13867 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13868 | (PRINTDECLARE): | ||
| 13869 | (temp_output_buffer_setup, Fprin1_to_string, print_object): | ||
| 13870 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13871 | (PRINTPREPARE): Use int, not ptrdiff_t, where int is wide enough. | ||
| 13872 | (printchar, strout): Use xpalloc to catch size calculation overflow. | ||
| 13873 | (Fexternal_debugging_output): Don't overflow EMACS_INT->int conversion. | ||
| 13874 | (print_error_message): Use SAFE_ALLOCA, not alloca. | ||
| 13875 | (print_object): Use int, not EMACS_INT, where int is wide enough. | ||
| 13876 | (print_depth, new_backquote_output, print_number_index): | ||
| 13877 | Use ptrdiff_t, not int, where int might not be wide enough. | ||
| 13878 | * process.c (Fdelete_process): Don't assume pid fits into EMACS_INT. | ||
| 13879 | (Fset_process_window_size, Fformat_network_address) | ||
| 13880 | (get_lisp_to_sockaddr_size, set_socket_option, Fmake_network_process) | ||
| 13881 | (sigchld_handler): | ||
| 13882 | Check that fixnums are in proper range for system types. | ||
| 13883 | (Fsignal_process): Simplify by avoiding a goto. | ||
| 13884 | Check for process-ids out of pid_t range rather than relying on | ||
| 13885 | undefined behavior. | ||
| 13886 | (process_tick, update_tick): Use EMACS_INT, not int. | ||
| 13887 | (Fformat_network_address, read_process_output, send_process) | ||
| 13888 | (Fprocess_send_region, status_notify): | ||
| 13889 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13890 | (Fformat_network_address, Fmake_serial_process, Fmake_network_process) | ||
| 13891 | (wait_reading_process_output, read_process_output, exec_sentinel): | ||
| 13892 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13893 | (conv_lisp_to_sockaddr): Don't assume fixnums fit into int. | ||
| 13894 | (Faccept_process_output): Use duration_to_sec_usec to do proper | ||
| 13895 | overflow checking on durations. | ||
| 13896 | (emacs_get_tty_pgrp, Fprocess_running_child_p, process_send_signal): | ||
| 13897 | Don't assume pid_t fits in int. | ||
| 13898 | * process.h (struct Lisp_Process): Members tick and update_tick | ||
| 13899 | are now of type EMACS_INT, not int. | ||
| 13900 | * puresize.h (PURESIZE_RATIO): Shrink this to 8/6 on 32-bit hosts | ||
| 13901 | configured --with-wide-int. | ||
| 13902 | * scroll.c (calculate_scrolling, calculate_direct_scrolling) | ||
| 13903 | (line_ins_del): Use int, not EMACS_INT, where int is wide enough. | ||
| 13904 | * search.c (looking_at_1, string_match_1): | ||
| 13905 | (fast_string_match, fast_c_string_match_ignore_case) | ||
| 13906 | (fast_string_match_ignore_case, fast_looking_at, scan_buffer) | ||
| 13907 | (scan_newline, find_before_next_newline, search_command) | ||
| 13908 | (trivial_regexp_p, search_buffer, simple_search, boyer_moore) | ||
| 13909 | (set_search_regs, wordify): | ||
| 13910 | (Freplace_match): | ||
| 13911 | (Fmatch_data): | ||
| 13912 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13913 | (string_match_1, search_buffer, set_search_regs): | ||
| 13914 | (Fmatch_data): | ||
| 13915 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13916 | (wordify): Check for overflow in size calculation. | ||
| 13917 | (Freplace_match): Avoid potential buffer overflow in search_regs.start. | ||
| 13918 | (Fset_match_data): Don't assume fixnum fits in ptrdiff_t. | ||
| 13919 | Check that fixnums are in proper range for system types. | ||
| 13920 | * sound.c (struct sound_device) | ||
| 13921 | (wav_play, au_play, vox_write, alsa_period_size, alsa_write): | ||
| 13922 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13923 | (Fplay_sound_internal): | ||
| 13924 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13925 | * syntax.c (struct lisp_parse_state, find_start_modiff) | ||
| 13926 | (Finternal_describe_syntax_value, scan_lists, scan_sexps_forward): | ||
| 13927 | (Fparse_partial_sexp): | ||
| 13928 | Don't assume fixnums can fit in int. | ||
| 13929 | (struct lisp_parse_state, find_start_pos, find_start_value) | ||
| 13930 | (find_start_value_byte, find_start_begv) | ||
| 13931 | (update_syntax_table, char_quoted, dec_bytepos) | ||
| 13932 | (find_defun_start, prev_char_comend_first, back_comment): | ||
| 13933 | (scan_words, skip_chars, skip_syntaxes, forw_comment, Fforward_comment) | ||
| 13934 | (scan_lists, Fbackward_prefix_chars, scan_sexps_forward): | ||
| 13935 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13936 | (Finternal_describe_syntax_value): Check that match_lisp is a | ||
| 13937 | character, not an integer, since the code stuffs it into int. | ||
| 13938 | (scan_words, scan_sexps_forward): | ||
| 13939 | Check that fixnums are in proper range for system types. | ||
| 13940 | (Fforward_word): | ||
| 13941 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13942 | (scan_sexps_forward): | ||
| 13943 | Use CHARACTERP, not INTEGERP, since the value must fit into int. | ||
| 13944 | (Fparse_partial_sexp): Fix doc; element 8 is not ignored. | ||
| 13945 | * syntax.h: Adjust decls to match defn changes elsewhere. | ||
| 13946 | (struct gl_state_s): | ||
| 13947 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13948 | (SETUP_SYNTAX_TABLE_FOR_OBJECT): Use PTRDIFF_MAX, not | ||
| 13949 | MOST_POSITIVE_FIXNUM. | ||
| 13950 | * sysdep.c (wait_for_termination_1, wait_for_termination) | ||
| 13951 | (interruptible_wait_for_termination, mkdir): | ||
| 13952 | Don't assume pid_t fits in int; on 64-bit AIX pid_t is 64-bit. | ||
| 13953 | (emacs_read, emacs_write): | ||
| 13954 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13955 | (system_process_attributes): Don't assume uid_t, gid_t, EMACS_INT, | ||
| 13956 | and double all fit in int. | ||
| 13957 | * term.c (set_tty_color_mode): | ||
| 13958 | Check that fixnums are in proper range for system types. | ||
| 13959 | * termhooks.h (struct input_event): | ||
| 13960 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13961 | * textprop.c (validate_interval_range, interval_of) | ||
| 13962 | (Fadd_text_properties, set_text_properties_1) | ||
| 13963 | (Fremove_text_properties, Fremove_list_of_text_properties) | ||
| 13964 | (Ftext_property_any, Ftext_property_not_all) | ||
| 13965 | (copy_text_properties, text_property_list, extend_property_ranges) | ||
| 13966 | (verify_interval_modification): | ||
| 13967 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13968 | (Fnext_single_char_property_change) | ||
| 13969 | (Fprevious_single_char_property_change): | ||
| 13970 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13971 | (copy_text_properties): | ||
| 13972 | Check for integer overflow in index calculation. | ||
| 13973 | * undo.c (last_boundary_position, record_point, record_insert) | ||
| 13974 | (record_delete, record_marker_adjustment, record_change) | ||
| 13975 | (record_property_change): | ||
| 13976 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13977 | (truncate_undo_list, Fprimitive_undo): Don't assume fixnum fits in int. | ||
| 13978 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13979 | * w32fns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip) | ||
| 13980 | (Fx_hide_tip, Fx_file_dialog): | ||
| 13981 | * w32menu.c (set_frame_menubar): | ||
| 13982 | Use ptrdiff_t, not int, for consistency with rest of code. | ||
| 13983 | * window.c (window_scroll_preserve_hpos, window_scroll_preserve_vpos) | ||
| 13984 | (select_window, Fdelete_other_windows_internal) | ||
| 13985 | (window_scroll_pixel_based, window_scroll_line_based) | ||
| 13986 | (Frecenter, Fset_window_configuration): | ||
| 13987 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 13988 | (Fset_window_hscroll, run_window_configuration_change_hook) | ||
| 13989 | (set_window_buffer, temp_output_buffer_show, scroll_command) | ||
| 13990 | (Fscroll_other_window, Frecenter): | ||
| 13991 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 13992 | (Fwindow_line_height, window_scroll, Fscroll_left, Fscroll_right): | ||
| 13993 | Don't assume fixnum fits in int. | ||
| 13994 | (Fset_window_scroll_bars): | ||
| 13995 | Check that fixnums are in proper range for system types. | ||
| 13996 | * xdisp.c (help_echo_pos, pos_visible_p, string_pos_nchars_ahead) | ||
| 13997 | (string_pos, c_string_pos, number_of_chars, init_iterator) | ||
| 13998 | (in_ellipses_for_invisible_text_p, init_from_display_pos) | ||
| 13999 | (compute_stop_pos, next_overlay_change, compute_display_string_pos) | ||
| 14000 | (compute_display_string_end, handle_face_prop) | ||
| 14001 | (face_before_or_after_it_pos, handle_invisible_prop) | ||
| 14002 | (handle_display_prop, handle_display_spec, handle_single_display_spec) | ||
| 14003 | (display_prop_intangible_p, string_buffer_position_lim) | ||
| 14004 | (string_buffer_position, handle_composition_prop, load_overlay_strings) | ||
| 14005 | (get_overlay_strings_1, get_overlay_strings) | ||
| 14006 | (iterate_out_of_display_property, forward_to_next_line_start) | ||
| 14007 | (back_to_previous_visible_line_start, reseat, reseat_to_string) | ||
| 14008 | (get_next_display_element, set_iterator_to_next) | ||
| 14009 | (get_visually_first_element, compute_stop_pos_backwards) | ||
| 14010 | (handle_stop_backwards, next_element_from_buffer) | ||
| 14011 | (move_it_in_display_line_to, move_it_in_display_line) | ||
| 14012 | (move_it_to, move_it_vertically_backward, move_it_by_lines) | ||
| 14013 | (add_to_log, message_dolog, message_log_check_duplicate) | ||
| 14014 | (message2, message2_nolog, message3, message3_nolog | ||
| 14015 | (with_echo_area_buffer, display_echo_area_1, resize_mini_window_1) | ||
| 14016 | (current_message_1, truncate_echo_area, truncate_message_1) | ||
| 14017 | (set_message, set_message_1, store_mode_line_noprop) | ||
| 14018 | (hscroll_window_tree, debug_delta, debug_delta_bytes, debug_end_vpos) | ||
| 14019 | (text_outside_line_unchanged_p, check_point_in_composition) | ||
| 14020 | (reconsider_clip_changes) | ||
| 14021 | (redisplay_internal, set_cursor_from_row, try_scrolling) | ||
| 14022 | (try_cursor_movement, set_vertical_scroll_bar, redisplay_window) | ||
| 14023 | (redisplay_window, find_last_unchanged_at_beg_row) | ||
| 14024 | (find_first_unchanged_at_end_row, row_containing_pos, try_window_id) | ||
| 14025 | (trailing_whitespace_p, find_row_edges, display_line) | ||
| 14026 | (RECORD_MAX_MIN_POS, Fcurrent_bidi_paragraph_direction) | ||
| 14027 | (display_mode_element, store_mode_line_string) | ||
| 14028 | (pint2str, pint2hrstr, decode_mode_spec) | ||
| 14029 | (display_count_lines, display_string, draw_glyphs) | ||
| 14030 | (x_produce_glyphs, x_insert_glyphs) | ||
| 14031 | (rows_from_pos_range, mouse_face_from_buffer_pos) | ||
| 14032 | (fast_find_string_pos, mouse_face_from_string_pos) | ||
| 14033 | (note_mode_line_or_margin_highlight, note_mouse_highlight): | ||
| 14034 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 14035 | (safe_call, init_from_display_pos, handle_fontified_prop) | ||
| 14036 | (handle_single_display_spec, load_overlay_strings) | ||
| 14037 | (with_echo_area_buffer, setup_echo_area_for_printing) | ||
| 14038 | (display_echo_area, echo_area_display) | ||
| 14039 | (x_consider_frame_title, prepare_menu_bars, update_menu_bar) | ||
| 14040 | (update_tool_bar, hscroll_window_tree, redisplay_internal) | ||
| 14041 | (redisplay_window, dump_glyph_row, display_mode_line) | ||
| 14042 | (Fformat_mode_line, decode_mode_spec, on_hot_spot_p): | ||
| 14043 | (handle_display_spec, display_prop_string_p): | ||
| 14044 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14045 | (handle_single_display_spec, build_desired_tool_bar_string) | ||
| 14046 | (redisplay_tool_bar, scroll_window_tree, Fdump_glyph_matrix) | ||
| 14047 | (get_specified_cursor_type): | ||
| 14048 | Check that fixnums are in proper range for system types. | ||
| 14049 | (struct overlay_entry, resize_mini_window, Fdump_glyph_row) | ||
| 14050 | (Flookup_image_map): | ||
| 14051 | Don't assume fixnums fit in int. | ||
| 14052 | (compare_overlay_entries): | ||
| 14053 | Avoid mishandling comparisons due to subtraction overflow. | ||
| 14054 | (load_overlay_strings): Use SAFE_NALLOCA, not alloca. | ||
| 14055 | (last_escape_glyph_face_id, last_glyphless_glyph_face_id): | ||
| 14056 | (handle_tool_bar_click): | ||
| 14057 | Use int, not unsigned, since we prefer signed and the signedness | ||
| 14058 | doesn't matter here. | ||
| 14059 | (get_next_display_element, next_element_from_display_vector): | ||
| 14060 | Use int, not EMACS_INT, when int is wide enough. | ||
| 14061 | (start_hourglass): Use duration_to_sec_usec to do proper | ||
| 14062 | overflow checking on durations. | ||
| 14063 | * xfaces.c (Fbitmap_spec_p): | ||
| 14064 | Check that fixnums are in proper range for system types. | ||
| 14065 | (compare_fonts_by_sort_order): | ||
| 14066 | Avoid mishandling comparisons due to subtraction overflow. | ||
| 14067 | (Fx_family_fonts, realize_basic_faces): | ||
| 14068 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14069 | (Fx_family_fonts): | ||
| 14070 | Don't assume fixnum fits in int. | ||
| 14071 | Use SAFE_ALLOCA_LISP, not alloca. | ||
| 14072 | (merge_face_heights): Remove unnecessary cast to EMACS_INT. | ||
| 14073 | (Finternal_make_lisp_face): Don't allocate more than MAX_FACE_ID. | ||
| 14074 | (face_at_buffer_position, face_for_overlay_string) | ||
| 14075 | (face_at_string_position): | ||
| 14076 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 14077 | (merge_faces): Use int, not EMACS_INT, where int is wide enough. | ||
| 14078 | * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines, x_icon_verify) | ||
| 14079 | (Fx_show_tip): | ||
| 14080 | Check that fixnums are in proper range for system types. | ||
| 14081 | (Fx_create_frame, x_create_tip_frame, Fx_show_tip) | ||
| 14082 | (Fx_hide_tip, Fx_file_dialog, Fx_select_font): | ||
| 14083 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14084 | (Fx_change_window_property): Don't assume fixnums fit in int. | ||
| 14085 | * xfont.c (xfont_chars_supported): | ||
| 14086 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14087 | * xmenu.c (Fx_popup_dialog, set_frame_menubar) | ||
| 14088 | (create_and_show_popup_menu, create_and_show_dialog, xmenu_show): | ||
| 14089 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14090 | * xml.c (parse_region): | ||
| 14091 | * xrdb.c (magic_file_p): | ||
| 14092 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | ||
| 14093 | * xselect.c (TRACE1): Don't assume pid_t promotes to int. | ||
| 14094 | (x_get_local_selection, x_reply_selection_request) | ||
| 14095 | (x_handle_selection_request, wait_for_property_change): | ||
| 14096 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14097 | (selection_data_to_lisp_data): Use short, not EMACS_INT, where | ||
| 14098 | short is wide enough. | ||
| 14099 | (x_send_client_event): Don't assume fixnum fits in int. | ||
| 14100 | * xterm.c (x_x_to_emacs_modifiers): | ||
| 14101 | Don't assume EMACS_INT overflows nicely into int. | ||
| 14102 | (x_emacs_to_x_modifiers): Use EMACS_INT, not int, because values | ||
| 14103 | may come from Lisp. | ||
| 14104 | (handle_one_xevent): NATNUMP can eval its arg twice. | ||
| 14105 | (x_connection_closed): | ||
| 14106 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | ||
| 14107 | * xterm.h: Adjust decls to match defn changes elsewhere. | ||
| 14108 | (struct scroll_bar): Use struct vectorlike_header | ||
| 14109 | rather than rolling our own approximation. | ||
| 14110 | (SCROLL_BAR_VEC_SIZE): Remove; not used. | ||
| 14111 | |||
| 14112 | 2012-05-25 Glenn Morris <rgm@gnu.org> | ||
| 14113 | |||
| 14114 | * lisp.mk (lisp): Update for more files being compiled now. | ||
| 14115 | |||
| 14116 | 2012-05-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14117 | |||
| 14118 | * lread.c: Remove `read_pure' which makes no difference. | ||
| 14119 | (read_pure): Remove var. | ||
| 14120 | (unreadpure): Remove function. | ||
| 14121 | (readevalloop): Don't call read_list with -1 flag. | ||
| 14122 | (read1, read_vector): Don't test read_pure any more. | ||
| 14123 | (read_list): Simplify. | ||
| 14124 | |||
| 14125 | * fileio.c, character.h: Minor style tweaks. | ||
| 14126 | |||
| 14127 | 2012-05-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 14128 | |||
| 14129 | * window.h (clip_changed): Remove useless declaration. | ||
| 14130 | |||
| 14131 | 2012-05-22 Juanma Barranquero <lekktu@gmail.com> | ||
| 14132 | |||
| 14133 | * makefile.w32-in: Follow-up to 2012-05-22T16:20:27Z!eggert@cs.ucla.edu. | ||
| 14134 | (TAGS, TAGS-gmake, CONFIG_H): Remove further references to m/intel386.h. | ||
| 14135 | |||
| 14136 | 2012-05-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14137 | |||
| 14138 | Remove src/m/*. | ||
| 14139 | This directory predates autoconf and is no longer needed nowadays. | ||
| 14140 | Move its few remaining bits of functionality to where they're needed. | ||
| 14141 | * m/README, m/alpha.h, m/amdx86-64.h, m/ia64.h, m/ibmrs6000.h: | ||
| 14142 | * m/ibms390x.h, m/intel386.h, m/m68k.h, m/macppc.h, m/sparc.h: | ||
| 14143 | * m/template.h: Remove. | ||
| 14144 | * Makefile.in (M_FILE): Remove. All uses removed. | ||
| 14145 | * alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): | ||
| 14146 | * lisp.h (USE_LSB_TAG): | ||
| 14147 | * mem-limits.h (EXCEEDS_LISP_PTR): | ||
| 14148 | Use VAL_MAX, not VALBITS, in #if. | ||
| 14149 | * lisp.h (EMACS_INT_MAX): New macro, useful in #if. | ||
| 14150 | (EMACS_UINT): Define unconditionally now. | ||
| 14151 | (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG) | ||
| 14152 | (BITS_PER_EMACS_INT): New constants, replacing | ||
| 14153 | what used to be in config.h, but not useful in #if. | ||
| 14154 | (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't | ||
| 14155 | define them any more. | ||
| 14156 | (VAL_MAX): New macro. | ||
| 14157 | (VALMASK): Use it. | ||
| 14158 | * puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not | ||
| 14159 | BITS_PER_EMACS_INT, in #if. | ||
| 14160 | * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY) | ||
| 14161 | (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed. | ||
| 14162 | * s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]: | ||
| 14163 | * s/ms-w32.h (DATA_START): | ||
| 14164 | Move here from removed file m/intel386.h. | ||
| 14165 | * s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this. | ||
| 14166 | * s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this. | ||
| 14167 | |||
| 14168 | 2012-05-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14169 | |||
| 14170 | Assume C89 or later. | ||
| 14171 | * alloc.c, buffer.c, lisp.h: Replace POINTER_TYPE with void. | ||
| 14172 | * alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc) | ||
| 14173 | (xrealloc): | ||
| 14174 | * buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts. | ||
| 14175 | * editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL): | ||
| 14176 | * textprop.c, tparam.c (NULL): Remove. | ||
| 14177 | * ralloc.c, vm-limit.c (POINTER): Assume void * works. | ||
| 14178 | * regex.c (SIGN_EXTEND_CHAR): Assume signed char works. | ||
| 14179 | * regex.h (_RE_ARGS): Remove. All uses rewritten to use prototypes. | ||
| 14180 | * unexelf.c (ElfBitsW): Assume c89 preprocessor or better. | ||
| 14181 | * xterm.c (input_signal_count): Assume volatile works. | ||
| 14182 | |||
| 14183 | 2012-05-21 Ken Brown <kbrown@cornell.edu> | ||
| 14184 | |||
| 14185 | * xgselect.c (xg_select): Fix first argument in call to 'select' | ||
| 14186 | (bug#11508). | ||
| 14187 | |||
| 14188 | 2012-05-20 Ken Brown <kbrown@cornell.edu> | ||
| 14189 | |||
| 14190 | * gmalloc.c (_free_internal_nolock, _realloc_internal_nolock) | ||
| 14191 | [CYGWIN]: Cast ptr to (char *) before comparing to _heapbase. | ||
| 14192 | |||
| 14193 | 2012-05-19 Ken Brown <kbrown@cornell.edu> | ||
| 14194 | |||
| 14195 | * xfns.c (x_in_use): Remove `static' qualifier. | ||
| 14196 | * xterm.h (x_in_use): Declare. | ||
| 14197 | * xgselect.c: Include xterm.h. | ||
| 14198 | (xg_select): Test `x_in_use' instead of `inhibit_window_system' | ||
| 14199 | and `display_arg' (bug#9754). | ||
| 14200 | |||
| 14201 | 2012-05-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14202 | |||
| 14203 | * s/ms-w32.h (HAVE_GETDOMAINNAME): Remove; not needed. | ||
| 14204 | |||
| 14205 | * m/vax.h: Remove; no longer needed since HAVE_FTIME is being removed. | ||
| 14206 | * s/ms-w32.h (HAVE_FTIME): Remove; not needed. | ||
| 14207 | |||
| 14208 | 2012-05-18 Eli Zaretskii <eliz@gnu.org> | ||
| 14209 | |||
| 14210 | Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows. | ||
| 14211 | |||
| 14212 | * w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font. | ||
| 14213 | (x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c. | ||
| 14214 | |||
| 14215 | * w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken | ||
| 14216 | reference to image_cache->refcount. | ||
| 14217 | (x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE. | ||
| 14218 | |||
| 14219 | 2012-05-17 Juri Linkov <juri@jurta.org> | ||
| 14220 | |||
| 14221 | * search.c (Fword_search_regexp, Fword_search_backward) | ||
| 14222 | (Fword_search_forward, Fword_search_backward_lax) | ||
| 14223 | (Fword_search_forward_lax): Move functions to isearch.el | ||
| 14224 | (bug#10145, bug#11381). | ||
| 14225 | |||
| 14226 | 2012-05-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14227 | |||
| 14228 | * xgselect.c (xg_select): Just invoke 'select' if -nw (Bug#9754). | ||
| 14229 | |||
| 14230 | 2012-05-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14231 | |||
| 14232 | * lread.c (init_obarray): Declare Qt and Qnil as special. | ||
| 14233 | |||
| 14234 | 2012-05-14 Glenn Morris <rgm@gnu.org> | ||
| 14235 | |||
| 14236 | * nsterm.m (ns_init_paths): Fix typo ("libexec" not "lib-exec"). | ||
| 14237 | Put "libexec" before "bin", for the sake of init_callproc_1. | ||
| 14238 | |||
| 14239 | 2012-05-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14240 | |||
| 14241 | * keyboard.c (kbd_buffer_get_event) [!HAVE_DBUS]: Omit unused local. | ||
| 14242 | |||
| 14243 | * unexaix.c: Port to more-recent AIX compilers. | ||
| 14244 | (report_error, report_error_1, make_hdr, copy_sym) | ||
| 14245 | (mark_x, adjust_lnnoptrs, unrelocate_symbols): | ||
| 14246 | Make arguments const char *, not char *, to avoid violations of C | ||
| 14247 | standard and to fix some AIX warnings reported by Gilles Pion. | ||
| 14248 | |||
| 14249 | 2012-05-14 Eli Zaretskii <eliz@gnu.org> | ||
| 14250 | |||
| 14251 | * xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we | ||
| 14252 | already have overlays loaded. | ||
| 14253 | (handle_single_display_spec): Before returning without displaying | ||
| 14254 | fringe bitmap, synchronize the bidi iterator with the main display | ||
| 14255 | iterator, by calling iterate_out_of_display_property. | ||
| 14256 | (iterate_out_of_display_property): Detect buffer iteration by | ||
| 14257 | testing that it->string is a Lisp string. | ||
| 14258 | (get_next_display_element): When the current object is exhausted, | ||
| 14259 | and there's something on it->stack, call set_iterator_to_next to | ||
| 14260 | proceed with what's on the stack, instead of returning zero. | ||
| 14261 | (set_iterator_to_next): If called at the end of a Lisp string, | ||
| 14262 | proceed to consider_string_end without incrementing string | ||
| 14263 | position. Don't increment display vector index past the end of | ||
| 14264 | the display vector. (Bug#11417) | ||
| 14265 | (pos_visible_p): Don't report a position visible when move_it_to | ||
| 14266 | stopped at the last line of window, which happens to be scanned | ||
| 14267 | backwards by the bidi iteration. (Bug#11464) | ||
| 14268 | |||
| 14269 | 2012-05-14 Eli Zaretskii <eliz@gnu.org> | ||
| 14270 | |||
| 14271 | * xdisp.c (handle_single_display_spec): Return 1 for left-margin | ||
| 14272 | and right-margin display specs even if the spec is invalid or we | ||
| 14273 | are on a TTY, and thus unable to display on the fringes. | ||
| 14274 | That's because the text with the property will not be displayed anyway, | ||
| 14275 | so we need to signal to the caller that this is a "replacing" | ||
| 14276 | display spec. This fixes display when the spec is invalid or we | ||
| 14277 | are on a TTY. | ||
| 14278 | |||
| 14279 | 2012-05-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14280 | |||
| 14281 | * unexaix.c (make_hdr): Fix typo in prototype. | ||
| 14282 | This bug broke the build on AIX. Problem reported by Gilles Pion. | ||
| 14283 | |||
| 14284 | 2012-05-14 Michael Albinus <michael.albinus@gmx.de> | ||
| 14285 | |||
| 14286 | * keyboard.c (kbd_buffer_get_event): Read special events also in | ||
| 14287 | batch mode. (Bug#11415) | ||
| 14288 | |||
| 14289 | 2012-05-12 Glenn Morris <rgm@gnu.org> | ||
| 14290 | |||
| 14291 | * ns.mk: Update for ns_appbindir no longer having trailing "/". | ||
| 14292 | |||
| 14293 | 2012-05-12 Eli Zaretskii <eliz@gnu.org> | ||
| 14294 | |||
| 14295 | * lisp.mk (lisp): Add newcomment.elc. | ||
| 14296 | |||
| 14297 | 2012-05-12 Glenn Morris <rgm@gnu.org> | ||
| 14298 | |||
| 14299 | * Makefile.in (MKDIR_P): New, set by configure. | ||
| 14300 | * ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P. | ||
| 14301 | |||
| 14302 | 2012-05-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14303 | |||
| 14304 | Remove unused function hourglass_started. | ||
| 14305 | * dispextern.h (hourglass_started): | ||
| 14306 | * w32fns.c (hourglass_started): | ||
| 14307 | * xdisp.c (hourglass_started): Remove. | ||
| 14308 | |||
| 14309 | 2012-05-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 14310 | |||
| 14311 | * makefile.w32-in ($(BLD)/gmalloc.$(O), $(BLD)/w32menu.$(O)): | ||
| 14312 | Update dependencies. | ||
| 14313 | |||
| 14314 | 2012-05-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14315 | |||
| 14316 | * xgselect.c (xg_select): Put maxfds+1 into a var. | ||
| 14317 | This is slightly clearer, and pacifies Ubuntu 12.04 gcc. | ||
| 14318 | |||
| 14319 | * sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA. | ||
| 14320 | |||
| 14321 | 2012-05-10 Dave Abrahams <dave@boostpro.com> | ||
| 14322 | |||
| 14323 | * filelock.c (syms_of_filelock): New boolean create-lockfiles. | ||
| 14324 | (lock_file): If create_lockfiles is 0, do nothing. (Bug#11227) | ||
| 14325 | |||
| 14326 | 2012-05-09 Michael Albinus <michael.albinus@gmx.de> | ||
| 14327 | |||
| 14328 | * dbusbind.c (xd_registered_buses): New internal Lisp object. | ||
| 14329 | Rename all occurrences of Vdbus_registered_buses to xd_registered_buses. | ||
| 14330 | (syms_of_dbusbind): Remove declaration of Vdbus_registered_buses. | ||
| 14331 | Initialize xd_registered_buses. | ||
| 14332 | |||
| 14333 | 2012-05-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14334 | |||
| 14335 | Untag more efficiently if USE_LSB_TAG. | ||
| 14336 | This is based on a proposal by YAMAMOTO Mitsuharu in | ||
| 14337 | <http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01876.html>. | ||
| 14338 | For an admittedly artificial (nth 8000 longlist) benchmark on | ||
| 14339 | Fedora 15 x86-64, this yields a 25% CPU speedup. Also, it shrinks | ||
| 14340 | Emacs's overall text size by 1%. | ||
| 14341 | * lisp.h (XUNTAG): New macro. | ||
| 14342 | (XCONS, XVECTOR, XSTRING, XSYMBOL, XFLOAT, XMISC, XPROCESS, XWINDOW) | ||
| 14343 | (XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE, XSUB_CHAR_TABLE, XBOOL_VECTOR) | ||
| 14344 | (XSETTYPED_PSEUDOVECTOR, XHASH_TABLE, TYPED_PSEUDOVECTORP): Use it. | ||
| 14345 | * eval.c (Fautoload): | ||
| 14346 | * font.h (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT): | ||
| 14347 | * frame.h (XFRAME): Use XUNTAG. | ||
| 14348 | |||
| 14349 | Port recent dbusbind.c changes to 32-bit --with-wide-int. | ||
| 14350 | * dbusbind.c (xd_append_arg, xd_retrieve_arg, Fdbus_message_internal): | ||
| 14351 | Remove unportable assumptions about print widths of types like | ||
| 14352 | dbus_uint32_t. | ||
| 14353 | (xd_get_connection_address, Fdbus_init_bus): Cast Emacs integer to | ||
| 14354 | intptr_t when converting between pointer and integer, to avoid GCC | ||
| 14355 | warnings about wrong width. | ||
| 14356 | |||
| 14357 | 2012-05-09 Eli Zaretskii <eliz@gnu.org> | ||
| 14358 | |||
| 14359 | * w32proc.c (new_child): Force Windows to reserve only 64KB of | ||
| 14360 | stack for each reader_thread, instead of defaulting to 8MB | ||
| 14361 | determined by the linker. This avoids failures in creating | ||
| 14362 | subprocesses on Windows 7, see the discussion in this thread: | ||
| 14363 | http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html. | ||
| 14364 | |||
| 14365 | 2012-05-07 Jérémy Compostella <jeremy.compostella@gmail.com> | ||
| 14366 | |||
| 14367 | Fix up display of the *Minibuf-0* buffer in the mini window. | ||
| 14368 | * keyboard.c (read_char): Don't clear the echo area if there's no | ||
| 14369 | message to clear. | ||
| 14370 | * xdisp.c (redisplay_internal): Redisplay the mini window (with the | ||
| 14371 | contents of *Minibuf-0*) if there's no message displayed in its stead. | ||
| 14372 | |||
| 14373 | 2012-05-07 Michael Albinus <michael.albinus@gmx.de> | ||
| 14374 | |||
| 14375 | * dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in | ||
| 14376 | batch mode. | ||
| 14377 | |||
| 14378 | 2012-05-06 Chong Yidong <cyd@gnu.org> | ||
| 14379 | |||
| 14380 | * lisp.mk (lisp): Update. | ||
| 14381 | |||
| 14382 | 2012-05-05 Jim Meyering <meyering@redhat.com> | ||
| 14383 | |||
| 14384 | * w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372). | ||
| 14385 | |||
| 14386 | 2012-05-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14387 | |||
| 14388 | * data.c (PUT_ERROR): New macro. | ||
| 14389 | (syms_of_data): Use it. Add new error type `user-error'. | ||
| 14390 | * undo.c (user_error): New function. | ||
| 14391 | (Fprimitive_undo): Use it. | ||
| 14392 | * print.c (print_error_message): Adjust print style for `user-error'. | ||
| 14393 | * keyboard.c (user_error): New function. | ||
| 14394 | (Fexit_recursive_edit, Fabort_recursive_edit): Use it. | ||
| 14395 | |||
| 14396 | 2012-05-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14397 | |||
| 14398 | Do not limit current-time-string to years 1000..9999. | ||
| 14399 | * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove. | ||
| 14400 | (Fcurrent_time_string): Support any year that is supported by the | ||
| 14401 | underlying localtime representation. Don't use asctime, as it | ||
| 14402 | has undefined behavior for years outside the range -999..9999. | ||
| 14403 | |||
| 14404 | 2012-05-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14405 | |||
| 14406 | Fix race conditions involving setenv, gmtime, localtime, asctime. | ||
| 14407 | Without this fix, interrupts could mess up code that uses these | ||
| 14408 | nonreentrant functions, since setting TZ invalidates existing | ||
| 14409 | tm_zone or tzname values, and since most of these functions return | ||
| 14410 | pointers to static storage. | ||
| 14411 | * editfns.c (format_time_string, Fdecode_time, Fencode_time) | ||
| 14412 | (Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule): | ||
| 14413 | Grow the critical sections to include not just invoking | ||
| 14414 | localtime/gmtime, but also accessing these functions' results | ||
| 14415 | including their tm_zone values if any, and any related TZ setting. | ||
| 14416 | (format_time_string): Last arg is now struct tm *, not struct tm **, | ||
| 14417 | so that the struct tm is saved in the critical section. | ||
| 14418 | All callers changed. Simplify allocation of initial buffer, partly | ||
| 14419 | motivated by the fact that memory allocation needs to be outside | ||
| 14420 | the critical section. | ||
| 14421 | |||
| 14422 | 2012-05-02 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 14423 | |||
| 14424 | * intervals.c (adjust_intervals_for_insertion): Initialize `newi' | ||
| 14425 | with RESET_INTERVAL. | ||
| 14426 | |||
| 14427 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): | ||
| 14428 | Remove duplicated buffer name initialization. | ||
| 14429 | |||
| 14430 | 2012-05-02 Jim Meyering <jim@meyering.net> | ||
| 14431 | |||
| 14432 | * xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373). | ||
| 14433 | |||
| 14434 | * xfns.c (x_window): Use xstrdup (Bug#11375). | ||
| 14435 | |||
| 14436 | 2012-05-02 Eli Zaretskii <eliz@gnu.org> | ||
| 14437 | |||
| 14438 | * xdisp.c (pos_visible_p): If already at a newline from the | ||
| 14439 | display string before the 'while' loop, don't walk back the glyphs | ||
| 14440 | from it3.glyph_row. Solves assertion violation when the display | ||
| 14441 | string begins with a newline (egg.el). (Bug#11367) | ||
| 14442 | |||
| 14443 | 2012-05-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14444 | |||
| 14445 | * keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings): | ||
| 14446 | Move to simple.el. | ||
| 14447 | |||
| 14448 | 2012-05-01 Glenn Morris <rgm@gnu.org> | ||
| 14449 | |||
| 14450 | * syssignal.h: Remove reference to BROKEN_SIGINFO (last used in | ||
| 14451 | s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h), | ||
| 14452 | and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10). | ||
| 14453 | All were removed before 23.1. | ||
| 14454 | |||
| 14455 | * dispnew.c: Remove HAVE_LIBNCURSES test; | ||
| 14456 | it is always true on relevant platforms. | ||
| 14457 | |||
| 14458 | * Makefile.in (LD_SWITCH_X_SITE_RPATH): | ||
| 14459 | Rename from LD_SWITCH_X_SITE_AUX_RPATH. | ||
| 14460 | |||
| 14461 | * Makefile.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used. | ||
| 14462 | |||
| 14463 | 2012-04-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14464 | |||
| 14465 | * .gdbinit (xpr): Remove checks for no longer existing misc types. | ||
| 14466 | (xintfwd, xboolfwd, xobjfwd, xbufobjfwd, xkbobjfwd, xbuflocal): | ||
| 14467 | Remove. | ||
| 14468 | |||
| 14469 | 2012-04-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14470 | |||
| 14471 | Do not avoid creating empty evaporating overlays (Bug#9642). | ||
| 14472 | * buffer.c (Fmove_overlay): Revert the change of 2012-04-23. | ||
| 14473 | That is, do not delete an evaporating overlay if it becomes | ||
| 14474 | empty after its bounds are adjusted to fit within its buffer. | ||
| 14475 | This fix caused other problems, and I'm reverting it until we get | ||
| 14476 | to the bottom of them. | ||
| 14477 | |||
| 14478 | 2012-04-27 Chong Yidong <cyd@gnu.org> | ||
| 14479 | |||
| 14480 | * xselect.c (x_convert_selection): Initialize a pointer (Bug#11315). | ||
| 14481 | |||
| 14482 | 2012-04-27 Eli Zaretskii <eliz@gnu.org> | ||
| 14483 | |||
| 14484 | * xdisp.c (pos_visible_p): If the window start position is beyond | ||
| 14485 | ZV, start the display from buffer beginning. Prevents assertion | ||
| 14486 | violation in init_iterator when the minibuffer window is scrolled | ||
| 14487 | via the scroll bar. | ||
| 14488 | |||
| 14489 | * window.c (window_scroll_pixel_based): Likewise. | ||
| 14490 | |||
| 14491 | 2012-04-27 Chong Yidong <cyd@gnu.org> | ||
| 14492 | |||
| 14493 | * keymap.c (where_is_internal): Doc fix (Bug#10872). | ||
| 14494 | |||
| 14495 | 2012-04-27 Glenn Morris <rgm@gnu.org> | ||
| 14496 | |||
| 14497 | * fileio.c (Fcopy_file, Fset_file_selinux_context): | ||
| 14498 | Ignore ENOTSUP failures from setfilecon functions. (Bug#11245) | ||
| 14499 | |||
| 14500 | 2012-04-27 Eli Zaretskii <eliz@gnu.org> | ||
| 14501 | |||
| 14502 | * dispnew.c (swap_glyph_pointers, copy_row_except_pointers): | ||
| 14503 | Don't overrun array limits of glyph row's used[] array. (Bug#11288) | ||
| 14504 | |||
| 14505 | 2012-04-26 Eli Zaretskii <eliz@gnu.org> | ||
| 14506 | |||
| 14507 | * xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded | ||
| 14508 | display element, check also the underlying string or buffer | ||
| 14509 | character. (Bug#11341) | ||
| 14510 | |||
| 14511 | * w32menu.c: Include w32heap.h. | ||
| 14512 | (add_menu_item): If the call to AppendMenuW (via | ||
| 14513 | unicode_append_menu) fails, disable Unicode menus only if we are | ||
| 14514 | running on Windows 9X/Me. | ||
| 14515 | |||
| 14516 | 2012-04-24 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14517 | |||
| 14518 | * .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS. | ||
| 14519 | (xgetint): Add missing shift for LSB tags. | ||
| 14520 | |||
| 14521 | 2012-04-24 Martin Rudalics <rudalics@gmx.at> | ||
| 14522 | |||
| 14523 | * keyboard.c (read_char): Don't wipe echo area for select window | ||
| 14524 | events: These might get delayed via `mouse-autoselect-window' | ||
| 14525 | (Bug#11304). | ||
| 14526 | |||
| 14527 | 2012-04-24 Juanma Barranquero <lekktu@gmail.com> | ||
| 14528 | |||
| 14529 | * gnutls.c (init_gnutls_functions): Protect against (unlikely) | ||
| 14530 | manipulation of :loaded-from data. | ||
| 14531 | |||
| 14532 | 2012-04-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 14533 | |||
| 14534 | * gnutls.c (init_gnutls_functions): The value of :loaded-from is | ||
| 14535 | now a cons (bug#11311). | ||
| 14536 | |||
| 14537 | 2012-04-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14538 | |||
| 14539 | Do not create empty overlays with the evaporate property (Bug#9642). | ||
| 14540 | * buffer.c (Fmove_overlay): Delete an evaporating overlay | ||
| 14541 | if it becomes empty after its bounds are adjusted to fit within | ||
| 14542 | its buffer. Without this fix, in a nonempty buffer (let ((o | ||
| 14543 | (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1)) | ||
| 14544 | yields an empty overlay that has the evaporate property, which is | ||
| 14545 | not supposed to happen. | ||
| 14546 | |||
| 14547 | Fix minor GTK3 problems found by static checking. | ||
| 14548 | * emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed) | ||
| 14549 | (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed) | ||
| 14550 | (struct _EmacsFixedClass, emacs_fixed_get_type): | ||
| 14551 | Move decls here from emacsgtkfixed.h, since they needn't be public. | ||
| 14552 | (emacs_fixed_get_type): Now static. | ||
| 14553 | (emacs_fixed_class_init): Omit unused local. | ||
| 14554 | (emacs_fixed_child_type): Remove; unused. | ||
| 14555 | * emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed) | ||
| 14556 | (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed) | ||
| 14557 | (struct _EmacsFixedClass): Move to emacsgtkfixed.c. | ||
| 14558 | (EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS) | ||
| 14559 | (EMACS_FIXED_GET_CLASS): Remove; unused. | ||
| 14560 | * gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local. | ||
| 14561 | |||
| 14562 | * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO. | ||
| 14563 | Problem reported by Juanma Barranquero for Windows -Wunused-function. | ||
| 14564 | |||
| 14565 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14566 | |||
| 14567 | Modernize and clean up gmalloc.c to assume C89 (Bug#9119). | ||
| 14568 | * gmalloc.c (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t) | ||
| 14569 | (__malloc_size_t, __malloc_ptrdiff_t): | ||
| 14570 | Remove. All uses removed, replaced by the definiens if needed, | ||
| 14571 | since we can assume C89 or better now. | ||
| 14572 | Include <stdint.h>, for PTRDIFF_MAX, uintptr_t. | ||
| 14573 | (protect_malloc_state, align, get_contiguous_space) | ||
| 14574 | (malloc_atfork_handler_prepare, malloc_atfork_handler_parent) | ||
| 14575 | (malloc_atfork_handler_child, malloc_enable_thread) | ||
| 14576 | (malloc_initialize_1, __malloc_initialize, morecore_nolock) | ||
| 14577 | (_malloc_internal_nolock, _malloc_internal, malloc, _malloc) | ||
| 14578 | (_free, _realloc, _free_internal_nolock, _free_internal, free, cfree) | ||
| 14579 | (special_realloc, _realloc_internal_nolock, _realloc_internal) | ||
| 14580 | (realloc, calloc, __default_morecore, memalign, valloc, checkhdr) | ||
| 14581 | (freehook, mallochook, reallochook, mabort, mcheck, mprobe): | ||
| 14582 | Define using prototypes, not old style. | ||
| 14583 | (align, _malloc_internal_nolock, _free_internal_nolock, memalign): | ||
| 14584 | Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long. | ||
| 14585 | (align): Don't assume that signed integer overflow wraps around. | ||
| 14586 | Omit unused local var. | ||
| 14587 | (malloc_initialize_1, morecore_nolock, _malloc_internal_nolock) | ||
| 14588 | (_free_internal_nolock, memalign, mallochook, reallochook): | ||
| 14589 | Omit no-longer-needed casts. | ||
| 14590 | (valloc): Use getpagesize, not __getpagesize. | ||
| 14591 | (MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit. | ||
| 14592 | (struct hdr): The 'magic' member is now size_t, not unsigned long. | ||
| 14593 | |||
| 14594 | * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed. | ||
| 14595 | |||
| 14596 | 2012-04-22 Michael Albinus <michael.albinus@gmx.de> | ||
| 14597 | |||
| 14598 | Move functions from C to Lisp. Make non-blocking method calls | ||
| 14599 | the default. Implement further D-Bus standard interfaces. | ||
| 14600 | |||
| 14601 | * dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare. | ||
| 14602 | (QCdbus_request_name_allow_replacement) | ||
| 14603 | (QCdbus_request_name_replace_existing) | ||
| 14604 | (QCdbus_request_name_do_not_queue) | ||
| 14605 | (QCdbus_request_name_reply_primary_owner) | ||
| 14606 | (QCdbus_request_name_reply_in_queue) | ||
| 14607 | (QCdbus_request_name_reply_exists) | ||
| 14608 | (QCdbus_request_name_reply_already_owner): Move to dbus.el. | ||
| 14609 | (QCdbus_registered_serial, QCdbus_registered_method) | ||
| 14610 | (QCdbus_registered_signal): New Lisp objects. | ||
| 14611 | (XD_DEBUG_MESSAGE): Use sizeof. | ||
| 14612 | (XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING) | ||
| 14613 | (XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT) | ||
| 14614 | (XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH) | ||
| 14615 | (XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros. | ||
| 14616 | (XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL. | ||
| 14617 | (xd_signature, xd_append_arg): Allow float for integer types. | ||
| 14618 | (xd_get_connection_references): New function. | ||
| 14619 | (xd_get_connection_address): Rename from xd_initialize. | ||
| 14620 | Return cached address. | ||
| 14621 | (xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS. | ||
| 14622 | (xd_close_bus): Rename from Fdbus_close_bus. Not needed on Lisp | ||
| 14623 | level. | ||
| 14624 | (Fdbus_init_bus): New optional arg PRIVATE. Cache address. | ||
| 14625 | Return number of refcounts. | ||
| 14626 | (Fdbus_get_unique_name): Make stronger parameter check. | ||
| 14627 | (Fdbus_message_internal): New defun. | ||
| 14628 | (Fdbus_call_method, Fdbus_call_method_asynchronously) | ||
| 14629 | (Fdbus_method_return_internal, Fdbus_method_error_internal) | ||
| 14630 | (Fdbus_send_signal, Fdbus_register_service) | ||
| 14631 | (Fdbus_register_signal, Fdbus_register_method): Move to dbus.el. | ||
| 14632 | (xd_read_message_1): Obey new structure of Vdbus_registered_objects. | ||
| 14633 | (xd_read_queued_messages): Obey new structure of Vdbus_registered_buses. | ||
| 14634 | (Vdbus_compiled_version, Vdbus_runtime_version) | ||
| 14635 | (Vdbus_message_type_invalid, Vdbus_message_type_method_call) | ||
| 14636 | (Vdbus_message_type_method_return, Vdbus_message_type_error) | ||
| 14637 | (Vdbus_message_type_signal): New defvars. | ||
| 14638 | (Vdbus_registered_buses, Vdbus_registered_objects_table): | ||
| 14639 | Adapt docstring. | ||
| 14640 | |||
| 14641 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14642 | |||
| 14643 | Fix GC_MALLOC_CHECK debugging output on 64-bit hosts. | ||
| 14644 | * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]: | ||
| 14645 | Do not assume ptrdiff_t is the same width as 'int'. | ||
| 14646 | |||
| 14647 | * alloc.c: Handle unusual debugging option combinations. | ||
| 14648 | (GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK, | ||
| 14649 | since the two debugging options are incompatible. | ||
| 14650 | (GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS | ||
| 14651 | is defined. | ||
| 14652 | (mem_init, mem_insert, mem_insert_fixup): | ||
| 14653 | Define if GC_MARK_STACK || GC_MALLOC_CHECK. | ||
| 14654 | (NEED_MEM_INSERT): Remove; no longer needed. | ||
| 14655 | |||
| 14656 | 2012-04-22 Leo Liu <sdl.web@gmail.com> | ||
| 14657 | |||
| 14658 | * sysdep.c (list_system_processes): Support Darwin (Bug#5725). | ||
| 14659 | |||
| 14660 | 2012-04-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14661 | |||
| 14662 | * sysdep.c [__FreeBSD__]: Minor cleanups. | ||
| 14663 | (list_system_processes, system_process_attributes) [__FreeBSD__]: | ||
| 14664 | Use Emacs indenting style more consistently. Avoid some casts. | ||
| 14665 | Use 'double' consistently rather than mixing 'float' and 'double'. | ||
| 14666 | |||
| 14667 | 2012-04-21 Eduard Wiebe <usenet@pusto.de> | ||
| 14668 | |||
| 14669 | * sysdep.c (list_system_processes, system_process_attributes): | ||
| 14670 | Add implementation for FreeBSD (Bug#5243). | ||
| 14671 | |||
| 14672 | 2012-04-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14673 | |||
| 14674 | * lisp.mk (lisp): Update. | ||
| 14675 | |||
| 14676 | 2012-04-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14677 | |||
| 14678 | * keyboard.c (process_pending_signals): Define only if SYNC_INPUT. | ||
| 14679 | It is never used otherwise. | ||
| 14680 | |||
| 14681 | 2012-04-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14682 | |||
| 14683 | * print.c (print_preprocess): Only check print_depth if print-circle | ||
| 14684 | is nil. | ||
| 14685 | (print_object): Check for cycles even when print-circle is nil and | ||
| 14686 | print-gensym is t, but only check print_depth if print-circle is nil. | ||
| 14687 | |||
| 14688 | 2012-04-20 Chong Yidong <cyd@gnu.org> | ||
| 14689 | |||
| 14690 | * process.c (wait_reading_process_output): If EIO occurs on a pty, | ||
| 14691 | set the status to "failed" and ensure that sentinel is run. | ||
| 14692 | |||
| 14693 | 2012-04-20 Glenn Morris <rgm@gnu.org> | ||
| 14694 | |||
| 14695 | * process.c (Fset_process_inherit_coding_system_flag) | ||
| 14696 | (Fset_process_query_on_exit_flag): Doc fix (mention return value). | ||
| 14697 | (Fmake_network_process, Fmake_serial_process): Doc fix. | ||
| 14698 | |||
| 14699 | 2012-04-20 Eli Zaretskii <eliz@gnu.org> | ||
| 14700 | |||
| 14701 | * xdisp.c (string_buffer_position_lim): Limit starting position to | ||
| 14702 | BEGV. | ||
| 14703 | (set_cursor_from_row): If called for a mode-line or header-line | ||
| 14704 | row, return zero immediately. | ||
| 14705 | (try_cursor_movement): If inside continuation line, don't back up | ||
| 14706 | farther than the first row after the header line, if any. | ||
| 14707 | Don't consider the header-line row as "partially visible", even if | ||
| 14708 | MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero. (Bug#11261) | ||
| 14709 | |||
| 14710 | 2012-04-20 Atsuo Ohki <ohki@gssm.otsuka.tsukuba.ac.jp> (tiny change) | ||
| 14711 | |||
| 14712 | * lread.c (lisp_file_lexically_bound_p): Fix hang at ";-*-\n" | ||
| 14713 | (bug#11238). | ||
| 14714 | |||
| 14715 | 2012-04-20 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 14716 | 2012-04-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14717 | |||
| 14718 | configure: new option --enable-gcc-warnings (Bug#11207) | ||
| 14719 | * Makefile.in (C_WARNINGS_SWITCH): Remove. | ||
| 14720 | (WARN_CFLAGS, WERROR_CFLAGS): New macros. | ||
| 14721 | (ALL_CFLAGS): Use new macros rather than old. | ||
| 14722 | * process.c: Ignore -Wstrict-overflow to work around GCC bug 52904. | ||
| 14723 | * regex.c: Ignore -Wstrict-overflow. If !emacs, also ignore | ||
| 14724 | -Wunused-but-set-variable, -Wunused-function, -Wunused-macros, | ||
| 14725 | -Wunused-result, -Wunused-variable. This should go away once | ||
| 14726 | the Emacs and Gnulib regex code is merged. | ||
| 14727 | (xmalloc, xrealloc): Now static. | ||
| 14728 | |||
| 14729 | 2012-04-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14730 | |||
| 14731 | * dired.c (Fsystem_groups): Remove unused local. | ||
| 14732 | |||
| 14733 | 2012-04-17 Glenn Morris <rgm@gnu.org> | ||
| 14734 | |||
| 14735 | * dired.c (Fsystem_users): Doc fix. | ||
| 14736 | |||
| 14737 | 2012-04-17 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 14738 | |||
| 14739 | * dired.c (Fsystem_users, Fsystem_groups): New functions. (Bug#7900) | ||
| 14740 | (syms_of_dired): Add them. | ||
| 14741 | |||
| 14742 | 2012-04-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14743 | |||
| 14744 | Fix minor alloc.c problems found by static checking. | ||
| 14745 | * alloc.c (_malloc_internal, _free_internal) [!DOUG_LEA_MALLOC]: | ||
| 14746 | New extern decls, to avoid calling undeclared functions. | ||
| 14747 | (dont_register_blocks): Define if ((!SYSTEM_MALLOC && !SYNC_INPUT) | ||
| 14748 | && GC_MALLOC_CHECK), not if ((GC_MARK_STACK || defined | ||
| 14749 | GC_MALLOC_CHECK) && GC_MALLOC_CHECK), to match when it's used. | ||
| 14750 | (NEED_MEM_INSERT): New macro. | ||
| 14751 | (mem_insert, mem_insert_fixup) [!NEED_MEM_INSERT]: Remove; unused. | ||
| 14752 | Remove one incorrect comment and fix another. | ||
| 14753 | |||
| 14754 | Fix minor ralloc.c problems found by static checking. | ||
| 14755 | See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html | ||
| 14756 | * ralloc.c (ALIGNED, ROUND_TO_PAGE, HEAP_PTR_SIZE) | ||
| 14757 | (r_alloc_size_in_use, r_alloc_freeze, r_alloc_thaw): Remove; unused. | ||
| 14758 | (r_alloc_sbrk): Now static. | ||
| 14759 | |||
| 14760 | Improve ralloc.c interface checking. | ||
| 14761 | See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html | ||
| 14762 | * buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc) | ||
| 14763 | (r_alloc_free) [REL_ALLOC]: Move decls from here ... | ||
| 14764 | * lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable) | ||
| 14765 | [REL_ALLOC]: ... to here, to check interface. | ||
| 14766 | * m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]: | ||
| 14767 | Remove decls. This fixes an "It stinks!". | ||
| 14768 | |||
| 14769 | * alloc.c (which_symbols): Fix alignment issue / type clash. | ||
| 14770 | |||
| 14771 | 2012-04-15 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14772 | |||
| 14773 | * lisp.h (struct Lisp_Symbol): Remove explicit padding. | ||
| 14774 | (struct Lisp_Misc_Any): Likewise. | ||
| 14775 | (struct Lisp_Free): Likewise. | ||
| 14776 | * alloc.c (union aligned_Lisp_Symbol): Define. | ||
| 14777 | (SYMBOL_BLOCK_SIZE, struct symbol_block): Use union | ||
| 14778 | aligned_Lisp_Symbol instead of struct Lisp_Symbol. | ||
| 14779 | (union aligned_Lisp_Misc): Define. | ||
| 14780 | (MARKER_BLOCK_SIZE, struct marker_block): Use union | ||
| 14781 | aligned_Lisp_Misc instead of union Lisp_Misc. | ||
| 14782 | (Fmake_symbol, allocate_misc, gc_sweep): Adjust. | ||
| 14783 | |||
| 14784 | 2012-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14785 | |||
| 14786 | Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926). | ||
| 14787 | * lisp.h (GC_MARK_STACK): Default to GC_MAKE_GCPROS_NOOPS. | ||
| 14788 | * s/cygwin.h, s/darwin.h, s/freebsd.h, s/gnu.h, s/irix6-5.h, s/msdos.h: | ||
| 14789 | * s/netbsd.h, s/sol2-6.h: | ||
| 14790 | Remove definition of GC_MARK_STACK, since the default now works. | ||
| 14791 | * s/aix4-2.h, s/hpux10-20.h, s/unixware.h: | ||
| 14792 | Define GC_MARK_STACK to GC_USE_GCPROS_AS_BEFORE, since that's | ||
| 14793 | no longer the default. | ||
| 14794 | * s/gnu-linux.h (GC_MARK_STACK): Adjust to change in default. | ||
| 14795 | |||
| 14796 | 2012-04-14 Atsuo Ohki <ohki@gssm.otsuka.tsukuba.ac.jp> (tiny change) | ||
| 14797 | |||
| 14798 | * lread.c (lisp_file_lexically_bound_p): | ||
| 14799 | Fix hang at ";-*-\n" (bug#11238). | ||
| 14800 | |||
| 14801 | 2012-04-14 Eli Zaretskii <eliz@gnu.org> | ||
| 14802 | |||
| 14803 | * xdisp.c (find_last_unchanged_at_beg_row): Don't consider a row | ||
| 14804 | "unchanged" if its end.pos is beyond ZV. (Bug#11199) | ||
| 14805 | |||
| 14806 | 2012-04-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 14807 | |||
| 14808 | * nsterm.m (constrainFrameRect): Always constrain when there is only | ||
| 14809 | one screen (Bug#10962). | ||
| 14810 | |||
| 14811 | 2012-04-13 Ken Brown <kbrown@cornell.edu> | ||
| 14812 | |||
| 14813 | * s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor. | ||
| 14814 | |||
| 14815 | 2012-04-13 Reuben Thomas <rrt@sc3d.org> | ||
| 14816 | |||
| 14817 | * indent.c (Fmove_to_column): Change interactive spec (Bug#739). | ||
| 14818 | |||
| 14819 | 2012-04-11 Daniel Colascione <dancol@dancol.org> | ||
| 14820 | |||
| 14821 | * s/cygwin.h: The vfork the #define in cygwin.h was protecting | ||
| 14822 | against is gone. It's better to use vfork now so that when Cygwin | ||
| 14823 | gains a new, working vfork, we use it automatically (bug#10398). | ||
| 14824 | |||
| 14825 | 2012-04-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14826 | |||
| 14827 | * window.c (save_window_save): Obey window-point-insertion-type. | ||
| 14828 | |||
| 14829 | 2012-04-11 Glenn Morris <rgm@gnu.org> | ||
| 14830 | |||
| 14831 | * Makefile.in (GNUSTEP_CFLAGS): Rename from C_SWITCH_X_SYSTEM. | ||
| 14832 | |||
| 14833 | 2012-04-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 14834 | |||
| 14835 | * alloc.c (lisp_align_malloc): Remove unneeded prototype. | ||
| 14836 | |||
| 14837 | 2012-04-10 Jason S. Cornez <jcornez@ravenpack.com> (tiny change) | ||
| 14838 | |||
| 14839 | * keyboard.c: Override inhibit-quit after the third C-g (bug#6585). | ||
| 14840 | (force_quit_count): New var. | ||
| 14841 | (handle_interrupt): Use it. | ||
| 14842 | |||
| 14843 | 2012-04-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 14844 | |||
| 14845 | * w32.c (w32_delayed_load): Record the full path of the library | ||
| 14846 | being loaded (bug#10424). | ||
| 14847 | |||
| 14848 | 2012-04-09 Glenn Morris <rgm@gnu.org> | ||
| 14849 | |||
| 14850 | * doc.c (Fsnarf_documentation): Check variables, functions are bound, | ||
| 14851 | not just in the obarray, before snarfing them. (Bug#11036) | ||
| 14852 | |||
| 14853 | * Makefile.in ($(leimdir)/leim-list.el): | ||
| 14854 | Pass EMACS rather than BUILT_EMACS. | ||
| 14855 | |||
| 14856 | 2012-04-09 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 14857 | |||
| 14858 | * process.c (make_process): | ||
| 14859 | * process.h: Add integer `gnutls_handshakes_tried' member to | ||
| 14860 | process struct. | ||
| 14861 | |||
| 14862 | * gnutls.h: Add `GNUTLS_EMACS_HANDSHAKES_LIMIT' upper limit. | ||
| 14863 | Add convenience `GNUTLS_LOG2i' macro. | ||
| 14864 | |||
| 14865 | * gnutls.c (gnutls_log_function2i): Convenience log function. | ||
| 14866 | (emacs_gnutls_read): Use new log functions, | ||
| 14867 | `gnutls_handshakes_tried' process member, and | ||
| 14868 | `GNUTLS_EMACS_HANDSHAKES_LIMIT' to limit the number of handshake | ||
| 14869 | attempts per process (connection). | ||
| 14870 | |||
| 14871 | 2012-04-09 Chong Yidong <cyd@gnu.org> | ||
| 14872 | |||
| 14873 | * eval.c (Fuser_variable_p, user_variable_p_eh) | ||
| 14874 | (lisp_indirect_variable): Functions deleted. | ||
| 14875 | (Fdefvar): Caller changed. | ||
| 14876 | |||
| 14877 | * callint.c (Finteractive, Fcall_interactively): | ||
| 14878 | * minibuf.c (Fread_variable): Callers changed. | ||
| 14879 | |||
| 14880 | 2012-04-09 Eli Zaretskii <eliz@gnu.org> | ||
| 14881 | |||
| 14882 | * xdisp.c (set_cursor_from_row): If the display string appears in | ||
| 14883 | the buffer at position that is closer to point than the position | ||
| 14884 | after the display string, display the cursor on the first glyph of | ||
| 14885 | the display string. Fixes cursor display when a 'display' text | ||
| 14886 | property immediately follows invisible text. (Bug#11094) | ||
| 14887 | |||
| 14888 | 2012-04-09 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14889 | |||
| 14890 | composite.c: use 'double' consistently | ||
| 14891 | * composite.c (get_composition_id): Use 'double' consistently | ||
| 14892 | instead of converting 'float' to 'double' and vice versa; this is | ||
| 14893 | easier to understand and avoids a GCC warning. | ||
| 14894 | |||
| 14895 | 2012-04-09 Glenn Morris <rgm@gnu.org> | ||
| 14896 | |||
| 14897 | * Makefile.in: Generate leim-list with bootstrap-emacs, in | ||
| 14898 | preparation for dumping it with emacs. (Bug#4789) | ||
| 14899 | (leimdir): New variable. | ||
| 14900 | ($(leimdir)/leim-list.el): New rule. | ||
| 14901 | (emacs$(EXEEXT)): Depend on leim-list.el. | ||
| 14902 | |||
| 14903 | * buffer.c (Qucs_set_table_for_input): Remove. (Bug#9821) | ||
| 14904 | (Fget_buffer_create): Don't call Qucs_set_table_for_input. | ||
| 14905 | (init_buffer_once, syms_of_buffer): Remove Qucs_set_table_for_input. | ||
| 14906 | |||
| 14907 | 2012-04-08 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14908 | |||
| 14909 | * lisp.h (struct Lisp_Symbol): Add explicit padding to ensure | ||
| 14910 | proper alignment. | ||
| 14911 | |||
| 14912 | 2012-04-07 Juanma Barranquero <lekktu@gmail.com> | ||
| 14913 | |||
| 14914 | * xml.c (init_libxml2_functions) [WINDOWSNT]: | ||
| 14915 | Remove unused local variable. | ||
| 14916 | |||
| 14917 | 2012-04-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14918 | |||
| 14919 | Avoid unnecessary pointer scanning in garbage collection (Bug#10780). | ||
| 14920 | * alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): New macro. | ||
| 14921 | (mark_memory): Mark Lisp_Objects only if pointers might hide in | ||
| 14922 | objects, as mark_maybe_pointer will catch them otherwise. | ||
| 14923 | (GC_LISP_OBJECT_ALIGNMENT): Remove; no longer needed. | ||
| 14924 | * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT) [__mc68000__]: Likewise. | ||
| 14925 | |||
| 14926 | 2012-04-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14927 | |||
| 14928 | Fix typo that broke non-Windows builds. | ||
| 14929 | * xml.c (libxml2_loaded_p) [!!WINDOWSNT]: 'inine' -> 'inline'. | ||
| 14930 | |||
| 14931 | 2012-04-07 Eli Zaretskii <eliz@gnu.org> | ||
| 14932 | |||
| 14933 | Support building on MS-Windows with libxml2. | ||
| 14934 | |||
| 14935 | * makefile.w32-in (OBJ2): Add xml.$(O). | ||
| 14936 | (GLOBAL_SOURCES): Add xml.c. | ||
| 14937 | ($(BLD)/xml.$(O)): New dependency list. | ||
| 14938 | |||
| 14939 | * xml.c (DEF_XML2_FN, LOAD_XML2_FN) [WINDOWSNT]: New macros. | ||
| 14940 | (fn_htmlReadMemory, fn_xmlReadMemory, fn_xmlDocGetRootElement) | ||
| 14941 | (fn_xmlFreeDoc, fn_xmlCleanupParser, fn_xmlCheckVersion) | ||
| 14942 | [!WINDOWSNT]: New macros. | ||
| 14943 | (init_libxml2_functions, libxml2_loaded_p): New functions. | ||
| 14944 | (parse_region): Call fn_xmlCheckVersion instead of using the macro | ||
| 14945 | LIBXML_TEST_VERSION. Call libxml2 functions via the fn_* macros. | ||
| 14946 | (xml_cleanup_parser): New function, export for fn_xmlCleanupParser. | ||
| 14947 | Calls xmlCleanupParser only if libxml2 was loaded (or statically | ||
| 14948 | linked in). | ||
| 14949 | (Flibxml_parse_html_region, Flibxml_parse_xml_region): | ||
| 14950 | Call init_libxml2_functions before calling libxml2 functions. | ||
| 14951 | (syms_of_xml) <Qlibxml2_dll>: DEFSYM it. | ||
| 14952 | |||
| 14953 | * emacs.c: Don't include libxml/parser.h. | ||
| 14954 | (shut_down_emacs): Call xml_cleanup_parser, instead of calling | ||
| 14955 | xmlCleanupParser directly. | ||
| 14956 | |||
| 14957 | * lisp.h [HAVE_LIBXML2]: Add prototype for xml_cleanup_parser. | ||
| 14958 | |||
| 14959 | 2012-04-07 Eli Zaretskii <eliz@gnu.org> | ||
| 14960 | |||
| 14961 | * indent.c (Fvertical_motion): If there is a display string at | ||
| 14962 | point, use it.vpos to compute how many lines to backtrack after | ||
| 14963 | move_it_to point. (Bug#11133) | ||
| 14964 | |||
| 14965 | 2012-04-06 Eli Zaretskii <eliz@gnu.org> | ||
| 14966 | |||
| 14967 | * buffer.h (FETCH_CHAR, FETCH_MULTIBYTE_CHAR): | ||
| 14968 | * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Add comments | ||
| 14969 | about subtle differences between FETCH_CHAR* and STRING_CHAR* | ||
| 14970 | macros related to unification of CJK characters. For the details, | ||
| 14971 | see the discussion following the message here: | ||
| 14972 | http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11073#14. | ||
| 14973 | |||
| 14974 | 2012-04-04 Chong Yidong <cyd@gnu.org> | ||
| 14975 | |||
| 14976 | * keyboard.c (Vdelayed_warnings_list): Doc fix. | ||
| 14977 | |||
| 14978 | 2012-04-01 Eli Zaretskii <eliz@gnu.org> | ||
| 14979 | |||
| 14980 | * w32menu.c (simple_dialog_show, add_menu_item): Use SAFE_ALLOCA | ||
| 14981 | instead of alloca. (Bug#11138) | ||
| 14982 | |||
| 14983 | 2012-04-01 Andreas Schwab <schwab@linux-m68k.org> | ||
| 14984 | |||
| 14985 | * w32menu.c (is_simple_dialog): Properly check lisp types. | ||
| 14986 | (Bug#11141) | ||
| 14987 | |||
| 14988 | 2012-03-31 Eli Zaretskii <eliz@gnu.org> | ||
| 14989 | |||
| 14990 | * xdisp.c (move_it_by_lines): When DVPOS is positive, and the | ||
| 14991 | position we get to after a call to move_it_to fails the | ||
| 14992 | IS_POS_VALID_AFTER_MOVE_P test, move to the next buffer position | ||
| 14993 | only if we wind up in a string from display property. (Bug#11063) | ||
| 14994 | |||
| 14995 | * window.c (Fdelete_other_windows_internal): Invalidate the row | ||
| 14996 | and column information about mouse highlight, so that redisplay | ||
| 14997 | restores it after reallocating the glyph matrices. (Bug#7464) | ||
| 14998 | |||
| 14999 | * xdisp.c (set_cursor_from_row): If `cursor' property on a display | ||
| 15000 | string comes from a `display' text property, use the buffer | ||
| 15001 | position of that property as if we actually saw that position in | ||
| 15002 | the row's glyphs. | ||
| 15003 | (move_it_by_lines): Remove the assertion that | ||
| 15004 | "it->current_x == 0 && it->hpos == 0" which can be legitimately | ||
| 15005 | violated when there's a before-string at the beginning of a line. | ||
| 15006 | (Bug#11063) | ||
| 15007 | |||
| 15008 | 2012-03-30 Eli Zaretskii <eliz@gnu.org> | ||
| 15009 | |||
| 15010 | * xdisp.c (append_space_for_newline): If the default face was | ||
| 15011 | remapped, use the remapped face for the appended newline. | ||
| 15012 | (extend_face_to_end_of_line): Use the remapped default face for | ||
| 15013 | extending the face to the end of the line. | ||
| 15014 | (display_line): Call extend_face_to_end_of_line when the default | ||
| 15015 | face was remapped. (Bug#11068) | ||
| 15016 | |||
| 15017 | 2012-03-29 Eli Zaretskii <eliz@gnu.org> | ||
| 15018 | |||
| 15019 | * s/ms-w32.h: Discourage from defining HAVE_GETCWD. | ||
| 15020 | |||
| 15021 | 2012-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15022 | |||
| 15023 | * keyboard.c (safe_run_hooks_error): Don't unquote strings. | ||
| 15024 | |||
| 15025 | 2012-03-27 Glenn Morris <rgm@gnu.org> | ||
| 15026 | |||
| 15027 | * search.c (Fword_search_backward_lax, Fword_search_forward_lax): | ||
| 15028 | Doc fixes. | ||
| 15029 | |||
| 15030 | 2012-03-26 Kenichi Handa <handa@m17n.org> | ||
| 15031 | |||
| 15032 | * dispextern.h (struct glyph): Fix previous change. Change the | ||
| 15033 | bit length of glyphless.ch to 25 (Bug#11082). | ||
| 15034 | |||
| 15035 | 2012-03-26 Chong Yidong <cyd@gnu.org> | ||
| 15036 | |||
| 15037 | * keyboard.c (Vselection_inhibit_update_commands): New variable. | ||
| 15038 | (command_loop_1): Use it; inhibit selection update for | ||
| 15039 | handle-select-window too (Bug#8996). | ||
| 15040 | |||
| 15041 | 2012-03-25 Fabrice Popineau <fabrice.popineau@supelec.fr> | ||
| 15042 | |||
| 15043 | * w32heap.c (_heap_init, _heap_term): Remove dead MSVC-specific code. | ||
| 15044 | |||
| 15045 | 2012-03-25 Kenichi Handa <handa@m17n.org> | ||
| 15046 | |||
| 15047 | * dispextern.h (struct glyph): Change the bit length of | ||
| 15048 | glyphless.ch to 22 to make the member glyphless fit in 32 bits. | ||
| 15049 | |||
| 15050 | 2012-03-24 Eli Zaretskii <eliz@gnu.org> | ||
| 15051 | |||
| 15052 | * s/ms-w32.h (tzname): Include time.h before redirecting to | ||
| 15053 | _tzname. Fixes the MSVC build. (Bug#9960) | ||
| 15054 | |||
| 15055 | 2012-03-24 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15056 | |||
| 15057 | * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6 | ||
| 15058 | characters. | ||
| 15059 | |||
| 15060 | * xterm.c (XTread_socket): Only modify handling_signal if | ||
| 15061 | !SYNC_INPUT. (Bug#11080) | ||
| 15062 | |||
| 15063 | 2012-03-23 Eli Zaretskii <eliz@gnu.org> | ||
| 15064 | |||
| 15065 | * bidi.c (bidi_fetch_char): Use STRING_CHAR_AND_LENGTH instead of | ||
| 15066 | FETCH_MULTIBYTE_CHAR followed by CHAR_BYTES. Prevents crashes | ||
| 15067 | when fetching a multibyte character consumes more bytes than | ||
| 15068 | CHAR_BYTES returns, due to unification of CJK characters in | ||
| 15069 | string_char. (Bug#11073) | ||
| 15070 | |||
| 15071 | 2012-03-23 Troels Nielsen <bn.troels@gmail.com> (tiny change) | ||
| 15072 | |||
| 15073 | * process.c (wait_reading_process_output): Handle pty disconnect | ||
| 15074 | by refraining from sending oneself a SIGCHLD (bug#10933). | ||
| 15075 | |||
| 15076 | 2012-03-22 Chong Yidong <cyd@gnu.org> | ||
| 15077 | |||
| 15078 | * dispextern.h (struct it): New member string_from_prefix_prop_p. | ||
| 15079 | |||
| 15080 | * xdisp.c (push_prefix_prop): Rename from push_display_prop. | ||
| 15081 | Mark string as coming from a prefix property. | ||
| 15082 | (handle_face_prop): Use default face for prefix strings (Bug#4281). | ||
| 15083 | (pop_it, reseat_1): Save and restore string_from_prefix_prop_p. | ||
| 15084 | |||
| 15085 | 2012-03-21 Chong Yidong <cyd@gnu.org> | ||
| 15086 | |||
| 15087 | * xfaces.c (Vface_remapping_alist): Doc fix. | ||
| 15088 | |||
| 15089 | 2012-03-20 Eli Zaretskii <eliz@gnu.org> | ||
| 15090 | |||
| 15091 | * w32proc.c (Fw32_set_console_codepage) | ||
| 15092 | (Fw32_set_console_output_codepage, Fw32_get_codepage_charset): | ||
| 15093 | Doc fixes. | ||
| 15094 | |||
| 15095 | 2012-03-20 Chong Yidong <cyd@gnu.org> | ||
| 15096 | |||
| 15097 | * dispnew.c (Fredisplay, Vredisplay_preemption_period): Update doc | ||
| 15098 | to reflect default non-nil value of redisplay-dont-pause. | ||
| 15099 | |||
| 15100 | 2012-03-19 Kenichi Handa <handa@m17n.org> | ||
| 15101 | |||
| 15102 | * ftfont.c (ftfont_drive_otf): Mask bits of character code to make | ||
| 15103 | it fit in a valid range (Bug#11003). | ||
| 15104 | |||
| 15105 | 2012-03-18 Eli Zaretskii <eliz@gnu.org> | ||
| 15106 | |||
| 15107 | * xdisp.c (cursor_row_p): Even if the glyph row ends in a string | ||
| 15108 | that is not from display property, accept the row as a "cursor | ||
| 15109 | row" if one of the string's character has a non-nil `cursor' | ||
| 15110 | property. Fixes cursor positioning when there are newlines in | ||
| 15111 | overlay strings, e.g. in icomplete.el. (Bug#11035) | ||
| 15112 | |||
| 15113 | 2012-03-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15114 | |||
| 15115 | * buffer.c (compare_overlays): Don't assume args differ (Bug#6830). | ||
| 15116 | |||
| 15117 | 2012-03-12 Chong Yidong <cyd@gnu.org> | ||
| 15118 | |||
| 15119 | * eval.c (inhibit_lisp_code): Rename from | ||
| 15120 | inhibit_window_configuration_change_hook; move from window.c. | ||
| 15121 | |||
| 15122 | * xfns.c (unwind_create_frame_1, Fx_create_frame): | ||
| 15123 | * window.c (run_window_configuration_change_hook) | ||
| 15124 | (syms_of_window): Callers changed. | ||
| 15125 | |||
| 15126 | 2012-03-11 Chong Yidong <cyd@gnu.org> | ||
| 15127 | |||
| 15128 | * keymap.c (Fkey_description): Doc fix (Bug#9700). | ||
| 15129 | |||
| 15130 | * editfns.c (Fconstrain_to_field): Doc fix (Bug#9452). | ||
| 15131 | |||
| 15132 | 2012-03-10 Chong Yidong <cyd@gnu.org> | ||
| 15133 | |||
| 15134 | * frame.c (other_visible_frames): Don't assume the selected frame | ||
| 15135 | is visible (Bug#10955). | ||
| 15136 | |||
| 15137 | 2012-03-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15138 | |||
| 15139 | * buffer.c (compare_overlays): Avoid qsort's instability (bug#6830). | ||
| 15140 | |||
| 15141 | 2012-03-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15142 | |||
| 15143 | * gtkutil.c (x_wm_set_size_hint): Use one row in call to | ||
| 15144 | FRAME_TEXT_LINES_TO_PIXEL_HEIGHT so base_height is greater than | ||
| 15145 | zero (Bug#10954). | ||
| 15146 | |||
| 15147 | 2012-03-03 Glenn Morris <rgm@gnu.org> | ||
| 15148 | |||
| 15149 | * alloc.c (Fgarbage_collect, misc-objects-consed): Doc fixes. | ||
| 15150 | |||
| 15151 | 2012-03-02 Eli Zaretskii <eliz@gnu.org> | ||
| 15152 | |||
| 15153 | * xdisp.c (try_window_reusing_current_matrix): Don't move cursor | ||
| 15154 | position past the first glyph_row that ends at ZV. (Bug#10902) | ||
| 15155 | (redisplay_window, next_element_from_string): Fix typos in | ||
| 15156 | comments. | ||
| 15157 | (redisplay_window): Pass to move_it_vertically the margin in | ||
| 15158 | pixels, not in screen lines. | ||
| 15159 | |||
| 15160 | 2012-03-02 Glenn Morris <rgm@gnu.org> | ||
| 15161 | |||
| 15162 | * buffer.c (buffer-list-update-hook): Doc fix. | ||
| 15163 | |||
| 15164 | 2012-02-29 Eli Zaretskii <eliz@gnu.org> | ||
| 15165 | |||
| 15166 | * xdisp.c (get_overlay_strings_1): Under bidi redisplay, call | ||
| 15167 | push_it before setting up the iterator for the first overlay | ||
| 15168 | string, even if we have an empty string loaded. | ||
| 15169 | (next_overlay_string): If there's an empty string on the iterator | ||
| 15170 | stack, pop the stack. (Bug#10903) | ||
| 15171 | |||
| 15172 | 2012-02-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15173 | |||
| 15174 | Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780). | ||
| 15175 | Suggested by Stefan Monnier in | ||
| 15176 | <http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00692.html>. | ||
| 15177 | * alloc.c (widen_to_Lisp_Object): New static function. | ||
| 15178 | (mark_memory): Also mark Lisp_Objects by fetching pointer words | ||
| 15179 | and widening them to Lisp_Objects. This would work even if | ||
| 15180 | USE_LSB_TAG is defined and wide integers are used, which might | ||
| 15181 | happen in a future version of Emacs. | ||
| 15182 | |||
| 15183 | 2012-02-25 Chong Yidong <cyd@gnu.org> | ||
| 15184 | |||
| 15185 | * fileio.c (Ffile_selinux_context, Fset_file_selinux_context): | ||
| 15186 | Doc fix. | ||
| 15187 | |||
| 15188 | * xselect.c (Fx_selection_exists_p): Doc fix. | ||
| 15189 | (x_clipboard_manager_save_all): Print an informative message | ||
| 15190 | before saving to clipboard manager. | ||
| 15191 | |||
| 15192 | 2012-02-24 Chong Yidong <cyd@gnu.org> | ||
| 15193 | |||
| 15194 | * keyboard.c (process_special_events): Handle all X selection | ||
| 15195 | requests in kbd_buffer, not just the next one (Bug#8869). | ||
| 15196 | |||
| 15197 | 2012-02-23 Chong Yidong <cyd@gnu.org> | ||
| 15198 | |||
| 15199 | * xfns.c (Fx_create_frame): Avoid window-configuration-change-hook | ||
| 15200 | call when setting menu-bar-lines and tool-bar-lines parameters. | ||
| 15201 | (unwind_create_frame_1): New helper function. | ||
| 15202 | |||
| 15203 | * window.c (inhibit_window_configuration_change_hook): New var. | ||
| 15204 | (run_window_configuration_change_hook): Obey it. | ||
| 15205 | (syms_of_window): Initialize it. | ||
| 15206 | |||
| 15207 | 2012-02-22 Chong Yidong <cyd@gnu.org> | ||
| 15208 | |||
| 15209 | * xterm.c (x_draw_image_relief): Add missing type check for | ||
| 15210 | Vtool_bar_button_margin (Bug#10743). | ||
| 15211 | |||
| 15212 | 2012-02-21 Chong Yidong <cyd@gnu.org> | ||
| 15213 | |||
| 15214 | * fileio.c (Vfile_name_handler_alist): Doc fix. | ||
| 15215 | |||
| 15216 | * buffer.c (Fget_file_buffer): Protect against invalid file | ||
| 15217 | handler return value. | ||
| 15218 | |||
| 15219 | 2012-02-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15220 | |||
| 15221 | * .gdbinit (xreload): Don't assume EMACS_INT fits in 'long' | ||
| 15222 | when computing $valmask. | ||
| 15223 | |||
| 15224 | Fix crash due to non-contiguous EMACS_INT (Bug#10780). | ||
| 15225 | * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it. | ||
| 15226 | (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0. | ||
| 15227 | It's useless in that case, and it can cause problems on hosts | ||
| 15228 | that allocate halves of EMACS_INT values separately. | ||
| 15229 | Reported by Dan Horák. Diagnosed by Andreas Schwab in | ||
| 15230 | <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>. | ||
| 15231 | * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where | ||
| 15232 | UINTPTR_MAX >> VALBITS == 0. This is required by the above change; | ||
| 15233 | it avoids undefined behavior on hosts where shifting right by more | ||
| 15234 | than the word width has undefined behavior. | ||
| 15235 | |||
| 15236 | 2012-02-19 Chong Yidong <cyd@gnu.org> | ||
| 15237 | |||
| 15238 | * fileio.c (Ffile_name_directory, Ffile_name_nondirectory) | ||
| 15239 | (Funhandled_file_name_directory, Ffile_name_as_directory) | ||
| 15240 | (Fdirectory_file_name, Fexpand_file_name) | ||
| 15241 | (Fsubstitute_in_file_name): Protect against invalid file handler | ||
| 15242 | return values (Bug#10845). | ||
| 15243 | |||
| 15244 | 2012-02-18 Eli Zaretskii <eliz@gnu.org> | ||
| 15245 | |||
| 15246 | * .gdbinit (pitx): Fix incorrect references to fields of the | ||
| 15247 | iterator stack. | ||
| 15248 | |||
| 15249 | 2012-02-17 Chong Yidong <cyd@gnu.org> | ||
| 15250 | |||
| 15251 | * syntax.c (Fscan_lists): Doc fix (Bug#10833). | ||
| 15252 | |||
| 15253 | 2012-02-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15254 | |||
| 15255 | * image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see | ||
| 15256 | <http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>. | ||
| 15257 | |||
| 15258 | 2012-02-15 Chong Yidong <cyd@gnu.org> | ||
| 15259 | |||
| 15260 | * eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is | ||
| 15261 | marked as special. Also, starting docstrings with * is obsolete. | ||
| 15262 | |||
| 15263 | 2012-02-13 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15264 | |||
| 15265 | * gnutls.c (emacs_gnutls_write): Fix last change. | ||
| 15266 | |||
| 15267 | 2012-02-13 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 15268 | |||
| 15269 | * gnutls.c (emacs_gnutls_write): Set errno appropriately for | ||
| 15270 | send_process. | ||
| 15271 | |||
| 15272 | 2012-02-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15273 | |||
| 15274 | * keymap.c (Fsingle_key_description): Handle char ranges. | ||
| 15275 | |||
| 15276 | 2012-02-12 Chong Yidong <cyd@gnu.org> | ||
| 15277 | |||
| 15278 | * xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here, | ||
| 15279 | as that creates a dangerous corner case. | ||
| 15280 | |||
| 15281 | * window.c (Fdelete_window_internal): Invalidate the mouse | ||
| 15282 | highlight (Bug#9904). | ||
| 15283 | |||
| 15284 | 2012-02-12 Glenn Morris <rgm@gnu.org> | ||
| 15285 | |||
| 15286 | * xselect.c (Fx_own_selection_internal) | ||
| 15287 | (Fx_get_selection_internal, Fx_disown_selection_internal) | ||
| 15288 | (Fx_selection_owner_p, Fx_selection_exists_p): Doc fixes. | ||
| 15289 | * nsselect.m (Fx_own_selection_internal) | ||
| 15290 | (Fx_disown_selection_internal, Fx_selection_exists_p) | ||
| 15291 | (Fx_selection_owner_p, Fx_get_selection_internal): | ||
| 15292 | Sync docs and argument specs with the xselect.c versions. | ||
| 15293 | |||
| 15294 | 2012-02-11 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 15295 | |||
| 15296 | * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails. | ||
| 15297 | |||
| 15298 | 2012-02-11 Eli Zaretskii <eliz@gnu.org> | ||
| 15299 | |||
| 15300 | * w32select.c (Fx_selection_exists_p): Sync doc string and | ||
| 15301 | argument list with xselect.c. (Bug#10783) | ||
| 15302 | |||
| 15303 | * w16select.c (Fx_selection_exists_p): Sync doc string and | ||
| 15304 | argument list with xselect.c. (Bug#10783) | ||
| 15305 | |||
| 15306 | 2012-02-10 Glenn Morris <rgm@gnu.org> | ||
| 15307 | |||
| 15308 | * fns.c (Fsecure_hash): Doc fix. | ||
| 15309 | |||
| 15310 | 2012-02-09 Kenichi Handa <handa@m17n.org> | ||
| 15311 | |||
| 15312 | * coding.c (produce_chars): Fix updating of src_end (Bug#10701). | ||
| 15313 | |||
| 15314 | 2012-02-07 Chong Yidong <cyd@gnu.org> | ||
| 15315 | |||
| 15316 | * buffer.c (Fbuffer_local_variables) | ||
| 15317 | (buffer_lisp_local_variables): Handle unbound vars correctly; | ||
| 15318 | don't let Qunbound leak into Lisp. | ||
| 15319 | |||
| 15320 | 2012-02-07 Glenn Morris <rgm@gnu.org> | ||
| 15321 | |||
| 15322 | * image.c (Fimagemagick_types): Doc fix. | ||
| 15323 | |||
| 15324 | * image.c (imagemagick-render-type): Change it from a lisp object | ||
| 15325 | to an integer. Move the doc here from the lisp manual. | ||
| 15326 | Treat all values not equal to 0 the same. | ||
| 15327 | |||
| 15328 | 2012-02-06 Chong Yidong <cyd@gnu.org> | ||
| 15329 | |||
| 15330 | * doc.c (store_function_docstring): Avoid applying docstring of | ||
| 15331 | alias to base function (Bug#2603). | ||
| 15332 | |||
| 15333 | 2012-02-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15334 | |||
| 15335 | * .gdbinit (pp1, pv1): Remove redundant defines. | ||
| 15336 | (pr): Use pp. | ||
| 15337 | |||
| 15338 | 2012-02-04 Chong Yidong <cyd@gnu.org> | ||
| 15339 | |||
| 15340 | * nsterm.m: Declare a global (Bug#10694). | ||
| 15341 | |||
| 15342 | 2012-02-04 Eli Zaretskii <eliz@gnu.org> | ||
| 15343 | |||
| 15344 | * w32.c (get_emacs_configuration_options): | ||
| 15345 | Include --enable-checking, if specified, in the return value. | ||
| 15346 | |||
| 15347 | 2012-02-04 Martin Rudalics <rudalics@gmx.at> | ||
| 15348 | |||
| 15349 | * dispnew.c (change_frame_size_1): Calculate new_frame_total_cols | ||
| 15350 | after rounding frame sizes. (Bug#9723) | ||
| 15351 | |||
| 15352 | 2012-02-04 Eli Zaretskii <eliz@gnu.org> | ||
| 15353 | |||
| 15354 | * keyboard.c (adjust_point_for_property): Don't position point | ||
| 15355 | before BEGV. (Bug#10696) | ||
| 15356 | |||
| 15357 | 2012-02-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15358 | |||
| 15359 | Handle overflow when computing char display width (Bug#9496). | ||
| 15360 | * character.c (char_width): Return EMACS_INT, not int. | ||
| 15361 | (char_width, c_string_width): Check for overflow when | ||
| 15362 | computing the width; this is possible now that individual | ||
| 15363 | characters can have unbounded width. Problem introduced | ||
| 15364 | by merge from Emacs 23 on 2012-01-19. | ||
| 15365 | |||
| 15366 | 2012-02-02 Michael Albinus <michael.albinus@gmx.de> | ||
| 15367 | |||
| 15368 | * dbusbind.c (Fdbus_register_method): Mention the return value | ||
| 15369 | :ignore in the docstring. | ||
| 15370 | |||
| 15371 | 2012-02-02 Glenn Morris <rgm@gnu.org> | ||
| 15372 | |||
| 15373 | * callproc.c (Fcall_process, Fcall_process_region): Doc fix. | ||
| 15374 | |||
| 15375 | * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>: | ||
| 15376 | Unconditionally set to t. (Bug#10673) | ||
| 15377 | * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>: | ||
| 15378 | * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>: | ||
| 15379 | * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix. | ||
| 15380 | |||
| 15381 | 2012-02-02 Kenichi Handa <handa@m17n.org> | ||
| 15382 | |||
| 15383 | (x_produce_glyphs): Cancel previous change. If cmp->glyph_len is | ||
| 15384 | 0, do not call append_composite_glyph. | ||
| 15385 | |||
| 15386 | 2012-02-02 Kenichi Handa <handa@m17n.org> | ||
| 15387 | |||
| 15388 | * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to | ||
| 15389 | NULL (Bug#6988). | ||
| 15390 | (x_produce_glyphs): If the component of a composition is a null | ||
| 15391 | string, set it->pixel_width to 1 to avoid zero-width glyph. | ||
| 15392 | |||
| 15393 | 2012-02-01 Eli Zaretskii <eliz@gnu.org> | ||
| 15394 | |||
| 15395 | * ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its | ||
| 15396 | first 2 arguments are identical. This makes inserting large | ||
| 15397 | output from a subprocess an order of magnitude faster on | ||
| 15398 | MS-Windows, where all sbrk'ed memory is always contiguous. | ||
| 15399 | |||
| 15400 | 2012-01-31 Glenn Morris <rgm@gnu.org> | ||
| 15401 | |||
| 15402 | * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>: | ||
| 15403 | * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>: | ||
| 15404 | * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs. | ||
| 15405 | |||
| 15406 | 2012-01-29 Glenn Morris <rgm@gnu.org> | ||
| 15407 | |||
| 15408 | * gnutls.c (syms_of_gnutls): More doc (from etc/NEWS). | ||
| 15409 | |||
| 15410 | 2012-01-28 Samuel Thibault <sthibault@debian.org> (tiny change) | ||
| 15411 | |||
| 15412 | * s/gnu.h: Define POSIX_SIGNALS (Bug#10552). | ||
| 15413 | |||
| 15414 | 2012-01-28 Chong Yidong <cyd@gnu.org> | ||
| 15415 | |||
| 15416 | * minibuf.c (syms_of_minibuf): Doc fix (Bug#10550). | ||
| 15417 | |||
| 15418 | 2012-01-26 Chong Yidong <cyd@gnu.org> | ||
| 15419 | |||
| 15420 | * keyboard.c (Vecho_keystrokes): Document zero value (Bug#10503). | ||
| 15421 | |||
| 15422 | * search.c (Fsearch_forward, Fsearch_backward): Document negative | ||
| 15423 | repeat counts (Bug#10507). | ||
| 15424 | |||
| 15425 | 2012-01-26 Glenn Morris <rgm@gnu.org> | ||
| 15426 | |||
| 15427 | * lread.c (syms_of_lread): Doc fix. | ||
| 15428 | |||
| 15429 | 2012-01-25 HIROSHI OOTA <nil@mad.dog.cx> (tiny change) | ||
| 15430 | |||
| 15431 | * coding.c (encode_designation_at_bol): Change return value to | ||
| 15432 | EMACS_INT. | ||
| 15433 | |||
| 15434 | 2012-01-25 Chong Yidong <cyd@gnu.org> | ||
| 15435 | |||
| 15436 | * eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p. | ||
| 15437 | |||
| 15438 | 2012-01-21 Chong Yidong <cyd@gnu.org> | ||
| 15439 | |||
| 15440 | * floatfns.c (Fcopysign): Make the second argument non-optional, | ||
| 15441 | since nil is not allowed anyway. | ||
| 15442 | |||
| 15443 | 2012-01-21 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15444 | |||
| 15445 | * process.c (read_process_output): Use p instead of XPROCESS (proc). | ||
| 15446 | (send_process): Likewise. | ||
| 15447 | |||
| 15448 | 2012-01-19 Martin Rudalics <rudalics@gmx.at> | ||
| 15449 | |||
| 15450 | * window.c (save_window_save, Fcurrent_window_configuration) | ||
| 15451 | (Vwindow_persistent_parameters): Do not use Qstate. | ||
| 15452 | Rewrite doc-strings. | ||
| 15453 | |||
| 15454 | 2012-01-19 Kenichi Handa <handa@m17n.org> | ||
| 15455 | |||
| 15456 | * character.c (char_width): New function. | ||
| 15457 | (Fchar_width, c_string_width, lisp_string_width): | ||
| 15458 | Use char_width (Bug#9496). | ||
| 15459 | |||
| 15460 | 2012-01-16 Martin Rudalics <rudalics@gmx.at> | ||
| 15461 | |||
| 15462 | * window.c (Vwindow_persistent_parameters): New variable. | ||
| 15463 | (Fset_window_configuration, save_window_save): Handle persistent | ||
| 15464 | window parameters. | ||
| 15465 | |||
| 15466 | 2012-01-14 Eli Zaretskii <eliz@gnu.org> | ||
| 15467 | |||
| 15468 | * w32fns.c (signal_user_input): Don't do a QUIT, to avoid | ||
| 15469 | thrashing the stack of the thread. (Bug#9087) | ||
| 15470 | |||
| 15471 | 2012-01-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15472 | |||
| 15473 | * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses. | ||
| 15474 | |||
| 15475 | 2012-01-11 Eli Zaretskii <eliz@gnu.org> | ||
| 15476 | |||
| 15477 | * xdisp.c (rows_from_pos_range): Handle the case where the | ||
| 15478 | highlight ends on a newline. (Bug#10464) | ||
| 15479 | (mouse_face_from_buffer_pos): Fix off-by-one error in calculating | ||
| 15480 | he end column for display of highlight that ends on a newline | ||
| 15481 | before a R2L line. | ||
| 15482 | |||
| 15483 | 2012-01-11 Glenn Morris <rgm@gnu.org> | ||
| 15484 | |||
| 15485 | * lread.c (init_lread): If no-site-lisp, remove site-lisp dirs | ||
| 15486 | from load-path also when installation-directory is nil. (Bug#10208) | ||
| 15487 | |||
| 15488 | 2012-01-10 Glenn Morris <rgm@gnu.org> | ||
| 15489 | |||
| 15490 | * emacs.c (syms_of_emacs) <installation-directory>: Doc fix. | ||
| 15491 | |||
| 15492 | * epaths.in (PATH_LOADSEARCH, PATH_EXEC, PATH_DATA, PATH_DOC): | ||
| 15493 | Update template values to be closer to their typical values these days. | ||
| 15494 | |||
| 15495 | 2012-01-09 Eli Zaretskii <eliz@gnu.org> | ||
| 15496 | |||
| 15497 | * xdisp.c (rows_from_pos_range): Accept additional argument | ||
| 15498 | DISP_STRING, and accept any glyph in a row whose object is that | ||
| 15499 | string as eligible for mouse highlight. Fixes mouse highlight of | ||
| 15500 | display strings from overlays. (Bug#10464) | ||
| 15501 | |||
| 15502 | 2012-01-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15503 | |||
| 15504 | emacs: fix an auto-save permissions race condition (Bug#10400) | ||
| 15505 | * fileio.c (auto_saving_dir_umask): New static var. | ||
| 15506 | (Fmake_directory_internal): Use it. | ||
| 15507 | (do_auto_save_make_dir): Set it, instead of invoking chmod after | ||
| 15508 | creating the directory. The old code temporarily assigns | ||
| 15509 | too-generous permissions to the directory. | ||
| 15510 | (do_auto_save_eh): Clear it. | ||
| 15511 | (Fdo_auto_save): Catch all errors, not just file errors, so | ||
| 15512 | that the var is always cleared. | ||
| 15513 | |||
| 15514 | 2012-01-07 Eli Zaretskii <eliz@gnu.org> | ||
| 15515 | |||
| 15516 | * search.c (scan_buffer): Pass character positions to | ||
| 15517 | know_region_cache, not byte positions. (Bug#6540) | ||
| 15518 | |||
| 15519 | 2012-01-07 LynX <_LynX@bk.ru> (tiny change) | ||
| 15520 | |||
| 15521 | * w32.c (sys_rename): Report EXDEV when rename of a directory | ||
| 15522 | fails because the target is on another logical disk. (Bug#10284) | ||
| 15523 | |||
| 15524 | 2012-01-07 David Benjamin <davidben@mit.edu> (tiny change) | ||
| 15525 | |||
| 15526 | * xterm.c (x_embed_request_focus): New function. | ||
| 15527 | |||
| 15528 | * xterm.h: Add prototype. | ||
| 15529 | |||
| 15530 | * xfns.c (Fx_focus_frame): Use it for embedded frames (Bug#9977). | ||
| 15531 | |||
| 15532 | 2012-01-05 Glenn Morris <rgm@gnu.org> | ||
| 15533 | |||
| 15534 | * emacs.c (emacs_copyright): Update short copyright year to 2012. | ||
| 15535 | |||
| 15536 | 2012-01-01 Eli Zaretskii <eliz@gnu.org> | ||
| 15537 | |||
| 15538 | * gnutls.c (init_gnutls_functions): Load gnutls_check_version. | ||
| 15539 | Load gnutls_transport_set_lowat only if GnuTLS version is below | ||
| 15540 | 2.11.1. | ||
| 15541 | (emacs_gnutls_handshake): Call gnutls_transport_set_lowat only for | ||
| 15542 | GnuTLS versions below 2.11.1. | ||
| 15543 | |||
| 15544 | 2011-12-31 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 15545 | |||
| 15546 | * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Add warning | ||
| 15547 | to the doc string advising against its use for altering the way | ||
| 15548 | windows are scrolled. | ||
| 15549 | |||
| 15550 | 2011-12-28 Kenichi Handa <handa@m17n.org> | ||
| 15551 | |||
| 15552 | * coding.c (Fdefine_coding_system_internal): Make an utf-8 base | ||
| 15553 | coding-system ASCII compatible only when it does not produce BOM | ||
| 15554 | on encoding (Bug#10383). | ||
| 15555 | |||
| 15556 | 2011-12-26 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15557 | |||
| 15558 | * xmenu.c (x_menu_wait_for_event): Use xg_select for Gtk3 so menus | ||
| 15559 | can scroll. | ||
| 15560 | (create_and_show_popup_menu): Always use menu_position_func for | ||
| 15561 | Gtk3 (Bug#10361). | ||
| 15562 | |||
| 15563 | 2011-12-24 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15564 | |||
| 15565 | * callint.c (Fcall_interactively): Don't truncate prompt string. | ||
| 15566 | |||
| 15567 | 2011-12-23 Eli Zaretskii <eliz@gnu.org> | ||
| 15568 | |||
| 15569 | * xdisp.c (handle_invisible_prop): Handle correctly an invisible | ||
| 15570 | property that ends at ZV, so that the bidi iteration could be | ||
| 15571 | resumed from there (after widening). (Bug#10360) | ||
| 15572 | |||
| 15573 | 2011-12-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15574 | |||
| 15575 | * nsfont.m (ns_spec_to_descriptor): Do not autorelease fdesc. | ||
| 15576 | |||
| 15577 | 2011-12-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15578 | |||
| 15579 | * nsterm.m (x_free_frame_resources): | ||
| 15580 | Release f->output_data.ns->miniimage. | ||
| 15581 | (ns_index_color): Fix indentation. Do not retain | ||
| 15582 | color_table->colors[i]. | ||
| 15583 | |||
| 15584 | * nsmenu.m (ns_update_menubar): Call free_menubar_widget_value_tree | ||
| 15585 | before returning. | ||
| 15586 | |||
| 15587 | * nsfns.m (x_set_background_color): Assign return value from | ||
| 15588 | ns_index_color to face-background instead of NSColor*. | ||
| 15589 | (ns_implicitly_set_icon_type): Fix indentation. | ||
| 15590 | Change assignment in for loop to comparison. | ||
| 15591 | |||
| 15592 | * emacs.c (ns_pool): New variable. | ||
| 15593 | (main): Assign ns_pool. | ||
| 15594 | (Fkill_emacs): Call ns_release_autorelease_pool. | ||
| 15595 | |||
| 15596 | * nsfont.m (ns_spec_to_descriptor): Fix indentation, | ||
| 15597 | autorelease fdesc, release fdAttrs and tdict. | ||
| 15598 | (ns_get_covering_families): Release charset. | ||
| 15599 | (ns_findfonts): Release NSFontDescriptor created with new. | ||
| 15600 | (ns_uni_to_glyphs): Fix indentation. | ||
| 15601 | (setString): Release attrStr before assigning new value. | ||
| 15602 | |||
| 15603 | 2011-12-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15604 | |||
| 15605 | * nsmenu.m (NSMenuDidBeginTrackingNotification): Declare if OSX < 10.5 | ||
| 15606 | and NS_IMPL_COCOA. | ||
| 15607 | (trackingNotification): Surround with ifdef NS_IMPL_COCOA. | ||
| 15608 | (syms_of_nsmenu): Set trackingMenu to 1 if not NS_IMPL_COCOA. | ||
| 15609 | |||
| 15610 | 2011-12-18 David Reitter <reitter@cmu.edu> | ||
| 15611 | |||
| 15612 | * nsterm.m (ns_term_init): Subscribe for notifications | ||
| 15613 | NSMenuDidBeginTrackingNotification and NSMenuDidEndTrackingNotification | ||
| 15614 | to method trackingNotification in EmacsMenu. | ||
| 15615 | |||
| 15616 | * nsmenu.m (trackingMenu): New variable. | ||
| 15617 | (trackingNotification): New method (from Aquamacs). | ||
| 15618 | (menuNeedsUpdate): Expand comment and return if trackingMenu is 0, | ||
| 15619 | from Aquamacs (Bug#7030). | ||
| 15620 | |||
| 15621 | 2011-12-18 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15622 | |||
| 15623 | * nsselect.m (CUT_BUFFER_SUPPORT): Remove define. | ||
| 15624 | (symbol_to_nsstring): Fix indentation. | ||
| 15625 | (ns_symbol_to_pb): New function. | ||
| 15626 | (Fns_get_selection_internal): Rename from Fns_get_cut_buffer_internal. | ||
| 15627 | (Fns_rotate_cut_buffers_internal): Remove. | ||
| 15628 | (Fns_store_selection_internal): Rename from | ||
| 15629 | Fns_store_cut_buffer_internal. | ||
| 15630 | (ns_get_foreign_selection, Fx_own_selection_internal) | ||
| 15631 | (Fx_disown_selection_internal, Fx_selection_exists_p) | ||
| 15632 | (Fns_get_selection_internal, Fns_store_selection_internal): | ||
| 15633 | Use ns_symbol_to_pb and check if return value is nil. | ||
| 15634 | (syms_of_nsselect): Remove ifdef CUT_BUFFER_SUPPORT. Remove defsubr | ||
| 15635 | Sns_rotate_cut_buffers_internal. Sns_get_cut_buffer_internal | ||
| 15636 | renamed to Sns_get_selection_internal, Sns_store_cut_buffer_internal | ||
| 15637 | renamed to Sns_store_selection_internal. | ||
| 15638 | (ns_handle_selection_request): Move code to Fx_own_selection_internal | ||
| 15639 | and remove this function. | ||
| 15640 | (ns_handle_selection_clear): Remove, never used. | ||
| 15641 | (Fx_own_selection_internal): Move code from ns_handle_selection_request | ||
| 15642 | here. | ||
| 15643 | |||
| 15644 | 2011-12-17 Ken Brown <kbrown@cornell.edu> | ||
| 15645 | |||
| 15646 | * fileio.c (check_writable) [CYGWIN]: Return non-zero if UID or | ||
| 15647 | GID is unknown (Bug#10257). | ||
| 15648 | |||
| 15649 | 2011-12-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15650 | |||
| 15651 | * s/gnu-linux.h: Fix mark_memory typo (Bug#10286). | ||
| 15652 | (GC_MARK_SECONDARY_STACK): Omit removed 3rd arg to mark_memory, | ||
| 15653 | which caused a build failure on GNU/Linux IA-64. This problem was | ||
| 15654 | introduced by my 2011-10-07 patch. | ||
| 15655 | |||
| 15656 | 2011-12-15 Juri Linkov <juri@jurta.org> | ||
| 15657 | |||
| 15658 | * image.c (imagemagick_error): New function. (Bug#10112) | ||
| 15659 | (imagemagick_load_image): Comment out `MagickSetResolution' call. | ||
| 15660 | Use `imagemagick_error' where ImageMagick functions return | ||
| 15661 | `MagickFalse'. | ||
| 15662 | (Fimagemagick_types): Add `Fnreverse' to return the list in the | ||
| 15663 | proper order. | ||
| 15664 | |||
| 15665 | 2011-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 15666 | |||
| 15667 | * xftfont.c (xftfont_draw): Use the font metrics of s->font to | ||
| 15668 | fill background (Bug#8992). | ||
| 15669 | |||
| 15670 | 2011-12-13 Martin Rudalics <rudalics@gmx.at> | ||
| 15671 | |||
| 15672 | * window.c (Vwindow_combination_resize) | ||
| 15673 | (Vwindow_combination_limit): Use t instead of non-nil in | ||
| 15674 | doc-strings. | ||
| 15675 | (Vrecenter_redisplay): Add first sentence of doc-string on | ||
| 15676 | separate line. | ||
| 15677 | (Frecenter): Fix doc-string typo. | ||
| 15678 | |||
| 15679 | 2011-12-11 Kenichi Handa <handa@m17n.org> | ||
| 15680 | |||
| 15681 | * coding.c (Funencodable_char_position): Pay attention to the | ||
| 15682 | buffer text relocation (Bug#9389). | ||
| 15683 | |||
| 15684 | 2011-12-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15685 | |||
| 15686 | * xterm.c (x_term_init): Move call to gdk_window_add_filter before | ||
| 15687 | gtk_init (Bug#10100). | ||
| 15688 | |||
| 15689 | 2011-12-10 Eli Zaretskii <eliz@gnu.org> | ||
| 15690 | |||
| 15691 | * xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if | ||
| 15692 | IT->string is nil. (Bug#10263) | ||
| 15693 | |||
| 15694 | 2011-12-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15695 | |||
| 15696 | * nsterm.h (x_free_frame_resources): Declare. | ||
| 15697 | |||
| 15698 | * nsfns.m (ns_get_defaults_value): New function (Bug#10103). | ||
| 15699 | (Fns_get_resource, x_get_string_resource): Call ns_get_defaults_value. | ||
| 15700 | |||
| 15701 | * nsterm.h (ns_get_defaults_value): Declare. | ||
| 15702 | |||
| 15703 | * nsterm.m (ns_default): Call ns_get_defaults_value. | ||
| 15704 | |||
| 15705 | 2011-12-09 Eli Zaretskii <eliz@gnu.org> | ||
| 15706 | |||
| 15707 | * xdisp.c (try_scrolling): Don't set scroll_down_p if dy is zero. | ||
| 15708 | (Bug#10170) | ||
| 15709 | |||
| 15710 | 2011-12-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 15711 | |||
| 15712 | * unexelf.c (unexec) [NS_IMPL_GNUSTEP]: Take account of the case | ||
| 15713 | that where the value of an _OBJC_* symbol points to is in the .bss | ||
| 15714 | section (Bug#10240). | ||
| 15715 | |||
| 15716 | 2011-12-08 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | ||
| 15717 | |||
| 15718 | * coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) | ||
| 15719 | after the loop to call ccl_driver at least once (Bug#8619). | ||
| 15720 | |||
| 15721 | 2011-12-08 Kenichi Handa <handa@m17n.org> | ||
| 15722 | |||
| 15723 | * ftfont.c (get_adstyle_property): Fix previous change | ||
| 15724 | (Bug#10233). | ||
| 15725 | |||
| 15726 | 2011-12-07 Juanma Barranquero <lekktu@gmail.com> | ||
| 15727 | |||
| 15728 | * w32.c (init_environment): If no_site_lisp, remove site-lisp | ||
| 15729 | dirs from the default value of EMACSLOADPATH (bug#10208). | ||
| 15730 | |||
| 15731 | 2011-12-07 Glenn Morris <rgm@gnu.org> | ||
| 15732 | |||
| 15733 | * lread.c (init_lread): If no_site_lisp, exclude site-lisp/ in | ||
| 15734 | installation and source directories as well. (Bug#10208) | ||
| 15735 | |||
| 15736 | 2011-12-06 Chong Yidong <cyd@gnu.org> | ||
| 15737 | |||
| 15738 | * minibuf.c (Fread_from_minibuffer): Doc fix (Bug#10228). | ||
| 15739 | |||
| 15740 | 2011-12-06 Glenn Morris <rgm@gnu.org> | ||
| 15741 | |||
| 15742 | * process.c (start_process_unwind): Treat any pid <= 0, except -2, | ||
| 15743 | as an error, not just -1. (Bug#10217) | ||
| 15744 | |||
| 15745 | 2011-12-05 Chong Yidong <cyd@gnu.org> | ||
| 15746 | |||
| 15747 | * keyboard.c (process_special_events): New function. | ||
| 15748 | (swallow_events, Finput_pending_p): Use it (Bug#10195). | ||
| 15749 | |||
| 15750 | 2011-12-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15751 | |||
| 15752 | * coding.c (encode_designation_at_bol): Don't use uninitialized | ||
| 15753 | local variable (Bug#9318). | ||
| 15754 | |||
| 15755 | 2011-12-05 Kenichi Handa <handa@m17n.org> | ||
| 15756 | |||
| 15757 | * ftfont.c (get_adstyle_property): If the font is not BDF nor PCF, | ||
| 15758 | return Qnil (Bug#8046, Bug#10193). | ||
| 15759 | |||
| 15760 | 2011-12-05 Kenichi Handa <handa@m17n.org> | ||
| 15761 | |||
| 15762 | * coding.c (encode_designation_at_bol): New args charbuf_end and | ||
| 15763 | dst. Return the number of produced bytes. Callers changed. | ||
| 15764 | (coding_set_source): Return how many bytes coding->source was | ||
| 15765 | relocated. | ||
| 15766 | (coding_set_destination): Return how many bytes | ||
| 15767 | coding->destination was relocated. | ||
| 15768 | (CODING_DECODE_CHAR, CODING_ENCODE_CHAR, CODING_CHAR_CHARSET) | ||
| 15769 | (CODING_CHAR_CHARSET_P): Adjust for the avove changes. | ||
| 15770 | |||
| 15771 | 2011-12-05 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | ||
| 15772 | |||
| 15773 | * coding.c (CODING_CHAR_CHARSET_P): New macro. | ||
| 15774 | (encode_coding_emacs_mule, encode_coding_iso_2022): Use the above | ||
| 15775 | macro (Bug#9318). | ||
| 15776 | |||
| 15777 | 2011-12-05 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15778 | |||
| 15779 | The following changes are to fix Bug#9318. | ||
| 15780 | |||
| 15781 | * coding.c (CODING_ENCODE_CHAR, CODING_CHAR_CHARSET): New macros. | ||
| 15782 | (encode_coding_emacs_mule, ENCODE_ISO_CHARACTER) | ||
| 15783 | (encode_coding_iso_2022, encode_coding_sjis) | ||
| 15784 | (encode_coding_big5, encode_coding_charset): Use the above macros. | ||
| 15785 | |||
| 15786 | 2011-12-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 15787 | |||
| 15788 | * lisp.h (process_quit_flag): Fix external declaration. | ||
| 15789 | |||
| 15790 | 2011-12-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15791 | |||
| 15792 | Don't macro-inline non-performance-critical code. | ||
| 15793 | * eval.c (process_quit_flag): New function. | ||
| 15794 | * lisp.h (QUIT): Use it. | ||
| 15795 | |||
| 15796 | 2011-12-04 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15797 | |||
| 15798 | * nsfns.m (get_geometry_from_preferences): New function. | ||
| 15799 | (Fx_create_frame): Call get_geometry_from_preferences (Bug#10103). | ||
| 15800 | |||
| 15801 | 2011-12-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15802 | |||
| 15803 | * emacs.c (Qkill_emacs): Define. | ||
| 15804 | (syms_of_emacs): Initialize it. | ||
| 15805 | * keyboard.c (interrupt_signal): Don't call Fkill_emacs here, set | ||
| 15806 | Qquit_flag to `kill-emacs' instead. | ||
| 15807 | (quit_throw_to_read_char): Add parameter `from_signal'. | ||
| 15808 | All callers changed. Call Fkill_emacs if requested and safe. | ||
| 15809 | * lisp.h (QUIT): Call Fkill_emacs if requested. | ||
| 15810 | |||
| 15811 | 2011-12-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15812 | |||
| 15813 | * widget.c (update_wm_hints): Return if wmshell is null. | ||
| 15814 | (widget_update_wm_size_hints): New function. | ||
| 15815 | |||
| 15816 | * widget.h (widget_update_wm_size_hints): Declare. | ||
| 15817 | |||
| 15818 | * xterm.c (x_wm_set_size_hint): If USE_X_TOOLKIT, call | ||
| 15819 | widget_update_wm_size_hints (Bug#10104). | ||
| 15820 | |||
| 15821 | 2011-12-03 Eli Zaretskii <eliz@gnu.org> | ||
| 15822 | |||
| 15823 | * xdisp.c (handle_invisible_prop): If the invisible text ends just | ||
| 15824 | before a newline, prepare the bidi iterator for consuming the | ||
| 15825 | newline, and keep the current paragraph direction. (Bug#10183) | ||
| 15826 | (redisplay_window): Don't let `margin' become negative. (Bug#10192) | ||
| 15827 | |||
| 15828 | 2011-12-02 Juri Linkov <juri@jurta.org> | ||
| 15829 | |||
| 15830 | * search.c (Fword_search_regexp): New Lisp function created from | ||
| 15831 | `wordify'. Change type of arg `lax' from `int' to `Lisp_Object'. | ||
| 15832 | (Fword_search_backward, Fword_search_forward) | ||
| 15833 | (Fword_search_backward_lax, Fword_search_forward_lax): | ||
| 15834 | Use `Fword_search_regexp' instead of `wordify'. Doc fix. | ||
| 15835 | (syms_of_search): Define `Sword_search_regexp'. (Bug#10145) | ||
| 15836 | |||
| 15837 | 2011-12-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15838 | |||
| 15839 | * fileio.c (Finsert_file_contents): Move after-change-function call | ||
| 15840 | to before the "handled:" label, since all "goto handled" appear in | ||
| 15841 | cases where the *-change-functions have already been properly called | ||
| 15842 | (bug#10117). | ||
| 15843 | |||
| 15844 | 2011-12-01 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15845 | |||
| 15846 | * keyboard.c (interrupt_signal): Don't call kill-emacs when | ||
| 15847 | waiting for input. (Bug#10169) | ||
| 15848 | |||
| 15849 | 2011-11-30 Eli Zaretskii <eliz@gnu.org> | ||
| 15850 | |||
| 15851 | * dispnew.c (adjust_glyph_matrix): Remove the assertion that | ||
| 15852 | verifies glyph row's hash code--we have just reallocated the | ||
| 15853 | glyphs, so their contents can be complete garbage. (Bug#10164) | ||
| 15854 | |||
| 15855 | 2011-11-30 Juanma Barranquero <lekktu@gmail.com> | ||
| 15856 | |||
| 15857 | * dispnew.c (adjust_glyph_matrix) [XASSERTS]: Add missing check. | ||
| 15858 | |||
| 15859 | 2011-11-30 Eli Zaretskii <eliz@gnu.org> | ||
| 15860 | |||
| 15861 | * dispnew.c (adjust_glyph_matrix) [XASSERTS]: Ensure ROW's | ||
| 15862 | attributes are tested _before_ calling verify_row_hash, to protect | ||
| 15863 | against GCC re-ordering of the tests. (Bug#10164) | ||
| 15864 | |||
| 15865 | 2011-11-29 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15866 | |||
| 15867 | * xterm.h (struct x_output): net_wm_state_hidden_seen is new. | ||
| 15868 | |||
| 15869 | * xterm.c (handle_one_xevent): Only set async_visible and friends | ||
| 15870 | if net_wm_state_hidden_seen is non-zero (Bug#10002) | ||
| 15871 | (get_current_wm_state): Set net_wm_state_hidden_seen to 1 if | ||
| 15872 | _NET_WM_STATE_HIDDEN is in NET_WM_STATE. | ||
| 15873 | |||
| 15874 | 2011-11-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15875 | |||
| 15876 | Remove GCPRO-related macros that exist only to avoid shadowing locals. | ||
| 15877 | * lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR) | ||
| 15878 | (GCPRO6_VAR, UNGCPRO_VAR): Remove. See | ||
| 15879 | <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>. | ||
| 15880 | All uses changed to use GCPRO1 etc. | ||
| 15881 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6, UNGCPRO): | ||
| 15882 | Revert to old implementation (i.e., before 2011-03-11). | ||
| 15883 | |||
| 15884 | 2011-11-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 15885 | |||
| 15886 | * dispnew.c (scrolling_window): Truncate overlaps in copy destination | ||
| 15887 | of scroll runs so as to avoid assigning disabled bogus rows and | ||
| 15888 | unnecessary graphics copy operations. | ||
| 15889 | |||
| 15890 | 2011-11-27 Eli Zaretskii <eliz@gnu.org> | ||
| 15891 | |||
| 15892 | * s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define. | ||
| 15893 | (snprintf) [_MSC_VER]: Redirect to _snprintf. | ||
| 15894 | (strtoll) [_MSC_VER]: Redirect to _strtoi64. | ||
| 15895 | (malloc, free, realloc, calloc): Redirect to e_* only when | ||
| 15896 | compiling Emacs. | ||
| 15897 | |||
| 15898 | * lisp.h (GCTYPEBITS): Move before first use. | ||
| 15899 | (ALIGN_GCTYPEBITS) [_MSC_VER]: Define. | ||
| 15900 | (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in | ||
| 15901 | this macro definition. | ||
| 15902 | |||
| 15903 | * s/ms-w32.h (tzname): Redirect to _tzname for all values of | ||
| 15904 | _MSC_VER. | ||
| 15905 | |||
| 15906 | 2011-11-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15907 | |||
| 15908 | * gtkutil.c (xg_create_frame_widgets): | ||
| 15909 | Call gtk_window_set_has_resize_grip (FALSE) if that function is | ||
| 15910 | present with Gtk+ 2.0. | ||
| 15911 | |||
| 15912 | 2011-11-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15913 | |||
| 15914 | * fileio.c (Finsert_file_contents): Undo previous change; see | ||
| 15915 | <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>. | ||
| 15916 | |||
| 15917 | 2011-11-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 15918 | |||
| 15919 | Rename locals to avoid shadowing. | ||
| 15920 | * fileio.c (Finsert_file_contents): | ||
| 15921 | Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing. | ||
| 15922 | * process.c (wait_reading_process_output): | ||
| 15923 | Rename inner 'proc' to 'p' to avoid shadowing. | ||
| 15924 | Indent for consistency with usual Emacs style. | ||
| 15925 | |||
| 15926 | 2011-11-25 Eli Zaretskii <eliz@gnu.org> | ||
| 15927 | |||
| 15928 | * xdisp.c (redisplay_window): If cursor row is not fully visible | ||
| 15929 | after recentering, and scroll-conservatively is set to a large | ||
| 15930 | number, scroll window by a few more lines to make the cursor fully | ||
| 15931 | visible and out of scroll-margin. (Bug#10105) | ||
| 15932 | (start_display): Don't move to the next line if the display should | ||
| 15933 | start at a newline that is part of a display vector or an overlay | ||
| 15934 | string. (Bug#10119) | ||
| 15935 | |||
| 15936 | 2011-11-24 Juri Linkov <juri@jurta.org> | ||
| 15937 | |||
| 15938 | * image.c (imagemagick_load_image): Move `MagickSetResolution' down | ||
| 15939 | after the `MagickPingImage' call. (Bug#10112) | ||
| 15940 | |||
| 15941 | 2011-11-23 Chong Yidong <cyd@gnu.org> | ||
| 15942 | |||
| 15943 | * window.c (Fcoordinates_in_window_p): Accept only live windows. | ||
| 15944 | |||
| 15945 | 2011-11-23 Martin Rudalics <rudalics@gmx.at> | ||
| 15946 | |||
| 15947 | * buffer.c (Fkill_buffer): Run replace_buffer_in_windows before | ||
| 15948 | making another buffer current. (Bug#10114) | ||
| 15949 | |||
| 15950 | 2011-11-23 Glenn Morris <rgm@gnu.org> | ||
| 15951 | |||
| 15952 | * font.c (font_find_for_lface) [HAVE_NS]: Ignore case. (Bug#2526) | ||
| 15953 | |||
| 15954 | 2011-11-23 Chong Yidong <cyd@gnu.org> | ||
| 15955 | |||
| 15956 | * xdisp.c (compute_stop_pos): Check validity of end_charpos before | ||
| 15957 | using it (Bug#5984). | ||
| 15958 | |||
| 15959 | 2011-11-22 Eli Zaretskii <eliz@gnu.org> | ||
| 15960 | |||
| 15961 | * dispnew.c (adjust_glyph_matrix): Don't verify hash code of mode- | ||
| 15962 | and header-lines, as they don't have one computed for them. | ||
| 15963 | (Bug#10098) | ||
| 15964 | |||
| 15965 | * .gdbinit (prow): Make displayed values more self-explaining. | ||
| 15966 | Add row's hash code. | ||
| 15967 | |||
| 15968 | 2011-11-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 15969 | |||
| 15970 | * process.c (wait_reading_process_output): Fix asynchrounous | ||
| 15971 | GnuTLS socket handling on some versions of the GnuTLS library. | ||
| 15972 | (wait_reading_process_output): Add comment and URL. | ||
| 15973 | |||
| 15974 | 2011-11-21 Jan Djärv <jan.h.d@swipnet.se> | ||
| 15975 | |||
| 15976 | * xterm.c (x_clear_frame): Reinstate the XClearWindow call. | ||
| 15977 | |||
| 15978 | 2011-11-21 Chong Yidong <cyd@gnu.org> | ||
| 15979 | |||
| 15980 | * window.c (Fnext_window, Fprevious_window): Doc fix. | ||
| 15981 | |||
| 15982 | 2011-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15983 | |||
| 15984 | * window.c (get_phys_cursor_glyph): Fix Lisp_Object/int mixup. | ||
| 15985 | |||
| 15986 | 2011-11-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 15987 | |||
| 15988 | * nsfont.m (syms_of_nsfont) <ns-reg-to-script>: Fix typo. | ||
| 15989 | |||
| 15990 | 2011-11-20 Martin Rudalics <rudalics@gmx.at> | ||
| 15991 | |||
| 15992 | * window.c (Fset_window_combination_limit): Rename argument | ||
| 15993 | STATUS to LIMIT. | ||
| 15994 | (Vwindow_combination_limit): Remove "status" from doc-string. | ||
| 15995 | |||
| 15996 | 2011-11-20 Andreas Schwab <schwab@linux-m68k.org> | ||
| 15997 | |||
| 15998 | * m/ibms390.h: Remove. | ||
| 15999 | * m/ibms390x.h: Don't include "ibms390.h". | ||
| 16000 | |||
| 16001 | 2011-11-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16002 | |||
| 16003 | * fileio.c (Finsert_file_contents): Add missing gcpro1 variable. | ||
| 16004 | Suggested by Dmitry Antipov <dmantipov@yandex.ru>. | ||
| 16005 | |||
| 16006 | 2011-11-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 16007 | |||
| 16008 | * casetab.c (Fset_case_table): | ||
| 16009 | * charset.c (Fcharset_after): Fix typos. | ||
| 16010 | |||
| 16011 | 2011-11-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16012 | |||
| 16013 | Standardize on VIRT_ADDR_VARIES behavior (Bug#10042). | ||
| 16014 | Otherwise, valgrind does not work on some platforms. | ||
| 16015 | Problem reported by Andreas Schwab in | ||
| 16016 | <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00081.html>. | ||
| 16017 | * puresize.h (pure, PURE_P): Always behave as if VIRT_ADDR_VARIES | ||
| 16018 | is set, removing the need for VIRT_ADDRESS_VARIES. | ||
| 16019 | (PURE_P): Use a more-efficient implementation that needs just one | ||
| 16020 | comparison, not two: on x86-64 with GCC 4.6.2, this cut down the | ||
| 16021 | number of instructions from 6 (xorl, cmpq, jge, xorl, cmpq, setge) | ||
| 16022 | to 4 (xorl, subq, cmpq, setbe). | ||
| 16023 | * alloc.c (pure): Always extern now, since that's the | ||
| 16024 | VIRT_ADDR_VARIES behavior. | ||
| 16025 | (PURE_POINTER_P): Use a single comparison, not two, for | ||
| 16026 | consistency with the new puresize.h. | ||
| 16027 | * lisp.h (PNTR_COMPARISON_TYPE): Remove; no longer needed. | ||
| 16028 | * m/ibms390.h, m/intel386.h, m/template.h, s/cygwin.h, s/hpux10-20.h: | ||
| 16029 | Remove VIRT_ADDR_VARIES no longer needed. | ||
| 16030 | |||
| 16031 | 2011-11-19 Eli Zaretskii <eliz@gnu.org> | ||
| 16032 | |||
| 16033 | * xdisp.c (x_write_glyphs, draw_phys_cursor_glyph) | ||
| 16034 | (erase_phys_cursor, update_window_cursor, show_mouse_face) | ||
| 16035 | (cursor_in_mouse_face_p): If the cursor position is out of bounds, | ||
| 16036 | behave as if the cursor position were at the window margin. | ||
| 16037 | |||
| 16038 | * window.c (get_phys_cursor_glyph): If the window is hscrolled, | ||
| 16039 | and the cursor position is out of bounds, behave as if the cursor | ||
| 16040 | position were at the window margin. (Bug#10075) | ||
| 16041 | |||
| 16042 | 2011-11-18 Chong Yidong <cyd@gnu.org> | ||
| 16043 | |||
| 16044 | * window.c (Fwindow_combination_limit): Make first argument | ||
| 16045 | non-optional, since it is meaningless for live windows like the | ||
| 16046 | selected window. | ||
| 16047 | |||
| 16048 | 2011-11-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 16049 | |||
| 16050 | * keymap.c (Fwhere_is_internal): Add missing RETURN_UNGCPROs. | ||
| 16051 | |||
| 16052 | 2011-11-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16053 | |||
| 16054 | * intervals.c: Fix grafting over the whole buffer (bug#10071). | ||
| 16055 | (graft_intervals_into_buffer): Simplify. | ||
| 16056 | |||
| 16057 | 2011-11-18 Eli Zaretskii <eliz@gnu.org> | ||
| 16058 | |||
| 16059 | * dispnew.c (swap_glyph_pointers): Swap the used[] arrays and the | ||
| 16060 | hash values of the two rows. | ||
| 16061 | (copy_row_except_pointers): Preserve the used[] arrays and the | ||
| 16062 | hash values of the two rows. (Bug#10035) | ||
| 16063 | (add_row_entry): Add xassert to verify that ROW's hash code is valid. | ||
| 16064 | |||
| 16065 | * xdisp.c (row_hash): New function, body extracted from | ||
| 16066 | compute_line_metrics. | ||
| 16067 | (compute_line_metrics): Call row_hash, instead of computing the | ||
| 16068 | hash code inline. | ||
| 16069 | |||
| 16070 | * dispnew.c (verify_row_hash): Call row_hash for computing the | ||
| 16071 | hash code of a row, instead of duplicating code from xdisp.c. | ||
| 16072 | |||
| 16073 | * dispextern.h (row_hash): Add prototype. | ||
| 16074 | |||
| 16075 | 2011-11-18 Tassilo Horn <tassilo@member.fsf.org> | ||
| 16076 | |||
| 16077 | * frame.c (delete_frame): Don't delete the terminal when the last | ||
| 16078 | X frame is closed if emacs is built with GTK toolkit. | ||
| 16079 | |||
| 16080 | 2011-11-17 Juanma Barranquero <lekktu@gmail.com> | ||
| 16081 | |||
| 16082 | * window.c (syms_of_window) <window-combination-resize>: Fix typo. | ||
| 16083 | |||
| 16084 | 2011-11-17 Martin Rudalics <rudalics@gmx.at> | ||
| 16085 | |||
| 16086 | * window.c (Vwindow_splits): Rename to | ||
| 16087 | Vwindow_combination_resize. Suggested by Juri Linkov. | ||
| 16088 | (Fsplit_window_internal): Use Vwindow_combination_resize instead | ||
| 16089 | of Vwindow_splits. | ||
| 16090 | |||
| 16091 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 16092 | |||
| 16093 | * nsfns.m (Fns_font_name): | ||
| 16094 | * window.c (syms_of_window) <window-combination-limit>: Fix typos. | ||
| 16095 | |||
| 16096 | 2011-11-16 Martin Rudalics <rudalics@gmx.at> | ||
| 16097 | |||
| 16098 | * window.h (window): Rename slot "nest" to "combination_limit". | ||
| 16099 | * window.c (Fwindow_nest): Rename to Fwindow_combination_limit. | ||
| 16100 | (Fset_window_nest): Rename to Fset_window_combination_limit. | ||
| 16101 | (Vwindow_nest): Rename to Vwindow_combination_limit. | ||
| 16102 | (recombine_windows, make_parent_window, make_window) | ||
| 16103 | (Fsplit_window_internal, saved_window) | ||
| 16104 | (Fset_window_configuration, save_window_save): Rename all | ||
| 16105 | occurrences of window_nest to window_combination_limit. | ||
| 16106 | |||
| 16107 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 16108 | |||
| 16109 | * image.c (imagemagick_load_image): Fix typo. | ||
| 16110 | |||
| 16111 | 2011-11-14 Eli Zaretskii <eliz@gnu.org> | ||
| 16112 | |||
| 16113 | * xdisp.c (display_line): Move the call to | ||
| 16114 | highlight_trailing_whitespace before the call to | ||
| 16115 | compute_line_metrics, since the latter needs to see the final | ||
| 16116 | faces of all the glyphs to compute ROW's hash value. | ||
| 16117 | Fixes assertion violations in row_equal_p. (Bug#10035) | ||
| 16118 | |||
| 16119 | 2011-11-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 16120 | |||
| 16121 | * w32proc.c (reader_thread): Don't check pending input if cp->fd < 0, | ||
| 16122 | just return (bug#10044). | ||
| 16123 | |||
| 16124 | 2011-11-12 Eli Zaretskii <eliz@gnu.org> | ||
| 16125 | |||
| 16126 | * makefile.w32-in (HEAPSIZE): New variable, allows to build temacs | ||
| 16127 | with user-defined heap size. Bump the default size of the temacs | ||
| 16128 | heap to 27MB, to avoid memory warning when running temacs. | ||
| 16129 | ($(TEMACS)): Use HEAPSIZE instead of a hardcoded value. | ||
| 16130 | |||
| 16131 | * dispnew.c (scrolling_window): Fix incorrect indices in accessing | ||
| 16132 | current_matrix and desired_matrix. (Bug#9990) | ||
| 16133 | (verify_row_hash) [XASSERTS]: New function. | ||
| 16134 | (adjust_glyph_matrix, row_equal_p): Use it in xassert to verify | ||
| 16135 | that the hash value of glyph rows is correct. | ||
| 16136 | |||
| 16137 | 2011-11-12 Martin Rudalics <rudalics@gmx.at> | ||
| 16138 | |||
| 16139 | * window.h (window): Remove splits slot. | ||
| 16140 | * window.c (Fwindow_splits, Fset_window_splits): Remove. | ||
| 16141 | (Fdelete_other_windows_internal, make_parent_window) | ||
| 16142 | (make_window, Fsplit_window_internal, Fdelete_window_internal) | ||
| 16143 | (Fset_window_configuration, save_window_save): Don't deal with | ||
| 16144 | split status of windows. | ||
| 16145 | (saved_window): Remove splits slot. | ||
| 16146 | (Vwindow_splits): Rewrite doc-string. | ||
| 16147 | |||
| 16148 | 2011-11-11 Jan Djärv <jan.h.d@swipnet.se> | ||
| 16149 | |||
| 16150 | * xfns.c (unwind_create_frame): | ||
| 16151 | * nsfns.m (unwind_create_frame): | ||
| 16152 | * w32fns.c (unwind_create_frame): Use Fmemq to check if frame is in | ||
| 16153 | Vframe_list (Bug#9999). | ||
| 16154 | |||
| 16155 | 2011-11-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 16156 | |||
| 16157 | * xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext. | ||
| 16158 | |||
| 16159 | 2011-11-11 Kenichi Handa <handa@m17n.org> | ||
| 16160 | |||
| 16161 | * callproc.c (Fcall_process): Set the member dst_multibyte of | ||
| 16162 | process_coding. | ||
| 16163 | |||
| 16164 | 2011-11-11 Johan Bockgård <bojohan@gnu.org> | ||
| 16165 | |||
| 16166 | * xdisp.c (fill_composite_glyph_string): Always set s->face, to | ||
| 16167 | avoid a crash (bug#9496). | ||
| 16168 | |||
| 16169 | 2011-11-09 Chong Yidong <cyd@gnu.org> | ||
| 16170 | |||
| 16171 | * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges) | ||
| 16172 | (Fwindow_inside_absolute_pixel_edges): Only allow live windows. | ||
| 16173 | |||
| 16174 | 2011-11-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16175 | |||
| 16176 | * s/gnu.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS (Bug#9926). | ||
| 16177 | |||
| 16178 | 2011-11-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16179 | |||
| 16180 | Avoid some portability problems by eschewing 'extern inline' functions. | ||
| 16181 | The trivial performance wins aren't worth the portability hassles; see | ||
| 16182 | <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html> | ||
| 16183 | et seq. | ||
| 16184 | * dispextern.h (window_box, window_box_height, window_text_bottom_y) | ||
| 16185 | (window_box_width, window_box_left, window_box_left_offset) | ||
| 16186 | (window_box_right, window_box_right_offset): Undo previous change, | ||
| 16187 | by removing the "extern"s. | ||
| 16188 | * intervals.c (adjust_intervals_for_insertion) | ||
| 16189 | (adjust_intervals_for_deletion): Undo previous change, | ||
| 16190 | making these static again. | ||
| 16191 | (offset_intervals, temp_set_point_both, temp_set_point) | ||
| 16192 | (copy_intervals_to_string): No longer inline. | ||
| 16193 | * xdisp.c (window_text_bottom_y, window_box_width) | ||
| 16194 | (window_box_height, window_box_left_offset) | ||
| 16195 | (window_box_right_offset, window_box_left, window_box_right) | ||
| 16196 | (window_box): No longer inline. | ||
| 16197 | |||
| 16198 | 2011-11-08 Chong Yidong <cyd@gnu.org> | ||
| 16199 | |||
| 16200 | * window.c (Fwindow_left_column, Fwindow_top_line): Doc fix. | ||
| 16201 | (Fwindow_body_height, Fwindow_body_width): Move from Lisp. | ||
| 16202 | Signal an error if not a live window. | ||
| 16203 | (Fwindow_total_width, Fwindow_total_height): Move from Lisp. | ||
| 16204 | (Fwindow_total_size, Fwindow_body_size): Move to Lisp. | ||
| 16205 | |||
| 16206 | 2011-11-07 Juanma Barranquero <lekktu@gmail.com> | ||
| 16207 | |||
| 16208 | * lisp.h (syms_of_abbrev): Remove declaration. | ||
| 16209 | Reported by CHENG Gao <chenggao@royau.me>. | ||
| 16210 | |||
| 16211 | 2011-11-07 Eli Zaretskii <eliz@gnu.org> | ||
| 16212 | |||
| 16213 | * w32.c (check_windows_init_file): Don't look for term/w32-win.el | ||
| 16214 | if Vpurify_flag is non-nil. Fixes a crash when running w32 build | ||
| 16215 | of temacs in GUI mode. | ||
| 16216 | |||
| 16217 | 2011-11-07 Martin Rudalics <rudalics@gmx.at> | ||
| 16218 | |||
| 16219 | * window.h: Declare delete_all_child_windows instead of | ||
| 16220 | delete_all_subwindows. | ||
| 16221 | * window.c (Fwindow_nest, Fset_window_nest) | ||
| 16222 | (Fset_window_new_total, Fset_window_new_normal) | ||
| 16223 | (Fwindow_resize_apply): Don't use term subwindow in doc-strings. | ||
| 16224 | (delete_all_subwindows): Rename to delete_all_child_windows. | ||
| 16225 | (Fdelete_other_windows_internal, Fset_window_configuration): | ||
| 16226 | Call delete_all_child_windows instead of delete_all_subwindows. | ||
| 16227 | * frame.c (delete_frame): Call delete_all_child_windows instead | ||
| 16228 | of delete_all_subwindows. | ||
| 16229 | |||
| 16230 | 2011-11-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16231 | |||
| 16232 | * alloc.c (DEADP): New macro, for porting to GNU/Hurd (Bug#9926). | ||
| 16233 | This is also needed for porting to any host where GC_MARK_STACK is | ||
| 16234 | not GC_MAKE_GCPROS_NOOPS. | ||
| 16235 | (which_symbols): Use it. | ||
| 16236 | |||
| 16237 | 2011-11-07 Kenichi Handa <handa@m17n.org> | ||
| 16238 | |||
| 16239 | * coding.c (coding_set_destination): Check coding->src_pos only | ||
| 16240 | when coding->src_object is a buffer (bug#9910). | ||
| 16241 | |||
| 16242 | * process.c (send_process): Set the member src_multibyte of coding | ||
| 16243 | to 0 (bug#9911) when sending a unibyte text. | ||
| 16244 | |||
| 16245 | * callproc.c (Fcall_process): Set the member src_multibyte of | ||
| 16246 | process_coding to 0 (bug#9912). | ||
| 16247 | |||
| 16248 | 2011-11-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 16249 | |||
| 16250 | * xmenu.c (cleanup_widget_value_tree): New function. | ||
| 16251 | (xmenu_show, xdialog_show): Use it in record_unwind_protect instead of | ||
| 16252 | calling free_menubar_widget_value_tree directly (Bug#9830). | ||
| 16253 | |||
| 16254 | 2011-11-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16255 | |||
| 16256 | Fix some portability problems with 'inline'. | ||
| 16257 | * dispextern.h (window_box, window_box_height, window_text_bottom_y) | ||
| 16258 | (window_box_width, window_box_left, window_box_left_offset) | ||
| 16259 | (window_box_right, window_box_right_offset): Declare extern. | ||
| 16260 | Otherwise, these inline functions do not conform to C99 and | ||
| 16261 | are miscompiled by Microsoft compilers. Reported by Eli Zaretskii in | ||
| 16262 | <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>. | ||
| 16263 | * intervals.c (adjust_intervals_for_insertion) | ||
| 16264 | (adjust_intervals_for_deletion): Now extern, because otherwise the | ||
| 16265 | extern inline functions 'offset_intervals' couldn't refer to it. | ||
| 16266 | (static_offset_intervals): Remove. | ||
| 16267 | (offset_intervals): Rewrite using the old contents of | ||
| 16268 | static_offset_intervals. The old version didn't conform to C99 | ||
| 16269 | because an extern inline function contained a reference to an | ||
| 16270 | identifier with static linkage. | ||
| 16271 | |||
| 16272 | 2011-11-06 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16273 | |||
| 16274 | * keyboard.c (interrupt_signal): Don't call kill-emacs while in | ||
| 16275 | GC. | ||
| 16276 | |||
| 16277 | 2011-11-06 Eli Zaretskii <eliz@gnu.org> | ||
| 16278 | |||
| 16279 | * xdisp.c (init_iterator, reseat_to_string): Don't set the | ||
| 16280 | iterator's bidi_p flag if Vpurify_flag is non-nil. (Bug#9963) | ||
| 16281 | (Fcurrent_bidi_paragraph_direction): If Vpurify_flag is non-nil, | ||
| 16282 | return Qleft_to_right. | ||
| 16283 | |||
| 16284 | 2011-11-06 Chong Yidong <cyd@gnu.org> | ||
| 16285 | |||
| 16286 | * window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window) | ||
| 16287 | (Fminibuffer_window, Fwindow_buffer, Fwindow_splits) | ||
| 16288 | (Fset_window_splits, Fwindow_nest, Fset_window_nest) | ||
| 16289 | (Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size) | ||
| 16290 | (Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line) | ||
| 16291 | (Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars) | ||
| 16292 | (Fwindow_vscroll): Doc fix. | ||
| 16293 | (Fwindow_top_child, Fwindow_left_child): Eliminate a nil default | ||
| 16294 | argument, since it makes no sense to pass a live window and for | ||
| 16295 | consistency with window-child. | ||
| 16296 | |||
| 16297 | 2011-11-05 Christoph Scholtes <cschol2112@googlemail.com> | ||
| 16298 | |||
| 16299 | * makefile.w32-in ($(TEMACS), (gl-stamp)): Use $(THISDIR) to | ||
| 16300 | support MSVC. | ||
| 16301 | |||
| 16302 | 2011-11-05 Jason Rumney <jasonr@gnu.org> | ||
| 16303 | |||
| 16304 | * w32font.c (font_matches_spec): Filter out non-Japanese kana fonts. | ||
| 16305 | (add_font_entity_to_list): Filter out non-Japanese Shift-JIS | ||
| 16306 | fonts (Bug#6029). | ||
| 16307 | (add_font_entity_to_list): Fix logic errors in mixed boolean and | ||
| 16308 | bitwise arithmetic preventing use of unicode-sip and non-truetype | ||
| 16309 | opentype fonts. | ||
| 16310 | |||
| 16311 | 2011-11-05 Eli Zaretskii <eliz@gnu.org> | ||
| 16312 | |||
| 16313 | * s/ms-w32.h (fstat, stat, utime): Move redirections to | ||
| 16314 | "emacs"-only part. | ||
| 16315 | |||
| 16316 | * w32fns.c (x_create_tip_frame, Fx_create_frame): Rearrange | ||
| 16317 | initialization code to keep similarity to xfns.c after changes | ||
| 16318 | from 2011-11-05. | ||
| 16319 | |||
| 16320 | 2011-11-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 16321 | |||
| 16322 | * nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG. | ||
| 16323 | (unwind_create_frame): New function (Bug#9943). | ||
| 16324 | (Fx_create_frame): Restructure code to be more similar to the one in | ||
| 16325 | xfns.c. Call record_unwind_protect with unwind_create_frame (Bug#9943). | ||
| 16326 | Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943). | ||
| 16327 | Move terminal->reference_count++ just before making the frame official | ||
| 16328 | (Bug#9943). | ||
| 16329 | |||
| 16330 | * nsterm.m (x_free_frame_resources): New function. | ||
| 16331 | (x_destroy_window): Move code to x_free_frame_resources. | ||
| 16332 | |||
| 16333 | * xfns.c (unwind_create_frame): Fix comment. | ||
| 16334 | (Fx_create_frame, x_create_tip_frame): | ||
| 16335 | Move terminal->reference_count++ just before making the frame | ||
| 16336 | official. Move initialization of image_cache_refcount and | ||
| 16337 | dpyinfo_refcount before calling init_frame_faces (Bug#9943). | ||
| 16338 | |||
| 16339 | 2011-11-05 Eli Zaretskii <eliz@gnu.org> | ||
| 16340 | |||
| 16341 | Support MSVC build with newer versions of Visual Studio. | ||
| 16342 | * makefile.w32-in (TAGS-gmake): Don't use $(patsubst ...), as | ||
| 16343 | Nmake barfs on that. Use $(OBJ*_c) variables instead, defined on | ||
| 16344 | nt/gmake.defs. | ||
| 16345 | |||
| 16346 | * lisp.h (ENUM_BF): New macro, for enumerated types in bitfields, | ||
| 16347 | which are not supported by MSVC. | ||
| 16348 | (Lisp_Symbol, Lisp_Misc_Any, Lisp_Marker, Lisp_Misc_Overlay) | ||
| 16349 | (Lisp_Save_Value, Lisp_Free): Use ENUM_BF for enumerated types in | ||
| 16350 | bitfields. | ||
| 16351 | (Lisp_Object) [USE_LISP_UNION_TYPE]: Use ENUM_BF for enumerated | ||
| 16352 | types in bitfields. | ||
| 16353 | (DEFUN) [_MSC_VER]: Define in a different way for MSVC. | ||
| 16354 | |||
| 16355 | * w32fns.c [_MSC_VER]: DECLARE_HANDLE for any MSVC version. | ||
| 16356 | |||
| 16357 | 2011-11-05 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change) | ||
| 16358 | |||
| 16359 | Support MSVC build with newer versions of Visual Studio. | ||
| 16360 | * w32.c: Don't include w32api.h for MSVC. | ||
| 16361 | (init_environment) [_MSC_VER]: Call sys_access, not _access. | ||
| 16362 | |||
| 16363 | * s/ms-w32.h <sigset_t, ssize_t> [_MSC_VER]: Typedefs for MSVC. | ||
| 16364 | [_MSC_VER]: Include sys/timeb.h, sys/stat.h, and signal.h. | ||
| 16365 | (fstat, stat, utime) [_MSC_VER]: Redirect to their sys_* cousins. | ||
| 16366 | (malloc, free, realloc, calloc) [_MSC_VER]: Always redirect to the | ||
| 16367 | e_* cousins. | ||
| 16368 | (alloca) [_MSC_VER]: Define to _alloca. | ||
| 16369 | |||
| 16370 | * lisp.h (DECL_ALIGN) [_MSC_VER]: Define for MSVC. | ||
| 16371 | |||
| 16372 | * regex.c <re_char> [_MSC_VER]: A separate definition for MSVC. | ||
| 16373 | |||
| 16374 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 16375 | |||
| 16376 | * xdisp.c (note_mouse_highlight): If either of | ||
| 16377 | previous/next-single-property-change returns nil, treat that as | ||
| 16378 | the beginning or the end of the buffer. (Bug#9955) | ||
| 16379 | |||
| 16380 | 2011-11-04 Jan Djärv <jan.h.d@swipnet.se> | ||
| 16381 | |||
| 16382 | * gtkutil.c (xg_make_tool_item): Add callbacks if one of wimage or | ||
| 16383 | label is not null (Bug#9951). | ||
| 16384 | (xg_tool_item_stale_p): Handle the fact that wimage and/or wlbl | ||
| 16385 | may be NULL. | ||
| 16386 | |||
| 16387 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 16388 | |||
| 16389 | * window.c (Fwindow_body_size): Mention in the doc string that the | ||
| 16390 | return value is in frame's canonical units. (Bug#9949) | ||
| 16391 | |||
| 16392 | 2011-11-03 Eli Zaretskii <eliz@gnu.org> | ||
| 16393 | |||
| 16394 | * xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947) | ||
| 16395 | |||
| 16396 | * w32fns.c (unwind_create_frame): If needed, free the glyph | ||
| 16397 | matrices of the partially constructed frame. (Bug#9943) | ||
| 16398 | * xfns.c (unwind_create_frame): Likewise. | ||
| 16399 | |||
| 16400 | 2011-11-01 Eli Zaretskii <eliz@gnu.org> | ||
| 16401 | |||
| 16402 | * xdisp.c (mouse_face_from_buffer_pos): Fix a typo in a comment. | ||
| 16403 | Don't stop backward scan on the continuation glyph, even though | ||
| 16404 | its CHARPOS is positive. | ||
| 16405 | (mouse_face_from_buffer_pos, note_mouse_highlight): | ||
| 16406 | Rename cover_string to disp_string. | ||
| 16407 | |||
| 16408 | 2011-11-01 Martin Rudalics <rudalics@gmx.at> | ||
| 16409 | |||
| 16410 | * window.c (temp_output_buffer_show): Don't use | ||
| 16411 | Vtemp_buffer_show_specifiers. | ||
| 16412 | (Vtemp_buffer_show_specifiers): Remove unused variable. | ||
| 16413 | |||
| 16414 | 2011-10-30 Eli Zaretskii <eliz@gnu.org> | ||
| 16415 | |||
| 16416 | * xdisp.c (try_cursor_movement): Make sure ROW isn't decremented | ||
| 16417 | past the beginning of the current glyph matrix. | ||
| 16418 | |||
| 16419 | 2011-10-30 Adam Sjøgren <asjo@koldfront.dk> (tiny change) | ||
| 16420 | |||
| 16421 | * xterm.c: Include X11/Xproto.h if HAVE_GTK3. | ||
| 16422 | (x_error_handler): Ignore BadMatch for X_SetInputFocus for | ||
| 16423 | HAVE_GTK3 (Bug#9869). | ||
| 16424 | |||
| 16425 | * gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize | ||
| 16426 | type to GDK_NOTHING so valgrind does not complain (Bug#9901). | ||
| 16427 | |||
| 16428 | * xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893). | ||
| 16429 | |||
| 16430 | * xterm.c: Declare x_handle_net_wm_state to return int. | ||
| 16431 | (handle_one_xevent): Check if we are iconified but don't have | ||
| 16432 | _NET_WM_STATE_HIDDEN. If do, treat as deiconify (Bug#9893). | ||
| 16433 | (get_current_wm_state): Return non-zero if not hidden, | ||
| 16434 | check for _NET_WM_STATE_HIDDEN (Bug#9893). | ||
| 16435 | (do_ewmh_fullscreen): Ignore return value from get_current_wm_state. | ||
| 16436 | (x_handle_net_wm_state): Return what get_current_wm_state returns. | ||
| 16437 | (x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden. | ||
| 16438 | |||
| 16439 | 2011-10-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16440 | |||
| 16441 | * alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE, | ||
| 16442 | so that this new function doesn't get optimized away by a | ||
| 16443 | whole-program optimizer. Make the 2nd arg EMACS_INT, not int. | ||
| 16444 | |||
| 16445 | 2011-10-29 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16446 | |||
| 16447 | * frame.h (MOUSE_HL_INFO): Remove excess parens. | ||
| 16448 | |||
| 16449 | 2011-10-29 Eli Zaretskii <eliz@gnu.org> | ||
| 16450 | |||
| 16451 | Fix the `xbytecode' command. | ||
| 16452 | * .gdbinit (xprintbytestr): New command. | ||
| 16453 | (xwhichsymbols): Rename from `which'; all callers changed. | ||
| 16454 | (xbytecode): Print the byte-code string as well. | ||
| 16455 | |||
| 16456 | 2011-10-29 Kim Storm <storm@cua.dk> | ||
| 16457 | |||
| 16458 | * alloc.c (which_symbols): New function. | ||
| 16459 | |||
| 16460 | 2011-10-29 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16461 | |||
| 16462 | * minibuf.c (read_minibuf_noninteractive): Allow reading empty | ||
| 16463 | line. (Bug#9903) | ||
| 16464 | |||
| 16465 | 2011-10-29 Glenn Morris <rgm@gnu.org> | ||
| 16466 | |||
| 16467 | * process.c (wait_reading_process_output): Revert 2009-08-30 change. | ||
| 16468 | Not clear what it was for, and it causes various bugs. (Bug#9839) | ||
| 16469 | |||
| 16470 | 2011-10-28 Eli Zaretskii <eliz@gnu.org> | ||
| 16471 | |||
| 16472 | * xdisp.c (note_mouse_highlight): Initialize `part', to avoid a | ||
| 16473 | possible random value that matches one of those tested as | ||
| 16474 | condition to clear the mouse face. | ||
| 16475 | |||
| 16476 | 2011-10-28 Chong Yidong <cyd@gnu.org> | ||
| 16477 | |||
| 16478 | * xdisp.c (note_mouse_highlight): Fix use of uninitialized var. | ||
| 16479 | |||
| 16480 | 2011-10-28 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 16481 | |||
| 16482 | * window.c (make_window): Initialize phys_cursor_on_p. | ||
| 16483 | |||
| 16484 | 2011-10-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16485 | |||
| 16486 | * lisp.h (struct Lisp_Symbol): Update comments. | ||
| 16487 | |||
| 16488 | 2011-10-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 16489 | |||
| 16490 | * w32font.c (w32_load_unicows_or_gdi32): Add missing return. | ||
| 16491 | |||
| 16492 | 2011-10-28 Eli Zaretskii <eliz@gnu.org> | ||
| 16493 | |||
| 16494 | Fix Emacs on Windows 9X (bug#8562). Thanks to oslsachem | ||
| 16495 | <oslsachem@gmail.com> for helping to debug this. | ||
| 16496 | |||
| 16497 | * w32font.c (g_b_init_is_w9x, g_b_init_get_outline_metrics_w) | ||
| 16498 | (g_b_init_get_text_metrics_w, g_b_init_get_glyph_outline_w) | ||
| 16499 | (g_b_init_get_glyph_outline_w): New static variables. | ||
| 16500 | (GetOutlineTextMetricsW_Proc, GetTextMetricsW_Proc) | ||
| 16501 | (GetGlyphOutlineW_Proc): New typedefs. | ||
| 16502 | (w32_load_unicows_or_gdi32, get_outline_metrics_w) | ||
| 16503 | (get_text_metrics_w, get_glyph_outline_w, globals_of_w32font): | ||
| 16504 | New functions. | ||
| 16505 | (w32font_open_internal, compute_metrics): | ||
| 16506 | Call get_outline_metrics_w, get_text_metrics_w, and get_glyph_outline_w | ||
| 16507 | instead of calling the "wide" APIs directly. | ||
| 16508 | |||
| 16509 | * emacs.c (main) [HAVE_NTGUI]: Call globals_of_w32font. | ||
| 16510 | |||
| 16511 | * w32.h (syms_of_w32font): Add prototype. | ||
| 16512 | |||
| 16513 | 2011-10-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 16514 | |||
| 16515 | * window.c (Fframe_root_window, Fframe_first_window, Fwindow_end) | ||
| 16516 | (Fframe_selected_window, Ftemp_output_buffer_show, Fnext_window) | ||
| 16517 | (Fdelete_window_internal, Fwindow_parameters): Fix typos in docstrings. | ||
| 16518 | (Fmove_to_window_line): Doc fix. | ||
| 16519 | |||
| 16520 | 2011-10-27 Chong Yidong <cyd@gnu.org> | ||
| 16521 | |||
| 16522 | * process.c (make_process): Set gnutls_state to NULL. | ||
| 16523 | |||
| 16524 | * gnutls.c (emacs_gnutls_deinit): Deinit the gnutls_state if it is | ||
| 16525 | non-NULL, regardless of GNUTLS_INITSTAGE. | ||
| 16526 | (Fgnutls_boot): Cleanups. Call emacs_gnutls_deinit if we signal | ||
| 16527 | an error. Set process slots as soon as we allocate them. | ||
| 16528 | |||
| 16529 | * gnutls.h (GNUTLS_LOG, GNUTLS_LOG2): Fix macros. | ||
| 16530 | |||
| 16531 | 2011-10-27 Chong Yidong <cyd@gnu.org> | ||
| 16532 | |||
| 16533 | * gnutls.c (emacs_gnutls_deinit): New function. | ||
| 16534 | Deallocate credentials structures as well as calling gnutls_deinit. | ||
| 16535 | (Fgnutls_deinit, Fgnutls_boot): Use it. | ||
| 16536 | |||
| 16537 | * process.c (make_process): Initialize GnuTLS credentials to NULL. | ||
| 16538 | (deactivate_process): Call emacs_gnutls_deinit. | ||
| 16539 | |||
| 16540 | 2011-10-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 16541 | |||
| 16542 | * image.c (x_create_x_image_and_pixmap): | ||
| 16543 | * w32.c (sys_rename, w32_delayed_load): | ||
| 16544 | * w32font.c (fill_in_logfont): | ||
| 16545 | * w32reg.c (x_get_string_resource): Silence compiler warnings. | ||
| 16546 | |||
| 16547 | 2011-10-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 16548 | |||
| 16549 | * w32fns.c (w32_default_color_map): New function, | ||
| 16550 | extracted from Fw32_default_color_map. | ||
| 16551 | (Fw32_default_color_map, Fx_open_connection): Use it. (Bug#9785) | ||
| 16552 | |||
| 16553 | 2011-10-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16554 | |||
| 16555 | * dispextern.h (Fcontrolling_tty_p): New decl (Bug#6649 part 2). | ||
| 16556 | |||
| 16557 | 2011-10-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16558 | |||
| 16559 | * keyboard.c (test_undefined): New function (bug#9751). | ||
| 16560 | (read_key_sequence): Use it to detect when a key is bound to `undefined'. | ||
| 16561 | |||
| 16562 | 2011-10-25 Enami Tsugutomo <tsugutomo.enami@jp.sony.com> | ||
| 16563 | |||
| 16564 | * sysdep.c (init_sys_modes): Fix the check for the controlling | ||
| 16565 | terminal (Bug#6649). | ||
| 16566 | |||
| 16567 | 2011-10-20 Eli Zaretskii <eliz@gnu.org> | ||
| 16568 | |||
| 16569 | * dispextern.h (struct bidi_it): New member next_en_type. | ||
| 16570 | |||
| 16571 | * bidi.c (bidi_line_init): Initialize the next_en_type member. | ||
| 16572 | (bidi_resolve_explicit_1): When next_en_pos is valid for the | ||
| 16573 | current character, check also for next_en_type being WEAK_EN. | ||
| 16574 | (bidi_resolve_weak): Don't enter the expensive loop if the current | ||
| 16575 | position is before next_en_pos. Record the bidi type of the first | ||
| 16576 | non-ET, non-BN character we find, in addition to its position. | ||
| 16577 | (bidi_level_of_next_char): Invalidate next_en_type when | ||
| 16578 | next_en_pos is over-stepped. | ||
| 16579 | |||
| 16580 | 2011-10-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16581 | |||
| 16582 | Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794) | ||
| 16583 | * editfns.c: Rewrite current-time-zone so that it invokes | ||
| 16584 | the equivalent of (format-time-string "%Z") to get the time zone name. | ||
| 16585 | This fixes a bug when the time zone name contains characters that | ||
| 16586 | need converting from the system time locale to Emacs internal format. | ||
| 16587 | This fixes a shortcoming that I introduced in my 1999-10-19 patch: | ||
| 16588 | that patch fixed format-time-string to do the conversion, but | ||
| 16589 | I forgot to fix current-time-zone. | ||
| 16590 | (format_time_string): New function, containing most of | ||
| 16591 | what Fformat_time_string used to contain. | ||
| 16592 | (Fformat_time_string): Rewrite in terms of format_time_string. | ||
| 16593 | This doesn't change this function's behavior. | ||
| 16594 | (current-time-zone): Rewrite to use format_time_string. | ||
| 16595 | This fixes the bug reported by Michael Schierl in | ||
| 16596 | <http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00334.html>. | ||
| 16597 | Jason Rumney's 2007-06-07 change worked around this bug, but | ||
| 16598 | didn't fix it. | ||
| 16599 | * systime.h (tzname, timezone): Remove no-longer-used declarations. | ||
| 16600 | |||
| 16601 | 2011-10-19 Eli Zaretskii <eliz@gnu.org> | ||
| 16602 | |||
| 16603 | * xdisp.c (start_display): If the character at POS is displayed | ||
| 16604 | via a display vector, reset IT->current.dpvec_index to zero. | ||
| 16605 | (try_window_reusing_current_matrix): If a line ends in a display | ||
| 16606 | vector or the next line starts in a display vector, continue | ||
| 16607 | redrawing the window even though the character position of | ||
| 16608 | start_row was reached. | ||
| 16609 | (Bug#9771, part 2) | ||
| 16610 | |||
| 16611 | 2011-10-18 Chong Yidong <cyd@gnu.org> | ||
| 16612 | |||
| 16613 | * xdisp.c (get_next_display_element): Handle U+2010 and U+2011 | ||
| 16614 | with nobreak-char-display too. | ||
| 16615 | |||
| 16616 | 2011-10-18 Eli Zaretskii <eliz@gnu.org> | ||
| 16617 | |||
| 16618 | Fix part 3 of bug#9771. | ||
| 16619 | * bidi.c (bidi_line_init): Initialize next_en_pos to zero, not -1. | ||
| 16620 | (bidi_resolve_neutral): Don't enter the expensive loop looking for | ||
| 16621 | non-neutral characters if the current character is a paragraph | ||
| 16622 | separator (a.k.a. Newline). This avoids running the same | ||
| 16623 | expensive loop twice, once when we consume the preceding newline | ||
| 16624 | and the other time when the line actually needs to be displayed. | ||
| 16625 | Avoid the loop when we see neutrals on the base embedding level | ||
| 16626 | following a character whose directionality is the same as the | ||
| 16627 | paragraph's. This avoids running the expensive loop when a line | ||
| 16628 | ends in a long sequence of neutrals, like control characters. | ||
| 16629 | Add assertion against STRONG_AL type. Slightly rearrange code | ||
| 16630 | that determines the type of a neutral given the first non-neutral | ||
| 16631 | that follows it. | ||
| 16632 | (bidi_level_of_next_char): Set next_en_pos to zero when | ||
| 16633 | invalidating its info. | ||
| 16634 | |||
| 16635 | 2011-10-17 Eli Zaretskii <eliz@gnu.org> | ||
| 16636 | |||
| 16637 | * xdisp.c (push_display_prop): Determine whether to record string | ||
| 16638 | or buffer position by IT->string, not by IT->method. Allow | ||
| 16639 | GET_FROM_DISPLAY_VECTOR as IT->method on entry. (Bug#9771, part 4) | ||
| 16640 | (move_it_vertically_backward): Don't look for character position | ||
| 16641 | immediately after the newline when in a continuation line. | ||
| 16642 | (Bug#9771, part 1) | ||
| 16643 | |||
| 16644 | 2011-10-15 Martin Rudalics <rudalics@gmx.at> | ||
| 16645 | |||
| 16646 | * window.c (coordinates_in_window): Rewrite and delabelize | ||
| 16647 | vertical border check. (Bug#5357) (Bug#9618) | ||
| 16648 | |||
| 16649 | 2011-10-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16650 | |||
| 16651 | * xterm.c (frame_highlight, frame_unhighlight): Ignore unexplained | ||
| 16652 | errors in XSetWindowBorder (bug#9310). | ||
| 16653 | |||
| 16654 | 2011-10-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 16655 | |||
| 16656 | * editfns.c (Fset_time_zone_rule): Replace free with xfree to | ||
| 16657 | avoid crash when xmalloc overrun checking is enabled. | ||
| 16658 | |||
| 16659 | 2011-10-13 Eli Zaretskii <eliz@gnu.org> | ||
| 16660 | |||
| 16661 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize | ||
| 16662 | itb.paragraph_dir to NEUTRAL_DIR. Fixes an occasional incorrect | ||
| 16663 | cursor motion with <left> and <right> arrow keys. | ||
| 16664 | |||
| 16665 | * bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as | ||
| 16666 | some callers set that themselves. | ||
| 16667 | |||
| 16668 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> | ||
| 16669 | |||
| 16670 | * xdisp.c (find_row_edges): Handle the case where ROW comes from a | ||
| 16671 | display string and the previous row comes from the same string and | ||
| 16672 | is empty. (Bug#9739) (Bug#9738) | ||
| 16673 | |||
| 16674 | 2011-10-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16675 | |||
| 16676 | * doc.c (get_doc_string): Encode file name (bug#9735). | ||
| 16677 | |||
| 16678 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> | ||
| 16679 | |||
| 16680 | * bidi.c (bidi_level_of_next_char): | ||
| 16681 | * xdisp.c (get_visually_first_element): Remove old incorrect | ||
| 16682 | comments regarding the Unicode Line Separator character. | ||
| 16683 | |||
| 16684 | * bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. | ||
| 16685 | |||
| 16686 | 2011-10-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 16687 | |||
| 16688 | * alloc.c (Fgc_status): Do not access beyond zombies array | ||
| 16689 | boundary if nzombies > MAX_ZOMBIES. | ||
| 16690 | * alloc.c (dump_zombies): Add missing format specifier. | ||
| 16691 | |||
| 16692 | 2011-10-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16693 | |||
| 16694 | * xdisp.c (set_cursor_from_row): Simplify conditionals, | ||
| 16695 | to pacify GCC 4.6.1 x86-64 with -O2 -Wstrict-overflow. | ||
| 16696 | |||
| 16697 | * lread.c (read_escape): Allow hex escapes as large as ?\xfffffff. | ||
| 16698 | Some packages use them to denote characters with modifiers. | ||
| 16699 | |||
| 16700 | 2011-10-11 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16701 | |||
| 16702 | * lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR) | ||
| 16703 | (GCPRO5_VAR, GCPRO6_VAR, UNGCPRO_VAR): Add whitespace to avoid | ||
| 16704 | matching a pp-number. Rename parameter var to var1. | ||
| 16705 | |||
| 16706 | 2011-10-11 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16707 | |||
| 16708 | * minibuf.c (Finternal_complete_buffer): Fix last change (bug#9709). | ||
| 16709 | |||
| 16710 | 2011-10-08 Glenn Morris <rgm@gnu.org> | ||
| 16711 | |||
| 16712 | * callint.c (Fcall_interactively): Give a more explicit error for the | ||
| 16713 | 'c' case with a non-character input. (Bug#8479) | ||
| 16714 | |||
| 16715 | 2011-10-08 Eli Zaretskii <eliz@gnu.org> | ||
| 16716 | |||
| 16717 | * xdisp.c (hscroll_window_tree): Support hscroll in right-to-left | ||
| 16718 | lines. | ||
| 16719 | (set_cursor_from_row): Fix cursor positioning in mixed L2R+R2L | ||
| 16720 | lines that are hscrolled on the left. | ||
| 16721 | |||
| 16722 | * dispnew.c (buffer_posn_from_coords): Account for a possible | ||
| 16723 | presence of header-line. (Bug#4426) | ||
| 16724 | |||
| 16725 | 2011-10-07 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16726 | |||
| 16727 | * buffer.c (syms_of_buffer) <enable-multibyte-characters>: | ||
| 16728 | Don't advertise functionality which we discourage or doesn't work. | ||
| 16729 | |||
| 16730 | 2011-10-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16731 | |||
| 16732 | * alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__ | ||
| 16733 | or sizeof. __alignof__ gives the wrong answer on Fedora x86-64 | ||
| 16734 | with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int; | ||
| 16735 | this makes Emacs dump core during garbage collection on rare | ||
| 16736 | occasions. sizeof is obviously inferior to offsetof here, so | ||
| 16737 | stick with offsetof. | ||
| 16738 | (GC_POINTER_ALIGNMENT): New macro. | ||
| 16739 | (mark_memory): Omit 3rd (offset) arg; caller changed. | ||
| 16740 | Don't assume EMACS_INT alignment is the same as pointer alignment. | ||
| 16741 | |||
| 16742 | 2011-10-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16743 | |||
| 16744 | * keyboard.c (read_key_sequence_remapped): New var. | ||
| 16745 | (read_key_sequence): Compute remapping in the right buffer. | ||
| 16746 | (command_loop_1): Use read_key_sequence's remapping directly. | ||
| 16747 | |||
| 16748 | 2011-10-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 16749 | |||
| 16750 | * dired.c (file_name_completion): Don't expand file name. | ||
| 16751 | (Ffile_name_completion, Ffile_name_all_completions): Expand file name | ||
| 16752 | before checking file name handler. | ||
| 16753 | |||
| 16754 | * minibuf.c (Finternal_complete_buffer): Only show internal buffers if | ||
| 16755 | they've been requested explicitly (bug#9591). | ||
| 16756 | |||
| 16757 | 2011-10-01 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16758 | |||
| 16759 | * keymap.c (Fsingle_key_description): Use make_specified_string | ||
| 16760 | instead of build_string to build string from push_key_description. | ||
| 16761 | (Bug#5193) | ||
| 16762 | |||
| 16763 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16764 | |||
| 16765 | * buffer.h (struct buffer): Use time_t, not int, for a time stamp. | ||
| 16766 | This fixes a Y2038 bug on 64-bit hosts. | ||
| 16767 | * buffer.c (reset_buffer): | ||
| 16768 | * fileio.c (Fdo_auto_save, Fset_buffer_auto_saved) | ||
| 16769 | (Fclear_buffer_auto_save_failure): | ||
| 16770 | Use 0, not -1, to represent an unset failure time, since time_t | ||
| 16771 | might not be signed. | ||
| 16772 | |||
| 16773 | Remove dependency on glibc malloc internals. | ||
| 16774 | * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 16775 | Move back here from lisp.h, but with their new implementations. | ||
| 16776 | (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT) | ||
| 16777 | (XMALLOC_OVERRUN_SIZE_SIZE): Move these new lisp.h macros here. | ||
| 16778 | * charset.c (charset_table_init): New static var. | ||
| 16779 | (syms_of_charset): Use it instead of xmalloc. This removes a | ||
| 16780 | dependency on glibc malloc internals. See Eli Zaretskii's comment in | ||
| 16781 | <http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00815.html>. | ||
| 16782 | * lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 16783 | Move back to alloc.c. | ||
| 16784 | (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT) | ||
| 16785 | (XMALLOC_OVERRUN_SIZE_SIZE): Move to alloc.c. | ||
| 16786 | |||
| 16787 | 2011-09-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 16788 | |||
| 16789 | * nsterm.m (windowDidResize): Call x_set_window_size only when | ||
| 16790 | ns_in_resize is true. Otherwise set pixelwidth/height and | ||
| 16791 | call change_frame_size (Bug#9628). | ||
| 16792 | |||
| 16793 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16794 | |||
| 16795 | Port --enable-checking=all to Fedora 14 x86-64. | ||
| 16796 | * charset.c (syms_of_charset): Also account for glibc malloc's | ||
| 16797 | internal overhead when calculating the initial malloc maximum. | ||
| 16798 | |||
| 16799 | Port --enable-checking=all to Fedora 14 x86. | ||
| 16800 | * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 16801 | Move to lisp.h. | ||
| 16802 | (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc) | ||
| 16803 | (overrun_check_realloc, overrun_check_free): | ||
| 16804 | Use XMALLOC_OVERRUN_SIZE_SIZE, not sizeof (size_t). | ||
| 16805 | That way, xmalloc returns a properly-aligned pointer even if | ||
| 16806 | XMALLOC_OVERRUN_CHECK is defined. The old debugging code happened | ||
| 16807 | to align OK on typical 64-bit hosts, but not on Fedora 14 x86. | ||
| 16808 | * charset.c (syms_of_charset): Take XMALLOC_OVERRUN_CHECK_OVERHEAD | ||
| 16809 | into account when calculating the initial malloc maximum. | ||
| 16810 | * lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | ||
| 16811 | Move here from alloc.c, so that charset.c can use it too. | ||
| 16812 | Properly align; the old code wasn't right for common 32-bit hosts | ||
| 16813 | when configured with --enable-checking=all. | ||
| 16814 | (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT) | ||
| 16815 | (XMALLOC_OVERRUN_SIZE_SIZE): New macros. | ||
| 16816 | |||
| 16817 | 2011-09-29 Eli Zaretskii <eliz@gnu.org> | ||
| 16818 | |||
| 16819 | * sysdep.c (snprintf) [!EOVERFLOW]: If EOVERFLOW is not defined, | ||
| 16820 | use EDOM. | ||
| 16821 | |||
| 16822 | 2011-09-28 Eli Zaretskii <eliz@gnu.org> | ||
| 16823 | |||
| 16824 | * xdisp.c (compute_display_string_end): If there's no display | ||
| 16825 | string at CHARPOS, return -1. | ||
| 16826 | |||
| 16827 | * bidi.c (bidi_fetch_char): When compute_display_string_end | ||
| 16828 | returns a negative value, treat the character as a normal | ||
| 16829 | character not covered by a display string. (Bug#9624) | ||
| 16830 | |||
| 16831 | 2011-09-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 16832 | |||
| 16833 | * lread.c (Fread_from_string): Fix typo in docstring. | ||
| 16834 | |||
| 16835 | 2011-09-27 Eli Zaretskii <eliz@gnu.org> | ||
| 16836 | |||
| 16837 | * xdisp.c (handle_invisible_prop): If invisible text ends on a | ||
| 16838 | newline, reseat the iterator instead of bidi-iterating there one | ||
| 16839 | character at a time. (Bug#9610) | ||
| 16840 | (BUFFER_POS_REACHED_P, move_it_in_display_line_to): Bail when past | ||
| 16841 | TO_CHARPOS if the bidi iterator is at base embedding level. | ||
| 16842 | |||
| 16843 | 2011-09-27 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16844 | |||
| 16845 | * lread.c (readevalloop): Use correct code for NBSP. | ||
| 16846 | (read1): Likewise. (Bug#9608) | ||
| 16847 | |||
| 16848 | 2011-09-25 Michael Albinus <michael.albinus@gmx.de> | ||
| 16849 | |||
| 16850 | * dbusbind.c (Fdbus_register_signal): When service is not | ||
| 16851 | registered, use nil in Vdbus_registered_objects_table. (Bug#9581) | ||
| 16852 | |||
| 16853 | 2011-09-25 Glenn Morris <rgm@gnu.org> | ||
| 16854 | |||
| 16855 | * buffer.c (truncate-lines): Doc fix. | ||
| 16856 | |||
| 16857 | 2011-09-24 Chong Yidong <cyd@stupidchicken.com> | ||
| 16858 | |||
| 16859 | * window.c (Fwindow_prev_buffers, Fset_window_prev_buffers) | ||
| 16860 | (Fset_window_next_buffers): Doc fix. | ||
| 16861 | |||
| 16862 | 2011-09-24 Glenn Morris <rgm@gnu.org> | ||
| 16863 | |||
| 16864 | * minibuf.c (read_minibuf): Disable line truncation. (Bug#5715) | ||
| 16865 | |||
| 16866 | 2011-09-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16867 | |||
| 16868 | Fix minor problems found by static checking. | ||
| 16869 | * xdisp.c (string_from_display_spec): Don't assume vecsize fits in int. | ||
| 16870 | * indent.c (Fvertical_motion): Fix == vs = typo. | ||
| 16871 | |||
| 16872 | 2011-09-24 Eli Zaretskii <eliz@gnu.org> | ||
| 16873 | |||
| 16874 | * dispnew.c (syms_of_display) <redisplay-dont-pause>: | ||
| 16875 | Default value is now t. Doc fix. | ||
| 16876 | |||
| 16877 | * indent.c (Fvertical_motion): Compute and apply the overshoot | ||
| 16878 | logic when moving up, not only when moving down. Fix the | ||
| 16879 | confusing name and values of the it_overshoot_expected variable; | ||
| 16880 | logic changes accordingly. (Bug#9254) (Bug#9549) | ||
| 16881 | |||
| 16882 | * xdisp.c (pos_visible_p): Produce correct pixel coordinates when | ||
| 16883 | CHARPOS is covered by a display string which includes newlines. | ||
| 16884 | (move_it_vertically_backward): Avoid inflooping when START_CHARPOS | ||
| 16885 | is covered by a display string with embedded newlines. | ||
| 16886 | |||
| 16887 | 2011-09-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 16888 | |||
| 16889 | * dbusbind.c (Fdbus_register_signal): Add match rule to | ||
| 16890 | Vdbus_registered_objects_table. (Bug#9581) | ||
| 16891 | (Fdbus_register_method, Vdbus_registered_objects_table): | ||
| 16892 | Fix docstring. | ||
| 16893 | |||
| 16894 | 2011-09-24 Jim Meyering <meyering@redhat.com> | ||
| 16895 | |||
| 16896 | do not ignore write error for any output size | ||
| 16897 | The previous change was incomplete. | ||
| 16898 | While it makes emacs --batch detect the vast majority of stdout | ||
| 16899 | write failures, errors were still ignored whenever the output size is | ||
| 16900 | k * (BUFSIZ+1) - 4. E.g., on a system with BUFSIZ of 4096, | ||
| 16901 | $ emacs --batch --eval '(print (format "%4093d" 0))' > /dev/full \ | ||
| 16902 | && echo FAIL: ignored write error | ||
| 16903 | FAIL: ignored write error | ||
| 16904 | $ emacs --batch --eval '(print (format "%20481d" 0))' > /dev/full \ | ||
| 16905 | && echo FAIL: ignored write error | ||
| 16906 | FAIL: ignored write error | ||
| 16907 | * emacs.c (Fkill_emacs): Also test ferror. (Bug#9574) | ||
| 16908 | |||
| 16909 | 2011-09-23 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16910 | |||
| 16911 | * emacs.c (Fkill_emacs): In noninteractive mode exit | ||
| 16912 | non-successfully if a write error occurred on stdout. (Bug#9574) | ||
| 16913 | |||
| 16914 | 2011-09-21 Eli Zaretskii <eliz@gnu.org> | ||
| 16915 | |||
| 16916 | * xdisp.c (pop_it): Allow it->object that is a cons cell to pass | ||
| 16917 | the xassert test. | ||
| 16918 | |||
| 16919 | * dispextern.h (struct it): Update the comment documenting what | ||
| 16920 | can it->OBJECT be. | ||
| 16921 | |||
| 16922 | 2011-09-20 Eli Zaretskii <eliz@gnu.org> | ||
| 16923 | |||
| 16924 | * xdisp.c (set_cursor_from_row): If the row ends in a newline from | ||
| 16925 | a display string, extend search for cursor position to end of row. | ||
| 16926 | (find_row_edges): If the row ends in a newline from a display | ||
| 16927 | string, increment its MATRIX_ROW_END_CHARPOS by one. (Bug#9549) | ||
| 16928 | Handle the case of a display string with multiple newlines. | ||
| 16929 | (Fcurrent_bidi_paragraph_direction): Fix search for previous | ||
| 16930 | non-empty line. Fixes confusing cursor motion with arrow keys at | ||
| 16931 | the beginning of a line that starts with whitespace. | ||
| 16932 | |||
| 16933 | 2011-09-19 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 16934 | |||
| 16935 | * lread.c (Fread_from_string): Document what FINAL-STRING-INDEX is | ||
| 16936 | (bug#9493). | ||
| 16937 | |||
| 16938 | 2011-09-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 16939 | |||
| 16940 | * xfns.c (Fx_create_frame): Handle the bitmapIcon resource as | ||
| 16941 | boolean (Bug#9154). | ||
| 16942 | |||
| 16943 | 2011-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 16944 | |||
| 16945 | * xdisp.c (display_line): Record maximum and minimum buffer | ||
| 16946 | positions even if no glyphs were produced (e.g., by a zero-width | ||
| 16947 | stretch). Fixes bug#9530 on a TTY. Under word-wrap, don't record | ||
| 16948 | buffer positions that will be removed from the glyph row because | ||
| 16949 | they don't fit. | ||
| 16950 | (produce_stretch_glyph): Fix a bug in :align-to on a TTY when the | ||
| 16951 | column is beyond frame width: don't subtract 1 "pixel" when | ||
| 16952 | computing width of the stretch. | ||
| 16953 | (reseat_at_next_visible_line_start): Undo the change made on | ||
| 16954 | 2011-09-17 that saved paragraph information and restored it after | ||
| 16955 | the call to `reseat'. (Bug#9545) | ||
| 16956 | |||
| 16957 | 2011-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 16958 | |||
| 16959 | * xdisp.c (expose_window): Save original value of phys_cursor_on_p | ||
| 16960 | and turn window cursor on if cleared (Bug#9415). | ||
| 16961 | |||
| 16962 | 2011-09-18 Andreas Schwab <schwab@linux-m68k.org> | ||
| 16963 | |||
| 16964 | * search.c (boyer_moore): Take unibyte characters from pattern | ||
| 16965 | literally. (Bug#9458) | ||
| 16966 | |||
| 16967 | 2011-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 16968 | |||
| 16969 | * xdisp.c (reseat_at_next_visible_line_start): Fix last change. | ||
| 16970 | |||
| 16971 | 2011-09-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 16972 | |||
| 16973 | Fix minor problem found by static checking. | ||
| 16974 | * xdisp.c (reseat_at_next_visible_line_start): Mark locals as | ||
| 16975 | initialized, to pacify gcc -Wuninitialized. | ||
| 16976 | |||
| 16977 | * fileio.c: Report proper errno when syscall falls. | ||
| 16978 | (Finsert_file_contents): Save and restore errno, | ||
| 16979 | so that report_file_error outputs the correct diagnostic. | ||
| 16980 | (Fwrite_region) [CLASH_DETECTION]: Likewise. | ||
| 16981 | |||
| 16982 | 2011-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 16983 | |||
| 16984 | * .gdbinit (pgx): Fix references to fields of `struct glyph'. | ||
| 16985 | |||
| 16986 | 2011-09-17 Eli Zaretskii <eliz@gnu.org> | ||
| 16987 | |||
| 16988 | * xdisp.c (produce_stretch_glyph): Another fix for changes made on | ||
| 16989 | 2011-08-30T17:32:44Z!eliz@gnu.org. (Bug#9530) | ||
| 16990 | |||
| 16991 | 2011-09-17 Eli Zaretskii <eliz@gnu.org> | ||
| 16992 | |||
| 16993 | * xdisp.c (reseat_at_next_visible_line_start): Keep information | ||
| 16994 | about the current paragraph and restore it after the call to reseat. | ||
| 16995 | |||
| 16996 | * bidi.c (MAX_PARAGRAPH_SEARCH): New macro. | ||
| 16997 | (bidi_find_paragraph_start): Search back for paragraph beginning | ||
| 16998 | at most MAX_PARAGRAPH_SEARCH lines; if not found, return BEGV_BYTE. | ||
| 16999 | (bidi_move_to_visually_next): Only trigger paragraph-related | ||
| 17000 | computations when the last character is a newline or at EOB, not | ||
| 17001 | just any NEUTRAL_B. (Bug#9470) | ||
| 17002 | |||
| 17003 | * xdisp.c (set_cursor_from_row): Don't invoke special treatment of | ||
| 17004 | truncated lines if point is covered by a display string. (Bug#9524) | ||
| 17005 | |||
| 17006 | 2011-09-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17007 | |||
| 17008 | * xselect.c: Relax test for outgoing X longs (Bug#9498). | ||
| 17009 | (cons_to_x_long): New function. | ||
| 17010 | (lisp_data_to_selection_data): Use it. Correct the test for | ||
| 17011 | short-versus-long data; it was negated. Break out of vector | ||
| 17012 | loop, for efficiency, when a long datum is discovered. | ||
| 17013 | |||
| 17014 | 2011-09-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 17015 | |||
| 17016 | * eval.c (Fquote): Document its non-consing behavior (bug#9482). | ||
| 17017 | |||
| 17018 | 2011-09-16 Eli Zaretskii <eliz@gnu.org> | ||
| 17019 | |||
| 17020 | * image.c (tiff_handler): Work around a bug in MinGW GCC 3.x (see | ||
| 17021 | GCC PR/17406) by declaring this function with external scope. | ||
| 17022 | |||
| 17023 | 2011-09-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17024 | |||
| 17025 | * editfns.c (Fformat): Fix bug in text-property fix (Bug#9514). | ||
| 17026 | Don't mishandle (length (format "%%")) and (format "%4000s%%" ""). | ||
| 17027 | |||
| 17028 | 2011-09-15 Andreas Schwab <schwab@linux-m68k.org> | ||
| 17029 | |||
| 17030 | * editfns.c (Fformat): Correctly handle text properties on "%%". | ||
| 17031 | |||
| 17032 | 2011-09-15 Eli Zaretskii <eliz@gnu.org> | ||
| 17033 | |||
| 17034 | * xterm.c (x_draw_composite_glyph_string_foreground): | ||
| 17035 | * w32term.c (x_draw_composite_glyph_string_foreground): | ||
| 17036 | * term.c (encode_terminal_code): | ||
| 17037 | * composite.c (composition_update_it, get_composition_id): | ||
| 17038 | * xdisp.c (get_next_display_element) | ||
| 17039 | (fill_composite_glyph_string): Add comments about special meaning | ||
| 17040 | of TAB characters in a composition. | ||
| 17041 | |||
| 17042 | 2011-09-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17043 | |||
| 17044 | * editfns.c (Fformat): Fix off-by-1 bug for "%%b" (Bug#9514). | ||
| 17045 | This occurs when processing a multibyte format. | ||
| 17046 | Problem reported by Wolfgang Jenker. | ||
| 17047 | |||
| 17048 | 2011-09-15 Johan Bockgård <bojohan@gnu.org> | ||
| 17049 | |||
| 17050 | * xdisp.c (try_cursor_movement): Only check for exact match if | ||
| 17051 | cursor hpos found by set_cursor_from_row is valid. (Bug#9495) | ||
| 17052 | |||
| 17053 | 2011-09-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17054 | |||
| 17055 | Remove unused external symbols. | ||
| 17056 | * dispextern.h (calc_pixel_width_or_height): Remove decl. | ||
| 17057 | * xdisp.c (calc_pixel_width_or_height): Now static. | ||
| 17058 | * doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove. | ||
| 17059 | * indent.c (check_display_width): | ||
| 17060 | * w32term.c: Fix comment to match code. | ||
| 17061 | * xterm.c, xterm.h (x_catching_errors): Remove. | ||
| 17062 | |||
| 17063 | 2011-09-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17064 | |||
| 17065 | * xselect.c: Use signed conversions more consistently (Bug#9498). | ||
| 17066 | (selection_data_to_lisp_data): Assume incoming selection data are | ||
| 17067 | signed integers, not unsigned. This is to be consistent with | ||
| 17068 | outgoing selection data, which was modified to use signed integers | ||
| 17069 | in as part of the fix to Bug#9196 in response to Jan D.'s comment | ||
| 17070 | in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#32> that X11 | ||
| 17071 | expects long, not unsigned long. | ||
| 17072 | |||
| 17073 | 2011-09-14 Eli Zaretskii <eliz@gnu.org> | ||
| 17074 | |||
| 17075 | * xdisp.c (try_window_reusing_current_matrix): Fix incorrect | ||
| 17076 | computation of loop end. Reported by Johan Bockgård | ||
| 17077 | <bojohan@gnu.org>. | ||
| 17078 | |||
| 17079 | 2011-09-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 17080 | |||
| 17081 | * frame.c (Fother_visible_frames_p): Function deleted. | ||
| 17082 | |||
| 17083 | 2011-09-12 Eli Zaretskii <eliz@gnu.org> | ||
| 17084 | |||
| 17085 | * indent.c (compute_motion): Process display vector front to back | ||
| 17086 | rather than the other way around. (Bug#2496) | ||
| 17087 | |||
| 17088 | 2011-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 17089 | |||
| 17090 | * fileio.c (Finsert_file_contents): Don't assume beg_offset is 0. | ||
| 17091 | |||
| 17092 | 2011-09-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 17093 | |||
| 17094 | * minibuf.c (Fread_from_minibuffer): Doc fix. | ||
| 17095 | |||
| 17096 | 2011-09-11 Eli Zaretskii <eliz@gnu.org> | ||
| 17097 | |||
| 17098 | * xdisp.c (produce_stretch_glyph): Fix a typo made in changes from | ||
| 17099 | 2011-08-30T17:32:44Z!eliz@gnu.org. (Bug#9475) | ||
| 17100 | |||
| 17101 | 2011-09-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 17102 | |||
| 17103 | * fileio.c (Fvisited_file_modtime): Document `(-1 65535)' as a | ||
| 17104 | value for non-existent files. | ||
| 17105 | |||
| 17106 | 2011-09-11 Eli Zaretskii <eliz@gnu.org> | ||
| 17107 | |||
| 17108 | * fileio.c (Finsert_file_contents): If the file cannot be opened, | ||
| 17109 | set its "size" to -1. This will set the modtime_size field of | ||
| 17110 | the corresponding buffer to -1, which is what | ||
| 17111 | verify-visited-file-modtime expects for files that do not exist. | ||
| 17112 | (Bug#9139) | ||
| 17113 | |||
| 17114 | 2011-09-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17115 | |||
| 17116 | * keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls | ||
| 17117 | here ... | ||
| 17118 | * lisp.h: ... from here. push_key_description is no longer | ||
| 17119 | defined in keyboard.c, so its declaration should not be in | ||
| 17120 | lisp.h's "Defined in keyboard.c" section, and KEY_DESCRIPTION_SIZE | ||
| 17121 | logically belongs with push_key_description. | ||
| 17122 | |||
| 17123 | 2011-09-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17124 | |||
| 17125 | * buffer.h: Include <sys/types.h> instead of <time.h>. | ||
| 17126 | Otherwise, off_t wasn't defined on FreeBSD 9.0-BETA2 i386. | ||
| 17127 | Problem reported by Herbert J. Skuhra. | ||
| 17128 | |||
| 17129 | 2011-09-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 17130 | |||
| 17131 | * xml.c (parse_region): Make the parsing work for | ||
| 17132 | non-comment-starting XML files again (bug#9144). | ||
| 17133 | |||
| 17134 | 2011-09-10 Andreas Schwab <schwab@linux-m68k.org> | ||
| 17135 | |||
| 17136 | * image.c (gif_load): Fix calculation of bottom and right corner. | ||
| 17137 | (Bug#9468) | ||
| 17138 | |||
| 17139 | 2011-09-10 Eli Zaretskii <eliz@gnu.org> | ||
| 17140 | |||
| 17141 | * xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish | ||
| 17142 | redisplay in small windows. | ||
| 17143 | |||
| 17144 | 2011-09-09 Eli Zaretskii <eliz@gnu.org> | ||
| 17145 | |||
| 17146 | * frame.c (x_report_frame_params): Cast to avoid compiler warnings. | ||
| 17147 | |||
| 17148 | 2011-09-08 Martin Rudalics <rudalics@gmx.at> | ||
| 17149 | |||
| 17150 | * window.c (Fset_window_prev_buffers, Fset_window_next_buffers): | ||
| 17151 | Operate on live windows only. | ||
| 17152 | |||
| 17153 | 2011-09-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 17154 | |||
| 17155 | * emacs.c (my_heap_start): #ifdef to avoid warnings when unused. | ||
| 17156 | |||
| 17157 | 2011-09-07 Eli Zaretskii <eliz@gnu.org> | ||
| 17158 | |||
| 17159 | * xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it | ||
| 17160 | only under bidi iteration. | ||
| 17161 | |||
| 17162 | 2011-09-07 Jan Djärv <jan.h.d@swipnet.se> | ||
| 17163 | |||
| 17164 | * gtkutil.c (xg_make_tool_item): Insert comment about eventbox. | ||
| 17165 | |||
| 17166 | 2011-09-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17167 | |||
| 17168 | isnan: Fix porting problem to Solaris 10 with bundled gcc. | ||
| 17169 | Without this fix, the command to link temacs failed due to an | ||
| 17170 | undefined symbol __builtin_isnan. This is because | ||
| 17171 | /usr/include/iso/math_c99.h #defines isnan(x) to | ||
| 17172 | __builtin_isnan(x), but the bundled gcc, which identifies itself | ||
| 17173 | as gcc 3.4.3 (csl-sol210-3_4-branch+sol_rpath), does not have | ||
| 17174 | a __builtin_isnan. | ||
| 17175 | * floatfns.c (isnan): #undef, and then #define to a clone of | ||
| 17176 | what's in data.c. | ||
| 17177 | (Fisnan): Always define, since it's always available now. | ||
| 17178 | (syms_of_floatfns): Always define isnan at the Lisp level. | ||
| 17179 | |||
| 17180 | 2011-09-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17181 | |||
| 17182 | * Makefile.in (gl-stamp): move-if-change now in build-aux (Bug#9169). | ||
| 17183 | |||
| 17184 | 2011-09-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17185 | |||
| 17186 | * fileio.c: Fix bugs with large file offsets (Bug#9428). | ||
| 17187 | The previous code assumed that file offsets (off_t values) fit in | ||
| 17188 | EMACS_INT variables, which is not true on typical 32-bit hosts. | ||
| 17189 | The code messed up by falsely reporting buffer overflow in cases | ||
| 17190 | such as (insert-file-contents "big" nil 1 2) into an empty buffer | ||
| 17191 | when "big" contains more than 2**29 bytes, even though this | ||
| 17192 | inserts just one byte and does not overflow the buffer. | ||
| 17193 | (Finsert_file_contents): Store file offsets as off_t | ||
| 17194 | values, not as EMACS_INT values. Check for overflow when | ||
| 17195 | converting between EMACS_INT and off_t. When checking for | ||
| 17196 | buffer overflow or for overlap, take the offsets into account. | ||
| 17197 | Don't use EMACS_INT for small values where int suffices. | ||
| 17198 | When checking for overlap, fix a typo: ZV was used where | ||
| 17199 | ZV_BYTE was intended. | ||
| 17200 | (Fwrite_region): Don't assume off_t fits into 'long'. | ||
| 17201 | * buffer.h (struct buffer.modtime_size): Now off_t, not EMACS_INT. | ||
| 17202 | |||
| 17203 | 2011-09-05 Michael Albinus <michael.albinus@gmx.de> | ||
| 17204 | |||
| 17205 | * dbusbind.c (xd_signature_cat): Rename from signature_cat. | ||
| 17206 | |||
| 17207 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17208 | |||
| 17209 | sprintf-related integer and memory overflow issues (Bug#9412). | ||
| 17210 | |||
| 17211 | * doprnt.c (doprnt): Support printing ptrdiff_t and intmax_t values. | ||
| 17212 | (esprintf, exprintf, evxprintf): New functions. | ||
| 17213 | * keyboard.c (command_loop_level): Now EMACS_INT, not int. | ||
| 17214 | (cmd_error): Kbd macro iterations count is now EMACS_INT, not int. | ||
| 17215 | (modify_event_symbol): Do not assume that the length of | ||
| 17216 | name_alist_or_stem is safe to alloca and fits in int. | ||
| 17217 | (Fexecute_extended_command): Likewise for function name and binding. | ||
| 17218 | (Frecursion_depth): Wrap around reliably on integer overflow. | ||
| 17219 | * keymap.c (push_key_description): First arg is now EMACS_INT, not int, | ||
| 17220 | since some callers pass EMACS_INT values. | ||
| 17221 | (Fsingle_key_description): Don't crash if symbol name contains more | ||
| 17222 | than MAX_ALLOCA bytes. | ||
| 17223 | * minibuf.c (minibuf_level): Now EMACS_INT, not int. | ||
| 17224 | (get_minibuffer): Arg is now EMACS_INT, not int. | ||
| 17225 | * lisp.h (get_minibuffer, push_key_description): Reflect API changes. | ||
| 17226 | (esprintf, exprintf, evxprintf): New decls. | ||
| 17227 | * window.h (command_loop_level, minibuf_level): Reflect API changes. | ||
| 17228 | |||
| 17229 | * dbusbind.c (signature_cat): New function. | ||
| 17230 | (xd_signature, Fdbus_register_signal): | ||
| 17231 | Do not overrun buffer; instead, report string overflow. | ||
| 17232 | |||
| 17233 | * dispnew.c (add_window_display_history): Don't overrun buffer. | ||
| 17234 | Truncate instead; this is OK since it's just a log. | ||
| 17235 | |||
| 17236 | * editfns.c (Fcurrent_time_zone): Don't overrun buffer | ||
| 17237 | even if the time zone offset is outlandishly large. | ||
| 17238 | Don't mishandle offset == INT_MIN. | ||
| 17239 | |||
| 17240 | * emacs.c (main) [NS_IMPL_COCOA]: Don't overrun buffer | ||
| 17241 | when creating daemon; the previous buffer-overflow check was incorrect. | ||
| 17242 | |||
| 17243 | * eval.c (verror): Simplify by rewriting in terms of evxprintf, | ||
| 17244 | which has the guts of the old verror function. | ||
| 17245 | |||
| 17246 | * filelock.c (lock_file_1, lock_file): Don't blindly alloca long name; | ||
| 17247 | use SAFE_ALLOCA instead. Use esprintf to avoid int-overflow issues. | ||
| 17248 | |||
| 17249 | * font.c: Include <float.h>, for DBL_MAX_10_EXP. | ||
| 17250 | (font_unparse_xlfd): Don't blindly alloca long strings. | ||
| 17251 | Don't assume XINT result fits in int, or that XFLOAT_DATA * 10 | ||
| 17252 | fits in int, when using sprintf. Use single snprintf to count | ||
| 17253 | length of string rather than counting it via multiple sprintfs; | ||
| 17254 | that's simpler and more reliable. | ||
| 17255 | (font_unparse_fcname): Use it to avoid sprintf buffer overrun. | ||
| 17256 | (generate_otf_features) [0 && HAVE_LIBOTF]: Use esprintf, not | ||
| 17257 | sprintf, in case result does not fit in int. | ||
| 17258 | |||
| 17259 | * fontset.c (num_auto_fontsets): Now printmax_t, not int. | ||
| 17260 | (fontset_from_font): Print it. | ||
| 17261 | |||
| 17262 | * frame.c (tty_frame_count): Now printmax_t, not int. | ||
| 17263 | (make_terminal_frame, set_term_frame_name): Print it. | ||
| 17264 | (x_report_frame_params): In X, window IDs are unsigned long, | ||
| 17265 | not signed long, so print them as unsigned. | ||
| 17266 | (validate_x_resource_name): Check for implausibly long names, | ||
| 17267 | and don't assume name length fits in 'int'. | ||
| 17268 | (x_get_resource_string): Don't blindly alloca invocation name; | ||
| 17269 | use SAFE_ALLOCA. Use esprintf, not sprintf, in case result does | ||
| 17270 | not fit in int. | ||
| 17271 | |||
| 17272 | * gtkutil.c: Include <float.h>, for DBL_MAX_10_EXP. | ||
| 17273 | (xg_check_special_colors, xg_set_geometry): | ||
| 17274 | Make sprintf buffers a bit bigger, to avoid potential buffer overrun. | ||
| 17275 | |||
| 17276 | * lread.c (dir_warning): Don't blindly alloca buffer; use SAFE_ALLOCA. | ||
| 17277 | Use esprintf, not sprintf, in case result does not fit in int. | ||
| 17278 | |||
| 17279 | * macros.c (executing_kbd_macro_iterations): Now EMACS_INT, not int. | ||
| 17280 | (Fend_kbd_macro): Don't mishandle MOST_NEGATIVE_FIXNUM by treating | ||
| 17281 | it as a large positive number. | ||
| 17282 | (Fexecute_kbd_macro): Don't assume repeat count fits in int. | ||
| 17283 | * macros.h (executing_kbd_macro_iterations): Now EMACS_INT, not int. | ||
| 17284 | |||
| 17285 | * nsterm.m ((NSSize)windowWillResize): Use esprintf, not sprintf, | ||
| 17286 | in case result does not fit in int. | ||
| 17287 | |||
| 17288 | * print.c (float_to_string): Detect width overflow more reliably. | ||
| 17289 | (print_object): Make sprintf buffer a bit bigger, to avoid potential | ||
| 17290 | buffer overrun. Don't assume list length fits in 'int'. Treat | ||
| 17291 | print length of 0 as 0, not as infinity; to be consistent with other | ||
| 17292 | uses of print length in this function. Don't overflow print length | ||
| 17293 | index. Don't assume hash table size fits in 'long', or that | ||
| 17294 | vectorlike size fits in 'unsigned long'. | ||
| 17295 | |||
| 17296 | * process.c (make_process): Use printmax_t, not int, to format | ||
| 17297 | process-name gensyms. | ||
| 17298 | |||
| 17299 | * sysdep.c (snprintf) [! HAVE_SNPRINTF]: New function. | ||
| 17300 | |||
| 17301 | * term.c (produce_glyphless_glyph): Make sprintf buffer a bit bigger | ||
| 17302 | to avoid potential buffer overrun. | ||
| 17303 | |||
| 17304 | * xfaces.c (x_update_menu_appearance): Don't overrun buffer | ||
| 17305 | if X resource line is longer than 512 bytes. | ||
| 17306 | |||
| 17307 | * xfns.c (x_window): Make sprintf buffer a bit bigger | ||
| 17308 | to avoid potential buffer overrun. | ||
| 17309 | |||
| 17310 | * xterm.c (x_io_error_quitter): Don't overrun sprintf buffer. | ||
| 17311 | |||
| 17312 | * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. | ||
| 17313 | |||
| 17314 | 2011-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17315 | |||
| 17316 | Integer overflow fixes for scrolling, etc. | ||
| 17317 | Without these, Emacs silently mishandles large integers sometimes. | ||
| 17318 | For example, "C-u 4294967297 M-x recenter" was treated as if | ||
| 17319 | it were "C-u 1 M-x recenter" on a typical 64-bit host. | ||
| 17320 | |||
| 17321 | * xdisp.c (try_window_id): Check Emacs fixnum range before | ||
| 17322 | converting to 'int'. | ||
| 17323 | |||
| 17324 | * window.c (window_scroll_line_based, Frecenter): | ||
| 17325 | Check that an Emacs fixnum is in range before assigning it to 'int'. | ||
| 17326 | (Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for | ||
| 17327 | values converted from Emacs fixnums. | ||
| 17328 | (Frecenter): Don't wrap around a line count if it is out of 'int' | ||
| 17329 | range; instead, treat it as an extreme value. | ||
| 17330 | (Fset_window_configuration, compare_window_configurations): | ||
| 17331 | Use ptrdiff_t, not int, for index that might exceed 2 GiB. | ||
| 17332 | |||
| 17333 | * search.c (Freplace_match): Use ptrdiff_t, not int, for indexes | ||
| 17334 | that can exceed INT_MAX. Check that EMACS_INT value is in range | ||
| 17335 | before assigning it to the (possibly-narrower) index. | ||
| 17336 | (match_limit): Don't assume that a fixnum can fit in 'int'. | ||
| 17337 | |||
| 17338 | * print.c (print_object): Use ptrdiff_t, not int, for index that can | ||
| 17339 | exceed INT_MAX. | ||
| 17340 | |||
| 17341 | * indent.c (position_indentation): Now takes ptrdiff_t, not int. | ||
| 17342 | (Fvertical_motion): Don't wrap around LINES values that don't fit | ||
| 17343 | in 'int'. Instead, treat them as extreme values. This is good | ||
| 17344 | enough for windows, which can't have more than INT_MAX lines anyway. | ||
| 17345 | |||
| 17346 | 2011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 17347 | |||
| 17348 | * Require libxml/parser.h to avoid compilation warning. | ||
| 17349 | |||
| 17350 | * emacs.c (shut_down_emacs): Call xmlCleanupParser on shutdown. | ||
| 17351 | |||
| 17352 | * xml.c (parse_region): Don't call xmlCleanupParser after parsing, | ||
| 17353 | since this reportedly can destroy thread storage. | ||
| 17354 | |||
| 17355 | 2011-08-30 Chong Yidong <cyd@stupidchicken.com> | ||
| 17356 | |||
| 17357 | * syntax.c (find_defun_start): Update all cache variables if | ||
| 17358 | exiting early (Bug#9401). | ||
| 17359 | |||
| 17360 | 2011-08-30 Eli Zaretskii <eliz@gnu.org> | ||
| 17361 | |||
| 17362 | * image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings. | ||
| 17363 | |||
| 17364 | * xdisp.c (produce_stretch_glyph): No longer static, compiled also | ||
| 17365 | when HAVE_WINDOW_SYSTEM is not defined. Support both GUI and TTY | ||
| 17366 | frames. Call tty_append_glyph in the TTY case. (Bug#9402) | ||
| 17367 | |||
| 17368 | * term.c (tty_append_glyph): New function. | ||
| 17369 | (produce_stretch_glyph): Static function and its prototype deleted. | ||
| 17370 | |||
| 17371 | * dispextern.h (produce_stretch_glyph, tty_append_glyph): | ||
| 17372 | Add prototypes. | ||
| 17373 | |||
| 17374 | 2011-08-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17375 | |||
| 17376 | * image.c (parse_image_spec): Check for nonnegative, not for positive, | ||
| 17377 | when checking :margin (Bug#9390). | ||
| 17378 | (IMAGE_NON_NEGATIVE_INTEGER_VALUE_OR_PAIR): | ||
| 17379 | Rename from IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, | ||
| 17380 | so that the name doesn't mislead. All uses changed. | ||
| 17381 | |||
| 17382 | 2011-08-28 Johan Bockgård <bojohan@gnu.org> | ||
| 17383 | |||
| 17384 | * term.c (init_tty) [HAVE_GPM]: Move mouse settings after | ||
| 17385 | set_tty_hooks. | ||
| 17386 | |||
| 17387 | 2011-08-27 Eli Zaretskii <eliz@gnu.org> | ||
| 17388 | |||
| 17389 | * xdisp.c (move_it_to): Don't bail out early when reaching | ||
| 17390 | position beyond to_charpos, if we are scanning backwards. | ||
| 17391 | (move_it_vertically_backward): When DY == 0, make sure we get to | ||
| 17392 | the first character in the line after the newline. | ||
| 17393 | |||
| 17394 | 2011-08-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17395 | |||
| 17396 | * ccl.c: Improve and simplify overflow checking (Bug#9196). | ||
| 17397 | (ccl_driver): Do not generate an out-of-range pointer. | ||
| 17398 | (Fccl_execute_on_string): Remove unnecessary check for | ||
| 17399 | integer overflow, noted by Stefan Monnier in | ||
| 17400 | <http://lists.gnu.org/archive/html/emacs-devel/2011-08/msg00979.html>. | ||
| 17401 | Remove a FIXME that didn't need fixing. | ||
| 17402 | Simplify the newly-introduced buffer reallocation code. | ||
| 17403 | |||
| 17404 | 2011-08-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 17405 | |||
| 17406 | * makefile.w32-in ($(BLD)/alloc.$(O)): Depend on lib/verify.h. | ||
| 17407 | |||
| 17408 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17409 | |||
| 17410 | Integer and memory overflow issues (Bug#9196). | ||
| 17411 | |||
| 17412 | * doc.c (get_doc_string): Rework so that | ||
| 17413 | get_doc_string_buffer_size is the actual buffer size, rather than | ||
| 17414 | being 1 less than the actual buffer size; this makes xpalloc more | ||
| 17415 | convenient. | ||
| 17416 | |||
| 17417 | * image.c (x_allocate_bitmap_record, cache_image): | ||
| 17418 | * xselect.c (Fx_register_dnd_atom): | ||
| 17419 | Simplify previous changes by using xpalloc. | ||
| 17420 | |||
| 17421 | * buffer.c (overlay_str_len): Now ptrdiff_t, not EMACS_INT, | ||
| 17422 | since either will do and ptrdiff_t is convenient with xpalloc. | ||
| 17423 | |||
| 17424 | * charset.c (charset_table_size) | ||
| 17425 | (struct charset_sort_data.priority): Now ptrdiff_t. | ||
| 17426 | (charset_compare): Don't overflow if priorities differ greatly. | ||
| 17427 | (Fsort_charsets): Don't assume list length fits in int. | ||
| 17428 | Check for size-calculation overflow when allocating sort data. | ||
| 17429 | (syms_of_charset): Allocate an initial charset table that is | ||
| 17430 | just under 64 KiB, to avoid problems with glibc malloc and mmap. | ||
| 17431 | |||
| 17432 | * cmds.c (internal_self_insert): Check for size-calculation overflow. | ||
| 17433 | |||
| 17434 | * composite.h (struct composition.glyph_len): Now int, not unsigned. | ||
| 17435 | The actual value is always <= INT_MAX, and leaving it unsigned made | ||
| 17436 | overflow checking harder. | ||
| 17437 | |||
| 17438 | * dispextern.h (struct glyph_matrix.rows_allocated) | ||
| 17439 | (struct face_cache.size): Now ptrdiff_t, for convenience in use | ||
| 17440 | with xpalloc. The values are still always <= INT_MAX. | ||
| 17441 | |||
| 17442 | * indent.c (compute_motion): Adjust to region_cache_forward sig change. | ||
| 17443 | |||
| 17444 | * lisp.h (xnmalloc, xnrealloc, xpalloc): New decls. | ||
| 17445 | (SAFE_NALLOCA): New macro. | ||
| 17446 | |||
| 17447 | * region-cache.c (struct boundary.pos, find_cache_boundary) | ||
| 17448 | (move_cache_gap, insert_cache_boundary, delete_cache_boundaries) | ||
| 17449 | (set_cache_region, invalidate_region_cache) | ||
| 17450 | (revalidate_region_cache, know_region_cache, region_cache_forward) | ||
| 17451 | (region_cache_backward, pp_cache): | ||
| 17452 | Use ptrdiff_t, not EMACS_INT, since either will do. This is needed | ||
| 17453 | so that ptrdiff_t * can be passed to xpalloc. | ||
| 17454 | (struct region_cache): Similarly, for gap_start, gap_len, cache_len, | ||
| 17455 | beg_unchanged, end_unchanged, buffer_beg, buffer_end members. | ||
| 17456 | (pp_cache): Don't assume cache_len fits in int. | ||
| 17457 | * region-cache.h: Adjust extern decls to match. | ||
| 17458 | |||
| 17459 | * search.c (scan_buffer, Freplace_match): Use ptrdiff_t, not | ||
| 17460 | EMACS_INT, since either will do, for xpalloc. | ||
| 17461 | |||
| 17462 | * alloc.c: Include verify.h, and check that int fits in ptrdiff_t. | ||
| 17463 | (xnmalloc, xnrealloc, xpalloc): New functions. | ||
| 17464 | |||
| 17465 | * bidi.c (bidi_shelve_header_size): New constant. | ||
| 17466 | (bidi_cache_ensure_space, bidi_shelve_cache): Use it. | ||
| 17467 | (bidi_cache_ensure_space): Avoid integer overflow when allocating. | ||
| 17468 | |||
| 17469 | * bidi.c (bidi_cache_shrink): | ||
| 17470 | * buffer.c (overlays_at, overlays_in, record_overlay_string) | ||
| 17471 | (overlay_strings): | ||
| 17472 | Don't update size of array until after memory allocation succeeds, | ||
| 17473 | because xmalloc/xrealloc may not return. | ||
| 17474 | (struct sortstrlist.bytes): Now ptrdiff_t, as EMACS_INT doesn't help | ||
| 17475 | now that we have proper integer overflow checking. | ||
| 17476 | (record_overlay_string, overlay_strings): Catch overflows when | ||
| 17477 | calculating size of overlay_str_buf. | ||
| 17478 | |||
| 17479 | * callproc.c (Fcall_process): Check for size overflow when | ||
| 17480 | calculating size of args2. | ||
| 17481 | (child_setup): Avoid overflow by using size_t rather than ptrdiff_t. | ||
| 17482 | Normally we prefer signed values, but sticking with ptrdiff_t would | ||
| 17483 | require adding more-complicated checks. | ||
| 17484 | |||
| 17485 | * ccl.c (Fccl_execute_on_string): Check for memory overflow. | ||
| 17486 | Use ptrdiff_t rather than EMACS_INT where ptrdiff_t will do. | ||
| 17487 | Redo buffer-overflow calculations to avoid integer overflow. | ||
| 17488 | Add a FIXME comment where memory seems to be over-allocated. | ||
| 17489 | |||
| 17490 | * character.c (Fstring): Check for size-calculation overflow. | ||
| 17491 | |||
| 17492 | * coding.c (produce_chars): Redo buffer-overflow calculations to avoid | ||
| 17493 | unnecessary integer overflow. Check for size overflow. | ||
| 17494 | (encode_coding_object): Don't update size until xmalloc succeeds. | ||
| 17495 | |||
| 17496 | * composite.c (get_composition_id): Check for overflow in glyph | ||
| 17497 | length calculations. | ||
| 17498 | |||
| 17499 | Integer and memory overflow fixes for display code. | ||
| 17500 | * dispextern.h (struct glyph_pool.nglyphs): Now ptrdiff_t, not int. | ||
| 17501 | * dispnew.c (adjust_glyph_matrix, realloc_glyph_pool) | ||
| 17502 | (scrolling_window): Check for overflow in size calculations. | ||
| 17503 | (line_draw_cost, realloc_glyph_pool, add_row_entry): | ||
| 17504 | Don't assume glyph table len fits in int. | ||
| 17505 | (struct row_entry.bucket, row_entry_pool_size, row_entry_idx) | ||
| 17506 | (row_table_size): Now ptrdiff_t, not int. | ||
| 17507 | (scrolling_window): Avoid overflow in size calculations. | ||
| 17508 | Don't update size until allocation succeeds. | ||
| 17509 | * fns.c (concat): Check for overflow in size calculations. | ||
| 17510 | (next_almost_prime): Verify NEXT_ALMOST_PRIME_LIMIT. | ||
| 17511 | * lisp.h (RANGED_INTEGERP, TYPE_RANGED_INTEGERP): New macros. | ||
| 17512 | (NEXT_ALMOST_PRIME_LIMIT): New constant. | ||
| 17513 | |||
| 17514 | * doc.c (get_doc_string_buffer_size): Now ptrdiff_t, not int. | ||
| 17515 | (get_doc_string): Check for size calculation overflow. | ||
| 17516 | Don't update size until allocation succeeds. | ||
| 17517 | (get_doc_string, Fsubstitute_command_keys): Use ptrdiff_t, not | ||
| 17518 | EMACS_INT, where ptrdiff_t will do. | ||
| 17519 | (Fsubstitute_command_keys): Check for string overflow. | ||
| 17520 | |||
| 17521 | * editfns.c (set_time_zone_rule): Don't assume environment length | ||
| 17522 | fits in int. | ||
| 17523 | (message_length): Now ptrdiff_t, not int. | ||
| 17524 | (Fmessage_box): Don't update size until allocation succeeds. | ||
| 17525 | Don't assume message length fits in int. | ||
| 17526 | (Fformat): Use ptrdiff_t, not EMACS_INT, where ptrdiff_t will do. | ||
| 17527 | |||
| 17528 | * emacs.c (main): Do not reallocate argv, since there is a null at | ||
| 17529 | the end that can be overwritten, and this way there's no need to | ||
| 17530 | worry about size-calculation overflow. | ||
| 17531 | (sort_args): Check for size-calculation overflow. | ||
| 17532 | |||
| 17533 | * eval.c (init_eval_once, grow_specpdl): Don't update size until | ||
| 17534 | alloc succeeds. | ||
| 17535 | (call_debugger, grow_specpdl): Redo calculations to avoid overflow. | ||
| 17536 | |||
| 17537 | * frame.c (set_menu_bar_lines, x_set_frame_parameters) | ||
| 17538 | (x_set_scroll_bar_width, x_figure_window_size): | ||
| 17539 | Check for integer overflow. | ||
| 17540 | (x_set_alpha): Do not assume XINT fits in int. | ||
| 17541 | |||
| 17542 | * frame.h (struct frame): Use int, not EMACS_INT, where int works. | ||
| 17543 | This is for the members text_lines, text_cols, total_lines, total_cols, | ||
| 17544 | where the system imposes an 'int' limit. | ||
| 17545 | |||
| 17546 | * fringe.c (Fdefine_fringe_bitmap): | ||
| 17547 | Don't update size until alloc works. | ||
| 17548 | |||
| 17549 | * ftfont.c (ftfont_get_open_type_spec, setup_otf_gstring) | ||
| 17550 | (ftfont_shape_by_flt): Check for integer overflow in size calculations. | ||
| 17551 | |||
| 17552 | * gtkutil.c (get_utf8_string, xg_store_widget_in_map): | ||
| 17553 | Check for size-calculation overflow. | ||
| 17554 | (get_utf8_string): Use ptrdiff_t, not size_t, where either will | ||
| 17555 | do, as we prefer signed integers. | ||
| 17556 | (id_to_widget.max_size, id_to_widget.used) | ||
| 17557 | (xg_store_widget_in_map, xg_remove_widget_from_map) | ||
| 17558 | (xg_get_widget_from_map, xg_get_scroll_id_for_window) | ||
| 17559 | (xg_remove_scroll_bar, xg_update_scrollbar_pos): | ||
| 17560 | Use and return ptrdiff_t, not int. | ||
| 17561 | (xg_gtk_scroll_destroy): Don't assume ptrdiff_t fits in int. | ||
| 17562 | * gtkutil.h: Change prototypes to match the above. | ||
| 17563 | |||
| 17564 | * image.c (RANGED_INTEGERP, TYPE_RANGED_INTEGERP): Remove; these | ||
| 17565 | are duplicate now that they've been promoted to lisp.h. | ||
| 17566 | (x_allocate_bitmap_record, x_alloc_image_color) | ||
| 17567 | (make_image_cache, cache_image, xpm_load): | ||
| 17568 | Don't update size until alloc is done. | ||
| 17569 | (xpm_load, lookup_rgb_color, lookup_pixel_color, x_to_xcolors) | ||
| 17570 | (x_detect_edges): | ||
| 17571 | Check for size calculation overflow. | ||
| 17572 | (ct_colors_allocated_max): New constant. | ||
| 17573 | (x_to_xcolors, x_detect_edges): Reorder multiplicands to avoid | ||
| 17574 | overflow. | ||
| 17575 | |||
| 17576 | * keyboard.c (read_char, menu_bar_items, tool_bar_items) | ||
| 17577 | (read_char_x_menu_prompt, read_char_minibuf_menu_width) | ||
| 17578 | (read_char_minibuf_menu_prompt, follow_key, read_key_sequence): | ||
| 17579 | Use ptrdiff_t, not int, to count maps. | ||
| 17580 | (read_char_minibuf_menu_prompt): Check for overflow in size | ||
| 17581 | calculations. Don't update size until allocation succeeds. | ||
| 17582 | Redo calculations to avoid overflow. | ||
| 17583 | * keyboard.h: Change prototypes to match the above. | ||
| 17584 | |||
| 17585 | * keymap.c (cmm_size, current_minor_maps): Use ptrdiff_t, not int, | ||
| 17586 | to count maps. | ||
| 17587 | (current_minor_maps): Check for size calculation overflow. | ||
| 17588 | * keymap.h: Change prototypes to match the above. | ||
| 17589 | |||
| 17590 | * lread.c (read1, init_obarray): Don't update size until alloc done. | ||
| 17591 | |||
| 17592 | * macros.c (Fstart_kbd_macro): Don't update size until alloc done. | ||
| 17593 | (store_kbd_macro_char): Reorder multiplicands to avoid overflow. | ||
| 17594 | |||
| 17595 | * nsterm.h (struct ns_color_table.size, struct ns_color_table.avail): | ||
| 17596 | Now ptrdiff_t, not int. | ||
| 17597 | * nsterm.m (ns_index_color): Use ptrdiff_t, not int, for table indexes. | ||
| 17598 | (ns_draw_fringe_bitmap): Rewrite to avoid overflow. | ||
| 17599 | |||
| 17600 | * process.c (Fnetwork_interface_list): Check for overflow | ||
| 17601 | in size calculation. | ||
| 17602 | |||
| 17603 | * region-cache.c (move_cache_gap): Check for size calculation overflow. | ||
| 17604 | |||
| 17605 | * scroll.c (do_line_insertion_deletion_costs): Check for size calc | ||
| 17606 | overflow. Don't bother calling xmalloc when xrealloc will do. | ||
| 17607 | |||
| 17608 | * search.c (Freplace_match): Check for size calculation overflow. | ||
| 17609 | (Fset_match_data): Don't assume list lengths fit in 'int'. | ||
| 17610 | |||
| 17611 | * sysdep.c (system_process_attributes): Use ptrdiff_t, not int, | ||
| 17612 | for command line length. Do not attempt to address one before the | ||
| 17613 | beginning of an array, as that's not portable. | ||
| 17614 | |||
| 17615 | * term.c (max_frame_lines): Remove; unused. | ||
| 17616 | (encode_terminal_src_size, encode_terminal_dst_size): Now ptrdiff_t, | ||
| 17617 | not int. | ||
| 17618 | (encode_terminal_code, calculate_costs): Check for size | ||
| 17619 | calculation overflow. | ||
| 17620 | (encode_terminal_code): Use ptrdiff_t, not int, to record glyph | ||
| 17621 | table lengths and related sizes. Don't update size until alloc | ||
| 17622 | done. Redo calculations to avoid overflow. | ||
| 17623 | (calculate_costs): Don't bother calling xmalloc when xrealloc will do. | ||
| 17624 | |||
| 17625 | * termcap.c (tgetent): Use ptrdiff_t, not int, to record results of | ||
| 17626 | subtracting pointers. | ||
| 17627 | (gobble_line): Check for overflow more carefully. Don't update size | ||
| 17628 | until alloc done. | ||
| 17629 | |||
| 17630 | * tparam.c (tparam1): Use ptrdiff_t, not int, for sizes. | ||
| 17631 | Don't update size until alloc done. | ||
| 17632 | Redo size calculations to avoid overflow. | ||
| 17633 | Check for size calculation overflow. | ||
| 17634 | (main) [DEBUG]: Fix typo in invoking tparam1. | ||
| 17635 | |||
| 17636 | * xdisp.c (store_mode_line_noprop_char, x_consider_frame_title): | ||
| 17637 | Use ptrdiff_t, not int, for sizes. | ||
| 17638 | (store_mode_line_noprop_char): Don't update size until alloc done. | ||
| 17639 | |||
| 17640 | * xfaces.c (lface_id_to_name_size, Finternal_make_lisp_face): | ||
| 17641 | Use ptrdiff_t, not int, for sizes. | ||
| 17642 | (Finternal_make_lisp_face, cache_face): | ||
| 17643 | Check for size calculation overflow. | ||
| 17644 | (cache_face): Treat size calculation overflows as if they were | ||
| 17645 | memory exhaustion (the usual treatment), rather than aborting. | ||
| 17646 | |||
| 17647 | * xfns.c (x_encode_text, x_set_name_internal) | ||
| 17648 | (Fx_change_window_property): Use ptrdiff_t, not int, to count | ||
| 17649 | sizes, since they can exceed INT_MAX in size. Check for size | ||
| 17650 | calculation overflow. | ||
| 17651 | |||
| 17652 | * xgselect.c (gfds_size): Now ptrdiff_t, for convenience with xpalloc. | ||
| 17653 | (xg_select): Check for size calculation overflow. | ||
| 17654 | Don't update size until alloc done. | ||
| 17655 | |||
| 17656 | * xrdb.c (get_environ_db): Don't assume path length fits in int, | ||
| 17657 | as sprintf is limited to int lengths. | ||
| 17658 | |||
| 17659 | * xselect.c (X_LONG_SIZE, X_SHRT_MAX, X_SHRT_MIN, X_LONG_MAX) | ||
| 17660 | (X_LONG_MIN): New macros. | ||
| 17661 | Use them to make the following changes clearer. | ||
| 17662 | (MAX_SELECTION_QUANTUM): Make the other bounds on this value clearer. | ||
| 17663 | This change doesn't affect the value now, but it may help remind | ||
| 17664 | future maintainers not to raise the value too much later. | ||
| 17665 | (SELECTION_QUANTUM): Remove, replacing with ... | ||
| 17666 | (selection_quantum): ... new function, which avoids overflow. | ||
| 17667 | All uses changed. | ||
| 17668 | (struct selection_data.size): Now ptrdiff_t, not int, to avoid | ||
| 17669 | assumption that selection length fits in 'int'. | ||
| 17670 | (x_reply_selection_request, x_handle_selection_request) | ||
| 17671 | (x_get_window_property, receive_incremental_selection) | ||
| 17672 | (x_get_window_property_as_lisp_data, selection_data_to_lisp_data) | ||
| 17673 | (lisp_data_to_selection_data, clean_local_selection_data): | ||
| 17674 | Use ptrdiff_t, not int, to record length of selection. | ||
| 17675 | (x_reply_selection_request, x_get_window_property) | ||
| 17676 | (receive_incremental_selection, x_property_data_to_lisp): | ||
| 17677 | Redo calculations to avoid overflow. | ||
| 17678 | (x_reply_selection_request): When sending hint, ceiling it at | ||
| 17679 | X_LONG_MAX rather than relying on wraparound overflow to send | ||
| 17680 | something. | ||
| 17681 | (x_get_window_property, receive_incremental_selection) | ||
| 17682 | (lisp_data_to_selection_data, x_property_data_to_lisp): | ||
| 17683 | Check for size-calculation overflow. | ||
| 17684 | (x_get_window_property, receive_incremental_selection) | ||
| 17685 | (lisp_data_to_selection_data, Fx_register_dnd_atom): | ||
| 17686 | Don't store size until memory allocation succeeds. | ||
| 17687 | (x_get_window_property): Plug memory leak on memory exhaustion. | ||
| 17688 | Don't double-block input; malloc is safe here. Don't assume 2**34 | ||
| 17689 | - 4 fits in unsigned long. Add an xassert to check | ||
| 17690 | XGetWindowProperty overflow. Be more careful about overflow | ||
| 17691 | calculations, and distinguish size from memory overflow better. | ||
| 17692 | (receive_incremental_selection): When tracing, don't assume | ||
| 17693 | unsigned int is less than INT_MAX. | ||
| 17694 | (x_selection_data_to_lisp_data): Remove unnecessary (and in theory | ||
| 17695 | harmful) conversions of unsigned short to int. | ||
| 17696 | (lisp_data_to_selection_data): Don't assume that integers | ||
| 17697 | in the range -65535 through -1 fit in an X unsigned short. | ||
| 17698 | Don't assume that ULONG_MAX == X_ULONG_MAX. Don't store into | ||
| 17699 | result parameters unless successful. Rely on cons_to_unsigned | ||
| 17700 | to report problems with elements; the old code wasn't right anyway. | ||
| 17701 | (x_check_property_data): Check for int overflow; we cannot use | ||
| 17702 | a wider type due to X limits. | ||
| 17703 | (x_handle_dnd_message): Use unsigned int, to avoid int overflow. | ||
| 17704 | |||
| 17705 | * xsmfns.c (smc_save_yourself_CB): Check for size calc overflow. | ||
| 17706 | |||
| 17707 | * xterm.c (x_color_cells, x_send_scrollbar_event, handle_one_xevent) | ||
| 17708 | (x_term_init): Check for size calculation overflow. | ||
| 17709 | (x_color_cells): Don't store size until memory allocation succeeds. | ||
| 17710 | (handle_one_xevent): Use ptrdiff_t, not int, for byte counts. | ||
| 17711 | Don't assume alloca size is less than MAX_ALLOCA. | ||
| 17712 | (x_term_init): Don't assume length fits in int (sprintf is limited | ||
| 17713 | to int size). | ||
| 17714 | |||
| 17715 | Use ptrdiff_t for composition IDs. | ||
| 17716 | * character.c (lisp_string_width): | ||
| 17717 | * composite.c (composition_table_size, n_compositions) | ||
| 17718 | (get_composition_id, composition_gstring_from_id): | ||
| 17719 | * dispextern.h (struct glyph_string.cmp_id, struct composition_it.id): | ||
| 17720 | * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): | ||
| 17721 | * window.c (Frecenter): | ||
| 17722 | Use ptrdiff_t, not int, for composition IDs. | ||
| 17723 | * composite.c (get_composition_id): Check for integer overflow. | ||
| 17724 | * composite.h: Adjust prototypes to match the above changes. | ||
| 17725 | |||
| 17726 | Use ptrdiff_t for hash table indexes. | ||
| 17727 | * category.c (hash_get_category_set): | ||
| 17728 | * ccl.c (ccl_driver): | ||
| 17729 | * charset.h (struct charset.hash_index, CHECK_CHARSET_GET_ID): | ||
| 17730 | * coding.c (coding_system_charset_list, detect_coding_system): | ||
| 17731 | * coding.h (struct coding_system.id): | ||
| 17732 | * composite.c (get_composition_id, gstring_lookup_cache): | ||
| 17733 | * fns.c (hash_lookup, hash_put, Fgethash, Fputhash): | ||
| 17734 | * image.c (xpm_get_color_table_h): | ||
| 17735 | * lisp.h (hash_lookup, hash_put): | ||
| 17736 | * minibuf.c (Ftest_completion): | ||
| 17737 | Use ptrdiff_t for hash table indexes, not int (which is too | ||
| 17738 | narrow, on 64-bit hosts) or EMACS_INT (which is too wide, on | ||
| 17739 | 32-bit --with-wide-int hosts). | ||
| 17740 | |||
| 17741 | * charset.c (Fdefine_charset_internal): Check for integer overflow. | ||
| 17742 | Add a FIXME comment about memory leaks. | ||
| 17743 | (syms_of_charset): Don't assume xmalloc returns. | ||
| 17744 | |||
| 17745 | Don't assume that stated character widths fit in int. | ||
| 17746 | * character.c (Fchar_width, c_string_width, lisp_string_width): | ||
| 17747 | * character.h (CHAR_WIDTH): | ||
| 17748 | * indent.c (MULTIBYTE_BYTES_WIDTH): | ||
| 17749 | Use sanitize_char_width to avoid undefined and/or bad behavior | ||
| 17750 | with outlandish widths. | ||
| 17751 | * character.h (sanitize_tab_width): Rename from sanitize_width, | ||
| 17752 | now that we have two such functions. All uses changed. | ||
| 17753 | (sanitize_char_width): New inline function. | ||
| 17754 | |||
| 17755 | Don't assume that tab-width fits in int. | ||
| 17756 | * character.h (sanitize_width): New inline function. | ||
| 17757 | (SANE_TAB_WIDTH): New macro. | ||
| 17758 | (ASCII_CHAR_WIDTH): Use it. | ||
| 17759 | * indent.c (sane_tab_width): Remove. All uses replaced by | ||
| 17760 | SANE_TAB_WIDTH (current_buffer). | ||
| 17761 | * xdisp.c (init_iterator): Use SANE_TAB_WIDTH. | ||
| 17762 | |||
| 17763 | * fileio.c: Integer overflow issues with file modes. | ||
| 17764 | (Fset_file_modes, auto_save_1): Don't assume EMACS_INT fits in int. | ||
| 17765 | |||
| 17766 | * charset.c (read_hex): New arg OVERFLOW. All uses changed. | ||
| 17767 | Remove unreachable code. | ||
| 17768 | (read_hex, load_charset_map_from_file): Check for integer overflow. | ||
| 17769 | |||
| 17770 | * xterm.c: Don't go over XClientMessageEvent limit. | ||
| 17771 | (scroll_bar_windows_size): Now ptrdiff_t, as we prefer signed. | ||
| 17772 | (x_send_scroll_bar_event): Likewise. Check that the size does not | ||
| 17773 | exceed limits imposed by XClientMessageEvent, as well as the usual | ||
| 17774 | ptrdiff_t and size_t limits. | ||
| 17775 | |||
| 17776 | * keyboard.c: Overflow, signedness and related fixes. | ||
| 17777 | (make_lispy_movement): Use same integer type in forward decl | ||
| 17778 | that is used in the definition. | ||
| 17779 | (read_key_sequence, keyremap_step): | ||
| 17780 | Change bufsize argument back to int, undoing my 2011-03-30 change. | ||
| 17781 | We prefer signed types, and int is wide enough here. | ||
| 17782 | (parse_tool_bar_item): Don't assume tool_bar_max_label_size is less | ||
| 17783 | than TYPE_MAXIMUM (EMACS_INT) / 2. Don't let the label size grow | ||
| 17784 | larger than STRING_BYTES_BOUND. Use ptrdiff_t for Emacs string | ||
| 17785 | length, not size_t. Use ptrdiff_t for index, not int. | ||
| 17786 | (keyremap_step, read_key_sequence): Redo bufsize check to avoid | ||
| 17787 | possibility of integer overflow. | ||
| 17788 | |||
| 17789 | Overflow, signedness and related fixes for images. | ||
| 17790 | |||
| 17791 | * dispextern.h (struct it.stack[0].u.image.image_id) | ||
| 17792 | (struct_it.image_id, struct image.id, struct image_cache.size) | ||
| 17793 | (struct image_cache.used, struct image_cache.ref_count): | ||
| 17794 | * gtkutil.c (update_frame_tool_bar): | ||
| 17795 | * image.c (x_reference_bitmap, Fimage_size, Fimage_mask_p) | ||
| 17796 | (Fimage_metadata, free_image_cache, clear_image_cache, lookup_image) | ||
| 17797 | (cache_image, mark_image_cache, x_kill_gs_process, Flookup_image): | ||
| 17798 | * nsmenu.m (update_frame_tool_bar): | ||
| 17799 | * xdisp.c (calc_pixel_width_or_height): | ||
| 17800 | * xfns.c (image_cache_refcount): | ||
| 17801 | Image IDs are now ptrdiff_t, not int, to avoid arbitrary limits | ||
| 17802 | on typical 64-bit hosts. | ||
| 17803 | |||
| 17804 | * image.c (RANGED_INTEGERP, TYPE_RANGED_INTEGERP): New macros. | ||
| 17805 | (x_bitmap_pixmap, x_create_x_image_and_pixmap): | ||
| 17806 | Omit unnecessary casts to int. | ||
| 17807 | (parse_image_spec): Check that integers fall into 'int' range | ||
| 17808 | when the callers expect that. | ||
| 17809 | (image_ascent): Redo ascent calculation to avoid int overflow. | ||
| 17810 | (clear_image_cache): Avoid overflow when sqrt (INT_MAX) < nimages. | ||
| 17811 | (lookup_image): Remove unnecessary tests. | ||
| 17812 | (xbm_image_p): Locals are now of int, not EMACS_INT, | ||
| 17813 | since parse_image_check makes sure they fit into int. | ||
| 17814 | (png_load, gif_load, svg_load_image): | ||
| 17815 | Prefer int to unsigned where either will do. | ||
| 17816 | (tiff_handler): New function, combining the cores of the | ||
| 17817 | old tiff_error_handler and tiff_warning_handler. | ||
| 17818 | This function is rewritten to use vsnprintf and thereby avoid | ||
| 17819 | stack buffer overflows. It uses only the features of vsnprintf | ||
| 17820 | that are common to both POSIX and native Microsoft. | ||
| 17821 | (tiff_error_handler, tiff_warning_handler): Use it. | ||
| 17822 | (tiff_load, gif_load, imagemagick_load_image): | ||
| 17823 | Don't assume :index value fits in 'int'. | ||
| 17824 | (gif_load): Omit unnecessary cast to double, and avoid double-rounding. | ||
| 17825 | (imagemagick_load_image): Check that crop parameters fit into | ||
| 17826 | the integer types that MagickCropImage accepts. Don't assume | ||
| 17827 | Vimagemagick_render_type has a nonnegative value. Don't assume | ||
| 17828 | size_t fits in 'long'. | ||
| 17829 | (gs_load): Use printmax_t to print the widest integers possible. | ||
| 17830 | Check for integer overflow when computing image height and width. | ||
| 17831 | |||
| 17832 | 2011-08-26 Eli Zaretskii <eliz@gnu.org> | ||
| 17833 | |||
| 17834 | * xdisp.c (redisplay_window): Don't force window start if point | ||
| 17835 | will be invisible in the resulting window. (Bug#9324) | ||
| 17836 | |||
| 17837 | 2011-08-25 Eli Zaretskii <eliz@gnu.org> | ||
| 17838 | |||
| 17839 | * xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when | ||
| 17840 | the display spec is of the form `(space ...)'. | ||
| 17841 | (handle_display_spec): Return the value returned by | ||
| 17842 | handle_single_display_spec, not just 1 or zero. | ||
| 17843 | (handle_single_display_spec): If the display spec is of the form | ||
| 17844 | `(space ...)', and specifies display in the text area, return 2 | ||
| 17845 | rather than 1. | ||
| 17846 | (try_cursor_movement): Check for the need to scroll more | ||
| 17847 | accurately, and prefer exact match for point under bidi. | ||
| 17848 | Don't advance `row' beyond the last row of the window. | ||
| 17849 | |||
| 17850 | * dispextern.h (struct bidi_it): Rename the disp_prop_p member | ||
| 17851 | into disp_prop; all users changed. | ||
| 17852 | |||
| 17853 | * bidi.c (bidi_fetch_char): If compute_display_string_pos returns | ||
| 17854 | DISP_PROP = 2, substitute the u+2029 PARAGRAPH SEPARATOR character | ||
| 17855 | for the text covered by the display property. | ||
| 17856 | |||
| 17857 | 2011-08-25 Chong Yidong <cyd@stupidchicken.com> | ||
| 17858 | |||
| 17859 | * buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer. | ||
| 17860 | Change return value to nil. | ||
| 17861 | (Frecord_buffer): Delete unused function. | ||
| 17862 | |||
| 17863 | 2011-08-24 Eli Zaretskii <eliz@gnu.org> | ||
| 17864 | |||
| 17865 | * xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte | ||
| 17866 | buffers, return left-to-right. | ||
| 17867 | (set_cursor_from_row): Consider candidate row a win if its glyph | ||
| 17868 | represents a newline and point is on that newline. Fixes cursor | ||
| 17869 | positioning on the newline at EOL of R2L text within L2R | ||
| 17870 | paragraph, and vice versa. | ||
| 17871 | (try_cursor_movement): Check continued rows, in addition to | ||
| 17872 | continuation rows. Fixes unwarranted scroll when point enters a | ||
| 17873 | continued line of R2L text within an L2R paragraph, or vice versa. | ||
| 17874 | (cursor_row_p): Consider the case of point being equal to | ||
| 17875 | MATRIX_ROW_END_CHARPOS. Prevents cursor being stuck when moving | ||
| 17876 | from the end of a short line to the beginning of a continued line | ||
| 17877 | of R2L text within L2R paragraph. | ||
| 17878 | (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for | ||
| 17879 | composed characters. | ||
| 17880 | |||
| 17881 | * bidi.c (bidi_check_type): Use xassert. | ||
| 17882 | (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p | ||
| 17883 | members. | ||
| 17884 | |||
| 17885 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> | ||
| 17886 | |||
| 17887 | * bidi.c (bidi_get_type): Abort if we get zero as the bidi type of | ||
| 17888 | a character. | ||
| 17889 | |||
| 17890 | 2011-08-23 Chong Yidong <cyd@stupidchicken.com> | ||
| 17891 | |||
| 17892 | * nsfont.m (ns_otf_to_script): Fix typo. | ||
| 17893 | |||
| 17894 | 2011-08-22 Kenichi Handa <handa@m17n.org> | ||
| 17895 | |||
| 17896 | * chartab.c (Fset_char_table_extra_slot): Do not inhibit setting a | ||
| 17897 | extra slot even if the purpose is char-code-property-table. | ||
| 17898 | |||
| 17899 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> | ||
| 17900 | |||
| 17901 | * xdisp.c (redisplay_window): When computing centering_position, | ||
| 17902 | account for the height of the header line. (Bug#8874) | ||
| 17903 | |||
| 17904 | * dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos | ||
| 17905 | instead of CHAR_TO_BYTE. Fixes a crash when a completion | ||
| 17906 | candidate is selected by the mouse, and that candidate has a | ||
| 17907 | composed character under the mouse. | ||
| 17908 | |||
| 17909 | * xdisp.c (x_produce_glyphs): Set it->nglyphs to 1. Fixes pixel | ||
| 17910 | coordinates reported by pos-visible-in-window-p for a composed | ||
| 17911 | character in column zero. | ||
| 17912 | |||
| 17913 | 2011-08-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 17914 | |||
| 17915 | * cmds.c (Fself_insert_command): Mention post-self-insert-hook. | ||
| 17916 | |||
| 17917 | 2011-08-22 Eli Zaretskii <eliz@gnu.org> | ||
| 17918 | |||
| 17919 | * xdisp.c (BUFFER_POS_REACHED_P): If this is a composition, | ||
| 17920 | consider it a hit if to_charpos is anywhere in the range of the | ||
| 17921 | composed buffer positions. | ||
| 17922 | |||
| 17923 | 2011-08-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 17924 | |||
| 17925 | * image.c (gif_load): Don't assume that each subimage has the same | ||
| 17926 | dimensions as the base image. Handle disposal method that is | ||
| 17927 | "undefined" by the gif spec (Bug#9335). | ||
| 17928 | |||
| 17929 | 2011-08-20 Chong Yidong <cyd@stupidchicken.com> | ||
| 17930 | |||
| 17931 | * eval.c (Fsignal): Handle `debug' symbol in error handler (Bug#9329). | ||
| 17932 | (Fcondition_case): Document `debug' symbol in error handler. | ||
| 17933 | |||
| 17934 | 2011-08-19 Eli Zaretskii <eliz@gnu.org> | ||
| 17935 | |||
| 17936 | * xfaces.c (face_at_buffer_position): Avoid repeated evaluation of | ||
| 17937 | face ID by FACE_FROM_ID, and avoid a crash when mouse is moved | ||
| 17938 | from an Org mode buffer to a Speedbar frame. | ||
| 17939 | |||
| 17940 | * xdisp.c (RECORD_MAX_MIN_POS): If the display element comes from | ||
| 17941 | a composition, take its buffer position from IT->cmp_it.charpos. | ||
| 17942 | Fixes cursor positioning at the beginning of a line that begins | ||
| 17943 | with a composed character. | ||
| 17944 | |||
| 17945 | 2011-08-18 Eli Zaretskii <eliz@gnu.org> | ||
| 17946 | |||
| 17947 | * bidi.c (bidi_get_type): If bidi_type_table reports zero as the | ||
| 17948 | character bidirectional type, use STRONG_L instead. Fixes crashes | ||
| 17949 | in a buffer produced by `describe-categories'. | ||
| 17950 | |||
| 17951 | * dispextern.h (struct bidi_it): Move disp_pos and disp_prop_p | ||
| 17952 | members before the level stack, so they would be saved and | ||
| 17953 | restored when copying iterator state. Fixes incorrect reordering | ||
| 17954 | around TABs covered by display properties. | ||
| 17955 | |||
| 17956 | 2011-08-18 Andreas Schwab <schwab@linux-m68k.org> | ||
| 17957 | |||
| 17958 | * process.c (Fnetwork_interface_list): Correctly determine buffer size. | ||
| 17959 | |||
| 17960 | 2011-08-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 17961 | |||
| 17962 | * eval.c (internal_condition_case, internal_condition_case_1) | ||
| 17963 | (internal_condition_case_2, internal_condition_case_n): | ||
| 17964 | Remove unnecessary aborts (Bug#9081). | ||
| 17965 | |||
| 17966 | 2011-08-17 Eli Zaretskii <eliz@gnu.org> | ||
| 17967 | |||
| 17968 | * lread.c (Fload) [DOS_NT]: If `openp' returns -2, but the file | ||
| 17969 | has no `load' handler, try opening the file locally. (Bug#9311) | ||
| 17970 | |||
| 17971 | 2011-08-16 Ken Brown <kbrown@cornell.edu> | ||
| 17972 | |||
| 17973 | * gmalloc.c: Expand comment. | ||
| 17974 | |||
| 17975 | 2011-08-16 Eli Zaretskii <eliz@gnu.org> | ||
| 17976 | |||
| 17977 | * xdisp.c (set_cursor_from_row): Don't accept a previous candidate | ||
| 17978 | if it fails the cursor_row_p test. Fixes cursor positioning at ZV. | ||
| 17979 | |||
| 17980 | 2011-08-16 Ken Brown <kbrown@cornell.edu> | ||
| 17981 | |||
| 17982 | Fix memory allocation problems in Cygwin build (Bug#9273). | ||
| 17983 | |||
| 17984 | * unexcw.c (__malloc_initialized): Declare external variable. | ||
| 17985 | (fixup_executable): Force the dumped emacs to reinitialize malloc. | ||
| 17986 | |||
| 17987 | * gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo): | ||
| 17988 | New variables. | ||
| 17989 | (malloc_initialize_1) [CYGWIN]: Prepare for reinitializing the | ||
| 17990 | dumped emacs. | ||
| 17991 | (_free_internal_nolock) [CYGWIN]: Ignore requests to free storage | ||
| 17992 | in the static heap. | ||
| 17993 | [CYGWIN] (special_realloc): New function. | ||
| 17994 | (_realloc_internal_nolock) [CYGWIN]: Use the new function on | ||
| 17995 | requests to realloc storage in the static heap. | ||
| 17996 | |||
| 17997 | 2011-08-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 17998 | |||
| 17999 | * bidi.c (bidi_initialize): Remove unused local. | ||
| 18000 | |||
| 18001 | 2011-08-15 Eli Zaretskii <eliz@gnu.org> | ||
| 18002 | |||
| 18003 | * bidimirror.h: | ||
| 18004 | * biditype.h: Remove file. | ||
| 18005 | * makefile.w32-in ($(BLD)/bidi.$(O)): | ||
| 18006 | * deps.mk (bidi.o): Remove biditype.h and bidimirror.h. | ||
| 18007 | |||
| 18008 | * dispextern.h: Fix a typo in the comment to bidi_type_t. | ||
| 18009 | |||
| 18010 | * chartab.c: Improve commentary for the uniprop_table API. | ||
| 18011 | |||
| 18012 | * bidi.c (bidi_paragraph_init): Support zero value of | ||
| 18013 | bidi_ignore_explicit_marks_for_paragraph_level. | ||
| 18014 | (bidi_initialize): Use uniprop_table instead of including | ||
| 18015 | biditype.h and bidimirror.h. | ||
| 18016 | |||
| 18017 | * xdisp.c (move_it_in_display_line_to): Don't reset pixel | ||
| 18018 | coordinates of the iterator when restoring from ppos_it. | ||
| 18019 | (Bug#9296) | ||
| 18020 | |||
| 18021 | 2011-08-14 Kenichi Handa <handa@m17n.org> | ||
| 18022 | |||
| 18023 | * process.c (create_process): Call setup_process_coding_systems | ||
| 18024 | after the pid of the process is set to -1 (Bug#8162). | ||
| 18025 | |||
| 18026 | 2011-08-14 Eli Zaretskii <eliz@gnu.org> | ||
| 18027 | |||
| 18028 | * xdisp.c (move_it_in_display_line_to): Don't invoke | ||
| 18029 | IT_RESET_X_ASCENT_DESCENT when iterator position was restored from | ||
| 18030 | ppos_it. Fixes vertical cursor motion when line beginning is | ||
| 18031 | covered by an image. (Bug#9296) | ||
| 18032 | |||
| 18033 | 2011-08-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18034 | |||
| 18035 | * nsterm.h (ns_run_ascript): Declare. | ||
| 18036 | (NSAPP_DATA2_RUNASSCRIPT): Define. | ||
| 18037 | |||
| 18038 | * nsfns.m (as_script, as_result, as_status): New static variables. | ||
| 18039 | (ns_run_ascript): New function. | ||
| 18040 | (Fns_do_applescript): Set variables as_*. Make an NSApplicationDefined | ||
| 18041 | event with data2 set to NSAPP_DATA2_RUNASSCRIPT, post it and then start | ||
| 18042 | the event loop. Get status from as_status (Bug#7276). | ||
| 18043 | |||
| 18044 | * nsterm.m (sendEvent): If event is NSApplicationDefined and | ||
| 18045 | data2 is NSAPP_DATA2_RUNASSCRIPT, call ns_run_ascript and then exit | ||
| 18046 | the event loop (Bug#7276). | ||
| 18047 | |||
| 18048 | 2011-08-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18049 | |||
| 18050 | * gnutls.c (QCgnutls_bootprop_priority) | ||
| 18051 | (QCgnutls_bootprop_trustfiles, QCgnutls_bootprop_keylist) | ||
| 18052 | (QCgnutls_bootprop_crlfiles, QCgnutls_bootprop_callbacks) | ||
| 18053 | (QCgnutls_bootprop_loglevel, QCgnutls_bootprop_hostname) | ||
| 18054 | (QCgnutls_bootprop_min_prime_bits, QCgnutls_bootprop_verify_flags) | ||
| 18055 | (QCgnutls_bootprop_verify_hostname_error) | ||
| 18056 | (QCgnutls_bootprop_callbacks_verify): Rename from | ||
| 18057 | Qgnutls_bootprop_..., all uses changed. | ||
| 18058 | |||
| 18059 | * xfaces.c (QCignore_defface): Rename from Qignore_defface, all | ||
| 18060 | uses changed. | ||
| 18061 | |||
| 18062 | 2011-08-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18063 | |||
| 18064 | * xfaces.c (Qframe_set_background_mode): Now static. | ||
| 18065 | * dispextern.h (Qframe_set_background_mode): Remove decl. | ||
| 18066 | |||
| 18067 | * process.c (Fnetwork_interface_info): Declare local only if needed. | ||
| 18068 | |||
| 18069 | 2011-08-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18070 | |||
| 18071 | * process.c: Include ifaddrs.h and net/if_dl.h if available (Bug#8477). | ||
| 18072 | (Fnetwork_interface_list): Allocate in increments of bytes instead | ||
| 18073 | of sizeof (struct ifreq). Iterate over ifconf.ifc_req by counting | ||
| 18074 | bytes (Bug#8477). Count bytes correctly when ifr_addr is a struct | ||
| 18075 | sockaddr. | ||
| 18076 | (struct ifflag_def): notrailers is smart on OSX. | ||
| 18077 | (Fnetwork_interface_info): Handle case when ifr_flags is negative. | ||
| 18078 | Get hardware address with getifaddrs if available. | ||
| 18079 | |||
| 18080 | 2011-08-12 Eli Zaretskii <eliz@gnu.org> | ||
| 18081 | |||
| 18082 | * xdisp.c (iterate_out_of_display_property): xassert that | ||
| 18083 | IT->position is set to within IT->object's boundaries. Break from | ||
| 18084 | the loop as soon as EOB is reached; avoids infloops in redisplay | ||
| 18085 | when IT->position is set up wrongly due to some bug. | ||
| 18086 | Set IT->current to match the bidi iterator unconditionally. | ||
| 18087 | (push_display_prop): Allow GET_FROM_STRING as IT->method on | ||
| 18088 | entry. Force push_it to save on the stack the current | ||
| 18089 | buffer/string position, to be restored by pop_it. Fix flags in | ||
| 18090 | the iterator structure wrt the object coming from a display | ||
| 18091 | property, as `line-prefix' and `wrap-prefix' are not ``replacing'' | ||
| 18092 | properties. (Bug#9284) | ||
| 18093 | |||
| 18094 | 2011-08-09 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18095 | |||
| 18096 | * fontset.c (fontset_get_font_group): Add proper type checks. | ||
| 18097 | (Bug#9172) | ||
| 18098 | |||
| 18099 | 2011-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 18100 | |||
| 18101 | * unexmacosx.c (print_load_command_name): Add cases LC_FUNCTION_STARTS | ||
| 18102 | and LC_VERSION_MIN_MACOSX. | ||
| 18103 | (copy_linkedit_data) [LC_FUNCTION_STARTS]: New function. | ||
| 18104 | (dump_it) [LC_FUNCTION_STARTS]: Use it. | ||
| 18105 | |||
| 18106 | 2011-08-08 Eli Zaretskii <eliz@gnu.org> | ||
| 18107 | |||
| 18108 | * xdisp.c (forward_to_next_line_start): Allow to use the | ||
| 18109 | no-display-properties-and-no-overlays under bidi display. | ||
| 18110 | Set disp_pos in the bidi iterator to avoid searches for display | ||
| 18111 | properties and overlays. | ||
| 18112 | |||
| 18113 | 2011-08-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 18114 | |||
| 18115 | * editfns.c (Fset_time_zone_rule): Document relationship with the | ||
| 18116 | setenv function. | ||
| 18117 | |||
| 18118 | * ftfont.c (ftfont_pattern_entity): Copy the extras argument to | ||
| 18119 | the font entity extracted from the cache (Bug#8109). | ||
| 18120 | |||
| 18121 | 2011-08-07 Chong Yidong <cyd@stupidchicken.com> | ||
| 18122 | |||
| 18123 | * composite.c (autocmp_chars): Don't reset point. That is done by | ||
| 18124 | restore_point_unwind (Bug#5984). | ||
| 18125 | |||
| 18126 | 2011-08-07 Juri Linkov <juri@jurta.org> | ||
| 18127 | |||
| 18128 | * editfns.c (Fformat_time_string): Doc fix, add tag `usage:' | ||
| 18129 | to show the arg `TIME' instead of `TIMEVAL'. | ||
| 18130 | |||
| 18131 | 2011-08-06 Eli Zaretskii <eliz@gnu.org> | ||
| 18132 | |||
| 18133 | * xdisp.c (set_cursor_from_row): Fix cursor positioning when a | ||
| 18134 | display property strides EOL and includes a newline, as in | ||
| 18135 | longlines-mode. (Bug#9254) | ||
| 18136 | (move_it_in_display_line_to): Fix vertical-motion in a buffer with | ||
| 18137 | word-wrap under bidirectional display. (Bug#9224) | ||
| 18138 | |||
| 18139 | * bidi.c (bidi_unshelve_cache): Don't reset the cache if JUST_FREE | ||
| 18140 | is non-zero, even if the data buffer is NULL. Fixes a crash in | ||
| 18141 | vertical-motion with longlines-mode. (Bug#9254) | ||
| 18142 | |||
| 18143 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> | ||
| 18144 | |||
| 18145 | * bidi.c <bidi_cache_total_alloc>: Now static. | ||
| 18146 | (bidi_initialize): Initialize bidi_cache_total_alloc. | ||
| 18147 | |||
| 18148 | * xdisp.c (display_line): Release buffer allocated for shelved bidi | ||
| 18149 | cache. (Bug#9221) | ||
| 18150 | |||
| 18151 | * bidi.c (bidi_shelve_cache, bidi_unshelve_cache): Track total | ||
| 18152 | amount allocated this far in `bidi_cache_total_alloc'. | ||
| 18153 | (bidi_unshelve_cache): Accept an additional argument JUST_FREE; if | ||
| 18154 | non-zero, only free the data buffer without restoring the cache | ||
| 18155 | contents. All callers changed. | ||
| 18156 | |||
| 18157 | * dispextern.h (bidi_unshelve_cache): Update prototype. | ||
| 18158 | |||
| 18159 | * xdisp.c (SAVE_IT, pos_visible_p, move_it_in_display_line_to) | ||
| 18160 | (move_it_in_display_line, move_it_to) | ||
| 18161 | (move_it_vertically_backward, move_it_by_lines): Replace the call | ||
| 18162 | to xfree to an equivalent call to bidi_unshelve_cache. | ||
| 18163 | (move_it_in_display_line_to): Fix logic of returning | ||
| 18164 | MOVE_POS_MATCH_OR_ZV in the bidi case. (Bug#9224) | ||
| 18165 | |||
| 18166 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> | ||
| 18167 | |||
| 18168 | * xdisp.c (set_cursor_from_row): Prefer the candidate glyph that | ||
| 18169 | came from a string character with a `cursor' property. (Bug#9229) | ||
| 18170 | |||
| 18171 | 2011-08-04 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18172 | |||
| 18173 | * Makefile.in (LIB_PTHREAD): New variable. | ||
| 18174 | (LIBES): Add LIB_PTHREAD (Bug#9216). | ||
| 18175 | |||
| 18176 | * alloc.c, emacs.c, gmalloc.c, gtkutil.c, keyboard.c, syssignal.h: | ||
| 18177 | Rename HAVE_GTK_AND_PTHREAD to HAVE_PTHREAD (Bug#9216). | ||
| 18178 | |||
| 18179 | 2011-08-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18180 | |||
| 18181 | * regex.c (re_iswctype): Remove some redundant boolean conversions. | ||
| 18182 | |||
| 18183 | 2011-08-04 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18184 | |||
| 18185 | * xterm.c (x_find_topmost_parent): New function. | ||
| 18186 | (x_set_frame_alpha): Find topmost parent window with | ||
| 18187 | x_find_topmost_parent and set the property there also (bug#9181). | ||
| 18188 | (handle_one_xevent): Call x_set_frame_alpha on ReparentNotify. | ||
| 18189 | |||
| 18190 | 2011-08-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18191 | |||
| 18192 | * callproc.c (Fcall_process): Avoid vfork clobbering | ||
| 18193 | the local vars buffer, coding_systems, current_dir. | ||
| 18194 | |||
| 18195 | 2011-08-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 18196 | |||
| 18197 | * keymap.c (Fmake_composed_keymap): Move to subr.el. | ||
| 18198 | |||
| 18199 | 2011-08-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18200 | |||
| 18201 | * fontset.c (dump_fontset) [FONTSET_DEBUG]: Declare EXTERNALLY_VISIBLE | ||
| 18202 | so that it is not optimized away. | ||
| 18203 | |||
| 18204 | * xdisp.c (compute_display_string_pos): Remove unused local. | ||
| 18205 | |||
| 18206 | 2011-08-02 Eli Zaretskii <eliz@gnu.org> | ||
| 18207 | |||
| 18208 | Fix slow cursor motion and scrolling in large buffers with | ||
| 18209 | selective display, like Org Mode buffers. (Bug#9218) | ||
| 18210 | |||
| 18211 | * dispextern.h (struct bidi_it): New member disp_prop_p. | ||
| 18212 | |||
| 18213 | * xdisp.c: Remove one-slot cache of display string positions. | ||
| 18214 | (compute_display_string_pos): Accept an additional argument | ||
| 18215 | DISP_PROP_P; callers changed. Scan at most 5K characters forward | ||
| 18216 | for a display string or property. If found, set DISP_PROP_P | ||
| 18217 | non-zero. | ||
| 18218 | |||
| 18219 | * bidi.c (bidi_fetch_char): Accept an additional argument | ||
| 18220 | DISP_PROP_P, and pass it to compute_display_string_pos. | ||
| 18221 | Only handle text covered by a display string if DISP_PROP_P is returned | ||
| 18222 | non-zero. All callers of bidi_fetch_char changed. | ||
| 18223 | |||
| 18224 | 2011-08-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 18225 | |||
| 18226 | * keymap.c (Fdefine_key): Fix Lisp_Object/int mixup; apply some CSE. | ||
| 18227 | |||
| 18228 | 2010-12-03 Don March <don@ohspite.net> | ||
| 18229 | |||
| 18230 | * keymap.c (Fdefine_key): Fix non-prefix key error message when | ||
| 18231 | last character M-[char] is translated to ESC [char] (bug#7541). | ||
| 18232 | |||
| 18233 | 2011-08-02 Kenichi Handa <handa@m17n.org> | ||
| 18234 | |||
| 18235 | * lisp.h (uniprop_table): Extern it. | ||
| 18236 | |||
| 18237 | * chartab.c (uniprop_table): Make it non-static. | ||
| 18238 | |||
| 18239 | 2011-08-01 Eli Zaretskii <eliz@gnu.org> | ||
| 18240 | |||
| 18241 | * xdisp.c (forward_to_next_line_start): Accept additional argument | ||
| 18242 | BIDI_IT_PREV, and store into it the state of the bidi iterator had | ||
| 18243 | on the newline. | ||
| 18244 | (reseat_at_next_visible_line_start): Use the bidi iterator state | ||
| 18245 | returned by forward_to_next_line_start to restore the state of | ||
| 18246 | it->bidi_it after backing up to previous newline. (Bug#9212) | ||
| 18247 | |||
| 18248 | 2011-07-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18249 | |||
| 18250 | * regex.c (re_comp): Protoize. | ||
| 18251 | (re_exec): Fix return type. | ||
| 18252 | (regexec): Fix type of `ret'. (Bug#9203) | ||
| 18253 | |||
| 18254 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18255 | |||
| 18256 | * image.c (check_image_size): Use 1024x1024 if unknown frame (Bug#9189). | ||
| 18257 | This is needed if max-image-size is a floating-point number. | ||
| 18258 | |||
| 18259 | 2011-07-28 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18260 | |||
| 18261 | * print.c (print_object): Print empty symbol as ##. | ||
| 18262 | |||
| 18263 | * lread.c (read1): Read ## as empty symbol. | ||
| 18264 | |||
| 18265 | 2011-07-28 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 18266 | |||
| 18267 | * nsfns.m (x_set_foreground_color): Set f->foreground_pixel when | ||
| 18268 | setting frame foreground color (Bug#9175). | ||
| 18269 | (x_set_background_color): Likewise. | ||
| 18270 | |||
| 18271 | * nsmenu.m (-setText): Size tooltip dimensions precisely to | ||
| 18272 | contents (Bug#9176). | ||
| 18273 | (EmacsTooltip -init): Remove bezels and add shadows to | ||
| 18274 | tooltip windows. | ||
| 18275 | |||
| 18276 | * nsterm.m (ns_dumpglyphs_stretch): Avoid overwriting left fringe | ||
| 18277 | or scroll bar (Bug#8470). | ||
| 18278 | |||
| 18279 | * nsfont.m (nsfont_open): Remove assignment to voffset and | ||
| 18280 | unnecessary vars hshink, expand, hd, full_height, min_height. | ||
| 18281 | (nsfont_draw): Use s->ybase as baseline for glyph drawing (Bug#8913). | ||
| 18282 | |||
| 18283 | * nsterm.h (nsfont_info): Remove voffset field. | ||
| 18284 | |||
| 18285 | 2011-07-28 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 18286 | |||
| 18287 | Implement strike-through and overline on NextStep (Bug#8863). | ||
| 18288 | |||
| 18289 | * nsfont.m (nsfont_open): Use underline position provided by font, | ||
| 18290 | instead of hard-coded value of 2. | ||
| 18291 | (nsfont_draw): Call ns_draw_text_decoration instead. | ||
| 18292 | |||
| 18293 | * nsterm.h: Add declaration for ns_draw_text_decoration. | ||
| 18294 | |||
| 18295 | * nsterm.m (ns_draw_text_decoration): New function for drawing | ||
| 18296 | underline, overline, and strike-through. | ||
| 18297 | (ns_dumpglyphs_image, ns_dumpglyphs_stretch): Add call to | ||
| 18298 | ns_draw_text_decoration. Change treatment of cursor drawing to | ||
| 18299 | accommodate underlining, etc. | ||
| 18300 | |||
| 18301 | 2011-07-28 Eli Zaretskii <eliz@gnu.org> | ||
| 18302 | |||
| 18303 | * buffer.c (init_buffer_once): Set bidi-display-reordering to t by | ||
| 18304 | default. | ||
| 18305 | |||
| 18306 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18307 | |||
| 18308 | * alloc.c (memory_full) [!SYNC_INPUT]: Fix signal-related race. | ||
| 18309 | Without this fix, if a signal arrives just after memory fills up, | ||
| 18310 | 'malloc' might be invoked reentrantly. | ||
| 18311 | |||
| 18312 | * image.c (x_check_image_size) [!HAVE_X_WINDOWS]: Return 1. | ||
| 18313 | In other words, assume that every image size is allowed, on non-X | ||
| 18314 | hosts. This assumption is probably wrong, but it lets Emacs compile. | ||
| 18315 | |||
| 18316 | 2011-07-28 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18317 | |||
| 18318 | * regex.c (re_iswctype): Convert return values to boolean. | ||
| 18319 | |||
| 18320 | 2011-07-28 Eli Zaretskii <eliz@fencepost.gnu.org> | ||
| 18321 | |||
| 18322 | * xdisp.c (compute_display_string_pos): Don't use cached display | ||
| 18323 | string position if the buffer had its restriction changed. | ||
| 18324 | (Bug#9184) | ||
| 18325 | |||
| 18326 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18327 | |||
| 18328 | * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering. | ||
| 18329 | |||
| 18330 | 2011-07-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18331 | |||
| 18332 | Integer signedness and overflow and related fixes. (Bug#9079) | ||
| 18333 | |||
| 18334 | * bidi.c: Integer size and overflow fixes. | ||
| 18335 | (bidi_cache_size, bidi_cache_idx, bidi_cache_last_idx) | ||
| 18336 | (bidi_cache_start, bidi_cache_fetch_state, bidi_cache_search) | ||
| 18337 | (bidi_cache_find_level_change, bidi_cache_ensure_space) | ||
| 18338 | (bidi_cache_iterator_state, bidi_cache_find, bidi_cache_start_stack) | ||
| 18339 | (bidi_find_other_level_edge): | ||
| 18340 | Use ptrdiff_t instead of EMACS_INT where either will do. | ||
| 18341 | This works better on 32-bit hosts configured --with-wide-int. | ||
| 18342 | (bidi_cache_ensure_space): Check for size-calculation overflow. | ||
| 18343 | Use % rather than repeated addition, for better worst-case speed. | ||
| 18344 | Don't set bidi_cache_size until after xrealloc returns, because it | ||
| 18345 | might not return. | ||
| 18346 | (bidi_dump_cached_states): Use ptrdiff_t, not int, to avoid overflow. | ||
| 18347 | (bidi_cache_ensure_space): Also check that the bidi cache size | ||
| 18348 | does not exceed that of the largest Lisp string or buffer. See Eli | ||
| 18349 | Zaretskii in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9079#29>. | ||
| 18350 | |||
| 18351 | * alloc.c (__malloc_size_t): Remove. | ||
| 18352 | All uses replaced by size_t. See Andreas Schwab's note | ||
| 18353 | <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9079#8>. | ||
| 18354 | |||
| 18355 | * image.c: Improve checking for integer overflow. | ||
| 18356 | (check_image_size): Assume that f is nonnull, since | ||
| 18357 | it is always nonnull in practice. This is one less thing to | ||
| 18358 | worry about when checking for integer overflow later. | ||
| 18359 | (x_check_image_size): New function, which checks for integer | ||
| 18360 | overflow issues inside X. | ||
| 18361 | (x_create_x_image_and_pixmap, xbm_read_bitmap_data): Use it. | ||
| 18362 | This removes the need for a memory_full check. | ||
| 18363 | (xbm_image_p): Rewrite to avoid integer multiplication overflow. | ||
| 18364 | (Create_Pixmap_From_Bitmap_Data, xbm_load): Use x_check_image_size. | ||
| 18365 | (xbm_read_bitmap_data): Change locals back to 'int', since | ||
| 18366 | their values must fit in 'int'. | ||
| 18367 | (xpm_load_image, png_load, tiff_load): | ||
| 18368 | Invoke x_create_x_image_and_pixmap earlier, | ||
| 18369 | to avoid much needless work if the image is too large. | ||
| 18370 | (tiff_load): Treat overly large images as if | ||
| 18371 | x_create_x_image_and_pixmap failed, not as malloc failures. | ||
| 18372 | (gs_load): Use x_check_image_size. | ||
| 18373 | |||
| 18374 | * gtkutil.c: Omit integer casts. | ||
| 18375 | (xg_get_pixbuf_from_pixmap): Remove unnecessary cast. | ||
| 18376 | (xg_set_toolkit_scroll_bar_thumb): Rewrite to avoid need for cast. | ||
| 18377 | |||
| 18378 | * image.c (png_load): Don't assume height * row_bytes fits in 'int'. | ||
| 18379 | |||
| 18380 | * xfaces.c (Fbitmap_spec_p): Fix integer overflow bug. | ||
| 18381 | Without this fix, (bitmap-spec-p '(34359738368 1 "x")) | ||
| 18382 | would wrongly return t on a 64-bit host. | ||
| 18383 | |||
| 18384 | * dispnew.c (init_display): Use *_RANGE_OVERFLOW macros. | ||
| 18385 | The plain *_OVERFLOW macros run afoul of GCC bug 49705 | ||
| 18386 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705> | ||
| 18387 | and therefore cause GCC to emit a bogus diagnostic in some cases. | ||
| 18388 | |||
| 18389 | * image.c: Integer signedness and overflow and related fixes. | ||
| 18390 | This is not an exhaustive set of fixes, but it's time to | ||
| 18391 | record what I've got. | ||
| 18392 | (lookup_pixel_color, check_image_size): Remove redundant decls. | ||
| 18393 | (check_image_size): Don't assume that arbitrary EMACS_INT values | ||
| 18394 | fit in 'int', or that arbitrary 'double' values fit in 'int'. | ||
| 18395 | (x_alloc_image_color, x_create_x_image_and_pixmap, png_load) | ||
| 18396 | (tiff_load, imagemagick_load_image): | ||
| 18397 | Check for overflow in size calculations. | ||
| 18398 | (x_create_x_image_and_pixmap): Remove unnecessary test for | ||
| 18399 | xmalloc returning NULL; that can't happen. | ||
| 18400 | (xbm_read_bitmap_data): Don't assume sizes fit into 'int'. | ||
| 18401 | (xpm_color_bucket): Use better integer hashing function. | ||
| 18402 | (xpm_cache_color): Don't possibly over-allocate memory. | ||
| 18403 | (struct png_memory_storage, tiff_memory_source, tiff_seek_in_memory) | ||
| 18404 | (gif_memory_source): | ||
| 18405 | Use ptrdiff_t, not int or size_t, to record sizes. | ||
| 18406 | (png_load): Don't assume values greater than 2**31 fit in 'int'. | ||
| 18407 | (our_stdio_fill_input_buffer): Prefer ptrdiff_t to size_t when | ||
| 18408 | either works, as we prefer signed integers. | ||
| 18409 | (tiff_read_from_memory, tiff_write_from_memory): | ||
| 18410 | Return tsize_t, not size_t, since that's what the TIFF API wants. | ||
| 18411 | (tiff_read_from_memory): Don't fail simply because the read would | ||
| 18412 | go past EOF; instead, return a short read. | ||
| 18413 | (tiff_load): Omit no-longer-needed casts. | ||
| 18414 | (Fimagemagick_types): Don't assume size fits into 'int'. | ||
| 18415 | |||
| 18416 | Improve hashing quality when configured --with-wide-int. | ||
| 18417 | * fns.c (hash_string): New function, taken from sxhash_string. | ||
| 18418 | Do not discard information about ASCII character case; this | ||
| 18419 | discarding is no longer needed. | ||
| 18420 | (sxhash-string): Use it. Change sig to match it. Caller changed. | ||
| 18421 | * lisp.h: Declare it. | ||
| 18422 | * lread.c (hash_string): Remove, since we now use fns.c's version. | ||
| 18423 | The fns.c version returns a wider integer if --with-wide-int is | ||
| 18424 | specified, so this should help the quality of the hashing a bit. | ||
| 18425 | |||
| 18426 | * emacs.c: Integer overflow minor fix. | ||
| 18427 | (heap_bss_diff): Now uprintmax_t, not unsigned long. All used changed. | ||
| 18428 | Define only if GNU_LINUX. | ||
| 18429 | (main, Fdump_emacs): Set and use heap_bss_diff only if GNU_LINUX. | ||
| 18430 | |||
| 18431 | * dispnew.c: Integer signedness and overflow fixes. | ||
| 18432 | Remove unnecessary forward decls, that were a maintenance hassle. | ||
| 18433 | (history_tick): Now uprintmax_t, so it's more likely to avoid overflow. | ||
| 18434 | All uses changed. | ||
| 18435 | (adjust_glyph_matrix, realloc_glyph_pool, adjust_frame_message_buffer) | ||
| 18436 | (scrolling_window): Use ptrdiff_t, not int, for byte count. | ||
| 18437 | (prepare_desired_row, line_draw_cost): | ||
| 18438 | Use int, not unsigned, where either works. | ||
| 18439 | (save_current_matrix, restore_current_matrix): | ||
| 18440 | Use ptrdiff_t, not size_t, where either works. | ||
| 18441 | (init_display): Check for overflow more accurately, and without | ||
| 18442 | relying on undefined behavior. | ||
| 18443 | |||
| 18444 | * editfns.c (pWIDE, pWIDElen, signed_wide, unsigned_wide): | ||
| 18445 | Remove, replacing with the new symbols in lisp.h. All uses changed. | ||
| 18446 | * fileio.c (make_temp_name): | ||
| 18447 | * filelock.c (lock_file_1, lock_file): | ||
| 18448 | * xdisp.c (message_dolog): | ||
| 18449 | Don't assume PRIdMAX etc. works; this isn't portable to pre-C99 hosts. | ||
| 18450 | Use pMd etc. instead. | ||
| 18451 | * lisp.h (printmax_t, uprintmax_t, pMd, pMu): New types and macros, | ||
| 18452 | replacing the pWIDE etc. symbols removed from editfns.c. | ||
| 18453 | |||
| 18454 | * keyboard.h (num_input_events): Now uintmax_t. | ||
| 18455 | This is (very slightly) less likely to mess up due to wraparound. | ||
| 18456 | All uses changed. | ||
| 18457 | |||
| 18458 | * buffer.c: Integer signedness fixes. | ||
| 18459 | (alloc_buffer_text, enlarge_buffer_text): | ||
| 18460 | Use ptrdiff_t rather than size_t when either will do, as we prefer | ||
| 18461 | signed integers. | ||
| 18462 | |||
| 18463 | * alloc.c: Integer signedness and overflow fixes. | ||
| 18464 | Do not impose an arbitrary 32-bit limit on malloc sizes when debugging. | ||
| 18465 | (__malloc_size_t): Default to size_t, not to int. | ||
| 18466 | (pure_size, pure_bytes_used_before_overflow, stack_copy_size) | ||
| 18467 | (Fgarbage_collect, mark_object_loop_halt, mark_object): | ||
| 18468 | Prefer ptrdiff_t to size_t when either would do, as we prefer | ||
| 18469 | signed integers. | ||
| 18470 | (XMALLOC_OVERRUN_CHECK_OVERHEAD): New macro. | ||
| 18471 | (xmalloc_overrun_check_header, xmalloc_overrun_check_trailer): | ||
| 18472 | Now const. Initialize with values that are in range even if char | ||
| 18473 | is signed. | ||
| 18474 | (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): Remove, replacing with ... | ||
| 18475 | (xmalloc_put_size, xmalloc_get_size): New functions. All uses changed. | ||
| 18476 | These functions do the right thing with sizes > 2**32. | ||
| 18477 | (check_depth): Now ptrdiff_t, not int. | ||
| 18478 | (overrun_check_malloc, overrun_check_realloc, overrun_check_free): | ||
| 18479 | Adjust to new way of storing sizes. Check for size overflow bugs | ||
| 18480 | in rest of code. | ||
| 18481 | (STRING_BYTES_MAX): Adjust to new overheads. The old code was | ||
| 18482 | slightly wrong anyway, as it missed one instance of | ||
| 18483 | XMALLOC_OVERRUN_CHECK_OVERHEAD. | ||
| 18484 | (refill_memory_reserve): Omit needless cast to size_t. | ||
| 18485 | (mark_object_loop_halt): Mark as externally visible. | ||
| 18486 | |||
| 18487 | * xselect.c: Integer signedness and overflow fixes. | ||
| 18488 | (Fx_register_dnd_atom, x_handle_dnd_message): | ||
| 18489 | Use ptrdiff_t, not size_t, since we prefer signed. | ||
| 18490 | (Fx_register_dnd_atom): Check for ptrdiff_t (and size_t) overflow. | ||
| 18491 | * xterm.h (struct x_display_info): Use ptrdiff_t, not size_t, for | ||
| 18492 | x_dnd_atoms_size and x_dnd_atoms_length. | ||
| 18493 | |||
| 18494 | * doprnt.c: Prefer signed to unsigned when either works. | ||
| 18495 | * eval.c (verror): | ||
| 18496 | * doprnt.c (doprnt): | ||
| 18497 | * lisp.h (doprnt): | ||
| 18498 | * xdisp.c (vmessage): | ||
| 18499 | Use ptrdiff_t, not size_t, when using or implementing doprnt, | ||
| 18500 | since the sizes cannot exceed ptrdiff_t bounds anyway, and we | ||
| 18501 | prefer signed arithmetic to avoid comparison confusion. | ||
| 18502 | * doprnt.c (doprnt): Avoid a "+ 1" that can't overflow, | ||
| 18503 | but is a bit tricky. | ||
| 18504 | |||
| 18505 | Assume freestanding C89 headers, string.h, stdlib.h. | ||
| 18506 | * data.c, doprnt.c, floatfns.c, print.c: | ||
| 18507 | Include float.h unconditionally. | ||
| 18508 | * gmalloc.c: Assume C89-at-least behavior for preprocessor, | ||
| 18509 | limits.h, stddef.h, string.h. Use memset instead of 'flood'. | ||
| 18510 | * regex.c: Likewise for stddef.h, string.h. | ||
| 18511 | (ISASCII): Remove; can assume it returns 1 now. All uses removed. | ||
| 18512 | * s/aix4-2.h (HAVE_STRING_H): Remove obsolete undef. | ||
| 18513 | * s/ms-w32.h (HAVE_LIMITS_H, HAVE_STRING_H, HAVE_STDLIB_H) | ||
| 18514 | (STDC_HEADERS): Remove obsolete defines. | ||
| 18515 | * sysdep.c: Include limits.h unconditionally. | ||
| 18516 | |||
| 18517 | Assume support for memcmp, memcpy, memmove, memset. | ||
| 18518 | * lisp.h, sysdep.c (memcmp, memcpy, memmove, memset): | ||
| 18519 | * regex.c (memcmp, memcpy): | ||
| 18520 | Remove; we assume C89 now. | ||
| 18521 | |||
| 18522 | * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now. | ||
| 18523 | (__malloc_safe_bcopy): Remove; no longer needed. | ||
| 18524 | |||
| 18525 | * lisp.h (struct vectorlike_header, struct Lisp_Subr): Signed sizes. | ||
| 18526 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally | ||
| 18527 | well either way, and we prefer signed to unsigned. | ||
| 18528 | |||
| 18529 | 2011-07-27 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18530 | |||
| 18531 | * gnutls.c (emacs_gnutls_read): Don't message anything if the peer | ||
| 18532 | closes the connection while we're reading (bug#9182). | ||
| 18533 | |||
| 18534 | 2011-07-25 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18535 | |||
| 18536 | * nsmenu.m (ns_popup_dialog): Add an "ok" button if no buttons | ||
| 18537 | are specified (Bug#9168). | ||
| 18538 | |||
| 18539 | 2011-07-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18540 | |||
| 18541 | * bidi.c (bidi_dump_cached_states): Fix printf format mismatch. | ||
| 18542 | Found by GCC static checking and --with-wide-int on a 32-bit host. | ||
| 18543 | |||
| 18544 | 2011-07-25 Eli Zaretskii <eliz@gnu.org> | ||
| 18545 | |||
| 18546 | * xdisp.c (compute_display_string_pos): Fix logic of caching | ||
| 18547 | previous display string position. Initialize cached_prev_pos to | ||
| 18548 | -1. Fixes slow-down at the beginning of a buffer. | ||
| 18549 | |||
| 18550 | 2011-07-24 Eli Zaretskii <eliz@gnu.org> | ||
| 18551 | |||
| 18552 | * xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil' | ||
| 18553 | for attrs[LFACE_FONTSET_INDEX]. | ||
| 18554 | |||
| 18555 | 2011-07-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18556 | |||
| 18557 | * xml.c (parse_region): Remove unused local | ||
| 18558 | that was recently introduced. | ||
| 18559 | |||
| 18560 | 2011-07-23 Eli Zaretskii <eliz@gnu.org> | ||
| 18561 | |||
| 18562 | * xfns.c (unwind_create_frame) [GLYPH_DEBUG]: Adapt to changes in | ||
| 18563 | 2008-02-22T17:42:09Z!monnier@iro.umontreal.ca. | ||
| 18564 | |||
| 18565 | * xdisp.c (move_it_in_display_line_to): Record the best matching | ||
| 18566 | position for TO_CHARPOS while scanning the line, and restore it on | ||
| 18567 | exit if none of the characters scanned was an exact match. | ||
| 18568 | Fixes vertical-motion and pos-visible-in-window-p under bidi redisplay | ||
| 18569 | when exact match is impossible due to invisible text, and the | ||
| 18570 | lines are truncated. | ||
| 18571 | |||
| 18572 | 2011-07-23 Jan Djärv <jan.h.d@swipnet.se> | ||
| 18573 | |||
| 18574 | * nsterm.m (initFrameFromEmacs): Set NSTitledWindowMask in styleMask | ||
| 18575 | for OSX >= 10.7. | ||
| 18576 | |||
| 18577 | 2011-07-22 Eli Zaretskii <eliz@gnu.org> | ||
| 18578 | |||
| 18579 | Fix a significant slow-down of cursor motion with C-n, C-p, | ||
| 18580 | C-f/C-b, and C-v/M-v that couldn't keep up with keyboard | ||
| 18581 | auto-repeat under bidi redisplay in fontified buffers. | ||
| 18582 | * xdisp.c (compute_stop_pos_backwards): New function. | ||
| 18583 | (next_element_from_buffer): Call compute_stop_pos_backwards to | ||
| 18584 | find a suitable prev_stop when we find ourselves before | ||
| 18585 | base_level_stop. | ||
| 18586 | (reseat): Don't look for prev_stop, as that could mean a very long | ||
| 18587 | run. | ||
| 18588 | <cached_disp_pos, cached_disp_buffer, cached_disp_modiff> | ||
| 18589 | <cached_disp_overlay_modiff>: Cache for last found display string | ||
| 18590 | position. | ||
| 18591 | (compute_display_string_pos): Return the cached position if asked | ||
| 18592 | about the same buffer in the same area of character positions, and | ||
| 18593 | the buffer wasn't changed since the time the display string | ||
| 18594 | position was cached. | ||
| 18595 | |||
| 18596 | 2011-07-22 Eli Zaretskii <eliz@gnu.org> | ||
| 18597 | |||
| 18598 | * xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object | ||
| 18599 | is an integer, which is important for empty lines. (Bug#9149) | ||
| 18600 | |||
| 18601 | 2011-07-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 18602 | |||
| 18603 | * frame.c (Fmodify_frame_parameters): In tty case, update the | ||
| 18604 | default face if necessary (Bug#4238). | ||
| 18605 | |||
| 18606 | 2011-07-21 Chong Yidong <cyd@stupidchicken.com> | ||
| 18607 | |||
| 18608 | * editfns.c (Fstring_to_char): No need to explain what a character | ||
| 18609 | is in the docstring (Bug#6576). | ||
| 18610 | |||
| 18611 | 2011-07-20 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18612 | |||
| 18613 | * xml.c (parse_region): Make sure we always return a tree. | ||
| 18614 | |||
| 18615 | 2011-07-20 HAMANO Kiyoto <khiker.mail@gmail.com> | ||
| 18616 | |||
| 18617 | * xml.c (parse_region): If a document contains only comments, | ||
| 18618 | return that, too. | ||
| 18619 | |||
| 18620 | 2011-07-20 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18621 | |||
| 18622 | * xml.c (make_dom): Return comments, too. | ||
| 18623 | |||
| 18624 | 2011-07-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18625 | |||
| 18626 | Port to OpenBSD. | ||
| 18627 | See http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00688.html | ||
| 18628 | and the surrounding thread. | ||
| 18629 | * minibuf.c (read_minibuf_noninteractive): Rewrite to use getchar | ||
| 18630 | rather than fgets, and retry after EINTR. Otherwise, 'emacs | ||
| 18631 | --batch -f byte-compile-file' fails on OpenBSD if an inactivity | ||
| 18632 | timer goes off. | ||
| 18633 | * s/openbsd.h (BROKEN_SIGIO): Define. | ||
| 18634 | * unexelf.c (unexec) [__OpenBSD__]: | ||
| 18635 | Don't update the .mdebug section of the Alpha COFF symbol table. | ||
| 18636 | |||
| 18637 | 2011-07-19 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18638 | |||
| 18639 | * lread.c (syms_of_lread): Clarify when `lexical-binding' is used | ||
| 18640 | (bug#8460). | ||
| 18641 | |||
| 18642 | 2011-07-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18643 | |||
| 18644 | * fileio.c (Fcopy_file) [!MSDOS]: Tighten created file's mask. | ||
| 18645 | This fixes some race conditions on the permissions of any newly | ||
| 18646 | created file. | ||
| 18647 | |||
| 18648 | * alloc.c (valid_pointer_p): Use pipe, not open. | ||
| 18649 | This fixes some permissions issues when debugging. | ||
| 18650 | |||
| 18651 | * fileio.c (Fcopy_file): Adjust mode if fchown fails. (Bug#9002) | ||
| 18652 | If fchown fails to set both uid and gid, try to set just gid, | ||
| 18653 | as that is sometimes allowed. Adjust the file's mode to eliminate | ||
| 18654 | setuid or setgid bits that are inappropriate if fchown fails. | ||
| 18655 | |||
| 18656 | 2011-07-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 18657 | |||
| 18658 | * xdisp.c (next_element_from_string, next_element_from_buffer): Use EQ | ||
| 18659 | to compare Lisp_Objects. | ||
| 18660 | * gnutls.c (syms_of_gnutls): Rename Vgnutls_log_level to | ||
| 18661 | global_gnutls_log_level, don't mistake it for a Lisp_Object. | ||
| 18662 | (init_gnutls_functions, emacs_gnutls_handle_error): Fix up uses. | ||
| 18663 | |||
| 18664 | 2011-07-17 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18665 | |||
| 18666 | * lread.c (read_integer): Unread even EOF character. | ||
| 18667 | (read1): Likewise. Properly record start position of symbol. | ||
| 18668 | |||
| 18669 | * lread.c (read1): Read `#:' as empty uninterned symbol if no | ||
| 18670 | symbol character follows. | ||
| 18671 | |||
| 18672 | 2011-07-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18673 | |||
| 18674 | * fileio.c (Fcopy_file): Pacify gcc re fchown. (Bug#9002) | ||
| 18675 | This works around a problem with the previous change to Fcopy_file. | ||
| 18676 | Recent glibc declares fchown with __attribute__((warn_unused_result)), | ||
| 18677 | and without this change, GCC might complain about discarding | ||
| 18678 | fchown's return value. | ||
| 18679 | |||
| 18680 | 2011-07-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 18681 | |||
| 18682 | * makefile.w32-in (GLOBAL_SOURCES): Add gnutls.c (followup to bug#9059). | ||
| 18683 | |||
| 18684 | 2011-07-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18685 | |||
| 18686 | * fileio.c (Fcopy_file): Don't diagnose fchown failures. (Bug#9002) | ||
| 18687 | |||
| 18688 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18689 | |||
| 18690 | * gnutls.c (syms_of_gnutls): Define `gnutls-log-level' here, since | ||
| 18691 | it's used from the C level. | ||
| 18692 | |||
| 18693 | * process.c: Use the same condition for POLL_FOR_INPUT in both | ||
| 18694 | keyboard.c and process.c (bug#1858). | ||
| 18695 | |||
| 18696 | 2011-07-09 Lawrence Mitchell <wence@gmx.li> | ||
| 18697 | |||
| 18698 | * gnutls.c (Qgnutls_bootprop_min_prime_bits): New variable. | ||
| 18699 | (Fgnutls_boot): Use it. | ||
| 18700 | |||
| 18701 | 2011-07-15 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18702 | |||
| 18703 | * doc.c (Fsubstitute_command_keys): Revert last change. | ||
| 18704 | |||
| 18705 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18706 | |||
| 18707 | * doc.c (Fsubstitute_command_keys): Clarify that \= really only | ||
| 18708 | quotes the next character, and doesn't affect other longer | ||
| 18709 | sequences (bug#8935). | ||
| 18710 | |||
| 18711 | * lread.c (syms_of_lread): Clarify that is isn't only | ||
| 18712 | `eval-buffer' and `eval-defun' that's affected by | ||
| 18713 | `lexical-binding' (bug#8460). | ||
| 18714 | |||
| 18715 | 2011-07-15 Eli Zaretskii <eliz@gnu.org> | ||
| 18716 | |||
| 18717 | * xdisp.c (move_it_in_display_line_to): Fix vertical motion with | ||
| 18718 | bidi redisplay when a line includes both an image and is truncated. | ||
| 18719 | |||
| 18720 | 2011-07-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18721 | |||
| 18722 | Fix minor problems found by static checking. | ||
| 18723 | * bidi.c (bidi_cache_size): Now EMACS_INT, not size_t. | ||
| 18724 | (elsz): Now a signed constant, not a size_t var. We prefer signed | ||
| 18725 | types to unsigned, to avoid integer comparison confusion. Without | ||
| 18726 | this change, GCC 4.6.1 with -Wunsafe-loop-optimizations complains | ||
| 18727 | "cannot optimize loop, the loop counter may overflow", a symptom | ||
| 18728 | of the confusion. | ||
| 18729 | * indent.c (Fvertical_motion): Mark locals as initialized. | ||
| 18730 | * xdisp.c (reseat_to_string): Fix pointer signedness issue. | ||
| 18731 | |||
| 18732 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18733 | |||
| 18734 | * search.c (Fre_search_backward): Mention `case-fold-search' in | ||
| 18735 | all the re_search_* functions (bug#8138). | ||
| 18736 | |||
| 18737 | * keyboard.c (Fopen_dribble_file): Document when the file is | ||
| 18738 | closed (bug#8056). | ||
| 18739 | |||
| 18740 | 2011-07-14 Eli Zaretskii <eliz@gnu.org> | ||
| 18741 | |||
| 18742 | * bidi.c (bidi_dump_cached_states): Fix format of displaying | ||
| 18743 | bidi_cache_idx. | ||
| 18744 | |||
| 18745 | Support bidi reordering of display and overlay strings. | ||
| 18746 | * xdisp.c (compute_display_string_pos) | ||
| 18747 | (compute_display_string_end): Accept additional argument STRING. | ||
| 18748 | (init_iterator, reseat_1): Initialize bidi_it->string.s to NULL. | ||
| 18749 | (reseat_to_string): Initialize bidi_it->string.s and | ||
| 18750 | bidi_it->string.schars. | ||
| 18751 | (Fcurrent_bidi_paragraph_direction): Initialize itb.string.s to | ||
| 18752 | NULL (avoids a crash in bidi_paragraph_init). | ||
| 18753 | Initialize itb.string.lstring. | ||
| 18754 | (init_iterator): Call bidi_init_it only of a valid | ||
| 18755 | buffer position was specified. Initialize paragraph_embedding to | ||
| 18756 | L2R. | ||
| 18757 | (reseat_to_string): Initialize the bidi iterator. | ||
| 18758 | (display_string): If we need to ignore text properties of | ||
| 18759 | LISP_STRING, set IT->stop_charpos to IT->end_charpos. (The | ||
| 18760 | original value of -1 will not work with bidi.) | ||
| 18761 | (compute_display_string_pos): First arg is now struct | ||
| 18762 | `text_pos *'; all callers changed. Support display properties on | ||
| 18763 | Lisp strings. | ||
| 18764 | (compute_display_string_end): Support display properties on Lisp | ||
| 18765 | strings. | ||
| 18766 | (init_iterator, reseat_1, reseat_to_string): Initialize the | ||
| 18767 | string.bufpos member to 0 (zero, for compatibility with IT_CHARPOS | ||
| 18768 | when iterating on a string not from display properties). | ||
| 18769 | (compute_display_string_pos, compute_display_string_end): | ||
| 18770 | Fix calculation of the object to scan. Fixes an error when using | ||
| 18771 | arrow keys. | ||
| 18772 | (next_element_from_buffer): Don't abort when IT_CHARPOS is before | ||
| 18773 | base_level_stop; instead, set base_level_stop to BEGV. | ||
| 18774 | Fixes crashes in vertical-motion. | ||
| 18775 | (next_element_from_buffer): Improve commentary for when | ||
| 18776 | the iterator is before prev_stop. | ||
| 18777 | (init_iterator): Initialize bidi_p from the default value of | ||
| 18778 | bidi-display-reordering, not from buffer-local value. Use the | ||
| 18779 | buffer-local value only if initializing for buffer iteration. | ||
| 18780 | (handle_invisible_prop): Support invisible properties on strings | ||
| 18781 | that are being bidi-reordered. | ||
| 18782 | (set_iterator_to_next): Support bidi reordering of C strings and | ||
| 18783 | Lisp strings. | ||
| 18784 | (next_element_from_string): Support bidi reordering of Lisp | ||
| 18785 | strings. | ||
| 18786 | (handle_stop_backwards): Support Lisp strings as well. | ||
| 18787 | (display_string): Support display of R2L glyph rows. | ||
| 18788 | Use IT_STRING_CHARPOS when displaying from a Lisp string. | ||
| 18789 | (init_iterator): Don't initialize it->bidi_p for strings | ||
| 18790 | here. | ||
| 18791 | (reseat_to_string): Initialize it->bidi_p for strings here. | ||
| 18792 | (next_element_from_string, next_element_from_c_string) | ||
| 18793 | (next_element_from_buffer): Add xassert's for correspondence | ||
| 18794 | between IT's object being iterated and it->bidi_it.string | ||
| 18795 | structure. | ||
| 18796 | (face_before_or_after_it_pos): Support bidi iteration. | ||
| 18797 | (next_element_from_c_string): Handle the case of the first string | ||
| 18798 | character that is not the first one in the visual order. | ||
| 18799 | (get_visually_first_element): New function, refactored from common | ||
| 18800 | parts of next_element_from_buffer, next_element_from_string, and | ||
| 18801 | next_element_from_c_string. | ||
| 18802 | (tool_bar_lines_needed, redisplay_tool_bar) | ||
| 18803 | (display_menu_bar): Force left-to-right direction. Add a FIXME | ||
| 18804 | comment for making that be controlled by a user option. | ||
| 18805 | (push_it, pop_it): Save and restore the state of the | ||
| 18806 | bidi iterator. Save and restore the bidi_p flag. | ||
| 18807 | (pop_it): Iterate out of display property for string iteration as | ||
| 18808 | well. | ||
| 18809 | (iterate_out_of_display_property): Support iteration over strings. | ||
| 18810 | (handle_single_display_spec): Set up it->bidi_it for iteration | ||
| 18811 | over a display string, and call bidi_init_it. | ||
| 18812 | (handle_single_display_spec, next_overlay_string) | ||
| 18813 | (get_overlay_strings_1, push_display_prop): Set up the bidi | ||
| 18814 | iterator for displaying display or overlay strings. | ||
| 18815 | (forward_to_next_line_start): Don't use the shortcut if | ||
| 18816 | bidi-iterating. | ||
| 18817 | (back_to_previous_visible_line_start): If handle_display_prop | ||
| 18818 | pushed the iterator stack, restore the internal state of the bidi | ||
| 18819 | iterator by calling bidi_pop_it same number of times. | ||
| 18820 | (reseat_at_next_visible_line_start): If ON_NEWLINE_P is non-zero, | ||
| 18821 | and we are bidi-iterating, don't decrement the iterator position; | ||
| 18822 | instead, set the first_elt flag in the bidi iterator, to produce | ||
| 18823 | the same effect. | ||
| 18824 | (reseat_1): Remove redundant setting of string_from_display_prop_p. | ||
| 18825 | (push_display_prop): xassert that we are iterating a buffer. | ||
| 18826 | (push_it, pop_it): Save and restore paragraph_embedding member. | ||
| 18827 | (handle_single_display_spec, next_overlay_string) | ||
| 18828 | (get_overlay_strings_1, reseat_1, reseat_to_string) | ||
| 18829 | (push_display_prop): Set up the `unibyte' member of bidi_it.string | ||
| 18830 | correctly. Don't assume unibyte strings are not bidi-reordered. | ||
| 18831 | (compute_display_string_pos) | ||
| 18832 | (compute_display_string_end): Fix handling the case of C string. | ||
| 18833 | (push_it, pop_it): Save and restore from_disp_prop_p. | ||
| 18834 | (handle_single_display_spec, push_display_prop): Set the | ||
| 18835 | from_disp_prop_p flag. | ||
| 18836 | (get_overlay_strings_1): Reset the from_disp_prop_p flag. | ||
| 18837 | (pop_it): Call iterate_out_of_display_property only if we are | ||
| 18838 | popping after iteration over a string that came from a display | ||
| 18839 | property. Fix a typo in popping stretch info. Add an assertion | ||
| 18840 | for verifying that the iterator position is in sync with the bidi | ||
| 18841 | iterator. | ||
| 18842 | (handle_single_display_spec, get_overlay_strings_1) | ||
| 18843 | (push_display_prop): Fix initialization of paragraph direction for | ||
| 18844 | string when that of the parent object is not yet determined. | ||
| 18845 | (reseat_1): Call bidi_init_it to resync the bidi | ||
| 18846 | iterator with IT's position. (Bug#7616) | ||
| 18847 | (find_row_edges): If ROW->start.pos gives position | ||
| 18848 | smaller than min_pos, use it as ROW->minpos. (Bug#7616) | ||
| 18849 | (handle_stop, back_to_previous_visible_line_start, reseat_1): | ||
| 18850 | Reset the from_disp_prop_p flag. | ||
| 18851 | (SAVE_IT, RESTORE_IT): New macros. | ||
| 18852 | (pos_visible_p, face_before_or_after_it_pos) | ||
| 18853 | (back_to_previous_visible_line_start) | ||
| 18854 | (move_it_in_display_line_to, move_it_in_display_line) | ||
| 18855 | (move_it_to, move_it_vertically_backward, move_it_by_lines) | ||
| 18856 | (try_scrolling, redisplay_window, display_line): Use them when | ||
| 18857 | saving a temporary copy of the iterator and restoring it back. | ||
| 18858 | (back_to_previous_visible_line_start, reseat_1) | ||
| 18859 | (init_iterator): Empty the bidi cache "stack". | ||
| 18860 | (move_it_in_display_line_to): If iterator ended up at | ||
| 18861 | EOL, but we never saw any buffer positions smaller than | ||
| 18862 | to_charpos, return MOVE_POS_MATCH_OR_ZV. Fixes vertical cursor | ||
| 18863 | motion in bidi-reordered lines. | ||
| 18864 | (move_it_in_display_line_to): Record prev_method and prev_pos | ||
| 18865 | immediately before the call to set_iterator_to_next. Fixes cursor | ||
| 18866 | motion in bidi-reordered lines with stretch glyphs and strings | ||
| 18867 | displayed in margins. (Bug#8133) (Bug#8867) | ||
| 18868 | Return MOVE_POS_MATCH_OR_ZV only if iterator position is past | ||
| 18869 | TO_CHARPOS. | ||
| 18870 | (pos_visible_p): Support positions in bidi-reordered lines. | ||
| 18871 | Save and restore bidi cache. | ||
| 18872 | |||
| 18873 | * bidi.c (bidi_level_of_next_char): clen should be EMACS_NT, not int. | ||
| 18874 | (bidi_paragraph_info): Delete unused struct. | ||
| 18875 | (bidi_cache_idx, bidi_cache_last_idx): Declare EMACS_INT. | ||
| 18876 | (bidi_cache_start): New variable. | ||
| 18877 | (bidi_cache_reset): Reset bidi_cache_idx to bidi_cache_start, not | ||
| 18878 | to zero. | ||
| 18879 | (bidi_cache_fetch_state, bidi_cache_search) | ||
| 18880 | (bidi_cache_find_level_change, bidi_cache_iterator_state) | ||
| 18881 | (bidi_cache_find, bidi_peek_at_next_level) | ||
| 18882 | (bidi_level_of_next_char, bidi_find_other_level_edge) | ||
| 18883 | (bidi_move_to_visually_next): Compare cache index with | ||
| 18884 | bidi_cache_start rather than with zero. | ||
| 18885 | (bidi_fetch_char): Accept new argument STRING; all callers | ||
| 18886 | changed. Support iteration over a string. Support strings with | ||
| 18887 | display properties. Support unibyte strings. Fix the type of | ||
| 18888 | `len' according to what STRING_CHAR_AND_LENGTH expects. | ||
| 18889 | (bidi_paragraph_init, bidi_resolve_explicit_1) | ||
| 18890 | (bidi_resolve_explicit, bidi_resolve_weak) | ||
| 18891 | (bidi_level_of_next_char, bidi_move_to_visually_next): | ||
| 18892 | Support iteration over a string. | ||
| 18893 | (bidi_set_sor_type, bidi_resolve_explicit_1) | ||
| 18894 | (bidi_resolve_explicit, bidi_type_of_next_char): ignore_bn_limit | ||
| 18895 | can now be zero (for strings); special values 0 and -1 were | ||
| 18896 | changed to -1 and -2, respectively. | ||
| 18897 | (bidi_char_at_pos): New function. | ||
| 18898 | (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak): | ||
| 18899 | Call it instead of FETCH_MULTIBYTE_CHAR. | ||
| 18900 | (bidi_move_to_visually_next): Abort if charpos or bytepos were not | ||
| 18901 | initialized to valid values. | ||
| 18902 | (bidi_init_it): Don't initialize charpos and bytepos with invalid | ||
| 18903 | values. | ||
| 18904 | (bidi_level_of_next_char): Allow the sentinel "position" to pass | ||
| 18905 | the test for valid cached positions. Fix the logic for looking up | ||
| 18906 | the sentinel state in the cache. GCPRO the Lisp string we are | ||
| 18907 | iterating. | ||
| 18908 | (bidi_push_it, bidi_pop_it): New functions. | ||
| 18909 | (bidi_initialize): Initialize the bidi cache start stack pointer. | ||
| 18910 | (bidi_cache_ensure_space): New function, refactored from part of | ||
| 18911 | bidi_cache_iterator_state. Don't assume the required size is just | ||
| 18912 | one BIDI_CACHE_CHUNK away. | ||
| 18913 | (bidi_cache_start_stack, bidi_push_it): Use IT_STACK_SIZE. | ||
| 18914 | (bidi_count_bytes, bidi_char_at_pos): New functions. | ||
| 18915 | (bidi_cache_search): Don't assume bidi_cache_last_idx is | ||
| 18916 | always valid if bidi_cache_idx is valid. | ||
| 18917 | (bidi_cache_find_level_change): xassert that bidi_cache_last_idx | ||
| 18918 | is valid if it's going to be used. | ||
| 18919 | (bidi_shelve_cache, bidi_unshelve_cache): New functions. | ||
| 18920 | (bidi_cache_fetch_state, bidi_cache_search) | ||
| 18921 | (bidi_cache_find_level_change, bidi_cache_ensure_space) | ||
| 18922 | (bidi_cache_iterator_state, bidi_cache_find) | ||
| 18923 | (bidi_find_other_level_edge, bidi_cache_start_stack): | ||
| 18924 | All variables related to cache indices are now EMACS_INT. | ||
| 18925 | |||
| 18926 | * dispextern.h (struct bidi_string_data): New structure. | ||
| 18927 | (struct bidi_it): New member `string'. Make flag members be 1-bit | ||
| 18928 | fields, and put them last in the struct. | ||
| 18929 | (compute_display_string_pos, compute_display_string_end): | ||
| 18930 | Update prototypes. | ||
| 18931 | (bidi_push_it, bidi_pop_it): Add prototypes. | ||
| 18932 | (struct iterator_stack_entry): New members bidi_p, | ||
| 18933 | paragraph_embedding, and from_disp_prop_p. | ||
| 18934 | (struct it): Member bidi_p is now a bit field 1 bit wide. | ||
| 18935 | (bidi_shelve_cache, bidi_unshelve_cache): | ||
| 18936 | Declare prototypes. | ||
| 18937 | |||
| 18938 | * .gdbinit (xvectype, xvector, xcompiled, xchartable, xboolvector) | ||
| 18939 | (xpr, xfont, xbacktrace): Use "header.size" when accessing vectors | ||
| 18940 | and vector-like objects. | ||
| 18941 | |||
| 18942 | * dispnew.c (buffer_posn_from_coords): Save and restore the bidi | ||
| 18943 | cache around display iteration. | ||
| 18944 | |||
| 18945 | * window.c (Fwindow_end, window_scroll_pixel_based) | ||
| 18946 | (displayed_window_lines, Frecenter): Save and restore the bidi | ||
| 18947 | cache around display iteration. | ||
| 18948 | |||
| 18949 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18950 | |||
| 18951 | * editfns.c (Fdelete_region): Clarify the use of the named | ||
| 18952 | parameters (bug#6788). | ||
| 18953 | |||
| 18954 | 2011-07-14 Martin Rudalics <rudalics@gmx.at> | ||
| 18955 | |||
| 18956 | * indent.c (Fvertical_motion): Set and restore w->pointm when | ||
| 18957 | saving and restoring the window's buffer (Bug#9006). | ||
| 18958 | |||
| 18959 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18960 | |||
| 18961 | * editfns.c (Fstring_to_char): Clarify just what is returned | ||
| 18962 | (bug#6576). Text by Eli Zaretskii. | ||
| 18963 | |||
| 18964 | 2011-07-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 18965 | |||
| 18966 | * gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059). | ||
| 18967 | |||
| 18968 | 2011-07-13 Eli Zaretskii <eliz@gnu.org> | ||
| 18969 | |||
| 18970 | * buffer.c (mmap_find): Fix a typo. | ||
| 18971 | |||
| 18972 | 2011-07-13 Johan Bockgård <bojohan@gnu.org> | ||
| 18973 | |||
| 18974 | Fix execution of x selection hooks. | ||
| 18975 | * xselect.c (Qx_lost_selection_functions) | ||
| 18976 | (Qx_sent_selection_functions): New vars. | ||
| 18977 | (syms_of_xselect): DEFSYM them. | ||
| 18978 | (x_handle_selection_request): Pass Qx_sent_selection_functions | ||
| 18979 | rather than Vx_sent_selection_functions to Frun_hook_with_args. | ||
| 18980 | (x_handle_selection_clear,x_clear_frame_selections): | ||
| 18981 | Pass Qx_lost_selection_functions rather than | ||
| 18982 | Vx_lost_selection_functions to Frun_hook_with_args. | ||
| 18983 | |||
| 18984 | 2011-07-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18985 | |||
| 18986 | * buffer.c (Fget_buffer_create): Initialize inhibit_shrinking. | ||
| 18987 | The old code sometimes used this field without initializing it. | ||
| 18988 | |||
| 18989 | * alloc.c (gc_sweep): Don't read past end of array. | ||
| 18990 | In theory, the old code could also have corrupted Emacs internals, | ||
| 18991 | though it'd be very unlikely. | ||
| 18992 | |||
| 18993 | 2011-07-12 Andreas Schwab <schwab@linux-m68k.org> | ||
| 18994 | |||
| 18995 | * character.c (Fcharacterp): Don't advertise optional ignored | ||
| 18996 | argument. (Bug#4026) | ||
| 18997 | |||
| 18998 | 2011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 18999 | |||
| 19000 | * keymap.c (syms_of_keymap): Clarify that "modifier" is "modifier | ||
| 19001 | key" (bug#4257). | ||
| 19002 | |||
| 19003 | * window.c (Fset_window_start): Doc fix (bug#4199). | ||
| 19004 | (Fset_window_hscroll): Ditto. | ||
| 19005 | |||
| 19006 | 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19007 | |||
| 19008 | Fix minor new problems caught by GCC 4.6.1. | ||
| 19009 | * term.c (init_tty): Remove unused local. | ||
| 19010 | * xsettings.c (store_monospaced_changed): Define this function only | ||
| 19011 | if (defined HAVE_GSETTINGS || defined HAVE_GCONF), as it's | ||
| 19012 | not used otherwise. | ||
| 19013 | |||
| 19014 | 2011-07-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 19015 | |||
| 19016 | * xdisp.c (Vresize_mini_windows): Minor doc fix (Bug#3300). | ||
| 19017 | |||
| 19018 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19019 | |||
| 19020 | * xdisp.c (syms_of_xdisp): Make it explicit that the mini-windows | ||
| 19021 | are the mini-buffer and the echo area (bug#3320). | ||
| 19022 | |||
| 19023 | * term.c (init_tty): Remove support for supdup, c10 and perq | ||
| 19024 | terminals, which are no longer supported (bug#1482). | ||
| 19025 | |||
| 19026 | 2011-07-10 Johan Bockgård <bojohan@gnu.org> | ||
| 19027 | |||
| 19028 | * xdisp.c (Ftool_bar_lines_needed): Fix WINDOWP check. | ||
| 19029 | |||
| 19030 | 2011-07-10 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19031 | |||
| 19032 | * xmenu.c (menu_highlight_callback): Only pass frame to show_help_event | ||
| 19033 | for non-popups (Bug#3642). | ||
| 19034 | |||
| 19035 | 2011-07-10 Andreas Schwab <schwab@linux-m68k.org> | ||
| 19036 | |||
| 19037 | * alloc.c (reset_malloc_hooks): Protoize. | ||
| 19038 | * buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge) | ||
| 19039 | (mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Likewise. | ||
| 19040 | * cm.c (losecursor): Likewise. | ||
| 19041 | * data.c (fmod): Likewise. | ||
| 19042 | * dispnew.c (swap_glyphs_in_rows): Likewise. | ||
| 19043 | * emacs.c (memory_warning_signal): Likewise. | ||
| 19044 | * floatfns.c (float_error): Likewise. | ||
| 19045 | * font.c (check_gstring, check_otf_features, otf_tag_symbol) | ||
| 19046 | (otf_open, font_otf_capability, generate_otf_features) | ||
| 19047 | (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): | ||
| 19048 | Likewise. | ||
| 19049 | * image.c (pbm_read_file): Likewise. | ||
| 19050 | * indent.c (string_display_width): Likewise. | ||
| 19051 | * intervals.c (check_for_interval, search_for_interval) | ||
| 19052 | (inc_interval_count, count_intervals, root_interval) | ||
| 19053 | (adjust_intervals_for_insertion, make_new_interval): Likewise. | ||
| 19054 | * lread.c (defalias): Likewise. | ||
| 19055 | * ralloc.c (r_alloc_check): Likewise. | ||
| 19056 | * regex.c (set_image_of_range_1, set_image_of_range) | ||
| 19057 | (regex_grow_registers): Likewise. | ||
| 19058 | * sysdep.c (strerror): Likewise. | ||
| 19059 | * termcap.c (valid_filename_p, tprint, main): Likewise. | ||
| 19060 | * tparam.c (main): Likewise. | ||
| 19061 | * unexhp9k800.c (run_time_remap, save_data_space) | ||
| 19062 | (update_file_ptrs, read_header, write_header, calculate_checksum) | ||
| 19063 | (copy_file, copy_rest, display_header): Likewise. | ||
| 19064 | * widget.c (mark_shell_size_user_specified, create_frame_gcs): | ||
| 19065 | Likewise. | ||
| 19066 | * xdisp.c (check_it): Likewise. | ||
| 19067 | * xfaces.c (register_color, unregister_color, unregister_colors): | ||
| 19068 | Likewise. | ||
| 19069 | * xfns.c (print_fontset_result): Likewise. | ||
| 19070 | * xrdb.c (member, fatal, main): Likewise. | ||
| 19071 | |||
| 19072 | 2011-07-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19073 | |||
| 19074 | Fix minor problems found by static checking (Bug#9031). | ||
| 19075 | * chartab.c (char_table_set_range, map_sub_char_table): | ||
| 19076 | Remove unused locals. | ||
| 19077 | (uniprop_table): Now static. | ||
| 19078 | * composite.c (_work_char): Remove unused static var. | ||
| 19079 | |||
| 19080 | 2011-07-09 Juanma Barranquero <lekktu@gmail.com> | ||
| 19081 | |||
| 19082 | * chartab.c (uniprop_table_uncompress): Remove unused local variable. | ||
| 19083 | |||
| 19084 | 2011-07-09 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19085 | |||
| 19086 | * gtkutil.c (qttip_cb): Remove code without function. | ||
| 19087 | |||
| 19088 | 2011-07-09 Eli Zaretskii <eliz@gnu.org> | ||
| 19089 | |||
| 19090 | * w32.c (pthread_sigmask): New stub. | ||
| 19091 | |||
| 19092 | 2011-07-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19093 | |||
| 19094 | Use pthread_sigmask, not sigprocmask (Bug#9010). | ||
| 19095 | sigprocmask is portable only for single-threaded applications, and | ||
| 19096 | Emacs can be multi-threaded when it uses GTK. | ||
| 19097 | * Makefile.in (LIB_PTHREAD_SIGMASK): New macro. | ||
| 19098 | (LIBES): Use it. | ||
| 19099 | * callproc.c (Fcall_process): | ||
| 19100 | * process.c (create_process): | ||
| 19101 | * sysdep.c (sys_sigblock, sys_sigunblock, sys_sigsetmask): | ||
| 19102 | Use pthread_sigmask, not sigprocmask. | ||
| 19103 | |||
| 19104 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19105 | |||
| 19106 | * gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget. | ||
| 19107 | (xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was | ||
| 19108 | wrong (Bug#8591). | ||
| 19109 | |||
| 19110 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19111 | |||
| 19112 | * gtkutil.c (xg_prepare_tooltip): Fix indentation and comment. | ||
| 19113 | Put text in x->ttip_lbl instead of gtk_tooltip_set_text (Bug#8591). | ||
| 19114 | (xg_hide_tooltip): Fix comment. | ||
| 19115 | |||
| 19116 | * nsterm.m (initFrameFromEmacs): Don't use ns_return_types | ||
| 19117 | in registerServicesMenuSendTypes. | ||
| 19118 | (validRequestorForSendType): Don't check ns_return_types. | ||
| 19119 | |||
| 19120 | * nsfns.m (Fx_open_connection): Put NSStringPboardType into | ||
| 19121 | ns_return_type. | ||
| 19122 | |||
| 19123 | 2011-07-08 Jason Rumney <jasonr@gnu.org> | ||
| 19124 | |||
| 19125 | * w32term.c (x_make_frame_visible): Use SH_SHOWNORMAL rather than | ||
| 19126 | SH_SHOW for hidden windows (Bug#5482). | ||
| 19127 | |||
| 19128 | * w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using | ||
| 19129 | frame struct members of non-existent frames (Bug#6284). | ||
| 19130 | |||
| 19131 | 2011-07-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19132 | |||
| 19133 | * nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and | ||
| 19134 | variable firstTime not needed on OSX >= 10.6. | ||
| 19135 | (setPosition): setFloatValue:knobProportion: is deprecated on OSX | ||
| 19136 | >= 10.5. Use setKnobProportion, setDoubleValue. | ||
| 19137 | |||
| 19138 | * nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4) | ||
| 19139 | (MAC_OS_X_VERSION_10_5): Define if not defined. | ||
| 19140 | (EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6. | ||
| 19141 | (EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6. | ||
| 19142 | (EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6. | ||
| 19143 | |||
| 19144 | * nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods | ||
| 19145 | cString and lossyCString on OSX >= 10.4. | ||
| 19146 | |||
| 19147 | * nsmenu.m (fillWithWidgetValue): Don't use deprecated method | ||
| 19148 | sizeToFit on OSX >= 10.2. | ||
| 19149 | |||
| 19150 | * nsimage.m (allocInitFromFile): Don't use deprecated method | ||
| 19151 | bestRepresentationForDevice on OSX >= 10.6. | ||
| 19152 | |||
| 19153 | * nsfns.m (check_ns_display_info): Cast to long and use %ld in error | ||
| 19154 | to avoid warning. | ||
| 19155 | |||
| 19156 | * emacs.c: Declare unexec_init_emacs_zone. | ||
| 19157 | |||
| 19158 | * nsgui.h: Fix compiler warning about gnulib redefining verify. | ||
| 19159 | |||
| 19160 | * nsselect.m (ns_get_local_selection): Change to extern (Bug#8842). | ||
| 19161 | |||
| 19162 | * nsmenu.m (ns_update_menubar): Remove useless setDelegate call | ||
| 19163 | on svcsMenu (Bug#8842). | ||
| 19164 | |||
| 19165 | * nsfns.m (Fx_open_connection): Remove NSStringPboardType from | ||
| 19166 | ns_return_types. | ||
| 19167 | (Fns_list_services): Just return Qnil on 10.6, code not working there. | ||
| 19168 | |||
| 19169 | * nsterm.m (QUTF8_STRING): Declare. | ||
| 19170 | (initFrameFromEmacs): Call registerServicesMenuSendTypes. | ||
| 19171 | (validRequestorForSendType): Return type is (id). | ||
| 19172 | Change indexOfObjectIdenticalTo to indexOfObject. | ||
| 19173 | Check if we have local selection before returning self (Bug#8842). | ||
| 19174 | (writeSelectionToPasteboard): Put local selection into paste board | ||
| 19175 | if we have a local selection (Bug#8842). | ||
| 19176 | (syms_of_nsterm): DEFSYM QUTF8_STRING. | ||
| 19177 | |||
| 19178 | * nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m. | ||
| 19179 | (ns_get_local_selection): Declare. | ||
| 19180 | |||
| 19181 | 2011-07-07 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19182 | |||
| 19183 | * keymap.c (describe_map_tree): Don't insert a double newline at | ||
| 19184 | the end of the buffer (bug#1169) and return whether we inserted | ||
| 19185 | something. | ||
| 19186 | |||
| 19187 | * callint.c (Fcall_interactively): Change "reading args" to | ||
| 19188 | "providing args" to try to clarify what it does (bug#1010). | ||
| 19189 | |||
| 19190 | 2011-07-07 Kenichi Handa <handa@m17n.org> | ||
| 19191 | |||
| 19192 | * composite.c (composition_compute_stop_pos): Ignore a static | ||
| 19193 | composition starting before CHARPOS (Bug#8915). | ||
| 19194 | |||
| 19195 | * xdisp.c (handle_composition_prop): Likewise. | ||
| 19196 | |||
| 19197 | 2011-07-07 Eli Zaretskii <eliz@gnu.org> | ||
| 19198 | |||
| 19199 | * term.c (produce_glyphs) <xassert>: Allow IT_GLYPHLESS in it->what. | ||
| 19200 | (Bug#9015) | ||
| 19201 | |||
| 19202 | 2011-07-07 Kenichi Handa <handa@m17n.org> | ||
| 19203 | |||
| 19204 | * character.h (unicode_category_t): New enum type. | ||
| 19205 | |||
| 19206 | * chartab.c (uniprop_decoder_t, uniprop_encoder_t): New types. | ||
| 19207 | (Qchar_code_property_table): New variable. | ||
| 19208 | (UNIPROP_TABLE_P, UNIPROP_GET_DECODER) | ||
| 19209 | (UNIPROP_COMPRESSED_FORM_P): New macros. | ||
| 19210 | (char_table_ascii): Uncompress the compressed values. | ||
| 19211 | (sub_char_table_ref): New arg is_uniprop. Callers changed. | ||
| 19212 | Uncompress the compressed values. | ||
| 19213 | (sub_char_table_ref_and_range): Likewise. | ||
| 19214 | (char_table_ref_and_range): Uncompress the compressed values. | ||
| 19215 | (sub_char_table_set): New arg is_uniprop. Callers changed. | ||
| 19216 | Uncompress the compressed values. | ||
| 19217 | (sub_char_table_set_range): Args changed. Callers changed. | ||
| 19218 | (char_table_set_range): Adjuted for the above change. | ||
| 19219 | (map_sub_char_table): Delete args default_val and parent. Add arg | ||
| 19220 | top. Give decoded values to a Lisp function. | ||
| 19221 | (map_char_table): Adjust for the above change. Give decoded | ||
| 19222 | values to a Lisp function. Gcpro more variables. | ||
| 19223 | (uniprop_table_uncompress) | ||
| 19224 | (uniprop_decode_value_run_length): New functions. | ||
| 19225 | (uniprop_decoder, uniprop_decoder_count): New variables. | ||
| 19226 | (uniprop_get_decoder, uniprop_encode_value_character) | ||
| 19227 | (uniprop_encode_value_run_length, uniprop_encode_value_numeric): | ||
| 19228 | New functions. | ||
| 19229 | (uniprop_encoder, uniprop_encoder_count): New variables. | ||
| 19230 | (uniprop_get_encoder, uniprop_table) | ||
| 19231 | (Funicode_property_table_internal, Fget_unicode_property_internal) | ||
| 19232 | (Fput_unicode_property_internal): New functions. | ||
| 19233 | (syms_of_chartab): DEFSYM Qchar_code_property_table, defsubr | ||
| 19234 | Sunicode_property_table_internal, Sget_unicode_property_internal, | ||
| 19235 | and Sput_unicode_property_internal. Defvar_lisp | ||
| 19236 | char-code-property-alist. | ||
| 19237 | |||
| 19238 | * composite.c (CHAR_COMPOSABLE_P): Adjust for the change of | ||
| 19239 | Vunicode_category_table. | ||
| 19240 | |||
| 19241 | * font.c (font_range): Adjust for the change of | ||
| 19242 | Vunicode_category_table. | ||
| 19243 | |||
| 19244 | 2011-07-07 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 19245 | |||
| 19246 | * m/iris4d.h: Remove file, move contents ... | ||
| 19247 | * s/irix6-5.h: ... here. | ||
| 19248 | |||
| 19249 | 2011-07-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19250 | |||
| 19251 | Remove unportable assumption about struct layout (Bug#8884). | ||
| 19252 | * alloc.c (mark_buffer): | ||
| 19253 | * buffer.c (reset_buffer_local_variables, Fbuffer_local_variables) | ||
| 19254 | (clone_per_buffer_values): Don't assume that | ||
| 19255 | sizeof (struct buffer) is a multiple of sizeof (Lisp_Object). | ||
| 19256 | This isn't true in general, and it's particularly not true | ||
| 19257 | if Emacs is configured with --with-wide-int. | ||
| 19258 | * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): | ||
| 19259 | New macros, used in the buffer.c change. | ||
| 19260 | |||
| 19261 | 2011-07-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19262 | |||
| 19263 | * xsettings.c: Use both GConf and GSettings if both are available. | ||
| 19264 | (store_config_changed_event): Add comment. | ||
| 19265 | (dpyinfo_valid, store_font_name_changed, map_tool_bar_style) | ||
| 19266 | (store_tool_bar_style_changed): New functions. | ||
| 19267 | (store_monospaced_changed): Add comment. Call dpyinfo_valid. | ||
| 19268 | (struct xsettings): Move font inside HAVE_XFT. | ||
| 19269 | (GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines. | ||
| 19270 | (GSETTINGS_MONO_FONT): Rename from SYSTEM_MONO_FONT. | ||
| 19271 | Move inside HAVE_XFT. | ||
| 19272 | (something_changed_gsettingsCB): Rename from something_changedCB. | ||
| 19273 | Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME | ||
| 19274 | also. | ||
| 19275 | (GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines. | ||
| 19276 | (GCONF_MONO_FONT): Rename from SYSTEM_MONO_FONT. Move inside HAVE_XFT. | ||
| 19277 | (something_changed_gconfCB): Rename from something_changedCB. | ||
| 19278 | Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also. | ||
| 19279 | (parse_settings): Move check for font inside HAVE_XFT. | ||
| 19280 | (read_settings, apply_xft_settings): Add comment. | ||
| 19281 | (read_and_apply_settings): Add comment. Call map_tool_bar_style and | ||
| 19282 | store_tool_bar_style_changed. Move check for font inside HAVE_XFT and | ||
| 19283 | call store_font_name_changed. | ||
| 19284 | (xft_settings_event): Add comment. | ||
| 19285 | (init_gsettings): Add comment. Get values for GSETTINGS_TOOL_BAR_STYLE | ||
| 19286 | and GSETTINGS_FONT_NAME. Move check for fonts within HAVE_XFT. | ||
| 19287 | (init_gconf): Add comment. Get values for GCONF_TOOL_BAR_STYLE | ||
| 19288 | and GCONF_FONT_NAME. Move check for fonts within HAVE_XFT. | ||
| 19289 | (xsettings_initialize): Call init_gsettings last. | ||
| 19290 | (xsettings_get_system_font, xsettings_get_system_normal_font): | ||
| 19291 | Add comment. | ||
| 19292 | |||
| 19293 | 2011-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19294 | |||
| 19295 | Random fixes. E.g., (random) never returned negative values. | ||
| 19296 | * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the | ||
| 19297 | subseconds part to the entropy, as that's a bit more random. | ||
| 19298 | Prefer signed to unsigned, since the signedness doesn't matter and | ||
| 19299 | in general we prefer signed. When given a limit, use a | ||
| 19300 | denominator equal to INTMASK + 1, not to VALMASK + 1, because the | ||
| 19301 | latter isn't right if USE_2_TAGS_FOR_INTS. | ||
| 19302 | * sysdep.c (get_random): Return a value in the range 0..INTMASK, | ||
| 19303 | not 0..VALMASK. Don't discard "excess" bits that random () returns. | ||
| 19304 | |||
| 19305 | 2011-07-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 19306 | |||
| 19307 | * textprop.c (text_property_stickiness): | ||
| 19308 | Obey Vtext_property_default_nonsticky. | ||
| 19309 | (syms_of_textprop): Add `display' to Vtext_property_default_nonsticky. | ||
| 19310 | * w32fns.c (syms_of_w32fns): | ||
| 19311 | * xfns.c (syms_of_xfns): Don't Add `display' since it's there by default. | ||
| 19312 | |||
| 19313 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19314 | |||
| 19315 | * fileio.c (barf_or_query_if_file_exists): Use S_ISDIR. | ||
| 19316 | This is more efficient than Ffile_directory_p and avoids a minor race. | ||
| 19317 | |||
| 19318 | 2011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19319 | |||
| 19320 | * buffer.c (Foverlay_put): Say what the return value is | ||
| 19321 | (bug#7835). | ||
| 19322 | |||
| 19323 | * fileio.c (barf_or_query_if_file_exists): Check first if the file | ||
| 19324 | is a directory before asking whether to use the file name | ||
| 19325 | (bug#7564). | ||
| 19326 | (barf_or_query_if_file_exists): Make the "File is a directory" | ||
| 19327 | error be more correct. | ||
| 19328 | |||
| 19329 | * fns.c (Frequire): Remove the mention of the .gz files, since | ||
| 19330 | that's installation-specific, but keep the mention of | ||
| 19331 | `get-load-suffixes'. | ||
| 19332 | |||
| 19333 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19334 | |||
| 19335 | * editfns.c (Fformat_time_string): Don't assume strlen fits in int. | ||
| 19336 | Report string overflow if the output is too long. | ||
| 19337 | |||
| 19338 | 2011-07-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 19339 | |||
| 19340 | * gnutls.c (Fgnutls_boot): Don't mention :verify-error. | ||
| 19341 | (syms_of_gnutls): Remove duplicate DEFSYM for | ||
| 19342 | Qgnutls_bootprop_verify_hostname_error, an error for | ||
| 19343 | Qgnutls_bootprop_verify_error (which is no longer used). | ||
| 19344 | |||
| 19345 | * eval.c (find_handler_clause): Remove parameters `sig' and `data', | ||
| 19346 | unused since 2011-01-26T20:02:07Z!monnier@iro.umontreal.ca. All callers changed. | ||
| 19347 | Also (re)move comments that are misplaced or no longer relevant. | ||
| 19348 | |||
| 19349 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19350 | |||
| 19351 | * callint.c (Finteractive): Clarify the meaning of "@" (bug#8813). | ||
| 19352 | |||
| 19353 | 2011-07-03 Chong Yidong <cyd@stupidchicken.com> | ||
| 19354 | |||
| 19355 | * xfaces.c (Finternal_merge_in_global_face): Modify the foreground | ||
| 19356 | and background color parameters if they have been changed. | ||
| 19357 | |||
| 19358 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19359 | |||
| 19360 | * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659). | ||
| 19361 | |||
| 19362 | 2011-07-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19363 | |||
| 19364 | * xsettings.c (SYSTEM_FONT): Define only when used. | ||
| 19365 | No need to define when HAVE_GSETTINGS || !HAVE_XFT. | ||
| 19366 | |||
| 19367 | * keymap.c (access_keymap_1): Now static. | ||
| 19368 | |||
| 19369 | 2011-07-02 Chong Yidong <cyd@stupidchicken.com> | ||
| 19370 | |||
| 19371 | * keyboard.c (command_loop_1): If a down-mouse event is unbound, | ||
| 19372 | leave any prefix arg for the up event (Bug#1586). | ||
| 19373 | |||
| 19374 | 2011-07-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 19375 | |||
| 19376 | * lread.c (syms_of_lread): Mention single symbols defined by | ||
| 19377 | `defvar' or `defconst' (bug#7154). | ||
| 19378 | |||
| 19379 | * fns.c (Frequire): Mention .el.gz files (bug#7314). | ||
| 19380 | (Frequire): Mention get-load-suffixes. | ||
| 19381 | |||
| 19382 | 2011-07-02 Martin Rudalics <rudalics@gmx.at> | ||
| 19383 | |||
| 19384 | * window.h (window): Remove clone_number slot. | ||
| 19385 | * window.c (Fwindow_clone_number, Fset_window_clone_number): | ||
| 19386 | Remove. | ||
| 19387 | (make_parent_window, make_window, saved_window) | ||
| 19388 | (Fset_window_configuration, save_window_save): Don't deal with | ||
| 19389 | clone numbers. | ||
| 19390 | * buffer.c (Qclone_number): Remove declaration. | ||
| 19391 | (sort_overlays, overlay_strings): Don't deal with clone numbers. | ||
| 19392 | |||
| 19393 | 2011-07-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 19394 | |||
| 19395 | Add multiple inheritance to keymaps. | ||
| 19396 | * keymap.c (Fmake_composed_keymap): New function. | ||
| 19397 | (Fset_keymap_parent): Simplify. | ||
| 19398 | (fix_submap_inheritance): Remove. | ||
| 19399 | (access_keymap_1): New function extracted from access_keymap to handle | ||
| 19400 | embedded parents and handle lists of maps. | ||
| 19401 | (access_keymap): Use it. | ||
| 19402 | (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap) | ||
| 19403 | (Fcopy_keymap): Handle embedded parents. | ||
| 19404 | (Fcommand_remapping, define_as_prefix): Simplify. | ||
| 19405 | (Fkey_binding): Simplify. | ||
| 19406 | (syms_of_keymap): Move minibuffer-local-completion-map, | ||
| 19407 | minibuffer-local-filename-completion-map, | ||
| 19408 | minibuffer-local-must-match-map, and | ||
| 19409 | minibuffer-local-filename-must-match-map to Elisp. | ||
| 19410 | (syms_of_keymap): Defsubr make-composed-keymap. | ||
| 19411 | * keyboard.c (menu_bar_items): Use map_keymap_canonical. | ||
| 19412 | (parse_menu_item): Trivial simplification. | ||
| 19413 | |||
| 19414 | 2011-07-01 Glenn Morris <rgm@gnu.org> | ||
| 19415 | |||
| 19416 | * Makefile.in (SETTINGS_LIBS): Fix typo. | ||
| 19417 | |||
| 19418 | 2011-07-01 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | ||
| 19419 | |||
| 19420 | * coding.c (Fencode_coding_string): Record the last coding system | ||
| 19421 | used, as the function doc string says (bug#8738). | ||
| 19422 | |||
| 19423 | 2011-07-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19424 | |||
| 19425 | * xsettings.c (store_monospaced_changed): Take new font as arg and | ||
| 19426 | check for change against current_mono_font. | ||
| 19427 | (EMACS_TYPE_SETTINGS): Remove this and related defines. | ||
| 19428 | (emacs_settings_constructor, emacs_settings_get_property) | ||
| 19429 | (emacs_settings_set_property, emacs_settings_class_init) | ||
| 19430 | (emacs_settings_init, gsettings_obj): Remove. | ||
| 19431 | (something_changedCB): New function for HAVE_GSETTINGS. | ||
| 19432 | (something_changedCB): HAVE_GCONF: Call store_monospaced_changed | ||
| 19433 | with value as argument. | ||
| 19434 | (init_gsettings): Check that GSETTINGS_SCHEMA exists before calling | ||
| 19435 | g_settings_new (Bug#8967). Do not create gsettings_obj. | ||
| 19436 | Remove calls to g_settings_bind. Connect something_changedCB to | ||
| 19437 | "changed". | ||
| 19438 | |||
| 19439 | * xgselect.c: Add defined (HAVE_GSETTINGS). | ||
| 19440 | (xgselect_initialize): Ditto. | ||
| 19441 | |||
| 19442 | * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h | ||
| 19443 | (wait_reading_process_output): Add defined (HAVE_GSETTINGS) for | ||
| 19444 | xg_select. | ||
| 19445 | |||
| 19446 | 2011-07-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19447 | |||
| 19448 | * eval.c (struct backtrace): Simplify and port the data structure. | ||
| 19449 | Do not assume that "int nargs : BITS_PER_INT - 2;" produces a | ||
| 19450 | signed bit field, as this assumption is not portable and it makes | ||
| 19451 | Emacs crash when compiled with Sun C 5.8 on sparc. Do not use | ||
| 19452 | "char debug_on_exit : 1" as this is not portable either; instead, | ||
| 19453 | use the portable "unsigned int debug_on_exit : 1". Remove unused | ||
| 19454 | member evalargs. Remove obsolete comments about cc bombing out. | ||
| 19455 | |||
| 19456 | 2011-06-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19457 | |||
| 19458 | * xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS. | ||
| 19459 | Let HAVE_GSETTINGS override HAVE_GCONF. | ||
| 19460 | (store_monospaced_changed): New function. | ||
| 19461 | (EMACS_SETTINGS): A new type derived from GObject to handle | ||
| 19462 | GSettings notifications. | ||
| 19463 | (emacs_settings_constructor, emacs_settings_get_property) | ||
| 19464 | (emacs_settings_set_property, emacs_settings_class_init): | ||
| 19465 | New functions. | ||
| 19466 | (gsettings_client, gsettings_obj): New variables. | ||
| 19467 | (GSETTINGS_SCHEMA): New define. | ||
| 19468 | (something_changedCB): Call store_monospaced_changed. | ||
| 19469 | (init_gsettings): New function. | ||
| 19470 | (xsettings_initialize): Call init_gsettings. | ||
| 19471 | (syms_of_xsettings): Initialize gsettings_client, gsettings_obj | ||
| 19472 | to NULL. | ||
| 19473 | |||
| 19474 | * Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Rename from | ||
| 19475 | GCONF_CFLAGS/LIBS. | ||
| 19476 | |||
| 19477 | 2011-06-29 Martin Rudalics <rudalics@gmx.at> | ||
| 19478 | |||
| 19479 | * window.c (resize_root_window, grow_mini_window) | ||
| 19480 | (shrink_mini_window): Rename Qresize_root_window to | ||
| 19481 | Qwindow_resize_root_window and Qresize_root_window_vertically to | ||
| 19482 | Qwindow_resize_root_window_vertically. | ||
| 19483 | |||
| 19484 | 2011-06-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19485 | |||
| 19486 | * gnutls.c (Qgnutls_bootprop_verify_error): Remove unused var. | ||
| 19487 | |||
| 19488 | 2011-06-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 19489 | |||
| 19490 | * makefile.w32-in: Redesign dependencies so they reflect more | ||
| 19491 | clearly which files are directly included by each source file, | ||
| 19492 | and not through other includes. | ||
| 19493 | |||
| 19494 | 2011-06-27 Martin Rudalics <rudalics@gmx.at> | ||
| 19495 | |||
| 19496 | * buffer.c (Qclone_number): Declare static and DEFSYM it. | ||
| 19497 | (sort_overlays, overlay_strings): When an overlay's clone number | ||
| 19498 | matches the window's clone number process the overlay even if | ||
| 19499 | the overlay's window property doesn't match the current window. | ||
| 19500 | |||
| 19501 | * window.c (Fwindow_vchild): Rename to Fwindow_top_child. | ||
| 19502 | (Fwindow_hchild): Rename to Fwindow_left_child. | ||
| 19503 | (Fwindow_next): Rename to Fwindow_next_sibling. | ||
| 19504 | (Fwindow_prev): Rename to Fwindow_prev_sibling. | ||
| 19505 | (resize_window_check): Rename to window_resize_check. | ||
| 19506 | (resize_window_apply): Rename to window_resize_apply. | ||
| 19507 | (Fresize_window_apply): Rename to Fwindow_resize_apply. | ||
| 19508 | (Fdelete_other_windows_internal, resize_frame_windows) | ||
| 19509 | (Fsplit_window_internal, Fdelete_window_internal) | ||
| 19510 | (grow_mini_window, shrink_mini_window) | ||
| 19511 | (Fresize_mini_window_internal): Fix callers accordingly. | ||
| 19512 | |||
| 19513 | 2011-06-26 Jan Djärv <jan.h.d@swipnet.se> | ||
| 19514 | |||
| 19515 | * emacsgtkfixed.h: State that this is only used with Gtk+3. | ||
| 19516 | (emacs_fixed_set_min_size): Remove. | ||
| 19517 | (emacs_fixed_new): Take frame as argument. | ||
| 19518 | |||
| 19519 | * emacsgtkfixed.c: State that this is only used with Gtk+3. | ||
| 19520 | (_EmacsFixedPrivate): Remove minwidth/height. | ||
| 19521 | Add struct frame *f. | ||
| 19522 | (emacs_fixed_init): Initialize priv->f. | ||
| 19523 | (get_parent_class, emacs_fixed_set_min_size): Remove. | ||
| 19524 | (emacs_fixed_new): Set priv->f to argument. | ||
| 19525 | (emacs_fixed_get_preferred_width) | ||
| 19526 | (emacs_fixed_get_preferred_height): Use min_width/height from | ||
| 19527 | frames size_hint to set minimum and natural (Bug#8919). | ||
| 19528 | (XSetWMSizeHints, XSetWMNormalHints): Override these functions | ||
| 19529 | and use min_width/height from frames size_hint to set | ||
| 19530 | min_width/height (Bug#8919). | ||
| 19531 | |||
| 19532 | * gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new. | ||
| 19533 | (x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size. | ||
| 19534 | Fix indentation. | ||
| 19535 | |||
| 19536 | 2011-06-26 Eli Zaretskii <eliz@gnu.org> | ||
| 19537 | |||
| 19538 | * bidi.c (bidi_paragraph_init): Test for ZV_BYTE before calling | ||
| 19539 | bidi_at_paragraph_end, since fast_looking_at doesn't like to be | ||
| 19540 | called at ZV. | ||
| 19541 | |||
| 19542 | 2011-06-26 Chong Yidong <cyd@stupidchicken.com> | ||
| 19543 | |||
| 19544 | * process.c (wait_reading_process_output): Bypass select if | ||
| 19545 | waiting for a cell while ignoring keyboard input, and input is | ||
| 19546 | pending. Suggested by Jan Djärv (Bug#8869). | ||
| 19547 | |||
| 19548 | 2011-06-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19549 | |||
| 19550 | Use gnulib's dup2 module instead of rolling our own. | ||
| 19551 | * sysdep.c (dup2) [!HAVE_DUP2]: Remove; gnulib now does this. | ||
| 19552 | |||
| 19553 | 2011-06-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 19554 | |||
| 19555 | * dispnew.c (scrolling_window): Before scrolling, turn off a | ||
| 19556 | mouse-highlight in the window being scrolled. | ||
| 19557 | |||
| 19558 | 2011-06-24 Juanma Barranquero <lekktu@gmail.com> | ||
| 19559 | |||
| 19560 | Move DEFSYM to lisp.h and use everywhere. | ||
| 19561 | |||
| 19562 | * character.h (DEFSYM): Move declaration... | ||
| 19563 | * lisp.h (DEFSYM): ...here. | ||
| 19564 | |||
| 19565 | * gnutls.c: | ||
| 19566 | * minibuf.c: | ||
| 19567 | * w32menu.c: | ||
| 19568 | * w32proc.c: | ||
| 19569 | * w32select.c: Don't include character.h. | ||
| 19570 | |||
| 19571 | * alloc.c (syms_of_alloc): | ||
| 19572 | * buffer.c (syms_of_buffer): | ||
| 19573 | * bytecode.c (syms_of_bytecode): | ||
| 19574 | * callint.c (syms_of_callint): | ||
| 19575 | * casefiddle.c (syms_of_casefiddle): | ||
| 19576 | * casetab.c (init_casetab_once): | ||
| 19577 | * category.c (init_category_once, syms_of_category): | ||
| 19578 | * ccl.c (syms_of_ccl): | ||
| 19579 | * cmds.c (syms_of_cmds): | ||
| 19580 | * composite.c (syms_of_composite): | ||
| 19581 | * dbusbind.c (syms_of_dbusbind): | ||
| 19582 | * dired.c (syms_of_dired): | ||
| 19583 | * dispnew.c (syms_of_display): | ||
| 19584 | * doc.c (syms_of_doc): | ||
| 19585 | * editfns.c (syms_of_editfns): | ||
| 19586 | * emacs.c (syms_of_emacs): | ||
| 19587 | * eval.c (syms_of_eval): | ||
| 19588 | * fileio.c (syms_of_fileio): | ||
| 19589 | * fns.c (syms_of_fns): | ||
| 19590 | * frame.c (syms_of_frame): | ||
| 19591 | * fringe.c (syms_of_fringe): | ||
| 19592 | * insdel.c (syms_of_insdel): | ||
| 19593 | * keymap.c (syms_of_keymap): | ||
| 19594 | * lread.c (init_obarray, syms_of_lread): | ||
| 19595 | * macros.c (syms_of_macros): | ||
| 19596 | * msdos.c (syms_of_msdos): | ||
| 19597 | * print.c (syms_of_print): | ||
| 19598 | * process.c (syms_of_process): | ||
| 19599 | * search.c (syms_of_search): | ||
| 19600 | * sound.c (syms_of_sound): | ||
| 19601 | * syntax.c (init_syntax_once, syms_of_syntax): | ||
| 19602 | * terminal.c (syms_of_terminal): | ||
| 19603 | * textprop.c (syms_of_textprop): | ||
| 19604 | * undo.c (syms_of_undo): | ||
| 19605 | * w32.c (globals_of_w32): | ||
| 19606 | * window.c (syms_of_window): | ||
| 19607 | * xdisp.c (syms_of_xdisp): | ||
| 19608 | * xfaces.c (syms_of_xfaces): | ||
| 19609 | * xfns.c (syms_of_xfns): | ||
| 19610 | * xmenu.c (syms_of_xmenu): | ||
| 19611 | * xsettings.c (syms_of_xsettings): | ||
| 19612 | * xterm.c (syms_of_xterm): Use DEFSYM. | ||
| 19613 | |||
| 19614 | 2011-06-24 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 19615 | |||
| 19616 | * gnutls.c (syms_of_gnutls): Use the DEFSYM macro from character.h. | ||
| 19617 | |||
| 19618 | 2011-06-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19619 | |||
| 19620 | Integer and buffer overflow fixes (Bug#8873). | ||
| 19621 | |||
| 19622 | * print.c (printchar, strout): Check for string overflow. | ||
| 19623 | (PRINTPREPARE, printchar, strout): | ||
| 19624 | Don't set size unless allocation succeeds. | ||
| 19625 | |||
| 19626 | * minibuf.c (read_minibuf_noninteractive): Use ptrdiff_t, not int, | ||
| 19627 | for sizes. Check for string overflow more accurately. | ||
| 19628 | Simplify newline removal at end; this suppresses a GCC 4.6.0 warning. | ||
| 19629 | |||
| 19630 | * macros.c: Integer and buffer overflow fixes. | ||
| 19631 | * keyboard.h (struct keyboard.kbd_macro_bufsize): | ||
| 19632 | * macros.c (Fstart_kbd_macro, store_kbd_macro_char): | ||
| 19633 | Use ptrdiff_t, not int, for sizes. | ||
| 19634 | Don't increment bufsize until after realloc succeeds. | ||
| 19635 | Check for size-calculation overflow. | ||
| 19636 | (Fstart_kbd_macro): Use EMACS_INT, not int, for XINT result. | ||
| 19637 | |||
| 19638 | * lisp.h (DEFVAR_KBOARD): Use offsetof instead of char * finagling. | ||
| 19639 | |||
| 19640 | * lread.c: Integer overflow fixes. | ||
| 19641 | (read_integer): Radix is now EMACS_INT, not int, | ||
| 19642 | to improve quality of diagnostics for out-of-range radices. | ||
| 19643 | Calculate buffer size correctly for out-of-range radices. | ||
| 19644 | (read1): Check for integer overflow in radices, and in | ||
| 19645 | read-circle numbers. | ||
| 19646 | (read_escape): Avoid int overflow. | ||
| 19647 | (Fload, openp, read_buffer_size, read1) | ||
| 19648 | (substitute_object_recurse, read_vector, read_list, map_obarray): | ||
| 19649 | Use ptrdiff_t, not int, for sizes. | ||
| 19650 | (read1): Use EMACS_INT, not int, for sizes. | ||
| 19651 | Check for size overflow. | ||
| 19652 | |||
| 19653 | * image.c (cache_image): Check for size arithmetic overflow. | ||
| 19654 | |||
| 19655 | * lread.c: Integer overflow issues. | ||
| 19656 | (saved_doc_string_size, saved_doc_string_length) | ||
| 19657 | (prev_saved_doc_string_size, prev_saved_doc_string_length): | ||
| 19658 | Now ptrdiff_t, not int. | ||
| 19659 | (read1): Don't assume doc string length fits in int. Check for | ||
| 19660 | out-of-range doc string lengths. | ||
| 19661 | (read_list): Don't assume file position fits in int. | ||
| 19662 | (read_escape): Check for hex character overflow. | ||
| 19663 | |||
| 19664 | 2011-06-22 Leo Liu <sdl.web@gmail.com> | ||
| 19665 | |||
| 19666 | * minibuf.c (Fcompleting_read_default, Vcompleting_read_function): | ||
| 19667 | Move to minibuffer.el. | ||
| 19668 | |||
| 19669 | 2011-06-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19670 | |||
| 19671 | Fixes for GLYPH_DEBUG found by GCC 4.6.0 static checking. | ||
| 19672 | The following patches are for when GLYPH_DEBUG && !XASSERT. | ||
| 19673 | * dispextern.h (trace_redisplay_p, dump_glyph_string): | ||
| 19674 | * dispnew.c (flush_stdout): | ||
| 19675 | * xdisp.c (dump_glyph_row, dump_glyph_matrix, dump_glyph): | ||
| 19676 | Mark as externally visible. | ||
| 19677 | * dispnew.c (check_window_matrix_pointers): Now static. | ||
| 19678 | * dispnew.c (window_to_frame_vpos): | ||
| 19679 | * xfns.c (unwind_create_frame): | ||
| 19680 | * xterm.c (x_check_font): Remove unused local. | ||
| 19681 | * scroll.c (CHECK_BOUNDS): | ||
| 19682 | * xfaces.c (cache_fache): Rename local to avoid shadowing. | ||
| 19683 | * xfns.c, w32fns.c (image_cache_refcount, dpyinfo_refcount): Now static. | ||
| 19684 | * xdisp.c (check_window_end): Now a no-op if !XASSERTS. | ||
| 19685 | (debug_first_unchanged_at_end_vpos, debug_last_unchanged_at_beg_vpos) | ||
| 19686 | (debug_dvpos, debug_dy, debug_delta, debug_delta_bytes, debug_end_vpos): | ||
| 19687 | Now static. | ||
| 19688 | (debug_method_add): Use va_list and vsprintf rather than relying | ||
| 19689 | on undefined behavior with wrong number of arguments. | ||
| 19690 | (dump_glyph, dump_glyph_row, Fdump_glyph_matrix): | ||
| 19691 | Don't assume ptrdiff_t and EMACS_INT are the same width as int. | ||
| 19692 | In this code, it's OK to assume C99 behavior for ptrdiff_t formats | ||
| 19693 | since we're not interested in debugging glyphs with old libraries. | ||
| 19694 | * xfaces.c (cache_face): Move debugging code earlier; this pacifies | ||
| 19695 | GCC 4.6.0's static checking. | ||
| 19696 | |||
| 19697 | 2011-06-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19698 | |||
| 19699 | Integer overflow and signedness fixes (Bug#8873). | ||
| 19700 | A few related buffer overrun fixes, too. | ||
| 19701 | |||
| 19702 | * font.c (font_score): Use EMACS_INT, not int, to store XINT value. | ||
| 19703 | |||
| 19704 | * dispextern.h (struct face.stipple): | ||
| 19705 | * image.c (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap) | ||
| 19706 | (x_bitmap_mask, x_allocate_bitmap_record) | ||
| 19707 | (x_create_bitmap_from_data, x_create_bitmap_from_file) | ||
| 19708 | (x_destroy_bitmap, x_destroy_all_bitmaps, x_create_bitmap_mask) | ||
| 19709 | (x_create_bitmap_from_xpm_data): | ||
| 19710 | * nsterm.h (struct ns_display_info.bitmaps_size, .bitmaps_last): | ||
| 19711 | * w32term.h (struct w32_display_info.icon_bitmap_id, .bitmaps_size) | ||
| 19712 | (.bitmaps_last): | ||
| 19713 | * xfaces.c (load_pixmap): | ||
| 19714 | * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): | ||
| 19715 | * xterm.h (struct x_display_info.icon_bitmap_id, .bitmaps_size) | ||
| 19716 | (.bitmaps_last, struct x_output.icon_bitmap): | ||
| 19717 | Use ptrdiff_t, not int, for bitmap indexes. | ||
| 19718 | (x_allocate_bitmap_record): Check for size overflow. | ||
| 19719 | * dispextern.h, lisp.h: Adjust to API changes elsewhere. | ||
| 19720 | |||
| 19721 | Use ptrdiff_t, not int, for overlay counts. | ||
| 19722 | * buffer.h (overlays_at, sort_overlays, GET_OVERLAYS_AT): | ||
| 19723 | * editfns.c (overlays_around, get_pos_property): | ||
| 19724 | * textprop.c (get_char_property_and_overlay): | ||
| 19725 | * xdisp.c (next_overlay_change, note_mouse_highlight): | ||
| 19726 | * xfaces.c (face_at_buffer_position): | ||
| 19727 | * buffer.c (OVERLAY_COUNT_MAX): New macro. | ||
| 19728 | (overlays_at, overlays_in, sort_overlays, Foverlays_at) | ||
| 19729 | (Fnext_overlay_change, Fprevious_overlay_change) | ||
| 19730 | (mouse_face_overlay_overlaps, Foverlays_in): | ||
| 19731 | Use ptrdiff_t, not int, for sizes. | ||
| 19732 | (overlays_at, overlays_in): Check for size-calculation overflow. | ||
| 19733 | |||
| 19734 | * xterm.c (xim_initialize, same_x_server): Strlen may not fit in int. | ||
| 19735 | |||
| 19736 | * xsmfns.c (smc_save_yourself_CB, x_session_initialize): Avoid strlen. | ||
| 19737 | (x_session_initialize): Do not assume string length fits in int. | ||
| 19738 | |||
| 19739 | * xsettings.c (apply_xft_settings): Fix potential buffer overrun. | ||
| 19740 | This is unlikely, but can occur if DPI is outlandish. | ||
| 19741 | |||
| 19742 | * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font): | ||
| 19743 | * xselect.c (Fx_get_atom_name): Avoid need for strlen. | ||
| 19744 | |||
| 19745 | * xrdb.c: Don't assume strlen fits in int; avoid some strlens. | ||
| 19746 | * xrdb.c (magic_file_p, search_magic_path): | ||
| 19747 | Omit last arg SUFFIX; it was always 0. All callers changed. | ||
| 19748 | (magic_file_p): Use ptrdiff_t, not int. Check for size overflow. | ||
| 19749 | |||
| 19750 | * xfont.c (xfont_match): Avoid need for strlen. | ||
| 19751 | |||
| 19752 | * xfns.c: Don't assume strlen fits in int. | ||
| 19753 | (xic_create_fontsetname, x_window): Use ptrdiff_t, not int. | ||
| 19754 | |||
| 19755 | * xdisp.c (message_log_check_duplicate): Return intmax_t, | ||
| 19756 | not unsigned long, as we prefer signed integers. All callers changed. | ||
| 19757 | Detect integer overflow in repeat count. | ||
| 19758 | (message_dolog): Don't assume print length fits in 39 bytes. | ||
| 19759 | (display_mode_element): Don't assume strlen fits in int. | ||
| 19760 | |||
| 19761 | * termcap.c: Don't assume sizes fit in int and never overflow. | ||
| 19762 | (struct termcap_buffer, tgetent): Use ptrdiff_t, not int, for sizes. | ||
| 19763 | (gobble_line): Check for size-calculation overflow. | ||
| 19764 | |||
| 19765 | * minibuf.c (Fread_buffer): | ||
| 19766 | * lread.c (intern, intern_c_string): | ||
| 19767 | * image.c (xpm_scan) [HAVE_NS && !HAVE_XPM]: | ||
| 19768 | Don't assume string length fits in int. | ||
| 19769 | |||
| 19770 | * keyboard.c (parse_tool_bar_item): | ||
| 19771 | * gtkutil.c (style_changed_cb): Avoid need for strlen. | ||
| 19772 | |||
| 19773 | * font.c: Don't assume string length fits in int. | ||
| 19774 | (font_parse_xlfd, font_parse_fcname, font_unparse_fcname): | ||
| 19775 | Use ptrdiff_t, not int. | ||
| 19776 | (font_intern_prop): Don't assume string length fits in int. | ||
| 19777 | Don't assume integer property fits in fixnum. | ||
| 19778 | * font.h (font_intern_prop): 2nd arg is now ptrdiff_t, not int. | ||
| 19779 | |||
| 19780 | * filelock.c: Fix some buffer overrun and integer overflow issues. | ||
| 19781 | (get_boot_time): Don't assume gzip command string fits in 100 bytes. | ||
| 19782 | Reformulate so as not to need the command string. | ||
| 19783 | Invoke gzip -cd rather than gunzip, as it's more portable. | ||
| 19784 | (lock_info_type, lock_file_1, lock_file): | ||
| 19785 | Don't assume pid_t and time_t fit in unsigned long. | ||
| 19786 | (LOCK_PID_MAX): Remove; we now use more-reliable bounds. | ||
| 19787 | (current_lock_owner): Prefer signed type for sizes. | ||
| 19788 | Use memcpy, not strncpy, where memcpy is what is really wanted. | ||
| 19789 | Don't assume (via atoi) that time_t and pid_t fit in int. | ||
| 19790 | Check for time_t and/or pid_t out of range, e.g., via a network share. | ||
| 19791 | Don't alloca where an auto var works fine. | ||
| 19792 | |||
| 19793 | * fileio.c: Fix some integer overflow issues. | ||
| 19794 | (file_name_as_directory, Fexpand_file_name, Fsubstitute_in_file_name): | ||
| 19795 | Don't assume string length fits in int. | ||
| 19796 | (directory_file_name): Don't assume string length fits in long. | ||
| 19797 | (make_temp_name): Don't assume pid fits in int, or that its print | ||
| 19798 | length is less than 20. | ||
| 19799 | |||
| 19800 | * data.c (Fsubr_name): Rewrite to avoid a strlen call. | ||
| 19801 | |||
| 19802 | * coding.c (make_subsidiaries): Don't assume string length fits in int. | ||
| 19803 | |||
| 19804 | * callproc.c (child_setup): Rewrite to avoid two strlen calls. | ||
| 19805 | |||
| 19806 | * process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT. | ||
| 19807 | We prefer signed integers, even for size calculations. | ||
| 19808 | |||
| 19809 | * emacs.c: Don't assume string length fits in 'int'. | ||
| 19810 | (DEFINE_DUMMY_FUNCTION, sort_args): Use ptrdiff_t, not int. | ||
| 19811 | (main): Don't invoke strlen when not needed. | ||
| 19812 | |||
| 19813 | * dbusbind.c (XD_ERROR): Don't arbitrarily truncate string. | ||
| 19814 | (XD_DEBUG_MESSAGE): Don't waste a byte. | ||
| 19815 | |||
| 19816 | * callproc.c (getenv_internal_1, getenv_internal) | ||
| 19817 | (Fgetenv_internal): | ||
| 19818 | * buffer.c (init_buffer): Don't assume string length fits in 'int'. | ||
| 19819 | |||
| 19820 | * lread.c (invalid_syntax): Omit length argument. | ||
| 19821 | All uses changed. This doesn't fix a bug, but it simplifies the | ||
| 19822 | code away from its former Hollerith-constant appearance, and it's | ||
| 19823 | one less 'int' to worry about when looking at integer-overflow issues. | ||
| 19824 | (string_to_number): Simplify 2011-04-26 change by invoking xsignal1. | ||
| 19825 | |||
| 19826 | * lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr). | ||
| 19827 | This didn't break anything, but it didn't help either. | ||
| 19828 | It's confusing to put a bogus integer in a place where the actual | ||
| 19829 | value does not matter. | ||
| 19830 | (LIST_END_P): Remove unused macro and its bogus comment. | ||
| 19831 | (make_fixnum_or_float): Remove unnecessary cast to EMACS_INT. | ||
| 19832 | |||
| 19833 | * lisp.h (union Lisp_Object.i): EMACS_INT, not EMACS_UINT. | ||
| 19834 | This is for consistency with the ordinary, non-USE_LISP_UNION_TYPE, | ||
| 19835 | implementation. | ||
| 19836 | (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT. | ||
| 19837 | We prefer signed types, and the value cannot exceed the EMACS_INT | ||
| 19838 | range anyway (because otherwise the length would not be representable). | ||
| 19839 | (XSET) [USE_LISP_UNION_TYPE]: Use uintptr_t and intptr_t, | ||
| 19840 | not EMACS_UINT and EMACS_INT, when converting pointer to integer. | ||
| 19841 | This avoids a GCC warning when WIDE_EMACS_INT. | ||
| 19842 | |||
| 19843 | * indent.c (sane_tab_width): New function. | ||
| 19844 | (current_column, scan_for_column, Findent_to, position_indentation) | ||
| 19845 | (compute_motion): Use it. This is just for clarity. | ||
| 19846 | (Fcompute_motion): Don't assume hscroll and tab offset fit in int. | ||
| 19847 | |||
| 19848 | * image.c (xbm_image_p): Don't assume stated width, height fit in int. | ||
| 19849 | |||
| 19850 | * lisp.h (lint_assume): New macro. | ||
| 19851 | * composite.c (composition_gstring_put_cache): | ||
| 19852 | * ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0. | ||
| 19853 | |||
| 19854 | * editfns.c, insdel.c: | ||
| 19855 | Omit unnecessary forward decls, to simplify future changes. | ||
| 19856 | |||
| 19857 | * ftfont.c (ftfont_shape_by_flt): Use signed integers for lengths. | ||
| 19858 | |||
| 19859 | * font.c (Ffont_shape_gstring): Don't assume glyph len fits in 'int'. | ||
| 19860 | |||
| 19861 | * fns.c (Ffillarray): Don't assume bool vector size fits in 'int'. | ||
| 19862 | Use much-faster test for byte-length change. | ||
| 19863 | Don't assume string byte-length fits in 'int'. | ||
| 19864 | Check that character arg fits in 'int'. | ||
| 19865 | (mapcar1): Declare byte as byte, for clarity. | ||
| 19866 | |||
| 19867 | * alloc.c (Fmake_bool_vector): Avoid unnecessary multiplication. | ||
| 19868 | |||
| 19869 | * fns.c (concat): Catch string overflow earlier. | ||
| 19870 | Do not rely on integer wraparound. | ||
| 19871 | |||
| 19872 | * dispextern.h (struct it.overlay_strings_charpos) | ||
| 19873 | (struct it.selective): Now EMACS_INT, not int. | ||
| 19874 | * xdisp.c (forward_to_next_line_start) | ||
| 19875 | (back_to_previous_visible_line_start) | ||
| 19876 | (reseat_at_next_visible_line_start, next_element_from_buffer): | ||
| 19877 | Don't arbitrarily truncate the value of 'selective' to int. | ||
| 19878 | |||
| 19879 | * xdisp.c (init_iterator): Use XINT, not XFASTINT; it might be < 0. | ||
| 19880 | |||
| 19881 | * composite.c: Don't truncate sizes to 'int'. | ||
| 19882 | (composition_gstring_p, composition_reseat_it) | ||
| 19883 | (composition_adjust_point): Use EMACS_INT, not int. | ||
| 19884 | (get_composition_id, composition_gstring_put_cache): Use EMACS_INT, | ||
| 19885 | not EMACS_UINT, for indexes. | ||
| 19886 | |||
| 19887 | * category.h (CATEGORY_SET_P): Remove unnecessary cast to EMACS_INT. | ||
| 19888 | |||
| 19889 | * buffer.c: Include <verify.h>. | ||
| 19890 | (struct sortvec.priority, struct sortstr.priority): | ||
| 19891 | Now EMACS_INT, not int. | ||
| 19892 | (compare_overlays, cmp_for_strings): Avoid subtraction overflow. | ||
| 19893 | (struct sortstr.size, record_overlay_string) | ||
| 19894 | (struct sortstrlist.size, struct sortlist.used): | ||
| 19895 | Don't truncate size to int. | ||
| 19896 | (record_overlay_string): Check for size-calculation overflow. | ||
| 19897 | (init_buffer_once): Check at compile-time, not run-time. | ||
| 19898 | |||
| 19899 | 2011-06-22 Jim Meyering <meyering@redhat.com> | ||
| 19900 | |||
| 19901 | Don't leak an XBM-image-sized buffer | ||
| 19902 | * image.c (xbm_load): Free the image buffer after using it. | ||
| 19903 | |||
| 19904 | 2011-06-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19905 | |||
| 19906 | Port to Sun C. | ||
| 19907 | * composite.c (find_automatic_composition): Omit needless 'return 0;' | ||
| 19908 | that Sun C diagnosed. | ||
| 19909 | * fns.c (secure_hash): Fix pointer signedness issue. | ||
| 19910 | * intervals.c (static_offset_intervals): New function. | ||
| 19911 | (offset_intervals): Use it. | ||
| 19912 | |||
| 19913 | 2011-06-21 Leo Liu <sdl.web@gmail.com> | ||
| 19914 | |||
| 19915 | * deps.mk (fns.o): | ||
| 19916 | * makefile.w32-in ($(BLD)/fns.$(O)): Include sha256.h and | ||
| 19917 | sha512.h. | ||
| 19918 | |||
| 19919 | * fns.c (secure_hash): Rename from crypto_hash_function and change | ||
| 19920 | the first arg to accept symbols. | ||
| 19921 | (Fsecure_hash): New primitive. | ||
| 19922 | (syms_of_fns): New symbols. | ||
| 19923 | |||
| 19924 | 2011-06-20 Deniz Dogan <deniz@dogan.se> | ||
| 19925 | |||
| 19926 | * process.c (Fset_process_buffer): Clarify return value in | ||
| 19927 | docstring. | ||
| 19928 | |||
| 19929 | 2011-06-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 19930 | |||
| 19931 | * dispnew.c (add_window_display_history): Use BVAR. | ||
| 19932 | |||
| 19933 | * xdisp.c (debug_method_add): Use BVAR. | ||
| 19934 | (check_window_end, dump_glyph_matrix, dump_glyph) | ||
| 19935 | (dump_glyph_row, dump_glyph_string): Convert arglist to ANSI C. | ||
| 19936 | |||
| 19937 | * xfaces.c (check_lface_attrs, check_lface, dump_realized_face): | ||
| 19938 | Likewise. | ||
| 19939 | |||
| 19940 | * xfns.c (Fx_create_frame, x_create_tip_frame): Delay image cache | ||
| 19941 | check till after the cache is created in init_frame_faces. | ||
| 19942 | |||
| 19943 | 2011-06-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 19944 | |||
| 19945 | * fns.c (Fsafe_length): Yet another int/Lisp_Object mixup. | ||
| 19946 | |||
| 19947 | 2011-06-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19948 | |||
| 19949 | * lisp.h: Include <limits.h>, for INT_MAX, LONG_MAX, LLONG_MAX. | ||
| 19950 | Without this, prin1 mishandles Lisp_Misc_Save_Value printing on | ||
| 19951 | hosts with pre-C99 libraries, because pD is wrongly defined to "t". | ||
| 19952 | |||
| 19953 | Improve buffer-overflow checking (Bug#8873). | ||
| 19954 | * fileio.c (Finsert_file_contents): | ||
| 19955 | * insdel.c (insert_from_buffer_1, replace_range, replace_range_2): | ||
| 19956 | Remove the old (too-loose) buffer overflow checks. | ||
| 19957 | They weren't needed, since make_gap checks for buffer overflow. | ||
| 19958 | * insdel.c (make_gap_larger): Catch buffer overflows that were missed. | ||
| 19959 | The old code merely checked for Emacs fixnum overflow, and relied | ||
| 19960 | on undefined (wraparound) behavior. The new code avoids undefined | ||
| 19961 | behavior, and also checks for ptrdiff_t and/or size_t overflow. | ||
| 19962 | |||
| 19963 | * editfns.c (Finsert_char): Don't dump core with very negative counts. | ||
| 19964 | Tune. Don't use wider integers than needed. Don't use alloca. | ||
| 19965 | Use a bigger 'string' buffer. Rewrite to avoid 'n > 0' test. | ||
| 19966 | |||
| 19967 | * insdel.c (replace_range): Fix buf overflow when insbytes < outgoing. | ||
| 19968 | |||
| 19969 | * insdel.c, lisp.h (buffer_overflow): New function. | ||
| 19970 | (insert_from_buffer_1, replace_range, replace_range_2): | ||
| 19971 | * insdel.c (make_gap_larger): | ||
| 19972 | * editfns.c (Finsert_char): | ||
| 19973 | * fileio.c (Finsert_file_contents): Use it, to normalize wording. | ||
| 19974 | |||
| 19975 | * buffer.h (BUF_BYTES_MAX): Cast to ptrdiff_t so that it's signed. | ||
| 19976 | |||
| 19977 | 2011-06-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 19978 | |||
| 19979 | Integer overflow and signedness fixes (Bug#8873, Bug#8828). | ||
| 19980 | |||
| 19981 | * ccl.c (ASCENDING_ORDER): New macro, to work around GCC bug 43772. | ||
| 19982 | (GET_CCL_RANGE, IN_INT_RANGE): Use it. | ||
| 19983 | |||
| 19984 | * fileio.c: Don't assume EMACS_INT fits in off_t. | ||
| 19985 | (emacs_lseek): New static function. | ||
| 19986 | (Finsert_file_contents, Fwrite_region): Use it. | ||
| 19987 | Use SEEK_SET, SEEK_CUR, SEEK_END as appropriate. | ||
| 19988 | |||
| 19989 | * fns.c (Fload_average): Don't assume 100 * load average fits in int. | ||
| 19990 | |||
| 19991 | * fns.c: Don't overflow int when computing a list length. | ||
| 19992 | * fns.c (QUIT_COUNT_HEURISTIC): New constant. | ||
| 19993 | (Flength, Fsafe_length): Use EMACS_INT, not int, to avoid unwanted | ||
| 19994 | truncation on 64-bit hosts. Check for QUIT every | ||
| 19995 | QUIT_COUNT_HEURISTIC entries rather than every other entry; that's | ||
| 19996 | faster and is responsive enough. | ||
| 19997 | (Flength): Report an error instead of overflowing an integer. | ||
| 19998 | (Fsafe_length): Return a float if the value is not representable | ||
| 19999 | as a fixnum. This shouldn't happen except in contrived situations. | ||
| 20000 | (Fnthcdr, Fsort): Don't assume list length fits in int. | ||
| 20001 | (Fcopy_sequence): Don't assume vector length fits in int. | ||
| 20002 | |||
| 20003 | * alloc.c: Check that resized vectors' lengths fit in fixnums. | ||
| 20004 | (header_size, word_size): New constants. | ||
| 20005 | (allocate_vectorlike): Don't check size overflow here. | ||
| 20006 | (allocate_vector): Check it here instead, since this is the only | ||
| 20007 | caller of allocate_vectorlike that could cause overflow. | ||
| 20008 | Check that the new vector's length is representable as a fixnum. | ||
| 20009 | |||
| 20010 | * fns.c (next_almost_prime): Don't return a multiple of 3 or 5. | ||
| 20011 | The previous code was bogus. For example, next_almost_prime (32) | ||
| 20012 | returned 39, which is undesirable as it is a multiple of 3; and | ||
| 20013 | next_almost_prime (24) returned 25, which is a multiple of 5 so | ||
| 20014 | why was the code bothering to check for multiples of 7? | ||
| 20015 | |||
| 20016 | * bytecode.c (exec_byte_code): Use ptrdiff_t, not int, for vector length. | ||
| 20017 | |||
| 20018 | * eval.c, doprnt.c (SIZE_MAX): Remove; inttypes.h defines this now. | ||
| 20019 | |||
| 20020 | Variadic C functions now count arguments with ptrdiff_t. | ||
| 20021 | This partly undoes my 2011-03-30 change, which replaced int with size_t. | ||
| 20022 | Back then I didn't know that the Emacs coding style prefers signed int. | ||
| 20023 | Also, in the meantime I found a few more instances where arguments | ||
| 20024 | were being counted with int, which may truncate counts on 64-bit | ||
| 20025 | machines, or EMACS_INT, which may be unnecessarily wide. | ||
| 20026 | * lisp.h (struct Lisp_Subr.function.aMANY) | ||
| 20027 | (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): | ||
| 20028 | Arg counts are now ptrdiff_t, not size_t. | ||
| 20029 | All variadic functions and their callers changed accordingly. | ||
| 20030 | (struct gcpro.nvars): Now size_t, not size_t. All uses changed. | ||
| 20031 | * bytecode.c (exec_byte_code): Check maxdepth for overflow, | ||
| 20032 | to avoid potential buffer overrun. Don't assume arg counts fit in 'int'. | ||
| 20033 | * callint.c (Fcall_interactively): Check arg count for overflow, | ||
| 20034 | to avoid potential buffer overrun. Use signed char, not 'int', | ||
| 20035 | for 'varies' array, so that we needn't bother to check its size | ||
| 20036 | calculation for overflow. | ||
| 20037 | * editfns.c (Fformat): Use ptrdiff_t, not EMACS_INT, to count args. | ||
| 20038 | * eval.c (apply_lambda): | ||
| 20039 | * fns.c (Fmapconcat): Use XFASTINT, not XINT, to get args length. | ||
| 20040 | (struct textprop_rec.argnum): Now ptrdiff_t, not int. All uses changed. | ||
| 20041 | (mapconcat): Use ptrdiff_t, not int and EMACS_INT, to count args. | ||
| 20042 | |||
| 20043 | * callint.c (Fcall_interactively): Don't use index var as event count. | ||
| 20044 | |||
| 20045 | * vm-limit.c (check_memory_limits): Fix incorrect extern function decls. | ||
| 20046 | * mem-limits.h (SIZE): Remove; no longer used. | ||
| 20047 | |||
| 20048 | * xterm.c (x_alloc_nearest_color_1): Prefer int to long when int works. | ||
| 20049 | |||
| 20050 | Remove unnecessary casts. | ||
| 20051 | * xterm.c (x_term_init): | ||
| 20052 | * xfns.c (x_set_border_pixel): | ||
| 20053 | * widget.c (create_frame_gcs): Remove casts to unsigned long etc. | ||
| 20054 | These aren't needed now that we assume ANSI C. | ||
| 20055 | |||
| 20056 | * sound.c (Fplay_sound_internal): Remove cast to unsigned long. | ||
| 20057 | It's more likely to cause problems (due to unsigned overflow) | ||
| 20058 | than to cure them. | ||
| 20059 | |||
| 20060 | * dired.c (Ffile_attributes): Don't use 32-bit hack on 64-bit hosts. | ||
| 20061 | |||
| 20062 | * unexelf.c (unexec): Don't assume BSS addr fits in unsigned. | ||
| 20063 | |||
| 20064 | * xterm.c (handle_one_xevent): Omit unnecessary casts to unsigned. | ||
| 20065 | |||
| 20066 | * keyboard.c (modify_event_symbol): Don't limit alist len to UINT_MAX. | ||
| 20067 | |||
| 20068 | * lisp.h (CHAR_TABLE_SET): Omit now-redundant test. | ||
| 20069 | |||
| 20070 | * lread.c (Fload): Don't compare a possibly-garbage time_t value. | ||
| 20071 | |||
| 20072 | GLYPH_CODE_FACE returns EMACS_INT, not int. | ||
| 20073 | * dispextern.h (merge_faces): | ||
| 20074 | * xfaces.c (merge_faces): | ||
| 20075 | * xdisp.c (get_next_display_element, next_element_from_display_vector): | ||
| 20076 | Don't assume EMACS_INT fits in int. | ||
| 20077 | |||
| 20078 | * character.h (CHAR_VALID_P): Remove unused parameter. | ||
| 20079 | * fontset.c, lisp.h, xdisp.c: All uses changed. | ||
| 20080 | |||
| 20081 | * editfns.c (Ftranslate_region_internal): Omit redundant test. | ||
| 20082 | |||
| 20083 | * fns.c (concat): Minor tuning based on overflow analysis. | ||
| 20084 | This doesn't fix any bugs. Use int to hold character, instead | ||
| 20085 | of constantly refetching from Emacs object. Use XFASTINT, not | ||
| 20086 | XINT, for value known to be a character. Don't bother comparing | ||
| 20087 | a single byte to 0400, as it's always less. | ||
| 20088 | |||
| 20089 | * floatfns.c (Fexpt): | ||
| 20090 | * fileio.c (make_temp_name): Omit unnecessary cast to unsigned. | ||
| 20091 | |||
| 20092 | * editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT | ||
| 20093 | for characters. | ||
| 20094 | |||
| 20095 | * doc.c (get_doc_string): Omit (unsigned)c that mishandled negatives. | ||
| 20096 | |||
| 20097 | * data.c (Faset): If ARRAY is a string, check that NEWELT is a char. | ||
| 20098 | Without this fix, on a 64-bit host (aset S 0 4294967386) would | ||
| 20099 | incorrectly succeed when S was a string, because 4294967386 was | ||
| 20100 | truncated before it was used. | ||
| 20101 | |||
| 20102 | * chartab.c (Fchar_table_range): Use CHARACTERP to check range. | ||
| 20103 | Otherwise, an out-of-range integer could cause undefined behavior | ||
| 20104 | on a 64-bit host. | ||
| 20105 | |||
| 20106 | * composite.c: Use int, not EMACS_INT, for characters. | ||
| 20107 | (fill_gstring_body, composition_compute_stop_pos): Use int, not | ||
| 20108 | EMACS_INT, for values that are known to be in character range. | ||
| 20109 | This doesn't fix any bugs but is the usual style inside Emacs and | ||
| 20110 | may generate better code on 32-bit machines. | ||
| 20111 | |||
| 20112 | Make sure a 64-bit char is never passed to ENCODE_CHAR. | ||
| 20113 | This is for reasons similar to the recent CHAR_STRING fix. | ||
| 20114 | * charset.c (Fencode_char): Check that character arg is actually | ||
| 20115 | a character. Pass an int to ENCODE_CHAR. | ||
| 20116 | * charset.h (ENCODE_CHAR): Verify that the character argument is no | ||
| 20117 | wider than 'int', as a compile-time check to prevent future regressions | ||
| 20118 | in this area. | ||
| 20119 | |||
| 20120 | * character.c (char_string): Remove unnecessary casts. | ||
| 20121 | |||
| 20122 | Make sure a 64-bit char is never passed to CHAR_STRING. | ||
| 20123 | Otherwise, CHAR_STRING would do the wrong thing on a 64-bit platform, | ||
| 20124 | by silently ignoring the top 32 bits, allowing some values | ||
| 20125 | that were far too large to be valid characters. | ||
| 20126 | * character.h: Include <verify.h>. | ||
| 20127 | (CHAR_STRING, CHAR_STRING_ADVANCE): Verify that the character | ||
| 20128 | arguments are no wider than unsigned, as a compile-time check | ||
| 20129 | to prevent future regressions in this area. | ||
| 20130 | * data.c (Faset): | ||
| 20131 | * editfns.c (Fchar_to_string, general_insert_function, Finsert_char) | ||
| 20132 | (Fsubst_char_in_region): | ||
| 20133 | * fns.c (concat): | ||
| 20134 | * xdisp.c (decode_mode_spec_coding): | ||
| 20135 | Adjust to CHAR_STRING's new requirement. | ||
| 20136 | * editfns.c (Finsert_char, Fsubst_char_in_region): | ||
| 20137 | * fns.c (concat): Check that character args are actually | ||
| 20138 | characters. Without this test, these functions did the wrong | ||
| 20139 | thing with wildly out-of-range values on 64-bit hosts. | ||
| 20140 | |||
| 20141 | Remove incorrect casts to 'unsigned' that lose info on 64-bit hosts. | ||
| 20142 | These casts should not be needed on 32-bit hosts, either. | ||
| 20143 | * keyboard.c (read_char): | ||
| 20144 | * lread.c (Fload): Remove casts to unsigned. | ||
| 20145 | |||
| 20146 | * lisp.h (UNSIGNED_CMP): New macro. | ||
| 20147 | This fixes comparison bugs on 64-bit hosts. | ||
| 20148 | (ASCII_CHAR_P): Use it. | ||
| 20149 | * casefiddle.c (casify_object): | ||
| 20150 | * character.h (ASCII_BYTE_P, CHAR_VALID_P) | ||
| 20151 | (SINGLE_BYTE_CHAR_P, CHAR_STRING): | ||
| 20152 | * composite.h (COMPOSITION_ENCODE_RULE_VALID): | ||
| 20153 | * dispextern.h (FACE_FROM_ID): | ||
| 20154 | * keyboard.c (read_char): Use UNSIGNED_CMP. | ||
| 20155 | |||
| 20156 | * xmenu.c (dialog_selection_callback) [!USE_GTK]: Cast to intptr_t, | ||
| 20157 | not to EMACS_INT, to avoid GCC warning. | ||
| 20158 | |||
| 20159 | * xfns.c (x_set_scroll_bar_default_width): Remove unused 'int' locals. | ||
| 20160 | |||
| 20161 | * buffer.h (PTR_BYTE_POS, BUF_PTR_BYTE_POS): Remove harmful cast. | ||
| 20162 | The cast incorrectly truncated 64-bit byte offsets to 32 bits, and | ||
| 20163 | isn't needed on 32-bit machines. | ||
| 20164 | |||
| 20165 | * buffer.c (Fgenerate_new_buffer_name): | ||
| 20166 | Use EMACS_INT for count, not int. | ||
| 20167 | (advance_to_char_boundary): Return EMACS_INT, not int. | ||
| 20168 | |||
| 20169 | * data.c (Qcompiled_function): Now static. | ||
| 20170 | |||
| 20171 | * window.c (window_body_lines): Now static. | ||
| 20172 | |||
| 20173 | * image.c (gif_load): Rename local to avoid shadowing. | ||
| 20174 | |||
| 20175 | * lisp.h (SAFE_ALLOCA_LISP): Check for integer overflow. | ||
| 20176 | (struct Lisp_Save_Value): Use ptrdiff_t, not int, for 'integer' member. | ||
| 20177 | * alloc.c (make_save_value): Integer argument is now of type | ||
| 20178 | ptrdiff_t, not int. | ||
| 20179 | (mark_object): Use ptrdiff_t, not int. | ||
| 20180 | * lisp.h (pD): New macro. | ||
| 20181 | * print.c (print_object): Use it. | ||
| 20182 | |||
| 20183 | * alloc.c: Use EMACS_INT, not int, to count objects. | ||
| 20184 | (total_conses, total_markers, total_symbols, total_vector_size) | ||
| 20185 | (total_free_conses, total_free_markers, total_free_symbols) | ||
| 20186 | (total_free_floats, total_floats, total_free_intervals) | ||
| 20187 | (total_intervals, total_strings, total_free_strings): | ||
| 20188 | Now EMACS_INT, not int. All uses changed. | ||
| 20189 | (Fgarbage_collect): Compute overall total using a double, so that | ||
| 20190 | integer overflow is less likely to be a problem. Check for overflow | ||
| 20191 | when converting back to an integer. | ||
| 20192 | (n_interval_blocks, n_string_blocks, n_float_blocks, n_cons_blocks) | ||
| 20193 | (n_vectors, n_symbol_blocks, n_marker_blocks): Remove. | ||
| 20194 | These were 'int' variables that could overflow on 64-bit hosts; | ||
| 20195 | they were never used, so remove them instead of repairing them. | ||
| 20196 | (nzombies, ngcs, max_live, max_zombies): Now EMACS_INT, not 'int'. | ||
| 20197 | (inhibit_garbage_collection): Set gc_cons_threshold to max value. | ||
| 20198 | Previously, this ceilinged at INT_MAX, but that doesn't work on | ||
| 20199 | 64-bit machines. | ||
| 20200 | (allocate_pseudovector): Don't use EMACS_INT when int would do. | ||
| 20201 | |||
| 20202 | * alloc.c (Fmake_bool_vector): Don't assume vector size fits in int. | ||
| 20203 | (allocate_vectorlike): Check for ptrdiff_t overflow. | ||
| 20204 | (mark_vectorlike, mark_char_table, mark_object): Avoid EMACS_UINT | ||
| 20205 | when a (possibly-narrower) signed value would do just as well. | ||
| 20206 | We prefer using signed arithmetic, to avoid comparison confusion. | ||
| 20207 | |||
| 20208 | * alloc.c: Catch some string size overflows that we were missing. | ||
| 20209 | (XMALLOC_OVERRUN_CHECK_SIZE) [!XMALLOC_OVERRUN_CHECK]: Define to 0, | ||
| 20210 | for convenience in STRING_BYTES_MAX. | ||
| 20211 | (STRING_BYTES_MAX): New macro, superseding the old one in lisp.h. | ||
| 20212 | The definition here is exact; the one in lisp.h was approximate. | ||
| 20213 | (allocate_string_data): Check for string overflow. This catches | ||
| 20214 | some instances we weren't catching before. Also, it catches | ||
| 20215 | size_t overflow on (unusual) hosts where SIZE_MAX <= min | ||
| 20216 | (PTRDIFF_MAX, MOST_POSITIVE_FIXNUM), e.g., when size_t is 32 bits | ||
| 20217 | and ptrdiff_t and EMACS_INT are both 64 bits. | ||
| 20218 | |||
| 20219 | * character.c, coding.c, doprnt.c, editfns.c, eval.c: | ||
| 20220 | All uses of STRING_BYTES_MAX replaced by STRING_BYTES_BOUND. | ||
| 20221 | * lisp.h (STRING_BYTES_BOUND): Rename from STRING_BYTES_MAX. | ||
| 20222 | |||
| 20223 | * character.c (string_escape_byte8): Fix nbytes/nchars typo. | ||
| 20224 | |||
| 20225 | * alloc.c (Fmake_string): Check for out-of-range init. | ||
| 20226 | |||
| 20227 | 2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 20228 | |||
| 20229 | * eval.c (Fdefvaralias): Also mark the target as variable-special-p. | ||
| 20230 | |||
| 20231 | 2011-06-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 20232 | |||
| 20233 | * xfns.c (x_set_scroll_bar_default_width): Remove argument to | ||
| 20234 | xg_get_default_scrollbar_width. | ||
| 20235 | |||
| 20236 | * gtkutil.c: Include emacsgtkfixed.h if HAVE_GTK3. | ||
| 20237 | (int_gtk_range_get_value): Move to the scroll bar part of the file. | ||
| 20238 | (style_changed_cb): Call update_theme_scrollbar_width and call | ||
| 20239 | x_set_scroll_bar_default_width and xg_frame_set_char_size for | ||
| 20240 | all frames (Bug#8505). | ||
| 20241 | (xg_create_frame_widgets): Call emacs_fixed_new if HAVE_GTK3 (Bug#8505). | ||
| 20242 | Call gtk_window_set_resizable if HAVE_GTK3. | ||
| 20243 | (x_wm_set_size_hint): Call emacs_fixed_set_min_size with min width | ||
| 20244 | and height if HAVE_GTK3 (Bug#8505). | ||
| 20245 | (scroll_bar_width_for_theme): New variable. | ||
| 20246 | (update_theme_scrollbar_width): New function. | ||
| 20247 | (xg_get_default_scrollbar_width): Move code to | ||
| 20248 | update_theme_scrollbar_width, just return scroll_bar_width_for_theme. | ||
| 20249 | (xg_initialize): Call update_theme_scrollbar_width. | ||
| 20250 | |||
| 20251 | * gtkutil.h (xg_get_default_scrollbar_width): Remove argument. | ||
| 20252 | |||
| 20253 | * emacsgtkfixed.c, emacsgtkfixed.h: New files. | ||
| 20254 | |||
| 20255 | 2011-06-12 Martin Rudalics <rudalics@gmx.at> | ||
| 20256 | |||
| 20257 | * frame.c (make_frame): Call other_buffer_safely instead of | ||
| 20258 | other_buffer. | ||
| 20259 | |||
| 20260 | * window.c (temp_output_buffer_show): Call display_buffer with | ||
| 20261 | second argument Vtemp_buffer_show_specifiers and reset latter | ||
| 20262 | immediately after the call. | ||
| 20263 | (Vtemp_buffer_show_specifiers): New variable. | ||
| 20264 | (auto_window_vscroll_p, next_screen_context_lines) | ||
| 20265 | (Vscroll_preserve_screen_position): Remove leading asterisks from | ||
| 20266 | doc-strings. | ||
| 20267 | |||
| 20268 | 2011-06-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20269 | |||
| 20270 | Fix minor problems found by GCC 4.6.0 static checking. | ||
| 20271 | * buffer.c (Qclone_number): Remove for now, as it's unused. | ||
| 20272 | (record_buffer, Funrecord_buffer): Rename local to avoid shadowing. | ||
| 20273 | (record_buffer): Remove unused local. | ||
| 20274 | * frame.c (other_visible_frames, frame_buffer_list): Now static. | ||
| 20275 | (set_frame_buffer_list): Remove; unused. | ||
| 20276 | * frame.h (other_visible_frames): Remove decl. | ||
| 20277 | * keyboard.h (menu_items_inuse): Declare only if USE_GTK || USE_MOTIF. | ||
| 20278 | * lisp.h (frame_buffer_list, set_frame_buffer_list): Remove decls. | ||
| 20279 | (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): Declare only | ||
| 20280 | if HAVE_GPM. | ||
| 20281 | * menu.c (menu_items_inuse): Now static unless USE_GTK || USE_MOTIF. | ||
| 20282 | * process.c (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): | ||
| 20283 | Define only if HAVE_GPM. | ||
| 20284 | * widget.c (EmacsFrameResize, emacsFrameClassRec): Now static. | ||
| 20285 | (update_hints_inhibit): Remove; never set. All uses removed. | ||
| 20286 | * widgetprv.h (emacsFrameClassRec): Remove decl. | ||
| 20287 | * window.c (delete_deletable_window): Now returns void, since it | ||
| 20288 | wasn't returning anything. | ||
| 20289 | (compare_window_configurations): Remove unused locals. | ||
| 20290 | * xfns.c (x_set_scroll_bar_default_width): Remove unused locals. | ||
| 20291 | * xmenu.c (x_menu_set_in_use): Define only if USE_GTK || USE_MOTIF. | ||
| 20292 | (dialog_selection_callback) [!USE_GTK]: Prefer intptr_t for integers | ||
| 20293 | the same widths as pointers. This follows up on the 2011-05-06 patch. | ||
| 20294 | * xterm.c (x_alloc_lighter_color_for_widget): Define only if USE_LUCID. | ||
| 20295 | * xterm.h: Likewise. | ||
| 20296 | (x_menu_set_in_use): Declare only if USE_GTK || USE_MOTIF. | ||
| 20297 | |||
| 20298 | 2011-06-12 Juanma Barranquero <lekktu@gmail.com> | ||
| 20299 | |||
| 20300 | * makefile.w32-in: Update dependencies. | ||
| 20301 | (LISP_H): Add lib/intprops.h. | ||
| 20302 | |||
| 20303 | 2011-06-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 20304 | |||
| 20305 | * image.c (gif_load): Add animation frame delay to the metadata. | ||
| 20306 | (syms_of_image): Use DEFSYM. New symbol `delay'. | ||
| 20307 | |||
| 20308 | 2011-06-11 Martin Rudalics <rudalics@gmx.at> | ||
| 20309 | |||
| 20310 | * window.c (delete_deletable_window): Re-add. | ||
| 20311 | (Fset_window_configuration): Rewrite to handle dead buffers and | ||
| 20312 | consequently deletable windows. | ||
| 20313 | (window_tree, Fwindow_tree): Remove. Supply functionality in | ||
| 20314 | window.el. | ||
| 20315 | (compare_window_configurations): Simplify code. | ||
| 20316 | |||
| 20317 | 2011-06-11 Andreas Schwab <schwab@linux-m68k.org> | ||
| 20318 | |||
| 20319 | * image.c (imagemagick_load_image): Fix type mismatch. | ||
| 20320 | (Fimagemagick_types): Likewise. | ||
| 20321 | |||
| 20322 | * window.h (replace_buffer_in_windows): Declare. | ||
| 20323 | |||
| 20324 | 2011-06-11 Martin Rudalics <rudalics@gmx.at> | ||
| 20325 | |||
| 20326 | * buffer.c: New Lisp objects Qbuffer_list_update_hook and | ||
| 20327 | Qclone_number. Remove external declaration of Qdelete_window. | ||
| 20328 | (Fbuffer_list): Rewrite doc-string. Minor restructuring of | ||
| 20329 | code. | ||
| 20330 | (Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer): | ||
| 20331 | Run Qbuffer_list_update_hook if allowed. | ||
| 20332 | (Fother_buffer): Rewrite doc-string. Major rewrite for new | ||
| 20333 | buffer list implementation. | ||
| 20334 | (other_buffer_safely): New function. | ||
| 20335 | (Fkill_buffer): Replace call to replace_buffer_in_all_windows by | ||
| 20336 | calls to replace_buffer_in_windows and | ||
| 20337 | replace_buffer_in_windows_safely. Run Qbuffer_list_update_hook | ||
| 20338 | if allowed. | ||
| 20339 | (record_buffer): Inhibit quitting and rewrite using quittable | ||
| 20340 | functions. Run Qbuffer_list_update_hook if allowed. | ||
| 20341 | (Frecord_buffer, Funrecord_buffer): New functions. | ||
| 20342 | (switch_to_buffer_1, Fswitch_to_buffer): Remove. | ||
| 20343 | Move switch-to-buffer to window.el. | ||
| 20344 | (bury-buffer): Move to window.el. | ||
| 20345 | (Vbuffer_list_update_hook): New variable. | ||
| 20346 | |||
| 20347 | * lisp.h (other_buffer_safely): Add prototype in buffer.c | ||
| 20348 | section. | ||
| 20349 | |||
| 20350 | * window.h (resize_frame_windows): Move up in code. | ||
| 20351 | (Fwindow_frame): Remove EXFUN. | ||
| 20352 | (replace_buffer_in_all_windows): Remove prototype. | ||
| 20353 | (replace_buffer_in_windows_safely): Add prototype. | ||
| 20354 | |||
| 20355 | * window.c: Declare Qdelete_window static again. Move down | ||
| 20356 | declaration of select_count. | ||
| 20357 | (Fnext_window, Fprevious_window): Rewrite doc-strings. | ||
| 20358 | (Fother_window): Move to window.el. | ||
| 20359 | (window_loop): Remove DELETE_BUFFER_WINDOWS and UNSHOW_BUFFER | ||
| 20360 | cases. Add REPLACE_BUFFER_IN_WINDOWS_SAFELY case. | ||
| 20361 | (Fdelete_windows_on, Freplace_buffer_in_windows): Move to | ||
| 20362 | window.el. | ||
| 20363 | (replace_buffer_in_windows): Implement by calling | ||
| 20364 | Qreplace_buffer_in_windows. | ||
| 20365 | (replace_buffer_in_all_windows): Remove with some functionality | ||
| 20366 | moved into replace_buffer_in_windows_safely. | ||
| 20367 | (replace_buffer_in_windows_safely): New function. | ||
| 20368 | (select_window_norecord, select_frame_norecord): Move in front | ||
| 20369 | of run_window_configuration_change_hook. Remove now obsolete | ||
| 20370 | declarations. | ||
| 20371 | (Fset_window_buffer): Rewrite doc-string. | ||
| 20372 | Call Qrecord_window_buffer. | ||
| 20373 | (keys_of_window): Move binding for other-window to window.el. | ||
| 20374 | |||
| 20375 | 2011-06-11 Chong Yidong <cyd@stupidchicken.com> | ||
| 20376 | |||
| 20377 | * dispextern.h (struct image): Replace data member, whose int_val | ||
| 20378 | and ptr_val fields were not used by anything, with a single | ||
| 20379 | lisp_val object. | ||
| 20380 | |||
| 20381 | * image.c (Fimage_metadata, make_image, mark_image, tiff_load) | ||
| 20382 | (gif_clear_image, gif_load, imagemagick_load_image) | ||
| 20383 | (gs_clear_image, gs_load): Callers changed. | ||
| 20384 | |||
| 20385 | 2011-06-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20386 | |||
| 20387 | * buffer.h: Include <time.h>, for time_t. | ||
| 20388 | Needed to build on FreeBSD 8.2. Problem reported by Herbert J. Skuhra. | ||
| 20389 | |||
| 20390 | Fix minor problems found by static checking. | ||
| 20391 | |||
| 20392 | * image.c (PixelGetMagickColor): Declare if ImageMagick headers don't. | ||
| 20393 | |||
| 20394 | Make identifiers static if they are not used in other modules. | ||
| 20395 | * data.c (Qcompiled_function, Qframe, Qvector): | ||
| 20396 | * image.c (QimageMagick, Qsvg): | ||
| 20397 | * minibuf.c (Qmetadata): | ||
| 20398 | * window.c (resize_window_check, resize_root_window): Now static. | ||
| 20399 | * window.h (resize_window_check, resize_root_window): Remove decls. | ||
| 20400 | |||
| 20401 | * window.c (window_deletion_count, delete_deletable_window): | ||
| 20402 | Remove; unused. | ||
| 20403 | (window_body_lines): Now static. | ||
| 20404 | (Fdelete_other_windows_internal): Mark vars as initialized. | ||
| 20405 | Make sure 'resize_failed' is initialized. | ||
| 20406 | (run_window_configuration_change_hook): Rename local to avoid shadowing. | ||
| 20407 | (resize_window_apply): Remove unused local. | ||
| 20408 | * window.h (delete_deletable_window): Remove decl. | ||
| 20409 | |||
| 20410 | * image.c (gif_load, svg_load_image): Rename locals to avoid shadowing. | ||
| 20411 | (imagemagick_load_image): Fix pointer signedness problem by changing | ||
| 20412 | last arg from unsigned char * to char *. All uses changed. | ||
| 20413 | Also, fix a local for similar reasons. | ||
| 20414 | Remove unused locals. Remove locals to avoid shadowing. | ||
| 20415 | (fn_rsvg_handle_free): Remove; unused. | ||
| 20416 | (svg_load, svg_load_image): Fix pointer signedness problem. | ||
| 20417 | (imagemagick_load_image): Don't use garbage pointer image_wand. | ||
| 20418 | |||
| 20419 | * ftfont.c (ftfont_get_metrics, ftfont_drive_otf): Remove unused locals. | ||
| 20420 | |||
| 20421 | 2011-06-10 Chong Yidong <cyd@stupidchicken.com> | ||
| 20422 | |||
| 20423 | * image.c (gif_load): Fix omitted cast error introduced by | ||
| 20424 | 2011-06-06 change. | ||
| 20425 | |||
| 20426 | 2011-06-10 Martin Rudalics <rudalics@gmx.at> | ||
| 20427 | |||
| 20428 | * window.h (resize_proportionally, orig_total_lines) | ||
| 20429 | (orig_top_line): Remove from window structure. | ||
| 20430 | (set_window_height, set_window_width, change_window_heights) | ||
| 20431 | (Fdelete_window): Remove prototypes. | ||
| 20432 | (resize_frame_windows): Remove duplicate declaration. | ||
| 20433 | |||
| 20434 | 2011-06-10 Eli Zaretskii <eliz@gnu.org> | ||
| 20435 | |||
| 20436 | * window.h (resize_frame_windows, resize_window_check) | ||
| 20437 | (delete_deletable_window, resize_root_window) | ||
| 20438 | (resize_frame_windows): Declare prototypes. | ||
| 20439 | |||
| 20440 | * window.c (resize_window_apply): Make definition be "static" to | ||
| 20441 | match the prototype. | ||
| 20442 | |||
| 20443 | 2011-06-10 Martin Rudalics <rudalics@gmx.at> | ||
| 20444 | |||
| 20445 | * window.c: Remove declarations of Qwindow_size_fixed, | ||
| 20446 | window_min_size_1, window_min_size_2, window_min_size, | ||
| 20447 | size_window, window_fixed_size_p, enlarge_window, delete_window. | ||
| 20448 | Remove static from declaration of Qdelete_window, it's | ||
| 20449 | temporarily needed by Fbury_buffer. | ||
| 20450 | (replace_window): Don't assign orig_top_line and | ||
| 20451 | orig_total_lines. | ||
| 20452 | (Fdelete_window, delete_window): Remove. Window deletion is | ||
| 20453 | handled by window.el. | ||
| 20454 | (window_loop): Remove DELETE_OTHER_WINDOWS case. | ||
| 20455 | Replace Fdelete_window calls with calls to Qdelete_window. | ||
| 20456 | (Fdelete_other_windows): Remove. Deleting other windows is | ||
| 20457 | handled by window.el. | ||
| 20458 | (window_fixed_size_p): Remove. Fixed-sizeness of windows is | ||
| 20459 | handled in window.el. | ||
| 20460 | (window_min_size_2, window_min_size_1, window_min_size): Remove. | ||
| 20461 | Window minimum sizes are handled in window.el. | ||
| 20462 | (shrink_windows, size_window, set_window_height) | ||
| 20463 | (set_window_width, change_window_heights, window_height) | ||
| 20464 | (window_width, CURBEG, CURSIZE, enlarge_window) | ||
| 20465 | (adjust_window_trailing_edge, Fadjust_window_trailing_edge) | ||
| 20466 | (Fenlarge_window, Fshrink_window): Remove. Window resizing is | ||
| 20467 | handled in window.el. | ||
| 20468 | (make_dummy_parent): Rename to make_parent_window and give it a | ||
| 20469 | second argument horflag. | ||
| 20470 | (make_window): Don't set resize_proportionally any more. | ||
| 20471 | (Fsplit_window): Remove. Windows are split in window.el. | ||
| 20472 | (save_restore_action, save_restore_orig_size) | ||
| 20473 | (shrink_window_lowest_first, save_restore_orig_size): Remove. | ||
| 20474 | Resize mini windows in window.el. | ||
| 20475 | (grow_mini_window, shrink_mini_window): Implement by calling | ||
| 20476 | Qresize_root_window_vertically, resize_window_check and | ||
| 20477 | resize_window_apply. | ||
| 20478 | (saved_window, Fset_window_configuration, save_window_save): | ||
| 20479 | Do not handle orig_top_line, orig_total_lines, and | ||
| 20480 | resize_proportionally. | ||
| 20481 | (window_min_height, window_min_width): Move to window.el. | ||
| 20482 | (keys_of_window): Move bindings for delete-other-windows, | ||
| 20483 | split-window, delete-window and enlarge-window to window.el. | ||
| 20484 | |||
| 20485 | * buffer.c: Temporarily extern Qdelete_window. | ||
| 20486 | (Fbury_buffer): Temporarily call Qdelete_window instead of | ||
| 20487 | Fdelete_window (Fbury_buffer will move to window.el soon). | ||
| 20488 | |||
| 20489 | * frame.c (set_menu_bar_lines_1): Remove code handling | ||
| 20490 | orig_top_line and orig_total_lines. | ||
| 20491 | |||
| 20492 | * dispnew.c (adjust_frame_glyphs_initially): Don't use | ||
| 20493 | set_window_height but set heights directly. | ||
| 20494 | (change_frame_size_1): Use resize_frame_windows. | ||
| 20495 | |||
| 20496 | * xdisp.c (init_xdisp): Don't use set_window_height but set | ||
| 20497 | heights directly. | ||
| 20498 | |||
| 20499 | * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): | ||
| 20500 | Use resize_frame_windows instead of change_window_heights and run | ||
| 20501 | run_window_configuration_change_hook. | ||
| 20502 | |||
| 20503 | * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows | ||
| 20504 | instead of change_window_heights and run | ||
| 20505 | run_window_configuration_change_hook. | ||
| 20506 | |||
| 20507 | 2011-06-09 Martin Rudalics <rudalics@gmx.at> | ||
| 20508 | |||
| 20509 | * window.c (replace_window): Rename second argument REPLACEMENT to | ||
| 20510 | NEW. New third argument SETFLAG. Rewrite. | ||
| 20511 | (delete_window, make_dummy_parent): Call replace_window with | ||
| 20512 | third argument 1. | ||
| 20513 | (window_list_1): Move down in code. | ||
| 20514 | (run_window_configuration_change_hook): Move set_buffer part | ||
| 20515 | before select_frame_norecord part in order to unwind correctly. | ||
| 20516 | Rename count1 to count. | ||
| 20517 | (recombine_windows, delete_deletable_window, resize_root_window) | ||
| 20518 | (Fdelete_other_windows_internal) | ||
| 20519 | (Frun_window_configuration_change_hook, make_parent_window) | ||
| 20520 | (resize_window_check, resize_window_apply, Fresize_window_apply) | ||
| 20521 | (resize_frame_windows, Fsplit_window_internal) | ||
| 20522 | (Fdelete_window_internal, Fresize_mini_window_internal): | ||
| 20523 | New functions. | ||
| 20524 | (syms_of_window): New variables Vwindow_splits and Vwindow_nest. | ||
| 20525 | |||
| 20526 | 2011-06-08 Martin Rudalics <rudalics@gmx.at> | ||
| 20527 | |||
| 20528 | * window.h (window): Add some new members to window structure - | ||
| 20529 | normal_lines, normal_cols, new_total, new_normal, clone_number, | ||
| 20530 | splits, nest, prev_buffers, next_buffers. | ||
| 20531 | (WINDOW_TOTAL_SIZE): Move here from window.c. | ||
| 20532 | (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT): Define here. | ||
| 20533 | |||
| 20534 | * window.c (Fwindow_height, Fwindow_width, Fwindow_full_width_p): | ||
| 20535 | Remove. | ||
| 20536 | (make_dummy_parent): Set new members of windows structure. | ||
| 20537 | (make_window): Move down in code. Handle new members of window | ||
| 20538 | structure. | ||
| 20539 | (Fwindow_clone_number, Fwindow_splits, Fset_window_splits) | ||
| 20540 | (Fwindow_nest, Fset_window_nest, Fwindow_new_total) | ||
| 20541 | (Fwindow_normal_size, Fwindow_new_normal, Fwindow_prev_buffers) | ||
| 20542 | (Fset_window_prev_buffers, Fwindow_next_buffers) | ||
| 20543 | (Fset_window_next_buffers, Fset_window_clone_number): | ||
| 20544 | New functions. | ||
| 20545 | (Fwindow_hscroll, Fwindow_at, Fwindow_point, Fwindow_start) | ||
| 20546 | (Fwindow_end, Fwindow_line_height, Fset_window_dedicated_p): | ||
| 20547 | Doc-string fixes. | ||
| 20548 | (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter): | ||
| 20549 | Argument WINDOW can be now internal window too. | ||
| 20550 | (Fwindow_use_time): Move up in code. | ||
| 20551 | (Fget_buffer_window): Rename argument FRAME to ALL-FRAMES. | ||
| 20552 | Rewrite doc-string. | ||
| 20553 | (Fset_window_configuration, saved_window) | ||
| 20554 | (Fcurrent_window_configuration, save_window_save): Handle new | ||
| 20555 | members of window structure. | ||
| 20556 | (WINDOW_TOTAL_SIZE, MIN_SAFE_WINDOW_WIDTH) | ||
| 20557 | (MIN_SAFE_WINDOW_HEIGHT): Move to window.h. | ||
| 20558 | (syms_of_window): New Lisp objects Qrecord_window_buffer, | ||
| 20559 | Qwindow_deletable_p, Qdelete_window, Qreplace_buffer_in_windows, | ||
| 20560 | Qget_mru_window, Qresize_root_window, | ||
| 20561 | Qresize_root_window_vertically, Qsafe, Qabove, Qbelow, | ||
| 20562 | Qauto_buffer_name; staticpro them. | ||
| 20563 | |||
| 20564 | 2011-06-07 Martin Rudalics <rudalics@gmx.at> | ||
| 20565 | |||
| 20566 | * window.c (Fwindow_total_size, Fwindow_left_column) | ||
| 20567 | (Fwindow_top_line, window_body_lines, Fwindow_body_size) | ||
| 20568 | (Fwindow_list_1): New functions. | ||
| 20569 | (window_box_text_cols): Replace with window_body_cols. | ||
| 20570 | (Fwindow_width, Fscroll_left, Fscroll_right): | ||
| 20571 | Use window_body_cols instead of window_box_text_cols. | ||
| 20572 | (delete_window, Fset_window_configuration): | ||
| 20573 | Call delete_all_subwindows with window as argument. | ||
| 20574 | (delete_all_subwindows): Take a window as argument and not a | ||
| 20575 | structure. Rewrite. | ||
| 20576 | (window_loop): Remove handling of GET_LRU_WINDOW and | ||
| 20577 | GET_LARGEST_WINDOW. | ||
| 20578 | (Fget_lru_window, Fget_largest_window): Move to window.el. | ||
| 20579 | |||
| 20580 | * window.h: Extern window_body_cols instead of | ||
| 20581 | window_box_text_cols. delete_all_subwindows now takes a | ||
| 20582 | Lisp_Object as argument. | ||
| 20583 | |||
| 20584 | * indent.c (compute_motion, Fcompute_motion): | ||
| 20585 | Use window_body_cols instead of window_box_text_cols. | ||
| 20586 | |||
| 20587 | * frame.c (delete_frame): Call delete_all_subwindows with root | ||
| 20588 | window as argument. | ||
| 20589 | |||
| 20590 | 2011-06-07 Daniel Colascione <dan.colascione@gmail.com> | ||
| 20591 | |||
| 20592 | * fns.c (Fputhash): Document return value. | ||
| 20593 | |||
| 20594 | 2011-06-06 Chong Yidong <cyd@stupidchicken.com> | ||
| 20595 | |||
| 20596 | * image.c (gif_load): Implement gif89a spec "no disposal" method. | ||
| 20597 | |||
| 20598 | 2011-06-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20599 | |||
| 20600 | Cons<->int and similar integer overflow fixes (Bug#8794). | ||
| 20601 | |||
| 20602 | Check for overflow when converting integer to cons and back. | ||
| 20603 | * charset.c (Fdefine_charset_internal, Fdecode_char): | ||
| 20604 | Use cons_to_unsigned to catch overflow. | ||
| 20605 | (Fencode_char): Use INTEGER_TO_CONS. | ||
| 20606 | * composite.h (LGLYPH_CODE): Use cons_to_unsigned. | ||
| 20607 | (LGLYPH_SET_CODE): Use INTEGER_TO_CONS. | ||
| 20608 | * data.c (long_to_cons, cons_to_long): Remove. | ||
| 20609 | (cons_to_unsigned, cons_to_signed): New functions. | ||
| 20610 | These signal an error for invalid or out-of-range values. | ||
| 20611 | * dired.c (Ffile_attributes): Use INTEGER_TO_CONS. | ||
| 20612 | * fileio.c (Fset_visited_file_modtime): Use CONS_TO_INTEGER. | ||
| 20613 | * font.c (Ffont_variation_glyphs): | ||
| 20614 | * fontset.c (Finternal_char_font): Use INTEGER_TO_CONS. | ||
| 20615 | * lisp.h: Include <intprops.h>. | ||
| 20616 | (INTEGER_TO_CONS, CONS_TO_INTEGER): New macros. | ||
| 20617 | (cons_to_signed, cons_to_unsigned): New decls. | ||
| 20618 | (long_to_cons, cons_to_long): Remove decls. | ||
| 20619 | * undo.c (record_first_change): Use INTEGER_TO_CONS. | ||
| 20620 | (Fprimitive_undo): Use CONS_TO_INTEGER. | ||
| 20621 | * xfns.c (Fx_window_property): Likewise. | ||
| 20622 | * xselect.c: Include <limits.h>. | ||
| 20623 | (x_own_selection, selection_data_to_lisp_data): | ||
| 20624 | Use INTEGER_TO_CONS. | ||
| 20625 | (x_handle_selection_request, x_handle_selection_clear) | ||
| 20626 | (x_get_foreign_selection, Fx_disown_selection_internal) | ||
| 20627 | (Fx_get_atom_name, x_send_client_event): Use CONS_TO_INTEGER. | ||
| 20628 | (lisp_data_to_selection_data): Use cons_to_unsigned. | ||
| 20629 | (x_fill_property_data): Use cons_to_signed. | ||
| 20630 | Report values out of range. | ||
| 20631 | |||
| 20632 | Check for buffer and string overflow more precisely. | ||
| 20633 | * buffer.h (BUF_BYTES_MAX): New macro. | ||
| 20634 | * lisp.h (STRING_BYTES_MAX): New macro. | ||
| 20635 | * alloc.c (Fmake_string): | ||
| 20636 | * character.c (string_escape_byte8): | ||
| 20637 | * coding.c (coding_alloc_by_realloc): | ||
| 20638 | * doprnt.c (doprnt): | ||
| 20639 | * editfns.c (Fformat): | ||
| 20640 | * eval.c (verror): | ||
| 20641 | Use STRING_BYTES_MAX, not MOST_POSITIVE_FIXNUM, | ||
| 20642 | since they may not be the same number. | ||
| 20643 | * editfns.c (Finsert_char): | ||
| 20644 | * fileio.c (Finsert_file_contents): | ||
| 20645 | Likewise for BUF_BYTES_MAX. | ||
| 20646 | |||
| 20647 | * image.c: Use ptrdiff_t, not int, for sizes. | ||
| 20648 | (slurp_file): Switch from int to ptrdiff_t. | ||
| 20649 | All uses changed. | ||
| 20650 | (slurp_file): Check that file size fits in both size_t (for | ||
| 20651 | malloc) and ptrdiff_t (for sanity and safety). | ||
| 20652 | |||
| 20653 | * fileio.c (Fverify_visited_file_modtime): Avoid time overflow | ||
| 20654 | if b->modtime has its maximal value. | ||
| 20655 | |||
| 20656 | * dired.c (Ffile_attributes): Don't assume EMACS_INT has >32 bits. | ||
| 20657 | |||
| 20658 | Don't assume time_t can fit into int. | ||
| 20659 | * buffer.h (struct buffer.modtime): Now time_t, not int. | ||
| 20660 | * fileio.c (Fvisited_file_modtime): No need for time_t cast now. | ||
| 20661 | * undo.c (Fprimitive_undo): Use time_t, not int, for time_t value. | ||
| 20662 | |||
| 20663 | Minor fixes for signed vs unsigned integers. | ||
| 20664 | * character.h (MAYBE_UNIFY_CHAR): | ||
| 20665 | * charset.c (maybe_unify_char): | ||
| 20666 | * keyboard.c (read_char, reorder_modifiers): | ||
| 20667 | XINT -> XFASTINT, since the integer must be nonnegative. | ||
| 20668 | * ftfont.c (ftfont_spec_pattern): | ||
| 20669 | * keymap.c (access_keymap, silly_event_symbol_error): | ||
| 20670 | XUINT -> XFASTINT, since the integer must be nonnegative. | ||
| 20671 | (Fsingle_key_description, preferred_sequence_p): XUINT -> XINT, | ||
| 20672 | since it makes no difference and we prefer signed. | ||
| 20673 | * keyboard.c (record_char): Use XUINT when all the neighbors do. | ||
| 20674 | (access_keymap): NATNUMP -> INTEGERP, since the integer must be | ||
| 20675 | nonnegative. | ||
| 20676 | |||
| 20677 | 2011-06-06 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 20678 | |||
| 20679 | * window.h (Fwindow_frame): Declare. | ||
| 20680 | |||
| 20681 | 2011-06-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20682 | |||
| 20683 | * alloc.c: Simplify handling of large-request failures (Bug#8800). | ||
| 20684 | (SPARE_MEMORY): Always define. | ||
| 20685 | (LARGE_REQUEST): Remove. | ||
| 20686 | (memory_full): Use SPARE_MEMORY rather than LARGE_REQUEST. | ||
| 20687 | |||
| 20688 | 2011-06-06 Martin Rudalics <rudalics@gmx.at> | ||
| 20689 | |||
| 20690 | * lisp.h: Move EXFUNS for Fframe_root_window, | ||
| 20691 | Fframe_first_window and Fset_frame_selected_window to window.h. | ||
| 20692 | |||
| 20693 | * window.h: Move EXFUNS for Fframe_root_window, | ||
| 20694 | Fframe_first_window and Fset_frame_selected_window here from | ||
| 20695 | lisp.h. | ||
| 20696 | |||
| 20697 | * frame.c (Fwindow_frame, Fframe_first_window) | ||
| 20698 | (Fframe_root_window, Fframe_selected_window) | ||
| 20699 | (Fset_frame_selected_window): Move to window.c. | ||
| 20700 | (Factive_minibuffer_window): Move to minibuf.c. | ||
| 20701 | (Fother_visible_frames_p): New function. | ||
| 20702 | |||
| 20703 | * minibuf.c (Factive_minibuffer_window): Move here from frame.c. | ||
| 20704 | |||
| 20705 | * window.c (decode_window, decode_any_window): Move up in code. | ||
| 20706 | (Fwindowp, Fwindow_live_p): Rewrite doc-strings. | ||
| 20707 | (inhibit_frame_unsplittable): Remove unused variable. | ||
| 20708 | (Fwindow_buffer): Move up and rewrite doc-string. | ||
| 20709 | (Fwindow_parent, Fwindow_vchild, Fwindow_hchild, Fwindow_next) | ||
| 20710 | (Fwindow_prev): New functions. | ||
| 20711 | (Fwindow_frame): Move here from frame.c. Accept any window as | ||
| 20712 | argument. | ||
| 20713 | (Fframe_root_window, Fframe_first_window) | ||
| 20714 | (Fframe_selected_window): Move here from frame.c. Accept frame | ||
| 20715 | or arbitrary window as argument. Update doc-strings. | ||
| 20716 | (Fminibuffer_window): Move up in code. | ||
| 20717 | (Fwindow_minibuffer_p): Move up in code and simplify. | ||
| 20718 | (Fset_frame_selected_window): Move here from frame.c. | ||
| 20719 | Marginal rewrite. | ||
| 20720 | (Fselected_window, select_window, Fselect_window): Move up in | ||
| 20721 | code. Minor doc-string fixes. | ||
| 20722 | |||
| 20723 | 2011-06-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20724 | |||
| 20725 | * alloc.c (memory_full) [SYSTEM_MALLOC]: Port to MacOS (Bug#8800). | ||
| 20726 | Do not assume that spare memory exists; that assumption is valid | ||
| 20727 | only if SYSTEM_MALLOC. | ||
| 20728 | (LARGE_REQUEST): New macro, so that the issue of large requests | ||
| 20729 | is separated from the issue of spare memory. | ||
| 20730 | |||
| 20731 | 2011-06-05 Andreas Schwab <schwab@linux-m68k.org> | ||
| 20732 | |||
| 20733 | * editfns.c (Fformat): Correctly handle zero flag with hexadecimal | ||
| 20734 | format. (Bug#8806) | ||
| 20735 | |||
| 20736 | * gtkutil.c (xg_get_default_scrollbar_width): Avoid warning. | ||
| 20737 | |||
| 20738 | * xfns.c (x_set_scroll_bar_default_width): Move declarations | ||
| 20739 | before statements. | ||
| 20740 | |||
| 20741 | 2011-06-05 Jan Djärv <jan.h.d@swipnet.se> | ||
| 20742 | |||
| 20743 | * gtkutil.c (xg_get_default_scrollbar_width): New function. | ||
| 20744 | |||
| 20745 | * gtkutil.h: Declare xg_get_default_scrollbar_width. | ||
| 20746 | |||
| 20747 | * xfns.c (x_set_scroll_bar_default_width): If USE_GTK, get | ||
| 20748 | min width by calling x_set_scroll_bar_default_width (Bug#8505). | ||
| 20749 | |||
| 20750 | 2011-06-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 20751 | |||
| 20752 | * xdisp.c (single_display_spec_intangible_p): Remove declaration. | ||
| 20753 | |||
| 20754 | 2011-06-04 Chong Yidong <cyd@stupidchicken.com> | ||
| 20755 | |||
| 20756 | * xselect.c (x_clipboard_manager_save): Remove redundant arg. | ||
| 20757 | (x_clipboard_manager_save): Add return value. | ||
| 20758 | (x_clipboard_manager_error_1, x_clipboard_manager_error_2): | ||
| 20759 | New error handlers. | ||
| 20760 | (x_clipboard_manager_save_frame, x_clipboard_manager_save_all): | ||
| 20761 | Obey Vx_select_enable_clipboard_manager. Catch errors in | ||
| 20762 | x_clipboard_manager_save (Bug#8779). | ||
| 20763 | (Vx_select_enable_clipboard_manager): New variable. | ||
| 20764 | (x_get_foreign_selection): Reduce scope of x_catch_errors (Bug#8790). | ||
| 20765 | |||
| 20766 | 2011-06-04 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20767 | |||
| 20768 | * emacs.c (main): Warn when starting a GTK emacs in daemon mode. | ||
| 20769 | |||
| 20770 | 2011-06-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 20771 | |||
| 20772 | * fringe.c (update_window_fringes): Don't update overlay arrow bitmap | ||
| 20773 | in the current matrix if keep_current_p is non-zero. | ||
| 20774 | |||
| 20775 | 2011-06-04 Eli Zaretskii <eliz@gnu.org> | ||
| 20776 | |||
| 20777 | * bidi.c (bidi_level_of_next_char): Fix last change. | ||
| 20778 | |||
| 20779 | 2011-06-03 Eli Zaretskii <eliz@gnu.org> | ||
| 20780 | |||
| 20781 | Support bidi reordering of text covered by display properties. | ||
| 20782 | |||
| 20783 | * bidi.c (bidi_copy_it): Use offsetof instead of emulating it. | ||
| 20784 | (bidi_fetch_char, bidi_fetch_char_advance): New functions. | ||
| 20785 | (bidi_cache_search, bidi_cache_iterator_state) | ||
| 20786 | (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak) | ||
| 20787 | (bidi_level_of_next_char, bidi_move_to_visually_next): | ||
| 20788 | Support character positions inside a run of characters covered by a | ||
| 20789 | display string. | ||
| 20790 | (bidi_paragraph_init, bidi_resolve_explicit_1) | ||
| 20791 | (bidi_level_of_next_char): Call bidi_fetch_char and | ||
| 20792 | bidi_fetch_char_advance instead of FETCH_CHAR and | ||
| 20793 | FETCH_CHAR_ADVANCE. | ||
| 20794 | (bidi_init_it): Initialize new members. | ||
| 20795 | (LRE_CHAR, RLE_CHAR, PDF_CHAR, LRO_CHAR, RLO_CHAR): Remove macro | ||
| 20796 | definitions. | ||
| 20797 | (bidi_explicit_dir_char): Lookup character type in bidi_type_table, | ||
| 20798 | instead of using explicit *_CHAR codes. | ||
| 20799 | (bidi_resolve_explicit, bidi_resolve_weak): | ||
| 20800 | Use FETCH_MULTIBYTE_CHAR instead of FETCH_CHAR, as reordering of | ||
| 20801 | bidirectional text is supported only in multibyte buffers. | ||
| 20802 | (bidi_init_it): Accept additional argument FRAME_WINDOW_P and use | ||
| 20803 | it to initialize the frame_window_p member of struct bidi_it. | ||
| 20804 | (bidi_cache_iterator_state, bidi_resolve_explicit_1) | ||
| 20805 | (bidi_resolve_explicit, bidi_resolve_weak) | ||
| 20806 | (bidi_level_of_next_char, bidi_move_to_visually_next): Abort if | ||
| 20807 | bidi_it->nchars is non-positive. | ||
| 20808 | (bidi_level_of_next_char): Don't try to lookup the cache for the | ||
| 20809 | next/previous character if nothing is cached there yet, or if we | ||
| 20810 | were just reseat()'ed to a new position. | ||
| 20811 | |||
| 20812 | * xdisp.c (set_cursor_from_row): Set start and stop points | ||
| 20813 | according to the row's direction when priming the loop that looks | ||
| 20814 | for the glyph on which to display cursor. | ||
| 20815 | (single_display_spec_intangible_p): Function deleted. | ||
| 20816 | (display_prop_intangible_p): Reimplement to call | ||
| 20817 | handle_display_spec instead of single_display_spec_intangible_p. | ||
| 20818 | Accept 3 additional arguments needed by handle_display_spec. | ||
| 20819 | This fixes incorrect cursor motion across display property with complex | ||
| 20820 | values: lists, `(when COND...)' forms, etc. | ||
| 20821 | (single_display_spec_string_p): Support property values that are | ||
| 20822 | lists with the argument STRING its top-level element. | ||
| 20823 | (display_prop_string_p): Fix the condition for processing a | ||
| 20824 | property that is a list to be consistent with handle_display_spec. | ||
| 20825 | (handle_display_spec): New function, refactored from the | ||
| 20826 | last portion of handle_display_prop. | ||
| 20827 | (compute_display_string_pos): Accept additional argument | ||
| 20828 | FRAME_WINDOW_P. Call handle_display_spec to determine whether the | ||
| 20829 | value of a `display' property is a "replacing spec". | ||
| 20830 | (handle_single_display_spec): Accept 2 additional arguments BUFPOS | ||
| 20831 | and FRAME_WINDOW_P. If IT is NULL, don't set up the iterator from | ||
| 20832 | the display property, but just return a value indicating whether | ||
| 20833 | the display property will replace the characters it covers. | ||
| 20834 | (Fcurrent_bidi_paragraph_direction): Initialize the nchars and | ||
| 20835 | frame_window_p members of struct bidi_it. | ||
| 20836 | (compute_display_string_pos, compute_display_string_end): | ||
| 20837 | New functions. | ||
| 20838 | (push_it): Accept second argument POSITION, where pop_it should | ||
| 20839 | jump to continue iteration. | ||
| 20840 | (reseat_1): Initialize bidi_it.disp_pos. | ||
| 20841 | |||
| 20842 | * keyboard.c (adjust_point_for_property): Adjust the call to | ||
| 20843 | display_prop_intangible_p to its new signature. | ||
| 20844 | |||
| 20845 | * dispextern.h (struct bidi_it): New member frame_window_p. | ||
| 20846 | (bidi_init_it): Update prototypes. | ||
| 20847 | (display_prop_intangible_p): Update prototype. | ||
| 20848 | (compute_display_string_pos, compute_display_string_end): | ||
| 20849 | Declare prototypes. | ||
| 20850 | (struct bidi_it): New members nchars and disp_pos. ch_len is now | ||
| 20851 | EMACS_INT. | ||
| 20852 | |||
| 20853 | 2011-06-02 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20854 | |||
| 20855 | Malloc failure behavior now depends on size of allocation. | ||
| 20856 | * alloc.c (buffer_memory_full, memory_full): New arg NBYTES. | ||
| 20857 | * lisp.h: Change signatures accordingly. | ||
| 20858 | * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c: | ||
| 20859 | All callers changed. (Bug#8762) | ||
| 20860 | |||
| 20861 | * gnutls.c: Use Emacs's memory allocators. | ||
| 20862 | Without this change, the gnutls library would invoke malloc etc. | ||
| 20863 | directly, which causes problems on non-SYNC_INPUT hosts, and which | ||
| 20864 | runs afoul of improving memory_full behavior. (Bug#8761) | ||
| 20865 | (fn_gnutls_global_set_mem_functions): New macro or function pointer. | ||
| 20866 | (emacs_gnutls_global_init): Use it to specify xmalloc, xrealloc, | ||
| 20867 | xfree instead of the default malloc, realloc, free. | ||
| 20868 | (Fgnutls_boot): No need to check for memory allocation failure, | ||
| 20869 | since xmalloc does that for us. | ||
| 20870 | |||
| 20871 | Remove arbitrary limit of 2**31 entries in hash tables. (Bug#8771) | ||
| 20872 | * category.c (hash_get_category_set): | ||
| 20873 | * ccl.c (ccl_driver): | ||
| 20874 | * charset.c (Fdefine_charset_internal): | ||
| 20875 | * charset.h (struct charset.hash_index): | ||
| 20876 | * composite.c (get_composition_id, gstring_lookup_cache) | ||
| 20877 | (composition_gstring_put_cache): | ||
| 20878 | * composite.h (struct composition.hash_index): | ||
| 20879 | * dispextern.h (struct image.hash): | ||
| 20880 | * fns.c (next_almost_prime, larger_vector, cmpfn_eql) | ||
| 20881 | (cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql) | ||
| 20882 | (hashfn_equal, hashfn_user_defined, make_hash_table) | ||
| 20883 | (maybe_resize_hash_table, hash_lookup, hash_put) | ||
| 20884 | (hash_remove_from_table, hash_clear, sweep_weak_table, SXHASH_COMBINE) | ||
| 20885 | (sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector) | ||
| 20886 | (Fsxhash, Fgethash, Fputhash, Fmaphash): | ||
| 20887 | * image.c (make_image, search_image_cache, lookup_image) | ||
| 20888 | (xpm_put_color_table_h): | ||
| 20889 | * lisp.h (struct Lisp_Hash_Table): | ||
| 20890 | * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): | ||
| 20891 | * print.c (print): Use 'EMACS_UINT' and 'EMACS_INT' | ||
| 20892 | for hashes and hash indexes, instead of 'unsigned' and 'int'. | ||
| 20893 | * alloc.c (allocate_vectorlike): | ||
| 20894 | Check for overflow in vector size calculations. | ||
| 20895 | * ccl.c (ccl_driver): | ||
| 20896 | Check for overflow when converting EMACS_INT to int. | ||
| 20897 | * fns.c, image.c: Remove unnecessary static decls that would otherwise | ||
| 20898 | need to be updated by these changes. | ||
| 20899 | * fns.c (make_hash_table, maybe_resize_hash_table): | ||
| 20900 | Check for integer overflow with large hash tables. | ||
| 20901 | (make_hash_table, maybe_resize_hash_table, Fmake_hash_table): | ||
| 20902 | Prefer the faster XFLOAT_DATA to XFLOATINT where either will do. | ||
| 20903 | (SXHASH_REDUCE): New macro. | ||
| 20904 | (sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector): | ||
| 20905 | Use it instead of discarding useful hash info with large hash values. | ||
| 20906 | (sxhash_float): New function. | ||
| 20907 | (sxhash): Use it. No more need for "& INTMASK" due to above changes. | ||
| 20908 | * lisp.h (FIXNUM_BITS): New macro, useful for SXHASH_REDUCE etc. | ||
| 20909 | (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK): | ||
| 20910 | Rewrite to use FIXNUM_BITS, as this simplifies things. | ||
| 20911 | (next_almost_prime, larger_vector, sxhash, hash_lookup, hash_put): | ||
| 20912 | Adjust signatures to match updated version of code. | ||
| 20913 | (consing_since_gc): Now EMACS_INT, since a single hash table can | ||
| 20914 | use more than INT_MAX bytes. | ||
| 20915 | |||
| 20916 | 2011-06-01 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20917 | |||
| 20918 | Make it possible to build with GCC-4.6+ -O2 -flto. | ||
| 20919 | |||
| 20920 | * emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE. | ||
| 20921 | |||
| 20922 | 2011-06-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 20923 | |||
| 20924 | * minibuf.c (get_minibuffer, read_minibuf_unwind): | ||
| 20925 | Call minibuffer-inactive-mode. | ||
| 20926 | |||
| 20927 | 2011-05-31 Juanma Barranquero <lekktu@gmail.com> | ||
| 20928 | |||
| 20929 | * makefile.w32-in ($(BLD)/data.$(O), $(BLD)/editfns.$(O)): | ||
| 20930 | Update dependencies. | ||
| 20931 | |||
| 20932 | 2011-05-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20933 | |||
| 20934 | * data.c (init_data): Remove code for UTS, this system is not | ||
| 20935 | supported anymore. | ||
| 20936 | |||
| 20937 | 2011-05-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20938 | |||
| 20939 | Don't force ./temacs to start in terminal mode. | ||
| 20940 | |||
| 20941 | * frame.c (make_initial_frame): Initialize faces in all cases, not | ||
| 20942 | only when CANNOT_DUMP is defined. | ||
| 20943 | * dispnew.c (init_display): Remove CANNOT_DUMP condition. | ||
| 20944 | |||
| 20945 | 2011-05-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20946 | |||
| 20947 | * dispnew.c (add_window_display_history): Use const for the string | ||
| 20948 | pointer. Remove declaration, not needed. | ||
| 20949 | |||
| 20950 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20951 | |||
| 20952 | Use 'inline', not 'INLINE'. | ||
| 20953 | <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00914.html> | ||
| 20954 | * alloc.c, fontset.c (INLINE): Remove. | ||
| 20955 | * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: | ||
| 20956 | * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: | ||
| 20957 | * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. | ||
| 20958 | * gmalloc.c (register_heapinfo): Use inline unconditionally. | ||
| 20959 | * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__. | ||
| 20960 | |||
| 20961 | 2011-05-31 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 20962 | |||
| 20963 | Make it possible to run ./temacs. | ||
| 20964 | |||
| 20965 | * callproc.c (set_initial_environment): Remove CANNOT_DUMP code, | ||
| 20966 | syms_of_callproc does the same thing. Remove test for | ||
| 20967 | "initialized", do it in the caller. | ||
| 20968 | * emacs.c (main): Avoid calling set_initial_environment when dumping. | ||
| 20969 | |||
| 20970 | 2011-05-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 20971 | |||
| 20972 | * minibuf.c (Finternal_complete_buffer): Return `category' metadata. | ||
| 20973 | (read_minibuf): Use get_minibuffer. | ||
| 20974 | (syms_of_minibuf): Use DEFSYM. | ||
| 20975 | (Qmetadata): New var. | ||
| 20976 | * data.c (Qbuffer): Don't make it static. | ||
| 20977 | (syms_of_data): Use DEFSYM. | ||
| 20978 | |||
| 20979 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20980 | |||
| 20981 | * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) | ||
| 20982 | (CCL_CODE_MIN): New macro. | ||
| 20983 | |||
| 20984 | 2011-05-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20985 | |||
| 20986 | * alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests. | ||
| 20987 | |||
| 20988 | * eval.c (Qdebug): Now static. | ||
| 20989 | * lisp.h (Qdebug): Remove decl. This reverts a part of the | ||
| 20990 | 2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of | ||
| 20991 | 2011-04-14T06:48:41Z!eggert@cs.ucla.edu. | ||
| 20992 | |||
| 20993 | 2011-05-29 Chong Yidong <cyd@stupidchicken.com> | ||
| 20994 | |||
| 20995 | * image.c: Various fixes to ImageMagick code comments. | ||
| 20996 | (Fimagemagick_types): Doc fix. | ||
| 20997 | |||
| 20998 | 2011-05-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 20999 | |||
| 21000 | Minor fixes prompted by GCC 4.6.0 warnings. | ||
| 21001 | |||
| 21002 | * xselect.c (converted_selections, conversion_fail_tag): Now static. | ||
| 21003 | |||
| 21004 | * emacs.c [HAVE_X_WINDOWS]: Include "xterm.h". | ||
| 21005 | (x_clipboard_manager_save_all): Move extern decl to ... | ||
| 21006 | * xterm.h: ... here, so that it can be checked for consistency. | ||
| 21007 | |||
| 21008 | 2011-05-29 Chong Yidong <cyd@stupidchicken.com> | ||
| 21009 | |||
| 21010 | * xselect.c (x_clipboard_manager_save_frame) | ||
| 21011 | (x_clipboard_manager_save_all): New functions. | ||
| 21012 | (Fx_clipboard_manager_save): Lisp function deleted. | ||
| 21013 | |||
| 21014 | * emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all. | ||
| 21015 | * frame.c (delete_frame): Call x_clipboard_manager_save_frame. | ||
| 21016 | |||
| 21017 | * xterm.h: Update prototype. | ||
| 21018 | |||
| 21019 | 2011-05-28 William Xu <william.xwl@gmail.com> | ||
| 21020 | |||
| 21021 | * nsterm.m (ns_term_shutdown): Synchronize user defaults before | ||
| 21022 | exiting (Bug#8239). | ||
| 21023 | |||
| 21024 | 2011-05-28 Jim Meyering <meyering@redhat.com> | ||
| 21025 | |||
| 21026 | Avoid a sign-extension bug in crypto_hash_function. | ||
| 21027 | * fns.c (to_uchar): Define. | ||
| 21028 | (crypto_hash_function): Use it to convert some newly-signed | ||
| 21029 | variables to unsigned, to avoid sign-extension bugs. For example, | ||
| 21030 | without this change, (md5 "truc") would evaluate to | ||
| 21031 | 45723a2aff78ff4fff7fff1114760e62 rather than the expected | ||
| 21032 | 45723a2af3788c4ff17f8d1114760e62. Reported by Antoine Levitt in | ||
| 21033 | https://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00883.html. | ||
| 21034 | |||
| 21035 | 2011-05-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21036 | |||
| 21037 | Integer overflow fixes. | ||
| 21038 | |||
| 21039 | * dbusbind.c: Serial number integer overflow fixes. | ||
| 21040 | (CHECK_DBUS_SERIAL_GET_SERIAL): New macro. | ||
| 21041 | (Fdbus_call_method_asynchronously, xd_read_message_1): Use a float | ||
| 21042 | to hold a serial number that is too large for a fixnum. | ||
| 21043 | (Fdbus_method_return_internal, Fdbus_method_error_internal): | ||
| 21044 | Check for serial numbers out of range. Decode any serial number | ||
| 21045 | that was so large that it became a float. (Bug#8722) | ||
| 21046 | |||
| 21047 | * dbusbind.c: Use XFASTINT rather than XUINT, and check for nonneg. | ||
| 21048 | (Fdbus_call_method, Fdbus_call_method_asynchronously): | ||
| 21049 | Use XFASTINT rather than XUINT when numbers are nonnegative. | ||
| 21050 | (xd_append_arg, Fdbus_method_return_internal): | ||
| 21051 | (Fdbus_method_error_internal): Likewise. Also, for unsigned | ||
| 21052 | arguments, check that Lisp number is nonnegative, rather than | ||
| 21053 | silently wrapping negative numbers around. (Bug#8722) | ||
| 21054 | (xd_read_message_1): Don't assume dbus_uint32_t can fit in int. | ||
| 21055 | (Bug#8722) | ||
| 21056 | |||
| 21057 | * data.c (arith_driver, Flsh): Avoid unnecessary casts to EMACS_UINT. | ||
| 21058 | |||
| 21059 | * ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'. | ||
| 21060 | |||
| 21061 | ccl: Add integer overflow checks. | ||
| 21062 | * ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT): | ||
| 21063 | (IN_INT_RANGE): New macros. | ||
| 21064 | (ccl_driver): Use them to check for integer overflow when | ||
| 21065 | decoding a CCL program. Many of the new checks are whether XINT (x) | ||
| 21066 | fits in int; it doesn't always, on 64-bit hosts. The new version | ||
| 21067 | doesn't catch all possible integer overflows, but it's an | ||
| 21068 | improvement. (Bug#8719) | ||
| 21069 | |||
| 21070 | * alloc.c (make_event_array): Use XINT, not XUINT. | ||
| 21071 | There's no need for unsigned here. | ||
| 21072 | |||
| 21073 | * mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t | ||
| 21074 | This follows up to the 2011-05-06 change that substituted uintptr_t | ||
| 21075 | for EMACS_INT. This case wasn't caught back then. | ||
| 21076 | |||
| 21077 | Rework Fformat to avoid integer overflow issues. | ||
| 21078 | * editfns.c: Include <float.h> unconditionally, as it's everywhere | ||
| 21079 | now (part of C89). Include <verify.h>. | ||
| 21080 | (MAX_10_EXP, CONVERTED_BYTE_SIZE): Remove; no longer needed. | ||
| 21081 | (pWIDE, pWIDElen, signed_wide, unsigned_wide): New defns. | ||
| 21082 | (Fformat): Avoid the prepass trying to compute sizes; it was only | ||
| 21083 | approximate and thus did not catch overflow reliably. Instead, walk | ||
| 21084 | through the format just once, formatting and computing sizes as we go, | ||
| 21085 | checking for integer overflow at every step, and allocating a larger | ||
| 21086 | buffer as needed. Keep track separately whether the format is | ||
| 21087 | multibyte. Keep only the most-recently calculated precision, rather | ||
| 21088 | than them all. Record whether each argument has been converted to | ||
| 21089 | string. Use EMACS_INT, not int, for byte and char and arg counts. | ||
| 21090 | Support field widths and precisions larger than INT_MAX. Avoid | ||
| 21091 | sprintf's undefined behavior with conversion specifications such as %#d | ||
| 21092 | and %.0c. Fix bug with strchr succeeding on '\0' when looking for | ||
| 21093 | flags. Fix bug with (format "%c" 256.0). Avoid integer overflow when | ||
| 21094 | formatting out-of-range floating point numbers with int | ||
| 21095 | formats. (Bug#8668) | ||
| 21096 | |||
| 21097 | * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN. | ||
| 21098 | |||
| 21099 | * data.c: Avoid integer truncation in expressions involving floats. | ||
| 21100 | * data.c: Include <intprops.h>. | ||
| 21101 | (arith_driver): When there's an integer overflow in an expression | ||
| 21102 | involving floating point, convert the integers to floating point | ||
| 21103 | so that the resulting value does not suffer from catastrophic | ||
| 21104 | integer truncation. For example, on a 64-bit host (* 4 | ||
| 21105 | most-negative-fixnum 0.5) should yield about -4.6e+18, not zero. | ||
| 21106 | Do not rely on undefined behavior after integer overflow. | ||
| 21107 | |||
| 21108 | merge count_size_as_multibyte, parse_str_to_multibyte | ||
| 21109 | * character.c, character.h (count_size_as_multibyte): | ||
| 21110 | Rename from parse_str_to_multibyte; all uses changed. | ||
| 21111 | Check for integer overflow. | ||
| 21112 | * insdel.c, lisp.h (count_size_as_multibyte): Remove, | ||
| 21113 | since it's now a duplicate of the other. This is more of | ||
| 21114 | a character than a buffer op, so better that it's in character.c. | ||
| 21115 | * fns.c, print.c: Adjust to above changes. | ||
| 21116 | |||
| 21117 | 2011-05-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 21118 | |||
| 21119 | * xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup. | ||
| 21120 | |||
| 21121 | 2011-05-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21122 | |||
| 21123 | * xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings. | ||
| 21124 | (x_handle_selection_request, frame_for_x_selection): Remove unused vars. | ||
| 21125 | (x_clipboard_manager_save): Now static. | ||
| 21126 | (Fx_clipboard_manager_save): Rename local to avoid shadowing. | ||
| 21127 | |||
| 21128 | * fns.c: Fix minor problems prompted by GCC 4.6.0 warnings. | ||
| 21129 | (crypto_hash_function): Now static. | ||
| 21130 | Fix pointer signedness problems. Avoid unnecessary initializations. | ||
| 21131 | |||
| 21132 | 2011-05-27 Chong Yidong <cyd@stupidchicken.com> | ||
| 21133 | |||
| 21134 | * termhooks.h (Vselection_alist): Make it terminal-local. | ||
| 21135 | |||
| 21136 | * terminal.c (create_terminal): Initialize it. | ||
| 21137 | |||
| 21138 | * xselect.c: Support for clipboard managers. | ||
| 21139 | (Vselection_alist): Move to termhooks.h as terminal-local var. | ||
| 21140 | (LOCAL_SELECTION): New macro. | ||
| 21141 | (x_atom_to_symbol): Handle x_display_info_for_display fail case. | ||
| 21142 | (symbol_to_x_atom): Remove gratuitous arg. | ||
| 21143 | (x_handle_selection_request, lisp_data_to_selection_data) | ||
| 21144 | (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed. | ||
| 21145 | (x_own_selection, x_get_local_selection, x_convert_selection): | ||
| 21146 | New arg, specifying work frame. Use terminal-local Vselection_alist. | ||
| 21147 | (some_frame_on_display): Delete unused function. | ||
| 21148 | (Fx_own_selection_internal, Fx_get_selection_internal) | ||
| 21149 | (Fx_disown_selection_internal, Fx_selection_owner_p) | ||
| 21150 | (Fx_selection_exists_p): New optional frame arg. | ||
| 21151 | (frame_for_x_selection, Fx_clipboard_manager_save): New functions. | ||
| 21152 | (x_handle_selection_clear): Don't treat other terminals with the | ||
| 21153 | same keyboard specially. Use the terminal-local Vselection_alist. | ||
| 21154 | (x_clear_frame_selections): Use Frun_hook_with_args. | ||
| 21155 | |||
| 21156 | * xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms. | ||
| 21157 | |||
| 21158 | * xterm.h: Add support for those atoms. | ||
| 21159 | |||
| 21160 | 2011-05-26 Chong Yidong <cyd@stupidchicken.com> | ||
| 21161 | |||
| 21162 | * xselect.c: ICCCM-compliant handling of MULTIPLE targets. | ||
| 21163 | (converted_selections, conversion_fail_tag): New global variables. | ||
| 21164 | (x_selection_request_lisp_error): Free the above. | ||
| 21165 | (x_get_local_selection): Remove unnecessary code. | ||
| 21166 | (x_reply_selection_request): Args changed; handle arbitrary array | ||
| 21167 | of converted selections stored in converted_selections. | ||
| 21168 | Separate the XChangeProperty and SelectionNotify steps. | ||
| 21169 | (x_handle_selection_request): Rewrite to handle MULTIPLE target. | ||
| 21170 | (x_convert_selection): New function. | ||
| 21171 | (x_handle_selection_event): Simplify. | ||
| 21172 | (x_get_foreign_selection): Don't ignore incoming requests while | ||
| 21173 | waiting for an answer; this will fail when we implement | ||
| 21174 | SAVE_TARGETS, and seems unnecessary anyway. | ||
| 21175 | (selection_data_to_lisp_data): Recognize ATOM_PAIR type. | ||
| 21176 | (Vx_sent_selection_functions): Doc fix. | ||
| 21177 | |||
| 21178 | 2011-05-26 Leo Liu <sdl.web@gmail.com> | ||
| 21179 | |||
| 21180 | * editfns.c (Ftranspose_regions): Allow empty regions. (Bug#8699) | ||
| 21181 | |||
| 21182 | 2011-05-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 21183 | |||
| 21184 | * dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p. | ||
| 21185 | |||
| 21186 | * dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row | ||
| 21187 | for fringe update if it has periodic bitmap. | ||
| 21188 | (row_equal_p): Also compare left_fringe_offset, right_fringe_offset, | ||
| 21189 | and fringe_bitmap_periodic_p. | ||
| 21190 | |||
| 21191 | * fringe.c (get_fringe_bitmap_data): New function. | ||
| 21192 | (draw_fringe_bitmap_1, update_window_fringes): Use it. | ||
| 21193 | (update_window_fringes): Record periodicity of fringe bitmap in glyph | ||
| 21194 | row. Mark glyph row for fringe update if periodicity changed. | ||
| 21195 | |||
| 21196 | * xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row | ||
| 21197 | for fringe update unless it has periodic bitmap. | ||
| 21198 | |||
| 21199 | 2011-05-25 Kenichi Handa <handa@m17n.org> | ||
| 21200 | |||
| 21201 | * xdisp.c (get_next_display_element): Set correct it->face_id for | ||
| 21202 | a static composition. | ||
| 21203 | |||
| 21204 | 2011-05-24 Leo Liu <sdl.web@gmail.com> | ||
| 21205 | |||
| 21206 | * deps.mk (fns.o): | ||
| 21207 | * makefile.w32-in ($(BLD)/fns.$(O)): Include sha1.h. | ||
| 21208 | |||
| 21209 | * fns.c (crypto_hash_function, Fsha1): New function. | ||
| 21210 | (Fmd5): Use crypto_hash_function. | ||
| 21211 | (syms_of_fns): Add Ssha1. | ||
| 21212 | |||
| 21213 | 2011-05-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21214 | |||
| 21215 | * gnutls.c: Remove unused macros. | ||
| 21216 | (fn_gnutls_transport_set_lowat, fn_gnutls_transport_set_pull_function): | ||
| 21217 | (fn_gnutls_transport_set_push_function) [!WINDOWSNT]: | ||
| 21218 | Remove macros that are defined and never used. | ||
| 21219 | Caught by gcc -Wunused-macros (GCC 4.6.0, Fedora 14). | ||
| 21220 | |||
| 21221 | 2011-05-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 21222 | |||
| 21223 | * xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS. | ||
| 21224 | (Fx_get_selection_internal): Minor cleanup. | ||
| 21225 | (Fx_own_selection_internal): Rename arguments for consistency with | ||
| 21226 | select.el. | ||
| 21227 | |||
| 21228 | 2011-05-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21229 | |||
| 21230 | * xselect.c (QSAVE_TARGETS): New static var, to fix build failure. | ||
| 21231 | |||
| 21232 | 2011-05-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 21233 | |||
| 21234 | * xselect.c (syms_of_xselect): Include character.h; use DEFSYM. | ||
| 21235 | |||
| 21236 | 2011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 21237 | |||
| 21238 | * dispnew.c (scrolling_window): Don't exclude the case that the | ||
| 21239 | last enabled row in the desired matrix touches the bottom boundary. | ||
| 21240 | |||
| 21241 | 2011-05-21 Glenn Morris <rgm@gnu.org> | ||
| 21242 | |||
| 21243 | * Makefile.in ($(etc)/DOC): Make second command line even shorter. | ||
| 21244 | (SOME_MACHINE_OBJECTS): Replace FONT_OBJ by its maximal expansion, | ||
| 21245 | and add some more files. | ||
| 21246 | |||
| 21247 | 2011-05-20 Eli Zaretskii <eliz@gnu.org> | ||
| 21248 | |||
| 21249 | * callproc.c (Fcall_process) [MSDOS]: Fix arguments to | ||
| 21250 | report_file_error introduced by the change from 2011-05-07. | ||
| 21251 | |||
| 21252 | 2011-05-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21253 | |||
| 21254 | * systime.h (Time): Define only if emacs is defined. | ||
| 21255 | This is to allow ../lib-src/profile.c to be compiled on FreeBSD, | ||
| 21256 | where the include path doesn't have X11/X.h by default. See | ||
| 21257 | <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00561.html>. | ||
| 21258 | |||
| 21259 | 2011-05-20 Kenichi Handa <handa@m17n.org> | ||
| 21260 | |||
| 21261 | * composite.c (find_automatic_composition): Fix previous change. | ||
| 21262 | |||
| 21263 | 2011-05-20 Glenn Morris <rgm@gnu.org> | ||
| 21264 | |||
| 21265 | * lisp.mk: New file, split from Makefile.in. | ||
| 21266 | * Makefile.in (lisp): Move to separate file, inserted by @lisp_frag@. | ||
| 21267 | (shortlisp): Remove. | ||
| 21268 | ($(etc)/DOC): Edit lisp.mk rather than using $shortlisp. | ||
| 21269 | |||
| 21270 | 2011-05-19 Glenn Morris <rgm@gnu.org> | ||
| 21271 | |||
| 21272 | * Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT) | ||
| 21273 | (REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) | ||
| 21274 | (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove. | ||
| 21275 | (lisp): Set the order to that of loadup.el. | ||
| 21276 | (shortlisp): Make it a copy of $lisp. | ||
| 21277 | (SOME_MACHINE_LISP): Remove. | ||
| 21278 | ($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too. | ||
| 21279 | Use just $shortlisp, not $SOME_MACHINE_LISP too. | ||
| 21280 | |||
| 21281 | 2011-05-18 Kenichi Handa <handa@m17n.org> | ||
| 21282 | |||
| 21283 | * composite.c (CHAR_COMPOSABLE_P): Add more check for efficiency. | ||
| 21284 | (BACKWARD_CHAR): Wrap the arg STOP by parenthesis. | ||
| 21285 | (find_automatic_composition): Mostly rewrite for efficiency. | ||
| 21286 | |||
| 21287 | 2011-05-18 Juanma Barranquero <lekktu@gmail.com> | ||
| 21288 | |||
| 21289 | * makefile.w32-in: Update dependencies. | ||
| 21290 | |||
| 21291 | 2011-05-18 Christoph Scholtes <cschol2112@googlemail.com> | ||
| 21292 | |||
| 21293 | * menu.c: Include limits.h (fixes the MS-Windows build broken by | ||
| 21294 | 2011-06-18T18:49:19Z!cyd@stupidchicken.com). | ||
| 21295 | |||
| 21296 | 2011-05-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21297 | |||
| 21298 | Fix some integer overflow issues, such as string length overflow. | ||
| 21299 | |||
| 21300 | * insdel.c (count_size_as_multibyte): Check for string overflow. | ||
| 21301 | |||
| 21302 | * character.c (lisp_string_width): Check for string overflow. | ||
| 21303 | Use EMACS_INT, not int, for string indexes and lengths; in | ||
| 21304 | particular, 2nd arg is now EMACS_INT, not int. Do not crash if | ||
| 21305 | the resulting string length overflows an EMACS_INT; instead, | ||
| 21306 | report a string overflow if no precision given. When checking for | ||
| 21307 | precision exhaustion, use a check that cannot possibly have | ||
| 21308 | integer overflow. (Bug#8675) | ||
| 21309 | * character.h (lisp_string_width): Adjust to new signature. | ||
| 21310 | |||
| 21311 | * alloc.c (string_overflow): New function. | ||
| 21312 | (Fmake_string): Use it. This doesn't change behavior, but saves | ||
| 21313 | a few bytes and will simplify future changes. | ||
| 21314 | * character.c (string_escape_byte8): Likewise. | ||
| 21315 | * lisp.h (string_overflow): New decl. | ||
| 21316 | |||
| 21317 | Fixups, following up to the user-interface timestamp change. | ||
| 21318 | * nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time | ||
| 21319 | for UI timestamps, instead of unsigned long. | ||
| 21320 | * msdos.c (mouse_get_pos): Likewise. | ||
| 21321 | * w32inevt.c (movement_time, w32_console_mouse_position): Likewise. | ||
| 21322 | * w32gui.h (Time): Define by including "systime.h" rather than by | ||
| 21323 | declaring it ourselves. (Bug#8664) | ||
| 21324 | |||
| 21325 | * dispextern.h (struct image): Don't assume time_t <= unsigned long. | ||
| 21326 | * image.c (clear_image_cache): Likewise. | ||
| 21327 | |||
| 21328 | * term.c (term_mouse_position): Don't assume time_t wraparound. | ||
| 21329 | |||
| 21330 | Be more systematic about user-interface timestamps. | ||
| 21331 | Before, the code sometimes used 'Time', sometimes 'unsigned long', | ||
| 21332 | and sometimes 'EMACS_UINT', to represent these timestamps. | ||
| 21333 | This change causes it to use 'Time' uniformly, as that's what X uses. | ||
| 21334 | This makes the code easier to follow, and makes it easier to catch | ||
| 21335 | integer overflow bugs such as Bug#8664. | ||
| 21336 | * frame.c (Fmouse_position, Fmouse_pixel_position): | ||
| 21337 | Use Time, not unsigned long, for user-interface timestamps. | ||
| 21338 | * keyboard.c (last_event_timestamp, kbd_buffer_get_event): Likewise. | ||
| 21339 | (button_down_time, make_lispy_position, make_lispy_movement): Likewise. | ||
| 21340 | * keyboard.h (last_event_timestamp): Likewise. | ||
| 21341 | * menu.c (Fx_popup_menu) [!HAVE_X_WINDOWS]: Likewise. | ||
| 21342 | * menu.h (xmenu_show): Likewise. | ||
| 21343 | * term.c (term_mouse_position): Likewise. | ||
| 21344 | * termhooks.h (struct input_event.timestamp): Likewise. | ||
| 21345 | (struct terminal.mouse_position_hook): Likewise. | ||
| 21346 | * xmenu.c (create_and_show_popup_menu, xmenu_show): Likewise. | ||
| 21347 | * xterm.c (XTmouse_position, x_scroll_bar_report_motion): Likewise. | ||
| 21348 | * systime.h (Time): New decl. Pull it in from <X11/X.h> if | ||
| 21349 | HAVE_X_WINDOWS, otherwise define it as unsigned long, which is | ||
| 21350 | what it was before. | ||
| 21351 | * menu.h, termhooks.h: Include "systime.h", for Time. | ||
| 21352 | |||
| 21353 | * keyboard.c (make_lispy_event): Fix problem in integer overflow. | ||
| 21354 | Don't assume that the difference between two unsigned long values | ||
| 21355 | can fit into an integer. At this point, we know button_down_time | ||
| 21356 | <= event->timestamp, so the difference must be nonnegative, so | ||
| 21357 | there's no need to cast the result if double-click-time is | ||
| 21358 | nonnegative, as it should be; check that it's nonnegative, just in | ||
| 21359 | case. This bug is triggered when events are more than 2**31 ms | ||
| 21360 | apart (about 25 days). (Bug#8664) | ||
| 21361 | |||
| 21362 | * xselect.c (last_event_timestamp): Remove duplicate decl. | ||
| 21363 | (x_own_selection): Remove needless cast to unsigned long. | ||
| 21364 | |||
| 21365 | * xmenu.c (set_frame_menubar): Use int, not EMACS_UINT, for indexes | ||
| 21366 | that always fit in int. Use a sentinel instead of a counter, to | ||
| 21367 | avoid a temp and to allay GCC's concerns about possible int overflow. | ||
| 21368 | * frame.h (struct frame): Use int for menu_bar_items_used | ||
| 21369 | instead of EMACS_INT, since it always fits in int. | ||
| 21370 | |||
| 21371 | * menu.c (grow_menu_items): Check for int overflow. | ||
| 21372 | |||
| 21373 | * xmenu.c (set_frame_menubar): Don't mishandle vectors with no nils. | ||
| 21374 | |||
| 21375 | * xterm.c: Use EMACS_INT for Emacs modifiers, and int for X modifiers. | ||
| 21376 | Before, the code was not consistent. These values cannot exceed | ||
| 21377 | 2**31 - 1 so there's no need to make them unsigned. | ||
| 21378 | (x_x_to_emacs_modifiers): Accept int and return EMACS_INT. | ||
| 21379 | (x_emacs_to_x_modifiers): Accept EMACS_INT and return int. | ||
| 21380 | (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Reject non-integers | ||
| 21381 | as modifiers. | ||
| 21382 | * xterm.h (x_x_to_emacs_modifiers): Adjust to signature change. | ||
| 21383 | |||
| 21384 | * lisp.h (XINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_INT. | ||
| 21385 | (XUINT) [USE_LISP_UNION_TYPE]: Cast to EMACS_UINT. | ||
| 21386 | Otherwise, GCC 4.6.0 warns about printf (pI, XINT (...)), | ||
| 21387 | presumably because the widths might not match. | ||
| 21388 | |||
| 21389 | * window.c (size_window): Avoid needless test at loop start. | ||
| 21390 | |||
| 21391 | 2011-05-18 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change) | ||
| 21392 | |||
| 21393 | * term.c (Fresume_tty): Restore hooks before reinitializing (bug#8687). | ||
| 21394 | |||
| 21395 | 2011-05-12 Drew Adams <drew.adams@oracle.com> | ||
| 21396 | |||
| 21397 | * textprop.c (Fprevious_single_char_property_change): Doc fix (bug#8655). | ||
| 21398 | |||
| 21399 | 2011-05-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 21400 | |||
| 21401 | * w32term.c (w32_draw_fringe_bitmap): Rename local vars `left' and | ||
| 21402 | `width' to `bar_area_x' and `bar_area_width', respectively. | ||
| 21403 | (x_scroll_run): Take account of fringe background extension. | ||
| 21404 | |||
| 21405 | * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]: | ||
| 21406 | Rename local vars `left' and `width' to `bar_area_x' and | ||
| 21407 | `bar_area_width', respectively. | ||
| 21408 | (x_scroll_run) [USE_TOOLKIT_SCROLL_BARS]: Take account of fringe | ||
| 21409 | background extension. | ||
| 21410 | |||
| 21411 | 2011-05-10 Jim Meyering <meyering@redhat.com> | ||
| 21412 | |||
| 21413 | * xdisp.c (x_intersect_rectangles): Fix typo "the the -> the". | ||
| 21414 | |||
| 21415 | 2011-05-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 21416 | |||
| 21417 | * image.c (Finit_image_library): Return t for built-in image types, | ||
| 21418 | like pbm and xbm. (Bug#8640) | ||
| 21419 | |||
| 21420 | 2011-05-09 Andreas Schwab <schwab@linux-m68k.org> | ||
| 21421 | |||
| 21422 | * w32menu.c (set_frame_menubar): Fix submenu allocation. | ||
| 21423 | |||
| 21424 | 2011-05-07 Eli Zaretskii <eliz@gnu.org> | ||
| 21425 | |||
| 21426 | * w32console.c (Fset_screen_color): Doc fix. | ||
| 21427 | (Fget_screen_color): New function. | ||
| 21428 | (syms_of_ntterm): Defsubr it. | ||
| 21429 | |||
| 21430 | * callproc.c (call_process_cleanup) [MSDOS]: Don't close and | ||
| 21431 | unlink the temporary file if Fcall_process didn't create it in the | ||
| 21432 | first place. | ||
| 21433 | (Fcall_process) [MSDOS]: Don't create tempfile if stdout of the | ||
| 21434 | child process will be redirected to a file specified with `:file'. | ||
| 21435 | Don't try to re-open tempfile in that case, and set fd[0] to -1 as | ||
| 21436 | cue to call_process_cleanup not to close that handle. | ||
| 21437 | |||
| 21438 | 2011-05-07 Ben Key <bkey76@gmail.com> | ||
| 21439 | |||
| 21440 | * makefile.w32-in: The bootstrap-temacs rule now makes use of | ||
| 21441 | one of two shell specific rules, either bootstrap-temacs-CMD or | ||
| 21442 | bootstrap-temacs-SH. The bootstrap-temacs-SH rule is identical | ||
| 21443 | to the previous implementation of the bootstrap-temacs rule. | ||
| 21444 | The bootstrap-temacs-CMD rule is similar to the previous | ||
| 21445 | implementation of the bootstrap-temacs rule except that it | ||
| 21446 | makes use of the ESC_CFLAGS variable instead of the CFLAGS | ||
| 21447 | variable. | ||
| 21448 | |||
| 21449 | These changes, along with some changes to nt/configure.bat, | ||
| 21450 | nt/gmake.defs, and nt/nmake.defs, are required to extend my | ||
| 21451 | earlier fix to add support for --cflags and --ldflags options | ||
| 21452 | that include quotes so that it works whether make uses cmd or | ||
| 21453 | sh as the shell. | ||
| 21454 | |||
| 21455 | 2011-05-06 Michael Albinus <michael.albinus@gmx.de> | ||
| 21456 | |||
| 21457 | * dbusbind.c (QCdbus_type_unix_fd): Declare static. | ||
| 21458 | (xd_remove_watch): Don't check QCdbus_type_unix_fd for SYMBOLP, it | ||
| 21459 | is a constant. | ||
| 21460 | (Fdbus_init_bus, xd_read_queued_messages): Bus can be a symbol or | ||
| 21461 | a string. Handle both cases. | ||
| 21462 | (Fdbus_call_method_asynchronously, Fdbus_register_signal) | ||
| 21463 | (Fdbus_register_method): Use Qinvalid_function. | ||
| 21464 | |||
| 21465 | 2011-05-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 21466 | |||
| 21467 | * makefile.w32-in: Update dependencies. | ||
| 21468 | (LISP_H): Add inttypes.h and stdin.h. | ||
| 21469 | (PROCESS_H): Add unistd.h. | ||
| 21470 | |||
| 21471 | 2011-05-06 Eli Zaretskii <eliz@gnu.org> | ||
| 21472 | |||
| 21473 | * lread.c: Include limits.h (fixes the MS-Windows build broken by | ||
| 21474 | 2011-05-06T07:13:19Z!eggert@cs.ucla.edu). | ||
| 21475 | |||
| 21476 | 2011-05-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21477 | |||
| 21478 | * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. | ||
| 21479 | |||
| 21480 | * term.c (vfatal): Remove stray call to va_end. | ||
| 21481 | It's not needed and the C Standard doesn't allow it here anyway. | ||
| 21482 | |||
| 21483 | Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux. | ||
| 21484 | * eval.c (verror): doprnt a copy of ap, not the original. (Bug#8545) | ||
| 21485 | |||
| 21486 | * eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM | ||
| 21487 | bytes. | ||
| 21488 | |||
| 21489 | * term.c: Don't include <stdarg.h>, as <lisp.h> does that. | ||
| 21490 | |||
| 21491 | * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering. | ||
| 21492 | |||
| 21493 | * process.c (Fformat_network_address): Fix typo: args2 -> *args2. | ||
| 21494 | |||
| 21495 | * xmenu.c (set_frame_menubar): Fix typo: int * -> int (3 times). | ||
| 21496 | |||
| 21497 | * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601). | ||
| 21498 | |||
| 21499 | * charset.h (struct charset.code_space): Now has 15 elements, not 16. | ||
| 21500 | * charset.c (Fdefine_charset_internal): Don't initialize | ||
| 21501 | charset.code_space[15]. The value was garbage, on hosts with | ||
| 21502 | 32-bit int (Bug#8600). | ||
| 21503 | |||
| 21504 | * lread.c (read_integer): Be more consistent with string-to-number. | ||
| 21505 | Use string_to_number to do the actual conversion; this avoids | ||
| 21506 | rounding errors and fixes some other screwups. Without this fix, | ||
| 21507 | for example, #x1fffffffffffffff was misread as -2305843009213693952. | ||
| 21508 | (digit_to_number): Move earlier, for benefit of read_integer. | ||
| 21509 | Return -1 if the digit is out of range for the base, -2 if it is | ||
| 21510 | not a digit in any supported base. (Bug#8602) | ||
| 21511 | |||
| 21512 | * doprnt.c (doprnt): Support arbitrary pI values, such as "I64". | ||
| 21513 | |||
| 21514 | * dispnew.c (scrolling_window): Return 1 if we scrolled, | ||
| 21515 | to match comment at start of function. This also removes a | ||
| 21516 | GCC warning about overflow in a 32+64-bit port. | ||
| 21517 | |||
| 21518 | * lisp.h (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Simplify. | ||
| 21519 | |||
| 21520 | * dbusbind.c: Do not use XPNTR on a value that may be an integer. | ||
| 21521 | Reported by Stefan Monnier in | ||
| 21522 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00919.html>. | ||
| 21523 | (xd_remove_watch, Fdbus_init_bus, xd_read_queued_messages): | ||
| 21524 | Use SYMBOLP-guarded XSYMBOL, not XPNTR. | ||
| 21525 | |||
| 21526 | * lisp.h (EMACS_INTPTR): Remove. All uses changed to intptr_t. | ||
| 21527 | (EMACS_UINTPTR): Likewise, with uintptr_t. | ||
| 21528 | |||
| 21529 | * lisp.h: Prefer 64-bit EMACS_INT if available. | ||
| 21530 | (EMACS_INT, EMACS_UINT, BITS_PER_EMACS_INT, pI): Define to 64-bit | ||
| 21531 | on 32-bit hosts that have 64-bit int, so that they can access | ||
| 21532 | large files. | ||
| 21533 | However, temporarily disable this change unless the temporary | ||
| 21534 | symbol WIDE_EMACS_INT is defined. | ||
| 21535 | |||
| 21536 | * lread.c, process.c: Do not include <inttypes.h>; lisp.h does it now. | ||
| 21537 | |||
| 21538 | Prefer intptr_t/uintptr_t for integers the same widths as pointers. | ||
| 21539 | This removes an assumption that EMACS_INT and long are the same | ||
| 21540 | width as pointers. The assumption is true for Emacs porting targets | ||
| 21541 | now, but we want to make other targets possible. | ||
| 21542 | * lisp.h: Include <inttypes.h>, for INTPTR_MAX, UINTPTR_MAX. | ||
| 21543 | (EMACS_INTPTR, EMACS_UINTPTR): New macros. | ||
| 21544 | In the rest of the code, change types of integers that hold casted | ||
| 21545 | pointers to EMACS_INTPTR and EMACS_UINTPTR, systematically | ||
| 21546 | replacing EMACS_INT, long, EMACS_UINT, and unsigned long. | ||
| 21547 | (XTYPE): Don't cast arg to EMACS_UINT; normally is not needed. | ||
| 21548 | (XSET): Cast type of XTYPE arg to EMACS_INTPTR; it is needed here. | ||
| 21549 | No need to cast type when ORing. | ||
| 21550 | (XPNTR): Return a value of type EMACS_INTPTR or EMACS_UINTPTR. | ||
| 21551 | * alloc.c (lisp_align_malloc): Remove a no-longer-needed cast. | ||
| 21552 | * doc.c (store_function_docstring): Use EMACS_INTPTR, so as not to | ||
| 21553 | assume EMACS_INT is the same width as char *. | ||
| 21554 | * gtkutil.c (xg_gtk_scroll_destroy, xg_tool_bar_button_cb): | ||
| 21555 | (xg_tool_bar_callback, xg_tool_bar_help_callback, xg_make_tool_item): | ||
| 21556 | Remove no-longer-needed casts. | ||
| 21557 | (xg_create_scroll_bar, xg_tool_bar_button_cb, xg_tool_bar_callback): | ||
| 21558 | (xg_tool_bar_help_callback, xg_make_tool_item): | ||
| 21559 | Use EMACS_INTPTR to hold an integer | ||
| 21560 | that will be cast to void *; this can avoid a GCC warning | ||
| 21561 | if EMACS_INT is not the same width as void *. | ||
| 21562 | * menu.c (find_and_call_menu_selection): Remove no-longer-needed cast. | ||
| 21563 | * xdisp.c (display_echo_area_1, resize_mini_window_1): | ||
| 21564 | (current_message_1, set_message_1): | ||
| 21565 | Use a local to convert to proper width without a cast. | ||
| 21566 | * xmenu.c (dialog_selection_callback): Likewise. | ||
| 21567 | |||
| 21568 | * sysdep.c (get_random): Don't assume EMACS_INT is no wider than long. | ||
| 21569 | Also, don't assume VALBITS / RAND_BITS is less than 5, | ||
| 21570 | and don't rely on undefined behavior when shifting a 1 left into | ||
| 21571 | the sign bit. | ||
| 21572 | * lisp.h (get_random): Change signature to match. | ||
| 21573 | |||
| 21574 | * lread.c (hash_string): Use size_t, not int, for hash computation. | ||
| 21575 | Normally we prefer signed values; but hashing is special, because | ||
| 21576 | it's better to use unsigned division on hash table sizes so that | ||
| 21577 | the remainder is nonnegative. Also, size_t is the natural width | ||
| 21578 | for hashing into memory. The previous code used 'int', which doesn't | ||
| 21579 | retain enough info to hash well into very large tables. | ||
| 21580 | (oblookup, oblookup_last_bucket_number, Funintern): Likewise. | ||
| 21581 | |||
| 21582 | * dbusbind.c: Don't possibly lose pointer info when converting. | ||
| 21583 | (xd_remove_watch, Fdbus_init_bus, xd_read_queued_messages): | ||
| 21584 | Use XPNTR rather than XHASH, so that the high-order bits of | ||
| 21585 | the pointer aren't lost when converting through void *. | ||
| 21586 | |||
| 21587 | * eval.c (Fautoload): Don't double-shift a pointer. | ||
| 21588 | |||
| 21589 | * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. | ||
| 21590 | |||
| 21591 | 2011-05-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 21592 | |||
| 21593 | * gnutls.c (DEF_GNUTLS_FN): | ||
| 21594 | * image.c (DEF_IMGLIB_FN): Make function pointers static. | ||
| 21595 | |||
| 21596 | 2011-05-05 Andreas Schwab <schwab@linux-m68k.org> | ||
| 21597 | |||
| 21598 | * lread.c (lisp_file_lexically_bound_p): Stop scanning at end | ||
| 21599 | marker. (Bug#8610) | ||
| 21600 | |||
| 21601 | 2011-05-05 Eli Zaretskii <eliz@gnu.org> | ||
| 21602 | |||
| 21603 | * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]: | ||
| 21604 | New version that can reserve upto 2GB of heap space. | ||
| 21605 | |||
| 21606 | 2011-05-05 Chong Yidong <cyd@stupidchicken.com> | ||
| 21607 | |||
| 21608 | * nsfns.m (Fns_read_file_name): Doc fix (Bug#8534). | ||
| 21609 | |||
| 21610 | 2011-05-05 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 21611 | |||
| 21612 | * gnutls.c (fn_gnutls_certificate_set_x509_key_file): Add alias to | ||
| 21613 | `gnutls_certificate_set_x509_key_file'. | ||
| 21614 | |||
| 21615 | 2011-05-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 21616 | |||
| 21617 | * makefile.w32-in ($(BLD)/image.$(O), $(BLD)/process.$(O)): | ||
| 21618 | Update dependencies. | ||
| 21619 | |||
| 21620 | 2011-05-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 21621 | |||
| 21622 | * gnutls.h (emacs_gnutls_write, emacs_gnutls_read): | ||
| 21623 | * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): | ||
| 21624 | Remove unused parameter `fildes'. | ||
| 21625 | * process.c (read_process_output, send_process): Don't pass it. | ||
| 21626 | |||
| 21627 | 2011-05-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 21628 | |||
| 21629 | Fix previous change: the library cache is defined in w32.c. | ||
| 21630 | * image.c (CACHE_IMAGE_TYPE) [!HAVE_NTGUI]: Define to noop. | ||
| 21631 | (Finit_image_library): Wrap Vlibrary_cache on "#ifdef HAVE_NTGUI". | ||
| 21632 | |||
| 21633 | 2011-05-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 21634 | |||
| 21635 | Implement dynamic loading of GnuTLS on Windows. | ||
| 21636 | |||
| 21637 | * gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro. | ||
| 21638 | (emacs_gnutls_write, emacs_gnutls_read): Mark as extern. | ||
| 21639 | (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): | ||
| 21640 | Declare. | ||
| 21641 | |||
| 21642 | * gnutls.c (Qgnutls_dll): Define. | ||
| 21643 | (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros. | ||
| 21644 | (gnutls_*): Declare function pointers. | ||
| 21645 | (init_gnutls_functions): New function to initialize function pointers. | ||
| 21646 | (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit) | ||
| 21647 | (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers. | ||
| 21648 | (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): | ||
| 21649 | Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno. | ||
| 21650 | (emacs_gnutls_write, emacs_gnutls_read) | ||
| 21651 | (emacs_gnutls_handle_error, Fgnutls_error_fatalp) | ||
| 21652 | (Fgnutls_available_p): New function. | ||
| 21653 | (Fgnutls_boot): Call Fgnutls_available_p. Use function pointers. | ||
| 21654 | (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it. | ||
| 21655 | (syms_of_gnutls) <Sgnutls_available_p>: defsubr it. | ||
| 21656 | |||
| 21657 | * image.c: Include w32.h. | ||
| 21658 | (Vimage_type_cache): Delete. | ||
| 21659 | (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it. | ||
| 21660 | (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead. | ||
| 21661 | (w32_delayed_load): Move to w32.c. | ||
| 21662 | |||
| 21663 | * w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare. | ||
| 21664 | |||
| 21665 | * w32.c (QCloaded_from, Vlibrary_cache): Define. | ||
| 21666 | (w32_delayed_load): Move from image.c. When loading a library, record | ||
| 21667 | its filename in the :loaded-from property of the library id. | ||
| 21668 | (globals_of_w32) <QCloaded_from, Vlibrary_cache>: | ||
| 21669 | Initialize and staticpro them. | ||
| 21670 | (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions. | ||
| 21671 | |||
| 21672 | * process.c: Include lisp.h before w32.h, not after. | ||
| 21673 | (wait_reading_process_output): Call emacs_gnutls_record_check_pending | ||
| 21674 | instead of gnutls_record_check_pending. | ||
| 21675 | |||
| 21676 | * callproc.c, emacs.c: Include lisp.h before w32.h, not after. | ||
| 21677 | |||
| 21678 | 2011-05-04 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 21679 | |||
| 21680 | * gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options | ||
| 21681 | instead of :keyfiles. Give GnuTLS the keylist and the CRL lists | ||
| 21682 | as passed in. | ||
| 21683 | |||
| 21684 | 2011-05-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 21685 | |||
| 21686 | * xterm.c (x_set_frame_alpha): Do not set property on anything | ||
| 21687 | else than FRAME_X_OUTER_WINDOW (Bug#8608). | ||
| 21688 | |||
| 21689 | 2011-05-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 21690 | |||
| 21691 | * sysdep.c (get_tty_size) [WINDOWSNT]: Implement. (Bug#8596) | ||
| 21692 | |||
| 21693 | 2011-05-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 21694 | |||
| 21695 | * gnutls.c (Qgnutls_log_level, Qgnutls_code, Qgnutls_anon) | ||
| 21696 | (Qgnutls_x509pki, Qgnutls_e_interrupted, Qgnutls_e_again) | ||
| 21697 | (Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake) | ||
| 21698 | (gnutls_global_initialized, Qgnutls_bootprop_priority) | ||
| 21699 | (Qgnutls_bootprop_trustfiles, Qgnutls_bootprop_keyfiles) | ||
| 21700 | (Qgnutls_bootprop_callbacks, Qgnutls_bootprop_loglevel) | ||
| 21701 | (Qgnutls_bootprop_hostname, Qgnutls_bootprop_verify_flags) | ||
| 21702 | (Qgnutls_bootprop_verify_error, Qgnutls_bootprop_verify_hostname_error) | ||
| 21703 | (Qgnutls_bootprop_callbacks_verify): Make static. | ||
| 21704 | |||
| 21705 | 2011-05-01 Andreas Schwab <schwab@linux-m68k.org> | ||
| 21706 | |||
| 21707 | * callproc.c: Indentation fixup. | ||
| 21708 | |||
| 21709 | * sysdep.c (wait_for_termination_1): Make static. | ||
| 21710 | (wait_for_termination, interruptible_wait_for_termination): | ||
| 21711 | Move after wait_for_termination_1. | ||
| 21712 | |||
| 21713 | 2011-05-01 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 21714 | |||
| 21715 | * sysdep.c (interruptible_wait_for_termination): New function | ||
| 21716 | which is like wait_for_termination, but allows keyboard | ||
| 21717 | interruptions. | ||
| 21718 | |||
| 21719 | * callproc.c (Fcall_process): Add (:file "file") as an option for | ||
| 21720 | the STDOUT buffer. | ||
| 21721 | (Fcall_process_region): Ditto. | ||
| 21722 | |||
| 21723 | 2011-04-30 Eli Zaretskii <eliz@gnu.org> | ||
| 21724 | |||
| 21725 | * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Use `ASIZE (FOO)' | ||
| 21726 | rather than `XVECTOR (FOO)->size'. | ||
| 21727 | |||
| 21728 | * process.c: Remove HAVE_INTTYPES_H condition from inclusion of | ||
| 21729 | inttypes.h, as a gnulib replacement is used if it not available in | ||
| 21730 | system headers. | ||
| 21731 | |||
| 21732 | 2011-04-21 Eli Zaretskii <eliz@gnu.org> | ||
| 21733 | |||
| 21734 | Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files. | ||
| 21735 | * fileio.c (Finsert_file_contents): Don't limit file size to 1/4 | ||
| 21736 | of MOST_POSITIVE_FIXNUM. (Bug#8528) | ||
| 21737 | |||
| 21738 | * coding.c (coding_alloc_by_realloc): Error out if destination | ||
| 21739 | will grow beyond MOST_POSITIVE_FIXNUM. | ||
| 21740 | (decode_coding_emacs_mule): Abort if there isn't enough place in | ||
| 21741 | charbuf for the composition carryover bytes. Reserve an extra | ||
| 21742 | space for up to 2 characters produced in a loop. | ||
| 21743 | (decode_coding_iso_2022): Abort if there isn't enough place in | ||
| 21744 | charbuf for the composition carryover bytes. | ||
| 21745 | |||
| 21746 | 2011-04-21 Eli Zaretskii <eliz@gnu.org> | ||
| 21747 | |||
| 21748 | * doprnt.c (doprnt) [!HAVE_LONG_LONG_INT]: Error out instead of | ||
| 21749 | aborting when %lld or %lll format is passed. | ||
| 21750 | [!HAVE_UNSIGNED_LONG_LONG_INT]: Error out instead of aborting when | ||
| 21751 | %llo or %llx format is passed. (Bug#8545) | ||
| 21752 | |||
| 21753 | * window.c (window_scroll_line_based): Use a marker instead of | ||
| 21754 | simple variables to record original value of point. (Bug#7952) | ||
| 21755 | |||
| 21756 | * doprnt.c (doprnt): Fix the case where a multibyte sequence | ||
| 21757 | produced by %s or %c overflows available buffer space. (Bug#8545) | ||
| 21758 | |||
| 21759 | 2011-04-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21760 | |||
| 21761 | * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545). | ||
| 21762 | (SIZE_MAX): Move defn after all includes, as they might #define it. | ||
| 21763 | |||
| 21764 | 2011-04-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 21765 | |||
| 21766 | * w32.c (init_environment): Warn about defaulting HOME to C:\. | ||
| 21767 | |||
| 21768 | 2011-04-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 21769 | |||
| 21770 | * keyboard.c (Qdelayed_warnings_hook): Define. | ||
| 21771 | (command_loop_1): Run `delayed-warnings-hook' | ||
| 21772 | if Vdelayed_warnings_list is non-nil. | ||
| 21773 | (syms_of_keyboard) <delayed-warnings-hook>: DEFSYM it. | ||
| 21774 | (syms_of_keyboard) <delayed-warnings-list>: DEFVAR_LISP it. | ||
| 21775 | |||
| 21776 | 2011-04-28 Eli Zaretskii <eliz@gnu.org> | ||
| 21777 | |||
| 21778 | * doprnt.c (doprnt): Don't return value smaller than the buffer | ||
| 21779 | size if the message was truncated. (Bug#8545). | ||
| 21780 | |||
| 21781 | 2011-04-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 21782 | |||
| 21783 | * w32fns.c (Fx_change_window_property, Fx_delete_window_property) | ||
| 21784 | (Fx_window_property): #if-0 the whole functions, not just the bodies. | ||
| 21785 | |||
| 21786 | 2011-04-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21787 | |||
| 21788 | * doprnt.c (doprnt): Support "ll" length modifier, for long long. | ||
| 21789 | |||
| 21790 | 2011-04-27 Juanma Barranquero <lekktu@gmail.com> | ||
| 21791 | |||
| 21792 | * makefile.w32-in: Update dependencies. | ||
| 21793 | |||
| 21794 | 2011-04-27 Eli Zaretskii <eliz@gnu.org> | ||
| 21795 | |||
| 21796 | Improve `doprnt' and its usage. (Bug#8545) | ||
| 21797 | * doprnt.c (doprnt): Make sure `format' is never accessed beyond | ||
| 21798 | `format_end'. Remove support for %l as a conversion specifier. | ||
| 21799 | Don't use xrealloc. Improve diagnostics when the %l size modifier | ||
| 21800 | is used. Update the commentary. | ||
| 21801 | |||
| 21802 | * eval.c (verror): Simplify calculation of size_t. | ||
| 21803 | |||
| 21804 | * coding.c (Ffind_operation_coding_system): Fix diagnostic error | ||
| 21805 | messages. | ||
| 21806 | |||
| 21807 | 2011-04-27 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) | ||
| 21808 | |||
| 21809 | * buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Adjust to aliasing | ||
| 21810 | change. | ||
| 21811 | |||
| 21812 | 2011-04-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21813 | |||
| 21814 | * nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF. | ||
| 21815 | This makes this file independent of the recent pseudovector change. | ||
| 21816 | |||
| 21817 | 2011-04-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21818 | |||
| 21819 | * keyboard.c (handle_user_signal): Fix pointer signedness problem. | ||
| 21820 | |||
| 21821 | * gnutls.c (emacs_gnutls_handle_error): Remove unused local. | ||
| 21822 | (Fgnutls_boot): gnutls_certificate_verify_peers2 wants unsigned *. | ||
| 21823 | Remove unused local. | ||
| 21824 | (emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0. | ||
| 21825 | |||
| 21826 | * lisp.h: Fix a problem with aliasing and vector headers. (Bug#8546) | ||
| 21827 | GCC 4.6.0 optimizes based on type-based alias analysis. | ||
| 21828 | For example, if b is of type struct buffer * and v of type struct | ||
| 21829 | Lisp_Vector *, then gcc -O2 was incorrectly assuming that &b->size | ||
| 21830 | != &v->size, and therefore "v->size = 1; b->size = 2; return | ||
| 21831 | v->size;" must therefore return 1. This assumption is incorrect | ||
| 21832 | for Emacs, since it type-puns struct Lisp_Vector * with many other | ||
| 21833 | types. To fix this problem, this patch adds a new type struct | ||
| 21834 | vectorlike_header that documents the constraints on layout of vectors | ||
| 21835 | and pseudovectors, and helps optimizing compilers not get fooled | ||
| 21836 | by Emacs's type punning. It also adds the macros XSETTYPED_PVECTYPE | ||
| 21837 | XSETTYPED_PSEUDOVECTOR, TYPED_PSEUDOVECTORP, for similar reasons. | ||
| 21838 | * lisp.h (XSETTYPED_PVECTYPE): New macro, specifying the name of | ||
| 21839 | the size member. | ||
| 21840 | (XSETPVECTYPE): Rewrite in terms of new macro. | ||
| 21841 | (XSETPVECTYPESIZE): New macro, specifying both type and size. | ||
| 21842 | This is a bit clearer, and further avoids the possibility of | ||
| 21843 | undesirable aliasing. | ||
| 21844 | (XSETTYPED_PSEUDOVECTOR): New macro, specifying the size. | ||
| 21845 | (XSETPSEUDOVECTOR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR. | ||
| 21846 | (XSETSUBR): Rewrite in terms of XSETTYPED_PSEUDOVECTOR and XSIZE, | ||
| 21847 | since Lisp_Subr is a special case (no "next" field). | ||
| 21848 | (ASIZE): Now uses header.size rather than size. | ||
| 21849 | All previous uses of XVECTOR (foo)->size replaced to use this macro, | ||
| 21850 | to avoid the hassle of writing XVECTOR (foo)->header.size. | ||
| 21851 | (struct vectorlike_header): New type. | ||
| 21852 | (TYPED_PSEUDOVECTORP): New macro, also specifying the C type of the | ||
| 21853 | object, to help avoid aliasing. | ||
| 21854 | (PSEUDOVECTORP): Rewrite in terms of TYPED_PSEUDOVECTORP. | ||
| 21855 | (SUBRP): Likewise, since Lisp_Subr is a special case. | ||
| 21856 | * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table): | ||
| 21857 | (struct Lisp_Sub_Char_Table, struct Lisp_Bool_Vector): | ||
| 21858 | (struct Lisp_Hash_Table): Combine first two members into a single | ||
| 21859 | struct vectorlike_header member. All uses of "size" and "next" members | ||
| 21860 | changed to be "header.size" and "header.next". | ||
| 21861 | * buffer.h (struct buffer): Likewise. | ||
| 21862 | * font.h (struct font_spec, struct font_entity, struct font): Likewise. | ||
| 21863 | * frame.h (struct frame): Likewise. | ||
| 21864 | * process.h (struct Lisp_Process): Likewise. | ||
| 21865 | * termhooks.h (struct terminal): Likewise. | ||
| 21866 | * window.c (struct save_window_data, struct saved_window): Likewise. | ||
| 21867 | * window.h (struct window): Likewise. | ||
| 21868 | * alloc.c (allocate_buffer, Fmake_bool_vector, allocate_pseudovector): | ||
| 21869 | Use XSETPVECTYPESIZE, not XSETPVECTYPE, to avoid aliasing problems. | ||
| 21870 | * buffer.c (init_buffer_once): Likewise. | ||
| 21871 | * lread.c (defsubr): Use XSETTYPED_PVECTYPE, since Lisp_Subr is a | ||
| 21872 | special case. | ||
| 21873 | * process.c (Fformat_network_address): Use local var for size, | ||
| 21874 | for brevity. | ||
| 21875 | |||
| 21876 | * bytecode.c (exec_byte_code): Don't use XVECTOR before CHECK_VECTOR. | ||
| 21877 | |||
| 21878 | Make the Lisp reader and string-to-float more consistent (Bug#8525) | ||
| 21879 | * data.c (atof): Remove decl; no longer used or needed. | ||
| 21880 | (digit_to_number): Move to lread.c. | ||
| 21881 | (Fstring_to_number): Use new string_to_number function, to be | ||
| 21882 | consistent with how the Lisp reader treats infinities and NaNs. | ||
| 21883 | Do not assume that floating-point numbers represent EMACS_INT | ||
| 21884 | without losing information; this is not true on most 64-bit hosts. | ||
| 21885 | Avoid double-rounding errors, by insisting on integers when | ||
| 21886 | parsing non-base-10 numbers, as the documentation specifies. | ||
| 21887 | * lisp.h (string_to_number): New decl, replacing ... | ||
| 21888 | (isfloat_string): Remove. | ||
| 21889 | * lread.c: Include <inttypes.h>, for uintmax_t and strtoumax. | ||
| 21890 | (read1): Do not accept +. and -. as integers; this | ||
| 21891 | appears to have been a coding error. Similarly, do not accept | ||
| 21892 | strings like +-1e0 as floating point numbers. Do not report | ||
| 21893 | overflow for integer overflows unless the base is not 10 which | ||
| 21894 | means we have no simple and reliable way to continue. | ||
| 21895 | Break out the floating-point parsing into a new | ||
| 21896 | function string_to_number, so that Fstring_to_number parses | ||
| 21897 | floating point numbers consistently with the Lisp reader. | ||
| 21898 | (digit_to_number): Move here from data.c. Make it static inline. | ||
| 21899 | (E_CHAR, EXP_INT): Remove, replacing with ... | ||
| 21900 | (E_EXP): New macro, to solve the "1.0e+" problem mentioned below. | ||
| 21901 | (string_to_number): New function, replacing isfloat_string. | ||
| 21902 | This function checks for valid syntax and produces the resulting | ||
| 21903 | Lisp float number too. Rework it so that string-to-number | ||
| 21904 | no longer mishandles examples like "1.0e+". Use strtoumax, | ||
| 21905 | so that overflow for non-base-10 numbers is reported only when | ||
| 21906 | there's no portable and simple way to convert to floating point. | ||
| 21907 | |||
| 21908 | * textprop.c (set_text_properties_1): Rewrite for clarity, | ||
| 21909 | and to avoid GCC warning about integer overflow. | ||
| 21910 | |||
| 21911 | * intervals.h (struct interval): Use EMACS_INT for members | ||
| 21912 | where EMACS_UINT might cause problems. See | ||
| 21913 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00514.html>. | ||
| 21914 | (CHECK_TOTAL_LENGTH): Remove cast to EMACS_INT; no longer needed. | ||
| 21915 | * intervals.c (interval_deletion_adjustment): Now returns EMACS_INT. | ||
| 21916 | All uses changed. | ||
| 21917 | (offset_intervals): Tell GCC not to worry about length overflow | ||
| 21918 | when negating a negative length. | ||
| 21919 | |||
| 21920 | * alloc.c (overrun_check_malloc, overrun_check_realloc): Now static. | ||
| 21921 | (overrun_check_free): Likewise. | ||
| 21922 | |||
| 21923 | * alloc.c (SDATA_SIZE) [!GC_CHECK_STRING_BYTES]: Avoid runtime check | ||
| 21924 | in the common case where SDATA_DATA_OFFSET is a multiple of Emacs | ||
| 21925 | word size. | ||
| 21926 | |||
| 21927 | * gnutls.c: Fix problems found by GCC 4.6.0 on Ubuntu 10.10. | ||
| 21928 | (gnutls_make_error): Rename local to avoid shadowing. | ||
| 21929 | (gnutls_emacs_global_deinit): ifdef out; not used. | ||
| 21930 | (Fgnutls_boot): Use const for pointer to readonly storage. | ||
| 21931 | Comment out unused local. Fix pointer signedness problems. | ||
| 21932 | |||
| 21933 | * lread.c (openp): Don't stuff size_t into an 'int'. | ||
| 21934 | Use <= on length, not < on length + 1, to avoid GCC 4.6.0 warning | ||
| 21935 | about possible signed overflow. | ||
| 21936 | |||
| 21937 | * gtkutil.c: Fix problems found by GCC 4.6.0 on Ubuntu 10.10. | ||
| 21938 | (GDK_KEY_g): Don't define if already defined. | ||
| 21939 | (xg_prepare_tooltip): Avoid pointer signedness problem. | ||
| 21940 | (xg_set_toolkit_scroll_bar_thumb): Redo to avoid two casts. | ||
| 21941 | |||
| 21942 | * process.c (Fnetwork_interface_info): Avoid left-shift undefined | ||
| 21943 | behavior with 1 << 31. GCC 4.6.0 warns about this on 32-bit hosts. | ||
| 21944 | |||
| 21945 | * xfns.c (Fx_window_property): Simplify a bit, | ||
| 21946 | to make a bit faster and to avoid GCC 4.6.0 warning. | ||
| 21947 | * xselect.c (x_get_window_property, x_handle_dnd_message): Likewise. | ||
| 21948 | |||
| 21949 | * fns.c (internal_equal): Don't assume size_t fits in int. | ||
| 21950 | |||
| 21951 | * alloc.c (compact_small_strings): Tighten assertion a little. | ||
| 21952 | |||
| 21953 | Replace pEd with more-general pI, and fix some printf arg casts. | ||
| 21954 | * lisp.h (pI): New macro, generalizing old pEd macro to other | ||
| 21955 | conversion specifiers. For example, use "...%"pI"d..." rather | ||
| 21956 | than "...%"pEd"...". | ||
| 21957 | (pEd): Remove. All uses replaced with similar uses of pI. | ||
| 21958 | * m/amdx86-64.h, m/ia64.h, m/ibms390x.h: Likewise. | ||
| 21959 | * alloc.c (check_pure_size): Don't overflow by converting size to int. | ||
| 21960 | * bidi.c (bidi_dump_cached_states): Use pI to avoid cast. | ||
| 21961 | * data.c (Fnumber_to_string): Use pI instead of if-then-else-abort. | ||
| 21962 | * dbusbind.c (xd_append_arg): Use pI to avoid cast. | ||
| 21963 | (Fdbus_method_return_internal, Fdbus_method_error_internal): Likewise. | ||
| 21964 | * font.c (font_unparse_xlfd): Avoid potential buffer overrun on | ||
| 21965 | 64-bit hosts. | ||
| 21966 | (font_unparse_xlfd, font_unparse_fcname): Use pI to avoid casts. | ||
| 21967 | * keyboard.c (record_char, modify_event_symbol): Use pI to avoid casts. | ||
| 21968 | * print.c (safe_debug_print, print_object): Likewise. | ||
| 21969 | (print_object): Don't overflow by converting EMACS_INT or EMACS_UINT | ||
| 21970 | to int. | ||
| 21971 | Use pI instead of if-then-else-abort. Use %p to avoid casts, | ||
| 21972 | avoiding the 0 flag, which is not portable. | ||
| 21973 | * process.c (Fmake_network_process): Use pI to avoid cast. | ||
| 21974 | * region-cache.c (pp_cache): Likewise. | ||
| 21975 | * xdisp.c (decode_mode_spec): Likewise. | ||
| 21976 | * xrdb.c (x_load_resources) [USE_MOTIF]: Use pI to avoid undefined | ||
| 21977 | behavior on 64-bit hosts with printf arg. | ||
| 21978 | * xselect.c (x_queue_event): Use %p to avoid casts, avoiding 0 flag. | ||
| 21979 | (x_stop_queuing_selection_requests): Likewise. | ||
| 21980 | (x_get_window_property): Don't truncate byte count to an 'int' | ||
| 21981 | when tracing. | ||
| 21982 | |||
| 21983 | * frame.c (frame_name_fnn_p): Get rid of strtol, which isn't right | ||
| 21984 | here, since it parses constructs like leading '-' and spaces, | ||
| 21985 | which are not wanted; and it overflows with large numbers. | ||
| 21986 | Instead, simply match F[0-9]+, which is what is wanted anyway. | ||
| 21987 | |||
| 21988 | * alloc.c: Remove unportable assumptions about struct layout. | ||
| 21989 | (SDATA_SELECTOR, SDATA_DATA_OFFSET): New macros. | ||
| 21990 | (SDATA_OF_STRING, SDATA_SIZE, allocate_string_data): | ||
| 21991 | (allocate_vectorlike, make_pure_vector): Use the new macros, | ||
| 21992 | plus offsetof, to remove unportable assumptions about struct layout. | ||
| 21993 | These assumptions hold on all porting targets that I know of, but | ||
| 21994 | they are not guaranteed, they're easy to remove, and removing them | ||
| 21995 | makes further changes easier. | ||
| 21996 | |||
| 21997 | * alloc.c (BLOCK BYTES): Fix typo by changing "ablock" to "ablocks". | ||
| 21998 | This doesn't fix a bug but makes the code clearer. | ||
| 21999 | (string_overrun_cookie): Now const. Use initializers that | ||
| 22000 | don't formally overflow signed char, to avoid warnings. | ||
| 22001 | (allocate_string_data) [GC_CHECK_STRING_OVERRUN]: Fix typo that | ||
| 22002 | can cause Emacs to crash when string overrun checking is enabled. | ||
| 22003 | (allocate_buffer): Don't assume sizeof (struct buffer) is a | ||
| 22004 | multiple of sizeof (EMACS_INT); it need not be, if | ||
| 22005 | alignof(EMACS_INT) < sizeof (EMACS_INT). | ||
| 22006 | (check_sblock, check_string_bytes, check_string_free_list): Protoize. | ||
| 22007 | |||
| 22008 | 2011-04-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 22009 | |||
| 22010 | * keyboard.c (QCrtl): Rename from Qrtl. All uses changed. | ||
| 22011 | |||
| 22012 | 2011-04-26 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 22013 | |||
| 22014 | * gnutls.c (emacs_gnutls_handshake): Return an error if we're not | ||
| 22015 | supposed to be handshaking. (Bug#8556) | ||
| 22016 | Reported by Paul Eggert <eggert@cs.ucla.edu>. | ||
| 22017 | |||
| 22018 | 2011-04-26 Daniel Colascione <dan.colascione@gmail.com> | ||
| 22019 | |||
| 22020 | * lisp.h (Qdebug): List symbol. | ||
| 22021 | * eval.c (Qdebug): Restore global linkage. | ||
| 22022 | * keyboard.c (debug-on-event): New variable. | ||
| 22023 | (handle_user_signal): Break into debugger when debug-on-event | ||
| 22024 | matches the current signal symbol. | ||
| 22025 | |||
| 22026 | 2011-04-25 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 22027 | |||
| 22028 | * alloc.c (check_sblock, check_string_bytes) | ||
| 22029 | (check_string_free_list): Convert to standard C. | ||
| 22030 | |||
| 22031 | 2011-04-25 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 22032 | |||
| 22033 | * w32.c (emacs_gnutls_push): Fix typo. | ||
| 22034 | |||
| 22035 | 2011-04-25 Eli Zaretskii <eliz@gnu.org> | ||
| 22036 | |||
| 22037 | * gnutls.c (emacs_gnutls_handshake): Avoid compiler warnings about | ||
| 22038 | "cast to pointer from integer of different size". | ||
| 22039 | |||
| 22040 | Improve doprnt and its use in verror. (Bug#8545) | ||
| 22041 | * doprnt.c (doprnt): Document the set of format control sequences | ||
| 22042 | supported by the function. Use SAFE_ALLOCA instead of always | ||
| 22043 | using `alloca'. | ||
| 22044 | |||
| 22045 | * eval.c (verror): Don't limit the buffer size at size_max-1, that | ||
| 22046 | is one byte too soon. Don't use xrealloc; instead xfree and | ||
| 22047 | xmalloc anew. | ||
| 22048 | |||
| 22049 | 2011-04-24 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 22050 | |||
| 22051 | * gnutls.h: Add GNUTLS_STAGE_CALLBACKS enum to denote we're in the | ||
| 22052 | callbacks stage. | ||
| 22053 | |||
| 22054 | * gnutls.c: Renamed global_initialized to | ||
| 22055 | gnutls_global_initialized. Added internals for the | ||
| 22056 | :verify-hostname-error, :verify-error, and :verify-flags | ||
| 22057 | parameters of `gnutls-boot' and documented those parameters in the | ||
| 22058 | docstring. Start callback support. | ||
| 22059 | (emacs_gnutls_handshake): Add Woe32 support. Retry handshake | ||
| 22060 | unless a fatal error occurred. Call gnutls_alert_send_appropriate | ||
| 22061 | on error. Return error code. | ||
| 22062 | (emacs_gnutls_write): Call emacs_gnutls_handle_error. | ||
| 22063 | (emacs_gnutls_read): Likewise. | ||
| 22064 | (Fgnutls_boot): Return handshake error code. | ||
| 22065 | (emacs_gnutls_handle_error): New function. | ||
| 22066 | (wsaerror_to_errno): Likewise. | ||
| 22067 | |||
| 22068 | * w32.h (emacs_gnutls_pull): Add prototype. | ||
| 22069 | (emacs_gnutls_push): Likewise. | ||
| 22070 | |||
| 22071 | * w32.c (emacs_gnutls_pull): New function for GnuTLS on Woe32. | ||
| 22072 | (emacs_gnutls_push): Likewise. | ||
| 22073 | |||
| 22074 | 2011-04-24 Claudio Bley <claudio.bley@gmail.com> (tiny change) | ||
| 22075 | |||
| 22076 | * process.c (wait_reading_process_output): Check if GnuTLS | ||
| 22077 | buffered some data internally if no FDs are set for TLS | ||
| 22078 | connections. | ||
| 22079 | |||
| 22080 | * makefile.w32-in (OBJ2): Add gnutls.$(O). | ||
| 22081 | (LIBS): Link to USER_LIBS. | ||
| 22082 | ($(BLD)/gnutls.$(0)): New target. | ||
| 22083 | |||
| 22084 | 2011-04-24 Eli Zaretskii <eliz@gnu.org> | ||
| 22085 | |||
| 22086 | * xdisp.c (handle_single_display_spec): Rename the | ||
| 22087 | display_replaced_before_p argument into display_replaced_p, to | ||
| 22088 | make it consistent with the commentary. Fix typos in the | ||
| 22089 | commentary. | ||
| 22090 | |||
| 22091 | * textprop.c (syms_of_textprop): Remove dead code. | ||
| 22092 | (copy_text_properties): Delete obsolete commentary about an | ||
| 22093 | interface that was deleted long ago. Fix typos in the description | ||
| 22094 | of arguments. | ||
| 22095 | |||
| 22096 | * msdos.c (XMenuActivate, XMenuAddSelection): Adjust argument list | ||
| 22097 | to changes in oldXMenu/XMenu.h from 2011-04-16. | ||
| 22098 | <menu_help_message, prev_menu_help_message>: Constify. | ||
| 22099 | (IT_menu_make_room): menu->help_text is now `const char **'; | ||
| 22100 | adjust. | ||
| 22101 | |||
| 22102 | * msdos.h (XMenuActivate, XMenuAddSelection): Adjust prototypes | ||
| 22103 | to changes in oldXMenu/XMenu.h from 2011-04-16. | ||
| 22104 | (struct XMenu): Declare `help_text' `const char **'. | ||
| 22105 | |||
| 22106 | * xfaces.c <Qunspecified>: Make extern again. | ||
| 22107 | |||
| 22108 | * syntax.c: Include sys/types.h before including regex.h, as | ||
| 22109 | required by POSIX. | ||
| 22110 | |||
| 22111 | * doc.c (get_doc_string): Improve the format passed to `error'. | ||
| 22112 | |||
| 22113 | * doprnt.c (doprnt): Improve commentary. | ||
| 22114 | |||
| 22115 | * term.c (init_tty) [MSDOS]: Fix 1st argument to maybe_fatal. | ||
| 22116 | |||
| 22117 | * Makefile.in (TAGS): Depend on $(M_FILE) and $(S_FILE), and scan | ||
| 22118 | them with etags. | ||
| 22119 | |||
| 22120 | * makefile.w32-in (globals.h): Add a dummy recipe, to make any | ||
| 22121 | changes in globals.h immediately force recompilation. | ||
| 22122 | (TAGS): Depend on $(CURDIR)/m/intel386.h and | ||
| 22123 | $(CURDIR)/s/ms-w32.h. | ||
| 22124 | (TAGS-gmake): Scan $(CURDIR)/m/intel386.h and $(CURDIR)/s/ms-w32.h. | ||
| 22125 | |||
| 22126 | * character.c (Fchar_direction): Function deleted. | ||
| 22127 | (syms_of_character): Don't defsubr it. | ||
| 22128 | <char-direction-table>: Deleted. | ||
| 22129 | |||
| 22130 | 2011-04-23 Eli Zaretskii <eliz@gnu.org> | ||
| 22131 | |||
| 22132 | Fix doprnt so it could be used again safely in `verror'. (Bug#8435) | ||
| 22133 | * doprnt.c: Include limits.h. | ||
| 22134 | (SIZE_MAX): New macro. | ||
| 22135 | (doprnt): Return a size_t value. 2nd arg is now size_t. | ||
| 22136 | Many local variables are now size_t instead of int or unsigned. | ||
| 22137 | Improve overflow protection. Support `l' modifier for integer | ||
| 22138 | conversions. Support %l conversion. Don't assume an EMACS_INT | ||
| 22139 | argument for integer conversions and for %c. | ||
| 22140 | |||
| 22141 | * lisp.h (doprnt): Restore prototype. | ||
| 22142 | |||
| 22143 | * makefile.w32-in ($(BLD)/callint.$(O)): Depend on | ||
| 22144 | $(SRC)/character.h. | ||
| 22145 | |||
| 22146 | * Makefile.in (base_obj): Add back doprnt.o. | ||
| 22147 | |||
| 22148 | * deps.mk (doprnt.o): Add back prerequisites. | ||
| 22149 | (callint.o): Depend on character.h. | ||
| 22150 | |||
| 22151 | * eval.c (internal_lisp_condition_case): Include the handler | ||
| 22152 | representation in the error message. | ||
| 22153 | (verror): Call doprnt instead of vsnprintf. Fix an off-by-one bug | ||
| 22154 | when breaking from the loop. | ||
| 22155 | |||
| 22156 | * xdisp.c (vmessage): Call doprnt instead of vsnprintf. | ||
| 22157 | |||
| 22158 | * callint.c (Fcall_interactively): When displaying error message | ||
| 22159 | about invalid control letter, pass the character's codepoint, not | ||
| 22160 | a pointer to its multibyte form. Improve display of the character | ||
| 22161 | in octal and display also its hex code. | ||
| 22162 | |||
| 22163 | * character.c (char_string): Use %x to display the (unsigned) | ||
| 22164 | codepoint of an invalid character, to avoid displaying a bogus | ||
| 22165 | negative value. | ||
| 22166 | |||
| 22167 | * font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to | ||
| 22168 | `error', not SYMBOL_NAME itself. | ||
| 22169 | |||
| 22170 | * coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for | ||
| 22171 | character arguments to `error'. | ||
| 22172 | |||
| 22173 | * charset.c (check_iso_charset_parameter): Fix incorrect argument | ||
| 22174 | to `error' in error message about FINAL_CHAR argument. Make sure | ||
| 22175 | FINAL_CHAR is a character, and use %c when it is passed as | ||
| 22176 | argument to `error'. | ||
| 22177 | |||
| 22178 | 2011-04-23 Eli Zaretskii <eliz@gnu.org> | ||
| 22179 | |||
| 22180 | * s/ms-w32.h (localtime): Redirect to sys_localtime. | ||
| 22181 | |||
| 22182 | * w32.c: Include <time.h>. | ||
| 22183 | (sys_localtime): New function. | ||
| 22184 | |||
| 22185 | 2011-04-23 Chong Yidong <cyd@stupidchicken.com> | ||
| 22186 | |||
| 22187 | * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451). | ||
| 22188 | |||
| 22189 | * buffer.c (syms_of_buffer): Doc fix (Bug#6902). | ||
| 22190 | |||
| 22191 | 2011-04-23 Samuel Thibault <sthibault@debian.org> (tiny change) | ||
| 22192 | |||
| 22193 | * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on | ||
| 22194 | zombies (Bug#8467). | ||
| 22195 | |||
| 22196 | 2011-04-19 Eli Zaretskii <eliz@gnu.org> | ||
| 22197 | |||
| 22198 | * syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of | ||
| 22199 | gl_state.e_property when gl_state.object is Qt. | ||
| 22200 | |||
| 22201 | * insdel.c (make_gap_larger): Remove limitation of buffer size | ||
| 22202 | to <= INT_MAX. | ||
| 22203 | |||
| 22204 | 2011-04-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 22205 | |||
| 22206 | * xdisp.c (lookup_glyphless_char_display) | ||
| 22207 | (produce_glyphless_glyph): Handle cons cell entry in | ||
| 22208 | glyphless-char-display. | ||
| 22209 | (Vglyphless_char_display): Document it. | ||
| 22210 | |||
| 22211 | * term.c (produce_glyphless_glyph): Handle cons cell entry in | ||
| 22212 | glyphless-char-display. | ||
| 22213 | |||
| 22214 | 2011-04-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 22215 | |||
| 22216 | * xdisp.c (get_next_display_element): Remove unnecessary ifdefs. | ||
| 22217 | |||
| 22218 | * termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions. | ||
| 22219 | |||
| 22220 | * dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing | ||
| 22221 | definition for no-X builds. | ||
| 22222 | |||
| 22223 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 22224 | |||
| 22225 | Static checks with GCC 4.6.0 and non-default toolkits. | ||
| 22226 | |||
| 22227 | * s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl. | ||
| 22228 | |||
| 22229 | * process.c (keyboard_bit_set): Define only if SIGIO. | ||
| 22230 | (send_process_trap): Mark it with NO_RETURN if it doesn't return. | ||
| 22231 | (send_process): Repair possible setjmp clobbering. | ||
| 22232 | |||
| 22233 | * s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'. | ||
| 22234 | |||
| 22235 | * eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts. | ||
| 22236 | |||
| 22237 | * data.c (arith_error): Mark with NO_RETURN if it doesn't return. | ||
| 22238 | |||
| 22239 | * alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED): | ||
| 22240 | Define only if needed. | ||
| 22241 | |||
| 22242 | * sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier | ||
| 22243 | by pacifying GCC about it. Maybe it's time to retire it? | ||
| 22244 | * xfaces.c (USG, __TIMEVAL__): Likewise. | ||
| 22245 | |||
| 22246 | * dispextern.h (struct redisplay_interface): Rename param | ||
| 22247 | to avoid shadowing. | ||
| 22248 | * termhooks.h (struct terminal): Likewise. | ||
| 22249 | * xterm.c (xembed_send_message): Likewise. | ||
| 22250 | |||
| 22251 | * insdel.c (make_gap_smaller): Define only if | ||
| 22252 | USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. | ||
| 22253 | |||
| 22254 | * keyboard.c (read_char): Make a var volatile so longjmp won't clobber | ||
| 22255 | it. | ||
| 22256 | |||
| 22257 | * emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used, | ||
| 22258 | so that we aren't warned about unused symbols. | ||
| 22259 | |||
| 22260 | * xfns.c (Fx_file_dialog): Rename local to avoid shadowing. | ||
| 22261 | |||
| 22262 | * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). | ||
| 22263 | |||
| 22264 | * xfns.c (x_real_positions): Mark locals as initialized. | ||
| 22265 | |||
| 22266 | * xmenu.c (xmenu_show): Don't use uninitialized vars. | ||
| 22267 | |||
| 22268 | * xterm.c: Fix problems found by static analysis with other toolkits. | ||
| 22269 | (toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT. | ||
| 22270 | (x_dispatch_event): Declare static if USE_GTK, and | ||
| 22271 | define if USE_GTK || USE_X_TOOLKIT. | ||
| 22272 | (SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK. | ||
| 22273 | * xterm.h (x_dispatch_event): Extern only if USE_X_TOOLKIT. | ||
| 22274 | * xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only | ||
| 22275 | if defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK. | ||
| 22276 | |||
| 22277 | * xmenu.c (menu_help_callback): Pointer type fixes. | ||
| 22278 | Use const pointers when pointing at readonly data. Avoid pointer | ||
| 22279 | signedness clashes. | ||
| 22280 | (FALSE): Remove unused macro. | ||
| 22281 | (update_frame_menubar): Remove unused decl. | ||
| 22282 | |||
| 22283 | * xfns.c (Fx_hide_tip): Move locals to avoid shadowing. | ||
| 22284 | |||
| 22285 | * menu.c (push_submenu_start, push_submenu_end): Do not define unless | ||
| 22286 | USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI. | ||
| 22287 | (single_menu_item): Rename local to avoid shadowing. | ||
| 22288 | |||
| 22289 | * keyboard.c (make_lispy_event): Remove unused local var. | ||
| 22290 | |||
| 22291 | * frame.c, frame.h (x_get_resource_string): Bring this back, but | ||
| 22292 | only if HAVE_X_WINDOWS && !USE_X_TOOLKIT. | ||
| 22293 | |||
| 22294 | * bitmaps: Change bitmaps from unsigned char back to the X11 | ||
| 22295 | compatible char. Avoid the old compiler warnings about | ||
| 22296 | out-of-range initializers by using, for example, '\xab' rather | ||
| 22297 | than 0xab. | ||
| 22298 | |||
| 22299 | * xgselect.c (xgselect_initialize): Check vs interface | ||
| 22300 | even if ! (defined (USE_GTK) || defined (HAVE_GCONF)). | ||
| 22301 | |||
| 22302 | * xmenu.c (xmenu_show): Rename parm to avoid shadowing. | ||
| 22303 | |||
| 22304 | * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers | ||
| 22305 | to read-only memory. | ||
| 22306 | |||
| 22307 | * fns.c (vector): Remove; this old hack is no longer needed. | ||
| 22308 | |||
| 22309 | * xsmfns.c (create_client_leader_window): Rename shadowing arg. | ||
| 22310 | Remove unused var. | ||
| 22311 | (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define. | ||
| 22312 | |||
| 22313 | * xrdb.c (x_load_resources): Omit unused local. | ||
| 22314 | |||
| 22315 | * xfns.c (free_frame_menubar, atof): Remove duplicate decls. | ||
| 22316 | (x_window): Rename locals to avoid shadowing. | ||
| 22317 | (USG): Use the kludged USG macro, to pacify gcc. | ||
| 22318 | |||
| 22319 | * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. | ||
| 22320 | (x_term_init): Remove local to avoid shadowing. | ||
| 22321 | |||
| 22322 | * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. | ||
| 22323 | |||
| 22324 | * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if | ||
| 22325 | USE_TOOLKIT_SCROLL_BARS && !USE_GTK, as xterm.c needs it then. | ||
| 22326 | |||
| 22327 | 2011-04-16 Eli Zaretskii <eliz@gnu.org> | ||
| 22328 | |||
| 22329 | * gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'. | ||
| 22330 | |||
| 22331 | Fix regex.c, syntax.c and friends for buffers > 2GB. | ||
| 22332 | * syntax.h (struct gl_state_s): Declare character position members | ||
| 22333 | EMACS_INT. | ||
| 22334 | |||
| 22335 | * syntax.c (update_syntax_table): Declare 2nd argument EMACS_INT. | ||
| 22336 | |||
| 22337 | * textprop.c (verify_interval_modification, interval_of): | ||
| 22338 | Declare arguments EMACS_INT. | ||
| 22339 | |||
| 22340 | * intervals.c (adjust_intervals_for_insertion): Declare arguments | ||
| 22341 | EMACS_INT. | ||
| 22342 | |||
| 22343 | * intervals.h (CHECK_TOTAL_LENGTH): Cast to EMACS_INT, not `int'. | ||
| 22344 | |||
| 22345 | * indent.c (Fvertical_motion): Local variable it_start is now | ||
| 22346 | EMACS_INT. | ||
| 22347 | |||
| 22348 | * regex.c (re_match, re_match_2, re_match_2_internal) | ||
| 22349 | (bcmp_translate, regcomp, regexec, print_double_string) | ||
| 22350 | (group_in_compile_stack, re_search, re_search_2, regex_compile) | ||
| 22351 | (re_compile_pattern, re_exec): Declare arguments and local | ||
| 22352 | variables `size_t' and `ssize_t' and return values `regoff_t', as | ||
| 22353 | appropriate. | ||
| 22354 | (POP_FAILURE_REG_OR_COUNT) <pfreg>: Declare `long'. | ||
| 22355 | (CHECK_INFINITE_LOOP) <failure>: Declare `ssize_t'. | ||
| 22356 | <compile_stack_type>: `size' and `avail' are now `size_t'. | ||
| 22357 | |||
| 22358 | * regex.h <regoff_t>: Use ssize_t, not int. | ||
| 22359 | (re_search, re_search_2, re_match, re_match_2): Arguments that | ||
| 22360 | specify buffer/string position and length are now ssize_t and | ||
| 22361 | size_t. Return type is regoff_t. | ||
| 22362 | |||
| 22363 | 2011-04-16 Ben Key <bkey76@gmail.com> | ||
| 22364 | |||
| 22365 | * nsfont.m: Fixed bugs in ns_get_family and | ||
| 22366 | ns_descriptor_to_entity that were caused by using free to | ||
| 22367 | deallocate memory blocks that were allocated by xmalloc (via | ||
| 22368 | xstrdup). This caused Emacs to crash when compiled with | ||
| 22369 | XMALLOC_OVERRUN_CHECK defined (when Emacs was configured with | ||
| 22370 | --enable-checking=xmallocoverrun). xfree is now used to | ||
| 22371 | deallocate these memory blocks. | ||
| 22372 | |||
| 22373 | 2011-04-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 22374 | |||
| 22375 | * sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT. | ||
| 22376 | |||
| 22377 | emacs_write: Accept and return EMACS_INT for sizes. | ||
| 22378 | See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00514.html | ||
| 22379 | et seq. | ||
| 22380 | * gnutls.c, gnutls.h (emacs_gnutls_read, emacs_gnutls_write): | ||
| 22381 | Accept and return EMACS_INT. | ||
| 22382 | (emacs_gnutls_write): Return the number of bytes written on | ||
| 22383 | partial writes. | ||
| 22384 | * sysdep.c, lisp.h (emacs_read, emacs_write): Likewise. | ||
| 22385 | (emacs_read, emacs_write): Remove check for negative size, as the | ||
| 22386 | Emacs source code has been audited now. | ||
| 22387 | * sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs. | ||
| 22388 | (emacs_read, emacs_write): Use it. | ||
| 22389 | * process.c (send_process): Adjust to the new signatures of | ||
| 22390 | emacs_write and emacs_gnutls_write. Do not attempt to store | ||
| 22391 | a byte offset into an 'int'; it might overflow. | ||
| 22392 | See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00483.html | ||
| 22393 | |||
| 22394 | * sound.c: Don't assume sizes fit in 'int'. | ||
| 22395 | (struct sound_device.period_size, alsa_period_size): | ||
| 22396 | Return EMACS_INT, not int. | ||
| 22397 | (struct sound_device.write, vox_write, alsa_write): | ||
| 22398 | Accept EMACS_INT, not int. | ||
| 22399 | (wav_play, au_play): Use EMACS_INT to store sizes and to | ||
| 22400 | record read return values. | ||
| 22401 | |||
| 22402 | 2011-04-15 Ben Key <bkey76@gmail.com> | ||
| 22403 | |||
| 22404 | * keyboard.c (Qundefined): Don't declare static since it is used | ||
| 22405 | in nsfns.m. | ||
| 22406 | * xfaces.c (Qbold, Qexpanded, Qitalic, Qcondensed): Don't declare | ||
| 22407 | static since they are used in nsfont.m. | ||
| 22408 | |||
| 22409 | 2011-04-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 22410 | |||
| 22411 | * process.c (Qprocessp): Don't declare static. | ||
| 22412 | * lisp.h (Qprocessp): Declare again. | ||
| 22413 | |||
| 22414 | 2011-04-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 22415 | |||
| 22416 | * font.c (Qopentype): Don't make static (used from w32uniscribe.c). | ||
| 22417 | |||
| 22418 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 22419 | |||
| 22420 | Improve C-level modularity by making more things 'static'. | ||
| 22421 | |||
| 22422 | Don't publish debugger-only interfaces to other modules. | ||
| 22423 | * lisp.h (safe_debug_print, debug_output_compilation_hack): | ||
| 22424 | (verify_bytepos, count_markers): Move decls to the only modules | ||
| 22425 | that need them. | ||
| 22426 | * region-cache.h (pp_cache): Likewise. | ||
| 22427 | * window.h (check_all_windows): Likewise. | ||
| 22428 | * marker.c, print.c, region-cache.c, window.c: Decls moved here. | ||
| 22429 | |||
| 22430 | * sysdep.c (croak): Now static, if | ||
| 22431 | defined TIOCNOTTY || defined USG5 || defined CYGWIN. | ||
| 22432 | * syssignal.h (croak): Declare only if not static. | ||
| 22433 | |||
| 22434 | * alloc.c (refill_memory_reserve): Now static if | ||
| 22435 | !defined REL_ALLOC || defined SYSTEM_MALLOC. | ||
| 22436 | * lisp.h (refill_memory_reserve): Declare only if not static. | ||
| 22437 | |||
| 22438 | * xsettings.c, xsettings.h (xsettings_get_system_normal_font): | ||
| 22439 | Define only if USE_LUCID. | ||
| 22440 | |||
| 22441 | * xrdb.c (x_customization_string, x_rm_string): Now static. | ||
| 22442 | |||
| 22443 | * xmenu.c (x_menu_wait_for_event): Export only if USE_MOTIF. | ||
| 22444 | * xterm.h (x_menu_wait_for_event): Declare only if USE_MOTIF. | ||
| 22445 | |||
| 22446 | * xdisp.c (draw_row_with_mouse_face): Now static. | ||
| 22447 | * dispextern.h (draw_row_with_mouse_fave): Remove decl. | ||
| 22448 | |||
| 22449 | * window.h (check_all_windows): Mark externally visible. | ||
| 22450 | |||
| 22451 | * window.c (window_deletion_count): Now static. | ||
| 22452 | |||
| 22453 | * undo.c: Make symbols static if they're not exported. | ||
| 22454 | (last_undo_buffer, last_boundary_position, pending_boundary): | ||
| 22455 | Now static. | ||
| 22456 | |||
| 22457 | * textprop.c (interval_insert_behind_hooks): Now static. | ||
| 22458 | (interval_insert_in_front_hooks): Likewise. | ||
| 22459 | |||
| 22460 | * term.c: Make symbols static if they're not exported. | ||
| 22461 | (tty_turn_off_highlight, get_tty_terminal, max_frame_cols): | ||
| 22462 | (max_frame_lines, tty_set_terminal_modes): | ||
| 22463 | (tty_reset_terminal_modes, tty_turn_off_highlight): | ||
| 22464 | (get_tty_terminal): Now static. | ||
| 22465 | (term_mouse_moveto): Do not define if HAVE_WINDOW_SYSTEM. | ||
| 22466 | * termhooks.h (term_mouse_moveto): Do not declare if | ||
| 22467 | HAVE_WINDOW_SYSTEM. | ||
| 22468 | * dispextern.h (tty_set_terminal_modes, tty_reset_terminal_modes): | ||
| 22469 | (tty_turn_off_highlight, get_tty_terminal): Remove decls. | ||
| 22470 | |||
| 22471 | * sysdep.c: Make symbols static if they're not exported. | ||
| 22472 | (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner): | ||
| 22473 | Now static. | ||
| 22474 | (sigprocmask_set, full_mask): Remove; unused. | ||
| 22475 | (wait_debugging): Mark as visible. | ||
| 22476 | * syssignal.h (SIGFULLMASK, full_mask): Remove decls. | ||
| 22477 | * systty.h (emacs_get_tty, emacs_set_tty): Remove decls. | ||
| 22478 | |||
| 22479 | * syntax.c (syntax_temp): Define only if !__GNUC__. | ||
| 22480 | |||
| 22481 | * sound.c (current_sound_device, current_sound): Now static. | ||
| 22482 | |||
| 22483 | * search.c (searchbufs, searchbuf_head): Now static. | ||
| 22484 | |||
| 22485 | * scroll.c (scroll_cost): Remove; unused. | ||
| 22486 | * dispextern.h (scroll_cost): Remove decl. | ||
| 22487 | |||
| 22488 | * region-cache.h (pp_cache): Mark as externally visible. | ||
| 22489 | |||
| 22490 | * process.c: Make symbols static if they're not exported. | ||
| 22491 | (process_tick, update_tick, create_process, chan_process): | ||
| 22492 | (Vprocess_alist, proc_buffered_char, datagram_access): | ||
| 22493 | (fd_callback_data, send_process_frame, process_sent_to): Now static. | ||
| 22494 | (deactivate_process): Mark defn as static, as well as decl. | ||
| 22495 | * lisp.h (create_process): Remove decl. | ||
| 22496 | * process.h (chan_process, Vprocess_alist): Remove decls. | ||
| 22497 | |||
| 22498 | * print.c: Make symbols static if they're not exported. | ||
| 22499 | (print_depth, new_backquote_output, being_printed, print_buffer): | ||
| 22500 | (print_buffer_size, print_buffer_pos, print_buffer_pos_byte): | ||
| 22501 | (print_interval, print_number_index, initial_stderr_stream): | ||
| 22502 | Now static. | ||
| 22503 | * lisp.h (Fprinc): Remove decl. | ||
| 22504 | (debug_output_compilation_hack): Mark as externally visible. | ||
| 22505 | |||
| 22506 | * sysdep.c (croak): Move decl from here to syssignal.h. | ||
| 22507 | * syssignal.h (croak): Put it here, so the API can be checked when | ||
| 22508 | 'croak' is called from dissociate_if_controlling_tty. | ||
| 22509 | |||
| 22510 | * minibuf.c: Make symbols static if they're not exported. | ||
| 22511 | (minibuf_save_list, choose_minibuf_frame): Now static. | ||
| 22512 | * lisp.h (choose_minibuf_frame): Remove decl. | ||
| 22513 | |||
| 22514 | * lisp.h (verify_bytepos, count_markers): Mark as externally visible. | ||
| 22515 | |||
| 22516 | * lread.c: Make symbols static if they're not exported. | ||
| 22517 | (read_objects, initial_obarray, oblookup_last_bucket_number): | ||
| 22518 | Now static. | ||
| 22519 | (make_symbol): Remove; unused. | ||
| 22520 | * lisp.h (initial_obarray, make_symbol): Remove decls. | ||
| 22521 | |||
| 22522 | * keyboard.c: Make symbols static if they're not exported. | ||
| 22523 | (single_kboard, recent_keys_index, total_keys, recent_keys): | ||
| 22524 | (this_command_key_count_reset, raw_keybuf, raw_keybuf_count): | ||
| 22525 | (this_single_command_key_start, echoing, last_auto_save): | ||
| 22526 | (read_key_sequence_cmd, dribble, recursive_edit_unwind): | ||
| 22527 | (command_loop, echo_now, keyboard_init_hook, help_char_p): | ||
| 22528 | (quit_throw_to_read_char, command_loop_2, top_level_1, poll_timer): | ||
| 22529 | (Vlispy_mouse_stem, double_click_count): | ||
| 22530 | Now static. | ||
| 22531 | (force_auto_save_soon): Define only if SIGDANGER. | ||
| 22532 | (ignore_mouse_drag_p): Now static if | ||
| 22533 | !defined HAVE_WINDOW_SYSTEM || defined USE_GTK || defined HAVE_NS. | ||
| 22534 | (print_help): Remove; unused. | ||
| 22535 | (stop_character, last_timer_event): Mark as externally visible. | ||
| 22536 | * keyboard.h (ignore_mouse_drag_p): Declare only if | ||
| 22537 | defined HAVE_WINDOW_SYSTEM && !defined USE_GTK && !defined HAVE_NS. | ||
| 22538 | (echo_now, help_char_p, quit_throw_to_read_char): Remove decls. | ||
| 22539 | * lisp.h (echoing): Remove decl. | ||
| 22540 | (force_auto_save_soon): Declare only if SIGDANGER. | ||
| 22541 | * xdisp.c (redisplay_window): Simplify code, to make it more | ||
| 22542 | obvious that ignore_mouse_drag_p is not accessed if !defined | ||
| 22543 | USE_GTK && !defined HAVE_NS. | ||
| 22544 | |||
| 22545 | * intervals.c: Make symbols static if they're not exported. | ||
| 22546 | (merge_properties_sticky, merge_interval_right, delete_interval): | ||
| 22547 | Now static. | ||
| 22548 | * intervals.h (merge_interval_right, delete_interval): Remove decls. | ||
| 22549 | |||
| 22550 | * insdel.c: Make symbols static if they're not exported. | ||
| 22551 | However, leave prepare_to_modify_buffer alone. It's never | ||
| 22552 | called from outside this function, but that appears to be a bug. | ||
| 22553 | (combine_after_change_list, combine_after_change_buffer): | ||
| 22554 | (adjust_after_replace, signal_before_change): Now static. | ||
| 22555 | (adjust_after_replace_noundo): Remove; unused. | ||
| 22556 | * lisp.h (adjust_after_replace, adjust_after_replace_noundo): | ||
| 22557 | (signal_before_change): Remove decls. | ||
| 22558 | |||
| 22559 | * indent.c (val_compute_motion, val_vmotion): Now static. | ||
| 22560 | |||
| 22561 | * image.c: Make symbols static if they're not exported. | ||
| 22562 | * dispextern.h (x_create_bitmap_from_xpm_data): Do not declare | ||
| 22563 | if USE_GTK. | ||
| 22564 | * image.c (x_create_bitmap_from_xpm_data): Do not define if USE_GTK. | ||
| 22565 | (xpm_color_cache, ct_table, ct_colors_allocated): Now static. | ||
| 22566 | |||
| 22567 | * fringe.c (standard_bitmaps): Now static. | ||
| 22568 | (max_used_fringe_bitmap): Now static, unless HAVE_NS. | ||
| 22569 | |||
| 22570 | * frame.c: Make symbols static if they're not exported. | ||
| 22571 | (x_report_frame_params, make_terminal_frame): Now static. | ||
| 22572 | (get_frame_param): Now static, unless HAVE_NS. | ||
| 22573 | (x_fullscreen_adjust): Define if WINDOWSNT, not if HAVE_WINDOW_SYSTEM. | ||
| 22574 | (x_get_resource_string): Remove; not used. | ||
| 22575 | * frame.h (make_terminal_frame, x_report_frame_params): | ||
| 22576 | (x_get_resource_string); Remove decls. | ||
| 22577 | (x_fullscreen_adjust): Declare only if WINDOWSNT. | ||
| 22578 | * lisp.h (get_frame_param): Declare only if HAVE_NS. | ||
| 22579 | |||
| 22580 | * font.c, fontset.c: Make symbols static if they're not exported. | ||
| 22581 | * dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): New macro. | ||
| 22582 | (FACE_SUITABLE_FOR_CHAR_P): Use it. | ||
| 22583 | * font.c (font_close_object): Now static. | ||
| 22584 | * font.h (font_close_object): Remove. | ||
| 22585 | * fontset.c (FONTSET_OBJLIST): Remove. | ||
| 22586 | (free_realized_fontset) #if-0 the body, which does nothing. | ||
| 22587 | (face_suitable_for_char_p): #if-0, as it's never called. | ||
| 22588 | * fontset.h (face_suitable_for_char_p): Remove decl. | ||
| 22589 | * xfaces.c (face_at_string_position): | ||
| 22590 | Use FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P, | ||
| 22591 | since 0 is always ASCII. | ||
| 22592 | |||
| 22593 | * fns.c (weak_hash_tables): Now static. | ||
| 22594 | |||
| 22595 | * fileio.c: Make symbols static if they're not exported. | ||
| 22596 | (auto_saving, auto_save_mode_bits, auto_save_error_occurred): | ||
| 22597 | (Vwrite_region_annotation_buffers): Now static. | ||
| 22598 | |||
| 22599 | * eval.c: Make symbols static if they're not exported. | ||
| 22600 | (backtrace_list, lisp_eval_depth, when_entered_debugger): Now static. | ||
| 22601 | * lisp.h (backtrace_list): Remove decl. | ||
| 22602 | |||
| 22603 | * emacs.c: Make symbols static if they're not exported. | ||
| 22604 | (malloc_state_ptr, malloc_using_checking, syms_of_emacs): | ||
| 22605 | (fatal_error_code, fatal_error_signal_hook, standard_args): | ||
| 22606 | Now static. | ||
| 22607 | (fatal_error_signal): Now static, unless FLOAT_CATCH_SIGKILL. | ||
| 22608 | (DEFINE_DUMMY_FUNCTION): Mark function as externally visible. | ||
| 22609 | (__CTOR_LIST__, __DTOR_LIST__): Now externally visible. | ||
| 22610 | * lisp.h (fatal_error_signal_hook): Remove decl. | ||
| 22611 | (fatal_error_signal): Declare only if FLOAT_CATCH_SIGKILL. | ||
| 22612 | |||
| 22613 | * editfns.c: Move a (normally-unused) function to its only use. | ||
| 22614 | * editfns.c, lisp.h (get_operating_system_release): Remove. | ||
| 22615 | * process.c (init_process) [DARWIN_OS]: Do it inline, as it is not | ||
| 22616 | worth the hassle of breaking this out. | ||
| 22617 | |||
| 22618 | * xterm.c: Make symbols static if they're not exported. | ||
| 22619 | (x_raise_frame, x_lower_frame, x_wm_set_window_state): | ||
| 22620 | (x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error): | ||
| 22621 | (x_destroy_window, x_delete_display): | ||
| 22622 | Now static. | ||
| 22623 | (x_dispatch_event): Now static if ! (USE_MOTIF || USE_X_TOOLKIT). | ||
| 22624 | (x_mouse_leave): Remove; unused. | ||
| 22625 | * xterm.h (x_display_info_for_name, x_raise_frame, x_lower_frame): | ||
| 22626 | (x_destroy_window, x_wm_set_window_state, x_wm_set_icon_pixmap): | ||
| 22627 | (x_delete_display, x_initialize, x_set_border_pixel, x_screen_planes): | ||
| 22628 | Remove decls. | ||
| 22629 | (x_mouse_leave): Declare only if WINDOWSNT. | ||
| 22630 | (x_dispatch_event): Declare only if USE_MOTIF or USE_X_TOOLKIT. | ||
| 22631 | (xic_create_fontsetname): Declare only if HAVE_X_WINDOWS && | ||
| 22632 | USE_X_TOOLKIT. | ||
| 22633 | |||
| 22634 | * ftxfont.c: Make symbols static if they're not exported. | ||
| 22635 | (ftxfont_driver): Export only if !defined HAVE_XFT && def8ined | ||
| 22636 | HAVE_FREETYPE. | ||
| 22637 | * font.h (ftxfont_driver): Likewise. | ||
| 22638 | |||
| 22639 | * xfns.c: Make symbols static if they're not exported. | ||
| 22640 | (x_last_font_name, x_display_info_for_name): | ||
| 22641 | (x_set_foreground_color, x_set_background_color, x_set_mouse_color): | ||
| 22642 | (x_set_cursor_color, x_set_border_pixel, x_set_border_color): | ||
| 22643 | (x_set_cursor_type, x_set_icon_type, x_set_icon_name): | ||
| 22644 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background): | ||
| 22645 | (x_explicitly_set_name, x_set_title, xic_defaut_fontset, tip_timer): | ||
| 22646 | (last_show_tip_args): Now static. | ||
| 22647 | (xic_defaut_fontset, xic_create_fontsetname): Define only if | ||
| 22648 | defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT | ||
| 22649 | (x_screen_planes): Remove; unused. | ||
| 22650 | * dispextern.h (x_screen_planes): Remove decl. | ||
| 22651 | |||
| 22652 | * dispnew.c: Make symbols static if they're not exported. | ||
| 22653 | * dispextern.h (redraw_garbaged_frames, scrolling): | ||
| 22654 | (increment_row_positions): Remove. | ||
| 22655 | * dispnew.c (new_glyph_matrix, increment_row_positions, scrolling): | ||
| 22656 | (delayed_size_change, glyph_matrix_count, glyph_pool_count): | ||
| 22657 | Now static. | ||
| 22658 | (redraw_garbaged_frames): Remove; unused. | ||
| 22659 | |||
| 22660 | * xfaces.c: Make symbols static if they're not exported. | ||
| 22661 | * dispextern.h (ascii_face_of_lisp_face, free_realized_face): | ||
| 22662 | Remove decls. | ||
| 22663 | * xterm.h (defined_color): Remove decls. | ||
| 22664 | (x_free_dpy_colors): Declare only if USE_X_TOOLKIT. | ||
| 22665 | * xfaces.c (tty_suppress_bold_inverse_default_colors_p): | ||
| 22666 | (menu_face_changed_default, defined_color, free_realized_face): | ||
| 22667 | (x_free_dpy_colors): Define only if USE_X_TOOLKIT. | ||
| 22668 | (ascii_face_of_lisp_face): Remove; unused. | ||
| 22669 | |||
| 22670 | * xdisp.c: Make symbols static if they're not exported. | ||
| 22671 | * dispextern.h (scratch_glyph_row, window_box_edges): | ||
| 22672 | (glyph_to_pixel_coords, set_cursor_from_row): | ||
| 22673 | (get_next_display_element, set_iterator_to_next): | ||
| 22674 | (highlight_trailing_whitespace, frame_to_window_pixel_xy): | ||
| 22675 | (show_mouse_face): Remove decls | ||
| 22676 | * frame.h (message_buf_print): Likewise. | ||
| 22677 | * lisp.h (pop_message, set_message, check_point_in_composition): | ||
| 22678 | Likewise. | ||
| 22679 | * xterm.h (set_vertical_scroll_bar): Likewise. | ||
| 22680 | * xdisp.c (list_of_error, Vmessage_stack, line_number_displayed): | ||
| 22681 | (message_buf_print, scratch_glyph_row, displayed_buffer): | ||
| 22682 | (set_iterator_to_next, pop_message, set_message, set_cursor_from_row): | ||
| 22683 | (get_next_display_element, show_mouse_face, window_box_edges): | ||
| 22684 | (frame_to_window_pixel_xy, check_point_in_composition): | ||
| 22685 | (set_vertical_scroll_bar, highlight_trailing_whitespace): Now static. | ||
| 22686 | (glyph_to_pixel_coords): Remove; unused. | ||
| 22687 | |||
| 22688 | * dired.c (file_name_completion): Now static. | ||
| 22689 | |||
| 22690 | * dbusbind.c (xd_in_read_queued_messages): Now static. | ||
| 22691 | |||
| 22692 | * lisp.h (circular_list_error, FOREACH): Remove; unused. | ||
| 22693 | * data.c (circular_list_error): Remove. | ||
| 22694 | |||
| 22695 | * commands.h (last_point_position, last_point_position_buffer): | ||
| 22696 | (last_point_position_window): Remove decls. | ||
| 22697 | * keyboard.c: Make these variables static. | ||
| 22698 | |||
| 22699 | * coding.h (coding, code_convert_region, encode_coding_gap): | ||
| 22700 | Remove decls. | ||
| 22701 | * coding.c (Vsjis_coding_system, Vbig5_coding_system): | ||
| 22702 | (iso_code_class, detect_coding, code_convert_region): Now static. | ||
| 22703 | (encode_coding_gap): Remove; unused. | ||
| 22704 | |||
| 22705 | * chartab.c (chartab_chars, chartab_bits): Now static. | ||
| 22706 | |||
| 22707 | * charset.h (charset_iso_8859_1): Remove decl. | ||
| 22708 | * charset.c (charset_iso_8859_1, charset_emacs, map_charset_for_dump): | ||
| 22709 | Now static. | ||
| 22710 | |||
| 22711 | * ccl.h (check_ccl_update, Vccl_program_table): Remove decls. | ||
| 22712 | * ccl.c (Vccl_program_table): Now static. | ||
| 22713 | (check_ccl_update): Remove; unused. | ||
| 22714 | |||
| 22715 | * category.c (SET_CATEGORY_SET, set_category_set): Move here. | ||
| 22716 | * category.h: ... from here. | ||
| 22717 | * category.c (check_category_table, set_category_set): Now static. | ||
| 22718 | |||
| 22719 | * casetab.c (Vascii_upcase_table, Vascii_eqv_table): Now static. | ||
| 22720 | * lisp.h: Remove these decls. | ||
| 22721 | |||
| 22722 | * buffer.c (buffer_count): Remove unused var. | ||
| 22723 | |||
| 22724 | * bidi.c (bidi_dump_cached_states): Mark as externally visible, | ||
| 22725 | so that it's not optimized away. | ||
| 22726 | (bidi_ignore_explicit_marks_for_paragraph_level): Likewise. | ||
| 22727 | * dispextern.h (bidi_dump_cached_states): Remove, since it's | ||
| 22728 | exported only to the debugger. | ||
| 22729 | |||
| 22730 | * atimer.c (alarm_signal_handler, run_all_atimers): Now static. | ||
| 22731 | * atimer.h (run_all_atimers): Remove; not exported. | ||
| 22732 | |||
| 22733 | font.c: Make copy_font_spec and merge_font_spec ordinary C functions. | ||
| 22734 | * font.c (copy_font_spec): Rename from Fcopy_font_spec, since it | ||
| 22735 | was inaccessible from Lisp. | ||
| 22736 | (merge_font_spec): Likewise, renaming from Fmerge_font_spec. | ||
| 22737 | * font.c, font.h, fontset.c, xfaces.c, xfont.c: Change all uses. | ||
| 22738 | |||
| 22739 | alloc.c: Import and export fewer symbols, and remove unused items. | ||
| 22740 | * lisp.h (suppress_checking, die): Declare only if ENABLE_CHECKING | ||
| 22741 | is defined. | ||
| 22742 | (suppress_checking): Add EXTERNALLY_VISIBLE attribute, so that | ||
| 22743 | it's not optimized away by whole-program optimization. | ||
| 22744 | (message_enable_multibyte, free_misc): Remove. | ||
| 22745 | (catchlist, handlerlist, mark_backtrace): | ||
| 22746 | Declare only if BYTE_MARK_STACK. | ||
| 22747 | (mark_byte_stack): Likewise, fixing a ifdef-vs-if typo. | ||
| 22748 | * alloc.c (pure): Export only if VIRT_ADDR_VARIES is defined. | ||
| 22749 | (message_enable_multibyte): Remove decl. | ||
| 22750 | (free_misc, interval_free_list, float_block, float_block_index): | ||
| 22751 | (n_float_blocks, float_free_list, cons_block, cons_block_index): | ||
| 22752 | (cons_free_list, last_marked_index): | ||
| 22753 | Now static. | ||
| 22754 | (suppress_checking, die): Define only if ENABLE_CHECKING is defined. | ||
| 22755 | * eval.c (catchlist, handlerlist): Export only if BYTE_MARK_STACK. | ||
| 22756 | (mark_backtrace): Define only if BYTE_MARK_STACK. | ||
| 22757 | * xdisp.c (message_enable_multibyte): Now static. | ||
| 22758 | |||
| 22759 | Declare Lisp_Object Q* variables to be 'static' if not exported. | ||
| 22760 | This makes it easier for human readers (and static analyzers) | ||
| 22761 | to see whether these variables are used from other modules. | ||
| 22762 | * alloc.c, buffer.c, bytecode.c, callint.c, casetab.c, category.c: | ||
| 22763 | * ccl.c, character.c, charset.c, cmds.c, coding.c, composite.c: | ||
| 22764 | * data.c, dbusbind.c, dired.c, editfns.c, eval.c, fileio.c, fns.c: | ||
| 22765 | * font.c, frame.c, fringe.c, ftfont.c, image.c, keyboard.c, keymap.c: | ||
| 22766 | * lread.c, macros.c, minibuf.c, print.c, process.c, search.c: | ||
| 22767 | * sound.c, syntax.c, textprop.c, window.c, xdisp.c, xfaces.c, xfns.c: | ||
| 22768 | * xmenu.c, xselect.c: | ||
| 22769 | Declare Q* vars static if they are not used in other modules. | ||
| 22770 | * ccl.h, character.h, charset.h, coding.h, composite.h, font.h: | ||
| 22771 | * frame.h, intervals.h, keyboard.h, lisp.h, process.h, syntax.h: | ||
| 22772 | Remove decls of unexported vars. | ||
| 22773 | * keyboard.h (EVENT_HEAD_UNMODIFIED): Remove now-unused macro. | ||
| 22774 | |||
| 22775 | * lisp.h (DEFINE_FUNC): Make sname 'static'. | ||
| 22776 | |||
| 22777 | Make Emacs functions such as Fatom 'static' by default. | ||
| 22778 | This makes it easier for human readers (and static analyzers) | ||
| 22779 | to see whether these functions can be called from other modules. | ||
| 22780 | DEFUN now defines a static function. To make the function external | ||
| 22781 | so that it can be used in other C modules, use the new macro DEFUE. | ||
| 22782 | * lisp.h (Funibyte_char_to_multibyte, Fsyntax_table_p): | ||
| 22783 | (Finit_image_library): | ||
| 22784 | (Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer): | ||
| 22785 | (Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute): | ||
| 22786 | (Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes): | ||
| 22787 | Remove decls, since these functions are now static. | ||
| 22788 | (Funintern, Fget_internal_run_time): New decls, since these functions | ||
| 22789 | were already external. | ||
| 22790 | |||
| 22791 | * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c: | ||
| 22792 | * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c: | ||
| 22793 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c: | ||
| 22794 | * fns.c, font.c, fontset.c, frame.c, image.c, indent.c: | ||
| 22795 | * keyboard.c, keymap.c, lread.c: | ||
| 22796 | * macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c: | ||
| 22797 | * syntax.c, term.c, terminal.c, textprop.c, undo.c: | ||
| 22798 | * window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c: | ||
| 22799 | Mark functions with DEFUE instead of DEFUN, | ||
| 22800 | if they are used in other modules. | ||
| 22801 | * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward | ||
| 22802 | decls for now-static functions. | ||
| 22803 | * buffer.h (Fdelete_overlay): Remove decl. | ||
| 22804 | * callproc.c (Fgetenv_internal): Mark as internal. | ||
| 22805 | * composite.c (Fremove_list_of_text_properties): Remove decl. | ||
| 22806 | (Fcomposition_get_gstring): New forward static decl. | ||
| 22807 | * composite.h (Fcomposite_get_gstring): Remove decl. | ||
| 22808 | * dired.c (Ffile_attributes): New forward static decl. | ||
| 22809 | * doc.c (Fdocumntation_property): New forward static decl. | ||
| 22810 | * eval.c (Ffetch_bytecode): New forward static decl. | ||
| 22811 | (Funintern): Remove extern decl; now in .h file where it belongs. | ||
| 22812 | * fileio.c (Fmake_symbolic_link): New forward static decl. | ||
| 22813 | * image.c (Finit_image_library): New forward static decl. | ||
| 22814 | * insdel.c (Fcombine_after_change_execute): Make forward decl static. | ||
| 22815 | * intervals.h (Fprevious_property_change): | ||
| 22816 | (Fremove_list_of_text_properties): Remove decls. | ||
| 22817 | * keyboard.c (Fthis_command_keys): Remove decl. | ||
| 22818 | (Fcommand_execute): New forward static decl. | ||
| 22819 | * keymap.c (Flookup_key): New forward static decl. | ||
| 22820 | (Fcopy_keymap): Now static. | ||
| 22821 | * keymap.h (Flookup_key): Remove decl. | ||
| 22822 | * process.c (Fget_process): New forward static decl. | ||
| 22823 | (Fprocess_datagram_address): Mark as internal. | ||
| 22824 | * syntax.c (Fsyntax_table_p): New forward static decl. | ||
| 22825 | (skip_chars): Remove duplicate decl. | ||
| 22826 | * textprop.c (Fprevious_property_change): New forward static decl. | ||
| 22827 | * window.c (Fset_window_fringes, Fset_window_scroll_bars): | ||
| 22828 | Now internal. | ||
| 22829 | (Fset_window_margins, Fset_window_vscroll): New forward static decls. | ||
| 22830 | * window.h (Fset_window_vscroll, Fset_window_margins): Remove decls. | ||
| 22831 | |||
| 22832 | * editfns.c (Fformat): Remove unreachable code. | ||
| 22833 | |||
| 22834 | 2011-04-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 22835 | |||
| 22836 | * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 | ||
| 22837 | change. (Bug#8496) | ||
| 22838 | |||
| 22839 | 2011-04-13 Eli Zaretskii <eliz@gnu.org> | ||
| 22840 | |||
| 22841 | * xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init | ||
| 22842 | when at ZV. (Bug#8487) | ||
| 22843 | |||
| 22844 | 2011-04-12 Andreas Schwab <schwab@linux-m68k.org> | ||
| 22845 | |||
| 22846 | * charset.c (Fclear_charset_maps): Use xfree instead of free. | ||
| 22847 | (Bug#8437) | ||
| 22848 | * keyboard.c (parse_tool_bar_item): Likewise. | ||
| 22849 | * sound.c (sound_cleanup, alsa_close): Likewise. | ||
| 22850 | * termcap.c (tgetent): Likewise. | ||
| 22851 | * xfns.c (x_default_font_parameter): Likewise. | ||
| 22852 | * xsettings.c (read_and_apply_settings): Likewise. | ||
| 22853 | |||
| 22854 | * alloc.c (overrun_check_malloc, overrun_check_realloc) | ||
| 22855 | (overrun_check_free): Protoize. | ||
| 22856 | |||
| 22857 | 2011-04-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 22858 | |||
| 22859 | * sysdep.c (emacs_read, emacs_write): Check for negative sizes | ||
| 22860 | since callers should never pass a negative size. | ||
| 22861 | Change the signature to match that of plain 'read' and 'write'; see | ||
| 22862 | <http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00397.html>. | ||
| 22863 | * lisp.h: Update prototypes of emacs_write and emacs_read. | ||
| 22864 | |||
| 22865 | 2011-04-11 Eli Zaretskii <eliz@gnu.org> | ||
| 22866 | |||
| 22867 | * xdisp.c (redisplay_window): Don't try to determine the character | ||
| 22868 | position of the scroll margin if the window start point w->startp | ||
| 22869 | is outside the buffer's accessible region. (Bug#8468) | ||
| 22870 | |||
| 22871 | 2011-04-10 Eli Zaretskii <eliz@gnu.org> | ||
| 22872 | |||
| 22873 | Fix write-region and its subroutines for buffers > 2GB. | ||
| 22874 | * fileio.c (a_write, e_write): Modify declaration of arguments and | ||
| 22875 | local variables to support buffers larger than 2GB. | ||
| 22876 | (Fcopy_file): Use EMACS_INT for return value of emacs_read. | ||
| 22877 | |||
| 22878 | * sysdep.c (emacs_write, emacs_read): Use ssize_t for last | ||
| 22879 | argument, local variables, and return value. | ||
| 22880 | |||
| 22881 | * lisp.h: Update prototypes of emacs_write and emacs_read. | ||
| 22882 | |||
| 22883 | * sound.c (vox_write): Use ssize_t for return value of emacs_write. | ||
| 22884 | |||
| 22885 | 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 22886 | |||
| 22887 | * xdisp.c (vmessage): Use memchr, not strnlen, which some hosts lack. | ||
| 22888 | |||
| 22889 | Fix more problems found by GCC 4.6.0's static checks. | ||
| 22890 | |||
| 22891 | * xdisp.c (vmessage): Use a better test for character truncation. | ||
| 22892 | |||
| 22893 | * charset.c (load_charset_map): <, not <=, for optimization, | ||
| 22894 | and to avoid potential problems with integer overflow. | ||
| 22895 | * chartab.c (sub_char_table_set_range, char_table_set_range): Likewise. | ||
| 22896 | * casetab.c (set_identity, shuffle): Likewise. | ||
| 22897 | * editfns.c (Fformat): Likewise. | ||
| 22898 | * syntax.c (skip_chars): Likewise. | ||
| 22899 | |||
| 22900 | * xmenu.c (set_frame_menubar): Allocate smaller local vectors. | ||
| 22901 | This also lets GCC 4.6.0 generate slightly better loop code. | ||
| 22902 | |||
| 22903 | * callint.c (Fcall_interactively): <, not <=, for optimization. | ||
| 22904 | (Fcall_interactively): Count the number of arguments produced, | ||
| 22905 | not the number of arguments given. This is simpler and lets GCC | ||
| 22906 | 4.6.0 generate slightly better code. | ||
| 22907 | |||
| 22908 | * ftfont.c: Distingish more carefully between FcChar8 and char. | ||
| 22909 | The previous code passed unsigned char * to a functions like | ||
| 22910 | strlen and xstrcasecmp that expect char *, which does not | ||
| 22911 | conform to the C standard. | ||
| 22912 | (get_adstyle_property, ftfont_pattern_entity): Use FcChar8 for | ||
| 22913 | arguments to FcPatternGetString, and explicitly cast FcChar8 * to | ||
| 22914 | char * when the C standard requires it. | ||
| 22915 | |||
| 22916 | * keyboard.c (read_char): Remove unused var. | ||
| 22917 | |||
| 22918 | * eval.c: Port to Windows vsnprintf (Bug#8435). | ||
| 22919 | Include <limits.h>. | ||
| 22920 | (SIZE_MAX): Define if the headers do not. | ||
| 22921 | (verror): Do not give up if vsnprintf returns a negative count. | ||
| 22922 | Instead, grow the buffer. This ports to Windows vsnprintf, which | ||
| 22923 | does not conform to C99. Problem reported by Eli Zaretskii. | ||
| 22924 | Also, simplify the allocation scheme, by avoiding the need for | ||
| 22925 | calling realloc, and removing the ALLOCATED variable. | ||
| 22926 | |||
| 22927 | * eval.c (verror): Initial buffer size is 4000 (not 200) bytes. | ||
| 22928 | |||
| 22929 | Remove invocations of doprnt, as Emacs now uses vsnprintf. | ||
| 22930 | But keep the doprint source code for now, as we might revamp it | ||
| 22931 | and use it again (Bug#8435). | ||
| 22932 | * lisp.h (doprnt): Remove. | ||
| 22933 | * Makefile.in (base_obj): Remove doprnt.o. | ||
| 22934 | * deps.mk (doprnt.o): Remove. | ||
| 22935 | |||
| 22936 | error: Print 32- and 64-bit integers portably (Bug#8435). | ||
| 22937 | Without this change, on typical 64-bit hosts error ("...%d...", N) | ||
| 22938 | was used to print both 32- and 64-bit integers N, which relied on | ||
| 22939 | undefined behavior. | ||
| 22940 | * lisp.h, m/amdx86-64.h, m/ia64.h, m/ibms390x.h (pEd): New macro. | ||
| 22941 | * lisp.h (error, verror): Mark as printf-like functions. | ||
| 22942 | * eval.c (verror): Use vsnprintf, not doprnt, to do the real work. | ||
| 22943 | Report overflow in size calculations when allocating printf buffer. | ||
| 22944 | Do not truncate output string at its first null byte. | ||
| 22945 | * xdisp.c (vmessage): Use vsnprintf, not doprnt, to do the real work. | ||
| 22946 | Truncate the output at a character boundary, since vsnprintf does not | ||
| 22947 | do that. | ||
| 22948 | * charset.c (check_iso_charset_parameter): Convert internal | ||
| 22949 | character to string before calling 'error', since %c now has the | ||
| 22950 | printf meaning. | ||
| 22951 | * coding.c (Fdecode_sjis_char, Fdecode_big5_char): Avoid int | ||
| 22952 | overflow when computing char to be passed to 'error'. Do not | ||
| 22953 | pass Lisp_Object to 'error'; pass the integer instead. | ||
| 22954 | * nsfns.m (Fns_do_applescript): Use int, not long, since it's | ||
| 22955 | formatted with plain %d. | ||
| 22956 | |||
| 22957 | * eval.c (internal_lisp_condition_case): Don't pass spurious arg. | ||
| 22958 | |||
| 22959 | * keyboard.c (access_keymap_keyremap): Print func name, not garbage. | ||
| 22960 | |||
| 22961 | * coding.c (Fdecode_sjis_char): Don't assume CODE fits in int. | ||
| 22962 | |||
| 22963 | * xterm.c (x_catch_errors): Remove duplicate declaration. | ||
| 22964 | |||
| 22965 | * term.c (maybe_fatal): Mark its 3rd arg as a printf format, too. | ||
| 22966 | |||
| 22967 | * xdisp.c, lisp.h (message_nolog): Remove; unused. | ||
| 22968 | |||
| 22969 | 2011-04-10 Jim Meyering <meyering@redhat.com> | ||
| 22970 | |||
| 22971 | use ssize_t and size_t for read- and write-like emacs_gnutls_* functions | ||
| 22972 | * gnutls.c (emacs_gnutls_read): Adjust signature to be more read-like: | ||
| 22973 | return ssize_t not "int", and use size_t as the buffer length. | ||
| 22974 | (emacs_gnutls_write): Likewise, and make the buffer pointer "const". | ||
| 22975 | * gnutls.h: Update declarations. | ||
| 22976 | * process.c (read_process_output): Use ssize_t, to match. | ||
| 22977 | (send_process): Likewise. | ||
| 22978 | |||
| 22979 | 2011-04-09 Chong Yidong <cyd@stupidchicken.com> | ||
| 22980 | |||
| 22981 | * image.c (Fimagemagick_types): Doc fix, and comment cleanup. | ||
| 22982 | |||
| 22983 | 2011-04-09 Chong Yidong <cyd@stupidchicken.com> | ||
| 22984 | |||
| 22985 | * ftfont.c (get_adstyle_property, ftfont_pattern_entity): | ||
| 22986 | Use unsigned char, to match FcChar8 type definition. | ||
| 22987 | |||
| 22988 | * xterm.c (handle_one_xevent): | ||
| 22989 | * xmenu.c (create_and_show_popup_menu): | ||
| 22990 | * xselect.c (x_decline_selection_request) | ||
| 22991 | (x_reply_selection_request): Avoid type-punned deref of X events. | ||
| 22992 | |||
| 22993 | 2011-04-09 Eli Zaretskii <eliz@gnu.org> | ||
| 22994 | |||
| 22995 | Fix some uses of `int' instead of EMACS_INT. | ||
| 22996 | * search.c (string_match_1, fast_string_match) | ||
| 22997 | (fast_c_string_match_ignore_case, fast_string_match_ignore_case) | ||
| 22998 | (scan_buffer, find_next_newline_no_quit) | ||
| 22999 | (find_before_next_newline, search_command, Freplace_match) | ||
| 23000 | (Fmatch_data): Make some `int' variables be EMACS_INT. | ||
| 23001 | |||
| 23002 | * xdisp.c (display_count_lines): 3rd argument and return value now | ||
| 23003 | EMACS_INT. All callers changed. | ||
| 23004 | (pint2hrstr): Last argument is now EMACS_INT. | ||
| 23005 | |||
| 23006 | * coding.c (detect_coding_utf_8, detect_coding_emacs_mule) | ||
| 23007 | (detect_coding_iso_2022, detect_coding_sjis, detect_coding_big5) | ||
| 23008 | (detect_coding_ccl, detect_coding_charset, decode_coding_utf_8) | ||
| 23009 | (decode_coding_utf_16, decode_coding_emacs_mule) | ||
| 23010 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | ||
| 23011 | (decode_coding_ccl, decode_coding_charset) | ||
| 23012 | <consumed_chars, consumed_chars_base>: Declare EMACS_INT. | ||
| 23013 | (decode_coding_iso_2022, decode_coding_emacs_mule) | ||
| 23014 | (decode_coding_sjis, decode_coding_big5, decode_coding_charset) | ||
| 23015 | <char_offset, last_offset>: Declare EMACS_INT. | ||
| 23016 | (encode_coding_utf_8, encode_coding_utf_16) | ||
| 23017 | (encode_coding_emacs_mule, encode_invocation_designation) | ||
| 23018 | (encode_designation_at_bol, encode_coding_iso_2022) | ||
| 23019 | (encode_coding_sjis, encode_coding_big5, encode_coding_ccl) | ||
| 23020 | (encode_coding_raw_text, encode_coding_charset) <produced_chars>: | ||
| 23021 | Declare EMACS_INT. | ||
| 23022 | (ASSURE_DESTINATION): Declare more_bytes EMACS_INT. | ||
| 23023 | (encode_invocation_designation): Last argument P_NCHARS is now | ||
| 23024 | EMACS_INT. | ||
| 23025 | (decode_eol): Declare pos_byte, pos, and pos_end EMACS_INT. | ||
| 23026 | (produce_chars): from_nchars and to_nchars are now EMACS_INT. | ||
| 23027 | |||
| 23028 | * coding.h (struct coding_system) <head_ascii>: Declare EMACS_INT. | ||
| 23029 | All users changed. | ||
| 23030 | |||
| 23031 | * ccl.c (Fccl_execute_on_string): Declare some variables | ||
| 23032 | EMACS_INT. | ||
| 23033 | |||
| 23034 | 2011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change) | ||
| 23035 | |||
| 23036 | * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450). | ||
| 23037 | |||
| 23038 | 2011-03-19 Christoph Scholtes <cschol2112@googlemail.com> | ||
| 23039 | |||
| 23040 | * process.c (Fformat_network_address): Doc fix. | ||
| 23041 | |||
| 23042 | 2011-04-08 T.V. Raman <tv.raman.tv@gmail.com> (tiny change) | ||
| 23043 | |||
| 23044 | * xml.c (parse_region): Avoid creating spurious whitespace nodes. | ||
| 23045 | |||
| 23046 | 2011-04-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 23047 | |||
| 23048 | * keyboard.c (read_char): Call Lisp function help-form-show, | ||
| 23049 | instead of using internal_with_output_to_temp_buffer. | ||
| 23050 | (Qhelp_form_show): New var. | ||
| 23051 | (syms_of_keyboard): Use DEFSYM macro. | ||
| 23052 | |||
| 23053 | * print.c (internal_with_output_to_temp_buffer): Function deleted. | ||
| 23054 | |||
| 23055 | * lisp.h (internal_with_output_to_temp_buffer): Remove prototype. | ||
| 23056 | |||
| 23057 | 2011-04-06 Chong Yidong <cyd@stupidchicken.com> | ||
| 23058 | |||
| 23059 | * process.c (Flist_processes): Remove to Lisp. | ||
| 23060 | (list_processes_1): Delete. | ||
| 23061 | |||
| 23062 | 2011-04-06 Eli Zaretskii <eliz@gnu.org> | ||
| 23063 | |||
| 23064 | * msdos.c (careadlinkat, careadlinkatcwd): MS-DOS replacements. | ||
| 23065 | |||
| 23066 | * w32.c (careadlinkat, careadlinkatcwd): New always-fail stubs. | ||
| 23067 | |||
| 23068 | 2011-04-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 23069 | |||
| 23070 | Fix more problems found by GCC 4.6.0's static checks. | ||
| 23071 | |||
| 23072 | * xmenu.c (Fx_popup_dialog): Don't assume string is free of formats. | ||
| 23073 | |||
| 23074 | * menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats. | ||
| 23075 | |||
| 23076 | * lisp.h (message, message_nolog, fatal): Mark as printf-like. | ||
| 23077 | |||
| 23078 | * xdisp.c (vmessage): Mark as a printf-like function. | ||
| 23079 | |||
| 23080 | * term.c (vfatal, maybe_fatal): Mark as printf-like functions. | ||
| 23081 | |||
| 23082 | * sound.c (sound_warning): Don't crash if arg contains a printf format. | ||
| 23083 | |||
| 23084 | * image.c (tiff_error_handler, tiff_warning_handler): Mark as | ||
| 23085 | printf-like functions. | ||
| 23086 | (tiff_load): Add casts to remove these marks before passing them | ||
| 23087 | to system-supplied API. | ||
| 23088 | |||
| 23089 | * eval.c (Fsignal): Remove excess argument to 'fatal'. | ||
| 23090 | |||
| 23091 | * coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int. | ||
| 23092 | This avoids several warnings with gcc -Wstrict-overflow. | ||
| 23093 | (DECODE_COMPOSITION_RULE): If the rule is invalid, goto invalid_code | ||
| 23094 | directly, rather than having caller test rule sign. This avoids | ||
| 23095 | some unnecessary tests. | ||
| 23096 | * composite.h (COMPOSITION_ENCODE_RULE_VALID): New macro. | ||
| 23097 | (COMPOSITION_ENCODE_RULE): Arguments now must be valid. This | ||
| 23098 | affects only one use, in DECODE_COMPOSITION_RULE, which is changed. | ||
| 23099 | |||
| 23100 | * xfont.c (xfont_text_extents): Remove var that was set but not used. | ||
| 23101 | (xfont_open): Avoid unnecessary tests. | ||
| 23102 | |||
| 23103 | * composite.c (composition_gstring_put_cache): Use unsigned integer. | ||
| 23104 | |||
| 23105 | * composite.h, composite.c (composition_gstring_put_cache): | ||
| 23106 | Use EMACS_INT, not int, for length. | ||
| 23107 | |||
| 23108 | * composite.h (COMPOSITION_DECODE_REFS): New macro, | ||
| 23109 | breaking out part of COMPOSITION_DECODE_RULE. | ||
| 23110 | (COMPOSITION_DECODE_RULE): Use it. | ||
| 23111 | * composite.c (get_composition_id): Remove unused local vars, | ||
| 23112 | by using the new macro. | ||
| 23113 | |||
| 23114 | * textprop.c (set_text_properties_1): Change while to do-while, | ||
| 23115 | since the condition is always true at first. | ||
| 23116 | |||
| 23117 | * intervals.c (graft_intervals_into_buffer): Mark var as used. | ||
| 23118 | (interval_deletion_adjustment): Return unsigned value. | ||
| 23119 | All uses changed. | ||
| 23120 | |||
| 23121 | * process.c (list_processes_1, create_pty, read_process_output): | ||
| 23122 | (exec_sentinel): Remove vars that were set but not used. | ||
| 23123 | (create_pty): Remove unnecessary "volatile"s. | ||
| 23124 | (Fnetwork_interface_info): Avoid possibility of int overflow. | ||
| 23125 | (read_process_output): Do adaptive read buffering even if carryover. | ||
| 23126 | (read_process_output): Simplify nbytes computation if buffered. | ||
| 23127 | |||
| 23128 | * bytecode.c (exec_byte_code): Rename local to avoid shadowing. | ||
| 23129 | |||
| 23130 | * syntax.c (scan_words): Remove var that was set but not used. | ||
| 23131 | (update_syntax_table): Use unsigned instead of int. | ||
| 23132 | |||
| 23133 | * lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs. | ||
| 23134 | (lisp_file_lexically_bound_p, read1): Use unsigned instead of int. | ||
| 23135 | (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop. | ||
| 23136 | |||
| 23137 | * print.c (print_error_message): Avoid int overflow. | ||
| 23138 | |||
| 23139 | * font.c (font_list_entities): Redo for clarity, | ||
| 23140 | so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX. | ||
| 23141 | |||
| 23142 | * font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars. | ||
| 23143 | (font_score): Avoid potential overflow in diff calculation. | ||
| 23144 | |||
| 23145 | * fns.c (substring_both): Remove var that is set but not used. | ||
| 23146 | (sxhash): Redo loop for clarity and to avoid wraparound warning. | ||
| 23147 | |||
| 23148 | * eval.c (funcall_lambda): Rename local to avoid shadowing. | ||
| 23149 | |||
| 23150 | * alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int. | ||
| 23151 | Otherwise, GCC 4.6.0 optimizes the loop check away since the check | ||
| 23152 | can always succeed if overflow has undefined behavior. | ||
| 23153 | |||
| 23154 | * search.c (boyer_moore, wordify): Remove vars set but not used. | ||
| 23155 | (wordify): Omit three unnecessary tests. | ||
| 23156 | |||
| 23157 | * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column. | ||
| 23158 | All callers changed. This avoids the need for an unused var. | ||
| 23159 | |||
| 23160 | * casefiddle.c (casify_region): Remove var that is set but not used. | ||
| 23161 | |||
| 23162 | * dired.c (file_name_completion): Remove var that is set but not used. | ||
| 23163 | |||
| 23164 | * fileio.c (Finsert_file_contents): Make EOF condition clearer. | ||
| 23165 | |||
| 23166 | * fileio.c (Finsert_file_contents): Avoid signed integer overflow. | ||
| 23167 | (Finsert_file_contents): Remove unnecessary code checking fd. | ||
| 23168 | |||
| 23169 | * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes. | ||
| 23170 | Check for integer overflow on size calculations. | ||
| 23171 | |||
| 23172 | * buffer.c (Fprevious_overlay_change): Remove var that is set | ||
| 23173 | but not used. | ||
| 23174 | |||
| 23175 | * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt): | ||
| 23176 | Remove vars that are set but not used. | ||
| 23177 | (timer_check_2): Don't assume timer-list and idle-timer-list are lists. | ||
| 23178 | (timer_check_2): Mark vars as initialized. | ||
| 23179 | |||
| 23180 | * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized. | ||
| 23181 | |||
| 23182 | * image.c (lookup_image): Remove var that is set but not used. | ||
| 23183 | (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable. | ||
| 23184 | |||
| 23185 | * fontset.c (Finternal_char_font, Ffontset_info): Remove vars | ||
| 23186 | that are set but not used. | ||
| 23187 | |||
| 23188 | * xfns.c (make_invisible_cursor): Don't return garbage | ||
| 23189 | if XCreateBitmapFromData fails (Bug#8410). | ||
| 23190 | |||
| 23191 | * xselect.c (x_get_local_selection, x_handle_property_notify): | ||
| 23192 | Remove vars that are set but not used. | ||
| 23193 | |||
| 23194 | * xfns.c (x_create_tip_frame): Remove var that is set but not used. | ||
| 23195 | (make_invisible_cursor): Initialize a possibly-uninitialized variable. | ||
| 23196 | |||
| 23197 | * xterm.c (x_scroll_bar_to_input_event) [!USE_GTK]: | ||
| 23198 | Remove var that is set but not used. | ||
| 23199 | (scroll_bar_windows_size): Now size_t, not int. | ||
| 23200 | (x_send_scroll_bar_event): Use size_t, not int, for sizes. | ||
| 23201 | Check for overflow. | ||
| 23202 | |||
| 23203 | * xfaces.c (realize_named_face): Remove vars that are set but not used. | ||
| 23204 | (map_tty_color) [!defined MSDOS]: Likewise. | ||
| 23205 | |||
| 23206 | * term.c (tty_write_glyphs): Use size_t; this avoids overflow warning. | ||
| 23207 | |||
| 23208 | * coding.c: Remove vars that are set but not used. | ||
| 23209 | (DECODE_COMPOSITION_RULE): Remove 2nd arg, which is unused. | ||
| 23210 | All callers changed. | ||
| 23211 | (decode_coding_utf_8, decode_coding_utf_16 decode_coding_emacs_mule): | ||
| 23212 | (decode_coding_iso_2022, encode_coding_sjis, encode_coding_big5): | ||
| 23213 | (decode_coding_charset): Remove vars that are set but not used. | ||
| 23214 | |||
| 23215 | * bytecode.c (Fbyte_code) [!defined BYTE_CODE_SAFE]: Remove var | ||
| 23216 | that is set but not used. | ||
| 23217 | |||
| 23218 | * print.c (print_object): Remove var that is set but not used. | ||
| 23219 | |||
| 23220 | Replace 2 copies of readlink code with 1 gnulib version (Bug#8401). | ||
| 23221 | The gnulib version avoids calling malloc in the usual case, | ||
| 23222 | and on 64-bit hosts doesn't have some arbitrary 32-bit limits. | ||
| 23223 | * fileio.c (Ffile_symlink_p): Use emacs_readlink. | ||
| 23224 | * filelock.c (current_lock_owner): Likewise. | ||
| 23225 | * lisp.h (READLINK_BUFSIZE, emacs_readlink): New function. | ||
| 23226 | * sysdep.c: Include allocator.h, careadlinkat.h. | ||
| 23227 | (emacs_no_realloc_allocator): New static constant. | ||
| 23228 | (emacs_readlink): New function. | ||
| 23229 | * deps.mk (sysdep.o): Depend on ../lib/allocator.h and on | ||
| 23230 | ../lib/careadlinkat.h. | ||
| 23231 | |||
| 23232 | 2011-04-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 23233 | |||
| 23234 | * keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the | ||
| 23235 | first non-nil return value). | ||
| 23236 | |||
| 23237 | 2011-04-03 Jan Djärv <jan.h.d@swipnet.se> | ||
| 23238 | |||
| 23239 | * nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6 | ||
| 23240 | if not defined (Bug#8403). | ||
| 23241 | |||
| 23242 | 2011-04-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 23243 | |||
| 23244 | * xdisp.c (display_count_lines): Remove parameter `start', | ||
| 23245 | unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed. | ||
| 23246 | (get_char_face_and_encoding): Remove parameter `multibyte_p', | ||
| 23247 | unused since 2008-05-14T01:40:23Z!handa@m17n.org. All callers changed. | ||
| 23248 | (fill_stretch_glyph_string): Remove parameters `row' and `area', | ||
| 23249 | unused at least since Kim's GUI unification at 2003-03-16T20:45:46Z!storm@cua.dk | ||
| 23250 | and thereabouts. All callers changed. | ||
| 23251 | (get_per_char_metric): Remove parameter `f', unused since | ||
| 23252 | 2008-05-14T01:40:23Z!handa@m17n.org. All callers changed. | ||
| 23253 | |||
| 23254 | 2011-04-02 Jim Meyering <meyering@redhat.com> | ||
| 23255 | |||
| 23256 | do not dereference NULL upon failed strdup | ||
| 23257 | * nsfont.m (ns_descriptor_to_entity): Use xstrdup, not strdup. | ||
| 23258 | (ns_get_family): Likewise. | ||
| 23259 | |||
| 23260 | 2011-04-02 Juanma Barranquero <lekktu@gmail.com> | ||
| 23261 | |||
| 23262 | * eval.c (unwind_to_catch) [DEBUG_GCPRO]: Remove redundant assignment. | ||
| 23263 | |||
| 23264 | 2011-04-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 23265 | |||
| 23266 | * nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or | ||
| 23267 | later (Bug#8403). | ||
| 23268 | |||
| 23269 | 2011-04-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 23270 | |||
| 23271 | Add lexical binding. | ||
| 23272 | |||
| 23273 | * window.c (Ftemp_output_buffer_show): New fun. | ||
| 23274 | (Fsave_window_excursion): | ||
| 23275 | * print.c (Fwith_output_to_temp_buffer): Move to subr.el. | ||
| 23276 | |||
| 23277 | * lread.c (lisp_file_lexically_bound_p): New function. | ||
| 23278 | (Fload): Bind Qlexical_binding. | ||
| 23279 | (readevalloop): Remove `evalfun' arg. | ||
| 23280 | Bind Qinternal_interpreter_environment. | ||
| 23281 | (Feval_buffer): Bind Qlexical_binding. | ||
| 23282 | (defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard): | ||
| 23283 | Mark as dynamic. | ||
| 23284 | (syms_of_lread): Declare `lexical-binding'. | ||
| 23285 | |||
| 23286 | * lisp.h (struct Lisp_Symbol): New field `declared_special'. | ||
| 23287 | |||
| 23288 | * keyboard.c (eval_dyn): New fun. | ||
| 23289 | (menu_item_eval_property): Use it. | ||
| 23290 | |||
| 23291 | * image.c (parse_image_spec): Use Ffunctionp. | ||
| 23292 | |||
| 23293 | * fns.c (concat, mapcar1): Accept byte-code-functions. | ||
| 23294 | |||
| 23295 | * eval.c (Fsetq): Handle lexical vars. | ||
| 23296 | (Fdefun, Fdefmacro, Ffunction): Make closures when needed. | ||
| 23297 | (Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic. | ||
| 23298 | (FletX, Flet): Obey lexical binding. | ||
| 23299 | (Fcommandp): Handle closures. | ||
| 23300 | (Feval): New `lexical' arg. | ||
| 23301 | (eval_sub): New function extracted from Feval. Use it almost | ||
| 23302 | everywhere where Feval was used. Look up vars in lexical env. | ||
| 23303 | Handle closures. | ||
| 23304 | (Ffunctionp): Move from subr.el. | ||
| 23305 | (Ffuncall): Handle closures. | ||
| 23306 | (apply_lambda): Remove `eval_flags'. | ||
| 23307 | (funcall_lambda): Handle closures and new byte-code-functions. | ||
| 23308 | (Fspecial_variable_p): New function. | ||
| 23309 | (syms_of_eval): Initialize the Vinternal_interpreter_environment var, | ||
| 23310 | but without exporting it to Lisp. | ||
| 23311 | |||
| 23312 | * doc.c (Fdocumentation, store_function_docstring): | ||
| 23313 | * data.c (Finteractive_form): Handle closures. | ||
| 23314 | |||
| 23315 | * callint.c (Fcall_interactively): Preserve lexical-binding mode for | ||
| 23316 | interactive spec. | ||
| 23317 | |||
| 23318 | * bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN): | ||
| 23319 | New byte-codes. | ||
| 23320 | (exec_byte_code): New function extracted from Fbyte_code to handle new | ||
| 23321 | calling convention for byte-code-functions. Add new byte-codes. | ||
| 23322 | |||
| 23323 | * buffer.c (defvar_per_buffer): Set new `declared_special' field. | ||
| 23324 | |||
| 23325 | * alloc.c (Fmake_symbol): Init new `declared_special' field. | ||
| 23326 | |||
| 23327 | 2011-03-31 Juanma Barranquero <lekktu@gmail.com> | ||
| 23328 | |||
| 23329 | * xdisp.c (redisplay_internal): Fix prototype. | ||
| 23330 | |||
| 23331 | 2011-03-31 Eli Zaretskii <eliz@gnu.org> | ||
| 23332 | |||
| 23333 | * xdisp.c (SCROLL_LIMIT): New macro. | ||
| 23334 | (try_scrolling): Use it when setting scroll_limit. | ||
| 23335 | Limit scrolling to 100 screen lines. | ||
| 23336 | (redisplay_window): Even when falling back on "recentering", | ||
| 23337 | position point in the window according to scroll-conservatively, | ||
| 23338 | scroll-margin, and scroll-*-aggressively variables. (Bug#6671) | ||
| 23339 | |||
| 23340 | (try_scrolling): When point is above the window, allow searching | ||
| 23341 | as far as scroll_max, or one screenful, to compute vertical | ||
| 23342 | distance from PT to the scroll margin position. This prevents | ||
| 23343 | try_scrolling from unnecessarily failing when | ||
| 23344 | scroll-conservatively is set to a value slightly larger than the | ||
| 23345 | window height. Clean up the case of PT below the margin at bottom | ||
| 23346 | of window: scroll_max can no longer be INT_MAX. When aggressive | ||
| 23347 | scrolling is in use, don't let point enter the opposite scroll | ||
| 23348 | margin as result of the scroll. | ||
| 23349 | (syms_of_xdisp) <scroll-conservatively>: Document the | ||
| 23350 | threshold of 100 lines for never-recentering scrolling. | ||
| 23351 | |||
| 23352 | 2011-03-31 Juanma Barranquero <lekktu@gmail.com> | ||
| 23353 | |||
| 23354 | * dispextern.h (move_it_by_lines): | ||
| 23355 | * xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused | ||
| 23356 | since 2000-12-29T14:24:09Z!gerd@gnu.org. All callers changed. | ||
| 23357 | (message_log_check_duplicate): Remove parameters `prev_bol' and | ||
| 23358 | `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org. All callers changed. | ||
| 23359 | (redisplay_internal): Remove parameter `preserve_echo_area', | ||
| 23360 | unused since 1999-07-21T21:43:52Z!gerd@gnu.org. All callers changed. | ||
| 23361 | |||
| 23362 | * indent.c (Fvertical_motion): | ||
| 23363 | * window.c (window_scroll_pixel_based, Frecenter): | ||
| 23364 | Don't pass `need_y_p' to `move_it_by_lines'. | ||
| 23365 | |||
| 23366 | 2011-03-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 23367 | |||
| 23368 | * eval.c (struct backtrace): Don't cheat with negative numbers, but do | ||
| 23369 | steal a few bits to be more compact. | ||
| 23370 | (interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace): | ||
| 23371 | Remove unneeded casts. | ||
| 23372 | |||
| 23373 | * bytecode.c (Fbyte_code): CAR and CDR can GC. | ||
| 23374 | |||
| 23375 | 2011-03-30 Zachary Kanfer <zkanfer@gmail.com> (tiny change) | ||
| 23376 | |||
| 23377 | * keyboard.c (Fexecute_extended_command): Do log the "suggest key | ||
| 23378 | binding" message (bug#7967). | ||
| 23379 | |||
| 23380 | 2011-03-30 Paul Eggert <eggert@cs.ucla.edu> | ||
| 23381 | |||
| 23382 | Fix more problems found by GCC 4.6.0's static checks. | ||
| 23383 | |||
| 23384 | * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]: | ||
| 23385 | Remove unused local var. | ||
| 23386 | |||
| 23387 | * editfns.c (Fmessage_box): Remove unused local var. | ||
| 23388 | |||
| 23389 | * xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs): | ||
| 23390 | (note_mode_line_or_margin_highlight, note_mouse_highlight): | ||
| 23391 | Omit unused local vars. | ||
| 23392 | * window.c (shrink_windows): Omit unused local var. | ||
| 23393 | * menu.c (digest_single_submenu): Omit unused local var. | ||
| 23394 | * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: | ||
| 23395 | Omit unused local var. | ||
| 23396 | |||
| 23397 | * keyboard.c (parse_modifiers_uncached, parse_modifiers): | ||
| 23398 | Don't assume string length fits in int. | ||
| 23399 | (keyremap_step, read_key_sequence): Use size_t for sizes. | ||
| 23400 | (read_key_sequence): Don't check last_real_key_start redundantly. | ||
| 23401 | |||
| 23402 | * callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA | ||
| 23403 | instead of alloca (Bug#8344). | ||
| 23404 | |||
| 23405 | * eval.c (Fbacktrace): Don't assume nargs fits in int. | ||
| 23406 | (Fbacktrace_frame): Don't assume nframes fits in int. | ||
| 23407 | |||
| 23408 | * syntax.c (scan_sexps_forward): Avoid pointer wraparound. | ||
| 23409 | |||
| 23410 | * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow | ||
| 23411 | concerns. | ||
| 23412 | |||
| 23413 | * term.c (produce_glyphless_glyph): Remove unnecessary test. | ||
| 23414 | |||
| 23415 | * cm.c (calccost): Turn while-do into do-while, for clarity. | ||
| 23416 | |||
| 23417 | * keyboard.c (syms_of_keyboard): Use the same style as later | ||
| 23418 | in this function when indexing through an array. This also | ||
| 23419 | works around GCC bug 48267. | ||
| 23420 | |||
| 23421 | * image.c (tiff_load): Fix off-by-one image count (Bug#8336). | ||
| 23422 | |||
| 23423 | * xselect.c (x_check_property_data): Return correct size (Bug#8335). | ||
| 23424 | |||
| 23425 | * chartab.c (sub_char_table_ref_and_range): Redo for slight | ||
| 23426 | efficiency gain, and to bypass a gcc -Wstrict-overflow warning. | ||
| 23427 | |||
| 23428 | * keyboard.c, keyboard.h (num_input_events): Now size_t. | ||
| 23429 | This avoids undefined behavior on integer overflow, and is a bit | ||
| 23430 | more convenient anyway since it is compared to a size_t variable. | ||
| 23431 | |||
| 23432 | Variadic C functions now count arguments with size_t, not int. | ||
| 23433 | This avoids an unnecessary limitation on 64-bit machines, which | ||
| 23434 | caused (substring ...) to crash on large vectors (Bug#8344). | ||
| 23435 | * lisp.h (struct Lisp_Subr.function.aMANY): Now takes size_t, not int. | ||
| 23436 | (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call): Likewise. | ||
| 23437 | All variadic functions and their callers changed accordingly. | ||
| 23438 | (struct gcpro.nvars): Now size_t, not int. All uses changed. | ||
| 23439 | * data.c (arith_driver, float_arith_driver): Likewise. | ||
| 23440 | * editfns.c (general_insert_function): Likewise. | ||
| 23441 | * eval.c (struct backtrace.nargs, interactive_p) | ||
| 23442 | (internal_condition_case_n, run_hook_with_args, apply_lambda) | ||
| 23443 | (funcall_lambda, mark_backtrace): Likewise. | ||
| 23444 | * fns.c (concat): Likewise. | ||
| 23445 | * frame.c (x_set_frame_parameters): Likewise. | ||
| 23446 | * fns.c (get_key_arg): Now accepts and returns size_t, and returns | ||
| 23447 | 0 if not found, not -1. All callers changed. | ||
| 23448 | |||
| 23449 | * alloc.c (garbage_collect): Don't assume stack size fits in int. | ||
| 23450 | (stack_copy_size): Now size_t, not int. | ||
| 23451 | (stack_copy, stack_copy_size): Define only if MAX_SAVE_STACK > 0. | ||
| 23452 | |||
| 23453 | 2011-03-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 23454 | |||
| 23455 | * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end', | ||
| 23456 | unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org. | ||
| 23457 | All callers changed. | ||
| 23458 | |||
| 23459 | * lisp.h (multibyte_char_to_unibyte): | ||
| 23460 | * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl', | ||
| 23461 | unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org. | ||
| 23462 | * character.h (CHAR_TO_BYTE8): | ||
| 23463 | * cmds.c (internal_self_insert): | ||
| 23464 | * editfns.c (general_insert_function): | ||
| 23465 | * keymap.c (push_key_description): | ||
| 23466 | * search.c (Freplace_match): | ||
| 23467 | * xdisp.c (message_dolog, set_message_1): All callers changed. | ||
| 23468 | |||
| 23469 | 2011-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 23470 | |||
| 23471 | * keyboard.c (safe_run_hook_funcall): New function. | ||
| 23472 | (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error, | ||
| 23473 | don't set the hook to nil, but remove the offending function instead. | ||
| 23474 | (Qcommand_hook_internal): Remove, unused. | ||
| 23475 | (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define | ||
| 23476 | Vcommand_hook_internal. | ||
| 23477 | |||
| 23478 | * eval.c (enum run_hooks_condition): Remove. | ||
| 23479 | (funcall_nil, funcall_not): New functions. | ||
| 23480 | (run_hook_with_args): Call each function through a `funcall' argument. | ||
| 23481 | Remove `cond' argument, now redundant. | ||
| 23482 | (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success) | ||
| 23483 | (Frun_hook_with_args_until_failure): Adjust accordingly. | ||
| 23484 | (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions. | ||
| 23485 | |||
| 23486 | 2011-03-28 Juanma Barranquero <lekktu@gmail.com> | ||
| 23487 | |||
| 23488 | * dispextern.h (string_buffer_position): Remove declaration. | ||
| 23489 | |||
| 23490 | * print.c (strout): Remove parameter `multibyte', unused since | ||
| 23491 | 1999-08-21T19:30:21Z!gerd@gnu.org. All callers changed. | ||
| 23492 | |||
| 23493 | * search.c (boyer_moore): Remove parameters `len', `pos' and `lim', | ||
| 23494 | never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org. | ||
| 23495 | All callers changed. | ||
| 23496 | |||
| 23497 | * w32.c (_wsa_errlist): Use braces for struct initializers. | ||
| 23498 | |||
| 23499 | * xdisp.c (string_buffer_position_lim): Remove parameter `w', | ||
| 23500 | never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org. | ||
| 23501 | All callers changed. | ||
| 23502 | (string_buffer_position): Likewise. Also, make static (it's never | ||
| 23503 | used outside xdisp.c). | ||
| 23504 | (cursor_row_p): Remove parameter `w', unused since | ||
| 23505 | 2000-10-17T16:08:57Z!gerd@gnu.org. All callers changed. | ||
| 23506 | (decode_mode_spec): Remove parameter `precision', introduced during | ||
| 23507 | Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used. | ||
| 23508 | All callers changed. | ||
| 23509 | |||
| 23510 | 2011-03-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 23511 | |||
| 23512 | * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar. | ||
| 23513 | |||
| 23514 | 2011-03-27 Anders Lindgren <andlind@gmail.com> | ||
| 23515 | |||
| 23516 | * nsterm.m (ns_menu_bar_is_hidden): New variable. | ||
| 23517 | (ns_constrain_all_frames, ns_menu_bar_should_be_hidden) | ||
| 23518 | (ns_update_auto_hide_menu_bar): New functions. | ||
| 23519 | (ns_update_begin): Call ns_update_auto_hide_menu_bar. | ||
| 23520 | (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and | ||
| 23521 | ns_constrain_all_frames. | ||
| 23522 | (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden. | ||
| 23523 | (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil. | ||
| 23524 | |||
| 23525 | 2011-03-27 Jan Djärv <jan.h.d@swipnet.se> | ||
| 23526 | |||
| 23527 | * nsmenu.m (runDialogAt): Remove argument to timer_check. | ||
| 23528 | |||
| 23529 | 2011-03-27 Glenn Morris <rgm@gnu.org> | ||
| 23530 | |||
| 23531 | * syssignal.h: Replace RETSIGTYPE with void. | ||
| 23532 | * atimer.c, data.c, dispnew.c, emacs.c, floatfns.c, keyboard.c: | ||
| 23533 | * keyboard.h, lisp.h, process.c, sysdep.c, xterm.c: | ||
| 23534 | Replace SIGTYPE with void everywhere. | ||
| 23535 | * s/usg5-4-common.h (SIGTYPE): Remove definition. | ||
| 23536 | * s/template.h (SIGTYPE): Remove commented out definition. | ||
| 23537 | |||
| 23538 | 2011-03-26 Eli Zaretskii <eliz@gnu.org> | ||
| 23539 | |||
| 23540 | * xdisp.c (redisplay_window): Don't check buffer's clip_changed | ||
| 23541 | flag as a prerequisite for invoking try_scrolling. (Bug#6671) | ||
| 23542 | |||
| 23543 | 2011-03-26 Juanma Barranquero <lekktu@gmail.com> | ||
| 23544 | |||
| 23545 | * w32.c (read_unc_volume): Use parameter `henum', instead of | ||
| 23546 | global variable `wget_enum_handle'. | ||
| 23547 | |||
| 23548 | * keymap.c (describe_vector): Remove parameters `indices' and | ||
| 23549 | `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org. | ||
| 23550 | (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'. | ||
| 23551 | |||
| 23552 | * keyboard.h (timer_check, show_help_echo): Remove unused parameters. | ||
| 23553 | |||
| 23554 | * keyboard.c (timer_check): Remove parameter `do_it_now', | ||
| 23555 | unused since 1996-04-12T06:01:29Z!rms@gnu.org. | ||
| 23556 | (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo', | ||
| 23557 | unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca. | ||
| 23558 | |||
| 23559 | * keyboard.c (read_char): | ||
| 23560 | * w32menu.c (w32_menu_display_help): | ||
| 23561 | * xmenu.c (show_help_event, menu_help_callback): | ||
| 23562 | Adjust calls to `show_help_echo'. | ||
| 23563 | |||
| 23564 | * gtkutil.c (xg_maybe_add_timer): | ||
| 23565 | * keyboard.c (readable_events): | ||
| 23566 | * process.c (wait_reading_process_output): | ||
| 23567 | * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'. | ||
| 23568 | |||
| 23569 | * insdel.c (adjust_markers_gap_motion): | ||
| 23570 | Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org. | ||
| 23571 | (gap_left, gap_right): Don't call it. | ||
| 23572 | |||
| 23573 | 2011-03-25 Chong Yidong <cyd@stupidchicken.com> | ||
| 23574 | |||
| 23575 | * xdisp.c (handle_fontified_prop): Discard changes to clip_changed | ||
| 23576 | incurred during fontification. | ||
| 23577 | |||
| 23578 | 2011-03-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 23579 | |||
| 23580 | * buffer.c (defvar_per_buffer): Remove unused parameter `doc'. | ||
| 23581 | (DEFVAR_PER_BUFFER): Don't pass it. | ||
| 23582 | |||
| 23583 | * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'. | ||
| 23584 | (scrolling_window): Don't pass it. | ||
| 23585 | |||
| 23586 | 2011-03-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 23587 | |||
| 23588 | * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef. | ||
| 23589 | |||
| 23590 | * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len' | ||
| 23591 | and `suffix'. | ||
| 23592 | (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration | ||
| 23593 | of variables specific to SELinux and computation of `encoded_absname'. | ||
| 23594 | |||
| 23595 | * image.c (XPutPixel): Remove unused variable `height'. | ||
| 23596 | |||
| 23597 | * keyboard.c (make_lispy_event): Remove unused variable `hpos'. | ||
| 23598 | |||
| 23599 | * unexw32.c (get_section_info): Remove unused variable `section'. | ||
| 23600 | |||
| 23601 | * w32.c (stat): Remove unused variables `drive_root' and `devtype'. | ||
| 23602 | (system_process_attributes): Remove unused variable `sess'. | ||
| 23603 | (sys_read): Remove unused variable `err'. | ||
| 23604 | |||
| 23605 | * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef. | ||
| 23606 | (w32_wnd_proc): Remove unused variable `isdead'. | ||
| 23607 | (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef. | ||
| 23608 | (Fx_server_max_request_size): Remove unused variable `dpyinfo'. | ||
| 23609 | (x_create_tip_frame): Remove unused variable `tem'. | ||
| 23610 | |||
| 23611 | * w32inevt.c (w32_console_read_socket): | ||
| 23612 | Remove unused variable `no_events'. | ||
| 23613 | |||
| 23614 | * w32term.c (x_draw_composite_glyph_string_foreground): | ||
| 23615 | Remove unused variable `width'. | ||
| 23616 | |||
| 23617 | 2011-03-24 Juanma Barranquero <lekktu@gmail.com> | ||
| 23618 | |||
| 23619 | * w32term.c (x_set_glyph_string_clipping): | ||
| 23620 | Don't pass uninitialized region to CombineRgn. | ||
| 23621 | |||
| 23622 | 2011-03-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 23623 | |||
| 23624 | * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'. | ||
| 23625 | (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer. | ||
| 23626 | (Fx_close_connection): Remove unused variable `i'. | ||
| 23627 | |||
| 23628 | * w32font.c (w32font_draw): Return number of glyphs. | ||
| 23629 | (w32font_open_internal): Remove unused variable `i'. | ||
| 23630 | (w32font_driver): Add missing initializer. | ||
| 23631 | |||
| 23632 | * w32menu.c (utf8to16): Remove unused variable `utf16'. | ||
| 23633 | (fill_in_menu): Remove unused variable `items_added'. | ||
| 23634 | |||
| 23635 | * w32term.c (last_mouse_press_frame): Remove static global variable. | ||
| 23636 | (w32_clip_to_row): Remove unused variable `f'. | ||
| 23637 | (x_delete_terminal): Remove unused variable `i'. | ||
| 23638 | |||
| 23639 | * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'. | ||
| 23640 | (NOTHING): Remove unused static global variable. | ||
| 23641 | (uniscribe_check_otf): Remove unused variable `table'. | ||
| 23642 | (uniscribe_font_driver): Add missing initializers. | ||
| 23643 | |||
| 23644 | 2011-03-23 Julien Danjou <julien@danjou.info> | ||
| 23645 | |||
| 23646 | * term.c (Fsuspend_tty, Fresume_tty): | ||
| 23647 | * minibuf.c (read_minibuf, run_exit_minibuf_hook): | ||
| 23648 | * window.c (temp_output_buffer_show): | ||
| 23649 | * insdel.c (signal_before_change): | ||
| 23650 | * frame.c (Fhandle_switch_frame): | ||
| 23651 | * fileio.c (Fdo_auto_save): | ||
| 23652 | * emacs.c (Fkill_emacs): | ||
| 23653 | * editfns.c (save_excursion_restore): | ||
| 23654 | * cmds.c (internal_self_insert): | ||
| 23655 | * callint.c (Fcall_interactively): | ||
| 23656 | * buffer.c (Fkill_all_local_variables): | ||
| 23657 | * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1): | ||
| 23658 | Use Frun_hooks. | ||
| 23659 | (command_loop_1): Use Frun_hooks. Call safe_run_hooks | ||
| 23660 | unconditionally since it does the check itself. | ||
| 23661 | |||
| 23662 | 2011-03-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 23663 | |||
| 23664 | Fix more problems found by GCC 4.5.2's static checks. | ||
| 23665 | |||
| 23666 | * coding.c (encode_coding_raw_text): Avoid unnecessary test | ||
| 23667 | the first time through the loop, since we know p0 < p1 then. | ||
| 23668 | This also avoids a gcc -Wstrict-overflow warning. | ||
| 23669 | |||
| 23670 | * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow | ||
| 23671 | leading to a memory leak, possible in functions like | ||
| 23672 | load_charset_map_from_file that can allocate an unbounded number | ||
| 23673 | of objects (Bug#8318). | ||
| 23674 | |||
| 23675 | * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes | ||
| 23676 | that could (at least in theory) be that large. | ||
| 23677 | |||
| 23678 | * xdisp.c (message_log_check_duplicate): Return unsigned long, not int. | ||
| 23679 | This is less likely to overflow, and avoids undefined behavior if | ||
| 23680 | overflow does occur. All callers changed. Use strtoul to scan | ||
| 23681 | for the unsigned long integer. | ||
| 23682 | (pint2hrstr): Simplify and tune code slightly. | ||
| 23683 | This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow. | ||
| 23684 | |||
| 23685 | * scroll.c (do_scrolling): Work around GCC bug 48228. | ||
| 23686 | See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>. | ||
| 23687 | |||
| 23688 | * frame.c (Fmodify_frame_parameters): Simplify loop counter. | ||
| 23689 | This also avoids a warning with gcc -Wstrict-overflow. | ||
| 23690 | (validate_x_resource_name): Simplify count usage. | ||
| 23691 | This also avoids a warning with gcc -Wstrict-overflow. | ||
| 23692 | |||
| 23693 | * fileio.c (Fcopy_file): Report error if fchown or fchmod | ||
| 23694 | fail (Bug#8306). | ||
| 23695 | |||
| 23696 | * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303). | ||
| 23697 | |||
| 23698 | * process.c (Fmake_network_process): Use socklen_t, not int, | ||
| 23699 | where POSIX says socklen_t is required in portable programs. | ||
| 23700 | This fixes a porting bug on hosts like 64-bit HP-UX, where | ||
| 23701 | socklen_t is wider than int (Bug#8277). | ||
| 23702 | (Fmake_network_process, server_accept_connection): | ||
| 23703 | (wait_reading_process_output, read_process_output): | ||
| 23704 | Likewise. | ||
| 23705 | |||
| 23706 | * process.c: Rename or move locals to avoid shadowing. | ||
| 23707 | (list_processes_1, Fmake_network_process): | ||
| 23708 | (read_process_output_error_handler, exec_sentinel_error_handler): | ||
| 23709 | Rename or move locals. | ||
| 23710 | (Fmake_network_process): Define label "retry_connect" only if needed. | ||
| 23711 | (Fnetwork_interface_info): Fix pointer signedness. | ||
| 23712 | (process_send_signal): Add cast to avoid pointer signedness problem. | ||
| 23713 | (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros. | ||
| 23714 | (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298). | ||
| 23715 | |||
| 23716 | Make tparam.h and terminfo.c consistent. | ||
| 23717 | * cm.c (tputs, tgoto, BC, UP): Remove extern decls. | ||
| 23718 | Include tparam.h instead, since it declares them. | ||
| 23719 | * cm.h (PC): Remove extern decl; tparam.h now does this. | ||
| 23720 | * deps.mk (cm.o, terminfo.o): Depend on tparam.h. | ||
| 23721 | * terminfo.c: Include tparam.h, to check interfaces. | ||
| 23722 | (tparm): Make 1st arg a const pointer in decl. Put it at top level. | ||
| 23723 | (tparam): Adjust signature to match interface in tparam.h; | ||
| 23724 | this removes some undefined behavior. Check that outstring and len | ||
| 23725 | are zero, which they always are with Emacs. | ||
| 23726 | * tparam.h (PC, BC, UP): New extern decls. | ||
| 23727 | |||
| 23728 | * xftfont.c (xftfont_shape): Now static, and defined only if needed. | ||
| 23729 | (xftfont_open): Rename locals to avoid shadowing. | ||
| 23730 | |||
| 23731 | * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. | ||
| 23732 | (ftfont_otf_capability, ftfont_shape): Omit decls if not needed. | ||
| 23733 | (OTF_TAG_SYM): Omit macro if not needed. | ||
| 23734 | (ftfont_list): Remove unused local. | ||
| 23735 | (get_adstyle_property, ftfont_pattern_entity): | ||
| 23736 | (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point): | ||
| 23737 | Rename locals to avoid shadowing. | ||
| 23738 | |||
| 23739 | * xfont.c (xfont_list_family): Mark var as initialized. | ||
| 23740 | |||
| 23741 | * xml.c (make_dom): Now static. | ||
| 23742 | |||
| 23743 | * composite.c (composition_compute_stop_pos): Rename local to | ||
| 23744 | avoid shadowing. | ||
| 23745 | (composition_reseat_it): Remove unused locals. | ||
| 23746 | (find_automatic_composition, composition_adjust_point): Likewise. | ||
| 23747 | (composition_update_it): Mark var as initialized. | ||
| 23748 | (find_automatic_composition): Mark vars as initialized, | ||
| 23749 | with a FIXME (Bug#8290). | ||
| 23750 | |||
| 23751 | character.h: Rename locals to avoid shadowing. | ||
| 23752 | * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE): | ||
| 23753 | (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE): | ||
| 23754 | (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS): | ||
| 23755 | (BUF_DEC_POS): Be more systematic about renaming local temporaries | ||
| 23756 | to avoid shadowing. | ||
| 23757 | |||
| 23758 | * textprop.c (property_change_between_p): Remove; unused. | ||
| 23759 | |||
| 23760 | * intervals.c (interval_start_pos): Now static. | ||
| 23761 | |||
| 23762 | * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else". | ||
| 23763 | |||
| 23764 | * atimer.c (start_atimer, append_atimer_lists, set_alarm): | ||
| 23765 | Rename locals to avoid shadowing. | ||
| 23766 | |||
| 23767 | * sound.c (wav_play, au_play, Fplay_sound_internal): | ||
| 23768 | Fix pointer signedness. | ||
| 23769 | (alsa_choose_format): Remove unused local var. | ||
| 23770 | (wav_play): Initialize a variable to 0, to prevent undefined | ||
| 23771 | behavior (Bug#8278). | ||
| 23772 | |||
| 23773 | * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing. | ||
| 23774 | |||
| 23775 | * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes. | ||
| 23776 | |||
| 23777 | * callproc.c (Fcall_process): Use 'volatile' to avoid vfork | ||
| 23778 | clobbering (Bug#8298). | ||
| 23779 | * sysdep.c (sys_subshell): Likewise. | ||
| 23780 | Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out. | ||
| 23781 | |||
| 23782 | * lisp.h (child_setup): Now NO_RETURN unless DOS_NT. | ||
| 23783 | This should get cleaned up, so that child_setup has the | ||
| 23784 | same signature on all platforms. | ||
| 23785 | |||
| 23786 | * callproc.c (call_process_cleanup): Now static. | ||
| 23787 | (relocate_fd): Rename locals to avoid shadowing. | ||
| 23788 | |||
| 23789 | 2011-03-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 23790 | |||
| 23791 | * xterm.c (x_clear_frame): Remove XClearWindow call. This appears | ||
| 23792 | not to be necessary, and produces flickering. | ||
| 23793 | |||
| 23794 | 2011-03-20 Glenn Morris <rgm@gnu.org> | ||
| 23795 | |||
| 23796 | * config.in: Remove file. | ||
| 23797 | |||
| 23798 | 2011-03-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 23799 | |||
| 23800 | * minibuf.c (Vcompleting_read_function): Don't declare, global variables | ||
| 23801 | are now in src/globals.h. | ||
| 23802 | (syms_of_minibuf): Remove spurious & from previous change. | ||
| 23803 | |||
| 23804 | 2011-03-20 Leo Liu <sdl.web@gmail.com> | ||
| 23805 | |||
| 23806 | * minibuf.c (completing-read-function): New variable. | ||
| 23807 | (completing-read-default): Rename from completing-read. | ||
| 23808 | (completing-read): Call completing-read-function. | ||
| 23809 | |||
| 23810 | 2011-03-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 23811 | |||
| 23812 | * xfaces.c (Fx_load_color_file): | ||
| 23813 | Read color file from absolute filename (bug#8250). | ||
| 23814 | |||
| 23815 | 2011-03-19 Juanma Barranquero <lekktu@gmail.com> | ||
| 23816 | |||
| 23817 | * makefile.w32-in: Update dependencies. | ||
| 23818 | |||
| 23819 | 2011-03-17 Eli Zaretskii <eliz@gnu.org> | ||
| 23820 | |||
| 23821 | * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h. | ||
| 23822 | |||
| 23823 | 2011-03-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 23824 | |||
| 23825 | Fix more problems found by GCC 4.5.2's static checks. | ||
| 23826 | |||
| 23827 | * process.c (make_serial_process_unwind, send_process_trap): | ||
| 23828 | (sigchld_handler): Now static. | ||
| 23829 | |||
| 23830 | * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars. | ||
| 23831 | That way, the code declares only the vars that it needs. | ||
| 23832 | * s/aix4-2.h (PTY_ITERATION): Declare iteration vars. | ||
| 23833 | * s/cygwin.h (PTY_ITERATION): Likewise. | ||
| 23834 | * s/darwin.h (PTY_ITERATION): Likewise. | ||
| 23835 | * s/gnu-linux.h (PTY_ITERATION): Likewise. | ||
| 23836 | |||
| 23837 | * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling. | ||
| 23838 | * process.c (allocate_pty): Don't declare stb unless it's needed. | ||
| 23839 | |||
| 23840 | * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else". | ||
| 23841 | (CONSTANTLIM): Remove; unused. | ||
| 23842 | (METER_CODE, Bscan_buffer, Bread_char, Bset_mark): | ||
| 23843 | Define only if needed. | ||
| 23844 | |||
| 23845 | * unexelf.c (unexec): Name an expression, | ||
| 23846 | to avoid gcc -Wbad-function-cast warning. | ||
| 23847 | Use a different way to cause a compilation error if anyone uses | ||
| 23848 | n rather than nn, a way that does not involve shadowing. | ||
| 23849 | (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused. | ||
| 23850 | |||
| 23851 | * deps.mk (unexalpha.o): Remove; unused. | ||
| 23852 | |||
| 23853 | New file unexec.h, the (simple) interface for unexec (Bug#8267). | ||
| 23854 | * unexec.h: New file. | ||
| 23855 | * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o): | ||
| 23856 | (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o): | ||
| 23857 | Depend on unexec.h. | ||
| 23858 | * emacs.c [!defined CANNOT_DUMP]: Include unexec.h. | ||
| 23859 | * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c: | ||
| 23860 | * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h. | ||
| 23861 | Change as necessary to match prototype in unexec.h. | ||
| 23862 | |||
| 23863 | * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid | ||
| 23864 | shadowing. | ||
| 23865 | (back_comment, skip_chars): Mark vars as initialized. | ||
| 23866 | |||
| 23867 | * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS): | ||
| 23868 | Rename locals to avoid shadowing. | ||
| 23869 | |||
| 23870 | * lread.c (read1): Rewrite so as not to use empty "else". | ||
| 23871 | (Fload, readevalloop, read1): Rename locals to avoid shadowing. | ||
| 23872 | |||
| 23873 | * print.c (Fredirect_debugging_output): Fix pointer signedess. | ||
| 23874 | |||
| 23875 | * lisp.h (debug_output_compilation_hack): Add decl here, to avoid | ||
| 23876 | warning when compiling print.c. | ||
| 23877 | |||
| 23878 | * font.c (font_unparse_fcname): Abort in an "impossible" situation | ||
| 23879 | instead of using an uninitialized var. | ||
| 23880 | (font_sort_entities): Mark var as initialized. | ||
| 23881 | |||
| 23882 | * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing. | ||
| 23883 | |||
| 23884 | * font.c (font_unparse_xlfd): Don't mix pointers to variables with | ||
| 23885 | pointers to constants. | ||
| 23886 | (font_parse_fcname): Remove unused vars. | ||
| 23887 | (font_delete_unmatched): Now static. | ||
| 23888 | (font_get_spec): Remove; unused. | ||
| 23889 | (font_style_to_value, font_prop_validate_style, font_unparse_fcname): | ||
| 23890 | (font_update_drivers, Ffont_get_glyphs, font_add_log): | ||
| 23891 | Rename or move locals to avoid shadowing. | ||
| 23892 | |||
| 23893 | * fns.c (require_nesting_list, require_unwind): Now static. | ||
| 23894 | (Ffillarray): Rename locals to avoid shadowing. | ||
| 23895 | |||
| 23896 | * floatfns.c (domain_error2): Define only if needed. | ||
| 23897 | (Ffrexp, Fldexp): Rename locals to avoid shadowing. | ||
| 23898 | |||
| 23899 | * alloc.c (mark_backtrace): Move decl from here ... | ||
| 23900 | * lisp.h: ... to here, so that it can be checked. | ||
| 23901 | |||
| 23902 | * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static. | ||
| 23903 | (Fdefvar): Rewrite so as not to use empty "else". | ||
| 23904 | (lisp_indirect_variable): Name an expression, | ||
| 23905 | to avoid gcc -Wbad-function-cast warning. | ||
| 23906 | (Fdefvar): Rename locals to avoid shadowing. | ||
| 23907 | |||
| 23908 | * callint.c (quotify_arg, quotify_args): Now static. | ||
| 23909 | (Fcall_interactively): Rename locals to avoid shadowing. | ||
| 23910 | Use const pointer when appropriate. | ||
| 23911 | |||
| 23912 | * lisp.h (get_system_name, get_operating_system_release): | ||
| 23913 | Move decls here, to check interfaces. | ||
| 23914 | * process.c (get_operating_system_release): Move decl to lisp.h. | ||
| 23915 | * xrdb.c (get_system_name): Likewise. | ||
| 23916 | * editfns.c (init_editfns, Fuser_login_name, Fuser_uid): | ||
| 23917 | (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts, | ||
| 23918 | some of which prompt warnings from gcc -Wbad-function-cast. | ||
| 23919 | (Fformat_time_string, Fencode_time, Finsert_char): | ||
| 23920 | (Ftranslate_region_internal, Fformat): | ||
| 23921 | Rename or remove local vars to avoid shadowing. | ||
| 23922 | (Ftranslate_region_internal): Mark var as initialized. | ||
| 23923 | |||
| 23924 | * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to | ||
| 23925 | avoid shadowing. | ||
| 23926 | |||
| 23927 | * lisp.h (eassert): Check that the argument compiles, even if | ||
| 23928 | ENABLE_CHECKING is not defined. | ||
| 23929 | |||
| 23930 | * data.c (Findirect_variable): Name an expression, to avoid | ||
| 23931 | gcc -Wbad-function-cast warning. | ||
| 23932 | (default_value, arithcompare, arith_driver, arith_error): Now static. | ||
| 23933 | (store_symval_forwarding): Rename local to avoid shadowing. | ||
| 23934 | (Fmake_variable_buffer_local, Fmake_local_variable): | ||
| 23935 | Mark variables as initialized. | ||
| 23936 | (do_blv_forwarding, do_symval_forwarding): Remove; unused. | ||
| 23937 | |||
| 23938 | * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST. | ||
| 23939 | (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect): | ||
| 23940 | Rename locals to avoid shadowing. | ||
| 23941 | (mark_stack): Move local variables into the #ifdef region where | ||
| 23942 | they're used. | ||
| 23943 | (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if | ||
| 23944 | ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not | ||
| 23945 | needed otherwise. | ||
| 23946 | (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS. | ||
| 23947 | (GC_STRING_CHARS): Remove; not used. | ||
| 23948 | (Fmemory_limit): Cast sbrk's returned value to char *. | ||
| 23949 | |||
| 23950 | * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this | ||
| 23951 | avoids undefined behavior in theory. | ||
| 23952 | |||
| 23953 | * regex.c (IF_LINT): Add defn, for benefit of ../lib-src. | ||
| 23954 | |||
| 23955 | Use functions, not macros, for up- and down-casing (Bug#8254). | ||
| 23956 | * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP): | ||
| 23957 | (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed | ||
| 23958 | to use the following functions instead of these macros. | ||
| 23959 | (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not | ||
| 23960 | EMACS_INT, since callers assume the returned value fits in int. | ||
| 23961 | (upcase1): Likewise, for UPCASE_TABLE. | ||
| 23962 | (uppercasep, lowercasep, upcase): New static inline functions. | ||
| 23963 | * editfns.c (Fchar_equal): Remove no-longer-needed workaround for | ||
| 23964 | the race-condition problem in the old DOWNCASE. | ||
| 23965 | |||
| 23966 | * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT): | ||
| 23967 | Rename locals to avoid shadowing. | ||
| 23968 | (regex_compile, re_match_2_internal): Move locals to avoid shadowing. | ||
| 23969 | (regex_compile, re_search_2, re_match_2_internal): | ||
| 23970 | Remove unused local vars. | ||
| 23971 | (FREE_VAR): Rewrite so as not to use empty "else", | ||
| 23972 | which gcc can warn about. | ||
| 23973 | (regex_compile, re_match_2_internal): Mark locals as initialized. | ||
| 23974 | (RETALLOC_IF): Define only if needed. | ||
| 23975 | (WORDCHAR_P): Likewise. This one is never needed, but is used | ||
| 23976 | only in a comment talking about a compiler bug, so put inside | ||
| 23977 | the #if 0 of that comment. | ||
| 23978 | (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK): | ||
| 23979 | (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING): | ||
| 23980 | Remove; unused. | ||
| 23981 | |||
| 23982 | * search.c (boyer_moore): Rename locals to avoid shadowing. | ||
| 23983 | * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): | ||
| 23984 | (PREV_CHAR_BOUNDARY): Likewise. | ||
| 23985 | |||
| 23986 | * search.c (simple_search): Remove unused var. | ||
| 23987 | |||
| 23988 | * dired.c (compile_pattern): Move decl from here ... | ||
| 23989 | * lisp.h: ... to here, so that it can be checked. | ||
| 23990 | (struct re_registers): New forward decl. | ||
| 23991 | |||
| 23992 | * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing. | ||
| 23993 | |||
| 23994 | * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width. | ||
| 23995 | All uses changed. | ||
| 23996 | (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion): | ||
| 23997 | Rename locals to avoid shadowing. | ||
| 23998 | (Fvertical_motion): Mark locals as initialized. | ||
| 23999 | |||
| 24000 | * casefiddle.c (casify_object, casify_region): Now static. | ||
| 24001 | (casify_region): Mark local as initialized. | ||
| 24002 | |||
| 24003 | * cmds.c (internal_self_insert): Rename local to avoid shadowing. | ||
| 24004 | |||
| 24005 | * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR): | ||
| 24006 | New macros, so that the caller can use some names other than | ||
| 24007 | gcpro1, gcpro2, etc. | ||
| 24008 | (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms | ||
| 24009 | of the new macros. | ||
| 24010 | (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second | ||
| 24011 | argument, for consistency with GCPRO2_VAR, etc: it is now the | ||
| 24012 | prefix of the variable, not the variable itself. All uses | ||
| 24013 | changed. | ||
| 24014 | * dired.c (directory_files_internal, file_name_completion): | ||
| 24015 | Rename locals to avoid shadowing. | ||
| 24016 | |||
| 24017 | Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254). | ||
| 24018 | An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in | ||
| 24019 | dired.c's scmp function, had undefined behavior. | ||
| 24020 | * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP): | ||
| 24021 | (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ... | ||
| 24022 | * buffer.h: ... to here, because these macros use current_buffer, | ||
| 24023 | and the new implementation with inline functions needs to have | ||
| 24024 | current_buffer in scope now, rather than later when the macros | ||
| 24025 | are used. | ||
| 24026 | (downcase, upcase1): New static inline functions. | ||
| 24027 | (DOWNCASE, UPCASE1): Reimplement using these functions. | ||
| 24028 | This avoids undefined behavior in expressions like | ||
| 24029 | DOWNCASE (x) == DOWNCASE (y), which previously suffered | ||
| 24030 | from race conditions in accessing the global variables | ||
| 24031 | case_temp1 and case_temp2. | ||
| 24032 | * casetab.c (case_temp1, case_temp2): Remove; no longer needed. | ||
| 24033 | * lisp.h (case_temp1, case_temp2): Remove their decls. | ||
| 24034 | * character.h (ASCII_CHAR_P): Move from here ... | ||
| 24035 | * lisp.h: ... to here, so that the inline functions mentioned | ||
| 24036 | above can use them. | ||
| 24037 | |||
| 24038 | * dired.c (directory_files_internal_unwind): Now static. | ||
| 24039 | |||
| 24040 | * fileio.c (file_name_as_directory, directory_file_name): | ||
| 24041 | (barf_or_query_if_file_exists, auto_save_error, auto_save_1): | ||
| 24042 | Now static. | ||
| 24043 | (file_name_as_directory): Use const pointers when appropriate. | ||
| 24044 | (Fexpand_file_name): Likewise. In particular, newdir might | ||
| 24045 | point at constant storage, so make it a const pointer. | ||
| 24046 | (Fmake_directory_internal, Fread_file_name): Remove unused vars. | ||
| 24047 | (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer | ||
| 24048 | signedness issues. | ||
| 24049 | (Fset_file_times, Finsert_file_contents, auto_save_error): | ||
| 24050 | Rename locals to avoid shadowing. | ||
| 24051 | |||
| 24052 | * minibuf.c (choose_minibuf_frame_1): Now static. | ||
| 24053 | (Ftry_completion, Fall_completions): Rename or remove locals | ||
| 24054 | to avoid shadowing. | ||
| 24055 | |||
| 24056 | * marker.c (bytepos_to_charpos): Remove; unused. | ||
| 24057 | |||
| 24058 | * lisp.h (verify_bytepos, count_markers): New decls, | ||
| 24059 | so that gcc does not warn that these functions aren't declared. | ||
| 24060 | |||
| 24061 | * insdel.c (check_markers, make_gap_larger, make_gap_smaller): | ||
| 24062 | (reset_var_on_error, Fcombine_after_change_execute_1): Now static. | ||
| 24063 | (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic. | ||
| 24064 | (copy_text): Remove unused local var. | ||
| 24065 | |||
| 24066 | * filelock.c (within_one_second): Now static. | ||
| 24067 | (lock_file_1): Rename local to avoid shadowing. | ||
| 24068 | |||
| 24069 | * buffer.c (fix_overlays_before): Mark locals as initialized. | ||
| 24070 | (fix_start_end_in_overlays): Likewise. This function should be | ||
| 24071 | simplified by using pointers-to-pointers, but that's a different | ||
| 24072 | matter. | ||
| 24073 | (switch_to_buffer_1): Now static. | ||
| 24074 | (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte): | ||
| 24075 | (report_overlay_modification): Rename locals to avoid shadowing. | ||
| 24076 | |||
| 24077 | * sysdep.c (system_process_attributes): Rename vars to avoid shadowing. | ||
| 24078 | Fix pointer signedness issue. | ||
| 24079 | (sys_subshell): Mark local as volatile if checking for lint, | ||
| 24080 | to suppress a gcc -Wclobbered warning that does not seem to be right. | ||
| 24081 | (MAXPATHLEN): Define only if needed. | ||
| 24082 | |||
| 24083 | * process.c (serial_open, serial_configure): Move decls from here ... | ||
| 24084 | * systty.h: ... to here, so that they can be checked. | ||
| 24085 | |||
| 24086 | * fns.c (get_random, seed_random): Move extern decls from here ... | ||
| 24087 | * lisp.h: ... to here, so that they can be checked. | ||
| 24088 | |||
| 24089 | * sysdep.c (reset_io): Now static. | ||
| 24090 | (wait_for_termination_signal): Remove; unused. | ||
| 24091 | |||
| 24092 | * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal): | ||
| 24093 | (copy_keymap_item, append_key, push_text_char_description): | ||
| 24094 | Now static. | ||
| 24095 | (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily. | ||
| 24096 | (DENSE_TABLE_SIZE): Remove; unused. | ||
| 24097 | (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal): | ||
| 24098 | (describe_map_tree): | ||
| 24099 | Rename locals to avoid shadowing. | ||
| 24100 | |||
| 24101 | * keyboard.c: Declare functions static if they are not used elsewhere. | ||
| 24102 | (echo_char, echo_dash, cmd_error, top_level_2): | ||
| 24103 | (poll_for_input, handle_async_input): Now static. | ||
| 24104 | (read_char, kbd_buffer_get_event, make_lispy_position): | ||
| 24105 | (make_lispy_event, make_lispy_movement, apply_modifiers): | ||
| 24106 | (decode_keyboard_code, tty_read_avail_input, menu_bar_items): | ||
| 24107 | (parse_tool_bar_item, read_key_sequence, Fread_key_sequence): | ||
| 24108 | (Fread_key_sequence_vector): Rename locals to avoid shadowing. | ||
| 24109 | (read_key_sequence, read_char): Mark locals as initialized. | ||
| 24110 | (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN. | ||
| 24111 | |||
| 24112 | * keyboard.h (make_ctrl_char): New decl. | ||
| 24113 | (mark_kboards): Move decl here ... | ||
| 24114 | * alloc.c (mark_kboards): ... from here. | ||
| 24115 | |||
| 24116 | * lisp.h (force_auto_save_soon): New decl. | ||
| 24117 | |||
| 24118 | * emacs.c (init_cmdargs): Rename local to avoid shadowing. | ||
| 24119 | (DEFINE_DUMMY_FUNCTION): New macro. | ||
| 24120 | (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main): | ||
| 24121 | Use it. | ||
| 24122 | (main): Add casts to avoid warnings | ||
| 24123 | if GCC considers string literals to be constants. | ||
| 24124 | |||
| 24125 | * lisp.h (fatal_error_signal): Add decl, since it's exported. | ||
| 24126 | |||
| 24127 | * dbusbind.c: Pointer signedness fixes. | ||
| 24128 | (xd_signature, xd_append_arg, xd_initialize): | ||
| 24129 | (Fdbus_call_method, Fdbus_call_method_asynchronously): | ||
| 24130 | (Fdbus_method_return_internal, Fdbus_method_error_internal): | ||
| 24131 | (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service): | ||
| 24132 | (Fdbus_register_signal): Use SSDATA when the context wants char *. | ||
| 24133 | |||
| 24134 | * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning | ||
| 24135 | if GCC considers string literals to be constants. | ||
| 24136 | (Fdbus_register_service, Fdbus_register_method): Remove unused vars. | ||
| 24137 | |||
| 24138 | 2011-03-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 24139 | |||
| 24140 | * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro. | ||
| 24141 | (print_preprocess, print_object): New macro to fix last change. | ||
| 24142 | |||
| 24143 | * print.c (print_preprocess): Don't forget font objects. | ||
| 24144 | |||
| 24145 | 2011-03-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 24146 | |||
| 24147 | * emacs.c (USAGE3): Doc fixes. | ||
| 24148 | |||
| 24149 | 2011-03-15 Andreas Schwab <schwab@linux-m68k.org> | ||
| 24150 | |||
| 24151 | * coding.c (detect_coding_iso_2022): Reorganize code to clarify | ||
| 24152 | structure. | ||
| 24153 | |||
| 24154 | 2011-03-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 24155 | |||
| 24156 | * lisp.h (VWindow_system, Qfile_name_history): | ||
| 24157 | * keyboard.h (lispy_function_keys) [WINDOWSNT]: | ||
| 24158 | * w32term.h (w32_system_caret_hwnd, w32_system_caret_height) | ||
| 24159 | (w32_system_caret_x, w32_system_caret_y): Declare extern. | ||
| 24160 | |||
| 24161 | * w32select.c: Don't #include "keyboard.h". | ||
| 24162 | (run_protected): Add extern declaration for waiting_for_input. | ||
| 24163 | |||
| 24164 | * w32.c (Qlocal, noninteractive1, inhibit_window_system): | ||
| 24165 | * w32console.c (detect_input_pending, read_input_pending) | ||
| 24166 | (encode_terminal_code): | ||
| 24167 | * w32fns.c (quit_char, lispy_function_keys, Qtooltip) | ||
| 24168 | (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x) | ||
| 24169 | (w32_system_caret_y, Qfile_name_history): | ||
| 24170 | * w32font.c (w32font_driver, QCantialias, QCotf, QClang): | ||
| 24171 | * w32inevt.c (reinvoke_input_signal, lispy_function_keys): | ||
| 24172 | * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map) | ||
| 24173 | (Qoverriding_terminal_local_map, Qmenu_bar_update_hook): | ||
| 24174 | * w32proc.c (Qlocal, report_file_error): | ||
| 24175 | * w32term.c (Vwindow_system, updating_frame): | ||
| 24176 | * w32uniscribe.c (initialized, uniscribe_font_driver): | ||
| 24177 | Remove unneeded extern declarations. | ||
| 24178 | |||
| 24179 | 2011-03-14 Chong Yidong <cyd@stupidchicken.com> | ||
| 24180 | |||
| 24181 | * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions. | ||
| 24182 | |||
| 24183 | 2011-03-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 24184 | |||
| 24185 | * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT) | ||
| 24186 | (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219). | ||
| 24187 | These macros can no longer be used for assignment. | ||
| 24188 | |||
| 24189 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): | ||
| 24190 | Assign struct members directly, instead of using BUF_BEGV etc. | ||
| 24191 | (record_buffer_markers, fetch_buffer_markers): New functions for | ||
| 24192 | recording and fetching special buffer markers. | ||
| 24193 | (set_buffer_internal_1, set_buffer_temp): Use them. | ||
| 24194 | |||
| 24195 | * lread.c (unreadchar): Use SET_BUF_PT_BOTH. | ||
| 24196 | |||
| 24197 | * insdel.c (adjust_point): Use SET_BUF_PT_BOTH. | ||
| 24198 | |||
| 24199 | * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH. | ||
| 24200 | (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH. | ||
| 24201 | |||
| 24202 | * xdisp.c (hscroll_window_tree): | ||
| 24203 | (reconsider_clip_changes): Use PT instead of BUF_PT. | ||
| 24204 | |||
| 24205 | 2011-03-13 Eli Zaretskii <eliz@gnu.org> | ||
| 24206 | |||
| 24207 | * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on | ||
| 24208 | $(EMACS_ROOT)/lib/intprops.h. | ||
| 24209 | |||
| 24210 | 2011-03-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 24211 | |||
| 24212 | Fix more problems found by GCC 4.5.2's static checks. | ||
| 24213 | |||
| 24214 | * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char * | ||
| 24215 | to unsigned char * to avoid compiler diagnostic. | ||
| 24216 | (xg_free_frame_widgets): Make it clear that a local variable is | ||
| 24217 | needed only if USE_GTK_TOOLTIP. | ||
| 24218 | (gdk_window_get_screen): Make it clear that this macro is needed | ||
| 24219 | only if USE_GTK_TOOLTIP. | ||
| 24220 | (int_gtk_range_get_value): New function, which avoids a diagnostic | ||
| 24221 | from gcc -Wbad-function-cast. | ||
| 24222 | (xg_set_toolkit_scroll_bar_thumb): Use it. | ||
| 24223 | (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid | ||
| 24224 | diagnostic from gcc -Wbad-function-cast. | ||
| 24225 | (get_utf8_string, xg_get_file_with_chooser): | ||
| 24226 | Rename locals to avoid shadowing. | ||
| 24227 | (create_dialog): Move locals to avoid shadowing. | ||
| 24228 | |||
| 24229 | * xgselect.c (xg_select): Remove unused var. | ||
| 24230 | |||
| 24231 | * image.c (four_corners_best): Mark locals as initialized. | ||
| 24232 | (gif_load): Initialize transparent_p to zero (Bug#8238). | ||
| 24233 | Mark another local as initialized. | ||
| 24234 | (my_png_error, my_error_exit): Mark with NO_RETURN. | ||
| 24235 | |||
| 24236 | * image.c (clear_image_cache): Now static. | ||
| 24237 | (DIM, HAVE_STDLIB_H_1): Remove unused macros. | ||
| 24238 | (xpm_load): Redo to avoid "discards qualifiers" gcc warning. | ||
| 24239 | (x_edge_detection): Remove unnecessary cast that | ||
| 24240 | gcc -Wbad-function-cast diagnoses. | ||
| 24241 | (gif_load): Fix pointer signedness. | ||
| 24242 | (clear_image_cache, xbm_read_bitmap_data, x_detect_edges): | ||
| 24243 | (jpeg_load, gif_load): Rename locals to avoid shadowing. | ||
| 24244 | |||
| 24245 | 2011-03-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 24246 | |||
| 24247 | Improve quality of tests for time stamp overflow. | ||
| 24248 | For example, without this patch (encode-time 0 0 0 1 1 | ||
| 24249 | 1152921504606846976) returns the obviously-bogus value (-948597 | ||
| 24250 | 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly | ||
| 24251 | reports time overflow. See | ||
| 24252 | <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>. | ||
| 24253 | * deps.mk (editfns.o): Depend on ../lib/intprops.h. | ||
| 24254 | * editfns.c: Include limits.h and intprops.h. | ||
| 24255 | (TIME_T_MIN, TIME_T_MAX): New macros. | ||
| 24256 | (time_overflow): Move earlier, to before first use. | ||
| 24257 | (hi_time, lo_time): New functions, for an accurate test for | ||
| 24258 | out-of-range times. | ||
| 24259 | (Fcurrent_time, Fget_internal_run_time, make_time): Use them. | ||
| 24260 | (Fget_internal_run_time): Don't assume time_t fits in int. | ||
| 24261 | (make_time): Use list2 instead of Fcons twice. | ||
| 24262 | (Fdecode_time): More accurate test for out-of-range times. | ||
| 24263 | (check_tm_member): New function. | ||
| 24264 | (Fencode_time): Use it, to test for out-of-range times. | ||
| 24265 | (lisp_time_argument): Don't rely on undefined left-shift and | ||
| 24266 | right-shift behavior when checking for time stamp overflow. | ||
| 24267 | |||
| 24268 | * editfns.c (time_overflow): New function, refactoring common code. | ||
| 24269 | (Fformat_time_string, Fdecode_time, Fencode_time): | ||
| 24270 | (Fcurrent_time_string): Use it. | ||
| 24271 | |||
| 24272 | Move 'make_time' to be next to its inverse 'lisp_time_argument'. | ||
| 24273 | * dired.c (make_time): Move to ... | ||
| 24274 | * editfns.c (make_time): ... here. | ||
| 24275 | * systime.h: Note the move. | ||
| 24276 | |||
| 24277 | 2011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 24278 | |||
| 24279 | * fringe.c (update_window_fringes): Remove unused variables. | ||
| 24280 | |||
| 24281 | * unexmacosx.c (copy_data_segment): Also copy __got section. | ||
| 24282 | (Bug#8223) | ||
| 24283 | |||
| 24284 | 2011-03-12 Eli Zaretskii <eliz@gnu.org> | ||
| 24285 | |||
| 24286 | * termcap.c [MSDOS]: Include "msdos.h". | ||
| 24287 | (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent): | ||
| 24288 | Constify `char *' arguments and their references according to | ||
| 24289 | prototypes in tparam.h. | ||
| 24290 | |||
| 24291 | * deps.mk (termcap.o): Depend on tparam.h and msdos.h. | ||
| 24292 | |||
| 24293 | * msdos.c (XMenuAddPane): 3rd argument is `const char *' now. | ||
| 24294 | Adapt all references accordingly. | ||
| 24295 | |||
| 24296 | * msdos.h (XMenuAddPane): 3rd argument is `const char *' now. | ||
| 24297 | |||
| 24298 | 2011-03-11 Tom Tromey <tromey@redhat.com> | ||
| 24299 | |||
| 24300 | * buffer.c (syms_of_buffer): Remove obsolete comment. | ||
| 24301 | |||
| 24302 | 2011-03-11 Eli Zaretskii <eliz@gnu.org> | ||
| 24303 | |||
| 24304 | * termhooks.h (encode_terminal_code): Declare prototype. | ||
| 24305 | |||
| 24306 | * msdos.c (encode_terminal_code): Don't declare prototype. | ||
| 24307 | |||
| 24308 | * term.c (encode_terminal_code): Now external again, used by | ||
| 24309 | w32console.c and msdos.c. | ||
| 24310 | |||
| 24311 | * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): | ||
| 24312 | Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu. | ||
| 24313 | |||
| 24314 | 2011-03-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 24315 | |||
| 24316 | Fix some minor problems found by GCC 4.5.2's static checks. | ||
| 24317 | |||
| 24318 | * fringe.c (update_window_fringes): Mark locals as initialized | ||
| 24319 | (Bug#8227). | ||
| 24320 | (destroy_fringe_bitmap, init_fringe_bitmap): Now static. | ||
| 24321 | |||
| 24322 | * alloc.c (mark_fringe_data): Move decl from here ... | ||
| 24323 | * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here, | ||
| 24324 | to check its interface. | ||
| 24325 | (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM. | ||
| 24326 | |||
| 24327 | * fontset.c (free_realized_fontset): Now static. | ||
| 24328 | (Fset_fontset_font): Rename local to avoid shadowing. | ||
| 24329 | (fontset_font): Mark local as initialized. | ||
| 24330 | (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused. | ||
| 24331 | |||
| 24332 | * xrdb.c: Include "xterm.h", to check x_load_resources's interface. | ||
| 24333 | |||
| 24334 | * xselect.c (x_disown_buffer_selections): Remove; not used. | ||
| 24335 | (TRACE3) [!defined TRACE_SELECTION]: Remove; not used. | ||
| 24336 | (x_own_selection, Fx_disown_selection_internal): Rename locals | ||
| 24337 | to avoid shadowing. | ||
| 24338 | (x_handle_dnd_message): Remove local to avoid shadowing. | ||
| 24339 | |||
| 24340 | * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros, | ||
| 24341 | so that the caller can use some name other than gcpro1. | ||
| 24342 | (GCPRO1, UNGCPRO): Reimplement in terms of the new macros. | ||
| 24343 | * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip): | ||
| 24344 | (Fx_backspace_delete_keys_p): | ||
| 24345 | Use them to avoid shadowing, and rename vars to avoid shadowing. | ||
| 24346 | (x_decode_color, x_set_name, x_window): Now static. | ||
| 24347 | (Fx_create_frame): Add braces to silence GCC warning. | ||
| 24348 | (Fx_file_dialog, Fx_select_font): Fix pointer signedness. | ||
| 24349 | (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame): | ||
| 24350 | Remove unused locals. | ||
| 24351 | (Fx_create_frame, x_create_tip_frame, Fx_show_tip): | ||
| 24352 | (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing. | ||
| 24353 | Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR | ||
| 24354 | macros. | ||
| 24355 | |||
| 24356 | * xterm.h (x_mouse_leave): New decl. | ||
| 24357 | |||
| 24358 | * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame): | ||
| 24359 | Remove unused functions. | ||
| 24360 | (x_shift_glyphs_for_insert, XTflash, XTring_bell): | ||
| 24361 | (x_calc_absolute_position): Now static. | ||
| 24362 | (XTread_socket): Don't define label "out" unless it's used. | ||
| 24363 | Don't declare local "event" unless it's used. | ||
| 24364 | (x_iconify_frame, x_free_frame_resources): Don't declare locals | ||
| 24365 | unless they are used. | ||
| 24366 | (XEMBED_VERSION, xembed_set_info): Don't define unless needed. | ||
| 24367 | (x_fatal_error_signal): Remove; not used. | ||
| 24368 | (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position): | ||
| 24369 | (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor): | ||
| 24370 | (x_error_catcher, x_connection_closed, x_error_handler): | ||
| 24371 | (x_error_quitter, xembed_send_message, x_iconify_frame): | ||
| 24372 | (my_log_handler): Rename locals to avoid shadowing. | ||
| 24373 | (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN. | ||
| 24374 | (x_connection_closed): Tell GCC not to suggest NO_RETURN. | ||
| 24375 | |||
| 24376 | * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): | ||
| 24377 | Rename or move locals to avoid shadowing. | ||
| 24378 | (tty_defined_color, merge_face_heights): Now static. | ||
| 24379 | (free_realized_faces_for_fontset): Remove; not used. | ||
| 24380 | (Fx_list_fonts): Mark variable that gcc -Wuninitialized | ||
| 24381 | does not deduce is never used uninitialized. | ||
| 24382 | (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used. | ||
| 24383 | (LFACEP): Define only if XASSERTS, as it's not needed otherwise. | ||
| 24384 | |||
| 24385 | * terminal.c (store_terminal_param): Now static. | ||
| 24386 | |||
| 24387 | * xmenu.c (menu_highlight_callback): Now static. | ||
| 24388 | (set_frame_menubar): Remove unused local. | ||
| 24389 | (xmenu_show): Rename parameter to avoid shadowing. | ||
| 24390 | (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const" | ||
| 24391 | since they might point to immutable storage. | ||
| 24392 | (next_menubar_widget_id): Declare only if USE_X_TOOLKIT, | ||
| 24393 | since it's unused otherwise. | ||
| 24394 | |||
| 24395 | * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff. | ||
| 24396 | Add a FIXME, since the code still doesn't look right. (Bug#8215) | ||
| 24397 | (Fcurrent_bidi_paragraph_direction): Simplify slightly; this | ||
| 24398 | avoids a gcc -Wuninitialized diagnostic. | ||
| 24399 | (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs): | ||
| 24400 | (note_mouse_highlight): Mark variables that gcc -Wuninitialized | ||
| 24401 | does not deduce are never used uninitialized. | ||
| 24402 | |||
| 24403 | * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c. | ||
| 24404 | |||
| 24405 | * xdisp.c (redisplay_window): Rename local to avoid shadowing. | ||
| 24406 | * window.c (window_loop, size_window): | ||
| 24407 | (run_window_configuration_change_hook, enlarge_window): Likewise. | ||
| 24408 | |||
| 24409 | * window.c (display_buffer): Now static. | ||
| 24410 | (size_window): Mark variables that gcc -Wuninitialized | ||
| 24411 | does not deduce are never used uninitialized. | ||
| 24412 | * window.h (check_all_windows): New decl, to forestall | ||
| 24413 | gcc -Wmissing-prototypes diagnostic. | ||
| 24414 | * dispextern.h (bidi_dump_cached_states): Likewise. | ||
| 24415 | |||
| 24416 | * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid | ||
| 24417 | shadowing. | ||
| 24418 | * charset.c (map_charset_for_dump, Fchar_charset): Likewise. | ||
| 24419 | Include <limits.h>. | ||
| 24420 | (Fsort_charsets): Redo min/max calculation to shorten the code a bit | ||
| 24421 | and to avoid gcc -Wuninitialized warning. | ||
| 24422 | (load_charset_map): Mark variables that gcc -Wuninitialized | ||
| 24423 | does not deduce are never used uninitialized. | ||
| 24424 | (load_charset): Abort instead of using uninitialized var (Bug#8229). | ||
| 24425 | |||
| 24426 | * coding.c (coding_set_source, coding_set_destination): | ||
| 24427 | Use "else { /* comment */ }" rather than "else /* comment */;" | ||
| 24428 | for clarity, and to avoid gcc -Wempty-body warning. | ||
| 24429 | (Fdefine_coding_system_internal): Don't redeclare 'i' inside | ||
| 24430 | a block, when the outer 'i' will do. | ||
| 24431 | (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule): | ||
| 24432 | (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022): | ||
| 24433 | (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5): | ||
| 24434 | (decode_coding_raw_text, decode_coding_charset, get_translation_table): | ||
| 24435 | (Fdecode_sjis_char, Fdefine_coding_system_internal): | ||
| 24436 | Rename locals to avoid shadowing. | ||
| 24437 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | ||
| 24438 | * coding.c (emacs_mule_char, encode_invocation_designation): | ||
| 24439 | Now static, since they're not used elsewhere. | ||
| 24440 | (decode_coding_iso_2022): Add "default: abort ();" as a safety check. | ||
| 24441 | (decode_coding_object, encode_coding_object, detect_coding_system): | ||
| 24442 | (decode_coding_emacs_mule): Mark variables that gcc | ||
| 24443 | -Wuninitialized does not deduce are never used uninitialized. | ||
| 24444 | (detect_coding_iso_2022): Initialize a local variable that might | ||
| 24445 | be used uninitialized. Leave a FIXME because it's not clear that | ||
| 24446 | this initialization is needed. (Bug#8211) | ||
| 24447 | (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT): | ||
| 24448 | (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P): | ||
| 24449 | (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER): | ||
| 24450 | (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R): | ||
| 24451 | Remove unused macros. | ||
| 24452 | |||
| 24453 | * category.c (hash_get_category_set): Remove unused local var. | ||
| 24454 | (copy_category_table): Now static, since it's not used elsewhere. | ||
| 24455 | * character.c (string_count_byte8): Likewise. | ||
| 24456 | |||
| 24457 | * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string): | ||
| 24458 | (Fregister_code_conversion_map): Rename locals to avoid shadowing. | ||
| 24459 | |||
| 24460 | * chartab.c (copy_sub_char_table): Now static, since it's not used | ||
| 24461 | elsewhere. | ||
| 24462 | (sub_char_table_ref_and_range, char_table_ref_and_range): | ||
| 24463 | Rename locals to avoid shadowing. | ||
| 24464 | (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros. | ||
| 24465 | |||
| 24466 | * bidi.c (bidi_check_type): Now static, since it's not used elsewhere. | ||
| 24467 | (BIDI_BOB): Remove unused macro. | ||
| 24468 | |||
| 24469 | * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not | ||
| 24470 | deduce are never used uninitialized. | ||
| 24471 | * term.c (encode_terminal_code): Likewise. | ||
| 24472 | |||
| 24473 | * term.c (encode_terminal_code): Now static. Remove unused local. | ||
| 24474 | |||
| 24475 | * tparam.h: New file. | ||
| 24476 | * term.c, tparam.h: Include it. | ||
| 24477 | * deps.mk (term.o, tparam.o): Depend on tparam.h. | ||
| 24478 | * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr): | ||
| 24479 | Move these decls to tparam.h, and make them agree with what | ||
| 24480 | is actually in tparam.c. The previous trick of using incompatible | ||
| 24481 | decls in different modules does not conform to the C standard. | ||
| 24482 | All callers of tparam changed to use tparam's actual API. | ||
| 24483 | * tparam.c (tparam1, tparam, tgoto): | ||
| 24484 | Use const pointers where appropriate. | ||
| 24485 | |||
| 24486 | * cm.c (calccost, cmgoto): Use const pointers where appropriate. | ||
| 24487 | * cm.h (struct cm): Likewise. | ||
| 24488 | * dispextern.h (do_line_insertion_deletion_costs): Likewise. | ||
| 24489 | * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise. | ||
| 24490 | * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table): | ||
| 24491 | (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph): | ||
| 24492 | (turn_on_face, init_tty): Likewise. | ||
| 24493 | * termchar.h (struct tty_display_info): Likewise. | ||
| 24494 | |||
| 24495 | * term.c (term_mouse_position): Rename local to avoid shadowing. | ||
| 24496 | |||
| 24497 | * alloc.c (mark_ttys): Move decl from here ... | ||
| 24498 | * lisp.h (mark_ttys): ... to here, so that it's checked against defn. | ||
| 24499 | |||
| 24500 | 2011-03-11 Andreas Schwab <schwab@linux-m68k.org> | ||
| 24501 | |||
| 24502 | * .gdbinit (pwinx, xbuffer): Fix access to buffer name. | ||
| 24503 | |||
| 24504 | 2011-03-09 Juanma Barranquero <lekktu@gmail.com> | ||
| 24505 | |||
| 24506 | * search.c (compile_pattern_1): Remove argument regp, unused since | ||
| 24507 | revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig. | ||
| 24508 | (compile_pattern): Don't pass it. | ||
| 24509 | |||
| 24510 | 2011-03-08 Jan Djärv <jan.h.d@swipnet.se> | ||
| 24511 | |||
| 24512 | * xterm.h (DEFAULT_GDK_DISPLAY): New define. | ||
| 24513 | (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines | ||
| 24514 | for ! HAVE_GTK3. | ||
| 24515 | (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID. | ||
| 24516 | |||
| 24517 | * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size. | ||
| 24518 | |||
| 24519 | * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define | ||
| 24520 | gdk_window_get_screen, gdk_window_get_geometry, | ||
| 24521 | gdk_x11_window_lookup_for_display and GDK_KEY_g. | ||
| 24522 | (xg_set_screen): Use DEFAULT_GDK_DISPLAY. | ||
| 24523 | (xg_get_pixbuf_from_pixmap): New function. | ||
| 24524 | (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap | ||
| 24525 | to Pixmap, take frame as parameter, remove GdkColormap parameter. | ||
| 24526 | Call xg_get_pixbuf_from_pixmap instead of | ||
| 24527 | gdk_pixbuf_get_from_drawable. | ||
| 24528 | (xg_get_image_for_pixmap): Do not make GdkPixmaps, call | ||
| 24529 | xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead. | ||
| 24530 | (xg_check_special_colors): Use GtkStyleContext and its functions | ||
| 24531 | for HAVE_GTK3. | ||
| 24532 | (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen. | ||
| 24533 | (xg_prepare_tooltip, create_dialog, menubar_map_cb) | ||
| 24534 | (xg_update_frame_menubar, xg_tool_bar_detach_callback) | ||
| 24535 | (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): | ||
| 24536 | Call gtk_widget_get_preferred_size. | ||
| 24537 | (xg_frame_resized): gdk_window_get_geometry only takes 5 | ||
| 24538 | parameters. | ||
| 24539 | (xg_win_to_widget, xg_event_is_for_menubar): | ||
| 24540 | Call gdk_x11_window_lookup_for_display. | ||
| 24541 | (xg_set_widget_bg): New function. | ||
| 24542 | (delete_cb): New function. | ||
| 24543 | (xg_create_frame_widgets): Connect delete-event to delete_cb. | ||
| 24544 | Call xg_set_widget_bg. Only set background pixmap for ! HAVE_GTK3 | ||
| 24545 | (xg_set_background_color): Call xg_set_widget_bg. | ||
| 24546 | (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask. | ||
| 24547 | (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3. | ||
| 24548 | Only call gtk_range_set_update_policy if ! HAVE_GTK3. | ||
| 24549 | (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback | ||
| 24550 | if ! HAVE_GTK3. | ||
| 24551 | (update_frame_tool_bar): Call gtk_widget_hide. | ||
| 24552 | (xg_initialize): Use GDK_KEY_g. | ||
| 24553 | |||
| 24554 | * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id | ||
| 24555 | if ! HAVE_GTK3 | ||
| 24556 | (x_session_initialize): Call gdk_x11_set_sm_client_id. | ||
| 24557 | |||
| 24558 | * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3. | ||
| 24559 | (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS. | ||
| 24560 | Load ~/emacs.d/gtkrc only for ! HAVE_GTK3. | ||
| 24561 | |||
| 24562 | 2011-03-08 Juanma Barranquero <lekktu@gmail.com> | ||
| 24563 | |||
| 24564 | * w32xfns.c (select_palette): Check success of RealizePalette against | ||
| 24565 | GDI_ERROR, not zero. | ||
| 24566 | |||
| 24567 | See ChangeLog.11 for earlier changes. | ||
| 24568 | 2390 | ||
| 24569 | ;; Local Variables: | 2391 | ;; Local Variables: |
| 24570 | ;; coding: utf-8 | 2392 | ;; coding: utf-8 |