| 1 | 2001-03-26 Gerd Moellmann <gerd@gnu.org> |
| 2 | |
| 3 | * xfaces.c (x_update_menu_appearance): Use local variable |
| 4 | popup_path for setting font resources. |
| 5 | |
| 6 | 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il> |
| 7 | |
| 8 | * frame.c (Fframe_list): Don't reference tip_frame if |
| 9 | HAVE_WINDOW_SYSTEM is not defined. |
| 10 | |
| 11 | * emacs.c (main): Update the copyright year. From Werner LEMBERG |
| 12 | <wl@gnu.org>. |
| 13 | |
| 14 | 2001-03-25 Gerd Moellmann <gerd@gnu.org> |
| 15 | |
| 16 | * xdisp.c (init_from_display_pos): Test invisible property |
| 17 | with TEXT_PROP_MEANS_INVISIBLE instead of NILP. |
| 18 | |
| 19 | * xdisp.c (redisplay_internal) <update one window>: Make sure |
| 20 | last_arrow_position and last_arrow_string are set. |
| 21 | |
| 22 | * frame.c (Fframe_list): Don't return a tooltip frame. |
| 23 | |
| 24 | 2001-03-23 Gerd Moellmann <gerd@gnu.org> |
| 25 | |
| 26 | * xdisp.c (mark_window_display_accurate_1): New function, |
| 27 | extracted from mark_window_display_accurate. Compute |
| 28 | BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED, |
| 29 | BUF_BEG_UNCHANGED, BUF_END_UNCHANGED. |
| 30 | (mark_window_display_accurate): Use it. |
| 31 | (redisplay_internal): Use it for the selected window. |
| 32 | (redisplay_internal): Avoid duplicate mark_window_display_accurate |
| 33 | for the selected frame. |
| 34 | |
| 35 | * xdisp.c Use make_number, for readability. |
| 36 | (try_window_id): Disable rows below the window end. |
| 37 | (try_window_reusing_current_matrix): Use cursor_row_p. |
| 38 | (try_window_reusing_current_matrix) <scrolling up>: Fix disabling |
| 39 | of rows. |
| 40 | (init_from_display_pos): If POS specifies a position in a display |
| 41 | vector, maybe get the iterator set up for that ellipsis. |
| 42 | |
| 43 | * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2. |
| 44 | |
| 45 | 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 46 | |
| 47 | * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined. |
| 48 | |
| 49 | 2001-03-23 Gerd Moellmann <gerd@gnu.org> |
| 50 | |
| 51 | * xfaces.c (x_update_menu_appearance): Use a different path |
| 52 | for Lucid popup menus. |
| 53 | |
| 54 | 2001-03-22 Stefan Monnier <monnier@cs.yale.edu> |
| 55 | |
| 56 | * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object. |
| 57 | |
| 58 | * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW. |
| 59 | (string_buffer_position): Use `make_number'. |
| 60 | |
| 61 | 2001-03-22 Gerd Moellmann <gerd@gnu.org> |
| 62 | |
| 63 | * xfaces.c (x_update_menu_appearance): Renamed from |
| 64 | x_set_menu_face_resources. Use different resources for popups. |
| 65 | |
| 66 | * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern. |
| 67 | (GC_CHECK_STRING_BYTES): Don't define. |
| 68 | |
| 69 | * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: |
| 70 | Removed, together with subroutines. |
| 71 | (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function. |
| 72 | (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources. |
| 73 | |
| 74 | * dispextern.h (x_set_menu_resources_from_menu_face): |
| 75 | Remove prototype. |
| 76 | |
| 77 | * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show): |
| 78 | Remove calls to x_set_menu_resources_from_menu_face. |
| 79 | |
| 80 | * xfaces.c (xm_set_menu_resources_from_menu_face): |
| 81 | Remove #ifndef LESSTIF_VERSION. |
| 82 | |
| 83 | * xmenu.c: Include widget.h. |
| 84 | (single_submenu): Return int. Some cleanup. |
| 85 | (set_frame_menubar): Call x_set_menu_resources_from_menu_face. |
| 86 | |
| 87 | 2001-03-21 Gerd Moellmann <gerd@gnu.org> |
| 88 | |
| 89 | * xterm.c (x_update_window_end): Handle overwritten mouse face |
| 90 | also for tool bar windows. |
| 91 | (show_mouse_face): Set the glyph row's mouse_face_p flag also when |
| 92 | DRAW is DRAW_IMAGE_RAISED. |
| 93 | |
| 94 | 2001-03-20 Gerd Moellmann <gerd@gnu.org> |
| 95 | |
| 96 | * print.c (syms_of_print): Doc fixes. |
| 97 | |
| 98 | * fns.c (Fmd5): Doc fix. |
| 99 | |
| 100 | 2001-03-19 Gerd Moellmann <gerd@gnu.org> |
| 101 | |
| 102 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: |
| 103 | Clear area of the frame not occupied by the scroll bar. |
| 104 | |
| 105 | * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the |
| 106 | tip frame's root window buffer to *tip* right after creating |
| 107 | the frame. |
| 108 | |
| 109 | * xdisp.c (highlight_trailing_whitespace): Glyphs whose object |
| 110 | is an integer don't have to be for space characters. |
| 111 | |
| 112 | 2001-03-16 Gerd Moellmann <gerd@gnu.org> |
| 113 | |
| 114 | * indent.c (current_column, current_column_1, Fmove_to_column) |
| 115 | (compute_motion): Handle characters from display vectors |
| 116 | differently. |
| 117 | |
| 118 | 2001-03-15 Kenichi Handa <handa@etl.go.jp> |
| 119 | |
| 120 | * xterm.c (x_draw_glyph_string): Draw relief (if any) before |
| 121 | drawing glyph string. |
| 122 | |
| 123 | 2001-03-15 Gerd Moellmann <gerd@gnu.org> |
| 124 | |
| 125 | * keyboard.c (timer_check): Preserve the value of deactivate-mark. |
| 126 | (command_loop_1): Undo last change. |
| 127 | |
| 128 | * xterm.c (fast_find_position): Return the correct vpos. |
| 129 | |
| 130 | * data.c (store_symval_forwarding): Add parameter BUF. If BUF is |
| 131 | non-null, set a per-buffer value in BUF instead of the current |
| 132 | buffer. |
| 133 | (swap_in_global_binding, swap_in_symval_forwarding, Fset_default): |
| 134 | Call store_symval_forwarding with BUF null. |
| 135 | (set_internal): Call store_symval_forwarding with the BUF |
| 136 | parameter passed to set_internal. Formerly, the value was always |
| 137 | set in the current buffer; the buffer recorded in specbind for |
| 138 | this case wasn't used. |
| 139 | (arith_driver): Reindent. |
| 140 | |
| 141 | * buffer.c (swap_out_buffer_local_variables): Call |
| 142 | store_symval_forwarding with BUF null. |
| 143 | |
| 144 | * lisp.h (store_symval_forwarding): Change prototype. |
| 145 | |
| 146 | * eval.c (specbind): Call store_symval_forwarding with BUF null. |
| 147 | |
| 148 | 2001-03-14 Gerd Moellmann <gerd@gnu.org> |
| 149 | |
| 150 | * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add |
| 151 | FOR_DELETION. Avoid resizing the mini-window of the selected |
| 152 | frame if FOR_DELETION is set. |
| 153 | (Fselect_frame, Fhandle_switch_frame, Fdelete_frame) |
| 154 | (Fmake_frame_invisible): Change calls to do_switch_frame for new |
| 155 | signature. |
| 156 | |
| 157 | * window.c (Fset_window_configuration): Change call to |
| 158 | do_switch_frame to new format. |
| 159 | |
| 160 | * keyboard.c (quit_throw_to_read_char): Change call to |
| 161 | do_switch_frame to new format. |
| 162 | |
| 163 | * lisp.h (do_switch_frame): Change prototype. |
| 164 | |
| 165 | * frame.c (Fframe_parameters): In the `buffer-list' frame |
| 166 | parameter, store the buffer list of FRAME, not the list of the |
| 167 | selected frame. |
| 168 | |
| 169 | * xterm.c (x_draw_glyph_string_box): Don't draw a full-width |
| 170 | box just because the glyph row's full_width_p flag is set. |
| 171 | |
| 172 | 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il> |
| 173 | |
| 174 | * xdisp.c (highlight_trailing_whitespace): On character terminals, |
| 175 | skip the padding blanks inserted in extend_face_to_end_of_line, |
| 176 | before checking for trailing whitespace. |
| 177 | |
| 178 | 2001-03-13 Gerd Moellmann <gerd@gnu.org> |
| 179 | |
| 180 | * xmenu.c (popup_activate_callback, popup_deactivate_callback): |
| 181 | Remove special handling for LessTif/Motif. |
| 182 | (toplevel): Don't include Xm/Xm.h. |
| 183 | |
| 184 | * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove |
| 185 | workaround code for LessTif; it doesn't work anymore. |
| 186 | |
| 187 | * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include |
| 188 | Xm/ScrollBarP.h. |
| 189 | |
| 190 | * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't |
| 191 | access private scroll bar data; it's no longer necessary with |
| 192 | contemporary LessTif. |
| 193 | |
| 194 | * xfaces.c (xm_set_menu_resources_from_menu_face): Change |
| 195 | #if 0 to #ifndef LESSTIF_VERSION. |
| 196 | |
| 197 | * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code |
| 198 | removing button grabs. |
| 199 | |
| 200 | 2001-03-13 Kenichi Handa <handa@etl.go.jp> |
| 201 | |
| 202 | * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font |
| 203 | and clip-large-size-font as obsolete. |
| 204 | |
| 205 | * lread.c (read_multibyte): Check the validity of multibyte |
| 206 | sequence. If invalid, return the first byte. |
| 207 | |
| 208 | 2001-03-12 Gerd Moellmann <gerd@gnu.org> |
| 209 | |
| 210 | * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil |
| 211 | before running the command; timer functions or process |
| 212 | filters may have set it. |
| 213 | |
| 214 | 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 215 | |
| 216 | * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>: |
| 217 | Doc fix. |
| 218 | |
| 219 | 2001-03-12 Gerd Moellmann <gerd@gnu.org> |
| 220 | |
| 221 | * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg |
| 222 | to sprintf. |
| 223 | |
| 224 | 2001-03-09 Gerd Moellmann <gerd@gnu.org> |
| 225 | |
| 226 | * dispextern.h (string_buffer_position): Add prototype. |
| 227 | |
| 228 | * xdisp.c (string_buffer_position, display_prop_string_p) |
| 229 | (single_display_prop_string_p): New functions. |
| 230 | |
| 231 | * xterm.c (note_mouse_highlight): If there's no help-echo on |
| 232 | a string, look at the buffer text ``under'' it. |
| 233 | |
| 234 | * keyboard.c (make_lispy_event): Add string info to the event, |
| 235 | analogous to what's done on mode lines. |
| 236 | (read_key_sequence): For a click on a string, consider `local-map' |
| 237 | and `keymap' of that string. |
| 238 | |
| 239 | * keyboard.c (make_lispy_event, make_lispy_movement): Adjust |
| 240 | calls to buffer_posn_from_coords to new format. |
| 241 | |
| 242 | * dispextern.h (buffer_posn_from_coords): Adjust prototype. |
| 243 | |
| 244 | * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and |
| 245 | POS; return void. |
| 246 | |
| 247 | * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open |
| 248 | flags argument to emacs_open; it seems to conflict with O_EXCL. |
| 249 | |
| 250 | 2001-03-09 Kenichi Handa <handa@etl.go.jp> |
| 251 | |
| 252 | * composite.h (struct composition): Change types of members; |
| 253 | glyph_len to unsigned, width to unsigned short. |
| 254 | |
| 255 | 2001-03-08 Andrew Innes <andrewi@gnu.org> |
| 256 | |
| 257 | * w32menu.c (add_menu_item): Fix problems with using ownerdraw for |
| 258 | menu titles. |
| 259 | |
| 260 | 2001-03-08 Gerd Moellmann <gerd@gnu.org> |
| 261 | |
| 262 | * xdisp.c (handle_display_prop): Use it->w->buffer as object, |
| 263 | instead of nil. |
| 264 | |
| 265 | * xterm.c (note_mouse_highlight): Handle mouse-face and |
| 266 | help-echo in strings. |
| 267 | (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P. |
| 268 | (fast_find_string_pos): New function. |
| 269 | |
| 270 | * xdisp.c (handle_face_prop, face_before_or_after_it_pos) |
| 271 | (display_string): Call face_at_string_position with new |
| 272 | parameter. |
| 273 | |
| 274 | * xfaces.c (face_at_string_position): Add parameter MOUSE_P. |
| 275 | Handle `mouse-face'. |
| 276 | |
| 277 | * dispextern.h (face_at_string_position): Change prototype. |
| 278 | |
| 279 | * dired.c (directory_files_internal): Handle EAGAIN more |
| 280 | efficiently. |
| 281 | |
| 282 | * keyboard.c (make_lispy_event): Avoid generating drag events |
| 283 | if the mouse hasn't actually moved to another buffer position. |
| 284 | |
| 285 | 2001-03-08 Dave Love <fx@gnu.org> |
| 286 | |
| 287 | * eval.c (syms_of_eval) <debug-on-error>: Doc fix. |
| 288 | |
| 289 | 2001-03-08 Gerd Moellmann <gerd@gnu.org> |
| 290 | |
| 291 | * process.c (Fset_process_window_size): Fix a typo. |
| 292 | |
| 293 | 2001-03-08 Kenichi Handa <handa@etl.go.jp> |
| 294 | |
| 295 | * coding.c (detect_coding_sjis): Do more rigid check. |
| 296 | (detect_coding_big5): Likewise. |
| 297 | (decode_coding_sjis_big5): Likewise. |
| 298 | (Fdetect_coding_region): Call detect_coding_system with tailing |
| 299 | anchor byte `\0' for more rigid detection. |
| 300 | (detect_coding_mask): Fix the incorrect handling of arg |
| 301 | MULTIBYTEP. |
| 302 | (Fdetect_coding_string): Likewise. |
| 303 | |
| 304 | 2001-03-07 Stefan Monnier <monnier@cs.yale.edu> |
| 305 | |
| 306 | * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is |
| 307 | a string before extracting its data. |
| 308 | |
| 309 | 2001-03-07 Gerd Moellmann <gerd@gnu.org> |
| 310 | |
| 311 | * window.c (Frecenter): Rewrite code handling negative values |
| 312 | of ARG on graphical frames. |
| 313 | |
| 314 | 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il> |
| 315 | |
| 316 | * window.c (displayed_window_lines): If W->start is outside the |
| 317 | accessible portion of the buffer, call start_display with BEGV or |
| 318 | ZV instead of W->start. |
| 319 | |
| 320 | 2001-03-07 Gerd Moellmann <gerd@gnu.org> |
| 321 | |
| 322 | * buffer.c (syms_of_buffer) <header-line-format>: Doc fix. |
| 323 | |
| 324 | * process.c (Fset_process_filter): Don't crash if the input |
| 325 | file descriptor of PROCESS is closed. |
| 326 | (Fset_process_window_size): Likewise. |
| 327 | |
| 328 | 2001-03-06 Kenichi Handa <handa@etl.go.jp> |
| 329 | |
| 330 | * xterm.c (XTflash): Make the timeout of select shorter, and call |
| 331 | select repeatedly until the desired time expires. |
| 332 | |
| 333 | 2001-03-06 Gerd Moellmann <gerd@gnu.org> |
| 334 | |
| 335 | * w32fns.c (Fx_create_frame): Clear Vwindow_list. |
| 336 | |
| 337 | * xfns.c (Fx_create_frame): Clear Vwindow_list. |
| 338 | |
| 339 | * lisp.h (Vwindow_list): Declare extern. |
| 340 | |
| 341 | 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
| 342 | |
| 343 | * dispnew.c (syms_of_display) <glyph-table>: Doc fix. |
| 344 | |
| 345 | 2001-03-06 Gerd Moellmann <gerd@gnu.org> |
| 346 | |
| 347 | * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps |
| 348 | to detect a case where we have to highlight a different region |
| 349 | despite not having left the currently highlighted region. |
| 350 | Set mouse_face_overlay in the x_display_info. |
| 351 | (x_term_init): Initialize the x_display_info's mouse_face_overlay. |
| 352 | |
| 353 | * xterm.h (struct x_display_info): Add mouse_face_overlay. |
| 354 | |
| 355 | * buffer.c (mouse_face_overlay_overlaps): New function. |
| 356 | |
| 357 | * lisp.h (mouse_face_overlay_overlaps): Add prototype. |
| 358 | (Qmouse_face): Declare extern. |
| 359 | |
| 360 | * xdisp.c (redisplay_internal): Set windows_or_buffers_changed |
| 361 | if face_change_count is non-zero. |
| 362 | |
| 363 | 2001-03-06 Kenichi Handa <handa@etl.go.jp> |
| 364 | |
| 365 | * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case |
| 366 | that the source is unibyte. |
| 367 | |
| 368 | 2001-03-05 Dave Love <fx@gnu.org> |
| 369 | |
| 370 | * xterm.c (XTmouse_position): Fix typo. |
| 371 | |
| 372 | 2001-03-05 Gerd Moellmann <gerd@gnu.org> |
| 373 | |
| 374 | * minibuf.c (read_minibuf): Clean up the binding stack if |
| 375 | called noninteractively. |
| 376 | |
| 377 | 2001-03-05 Kenichi Handa <handa@etl.go.jp> |
| 378 | |
| 379 | * coding.c (syms_of_coding): Docstring modified. |
| 380 | |
| 381 | 2001-03-05 Kenichi Handa <handa@etl.go.jp> |
| 382 | |
| 383 | * charset.c (char_to_string): If a single byte char has modifier |
| 384 | bits that can't be reflected to the character code, ignore them |
| 385 | instead of signaling an error. |
| 386 | |
| 387 | 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il> |
| 388 | |
| 389 | * s/msdos.h: Update copyright notice. |
| 390 | |
| 391 | * dosfns.h: Update copyright notice. |
| 392 | |
| 393 | * dosfns.c: Update copyright notice. |
| 394 | |
| 395 | * msdos.c: Update copyright notice. |
| 396 | |
| 397 | 2001-03-02 Gerd Moellmann <gerd@gnu.org> |
| 398 | |
| 399 | * xterm.c (glyph_rect): New function. |
| 400 | (XTmouse_position): Use it to raise the threshold for mouse |
| 401 | movement event generation. |
| 402 | |
| 403 | 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 404 | |
| 405 | * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist |
| 406 | specifies (reverse . t), reverse the initial screen colors. |
| 407 | (IT_set_frame_parameters): If the property is foreground-color, |
| 408 | but we are reversing the colors, set bg_set, not fg_set. Likewise |
| 409 | for setting background-color and reversing: set fg_set. Set |
| 410 | unspecified-fg and unspecified-bg correctly when (reverse . t) is |
| 411 | in effect. |
| 412 | |
| 413 | * xfaces.c (Finternal_set_lisp_face_attribute) |
| 414 | [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's |
| 415 | parameters alist. |
| 416 | |
| 417 | 2001-03-02 Gerd Moellmann <gerd@gnu.org> |
| 418 | |
| 419 | * fileio.c (Fexpand_file_name): Collapse sequences of slashes |
| 420 | to a single slash in the middle of file names. |
| 421 | |
| 422 | * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]: |
| 423 | Accept only alphanumeric time zone names. |
| 424 | |
| 425 | * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height |
| 426 | or width area. |
| 427 | (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure |
| 428 | a widget to zero height. |
| 429 | |
| 430 | 2001-03-01 Gerd Moellmann <gerd@gnu.org> |
| 431 | |
| 432 | * window.c (Fwindow_end): Call move_it_past_eol only if |
| 433 | ending up on a partially visible line. |
| 434 | |
| 435 | 2001-03-01 Dave Love <fx@gnu.org> |
| 436 | |
| 437 | * ccl.c (Fccl_execute): Doc fix. |
| 438 | |
| 439 | 2001-03-01 Gerd Moellmann <gerd@gnu.org> |
| 440 | |
| 441 | * xfns.c (Fx_create_frame): Adjust the frame's height for presence |
| 442 | of the tool bar before calling x_figure_window_size. |
| 443 | |
| 444 | * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to |
| 445 | NULL after destroying it, otherwise XTread_socket can access a |
| 446 | destroyed widget when input is unblocked. |
| 447 | |
| 448 | * xfns.c (x_set_foreground_color): Set the background of the cursor GC. |
| 449 | |
| 450 | * xfns.c (x_set_font): Handle case of x_new_fontset returning the |
| 451 | same name as before, although there was a change in fontsets. |
| 452 | |
| 453 | 2001-02-28 Ken Raeburn <raeburn@gnu.org> |
| 454 | |
| 455 | * lisp.h (Fframe_parameter): Declare. |
| 456 | |
| 457 | * window.c (set_window_buffer): Field vscroll is an int, not a |
| 458 | Lisp_Object. |
| 459 | |
| 460 | 2001-02-28 Gerd Moellmann <gerd@gnu.org> |
| 461 | |
| 462 | * xterm.c (x_set_window_size): Don't use `None' with widgets; use |
| 463 | NULL instead. |
| 464 | |
| 465 | * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use |
| 466 | NULL instead. |
| 467 | |
| 468 | * alloc.c (toplevel): Include process.h. |
| 469 | (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE, |
| 470 | MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators. |
| 471 | (allocate_vectorlike): Make it a static function. Add parameter TYPE. |
| 472 | (allocate_vector, allocate_hash_table, allocate_window) |
| 473 | (allocate_frame, allocate_process, allocate_other_vector): New |
| 474 | functions. |
| 475 | (Fmake_vector): Call allocate_vector instead of allocate_vectorlike. |
| 476 | (mark_maybe_pointer): New function. |
| 477 | (mark_memory): Also mark Lisp data to which only pointers |
| 478 | remain and not Lisp_Objects. |
| 479 | (min_heap_address, max_heap_address): New variables. |
| 480 | (mem_find): Return MEM_NIL if START is below min_heap_address or |
| 481 | above max_heap_address. |
| 482 | (mem_insert): Compute min_heap_address and max_heap_address. |
| 483 | |
| 484 | * process.c (make_process): Use allocate_process. |
| 485 | |
| 486 | * frame.c (make_frame): Use allocate_frame. |
| 487 | |
| 488 | * window.c (make_window, make_dummy_parent): Use allocate_window. |
| 489 | (Fcurrent_window_configuration): Use allocate_other_vector. |
| 490 | |
| 491 | * lisp.h (allocate_vectorlike): Remove prototype. |
| 492 | (allocate_vector, allocate_other_vector, allocate_frame) |
| 493 | (allocate_window, allocate_process, allocate_hash_table): |
| 494 | Add prototypes. |
| 495 | |
| 496 | * fns.c (Fdelete, larger_vector): Use allocate_vector. |
| 497 | (make_hash_table, copy_hash_table): Use allocate_hash_table. |
| 498 | |
| 499 | 2001-02-27 Kenichi Handa <handa@etl.go.jp> |
| 500 | |
| 501 | * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero, |
| 502 | treat the produced bytes as a valid multibyte sequence. |
| 503 | |
| 504 | * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro. |
| 505 | (ccl_driver) <CCL_WriteMultibyteChar2>: Use |
| 506 | CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR. |
| 507 | <ccl_finish>: Set ccl->eight_bit_control properly. |
| 508 | |
| 509 | * ccl.h (struct ccl_program): New member eight_bit_control. |
| 510 | |
| 511 | 2001-02-26 Stefan Monnier <monnier@cs.yale.edu> |
| 512 | |
| 513 | * keymap.c (Faccessible_keymaps): Pass `is_metized' to |
| 514 | accessible_keymaps_char_table. |
| 515 | (accessible_keymaps_char_table): Obey `is_metized'. |
| 516 | (where_is_internal, Fwhere_is_internal): Don't confuse int and |
| 517 | Lisp_Object. |
| 518 | |
| 519 | 2001-02-26 Gerd Moellmann <gerd@gnu.org> |
| 520 | |
| 521 | * dispnew.c: Check HAVE_TERM_H before including term.h. |
| 522 | |
| 523 | 2001-02-24 Andrew Innes <andrewi@gnu.org> |
| 524 | |
| 525 | * makefile.w32-in: Update copyright notice. |
| 526 | |
| 527 | 2001-02-24 Stefan Monnier <monnier@cs.yale.edu> |
| 528 | |
| 529 | * keymap.c (where_is_internal): Accept non-ascii integer prefixes. |
| 530 | |
| 531 | 2001-02-24 Kenichi Handa <handa@etl.go.jp> |
| 532 | |
| 533 | * Makefile.in (lisp): Add international/utf-8.elc. |
| 534 | |
| 535 | * fontset.c (Fnew_fontset): Fix handling of the case that an |
| 536 | element of FONTLIST is a cons of family and registry. |
| 537 | |
| 538 | 2001-02-23 Jason Rumney <jasonr@gnu.org> |
| 539 | |
| 540 | * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES |
| 541 | to height unconditionally. |
| 542 | |
| 543 | * w32term.c (x_set_glyph_string_background_width): Extend the |
| 544 | background face to the end of the drawing area in the text area, |
| 545 | only. |
| 546 | (x_insert_glyphs): Call window_box_left to obtain the left |
| 547 | x-coordinate of the area to shift. |
| 548 | |
| 549 | * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with |
| 550 | safe_run_hooks. |
| 551 | |
| 552 | 2001-02-22 Andrew Innes <andrewi@gnu.org> |
| 553 | |
| 554 | * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header |
| 555 | files. |
| 556 | ($(BLD)\dispnew.obj): |
| 557 | ($(BLD)\editfns.obj): |
| 558 | ($(BLD)\fileio.obj): |
| 559 | ($(BLD)\filelock.obj): |
| 560 | ($(BLD)\keyboard.obj): |
| 561 | ($(BLD)\w32proc.obj): |
| 562 | ($(BLD)\process.obj): |
| 563 | ($(BLD)\sysdep.obj): Ditto. |
| 564 | |
| 565 | * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS |
| 566 | header files. |
| 567 | ($(BLD)/dispnew.$(O)): |
| 568 | ($(BLD)/editfns.$(O)): |
| 569 | ($(BLD)/fileio.$(O)): |
| 570 | ($(BLD)/filelock.$(O)): |
| 571 | ($(BLD)/keyboard.$(O)): |
| 572 | ($(BLD)/w32proc.$(O)): |
| 573 | ($(BLD)/process.$(O)): |
| 574 | ($(BLD)/sysdep.$(O)): Ditto. |
| 575 | |
| 576 | 2001-02-22 Gerd Moellmann <gerd@gnu.org> |
| 577 | |
| 578 | * xdisp.c (forward_to_next_line_start): When taking the shortcut |
| 579 | at the start of the function, check that the \n in it->c is |
| 580 | from the iterator's current position. |
| 581 | |
| 582 | * xdisp.c (handle_single_display_prop): Add parameter |
| 583 | DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display |
| 584 | properties which replace the display of text with something else. |
| 585 | (handle_display_prop): Call handle_single_display_prop with |
| 586 | additional argument saying if we already replaced text display |
| 587 | with something else. Use AREF. |
| 588 | (with_echo_area_buffer_unwind_data, display_menu_bar) |
| 589 | (decode_mode_spec_coding): Use AREF and ASIZE. |
| 590 | |
| 591 | * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c, |
| 592 | * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c, |
| 593 | * vmstime.h: Files removed. |
| 594 | |
| 595 | * unexencap.c, unexfx2800.c: Files removed. |
| 596 | |
| 597 | * dispnew.c (direct_output_for_insert): Give up if we are showing |
| 598 | a message or just cleared the message because we might need to |
| 599 | resize the echo area window or display an empty echo area. |
| 600 | |
| 601 | 2001-02-21 Gerd Moellmann <gerd@gnu.org> |
| 602 | |
| 603 | * xdisp.c (redisplay_internal): Do the |
| 604 | mark_window_display_accurate after all windows have been |
| 605 | redisplayed because this call resets flags in buffers which are |
| 606 | needed for proper redisplay. |
| 607 | |
| 608 | * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use |
| 609 | display_hourglass_p, start_hourglass, cancel_hourglass instead of |
| 610 | the old names. |
| 611 | |
| 612 | * w32term.h (struct x_output): Rename busy_cursor to |
| 613 | hourglass_cursor, busy_window to hourglass_window, busy_p to |
| 614 | hourglass_p. |
| 615 | |
| 616 | * msdos.h (struct x_output): Rename busy_window to |
| 617 | hourglass_window, busy_p to hourglass_p. |
| 618 | |
| 619 | * xterm.h (struct x_output): Rename busy_cursor to |
| 620 | hourglass_cursor, busy_window to hourglass_window, busy_p to |
| 621 | hourglass_p. |
| 622 | |
| 623 | * xfns.c: Rename everything containing *busy_cursor* and similar |
| 624 | to *hourglass*. |
| 625 | (syms_of_w32fns): Rename x-busy-pointer-shape to |
| 626 | x-hourglass-pointer-shape, display-busy-cursor to |
| 627 | display-hourglass, busy-cursor-delay to hourglass-delay. |
| 628 | |
| 629 | * w32fns.c: Rename everything containing *busy_cursor* and similar |
| 630 | to *hourglass*. |
| 631 | (syms_of_w32fns): Rename x-busy-pointer-shape to |
| 632 | x-hourglass-pointer-shape, display-busy-cursor to |
| 633 | display-hourglass, busy-cursor-delay to hourglass-delay. |
| 634 | |
| 635 | * xterm.c (XTread_socket): Test x_output's hourglass_p instead |
| 636 | of its busy_p flag. |
| 637 | |
| 638 | * dispextern.h (start_hourglass, cancel_hourglass) |
| 639 | (display_hourglass_p): Renamed from *busy_cursor*. |
| 640 | |
| 641 | 2001-02-20 Gerd Moellmann <gerd@gnu.org> |
| 642 | |
| 643 | * keyboard.c (read_char): When an event from unread-command-events |
| 644 | is from the tool or menu bar, set *USE_MOUSE_MENU to 1. |
| 645 | |
| 646 | * window.c (Fwindow_end): Handle case that WINDOW's buffer is not |
| 647 | equal to the current buffer. |
| 648 | |
| 649 | * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to |
| 650 | nil, otherwise we're left with truncate_lines t when a message |
| 651 | is printed with message-truncate-lines bound to t. |
| 652 | |
| 653 | 2001-02-19 Gerd Moellmann <gerd@gnu.org> |
| 654 | |
| 655 | * window.c (Fmove_to_window_line): Undo last change. |
| 656 | (displayed_window_lines): Call line_bottom_y to determine |
| 657 | the line's bottom position. |
| 658 | |
| 659 | * dispextern.h (line_bottom_y): Add prototype. |
| 660 | |
| 661 | * xdisp.c (line_bottom_y): New function extracted from |
| 662 | pos_visible_p. |
| 663 | (pos_visible_p): Use it. |
| 664 | |
| 665 | * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and |
| 666 | set redisplaying_p to 0 here instead of in Frecursive_edit. |
| 667 | (Frecursive_edit): Don't bind `inhibit-redisplay' and don't |
| 668 | set redisplaying_p. |
| 669 | |
| 670 | * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update): |
| 671 | New variables. |
| 672 | (syms_of_xdisp): Initialize new variables. |
| 673 | (update_menu_bar): Do nothing if inhibit_menubar_update is set. |
| 674 | Specbind `inhibit-menubar-update' when updating the menu bar. |
| 675 | |
| 676 | * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with |
| 677 | safe_run_hooks. |
| 678 | |
| 679 | * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with |
| 680 | safe_run_hooks. |
| 681 | |
| 682 | * emacs.c (malloc_initialize_hook): Handle case thet `environ' |
| 683 | is null. |
| 684 | |
| 685 | * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration |
| 686 | to the start of the file. |
| 687 | |
| 688 | 2001-02-16 Gerd Moellmann <gerd@gnu.org> |
| 689 | |
| 690 | * window.c (set_window_buffer): Fix last change. |
| 691 | |
| 692 | * window.c (set_window_buffer): Set window's vscroll to 0. |
| 693 | |
| 694 | * window.c (coordinates_in_window): Increase width of area |
| 695 | where the vertical line can be dragged. |
| 696 | |
| 697 | * xterm.c (x_set_glyph_string_background_width): Extend the |
| 698 | background face to the end of the drawing area in the text |
| 699 | area, only. |
| 700 | |
| 701 | * xdisp.c (handle_single_display_prop): Set iterator's position |
| 702 | to where the `display' property starts, like for images. |
| 703 | (dump_glyph): New function. |
| 704 | (dump_glyph_row): Use it. Dump info about marginal areas. |
| 705 | |
| 706 | * dispnew.c (direct_output_for_insert): Recognize more cases where |
| 707 | glyphs can be written instead of being inserted. |
| 708 | |
| 709 | * xterm.c (x_insert_glyphs): Call window_box_left to obtain |
| 710 | the left x-coordinate of the area to shift. |
| 711 | |
| 712 | * dired.c (directory_files_internal): Set result list to nil |
| 713 | before retrying. |
| 714 | |
| 715 | 2001-02-15 Kenichi Handa <handa@etl.go.jp> |
| 716 | |
| 717 | * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an |
| 718 | invalid multibyte sequence, treat *SRC as a character of |
| 719 | eight-bit-graphic. |
| 720 | |
| 721 | 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il> |
| 722 | |
| 723 | * textprop.c (Fset_text_properties): Doc fix. |
| 724 | |
| 725 | 2001-02-15 Gerd Moellmann <gerd@gnu.org> |
| 726 | |
| 727 | * dispnew.c (update_text_area): Undo change of 2001-01-12. |
| 728 | |
| 729 | 2001-02-14 Dave Love <fx@gnu.org> |
| 730 | |
| 731 | * coding.c: Doc and message fixes. |
| 732 | |
| 733 | 2001-02-14 Andrew Innes <andrewi@gnu.org> |
| 734 | |
| 735 | * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the |
| 736 | Emacs frame above the screen size. |
| 737 | |
| 738 | 2001-02-14 Gerd Moellmann <gerd@gnu.org> |
| 739 | |
| 740 | * xdisp.c (reseat_1): Set iterator's end_charpos to ZV. |
| 741 | |
| 742 | 2001-02-13 Gerd Moellmann <gerd@gnu.org> |
| 743 | |
| 744 | * insdel.c (del_range_1, del_range_byte, del_range_both): Handle |
| 745 | case that TO ends up beyond ZV after running before-change-functions. |
| 746 | |
| 747 | * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return |
| 748 | the selected window if it is showing the buffer in question. |
| 749 | |
| 750 | * dired.c (directory_files_internal): Initialize errno. |
| 751 | (toplevel): Include errno.h. |
| 752 | |
| 753 | 2001-02-13 Kenichi Handa <handa@etl.go.jp> |
| 754 | |
| 755 | * xfaces.c (best_matching_font): New parameter width_ratio. |
| 756 | Multiply avgwidth by width_ratio. |
| 757 | (choose_face_font): Call best_matching_font with width_ratio |
| 758 | calculated from the column width of C. |
| 759 | |
| 760 | 2001-02-12 Andrew Innes <andrewi@gnu.org> |
| 761 | |
| 762 | The following changes are to draw box lines inside characters area |
| 763 | if line-width is negative. |
| 764 | |
| 765 | * w32term.c (x_produce_image_glyph): Pay attention to the case that |
| 766 | face->box_line_width is negative. |
| 767 | (x_produce_stretch_glyph): Likewise. |
| 768 | (x_produce_glyphs): Likewise. |
| 769 | (x_estimate_mode_line_height): Likewise. |
| 770 | (x_draw_glyph_string_background): Likewise. |
| 771 | (x_draw_glyph_string_foreground): Likewise. |
| 772 | (x_draw_composite_glyph_string_foreground): Likewise. |
| 773 | (x_draw_glyph_string_box): Likewise. |
| 774 | (x_draw_image_foreground): Likewise. |
| 775 | (x_draw_image_relief): Likewise. |
| 776 | (x_draw_image_foreground_1): Likewise. |
| 777 | (x_draw_image_glyph_string): Likewise. |
| 778 | |
| 779 | 2001-02-09 Kenichi Handa <handa@etl.go.jp> |
| 780 | |
| 781 | The following changes are to draw box lines inside characters area |
| 782 | if line-width is negative. |
| 783 | |
| 784 | * xterm.c (x_produce_image_glyph): Pay attention to the case that |
| 785 | face->box_line_width is negative. |
| 786 | (x_produce_stretch_glyph): Likewise. |
| 787 | (x_produce_glyphs): Likewise. |
| 788 | (x_estimate_mode_line_height): Likewise. |
| 789 | (x_draw_glyph_string_background): Likewise. |
| 790 | (x_draw_glyph_string_foreground): Likewise. |
| 791 | (x_draw_composite_glyph_string_foreground): Likewise. |
| 792 | (x_draw_glyph_string_box): Likewise. |
| 793 | (x_draw_image_foreground): Likewise. |
| 794 | (x_draw_image_relief): Likewise. |
| 795 | (x_draw_image_foreground_1): Likewise. |
| 796 | (x_draw_image_glyph_string): Likewise. |
| 797 | |
| 798 | * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box |
| 799 | and :line-width can be negative. |
| 800 | (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be |
| 801 | negative. |
| 802 | |
| 803 | 2001-02-09 Jason Rumney <jasonr@gnu.org> |
| 804 | |
| 805 | * w32term.c (w32_encode_char): Treat eight bit graphic and control |
| 806 | characters the same as ASCII and latin-1. |
| 807 | (x_display_and_set_cursor): Check for the focus frame's selected |
| 808 | window instead of selected_window. |
| 809 | (x_after_update_window_line): Don't clear if frame's internal |
| 810 | border width is zero. |
| 811 | (x_new_font): Don't change a tooltip's size. |
| 812 | (w32_initialize): Set char_ins_del_ok to 1. |
| 813 | |
| 814 | * w32fns.c (Fx_show_tip): Fix calls to make_number. |
| 815 | (x_set_font): If font hasn't changed, avoid recomputing |
| 816 | faces and other things. |
| 817 | (x_set_tool_bar_lines): Do nothing if frame is |
| 818 | minibuffer-only, |
| 819 | (Fx_create_frame): Add the tool bar height to the frame |
| 820 | height. |
| 821 | (x_create_tip_frame): Prevent changing the tooltip's |
| 822 | background color by specifying a color for the default font |
| 823 | in .Xdefaults. |
| 824 | (Qcancel_timer): New variable. |
| 825 | (syms_of_w32fns): Initialize and staticpro it. |
| 826 | (Fx_hide_tip, Fx_show_tip): Use it. |
| 827 | (Fx_show_tip): Make sure to set tip_timer to nil when canceling |
| 828 | the timer. |
| 829 | (toplevel): Lisp code for generating parts of syms_of_w32fns removed. |
| 830 | |
| 831 | * w32.c (init_environment): Duplicate local string before putenv. |
| 832 | |
| 833 | 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu> |
| 834 | |
| 835 | * charset.c (Fstring): A typo. |
| 836 | |
| 837 | 2001-02-09 Kenichi Handa <handa@etl.go.jp> |
| 838 | |
| 839 | * charset.c (Fstring): If all arguments are less than 256, return |
| 840 | a unibyte string. |
| 841 | |
| 842 | * editfns.c (Fchar_to_string): If CHARACTER is less than 256, |
| 843 | return a unibyte string. |
| 844 | |
| 845 | * coding.c (code_convert_region): After detecting a coding, if |
| 846 | nothing found, set coding->composing to COMPOSITION_NO. |
| 847 | (decode_coding_string): Likewise. |
| 848 | |
| 849 | 2001-02-08 Stefan Monnier <monnier@cs.yale.edu> |
| 850 | |
| 851 | * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range' |
| 852 | to avoid overflow. |
| 853 | |
| 854 | 2001-02-07 Kenichi Handa <handa@etl.go.jp> |
| 855 | |
| 856 | * charset.c (parse_str_to_multibyte): New function. |
| 857 | |
| 858 | * charset.h (parse_str_to_multibyte): Extern it. |
| 859 | |
| 860 | * print.c (print_string): If we are going to print a unibyte |
| 861 | string into a multibyte buffer, convert the string to multibyte by |
| 862 | str_to_multibyte. |
| 863 | |
| 864 | 2001-02-06 Andrew Innes <andrewi@gnu.org> |
| 865 | |
| 866 | * w32xfns.c (select_palette): Do nothing if palette hasn't yet |
| 867 | been created. It seems we can get sent window messages such as |
| 868 | WM_ERASEBKGND before we properly update a frame. |
| 869 | |
| 870 | 2001-02-06 Gerd Moellmann <gerd@gnu.org> |
| 871 | |
| 872 | * dispnew.c (update_frame_line): Rename parameter FRAME to F. |
| 873 | Avoid some unnecessary cursor positioning. |
| 874 | |
| 875 | 2001-02-05 Gerd Moellmann <gerd@gnu.org> |
| 876 | |
| 877 | * xfaces.c (split_font_name): Compute numeric value of |
| 878 | XLFD_AVGWIDTH. |
| 879 | (LFACE_AVGWIDTH): New macro. |
| 880 | (LFACEP): Use AREF. |
| 881 | (check_lface_attrs): Check LFACE_AVGWIDTH. |
| 882 | (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. |
| 883 | (set_lface_from_font_name): Set LFACE_AVGWIDTH. |
| 884 | (merge_face_vectors): Check LFACE_AVGWIDTH. |
| 885 | (Finternal_make_lisp_face): Use AREF. |
| 886 | (xm_set_menu_resources_from_menu_face) |
| 887 | (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH. |
| 888 | (Finternal_lisp_face_empty_p): Use AREF. |
| 889 | (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH. |
| 890 | (better_font_p, exact_face_match_p): Add parameter AVGWIDTH. |
| 891 | Compare average widths.. |
| 892 | (best_matching_font): Arrange for comparing average widths. |
| 893 | |
| 894 | * dispextern.h (enum lface_attribute_index): Add |
| 895 | LFACE_AVGWIDTH_INDEX (invisible from Lisp). |
| 896 | |
| 897 | 2001-02-05 Dave Love <fx@gnu.org> |
| 898 | |
| 899 | * puresize.h: Revert last change following loadup.el change. |
| 900 | |
| 901 | 2001-02-05 Andrew Innes <andrewi@gnu.org> |
| 902 | |
| 903 | * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in |
| 904 | invocation of temacs, to work with Windows 2000. |
| 905 | (bootstrap-emacs): Ditto. |
| 906 | |
| 907 | 2001-02-05 Gerd Moellmann <gerd@gnu.org> |
| 908 | |
| 909 | * xterm.c (x_display_and_set_cursor): Check for the focus |
| 910 | frame's selected window instead of selected_window. |
| 911 | |
| 912 | * xdisp.c (try_scrolling): If point is in the line below the |
| 913 | window, make sure to move the iterator at least a canonical |
| 914 | char height down. |
| 915 | |
| 916 | * window.c (Fmove_to_window_line): Don't add 1 if window is |
| 917 | vscrolled. |
| 918 | |
| 919 | 2001-02-05 Kenichi Handa <handa@etl.go.jp> |
| 920 | |
| 921 | * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If |
| 922 | invalid, execute CCL_INVALID_CMD. |
| 923 | (ccl_driver): If the CCL program is terminated because of |
| 924 | CCL_STAT_INVALID_CMD, copy the remaining source data to the |
| 925 | destination instead of throwing them away. |
| 926 | |
| 927 | 2001-02-02 Gerd Moellmann <gerd@gnu.org> |
| 928 | |
| 929 | * xfns.c (x_set_font): If font hasn't changed, avoid recomputing |
| 930 | faces and other things. |
| 931 | |
| 932 | * xdisp.c (get_next_display_element): Fix case of empty |
| 933 | display table entry. |
| 934 | |
| 935 | 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 936 | |
| 937 | * editfns.c (Fconstrain_to_field): Doc fix. |
| 938 | |
| 939 | * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument |
| 940 | into `thoroughly', to make it consistent with the doc string. |
| 941 | |
| 942 | * window.c (Fenlarge_window, Fshrink_window): Doc fix. |
| 943 | |
| 944 | 2001-02-01 Gerd Moellmann <gerd@gnu.org> |
| 945 | |
| 946 | * search.c (search_buffer): Call set_search_regs with a byte |
| 947 | position, not a character position. |
| 948 | |
| 949 | * xfns.c (x_set_tool_bar_lines): Do nothing if frame is |
| 950 | minibuffer-only, |
| 951 | |
| 952 | 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il> |
| 953 | |
| 954 | * frame.c (Fmodify_frame_parameters): Doc fix. |
| 955 | |
| 956 | 2001-01-31 Gerd Moellmann <gerd@gnu.org> |
| 957 | |
| 958 | * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker |
| 959 | identifier which is not reserved by Standard C. |
| 960 | |
| 961 | * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define. |
| 962 | |
| 963 | * window.c (enum window_part): New enumeration. |
| 964 | (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and |
| 965 | Qright_bitmap_area. |
| 966 | (coordinates_in_window): Return an enumerator from enum |
| 967 | window_part. Fix handling of right scroll bar. |
| 968 | (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and |
| 969 | `right-fringe' instead of `left-bitmap-area' and |
| 970 | `right-bitmap-area'. Use enumerators from enum window_part |
| 971 | instead of hard-coded integers. |
| 972 | (check_window_containing, window_from_coordinates): Use |
| 973 | enumerators from enum window_part instead of hard-coded integers. |
| 974 | (syms_of_window): Replace Qleft_bitmap_area and |
| 975 | Qright_bitmap_area.with Qleft_fringe and Qright_fringe. |
| 976 | |
| 977 | 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il> |
| 978 | |
| 979 | * editfns.c (Fformat_time_string): Doc fix. |
| 980 | |
| 981 | 2001-01-31 Stefan Monnier <monnier@cs.yale.edu> |
| 982 | |
| 983 | * keymap.c (Fwhere_is_internal): Use the first valid binding |
| 984 | if no ascii binding is found (when firstonly is t). |
| 985 | |
| 986 | 2001-01-31 Gerd Moellmann <gerd@gnu.org> |
| 987 | |
| 988 | * window.c (Fscroll_right, Fscroll_left): Use interactive_p |
| 989 | instead of Finteractive_p. |
| 990 | |
| 991 | * lisp.h (interactive_p): Add prototype. |
| 992 | |
| 993 | * eval.c (interactive_p): New function. |
| 994 | (Finteractive_p): Use it. |
| 995 | |
| 996 | * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop. |
| 997 | |
| 998 | 2001-01-31 Dave Love <fx@gnu.org> |
| 999 | |
| 1000 | * .gdbinit (hook-run): Define to run xreload. |
| 1001 | |
| 1002 | * textprop.c (Fset_text_properties): Fix newline in doc string. |
| 1003 | |
| 1004 | 2001-01-30 Gerd Moellmann <gerd@gnu.org> |
| 1005 | |
| 1006 | * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use |
| 1007 | DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF. |
| 1008 | |
| 1009 | * dispextern.h (Vtool_bar_button_margin:): Declare extern. |
| 1010 | (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF) |
| 1011 | (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines. |
| 1012 | |
| 1013 | * xfns.c (Fx_create_frame): Add the tool bar height to the frame |
| 1014 | height. |
| 1015 | |
| 1016 | 2001-01-30 Dave Love <fx@gnu.org> |
| 1017 | |
| 1018 | * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and |
| 1019 | AFTER_POTENTIAL_GC. |
| 1020 | |
| 1021 | 2001-01-29 Gerd Moellmann <gerd@gnu.org> |
| 1022 | |
| 1023 | * bytecode.c (Fbyte_code) <Bcurrent_column>: Add |
| 1024 | BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC. |
| 1025 | |
| 1026 | 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il> |
| 1027 | |
| 1028 | * textprop.c (Fset_text_properties): Doc fix. |
| 1029 | |
| 1030 | 2001-01-29 Gerd Moellmann <gerd@gnu.org> |
| 1031 | |
| 1032 | * xdisp.c (forward_to_next_line_start): Remove xassert. |
| 1033 | |
| 1034 | 2001-01-29 Jason Rumney <jasonr@gnu.org> |
| 1035 | |
| 1036 | * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid |
| 1037 | returning without releasing it. |
| 1038 | |
| 1039 | 2001-01-29 Kenichi Handa <handa@etl.go.jp> |
| 1040 | |
| 1041 | * w32fns.c (w32_font_match): Allocate three more bytes to regex |
| 1042 | for '^', '$', and '\0'. |
| 1043 | |
| 1044 | 2001-01-28 Andrew Choi <akochoi@i-cable.com> |
| 1045 | |
| 1046 | * fontset.c (fontset_pattern_regexp): Allocate three more bytes to |
| 1047 | regex for '^', '$', and '\0'. |
| 1048 | |
| 1049 | * alloc.c (allocate_string) [macintosh]: Call check_string_bytes |
| 1050 | only if current_sblock has been initialized. |
| 1051 | |
| 1052 | * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial |
| 1053 | terminal frame even if it is the only visible frame. |
| 1054 | |
| 1055 | 2001-01-28 Kenichi Handa <handa@etl.go.jp> |
| 1056 | |
| 1057 | * fontset.c (font_family_registry): Even if FONTNAME conform to |
| 1058 | XLFD, if it specifies other fields than family and registry, |
| 1059 | return FONTANME. New argument FORCE if nonzero cancel that |
| 1060 | feature. |
| 1061 | (fontset_font_pattern): Call font_family_registry with FORCE 1 for |
| 1062 | a signle byte character. Don't set FAMILY part to nil here. It |
| 1063 | is handled by the caller choose_face_font. |
| 1064 | (Fnew_fontset): Call font_family_registry with FORCE 0. |
| 1065 | (Fset_fontset_font): Likewise. |
| 1066 | |
| 1067 | 2001-01-27 Gerd Moellmann <gerd@gnu.org> |
| 1068 | |
| 1069 | * xdisp.c (display_line): Don't treat a newline as fitting |
| 1070 | on the line. |
| 1071 | |
| 1072 | 2001-01-26 Gerd Moellmann <gerd@gnu.org> |
| 1073 | |
| 1074 | * window.c (size_window): Set the window's orig_top to nil when |
| 1075 | changing heights, so that a future shrink_mini_window won't |
| 1076 | restore a bogus height. |
| 1077 | |
| 1078 | * frame.c (do_switch_frame): If selected frame has a mini-window, |
| 1079 | resize that to exact size. |
| 1080 | |
| 1081 | * dispnew.c (adjust_glyph_matrix): Always clear desired matrices. |
| 1082 | |
| 1083 | * xdisp.c (display_line): Simplify check for glyphs fitting |
| 1084 | entirely in the line. |
| 1085 | |
| 1086 | * xfns.c (xic_style): New variable. |
| 1087 | (create_frame_xic): Move static variable to global scope for |
| 1088 | the case that `static' gets defined away. |
| 1089 | |
| 1090 | 2001-01-26 Kenichi Handa <handa@etl.go.jp> |
| 1091 | |
| 1092 | * coding.c (decode_coding): Set a flag for inhibiting |
| 1093 | inconsistent eol. |
| 1094 | (code_convert_region): Always set saved_coding_symbol. |
| 1095 | (decode_coding_string): Likewise. Update coding->symbol when we |
| 1096 | encounter a inconsistent eol by the same way as |
| 1097 | code_convert_region. |
| 1098 | |
| 1099 | 2001-01-25 Gerd Moellmann <gerd@gnu.org> |
| 1100 | |
| 1101 | * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of |
| 1102 | XClearArea. |
| 1103 | |
| 1104 | * xterm.c (x_after_update_window_line): Don't clear if frame's |
| 1105 | internal border width is zero. |
| 1106 | (x_clear_area): New function. |
| 1107 | (x_after_update_window_line, x_clear_end_of_line) |
| 1108 | (x_scroll_bar_create, x_scroll_bar_set_handle) |
| 1109 | (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area |
| 1110 | instead of XClearArea. |
| 1111 | |
| 1112 | * xterm.h (x_clear_area): Add prototype. |
| 1113 | |
| 1114 | * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif |
| 1115 | which doesn't seem necessary anymore with Lesstif 0.92. |
| 1116 | |
| 1117 | 2001-01-25 Dave Love <fx@gnu.org> |
| 1118 | |
| 1119 | * puresize.h (BASE_PURESIZE): Up to 720000. |
| 1120 | |
| 1121 | * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4. |
| 1122 | |
| 1123 | 2001-01-25 Gerd Moellmann <gerd@gnu.org> |
| 1124 | |
| 1125 | * xdisp.c (echo_area_display): Don't call redisplay_internal |
| 1126 | when Emacs is shutting down. We can't run hooks etc. that |
| 1127 | would be necessary to do a redisplay. |
| 1128 | |
| 1129 | * lread.c (read_integer): Use type EMACS_INT instead of int. |
| 1130 | |
| 1131 | 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il> |
| 1132 | |
| 1133 | * ccl.c (ccl_driver): Fix last change. |
| 1134 | |
| 1135 | 2001-01-25 Kenichi Handa <handa@etl.go.jp> |
| 1136 | |
| 1137 | * ccl.h (sturct ccl_program): New member suppress_error. |
| 1138 | |
| 1139 | * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't |
| 1140 | insert error message to the output. |
| 1141 | (setup_ccl_program): Initialize ccl->suppress_error to 0. |
| 1142 | |
| 1143 | * coding.h (struct coding_system): New member suppress_error. |
| 1144 | |
| 1145 | * coding.c (ccl_coding_driver): Setup ccl->suppress_error. |
| 1146 | (Fset_terminal_coding_system_internal): Set the member |
| 1147 | suppress_error to 1. |
| 1148 | (Fset_safe_terminal_coding_system_internal): Likewise. |
| 1149 | |
| 1150 | 2001-01-24 Stefan Monnier <monnier@cs.yale.edu> |
| 1151 | |
| 1152 | * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not' |
| 1153 | as if it was a `charset'. |
| 1154 | |
| 1155 | 2001-01-24 Gerd Moellmann <gerd@gnu.org> |
| 1156 | |
| 1157 | * keymap.c (Fwhere_is_internal): Don't nreverse the cached |
| 1158 | value in where_is_cache; the next lookup in the cache returns |
| 1159 | something bogus if we do. |
| 1160 | |
| 1161 | 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
| 1162 | |
| 1163 | * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr |
| 1164 | if HAVE_WINDOW_SYSTEM isn't defined. |
| 1165 | |
| 1166 | 2001-01-24 Gerd Moellmann <gerd@gnu.org> |
| 1167 | |
| 1168 | * fns.c (sweep_weak_table): Fix code taking items out of |
| 1169 | the hash collision chain. Some cleanup. |
| 1170 | |
| 1171 | * xterm.c (x_new_font): Don't change a tooltip's size. |
| 1172 | |
| 1173 | * xfns.c (x_create_tip_frame): Prevent changing the tooltip's |
| 1174 | background color by specifying a color for the default font |
| 1175 | in .Xdefaults. |
| 1176 | |
| 1177 | 2001-01-24 Kenichi Handa <handa@etl.go.jp> |
| 1178 | |
| 1179 | * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as |
| 1180 | a workaround for SunOS 4's cc. |
| 1181 | (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...". |
| 1182 | (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise. |
| 1183 | (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do" |
| 1184 | statement. |
| 1185 | |
| 1186 | 2001-01-23 Gerd Moellmann <gerd@gnu.org> |
| 1187 | |
| 1188 | * xterm.c (x_set_window_size_1): New function extracted from |
| 1189 | x_set_window_size. |
| 1190 | (x_set_window_size): Use it. |
| 1191 | (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window |
| 1192 | doesn't have a widget, like tooltips. |
| 1193 | |
| 1194 | 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 1195 | |
| 1196 | * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc |
| 1197 | fix. |
| 1198 | |
| 1199 | 2001-01-23 Kenichi Handa <handa@etl.go.jp> |
| 1200 | |
| 1201 | * fns.c (Fset_char_table_default): Fix to make sub char-table |
| 1202 | correctly. |
| 1203 | |
| 1204 | 2001-01-22 Gerd Moellmann <gerd@gnu.org> |
| 1205 | |
| 1206 | * xdisp.c (build_desired_tool_bar_string): Make sure we have |
| 1207 | a desired tool bar string, even if there are no tool bar |
| 1208 | items. |
| 1209 | |
| 1210 | * xdisp.c (Ftool_bar_lines_needed): New function. |
| 1211 | (syms_of_xdisp): Defsubr it. |
| 1212 | |
| 1213 | * editfns.c (Fformat): Don't extend text properties from arguments |
| 1214 | to padding chars in the result. |
| 1215 | |
| 1216 | 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il> |
| 1217 | |
| 1218 | * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS. |
| 1219 | |
| 1220 | 2001-01-20 Andrew Innes <andrewi@gnu.org> |
| 1221 | |
| 1222 | * w32term.c (w32_ring_bell): Only support visible bell on w32 |
| 1223 | frames. |
| 1224 | (w32_initialize): Don't set term hooks that aren't actually needed |
| 1225 | in windowed mode. |
| 1226 | |
| 1227 | * xfaces.c (realize_default_face): |
| 1228 | (realize_face): |
| 1229 | (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P. |
| 1230 | |
| 1231 | * xdisp.c (handle_single_display_prop): Remove references to |
| 1232 | FRAME_W32_CONSOLE_P. |
| 1233 | |
| 1234 | * dispnew.c (Fredraw_frame): Remove reference to |
| 1235 | FRAME_W32_CONSOLE_P. |
| 1236 | |
| 1237 | * frame.h (output_method): Remove output_w32_console method. |
| 1238 | (FRAME_W32_CONSOLE_P): Remove macro. |
| 1239 | |
| 1240 | * frame.c (Qw32_console): Remove variable. |
| 1241 | (Fframep): Remove references to it. |
| 1242 | (syms_of_frame): Ditto. |
| 1243 | (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P. |
| 1244 | |
| 1245 | * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original |
| 1246 | redefinition. |
| 1247 | |
| 1248 | 2001-01-20 Kenichi Handa <handa@etl.go.jp> |
| 1249 | |
| 1250 | * editfns.c (Fformat): Use lisp_string_width instead of strwidth. |
| 1251 | |
| 1252 | 2001-01-19 Andrew Innes <andrewi@gnu.org> |
| 1253 | |
| 1254 | * w32.c (init_environment): Add a version-independent site-lisp |
| 1255 | directory to EMACSLOADPATH, after the version dependent one. |
| 1256 | |
| 1257 | 2001-01-19 Gerd Moellmann <gerd@gnu.org> |
| 1258 | |
| 1259 | * editfns.c (Fbuffer_substring): Doc fix. |
| 1260 | |
| 1261 | * xdisp.c (message_dolog, message2, message2_nolog): Rename |
| 1262 | parameter LEN to NBYTES. |
| 1263 | |
| 1264 | 2001-01-19 Kenichi Handa <handa@etl.go.jp> |
| 1265 | |
| 1266 | * charset.c (strwidth): Use c_string_width. |
| 1267 | (c_string_width): New function. |
| 1268 | (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES. |
| 1269 | Caller changed. |
| 1270 | |
| 1271 | * charset.h (c_string_width, lisp_string_width): Extern them. |
| 1272 | |
| 1273 | * doprnt.c (doprnt1): Get byte length of Lisp string correctly. |
| 1274 | |
| 1275 | * indent.c (check_composition): Check validity of composition. |
| 1276 | |
| 1277 | * xdisp.c (store_frame_title): Pay attention to width of non-ASCII |
| 1278 | characters by calling c_string_width. |
| 1279 | (x_consider_frame_title): Get byte length of frame tile string |
| 1280 | correctly. |
| 1281 | (display_mode_element): Pay attention to width of non-ASCII |
| 1282 | characters by calling strwidth. |
| 1283 | |
| 1284 | 2001-01-18 Gerd Moellmann <gerd@gnu.org> |
| 1285 | |
| 1286 | * xfns.c (Qcancel_timer): New variable. |
| 1287 | (syms_of_xfns): Initialize and staticpro it. |
| 1288 | (Fx_hide_tip, Fx_show_tip): Use it. |
| 1289 | (Fx_show_tip): Make sure to set tip_timer to nil when canceling |
| 1290 | the timer. |
| 1291 | (toplevel): Lisp code for generating parts of syms_of_xfns removed. |
| 1292 | |
| 1293 | * window.c (Fwindow_live_p): Use WINDOW_LIVE_P. |
| 1294 | |
| 1295 | * window.h (WINDOW_LIVE_P): New macro. |
| 1296 | |
| 1297 | * window.c (window_size_fixed): New variable. |
| 1298 | (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for |
| 1299 | the doc string. |
| 1300 | |
| 1301 | * eval.c (specbind): If binding a per-buffer variable which |
| 1302 | doesn't have a buffer-local value in the current buffer, change |
| 1303 | the global value by changing the value of the symbol bound in all |
| 1304 | buffers not having their own value, to make it consistent with |
| 1305 | what happens with other buffer-local variables. |
| 1306 | |
| 1307 | * xterm.c (x_initialize): Set char_ins_del_ok to 1. |
| 1308 | |
| 1309 | * xdisp.c (forward_to_next_line_start): Stop at end of buffer |
| 1310 | when searching for a newline. |
| 1311 | |
| 1312 | 2001-01-18 Kenichi Handa <handa@etl.go.jp> |
| 1313 | |
| 1314 | * xdisp.c (display_string): Fix previous change. |
| 1315 | |
| 1316 | 2001-01-18 Jason Rumney <jasonr@gnu.org> |
| 1317 | |
| 1318 | * w32term.c (x_produce_stretch_glyph): Only use Qspace when |
| 1319 | GLYPH_DEBUG is defined. |
| 1320 | (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't |
| 1321 | true for images with `:ascent 100'. |
| 1322 | (x_set_mouse_face_gc): If the last used mouse face has gone in the |
| 1323 | meantime, use face MOUSE_FACE_ID. |
| 1324 | If first glyph isn't a character glyph, use the ASCII NUL |
| 1325 | character to determine the face. |
| 1326 | (expose_area): Do not treat left margin specially. |
| 1327 | (note_mode_line_highlight): If no local_map, check global keymap. |
| 1328 | (note_mouse_highlight): Initialize overlay. |
| 1329 | (clear_mouse_face): Don't return if tip_frame is |
| 1330 | non-nil. |
| 1331 | (show_scroll_bars): Remove unused function. |
| 1332 | (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil. |
| 1333 | (x_draw_bar_cursor): Remove extra test for out of bounds cursor. |
| 1334 | Clip to row. |
| 1335 | (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be |
| 1336 | nil. |
| 1337 | (x_free_frame_resources): Unload relief colors. |
| 1338 | |
| 1339 | 2001-01-17 Gerd Moellmann <gerd@gnu.org> |
| 1340 | |
| 1341 | * xdisp.c (forward_to_next_line_start): Avoid calling |
| 1342 | get_next_display_element when the newline is already found. This |
| 1343 | may change the iterator's position, when its current position is |
| 1344 | equal to the iterator's stop_charpos. |
| 1345 | |
| 1346 | * dispnew.c (direct_output_for_insert): If char_ins_del_ok is |
| 1347 | zero, use this method only at the end of a line. |
| 1348 | |
| 1349 | * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the |
| 1350 | call to x_list_fonts. Call x_list_fonts with SIZE -1 only |
| 1351 | if SCALABLE_FONTS_P is set. |
| 1352 | |
| 1353 | * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1, |
| 1354 | so that scalable fonts are included. |
| 1355 | |
| 1356 | * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0, |
| 1357 | In the cache, use a key containing the information if scalable |
| 1358 | fonts are included. |
| 1359 | (x_load_font): Adapt to change of keys in the font cache. |
| 1360 | |
| 1361 | 2001-01-17 Kim F. Storm <storm@filanet.dk> |
| 1362 | |
| 1363 | * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of |
| 1364 | XListFonts to take advantage of font caching. |
| 1365 | |
| 1366 | * xterm.c (x_list_fonts): Ensure caching font information when |
| 1367 | called for a null frame, which is the case frequently when Emacs |
| 1368 | starts. |
| 1369 | |
| 1370 | 2001-01-17 Gerd Moellmann <gerd@gnu.org> |
| 1371 | |
| 1372 | * xfns.c (QCconversion): Replaces QCalgorithm. |
| 1373 | |
| 1374 | * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright. |
| 1375 | |
| 1376 | * xdisp.c (build_desired_tool_bar_string): Use :conversion instead |
| 1377 | of :algorithm. |
| 1378 | |
| 1379 | * xdisp.c (redisplay_tool_bar): Change tool bar's height when |
| 1380 | not everything could be displayed. |
| 1381 | |
| 1382 | * line.h, x-list-font.c: Files removed because unused. |
| 1383 | |
| 1384 | 2001-01-17 Andrew Innes <andrewi@gnu.org> |
| 1385 | |
| 1386 | * dired.c (directory_files_internal): Convert result from readdir |
| 1387 | to a unibyte string initially, to avoid possible misinterpretation |
| 1388 | of some bytes as the internal form of Emacs characters. |
| 1389 | |
| 1390 | 2001-01-17 Kenichi Handa <handa@etl.go.jp> |
| 1391 | |
| 1392 | * fns.c (concat): Be sure to avoid putting the same `composition' |
| 1393 | property on the adjacent regions. |
| 1394 | |
| 1395 | 2001-01-16 Gerd Moellmann <gerd@gnu.org> |
| 1396 | |
| 1397 | * window.c (Fset_window_hscroll): Don't set window's min_hscroll |
| 1398 | here. |
| 1399 | (Fscroll_right, Fscroll_left): Set it here instead, if called |
| 1400 | interactively. |
| 1401 | |
| 1402 | * buffer.c (Fset_buffer_modified_p): Set buffer's |
| 1403 | prevent_redisplay_optimizations_p flag. |
| 1404 | |
| 1405 | * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c, |
| 1406 | * sysdep.c, vmsproc.c, xselect.c: Call |
| 1407 | redisplay_preserve_echo_area with additional arg. |
| 1408 | |
| 1409 | * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change |
| 1410 | prototype. |
| 1411 | |
| 1412 | * xdisp.c (redisplay_preserve_echo_area): Add parameter |
| 1413 | FROM_WHERE, for debugging. |
| 1414 | |
| 1415 | 2001-01-16 Kenichi Handa <handa@etl.go.jp> |
| 1416 | |
| 1417 | * ccl.c (Fregister_ccl_program): Handle the return value of |
| 1418 | resolve_symbol_ccl_program correctly. |
| 1419 | (CCL_Extension): Fix typo (originally CCL_Extention). Caller |
| 1420 | changed. |
| 1421 | |
| 1422 | 2001-01-15 Gerd Moellmann <gerd@gnu.org> |
| 1423 | |
| 1424 | * xterm.c (x_set_mouse_face_gc): If the last used mouse face |
| 1425 | has gone in the meantime, use face MOUSE_FACE_ID. |
| 1426 | |
| 1427 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If |
| 1428 | x_display_info_for_display returns null, don't try to close |
| 1429 | the display; we didn't open it. |
| 1430 | |
| 1431 | * dispnew.c (save_or_restore_current_matrices): Function removed. |
| 1432 | (save_current_matrix, restore_current_matrix): New functions. |
| 1433 | (adjust_frame_glyphs_for_frame_redisplay): Use them to save and |
| 1434 | restore the frame's current matrix. Due to the glyph pointer |
| 1435 | setup done in adjust_glyph_matrix, there is no easy way to make |
| 1436 | saving the current matrix in the desired matrix generally correct, |
| 1437 | so don't try it. |
| 1438 | |
| 1439 | 2001-01-15 Kenichi Handa <handa@etl.go.jp> |
| 1440 | |
| 1441 | * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by |
| 1442 | truncation glyphs. |
| 1443 | (display_line): Optimize for wide characters. |
| 1444 | (display_string): Don't try to display a multi-column character |
| 1445 | partially. On ttys, produce more than one truncation glyph for |
| 1446 | multi-column characters that don't fit on the line. |
| 1447 | |
| 1448 | 2001-01-13 Kenichi Handa <handa@etl.go.jp> |
| 1449 | |
| 1450 | * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define |
| 1451 | it instead of WORDS_BIGENDIAN. Caller changed. |
| 1452 | |
| 1453 | 2001-01-13 Jason Rumney <jasonr@gnu.org> |
| 1454 | |
| 1455 | * w32fns.c (Fimage_size, image_ascent, lookup_image) |
| 1456 | (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec) |
| 1457 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) |
| 1458 | (tiff_format, gif_format, gs_format): Adapt to change of image |
| 1459 | margins. |
| 1460 | |
| 1461 | * w32term.c (x_produce_image_glyph, x_draw_image_foreground) |
| 1462 | (x_draw_image_relief, x_draw_image_foreground_1) |
| 1463 | (x_draw_image_glyph_string): Adapt to change of image margins. |
| 1464 | |
| 1465 | * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused |
| 1466 | variables. |
| 1467 | |
| 1468 | * w32bdf.c (search_file_line, get_cached_font_char) |
| 1469 | (cache_char_offset, create_offscreen_bitmap): Remove unused variables. |
| 1470 | |
| 1471 | * w32inevt.c (w32_console_toggle_lock_key): Add parentheses. |
| 1472 | |
| 1473 | * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height) |
| 1474 | (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog) |
| 1475 | (Fw32_send_sys_command): Remove unused variables. |
| 1476 | (w32_msg_pump): Add parentheses. |
| 1477 | |
| 1478 | * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon) |
| 1479 | (x_new_fontset, x_calc_absolute_position, x_iconify_frame): |
| 1480 | Add parentheses. |
| 1481 | |
| 1482 | 2001-01-12 Gerd Moellmann <gerd@gnu.org> |
| 1483 | |
| 1484 | * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin. |
| 1485 | (build_desired_tool_bar_string): Handle Vtool_bar_button_margin |
| 1486 | being a pair of margins. |
| 1487 | (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins |
| 1488 | to DEFVAR_LISP. Extend doc. |
| 1489 | |
| 1490 | * xfns.c (Fimage_size, image_ascent): Adapt to the change of image |
| 1491 | margins. |
| 1492 | (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a |
| 1493 | pair of integers `(X . Y)', use X for the horizontal and Y for the |
| 1494 | vertical margin. |
| 1495 | (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator. |
| 1496 | (parse_image_spec): Check it. |
| 1497 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) |
| 1498 | (tiff_format, gif_format, gs_format): Use |
| 1499 | IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin. |
| 1500 | |
| 1501 | * xterm.c (x_produce_image_glyph, x_draw_image_foreground) |
| 1502 | (x_draw_image_relief, x_draw_image_foreground_1) |
| 1503 | (x_draw_image_glyph_string): Adapt to the change of image margins. |
| 1504 | |
| 1505 | * dispextern.h (struct image): Replace member `margin' with |
| 1506 | `hmargin' and `vmargin'. |
| 1507 | |
| 1508 | * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW |
| 1509 | and GLYPHS. |
| 1510 | |
| 1511 | * dispnew.c (update_text_area): Put code which decrements the |
| 1512 | stop position when the row's face extends to the end of the |
| 1513 | line in #if 0. |
| 1514 | |
| 1515 | * xfns.c (x_set_mouse_color): Fix color allocation. |
| 1516 | |
| 1517 | * keyboard.c: Call get_local_map with new argument list. |
| 1518 | |
| 1519 | * intervals.c (get_local_map): Change TYPE to Lisp_Object. |
| 1520 | |
| 1521 | * intervals.h (enum map_property): Removed. |
| 1522 | (get_local_map): Change prototype. |
| 1523 | |
| 1524 | * keymap.c: Call get_local_map with new argument list. |
| 1525 | (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP. |
| 1526 | |
| 1527 | 2001-01-11 Gerd Moellmann <gerd@gnu.org> |
| 1528 | |
| 1529 | * xdisp.c (build_desired_tool_bar_string): Correct the computation |
| 1530 | of the size needed for the tool bar string. For the last image, |
| 1531 | use a `display' property that reaches to the end of the string. |
| 1532 | |
| 1533 | * xselect.c (selection_request_dpyinfo): New variable. |
| 1534 | (x_handle_selection_request): Set it. |
| 1535 | (x_selection_request_lisp_error): Don't call |
| 1536 | x_decline_selection_request if selection request's display has |
| 1537 | been closed. |
| 1538 | |
| 1539 | * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do |
| 1540 | the unregister_colors before calling XFreeColors. |
| 1541 | |
| 1542 | 2001-01-10 Dave Love <fx@gnu.org> |
| 1543 | |
| 1544 | * Makefile.in (${etc}DOC): Depend on ${shortlisp} and |
| 1545 | ${SOME_MACHINE_LISP}, not ${lisp}. |
| 1546 | |
| 1547 | 2001-01-10 Gerd Moellmann <gerd@gnu.org> |
| 1548 | |
| 1549 | * xdisp.c (display_line): On ttys, produce more than one |
| 1550 | truncation glyph for multi-column characters that don't fit on the |
| 1551 | line. |
| 1552 | |
| 1553 | * xselect.c (x_reply_selection_request): Add a comment. |
| 1554 | |
| 1555 | * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and |
| 1556 | XkbGetNames instead of XkbGetKeyboard. |
| 1557 | |
| 1558 | 2001-01-10 Dave Love <fx@gnu.org> |
| 1559 | |
| 1560 | * sysdep.c (random): Revert the declaration. |
| 1561 | |
| 1562 | 2001-01-09 Gerd Moellmann <gerd@gnu.org> |
| 1563 | |
| 1564 | * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call |
| 1565 | function string_bytes. |
| 1566 | (GC_CHECK_STRING_BYTES): Moved here from alloc.c. |
| 1567 | |
| 1568 | * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro. |
| 1569 | (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions. |
| 1570 | (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P. |
| 1571 | (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in |
| 1572 | the current sblock. |
| 1573 | (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES. |
| 1574 | (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes |
| 1575 | after sweeping strings, and at the end. |
| 1576 | (GC_CHECK_STRING_BYTES): Moved to lisp.h. |
| 1577 | |
| 1578 | * alloc.c (Fgarbage_collect): Use a record_unwind_protect to |
| 1579 | ensure that pop_message is called. |
| 1580 | |
| 1581 | * keyboard.c (Fexecute_extended_command): Use a |
| 1582 | record_unwind_protect to ensure that pop_message is called. |
| 1583 | |
| 1584 | * lisp.h (push_message_unwind): Add prototype. |
| 1585 | |
| 1586 | * xdisp.c (push_message_unwind): New function. |
| 1587 | |
| 1588 | * fileio.c (do_auto_save_unwind): Do the pop_message here |
| 1589 | instead of in Fdo_auto_save. |
| 1590 | (Fdo_auto_save): Don't call pop_message. |
| 1591 | |
| 1592 | 2001-01-08 Ken Raeburn <raeburn@gnu.org> |
| 1593 | |
| 1594 | * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I |
| 1595 | in inner block. |
| 1596 | |
| 1597 | 2001-01-08 Gerd Moellmann <gerd@gnu.org> |
| 1598 | |
| 1599 | * window.c (window_scroll_pixel_based): Adjust glyph matrices |
| 1600 | when increasing window's vscroll. |
| 1601 | |
| 1602 | * macros.c (Qkbd_macro_termination_hook): New variable. |
| 1603 | (syms_of_macros): Initialize and staticpro it. |
| 1604 | (pop_kbd_macro): Run kbd-macro-termination-hook. |
| 1605 | |
| 1606 | * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil. |
| 1607 | |
| 1608 | 2001-01-07 Dave Love <fx@gnu.org> |
| 1609 | |
| 1610 | * keyboard.c (Fread_key_sequence_vector): Avoid newline in |
| 1611 | arglist, for documentation's sake. |
| 1612 | |
| 1613 | 2001-01-06 Andrew Innes <andrewi@gnu.org> |
| 1614 | |
| 1615 | * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead |
| 1616 | of *.pdb. |
| 1617 | |
| 1618 | 2001-01-05 Andrew Innes <andrewi@gnu.org> |
| 1619 | |
| 1620 | * term.c (update_end): Don't check updating_frame; for some reason |
| 1621 | this can be 0 sometimes, such as after dismissing a popup menu, |
| 1622 | and isn't necessary given the explicit frame argument. |
| 1623 | |
| 1624 | 2001-01-05 Gerd Moellmann <gerd@gnu.org> |
| 1625 | |
| 1626 | * sysdep.c: Don't prototype srandom; it takes an unsigned argument |
| 1627 | on some systems, and an unsigned long on others, like FreeBSD 4.1. |
| 1628 | |
| 1629 | 2001-01-04 Gerd Moellmann <gerd@gnu.org> |
| 1630 | |
| 1631 | * xterm.c (clear_mouse_face): Don't return if tip_frame is |
| 1632 | non-nil. |
| 1633 | |
| 1634 | * xfns.c (x_create_tip_frame): Preserve the value of |
| 1635 | face_change_count around the creation of the tip frame. |
| 1636 | |
| 1637 | * xfns.c (last_show_tip_args): New variable. |
| 1638 | (compute_tip_xy): New function. |
| 1639 | (Fx_show_tip): Reuse an existing tip frame, if possible. |
| 1640 | (syms_of_xfns): Initialize and staticpro last_show_tip_args. |
| 1641 | |
| 1642 | 2001-01-04 Dave Love <fx@gnu.org> |
| 1643 | |
| 1644 | * editfns.c (Fformat): Doc fix. |
| 1645 | |
| 1646 | * systime.h (set_file_times): Prototype. |
| 1647 | |
| 1648 | * widget.h (EmacsFrameSetCharSize_): Prototype. |
| 1649 | |
| 1650 | * sysdep.c (random, srandom): Declare explicitly. |
| 1651 | |
| 1652 | * dispextern.h (move_it_vertically_backward): Declare. |
| 1653 | |
| 1654 | 2001-01-04 Gerd Moellmann <gerd@gnu.org> |
| 1655 | |
| 1656 | * xfns.c (x_create_tip_frame): Call face-set-after-frame-default, |
| 1657 | like in Fx_create_frame. |
| 1658 | |
| 1659 | * xfaces.c (set_font_frame_param): Don't do anything for |
| 1660 | non-graphical frames. |
| 1661 | |
| 1662 | * window.c (Fdelete_other_windows): Set window's window_end_valid |
| 1663 | to nil when changing the window's start. Don't change the |
| 1664 | window's start when its top position hasn't changed. If we do, |
| 1665 | this will set the window's optional_new_start, which act's like a |
| 1666 | force_start during redisplay with C-x 1 M-> under particular |
| 1667 | circumstances (see report from Per Starback to emacs-pretest-bug |
| 1668 | from 2000-12-13.). |
| 1669 | |
| 1670 | 2001-01-03 Gerd Moellmann <gerd@gnu.org> |
| 1671 | |
| 1672 | * xdisp.c (forward_to_next_line_start): Reset it->c if taking the |
| 1673 | short cut at the start of the function. Add an assertion. |
| 1674 | (reseat_at_next_visible_line_start): Add an assertion. |
| 1675 | |
| 1676 | * window.c (Frecenter): When changing the window start, set the |
| 1677 | window's window_end_valid to nil. |
| 1678 | (Fwindow_end): Fix window-end computation when UPDATE is non-nil. |
| 1679 | |
| 1680 | * dispextern.h (move_it_past_eol): Add prototype. |
| 1681 | |
| 1682 | * xdisp.c (move_it_past_eol): New function. |
| 1683 | |
| 1684 | * window.c (Fwindow_end): Doc fix. |
| 1685 | |
| 1686 | 2001-01-03 Dave Love <fx@gnu.org> |
| 1687 | |
| 1688 | * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 |
| 1689 | kluge. |
| 1690 | |
| 1691 | 2001-01-03 Gerd Moellmann <gerd@gnu.org> |
| 1692 | |
| 1693 | * xdisp.c (try_window_reusing_current_matrix): Fix bug setting |
| 1694 | the enabled_p flag of the glyph row at window_end_vpos to 0. |
| 1695 | (handle_single_display_prop): Fix last change. |
| 1696 | |
| 1697 | 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
| 1698 | |
| 1699 | * window.c (Frecenter): Doc fix. |
| 1700 | |
| 1701 | 2001-01-02 Andrew Innes <andrewi@gnu.org> |
| 1702 | |
| 1703 | * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition. |
| 1704 | |
| 1705 | * frame.h (output_method): Add output_w32_console method. |
| 1706 | (FRAME_W32_CONSOLE_P): New macro. |
| 1707 | |
| 1708 | * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames |
| 1709 | use output_w32_console method. |
| 1710 | (Qw32_console): New Lisp_Object. |
| 1711 | (Fframep): Return it. |
| 1712 | (syms_of_frame): Init it. |
| 1713 | (Fframe_parameters): Report w32console as font for w32_console |
| 1714 | frames. |
| 1715 | |
| 1716 | * xfaces.c (realize_default_face): Set face foreground and |
| 1717 | background to unspecified for w32_console frames. |
| 1718 | (realize_face): Realize face cache for w32_console frames. |
| 1719 | (realize_tty_face): Accept w32_console frames. |
| 1720 | |
| 1721 | * xdisp.c (handle_single_display_prop): Return if frame is |
| 1722 | w32_console. |
| 1723 | (init_iterator) [WINDOWSNT]: Initialize frame face cache if |
| 1724 | necessary, even if running interactively. |
| 1725 | |
| 1726 | * dispnew.c (Fredraw_frame): Call set_terminal_modes for |
| 1727 | w32_console frames. |
| 1728 | |
| 1729 | * w32term.c (x_update_begin): |
| 1730 | (x_update_end): |
| 1731 | (x_clear_frame): |
| 1732 | (x_ins_del_lines): |
| 1733 | (x_change_line_highlight): |
| 1734 | (x_delete_glyphs): |
| 1735 | (w32_ring_bell): |
| 1736 | (x_update_begin): |
| 1737 | (x_update_end): |
| 1738 | (w32_reassert_line_highlight): |
| 1739 | (w32_frame_rehighlight): |
| 1740 | (w32_frame_raise_lower): Do nothing if not w32 frame. |
| 1741 | |
| 1742 | * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame. |
| 1743 | |
| 1744 | * w32fns.c (Fx_display_color_cells): Determine correct value, when |
| 1745 | system doesn't tell us directly. |
| 1746 | (Fx_display_visual_class): Implement properly. |
| 1747 | |
| 1748 | 2001-01-02 Gerd Moellmann <gerd@gnu.org> |
| 1749 | |
| 1750 | * window.c (Frecenter): Handle centering in graphical frames |
| 1751 | specially. Centering on the basis of line counts doesn't work |
| 1752 | reliably with variable-height lines. |
| 1753 | |
| 1754 | 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 1755 | |
| 1756 | * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac' |
| 1757 | and al[]. |
| 1758 | |
| 1759 | * composite.c (run_composition_function): Remove unused variable |
| 1760 | `val'. |
| 1761 | (update_compositions): Remove unused variable `hook'. |
| 1762 | |
| 1763 | * intervals.c (get_local_map): Remove unused variable `tem'. |
| 1764 | |
| 1765 | * doprnt.c (doprnt1): Remove unused variable `size'. |
| 1766 | |
| 1767 | * fns.c (Flength): Remove unused variable `tail'. |
| 1768 | (Fdelete): Remove unused variable `size'. |
| 1769 | |
| 1770 | * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1' |
| 1771 | and `gcpro2'. |
| 1772 | |
| 1773 | * doc.c (Fsnarf_documentation): Remove unused variables `fun' and |
| 1774 | `tem'. |
| 1775 | |
| 1776 | * data.c (find_symbol_value): Remove extra 3rd argument in the |
| 1777 | call to swap_in_symval_forwarding. |
| 1778 | |
| 1779 | * undo.c (Fprimitive_undo): Remove unused block-scope variable |
| 1780 | `end'. |
| 1781 | |
| 1782 | * search.c (shrink_regexp_cache): Remove unused variable `cpp'. |
| 1783 | (trivial_regexp_p): Remove unused variable `c'. |
| 1784 | (boyer_moore): Remove unused variable `k'. |
| 1785 | |
| 1786 | * indent.c (current_column): Remove unused variable `stopchar'. |
| 1787 | (Fcompute_motion): Remove unused variable `contin'. |
| 1788 | |
| 1789 | * casefiddle.c (casify_object): Remove unused variable `tolen'. |
| 1790 | |
| 1791 | * dired.c (directory_files_internal): Fix a typo in a comment. |
| 1792 | Remove an unused variable `handler'. |
| 1793 | (file_name_completion): Remove unused function-scope variable |
| 1794 | `dp'. |
| 1795 | (Ffile_attributes) <dirname, sdir>: Make declarations conditioned |
| 1796 | on BSD4_2. |
| 1797 | |
| 1798 | * fileio.c (e_write): Remove unused variable |
| 1799 | `require_encoding_p'. |
| 1800 | |
| 1801 | * marker.c (Fmarker_position): Remove unused variables `pos', `i', |
| 1802 | and `buf'. |
| 1803 | (Fmarker_insertion_type): Remove unused variable `buf'. |
| 1804 | |
| 1805 | * insdel.c (make_gap): Remove unused variable `result'. |
| 1806 | |
| 1807 | * keyboard.c (record_char): Remove unused function-scope variable |
| 1808 | `help'. |
| 1809 | (kbd_buffer_get_event): Remove unused block-scope variable `idx'. |
| 1810 | (menu_bar_items): Remove unused function-scope variable `tem'. |
| 1811 | |
| 1812 | * fontset.c (fontset_ref): Remove unused variable `i'. |
| 1813 | (fontset_set): Remove unused variables `j' and `tmp'. |
| 1814 | (make_fontset): Remove unused variables `i', `j', `elt' and |
| 1815 | `base_elt'. |
| 1816 | (make_fontset_for_ascii_face): Remove unused variable `name'. |
| 1817 | (fs_load_font): Remove unused variable `font_idx'. |
| 1818 | (fs_query_fontset): Remove unused function-local variable |
| 1819 | `fontset'. |
| 1820 | (list_fontsets): Remove unused variable `tail'. |
| 1821 | (Fnew_fontset): Remove unused variables `family' and `registry'. |
| 1822 | (accumulate_font_info): Remove unused variable `tmp'. |
| 1823 | (Ffontset_font): Remove unused variable `id'. |
| 1824 | (syms_of_fontset): Remove unused variable `i'. |
| 1825 | |
| 1826 | * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call |
| 1827 | to x_term_init. |
| 1828 | (lookup_image): Remove unused variable `file'. |
| 1829 | (xbm_load): Remove unused variables `bitmap_data', `height', and |
| 1830 | `width'. Remove function-local variable `i', leave the |
| 1831 | block-local one. |
| 1832 | (gif_load): Remove unused variable `inc'. |
| 1833 | |
| 1834 | * xterm.c (XTread_socket): Remove unused variables `p' and |
| 1835 | `pend'. |
| 1836 | (XTread_socket) <LeaveNotify>: Remove unused variable `frame', |
| 1837 | leave only the one in the inner block. |
| 1838 | |
| 1839 | * xfaces.c (face_fontset, realize_default_face): Remove unused |
| 1840 | variable `fontset'. |
| 1841 | (face_at_buffer_position): Remove unused variable `multibyte_p'. |
| 1842 | |
| 1843 | * term.c (encode_terminal_code): Remove unused variable `c'. |
| 1844 | |
| 1845 | * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned |
| 1846 | char *' instead of `char *'. |
| 1847 | |
| 1848 | * category.c (Fcategory_docstring): Remove unused variable `doc'. |
| 1849 | (Fget_unused_category): Remove unused variable |
| 1850 | `docstring_vector'. |
| 1851 | (Fchar_category_set): Remove unused variables `val', `charset', |
| 1852 | `c1' and `c2'. |
| 1853 | |
| 1854 | * coding.c (detect_coding_iso2022, setup_coding_system): Remove |
| 1855 | unused variable `i'. |
| 1856 | (detect_coding_mask): Remove unused variable `idx'. |
| 1857 | (detect_coding): Remove unused variable `i'. |
| 1858 | (ccl_coding_driver): Remove unused variable `result'. |
| 1859 | (run_pre_post_conversion_on_str): Remove unused variable `prev'. |
| 1860 | (decode_coding_string): Remove unused variables `to' and |
| 1861 | `gcpro1'. |
| 1862 | (encode_coding_string): Remove unused variables `gcpro1' and |
| 1863 | `saved_coding_symbol'. |
| 1864 | (Ffind_coding_systems_region_internal): Remove function-local |
| 1865 | variable args[], leave only the block-local one. |
| 1866 | (code_convert_region1): Remove unused variable `len'. |
| 1867 | |
| 1868 | * charset.c (char_printable_p): Remove unused variable `chars'. |
| 1869 | (Fsplit_char, Fchar_bytes): Remove unused variable `val'. |
| 1870 | (str_to_multibyte): Remove unused variable `c'. |
| 1871 | |
| 1872 | * window.c (size_window): Remove block-local variable `min_size'. |
| 1873 | |
| 1874 | * xdisp.c (make_cursor_line_fully_visible): Remove unused variable |
| 1875 | `header_line_height'. |
| 1876 | (append_space, extend_face_to_end_of_line): Declare `saved_what' |
| 1877 | enum display_element_type. |
| 1878 | |
| 1879 | 2001-01-02 Gerd Moellmann <gerd@gnu.org> |
| 1880 | |
| 1881 | * xterm.c (x_connection_closed): Catch X errors around all |
| 1882 | statements that call X. Save away the error message in a local |
| 1883 | copy. |
| 1884 | |
| 1885 | * xterm.c (x_connection_closed): Set handling_signal to 0 at |
| 1886 | the start. |
| 1887 | |
| 1888 | * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe |
| 1889 | in or at the start of invisible text. |
| 1890 | |
| 1891 | * dispnew.c (update_window): Don't check_current_matrix_flags. |
| 1892 | |
| 1893 | 2001-01-01 Jason Rumney <jasonr@gnu.org> |
| 1894 | |
| 1895 | * w32fns.c (x_figure_window_size): Do not allow new_height and |
| 1896 | new_width of frame to override specified values. |
| 1897 | |
| 1898 | 2000-12-30 Kenichi Handa <handa@etl.go.jp> |
| 1899 | |
| 1900 | * composite.c (find_composition): Fix a code for searching |
| 1901 | backward. |
| 1902 | |
| 1903 | 2000-12-29 Gerd Moellmann <gerd@gnu.org> |
| 1904 | |
| 1905 | * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New |
| 1906 | function. |
| 1907 | (update_window) [GLYPH_DEBUG]: Call it. |
| 1908 | (scrolling_window): Prevent including current rows which are below |
| 1909 | what's displayed in the window. |
| 1910 | |
| 1911 | * xdisp.c (try_window_reusing_current_matrix) |
| 1912 | <new start <= old start>: Disable rows in the current matrix |
| 1913 | which are below the window after scrolling. |
| 1914 | |
| 1915 | * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P |
| 1916 | is zero. It's not worth the complexity. |
| 1917 | (invisible_text_between_p): Put in #if 0 because unused. |
| 1918 | |
| 1919 | 2000-12-28 Gerd Moellmann <gerd@gnu.org> |
| 1920 | |
| 1921 | * xfns.c (Fx_backspace_delete_keys_p): Check library and server |
| 1922 | XKB versions. Call XkbFreeKeyboard with 2nd arg 0. |
| 1923 | |
| 1924 | * keyboard.c (echo_char): If C is an integer, always call |
| 1925 | push_key_description. Former code could signal an invalid |
| 1926 | character error. |
| 1927 | |
| 1928 | * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE. |
| 1929 | If set, print multibyte text. |
| 1930 | (Fsingle_key_description): Call push_key_description with |
| 1931 | FORCE_MULTIBYTE set. |
| 1932 | (describe_buffer_bindings): Likewise. |
| 1933 | |
| 1934 | * lisp.h (push_key_description): Add prototype. |
| 1935 | |
| 1936 | * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t |
| 1937 | around the call to redisplay_internal. |
| 1938 | |
| 1939 | * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG. |
| 1940 | |
| 1941 | * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG. |
| 1942 | |
| 1943 | 2000-12-28 Kenichi Handa <handa@etl.go.jp> |
| 1944 | |
| 1945 | * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'. |
| 1946 | (ccl_driver): New local variable `extra_bytes'. |
| 1947 | |
| 1948 | * ccl.h (struct ccl_spec): New member eight_bit_carryover. |
| 1949 | |
| 1950 | * coding.c (setup_coding_system): Initialize |
| 1951 | coding->spec.ccl.eight_bit_carryover. |
| 1952 | (ccl_coding_driver): Pay attention to carried over 8-bit bytes. |
| 1953 | |
| 1954 | 2000-12-28 Kenichi Handa <handa@etl.go.jp> |
| 1955 | |
| 1956 | * coding.c (SAFE_ONE_MORE_BYTE): New macro. |
| 1957 | (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro. |
| 1958 | (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro. |
| 1959 | (decode_composition_emacs_mule): New function. |
| 1960 | (decode_coding_emacs_mule): Decode composition sequence by calling |
| 1961 | decode_composition_emacs_mule. |
| 1962 | (ENCODE_COMPOSITION_EMACS_MULE): New macro. |
| 1963 | (encode_coding_emacs_mule): Changed from macro to function. If |
| 1964 | a text contains compositions, encode them correctly. |
| 1965 | (setup_coding_system): Set coding->commong_flags for emacs-mule so |
| 1966 | that decoding and encoding are required. |
| 1967 | |
| 1968 | 2000-12-27 Gerd Moellmann <gerd@gnu.org> |
| 1969 | |
| 1970 | * xfaces.c (PT_PER_INCH): New macro. |
| 1971 | (xlfd_point_size): Compute real point size from font's pixel size. |
| 1972 | (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH |
| 1973 | instead of 72. |
| 1974 | |
| 1975 | * .gdbinit: Comment out the line pointing to the Lesstif source |
| 1976 | directory. |
| 1977 | |
| 1978 | * window.c (Frecenter): Use displayed_window_lines instead |
| 1979 | of window_internal_height. |
| 1980 | |
| 1981 | * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars |
| 1982 | instead of x-toolkit-scroll-bars-p. |
| 1983 | (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p. |
| 1984 | |
| 1985 | * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars |
| 1986 | instead of x-toolkit-scroll-bars-p. |
| 1987 | (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p. |
| 1988 | |
| 1989 | * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New. |
| 1990 | (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro. |
| 1991 | (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New |
| 1992 | variables. |
| 1993 | (add_window_display_history, add_frame_display_history) |
| 1994 | (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions. |
| 1995 | (build_frame_matrix_from_leaf_window): Remove unused code. |
| 1996 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to |
| 1997 | redisplay history. |
| 1998 | (update_frame) [GLYPH_DEBUG]: Add to redisplay history. |
| 1999 | (update_window) [GLYPH_DEBUG]: Likewise. |
| 2000 | (syms_of_display): Defsubr dump-redisplay-history. |
| 2001 | |
| 2002 | 2000-12-23 Gerd Moellmann <gerd@gnu.org> |
| 2003 | |
| 2004 | * keyboard.c (echo_prompt): Always set current_kboard->echoptr to |
| 2005 | the end of the prompt. Set echo_after_prompt to the offset |
| 2006 | of echoptr in echobuf. |
| 2007 | |
| 2008 | * xdisp.c (init_from_display_pos): Pop until the iterator's |
| 2009 | stack is empty; there may be frames for stretch or images |
| 2010 | on the stack. |
| 2011 | |
| 2012 | * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed. |
| 2013 | (save_or_restore_current_matrix): New function for the same |
| 2014 | purpose, but more efficient. |
| 2015 | (adjust_frame_glyphs_for_frame_redisplay): Use it. |
| 2016 | |
| 2017 | 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 2018 | |
| 2019 | * xdisp.c (syms_of_xdisp): Fix last change. |
| 2020 | |
| 2021 | 2000-12-23 Gerd Moellmann <gerd@gnu.org> |
| 2022 | |
| 2023 | * xdisp.c (syms_of_xdisp): Doc fix. |
| 2024 | |
| 2025 | * xdisp.c (redisplay_window): Remove label restore_buffers; |
| 2026 | use finish_scroll_bars instead to make sure that scroll bars |
| 2027 | are redeemed. If we don't do this, flickering can result from |
| 2028 | scroll bars being destroyed and recreated. |
| 2029 | |
| 2030 | 2000-12-22 Jason Rumney <jasonr@gnu.org> |
| 2031 | |
| 2032 | * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear |
| 2033 | in the wrong colors when the foreground is not black. |
| 2034 | (expose_window): Don't redraw the window that's currently being |
| 2035 | updated. |
| 2036 | |
| 2037 | 2000-12-22 Gerd Moellmann <gerd@gnu.org> |
| 2038 | |
| 2039 | * window.c (size_window): When setting the window's too_small_ok |
| 2040 | flag, compare old size with minimum size depending on WIDTH_P, |
| 2041 | don't compare with window_min_width. |
| 2042 | |
| 2043 | * window.c (delete_window): Simplify somewhat. |
| 2044 | (Fset_window_configuration): Don't SET_FRAME_GARBAGED after |
| 2045 | freeing window matrices. The flag windows_or_buffers_changed is |
| 2046 | set, so the next redisplay will consider all windows; this should |
| 2047 | suffice. |
| 2048 | |
| 2049 | 2000-12-22 Kenichi Handa <handa@etl.go.jp> |
| 2050 | |
| 2051 | * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed. |
| 2052 | |
| 2053 | * ccl.h (struct ccl_program): New member cr_consumed. |
| 2054 | |
| 2055 | * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here. |
| 2056 | (CCL_READ_CHAR): Handle EOL conversion here. |
| 2057 | (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise. |
| 2058 | |
| 2059 | 2000-12-21 Gerd Moellmann <gerd@gnu.org> |
| 2060 | |
| 2061 | * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg |
| 2062 | GLYPHS. |
| 2063 | |
| 2064 | * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths, |
| 2065 | otherwise tabs of different size compare equal. |
| 2066 | |
| 2067 | * callint.c (Fcall_interactively): Prevent a compiler warning. |
| 2068 | |
| 2069 | * print.c (print_unwind): Return nil. |
| 2070 | (PRINTDECLARE): Initialize all local variables. |
| 2071 | (print_preprocess): Add a default case. |
| 2072 | |
| 2073 | * lisp.h (Qinhibit_point_motion_hooks): Declare extern. |
| 2074 | |
| 2075 | * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t. |
| 2076 | |
| 2077 | * window.c (delete_window, Fsplit_window) |
| 2078 | (Fset_window_configuration): Calls to ensure_frame_matrix removed. |
| 2079 | |
| 2080 | * dispextern.h (ensure_frame_matrix): Function declaration removed. |
| 2081 | |
| 2082 | * dispnew.c (ensure_frame_matrix): Removed. |
| 2083 | (save_frame_matrix, restore_frame_matrix): New functions. |
| 2084 | (adjust_frame_glyphs_for_frame_redisplay): Use them. |
| 2085 | |
| 2086 | * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix) |
| 2087 | [GLYPH_DEBUG]: Extended to dump glyphs in short form. |
| 2088 | |
| 2089 | 2000-12-21 Andrew Innes <andrewi@gnu.org> |
| 2090 | |
| 2091 | * w32term.c (x_update_begin): Regenerate the palette here, rather |
| 2092 | than for each window. |
| 2093 | |
| 2094 | * w32xfns.c (select_palette): Avoid calling SelectPalette if |
| 2095 | palette is NULL, since this corrupts memory! Also get |
| 2096 | display_info reference from frame. |
| 2097 | |
| 2098 | 2000-12-21 Jason Rumney <jasonr@gnu.org> |
| 2099 | |
| 2100 | * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap. |
| 2101 | |
| 2102 | * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC |
| 2103 | to avoid returning without releasing it. |
| 2104 | |
| 2105 | 2000-12-21 Kenichi Handa <handa@etl.go.jp> |
| 2106 | |
| 2107 | * keymap.c (push_key_description): Don't convert eight-bit-control |
| 2108 | and eight-bit-graphic to multibyte character. |
| 2109 | |
| 2110 | * charset.c (Fmake_char_internal): If CHARSET doesn't have a |
| 2111 | generic character and CODE1 is nil, return the smallest character |
| 2112 | in CHARSET. |
| 2113 | |
| 2114 | 2000-12-20 Dave Love <fx@gnu.org> |
| 2115 | |
| 2116 | * s/osf5-0.h (NSIG): Don't redefine. |
| 2117 | |
| 2118 | 2000-12-20 Stefan Monnier <monnier@cs.yale.edu> |
| 2119 | |
| 2120 | * keymap.c (where_is_internal): Check ascii_sequence_p rather than |
| 2121 | excluding menu-bar and tool-bar. |
| 2122 | (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache. |
| 2123 | (menu_item_p): Remove. |
| 2124 | (where_is_internal_1): Don't ignore menu-items. |
| 2125 | |
| 2126 | 2000-12-20 Gerd Moellmann <gerd@gnu.org> |
| 2127 | |
| 2128 | * xdisp.c (hscroll_window_tree): Take window's min_hscroll |
| 2129 | into account. |
| 2130 | |
| 2131 | * window.c (make_window): Initialize window's min_hscroll. |
| 2132 | (Fset_window_hscroll): Set window's hscroll and min_hscroll. |
| 2133 | (set_window_buffer, temp_output_buffer_show): Set min_hscroll |
| 2134 | to zero. |
| 2135 | (struct saved_window): New member min_hscroll. |
| 2136 | (SAVED_WINDOW_VECTOR_SIZE): Set to 17. |
| 2137 | (Fset_window_configuration): Set window's min_hscroll. |
| 2138 | (save_window_save): Save window's min_hscroll. |
| 2139 | (compare_window_configurations): Compare min_hscroll values. |
| 2140 | |
| 2141 | * window.h (struct window): New member min_hscroll. |
| 2142 | |
| 2143 | * keyboard.c (echo_prompt): Prevent a compiler warning. |
| 2144 | |
| 2145 | * xdisp.c (try_cursor_movement): Fix last change. The real |
| 2146 | condition is that PT is at the end of the row, and should |
| 2147 | be displayed at the start of the next row. |
| 2148 | |
| 2149 | * xdisp.c (try_cursor_movement): If we end on a partially |
| 2150 | visible line, end we already decided to scroll, return -1. |
| 2151 | |
| 2152 | * dispextern.h (ensure_frame_matrix): Add prototype. |
| 2153 | |
| 2154 | * window.c (delete_window, Fsplit_window) |
| 2155 | (Fset_window_configuration): Call ensure_frame_matrix. |
| 2156 | |
| 2157 | * dispnew.c (fake_current_matrices, ensure_frame_matrix): New |
| 2158 | functions. |
| 2159 | (adjust_frame_glyphs_for_frame_redisplay): If display has been |
| 2160 | completed, call fake_current_matrices instead of marking frame |
| 2161 | garbaged. |
| 2162 | |
| 2163 | 2000-12-20 Jason Rumney <jasonr@gnu.org> |
| 2164 | |
| 2165 | * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame. |
| 2166 | |
| 2167 | 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
| 2168 | |
| 2169 | * fns.c (Frequire): Doc fix. |
| 2170 | |
| 2171 | 2000-12-19 Gerd Moellmann <gerd@gnu.org> |
| 2172 | |
| 2173 | * window.c (window_scroll_pixel_based): Don't use |
| 2174 | move_it_vertically. |
| 2175 | |
| 2176 | * dispnew.c (direct_output_for_insert): Fix check for mini-window |
| 2177 | currently displaying a message. |
| 2178 | |
| 2179 | * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and |
| 2180 | xterm.h. |
| 2181 | (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font. |
| 2182 | |
| 2183 | 2000-12-18 Andrew Innes <andrewi@gnu.org> |
| 2184 | |
| 2185 | * w32.c (w32_strerror): New function. |
| 2186 | |
| 2187 | * w32.h (w32_strerror): New extern. |
| 2188 | |
| 2189 | * w32fns.c (Fw32_shell_execute): Use it. |
| 2190 | |
| 2191 | 2000-12-18 Gerd Moellmann <gerd@gnu.org> |
| 2192 | |
| 2193 | * s/hpux10.h (_FILE_OFFSET_BITS): Undef again. |
| 2194 | |
| 2195 | 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il> |
| 2196 | |
| 2197 | * msdos.c (IT_set_face): Obey inverse_video. |
| 2198 | |
| 2199 | 2000-12-18 Kenichi Handa <handa@etl.go.jp> |
| 2200 | |
| 2201 | * dired.c (directory_files_internal): Always return decoded filenames. |
| 2202 | |
| 2203 | 2000-12-18 Gerd Moellmann <gerd@gnu.org> |
| 2204 | |
| 2205 | * xterm.c (x_connection_closed): Prevent being called recursively |
| 2206 | because of an error condition in XtCloseDisplay. |
| 2207 | |
| 2208 | * xdisp.c (init_iterator): If noninteractive, and the frame's |
| 2209 | face cache is null, make one. |
| 2210 | |
| 2211 | * xfns.c (show_busy_cursor): Check for live frames more |
| 2212 | thoroughly. |
| 2213 | |
| 2214 | * process.c (wait_reading_process_input): Check for pending |
| 2215 | input when running timers. |
| 2216 | |
| 2217 | 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il> |
| 2218 | |
| 2219 | * msdos.c (IT_write_glyphs): Compute the glyph face from |
| 2220 | str->face_id. |
| 2221 | |
| 2222 | 2000-12-18 Kenichi Handa <handa@etl.go.jp> |
| 2223 | |
| 2224 | * process.c (read_process_output): Don't run a filter if the code |
| 2225 | decoder produces nothing but carryover. |
| 2226 | |
| 2227 | 2000-12-17 Andrew Innes <andrewi@gnu.org> |
| 2228 | |
| 2229 | * w32.c (sys_rename): Only check errno against EEXIST, and not |
| 2230 | EACCES, when determining whether rename failed because the target |
| 2231 | exists. This was resulting in indefinite looping on Windows 9x if |
| 2232 | the source file was locked by another process. |
| 2233 | |
| 2234 | * w32fns.c (Ffile_system_info): New function. |
| 2235 | (syms_of_w32fns): Defsubr it. |
| 2236 | |
| 2237 | 2000-12-17 Gerd Moellmann <gerd@gnu.org> |
| 2238 | |
| 2239 | * window.c (coordinates_in_window): Fix computation for |
| 2240 | position on vertical line between mode lines. |
| 2241 | |
| 2242 | * xfns.c (unwind_create_frame): Return t if frame was deleted. |
| 2243 | Don't alter tip_frame or tip_window. |
| 2244 | (unwind_create_tip_frame): Set tip_frame to nil only if frame |
| 2245 | was deleted. |
| 2246 | |
| 2247 | * w32fns.c (unwind_create_frame): Return t if frame was deleted. |
| 2248 | Don't alter tip_frame or tip_window. |
| 2249 | (unwind_create_tip_frame): Set tip_frame to nil only if frame |
| 2250 | was deleted. |
| 2251 | |
| 2252 | 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
| 2253 | |
| 2254 | * fileio.c (Fcopy_file): Rename the last argument to keep_time, to |
| 2255 | be consistent with the doc string. Reported by NAKAJIMA Mikio |
| 2256 | <minakaji@osaka.email.ne.jp>. |
| 2257 | |
| 2258 | 2000-12-16 Kenichi Handa <handa@etl.go.jp> |
| 2259 | |
| 2260 | * xfaces.c (Vface_ignored_fonts): New variable. |
| 2261 | (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts. |
| 2262 | (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable. |
| 2263 | |
| 2264 | 2000-12-15 Gerd Moellmann <gerd@gnu.org> |
| 2265 | |
| 2266 | * dispnew.c (update_window): Detect pending input every nth line |
| 2267 | updated, i.e. do it depending on real work done, and not on the |
| 2268 | vpos of the line. |
| 2269 | |
| 2270 | * xterm.c (expose_window): Don't redraw the window that's |
| 2271 | currently being updated. |
| 2272 | |
| 2273 | * window.c (Fset_window_point): Remove test for |
| 2274 | cursor_in_non_selected_windows. |
| 2275 | |
| 2276 | * lread.c (read1): Recognize end of file after `\\'. |
| 2277 | |
| 2278 | * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame, |
| 2279 | not unwind_create_frame. |
| 2280 | |
| 2281 | 2000-12-15 Dave Love <fx@gnu.org> |
| 2282 | |
| 2283 | * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of |
| 2284 | bcopy & al. |
| 2285 | |
| 2286 | * s/irix6-5.h: #undef bcopy & al here. Include strings.h. |
| 2287 | |
| 2288 | 2000-12-15 Kenichi Handa <handa@etl.go.jp> |
| 2289 | |
| 2290 | * coding.c (setup_coding_system): Clear all members of the struct |
| 2291 | coding_system at first. |
| 2292 | (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP |
| 2293 | argument. |
| 2294 | (code_convert_region): Don't override coding->src_multibyte and |
| 2295 | coding->dst_multibyte. |
| 2296 | |
| 2297 | * fns.c (Fmd5): Docstring improved. |
| 2298 | |
| 2299 | 2000-12-15 Miles Bader <miles@gnu.org> |
| 2300 | |
| 2301 | * xdisp.c (window_box_height): Only use mode-line glyph-rows that |
| 2302 | are actually marked as mode-lines; otherwise use |
| 2303 | estimate_mode_line_height. |
| 2304 | |
| 2305 | 2000-12-14 Gerd Moellmann <gerd@gnu.org> |
| 2306 | |
| 2307 | * editfns.c (Fformat): Prevent a buffer overrun when the format |
| 2308 | specifies a precision. |
| 2309 | |
| 2310 | 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il> |
| 2311 | |
| 2312 | * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the |
| 2313 | argument is outside the range [2..3]. |
| 2314 | |
| 2315 | 2000-12-14 Andrew Innes <andrewi@gnu.org> |
| 2316 | |
| 2317 | * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's |
| 2318 | nothing to do. Bind inhibit-quit. |
| 2319 | (tip_frame): Make it a Lisp_Object. |
| 2320 | (x_create_tip_frame): Set tip_frame after it has been added to |
| 2321 | Vframe_list. |
| 2322 | (Fx_show_tip): Don't set tip_frame here. |
| 2323 | (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New |
| 2324 | variables. |
| 2325 | (unwind_create_frame, unwind_create_tip_frame): New functions. |
| 2326 | (Fx_create_frame, x_create_tip_frame): Handle errors signaled |
| 2327 | while a frame is only partially constructed. |
| 2328 | |
| 2329 | * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object. |
| 2330 | (x_free_frame_resources): New function. |
| 2331 | (x_destroy_window): Use it. |
| 2332 | |
| 2333 | 2000-12-14 Gerd Moellmann <gerd@gnu.org> |
| 2334 | |
| 2335 | * xfns.c (Fx_backspace_delete_keys_p): New function. |
| 2336 | (syms_of_xfns): Defsubr it. |
| 2337 | |
| 2338 | * config.in (HAVE_XKBGETKEYBOARD): Add. |
| 2339 | |
| 2340 | 2000-12-14 Kenichi Handa <handa@etl.go.jp> |
| 2341 | |
| 2342 | * keyboard.c (echo_prompt): Argument type changed to Lisp_Object. |
| 2343 | Always store string in multibyte representation in echobuf. |
| 2344 | (echo_char): Always store string in multibyte representation in |
| 2345 | echobuf. |
| 2346 | (echo_now): Call message2_nolog with the arg MULTIBYTE 1. |
| 2347 | (read_key_sequence): Adjusted for the change of echo_prompt. |
| 2348 | |
| 2349 | * fns.c (Fmd5): Docstring improved. |
| 2350 | |
| 2351 | * lisp.h (detect_coding_system): Prototype adjusted. |
| 2352 | |
| 2353 | * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro. |
| 2354 | (detect_coding_emacs_mule, detect_coding_iso2022,) |
| 2355 | (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8) |
| 2356 | (detect_coding_utf_16, detect_coding_ccl): Make them static. New |
| 2357 | argument MULTIBYTEP. Callers changed. |
| 2358 | (detect_coding_mask, detect_coding_system): New argument |
| 2359 | MULTIBYTEP. Callers changed. |
| 2360 | (decode_coding_string): Set coding->src_multibyte and |
| 2361 | coding->dst_multibyte before calling detect_coding and detect_eol. |
| 2362 | Update them after some coding system is detected. |
| 2363 | |
| 2364 | 2000-12-13 Stefan Monnier <monnier@cs.yale.edu> |
| 2365 | |
| 2366 | * keymap.c (get_keyelt): Only eval the filter if `autoload' is set. |
| 2367 | |
| 2368 | * keyboard.c (menu_bar_items, tool_bar_items): |
| 2369 | Set `autoload' when looking up `tool-bar' or `menu-bar' submap. |
| 2370 | |
| 2371 | 2000-12-13 Gerd Moellmann <gerd@gnu.org> |
| 2372 | |
| 2373 | * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: |
| 2374 | New variables. |
| 2375 | (unwind_create_frame, unwind_create_tip_frame): New functions. |
| 2376 | (Fx_create_frame, x_create_tip_frame): Handle errors signaled |
| 2377 | while a frame is only partially constructed. |
| 2378 | |
| 2379 | * xterm.h (x_free_frame_resources): Declare. |
| 2380 | |
| 2381 | * xterm.c (x_free_frame_resources): New function. |
| 2382 | (x_destroy_window): Use it. |
| 2383 | |
| 2384 | * dispnew.c (update_window): If do_mouse_tracking is non-nil, |
| 2385 | don't interrupt the update for pending input initially, i.e. |
| 2386 | update at least some lines. |
| 2387 | |
| 2388 | * keyboard.c (do_mouse_tracking): Make externally visible. |
| 2389 | |
| 2390 | * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'. |
| 2391 | |
| 2392 | * xfns.c (gray_bitmap_bits): Declare `char *'. |
| 2393 | |
| 2394 | 2000-12-12 Gerd Moellmann <gerd@gnu.org> |
| 2395 | |
| 2396 | * xdisp.c (display_tool_bar_line): Make sure that tool bar |
| 2397 | lines start with a relief line. |
| 2398 | |
| 2399 | 2000-12-12 Dave Love <fx@gnu.org> |
| 2400 | |
| 2401 | * window.c (Fdisplay_buffer): Doc fix. |
| 2402 | (Fwindow_list): Remove unused var. |
| 2403 | |
| 2404 | * buffer.h (mmap_set_vars): Declare. |
| 2405 | |
| 2406 | * window.h (Fset_window_point): Declare. |
| 2407 | |
| 2408 | 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 2409 | |
| 2410 | * msdos.c (fast_find_position): Don't overstep the last window row. |
| 2411 | (IT_note_mouse_highlight): Initialize portion to -1. Remove |
| 2412 | unused variable `area'. When looking for a row under (X,Y), give |
| 2413 | up if some of the previous rows is not enabled. |
| 2414 | |
| 2415 | 2000-12-12 Gerd Moellmann <gerd@gnu.org> |
| 2416 | |
| 2417 | * window.c (Fset_window_point): If displaying cursors in windows |
| 2418 | other than the selected window, make sure redisplay updates |
| 2419 | other windows to show the new value of point in the window. |
| 2420 | |
| 2421 | * dispextern.h (cursor_in_non_selected_windows): Declare extern. |
| 2422 | |
| 2423 | * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if |
| 2424 | the buffer is the sole visible buffer when in the mini-buffer. |
| 2425 | |
| 2426 | * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer): |
| 2427 | Bind `inhibit-read-only' to t. |
| 2428 | (unwind_with_echo_area_buffer): Use AREF. |
| 2429 | |
| 2430 | * xfns.c (Fx_hide_tip): Simplified. |
| 2431 | |
| 2432 | * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use |
| 2433 | GC_MAKE_GCPROS_NOOPS instead of `1'. |
| 2434 | |
| 2435 | * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS. |
| 2436 | |
| 2437 | 2000-12-11 Gerd Moellmann <gerd@gnu.org> |
| 2438 | |
| 2439 | * xfns.c (Fx_hide_tip): Fix last change. |
| 2440 | |
| 2441 | * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's |
| 2442 | nothing to do. Bind inhibit-quit. |
| 2443 | (tip_frame): Make it a Lisp_Object. |
| 2444 | (x_create_tip_frame): Set tip_frame after it has been added to |
| 2445 | Vframe_list. |
| 2446 | (Fx_show_tip): Don't set tip_frame here. |
| 2447 | |
| 2448 | * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object. |
| 2449 | |
| 2450 | * xdisp.c (prepare_menu_bars): Changes for tip_frame being a |
| 2451 | Lisp_Object. |
| 2452 | |
| 2453 | * dispextern.h: Change external declaration of tip_frame. |
| 2454 | |
| 2455 | * keymap.c (Fkey_description): If KEYS is an empty key sequence, |
| 2456 | return an empty string. |
| 2457 | |
| 2458 | * xdisp.c (try_cursor_movement): Check update_mode_lines instead |
| 2459 | of the window's update_mode_line flag, since the former is set by |
| 2460 | force-mode-line-update, not the latter. This makes |
| 2461 | column-number-mode slightly faster. |
| 2462 | |
| 2463 | * xdisp.c (try_window_id) <all changes above window start>: |
| 2464 | Set the cursor. |
| 2465 | |
| 2466 | 2000-12-11 Paul Eggert <eggert@twinsun.com> |
| 2467 | |
| 2468 | * config.in (HAVE_FTELLO): Remove. |
| 2469 | (HAVE_FSEEKO): Add. |
| 2470 | (_XOPEN_SOURCE): Remove; the large-file code no longer needs it. |
| 2471 | * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not |
| 2472 | HAVE_FTELLO. |
| 2473 | * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef. |
| 2474 | * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE. |
| 2475 | |
| 2476 | 2000-12-11 Miles Bader <miles@gnu.org> |
| 2477 | |
| 2478 | * window.c (displayed_window_lines): Don't round up when |
| 2479 | converting empty space at bottom to lines. |
| 2480 | Handle non-newline-terminated final lines properly. |
| 2481 | (Fwindow_text_height): New function (used to be in lisp). |
| 2482 | (syms_of_window): Initialize it. |
| 2483 | |
| 2484 | 2000-12-09 Stefan Monnier <monnier@cs.yale.edu> |
| 2485 | |
| 2486 | * syntax.c (scan_lists): Check that the right quote char has the |
| 2487 | right Sstring syntax when jumping over strings. |
| 2488 | (init_syntax_once): Use Smax rather than 13. |
| 2489 | |
| 2490 | 2000-12-09 Miles Bader <miles@gnu.org> |
| 2491 | |
| 2492 | * window.c (Fpos_visible_in_window_p): Replace FULLY parameter |
| 2493 | with PARTIALLY, inverting the sense. |
| 2494 | (window_scroll_pixel_based): Scroll partially visible lines into |
| 2495 | place if we hit the beginning or end of the buffer. |
| 2496 | (displayed_window_lines): Don't include partially visible lines. |
| 2497 | (Fmove_to_window_line): Skip past any partially visible first line. |
| 2498 | |
| 2499 | 2000-12-08 Gerd Moellmann <gerd@gnu.org> |
| 2500 | |
| 2501 | * keymap.c (current_minor_maps): Use malloc. Prevent a leak. |
| 2502 | |
| 2503 | * tparam.c (tparam1): Change the way buffers are reallocated to be |
| 2504 | portable and less obfuscated. |
| 2505 | |
| 2506 | * termcap.c (tgetent): Change the way buffers are reallocated to |
| 2507 | be portable and less obfuscated. |
| 2508 | |
| 2509 | * macros.c (store_kbd_macro_char): Change the way buffers are |
| 2510 | reallocated to be portable and less obfuscated. |
| 2511 | |
| 2512 | * lread.c (read1): Change the way buffers are reallocated to be |
| 2513 | portable and less obfuscated. |
| 2514 | |
| 2515 | * doc.c (Fsubstitute_command_keys): Change the way buffers |
| 2516 | are reallocated so that it is portable. |
| 2517 | |
| 2518 | 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 2519 | |
| 2520 | * dosfns.c (Ffile_system_info): New function. |
| 2521 | (syms_of_dosfns): Defsubr it. |
| 2522 | |
| 2523 | 2000-12-07 Stefan Monnier <monnier@cs.yale.edu> |
| 2524 | |
| 2525 | * alloc.c (gc_sweep): Add comment. |
| 2526 | |
| 2527 | 2000-12-07 Gerd Moellmann <gerd@gnu.org> |
| 2528 | |
| 2529 | * sound.c (vox_configure): Change order of ioctls. Don't |
| 2530 | set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE. |
| 2531 | Ignore errors when changing volume. |
| 2532 | (vox_close): Don't reset the device. |
| 2533 | |
| 2534 | * process.c (read_process_output): Make sure the process marker's |
| 2535 | position is valid when the process buffer is changed in |
| 2536 | after-change functions. W3 does that. |
| 2537 | |
| 2538 | * xfns.c (x_free_gcs): New function. |
| 2539 | |
| 2540 | * xterm.h (x_free_gcs): Add prototype. |
| 2541 | |
| 2542 | * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of |
| 2543 | freeing GCs here. |
| 2544 | |
| 2545 | * xterm.c (x_destroy_window): Call x_free_gcs so that |
| 2546 | resources of non-toolkit X windows will be freed. |
| 2547 | |
| 2548 | 2000-12-07 Andrew Innes <andrewi@gnu.org> |
| 2549 | |
| 2550 | * w32fns.c (xlfd_charset_of_font): Fix last change. |
| 2551 | |
| 2552 | 2000-12-06 Dave Love <fx@gnu.org> |
| 2553 | |
| 2554 | * md5.h (__P): Don't define -- it comes from config.h. |
| 2555 | |
| 2556 | * strftime.c: Change some #if foo to #ifdef foo. |
| 2557 | |
| 2558 | 2000-12-06 Andrew Innes <andrewi@gnu.org> |
| 2559 | |
| 2560 | * w32term.h (CP_INVALID): Rename to CP_UNKNOWN. |
| 2561 | |
| 2562 | * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname |
| 2563 | argument. |
| 2564 | (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN. |
| 2565 | (w32_list_fonts): Don't choke if pattern doesn't specify a |
| 2566 | codepage. |
| 2567 | |
| 2568 | 2000-12-06 Gerd Moellmann <gerd@gnu.org> |
| 2569 | |
| 2570 | * alloc.c (gc_sweep): Prevent symbols read during loadup |
| 2571 | from being freed. |
| 2572 | |
| 2573 | * xdisp.c (underlying_face_id): New function. |
| 2574 | (handle_face_prop, face_before_or_after_it_pos): Use it |
| 2575 | to determine the face ``under'' a string. Let strings inherit |
| 2576 | the face of the buffer under them. |
| 2577 | |
| 2578 | * xfaces.c (face_at_string_position): Update function comment. |
| 2579 | |
| 2580 | * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current |
| 2581 | matrix if the window's left position has changed; we need to |
| 2582 | redraw it in this case. |
| 2583 | |
| 2584 | * dispextern.h (struct glyph_matrix): Add member window_left_x. |
| 2585 | |
| 2586 | * window.c (coordinates_in_window): Check mouse on mode-line or |
| 2587 | header-line first. |
| 2588 | |
| 2589 | * alloc.c (Fgarbage_collect): Dox fix. Return a list as |
| 2590 | advertized by the function documentation. |
| 2591 | |
| 2592 | * window.c (syms_of_window): Doc fix. |
| 2593 | |
| 2594 | * sound.c (vox_configure): Set volume for left and right channel. |
| 2595 | (sound_cleanup): Return nil. |
| 2596 | |
| 2597 | * xdisp.c (move_it_by_lines): Fix paren typo. |
| 2598 | |
| 2599 | * xterm.c (x_load_font): Don't use the font's max_bounds for |
| 2600 | computing the height of the font. If max_bounds' ascent or |
| 2601 | descent are greater than the font's ascent or descent, this means |
| 2602 | glyphs overlap, which should be handled now by redisplay. |
| 2603 | |
| 2604 | * window.c (Veven_window_heights): New variable. |
| 2605 | (syms_of_window): DEFVAR_LISP it. |
| 2606 | (Fdisplay_buffer): Check Veven_window_heights before evening the |
| 2607 | window heights. |
| 2608 | |
| 2609 | 2000-12-06 Miles Bader <miles@gnu.org> |
| 2610 | |
| 2611 | * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t', |
| 2612 | update `default-frame-alist' instead of setting no frame parameters. |
| 2613 | |
| 2614 | 2000-12-06 Kenichi Handa <handa@etl.go.jp> |
| 2615 | |
| 2616 | * composite.c (update_compositions): Fix typo (use the correct |
| 2617 | variable). |
| 2618 | |
| 2619 | 2000-12-05 Jason Rumney <jasonr@gnu.org> |
| 2620 | |
| 2621 | * md5.h: Remove underscores from function declarations. |
| 2622 | (__attribute__, __alignof__) [!__GNUC__]: Define. |
| 2623 | |
| 2624 | * md5.c: Delay include of md5.h until after namespace cleaning. |
| 2625 | |
| 2626 | * makefile.w32-in (fns.o): Depend on md5.h |
| 2627 | (md5.o): New target. |
| 2628 | (sunfns.o): Remove. |
| 2629 | |
| 2630 | * makefile.nt: Likewise. |
| 2631 | |
| 2632 | 2000-12-05 Jason Rumney <jasonr@altavista.net> |
| 2633 | |
| 2634 | * w32term.c (expose_area): Complete last change. |
| 2635 | |
| 2636 | 2000-12-05 Ken Raeburn <raeburn@gnu.org> |
| 2637 | |
| 2638 | * minibuf.c: Include intervals.h. |
| 2639 | |
| 2640 | 2000-12-05 Jason Rumney <jasonr@gnu.org> |
| 2641 | |
| 2642 | * w32term.c (x_produce_glyphs): If a font for a component of |
| 2643 | a composition is not found, use 1 pixel dot ascent and 0 dot |
| 2644 | descent value to avoid displaying terribly tall empty boxes. |
| 2645 | (expose_area): Pass x-coordinate relative to the exposed |
| 2646 | area to x_draw_glyphs instead of a window-relative coordinate. |
| 2647 | |
| 2648 | 2000-12-05 Gerd Moellmann <gerd@gnu.org> |
| 2649 | |
| 2650 | * xdisp.c (next_element_from_ellipsis): Save face before selective |
| 2651 | display in saved_face_id, and set face_before_selective_p. |
| 2652 | (reseat_1): Reset face_before_selective_p. |
| 2653 | (append_space, extend_face_to_end_of_line): If iterator's |
| 2654 | face_before_selective_p is set, use the face from saved_face_id. |
| 2655 | (extend_face_to_end_of_line): For tty frames, make sure to |
| 2656 | use the right face id when producing spaces at the end of |
| 2657 | the line. |
| 2658 | |
| 2659 | * dispextern.h (struct it): Add face_before_selective_p. |
| 2660 | |
| 2661 | * keyboard.c (record_char): Don't record identical help-echo |
| 2662 | events in recent_keys. |
| 2663 | |
| 2664 | * xterm.c [USE_X_TOOLKIT]: Close the display. |
| 2665 | (xim_close_dpy): Handle case that the display has been closed. |
| 2666 | |
| 2667 | * xterm.c (x_destroy_window): Reset the frame's X window after |
| 2668 | destroying it. |
| 2669 | |
| 2670 | * dispnew.c (adjust_glyph_matrix): Make sure to initialize local |
| 2671 | variable window_width. |
| 2672 | (line_draw_cost): Fix code skipping over spaces at the end of the |
| 2673 | line when must_write_spaces is not set. |
| 2674 | (scrolling_window): Fix code inserting runs in list of all runs. |
| 2675 | |
| 2676 | 2000-12-05 Kenichi Handa <handa@etl.go.jp> |
| 2677 | |
| 2678 | * coding.c (setup_coding_system): Be sure to initialize |
| 2679 | coding->category_idx. |
| 2680 | |
| 2681 | 2000-12-04 Gerd Moellmann <gerd@gnu.org> |
| 2682 | |
| 2683 | * xterm.c (PER_CHAR_METRIC): Removed because not used. |
| 2684 | |
| 2685 | * xterm.c (expose_area): Pass x-coordinate relative to the exposed |
| 2686 | area to x_draw_glyphs instead of a window-relative coordinate. |
| 2687 | |
| 2688 | * fileio.c (auto_save_error): Add parameter ERROR. Show the |
| 2689 | error in the message. |
| 2690 | |
| 2691 | * keyboard.c (Fread_key_sequence): Don't start the busy cursor |
| 2692 | timer after having read a key. It's not good for code reading |
| 2693 | several keys in a loop, like an input method. |
| 2694 | |
| 2695 | * fileio.c (Finsert_file_contents): When VISIT is t, don't |
| 2696 | record undo information for format-decode. |
| 2697 | |
| 2698 | * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if |
| 2699 | current buffer is read-only, not if it isn't. |
| 2700 | |
| 2701 | * keyboard.c (record_char): Record `help-echo' input events |
| 2702 | in recent_keys only if they display some help. Don't record |
| 2703 | `help-echo' events as macro char. |
| 2704 | |
| 2705 | 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
| 2706 | |
| 2707 | * editfns.c (save_excursion_restore): Don't move point |
| 2708 | in another window if it is showing the wrong buffer. |
| 2709 | Avoid the call to Fwindow_live_p, for speed. |
| 2710 | |
| 2711 | 2000-12-04 Kenichi Handa <handa@etl.go.jp> |
| 2712 | |
| 2713 | * xfaces.c (struct font_name): New member registry_priority. |
| 2714 | (split_font_name): Initialize the above member to zero. |
| 2715 | (concat_font_list): New function. |
| 2716 | (font_list): Include fonts of all alternative registries. |
| 2717 | (FONT_POINT_SIZE_QUANTUM): New macro. |
| 2718 | (better_font_p): Ignore point size difference less than |
| 2719 | FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort. |
| 2720 | |
| 2721 | * xterm.c (x_produce_glyphs): If a font for a component of |
| 2722 | a composition is not found, use 1 pixel dot ascent and 0 dot |
| 2723 | descent value to avoid displaying terribly tall empty boxes. |
| 2724 | |
| 2725 | * ccl.c (stack_idx_of_map_multiple): Don't use C initializier. |
| 2726 | |
| 2727 | 2000-12-03 Ken Raeburn <raeburn@gnu.org> |
| 2728 | |
| 2729 | * coding.h (code_convert_string1): Declare. |
| 2730 | |
| 2731 | * fns.c (Fmd5): Pass lisp objects, not integers, to call3. |
| 2732 | |
| 2733 | * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): |
| 2734 | Declare. |
| 2735 | |
| 2736 | 2000-12-02 Jason Rumney <jasonr@gnu.org> |
| 2737 | |
| 2738 | * w32term.c (w32_bdf_per_char_metric): Dereference pointer |
| 2739 | correctly for single byte character case. |
| 2740 | (w32_per_char_metric): Do not try to make any assumptions about |
| 2741 | the metrics of BDF fonts. |
| 2742 | (x_estimate_mode_line_height): If `mode-line' face |
| 2743 | hasn't a font, use that of the frame, as drawing glyphs |
| 2744 | does. |
| 2745 | (note_mouse_highlight): Change the cursor shape on the vertical |
| 2746 | border between windows [not enabled]. |
| 2747 | |
| 2748 | * w32term.h (struct w32_output): Add member horizontal_drag_cursor. |
| 2749 | |
| 2750 | * w32fns.c (Fx_create_frame): Reintroduce the call to |
| 2751 | face-set-after-frame-defaults. |
| 2752 | (Vx_window_horizontal_drag_shape): New variable. |
| 2753 | (syms_of_xfns): DEFVAR_LISP it. |
| 2754 | (x_set_mouse_color): Create frame's horizontal_drag_cursor [not |
| 2755 | enabled]. |
| 2756 | |
| 2757 | 2000-12-02 Simon Josefsson <simon@josefsson.org> |
| 2758 | |
| 2759 | * fns.c (Fmd5): Use a different logic to decide the coding system |
| 2760 | to use. |
| 2761 | |
| 2762 | * coding.h (Qwrite_region, Qcoding_system_error): Declare extern. |
| 2763 | |
| 2764 | 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 2765 | |
| 2766 | * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is |
| 2767 | NULL. |
| 2768 | |
| 2769 | 2000-12-01 Gerd Moellmann <gerd@gnu.org> |
| 2770 | |
| 2771 | * xterm.c (x_calc_absolute_position): Don't subtract menubar's |
| 2772 | height for YNegative. |
| 2773 | (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's |
| 2774 | height; also see comment there. |
| 2775 | |
| 2776 | * window.c (coordinates_in_window): Handle computations for |
| 2777 | positions on the vertical bar and fringes differently for |
| 2778 | window-system frames. Consider some pixels near the vertical bar |
| 2779 | as on the bar if the frame doesn't have vertical scroll bars. |
| 2780 | Associate positions between mode or header lines with the |
| 2781 | right window, the left one. |
| 2782 | |
| 2783 | 2000-12-01 Jason Rumney <jasonr@gnu.org> |
| 2784 | |
| 2785 | * w32term.c (w32_clear_window): Avoid clearing an invalid frame. |
| 2786 | |
| 2787 | * w32xfns.c (get_frame_dc): Avoid changing the palette on an |
| 2788 | invalid frame. |
| 2789 | |
| 2790 | 2000-12-01 Gerd Moellmann <gerd@gnu.org> |
| 2791 | |
| 2792 | * window.c (struct saved_window): Add members orig_top and |
| 2793 | orig_height. |
| 2794 | (SAVED_WINDOW_VECTOR_SIZE): Increment to 16. |
| 2795 | (save_window_save, Fset_window_configuration): Save/restore |
| 2796 | window's orig_top and orig_height. |
| 2797 | |
| 2798 | 2000-12-01 Jason Rumney <jasonr@gnu.org> |
| 2799 | |
| 2800 | * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect. |
| 2801 | |
| 2802 | * w32fns.c (x_set_cursor_color): Fix last change. |
| 2803 | |
| 2804 | 2000-11-30 Gerd Moellmann <gerd@gnu.org> |
| 2805 | |
| 2806 | * xdisp.c (echo_area_display): If cursor is in the echo area, make |
| 2807 | sure that the next redisplay displays the minibuffer, so that |
| 2808 | the cursor will be replaced with what the minibuffer wants. |
| 2809 | |
| 2810 | * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and |
| 2811 | #ifndef instead of using #if. |
| 2812 | (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if |
| 2813 | USE_TOOLKIT_SCROLL_BARS is defined. |
| 2814 | |
| 2815 | 2000-11-30 Jason Rumney <jasonr@gnu.org> |
| 2816 | |
| 2817 | * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of |
| 2818 | x_display_cursor. |
| 2819 | |
| 2820 | 2000-11-30 Gerd Moellmann <gerd@gnu.org> |
| 2821 | |
| 2822 | * fns.c (Fmd5): Doc fix. |
| 2823 | |
| 2824 | 2000-11-30 Simon Josefsson <simon@josefsson.org> |
| 2825 | |
| 2826 | * fns.c (Fmd5): New function. |
| 2827 | (syms_of_fns): Defsubr md5. |
| 2828 | |
| 2829 | * Makefile.in (obj): Add md5.o |
| 2830 | |
| 2831 | 2000-11-30 Gerd Moellmann <gerd@gnu.org> |
| 2832 | |
| 2833 | * md5.h, md5.c: New files, taken from glibc. |
| 2834 | |
| 2835 | * xmenu.c (popup_get_selection): Use xmalloc instead of malloc. |
| 2836 | |
| 2837 | * xterm.c (x_estimate_mode_line_height): If `mode-line' face |
| 2838 | hasn't a font, use that of the frame, as drawing glyphs |
| 2839 | does. |
| 2840 | |
| 2841 | 2000-11-29 Stefan Monnier <monnier@cs.yale.edu> |
| 2842 | |
| 2843 | * eval.c (Frun_hooks): Allow 0 arguments. |
| 2844 | |
| 2845 | 2000-11-29 Gerd Moellmann <gerd@gnu.org> |
| 2846 | |
| 2847 | * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse |
| 2848 | is over the menu bar widget, say it's not on the frame. |
| 2849 | |
| 2850 | * xfns.c (Fx_create_frame): Reintroduce the call to |
| 2851 | face-set-after-frame-defaults. |
| 2852 | |
| 2853 | * eval.c (Fsignal): Reset handling_signal. |
| 2854 | |
| 2855 | 2000-11-28 Jason Rumney <jasonr@gnu.org> |
| 2856 | |
| 2857 | * w32menu.c (add_menu_item): Reset menu item text when changing |
| 2858 | type to radio button. |
| 2859 | |
| 2860 | 2000-11-28 Gerd Moellmann <gerd@gnu.org> |
| 2861 | |
| 2862 | * xselect.c: Update copyright. |
| 2863 | |
| 2864 | * window.c (coordinates_in_window): If on a mode or header line, |
| 2865 | but sufficiently close to its start, return ``on vertical |
| 2866 | border''. This gives us a way to drag windows horizontally when |
| 2867 | using toolkit scroll bars. |
| 2868 | |
| 2869 | * xterm.c (note_mouse_highlight): Change the cursor shape |
| 2870 | on the vertical border between windows. |
| 2871 | |
| 2872 | * xterm.h (struct x_output): Add member horizontal_drag_cursor. |
| 2873 | |
| 2874 | * xfns.c (Vx_window_horizontal_drag_shape): New variable. |
| 2875 | (syms_of_xfns): DEFVAR_LISP it. |
| 2876 | (x_set_mouse_color): Create frame's horizontal_drag_cursor. |
| 2877 | |
| 2878 | * textprop.c (text_read_only): New function. |
| 2879 | (verify_interval_modification): Use it instead of signaling |
| 2880 | `text-read-only'. This makes it easier to catch this error |
| 2881 | with a breakpoint.: |
| 2882 | |
| 2883 | * xdisp.c (forward_to_next_line_start): Check for newlines, |
| 2884 | not end of line, which includes CR. |
| 2885 | |
| 2886 | 2000-11-28 Kenichi Handa <handa@etl.go.jp> |
| 2887 | |
| 2888 | * coding.c (Ffind_coding_systems_region_internal): Be sure to |
| 2889 | include no-conversion. |
| 2890 | |
| 2891 | 2000-11-27 Jason Rumney <jasonr@gnu.org> |
| 2892 | |
| 2893 | * w32fns.c (w32_load_system_font): Always mark font as double byte |
| 2894 | if codepage is unicode. |
| 2895 | |
| 2896 | 2000-11-27 Gerd Moellmann <gerd@gnu.org> |
| 2897 | |
| 2898 | * xdisp.c (forward_to_next_line_start): If already on a newline, |
| 2899 | just consume it to avoid unintended skipping over invisible text |
| 2900 | below. |
| 2901 | |
| 2902 | * keyboard.c (lucid_event_type_list_p): Handle `help-echo', |
| 2903 | `vertical-line', `mode-line' and `header-line' events. |
| 2904 | |
| 2905 | * xdisp.c (try_window_id): Avoid starting to display in the middle |
| 2906 | of a character, a TAB for instance. This is easier than to set |
| 2907 | up the iterator exactly, and it's not a frequent case, so the |
| 2908 | additional effort wouldn't really pay off. |
| 2909 | |
| 2910 | 2000-11-26 Andrew Choi <akochoi@i-cable.com> |
| 2911 | |
| 2912 | * emacs.c (main) [macintosh]: Call syms_of_frame before calling |
| 2913 | init_window_once. |
| 2914 | |
| 2915 | 2000-11-25 Jason Rumney <jasonr@gnu.org> |
| 2916 | |
| 2917 | * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args |
| 2918 | to window_from_coordinates should be pixel coordinates. |
| 2919 | |
| 2920 | * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new |
| 2921 | redisplay handles them properly. |
| 2922 | |
| 2923 | 2000-11-25 Miles Bader <miles@gnu.org> |
| 2924 | |
| 2925 | * indent.c (compute_motion): Keep pos_byte in sync with pos. |
| 2926 | |
| 2927 | 2000-11-24 Jason Rumney <jasonr@gnu.org> |
| 2928 | |
| 2929 | * w32.c (init_environment): Set LANG environment variable based on |
| 2930 | locale settings, if not set. |
| 2931 | |
| 2932 | * w32fns.c (x_set_tool_bar_lines): Clear internal border when |
| 2933 | making tool bar smaller. When clearing the frame, also |
| 2934 | clear current matrices. Clear frame when tool bar disappears. |
| 2935 | Don't use more lines for the tool-bar than is available. |
| 2936 | (x_change_window_heights): New function. |
| 2937 | |
| 2938 | 2000-11-24 Gerd Moellmann <gerd@gnu.org> |
| 2939 | |
| 2940 | * xdisp.c (init_from_display_pos): If POS says we're already after |
| 2941 | an overlay string ending at POS, make sure to pop the iterator |
| 2942 | because it will be in front of that overlay string. When POS is |
| 2943 | ZV, we've thereby also ``processed'' overlay strings at ZV. |
| 2944 | |
| 2945 | * xfaces.c (lface_from_face_name): Function comment fix. |
| 2946 | |
| 2947 | 2000-11-24 Miles Bader <miles@gnu.org> |
| 2948 | |
| 2949 | * xdisp.c (display_menu_bar, display_mode_line): Change the way we |
| 2950 | apply `mode-line-inverse-video' -- zero means force display using |
| 2951 | the default face, non-zero means display using the specialized face. |
| 2952 | (syms_of_xdisp): `mode-line-inverse-video' defaults to true again. |
| 2953 | |
| 2954 | 2000-11-23 Kenichi Handa <handa@etl.go.jp> |
| 2955 | |
| 2956 | * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of |
| 2957 | hard coded `4'. |
| 2958 | |
| 2959 | 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 2960 | |
| 2961 | * coding.c (decode_coding_emacs_mule): Fix the case of |
| 2962 | CODING_EOL_LF, which used uninitialized value of c. |
| 2963 | |
| 2964 | 2000-11-23 Stefan Monnier <monnier@cs.yale.edu> |
| 2965 | |
| 2966 | * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local. |
| 2967 | |
| 2968 | 2000-11-22 Gerd Moellmann <gerd@gnu.org> |
| 2969 | |
| 2970 | * buffer.c (Fmake_indirect_buffer): Don't treat nil as a |
| 2971 | buffer object. |
| 2972 | |
| 2973 | * frame.h (struct frame): Replace desired_tool_bar_items, |
| 2974 | current_tool_bar_items, n_desired_tool_bar_items, |
| 2975 | n_current_tool_bar_items with tool_bar_items and n_tool_bar_items. |
| 2976 | |
| 2977 | * frame.c (make_frame): Change initialization of tool bar |
| 2978 | items accordingly. |
| 2979 | |
| 2980 | * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight): |
| 2981 | Change references to members deleted from struct frame to use the |
| 2982 | new ones. |
| 2983 | |
| 2984 | * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change |
| 2985 | references to members deleted from struct frame to use the new |
| 2986 | ones. |
| 2987 | |
| 2988 | * dispnew.c (update_frame): Do nothing with frame's tool bar |
| 2989 | items. |
| 2990 | |
| 2991 | * alloc.c (mark_object) <frame>: Mark tool bar items differently. |
| 2992 | |
| 2993 | * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click) |
| 2994 | (note_tool_bar_highlight): Change references to members deleted |
| 2995 | from struct frame to use the new ones. |
| 2996 | |
| 2997 | 2000-11-23 Miles Bader <miles@gnu.org> |
| 2998 | |
| 2999 | * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with |
| 3000 | the face's inverse-video attribute, rather than overriding it. |
| 3001 | |
| 3002 | 2000-11-22 Gerd Moellmann <gerd@gnu.org> |
| 3003 | |
| 3004 | * xfns.c (x_set_tool_bar_lines): Clear internal border when |
| 3005 | making tool bar smaller. |
| 3006 | |
| 3007 | 2000-11-22 Dave Love <fx@gnu.org> |
| 3008 | |
| 3009 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define. |
| 3010 | |
| 3011 | 2000-11-22 Miles Bader <miles@gnu.org> |
| 3012 | |
| 3013 | * keyboard.c (Vminibuffer_message_timeout): New variable. |
| 3014 | (command_loop_1): Use it to determine message timeout. |
| 3015 | (syms_of_keyboard): Initialize it. |
| 3016 | |
| 3017 | * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil. |
| 3018 | |
| 3019 | 2000-11-22 Kenichi Handa <handa@etl.go.jp> |
| 3020 | |
| 3021 | * sysdep.c: Move the code for declaring h_errno after #include |
| 3022 | <netdb.h>. |
| 3023 | |
| 3024 | 2000-11-21 Gerd Moellmann <gerd@gnu.org> |
| 3025 | |
| 3026 | * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay |
| 3027 | the menu bar when the tooltip is unmapped. |
| 3028 | |
| 3029 | * buffer.c (Fkill_buffer): Notice if the buffer to kill is the |
| 3030 | sole visible buffer when we're currently in the mini-buffer, and |
| 3031 | give up if so. |
| 3032 | |
| 3033 | 2000-11-21 Jason Rumney <jasonr@gnu.org> |
| 3034 | |
| 3035 | * w32select.c (Fw32_set_clipboard_data): Save a copy of what is |
| 3036 | put on the clipboard. |
| 3037 | (Fw32_get_clipboard_data): Compare data on clipboard with saved |
| 3038 | copy of what Emacs last put there. If they are the same, do not |
| 3039 | use the clipboard copy to avoid losing data due to coding |
| 3040 | conversions. |
| 3041 | |
| 3042 | 2000-11-22 Miles Bader <miles@gnu.org> |
| 3043 | |
| 3044 | * minibuf.c (Vminibuffer_prompt_properties): New variable. |
| 3045 | (syms_of_minibuf): Initialize it. |
| 3046 | (read_minibuf): Add properties from Vminibuffer_prompt_properties |
| 3047 | to prompt, don't make read-only. |
| 3048 | |
| 3049 | 2000-11-21 Gerd Moellmann <gerd@gnu.org> |
| 3050 | |
| 3051 | * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add |
| 3052 | BEFORE/AFTER_POTENTIAL_GC. |
| 3053 | |
| 3054 | * s/hpux10.h (_FILE_OFFSET_BITS): Undef. |
| 3055 | |
| 3056 | * buffer.c (mmap_free_1): Avoid a compiler warning. |
| 3057 | |
| 3058 | * term.c, cm.c: Don't try to include termcap.h; see comment there. |
| 3059 | |
| 3060 | 2000-11-21 Kenichi Handa <handa@etl.go.jp> |
| 3061 | |
| 3062 | * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 |
| 3063 | ... #endif scope. |
| 3064 | |
| 3065 | 2000-11-20 Gerd Moellmann <gerd@gnu.org> |
| 3066 | |
| 3067 | * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the |
| 3068 | screen supports it. |
| 3069 | |
| 3070 | * s/gnu-linux.h: Don't use `#cpu'. |
| 3071 | |
| 3072 | * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's |
| 3073 | not defined in mman.h. |
| 3074 | |
| 3075 | * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New |
| 3076 | variables. |
| 3077 | (x_send_scroll_bar_event): Store the window in scroll_bar_windows |
| 3078 | and store an index in the XClientMessageEvent. Storing a |
| 3079 | Lisp_Object or pointer can fail on a 64 bit system, since X only |
| 3080 | transfers 32 bits. |
| 3081 | (x_scroll_bar_to_input_event): Get the window from |
| 3082 | scroll_bar_windows. |
| 3083 | |
| 3084 | 2000-11-20 Dave Love <fx@gnu.org> |
| 3085 | |
| 3086 | * Makefile.in (LIBX): Reorder for -lX11 after -lXpm. |
| 3087 | |
| 3088 | 2000-11-20 Gerd Moellmann <gerd@gnu.org> |
| 3089 | |
| 3090 | * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine. |
| 3091 | |
| 3092 | 2000-11-20 Kenichi Handa <handa@etl.go.jp> |
| 3093 | |
| 3094 | * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID |
| 3095 | by WIDTH. |
| 3096 | |
| 3097 | * alloc.c (make_string): Fix previous change. Be sure to make |
| 3098 | unibyte string correctly. |
| 3099 | |
| 3100 | 2000-11-19 Gerd Moellmann <gerd@gnu.org> |
| 3101 | |
| 3102 | * window.c (Fwindow_list): Change parameter list to be XEmacs |
| 3103 | compatible. |
| 3104 | (window_list_1): New function. |
| 3105 | (window_loop): Use it instead of Fwindow_list. |
| 3106 | |
| 3107 | * sysdep.c (emacs_ospeed): New variable. |
| 3108 | (toplevel): Don't declare ospeed extern. |
| 3109 | (init_baud_rate): Use emacs_ospeed instead of ospeed. |
| 3110 | |
| 3111 | * termcap.c (ospeed): Remove. |
| 3112 | (tputs) [!emacs]: Remove unused code. |
| 3113 | (tgetent): Avoid a compiler warning. |
| 3114 | |
| 3115 | * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create) |
| 3116 | (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call |
| 3117 | SCROLL_BAR_X_WIDGET with additional argument DPY. |
| 3118 | |
| 3119 | * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high |
| 3120 | removed. |
| 3121 | (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget. |
| 3122 | Take the X display as additional argument. |
| 3123 | (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since |
| 3124 | `Widget' is a pointer type that's not easily stored in Lisp_Object |
| 3125 | form in a portable way. |
| 3126 | |
| 3127 | * dispnew.c (update_text_area): Fix last change. |
| 3128 | |
| 3129 | 2000-11-18 Gerd Moellmann <gerd@gnu.org> |
| 3130 | |
| 3131 | * xdisp.c: Use BINDING_STACK_SIZE throughout. |
| 3132 | |
| 3133 | * xfns.c (x_set_tool_bar_lines): When clearing the frame, also |
| 3134 | clear current matrices. |
| 3135 | |
| 3136 | * buffer.c (mmap_enlarge): Don't print a message on stderr |
| 3137 | if mapping new memory at the end of the existing region fails. |
| 3138 | |
| 3139 | * dispnew.c (update_text_area): Don't skip over equal glyphs |
| 3140 | when the last current glyph overlaps the glyph to its right. |
| 3141 | |
| 3142 | 2000-11-18 Miles Bader <miles@gnu.org> |
| 3143 | |
| 3144 | * xdisp.c (message_log_check_duplicate): Let "..."-detection match |
| 3145 | lines that *end* with "..." too (that's the most common case!). |
| 3146 | |
| 3147 | 2000-11-18 Gerd Moellmann <gerd@gnu.org> |
| 3148 | |
| 3149 | * xdisp.c (resize_mini_window): Temporarily change to the |
| 3150 | mini-window's buffer if necessary. |
| 3151 | |
| 3152 | * xfns.c (Fx_show_tip): Use default y-offset of -10 so that |
| 3153 | the tooltip obscures less text under it. |
| 3154 | |
| 3155 | 2000-11-17 Gerd Moellmann <gerd@gnu.org> |
| 3156 | |
| 3157 | * puresize.h (BASE_PURESIZE): Increase to 700000. |
| 3158 | |
| 3159 | 2000-11-18 Jason Rumney <jasonr@gnu.org> |
| 3160 | |
| 3161 | * w32term.c (w32_draw_bitmap): Use face to set colors. |
| 3162 | |
| 3163 | 2000-11-17 Dave Love <fx@gnu.org> |
| 3164 | |
| 3165 | * lread.c (Fload): Fix #ifdef for pcc. |
| 3166 | |
| 3167 | 2000-11-17 Gerd Moellmann <gerd@gnu.org> |
| 3168 | |
| 3169 | * xdisp.c (pos_visible_p): Compute the default character height |
| 3170 | differently. |
| 3171 | |
| 3172 | 2000-11-16 Gerd Moellmann <gerd@gnu.org> |
| 3173 | |
| 3174 | * xdisp.c (pos_visible_p): Handle case that we reach ZV without |
| 3175 | knowing the line's height; use the default font's height in that |
| 3176 | case. |
| 3177 | |
| 3178 | * xfaces.c (weight_table): Add `demi' with the same meaning as |
| 3179 | `demibold'. |
| 3180 | |
| 3181 | 2000-11-16 Kenichi Handa <handa@etl.go.jp> |
| 3182 | |
| 3183 | * dispnew.c (null_row): New global static variable. |
| 3184 | (clear_glyph_row): Delete local static variable null_row. |
| 3185 | |
| 3186 | 2000-11-15 Jason Rumney <jasonr@gnu.org> |
| 3187 | |
| 3188 | * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant. |
| 3189 | (w32_alloc_lighter_color): Use new brightness calculations from |
| 3190 | xterm.c. Scale delta to be in the range expected by W32. |
| 3191 | (w32_draw_relief_rect): Use frame relief colors. |
| 3192 | |
| 3193 | 2000-11-15 Gerd Moellmann <gerd@gnu.org> |
| 3194 | |
| 3195 | * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame. |
| 3196 | (Qinhibit_default_face_x_resources): New variable. |
| 3197 | (syms_of_frame): Initialize it. |
| 3198 | (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources. |
| 3199 | |
| 3200 | * xdisp.c (pos_visible_p): Improve function comment. |
| 3201 | |
| 3202 | * lisp.h (BINDING_STACK_SIZE): New macro. |
| 3203 | |
| 3204 | * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry |
| 3205 | reading the directory if readdir returns null and errno is EAGAIN |
| 3206 | or EINTR. |
| 3207 | |
| 3208 | 2000-11-14 Stefan Monnier <monnier@cs.yale.edu> |
| 3209 | |
| 3210 | * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args |
| 3211 | so setting scroll-step to 1 doesn't defeat scroll-conservatively. |
| 3212 | Set amount_to_scroll to max of dx and scroll_step so that |
| 3213 | scroll-conservatively doesn't defeat scroll-step>1. |
| 3214 | (syms_of_xdisp): Add a hint in scroll-step's docstring to use |
| 3215 | scroll-conservatively for line-at-a-time scrolling. |
| 3216 | |
| 3217 | 2000-11-14 Gerd Moellmann <gerd@gnu.org> |
| 3218 | |
| 3219 | * window.c (Fpos_visible_in_window_p): Call pos_visible with |
| 3220 | extra argument. |
| 3221 | |
| 3222 | * xdisp.c (current_mode_line_height, current_header_line_height): |
| 3223 | New variables. |
| 3224 | (init_xdisp): Initialize them. |
| 3225 | (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute |
| 3226 | and use exact mode line heights if it is set. |
| 3227 | |
| 3228 | * lisp.h (pos_visible_p): Change prototype. |
| 3229 | |
| 3230 | * dispextern.h (CURRENT_MODE_LINE_HEIGHT) |
| 3231 | (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height |
| 3232 | and current_header_line_height first. |
| 3233 | (current_mode_line_height, current_header_line_height): Declare |
| 3234 | extern. |
| 3235 | |
| 3236 | 2000-11-14 Miles Bader <miles@lsi.nec.co.jp> |
| 3237 | |
| 3238 | * xterm.c (x_alloc_lighter_color): Use real brightness calculation. |
| 3239 | Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST. |
| 3240 | (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed. |
| 3241 | |
| 3242 | 2000-11-14 Miles Bader <miles@gnu.org> |
| 3243 | |
| 3244 | * xterm.c (x_alloc_lighter_color): Include an additive component |
| 3245 | too for dark colors, because FACTOR isn't enough. |
| 3246 | (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): |
| 3247 | New macros. |
| 3248 | |
| 3249 | 2000-11-13 Gerd Moellmann <gerd@gnu.org> |
| 3250 | |
| 3251 | * keyboard.c (show_help_echo): Call message3_nolog with number of |
| 3252 | bytes in the help string as 2nd parameter, instead of the number |
| 3253 | of characters. |
| 3254 | |
| 3255 | 2000-11-13 Miles Bader <miles@gnu.org> |
| 3256 | |
| 3257 | * lread.c (openp): Return -2 instead of 0 for the `remote file' case. |
| 3258 | (Fload): Use new openp return protocol. |
| 3259 | Don't try to use Vload_source_file_function to load .elc files. |
| 3260 | * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new |
| 3261 | openp return protocol. |
| 3262 | * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise. |
| 3263 | |
| 3264 | 2000-11-11 Kenichi Handa <handa@etl.go.jp> |
| 3265 | |
| 3266 | * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY. |
| 3267 | |
| 3268 | * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL): |
| 3269 | Defined these macros. |
| 3270 | (NLIST_STRUCT): Avoid re-defining it. |
| 3271 | |
| 3272 | * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and |
| 3273 | -I/usr/contrib/X11R6/include. |
| 3274 | (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6. |
| 3275 | |
| 3276 | 2000-11-10 Jason Rumney <jasonr@gnu.org> |
| 3277 | |
| 3278 | * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages. |
| 3279 | |
| 3280 | * w32term.c (w32_encode_char): Handle CP_UNICODE specially. |
| 3281 | (w32_use_unicode_for_codepage): Use new pseudo-codepages. |
| 3282 | |
| 3283 | * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers. |
| 3284 | (Qw32_charset_vietnamese): New symbol. |
| 3285 | (xlfd_charset_of_font): New function. |
| 3286 | (w32_load_system_font): Use it. |
| 3287 | (x_to_w32_charset): Use Fassoc to find charset info. Special case |
| 3288 | when Vw32_charset_info_alist is nil to ensure default face always |
| 3289 | has font. Use Fcar and Fcdr for safety. |
| 3290 | (w32_to_x_charset): Use Vw32_charset_info_alist for mappings. |
| 3291 | (w32_codepage_for_font): Use xlfd_charset_of_font. Use new |
| 3292 | pseudo-codepages for special cases. |
| 3293 | (w32_to_x_font): New parameter to allow charset portion to be |
| 3294 | specified where there is many to one mapping. Callers changed. |
| 3295 | (w32_list_fonts): Avoid listing fonts that won't display. |
| 3296 | |
| 3297 | 2000-11-10 Gerd Moellmann <gerd@gnu.org> |
| 3298 | |
| 3299 | * xfaces.c (Vface_alternative_font_registry_alist): New variable. |
| 3300 | (font_list_1): Renamed from font_list. |
| 3301 | (font_list): New function, trying alternative registries from |
| 3302 | Vface_alternative_font_registry_alist. |
| 3303 | (Finternal_set_alternative_font_registry_alist): New function. |
| 3304 | (syms_of_xfaces): Initialize and Staticpro |
| 3305 | Vface_alternative_font_registry_alist. Defsubr |
| 3306 | Finternal_set_alternative_font_registry_alist. |
| 3307 | |
| 3308 | 2000-11-09 Ken Raeburn <raeburn@gnu.org> |
| 3309 | |
| 3310 | * lisp.h (Flooking_at): Declare. |
| 3311 | |
| 3312 | 2000-11-09 Gerd Moellmann <gerd@gnu.org> |
| 3313 | |
| 3314 | * dired.c (directory_files_internal): Fix a braino. |
| 3315 | |
| 3316 | * dired.c (directory_files_internal): Add missing GCPRO's. |
| 3317 | Some cleanup. |
| 3318 | |
| 3319 | 2000-11-08 Gerd Moellmann <gerd@gnu.org> |
| 3320 | |
| 3321 | * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height. |
| 3322 | (resize_mini_window): Return quickly if Vresize_mini_window is |
| 3323 | nil. Don't return if Vmax_mini_window_height is nil. |
| 3324 | |
| 3325 | * xdisp.c (Vresize_mini_window, Qgrow_only): New variables. |
| 3326 | (syms_of_xdisp): Initialize them. |
| 3327 | (resize_mini_window): Act according to the setting of |
| 3328 | Vresize_mini_window. |
| 3329 | (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil. |
| 3330 | |
| 3331 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the |
| 3332 | scroll bar widget after configuring it, so that it will appear at |
| 3333 | the right position from the start. |
| 3334 | (XTredeem_scroll_bar): Cleaned up. |
| 3335 | |
| 3336 | 2000-11-08 Kenichi Handa <handa@etl.go.jp> |
| 3337 | |
| 3338 | * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the |
| 3339 | font is taller than the frame line, we don't have to bias the |
| 3340 | division by two. |
| 3341 | |
| 3342 | * w32term.c (VCENTER_BASELINE_OFFSET): Likewise. |
| 3343 | |
| 3344 | 2000-11-07 Dave Love <fx@gnu.org> |
| 3345 | |
| 3346 | * config.in (HAVE_MKSTEMP): Add. |
| 3347 | |
| 3348 | * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it. |
| 3349 | |
| 3350 | 2000-11-07 Gerd Moellmann <gerd@gnu.org> |
| 3351 | |
| 3352 | * window.c (Fset_window_configuration): Don't try to preserve |
| 3353 | point in the current buffer, if that buffer is displayed in more |
| 3354 | than one window. |
| 3355 | |
| 3356 | * xfaces.c (lookup_named_face): If default face isn't realized, |
| 3357 | try to realize it. Return -1 if not successful. |
| 3358 | (Fx_list_fonts): Handle case that face cannot be determined. |
| 3359 | (Fface_font): Likewise. |
| 3360 | |
| 3361 | 2000-11-06 Gerd Moellmann <gerd@gnu.org> |
| 3362 | |
| 3363 | * window.c (displayed_window_lines): Detect partially |
| 3364 | visible lines at the bottom correctly. |
| 3365 | |
| 3366 | 2000-11-06 Stefan Monnier <monnier@cs.yale.edu> |
| 3367 | |
| 3368 | * fileio.c (Fwrite_region): Use `visiting' rather than `visit' |
| 3369 | when ensuring we don't do visit in indirect buffer. |
| 3370 | |
| 3371 | 2000-11-06 Kenichi Handa <handa@etl.go.jp> |
| 3372 | |
| 3373 | * composite.h (compose_chars_in_text): Add prototype. |
| 3374 | |
| 3375 | * composite.c (Vcomposition_function_table): New variable. |
| 3376 | (Qcomposition_function_table): New variable. |
| 3377 | (run_composition_function): Call |
| 3378 | Vcompose_chars_after_function with three arguments. |
| 3379 | (compose_chars_in_text): New function. |
| 3380 | (syms_of_composite): Modified the doc-string of |
| 3381 | Vcompose_chars_after_function. Declare composition-function-table |
| 3382 | as a lisp variable, and initialize it. |
| 3383 | |
| 3384 | * xfns.c (x_encode_text): Suppress producing escape sequences for |
| 3385 | composition. |
| 3386 | |
| 3387 | * xselect.c: Include composite.h. |
| 3388 | (selection_data_to_lisp_data): Call compose_chars_in_text on STR. |
| 3389 | |
| 3390 | 2000-11-05 Andrew Innes <andrewi@gnu.org> |
| 3391 | |
| 3392 | * w32term.c (x_produce_glyphs): Fix typo in enum name. |
| 3393 | |
| 3394 | * sysdep.c (read_input_waiting): Remove extraneous argument to |
| 3395 | read_socket_hook. |
| 3396 | |
| 3397 | * w32fns.c (Fx_server_version): Include w32_build_number in the |
| 3398 | return list. |
| 3399 | |
| 3400 | * w32heap.c (w32_build_number): New variable. |
| 3401 | (cache_system_info): Set it. |
| 3402 | |
| 3403 | * w32heap.h (w32_build_number): Add extern. |
| 3404 | |
| 3405 | * emacs.c (syms_of_emacs): Update docstring for |
| 3406 | system-configuration, to reflect the actual usage on MS-Windows. |
| 3407 | |
| 3408 | 2000-10-31 Gerd Moellmann <gerd@gnu.org> |
| 3409 | |
| 3410 | * keyboard.c (read_char) <wrong_kboard>: Make sure that we |
| 3411 | process idle timers while waiting for another event. |
| 3412 | |
| 3413 | * dispnew.c (update_frame_line): Handle case where spaces in |
| 3414 | the default face are colored. |
| 3415 | |
| 3416 | * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if |
| 3417 | window height hasn't changed. |
| 3418 | |
| 3419 | 2000-10-31 Jason Rumney <jasonr@gnu.org> |
| 3420 | |
| 3421 | * w32term.c (x_produce_glyphs): Handle composite characters. |
| 3422 | (x_draw_glyph_string_foreground) |
| 3423 | (x_draw_composite_glyph_string_foreground): Restore old font. |
| 3424 | |
| 3425 | 2000-10-31 Miles Bader <miles@lsi.nec.co.jp> |
| 3426 | |
| 3427 | * minibuf.c (read_minibuf): Reset the undo history just before |
| 3428 | starting the recursive-edit. |
| 3429 | |
| 3430 | 2000-10-30 Gerd Moellmann <gerd@gnu.org> |
| 3431 | |
| 3432 | * xfaces.c (menu_face_change_count): New variable. |
| 3433 | (Finternal_set_lisp_face_attribute): Increment it for changes |
| 3434 | of the `menu' face. |
| 3435 | (realize_basic_faces): Reflect changes in the `menu' faces |
| 3436 | in menu bars. |
| 3437 | |
| 3438 | * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the |
| 3439 | dy obtained from the iterator's y-position after moving from |
| 3440 | scroll_margin_pos to PT; see comment there. |
| 3441 | |
| 3442 | * xdisp.c (safe_eval_handler): Call add_to_log. |
| 3443 | |
| 3444 | * xfaces.c (resolve_face_name): Handle case that FACE_NAME |
| 3445 | is not a symbol or string. |
| 3446 | |
| 3447 | * xdisp.c (echo_area_display): Don't perform a display update from |
| 3448 | inside redisplay. The update will happen anyway at the end of |
| 3449 | redisplay, and it can confuse redisplay (GC messages while |
| 3450 | redisplaying, for instance.) |
| 3451 | |
| 3452 | 2000-10-30 Stefan Monnier <monnier@cs.yale.edu> |
| 3453 | |
| 3454 | * xrdb.c (x_load_resources): Use the class name in the defaults. |
| 3455 | |
| 3456 | * regex.c (re_iswctype, re_wctype_to_bit): Fix braino. |
| 3457 | (regex_compile): Catch bogus \(\1\). |
| 3458 | |
| 3459 | 2000-10-30 Gerd Moellmann <gerd@gnu.org> |
| 3460 | |
| 3461 | * xterm.c (x_alloc_nearest_color): Fix last change to compare |
| 3462 | RGB values. |
| 3463 | |
| 3464 | * xterm.c (x_alloc_nearest_color): If allocation succeeds, and |
| 3465 | we have a color cache, check that the cached color equals the |
| 3466 | allocated color. If not, clear the color cache. |
| 3467 | |
| 3468 | * window.c (displayed_window_lines): Change buffers if necessary. |
| 3469 | Fix computation of displayed lines. |
| 3470 | |
| 3471 | * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of |
| 3472 | update_menu_bindings to DEFVAR_BOOL. |
| 3473 | |
| 3474 | 2000-10-30 Kenichi Handa <handa@etl.go.jp> |
| 3475 | |
| 3476 | * search.c (Fset_match_data): Be sure to make search_regs always sane. |
| 3477 | |
| 3478 | * puresize.h (BASE_PURESIZE): Increase to 680000. |
| 3479 | |
| 3480 | * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION. |
| 3481 | |
| 3482 | 2000-10-29 Jason Rumney <jasonr@gnu.org> |
| 3483 | |
| 3484 | * w32term.h (FONT_DESCENT): Negate descent of BDF fonts. |
| 3485 | |
| 3486 | * w32term.c (w32_bdf_per_char_metric): Negate descent. |
| 3487 | (w32_cache_char_metrics): Handle possibility that 'x' does not |
| 3488 | exist in a BDF font. |
| 3489 | (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars. |
| 3490 | |
| 3491 | * w32bdf.h (bdffont): Add nchars. |
| 3492 | |
| 3493 | * w32bdf.c (set_bdf_font_info): Set it. |
| 3494 | (w32_BDF_TextOut): Swap byte order of double byte characters. |
| 3495 | (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars. |
| 3496 | |
| 3497 | 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il> |
| 3498 | |
| 3499 | * frame.c (Fframe_parameters): Fix the change from 2000-10-16: |
| 3500 | don't override the colors in frame's param_alist, unless they are |
| 3501 | unspecified. |
| 3502 | |
| 3503 | * term.c (reassert_line_highlight): If inverse_video is non-zero, |
| 3504 | reverse the effect of the highlight flag. |
| 3505 | |
| 3506 | 2000-10-27 Ken Raeburn <raeburn@gnu.org> |
| 3507 | |
| 3508 | * window.h (Fwindow_live_p): Declare. |
| 3509 | |
| 3510 | * undo.c (record_delete): Check that last_undo_buffer is really a |
| 3511 | buffer before applying XBUFFER to it. |
| 3512 | |
| 3513 | * keymap.c (where_is_internal): Pass lisp object, not integer, to |
| 3514 | Faref. |
| 3515 | |
| 3516 | 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> |
| 3517 | |
| 3518 | * lisp.h (KEYMAPP): New macro. |
| 3519 | (get_keymap): Remove. |
| 3520 | (get_keymap_1): Rename get_keymap. |
| 3521 | |
| 3522 | * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype. |
| 3523 | |
| 3524 | * xterm.c (note_mode_line_highlight): Use KEYMAPP. |
| 3525 | |
| 3526 | * xmenu.c (single_submenu): Use KEYMAPP. |
| 3527 | (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. |
| 3528 | Use KEYMAPP rather than Fkeymapp. |
| 3529 | |
| 3530 | * w32term.c (note_mode_line_highlight): Use KEYMAPP. |
| 3531 | |
| 3532 | * w32menu.c (True, False): Remove (use TRUE and FALSE instead). |
| 3533 | (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. |
| 3534 | Use KEYMAPP rather than Fkeymapp. |
| 3535 | (single_submenu): Use KEYMAPP. |
| 3536 | (w32_menu_show, w32_dialog_show): Use TRUE. |
| 3537 | |
| 3538 | * minibuf.c (Fread_from_minibuffer): Update call to get_keymap. |
| 3539 | |
| 3540 | * keymap.c (KEYMAPP): Remove (moved to lisp.h). |
| 3541 | (Fkeymapp): Use KEYMAPP. |
| 3542 | (get_keymap): Rename from get_keymap_1. Remove old def. |
| 3543 | Return t when autoload=0 and error=0 and the keymap needs autoloading. |
| 3544 | (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp. |
| 3545 | (Fminor_mode_key_binding): Don't raise an error if the binding |
| 3546 | is not a keymap. |
| 3547 | (Fuse_global_map, Fuse_local_map): Allow autoloading. |
| 3548 | (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp. |
| 3549 | |
| 3550 | * keyboard.c (read_char): get_keymap_1 -> get_keymap. |
| 3551 | Allow Vspecial_event_map to be autoloaded. |
| 3552 | (menu_bar_items): Fetch the keymap rather than using keymapp. |
| 3553 | (menu_bar_one_keymap): No need to follow func-indirect any more. |
| 3554 | (parse_menu_item): get_keymap_1 -> get_keymap. |
| 3555 | (tool_bar_items): Fetch the keymap rather than using keymapp. |
| 3556 | (read_key_sequence): Use KEYMAPP. |
| 3557 | |
| 3558 | * intervals.c (get_local_map): Use get_keymap rather than following |
| 3559 | function-indirections explicitly. |
| 3560 | |
| 3561 | * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap. |
| 3562 | |
| 3563 | 2000-10-27 Jason Rumney <jasonr@gnu.org> |
| 3564 | |
| 3565 | * w32fns.c (Fx_create_frame): Make default fontsize on w32 10 |
| 3566 | point, as Windows has oversized fonts. |
| 3567 | |
| 3568 | * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise. |
| 3569 | |
| 3570 | 2000-10-27 Gerd Moellmann <gerd@gnu.org> |
| 3571 | |
| 3572 | * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1. |
| 3573 | (freehook, reallochook): Handle null pointer arguments. |
| 3574 | (__malloc_initialize) [GC_MCHECK]: Call mcheck. |
| 3575 | |
| 3576 | 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> |
| 3577 | |
| 3578 | * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal) |
| 3579 | (re_match_2_internal, re_match_2_internal, re_match_2_internal): |
| 3580 | Giving in to popular pressure to shut up the compiler with casts. |
| 3581 | |
| 3582 | 2000-10-27 Gerd Moellmann <gerd@gnu.org> |
| 3583 | |
| 3584 | * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a |
| 3585 | signed value, and use a default value computed from the font's |
| 3586 | maximum descent. |
| 3587 | |
| 3588 | 2000-10-27 Miles Bader <miles@lsi.nec.co.jp> |
| 3589 | |
| 3590 | * xterm.c (x_draw_glyph_string): Add a workaround so that fonts |
| 3591 | that specify a negative underline position can still use underlines. |
| 3592 | |
| 3593 | * window.c (Fpos_visible_in_window_p): Make POS default to |
| 3594 | WINDOW's point, not the current buffer's point. |
| 3595 | |
| 3596 | 2000-10-26 Dave Love <fx@gnu.org> |
| 3597 | |
| 3598 | * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out |
| 3599 | when it's necessary. |
| 3600 | |
| 3601 | 2000-10-26 Gerd Moellmann <gerd@gnu.org> |
| 3602 | |
| 3603 | * window.c (size_window): Compute size difference from sum of old |
| 3604 | child window sizes instead of from parent's size. |
| 3605 | |
| 3606 | * xdisp.c (pos_visible_p): Change current buffer if necessary. |
| 3607 | Handle obscured lines at the top of the window. |
| 3608 | |
| 3609 | * frame.c (Fdelete_frame): Doc fix. Move running the hook |
| 3610 | down after the last error condition check. |
| 3611 | |
| 3612 | * frame.c (Fdelete_frame): Run delete-frame-hook. |
| 3613 | |
| 3614 | 2000-10-26 Kenichi Handa <handa@etl.go.jp> |
| 3615 | |
| 3616 | * coding.c (decode_coding): Fix previous change (check also |
| 3617 | CODING_MODE_LAST_BLOCK). |
| 3618 | |
| 3619 | 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> |
| 3620 | |
| 3621 | * regex.c: More `unsigned char' -> `re_char' changes. |
| 3622 | Also change several `int' into `re_wchar_t'. |
| 3623 | (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove. |
| 3624 | (PUSH_FAILURE_POINTER): Don't cast any more. |
| 3625 | (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'. |
| 3626 | We want GCC to complain, since this piece of code makes |
| 3627 | re_match non-reentrant, which *should* be fixed. |
| 3628 | (GET_BUFFER_SPACE): Use size_t rather than unsigned long. |
| 3629 | (EXTEND_BUFFER): Use RETALLOC. |
| 3630 | (SET_LIST_BIT): Don't cast. |
| 3631 | (re_wchar_t): New type. |
| 3632 | (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC |
| 3633 | that those two functions will always properly return. |
| 3634 | (IMMEDIATE_QUIT_CHECK): Cast to void. |
| 3635 | (analyse_first): Use recursion rather than an explicit stack. |
| 3636 | (re_compile_fastmap): Can't fail anymore. |
| 3637 | (re_search_2): Don't check re_compile_fastmap for failure. |
| 3638 | (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT. |
| 3639 | Now also sets the new value (passed in a new argument). |
| 3640 | (re_match_2_internal): Use it. |
| 3641 | Also, use a new var `reg' of type size_t when looping through regs |
| 3642 | rather than reuse the inappropriate `mcnt'. |
| 3643 | |
| 3644 | * keymap.c (where_is_cache, where_is_cache_keymaps): New vars. |
| 3645 | (Fset_keymap_parent, store_in_keymap): Flush the where-is cache. |
| 3646 | (where_is_internal): Renamed from Fwhere_is_internal. |
| 3647 | Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'. |
| 3648 | (Fwhere_is_internal): New function wrapping where_is_internal. |
| 3649 | (where_is_internal_1): Handle the case where we're filling the cache. |
| 3650 | (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps). |
| 3651 | |
| 3652 | 2000-10-25 Miles Bader <miles@gnu.org> |
| 3653 | |
| 3654 | * xdisp.c (pos_visible_p): Don't add `it.current_y' twice. |
| 3655 | |
| 3656 | 2000-10-25 Gerd Moellmann <gerd@gnu.org> |
| 3657 | |
| 3658 | * window.c (pos_fully_visible_p): Removed. |
| 3659 | (Fpos_visible_in_window_p): Use pos_visible_p to determine |
| 3660 | if position is visible and/or fully visible. |
| 3661 | |
| 3662 | * lisp.h (pos_visible_p): Add prototype. |
| 3663 | |
| 3664 | * xdisp.c (pos_visible_p): New function. |
| 3665 | |
| 3666 | 2000-10-25 Kenichi Handa <handa@etl.go.jp> |
| 3667 | |
| 3668 | * process.c (send_process): If OBJECT is t, it means that the data |
| 3669 | is from C string, but we should encode it. Before calling |
| 3670 | setup_raw_text_coding_system, be sure to flush out data by the |
| 3671 | previous coding system. |
| 3672 | |
| 3673 | 2000-10-25 Miles Bader <miles@lsi.nec.co.jp> |
| 3674 | |
| 3675 | * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an |
| 3676 | assignment of startpos to prev when startpos == pos. |
| 3677 | |
| 3678 | * editfns.c (find_field): Set the field stickiness correctly from |
| 3679 | overlay fields. Use renamed `text_property_stickiness'. |
| 3680 | (text_property_stickiness): Renamed from `char_property_stickiness'. |
| 3681 | Only check text properties, not overlays. |
| 3682 | * textprop.c (get_char_property_and_overlay): New function. |
| 3683 | (Fget_char_property): Use it. |
| 3684 | * intervals.h (get_char_property_and_overlay): Add declaration. |
| 3685 | |
| 3686 | 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> |
| 3687 | |
| 3688 | * keymap.c: Use AREF, ASET and ASIZE macros. |
| 3689 | (Fmake_sparse_keymap): Docstring fix. |
| 3690 | (synkey): Remove. |
| 3691 | (shadow_lookup): Move up. |
| 3692 | Handle the case where lookup-key returns an integer. |
| 3693 | (where_is_internal_1): Drop arg `keymap'. Don't check shadowing. |
| 3694 | (where_is_internal_2): Adapt to fewer args for where_is_internal_1. |
| 3695 | (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps. |
| 3696 | Simplify/rewrite the keymap-finding code. |
| 3697 | Add check for command shadowing, using shadow_lookup. |
| 3698 | |
| 3699 | 2000-10-24 Stefan Monnier <monnier@cs.yale.edu> |
| 3700 | |
| 3701 | * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry |
| 3702 | rather than KEYMAPP, to allow EQ to work correctly if parent_entry is |
| 3703 | a symbol. |
| 3704 | |
| 3705 | 2000-10-24 Andrew Innes <andrewi@gnu.org> |
| 3706 | |
| 3707 | * dired.c (directory_files_internal_unwind): New function. |
| 3708 | (directory_files_internal): Use it to ensure closedir is called |
| 3709 | even if expand-file-name or file-attributes throw, eg. because of |
| 3710 | a user interrupt. Also enable immediate_quit while calling |
| 3711 | re_search, so that matching can be interrupted as well. |
| 3712 | |
| 3713 | 2000-10-24 Andrew Innes <andrewi@gnu.org> |
| 3714 | |
| 3715 | * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on |
| 3716 | NT-Emacs only. |
| 3717 | (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT, |
| 3718 | so that re_search functions only quit when callers expect them to. |
| 3719 | |
| 3720 | 2000-10-24 Kenichi Handa <handa@etl.go.jp> |
| 3721 | |
| 3722 | * regex.c (regex_compile): Change the way of handling a range from |
| 3723 | a char less than 256 to a char not less than 256. |
| 3724 | |
| 3725 | 2000-10-24 Gerd Moellmann <gerd@gnu.org> |
| 3726 | |
| 3727 | * window.c (size_window): Prevent setting window's width or |
| 3728 | height to a negative value (esp. with XSETFASTINT). |
| 3729 | |
| 3730 | * gmalloc.c (state_protected_p, last_state_size, last_heapinfo) |
| 3731 | [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables. |
| 3732 | (protect_malloc_state) [GC_MALLOC_CHECK && |
| 3733 | GC_PROTECT_MALLOC_STATE]: New function. |
| 3734 | (PROTECT_MALLOC_STATE): New macro. |
| 3735 | (__malloc_initialize, morecore, _malloc_internal) |
| 3736 | (_free_internal) _realloc_internal): Use it to make _heapinfo |
| 3737 | read-only outside of gmalloc. |
| 3738 | |
| 3739 | * keymap.c: Update copyright. |
| 3740 | |
| 3741 | * .gdbinit (xbacktrace): Handle case that $bt->function isn't |
| 3742 | a symbol. |
| 3743 | |
| 3744 | 2000-10-24 Colin Walters <walters@cis.ohio-state.edu> |
| 3745 | |
| 3746 | * filelock.c (unlock_all_files): Use unlock_file to expand each |
| 3747 | buffer's file_truename before trying remove its lock file. |
| 3748 | |
| 3749 | 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il> |
| 3750 | |
| 3751 | * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR |
| 3752 | or CRLF, decode EOLs. |
| 3753 | |
| 3754 | 2000-10-24 Kenichi Handa <handa@etl.go.jp> |
| 3755 | |
| 3756 | * window.c (Fdisplay_buffer): Fix doc. |
| 3757 | |
| 3758 | 2000-10-23 Jason Rumney <jasonr@gnu.org> |
| 3759 | |
| 3760 | * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for |
| 3761 | ASCII font of default fontset on Windows. |
| 3762 | |
| 3763 | * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see |
| 3764 | xterm.c comment below). |
| 3765 | |
| 3766 | * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy. |
| 3767 | |
| 3768 | 2000-10-23 Gerd Moellmann <gerd@gnu.org> |
| 3769 | |
| 3770 | * xterm.c (x_connection_closed): Reset handling_signal. |
| 3771 | |
| 3772 | * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing |
| 3773 | null. |
| 3774 | |
| 3775 | 2000-10-23 Miles Bader <miles@gnu.org> |
| 3776 | |
| 3777 | * window.c (window_scroll_pixel_based, window_scroll_line_based): |
| 3778 | Pass nil for FULLY argument to Fpos_visible_in_window_p to |
| 3779 | maintain old behavior. |
| 3780 | * minibuf.c (Fminibuffer_complete): Likewise. |
| 3781 | |
| 3782 | 2000-10-23 Miles Bader <miles@lsi.nec.co.jp> |
| 3783 | |
| 3784 | * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so |
| 3785 | that when a font can't be exactly centered, it errs up rather than |
| 3786 | down. |
| 3787 | |
| 3788 | 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu> |
| 3789 | |
| 3790 | * fns.c (Fbase64_decode_string): The decoded result should be |
| 3791 | unibyte. |
| 3792 | |
| 3793 | 2000-10-23 Andrew Choi <akochoi@i-cable.com> |
| 3794 | |
| 3795 | * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. |
| 3796 | |
| 3797 | * dispnew.c [macintosh]: Include macterm.h. |
| 3798 | (init_display) [macintosh]: Initialization for window system. |
| 3799 | |
| 3800 | * emacs.c (main) [macintosh]: Call syms_of_textprop, |
| 3801 | syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, |
| 3802 | syms_of_search, x_term_init, and init_keyboard before calling |
| 3803 | init_window_once. Also, call syms_of_xmenu. |
| 3804 | |
| 3805 | * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of |
| 3806 | default fontset to Monaco. |
| 3807 | |
| 3808 | * frame.c [macintosh]: Include macterm.h. Remove declarations of |
| 3809 | NewMacWindow and DisposeMacWindow. |
| 3810 | (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame |
| 3811 | instead of calling NewMacWindow and setting fields of |
| 3812 | f->output_data.mac directly. Call init_frame_faces. |
| 3813 | (Fdelete_frame) [macintosh]: Remove unused code. |
| 3814 | (Fmodify_frame_parameters) [macintosh]: Call |
| 3815 | x_set_frame_parameters instead of mac_set_frame_parameters. |
| 3816 | |
| 3817 | * frame.h [macintosh]: Define menu_bar_lines field in struct |
| 3818 | frame. Define FRAME_EXTERNAL_MENU_BAR macro. |
| 3819 | |
| 3820 | * keyboard.c [macintosh]: Include macterm.h. |
| 3821 | (kbd_buffer_get_event) [macintosh]: Generate delete_window_event |
| 3822 | and menu_bar_activate_event type events as for X and NT. |
| 3823 | (make_lispy_event) [macintosh]: Construct lisp events of type |
| 3824 | MENU_BAR_EVENT as for X and NT. |
| 3825 | |
| 3826 | * sysdep.c [macintosh]: Remove declaration for sys_signal. |
| 3827 | Include stdlib.h. Remove definition of Vx_bitmap_file_path. |
| 3828 | (sys_subshell) [macintosh]: Remove definition entirely. |
| 3829 | (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and |
| 3830 | Vwindow_system_version here. Remove initialization of |
| 3831 | Vx_bitmap_file_path. |
| 3832 | (read_input_waiting): Correct the number of parameters passed to |
| 3833 | read_socket_hook. |
| 3834 | Move all Macintosh functions to mac/mac.c. |
| 3835 | |
| 3836 | * term.c [macintosh]: Include macterm.h. |
| 3837 | |
| 3838 | * window.c [macintosh]: Include macterm.h. |
| 3839 | |
| 3840 | * xdisp.c [macintosh]: Include macterm.h. Declare |
| 3841 | set_frame_menubar and pending_menu_activation. |
| 3842 | (echo_area_display) [macintosh]: Do not return if terminal frame |
| 3843 | is the selected frame. |
| 3844 | (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). |
| 3845 | Allow only the selected frame to set menu bar. |
| 3846 | (redisplay_window) [macintosh]: Obtain menu bar to redisplay by |
| 3847 | calling FRAME_EXTERNAL_MENU_BAR (f). |
| 3848 | (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). |
| 3849 | |
| 3850 | * xfaces.c [macintosh]: Include macterm.h. Define x_display_info |
| 3851 | and check_x. Declare XCreateGC. Define x_create_gc and |
| 3852 | x_free_gc. Initialize font_sort_order. |
| 3853 | (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, |
| 3854 | but call x_list_fonts instead of w32_list_fonts. |
| 3855 | (Finternal_face_x_get_resource) [macintosh]: Do not call |
| 3856 | display_x_get_resource. |
| 3857 | (prepare_face_for_display) [macintosh]: Set xgcv.font. |
| 3858 | (realize_x_face) [macintosh]: Load the font if it is specified in |
| 3859 | ATTRS. |
| 3860 | (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed |
| 3861 | to Qt. |
| 3862 | |
| 3863 | 2000-10-22 Stefan Monnier <monnier@cs.yale.edu> |
| 3864 | |
| 3865 | * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry |
| 3866 | is nil: since we go to the end of submap anyway, we'd end up |
| 3867 | setting nil to nil. |
| 3868 | (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP |
| 3869 | doesn't obey autoload. |
| 3870 | |
| 3871 | 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> |
| 3872 | |
| 3873 | * msdos.c (dos_set_window_size): Update screen dimension variables. |
| 3874 | |
| 3875 | 2000-10-21 Jason Rumney <jasonr@gnu.org> |
| 3876 | |
| 3877 | * w32term.c (w32_cache_char_metrics): Double check that font is |
| 3878 | really fixed pitch before trusting tmPitchAndFamily. |
| 3879 | |
| 3880 | 2000-10-21 Andrew Innes <andrewi@gnu.org> |
| 3881 | |
| 3882 | * w32gui.h (w32_char_font_type): Move enum from w32term.c |
| 3883 | |
| 3884 | * w32term.h: Extern decl for w32_cache_char_metrics. |
| 3885 | |
| 3886 | * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics. |
| 3887 | |
| 3888 | * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics. |
| 3889 | (w32_unload_font): Free per_char array if present. |
| 3890 | |
| 3891 | * w32term.c (w32_per_char_metric): Remove HDC argument. Use |
| 3892 | cached information in emulated XFontStruct to handle common cases |
| 3893 | quickly. Do not allocate XCharStruct for return. |
| 3894 | (w32_native_per_char_metric): New function. |
| 3895 | (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of |
| 3896 | allocating one. |
| 3897 | (x_produce_glyphs): Don't get an HDC. Change calls to |
| 3898 | w32_per_char_metric to match arg change above. Remove calls to |
| 3899 | free results. |
| 3900 | (w32_get_glyph_overhangs): Ditto. |
| 3901 | (w32_cache_char_metrics): New function. |
| 3902 | |
| 3903 | * makefile.w32-in: Change .obj to .$(O) in all dependencies. |
| 3904 | ($(BLD)/casefiddle.$(O)): Remove compile command. |
| 3905 | ($(BLD)/gmalloc.$(O)): Remove compile command. |
| 3906 | ($(BLD)/dispnew.obj): |
| 3907 | ($(BLD)/keyboard.obj): |
| 3908 | ($(BLD)/w32inevt.obj): |
| 3909 | ($(BLD)/w32bdf.obj): |
| 3910 | ($(BLD)/alloc.obj): |
| 3911 | ($(BLD)/buffer.obj): |
| 3912 | ($(BLD)/editfns.obj): |
| 3913 | ($(BLD)/emacs.obj): |
| 3914 | ($(BLD)/fileio.obj): |
| 3915 | ($(BLD)/fns.obj): |
| 3916 | ($(BLD)/indent.obj): |
| 3917 | ($(BLD)/insdel.obj): |
| 3918 | ($(BLD)/intervals.obj): |
| 3919 | ($(BLD)/minibuf.obj): |
| 3920 | ($(BLD)/print.obj): |
| 3921 | ($(BLD)/scroll.obj): |
| 3922 | ($(BLD)/sysdep.obj): |
| 3923 | ($(BLD)/textprop.obj): |
| 3924 | ($(BLD)/widget.obj): |
| 3925 | ($(BLD)/xdisp.obj): Add dependency on w32gui.h. |
| 3926 | ($(BLD)/term.obj): Add dependency on dispextern.h. |
| 3927 | |
| 3928 | * makefile.nt ($(BLD)\dispnew.obj): |
| 3929 | ($(BLD)\keyboard.obj): |
| 3930 | ($(BLD)\w32inevt.obj): |
| 3931 | ($(BLD)\w32bdf.obj): |
| 3932 | ($(BLD)\alloc.obj): |
| 3933 | ($(BLD)\buffer.obj): |
| 3934 | ($(BLD)\editfns.obj): |
| 3935 | ($(BLD)\emacs.obj): |
| 3936 | ($(BLD)\fileio.obj): |
| 3937 | ($(BLD)\fns.obj): |
| 3938 | ($(BLD)\indent.obj): |
| 3939 | ($(BLD)\insdel.obj): |
| 3940 | ($(BLD)\intervals.obj): |
| 3941 | ($(BLD)\minibuf.obj): |
| 3942 | ($(BLD)\print.obj): |
| 3943 | ($(BLD)\scroll.obj): |
| 3944 | ($(BLD)\sysdep.obj): |
| 3945 | ($(BLD)\textprop.obj): |
| 3946 | ($(BLD)\widget.obj): |
| 3947 | ($(BLD)\xdisp.obj): Add dependency on w32gui.h. |
| 3948 | ($(BLD)\term.obj): Add dependency on dispextern.h |
| 3949 | |
| 3950 | 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> |
| 3951 | |
| 3952 | * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p |
| 3953 | with an additional argument of Qt. |
| 3954 | |
| 3955 | 2000-10-21 Miles Bader <miles@gnu.org> |
| 3956 | |
| 3957 | * window.c (pos_fully_visible_in_window_p): New function. |
| 3958 | (Fpos_visible_in_window_p): Add FULLY argument. |
| 3959 | Use pos_fully_visible_in_window_p. |
| 3960 | (window_scroll_pixel_based, window_scroll_line_based): Update |
| 3961 | calls to Fpos_visible_in_window_p. |
| 3962 | * lisp.h (Fpos_visible_in_window_p): Update prototype |
| 3963 | |
| 3964 | 2000-10-20 Gerd Moellmann <gerd@gnu.org> |
| 3965 | |
| 3966 | * alloc.c (toplevel): Conditionalize compilation of mem_* |
| 3967 | functions differently. |
| 3968 | |
| 3969 | 2000-10-20 Jason Rumney <jasonr@gnu.org> |
| 3970 | |
| 3971 | * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above |
| 3972 | mem_init where it used to be. mem_z etc not defined otherwise. |
| 3973 | |
| 3974 | 2000-10-20 Gerd Moellmann <gerd@gnu.org> |
| 3975 | |
| 3976 | * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef |
| 3977 | GC_MALLOC_CHECK. |
| 3978 | (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node |
| 3979 | structure definition and related variabled to the top of the file. |
| 3980 | Include this code when GC_MALLOC_CHECK is defined. |
| 3981 | (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't |
| 3982 | register/unregister allocated region. |
| 3983 | (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something |
| 3984 | which isn't allocated. |
| 3985 | (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning |
| 3986 | something which is already in use. |
| 3987 | (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise. |
| 3988 | (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal. |
| 3989 | (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal. |
| 3990 | (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init. |
| 3991 | |
| 3992 | * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use |
| 3993 | _malloc_internal instead of malloc. |
| 3994 | (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead |
| 3995 | of free. |
| 3996 | |
| 3997 | 2000-10-20 Andrew Innes <andrewi@gnu.org> |
| 3998 | |
| 3999 | * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on |
| 4000 | Windows. |
| 4001 | (my_strftime) <macro>: Don't use macro arg list when redefining as |
| 4002 | _strftime_copytm. |
| 4003 | (my_strftime) <function>: Supply 0 as ut argument. |
| 4004 | |
| 4005 | 2000-10-19 Jason Rumney <jasonr@altavista.net> |
| 4006 | |
| 4007 | * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before |
| 4008 | including dispextern.h, as it stops faces from working. |
| 4009 | |
| 4010 | * w32fns.c (Fx_create_frame): Don't bother calling |
| 4011 | face-set-after-frame-default since the caller does it for us |
| 4012 | anyway. Clean up calls to x_get_arg to be consistent with X. |
| 4013 | |
| 4014 | * w32term.c (x_produce_glyphs): Handle |
| 4015 | unibyte_display_via_language_environment correctly. |
| 4016 | (w32_draw_box_rect): Fix the calculation of width and height. |
| 4017 | |
| 4018 | * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles, |
| 4019 | as it has stopped working. |
| 4020 | (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like |
| 4021 | menu-bar. |
| 4022 | |
| 4023 | 2000-10-19 Gerd Moellmann <gerd@gnu.org> |
| 4024 | |
| 4025 | * eval.c (skip_debugger): Prevent a compiler warning. |
| 4026 | (Fcondition_case): Likewise. |
| 4027 | (Fbacktrace_frame): Use a null interactive spec. |
| 4028 | |
| 4029 | 2000-10-19 Kenichi Handa <handa@etl.go.jp> |
| 4030 | |
| 4031 | * xterm.c (x_find_ccl_program): Check also fontp->full_name. |
| 4032 | |
| 4033 | 2000-10-18 Gerd Moellmann <gerd@gnu.org> |
| 4034 | |
| 4035 | * strftime.c: Sync with glibc, file version 1.78. |
| 4036 | (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which |
| 4037 | should no longer be used according to ISO 8601. |
| 4038 | |
| 4039 | * keymap.c (access_keymap): If IDX has a meta prefix, and there's |
| 4040 | no map for meta_prefix_char, don't try to use it as a keymap. |
| 4041 | Instead, if T_OK is non-zero, look up a default binding, if any, |
| 4042 | otherwise, if T_OK is zero, return nil. |
| 4043 | |
| 4044 | * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color) |
| 4045 | (x_to_xcolors, png_load): Use x_query_color. |
| 4046 | |
| 4047 | * xterm.c (x_color_cells, x_query_colors, x_query_color): New |
| 4048 | functions. |
| 4049 | (x_alloc_nearest_color): Use it to reduce calls to XQueryColors |
| 4050 | which can be slow. |
| 4051 | (x_copy_color, x_alloc_lighter_color): Likewise. |
| 4052 | |
| 4053 | * xterm.h (struct x_display_info): Add color_cells and ncolor_cells. |
| 4054 | (x_query_color, x_query_colors): Add prototype. |
| 4055 | |
| 4056 | * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call |
| 4057 | check_string_bytes only if not noninteractive, increase count to 50. |
| 4058 | |
| 4059 | 2000-10-18 Miles Bader <miles@lsi.nec.co.jp> |
| 4060 | |
| 4061 | * insdel.c (adjust_markers_for_delete): Handle before-insertion |
| 4062 | markers correctly. |
| 4063 | |
| 4064 | 2000-10-17 Gerd Moellmann <gerd@gnu.org> |
| 4065 | |
| 4066 | * alloc.c (pure_bytes_used): Renamed from pureptr. |
| 4067 | (ALIGN): New macro. |
| 4068 | (pure_alloc): New function. |
| 4069 | (make_pure_string, pure_cons, make_pure_float, make_pure_vector): |
| 4070 | Use it. |
| 4071 | (Fpurecopy): Use PURE_POINTER_P. |
| 4072 | |
| 4073 | * xdisp.c (try_cursor_movement): Use cursor_row_p also when |
| 4074 | PT has moved backward. |
| 4075 | |
| 4076 | * xdisp.c (cursor_row_p): Take continued lines into account. |
| 4077 | |
| 4078 | * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of |
| 4079 | string's size_byte. |
| 4080 | (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function. |
| 4081 | (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable. |
| 4082 | (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th |
| 4083 | string allocated. |
| 4084 | |
| 4085 | * xdisp.c (forward_to_next_line_start): Switch iterator's handling |
| 4086 | of selective display off while searching for the next line start. |
| 4087 | |
| 4088 | 2000-10-17 Kenichi Handa <handa@etl.go.jp> |
| 4089 | |
| 4090 | * Makefile.in (term.o): Depend on dispextern.h. |
| 4091 | |
| 4092 | 2000-10-16 Stefan Monnier <monnier@cs.yale.edu> |
| 4093 | |
| 4094 | * keymap.c (keymap_memberp): Ensure that nil is not a member. |
| 4095 | |
| 4096 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> |
| 4097 | |
| 4098 | * xdisp.c (set_iterator_to_next): Reset box start and end flags of |
| 4099 | the iterator at the beginning, so that they can be set later on, |
| 4100 | for instance in reseat_at_next_visible_line_start, without being |
| 4101 | overwritten. |
| 4102 | |
| 4103 | * xfns.c (pbm_format): Add :foreground and :background keywords. |
| 4104 | (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators. |
| 4105 | (xbm_load): Recognize foreground and background color |
| 4106 | specifications. |
| 4107 | |
| 4108 | 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il> |
| 4109 | |
| 4110 | * dispextern.h (unspecified_fg, unspecified_bg): Declare. |
| 4111 | |
| 4112 | * dosfns.c (unspecified_fg, unspecified_bg): Remove extern |
| 4113 | declaration. |
| 4114 | |
| 4115 | * msdos.c (IT_set_face): Compare highlighted face with the default |
| 4116 | face, and invert colors if these faces' colors are identical. |
| 4117 | (Fmsdos_remember_default_colors): Don't swap foreground and |
| 4118 | background colors in initial_colors[]. |
| 4119 | (IT_set_frame_parameters): Don't swap frame's foreground and |
| 4120 | background pixels. If ALIST includes "(reverse . t)", swap |
| 4121 | foreground-color and background-color properties in frame's |
| 4122 | param_alist. If the original frame's param_alist doesn't specify |
| 4123 | the colors, store unspecified-fg and unspecified-bg, reversed if |
| 4124 | required. |
| 4125 | |
| 4126 | * frame.c (Fframe_parameters): If a tty's frame's param_alist says |
| 4127 | the colors are unspecified and reversed, reverse fore- and back- |
| 4128 | ground in the returned value. |
| 4129 | (Fframe_parameter): Ditto. |
| 4130 | |
| 4131 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> |
| 4132 | |
| 4133 | * xdisp.c (find_last_unchanged_at_beg_row): Renamed from |
| 4134 | get_last_unchanged_at_beg_row. |
| 4135 | (find_first_unchanged_at_end_row): Renamed from |
| 4136 | get_first_unchanged_at_end_row. |
| 4137 | (find_first_unchanged_at_end_row): Convert assertions to |
| 4138 | unconditional tests which abort. When looking for a row in |
| 4139 | unchanged text, don't go further back than first_text_row. |
| 4140 | |
| 4141 | * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>: |
| 4142 | Don't add in the last line's height when deciding if the new |
| 4143 | position is below the scroll margin. |
| 4144 | |
| 4145 | 2000-10-16 Miles Bader <miles@gnu.org> |
| 4146 | |
| 4147 | * editfns.c (Fconstrain_to_field): Check carefully for field |
| 4148 | boundaries if either OLD_POS or NEW_POS has a non-nil field |
| 4149 | property, even if they're the same. |
| 4150 | |
| 4151 | 2000-10-16 Kenichi Handa <handa@etl.go.jp> |
| 4152 | |
| 4153 | * xterm.c (x_draw_box_rect): Fix the calculation of width and |
| 4154 | height for XFillRectangle. |
| 4155 | |
| 4156 | 2000-10-15 Stefan Monnier <monnier@cs.yale.edu> |
| 4157 | |
| 4158 | * syntax.c (Fstring_to_syntax): New function extracted from |
| 4159 | Fmodify_syntax_entry. |
| 4160 | (Fmodify_syntax_entry): Use it and document the ! and | fences. |
| 4161 | (skip_chars, Fforward_comment): Remove unused variables. |
| 4162 | (syms_of_syntax): Add defsubr for string-to-syntax. |
| 4163 | (describe_syntax): Add code for comment and string fences. |
| 4164 | |
| 4165 | 2000-10-14 Stefan Monnier <monnier@cs.yale.edu> |
| 4166 | |
| 4167 | * keymap.c (access_keymap): Add AUTOLOAD parameter. |
| 4168 | Do the meta->esc mapping. Call get_keyelt before returning. |
| 4169 | Start scanning from the second element (the first is always `keymap') |
| 4170 | to make it easier to detect when we reach a parent map. |
| 4171 | Handle the case of inheriting from a symbol whose function is a map. |
| 4172 | (Fkeymap_parent): Also handle the `inherit from symbol' case. |
| 4173 | (fix_submap_inheritance, Fdefine_key): Update call to access_keymap. |
| 4174 | (get_keyelt, Flookup_key): Update call to access_keymap. |
| 4175 | Remove the meta->esc mappings. |
| 4176 | (define_as_prefix): Delete old disabled code. |
| 4177 | (menu_item_p): New function. |
| 4178 | (where_is_internal_1): Skip over the few remaining menu items. |
| 4179 | * lisp.h (access_keymap): Update prototype. |
| 4180 | * keyboard.c (read_char, menu_bar_items, tool_bar_items): |
| 4181 | Update call to access_keymap. |
| 4182 | (follow_key, read_key_sequence): Update calls to access_keymap. |
| 4183 | Remove the meta->esc mappings. |
| 4184 | |
| 4185 | 2000-10-13 Gerd Moellmann <gerd@gnu.org> |
| 4186 | |
| 4187 | * dispnew.c (direct_output_for_insert): Call set_iterator_to_next |
| 4188 | with additional argument. |
| 4189 | |
| 4190 | * xdisp.c (cursor_row_p): New function. |
| 4191 | (try_cursor_movement, display_line): Use it. |
| 4192 | |
| 4193 | * xdisp.c (append_space): Also save/restore iterator's current |
| 4194 | character and its length. |
| 4195 | |
| 4196 | * xdisp.c (init_from_display_pos): Add an assertion. |
| 4197 | (handle_stop): Don't set iterator's add_overlay_start. |
| 4198 | (handle_invisible_prop): Likewise. |
| 4199 | (load_overlay_strings): If text under an overlay is invisible, |
| 4200 | take both before- and after-strings into account when the iterator |
| 4201 | is positioned either at the start or at the end of the overlay. |
| 4202 | (forward_to_next_line_start): Rewritten. |
| 4203 | (reseat_at_next_visible_line_start): Rewritten. |
| 4204 | (set_iterator_to_next): Add parameter RESEAT_P. |
| 4205 | |
| 4206 | * dispextern.h (struct it): Remove member add_overlay_start. |
| 4207 | (set_iterator_to_next): Change prototype. |
| 4208 | |
| 4209 | 2000-10-13 Kenichi Handa <handa@etl.go.jp> |
| 4210 | |
| 4211 | * coding.c (code_convert_region): Be sure to initialize |
| 4212 | coding->category_idx. |
| 4213 | (decode_coding_string): Set coding->src_multibyte and |
| 4214 | coding->dst_multibyte before using CODING_REQUIRE_DECODING. |
| 4215 | (encode_coding_string): Set coding->src_multibyte and |
| 4216 | coding->dst_multibyte before using CODING_REQUIRE_ENCODING. |
| 4217 | |
| 4218 | 2000-10-12 Stefan Monnier <monnier@cs.yale.edu> |
| 4219 | |
| 4220 | * xfns.c (Fx_create_frame): Don't bother calling |
| 4221 | face-set-after-frame-default since the caller does it for us anyway. |
| 4222 | |
| 4223 | 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 4224 | |
| 4225 | * window.c (coordinates_in_window): Fix detection of vertical line |
| 4226 | on character terminals. |
| 4227 | |
| 4228 | 2000-10-12 Gerd Moellmann <gerd@gnu.org> |
| 4229 | |
| 4230 | * editfns.c (save_excursion_save): Additionally record the |
| 4231 | selected window. |
| 4232 | (save_excursion_restore): If buffer was visible in a window, and a |
| 4233 | different window was selected, and the old selected window is |
| 4234 | still live, restore point in that window. |
| 4235 | |
| 4236 | 2000-10-12 Kenichi Handa <handa@etl.go.jp> |
| 4237 | |
| 4238 | * xterm.c (x_produce_glyphs): Handle |
| 4239 | unibyte_display_via_language_environment correctly. |
| 4240 | |
| 4241 | * regex.c (regex_compile): Change the way of handling a range from |
| 4242 | unibyte char to multibyte char. |
| 4243 | |
| 4244 | * syntax.c (skip_chars): Change the way of handling a range from |
| 4245 | unibyte char to multibyte char. |
| 4246 | |
| 4247 | * process.c (read_process_output): Cancel previous change. |
| 4248 | |
| 4249 | 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il> |
| 4250 | |
| 4251 | * search.c (Fsearch_backward, Fsearch_forward): Doc fix. |
| 4252 | |
| 4253 | * charset.c (Ffind_charset_string): Doc fix. |
| 4254 | (Ffind_charset_region): Doc fix. |
| 4255 | |
| 4256 | 2000-10-11 Kenichi Handa <handa@mule.m17n.org> |
| 4257 | |
| 4258 | * process.c (read_process_output): Fix previous change. Adjust |
| 4259 | multibyteness of text to insert in a buffer by |
| 4260 | string_make_unibyte/multibyte instead of |
| 4261 | Fstring_as_unibyte/multibyte. |
| 4262 | |
| 4263 | 2000-10-10 Andreas Schwab <schwab@suse.de> |
| 4264 | |
| 4265 | * alloc.c (mark_object): Remove all workarounds installed on |
| 4266 | 1993-08-08. |
| 4267 | |
| 4268 | 2000-10-10 Kenichi Handa <handa@etl.go.jp> |
| 4269 | |
| 4270 | * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before |
| 4271 | returning. |
| 4272 | (base64_encode_1): Make it work for a text of multibyte form. |
| 4273 | (Fbase64_decode_region): Allocate sufficient memory for multibyte |
| 4274 | case. Don't call str_to_multibyte because base64_decode_1 |
| 4275 | produces correct multibyte form for eight-bit codes. |
| 4276 | (Fbase64_decode_string): Adjusted for the change of |
| 4277 | base64_decode_1. |
| 4278 | (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If |
| 4279 | MULTIBYTE is nonzero, produce correct multibyte form for eight-bit |
| 4280 | codes. |
| 4281 | |
| 4282 | * charset.h (CHAR_STRING): Optimized for single byte characters. |
| 4283 | |
| 4284 | 2000-10-09 Andreas Schwab <schwab@suse.de> |
| 4285 | |
| 4286 | * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to |
| 4287 | -1 after socket is closed, to fall through to error processing. |
| 4288 | |
| 4289 | 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il> |
| 4290 | |
| 4291 | * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object |
| 4292 | variables. If ALIST includes foreground-color or |
| 4293 | background-color, change also the colors of the default face for |
| 4294 | this frame. |
| 4295 | |
| 4296 | 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il> |
| 4297 | |
| 4298 | * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make |
| 4299 | them extern (they are defined on xfaces.c). |
| 4300 | (syms_of_msdos): Don't intern and don't staticpro |
| 4301 | Qbackground_color and Qforeground_color. |
| 4302 | |
| 4303 | 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 4304 | |
| 4305 | * frame.c (Fframe_parameter): For non-windowed frames, if |
| 4306 | f->param_alist says foreground or background color is unspecified, |
| 4307 | call tty_color_name to return the color name computed from the |
| 4308 | frame's current colors. |
| 4309 | |
| 4310 | 2000-10-06 Dave Love <fx@gnu.org> |
| 4311 | |
| 4312 | * terminfo.c (ospeed): Don't declare. |
| 4313 | |
| 4314 | * sysdep.c: Don't include string.h. |
| 4315 | (h_errno): Declare conditional also on TRY_AGAIN. |
| 4316 | |
| 4317 | * charset.c (Ffind_charset_string): Doc fix. |
| 4318 | |
| 4319 | * fns.c (Fbase64_encode_region, Fbase64_encode_string) |
| 4320 | (Fbase64_decode_region, Fbase64_decode_string): More explicit |
| 4321 | error messages. |
| 4322 | |
| 4323 | 2000-10-05 Dave Love <fx@gnu.org> |
| 4324 | |
| 4325 | * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar |
| 4326 | position like menu-bar. |
| 4327 | |
| 4328 | 2000-10-05 Gerd Moellmann <gerd@gnu.org> |
| 4329 | |
| 4330 | * keyboard.c (Frecursive_edit): Make sure redisplay can happen. |
| 4331 | |
| 4332 | * xdisp.c (handle_single_display_prop): Use safe_call1. |
| 4333 | (safe_call): Renamed from call_function. |
| 4334 | (safe_call1): New function. |
| 4335 | (handle_fontified_prop): Use safe_call1 instead of call1. |
| 4336 | (safe_eval): Renamed from eval_form. |
| 4337 | (safe_eval_handler): Renamed from eval_handler. |
| 4338 | (handle_single_display_prop, display_mode_element): Use safe_eval |
| 4339 | instead of eval_form. |
| 4340 | |
| 4341 | * xfaces.c (merge_face_heights): Use safe_call instead of |
| 4342 | call_function. |
| 4343 | |
| 4344 | * keyboard.c (show_help_echo): Use safe_call instead of |
| 4345 | call_function; use safe_eval instead of eval_form. |
| 4346 | |
| 4347 | * lisp.h (safe_call): Renamed from call_function. |
| 4348 | (safe_eval): Renamed from eval_form. |
| 4349 | (safe_call1): Add prototype. |
| 4350 | |
| 4351 | 2000-10-05 Miles Bader <miles@lsi.nec.co.jp> |
| 4352 | |
| 4353 | * xfns.c (image_ascent): Rearrange ascent calculation for the |
| 4354 | has-a-font case. |
| 4355 | |
| 4356 | 2000-10-04 Stefan Monnier <monnier@cs.yale.edu> |
| 4357 | |
| 4358 | * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'. |
| 4359 | (where_is_internal_1): Don't bother ignoring menu-items any more. |
| 4360 | |
| 4361 | 2000-10-04 Gerd Moellmann <gerd@gnu.org> |
| 4362 | |
| 4363 | * keyboard.c (update_menu_bindings): New variable. |
| 4364 | (parse_menu_item): Use AREF. If update_menu_bindings |
| 4365 | is 0, don't update menu bindings. |
| 4366 | (syms_of_keyboard): New Lisp variable `update-menu-bindings'. |
| 4367 | |
| 4368 | 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 4369 | |
| 4370 | * alloc.c (Fgarbage_collect): Prevent compiler warning for a call |
| 4371 | to `mark_object'. |
| 4372 | |
| 4373 | 2000-10-02 Stefan Monnier <monnier@cs.yale.edu> |
| 4374 | |
| 4375 | * syntax.c (forw_comment): Match nestedness of ender/starter. |
| 4376 | (Fforward_comment): Treat an unmatched \n comment-ender as whitespace. |
| 4377 | (prev_char_comstart_first): Remove. |
| 4378 | (back_comment): Check two-char comment markers more carefully |
| 4379 | to better handle overlapping cases like *//* or /* */* */ ... |
| 4380 | Match nestedness of ender/starter. |
| 4381 | |
| 4382 | 2000-10-02 Dave Love <fx@gnu.org> |
| 4383 | |
| 4384 | * config.in (HAVE_GAI_STRERROR): Add undef. |
| 4385 | |
| 4386 | * process.c (Fopen_network_stream): Use it. |
| 4387 | |
| 4388 | * m/alpha.h (NO_REMAP): Don't define. |
| 4389 | |
| 4390 | 2000-10-02 Gerd Moellmann <gerd@gnu.org> |
| 4391 | |
| 4392 | * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can |
| 4393 | return with a string converted to an integer or vice versa when |
| 4394 | Vmocklisp_arguments is t. |
| 4395 | (Fsignal): Likewise. The function can return for `quit'. |
| 4396 | (struct gcpro): Declare member `var' to point to a volatile |
| 4397 | Lisp_Object. |
| 4398 | |
| 4399 | * eval.c (error): Prevent compiler warning. |
| 4400 | |
| 4401 | 2000-09-30 Stefan Monnier <monnier@cs.yale.edu> |
| 4402 | |
| 4403 | * keymap.c (keymap_memberp): New function. |
| 4404 | (Fset_keymap_parent): Use it. |
| 4405 | (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP. |
| 4406 | Use keymap_memberp to avoid creating cycles. |
| 4407 | (access_keymap): Use KEYMAPP. |
| 4408 | |
| 4409 | 2000-09-30 Gerd Moellmann <gerd@gnu.org> |
| 4410 | |
| 4411 | * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use |
| 4412 | gai_strerror. Make sure xerrno is set if connect fails. Improve |
| 4413 | error recovery. |
| 4414 | |
| 4415 | 2000-09-29 Jason Rumney <jasonr@gnu.org> |
| 4416 | |
| 4417 | * w32term.c (w32_char_font_type, w32_encode_char) |
| 4418 | (x_produce_glyphs): Distinguish single and multibyte BDF fonts. |
| 4419 | (w32_bdf_per_char_metric): New function. |
| 4420 | (w32_per_char_metric): Use it. |
| 4421 | (x_draw_glyph_string_background): Always draw background for BDF |
| 4422 | glyphs. |
| 4423 | |
| 4424 | * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not |
| 4425 | GDI object which is a scarce resource. |
| 4426 | |
| 4427 | * w32bdf.c (search_file_line): Fix skipping of whitespace. |
| 4428 | (get_quoted_string): Fix limit on memchr search. |
| 4429 | (set_bdf_font_info): Use unsigned chars. Negate yoffset. |
| 4430 | (w32_init_bdf_font): Initialize codepoint and bitmap heaps. |
| 4431 | (w32_free_bdf_font): Free bitmaps and codepoints on heaps. |
| 4432 | (get_cached_font_char, cache_char_offset): Use macro |
| 4433 | BDF_CODEPOINT_RANGE_COVER_P. |
| 4434 | (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap. |
| 4435 | (clear_cached_bitmap_slots): New function. |
| 4436 | (GET_HEX_VALUE): G-Z, g-z are not hex. |
| 4437 | (w32_get_bdf_glyph): Convert to DIB format. Return bytes read. |
| 4438 | (get_bitmap_with_cache): Use new cache implementation. |
| 4439 | (create_offscreen_bitmap): New function. |
| 4440 | (w32_BDF_TextOut): Use it. Draw glyphs as DIBs. |
| 4441 | |
| 4442 | * w32term.c (x_produce_glyphs): If the distance from the current |
| 4443 | position to the next tab stop is less than a canonical character |
| 4444 | width, use the tab stop after that. |
| 4445 | (x_draw_glyphs): Handle case START and END are out of bounds more |
| 4446 | carefully. |
| 4447 | (x_clear_mouse_face): Block/unblock input. |
| 4448 | (x_display_and_set_cursor): Don't show a hollow box cursor for |
| 4449 | buffers whose cursor_type is nil. |
| 4450 | |
| 4451 | 2000-09-29 Gerd Moellmann <gerd@gnu.org> |
| 4452 | |
| 4453 | * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar |
| 4454 | disappears. |
| 4455 | |
| 4456 | * dispextern.h (updating_frame): Declare extern. |
| 4457 | |
| 4458 | 2000-09-29 Andreas Schwab <schwab@suse.de> |
| 4459 | |
| 4460 | * m/ia64.h: Remove hack of not prototyping bcopy, etc. |
| 4461 | |
| 4462 | 2000-09-29 Gerd Moellmann <gerd@gnu.org> |
| 4463 | |
| 4464 | * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol, |
| 4465 | use its function definition. |
| 4466 | (tool_bar_items): Likewise. |
| 4467 | |
| 4468 | * lisp.h (fatal): Declare NO_RETURN. |
| 4469 | |
| 4470 | 2000-09-29 Kenichi Handa <handa@etl.go.jp> |
| 4471 | |
| 4472 | * keymap.c: Remove the line "#undef NULL". |
| 4473 | |
| 4474 | 2000-09-28 Gerd Moellmann <gerd@gnu.org> |
| 4475 | |
| 4476 | * xterm.c (x_make_frame_visible): Try harder to make the frame |
| 4477 | visible. |
| 4478 | |
| 4479 | 2000-09-28 Dave Love <fx@gnu.org> |
| 4480 | |
| 4481 | * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP. |
| 4482 | |
| 4483 | * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define. |
| 4484 | |
| 4485 | * .gdbinit (xreload): Note its need on GNU/Linux. |
| 4486 | |
| 4487 | * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare |
| 4488 | r_alloc, r_alloc_free. |
| 4489 | |
| 4490 | 2000-09-28 Kenichi Handa <handa@etl.go.jp> |
| 4491 | |
| 4492 | * syntax.c (skip_chars): Handle negation correctly. |
| 4493 | |
| 4494 | 2000-09-27 Gerd Moellmann <gerd@gnu.org> |
| 4495 | |
| 4496 | * xfaces.c (realize_default_face): Call set_lface_from_font_name |
| 4497 | with non-zero FORCE_P argument. |
| 4498 | |
| 4499 | * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows): |
| 4500 | Add assertions. |
| 4501 | |
| 4502 | * xdisp.c (window_box_height): Add an assertion. |
| 4503 | |
| 4504 | * xfns.c (x_set_tool_bar_lines): Don't use more lines for the |
| 4505 | tool-bar than is available. |
| 4506 | (x_change_window_heights): Renamed from x_set_menu_bar_lines_1. |
| 4507 | |
| 4508 | 2000-09-27 Dave Love <fx@gnu.org> |
| 4509 | |
| 4510 | * s/irix6-5.h: Now works 64-bit. Tidied. |
| 4511 | |
| 4512 | 2000-09-26 Gerd Moellmann <gerd@gnu.org> |
| 4513 | |
| 4514 | * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT |
| 4515 | instead of BITS_PER_INT. |
| 4516 | (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and |
| 4517 | EMACS_UINT, respectively. |
| 4518 | (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine. |
| 4519 | |
| 4520 | * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define. |
| 4521 | |
| 4522 | * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64. |
| 4523 | |
| 4524 | * window.c (freeze_window_starts): Construct last argument for |
| 4525 | foreach_window differently. |
| 4526 | |
| 4527 | * xfns.c (x_decode_color): Don't return a Lisp_Object. |
| 4528 | |
| 4529 | * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and |
| 4530 | EMACS_UINT instead of `int' and `unsigned int'. |
| 4531 | (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'. |
| 4532 | |
| 4533 | * frame.h (struct frame): Make the `nothing' member of union |
| 4534 | output_data an EMACS_INT. |
| 4535 | |
| 4536 | * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug |
| 4537 | hunting. |
| 4538 | (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's |
| 4539 | size in the sdata structure. |
| 4540 | (SDATA_NBYTES, SDATA_DATA): New macros. |
| 4541 | (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define |
| 4542 | differently for the different layout of the sdata structure. |
| 4543 | (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size |
| 4544 | in sdata. |
| 4545 | (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]: |
| 4546 | Check that size recorded in the string size and size recorded in |
| 4547 | the sdata structure agree. |
| 4548 | |
| 4549 | 2000-09-25 Dave Love <fx@gnu.org> |
| 4550 | |
| 4551 | * buffer.c: Include stdio.h. |
| 4552 | |
| 4553 | Partly suggested by Eduardo Horvath <eeh@netbsd.org>. |
| 4554 | |
| 4555 | * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t. |
| 4556 | |
| 4557 | * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it. |
| 4558 | (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as |
| 4559 | size_t. |
| 4560 | (__malloc_extra_blocks): Declare as __malloc_size_t. |
| 4561 | |
| 4562 | 2000-09-25 Gerd Moellmann <gerd@gnu.org> |
| 4563 | |
| 4564 | * alloc.c (mark_image): Use GC_NILP instead of NILP. |
| 4565 | |
| 4566 | * keyboard.c (show_help_echo): Set help_echo_showing_p. |
| 4567 | (read_char): If help-echo is showing, preserve the echo area |
| 4568 | when redisplaying. |
| 4569 | |
| 4570 | * xdisp.c (help_echo_showing_p): New variable. |
| 4571 | (set_message): Reset it to 0. |
| 4572 | (init_xdisp): Initialize help_echo_showing_p. |
| 4573 | |
| 4574 | * dispextern.h (help_echo_showing_p): Declare extern. |
| 4575 | |
| 4576 | * config.in: Fix typo in __GNUC_MINOR__. |
| 4577 | |
| 4578 | * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN. |
| 4579 | |
| 4580 | * s/freebsd.h (POSIX_SIGNALS): Define. |
| 4581 | |
| 4582 | * xterm.c (x_clear_mouse_face): Block/unblock input. |
| 4583 | |
| 4584 | 2000-09-24 Dave Love <fx@gnu.org> |
| 4585 | |
| 4586 | * fns.c (base64_encode_1): Fix last change. |
| 4587 | |
| 4588 | 2000-09-22 Gerd Moellmann <gerd@gnu.org> |
| 4589 | |
| 4590 | * dispnew.c (enable_glyph_matrix_rows): Remove xasserts. |
| 4591 | |
| 4592 | * xdisp.c (try_window_reusing_current_matrix): More fixes |
| 4593 | for the case window has a header-line. |
| 4594 | |
| 4595 | 2000-09-22 Dave Love <fx@gnu.org> |
| 4596 | |
| 4597 | * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide |
| 4598 | a doc string. |
| 4599 | |
| 4600 | * xterm.c [SOLARIS2]: Remove redundant include of string.h. |
| 4601 | |
| 4602 | * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix. |
| 4603 | |
| 4604 | 2000-09-21 Gerd Moellmann <gerd@gnu.org> |
| 4605 | |
| 4606 | * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))' |
| 4607 | for GCC >= 2.5. |
| 4608 | |
| 4609 | * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare |
| 4610 | NO_RETURN. |
| 4611 | |
| 4612 | * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c, |
| 4613 | * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c, |
| 4614 | * indent.c, search.c, alloc.c, data.c: Avoid some more compiler |
| 4615 | warnings. |
| 4616 | |
| 4617 | * marker.c (byte_char_debug_check): Return void. |
| 4618 | |
| 4619 | * xfns.c (Fx_create_frame): Set default frame parameter value |
| 4620 | for tool-bar-lines to 1. |
| 4621 | |
| 4622 | * dispnew.c (scrolling_window): Compare y-positions of rows |
| 4623 | equal at the start. Some simplification. |
| 4624 | |
| 4625 | * xdisp.c (try_window_reusing_current_matrix): Fix computation of |
| 4626 | reused rows' y-position in the case window has a header-line, and |
| 4627 | new window start is greater than old window start. |
| 4628 | |
| 4629 | * process.c (process_sent_to): New variable. |
| 4630 | (send_process): Workaround for a crash on sparc-sun-solaris-2.6 |
| 4631 | with GCC 2.95.2 caused by a parameter being clobbered by longjmp. |
| 4632 | Declare more parameters volatile. |
| 4633 | |
| 4634 | * lread.c (Vrecursive_load_depth_limit): New variable. |
| 4635 | (Fload): Check recursive loads whose recursion depth exceeds |
| 4636 | Vrecursive_load_depth_limit. |
| 4637 | (syms_of_lread): DERFAR_LISP recursive-load-depth-limit. |
| 4638 | |
| 4639 | 2000-09-20 Gerd Moellmann <gerd@gnu.org> |
| 4640 | |
| 4641 | * fileio.c (Fread_file_name): Doc fix. |
| 4642 | |
| 4643 | * editfns.c (Fmessage_or_box): Doc fix. |
| 4644 | |
| 4645 | * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix. |
| 4646 | |
| 4647 | * xfns.c (xbm_scan): Allow C-style comments. |
| 4648 | |
| 4649 | * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color |
| 4650 | symbols are specified, add color translations to the cache. |
| 4651 | (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New |
| 4652 | functions. |
| 4653 | (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and |
| 4654 | xpm_cache_color. |
| 4655 | (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes |
| 4656 | structures to xpm_init_color_cache. |
| 4657 | |
| 4658 | 2000-09-19 Gerd Moellmann <gerd@gnu.org> |
| 4659 | |
| 4660 | * dispnew.c (update_window_line): Make sure to always draw |
| 4661 | mode-lines. |
| 4662 | |
| 4663 | 2000-09-19 Andrew Innes <andrewi@gnu.org> |
| 4664 | |
| 4665 | * makefile.nt (bootstrap-emacs): Don't change directory. |
| 4666 | |
| 4667 | 2000-09-19 Kenichi Handa <handa@etl.go.jp> |
| 4668 | |
| 4669 | * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change. |
| 4670 | |
| 4671 | * ccl.c (Fccl_execute_on_string): Make multibyte string correctly. |
| 4672 | If output buffer is too small, signal an appropriated error. |
| 4673 | |
| 4674 | 2000-09-18 Dave Love <fx@gnu.org> |
| 4675 | |
| 4676 | * keyboard.c (menu_bar_items, tool_bar_items) |
| 4677 | (current_active_maps): Remove redundant get_local_map call. |
| 4678 | |
| 4679 | 2000-09-18 Gerd Moellmann <gerd@gnu.org> |
| 4680 | |
| 4681 | * xterm.c (x_display_and_set_cursor): Don't show a hollow box |
| 4682 | cursor for buffers whose cursor_type is nil. |
| 4683 | |
| 4684 | * xterm.c (x_draw_image_glyph_string): Remove a comment describing |
| 4685 | a feature to implement that is already implemented. |
| 4686 | (note_mouse_highlight, x_find_ccl_program): Avoid some compiler |
| 4687 | warnings. |
| 4688 | |
| 4689 | * xfns.c (x_clear_image_1): New function. |
| 4690 | (x_clear_image): Use it. |
| 4691 | (x_from_xcolors): Use x_clear_image_1; don't free the image's |
| 4692 | mask. |
| 4693 | |
| 4694 | * dispnew.c (update_window): Move test for invisible lines |
| 4695 | at the top to update_window_line. |
| 4696 | (update_window_line): Handle invisible lines here. |
| 4697 | |
| 4698 | * xfns.c (clear_image_cache): Clear current matrices of all |
| 4699 | frames sharing an image cache. Block input while freeing |
| 4700 | images. Fix timestamp comparison. |
| 4701 | (x_clear_image): Also free the mask. |
| 4702 | |
| 4703 | * xfns.c (lookup_image): Block input while loading the image so |
| 4704 | that we won't get interrupted in a state where the image isn't yet |
| 4705 | set up completely. |
| 4706 | (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color) |
| 4707 | (lookup_pixel_color, x_to_xcolors, x_from_xcolors) |
| 4708 | (x_disable_image, x_build_heuristic_mask, pbm_load, png_load) |
| 4709 | (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock |
| 4710 | input. |
| 4711 | |
| 4712 | 2000-09-16 Gerd Moellmann <gerd@gnu.org> |
| 4713 | |
| 4714 | * dispnew.c (update_window): Make sure to make desired rows |
| 4715 | current even if they are completely invisible at the top |
| 4716 | of a window. |
| 4717 | |
| 4718 | 2000-09-15 Gerd Moellmann <gerd@gnu.org> |
| 4719 | |
| 4720 | * xfns.c (lookup_image): Build mask before applying an algorithm. |
| 4721 | Recognize algorithm `disabled'. |
| 4722 | (cross_disabled_images): New variable. |
| 4723 | (COLOR_INTENSITY): New macro. |
| 4724 | (x_detect_edges): Use COLOR_INTENSITY. |
| 4725 | (x_disable_image): New function. |
| 4726 | (syms_of_xfns): DEFVAR_BOOL cross_disabled_images. |
| 4727 | |
| 4728 | * xdisp.c (build_desired_tool_bar_string): For a toolbar item in |
| 4729 | disabled state, don't apply an image transformation algorithm if |
| 4730 | the user specified an image for the disabled state. Use |
| 4731 | `:algorithm disabled' for creating a disabled item's image if the |
| 4732 | user hasn't specified an image. |
| 4733 | |
| 4734 | * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color |
| 4735 | allocation functions with the XPM lib. |
| 4736 | (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure. |
| 4737 | (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro. |
| 4738 | (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable. |
| 4739 | (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color) |
| 4740 | (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New |
| 4741 | functions. |
| 4742 | (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation |
| 4743 | functions, if possible, because these handle color allocation |
| 4744 | failure more gracefully. |
| 4745 | (Fimage_mask_p): New function. |
| 4746 | |
| 4747 | * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss) |
| 4748 | (Qedge_detection, Qheuristic): New symbols. |
| 4749 | (syms_of_xfns): Initialize new symbols. |
| 4750 | (lookup_image): Handle `:mask X', `:algorithm emboss', and |
| 4751 | `algorithm (edge-detection ...)'. |
| 4752 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format): |
| 4753 | (tiff_format, gif_format, gs_format): Add `:mask'. |
| 4754 | (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK) |
| 4755 | (GIF_MASK, GS_MASK): New enumerators. |
| 4756 | (x_laplace_read_row, x_laplace_write_row): Functions removed. |
| 4757 | (emboss_matrix, laplace_matrix): New variables. |
| 4758 | (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss) |
| 4759 | (x_edge_detection): New functions. |
| 4760 | (x_laplace): Rewritten in terms of x_detect_edges. |
| 4761 | (x_build_heuristic_mask): If image has a mask, free it. |
| 4762 | |
| 4763 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
| 4764 | |
| 4765 | * makefile.w32-in: Revert to Unix line endings. |
| 4766 | |
| 4767 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
| 4768 | |
| 4769 | * makefile.w32-in: Standardize indentation somewhat. |
| 4770 | (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to |
| 4771 | cater for differences between shells. |
| 4772 | |
| 4773 | * w32term.c (w32_per_char_metric): Handle non-TrueType fonts. |
| 4774 | |
| 4775 | 2000-09-14 Gerd Moellmann <gerd@gnu.org> |
| 4776 | |
| 4777 | * xterm.c (x_produce_glyphs): If the distance from the current |
| 4778 | position to the next tab stop is less than a canonical character |
| 4779 | width, use the tab stop after that. |
| 4780 | |
| 4781 | 2000-09-14 Dave Love <fx@gnu.org> |
| 4782 | |
| 4783 | * buffer.c (alloc_buffer_text): Fix xmalloc call. |
| 4784 | |
| 4785 | 2000-09-14 Gerd Moellmann <gerd@gnu.org> |
| 4786 | |
| 4787 | * xdisp.c (handle_fontified_prop): While running fontification |
| 4788 | functions, bind `fontification-functions' and |
| 4789 | `after-change-functions' to nil. |
| 4790 | |
| 4791 | * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h |
| 4792 | (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP. |
| 4793 | |
| 4794 | * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o. |
| 4795 | |
| 4796 | * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to |
| 4797 | USE_MMAP_FOR_BUFFERS. |
| 4798 | |
| 4799 | * insdel.c (make_gap): Use enlarge_buffer_text. |
| 4800 | |
| 4801 | * buffer.c: Move allocation with mmap here, from ralloc.c. Change |
| 4802 | conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS. |
| 4803 | (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed |
| 4804 | from former r_alloc_* functions in ralloc.c. |
| 4805 | (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New |
| 4806 | variables. |
| 4807 | (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro. |
| 4808 | (mmap_init) [REL_ALLOC_MMAP]: New function. |
| 4809 | (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New |
| 4810 | functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and |
| 4811 | BUFFER_FREE. |
| 4812 | |
| 4813 | * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed. |
| 4814 | (enlarge_buffer_text): Add prototype. |
| 4815 | |
| 4816 | * ralloc.c: Remove everything having to do with the use of mmap. |
| 4817 | |
| 4818 | 2000-09-13 Gerd Moellmann <gerd@gnu.org> |
| 4819 | |
| 4820 | * sound.c (Fplay_sound): Doc fix. |
| 4821 | |
| 4822 | * keyboard.c: Avoid some more compiler warnings. |
| 4823 | (parse_tool_bar_item): Ignore cached key bindings. |
| 4824 | |
| 4825 | * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap |
| 4826 | and allocation of Lisp data. |
| 4827 | |
| 4828 | 2000-09-12 Gerd Moellmann <gerd@gnu.org> |
| 4829 | |
| 4830 | * xfaces.c: Remove conditional compilation on SCALABLE_FONTS. |
| 4831 | (Finternal_set_lisp_face_attribute): If frame is 0, set new frame |
| 4832 | defaults first. |
| 4833 | |
| 4834 | * lread.c (Fload): Put code checking for recursive loads in #if 0. |
| 4835 | |
| 4836 | 2000-09-12 Miyashita Hisashi <himi@meadowy.org> |
| 4837 | |
| 4838 | * ccl.c: Comment fixed. |
| 4839 | (MAX_MAP_SET_LEVEL): Increased to 30. |
| 4840 | (PUSH_MAPPING_STACK): Enclose with do-while block. |
| 4841 | (POP_MAPPING_STACK): Likewise. |
| 4842 | (stack_idx_of_map_multiple): New variable. |
| 4843 | (CCL_CALL_FOR_MAP_INSTRUCTION): New macro. |
| 4844 | (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol, |
| 4845 | call the corresponding CCL program by |
| 4846 | CCL_CALL_FOR_MAP_INSTRUCTION. |
| 4847 | (ccl_driver) <CCL_MapSingle>: Likewise. |
| 4848 | (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal |
| 4849 | with the case where looking up process reaches to the end of |
| 4850 | map-set, and call CCL programs as the above change. |
| 4851 | |
| 4852 | 2000-09-11 Gerd Moellmann <gerd@gnu.org> |
| 4853 | |
| 4854 | * xfns.c (png_load, jpeg_load): Declare some variables volatile |
| 4855 | that might be clobbered by longjmp. |
| 4856 | (check_x_display_info, x_decode_color, create_frame_xic) |
| 4857 | (Fx_display_backing_store, Fx_display_visual_class) |
| 4858 | (x_build_heuristic_mask, pbm_scan_number): Avoid compiler |
| 4859 | warnings. |
| 4860 | |
| 4861 | * lread.c (init_lread): Set Vloads_in_progress to nil. |
| 4862 | (Fload): Show list of recursively loaded files, when signaling an |
| 4863 | error. |
| 4864 | |
| 4865 | * lread.c (Vloads_in_progress): New variable. |
| 4866 | (record_load_unwind): New function. |
| 4867 | (Fload): Check for recursive loads. |
| 4868 | (syms_of_lread): Initialize Vloads_in_progress. |
| 4869 | (read_integer, read1): Avoid some compiler warnings. |
| 4870 | |
| 4871 | * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some |
| 4872 | compiler warnings. |
| 4873 | |
| 4874 | 2000-09-11 Miles Bader <miles@gnu.org> |
| 4875 | |
| 4876 | * editfns.c (Fbuffer_string): Doc fix. |
| 4877 | |
| 4878 | 2000-09-10 Gerd Moellmann <gerd@gnu.org> |
| 4879 | |
| 4880 | * ralloc.c (mmap_enlarge): Don't return 0 if successful. |
| 4881 | |
| 4882 | 2000-09-09 Ken Raeburn <raeburn@gnu.org> |
| 4883 | |
| 4884 | * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding |
| 4885 | whether to include other header files. |
| 4886 | |
| 4887 | 2000-09-09 Gerd Moellmann <gerd@gnu.org> |
| 4888 | |
| 4889 | * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned |
| 4890 | by Fmemq as a boolean. |
| 4891 | |
| 4892 | 2000-09-08 Stefan Monnier <monnier@cs.yale.edu> |
| 4893 | |
| 4894 | * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko. |
| 4895 | |
| 4896 | 2000-09-08 Gerd Moellmann <gerd@gnu.org> |
| 4897 | |
| 4898 | * ralloc.c (mmap_fd): Remove initializer which can make it |
| 4899 | read-only in a dumped Emacs. |
| 4900 | (mmap_fd_1): New variable. |
| 4901 | (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1, |
| 4902 | restore it from there. |
| 4903 | (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init |
| 4904 | unconditionally so that mmap_fd can be initialized there. |
| 4905 | (r_alloc_init_fd): Open-coded in r_alloc_init; function removed. |
| 4906 | (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero. |
| 4907 | (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1. |
| 4908 | |
| 4909 | * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object. |
| 4910 | |
| 4911 | * xdisp.c (dump_glyph_row): Fix printf format string. |
| 4912 | (display_line, move_it_in_display_line_to): Avoid compiler |
| 4913 | warnings. |
| 4914 | |
| 4915 | * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define. |
| 4916 | |
| 4917 | * keymap.c (Fset_keymap_parent): Check for cycles in keymap |
| 4918 | inheritance. |
| 4919 | |
| 4920 | * xdisp.c (try_window_id): When trying to locate cursor in |
| 4921 | unchanged rows at the top, handle the case that we can't find it. |
| 4922 | |
| 4923 | * xterm.c (x_draw_glyphs): Handle case START and END are out |
| 4924 | of bounds more carefully. |
| 4925 | |
| 4926 | 2000-09-08 Dave Love <fx@gnu.org> |
| 4927 | |
| 4928 | * s/sol2.h (REL_ALLOC_MMAP): Define. |
| 4929 | * s/irix5-0.h (REL_ALLOC_MMAP): Likewise. |
| 4930 | |
| 4931 | * ralloc.c: Don't include string.h (redundant). |
| 4932 | (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined. |
| 4933 | [!MAP_ANON]: Include fcntl.h. |
| 4934 | (mmap_fd) [REL_ALLOC_MMAP]: New variable. |
| 4935 | (r_alloc, r_re_alloc, r_alloc_free) |
| 4936 | (mmap_enlarge, mmap_set_vars): Use it. |
| 4937 | (r_alloc_init_fd): New function. |
| 4938 | (__morecore) [SYSTEM_MALLOC]: Don't declare. |
| 4939 | (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on |
| 4940 | malloc type. |
| 4941 | |
| 4942 | * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: |
| 4943 | Remove vm-limit.o. |
| 4944 | |
| 4945 | * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last |
| 4946 | change to __NetBSD__. |
| 4947 | |
| 4948 | 2000-09-08 Kenichi Handa <handa@etl.go.jp> |
| 4949 | |
| 4950 | * search.c (compile_pattern): Check the multibyteness of cached |
| 4951 | string and PATTERN. |
| 4952 | |
| 4953 | 2000-09-08 Miles Bader <miles@gnu.org> |
| 4954 | |
| 4955 | * xfaces.c (default_face_vector): Function removed. |
| 4956 | (Finternal_merge_in_global_face): Restore old global/local |
| 4957 | attribute override order. Use inline loop instead of calling |
| 4958 | default_face_vector. |
| 4959 | |
| 4960 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
| 4961 | |
| 4962 | * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use) |
| 4963 | (get_bloc, relocate_blocs, update_heap_bloc_correspondence) |
| 4964 | (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *' |
| 4965 | where necessary, in case POINTER_TYPE is `void'. |
| 4966 | |
| 4967 | 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 4968 | |
| 4969 | * frame.c (make_terminal_frame): Initialize frame foreground and |
| 4970 | background colors to unspecified, for the initial instance of an |
| 4971 | MSDOS frame. |
| 4972 | |
| 4973 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
| 4974 | |
| 4975 | * ralloc.c (mmap_find): Fix overlap computation. |
| 4976 | (mmap_enlarge): Compute nbytes before trying to find an |
| 4977 | overlapping region. |
| 4978 | |
| 4979 | * xfaces.c (smaller_face): Compare font heights with `<' and `>' |
| 4980 | instead of `!='. |
| 4981 | |
| 4982 | * lread.c (syms_of_lread): Change value of regexp |
| 4983 | Vbytecomp_version_regexp to not match some XEmacs-compiled files. |
| 4984 | |
| 4985 | * xmenu.c (xdialog_show): When looking up the selection in |
| 4986 | menu_items, take `quote' boundaries into account; this corresponds |
| 4987 | to a nil ITEM in x-popup-dialog. |
| 4988 | |
| 4989 | 2000-09-07 Kenichi Handa <handa@etl.go.jp> |
| 4990 | |
| 4991 | * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80, |
| 4992 | not 0x81. |
| 4993 | (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7). |
| 4994 | |
| 4995 | * coding.c (encode_coding_sjis_big5): Use translation table for |
| 4996 | encoding, not decoding. Fix the handling of latin-jisx0201. |
| 4997 | Check for the charset katakana-jisx0201 too. |
| 4998 | (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1. |
| 4999 | (detect_coding_sjis): Check the byte sequence more rigidly. |
| 5000 | |
| 5001 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
| 5002 | |
| 5003 | * xfaces.c (Vparam_value_alist): New variable. |
| 5004 | (syms_of_xfaces): Initialize it. |
| 5005 | (Finternal_set_lisp_face_attribute): Avoid more consing. |
| 5006 | |
| 5007 | * frame.c (Fframe_parameter): Handle `name' and `background-mode' |
| 5008 | specially. |
| 5009 | (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially. |
| 5010 | (Qbackground_mode): New variable. |
| 5011 | (syms_of_frame_1): Initialize Qbackground_mode. |
| 5012 | |
| 5013 | * lisp.h (Qdisplay): Declare extern. |
| 5014 | |
| 5015 | * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0, |
| 5016 | change face on all frames, and change the default for new frames. |
| 5017 | |
| 5018 | 2000-09-07 Dave Love <fx@gnu.org> |
| 5019 | |
| 5020 | * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj. |
| 5021 | |
| 5022 | 2000-09-07 Kenichi Handa <handa@etl.go.jp> |
| 5023 | |
| 5024 | * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0. |
| 5025 | |
| 5026 | * charset.c: Include composite.h |
| 5027 | (lisp_string_width): New function. |
| 5028 | (Fstring_width): Call lisp_string_width instead of strwidth. |
| 5029 | |
| 5030 | * Makefile.in (charset.o): Depends on composite.h. |
| 5031 | |
| 5032 | * process.c (read_process_output): Before inserting the decoded |
| 5033 | text in the buffer, adjust the multibyteness. |
| 5034 | |
| 5035 | 2000-09-06 Gerd Moellmann <gerd@gnu.org> |
| 5036 | |
| 5037 | * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If |
| 5038 | buffer's text buffer is null, map new memory. |
| 5039 | |
| 5040 | * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of |
| 5041 | POINTER_TYPE and size_t. |
| 5042 | (struct mmap_region) [REL_ALLOC_MMAP]: New structure. |
| 5043 | (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables. |
| 5044 | (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA) |
| 5045 | [REL_ALLOC_MMAP]: New macros. |
| 5046 | (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars) |
| 5047 | (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free) |
| 5048 | [REL_ALLOC_MMAP]: New functions. |
| 5049 | |
| 5050 | * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars |
| 5051 | before and after unexec. |
| 5052 | |
| 5053 | * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer |
| 5054 | text buffers if necessary. |
| 5055 | |
| 5056 | * buffer.h (R_ALLOC_DECLARE): Removed because unused. |
| 5057 | (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t |
| 5058 | in prototypes. |
| 5059 | |
| 5060 | * config.in (HAVE_MMAP): Add #undef. |
| 5061 | |
| 5062 | 2000-09-05 Gerd Moellmann <gerd@gnu.org> |
| 5063 | |
| 5064 | * frame.c (Qdisplay_type): New variable. |
| 5065 | (syms_of_frame_1): Initialize it. |
| 5066 | (Fframe_parameter): New function that avoids consing. |
| 5067 | (syms_of_frame): Defsubr it. |
| 5068 | |
| 5069 | * buffer.c (Fother_buffer): Consider buffers as invisible when |
| 5070 | they are displayed in a window on an invisible frame. |
| 5071 | |
| 5072 | * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making |
| 5073 | get-largest-window always return nil. |
| 5074 | |
| 5075 | 2000-09-04 Gerd Moellmann <gerd@gnu.org> |
| 5076 | |
| 5077 | * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp |
| 5078 | variable; recognize Emacs 19 elc files. |
| 5079 | |
| 5080 | 2000-09-04 Miles Bader <miles@gnu.org> |
| 5081 | |
| 5082 | * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face |
| 5083 | before initially popping up the menu, so the menu doesn't flash |
| 5084 | when the face settings are significantly different from the |
| 5085 | defaults. |
| 5086 | |
| 5087 | 2000-09-04 Stefan Monnier <monnier@cs.yale.edu> |
| 5088 | |
| 5089 | * regex.c (WIDE_CHAR_SUPPORT): New macro. |
| 5090 | (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>. |
| 5091 | (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT) |
| 5092 | (BIT_UNIBYTE): Remove. |
| 5093 | (re_match_2_internal): Delete corresponding code and streamline the |
| 5094 | BIT_MULTIBYTE case to not bother checking ISUNIBYTE. |
| 5095 | (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6. |
| 5096 | (re_wctype_t): New type. |
| 5097 | (re_wctype, re_iswctype, re_wctype_to_bit): New functions. |
| 5098 | (regex_compile): Use them and fix handling of overly long char classes. |
| 5099 | |
| 5100 | 2000-09-03 Andrew Innes <andrewi@gnu.org> |
| 5101 | |
| 5102 | * makefile.w32-in: Change to DOS line endings. |
| 5103 | |
| 5104 | * s/ms-w32.h (ORDINARY_LINK): New define. |
| 5105 | |
| 5106 | * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define |
| 5107 | (_ANONYMOUS_STRUCT) [__GNUC__]: New define. |
| 5108 | |
| 5109 | * makefile.w32-in (clean): Don't delete config.h and epaths.h. |
| 5110 | (distclean): Delete them here instead. |
| 5111 | |
| 5112 | * w32proc.c (compare_env): Convert to uppercase for comparison, |
| 5113 | not lowercase, to match how the native Windows shell works. |
| 5114 | |
| 5115 | 2000-09-03 Jason Rumney <jasonr@gnu.org> |
| 5116 | |
| 5117 | * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as |
| 5118 | CVS changes the line-ends when checking in/out on DOS/Windows. |
| 5119 | |
| 5120 | * makefile.nt (emacs): Do not change directory to run temacs, as |
| 5121 | the load-path is set relative to current directory. |
| 5122 | |
| 5123 | 2000-09-03 Miles Bader <miles@gnu.org> |
| 5124 | |
| 5125 | * xterm.c (x_alloc_lighter_color_for_widget): New function. |
| 5126 | |
| 5127 | 2000-09-02 Gerd Moellmann <gerd@gnu.org> |
| 5128 | |
| 5129 | * xdisp.c (redisplay_mode_lines): New function. |
| 5130 | (display_mode_lines): Return number of mode lines displayed. |
| 5131 | (echo_area_display): Use redisplay_mode_lines to draw garbaged |
| 5132 | mode lines. Don't temporarily bind redisplay-dont-pause to t. |
| 5133 | |
| 5134 | * emacs.c, callint.c, doc.c, editfns.c: Remove includes of |
| 5135 | string.h and strings.h. |
| 5136 | (index) [HAVE_INDEX]: Add prototype. |
| 5137 | |
| 5138 | * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define. |
| 5139 | (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define. |
| 5140 | |
| 5141 | * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>. |
| 5142 | (GC_SETJMP_WORKS, GC_MARK_STACK): Define. |
| 5143 | |
| 5144 | 2000-09-01 Gerd Moellmann <gerd@gnu.org> |
| 5145 | |
| 5146 | * lread.c (read1): Accept `?' as symbol constituent, for |
| 5147 | compatiblity with XEmacs. |
| 5148 | |
| 5149 | 2000-08-31 Stefan Monnier <monnier@cs.yale.edu> |
| 5150 | |
| 5151 | * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag. |
| 5152 | (struct re_pattern_buffer): Remove newline_anchor. |
| 5153 | * regex.c: Keep namespace clean for GNU libc by renaming <fun> |
| 5154 | to __<fun> and using `weak_alias (__<fun>, <fun>)'. |
| 5155 | (re_max_failures, fail_stack): Use size_t rather than unsigned. |
| 5156 | (regex_compile): For ^ and $, choose between buffer and line (beg|end) |
| 5157 | depending on the new RE_NO_NEWLINE_ANCHOR syntax flag. |
| 5158 | (print_compiled_pattern, re_search_2, mutually_exclusive_p) |
| 5159 | (re_match_2_internal, re_compile_pattern, re_comp, regcomp): |
| 5160 | Get rid of references to newline_anchor. |
| 5161 | (regcomp): Allocate and precompute a fastmap. |
| 5162 | |
| 5163 | 2000-08-31 Gerd Moellmann <gerd@gnu.org> |
| 5164 | |
| 5165 | * lread.c (openp): GCPRO local variable `filename'. |
| 5166 | |
| 5167 | 2000-08-30 Stefan Monnier <monnier@cs.yale.edu> |
| 5168 | |
| 5169 | * regex.h (struct re_pattern_buffer): Use size_t for used/allocated. |
| 5170 | |
| 5171 | * regex.c: Merge some changes from GNU libc. Add prototypes. |
| 5172 | (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal): |
| 5173 | Use memcmp and memcpy instead of bcopy and bcmp. |
| 5174 | (init_syntax_once): Use ISALNUM. |
| 5175 | (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id. |
| 5176 | (REG_UNSET_VALUE): Remove. Use NULL instead. |
| 5177 | (REG_UNSET, re_match_2_internal): Use NULL. |
| 5178 | (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND): |
| 5179 | New macros. |
| 5180 | (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS). |
| 5181 | (GET_UNSIGNED_NUMBER): Don't use ISDIGIT. |
| 5182 | (regex_compile): In handle_interval, return an error rather than try to |
| 5183 | unfetch the interval if we can't find the closing brace. |
| 5184 | Obey the RE_NO_GNU_OPS syntax bit. |
| 5185 | (TOLOWER): New macro. |
| 5186 | (regcomp): Use it. |
| 5187 | (regexec): Allocate regs.start and regs.end as one block. |
| 5188 | |
| 5189 | 2000-08-30 Gerd Moellmann <gerd@gnu.org> |
| 5190 | |
| 5191 | * xdisp.c (echo_area_display): Check display_completed instead |
| 5192 | of calling detect_input_pending. |
| 5193 | |
| 5194 | * dispnew.c (update_frame): Only set display_completed here; move |
| 5195 | the update_begin and update_end calls here from update_frame_1. |
| 5196 | (update_frame_1): Don't set display_completed here, don't call |
| 5197 | update_begin/update_end. |
| 5198 | |
| 5199 | * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters |
| 5200 | instead of store_frame_param. |
| 5201 | |
| 5202 | 2000-08-29 Gerd Moellmann <gerd@gnu.org> |
| 5203 | |
| 5204 | * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a |
| 5205 | desired window matrix hasn't been displayed, use the current row |
| 5206 | instead. Make sure that only those frame rows are updated for |
| 5207 | which there exists a corresponding enabled desired row. |
| 5208 | |
| 5209 | 2000-08-29 Miles Bader <miles@gnu.org> |
| 5210 | |
| 5211 | * xfaces.c (default_face_vector): New function. |
| 5212 | (Finternal_merge_in_global_face): Use it instead of merge_face_vectors. |
| 5213 | |
| 5214 | 2000-08-29 Gerd Moellmann <gerd@gnu.org> |
| 5215 | |
| 5216 | * lread.c (openp): Prevent temporary string passed to |
| 5217 | Ffile_readable_p from being garbage collected. |
| 5218 | |
| 5219 | 2000-08-28 Dave Love <fx@gnu.org> |
| 5220 | |
| 5221 | * keymap.c (store_in_keymap): Add `static' to declaration. |
| 5222 | |
| 5223 | 2000-08-28 Gerd Moellmann <gerd@gnu.org> |
| 5224 | |
| 5225 | * emacs.c, callint.c, doc.c, editfns.c |
| 5226 | (toplevel) [HAVE_STRING_H]: Include string.h. |
| 5227 | (toplevel) [HAVE_STRINGS_H]: Include strings.h. |
| 5228 | (index): Remove prototypes which might conflict with non-standard |
| 5229 | definitions of index/strchr. |
| 5230 | |
| 5231 | * s/usg5-3.h (index): Define only if not HAVE_INDEX. |
| 5232 | (rindex): Define only if !HAVE_RINDEX. |
| 5233 | |
| 5234 | * s/sco5.h (bcopy, bzero, bcmp): Don't define. |
| 5235 | |
| 5236 | * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs. |
| 5237 | |
| 5238 | 2000-08-28 Miles Bader <miles@gnu.org> |
| 5239 | |
| 5240 | * xfaces.c (merge_face_vectors): Clear TO's :font attribute if |
| 5241 | made inconsistent by a font-related attribute in FROM. |
| 5242 | (merge_face_inheritance): Add function comment. |
| 5243 | |
| 5244 | 2000-08-28 Kenichi Handa <handa@etl.go.jp> |
| 5245 | |
| 5246 | * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with |
| 5247 | the 4th arg (PREV_EVENT) Qt to suppress input method. |
| 5248 | |
| 5249 | 2000-08-27 Stefan Monnier <monnier@cs.yale.edu> |
| 5250 | |
| 5251 | * regex.c: Indent cpp directives and remove parens after `defined'. |
| 5252 | (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place. |
| 5253 | (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition. |
| 5254 | (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY. |
| 5255 | (re_compile_pattern): Use size_t for length. |
| 5256 | (init_syntax_once): Move to a better place. |
| 5257 | * regex.h: Merge changes from GNU libc. Indent cpp directives. |
| 5258 | (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning). |
| 5259 | |
| 5260 | * syntax.c (back_comment): Detect cases where a comment-starter is |
| 5261 | actually inside another comment as in: /* a // b */ c // d \n. |
| 5262 | Make it clear that `comstart_pos' is unused for nested comments. |
| 5263 | |
| 5264 | * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes. |
| 5265 | (KEYMAPP): New macro. |
| 5266 | (Fkeymap_parent, Fset_keymap_parent): Use it. |
| 5267 | (fix_submap_inheritance): Mark it static. |
| 5268 | (define_as_prefix, describe_buffer_bindings, describe_command) |
| 5269 | (describe_translation, describe_map): Complete prototypes. |
| 5270 | |
| 5271 | * lisp.h (store_in_keymap, fix_submap_inheritance): Remove. |
| 5272 | |
| 5273 | * keyboard.c (menu_bar_item): Detect duplicate entries for all items |
| 5274 | to better match the key-lookup behavior. |
| 5275 | |
| 5276 | 2000-08-27 Gerd Moellmann <gerd@gnu.org> |
| 5277 | |
| 5278 | * xfaces.c (lface_fully_specified_p): Handle :inherit. |
| 5279 | (Finternal_set_lisp_face_attribute): Fix typo in error message. |
| 5280 | |
| 5281 | 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il> |
| 5282 | |
| 5283 | * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o) |
| 5284 | (process.o, scroll.o, sysdep.o): Depend on keyboard.h. |
| 5285 | (xterm.o): Depend on coding.h |
| 5286 | |
| 5287 | 2000-08-26 Kenichi Handa <handa@etl.go.jp> |
| 5288 | |
| 5289 | * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and |
| 5290 | the corresponding '#endif'. |
| 5291 | |
| 5292 | 2000-08-26 Miles Bader <miles@gnu.org> |
| 5293 | |
| 5294 | * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX. |
| 5295 | * xfaces.c (QCinherit): New variable. |
| 5296 | (syms_of_xfaces): Initialize it. |
| 5297 | (LFACE_INHERIT): New macro. |
| 5298 | (Finternal_get_lisp_face_attribute) |
| 5299 | (merge_face_vector_with_property) |
| 5300 | (Finternal_set_lisp_face_attribute): Deal with :inherit attribute. |
| 5301 | (check_lface_attrs): Allow new types of face height. Check |
| 5302 | inherit attribute. |
| 5303 | (CYCLE_CHECK): New macro. |
| 5304 | (merge_face_inheritance): New function. |
| 5305 | (merge_face_vectors): Merge inherited faces too. Add F and |
| 5306 | CYCLE_CHECK arguments. |
| 5307 | (merge_face_vector_with_property, Finternal_merge_in_global_face) |
| 5308 | (lookup_named_face, lookup_derived_face, realize_named_face) |
| 5309 | (face_at_string_position, face_at_buffer_position): Supply |
| 5310 | new F and CYCLE_CHECK arguments to merge_face_vectors. |
| 5311 | (merge_face_heights): New function. |
| 5312 | (merge_face_vectors, merge_face_vector_with_property) |
| 5313 | (Finternal_set_lisp_face_attribute): Call merge_face_heights to |
| 5314 | handle relative face heights. |
| 5315 | (lface_same_font_attributes_p): Compare heights using EQ. |
| 5316 | |
| 5317 | 2000-08-26 Kenichi Handa <handa@etl.go.jp> |
| 5318 | |
| 5319 | * charset.c (char_to_string): Check the character validity. |
| 5320 | (char_valid_p): If C is not less than MAX_CHAR, be sure to return |
| 5321 | 0. |
| 5322 | |
| 5323 | 2000-08-25 Stefan Monnier <monnier@cs.yale.edu> |
| 5324 | |
| 5325 | * regex.c (PUSH_FAILURE_COUNT): New macro. |
| 5326 | (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG. |
| 5327 | Handle popping of a register's or a counter's data. |
| 5328 | (POP_FAILURE_POINT): Use the new name. |
| 5329 | (re_match_2_internal): Push counter data on the stack for succeed_n, |
| 5330 | jump_n and set_number_at and remove misleading dead code in succeed_n. |
| 5331 | |
| 5332 | 2000-08-25 Gerd Moellmann <gerd@gnu.org> |
| 5333 | |
| 5334 | * xdisp.c (redisplay_internal): If considering all windows on all |
| 5335 | frames, update the display for each frame as soon as possible, |
| 5336 | instead of first building all desired matrices for all frames, and |
| 5337 | then updating them all. |
| 5338 | (try_cursor_movement): Handle case that last_cursor.vpos is -1. |
| 5339 | |
| 5340 | 2000-08-24 Gerd Moellmann <gerd@gnu.org> |
| 5341 | |
| 5342 | * bytecode.c (mark_byte_stack): Add a comment. |
| 5343 | |
| 5344 | * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH) |
| 5345 | (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is |
| 5346 | a graphical frame. |
| 5347 | |
| 5348 | 2000-08-24 Kenichi Handa <handa@etl.go.jp> |
| 5349 | |
| 5350 | * minibuf.c (do_completion): Always use compare-string, not |
| 5351 | string-equal because the latter doesn't pay attention to |
| 5352 | multibyteness of strings. |
| 5353 | |
| 5354 | * process.c (create_process): Don't setup raw-text coding here. |
| 5355 | (Fopen_network_stream): Don't set coding->src_multibyte and |
| 5356 | coding->dst_multibyte here. |
| 5357 | (read_process_output): For process filter, return unibyte string |
| 5358 | if default-enable-multibyte-characters is nil. |
| 5359 | (send_process): If OBJECT is multibyte text, be sure to encoded it |
| 5360 | by the specified coding system for the process. Otherwise, setup |
| 5361 | raw-text coding. |
| 5362 | (init_process): Don't initialize default-process-coding-system |
| 5363 | here. |
| 5364 | |
| 5365 | 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 5366 | |
| 5367 | * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix. |
| 5368 | <scroll-down-aggressively>: Likewise. |
| 5369 | |
| 5370 | 2000-08-23 Kenichi Handa <handa@etl.go.jp> |
| 5371 | |
| 5372 | * coding.c (encode_eol): Fix bug for the case of dst_bytes being |
| 5373 | zero. Set coding->produced_char correctly. |
| 5374 | |
| 5375 | 2000-08-22 Andrew Innes <andrewi@gnu.org> |
| 5376 | |
| 5377 | * makefile.w32-in: New file. |
| 5378 | |
| 5379 | * unexw32.c (unexec): Ignore old_name, and use the actual location |
| 5380 | of the current executable instead. Base new_name on this. |
| 5381 | |
| 5382 | * w32proc.c (create_child): Remove reference to security |
| 5383 | descriptor, which isn't needed and doesn't compile with mingw32. |
| 5384 | |
| 5385 | * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5386 | up dllimport attributes. |
| 5387 | (x_update_window_end): Update prototype. |
| 5388 | |
| 5389 | * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary |
| 5390 | extern, which screws up dllimport attributes. |
| 5391 | |
| 5392 | * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5393 | up dllimport attributes. |
| 5394 | |
| 5395 | * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which |
| 5396 | screws up dllimport attributes. |
| 5397 | |
| 5398 | * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5399 | up dllimport attributes. |
| 5400 | (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which |
| 5401 | screws up dllimport attributes. |
| 5402 | |
| 5403 | * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5404 | up dllimport attributes. |
| 5405 | |
| 5406 | * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which |
| 5407 | screws up dllimport attributes. |
| 5408 | |
| 5409 | * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which |
| 5410 | screws up dllimport attributes. |
| 5411 | |
| 5412 | * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5413 | up dllimport attributes. |
| 5414 | |
| 5415 | * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove |
| 5416 | unnecessary extern, which screws up dllimport attributes. |
| 5417 | (main): Ditto. |
| 5418 | |
| 5419 | * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5420 | up dllimport attributes. |
| 5421 | |
| 5422 | * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove |
| 5423 | unnecessary extern, which screws up dllimport attributes. |
| 5424 | |
| 5425 | * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which |
| 5426 | screws up dllimport attributes. |
| 5427 | |
| 5428 | * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws |
| 5429 | up dllimport attributes. |
| 5430 | |
| 5431 | * w32proc.c (IsValidLocale): Extern missing from mingw32 headers. |
| 5432 | |
| 5433 | * w32bdf.c (search_file_line): |
| 5434 | (set_bdf_font_info): |
| 5435 | (seek_char): |
| 5436 | (w32_get_bdf_glyph): |
| 5437 | (w32_BDF_to_x_font): Fix compile warnings. |
| 5438 | |
| 5439 | * w32menu.c: Include keyboard.h before frame.h. Fix compile |
| 5440 | warnings. |
| 5441 | |
| 5442 | * w32select.c: Include keyboard.h before frame.h. |
| 5443 | |
| 5444 | * w32fns.c (max): Define macro. |
| 5445 | (JOHAB_CHARSET): Define if not known. |
| 5446 | (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known. |
| 5447 | (Fx_show_tip): Synch with X version. |
| 5448 | |
| 5449 | * w32xfns.c: Include keyboard.h before frame.h. |
| 5450 | |
| 5451 | * w32fns.c: Include keyboard.h before frame.h. |
| 5452 | |
| 5453 | * w32term.c: Include keyboard.h before frame.h. |
| 5454 | |
| 5455 | * fontset.c: Include keyboard.h before frame.h. |
| 5456 | |
| 5457 | * w32inevt.c: Include keyboard.h before frame.h. |
| 5458 | (MOUSE_MOVED): Define if not known. |
| 5459 | |
| 5460 | * minibuf.c: Include keyboard.h before frame.h. |
| 5461 | |
| 5462 | * keyboard.c: Include keyboard.h before frame.h. |
| 5463 | |
| 5464 | * indent.c: Include keyboard.h before frame.h. |
| 5465 | |
| 5466 | * dispnew.c: Include keyboard.h before frame.h. |
| 5467 | |
| 5468 | * buffer.c: Include keyboard.h before frame.h. |
| 5469 | |
| 5470 | * alloc.c: Include keyboard.h before frame.h. |
| 5471 | |
| 5472 | * print.c: Include keyboard.h before frame.h. |
| 5473 | |
| 5474 | * process.c: Include keyboard.h before frame.h. |
| 5475 | |
| 5476 | * scroll.c: Include keyboard.h before frame.h. |
| 5477 | |
| 5478 | * sysdep.c: Include keyboard.h before frame.h. |
| 5479 | |
| 5480 | * term.c: Include keyboard.h before frame.h. |
| 5481 | |
| 5482 | * window.c: Include keyboard.h before frame.h. |
| 5483 | |
| 5484 | * xdisp.c: Include keyboard.h before frame.h. |
| 5485 | Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE. |
| 5486 | |
| 5487 | * frame.c: Include keyboard.h before frame.h. |
| 5488 | |
| 5489 | * w32heap.h: Undefine min, max. |
| 5490 | |
| 5491 | * w32gui.h: Undefine min, max. |
| 5492 | |
| 5493 | * unexw32.c: Change PUCHAR to PCHAR. |
| 5494 | (PTR_TO_OFFSET): Cast ptr to unsigned char *. |
| 5495 | (relocate_offset): |
| 5496 | (get_section_info): |
| 5497 | (copy_executable_and_dump_data): Remove unnecessary static defs. |
| 5498 | (copy_executable_and_dump_data): Fix compile warnings. |
| 5499 | |
| 5500 | * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined. |
| 5501 | |
| 5502 | * w32console.c (min): Define macro. |
| 5503 | (clear_frame, write_glyphs): Fix compile warning. |
| 5504 | |
| 5505 | * w32proc.c (compare_env): |
| 5506 | (find_child_console): Fix compile warning. |
| 5507 | |
| 5508 | * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use |
| 5509 | sys_errlist instead of _sys_errlist. |
| 5510 | (get_emacs_configuration_options): New function. |
| 5511 | |
| 5512 | * s/ms-w32.h (sys_nerr): Provide default definition. |
| 5513 | (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same |
| 5514 | name with _ prepended. |
| 5515 | (NSIG): Define if not known. |
| 5516 | (get_emacs_configuration): Provide extern declaration. |
| 5517 | (get_emacs_configuration_options): Provide extern declaration. |
| 5518 | (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options. |
| 5519 | |
| 5520 | * w32.c (gettimeofday): Use struct timeb, not struct _timeb. |
| 5521 | (map_w32_filename): |
| 5522 | (read_unc_volume): Fix compile warning. |
| 5523 | |
| 5524 | * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock |
| 5525 | definitions from being used. |
| 5526 | |
| 5527 | * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd. |
| 5528 | |
| 5529 | * w32.c (unc_volume_file_attributes): |
| 5530 | (open_unc_volume): Make arg const. |
| 5531 | |
| 5532 | * sysdep.c [WINDOWSNT]: Remove extern decl of errno. |
| 5533 | (read_input_waiting): Remove excess parameter. |
| 5534 | |
| 5535 | * w32.c (init_environment): Call _access. |
| 5536 | (check_windows_init_file): Call _close. |
| 5537 | (init_user_info): Call _putenv. |
| 5538 | (init_environment): Call _putenv and _strdup. |
| 5539 | (init_ntproc): Reset volume info cache on startup. |
| 5540 | |
| 5541 | * s/ms-w32.h (malloc, free, realloc, calloc): Rename if |
| 5542 | USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it |
| 5543 | cannot override the CRT malloc. |
| 5544 | |
| 5545 | * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested. |
| 5546 | (LINK_FLAGS): Append to original value of LINK_FLAGS. |
| 5547 | |
| 5548 | * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term |
| 5549 | unless we are linking with a static CRT. |
| 5550 | (RVA_TO_PTR): Cast result to unsigned char*. |
| 5551 | |
| 5552 | * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup. |
| 5553 | (add_volume_info): Use xstrdup. |
| 5554 | |
| 5555 | 2000-08-22 Stefan Monnier <monnier@cs.yale.edu> |
| 5556 | |
| 5557 | * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'. |
| 5558 | (do_completion, Fminibuffer_complete_word): Use it. |
| 5559 | (syms_of_minibuf): Turn completion-auto-help into a proper Lisp |
| 5560 | var so it can take non-boolean values. |
| 5561 | |
| 5562 | 2000-08-21 Gerd Moellmann <gerd@gnu.org> |
| 5563 | |
| 5564 | * editfns.c (find_field): Formatting changes. |
| 5565 | (toplevel): Some old-style function forward declarations |
| 5566 | changed to prototypes, some new protypes added, some functions |
| 5567 | made static. |
| 5568 | |
| 5569 | * lisp.h (set_time_zone_rule): Add prototype. |
| 5570 | (use_dialog_box): External declaration. |
| 5571 | |
| 5572 | * keyboard.c (gen_help_event): Add parameter SIZE. |
| 5573 | (kbd_buffer_events_waiting): Slightly rewritten. |
| 5574 | (clear_event): New function. |
| 5575 | (kbd_buffer_get_event): Use it, and clear the input_events of |
| 5576 | HELP_EVENTs. |
| 5577 | (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and |
| 5578 | don't fill the newly created array with nils. |
| 5579 | (toplevel): Convert some old-style function forward declarations |
| 5580 | to prototypes. |
| 5581 | |
| 5582 | * keyboard.h (gen_help_event): Change prototype. |
| 5583 | |
| 5584 | * xterm.c (XTread_socket): Change calls to gen_help_event. |
| 5585 | |
| 5586 | * w32term.c (w32_read_socket): Change calls to gen_help_event. |
| 5587 | |
| 5588 | * eval.c (Fmacroexpand): Doc fix. |
| 5589 | |
| 5590 | 2000-08-20 Jason Rumney <jasonr@gnu.org> |
| 5591 | |
| 5592 | * w32term.h (x_display_info_for_display): Remove as this function |
| 5593 | does not exist on W32. |
| 5594 | |
| 5595 | * w32term.c (help_echo_window): New variable. |
| 5596 | (syms_of_w32term): staticpro it. |
| 5597 | (note_mode_line_highlight): Set it. |
| 5598 | (XTextExtents16): Removed as there is no equivalent on W32. |
| 5599 | (x_compute_glyph_string_overhangs): Incomplete body removed, as |
| 5600 | the X way of doing this will not work for W32. |
| 5601 | (w32_intersect_rectangles): Removed. Use IntersectRect API call. |
| 5602 | (x_draw_image_foreground): Avoid drawing outside of the clip area |
| 5603 | when image doesn't have a mask. |
| 5604 | (note_mouse_highlight): Process overlays in the right order of |
| 5605 | priority. Set help_echo_window. |
| 5606 | (x_draw_bar_cursor): If cursor is on an image, draw a box cursor |
| 5607 | because that's more visible for large images. |
| 5608 | |
| 5609 | * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane |
| 5610 | name to single_keymap_panes. |
| 5611 | (w32_menu_show): Set wv->title when dealing with titles. |
| 5612 | (w32_menu_display_help): Call show_help_echo with OBJECT and POS. |
| 5613 | |
| 5614 | 2000-08-21 Miles Bader <miles@gnu.org> |
| 5615 | |
| 5616 | * minibuf.c (do_completion): Try again if we rewrite the input |
| 5617 | string, but no completion was done, so that any completion message |
| 5618 | will be correct. |
| 5619 | |
| 5620 | 2000-08-20 Gerd Moellmann <gerd@gnu.org> |
| 5621 | |
| 5622 | * xfaces.c (lface_equal_p): Compare strings differently. |
| 5623 | (Qtty_color_alist, Vtty_defined_color_alist): New variables. |
| 5624 | (realize_tty_face): Use them. |
| 5625 | (syms_of_xfaces): Initialize new variables. |
| 5626 | (map_tty_color): New function, extracted from realize_tty_face. |
| 5627 | (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default |
| 5628 | foreground or background color, store the new color name in the |
| 5629 | realized face; previous code trying to do this had no effect. |
| 5630 | (realize_tty_face): Use map_tty_color. |
| 5631 | (Fclear_face_cache): Set face_change_count and ensure thorough |
| 5632 | redisplay. |
| 5633 | |
| 5634 | 2000-08-19 Gerd Moellmann <gerd@gnu.org> |
| 5635 | |
| 5636 | * undo.c (record_first_change, record_marker_adjustment): Don't |
| 5637 | use XBUFFER on last_undo_buffer which might not be a buffer. |
| 5638 | |
| 5639 | 2000-08-18 Kenichi Handa <handa@etl.go.jp> |
| 5640 | |
| 5641 | * coding.c (decode_coding_string): Set members consumed, |
| 5642 | consumed_char, produced, produced_char of *coding correctly. If |
| 5643 | decode_coding doesn't consume any byte, don't try anymore. |
| 5644 | (encode_coding_string): Likewise. |
| 5645 | |
| 5646 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> |
| 5647 | |
| 5648 | * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the |
| 5649 | conditional have void type, for Standard C compilers. |
| 5650 | |
| 5651 | * xdisp.c (redisplay_internal): Compare windows for equality with |
| 5652 | EQ, instead of applying XWINDOW to something that might not |
| 5653 | be a window. |
| 5654 | |
| 5655 | 2000-08-18 Kenichi Handa <handa@etl.go.jp> |
| 5656 | |
| 5657 | * fontset.c (Finternal_char_font): Search only the selected frame |
| 5658 | for a window of the current buffer. |
| 5659 | |
| 5660 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> |
| 5661 | |
| 5662 | * minibuf.c (do_completion): Use EQ instead of `!=' to compare |
| 5663 | Lisp_Objects. |
| 5664 | |
| 5665 | * keyboard.c (kbd_buffer_get_event): Handle the case that the |
| 5666 | second half of a HELP_EVENT is found at the start of kbd_buffer. |
| 5667 | |
| 5668 | 2000-08-18 Miles Bader <miles@gnu.org> |
| 5669 | |
| 5670 | * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl. |
| 5671 | |
| 5672 | * editfns.c (save_restriction_save): Rewrite to use markers. |
| 5673 | (save_restriction_restore): Rewrite to understand new form of data |
| 5674 | saved by save_restriction_save. |
| 5675 | (Fsave_restriction): Remove cautionary note in doc-string. |
| 5676 | |
| 5677 | 2000-08-17 Gerd Moellmann <gerd@gnu.org> |
| 5678 | |
| 5679 | * fileio.c (build_annotations): Add a comment explaining the |
| 5680 | return value of format-annotate-function. Replace a spurious call |
| 5681 | to Flength with a CONSP test. Call format-annotate-function with |
| 5682 | a fifth arg specifying how many times the function is been called |
| 5683 | in a row, to let it choose temporary buffers appropriately. |
| 5684 | |
| 5685 | 2000-08-17 Dave Love <fx@gnu.org> |
| 5686 | |
| 5687 | * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't |
| 5688 | declare make_temp_name twice. |
| 5689 | |
| 5690 | * lread.c: Prototype readevalloop, load_unwind, |
| 5691 | load_descriptor_unwind. |
| 5692 | (unreadpure): Give it an arg. |
| 5693 | |
| 5694 | * unexalpha.c: Prototype fatal_unexec, mark_x, |
| 5695 | update_dynamic_symbols. Declare unexec as void. |
| 5696 | |
| 5697 | * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>. |
| 5698 | [!HAVE_TERMCAP_H]: Prototype tputs, tgoto. |
| 5699 | |
| 5700 | * alloc.c (lisp_malloc): Declare with POINTER_TYPE. |
| 5701 | [SYSTEM_MALLOC]: Make decls in malloc.h conditional on |
| 5702 | DOUG_LEA_MALLOC. |
| 5703 | |
| 5704 | * alloca.c: Use #error. |
| 5705 | [POINTER_TYPE]: Use it. |
| 5706 | |
| 5707 | * eval.c (Fdefvar): Doc fix. |
| 5708 | |
| 5709 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid |
| 5710 | INITIALIZE_INTERVAL. |
| 5711 | |
| 5712 | * buffer.h: Avoid DECLARE_INTERVALS. |
| 5713 | |
| 5714 | * config.in: Add size_t. |
| 5715 | |
| 5716 | 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il> |
| 5717 | |
| 5718 | * w16select.c (set_clipboard_data): If there's not enough memory |
| 5719 | to put text into clipboard, return 1, as Fw16_set_clipboard_data |
| 5720 | expects. In case of other failures, return 3. |
| 5721 | (system_error_msg): New error message. |
| 5722 | (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print |
| 5723 | system_error_msg. |
| 5724 | |
| 5725 | 2000-08-16 Gerd Moellmann <gerd@gnu.org> |
| 5726 | |
| 5727 | * term.c (write_glyphs): Also turn off inverse video after turning |
| 5728 | off other appearances in case TS_exit_attribute_mode is not equal |
| 5729 | to TS_end_standout_mode. |
| 5730 | (insert_glyphs): Turn inverse video on/off for each run of glyphs |
| 5731 | with the same face. |
| 5732 | (turn_off_face): Reset standout_mode only if |
| 5733 | TS_exit_attribute_mode has been output and TS_exit_attribute_mode |
| 5734 | is equal to TS_end_standout_mode. |
| 5735 | |
| 5736 | 2000-08-16 Kenichi Handa <handa@etl.go.jp> |
| 5737 | |
| 5738 | * coding.c (encode_coding): Fix the bug of not flushing ISO escape |
| 5739 | sequence at the end of the source block. |
| 5740 | |
| 5741 | * ccl.c (Fccl_program_p): Docstring modified. |
| 5742 | (Fccl_execute): Likewise. |
| 5743 | (Fccl_execute_on_string): Likewise. |
| 5744 | |
| 5745 | 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il> |
| 5746 | |
| 5747 | * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *. |
| 5748 | |
| 5749 | 2000-08-16 Kenichi Handa <handa@etl.go.jp> |
| 5750 | |
| 5751 | The following changes are mainly to fix bugs of |
| 5752 | encode/decode-coding-string failing if encoding/decoding return |
| 5753 | CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global |
| 5754 | variable conversion_buffer. |
| 5755 | |
| 5756 | * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char, |
| 5757 | decrement dst_end to avoid buffer overflow in the later call of |
| 5758 | string_as_multibyte |
| 5759 | |
| 5760 | * coding.h (conversion_buffer_size, conversion_buffer) |
| 5761 | (get_conversion_buffer): Extern deleted. |
| 5762 | |
| 5763 | * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted. |
| 5764 | (conversion_buffer, conversion_buffer_size): Variables deleted. |
| 5765 | (get_conversion_buffer): Function deleted. |
| 5766 | (struct conversion_buffer): New structure. |
| 5767 | (MAX_ALLOCA): New macro. |
| 5768 | (allocate_conversion_buffer): New macro. |
| 5769 | (extend_conversion_buffer, free_conversion_buffer): New functions. |
| 5770 | (ccl_coding_driver): Set coding->result. |
| 5771 | (decode_coding): Set coding->result to CODING_FINISH_NORMAL if |
| 5772 | this is the last block of source. |
| 5773 | (encode_coding): Likewise. Handle the source block as the last |
| 5774 | one only when the whole source text is consumed. |
| 5775 | (decode_coding_string): Handle the case that the output buffer is |
| 5776 | too small to decode the whole source text. Use |
| 5777 | allocate_conversion_buffer, extend_conversion_buffer and |
| 5778 | free_conversion_buffer, not get_conversion_buffer. |
| 5779 | (encode_coding_string): Likewise. |
| 5780 | (init_coding): Function deleted. |
| 5781 | (init_coding_once): Delete code to initialize |
| 5782 | conversion_buffer_size. |
| 5783 | |
| 5784 | * emacs.c (main): Don't call init_coding. |
| 5785 | |
| 5786 | * msdos.c (IT_write_glyphs): Use a locally declared |
| 5787 | conversion_buffer. |
| 5788 | |
| 5789 | * term.c (write_glyphs): Use a locally declared conversion_buffer. |
| 5790 | (insert_glyphs): Likewise. |
| 5791 | |
| 5792 | * w32console.c (write_glyphs): Use a locally declared |
| 5793 | conversion_buffer. |
| 5794 | |
| 5795 | 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il> |
| 5796 | |
| 5797 | * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame |
| 5798 | member of display_info is NULL. |
| 5799 | |
| 5800 | 2000-08-15 Gerd Moellmann <gerd@gnu.org> |
| 5801 | |
| 5802 | * alloc.c (compact_small_strings): Use safe_bcopy, add an |
| 5803 | assertion. |
| 5804 | |
| 5805 | * term.c (turn_off_face): Reset standout_mode when resetting |
| 5806 | appearances with capability `me'. |
| 5807 | (write_glyphs): Switch on inverse video before each face change. |
| 5808 | |
| 5809 | 2000-08-14 Dave Love <fx@gnu.org> |
| 5810 | |
| 5811 | * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk. |
| 5812 | [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. |
| 5813 | (lisp_free): Declare and make static. |
| 5814 | |
| 5815 | * window.c: Fix embedded comment. |
| 5816 | (syms_of_window): Fix doc string. |
| 5817 | |
| 5818 | 2000-08-14 Gerd Moellmann <gerd@gnu.org> |
| 5819 | |
| 5820 | * keymap.c (push_key_description): If C without modifiers is < 32, |
| 5821 | make sure to print `C-' before `M-', like in the manual. |
| 5822 | |
| 5823 | 2000-08-11 Gerd Moellmann <gerd@gnu.org> |
| 5824 | |
| 5825 | * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially |
| 5826 | since they aren't relocated anymore. |
| 5827 | (sxhash_string): Make sure returned hash code fits in a Lisp |
| 5828 | integer. |
| 5829 | |
| 5830 | * xdisp.c (try_cursor_movement): Fix handling of cursor in |
| 5831 | partially visible line which is smaller than the window's |
| 5832 | height. |
| 5833 | |
| 5834 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
| 5835 | |
| 5836 | * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to |
| 5837 | the multibyte form of eight-bit-control characters. |
| 5838 | (Fccl_execute_on_string): Initialize ccl->multibyte. |
| 5839 | |
| 5840 | * ccl.h (struct ccl_program): New member multibyte. |
| 5841 | |
| 5842 | * coding.c (ccl_coding_driver): Initialize ccl->multibyte. |
| 5843 | |
| 5844 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
| 5845 | |
| 5846 | * regex.c (regex_compile) <normal_char>: Pay attention to |
| 5847 | multibyteness. |
| 5848 | (analyse_first) <exactn>: Setup fastmap correctly for |
| 5849 | eight-bit-control characters. |
| 5850 | |
| 5851 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
| 5852 | |
| 5853 | * termhooks.h (enum event_kind): New member |
| 5854 | multibyte_char_keystroke. |
| 5855 | |
| 5856 | * keyboard.c (make_lispy_event): Handle the new event type |
| 5857 | multibyte_char_keystroke. |
| 5858 | |
| 5859 | * xterm.c: Include coding.h. |
| 5860 | (XTread_socket): Work around a bug of XmbLookupString. If the |
| 5861 | input is from XIM, decode it according to the current locale. In |
| 5862 | that case, generate multibyte_char_keystroke events. |
| 5863 | |
| 5864 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
| 5865 | |
| 5866 | * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon. |
| 5867 | (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy. |
| 5868 | |
| 5869 | 2000-08-10 Gerd Moellmann <gerd@gnu.org> |
| 5870 | |
| 5871 | * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable. |
| 5872 | (TRACE_MOVE) [GLYPH_DEBUG]: New macro. |
| 5873 | (move_it_in_display_line_to): Record iterator's ascent and descent |
| 5874 | before producing glyphs, and restore them when we know the glyph |
| 5875 | doesn't fit on the line. |
| 5876 | (move_it_to): Restructured so that it's easier to debug. If |
| 5877 | moving to a vpos, and not moving to an x or character position, |
| 5878 | stop as soon as the specified vpos is reached; don't move further |
| 5879 | into that line because that might change the computed line height. |
| 5880 | (try_cursor_movement): New function, extracted from the cursor |
| 5881 | movement branch of redisplay_window. If ending on a partially |
| 5882 | visible line, don't try to scroll if the cursor line is taller |
| 5883 | than the window. |
| 5884 | (redisplay_window): Use try_cursor_movement. |
| 5885 | |
| 5886 | * window.c (Fwindow_end): Rewritten to not use Fvertical_motion, |
| 5887 | because that function doesn't cope with variable-height lines. |
| 5888 | |
| 5889 | * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a |
| 5890 | box cursor because that's better visible for large images. |
| 5891 | |
| 5892 | 2000-08-10 Miles Bader <miles@gnu.org> |
| 5893 | |
| 5894 | * w32term.c (note_mouse_highlight): Update calls to overlays_at. |
| 5895 | |
| 5896 | 2000-08-10 Gerd Moellmann <gerd@gnu.org> |
| 5897 | |
| 5898 | * xdisp.c (Vmessages_buffer_name): New variable. |
| 5899 | (message_dolog): Use it. |
| 5900 | (syms_of_xdisp): Initialize it. |
| 5901 | |
| 5902 | 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il> |
| 5903 | |
| 5904 | * msdos.c (IT_note_mouse_highlight): Update the calls to |
| 5905 | overlays_at. |
| 5906 | (toplevel) <kbd_buffer_store_event>: Remove prototype, it's |
| 5907 | redundant now that keyboard.h is included. |
| 5908 | |
| 5909 | 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il> |
| 5910 | |
| 5911 | * keyboard.c (kbd_buffer_events_waiting): New function. |
| 5912 | |
| 5913 | * keyboard.h (kbd_buffer_events_waiting): Add prototype. |
| 5914 | |
| 5915 | * msdos.c: Include keyboard.h. |
| 5916 | (XMenuActivate): Empty no_event events from the event buffer. If |
| 5917 | no events are left after that, call clear_input_pending. |
| 5918 | (mouse_clear_clicks): New function, code moved from mouse_init. |
| 5919 | (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the |
| 5920 | mouse driver to ``forget'' any past clicks. |
| 5921 | |
| 5922 | * Makefile.in (msdos.o): Depend on keyboard.h. |
| 5923 | |
| 5924 | 2000-08-09 Gerd Moellmann <gerd@gnu.org> |
| 5925 | |
| 5926 | * lisp.h (input_pending): External declaration. |
| 5927 | |
| 5928 | * dispextern.h (Qredisplay_dont_pause): Declare extern. |
| 5929 | |
| 5930 | * xdisp.c (echo_area_display): Display thoroughly if input is |
| 5931 | pending. Bind redisplay-dont-pause to t during the redisplay. |
| 5932 | in case input is pending. |
| 5933 | |
| 5934 | * dispnew.c (Qredisplay_dont_pause): New variable. |
| 5935 | (syms_of_display): Initialize and staticpro it. |
| 5936 | (update_frame_1): Don't interrupt the display for pending input if |
| 5937 | redisplay_dont_pause is set. |
| 5938 | |
| 5939 | * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P. |
| 5940 | |
| 5941 | * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. |
| 5942 | |
| 5943 | 2000-08-09 Miles Bader <miles@lsi.nec.co.jp> |
| 5944 | |
| 5945 | * callproc.c (Fcall_process): Terminate the unwind-protect around |
| 5946 | the post-read-conversion of coding system. |
| 5947 | |
| 5948 | * buffer.c (overlays_at): Add CHANGE_REQ parameter. |
| 5949 | (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it. |
| 5950 | * buffer.h (overlays_at): Update prototype. |
| 5951 | * xdisp.c (next_overlay_change): Update call to overlays_at. |
| 5952 | * xfaces.c (face_at_buffer_position): Likewise. |
| 5953 | * textprop.c (Fget_char_property): Likewise. |
| 5954 | * xterm.c (note_mouse_highlight): Likewise. |
| 5955 | |
| 5956 | * minibuf.c (do_completion): Don't consider a simple change of |
| 5957 | case as `completion'. |
| 5958 | |
| 5959 | 2000-08-08 Ken Raeburn <raeburn@gnu.org> |
| 5960 | |
| 5961 | * keyboard.c (syms_of_keyboard): Initialize |
| 5962 | last_point_position_buffer. |
| 5963 | * undo.c (record_delete): Make sure last_point_position_buffer is |
| 5964 | a buffer before comparing pointers. |
| 5965 | |
| 5966 | * coding.h (decode_coding_string): Declare. |
| 5967 | |
| 5968 | * intervals.h (Fprevious_single_char_property_change): Declare. |
| 5969 | |
| 5970 | * textprop.c (Fprevious_single_char_property_change): Don't do |
| 5971 | arithmetic directly on lisp objects. |
| 5972 | |
| 5973 | * editfns.c (find_field): Use EQ, not ==, to compare Lisp |
| 5974 | objects. |
| 5975 | |
| 5976 | * keyboard.h (menu_item_eval_property): Declare. |
| 5977 | |
| 5978 | * xdisp.c (message_dolog): Save and protect string "*Messages*" to |
| 5979 | reuse as buffer name, instead of recreating (and discarding) every |
| 5980 | time a message is logged. |
| 5981 | (with_echo_area_buffer): Make callback arg A2 a lisp object. |
| 5982 | (current_message_1, truncate_message_1, set_message_1) |
| 5983 | (display_echo_area_1, resize_mini_window_1): Signatures changed. |
| 5984 | (current_message, truncate_echo_area, display_echo_area) |
| 5985 | (resize_echo_area_axactly): Changed calls. |
| 5986 | |
| 5987 | * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a |
| 5988 | Lisp object. |
| 5989 | (Ffind_coding_systems_region_internal): First argument to Fappend |
| 5990 | must be an integer, not a Lisp object. |
| 5991 | |
| 5992 | 2000-08-08 Kenichi Handa <handa@etl.go.jp> |
| 5993 | |
| 5994 | * charset.c (Fchar_width): Doc fix. |
| 5995 | |
| 5996 | 2000-08-08 Gerd Moellmann <gerd@gnu.org> |
| 5997 | |
| 5998 | * charset.c (Fstring_width): Doc fix. |
| 5999 | |
| 6000 | 2000-08-07 Gerd Moellmann <gerd@gnu.org> |
| 6001 | |
| 6002 | * xdisp.c (start_display): When starting display on a continuation |
| 6003 | line, clear ascent and descent members of the iterator structure; |
| 6004 | the height of the continued line does not affect the height of the |
| 6005 | continuation line. |
| 6006 | (make_cursor_line_fully_visible): Do nothing if cursor is on a |
| 6007 | line taller than the window. |
| 6008 | (redisplay_window) <forced window start>: Handle case that the |
| 6009 | middle of the window is not found in any row. |
| 6010 | (dump_glyph_row): Show more information. |
| 6011 | (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the |
| 6012 | first text line in a glyph matrix. |
| 6013 | |
| 6014 | * xterm.c (x_draw_image_foreground): Avoid drawing outside |
| 6015 | of the clip area when image doesn't have a mask. |
| 6016 | |
| 6017 | * fns.c (sweep_weak_table): Fix survival conditions for |
| 6018 | key-or-value and key-and-value weakness. |
| 6019 | |
| 6020 | * .gdbinit (xhashtable): New command. |
| 6021 | |
| 6022 | * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked |
| 6023 | tables out of the list of all weak hash tables. |
| 6024 | |
| 6025 | * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and |
| 6026 | a new buffer is created, make sure echo_area_buffer[] references |
| 6027 | the new buffer. |
| 6028 | |
| 6029 | 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 6030 | |
| 6031 | * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in |
| 6032 | the doc string. |
| 6033 | |
| 6034 | 2000-08-07 Kenichi Handa <handa@etl.go.jp> |
| 6035 | |
| 6036 | * syntax.c (skip_chars): Fix previous change. Make the handling |
| 6037 | of unibyte string consistent with that of regex search. |
| 6038 | |
| 6039 | 2000-08-05 Gerd Moellmann <gerd@gnu.org> |
| 6040 | |
| 6041 | * xmenu.c (popup_get_selection): Use xfree instead of free. |
| 6042 | |
| 6043 | * fileio.c (Finsert_file_contents): Use xfree instead of free. |
| 6044 | |
| 6045 | * editfns.c (Ftranspose_regions): Use xfree instead of free. |
| 6046 | |
| 6047 | * callproc.c (child_setup): Use xfree instead of free. |
| 6048 | |
| 6049 | * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc |
| 6050 | instead of malloc. |
| 6051 | (run_mac_command, closedir): Use `xfree' instead of `free'. |
| 6052 | |
| 6053 | * keymap.c (current_minor_maps): Use xmalloc instead of malloc. |
| 6054 | |
| 6055 | * eval.c (error): Use xfree instead of free. |
| 6056 | |
| 6057 | * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'. |
| 6058 | |
| 6059 | * fns.c: Replace `illegal' with `invalid'. |
| 6060 | (Fmake_hash_table, make_hash_table): Allow table size of 0. |
| 6061 | |
| 6062 | 2000-08-05 Kenichi Handa <handa@etl.go.jp> |
| 6063 | |
| 6064 | * syntax.c (skip_chars): Fix handling of multibyte<->unibyte |
| 6065 | conversion. |
| 6066 | |
| 6067 | 2000-08-04 Noah Friedman <friedman@splode.com> |
| 6068 | |
| 6069 | * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in |
| 6070 | docstring. |
| 6071 | |
| 6072 | 2000-08-04 Gerd Moellmann <gerd@gnu.org> |
| 6073 | |
| 6074 | * syntax.c (skip_chars): Fix typo in error message. |
| 6075 | |
| 6076 | 2000-08-04 Andreas Schwab <schwab@suse.de> |
| 6077 | |
| 6078 | * m/ia64.h: Moved from s/ia64.h. |
| 6079 | |
| 6080 | 2000-08-04 Kenichi Handa <handa@etl.go.jp> |
| 6081 | |
| 6082 | * process.c (read_process_output): Big simplification. Handle |
| 6083 | composition and post-read-conversion of coding system correctly. |
| 6084 | (send_process): Handle composition correctly. |
| 6085 | |
| 6086 | * callproc.c (Fcall_process): Handle post-read-conversion of |
| 6087 | coding system if any. |
| 6088 | |
| 6089 | * coding.c (decode_coding_iso2022): More strict check for handling |
| 6090 | single shifting. |
| 6091 | (coding_restore_composition): Pay attention to the case that |
| 6092 | cmp_data is not set properly (because of invalid code in the |
| 6093 | source text). |
| 6094 | (run_pre_post_conversion_on_str): Include text properties in the |
| 6095 | resulting string. |
| 6096 | (decode_coding_string): Set members of coding correctly. |
| 6097 | |
| 6098 | 2000-08-03 Gerd Moellmann <gerd@gnu.org> |
| 6099 | |
| 6100 | * s/ia64.h: New file. |
| 6101 | |
| 6102 | * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues): |
| 6103 | Use NULL instead of 0 at the end of variable argument list of |
| 6104 | XtVaGetValues and XtVaSetValues, because 0 fails on systems where |
| 6105 | sizeof (int) < sizeof (void *). |
| 6106 | |
| 6107 | * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end |
| 6108 | of variable argument lists of XtVaGetValues and XtVaSetValues. |
| 6109 | |
| 6110 | * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of |
| 6111 | variable argument lists of XtVaGetValues and XtVaSetValues. |
| 6112 | |
| 6113 | 2000-08-02 Gerd Moellmann <gerd@gnu.org> |
| 6114 | |
| 6115 | * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE. |
| 6116 | (xrealloc, xmalloc): Use size_t. Some callers adjusted. |
| 6117 | |
| 6118 | * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change |
| 6119 | prototype. |
| 6120 | |
| 6121 | * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter |
| 6122 | in call to Fsingle_key_description. |
| 6123 | |
| 6124 | * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES. |
| 6125 | Callers changed. |
| 6126 | |
| 6127 | 2000-08-02 Colin Walters <walters@cis.ohio-state.edu> |
| 6128 | |
| 6129 | * window.c (display_buffer_reuse_frames): New variable. |
| 6130 | (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse |
| 6131 | frames displaying BUFFER. |
| 6132 | (syms_of_window): Define Lisp variable |
| 6133 | display-buffer-reuse-frames. |
| 6134 | |
| 6135 | 2000-08-01 Miles Bader <miles@gnu.org> |
| 6136 | |
| 6137 | * editfns.c (Fconstrain_to_field): Fix the conditions for deciding |
| 6138 | when to constrain NEW_POS (they were pretty screwed up before). |
| 6139 | |
| 6140 | 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il> |
| 6141 | |
| 6142 | * msdos.c (run_msdos_command): Save and restore the master |
| 6143 | environment, for the case that child_setup signals an error. |
| 6144 | When mirroring slashes in DOS shell commands, don't fail when |
| 6145 | argv[2] has embedded blanks. |
| 6146 | (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions. |
| 6147 | (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons. |
| 6148 | (dos_ttraw): Call mouse_setup_buttons. |
| 6149 | |
| 6150 | * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of |
| 6151 | using alloca; free it after run_msdos_command returns. |
| 6152 | |
| 6153 | 2000-07-27 Dave Love <fx@gnu.org> |
| 6154 | |
| 6155 | * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't |
| 6156 | define. |
| 6157 | [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently |
| 6158 | working. |
| 6159 | |
| 6160 | * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define. |
| 6161 | |
| 6162 | 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il> |
| 6163 | |
| 6164 | * editfns.c (lisp_time_argument): Fix last change. |
| 6165 | |
| 6166 | 2000-07-27 Gerd Moellmann <gerd@gnu.org> |
| 6167 | |
| 6168 | * fns.c (Fdelete): Make it work on vectors and strings in addition |
| 6169 | to lists. |
| 6170 | |
| 6171 | * fns.c (Qkey_or_value, Qkey_and_value): New variables. |
| 6172 | (syms_of_fns): Initialize new variables. |
| 6173 | (sweep_weak_table): Handle weakness `key-or-value' and |
| 6174 | `key-and-value'. |
| 6175 | (Fmake_hash_table): Recognize `key-and-value' and `key-or-value' |
| 6176 | weakness, with t meaning the same as `key-and-value'. |
| 6177 | |
| 6178 | 2000-07-27 Kenichi Handa <handa@etl.go.jp> |
| 6179 | |
| 6180 | * coding.h (struct coding_system): Member safe_charset deleted. |
| 6181 | |
| 6182 | * coding.c (Qsafe_charsets): This variable deleted. |
| 6183 | (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New |
| 6184 | variables. |
| 6185 | (coding_safe_chars): New function. |
| 6186 | (CODING_SAFE_CHAR_P): New macro. |
| 6187 | (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of |
| 6188 | checking safe_charsets member of the coding system. Caller |
| 6189 | changed. |
| 6190 | (detect_coding_iso2022): New local variable safe_chars. |
| 6191 | (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking |
| 6192 | safe_charsets member of the coding system. |
| 6193 | (decode_coding_iso2022): New local variable safe_chars. |
| 6194 | (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here. |
| 6195 | (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. |
| 6196 | (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed. |
| 6197 | (ENCODE_UNSAFE_CHARACTER): New macro. |
| 6198 | (encode_coding_iso2022): New local variable safe_chars. Check |
| 6199 | unsafe chars. |
| 6200 | (setup_coding_system): Delete the code to initialize |
| 6201 | coding->safe_charses |
| 6202 | (intersection, find_safe_codings): New functions. |
| 6203 | (Ffind_coding_systems_region_internal): New function. |
| 6204 | (syms_of_coding): Defsubr it. Initialize Qsafe_chars, |
| 6205 | Qsafe_cding_system. Make Vchar_coding_system_table a Lisp |
| 6206 | variable and initialize it. |
| 6207 | |
| 6208 | * fns.c (char_table_ref_and_index): New function. |
| 6209 | |
| 6210 | * lisp.h (char_table_ref_and_index): Add prototype. |
| 6211 | |
| 6212 | 2000-07-26 Sam Steingold <sds@gnu.org> |
| 6213 | |
| 6214 | * editfns.c (lisp_time_argument): Added third argument `usec'. |
| 6215 | (Ffloat_time): New built-in Lisp function. |
| 6216 | |
| 6217 | 2000-07-26 Gerd Moellmann <gerd@gnu.org> |
| 6218 | |
| 6219 | * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits |
| 6220 | for the character code. |
| 6221 | |
| 6222 | * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and |
| 6223 | GNU/Linux. |
| 6224 | |
| 6225 | * xmenu.c (menu_highlight_callback): Call show_help_echo directly |
| 6226 | if called for a popup menu. |
| 6227 | (xmenu_show): Store help string in widget values. |
| 6228 | |
| 6229 | 2000-07-26 Dave Love <fx@gnu.org> |
| 6230 | |
| 6231 | * syswait.h: Move some definitions. |
| 6232 | (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex. |
| 6233 | [!HAVE_SYS_WAIT_H]: Define things unconditionally. More |
| 6234 | perspicuous definitions. |
| 6235 | (WTERMSIG): Fix bit pattern used. |
| 6236 | |
| 6237 | 2000-07-26 Kenichi Handa <handa@etl.go.jp> |
| 6238 | |
| 6239 | * print.c (print_object): If vector printing is truncated, print |
| 6240 | "..." to indicate it as well as the case of list printing. |
| 6241 | |
| 6242 | 2000-07-25 Gerd Moellmann <gerd@gnu.org> |
| 6243 | |
| 6244 | * xdisp.c (next_element_from_display_vector): Improve comments. |
| 6245 | |
| 6246 | * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits |
| 6247 | for the character code, and the rest for the face id as in 20.x. |
| 6248 | (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly. |
| 6249 | |
| 6250 | * window.c (window_display_table): Cleaned up. |
| 6251 | |
| 6252 | * syntax.c (Fforward_word): Add last arg nil in call of |
| 6253 | Fconstrain_to_field. |
| 6254 | |
| 6255 | 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il> |
| 6256 | |
| 6257 | * fileio.c (Frename_file) [DOS_NT]: If the file names are |
| 6258 | identical but for the letter-case, don't call |
| 6259 | barf_or_query_if_file_exists. |
| 6260 | |
| 6261 | 2000-07-25 Miles Bader <miles@gnu.org> |
| 6262 | |
| 6263 | * editfns.c (find_field): Honor special `boundary' fields. |
| 6264 | (Qboundary): New variables. |
| 6265 | (syms_of_editfns): Initialize Qboundary. |
| 6266 | (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument. |
| 6267 | Use scan_buffer instead of find_before_next_newline, because it |
| 6268 | allows us to detect the boundary case where there's a newline at |
| 6269 | the search limit. |
| 6270 | * lisp.h (Fconstrain_to_field): Update external declaration. |
| 6271 | |
| 6272 | 2000-07-24 Gerd Moellmann <gerd@gnu.org> |
| 6273 | |
| 6274 | * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks |
| 6275 | if that is nil. |
| 6276 | |
| 6277 | 2000-07-24 Dave Love <fx@gnu.org> |
| 6278 | |
| 6279 | * s/sunos4-0.h, s/sol2.h: |
| 6280 | (LIBS_TERMCAP): Move from m/sparc.h. |
| 6281 | |
| 6282 | * m/sparc.h (TERMINFO): Moved to system files (probably only |
| 6283 | relevant for sunos4 judging by its vintage). |
| 6284 | (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on |
| 6285 | __arch64__. |
| 6286 | |
| 6287 | 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il> |
| 6288 | |
| 6289 | * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane |
| 6290 | name to single_keymap_panes. |
| 6291 | |
| 6292 | 2000-07-24 Andreas Schwab <schwab@suse.de> |
| 6293 | |
| 6294 | * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil. |
| 6295 | |
| 6296 | 2000-07-24 Gerd Moellmann <gerd@gnu.org> |
| 6297 | |
| 6298 | * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT |
| 6299 | parameters instead of using int parameters. Expect FN to accept |
| 6300 | EMACS_INT parameters. |
| 6301 | (display_echo_area, resize_echo_area_axactly, current_message) |
| 6302 | (truncate_echo_area, set_message_1): Call with_echo_area_buffer |
| 6303 | with new argument list. |
| 6304 | (resize_mini_window_1): New callback function. |
| 6305 | (current_message_1, truncate_message_1, set_message_1): Change |
| 6306 | parameter lists to the new format expected by |
| 6307 | with_echo_area_buffer. |
| 6308 | |
| 6309 | 2000-07-24 Kenichi Handa <handa@etl.go.jp> |
| 6310 | |
| 6311 | * fontset.c (fontset_ref): Remove INLINE declaration. |
| 6312 | (fontset_ref_via_base): Likewise. |
| 6313 | (Fset_fontset_font): Convert FAMILY and REGISTRY specifications |
| 6314 | to downcase. |
| 6315 | |
| 6316 | 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 6317 | |
| 6318 | * msdos.c (IT_note_mouse_highlight): Process overlays in the |
| 6319 | correct order of priority. If help echo was found in an overlay, |
| 6320 | use that overlay as the object in which the help echo was found. |
| 6321 | |
| 6322 | 2000-07-22 Miles Bader <miles@gnu.org> |
| 6323 | |
| 6324 | * textprop.c (Fprevious_single_char_property_change): The initial |
| 6325 | property value should be from the position preceding POSITION, not |
| 6326 | following it. |
| 6327 | |
| 6328 | 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il> |
| 6329 | |
| 6330 | * coding.c (syms_of_coding): Doc fix for |
| 6331 | inhibit-iso-escape-detection. |
| 6332 | |
| 6333 | 2000-07-21 Gerd Moellmann <gerd@gnu.org> |
| 6334 | |
| 6335 | * xterm.c (note_mouse_highlight): Process overlays in the right |
| 6336 | order of priority. |
| 6337 | |
| 6338 | * keyboard.c (show_help_echo, gen_help_event): Extend comments. |
| 6339 | |
| 6340 | * xterm.c (note_mouse_highlight): If help-echo was found in an |
| 6341 | overlay, use that overlay as the object in which the help was |
| 6342 | found. |
| 6343 | |
| 6344 | * window.c (foreach_window_1): Fix typo reversing an if-condition. |
| 6345 | |
| 6346 | * window.c (foreach_window): Instead of a fake variable argument |
| 6347 | list, take one USER_DATA argument. |
| 6348 | (foreach_window_1): Likewise, and call callback functions with two |
| 6349 | args, the window and USER_DATA. |
| 6350 | (struct check_window_data): New struct. |
| 6351 | (check_window_containing): Use it. |
| 6352 | (window_from_coordinates): Set up a struct check_window_data for |
| 6353 | foreach_window. |
| 6354 | (add_window_to_list, freeze_window_start): Change parameters |
| 6355 | according to new calling convention. |
| 6356 | |
| 6357 | * window.h (foreach_window): Change prototype. |
| 6358 | |
| 6359 | * buffer.c (Fprevious_overlay_change): Avoid memory leak. |
| 6360 | |
| 6361 | 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il> |
| 6362 | |
| 6363 | * xmenu.c (menu_help_callback): Call show_help_echo with |
| 6364 | additional arguments OBJECT and POS. |
| 6365 | |
| 6366 | 2000-07-21 Kenichi Handa <handa@etl.go.jp> |
| 6367 | |
| 6368 | * data.c (Faset): Allow storing any multibyte character in a |
| 6369 | string. Convert unibyte string to multibyte if necessary. |
| 6370 | |
| 6371 | * xfns.c (x_encode_text): New function. |
| 6372 | (x_set_name): Use x_encode_text. |
| 6373 | (x_set_title): Likewise. |
| 6374 | |
| 6375 | * xselect.c (lisp_data_to_selection_data): Use x_encode_text. |
| 6376 | |
| 6377 | * xterm.h (x_encode_text): Add prototype. |
| 6378 | |
| 6379 | 2000-07-20 Dave Love <fx@gnu.org> |
| 6380 | |
| 6381 | * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use |
| 6382 | xfree, not free. |
| 6383 | |
| 6384 | 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il> |
| 6385 | |
| 6386 | * msdos.c (help_echo_window): New variable. |
| 6387 | (syms_of_msdos): Initialize and staticpro it. |
| 6388 | (IT_note_mode_line_highlight): Set help_echo_window. |
| 6389 | (IT_note_mouse_highlight): Ditto. |
| 6390 | (dos_rawgetc): Store help_echo_window in the second event produced |
| 6391 | for HELP_EVENTs. |
| 6392 | |
| 6393 | * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight): |
| 6394 | Record the object that generated the help echo and the position of |
| 6395 | that object in help_echo_object and help_echo_pos. Record that |
| 6396 | some glyphs in a row are displayed in mouse-face. |
| 6397 | (IT_update_begin): Don't clear mouse highlight unless one of the |
| 6398 | enabled glyph rows is marked as being displayed in mouse-face. |
| 6399 | (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object |
| 6400 | and position recorded in help_echo_object and help_echo_pos to the |
| 6401 | event queue. |
| 6402 | (IT_menu_display): Accept a new argument PN: the pane number of |
| 6403 | the current menu pane. Record the pane number and the item |
| 6404 | number of the item which has associated help string. |
| 6405 | (XMenuActivate): Update the prototype for help_callback in |
| 6406 | function declaration. Call IT_menu_display with the current menu |
| 6407 | pane number as an additional argument. Call help_callback with |
| 6408 | two additional arguments: the pane number and the item number of |
| 6409 | the menu item associated with the help text. |
| 6410 | (help_echo_object, help_echo_pos): New variables. |
| 6411 | (syms_of_msdos): Initialize them and staticpro help_echo_object. |
| 6412 | |
| 6413 | * msdos.h (XMenuActivate): Update prototype. |
| 6414 | |
| 6415 | 2000-07-19 Gerd Moellmann <gerd@gnu.org> |
| 6416 | |
| 6417 | * xdisp.c (with_echo_area_buffer): Call FN with more arguments. |
| 6418 | Add some more prototypes. |
| 6419 | |
| 6420 | * xterm.c, xterm.h: Add some more prototypes. |
| 6421 | |
| 6422 | * lisp.h (Fnext_single_char_property_change): Add prototype. |
| 6423 | |
| 6424 | * dispnew.c (direct_output_for_insert): Remove confusing |
| 6425 | outer local variable mouse_face_overwritten_p. |
| 6426 | (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG. |
| 6427 | |
| 6428 | * alloc.c (allocate_string_data): Don't copy old string contents. |
| 6429 | |
| 6430 | 2000-07-19 Kenichi Handa <handa@etl.go.jp> |
| 6431 | |
| 6432 | * coding.c (code_convert_region): Delete text properties before |
| 6433 | shrinking the conversion region. |
| 6434 | |
| 6435 | 2000-07-18 Gerd Moellmann <gerd@gnu.org> |
| 6436 | |
| 6437 | * dispnew.c (update_text_area): Write the whole row if it |
| 6438 | has mouse-face in it. |
| 6439 | |
| 6440 | * xfaces.c (face-alternative-font-family-alist): Remove |
| 6441 | DEFVAR_LISP; staticpro instead. |
| 6442 | |
| 6443 | * xmenu.c (menu_help_callback): Call show_help_echo with |
| 6444 | new arguments. |
| 6445 | |
| 6446 | * keyboard.c (show_help_echo): Add parameter WINDOW. |
| 6447 | (read_char): Call show_help_echo with window extracted from Lisp |
| 6448 | help event. |
| 6449 | (gen_help_event): Add parameter WINDOW. |
| 6450 | |
| 6451 | * keyboard.h (show_help_echo, gen_help_event): Change prototypes. |
| 6452 | |
| 6453 | * xterm.c (help_echo_window): New variable. |
| 6454 | (note_mouse_highlight, note_tool_bar_highlight): Set |
| 6455 | help_echo_window. |
| 6456 | (XTread_socket): Pass help_echo_window to gen_help_event. |
| 6457 | (syms_of_xterm): Initialize and staticpro help_echo_window. |
| 6458 | |
| 6459 | 2000-07-18 Dave Love <fx@gnu.org> |
| 6460 | |
| 6461 | * Makefile.in: Fix dependencies of blockinput.h on atimer.h, |
| 6462 | systime.h. |
| 6463 | |
| 6464 | 2000-07-18 Gerd Moellmann <gerd@gnu.org> |
| 6465 | |
| 6466 | * alloc.c (allocate_string_data): If string had already data |
| 6467 | assigned, copy old contents to new string data. |
| 6468 | |
| 6469 | * coding.c (syms_of_coding): Fix typo in spelling of variable |
| 6470 | `inhibit-iso-escape-detection'. |
| 6471 | |
| 6472 | * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE. |
| 6473 | |
| 6474 | * Makefile.in: Add dependencies on dispextern.h. |
| 6475 | (alloca.o): Don't define malloc and define EMACS_FREE instead of |
| 6476 | `free'; both can conflict with system header files. |
| 6477 | |
| 6478 | 2000-07-18 Kenichi Handa <handa@etl.go.jp> |
| 6479 | |
| 6480 | * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is |
| 6481 | undefined. |
| 6482 | |
| 6483 | 2000-07-18 Dave Love <fx@gnu.org> |
| 6484 | |
| 6485 | * window.c (Fwindow_list): Declare arg `window'. |
| 6486 | |
| 6487 | 2000-07-18 Kenichi Handa <handa@etl.go.jp> |
| 6488 | |
| 6489 | * coding.c (setup_coding_system): Don't override the explicitly |
| 6490 | specified designations. |
| 6491 | |
| 6492 | 2000-07-15 Miles Bader <miles@gnu.org> |
| 6493 | |
| 6494 | * editfns.c (char_property_eq, char_property_stickiness): Renamed |
| 6495 | from `text_property_eq' and `text_property_stickiness', respectively. |
| 6496 | (find_field, Fconstrain_to_field, char_property_eq) |
| 6497 | (char_property_stickiness): Changed to call char-property functions |
| 6498 | instead of text-property-only ones. |
| 6499 | |
| 6500 | * textprop.c (Fnext_single_char_property_change): Made a subr (was |
| 6501 | `next_single_char_property_change'). Do more error checking, and |
| 6502 | cleanup limit behavior. |
| 6503 | (Fprevious_single_char_property_change): New function. |
| 6504 | (syms_of_textprop): Initialize new subrs. |
| 6505 | |
| 6506 | * xdisp.c (display_prop_end, invisible_text_between_p): |
| 6507 | Call Fnext_single_char_property_change instead of |
| 6508 | next_single_char_property_change. |
| 6509 | |
| 6510 | 2000-07-15 Jason Rumney <jasonr@gnu.org> |
| 6511 | |
| 6512 | * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree |
| 6513 | after menu is finished with. |
| 6514 | (add_menu_item): Only consider wv->title as a menu title. |
| 6515 | (w32_menu_display_help): Add OBJECT and POS to show_help_echo. |
| 6516 | |
| 6517 | * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a |
| 6518 | null title. |
| 6519 | (FONT_REGEXP): Remove unused macro, and its sub-components. |
| 6520 | (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts. |
| 6521 | |
| 6522 | * w32term.c (help_echo_object, help_echo_pos): New variables. |
| 6523 | (note_mode_line_highlight): Store additional information about the |
| 6524 | help-echo in help_echo_object and help_echo_pos. Check both |
| 6525 | `local-map' and `keymap' properties for changing the cursor |
| 6526 | (note_mouse_highlight): Store additional information about the |
| 6527 | help-echo in help_echo_object and help_echo_pos. |
| 6528 | (note_tool_bar_highlight): Set help_echo_object to nil and |
| 6529 | help_echo_pos to -1. |
| 6530 | (w32_read_socket): Use gen_help_event instead of filling |
| 6531 | input_events manually. |
| 6532 | (syms_of_w32term): Staticpro help_echo_object. |
| 6533 | (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If |
| 6534 | set, arrange for a mouse-highlight redisplay in |
| 6535 | XTframe_up_to_date. |
| 6536 | (x_clear_mouse_face): New function. |
| 6537 | (w32_redisplay_interface): Add pointer to x_clear_mouse_face. |
| 6538 | (x_update_window_begin): No need to turn off the mouse |
| 6539 | highlight here. |
| 6540 | (show_mouse_face): Set the mouse_face_p flag of glyph rows |
| 6541 | depending on whether they contain glyphs highlighted in |
| 6542 | mouse-face. |
| 6543 | (x_fill_stretch_glyph_string): Consume runs of stretch |
| 6544 | glyphs instead of a single one. |
| 6545 | (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string |
| 6546 | with new argument list. |
| 6547 | (x_set_glyph_string_gc): Make sure the face's GC is valid. |
| 6548 | (x_append_glyph, x_append_composite_glyph) |
| 6549 | (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to |
| 6550 | changes in struct glyph starting 1999-12-27. See comments for |
| 6551 | xterm.c on 2000-07-05. |
| 6552 | |
| 6553 | 2000-07-14 Sam Steingold <sds@gnu.org> |
| 6554 | |
| 6555 | * xfaces.c (realize_x_face): Fix the last patch: |
| 6556 | check `default_face' before dereferencing. |
| 6557 | |
| 6558 | 2000-07-14 Dave Love <fx@gnu.org> |
| 6559 | |
| 6560 | * syntax.c (back_comment): Add null default in switch (for pcc). |
| 6561 | |
| 6562 | 2000-07-14 Kenichi Handa <handa@etl.go.jp> |
| 6563 | |
| 6564 | * xfaces.c (realize_x_face): Make fontset using the base of the |
| 6565 | default_face's fontset, not using the default fontset. |
| 6566 | |
| 6567 | * coding.c (inhibit_iso_escape_detection): New variable. |
| 6568 | (syms_of_coding): Make it a Lisp variable. |
| 6569 | (detect_coding_iso2022): If inhibit_iso_escape_detection is |
| 6570 | nonzero, ignore ISO2022's escape sequence. |
| 6571 | |
| 6572 | 2000-07-14 Gerd Moellmann <gerd@gnu.org> |
| 6573 | |
| 6574 | * alloca.c (malloc) [emacs]: Define as xmalloc. |
| 6575 | |
| 6576 | * xfns.c (Fx_show_tip): If frame parameters contain a position, |
| 6577 | use that instead of the mouse position. Add parameters DX and DY. |
| 6578 | |
| 6579 | * dispextern.h (Fx_show_tip): Adjust number of parameters |
| 6580 | in prototype. |
| 6581 | |
| 6582 | * keyboard.c (show_help_echo): Add parameters OBJECT and POS. |
| 6583 | if HELP is a function, call it with OBJECT and POS as parameters |
| 6584 | to get the help to display. |
| 6585 | (gen_help_event, kbd_buffer_store_help_event): New functions. |
| 6586 | (kbd_buffer_get_event): Construct the Lisp help-event differently. |
| 6587 | (read_char): Call show_help_echo with new parameters. |
| 6588 | |
| 6589 | * keyboard.h (gen_help_event, kbd_buffer_store_help_event): |
| 6590 | Add prototypes. |
| 6591 | |
| 6592 | * xterm.c (help_echo_object, help_echo_pos): New variables. |
| 6593 | (note_mode_line_highlight): Store additional information about the |
| 6594 | help-echo in help_echo_object and help_echo_pos. Check both |
| 6595 | `local-map' and `keymap' properties for changing the cursor |
| 6596 | (note_mouse_highlight): Store additional information about the |
| 6597 | help-echo in help_echo_object and help_echo_pos. |
| 6598 | (note_tool_bar_highlight): Set help_echo_object to nil and |
| 6599 | help_echo_pos to -1. |
| 6600 | (XTread_socket): Use gen_help_event instead of filling |
| 6601 | input_events manually. |
| 6602 | (syms_of_xterm): Staticpro help_echo_object. |
| 6603 | |
| 6604 | * xmenu.c (menu_highlight_callback): Use |
| 6605 | kbd_buffer_store_help_event instead of setting up and input_event |
| 6606 | structure manually. |
| 6607 | |
| 6608 | * xdisp.c (eval_form): GCPRO argument sexpr. |
| 6609 | (call_function): New function. |
| 6610 | (handle_single_display_prop): Use call_function and FUNCTIONP |
| 6611 | instead of checking whether if font_height is a symbol and |
| 6612 | using eval_form. |
| 6613 | |
| 6614 | * eval.c (internal_condition_case_2): New function. |
| 6615 | |
| 6616 | * lisp.h (FUNCTIONP): New macro. |
| 6617 | (internal_condition_case_2, call_function): Add prototypes. |
| 6618 | |
| 6619 | * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event) |
| 6620 | (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket): |
| 6621 | Always set `arg' member of input_events. |
| 6622 | (construct_menu_click): Unused function removed. |
| 6623 | |
| 6624 | * msdos.c (dos_rawgetc): Always set `arg' member of input_events. |
| 6625 | |
| 6626 | * w32term.c (construct_mouse_click, construct_mouse_wheel) |
| 6627 | (construct_drag_n_drop, x_scroll_bar_handle_click) |
| 6628 | (w32_read_socket): Always set `arg' member of input_events. |
| 6629 | |
| 6630 | * keyboard.c (show_help_echo): Use eval_form. Add comment. |
| 6631 | |
| 6632 | * lisp.h (eval_form): Add prototype. |
| 6633 | |
| 6634 | * xdisp.c (eval_form): Make it externally visible. |
| 6635 | |
| 6636 | 2000-07-13 Gerd Moellmann <gerd@gnu.org> |
| 6637 | |
| 6638 | * xterm.c (x_handle_tool_bar_click): Store the frame in the |
| 6639 | frame_or_window slot of TOOL_BAR_EVENT input events instead of |
| 6640 | consing. For prefix events, store the frame in the `arg' slot of |
| 6641 | the event, otherwise store the key there. |
| 6642 | (XTread_socket): Instead of consing, use the frame_or_window slot |
| 6643 | of HELP_EVENTs for the frame, and the `arg' slot for the help |
| 6644 | string. |
| 6645 | |
| 6646 | * xmenu.c (menu_highlight_callback): Store help string in the |
| 6647 | `arg' member of the input event; don't cons. |
| 6648 | (menubar_selection_callback): Use the `arg' slot of input events |
| 6649 | to queue additional information, instead of consing. |
| 6650 | |
| 6651 | * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs. |
| 6652 | |
| 6653 | * w32term.c (w32_handle_tool_bar_click): Adapt to changes in |
| 6654 | TOOL_BAR_EVENTs. |
| 6655 | (w32_read_socket): Adapt to changes in HELP_EVENTs. |
| 6656 | |
| 6657 | * w32menu.c (menubar_selection_callback): Use the `arg' slot of |
| 6658 | input events to queue additional information, instead of consing. |
| 6659 | |
| 6660 | * keyboard.c (kbd_buffer_gcpro): Renamed from |
| 6661 | kbd_buffer_frame_or_window. Now used for all Lisp objects |
| 6662 | referenced from the input queue. |
| 6663 | (kbd_buffer_store_event): Always use structure assignment for |
| 6664 | copying input events. Record all Lisp objects referenced from |
| 6665 | events in kbd_buffer_gcpro. |
| 6666 | (kbd_buffer_get_event): Construct Lisp `help-echo' events |
| 6667 | differently from input events. Test for prefix menu_bar_events |
| 6668 | and TOOL_BAR_EVENTs differently. Reset all slots used by an input |
| 6669 | event in kbd_buffer_gcpro to nil. |
| 6670 | (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose |
| 6671 | frame_or_window is equal to its arg member as prefix events. |
| 6672 | (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro |
| 6673 | used by an input event to nil. |
| 6674 | (init_keyboard): Use two times the size of the input queue |
| 6675 | for kbd_buffer_gcpro. |
| 6676 | (syms_of_keyboard): Likewise. |
| 6677 | |
| 6678 | * emacs.c (handle_USR2_signal, handle_USR1_signal): Use |
| 6679 | USER_SIGNAL_EVENT. |
| 6680 | |
| 6681 | * termhooks.h (struct input_event): Add member `arg'. |
| 6682 | (MENU_BAR_EVENT): Renamed from menu_bar_event. |
| 6683 | (USER_SIGNAL_EVENT): Renamed from user_signal. |
| 6684 | |
| 6685 | * xfaces.c (ASET): Remove definition. |
| 6686 | |
| 6687 | * lisp.h (AREF, ASET, ASIZE): New macros. |
| 6688 | |
| 6689 | * fontset.c (AREF, ASIZE): Remove definitions. |
| 6690 | |
| 6691 | * fns.c (AREF): Remove definition. |
| 6692 | |
| 6693 | * composite.c (AREF): Remove definition. |
| 6694 | |
| 6695 | 2000-07-12 Gerd Moellmann <gerd@gnu.org> |
| 6696 | |
| 6697 | * dispnew.c (redraw_overlapped_rows): Add missing local. |
| 6698 | (scrolling_window): Remove debug code. |
| 6699 | |
| 6700 | * xdisp.c (try_window_reusing_current_matrix, try_window_id): |
| 6701 | Before scrolling, turn off a mouse-highlight in the window |
| 6702 | being scrolled. |
| 6703 | |
| 6704 | * xterm.c (x_update_window_end): Add parameter |
| 6705 | MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight |
| 6706 | redisplay in XTframe_up_to_date. |
| 6707 | (x_clear_mouse_face): New function. |
| 6708 | (x_redisplay_interface): Add pointer to x_clear_mouse_face. |
| 6709 | |
| 6710 | * dispnew.c (make_current): Preserve the mouse_face_p flag of the |
| 6711 | current glyph row. |
| 6712 | (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set |
| 6713 | it when any row is written to that contains glyphs highlighted in |
| 6714 | mouse-face. |
| 6715 | (update_window): Call the window update end hook with new |
| 6716 | parameter MOUSE_FACE_OVERWRITTEN_P. |
| 6717 | (direct_output_for_insert): Give up if row contains mouse-face. |
| 6718 | |
| 6719 | * dispextern.h (struct redisplay_interface): Add parameter |
| 6720 | MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function. |
| 6721 | (clear_mouse_face): New function pointer member. |
| 6722 | |
| 6723 | 2000-07-11 Stefan Monnier <monnier@cs.yale.edu> |
| 6724 | |
| 6725 | * syntax.c (back_comment): Use one switch rather than a few `if's. |
| 6726 | Obey open_paren_in_column_0_is_defun_start. |
| 6727 | When reverting to the `slow' method, try to nicely handle the case |
| 6728 | of nested comments by checking that the comment-starter we found |
| 6729 | does indeed match the comment-ender. |
| 6730 | (scan_sexps_forward, scan_sexps_forward): |
| 6731 | Ignore excessive opening parenthesis rather than throwing an error. |
| 6732 | |
| 6733 | 2000-07-11 Gerd Moellmann <gerd@gnu.org> |
| 6734 | |
| 6735 | * doc.c (Fsubstitute_command_keys): Handle case that a GC |
| 6736 | in Fwhere_is_internal or get_keymap_1 relocates string contents. |
| 6737 | |
| 6738 | * dispnew.c (direct_output_forward_char): Give up if currently |
| 6739 | displaying a message instead of the minibuffer contents. |
| 6740 | |
| 6741 | * xterm.c (x_update_window_begin): No need to turn off the mouse |
| 6742 | highlight here. |
| 6743 | (show_mouse_face): Set the mouse_face_p flag of glyph rows |
| 6744 | depending on whether they contain glyphs highlighted in |
| 6745 | mouse-face. |
| 6746 | |
| 6747 | * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set, |
| 6748 | compare the mouse_face_p flags of both rows. |
| 6749 | |
| 6750 | * dispextern.h (struct glyph_row): Add flag mouse_face_p. |
| 6751 | |
| 6752 | 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il> |
| 6753 | |
| 6754 | * keyboard.c (show_help_echo): Accept additional parameter |
| 6755 | ok_to_overwrite_keystroke_echo. |
| 6756 | (read_char): Call show_help_echo with a zero |
| 6757 | ok_to_overwrite_keystroke_echo argument. |
| 6758 | * keyboard.h (show_help_echo): Update prototype of |
| 6759 | show_help_echo. |
| 6760 | * xmenu.c (menu_help_callback): Call show_help_echo with non-zero |
| 6761 | ok_to_overwrite_keystroke_echo argument. |
| 6762 | * w32menu.c (w32_menu_display_help): Call show_help_echo with |
| 6763 | non-zero ok_to_overwrite_keystroke_echo argument. |
| 6764 | |
| 6765 | 2000-07-10 Gerd Moellmann <gerd@gnu.org> |
| 6766 | |
| 6767 | * xdisp.c (try_window_id): If changes are all below what is |
| 6768 | displayed in the window, and point is in the window, we still |
| 6769 | might have to find point on the display. |
| 6770 | |
| 6771 | * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch |
| 6772 | glyphs instead of a single one. |
| 6773 | (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string |
| 6774 | with new argument list. |
| 6775 | (x_set_glyph_string_gc): Make sure the face's GC is valid. |
| 6776 | |
| 6777 | * keymap.c (get_keymap_1): Add comment that this function can GC. |
| 6778 | (where_is_internal_2, where_is_internal_1): Add GCPROs, add |
| 6779 | comment that functions can GC. |
| 6780 | (Fset_keymap_parent): GCPRO arg KEYMAP. |
| 6781 | |
| 6782 | 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il> |
| 6783 | |
| 6784 | * msdos.c (XMenuActivate): After exiting the menu, restore the |
| 6785 | echo area message and erase it. |
| 6786 | |
| 6787 | 2000-07-10 Kenichi Handa <handa@etl.go.jp> |
| 6788 | |
| 6789 | * fontset.c (Ffontset_info): Make the return value more compatible |
| 6790 | with that of Emacs 20. |
| 6791 | |
| 6792 | 2000-07-07 Gerd Moellmann <gerd@gnu.org> |
| 6793 | |
| 6794 | * eval.c (Fsignal): Handle case that backtrace_list is null. |
| 6795 | |
| 6796 | 2000-07-07 Kenichi Handa <handa@etl.go.jp> |
| 6797 | |
| 6798 | * ccl.c (Fccl_execute): Typo fixed. |
| 6799 | |
| 6800 | 2000-07-06 Gerd Moellmann <gerd@gnu.org> |
| 6801 | |
| 6802 | * window.c (window_loop): Add missing gcpro1 local variable. |
| 6803 | |
| 6804 | * window.c (Fwindow_list): Reverse list at the end. |
| 6805 | (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil |
| 6806 | means allow windows on OWINDOW's frame, only. |
| 6807 | (window_loop): Simplified; use Fwindow_list. |
| 6808 | |
| 6809 | * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make. |
| 6810 | |
| 6811 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
| 6812 | |
| 6813 | * xterm.c (XTread_socket): Increment handling_signal at the start, |
| 6814 | decrement it at the end. |
| 6815 | |
| 6816 | * eval.c (handling_signal): New variable. |
| 6817 | (Fsignal): Abort if handling_signal is non-zero. |
| 6818 | |
| 6819 | * lisp.h (handling_signal): External declaration. |
| 6820 | |
| 6821 | * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0. |
| 6822 | |
| 6823 | 2000-07-05 Ken Raeburn <raeburn@gnu.org> |
| 6824 | |
| 6825 | Sound support for NetBSD through "Linux emulation" support: |
| 6826 | * config.in (HAVE_SOUNDCARD_H): Undef. |
| 6827 | (HAVE_SOUND): Define if HAVE_SOUNDCARD_H. |
| 6828 | * Makefile.in (LIBSOUND): New variable. |
| 6829 | (LIBES): Include it. |
| 6830 | * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and |
| 6831 | <soundcard.h>. |
| 6832 | (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined |
| 6833 | elsewhere. |
| 6834 | (vox_open): Use DEFAULT_SOUND_DEVICE. |
| 6835 | * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio. |
| 6836 | |
| 6837 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
| 6838 | |
| 6839 | * print.c (print_error_message): If Vsignaling_function is set, |
| 6840 | show it in *Messages*. |
| 6841 | |
| 6842 | * lisp.h (Vsignaling_function): External declaration. |
| 6843 | |
| 6844 | * eval.c (Vsignaling_function): New variable. |
| 6845 | (Fsignal): Compute it. |
| 6846 | (syms_of_eval): Staticpro it. |
| 6847 | |
| 6848 | 2000-07-05 Dave Love <fx@gnu.org> |
| 6849 | |
| 6850 | * syswait.h: Use the autoconf recommended approach. Old code |
| 6851 | #if'd out in case we need to revert. |
| 6852 | |
| 6853 | * config.in (HAVE_SYS_WAIT_H): Added. |
| 6854 | |
| 6855 | 2000-07-05 Andrew Innes <andrewi@gnu.org> |
| 6856 | |
| 6857 | * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore |
| 6858 | when non-NULL instead of __morecore, to take account of buffer |
| 6859 | memory. This also solves a problem with spurious memory warnings |
| 6860 | on Windows. |
| 6861 | |
| 6862 | * ralloc.c: Make real_morecore non-static. |
| 6863 | |
| 6864 | * eval.c (internal_condition_case): Comment out abort if |
| 6865 | interrupt_input_blocked is not zero. |
| 6866 | |
| 6867 | * makefile.nt: Add support for `bootstrap' and related targets. |
| 6868 | Include minimal debug info in emacs.exe in release build. |
| 6869 | Remove all dependencies on lisp.h, and fixup some others. |
| 6870 | |
| 6871 | * w32.c (init_environment): Install code from 20.7 for providing |
| 6872 | default values for environment variables, based on the |
| 6873 | executable's own location. |
| 6874 | (map_w32_filename): Handle filenames that are longer than |
| 6875 | MAX_PATH. |
| 6876 | (sys_socket): Install socket inheritance bug fix from 20.7. |
| 6877 | |
| 6878 | * alloca.c [emacs]: Include lisp.h (needed by atimer.h included |
| 6879 | here via blockinput.h). |
| 6880 | |
| 6881 | 2000-07-05 Stefan Monnier <monnier@cs.yale.edu> |
| 6882 | |
| 6883 | * w32menu.c (w32_menu_display_help): |
| 6884 | * xmenu.c (menu_help_callback): Use show_help_echo. |
| 6885 | |
| 6886 | * keyboard.h (show_help_echo): Declare. |
| 6887 | |
| 6888 | * keyboard.c (show_help_echo): New function, extracted from read_char. |
| 6889 | Feval its `msg' argument if it's a cons cell. |
| 6890 | (read_char): Use it. |
| 6891 | (follow_key): Pass `autoload' to get_keyelt. |
| 6892 | |
| 6893 | * xterm.c (note_mode_line_highlight, note_mouse_highlight) |
| 6894 | (note_tool_bar_highlight, XTread_socket): |
| 6895 | * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight) |
| 6896 | (dos_rawgetc): |
| 6897 | * w32term.c (note_mode_line_highlight, note_mouse_highlight) |
| 6898 | (note_tool_bar_highlight, w32_read_socket): |
| 6899 | Do not gratuitously ignore non-string `help-echo' properties. |
| 6900 | |
| 6901 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
| 6902 | |
| 6903 | * eval.c (Feval): Put check for interrupt_input_block in #if 0. |
| 6904 | |
| 6905 | * window.c (delete_all_subwindows): Reset Vwindow_list. |
| 6906 | |
| 6907 | * xterm.c (x_append_glyph, x_append_composite_glyph) |
| 6908 | (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to |
| 6909 | changes in struct glyph starting 1999-12-27. Some bit-fields of |
| 6910 | struct glyph were not set, which made glyphs unequal when compared |
| 6911 | with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering |
| 6912 | effects were the result. This also depended on the contents of |
| 6913 | memory returned by xmalloc. If flickering happens again, activate |
| 6914 | the code in clear_glyph_row that's in #if 0. If the flickering is |
| 6915 | gone with that, chances are that it is caused by something |
| 6916 | similar. |
| 6917 | |
| 6918 | * dispnew.c (clear_glyph_row): Add debug code in #if 0. |
| 6919 | |
| 6920 | * dispextern.h: Add some comments. |
| 6921 | |
| 6922 | * window.c (add_window_to_list): Add parameter LIST. |
| 6923 | (window_list): Order list so that, for each frame, windows are |
| 6924 | in canonical order, and so that frames appear in the list in |
| 6925 | the order given by Vframe_list. |
| 6926 | (next_window): Reverse the handling of NEXT_P. |
| 6927 | |
| 6928 | 2000-07-04 Gerd Moellmann <gerd@gnu.org> |
| 6929 | |
| 6930 | * window.c (Vwindow_list): New variable. |
| 6931 | (make_window, delete_window): Set Vwindow_list to nil. |
| 6932 | (check_window_containing): New function. |
| 6933 | (window_from_coordinates): Rewritten. |
| 6934 | (add_window_to_list, window_list, candidate_window_p) |
| 6935 | (decode_next_window_args, next_window): New functions. |
| 6936 | (Fnext_window, Fprevious_window): Rewritten in terms of |
| 6937 | next_window. |
| 6938 | (Fwindow_list): New function. |
| 6939 | (Fother_window): Cleaned up. |
| 6940 | (foreach_window): Add a longer "variable argument list". Let |
| 6941 | callback function return 0 to indicate that cycling over windows |
| 6942 | should stop. |
| 6943 | (foreach_window_1): Likewise. |
| 6944 | (freeze_window_start): Return int. |
| 6945 | (init_window): New function. |
| 6946 | (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list. |
| 6947 | |
| 6948 | * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear |
| 6949 | input_event with bzero. |
| 6950 | (main): Call init_window. |
| 6951 | |
| 6952 | * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating |
| 6953 | a menu filter. |
| 6954 | |
| 6955 | 2000-07-04 Kenichi Handa <handa@etl.go.jp> |
| 6956 | |
| 6957 | * composite.h (make_composition_value_copy): Extern it. |
| 6958 | |
| 6959 | * composite.c (make_composition_value_copy): New function. |
| 6960 | |
| 6961 | * editfns.c (Fformat): While copying text properties, make each |
| 6962 | composition property value a copy. |
| 6963 | |
| 6964 | * fns.c (concat): While copying text properties, make each |
| 6965 | composition property value a copy. |
| 6966 | |
| 6967 | 2000-07-03 Gerd Moellmann <gerd@gnu.org> |
| 6968 | |
| 6969 | * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define. |
| 6970 | |
| 6971 | * fns.c (sweep_weak_table): Mark only objects that are not |
| 6972 | marked already. |
| 6973 | |
| 6974 | * frame.c (next_frame, prev_frame): If MINIBUF is a window, |
| 6975 | include those frames as candidates which have their focus |
| 6976 | redirected to the minibuffer frame. |
| 6977 | |
| 6978 | 2000-07-03 Stefan Monnier <monnier@cs.yale.edu> |
| 6979 | |
| 6980 | * fns.c (Fputhash): Return `value' rather than nil. |
| 6981 | |
| 6982 | 2000-06-30 Gerd Moellmann <gerd@gnu.org> |
| 6983 | |
| 6984 | * frame.c (next_frame): Don't check focus redirection in case |
| 6985 | MINIBUF is a window. Doing so excludes frames using MINIBUF |
| 6986 | unless their focus is redirected, which contradicts the |
| 6987 | specification of next-frame, and leads to infinite loops in |
| 6988 | certain situations when cycling through windows with next-window. |
| 6989 | |
| 6990 | 2000-06-30 Kenichi Handa <handa@etl.go.jp> |
| 6991 | |
| 6992 | * coding.c (code_convert_region): Even if the length of text is |
| 6993 | zero, try to convert it if coding->type is coding_type_ccl. |
| 6994 | (decode_coding_string, encode_coding_string): Likewise. |
| 6995 | |
| 6996 | 2000-06-28 Gerd Moellmann <gerd@gnu.org> |
| 6997 | |
| 6998 | * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse |
| 6999 | the display if windows_or_buffers_changed. |
| 7000 | |
| 7001 | * dispnew.c (struct row_entry): New structure. |
| 7002 | (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table) |
| 7003 | (row_table_size, old_lines, new_lines, old_lines_size) |
| 7004 | (new_lines_size, run_pool, runs_size, runs): New variables. |
| 7005 | (add_row_entry): New function. |
| 7006 | (scrolling_window): Use data structures allocated with xmalloc and |
| 7007 | held in global variables, instead of allocating them with alloca and |
| 7008 | holding them in local variables. Use a larger hash table whose |
| 7009 | size depends on glyph matrix sizes. Don't use bzero to clear the |
| 7010 | hash table; instead, clear used slots only. |
| 7011 | |
| 7012 | * fns.c (next_almost_prime): Make it externally visible. |
| 7013 | |
| 7014 | * lisp.h (next_almost_prime): Add prototype. |
| 7015 | |
| 7016 | * s/isc4-0.h (sigunblock): Define. |
| 7017 | |
| 7018 | * s/sco5.h (sigunblock): Define. |
| 7019 | |
| 7020 | 2000-06-27 Dave Love <fx@gnu.org> |
| 7021 | |
| 7022 | * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change |
| 7023 | (moved to osf5-0.h). |
| 7024 | [!NOT_C_CODE]: Protect string.h stuff. |
| 7025 | |
| 7026 | * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED) |
| 7027 | (sys_siglist, NSIG): Definitions moved here from osf1.h. |
| 7028 | |
| 7029 | 2000-06-27 Gerd Moellmann <gerd@gnu.org> |
| 7030 | |
| 7031 | * xdisp.c (resize_mini_window): Subtract the extra line spacing |
| 7032 | below the last line from the needed window height. |
| 7033 | |
| 7034 | 2000-06-26 Stefan Monnier <monnier@cs.yale.edu> |
| 7035 | |
| 7036 | * fns.c (Fplist_member): Renamed from Fwidget_plist_member. |
| 7037 | (Fwidget_get): Use it. |
| 7038 | (syms_of_fns): Defsubr it. |
| 7039 | |
| 7040 | 2000-06-26 Gerd Moellmann <gerd@gnu.org> |
| 7041 | |
| 7042 | * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the |
| 7043 | display info for XIM. |
| 7044 | (xim_open_dpy): Likewise. |
| 7045 | (xim_close_dpy): Don't free the display info's XIM. |
| 7046 | |
| 7047 | * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic. |
| 7048 | |
| 7049 | * config.in (USE_XIM): New define. |
| 7050 | |
| 7051 | * keymap.c (get_keyelt): For menu-items containing a `:filter |
| 7052 | FILTER', apply FILTER to the menu-item's definition to get the |
| 7053 | real definition to use. |
| 7054 | |
| 7055 | * lisp.h (QCfilter): External declaration. |
| 7056 | |
| 7057 | * xfns.c (Fimage_size): New function. |
| 7058 | (syms_of_xfns): Defsubr it. |
| 7059 | |
| 7060 | 2000-06-26 Andreas Schwab <schwab@suse.de> |
| 7061 | |
| 7062 | * coding.c (decode_coding_string): Re-fetch STRING_BYTES after |
| 7063 | Fstring_as_unibyte. |
| 7064 | |
| 7065 | 2000-06-25 Dave Love <fx@gnu.org> |
| 7066 | |
| 7067 | * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, |
| 7068 | tgetnum. |
| 7069 | |
| 7070 | * Makefile.in (blockinput.h): Depend on atimer.h. |
| 7071 | (atimer.h): Depend on systime.h. |
| 7072 | |
| 7073 | * blockinput.h: Protect against multiple inclusion. Include |
| 7074 | atimer.h. |
| 7075 | |
| 7076 | * atimer.h: Protect against multiple inclusion. Include |
| 7077 | systime.h. |
| 7078 | |
| 7079 | * lisp.h (swap_in_global_binding): Declare. |
| 7080 | |
| 7081 | 2000-06-24 Ken Raeburn <raeburn@gnu.org> |
| 7082 | |
| 7083 | * process.c (Fopen_network_stream): Turn off atimers for duration |
| 7084 | of call to connect. (Patch from Gerd.) |
| 7085 | |
| 7086 | 2000-06-23 Dave Love <fx@gnu.org> |
| 7087 | |
| 7088 | * ralloc.c: Maybe include unistd.h |
| 7089 | |
| 7090 | * emacs.c (setgrp): Undefine before defining. |
| 7091 | (malloc_warning, set_time_zone_rule, index): Prototype. |
| 7092 | |
| 7093 | * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use |
| 7094 | HAVE_STRUCT_TIMEZONE. |
| 7095 | |
| 7096 | * s/osf1.h: Move string.h hack here from alpha.h and make it |
| 7097 | conditional. |
| 7098 | (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with |
| 7099 | _XOPEN_SOURCE. |
| 7100 | (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define. |
| 7101 | (SOCKLEN_TYPE): Don't define. |
| 7102 | |
| 7103 | * m/alpha.h: Remove string.h hack. |
| 7104 | |
| 7105 | * s/osf5-0.h: New file. |
| 7106 | |
| 7107 | * filelock.c: Use feature tests for fcntl.h, string.h. Don't |
| 7108 | include time.h, done by systime.h. |
| 7109 | [__FreeBSD__]: Remove redundant includes. |
| 7110 | |
| 7111 | * callproc.c (setpgrp): Undefine before defining. |
| 7112 | (delete_temp_file): Return Qnil to avoid warning. |
| 7113 | |
| 7114 | * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add. |
| 7115 | |
| 7116 | * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not |
| 7117 | HAVE_X_WINDOWS. |
| 7118 | |
| 7119 | * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset. |
| 7120 | |
| 7121 | * composite.h (compose_text): Declare. |
| 7122 | |
| 7123 | * xterm.c: Don't include sys/types.h unconditionally. Don't |
| 7124 | protect its inclusion with !USG (following xmenu.c). |
| 7125 | |
| 7126 | 2000-06-23 Gerd Moellmann <gerd@gnu.org> |
| 7127 | |
| 7128 | * xfns.c (x_create_tip_frame): Initialize frame's colors like |
| 7129 | in x_create_frame. |
| 7130 | |
| 7131 | 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 7132 | |
| 7133 | * coding.c (decode_eol_post_ccl): Special handling for undecided |
| 7134 | and inconsistent EOL types. |
| 7135 | |
| 7136 | 2000-06-22 Gerd Moellmann <gerd@gnu.org> |
| 7137 | |
| 7138 | * xrdb.c (x_load_resources): Add default resource for scroll bar's |
| 7139 | trough color and main window's background color. |
| 7140 | |
| 7141 | * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events |
| 7142 | differently. |
| 7143 | |
| 7144 | * xterm.h (Xt_app_con): External declaration. |
| 7145 | |
| 7146 | * widget.c (EmacsFrameRealize): Fix typo. |
| 7147 | |
| 7148 | * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask. |
| 7149 | |
| 7150 | * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero. |
| 7151 | (handle_invisible_prop): Record the start of invisible text in |
| 7152 | it->add_overlay_start. |
| 7153 | (struct overlay_entry): Add member `overlay'. |
| 7154 | (handle_overlay_change): Simplify. |
| 7155 | (next_overlay_string): After having processed overlay strings at the |
| 7156 | end of the buffer, record that fact in |
| 7157 | it->overlay_strings_at_end_processed_p. |
| 7158 | (compare_overlay_entries): If before- and after-strings come |
| 7159 | from the same overlay, let before-strings come first. |
| 7160 | (RECORD_OVERLAY_STRING): Record the overlay that strings come from. |
| 7161 | (load_overlay_strings): Take it->add_overlay_start into account |
| 7162 | when adding overlay strings. |
| 7163 | |
| 7164 | * dispextern.h (struct it): Add member add_overlay_start. |
| 7165 | |
| 7166 | 2000-06-22 Dave Love <fx@gnu.org> |
| 7167 | |
| 7168 | * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500. |
| 7169 | |
| 7170 | * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here. |
| 7171 | |
| 7172 | 2000-06-22 Kenichi Handa <handa@etl.go.jp> |
| 7173 | |
| 7174 | * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it |
| 7175 | is greater than 0. |
| 7176 | |
| 7177 | 2000-06-21 Dave Love <fx@gnu.org> |
| 7178 | |
| 7179 | * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it. |
| 7180 | |
| 7181 | 2000-06-21 Stefan Monnier <monnier@cs.yale.edu> |
| 7182 | |
| 7183 | * syntax.c (back_comment): Simplify string-parity counting (with |
| 7184 | the added benefit of handling multiple string-styles as long as |
| 7185 | they are not intertwined). |
| 7186 | Jump to the slow code as soon as a comment starter is found in |
| 7187 | a "string_lossage" position. Fixes the case: " /* " /* " */. |
| 7188 | |
| 7189 | 2000-06-21 Dave Love <fx@gnu.org> |
| 7190 | |
| 7191 | * Makefile.in: Use GETLOADAVG_LIBS. |
| 7192 | |
| 7193 | * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS, |
| 7194 | _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE. |
| 7195 | |
| 7196 | 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> |
| 7197 | |
| 7198 | * syntax.c (describe_syntax): Recognize the `n'estable bit. |
| 7199 | (Fforward_comment, scan_lists): |
| 7200 | Check the comstyle of single-char comment-starters. |
| 7201 | (scan_sexps_forward): Don't try to recognize `half comment-enders' if |
| 7202 | we're just at the beginning of the comment (f.ex with (*) ... (*)). |
| 7203 | Check the comstyle of single-char comment-starters. |
| 7204 | Clarify control-flow around the Scomment case. |
| 7205 | |
| 7206 | 2000-06-20 Dave Love <fx@gnu.org> |
| 7207 | |
| 7208 | * fns.c (make_hash_table, maybe_resize_hash_table): |
| 7209 | Cast arg of next_almost_prime. |
| 7210 | |
| 7211 | * tparam.c [emacs]: Include lisp.h. |
| 7212 | |
| 7213 | * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h |
| 7214 | and unistd.h. |
| 7215 | |
| 7216 | 2000-06-20 Gerd Moellmann <gerd@gnu.org> |
| 7217 | |
| 7218 | * keyboard.c (adjust_point_for_property): Check if display |
| 7219 | property should be treated as intangible by looking at its |
| 7220 | value. |
| 7221 | |
| 7222 | * xdisp.c (single_display_prop_intangible_p) |
| 7223 | (display_prop_intangible_p): New functions. |
| 7224 | |
| 7225 | * dispextern.h (display_prop_intangible_p): Add prototype. |
| 7226 | |
| 7227 | * xdisp.c (dump_glyph_row): Show type of glyph->object. |
| 7228 | |
| 7229 | * s/isc4-0.h (sigblock): Redefined to pass a pointer as second |
| 7230 | argument to sigprocmask. |
| 7231 | |
| 7232 | * s/sco5.h (sigblock): Redefined to pass a pointer as second |
| 7233 | argument to sigprocmask. |
| 7234 | |
| 7235 | * syssignal.h (sigblock, sigunblock) [USG5_4]: Set |
| 7236 | sigprocmask_set, and pass a pointer to it to sigprocmask. |
| 7237 | |
| 7238 | * sysdep.c (sigprocmask_set): New variable. |
| 7239 | |
| 7240 | * fileio.c (make_temp_name): Don't use `%s' in string passed to |
| 7241 | report_file_error. |
| 7242 | |
| 7243 | 2000-06-20 Sam Steingold <sds@gnu.org> |
| 7244 | |
| 7245 | * xrdb.c: Don't declare xmalloc, xrealloc. |
| 7246 | |
| 7247 | 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> |
| 7248 | |
| 7249 | * regex.c (re_match, re_match_2): Protect calls to alloca (0). |
| 7250 | (re_comp): Cast gettext return value to avoid complaints when |
| 7251 | !HAVE_LIBINTL. |
| 7252 | |
| 7253 | 2000-06-20 Dave Love <fx@gnu.org> |
| 7254 | |
| 7255 | * m/stride.h, m/mips.h: Don't define HAVE_GETWD, |
| 7256 | HAVE_GETTIMEOFDAY. |
| 7257 | |
| 7258 | * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK. |
| 7259 | |
| 7260 | * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD. |
| 7261 | |
| 7262 | * m/alpha.h: Don't declare xmalloc, xrealloc. |
| 7263 | |
| 7264 | * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT. |
| 7265 | |
| 7266 | * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE. |
| 7267 | |
| 7268 | * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY. |
| 7269 | |
| 7270 | * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare |
| 7271 | HAVE_GETWD. |
| 7272 | |
| 7273 | * keyboard.h (poll_for_input_1): Declare. |
| 7274 | |
| 7275 | * getloadavg.c: Don't define NLIST_STRUCT (handled by configure). |
| 7276 | |
| 7277 | * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE. |
| 7278 | |
| 7279 | * doprnt.c: Don't declare xmalloc, xrealloc. |
| 7280 | |
| 7281 | * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text) |
| 7282 | (getenv, ctime, getwd): Removed. |
| 7283 | (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE. |
| 7284 | |
| 7285 | * xterm.h: Remove duplicate prototypes. Declare free_frame_xic, |
| 7286 | x_set_tool_bar_lines. |
| 7287 | |
| 7288 | * config.in: Add HAVE_GETWD. Move some definitions above |
| 7289 | machine/system includes. |
| 7290 | |
| 7291 | 2000-06-20 Kenichi Handa <handa@etl.go.jp> |
| 7292 | |
| 7293 | * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1. |
| 7294 | |
| 7295 | * xfaces.c (font_list): Handle the case that REGISTRY doesn't |
| 7296 | contain information about ENCODING. |
| 7297 | |
| 7298 | * fontset.c (FONTSET_ASCII): Use the first element of char table |
| 7299 | for an ASCII font, not defalt slot. |
| 7300 | (fontset_ref_via_base): If FONTSET doesn't contain information for |
| 7301 | C, try the default fontset. |
| 7302 | (make_fontset): Don't copy the default fontset. |
| 7303 | (fontset_font_pattern): Likewise. |
| 7304 | (accumulate_font_info): If ELT is nil, use the corresponding |
| 7305 | element in the default fontset. |
| 7306 | |
| 7307 | 2000-06-19 Dave Love <fx@gnu.org> |
| 7308 | |
| 7309 | * syntax.c (Fparse_partial_sexp): Doc fix. |
| 7310 | |
| 7311 | * regex.h: Test PROTOTYPES as well as __STDC__. |
| 7312 | |
| 7313 | * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare |
| 7314 | errno, strerror. Put text after #endif in comment. |
| 7315 | |
| 7316 | * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for |
| 7317 | pcc). |
| 7318 | |
| 7319 | * xterm.c (x_frame_of_widget): Likewise. |
| 7320 | |
| 7321 | 2000-06-19 Gerd Moellmann <gerd@gnu.org> |
| 7322 | |
| 7323 | * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table |
| 7324 | to Vfundamental_mode_abbrev_table. |
| 7325 | |
| 7326 | * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no |
| 7327 | bogus objects are marked. This slows down GC by ~80 percent, but |
| 7328 | it might be worth trying when debugging GC-related problems. |
| 7329 | This feature requires conservative stack marking to be enabled. |
| 7330 | |
| 7331 | * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString |
| 7332 | returns XLookupChars, reset `modifiers' to zero. |
| 7333 | |
| 7334 | 2000-06-19 Dave Love <fx@gnu.org> |
| 7335 | |
| 7336 | * mktime.c: Unprotoized. |
| 7337 | |
| 7338 | 2000-06-19 Richard Stallman <rms@gnu.org> |
| 7339 | |
| 7340 | * data.c (set_internal): If variable is frame-local, |
| 7341 | store the new value immediately into the frame parameter alist. |
| 7342 | |
| 7343 | 2000-06-19 Ken Raeburn <raeburn@gnu.org> |
| 7344 | |
| 7345 | * xfns.c (jpeg_load): Fetch error-handling data first, then fill |
| 7346 | in the custom handler pointer. |
| 7347 | |
| 7348 | * keyboard.c (follow_key, read_key_sequence): Use XUINT on key |
| 7349 | value, or checks for CHAR_META can fail when Lisp_Object is a |
| 7350 | union type. |
| 7351 | * keymap.c (get_keyelt): Likewise. |
| 7352 | |
| 7353 | 2000-06-19 Kenichi Handa <handa@etl.go.jp> |
| 7354 | |
| 7355 | * ccl.h (struct ccl_program): New member eol_type. |
| 7356 | (struct ccl_spec): New member cr_carryover. |
| 7357 | |
| 7358 | * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type. |
| 7359 | (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF. |
| 7360 | |
| 7361 | * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'. |
| 7362 | (ccl_coding_driver): On encoding, initialize ccl->eol_type. |
| 7363 | (decode_eol_post_ccl): New function. |
| 7364 | (decode_coding): Don't detect EOL format here for CCL based coding |
| 7365 | systems. |
| 7366 | (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call |
| 7367 | decode_eol_post_ccl after running the CCL program. |
| 7368 | (code_convert_region): Don't detect EOL format here for CCL based |
| 7369 | coding systems. |
| 7370 | (decode_coding_string): Likewise. |
| 7371 | |
| 7372 | 2000-06-18 Ken Raeburn <raeburn@gnu.org> |
| 7373 | |
| 7374 | * charset.c (update_charset_table): Use XINT on "iso_final_char" |
| 7375 | when treating it as an integer. |
| 7376 | |
| 7377 | * coding.h (encode_coding_string): Declare. |
| 7378 | |
| 7379 | * keyboard.c (read_key_sequence): Use XINT on "pos" when treating |
| 7380 | it as an integer. |
| 7381 | |
| 7382 | * keymap.c (Fwhere_is_internal): Rename argument "keymap" to |
| 7383 | "xkeymap" to avoid shadowing the "enum map_type" value that needs |
| 7384 | to be passed to get_local_map. |
| 7385 | |
| 7386 | * sound.c (Fplay_sound): Don't call make_number on |
| 7387 | Frun_hook_with_args count argument. |
| 7388 | |
| 7389 | * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer |
| 7390 | for lisp objects in X event structure data field, when lisp |
| 7391 | objects are represented with unions. |
| 7392 | (x_scroll_bar_to_input_event): Ditto. |
| 7393 | |
| 7394 | 2000-06-16 Ken Raeburn <raeburn@gnu.org> |
| 7395 | |
| 7396 | * xdisp.c (decode_mode_spec): In "no_value" case, do NUL |
| 7397 | termination of string. Fix sense of test whether |
| 7398 | Vline_number_display_limit is an integer. |
| 7399 | |
| 7400 | 2000-06-16 Gerd Moellmann <gerd@gnu.org> |
| 7401 | |
| 7402 | * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors |
| 7403 | only if HAVE_X_WINDOWS. |
| 7404 | |
| 7405 | * keymap.c (describe_buffer_bindings): Add `\f\n' in front |
| 7406 | of titles. |
| 7407 | |
| 7408 | * dispnew.c (update_frame_1): Handle case that cursor vpos is |
| 7409 | out of bounds. |
| 7410 | |
| 7411 | 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il> |
| 7412 | |
| 7413 | * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS |
| 7414 | of its headers. |
| 7415 | |
| 7416 | 2000-06-15 Kenichi Handa <handa@etl.go.jp> |
| 7417 | |
| 7418 | * coding.c (decode_coding_emacs_mule): Always set src_base at the |
| 7419 | start of the while loop. |
| 7420 | |
| 7421 | 2000-06-15 Gerd Moellmann <gerd@gnu.org> |
| 7422 | |
| 7423 | * atimer.c (alarm_signal_handler): Add forward declaration. |
| 7424 | |
| 7425 | * data.c (set_internal): Remove debug code. |
| 7426 | |
| 7427 | 2000-06-14 Gerd Moellmann <gerd@gnu.org> |
| 7428 | |
| 7429 | * Makefile.in (bootstrap-temacs): Add `-I../src'. |
| 7430 | |
| 7431 | * unexec.c (toplevel) [COFF]: Include coff.h. |
| 7432 | |
| 7433 | * s/lynxos.h: New file. |
| 7434 | |
| 7435 | * keymap.c (Fsingle_key_description): Enclose function key and |
| 7436 | event symbol names in angle brackets. |
| 7437 | |
| 7438 | * xdisp.c (setup_echo_area_for_printing): Call |
| 7439 | message_log_maybe_newline if message_buf_print is not set. |
| 7440 | |
| 7441 | * print.c (printchar, strout): Don't check message_buf_print |
| 7442 | before calling setup_echo_area_for_printing because that |
| 7443 | function does something useful even when message_buf_print is |
| 7444 | already set. |
| 7445 | |
| 7446 | * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New |
| 7447 | variables. |
| 7448 | (ensure_echo_area_buffers): Initialize echo buffer's |
| 7449 | truncate lines setting to nil. |
| 7450 | (with_echo_area_buffer): Don't set the echo buffer's truncate |
| 7451 | lines setting here. |
| 7452 | (set_message_1): Set it here instead, based on the value |
| 7453 | of message_truncate_lines. |
| 7454 | (resize_mini_window): Handle case that lines are truncated. |
| 7455 | (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL |
| 7456 | message-truncate-lines. |
| 7457 | |
| 7458 | * keyboard.c (read_char): Bind message-truncate-lines to t |
| 7459 | while displaying a help-echo. |
| 7460 | |
| 7461 | * lisp.h (Qmessage_truncate_lines): External declaration. |
| 7462 | |
| 7463 | 2000-06-13 Gerd Moellmann <gerd@gnu.org> |
| 7464 | |
| 7465 | * xdisp.c (Vline_number_display_limit): Renamed from |
| 7466 | line_number_display_limit. |
| 7467 | (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit. |
| 7468 | Extend documentation string. Initialize |
| 7469 | Vline_number_display_limit to nil meaning no limit. |
| 7470 | (decode_mode_spec): Use Vline_number_display_limit with its new |
| 7471 | meaning. |
| 7472 | |
| 7473 | * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype. |
| 7474 | |
| 7475 | 2000-06-13 Richard Stallman <rms@gnu.org> |
| 7476 | |
| 7477 | * frame.c (Fmodify_frame_parameters): Doc fix. |
| 7478 | |
| 7479 | * xfns.c (x_set_frame_parameters): Comment fix. |
| 7480 | |
| 7481 | * frame.c (store_frame_param): Call swap_in_global_binding if the |
| 7482 | variable's current binding was chosen based on this frame. |
| 7483 | |
| 7484 | * data.c (swap_in_global_binding): New function. |
| 7485 | |
| 7486 | 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> |
| 7487 | |
| 7488 | * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING |
| 7489 | macro, instead AND with CODING_REQUIRE_ENCODING_MASK. |
| 7490 | |
| 7491 | 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> |
| 7492 | |
| 7493 | * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_. |
| 7494 | |
| 7495 | 2000-06-12 Jason Rumney <jasonr@gnu.org> |
| 7496 | |
| 7497 | * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__ |
| 7498 | |
| 7499 | * w32.h (EMACS_W32_H): Renamed from _NT_H_ |
| 7500 | |
| 7501 | * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__ |
| 7502 | |
| 7503 | * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__ |
| 7504 | |
| 7505 | 2000-06-12 Gerd Moellmann <gerd@gnu.org> |
| 7506 | |
| 7507 | * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function. |
| 7508 | (syms_of_xfaces): Defsubr Sdump_colors. |
| 7509 | (x_free_colors): Don't treat b&w specially on default visual. |
| 7510 | (x_free_dpy_colors): New function. |
| 7511 | (free_face_colors): Don't check visual class; it's done |
| 7512 | in x_free_colors. |
| 7513 | |
| 7514 | * xterm.c (x_frame_of_widget): New function. |
| 7515 | (x_alloc_nearest_color_for_widget): Use it. |
| 7516 | (x_copy_dpy_color): New function. |
| 7517 | (x_destroy_window): Free various colors. |
| 7518 | |
| 7519 | 2000-06-12 Kenichi Handa <handa@etl.go.jp> |
| 7520 | |
| 7521 | * ccl.h (EMACS_CCL_H): Renamed from _CCL_H. |
| 7522 | |
| 7523 | * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H. |
| 7524 | |
| 7525 | * coding.h (EMASC_CODING_H): Renamed from _CODING_H. |
| 7526 | |
| 7527 | * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H. |
| 7528 | |
| 7529 | * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H. |
| 7530 | |
| 7531 | 2000-06-11 Dave Love <fx@gnu.org> |
| 7532 | |
| 7533 | * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H. |
| 7534 | |
| 7535 | 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il> |
| 7536 | |
| 7537 | * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead. |
| 7538 | |
| 7539 | 2000-06-11 Gerd Moellmann <gerd@gnu.org> |
| 7540 | |
| 7541 | * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu |
| 7542 | to `XEvent *'. |
| 7543 | |
| 7544 | 2000-06-10 Kenichi Handa <handa@etl.go.jp> |
| 7545 | |
| 7546 | * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env. |
| 7547 | (regex_compile): Fix the code for handling the case of single byte |
| 7548 | char and multibyte char being mixed in a range within [...]. |
| 7549 | |
| 7550 | * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte |
| 7551 | and dst_multibyte members of coding. |
| 7552 | |
| 7553 | * charset.c (update_charset_table): Update the table |
| 7554 | bytes_by_char_head. |
| 7555 | (init_charset_once): Initialize elements of bytes_by_char_head to |
| 7556 | 1 except for leading codes for private charases. |
| 7557 | |
| 7558 | * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80. |
| 7559 | (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte |
| 7560 | sequence. |
| 7561 | |
| 7562 | 2000-06-09 Ken Raeburn <raeburn@gnu.org> |
| 7563 | |
| 7564 | * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to |
| 7565 | access the data it doesn't point to. |
| 7566 | |
| 7567 | 2000-06-08 Gerd Moellmann <gerd@gnu.org> |
| 7568 | |
| 7569 | * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which |
| 7570 | will be translated to a switch-frame event when reading the |
| 7571 | event queue. This is necessary because Emacs otherwise won't |
| 7572 | perform a switch-frame to a new frame until some other event, for |
| 7573 | example a keystroke event, forces it to do so. This has various |
| 7574 | effects, one visible being that the cursor of a frame created with |
| 7575 | C-x 5 2 or switched to with a window manager key binding like |
| 7576 | A-TAB stays hollow because selected_window isn't on the newly |
| 7577 | focused frame until the switch-frame is performed. |
| 7578 | |
| 7579 | * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by |
| 7580 | generating a switch-frame event if necessary. |
| 7581 | |
| 7582 | * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT. |
| 7583 | |
| 7584 | * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos'; |
| 7585 | it's an integer. |
| 7586 | |
| 7587 | 2000-06-08 Kenichi Handa <handa@etl.go.jp> |
| 7588 | |
| 7589 | * fontset.c (Fset_fontset_font): The arg CHARACTER may be a |
| 7590 | charset. |
| 7591 | |
| 7592 | 2000-06-07 Gerd Moellmann <gerd@gnu.org> |
| 7593 | |
| 7594 | * window.c (displayed_window_lines): Take empty lines at |
| 7595 | the bottom of a window into account. |
| 7596 | |
| 7597 | * window.c (displayed_window_lines): New function. |
| 7598 | (Fmove_to_window_line): Use displayed_window_lines to determine |
| 7599 | the number of lines to move, instead of using the window's height. |
| 7600 | |
| 7601 | * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange |
| 7602 | to stop reading, even if the form read sets point to a different |
| 7603 | value when evaluated. |
| 7604 | |
| 7605 | * xdisp.c (display_line): Fix code deciding in which line to |
| 7606 | put the cursor. |
| 7607 | |
| 7608 | 2000-06-07 Kenichi Handa <handa@etl.go.jp> |
| 7609 | |
| 7610 | * fileio.c (e_write): Free composition data if stored in |
| 7611 | coding->cmp_data. |
| 7612 | |
| 7613 | 2000-06-06 Gerd Moellmann <gerd@gnu.org> |
| 7614 | |
| 7615 | * xdisp.c (display_line): Set row's and iterator's |
| 7616 | starts_in_middle_of_char_p and ends_in_middle_of_char_p flags. |
| 7617 | Set cursor even if row ends in the middle of a character. |
| 7618 | (dump_glyph_row): Print values of new flags. |
| 7619 | (redisplay_window) <cursor movement in unchanged window>: When |
| 7620 | point has been moved forward, and PT is at the end of the cursor |
| 7621 | row, don't place the cursor in the next row if the cursor row ends |
| 7622 | in the middle of a character or at ZV. |
| 7623 | |
| 7624 | * dispextern.h (struct it): Add starts_in_middle_of_char_p. |
| 7625 | (struct glyph_row): Add starts_in_middle_of_char_p and |
| 7626 | ends_in_middle_of_char_p. |
| 7627 | (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's |
| 7628 | ends_in_middle_of_char_p flag. |
| 7629 | (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise. |
| 7630 | |
| 7631 | * term.c (append_glyph): Revert change of 2000-06-06. |
| 7632 | |
| 7633 | * xdisp.c (display_line): Revert change of 2000-06-06. Treat |
| 7634 | padding glyph not fitting on line as whole character not |
| 7635 | fitting on line. |
| 7636 | |
| 7637 | * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0'; |
| 7638 | this isn't true for images with `:ascent 100'. |
| 7639 | |
| 7640 | 2000-06-06 Kenichi Handa <handa@etl.go.jp> |
| 7641 | |
| 7642 | * buffer.c (Fset_buffer_multibyte): Don't make the current buffer |
| 7643 | as modified if it is originally unmodified. |
| 7644 | |
| 7645 | * term.c (encode_terminal_code): Change the way to check if |
| 7646 | terminal coding does any conversion. |
| 7647 | (append_glyph): Set glyph->pixel_width correctly. |
| 7648 | |
| 7649 | * xdisp.c (display_line): While checking line continuation, pay |
| 7650 | attention to a padding glyph. |
| 7651 | |
| 7652 | 2000-06-05 Gerd Moellmann <gerd@gnu.org> |
| 7653 | |
| 7654 | * xdisp.c (redisplay_window): Always use set_buffer_internal_1. |
| 7655 | |
| 7656 | 2000-06-05 Dave Love <fx@gnu.org> |
| 7657 | |
| 7658 | * xdisp.c: Include fontset.h. |
| 7659 | |
| 7660 | * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned. |
| 7661 | |
| 7662 | * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. |
| 7663 | |
| 7664 | * dispnew.c: Conditionally include term.h. |
| 7665 | |
| 7666 | * coding.h: Declare code_convert_string_norecord. |
| 7667 | |
| 7668 | * frame.h (struct frame): Use volatile unconditionally. |
| 7669 | |
| 7670 | * buffer.h: Remove Vbefore_change_function, Vafter_change_function. |
| 7671 | |
| 7672 | * xmenu.c (menu_item_selection): Declare volatile unconditionally. |
| 7673 | |
| 7674 | * systime.h: Protect against multiple inclusion. |
| 7675 | (timezone) [USG5_4]: Define as time_t. |
| 7676 | |
| 7677 | * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. |
| 7678 | (Foptimize_char_table, make_temp_name): Declare. |
| 7679 | |
| 7680 | * Makefile.in (xdisp.o): Depend on fontset.h. |
| 7681 | |
| 7682 | * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. |
| 7683 | |
| 7684 | * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. |
| 7685 | (Foptimize_char_table, make_temp_name): Declare. |
| 7686 | |
| 7687 | * s/irix4-0.h: |
| 7688 | * s/irix5-0.h: |
| 7689 | * s/netbsd.h: Don't define autoconfiscated MATHERR. |
| 7690 | |
| 7691 | 2000-06-02 Dave Love <fx@gnu.org> |
| 7692 | |
| 7693 | * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define. |
| 7694 | |
| 7695 | 2000-06-02 Gerd Moellmann <gerd@gnu.org> |
| 7696 | |
| 7697 | * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the |
| 7698 | result face, set flags in that face indicating that colors may not |
| 7699 | be freed. |
| 7700 | |
| 7701 | * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character |
| 7702 | glyph, use the ASCII NUL character to determine the face. |
| 7703 | |
| 7704 | 2000-06-02 Dave Love <fx@gnu.org> |
| 7705 | |
| 7706 | * sysdep.c: Conditionally include stdlib.h, unistd.h. |
| 7707 | (VFORK_RETURN_TYPE): Remove. |
| 7708 | |
| 7709 | * config.in: Add NO_MATHERR. |
| 7710 | |
| 7711 | 2000-06-01 Dave Love <fx@gnu.org> |
| 7712 | |
| 7713 | * cmds.c (internal_self_insert): Don't check |
| 7714 | Vbefore_change_function, Vafter_change_function. |
| 7715 | |
| 7716 | * insdel.c (signal_before_change, signal_after_change): Likewise. |
| 7717 | |
| 7718 | * buffer.c (Vbefore_change_function, Vafter_change_function): |
| 7719 | Variables and their initializations deleted. |
| 7720 | |
| 7721 | * callint.c (Fcall_interactively): Doc fix. |
| 7722 | |
| 7723 | * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern. |
| 7724 | |
| 7725 | 2000-05-31 Dave Love <fx@gnu.org> |
| 7726 | |
| 7727 | * textprop.c: Revert last change -- duplicated. |
| 7728 | |
| 7729 | 2000-05-31 Gerd Moellmann <gerd@gnu.org> |
| 7730 | |
| 7731 | * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put |
| 7732 | in #if 0. |
| 7733 | |
| 7734 | * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'. |
| 7735 | |
| 7736 | 2000-05-31 Jason Rumney <jasonr@gnu.org> |
| 7737 | |
| 7738 | * search.c (Fre_search_forward, Fre_search_backward) |
| 7739 | (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs. |
| 7740 | |
| 7741 | * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil. |
| 7742 | |
| 7743 | 2000-05-30 Jason Rumney <jasonr@gnu.org> |
| 7744 | |
| 7745 | * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros. |
| 7746 | [WINDOWSNT]: Add extern for Vw32_system_coding_system. |
| 7747 | |
| 7748 | * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type |
| 7749 | member. |
| 7750 | |
| 7751 | * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog. |
| 7752 | (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to |
| 7753 | expand a nil default_filename. |
| 7754 | |
| 7755 | * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window |
| 7756 | pointer to glyph_to_pixel_coords, not a frame. |
| 7757 | |
| 7758 | * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and |
| 7759 | coding.h to dependencies. |
| 7760 | |
| 7761 | * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p. |
| 7762 | |
| 7763 | * w32console.c (glyph_to_pixel_coords): Change first parameter to |
| 7764 | window pointer to be consistent with w32term.c and xterm.c. |
| 7765 | |
| 7766 | * w32fns.c: Format and doc changes to bring closer to xfns.c. |
| 7767 | (VIETNAMESE_CHARSET): Define if not defined in system headers. |
| 7768 | (Qline_spacing, Qcenter): New variables. |
| 7769 | (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c. |
| 7770 | (x_set_line_spacing): New function. |
| 7771 | (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT |
| 7772 | macros. |
| 7773 | (x_specified_cursor_type): New function. |
| 7774 | (x_set_cursor_type): Use it. |
| 7775 | (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar |
| 7776 | and icon strings. |
| 7777 | (validate_x_resource_name, x_get_resource_string): Measure lengths |
| 7778 | of external strings in bytes. |
| 7779 | (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling |
| 7780 | GetTextExtentPoint32 with NULL title. |
| 7781 | (Fx_create_frame): Initialize Qline_spacing. |
| 7782 | (w32_load_system_font): Initialize font->double_byte_p. |
| 7783 | (x_to_w32_charset): Use Vw32_charset_info_alist. |
| 7784 | (Image, busy cursor, tooltip functions): Merged changes from |
| 7785 | xfns.c. Not yet functional on Windows. |
| 7786 | |
| 7787 | * w32gui.h (W32FontStruct): Add double_byte_p member. |
| 7788 | |
| 7789 | * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant. |
| 7790 | (emacs_button_translation): Use it. |
| 7791 | (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit |
| 7792 | in `mask' to be set. |
| 7793 | |
| 7794 | * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on |
| 7795 | menu strings. |
| 7796 | |
| 7797 | * w32term.c: Format and doc changes to bring closer to xterm.c. |
| 7798 | (w32_char_font_type): New enum. |
| 7799 | (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c. |
| 7800 | (w32_per_char_metric): Use w32_char_font_type instead of unicode_p. |
| 7801 | (w32_encode_char): New function. |
| 7802 | (x_encode_char): Removed. |
| 7803 | (x_get_glyph_and_face_encoding): Use w32_encode_char in place of |
| 7804 | x_encode_char and w32_font_is_double_byte. |
| 7805 | (x_produce_image_glyph): Use image_ascent. |
| 7806 | (x_produce_glyphs): Use new version of w32_per_char_metric and |
| 7807 | handle NULL return value. Allow extra line spacing. |
| 7808 | (W32_TEXTOUT): Distinguish between Unicode and DBCS text. |
| 7809 | (w32_get_glyph_overhangs): Remove unicode_p param. Use |
| 7810 | w32_font_type member of glyph instead. |
| 7811 | (x_draw_glyph_string): Draw underline and strike-out for BDF fonts. |
| 7812 | (fast_find_position): Make sure not to consider rows not visible |
| 7813 | in the window. |
| 7814 | (w32_read_socket) [WM_MENUSELECT]: Cannot call |
| 7815 | w32_menu_display_help with input blocked, as it can abort. |
| 7816 | (x_display_and_set_cursor): Choose cursor depending |
| 7817 | on buffer-local value of cursor_type. |
| 7818 | (x_draw_bar_cursor): Add parameter WIDTH. |
| 7819 | |
| 7820 | * w32term.h (CP_DEFAULT): Define. |
| 7821 | (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare. |
| 7822 | |
| 7823 | 2000-05-30 Gerd Moellmann <gerd@gnu.org> |
| 7824 | |
| 7825 | * search.c (Fre_search_forward, Fre_search_backward) |
| 7826 | (Fposix_search_backward, Fposix_search_forward): Doc fix. |
| 7827 | |
| 7828 | 2000-05-30 Kenichi Handa <handa@etl.go.jp> |
| 7829 | |
| 7830 | * coding.c (detect_coding_iso2022): Fix code for checking |
| 7831 | CODING_CATEGORY_MASK_ISO_8_2. |
| 7832 | |
| 7833 | 2000-05-29 Stefan Monnier <monnier@cs.yale.edu> |
| 7834 | |
| 7835 | * regex.c (PREFETCH_NOLIMIT): New function. |
| 7836 | (re_match_2_internal): Use it and adjust the end_match_2 logic. |
| 7837 | |
| 7838 | 2000-05-29 Gerd Moellmann <gerd@gnu.org> |
| 7839 | |
| 7840 | * syntax.c (find_defun_start): Move test for |
| 7841 | open_paren_in_column_0_is_defun_start outside of the loop. |
| 7842 | |
| 7843 | * xdisp.c (redisplay_window): Really switch buffers when |
| 7844 | displaying mode lines, and temporarily set selected_frame to the |
| 7845 | frame of the window that's redisplayed. |
| 7846 | |
| 7847 | * xfaces.c (free_realized_faces): Block/unblock input. |
| 7848 | (free_realized_multibyte_face): Ditto. |
| 7849 | |
| 7850 | 2000-05-29 Dave Love <fx@gnu.org> |
| 7851 | |
| 7852 | * textprop.c (Qkeymap): New variable. |
| 7853 | (syms_of_textprop): Intern it. |
| 7854 | |
| 7855 | * keymap.c: Include intervals.h. |
| 7856 | (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property. |
| 7857 | |
| 7858 | * Makefile.in (keymap.o): Depend on intervals.h. |
| 7859 | |
| 7860 | * keyboard.c (menu_bar_items, tool_bar_items) |
| 7861 | (Fexecute_extended_command): Deal with `keymap' property. |
| 7862 | (read_key_sequence): Track map from `keymap' property as well as |
| 7863 | `local_map'. |
| 7864 | |
| 7865 | * intervals.c (get_local_map): Extra arg to allow looking for |
| 7866 | `keymap' too. |
| 7867 | |
| 7868 | * intervals.h (map_property): New enum. |
| 7869 | (get_local_map): Extra arg using it. |
| 7870 | (Qkeymap): Declare. |
| 7871 | |
| 7872 | * lisp.h (get_local_map): Don't declare here. |
| 7873 | |
| 7874 | 2000-05-29 Kenichi Handa <handa@etl.go.jp> |
| 7875 | |
| 7876 | * Makefile.in (callproc.o): Depend on composite.h. |
| 7877 | |
| 7878 | * callproc.c: Include composite.h. |
| 7879 | (Fcall_process): Handle composition correctly. |
| 7880 | |
| 7881 | * coding.h (coding_allocate_composition_data): Extern it. |
| 7882 | (coding_restore_composition): Likewise. |
| 7883 | |
| 7884 | * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not |
| 7885 | yet allocated, finish decoding with result |
| 7886 | CODING_FINISH_INSUFFICIENT_CMP. |
| 7887 | (coding_allocate_composition_data): Make it non-static. |
| 7888 | (coding_restore_composition): Likewise. |
| 7889 | |
| 7890 | 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il> |
| 7891 | |
| 7892 | * charset.c (syms_of_charset): Revert last change. |
| 7893 | |
| 7894 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
| 7895 | |
| 7896 | * term.c (produce_glyphs): Treat characters from the eight-bit-* |
| 7897 | charsets as unibyte, with 1-column screen width. Sent by Kenichi |
| 7898 | Handa. |
| 7899 | |
| 7900 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
| 7901 | |
| 7902 | * charset.c (syms_of_charset): Set width of character sets |
| 7903 | eight-bit-control and eight-bit-graphic to 1 column. |
| 7904 | |
| 7905 | 2000-05-26 Gerd Moellmann <gerd@gnu.org> |
| 7906 | |
| 7907 | * config.in (HAVE_SPEED_T): New define. |
| 7908 | |
| 7909 | * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as |
| 7910 | `extern speed_t'. |
| 7911 | |
| 7912 | 2000-05-26 Dave Love <fx@gnu.org> |
| 7913 | |
| 7914 | * coding.c (shrink_decoding_region): Initialize eol_conversion. |
| 7915 | |
| 7916 | * data.c (Qsubrp, Qmany, Qunevalled): New variables. |
| 7917 | (Fsubr_arity): New function. |
| 7918 | (syms_of_data): Install them. |
| 7919 | |
| 7920 | 2000-05-26 Kenichi Handa <handa@etl.go.jp> |
| 7921 | |
| 7922 | * charset.c (init_charset_once): Set the table bytes_by_char_head |
| 7923 | correctly. |
| 7924 | |
| 7925 | * fontset.c (syms_of_fontset): Adjust the font name for ascii of |
| 7926 | the default fontset to what Emacs uses by default. |
| 7927 | (check_registry_encoding): This function deleted. |
| 7928 | (Fset_fontset_font): Remove the adhoc condition for the default |
| 7929 | fontset. Allow cons in FONTNAME. |
| 7930 | |
| 7931 | * fns.c (map_char_table): Ignore char-table entries for |
| 7932 | charsets eight-bit-control and eight-bit-graphic. |
| 7933 | |
| 7934 | 2000-05-25 Ken Raeburn <raeburn@gnu.org> |
| 7935 | |
| 7936 | * emacs.c (main): Initialize keyboard syms before initializing |
| 7937 | window code, so face names are available. |
| 7938 | |
| 7939 | 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> |
| 7940 | |
| 7941 | * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case |
| 7942 | of an anchor at the beginning of a shy-group. |
| 7943 | |
| 7944 | 2000-05-25 Gerd Moellmann <gerd@gnu.org> |
| 7945 | |
| 7946 | * xdisp.c (handle_invisible_prop): Don't try to skip over |
| 7947 | invisible text if end of text is already reached. |
| 7948 | |
| 7949 | 2000-05-25 Dave Love <fx@gnu.org> |
| 7950 | |
| 7951 | * xdisp.c (Fdump_glyph_matrix): Declare the arg. |
| 7952 | |
| 7953 | * coding.c (encode_eol): Add null statement after label. |
| 7954 | |
| 7955 | 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il> |
| 7956 | |
| 7957 | * w16select.c (Fw16_set_clipboard_data): Fix the change from |
| 7958 | 2000-05-20. |
| 7959 | |
| 7960 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
| 7961 | |
| 7962 | * ccl.c (ccl_driver): Fix previous change. |
| 7963 | |
| 7964 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
| 7965 | |
| 7966 | * coding.c (run_pre_post_conversion_on_str): Set point to the |
| 7967 | beginning of buffer before calling coding->post_read_conversion. |
| 7968 | (decode_coding_string): Give correct args to |
| 7969 | run_pre_post_conversion_on_str. |
| 7970 | (encode_coding_string): Likewise. |
| 7971 | |
| 7972 | * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2> |
| 7973 | <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and |
| 7974 | eight-bit-graphic correctly. |
| 7975 | |
| 7976 | 2000-05-24 Kenichi HANDA <handa@etl.go.jp> |
| 7977 | |
| 7978 | * fileio.c (Finsert_file_contents): Even if a file is not found, |
| 7979 | execute codes for setting up coding system. Call |
| 7980 | after-insert-file-functions unconditionally. |
| 7981 | |
| 7982 | 2000-05-24 Gerd Moellmann <gerd@gnu.org> |
| 7983 | |
| 7984 | * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and |
| 7985 | BSD_PGRPS are not defined. |
| 7986 | |
| 7987 | 2000-05-24 Kenichi Handa <handa@etl.go.jp> |
| 7988 | |
| 7989 | * charset.c (update_charset_table): Accept nil in LONG_NAME and |
| 7990 | DESCRIPTION. |
| 7991 | (syms_of_charset): Avoid building same strings. |
| 7992 | |
| 7993 | 2000-05-23 Gerd Moellmann <gerd@gnu.org> |
| 7994 | |
| 7995 | * lread.c (Fload): Add a comment about the meaning of |
| 7996 | Vuser_init_file being t. |
| 7997 | |
| 7998 | * puresize.h (BASE_PURESIZE): Increase to 675000. |
| 7999 | |
| 8000 | * s/gnu-linux.h (setpgrp): Don't define it here because this |
| 8001 | prevents compilation on GNU/Linux systems with glib 2.2. |
| 8002 | |
| 8003 | * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define |
| 8004 | as setpgid. |
| 8005 | |
| 8006 | 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il> |
| 8007 | |
| 8008 | * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc, |
| 8009 | dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS |
| 8010 | version. |
| 8011 | (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc. |
| 8012 | |
| 8013 | 2000-05-23 Kenichi Handa <handa@etl.go.jp> |
| 8014 | |
| 8015 | * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE |
| 8016 | unconditionally. |
| 8017 | |
| 8018 | * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1. |
| 8019 | |
| 8020 | * term.c (encode_terminal_code): Set coding->src_multibyte |
| 8021 | properly. |
| 8022 | |
| 8023 | * coding.c (encode_eol): Fix a bug of DOS style EOL encoding. |
| 8024 | |
| 8025 | 2000-05-22 Kenichi Handa <handa@etl.go.jp> |
| 8026 | |
| 8027 | * keyboard.c (read_char): Allow character codes 128..255 to be |
| 8028 | handled by input-method-function. |
| 8029 | |
| 8030 | * insdel.c (adjust_markers_for_replace): Fix previous change. |
| 8031 | (adjust_after_replace): If PREV_TEXT is nil, call |
| 8032 | adjust_markers_for_insert, not adjust_markers_for_replace. |
| 8033 | |
| 8034 | 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp> |
| 8035 | |
| 8036 | * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define. |
| 8037 | (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF) |
| 8038 | [HAVE_GRANDPT]: Define. |
| 8039 | (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE. |
| 8040 | |
| 8041 | * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined |
| 8042 | like SYSV_PTYS. |
| 8043 | |
| 8044 | * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines. |
| 8045 | |
| 8046 | * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h. |
| 8047 | |
| 8048 | 2000-05-20 Kenichi Handa <handa@etl.go.jp> |
| 8049 | |
| 8050 | The following changes are to handle 8-bit characters in a |
| 8051 | multibyte buffer/string without facing with byte combining |
| 8052 | problem. Two new charsets eight-bit-control (for 0x80..0x9F) and |
| 8053 | eight-bit-graphic (for 0xA0..0xFF) are introduced. |
| 8054 | |
| 8055 | * Makefile.in (fns.o): Depend on charset.h. |
| 8056 | |
| 8057 | * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte, |
| 8058 | convert it to unibyte. |
| 8059 | (make_string): Use parse_str_as_multibyte, not chars_in_text. |
| 8060 | |
| 8061 | * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a |
| 8062 | apparent char boundary. |
| 8063 | (Fset_buffer_multibyte): Convert 8-bit characters in the range |
| 8064 | 0x80..0x9F to/from multibyte form. |
| 8065 | |
| 8066 | * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it |
| 8067 | to unibyte. |
| 8068 | |
| 8069 | * callproc.c (Fcall_process): Always encode an argument string if |
| 8070 | it is multibyte. Setup src_multibyte and dst_multibyte members of |
| 8071 | process_coding properly. |
| 8072 | |
| 8073 | * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not |
| 8074 | SPLIT_NON_ASCII_CHAR. |
| 8075 | |
| 8076 | * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters |
| 8077 | as is. |
| 8078 | (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR. |
| 8079 | |
| 8080 | * charset.c (Qeight_bit_control, Qeight_bit_graphic): New |
| 8081 | variables. |
| 8082 | (SPLIT_CHARACTER_SEQ): This macro deleted. |
| 8083 | (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is |
| 8084 | valid. |
| 8085 | (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control |
| 8086 | and eight-bit-graphic. |
| 8087 | (char_to_string): Likewise. Signal an error for too large |
| 8088 | character code. |
| 8089 | (char_printable_p): Return 0 for 8-bit characters. |
| 8090 | (update_charset_table): Update iso_charset_table only when a final |
| 8091 | character is non-negative. |
| 8092 | (find_charset_in_text): Renamed from find_charset_in_str. |
| 8093 | Arguments and return value changed. Callers changed. |
| 8094 | (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can |
| 8095 | be -1 if CHARSET is used only internally. |
| 8096 | (Fmake_char_internal): Handle new charsets; eight-bit-control and |
| 8097 | eight-bit-graphic. |
| 8098 | (Fcharset_after): Simplified. |
| 8099 | (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR. |
| 8100 | (char_bytes): Return 2 for chars of the range 0xA0..0xFF. |
| 8101 | (multibyte_chars_in_text): Simplified by assuming there's no |
| 8102 | invalid multibyte sequence. |
| 8103 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, |
| 8104 | str_as_unibyte): New functions. |
| 8105 | (Fstring): Simpified by assuming that byte combining never |
| 8106 | happens. |
| 8107 | (init_charset_once): Initialization for |
| 8108 | LEADING_CODE_8_BIT_CONTROL. |
| 8109 | (syms_of_charset): Intern and staticpro Qeight_bit_control and |
| 8110 | Qeight_bit_graphic. Include them in Vcharset_list. Make charsets |
| 8111 | eight-bit-control and eight-bit-graphic. |
| 8112 | |
| 8113 | * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL, |
| 8114 | CHARSET_8_BIT_GRAPHIC): New macros. |
| 8115 | (SINGLE_BYTE_CHAR_P): Make it faster by using casting. |
| 8116 | (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. |
| 8117 | (CHARSET_REVERSE_CHARSET): Likewise. |
| 8118 | (CHARSET_VALID_P): Handle new charsets; eight-bit-control and |
| 8119 | eight-bit-graphic. |
| 8120 | (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. |
| 8121 | (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. |
| 8122 | (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we |
| 8123 | encounter an invalid multibyte sequence. |
| 8124 | (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte |
| 8125 | sequence is always valid. |
| 8126 | (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. |
| 8127 | (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New |
| 8128 | macros. |
| 8129 | (CHAR_STRING): For 8-bit characters, call char_to_string. |
| 8130 | (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume |
| 8131 | multibyte sequence is always valid. |
| 8132 | (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. |
| 8133 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, |
| 8134 | str_as_unibyte): Extern them. |
| 8135 | (BCOPY_SHORT): Fix a bug. |
| 8136 | (CHAR_LEN): This macro deleted. Callers changed to use |
| 8137 | CHAR_BYTES. |
| 8138 | (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. |
| 8139 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. |
| 8140 | (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer. |
| 8141 | |
| 8142 | * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to |
| 8143 | CODING_FINISH_INSUFFICIENT_SRC if there's not enough source. |
| 8144 | (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE, |
| 8145 | EMIT_BYTES): New macros. |
| 8146 | (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII, |
| 8147 | DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These |
| 8148 | macros deleted. |
| 8149 | (CHECK_CODE_RANGE_A0_FF): This macro deleted. |
| 8150 | (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to |
| 8151 | check the validity of multibyte sequence. |
| 8152 | (decode_coding_emacs_mule): New function. |
| 8153 | (encode_coding_emacs_mule): New macro. |
| 8154 | (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from |
| 8155 | the source. |
| 8156 | (DECODE_ISO_CHARACTER): Just return a character code. |
| 8157 | (DECODE_COMPOSITION_START): Set coding->result instead of result. |
| 8158 | (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use |
| 8159 | EMIT_CHAR to produced decoded characters. Exit the loop only by |
| 8160 | macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last |
| 8161 | block here. |
| 8162 | (ENCODE_ISO_CHARACTER): Don't translate character here. Produce |
| 8163 | only position codes for an invalid character. |
| 8164 | (encode_designation_at_bol): Return new destination pointer. 5th |
| 8165 | arg DSTP is changed to DST. |
| 8166 | (encode_coding_iso2022, decode_coding_sjis_big5): Get a character |
| 8167 | from the source by ONE_MORE_CHAR. Don't handle the case of last |
| 8168 | block here. |
| 8169 | (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These |
| 8170 | macros deleted. |
| 8171 | (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8, |
| 8172 | detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and |
| 8173 | TWO_MORE_BYTES to fetch a byte from the source. |
| 8174 | (encode_eol): Pay attention to coding->src_multibyte. |
| 8175 | (detect_coding, detect_eol): Preserve members src_multibyte and |
| 8176 | dst_multibyte. |
| 8177 | (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text. |
| 8178 | (encoding_buffer_size): Set magnification to 3 for all coding |
| 8179 | systems that require encoding. |
| 8180 | (ccl_coding_driver): For decoding, be sure that the result is |
| 8181 | valid multibyte sequence. |
| 8182 | (decode_coding): Initialize coding->errors and coding->result. |
| 8183 | For emacs-mule, call decode_coding_emacs_mule. For no-conversion |
| 8184 | and raw-text, always call decode_eol. Handle the case of last |
| 8185 | block here. If not coding->dst_multibyte, convert the resulting |
| 8186 | sequence to unibyte. |
| 8187 | (encode_coding): Initialize coding->errors and coding->result. |
| 8188 | For emacs-mule, call encode_coding_emacs_mule. For no-conversion |
| 8189 | and raw-text, always call encode_eol. Handle the case of last |
| 8190 | block here. |
| 8191 | (shrink_decoding_region, shrink_encoding_region): Detect cases |
| 8192 | that we can't skip data more rigidly. |
| 8193 | (code_convert_region): Setup src_multibyte and dst_multibyte |
| 8194 | members of coding. For decoding, if the buffer is multibyte, |
| 8195 | convert the source sequence to unibyte in advance. For encoding, |
| 8196 | if the buffer is multibyte, convert the resulting sequence to |
| 8197 | multibyte afterward. |
| 8198 | (run_pre_post_conversion_on_str): New function. |
| 8199 | (code_convert_string): Deleted and divided into the following two. |
| 8200 | (decode_coding_string, encode_coding_string): New functions. |
| 8201 | (code_convert_string1, code_convert_string_norecord): Call one of |
| 8202 | above. |
| 8203 | (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of |
| 8204 | MAKE_NON_ASCII_CHAR. |
| 8205 | (Fset_terminal_coding_system_internal, |
| 8206 | Fset_safe_terminal_coding_system_internal): Setup src_multibyte |
| 8207 | and dst_multibyte members. |
| 8208 | (init_coding_once): Initialize iso_code_class with new enum |
| 8209 | ISO_control_0 and ISO_control_1. |
| 8210 | |
| 8211 | * coding.h (enum iso_code_class_type): Member ISO_control_code is |
| 8212 | devided into ISO_control_0 and ISO_control_1. |
| 8213 | (struct coding_system): New members src_multibyte, dst_multibyte, |
| 8214 | errors, and result. Delete member fake_multibyte. |
| 8215 | (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is |
| 8216 | nonzero. |
| 8217 | (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is |
| 8218 | nonzero. |
| 8219 | |
| 8220 | * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR. |
| 8221 | (Faset): Likewise. |
| 8222 | |
| 8223 | * editfns.c (Fformat): Be sure to convert 8-bit characters to |
| 8224 | multibyte form. |
| 8225 | (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte |
| 8226 | combining occurs. |
| 8227 | (Ftranspose_region): Delete codes for handling byte combining. |
| 8228 | |
| 8229 | * fileio.c (Finsert_file_contents): Setup src_multibyte and |
| 8230 | dst_multibyte members of coding. On handling REPLACE on unibyte |
| 8231 | buffer, convert the result of decode_coding to unibyte. On |
| 8232 | inserting into a mutibyte buffer, always call code_convert_region. |
| 8233 | (e_write): Setup coding->src_multibyte according to the |
| 8234 | multibyteness of the source (buffer or string). |
| 8235 | |
| 8236 | * fns.c (concat): Handle 8-bit characters correctly. |
| 8237 | (Fstring_as_unibyte): Be sure to make all 8-bit characters in |
| 8238 | unibyte in the result. |
| 8239 | (Fstring_as_multibyte): Be sure to make all 8-bit characters in |
| 8240 | valid multibyte form in the result. |
| 8241 | (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. |
| 8242 | (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1 |
| 8243 | return -1, signal an error. |
| 8244 | (base64_encode_1): New arg MULTIBYTE. Get each character by |
| 8245 | CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte |
| 8246 | character is found, return -1. |
| 8247 | (Fbase64_decode_region): Delete codes for handling byte-combining. |
| 8248 | Treat each decoded byte as a unibyte character. |
| 8249 | (Fbase64_decode_string): Return unibyte string. |
| 8250 | (Fcompare_strings, concat, string_byte_to_char): Use |
| 8251 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off |
| 8252 | FETCH_STRING_CHAR_ADVANCE. |
| 8253 | (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally. |
| 8254 | (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE. |
| 8255 | |
| 8256 | * fontset.c (fontset_ref): Use SPLIT_CHAR instead of |
| 8257 | SPLIT_NON_ASCII_CHAR. |
| 8258 | (fontset_ref_via_base, fontset_set): Likewise |
| 8259 | |
| 8260 | * insdel.c (adjust_markers_for_record_delete): Deleted. |
| 8261 | (adjust_markers_for_insert): Argument changed. Caller changed. |
| 8262 | (adjust_markers_for_replace): Likewise. |
| 8263 | (ADJUST_CHAR_POS, combine_bytes, byte_combining_error, |
| 8264 | CHECK_BYTE_COMBINING_FOR_INSERT): Deleted. |
| 8265 | (copy_text): Delete unused local varialbe c_save. For converting |
| 8266 | to multibyte, be sure to make all 8-bit characters in valid |
| 8267 | multibyte form. |
| 8268 | (count_size_as_multibyte): Handle 8-bit characters correctly. |
| 8269 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, |
| 8270 | adjust_after_replace, replace_range, del_range_2) |
| 8271 | [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. |
| 8272 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, |
| 8273 | adjust_after_replace, replace_range, del_range_2) Delete codes for |
| 8274 | handling byte combining. |
| 8275 | (adjust_before_replace): Deleted. |
| 8276 | |
| 8277 | * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of |
| 8278 | SPLIT_NON_ASCII_CHAR. |
| 8279 | (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. |
| 8280 | (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE |
| 8281 | unconditionally. |
| 8282 | (Fkey_description): Likewise. |
| 8283 | |
| 8284 | * lread.c (read1): On reading multibyte string, be sure to make |
| 8285 | all 8-bit chararacters in valid multibyte form. |
| 8286 | (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally. |
| 8287 | |
| 8288 | * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE |
| 8289 | unconditionally. |
| 8290 | |
| 8291 | * process.c (Fstart_process): GCPRO current_dir before calling |
| 8292 | Ffind_operation_coding_system. Encode arguments here. |
| 8293 | (create_process): Don't encode arguments here. Setup |
| 8294 | src_multibyte and dst_multibyte members of struct coding. |
| 8295 | (read_process_output): Setup src_multibyte and dst_multibyte |
| 8296 | members of struct coding. If the output is to multibyte buffer, |
| 8297 | always decode the output of the process. Adjust the |
| 8298 | representation of 8-bit characters to the multibyteness of the |
| 8299 | output. |
| 8300 | (send_process): Setup coding->src_multibyte according to the |
| 8301 | multibyteness of the source. |
| 8302 | |
| 8303 | * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE |
| 8304 | unconditionally. |
| 8305 | (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and |
| 8306 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately. |
| 8307 | |
| 8308 | * term.c (produce_special_glyphs): Use CHAR_BYTES instead of |
| 8309 | CHAR_LEN. |
| 8310 | |
| 8311 | * w16select.c (Fw16_set_clipboard_data): Setup members |
| 8312 | src_multibyte and dst_multibyte of coding. Adjusted for the |
| 8313 | change for find_charset_in_str. |
| 8314 | (Fw16_get_clipboard_data): Likewise. |
| 8315 | |
| 8316 | * w32fns.c (w32_to_x_font): Setup members src_multibyte and |
| 8317 | dst_multibyte of coding. |
| 8318 | (x_to_w32_font): Likewise. |
| 8319 | |
| 8320 | * w32select.c (Fw32_set_clipboard_data): Setup members |
| 8321 | src_multibyte and dst_multibyte of coding. Adjusted for the |
| 8322 | change for find_charset_in_str. |
| 8323 | (Fw32_get_clipboard_data): Likewise. |
| 8324 | |
| 8325 | * xdisp.c (get_next_display_element): Handle 8-bit characters |
| 8326 | correctly. |
| 8327 | (next_element_from_display_vector): Use CHAR_BYTES instead of |
| 8328 | CHAR_LEN. |
| 8329 | (disp_char_vector): Use SPLIT_CHAR instead of |
| 8330 | SPLIT_NON_ASCII_CHAR. |
| 8331 | |
| 8332 | * xselect.c (selection_data_to_lisp_data): Setup members |
| 8333 | src_multibyte and dst_multibyte of coding. Adjusted for the |
| 8334 | change for find_charset_in_str. |
| 8335 | (lisp_data_to_selection_data): Likewise. |
| 8336 | |
| 8337 | 2000-05-19 Gerd Moellmann <gerd@gnu.org> |
| 8338 | |
| 8339 | * buffer.c (Fbury_buffer): Avoid trouble from burying a killed |
| 8340 | buffer. |
| 8341 | |
| 8342 | * dispextern.h (Vimage_types): Add extern declaration. |
| 8343 | |
| 8344 | * xdisp.c (Vimage_types): Moved here from xfns.c. |
| 8345 | (syms_of_xdisp): Move `image-types' variable here from xfns.c. |
| 8346 | |
| 8347 | * xfns.c (Vimages_types): Moved to xdisp.c. |
| 8348 | (syms_of_xfns): Move `image-types' to xdisp.c. |
| 8349 | |
| 8350 | * w32fns.c (Vimage_types): Removed. |
| 8351 | (syms_of_w32fns): Remove `image-types'. |
| 8352 | |
| 8353 | 2000-05-18 Kenichi Handa <handa@etl.go.jp> |
| 8354 | |
| 8355 | * fns.c (map_char_table): Pay attention to character number of |
| 8356 | charset. Check the validity of charset at the first level. For |
| 8357 | leaf nodes that has nil value, call C_FUNCTION or FUNCTION with |
| 8358 | the default value. |
| 8359 | |
| 8360 | * fontset.c: Include "buffer.h". |
| 8361 | (fs_load_font): If the face has fontset, record the face ID in |
| 8362 | that fontset. |
| 8363 | (Finternal_char_font): New function. |
| 8364 | (accumulate_font_info): New function. |
| 8365 | (Ffontset_info): Rewritten for the new fontset implementation. |
| 8366 | (syms_of_fontset): Register Vdefault_fontset in the first element |
| 8367 | of Vfontset_table. Include Vdefault_fontset in |
| 8368 | Vfontset_alias_alist. Declare `internal-char-font' as a Lisp |
| 8369 | function. |
| 8370 | |
| 8371 | 2000-05-16 Dave Love <fx@gnu.org> |
| 8372 | |
| 8373 | * m/iris5d.h: Deleted -- unused. |
| 8374 | |
| 8375 | 2000-05-16 Gerd Moellmann <gerd@gnu.org> |
| 8376 | |
| 8377 | * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term |
| 8378 | `invalid' instead of `illegal'. |
| 8379 | |
| 8380 | * indent.c (Fmove_to_column): When ending within a tab, insert |
| 8381 | spaces first so that markers at the end of the tab get adjusted. |
| 8382 | |
| 8383 | * frame.c (frames_bury_buffer): Don't add a buffer to the frame's |
| 8384 | buffer list that wasn't selected in that frame. |
| 8385 | |
| 8386 | * filelock.c (get_boot_time): To obtain an 8 char file name, which |
| 8387 | is needed on mescaline, use a 2 char prefix, and call |
| 8388 | make_temp_name with second arg non-zero. |
| 8389 | |
| 8390 | * fileio.c (make_temp_name): New function, extracted from |
| 8391 | Fmake_temp_name. |
| 8392 | (Fmake_temp_name): Use it. |
| 8393 | |
| 8394 | 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il> |
| 8395 | |
| 8396 | * window.c (coordinates_in_window): Subtract 1 when computing |
| 8397 | right_x. |
| 8398 | |
| 8399 | 2000-05-15 Gerd Moellmann <gerd@gnu.org> |
| 8400 | |
| 8401 | * Makefile.in (lisp): Add env.elc. |
| 8402 | |
| 8403 | * callproc.c (Fgetenv_internal): Renamed from Fgetenv. |
| 8404 | |
| 8405 | 2000-05-12 Gerd Moellmann <gerd@gnu.org> |
| 8406 | |
| 8407 | * search.c (Freplace_match): Handle case of `\N' in the |
| 8408 | replacement when there's no group N. |
| 8409 | |
| 8410 | 2000-05-11 Gerd Moellmann <gerd@gnu.org> |
| 8411 | |
| 8412 | * xdisp.c (add_to_log): Don't pass the terminating NUL byte |
| 8413 | of the message to message_dolog. |
| 8414 | |
| 8415 | * keyboard.c (read_char): Don't clear current message for help |
| 8416 | events; let the code handling help events handle this. Change |
| 8417 | code detecting help events that should be ignored. |
| 8418 | |
| 8419 | * xdisp.c (handle_single_display_prop): Don't try to set PT if |
| 8420 | we're interating over a string. |
| 8421 | |
| 8422 | 2000-05-09 Dave Love <fx@gnu.org> |
| 8423 | |
| 8424 | * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to |
| 8425 | that offset before writing. Move gcpro region past call of |
| 8426 | Ffile_regular_p. |
| 8427 | |
| 8428 | 2000-05-04 Dave Love <fx@gnu.org> |
| 8429 | |
| 8430 | * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix. |
| 8431 | |
| 8432 | 2000-05-04 Gerd Moellmann <gerd@gnu.org> |
| 8433 | |
| 8434 | * insdel.c (insert_from_buffer_1): Adjust FROM position by number |
| 8435 | of inserted characters when BUF equals the current buffer, and PT |
| 8436 | is in front of or equal to FROM. |
| 8437 | |
| 8438 | 2000-05-03 Gerd Moellmann <gerd@gnu.org> |
| 8439 | |
| 8440 | * xdisp.c (handle_single_display_prop): If display property value |
| 8441 | is invalid, or something not supported on the frame, restore |
| 8442 | iterator's position to what it was initially. Make sure to return |
| 8443 | 0 for invalid and unsupported property values. |
| 8444 | |
| 8445 | * xterm.c (x_produce_glyphs) <composite chars>: Handle case |
| 8446 | that x_per_char_metric returns null. |
| 8447 | |
| 8448 | 2000-05-02 Gerd Moellmann <gerd@gnu.org> |
| 8449 | |
| 8450 | * xterm.h (struct face): Add forward declaration. |
| 8451 | (struct image): Ditto. |
| 8452 | (image_ascent): Add prototype. |
| 8453 | |
| 8454 | * xterm.c (x_produce_image_glyph, x_draw_image_foreground) |
| 8455 | (x_draw_image_relief, x_draw_image_foreground_1): Call function |
| 8456 | image_ascent instead of using IMAGE_ASCENT. |
| 8457 | |
| 8458 | * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro. |
| 8459 | (IMAGE_ASCENT): Removed. |
| 8460 | |
| 8461 | * xfns.c (Qcenter): New variable. |
| 8462 | (enum image_value_type): Add IMAGE_ASCENT_VALUE. |
| 8463 | (parse_image_spec): Handle IMAGE_ASCENT_VALUE. |
| 8464 | (image_ascent): New function. |
| 8465 | (lookup_image): Recognize `:ascent center'. |
| 8466 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) |
| 8467 | (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE. |
| 8468 | (xbm_load): Don't set image's ascent here. |
| 8469 | (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p) |
| 8470 | (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't |
| 8471 | check ascent values here. |
| 8472 | (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed. |
| 8473 | (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions. |
| 8474 | (syms_of_xfns): Initialize Qcenter. |
| 8475 | |
| 8476 | * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near |
| 8477 | to the limits, increase the limits. |
| 8478 | |
| 8479 | 2000-05-01 Kenichi Handa <handa@etl.go.jp> |
| 8480 | |
| 8481 | * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII. |
| 8482 | Check Vfont_encoding_alist against the full name of the opened |
| 8483 | font. |
| 8484 | |
| 8485 | 2000-04-28 Gerd Moellmann <gerd@gnu.org> |
| 8486 | |
| 8487 | * xdisp.c (make_cursor_line_fully_visible): Handle case of rows |
| 8488 | taller than the window. |
| 8489 | |
| 8490 | 2000-04-28 Kenichi Handa <handa@etl.go.jp> |
| 8491 | |
| 8492 | * xfaces.c (realize_x_face): Fix the argument of the second |
| 8493 | xassert. BASE_FACE may not be a face for ASCII. |
| 8494 | |
| 8495 | 2000-04-27 Gerd Moellmann <gerd@gnu.org> |
| 8496 | |
| 8497 | * print.c (print_object): Treat print-length < 0 as nil. |
| 8498 | |
| 8499 | * Makefile.in (termcapobj): Don't use TERMCAP_OBJ. |
| 8500 | |
| 8501 | * s/freebsd.h (TERMCAP_OBJ): Removed. |
| 8502 | (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000. |
| 8503 | |
| 8504 | * lread.c (read1): Don't treat period followed by certain |
| 8505 | characters as symbol start. |
| 8506 | |
| 8507 | * xfns.c (slurp_file): New function. |
| 8508 | (xbm_image_p): Handle case of in-memory XBM files. |
| 8509 | (xbm_scan): Rewritten to work on memory buffers instead of files. |
| 8510 | (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data. |
| 8511 | Work on memory buffers instead of files. If DATA is null test |
| 8512 | if buffer looks like an in-memory XBM file. |
| 8513 | (xbm_load_image): Renamed from xbm_load_image_file. Work on |
| 8514 | memory buffers instead of files. |
| 8515 | (xbm_file_p): New function. |
| 8516 | (xbm_load): Accept :data DATA where DATA is an in-memory XBM file. |
| 8517 | |
| 8518 | * lread.c (end_of_file_error): New function. |
| 8519 | (read1): Call it instead of signaling `end-of-file' directly. |
| 8520 | |
| 8521 | * print.c (print_error_message): Print data of `end-of-file' |
| 8522 | with Fprinc instead of Fprin1. |
| 8523 | |
| 8524 | 2000-04-26 Ken Raeburn <raeburn@gnu.org> |
| 8525 | |
| 8526 | * window.c (freeze_window_start): Check that minibuffer scroll |
| 8527 | window isn't nil before extracting the window structure pointer |
| 8528 | from it. |
| 8529 | |
| 8530 | * undo.c (record_delete): If we hit the end of the undo list, stop |
| 8531 | picking elements apart. |
| 8532 | |
| 8533 | 2000-04-26 Gerd Moellmann <gerd@gnu.org> |
| 8534 | |
| 8535 | * xdisp.c (display_line): If lines are continued, restore |
| 8536 | iterator's ascent/descent information to the values before the |
| 8537 | first glyph not fitting on the line. |
| 8538 | |
| 8539 | 2000-04-25 Gerd Moellmann <gerd@gnu.org> |
| 8540 | |
| 8541 | * xdisp.c (try_window_id) <all changes above window start>: Adjust |
| 8542 | positions in glyph matrix. Don't compute new window end |
| 8543 | positions. |
| 8544 | |
| 8545 | * dispnew.c (increment_matrix_positions): Renamed from |
| 8546 | increment_glyph_matrix_buffer_positions. |
| 8547 | (increment_row_positions): Renamed from |
| 8548 | increment_glyph_row_buffer_positions. |
| 8549 | |
| 8550 | * dispextern.h: Change names of renamed functions from dispnew.c |
| 8551 | in prototypes. |
| 8552 | |
| 8553 | 2000-04-24 Gerd Moellmann <gerd@gnu.org> |
| 8554 | |
| 8555 | * fileio.c (Fdo_auto_save): Create directories for auto-save |
| 8556 | list file if necessary. |
| 8557 | |
| 8558 | * xdisp.c (init_iterator): Set iterator's extra_line_spacing |
| 8559 | from buffer or frame. |
| 8560 | (automatic_hscrolling_p): New variable. |
| 8561 | (hscroll_windows): Scroll windows horizontally only if automatic |
| 8562 | hscrolling is allowed. |
| 8563 | (syms_of_xdisp): New variable `automatic-hscrolling'. |
| 8564 | |
| 8565 | * frame.h (struct frame): Add member extra_line_spacing. |
| 8566 | |
| 8567 | * xfns.c (x_set_line_spacing): New function. |
| 8568 | (Fx_create_frame): Set line spacing from resources. |
| 8569 | (Qline_spacing): New variable. |
| 8570 | (syms_of_xfns): Initialize Qline_spacing. |
| 8571 | |
| 8572 | * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'. |
| 8573 | |
| 8574 | * buffer.c (init_buffer_once): Handle extra_line_spacing. |
| 8575 | (syms_of_buffer): Add `default-line-spacing' and `line-spacing'. |
| 8576 | (reset_buffer): Don't initialize extra2 and extra3. Initialize |
| 8577 | extra_line_spacing from default value. |
| 8578 | (init_buffer_once): Initialize default value of extra_line_spacing. |
| 8579 | |
| 8580 | * buffer.h (struct buffer): Add extra_line_spacing, remove extra2 |
| 8581 | and extra3. |
| 8582 | |
| 8583 | * xterm.c (x_produce_glyphs): Remove reference to struct it's |
| 8584 | prompt_width. Add extra line spacing. |
| 8585 | |
| 8586 | * term.c (produce_glyphs): Remove reference to struct it's |
| 8587 | prompt_width. |
| 8588 | |
| 8589 | * dispextern.h (struct it): Remove member prompt_width, add |
| 8590 | extra_line_spacing. |
| 8591 | |
| 8592 | 2000-04-22 Gerd Moellmann <gerd@gnu.org> |
| 8593 | |
| 8594 | * dispnew.c (update_frame_line): When writing a whole line, make |
| 8595 | sure cursor is in the right row afterwards, otherwise a use of |
| 8596 | capability `ch' in cmgoto might leave the cursor in the row below. |
| 8597 | |
| 8598 | 2000-04-21 Gerd Moellmann <gerd@gnu.org> |
| 8599 | |
| 8600 | * lisp.h (struct Lisp_Buffer_Cons): Remove. |
| 8601 | |
| 8602 | * keyboard.c (timer_check): Fix typo in comment. |
| 8603 | |
| 8604 | 2000-04-21 Kenichi Handa <handa@etl.go.jp> |
| 8605 | |
| 8606 | * fontset.c (Fset_fontset_font): Fix docstring. Local variable |
| 8607 | name change: ch -> character. |
| 8608 | |
| 8609 | 2000-04-20 Gerd Moellmann <gerd@gnu.org> |
| 8610 | |
| 8611 | * keyboard.c (echo_message_buffer): New variable. |
| 8612 | (echo_now): Set echo_message_buffer to the echo area buffer used |
| 8613 | to display the echo. |
| 8614 | (cancel_echoing): Reset echo_message_buffer to nil. |
| 8615 | (read_char): Code rewritten that handles canceling an echo or |
| 8616 | echoing a dash, respectively. |
| 8617 | |
| 8618 | * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent |
| 8619 | directory doesn't exist. |
| 8620 | |
| 8621 | 2000-04-19 Dave Love <fx@gnu.org> |
| 8622 | |
| 8623 | * fns.c (syms_of_fns): Defsubr mapc. |
| 8624 | (concat): Don't allow numeric args. |
| 8625 | (Fconcat): Doc change. |
| 8626 | |
| 8627 | 2000-04-19 Stefan Monnier <monnier@cs.yale.edu> |
| 8628 | |
| 8629 | * regex.c (re_match_2_internal): Don't shorten the strings anymore, |
| 8630 | instead define end_match(1|2) more carefully. |
| 8631 | Use GET_CHAR_BEFORE_2 for `begline'. |
| 8632 | |
| 8633 | 2000-04-19 Gerd Moellmann <gerd@gnu.org> |
| 8634 | |
| 8635 | * frame.h (SELECTED_FRAME): Change definition to compile cleanly |
| 8636 | on 64-bit systems where NULL is defined as `0'. |
| 8637 | |
| 8638 | * xdisp.c (with_echo_area_buffer): Add more `int' parameters for |
| 8639 | the `variable argument list' to make it work on Alpha. |
| 8640 | |
| 8641 | * m/alpha.h (_LP64) [!_LP64]: Define. |
| 8642 | (ORDINARY_LINK): Define for NetBSD. |
| 8643 | |
| 8644 | * m/macppc.h (ORDINARY_LINK): Define for NetBSD. |
| 8645 | |
| 8646 | 2000-04-19 Dave Love <fx@gnu.org> |
| 8647 | |
| 8648 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14 |
| 8649 | change. |
| 8650 | |
| 8651 | * Makefile.in (LIBS): Don't use. |
| 8652 | (GETLOADAVG_OBJ): Define again. |
| 8653 | (otherobj): Add GETLOADAVG_OBJ. |
| 8654 | |
| 8655 | * buffer.c (Fmake_indirect_buffer): Escape newline in doc. |
| 8656 | |
| 8657 | 2000-04-18 Gerd Moellmann <gerd@gnu.org> |
| 8658 | |
| 8659 | * lread.c (read_filtered_event): Cancel and start busy cursor. |
| 8660 | |
| 8661 | * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account |
| 8662 | that the per-character metrics may be null. |
| 8663 | |
| 8664 | 2000-04-17 Gerd Moellmann <gerd@gnu.org> |
| 8665 | |
| 8666 | * buffer.c (clone_per_buffer_values): New function. |
| 8667 | (Fmake_indirect_buffer): Add optional argument CLONE. Call |
| 8668 | clone_per_buffer_values if CLONE is not nil. |
| 8669 | |
| 8670 | * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. |
| 8671 | |
| 8672 | 2000-04-16 Dave Love <fx@gnu.org> |
| 8673 | |
| 8674 | * Makefile.in: Remove obsolete localcpp stuff. |
| 8675 | (GETLOADAVG_OBJ): Don't define. |
| 8676 | (obj): Move LIBOBJS... |
| 8677 | (otherobj): ... to here. |
| 8678 | (MSDOS_OBJ): Convert to make variable -- preprocessing zapped |
| 8679 | whitespace-only lines after the continuation (Irix). |
| 8680 | |
| 8681 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
| 8682 | |
| 8683 | * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors. |
| 8684 | |
| 8685 | * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'. |
| 8686 | |
| 8687 | 2000-04-14 Dave Love <fx@gnu.org> |
| 8688 | |
| 8689 | * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h: |
| 8690 | * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h: |
| 8691 | * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h: |
| 8692 | * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated |
| 8693 | NLIST_STRUCT. |
| 8694 | |
| 8695 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define |
| 8696 | autoconfiscated HAVE_GETLOADAVG. |
| 8697 | |
| 8698 | * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated |
| 8699 | BROKEN_MKTIME. |
| 8700 | |
| 8701 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
| 8702 | |
| 8703 | * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes. |
| 8704 | (fill_in_lock_file_name): Avoid existing files that aren't |
| 8705 | links. |
| 8706 | |
| 8707 | 2000-04-14 Dave Love <fx@gnu.org> |
| 8708 | |
| 8709 | * Makefile.in (LIBS, LIBOBJS): New variable. |
| 8710 | (INTERVAL_SRC): Convert to make variable. |
| 8711 | (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT) |
| 8712 | (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove. |
| 8713 | (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and |
| 8714 | add LIBOBJS. |
| 8715 | (SOME_MACHINE_OBJECTS): Remove interval stuff. |
| 8716 | (lisp): Substitute FACE_SUPPORT, FLOAT_SUP. |
| 8717 | (shortlisp): Add facemenu, float-sup, frame. |
| 8718 | (SOME_MACHINE_LISP): Remove them from here. |
| 8719 | (LIBES): Change unused LDLIBS to autoconf LIBS. |
| 8720 | |
| 8721 | * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION. |
| 8722 | |
| 8723 | 2000-04-14 Kenichi Handa <handa@etl.go.jp> |
| 8724 | |
| 8725 | * composite.c (update_compositions): If FROM and TO are not in a |
| 8726 | valid range, do nothing. |
| 8727 | |
| 8728 | 2000-04-13 Gerd Moellmann <gerd@gnu.org> |
| 8729 | |
| 8730 | * tparam.c (tparam1): Abort when encountering an unknown |
| 8731 | `%'-specifier. |
| 8732 | |
| 8733 | * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as |
| 8734 | terminfo.o. |
| 8735 | |
| 8736 | * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define |
| 8737 | as TERMCAP_OBJ. |
| 8738 | |
| 8739 | 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il> |
| 8740 | |
| 8741 | * fileio.c (a_write): Remove redundant semi-colons. |
| 8742 | (e_write): Return -1 if failed to write all the data. |
| 8743 | This fixes the changes made at 1999-12-15. |
| 8744 | |
| 8745 | 2000-04-12 Dave Love <fx@gnu.org> |
| 8746 | |
| 8747 | * fns.c (mapcar1): Test for null vals to support mapc. |
| 8748 | (Fmapc): New function. |
| 8749 | |
| 8750 | 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 8751 | |
| 8752 | * msdos.c (NUM_MOUSE_BUTTONS): Define. |
| 8753 | (IT_frame_up_to_date): Support the buffer local value of |
| 8754 | cursor-type, if defined. |
| 8755 | |
| 8756 | 2000-04-10 Dave Love <fx@gnu.org> |
| 8757 | |
| 8758 | * editfns.c (preceding-char, following-char): Doc fix. |
| 8759 | |
| 8760 | 2000-04-10 Ken Raeburn <raeburn@gnu.org> |
| 8761 | |
| 8762 | * Makefile.in (temacs): Revert 2000-03-12 change. |
| 8763 | |
| 8764 | 2000-04-10 Jason Rumney <jasonr@gnu.org> |
| 8765 | |
| 8766 | * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P. |
| 8767 | |
| 8768 | 2000-04-10 Gerd Moellmann <gerd@gnu.org> |
| 8769 | |
| 8770 | * xdisp.c (setup_echo_area_for_printing): Choose an echo |
| 8771 | area buffer, if it's not set up yet. |
| 8772 | |
| 8773 | * indent.c (compute_motion): Set immediate_quit. |
| 8774 | |
| 8775 | 2000-04-09 Gerd Moellmann <gerd@gnu.org> |
| 8776 | |
| 8777 | * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New |
| 8778 | variable. |
| 8779 | (realize_tty_face): Suppress boldness if colors are the inverse of |
| 8780 | the default colors, and tty_suppress_bold_inverse_default_colors_p |
| 8781 | is set. |
| 8782 | (Ftty_suppress_bold_inverse_default_colors): New function. |
| 8783 | (syms_of_xfaces): Defsubr it. |
| 8784 | |
| 8785 | * buffer.c (Frestore_buffer_modified_p): New function. |
| 8786 | (syms_of_buffer): Defsubr it. |
| 8787 | |
| 8788 | 2000-04-08 Ken Raeburn <raeburn@gnu.org> |
| 8789 | |
| 8790 | * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a |
| 8791 | charset id (int) argument, not a charset (Lisp_Object). |
| 8792 | |
| 8793 | * coding.h (code_convert_string): Declare. |
| 8794 | * coding.c (code_convert_string_norecord): Pass an int, not a lisp |
| 8795 | object, as the fourth argument to code_convert_string. |
| 8796 | |
| 8797 | * fontset.c (make_fontset_for_ascii_face): Use XINT on return |
| 8798 | value. |
| 8799 | (Fset_fontset_font): Use EQ to compare lisp objects. |
| 8800 | |
| 8801 | 2000-04-05 Ken Raeburn <raeburn@gnu.org> |
| 8802 | |
| 8803 | * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for |
| 8804 | a pointer that looks like a lisp object. |
| 8805 | (SET_INTERVAL_OBJECT): Don't explicitly compare the object with |
| 8806 | zero, instead see whether it's an integer object, since they can't |
| 8807 | have intervals. |
| 8808 | (GET_INTERVAL_OBJECT): Simply assign to the destination. |
| 8809 | |
| 8810 | * dispnew.c (allocate_matrices_for_frame_redisplay, |
| 8811 | direct_output_forward_char): Use X(U)INT and make_number as needed |
| 8812 | to convert between (unsigned) int values and lisp integers. |
| 8813 | * keyboard.c (read_key_sequence): Likewise. |
| 8814 | * lread.c (substitute_object_recurse): Likewise. |
| 8815 | * fns.c (concat, hash_lookup, hash_remove): Likewise. |
| 8816 | * minibuf.c (do_completion, Fminibuffer_complete_word, |
| 8817 | Fminibuffer_completion_help): Likewise. |
| 8818 | * term.c (produce_special_glyphs): Likewise. |
| 8819 | |
| 8820 | * fileio.c (Fwrite_region): Use EQ when comparing lisp objects. |
| 8821 | * print.c (print_preprocess, print_object): Likewise. |
| 8822 | |
| 8823 | * search.c (compile_pattern): Use NILP when checking for nil. |
| 8824 | |
| 8825 | * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 && |
| 8826 | __OPTIMIZE__]: Provide a GNU C macro version that handles |
| 8827 | lisp-object unions. |
| 8828 | (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type |
| 8829 | field, to better cope with ENABLE_CHECKING and calls that modify a |
| 8830 | Lisp_Object using its old value. |
| 8831 | |
| 8832 | 2000-04-04 Gerd Moellmann <gerd@gnu.org> |
| 8833 | |
| 8834 | * window.c (compare_window_configurations): Signal an error |
| 8835 | if parameters C1 or C2 aren't window configurations. |
| 8836 | |
| 8837 | * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/ |
| 8838 | AFTER_POTENTIAL_GC calls around calls to functions that can |
| 8839 | signal an error and thus invoke the debugger. |
| 8840 | |
| 8841 | 2000-04-03 Gerd Moellmann <gerd@gnu.org> |
| 8842 | |
| 8843 | * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal |
| 8844 | an error if decoding fails. |
| 8845 | |
| 8846 | * keyboard.c (lispy_mouse_names): Variable removed. |
| 8847 | (Vlispy_mouse_stem): New variable. |
| 8848 | (syms_of_keyboard): Initialize Vlispy_mouse_stem. |
| 8849 | (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort |
| 8850 | for any mouse button number. Increase size of mouse_syms and |
| 8851 | button_down_location as needed. Call modify_event_symbol with |
| 8852 | different arguments. |
| 8853 | (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]: |
| 8854 | Call modify_event_symbol with different arguments. |
| 8855 | (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort |
| 8856 | for any button number. Call modify_event_symbol with different |
| 8857 | arguments. |
| 8858 | (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM. |
| 8859 | Accept a string for NAME_ALIST_OR_STEM. |
| 8860 | |
| 8861 | * lisp.h (larger_vector): Add prototype. |
| 8862 | |
| 8863 | * fns.c (larger_vector): Make externally visible. |
| 8864 | |
| 8865 | * termhooks.h (NUM_MOUSE_BUTTONS): Removed. |
| 8866 | |
| 8867 | 2000-04-02 Stefan Monnier <monnier@cs.yale.edu> |
| 8868 | |
| 8869 | * regex.c (PTR_TO_OFFSET) [!emacs]: Remove. |
| 8870 | (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. |
| 8871 | (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when |
| 8872 | we are between str1 and str2. |
| 8873 | (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. |
| 8874 | (PATFETCH): Use `TRANSLATE'. |
| 8875 | (PATFETCH_RAW): Fetch multibyte char if applicable. |
| 8876 | (PATUNFETCH): Remove. |
| 8877 | (regex_compile): Rely on PATFETCH to do most of the multibyte magic. |
| 8878 | When writing a char, write it directly into the pattern buffer rather |
| 8879 | than going needlessly through a temp char-array. |
| 8880 | (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the |
| 8881 | multibyte magic and remove the useless `#ifdef emacs'. |
| 8882 | (bcmp_translate): Don't compare as multibyte chars when in a unibyte |
| 8883 | buffer. |
| 8884 | |
| 8885 | * regex.h (struct re_pattern_buffer): Make field `multibyte' |
| 8886 | conditional on `emacs'. |
| 8887 | |
| 8888 | * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c. |
| 8889 | |
| 8890 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
| 8891 | |
| 8892 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand |
| 8893 | non-union-type versions of XMARK and friends here, because XMARK |
| 8894 | and friends won't work on an integer field if NO_UNION_TYPE is not |
| 8895 | defined. |
| 8896 | (make_number): Define as a function if it's not defined as a |
| 8897 | macro. |
| 8898 | |
| 8899 | * composite.c (run_composite_function): Use NILP when checking for |
| 8900 | nil. |
| 8901 | (syms_of_composite): Delete local var NARGS, pass an int as first |
| 8902 | argument to Fmake_hash_table. |
| 8903 | |
| 8904 | * editfns.c (text_property_stickiness): Use NILP to test |
| 8905 | Lisp_Object boolean value. |
| 8906 | (Fmessage_or_box): Don't use NILP to test int variable. |
| 8907 | (Fformat): Use a temporary variable to avoid ENABLE_CHECKING |
| 8908 | problems reading from and changing the same lisp value in an |
| 8909 | XSETSTRING call. |
| 8910 | |
| 8911 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
| 8912 | |
| 8913 | * term.c (TN_no_color_video): New variable. |
| 8914 | (term_init): Intitialize TN_no_color_video. |
| 8915 | (enum no_color_bit): New enumeration. |
| 8916 | (MAY_USE_WITH_COLORS_P): New macro. |
| 8917 | (turn_on_face): Use it to determine if attributes may be used |
| 8918 | combined with colors. |
| 8919 | |
| 8920 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
| 8921 | |
| 8922 | * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues |
| 8923 | with int lvalues via casts; instead, just yield lisp object |
| 8924 | lvalues. |
| 8925 | (enlarge_window): Variable sizep now points to Lisp_Object. Use |
| 8926 | proper accessor macros. |
| 8927 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. |
| 8928 | (grow_mini_window): Fix typo getting int value of root->height. |
| 8929 | |
| 8930 | * xdisp.c (compute_string_pos): Fix order of arguments to |
| 8931 | string_pos_nchars_ahead. |
| 8932 | (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as |
| 8933 | count arg to variable-arg routines like Frun_hook_with_args and |
| 8934 | Fformat. |
| 8935 | (back_to_previous_visible_line_start) |
| 8936 | (build_desired_tool_bar_string): Pass Lisp_Object, not int, to |
| 8937 | fixed-arg routines like Fget_char_property and Fmake_string. |
| 8938 | (reconsider_clip_changes): Use XINT when comparing integer lisp |
| 8939 | objects, or passing them as int arguments. |
| 8940 | (mark_window_display_accurate, insert_left_trunc_glyphs) |
| 8941 | (append_space, extend_face_to_end_of_line): Use make_number when |
| 8942 | storing or passing integer values as lisp objects. |
| 8943 | (set_cursor_from_row, highlight_trailing_whitespace): Use |
| 8944 | INTEGERP, not implicit test against zero, for glyph object. |
| 8945 | (try_window_id): Don't use make_number when we want an int value. |
| 8946 | |
| 8947 | * xfaces.c (xlfd_symbolic_value): Make last argument a |
| 8948 | Lisp_Object, to be consistent with callers. |
| 8949 | (Fbitmap_spec_p): Use XINT to get numeric value of height. |
| 8950 | (lface_hash): Apply XFASTINT to lisp values before folding in. |
| 8951 | |
| 8952 | * xfns.c (Fx_show_tip): Use make_number to get lisp objects to |
| 8953 | fill in window width and height. Pass an int, not a lisp object, |
| 8954 | as first arg to Finsert. |
| 8955 | |
| 8956 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
| 8957 | |
| 8958 | * xfaces.c (realize_basic_faces): Block input while realizing |
| 8959 | the faces. |
| 8960 | |
| 8961 | * keyboard.c (lispy_mouse_names): Add additional mouse names. |
| 8962 | |
| 8963 | * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15. |
| 8964 | |
| 8965 | 2000-03-31 Gerd Moellmann <gerd@gnu.org> |
| 8966 | |
| 8967 | * xterm.c (x_produce_glyphs): When displaying unibyte text |
| 8968 | or ASCII, handle case that per-char metric is null. |
| 8969 | |
| 8970 | 2000-03-30 Ken Raeburn <raeburn@gnu.org> |
| 8971 | |
| 8972 | * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef. |
| 8973 | |
| 8974 | * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, |
| 8975 | XSUBR, XBUFFER): Verify correct object type before returning |
| 8976 | pointer, using eassert. |
| 8977 | * frame.h (XFRAME): Likewise. |
| 8978 | |
| 8979 | * buffer.c (Frename_buffer, Fset_buffer_multibyte, |
| 8980 | swap_out_buffer_local_variables, Fmove_overlay): Don't apply |
| 8981 | XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong |
| 8982 | type. |
| 8983 | * data.c (set_internal): Likewise. |
| 8984 | * dispextern.h (WINDOW_WANTS_MODELINE_P, |
| 8985 | WINDOW_WANTS_HEADER_LINE_P): Likewise. |
| 8986 | * fileio.c (auto_save_1): Likewise. |
| 8987 | * insdel.c (check_markers): Likewise. |
| 8988 | * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. |
| 8989 | * undo.c (record_insert): Likewise. |
| 8990 | * vmsproc.c (child_sig): Likewise. |
| 8991 | * window.c (unshow_buffer, window_loop): Likewise. |
| 8992 | * xterm.c (x_erase_phys_cursor): Likewise. |
| 8993 | |
| 8994 | 2000-03-30 Gerd Moellmann <gerd@gnu.org> |
| 8995 | |
| 8996 | * xfns.c (free_image_cache): Free the cache structure itself |
| 8997 | last, after all its members have been freed. |
| 8998 | |
| 8999 | * lisp.h (xstrdup): Add prototype. |
| 9000 | |
| 9001 | * alloc.c (xstrdup): Moved here from xfaces.c. |
| 9002 | (allocating_for_lisp): Variable removed. |
| 9003 | (lisp_malloc): Block input around the calls to malloc and |
| 9004 | mem_insert. |
| 9005 | |
| 9006 | * xfaces.c (realize_tty_face): Use find_symbol_value instead |
| 9007 | of Fsymbol_value. |
| 9008 | (xstrdup): Moved to alloc.c. |
| 9009 | |
| 9010 | 2000-03-29 Ken Raeburn <raeburn@gnu.org> |
| 9011 | |
| 9012 | * scroll.c (CHECK_BOUNDS): Renamed from CHECK. |
| 9013 | |
| 9014 | * emacs.c (main): Fix sense of no-loadup test. |
| 9015 | |
| 9016 | * config.in (ENABLE_CHECKING): Undef. |
| 9017 | |
| 9018 | * lisp.h (struct interval): Replace "parent" field with a union of |
| 9019 | interval pointer and Lisp_Object; add new bitfield to use as |
| 9020 | discriminant. Change other flag fields to bitfields. |
| 9021 | (CHECK): New macro for consistency checking. If ENABLE_CHECKING |
| 9022 | is defined and the supplied test fails, print a message and |
| 9023 | abort. |
| 9024 | (eassert): New macro. Use CHECK to provide an assert-like |
| 9025 | facility. |
| 9026 | |
| 9027 | * intervals.h (NULL_INTERVAL_P): Now applies only to real interval |
| 9028 | pointers; abort if the value looks like a lisp object. |
| 9029 | (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, |
| 9030 | SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): |
| 9031 | Modify for new interval parent definition. |
| 9032 | |
| 9033 | * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, |
| 9034 | UNMARK_BALANCE_INTERVALS): Update references that need an |
| 9035 | addressable lisp object in the interval structure. |
| 9036 | (die): New function. |
| 9037 | (suppress_checking): New variable. |
| 9038 | |
| 9039 | * intervals.c (interval_start_pos): Just return 0 if there's no |
| 9040 | parent object. |
| 9041 | |
| 9042 | 2000-03-29 Gerd Moellmann <gerd@gnu.org> |
| 9043 | |
| 9044 | * lread.c (read1): Accept `.' (period) as symbol start like in CL |
| 9045 | and earlier Emacs versions. |
| 9046 | |
| 9047 | * keyboard.c (Ftop_level): Cancel busy-cursor. |
| 9048 | |
| 9049 | * eval.c (call_debugger): Cancel busy-cursor. |
| 9050 | |
| 9051 | 2000-03-29 Kenichi Handa <handa@etl.go.jp> |
| 9052 | |
| 9053 | * search.c (Freplace_match): Adjust multibyteness of the current |
| 9054 | buffer and NEWTEXT. Free allocated memory before signaling an |
| 9055 | error. |
| 9056 | |
| 9057 | 2000-03-28 Stefan Monnier <monnier@cs.yale.edu> |
| 9058 | |
| 9059 | * regex.c (analyse_first): New function obtained by ripping out most |
| 9060 | of re_compile_fastmap and generalizing it a little bit so that it |
| 9061 | can also just return whether a given (sub)pattern can match the empty |
| 9062 | string or not. |
| 9063 | (regex_compile): Use `analyse_first' to decide whether the loop-check |
| 9064 | needs to be done or not for *, +, *? and +? (the loop check is costly |
| 9065 | for non-greedy repetition). |
| 9066 | (re_compile_fastmap): Delegate the actual work to `analyse_first'. |
| 9067 | |
| 9068 | 2000-03-28 Dave Love <fx@gnu.org> |
| 9069 | |
| 9070 | * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, |
| 9071 | alpha. |
| 9072 | |
| 9073 | * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. |
| 9074 | |
| 9075 | 2000-03-27 Stefan Monnier <monnier@cs.yale.edu> |
| 9076 | |
| 9077 | * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as |
| 9078 | an expression. |
| 9079 | (enum re_opcode_t): Update description of succeed_n. |
| 9080 | (PATFETCH): Always define. |
| 9081 | (regex_compile): Use lookahead rather than PATUNFETCH (for repetition |
| 9082 | operators, char classes, shy-groups and intervals). |
| 9083 | Optimize special cases of intervals so as to only use succeed_n and |
| 9084 | jump_n when really needed. |
| 9085 | (re_compile_fastmap): Simplify handling of jump_n and succeed_n now |
| 9086 | that we don't have to handle the special cases any more. |
| 9087 | Simplify on_failure_jump handling as well. |
| 9088 | |
| 9089 | 2000-03-28 Jason Rumney <jasonr@gnu.org> |
| 9090 | |
| 9091 | * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT. |
| 9092 | |
| 9093 | 2000-03-27 Gerd Moellmann <gerd@gnu.org> |
| 9094 | |
| 9095 | * s/freebsd.h (GC_SETJMP_WORKS): Define. |
| 9096 | |
| 9097 | * s/msdos.h (GC_SETJMP_WORKS): Define. |
| 9098 | |
| 9099 | * alloc.c (mark_maybe_object): New function. |
| 9100 | (mark_memory): Use it. |
| 9101 | (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. |
| 9102 | (setjmp_tested_p, longjmp_done): New variables. |
| 9103 | (test_setjmp): New function. |
| 9104 | (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. |
| 9105 | (init_alloc): Initialize setjmp_tested_p and longjmp_done. |
| 9106 | |
| 9107 | * xdisp.c (face_before_or_after_it_pos): Pass multibyteness |
| 9108 | to DEC_TEXT_POS and INC_TEXT_POS. |
| 9109 | |
| 9110 | * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS |
| 9111 | with parameter MULTIBYTE_P. |
| 9112 | |
| 9113 | * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter |
| 9114 | MULTIBYTE_P. |
| 9115 | |
| 9116 | * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte |
| 9117 | buffers because it looks for multibyte character byte sequences |
| 9118 | which don't exist in unibyte text. |
| 9119 | |
| 9120 | * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes. |
| 9121 | |
| 9122 | * xfaces.c (register_color, unregister_color, unregister_colors) |
| 9123 | [DEBUG_X_COLORS]: New functions. |
| 9124 | (x_free_colors) [DEBUG_X_COLORS]: Unregister colors. |
| 9125 | |
| 9126 | * xfns.c (x_set_cursor_color): Get color reference counts right. |
| 9127 | |
| 9128 | * xterm.c (x_copy_color): New function. |
| 9129 | (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color. |
| 9130 | |
| 9131 | * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. |
| 9132 | (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. |
| 9133 | (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. |
| 9134 | (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. |
| 9135 | (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. |
| 9136 | (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. |
| 9137 | (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. |
| 9138 | (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. |
| 9139 | (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. |
| 9140 | (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE. |
| 9141 | |
| 9142 | * category.c, data.c, syntax.c, print.c, lread.c: Use new macro |
| 9143 | names for handling per-buffer variables. |
| 9144 | |
| 9145 | * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS |
| 9146 | instead of MAX_BUFFER_LOCAL_VARS. |
| 9147 | (last_per_buffer_idx): Renamed from max_buffer_local_idx. |
| 9148 | |
| 9149 | * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P. |
| 9150 | |
| 9151 | * xfns.c (x_specified_cursor_type): New function. |
| 9152 | (x_set_cursor_type): Use it. |
| 9153 | |
| 9154 | * buffer.h (struct buffer): Add cursor_type. |
| 9155 | |
| 9156 | 2000-03-26 Stefan Monnier <monnier@cs.yale.edu> |
| 9157 | |
| 9158 | * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop. |
| 9159 | (print_partial_compiled_pattern, re_compile_fastmap): Handle new |
| 9160 | opcode. |
| 9161 | (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. |
| 9162 | (re_match_2_internal): Add code for on_failure_jump_nastyloop when |
| 9163 | executing it as well as when popping it off the stack to find infinite |
| 9164 | loops in non-greedy repetition operators. |
| 9165 | |
| 9166 | 2000-03-26 Gerd Moellmann <gerd@gnu.org> |
| 9167 | |
| 9168 | * doc.c (Qfunction_documentation): New variable. |
| 9169 | (syms_of_doc): Initialize Qfunction_documentation. |
| 9170 | (Fdocumentation): If FUNCTION is a symbol with non-nil |
| 9171 | `function-documentation' property, return a documentation derived |
| 9172 | from that. |
| 9173 | |
| 9174 | * buffer.c (syms_of_buffer): Add default-cursor-type. |
| 9175 | (init_buffer_once): Don't let cursor_type have a local value |
| 9176 | in every buffer. |
| 9177 | |
| 9178 | * xterm.c (x_display_and_set_cursor): Choose cursor depending |
| 9179 | on buffer-local value of cursor_type. |
| 9180 | (x_draw_bar_cursor): Add parameter WIDTH. |
| 9181 | |
| 9182 | * buffer.c (reset_buffer): Initialize buffer's cursor_type. |
| 9183 | (init_buffer_once): Set default cursor_type value to t. |
| 9184 | Mark cursor_type as local everywhere. |
| 9185 | (syms_of_buffer): New per-buffer variable cursor-type. |
| 9186 | |
| 9187 | * buffer.h (struct buffer): Remove member local_var_flags, |
| 9188 | add local_flags. |
| 9189 | (MAX_BUFFER_LOCAL_VARS): New macro. |
| 9190 | (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX) |
| 9191 | (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P) |
| 9192 | (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE) |
| 9193 | (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros. |
| 9194 | |
| 9195 | * print.c (print_object): Use new macros for per-buffer |
| 9196 | variables. |
| 9197 | |
| 9198 | * category.c (Fset_category_table): Use new macros for per-buffer |
| 9199 | variables. |
| 9200 | |
| 9201 | * buffer.c (buffer_permanent_local_flags): Make a char array. |
| 9202 | (max_buffer_local_idx): New variable. |
| 9203 | (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten |
| 9204 | for new handling of per-buffer variables. |
| 9205 | (buffer_slot_type_mismatch): Use new macros for per-buffer vars. |
| 9206 | (init_buffer_once): Initialize per-buffer vars differently. |
| 9207 | Set max_buffer_local_idx. |
| 9208 | |
| 9209 | * syntax.c (Fset_syntax_table): Use new macros for per-buffer |
| 9210 | variables. |
| 9211 | |
| 9212 | * lread.c (defvar_per_buffer): Use new macros for per-buffer |
| 9213 | variables. |
| 9214 | |
| 9215 | * data.c (do_symval_forwarding, store_symval_forwarding) |
| 9216 | (find_symbol_value, set_internal, default_value, Fset_default) |
| 9217 | (Fkill_local_variable, Flocal_variable_p): Use new macros for |
| 9218 | per-buffer variables. |
| 9219 | |
| 9220 | * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'. |
| 9221 | |
| 9222 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
| 9223 | |
| 9224 | * xterm.c (x_term_init): Unblock input around call1 of |
| 9225 | Qvendor_specific_keysyms. |
| 9226 | |
| 9227 | * syntax.c (open_paren_in_column_0_is_defun_start): New variable. |
| 9228 | (find_defun_start): Consider an open parenthesis in column 0 |
| 9229 | a defun start only if open_paren_in_column_0_is_defun_start is set. |
| 9230 | (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start. |
| 9231 | |
| 9232 | 2000-03-24 Stefan Monnier <monnier@cs.yale.edu> |
| 9233 | |
| 9234 | * eval.c (Fautoload): Add entry in load-history (if after dump). |
| 9235 | * lread.c (load-history): Update docstring. |
| 9236 | |
| 9237 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
| 9238 | |
| 9239 | * indent.c (Fvertical_motion): Always use the current buffer. |
| 9240 | Temporarily change the window's buffer, if necessary. |
| 9241 | |
| 9242 | 2000-03-23 Gerd Moellmann <gerd@gnu.org> |
| 9243 | |
| 9244 | * xterm.c (fast_find_position): Make sure not to consider rows |
| 9245 | not visible in the window. |
| 9246 | |
| 9247 | 2000-03-22 Stefan Monnier <monnier@cs.yale.edu> |
| 9248 | |
| 9249 | * regex.c (enum syntaxcode): Provide default for non-Emacs. |
| 9250 | (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix. |
| 9251 | |
| 9252 | 2000-03-22 Jason Rumney <jasonr@gnu.org> |
| 9253 | |
| 9254 | * w32menu.c (single_submenu): Set help string to NULL if none. |
| 9255 | (w32_menu_show): Set help string correctly. |
| 9256 | (add-menu-item): Set help string in MIIM_DATA for menu item. |
| 9257 | Load SetMenuItemInfoA explicitly. |
| 9258 | (w32_menu_display_help): New function. |
| 9259 | |
| 9260 | * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message. |
| 9261 | (QCdata): Moved to xdisp.c. |
| 9262 | |
| 9263 | * w32term.c (w32_read_socket): Handle WM_MENUSELECT message. |
| 9264 | (Vw32_charset_to_codepage_alist): Removed. |
| 9265 | (Vw32_charset_info_alist): New variable. |
| 9266 | (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312, |
| 9267 | chinesebig5, oem, easteurope, turkish, baltic, russian, arabic, |
| 9268 | greek, hebrew, thai, johab, mac, unicode]): New symbols. |
| 9269 | (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace |
| 9270 | with TODO comment. |
| 9271 | (w32_codepage_for_font): Use Vw32_charset_info_alist. |
| 9272 | (syms_of_w32term): Remove Vw32_charset_to_codepage_alist. |
| 9273 | Define Vw32_charset_info_alist and w32_charset symbols. |
| 9274 | |
| 9275 | 2000-03-22 Jason Rumney <jasonr@gnu.org> |
| 9276 | |
| 9277 | * makefile.nt (w32bdf.obj): Update dependencies. |
| 9278 | |
| 9279 | * w32bdf.c: Include frame.h and dispextern.h before fontset.h. |
| 9280 | |
| 9281 | * w32fns.c: Include fontset.h after dispextern.h. |
| 9282 | (Fx_create_frame): Do not create fontset. |
| 9283 | (w32_load_system_font): Doc fix. |
| 9284 | (Fx_close_connection): Free full_name if it is not shared. |
| 9285 | |
| 9286 | * w32term.c: Include fontset.h after dispextern.h. |
| 9287 | (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers |
| 9288 | updated. |
| 9289 | (w32_per_char_metric): If PCM is invalid, delete and return NULL. |
| 9290 | (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id. |
| 9291 | (w32_font_is_double_byte): New function, needs body. |
| 9292 | (x_append_glyph): Set glyph->glyph_not_available_p. |
| 9293 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set |
| 9294 | it->charset. If it->multibyte_p is zero and it->c is a multibyte |
| 9295 | character, convert it to a unibyte character. |
| 9296 | (struct glyph_string): Delete member `charset'. |
| 9297 | (W32_TEXTOUT): Temporarily remove charset_dim until another way of |
| 9298 | calculating it is found. |
| 9299 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle |
| 9300 | the case that per char metric is not available correctly. |
| 9301 | (x_fill_glyph_string): Handle the case that the specific glyph is |
| 9302 | not available correctly. |
| 9303 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. |
| 9304 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. |
| 9305 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. |
| 9306 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the |
| 9307 | fontset. Don't call FS_LOAD_FONT. |
| 9308 | |
| 9309 | 2000-03-22 Ken Raeburn <raeburn@gnu.org> |
| 9310 | |
| 9311 | * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. |
| 9312 | (INT_LISPLIKE): New macro. |
| 9313 | (NULL_INTERVAL_P): Use it. |
| 9314 | (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, |
| 9315 | SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, |
| 9316 | GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. |
| 9317 | |
| 9318 | * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all |
| 9319 | explicit references to "parent" field of struct interval and |
| 9320 | associated unclean type conversions. |
| 9321 | * intervals.c (create_root_interval, root_interval, rotate_right, |
| 9322 | rotate_left, balance_possible_root_interval, split_interval_right, |
| 9323 | split_interval_left, interval_start_pos, find_interval, |
| 9324 | next_interval, previous_interval, update_interval, |
| 9325 | adjust_intervals_for_insertion, delete_node, delete_interval, |
| 9326 | adjust_intervals_for_deletion, merge_interval_right, |
| 9327 | merge_interval_left, reproduce_tree, graft_intervals_into_buffer, |
| 9328 | copy_intervals_to_string): Likewise. |
| 9329 | * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): |
| 9330 | Likewise. |
| 9331 | * syntax.c (update_syntax_table): Likewise. |
| 9332 | |
| 9333 | * intervals.c (reproduce_tree_obj): New function, like |
| 9334 | reproduce_tree but takes a Lisp_Object for the parent. Declare |
| 9335 | with prototype. |
| 9336 | (graft_intervals_into_buffer): Use it when appropriate. |
| 9337 | (reproduce_tree): Declare with prototype. |
| 9338 | (balance_possible_root_interval): Check that the parent is a lisp |
| 9339 | object before trying to examine its type. |
| 9340 | |
| 9341 | 2000-03-22 Gerd Moellmann <gerd@gnu.org> |
| 9342 | |
| 9343 | * xfaces.c (lface_same_font_attributes_p): Compare font attributes |
| 9344 | as strings only if both are known to be strings. |
| 9345 | |
| 9346 | * s/openbsd.h (LIBS_TERMCAP): Undef. |
| 9347 | |
| 9348 | 2000-03-21 Stefan Monnier <monnier@cs.yale.edu> |
| 9349 | |
| 9350 | * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default |
| 9351 | definitions for non-Emacs compilation. |
| 9352 | (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec |
| 9353 | outside of `#ifdef emacs'. |
| 9354 | (print_partial_compiled_pattern): Update. |
| 9355 | (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar. |
| 9356 | (re_compile_fastmap): Merge handling of charset and charset_not (for |
| 9357 | emacs and non-emacs compilation as well). |
| 9358 | Similarly for (not)categoryspec and (not)syntaxspec. |
| 9359 | Don't use the fastmap when reaching `anychar' since the added |
| 9360 | complexity is not justified. |
| 9361 | (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs) |
| 9362 | and (not)syntaxspec. Merge (not)categoryspec. |
| 9363 | |
| 9364 | 2000-03-22 Kenichi Handa <handa@etl.go.jp> |
| 9365 | |
| 9366 | * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, |
| 9367 | FACE_FOR_CHAR): Define them differently for the configuration of |
| 9368 | --without-x. |
| 9369 | |
| 9370 | 2000-03-21 Dave Love <fx@gnu.org> |
| 9371 | |
| 9372 | * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in |
| 9373 | doc string. |
| 9374 | |
| 9375 | 2000-03-21 Gerd Moellmann <gerd@gnu.org> |
| 9376 | |
| 9377 | * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. |
| 9378 | (lface_fully_specified_p): Don't check contents of |
| 9379 | LFACE_FONT_INDEX because that attribute is optional. |
| 9380 | (realize_x_face): Remove now unwarranted xassert. |
| 9381 | |
| 9382 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
| 9383 | |
| 9384 | The following changes are to make font selection based on |
| 9385 | characters, not charset. In addition, they recover fontset |
| 9386 | facilities while utilizing the new font selection mechanism. |
| 9387 | |
| 9388 | * Makefile.in (fontset.o): Depend on dispextern.h. |
| 9389 | |
| 9390 | * alloc.c (mark_face_cache): Don't mark face->registry. |
| 9391 | |
| 9392 | * dispextern.h (struct glyph): New member glyph_not_available_p. |
| 9393 | Use 22 bits for face_id. |
| 9394 | (enum lface_attribute_index): Add LFACE_FONT_INDEX. |
| 9395 | (struct face): Delete member registry, new member ascii_face. |
| 9396 | (FACE_SUITABLE_FOR_CHAR_P): Renamed from |
| 9397 | FACE_SUITABLE_FOR_CHARSET_P. Caller changed. |
| 9398 | (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. |
| 9399 | (struct it): Delete member charset, new member |
| 9400 | glyph_not_available_p. |
| 9401 | |
| 9402 | * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. |
| 9403 | (struct fontset_info, struct fontset_data): Structs removed. |
| 9404 | (allloc_fontset_data, free_fontset_data, fs_regiser_fontset, |
| 9405 | Vglobale_fontset_alist, font_idx_temp): Externs removed. |
| 9406 | (fs_load_font, fs_query_fontset): Adjusted for new argument. |
| 9407 | (fs_free_face_fontset, fontset_font_pattern, |
| 9408 | face_suitable_for_char_p, face_for_char, |
| 9409 | make_fontset_for_ascii_face): Extern them. |
| 9410 | (FS_LOAD_FONT): Adjusted for the change of fontset implementation. |
| 9411 | (FS_LOAD_FACE_FONT): New macro. |
| 9412 | |
| 9413 | * fontset.c: All codes rewritten or adjusted for the change of |
| 9414 | fontset implementation. Now fontset is represented by char table. |
| 9415 | (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables |
| 9416 | removed. |
| 9417 | (my_strcasecmp): Function removed. |
| 9418 | (Vfontset_table, next_fontset_id, Vdefault_fontset): New |
| 9419 | variables. |
| 9420 | (AREF, ASIZE): New macros. |
| 9421 | (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME, |
| 9422 | FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF, |
| 9423 | FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. |
| 9424 | (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset, |
| 9425 | fontset_id_valid_p, font_family_registry, fontset_name, |
| 9426 | fontset_ascii, free_face_fontset, face_suitable_for_char_p, |
| 9427 | face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): |
| 9428 | New functions. |
| 9429 | (fs_load_font): New arg FACE. Caller changed. |
| 9430 | (fs_query_fontset): Argument changed. Caller changed. |
| 9431 | (Fquery_fontset): call fs_query_fontset. |
| 9432 | (fs_register_fontset, alloc_fontset_data, free_fontset_data): |
| 9433 | Functions removed. |
| 9434 | (clear_fontset_elements, check_registry_encoding, |
| 9435 | check_fontset_name): New functions. |
| 9436 | (syms_of_fontset): Set char-table-extra-slots property of fontset |
| 9437 | to 3. Staticpro and initialize Vfontset_table and |
| 9438 | Vdefault_fontset. Defsubr fontset_font and fontset_list. |
| 9439 | |
| 9440 | * frame.h (struct frame): Member `fontset_data' removed. |
| 9441 | (FRAME_FONTSET_DATA): Macro removed. |
| 9442 | |
| 9443 | * frame.c (make_frame): Don't allocate f->fontset_data. |
| 9444 | (Fdelete_frame): Don't free f->fontset_data. |
| 9445 | |
| 9446 | * msdos.c (XMenuActivate): Args to lookup_derived_face changed. |
| 9447 | |
| 9448 | * xdisp.c (charset_at_position): Function removed. |
| 9449 | (init_iterator): Don't set member charset of struct `it'. |
| 9450 | (handle_face_prop, reseat_to_string, set_iterator_to_next, |
| 9451 | next_element_from_display_vector, insert_left_trunc_glyphs): |
| 9452 | Likewise. |
| 9453 | (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not |
| 9454 | FACE_FOR_CHARSET. |
| 9455 | (get_next_display_element, append_space, |
| 9456 | extend_face_to_end_of_line): Likewise. |
| 9457 | |
| 9458 | * xfaces.c (Qx_charset_registry, Vface_default_registry): |
| 9459 | Variables removed. |
| 9460 | (clear_font_table, frame_update_line_height, load_face_font): |
| 9461 | Adjusted for the change of fontset implementation. |
| 9462 | (load_face_fontset_font): Function removed. |
| 9463 | (pixel_point_size): New function. |
| 9464 | (font_list): Argument type changed. Caller changed. |
| 9465 | (LFACE_FONT): New macro. |
| 9466 | (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. |
| 9467 | (set_lface_from_font_name): Type of arg FONTNAME is changed to |
| 9468 | Lisp_Object. Determine the font name by actually loading a font |
| 9469 | by the specified pattern. Set LFACE_FONT (lface) to the specified |
| 9470 | pattern. Even if a font is not found, don't try alternatives. |
| 9471 | (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. |
| 9472 | (set_font_frame_param): If `font' is specified in lface, use it. |
| 9473 | (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. |
| 9474 | (lface_same_font_attributes_p): Likewise. |
| 9475 | (make_realized_face): Arguent changed. Caller changed. Set |
| 9476 | face->ascii_face to face itself. |
| 9477 | (free_realized_face): Free face->fontset if face is for ASCII. |
| 9478 | (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p, |
| 9479 | deduce_unibyte_registry, x_charset_registry): Functions removed. |
| 9480 | (free_realized_multibyte_face): New function. |
| 9481 | (lookup_face, lookup_named_face, lookup_derived_face): Argument |
| 9482 | changed. Caller changed. |
| 9483 | (try_font_list): Argument type changed. |
| 9484 | (face_fontset): Check `font' slot of ATTRS, not `family' slot. |
| 9485 | (choose_face_font): Argument changed. Handle fontset properly. |
| 9486 | (choose_face_fontset_font): Function removed. |
| 9487 | (realize_default_face, realize_named_face): Don't remove the |
| 9488 | former face here. |
| 9489 | (realize_face): Argument changed. Caller changed. Remove face |
| 9490 | with the arg former_face_id in advance. Load font for the new |
| 9491 | face. |
| 9492 | (realize_x_face): Argument changed. Caller changed. For a |
| 9493 | multibyte character, share fontset with base_face. For a single |
| 9494 | byte character, make a new realized fontset. Don't load a font |
| 9495 | here. |
| 9496 | (realize_tty_face): Argument changed. Caller changed. |
| 9497 | (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. |
| 9498 | (face_at_buffer_position): Don't check multibyte_p for returning |
| 9499 | DEFAULT_FACE_ID. |
| 9500 | (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not |
| 9501 | FACE_SUITABLE_FOR_CHARSET_P. |
| 9502 | (syms_of_xfaces): Remove code for Qx_charset_registry and |
| 9503 | Vface_default_registry. |
| 9504 | |
| 9505 | * xterm.c: Include fontset.h after dispextern.h. Undo the changes |
| 9506 | related to PER_CHAR_METRIC done by Gerd on 2000-03-03. |
| 9507 | (x_per_char_metric): Don't try FONT->default_char. Even if |
| 9508 | pcm->width is zero, glyph bits may exist. |
| 9509 | (x_encode_char): Always initialize char2b->byte1. |
| 9510 | (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. |
| 9511 | (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller |
| 9512 | changed. |
| 9513 | (x_append_glyph): Set glyph->glyph_not_available_p. |
| 9514 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set |
| 9515 | it->charset. Handle the case that per char metric is not |
| 9516 | available. If it->multibyte_p is zero and it->c is a multibyte |
| 9517 | character, convert it to a unibyte character. |
| 9518 | (struct glyph_string): Delete member `charset'. |
| 9519 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle |
| 9520 | the case that per char metric is not available correctly. |
| 9521 | (x_fill_glyph_string): Handle the case that the specific glyph is |
| 9522 | not available correctly. |
| 9523 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. |
| 9524 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. |
| 9525 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. |
| 9526 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the |
| 9527 | fontset. Don't call FS_LOAD_FONT. |
| 9528 | |
| 9529 | * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. |
| 9530 | (x_create_tip_frame): Likewise. |
| 9531 | (Fx_close_connection): Free full_name of font_info. |
| 9532 | |
| 9533 | * fns.c (optimize_sub_char_table): New function. |
| 9534 | (Foptimize_char_table): New function. |
| 9535 | (syms_of_fns): Defsubr Soptimize_char_table. |
| 9536 | |
| 9537 | 2000-03-20 Gerd Moellmann <gerd@gnu.org> |
| 9538 | |
| 9539 | * buffer.c (Fset_buffer_modified_p): Set update_mode_lines |
| 9540 | only if buffer is displayed in some window. |
| 9541 | |
| 9542 | * xdisp.c (handle_single_display_prop): Initialize local `value'. |
| 9543 | (try_window_reusing_current_matrix): Don't call scroll run |
| 9544 | function if run's current and desired position are the same; |
| 9545 | this prevents cursor flickering. |
| 9546 | |
| 9547 | 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> |
| 9548 | |
| 9549 | * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. |
| 9550 | |
| 9551 | * regex.c (RE_STRING_CHAR): New macro. |
| 9552 | (GET_CHAR_AFER_2): Remove. |
| 9553 | (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. |
| 9554 | (enum re_opcode_t): Remove on_failure_jump_exclusive. |
| 9555 | (print_partial_compiled_pattern, re_compile_fastmap) |
| 9556 | (re_match_2_internal): Remove on_failure_jump_exclusive. |
| 9557 | (regex_compile): Turn optimizable P+ loops into PP*, so that the |
| 9558 | optimization only need to work for * (ie. can use of_keep_string_jump). |
| 9559 | Remove the special case for .*\n since it is now covered by the general |
| 9560 | optimization. |
| 9561 | (re_search_2): Don't bother with `room'. |
| 9562 | (skip_one_char): New function. |
| 9563 | (skip_noops): Simplify since `memory' is not needed any more. |
| 9564 | (mutually_exclusive_p): Restructure slightly to use `switch' and |
| 9565 | add handling for "all" remaining cases. |
| 9566 | (re_match_2_internal): Change on_failure_jump_smart to use |
| 9567 | on_failure_keep_string_jump (and redirect the end-of-loop jump) |
| 9568 | rather than on_failure_jump_exclusive. |
| 9569 | |
| 9570 | 2000-03-19 Gerd Moellmann <gerd@gnu.org> |
| 9571 | |
| 9572 | * xfns.c (select_visual): Don't set dpyinfo->n_planes to the |
| 9573 | number of bits per RGB because it's everywhere used as the depth |
| 9574 | of the visual. |
| 9575 | |
| 9576 | * term.c (calculate_costs): Remove code dealing with X frames. |
| 9577 | |
| 9578 | 2000-03-19 Richard M. Stallman <rms@gnu.org> |
| 9579 | |
| 9580 | * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. |
| 9581 | |
| 9582 | 2000-03-18 Gerd Moellmann <gerd@gnu.org> |
| 9583 | |
| 9584 | * lread.c (read_integer): Unread the last char not consumed. |
| 9585 | |
| 9586 | 2000-03-17 Gerd Moellmann <gerd@gnu.org> |
| 9587 | |
| 9588 | * xterm.c (x_update_window_cursor): Don't update in frames |
| 9589 | which are in the process of being deleted. |
| 9590 | |
| 9591 | 2000-03-16 Gerd Moellmann <gerd@gnu.org> |
| 9592 | |
| 9593 | * Makefile.in (mostlyclean): Add `*.core'. |
| 9594 | (clean): Add `bootstrap-emacs'. |
| 9595 | |
| 9596 | * lread.c (read_integer): New function. |
| 9597 | (read1): Support read syntax #o, #x, #b, #r. |
| 9598 | |
| 9599 | 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> |
| 9600 | |
| 9601 | * regex.c (re_match_2): Fix string shortening (to fit `stop') to |
| 9602 | make sure POINTER_TO_OFFSET gives the same value before and after |
| 9603 | PREFETCH. Use `dfail' to guarantee "atomic" matching. |
| 9604 | (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. |
| 9605 | (debug): Now only active if > 0 rather than if != 0. |
| 9606 | (DEBUG_*): Update for the new meaning of `debug'. |
| 9607 | (print_partial_compiled_pattern): Add missing `succeed' case. Use |
| 9608 | CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs |
| 9609 | in `succeed_n', `jump_n' and `set_number_at'. |
| 9610 | (store_op1, store_op2, insert_op1, insert_op2) |
| 9611 | (at_begline_loc_p, at_endline_loc_p): Add prototype. |
| 9612 | (group_in_compile_stack): Move to after its arg's types are |
| 9613 | declared and add a prototype. |
| 9614 | (PATFETCH): Define in terms of PATFETCH_RAW. |
| 9615 | (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' |
| 9616 | wrapper. |
| 9617 | (QUIT): Redefine as a nop except for NTemacs. |
| 9618 | (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix |
| 9619 | indentation of the greedy-op and shy-group code. |
| 9620 | (at_(beg|end)line_loc_p): Fix argument's types. |
| 9621 | (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. |
| 9622 | (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. |
| 9623 | (MATCHING_IN_FIRST_STRING): Remove. |
| 9624 | (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr |
| 9625 | to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use |
| 9626 | QUIT unconditionally. |
| 9627 | |
| 9628 | 2000-03-15 Gerd Moellmann <gerd@gnu.org> |
| 9629 | |
| 9630 | * minibuf.c (Fminibuffer_complete): Set point to ZV if finding |
| 9631 | a sole completion. |
| 9632 | |
| 9633 | * process.c (send_process): Add a hint that the function |
| 9634 | can call Lisp code to its comment. |
| 9635 | |
| 9636 | * lread.c (load_dangerous_libraries): New variable. |
| 9637 | (Vbytecomp_version_regexp): New variable. |
| 9638 | (safe_to_load_p): New function. |
| 9639 | (Fload): Handle files not compiled with Emacs specially. |
| 9640 | (syms_of_lread): New Lisp variable load-dangerous-libraries. |
| 9641 | |
| 9642 | 2000-03-14 Gerd Moellmann <gerd@gnu.org> |
| 9643 | |
| 9644 | * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. |
| 9645 | |
| 9646 | * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM |
| 9647 | support functions only if HAVE_X11R6_XIM is defined. |
| 9648 | (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. |
| 9649 | |
| 9650 | * s/sol2.h (INHIBIT_X11R6_XIM): Define. |
| 9651 | |
| 9652 | * xfns.c (X_I18N_INHIBITED): Don't define. |
| 9653 | (create_frame_xic): Remove conditional compilation on |
| 9654 | X_I18N_INHIBITED. |
| 9655 | (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. |
| 9656 | |
| 9657 | * config.in (HAVE_X_I18N): Moved here from xterm.h. |
| 9658 | (HAVE_X11R6_XIM): Define. |
| 9659 | |
| 9660 | * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. |
| 9661 | |
| 9662 | * xterm.c (x_term_init): Add support for X resource `synchronous'. |
| 9663 | If set, call XSynchronize. |
| 9664 | |
| 9665 | 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> |
| 9666 | |
| 9667 | * regex.c: Declare a new type `re_char' used throughout the code |
| 9668 | for the string char type. It's `const unsigned char' to match the |
| 9669 | rest of Emacs. Consistently make sure all pointers to strings use |
| 9670 | it and make sure all pointers into the pattern use `unsigned |
| 9671 | char'. |
| 9672 | (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of |
| 9673 | GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce |
| 9674 | code duplication. |
| 9675 | |
| 9676 | * charset.h (GET_CHAR_AFTER_2): Remove. |
| 9677 | (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. |
| 9678 | |
| 9679 | 2000-03-12 Ken Raeburn <raeburn@gnu.org> |
| 9680 | |
| 9681 | * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary |
| 9682 | variable before the invocation of YMF_PASS_LDFLAGS, in case both |
| 9683 | of them try to use backquotes. |
| 9684 | |
| 9685 | 2000-03-12 Dave Love <fx@gnu.org> |
| 9686 | |
| 9687 | * unexelf.c: Restore changes of 1999-10-19. |
| 9688 | (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise |
| 9689 | fix its type and alignment; copy it from current process. |
| 9690 | |
| 9691 | 2000-03-12 Gerd Moellmann <gerd@gnu.org> |
| 9692 | |
| 9693 | * atimer.c (cancel_atimer): Break out of the loop as soon as timer |
| 9694 | has been found. Fix bug not computing timer's predecessor. |
| 9695 | |
| 9696 | * fileio.c (Fread_file_name): Handle case that DIR contains a |
| 9697 | file name. |
| 9698 | |
| 9699 | * window.c (Fsave_window_excursion): Doc fix. |
| 9700 | |
| 9701 | * xfns.c (x_defined_color): Rewritten to use |
| 9702 | x_allocate_nearest_color. |
| 9703 | |
| 9704 | 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 9705 | |
| 9706 | * msdos.c (vga_installed): New function, code moved from |
| 9707 | dos_set_window_size. |
| 9708 | (Qbar, Qcursor_type, outside_cursor): New variables. |
| 9709 | (syms_of_msdos): Intern and staticpro them. |
| 9710 | (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor |
| 9711 | shape used outside Emacs when called for the first time. |
| 9712 | (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the |
| 9713 | cursor shape used outside Emacs. |
| 9714 | (msdos_set_cursor_shape, IT_set_cursor_type): New functions. |
| 9715 | (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor |
| 9716 | type has changed. |
| 9717 | (IT_set_frame_parameters): Call IT_set_cursor_type if the frame |
| 9718 | parameters specify the cursor. Make qreverse a global |
| 9719 | variable (renamed to Qreverse). |
| 9720 | |
| 9721 | 2000-03-09 Gerd Moellmann <gerd@gnu.org> |
| 9722 | |
| 9723 | * fns.c (Fy_or_n_p): Cancel busy-cursor. |
| 9724 | |
| 9725 | 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> |
| 9726 | |
| 9727 | This is a big redesign of failure-stack and register handling, prompted |
| 9728 | by bugs revealed when trying to add shy-groups. Overall, what happened |
| 9729 | is that loops are now structured a little differently, groups can be |
| 9730 | shy and the code is a little simpler. |
| 9731 | |
| 9732 | * regex.h: Update the copyright. |
| 9733 | (RE_SHY_GROUPS): New value. |
| 9734 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. |
| 9735 | (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. |
| 9736 | |
| 9737 | * regex.c (enum re_opcode_t): Remove jump_past_alt, |
| 9738 | maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add |
| 9739 | on_failure_jump_(exclusive, loop and smart). Also fix the comment |
| 9740 | for (start|stop)_memory since they now only take one argument (the |
| 9741 | second has becomes unnecessary). |
| 9742 | (print_partial_compiled_pattern): Adjust for changes in |
| 9743 | re_opcode_t. |
| 9744 | (print_compiled_pattern): Use %ld to printf long ints and flush to |
| 9745 | make debugging a little easier. |
| 9746 | (union fail_stack_elt): Make the integer unsigned. |
| 9747 | (struct fail_stack_type): Add a `frame' element. |
| 9748 | (INIT_FAIL_STACK): Init `frame' as well. |
| 9749 | (POP_PATTERN_OP): New macro for re_compile_fastmap. |
| 9750 | (DEBUG_PUSH, DEBUG_POP): Remove. |
| 9751 | (NUM_REG_ITEMS): Remove. |
| 9752 | (NUM_NONREG_ITEMS): Adjust. |
| 9753 | (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) |
| 9754 | (TOP_FAILURE_HANDLE): New macros for the cycle detection. |
| 9755 | (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). |
| 9756 | (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New |
| 9757 | macros. |
| 9758 | (PUSH_FAILURE_POINT): Don't push registers any more. The pattern |
| 9759 | address pushed is not the destination of the jump but the source |
| 9760 | of it instead. |
| 9761 | (NUM_FAILURE_ITEMS): Remove. |
| 9762 | (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop |
| 9763 | registers before the actual failure point). Don't hardcode any |
| 9764 | meaning for str==NULL anymore. |
| 9765 | (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) |
| 9766 | (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): |
| 9767 | Remove. |
| 9768 | (REG_UNSET_VALUE): Use NULL (why not?). |
| 9769 | (compile_range): Remove declaration since it doesn't exist. |
| 9770 | (struct compile_stack_elt_t): Remove inner_group_offset. |
| 9771 | (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. |
| 9772 | (regex_grow_registers): Remove dead code. |
| 9773 | (FIXUP_ALT_JUMP): New macro. |
| 9774 | (regex_compile): Add shy-groups Change loops to use |
| 9775 | on_failure_jump_smart&jump instead of |
| 9776 | on_failure_jump&maybe_pop_jump. Change + loops to eliminate the |
| 9777 | initial (dummy_failure_)jump. Remove c1_base (looks like unused |
| 9778 | variable to me). Use `jump' instead of `jump_past_alt' and don't |
| 9779 | bother with push_dummy_failure in alternatives since it is now |
| 9780 | unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef |
| 9781 | emacs' for (re)allocating the stack. |
| 9782 | (re_compile_fastmap): Remove dead variables i and num_regs. Exit |
| 9783 | from loop when bufp->can_be_null rather than jumping to `done'. |
| 9784 | Avoid jumping backwards so as to ensure termination. Use |
| 9785 | PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of |
| 9786 | backreferences. Remove dead code in handling of `anychar'. |
| 9787 | (skip_noops, mutually_exclusive_p): New functions taken from the |
| 9788 | handling of `maybe_pop_jump' in re_match_2_internal. Slightly |
| 9789 | improve mutually_exclusive_p to handle ".+\n". |
| 9790 | (lowest_active_reg, highest_active_reg, |
| 9791 | NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. |
| 9792 | (re_match_2_internal): Use %p instead of 0x%x when printf'ing |
| 9793 | ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead |
| 9794 | variables. Push register (in `start_memory') on the stack rather |
| 9795 | than storing it in old_reg(start|end). Remove the cycle detection |
| 9796 | from `stop_memory', replaced by the use of on_failure_jump_loop |
| 9797 | for greedy loops. Add code for the new on_failure_jump_<foo>. |
| 9798 | Remove ad-hoc code in `on_failure_jump' to push more registers in |
| 9799 | the case of a loop. Take out code from `maybe_pop_jump' into |
| 9800 | separate functions and adapt it to the semantics of |
| 9801 | `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump |
| 9802 | and push_dummy_failure. Remove dummy_failure handling and |
| 9803 | handling of `failures to jump to on_failure_jump' (this last one |
| 9804 | was already dead code, it seems). |
| 9805 | (group_match_null_string_p, alt_match_null_string_p) |
| 9806 | (common_op_match_null_string_p): Remove. |
| 9807 | |
| 9808 | 2000-03-08 Dave Love <fx@gnu.org> |
| 9809 | |
| 9810 | * config.in: Don't depend on __STDC__ for volatile. |
| 9811 | Add POINTER_TYPE, PTR, PROTOTYPES. |
| 9812 | |
| 9813 | * hftctl.c, strftime.c: Use PROTOTYPES. |
| 9814 | * eval.c (find_handler_clause): Likewise. |
| 9815 | |
| 9816 | * mem-limits.h: Use POINTER_TYPE. |
| 9817 | |
| 9818 | * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. |
| 9819 | (memory_warnings): Declare using POINTER_TYPE. |
| 9820 | |
| 9821 | 2000-03-08 Gerd Moellmann <gerd@gnu.org> |
| 9822 | |
| 9823 | * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. |
| 9824 | |
| 9825 | * xdisp.c (display_echo_area): Temporarily inhibit garbage |
| 9826 | collection. |
| 9827 | |
| 9828 | * xfns.c: Remove obsolete code in #if 0. |
| 9829 | (Fx_focus_frame): New function. |
| 9830 | |
| 9831 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
| 9832 | |
| 9833 | * coding.c (coding_category_name): Add coding-category-utf-8, |
| 9834 | coding-category-utf-16-be, coding-category-utf-16-le. |
| 9835 | (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, |
| 9836 | UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, |
| 9837 | UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. |
| 9838 | (detect_coding_utf_8): New function. |
| 9839 | (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P |
| 9840 | UTF_16_LOW_SURROGATE_P): New macros. |
| 9841 | (detect_coding_utf_16): New function |
| 9842 | (detect_coding_mask): When priorities are specified, skip any |
| 9843 | categories that have `nil' coding-system. Fix bug of returning |
| 9844 | wrong mask when PRIORITIES is specified and detect_coding_XXX() |
| 9845 | returns a mask not set in PRIORITIES. |
| 9846 | (detect_eol_type_in_2_octet_form): New function. |
| 9847 | (detect_eol): selects detect_eol_type_XXX to call according to |
| 9848 | cooding->category_idx. |
| 9849 | (detect_coding_system): Remove `nil' coding-system in the result. |
| 9850 | (Fupdate_coding_systems_internal): Update all coding-categories. |
| 9851 | |
| 9852 | * coding.h (CODING_CATEGORY_IDX_UTF_8, |
| 9853 | CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New |
| 9854 | macros. |
| 9855 | (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY, |
| 9856 | CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. |
| 9857 | CODING_CATEGORY_IDX_UTF_16_LE. |
| 9858 | (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE, |
| 9859 | CODING_CATEGORY_MASK_UTF_16_LE): New macros. |
| 9860 | (CODING_CATEGORY_MASK_ANY): Include the above macros. |
| 9861 | (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. |
| 9862 | |
| 9863 | 2000-03-07 Gerd Moellmann <gerd@gnu.org> |
| 9864 | |
| 9865 | * doc.c (Fdocumentation_property): If value is not a string, |
| 9866 | and doesn't refer to etc/DOC, evaluate it to obtain a string. |
| 9867 | |
| 9868 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to |
| 9869 | close the display with XtCloseDisplay. This caused a bus error |
| 9870 | on OpenWindows. |
| 9871 | |
| 9872 | * minibuf.c (Fminibuffer_complete): Move point to ZV when input is |
| 9873 | complete but not unique. |
| 9874 | |
| 9875 | 2000-03-06 Gerd Moellmann <gerd@gnu.org> |
| 9876 | |
| 9877 | * process.c (send_process): Remove local variable `procname' that |
| 9878 | might become invalid when a GC happens. Instead, access the |
| 9879 | process name slot directly. |
| 9880 | |
| 9881 | * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and |
| 9882 | orig_height if set. |
| 9883 | |
| 9884 | * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and |
| 9885 | orig_height if set. |
| 9886 | |
| 9887 | 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
| 9888 | |
| 9889 | * msdos.c (IT_note_mouse_highlight): Return immediately if frame's |
| 9890 | glyph matrices have been freed. |
| 9891 | |
| 9892 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
| 9893 | |
| 9894 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
| 9895 | (bootstrap-temacs): Set LC_ALL to C like for temacs. |
| 9896 | |
| 9897 | * xfns.c (QCdata): Moved to xdisp.c. |
| 9898 | |
| 9899 | * xdisp.c (QCdata): Moved here from xfns.c. |
| 9900 | (syms_of_xdisp): Initialize QCdata. |
| 9901 | |
| 9902 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. |
| 9903 | |
| 9904 | * window.c (coordinates_in_window): Use |
| 9905 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of |
| 9906 | FRAME_INTERNAL_BORDER_WIDTH. |
| 9907 | |
| 9908 | * xdisp.c (try_window_id): Recompute unchanged information if |
| 9909 | it is obviously invalid. |
| 9910 | |
| 9911 | * xterm.c (x_term_init): Create a colormap if not using the |
| 9912 | default visual. |
| 9913 | |
| 9914 | * xterm.h (select_visual): Change prototype. |
| 9915 | |
| 9916 | * xfns.c (select_visual): Rewritten. Recognize user-specified |
| 9917 | visual classes. |
| 9918 | (visual_classes): New variable. |
| 9919 | |
| 9920 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
| 9921 | |
| 9922 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) |
| 9923 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) |
| 9924 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. |
| 9925 | (x_decode_color): Don't handle allocation of white and black |
| 9926 | specially. |
| 9927 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and |
| 9928 | XtNcolormap resources. |
| 9929 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. |
| 9930 | (Fx_create_frame): Initialize color members of x_output structure. |
| 9931 | (xpm_load): Pass colormap to XPM lib. |
| 9932 | |
| 9933 | * xfaces.c (x_free_colors): Access colormap of frame using |
| 9934 | FRAME_X_COLORMAP. Be paranoid about freeing black and white |
| 9935 | when default colormap is used. |
| 9936 | |
| 9937 | * xterm.c (x_term_init): Set Colormap member of x_display_info |
| 9938 | structure. Copy colormap if resource `privateColormap' is |
| 9939 | specified (PseudoColor only). |
| 9940 | (x_setup_relief_color): Access colormap of frame using |
| 9941 | FRAME_X_COLORMAP. |
| 9942 | |
| 9943 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. |
| 9944 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. |
| 9945 | |
| 9946 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
| 9947 | |
| 9948 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or |
| 9949 | other non-platform-specific equivalents. |
| 9950 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
| 9951 | specific functions and macros as their w32 equivalents where |
| 9952 | non-platform-specifics are not available. |
| 9953 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. |
| 9954 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. |
| 9955 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. |
| 9956 | (frame_update_line_height): Use macros to access f->output_data. |
| 9957 | (defined_color): Remove FIXME comments; fixed. |
| 9958 | (x_face_list_fonts, prepare_face_for_display): Put X specifics |
| 9959 | into #ifdef blocks. Add WINDOWSNT blocks. |
| 9960 | (Fx_list_fonts): Use macros for accessing font data. |
| 9961 | (set_lface_from_font_name): Different default fonts for X and |
| 9962 | WINDOWSNT. |
| 9963 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as |
| 9964 | scalable for backward compatibility. |
| 9965 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
| 9966 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
| 9967 | |
| 9968 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
| 9969 | syms_of_w32faces. |
| 9970 | |
| 9971 | * makefile.nt (w32faces.obj): Remove. |
| 9972 | (xfaces.obj): Add. |
| 9973 | |
| 9974 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
| 9975 | |
| 9976 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with |
| 9977 | correct parameters. |
| 9978 | |
| 9979 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
| 9980 | |
| 9981 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide |
| 9982 | standard ELF definitions here if the system header does not. |
| 9983 | |
| 9984 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
| 9985 | |
| 9986 | * xterm.c (PER_CHAR_METRIC): Removed. |
| 9987 | (x_per_char_metric_1, x_default_char): New functions. |
| 9988 | (x_per_char_metric): If font's default char is invalid, return |
| 9989 | metrics of a suitably chosen usable default char. |
| 9990 | (x_draw_glyph_string_foreground): If font has an invalid default |
| 9991 | char, replace occurrences of unprintable chars with a suitably |
| 9992 | chosen usable default char. |
| 9993 | |
| 9994 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
| 9995 | |
| 9996 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
| 9997 | glyph matrices have been freed. |
| 9998 | |
| 9999 | * dispnew.c (free_glyphs): Block input while freeing matrices. |
| 10000 | |
| 10001 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
| 10002 | |
| 10003 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use |
| 10004 | x_free_colors. |
| 10005 | |
| 10006 | * dispextern.h (x_free_colors): Add prototype. |
| 10007 | |
| 10008 | * xfaces.c (x_free_colors): New function. |
| 10009 | (unload_color, free_face_colors): Use it. |
| 10010 | |
| 10011 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 10012 | |
| 10013 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. |
| 10014 | |
| 10015 | * window.c [MSDOS]: Include msdos.h. |
| 10016 | |
| 10017 | 2000-03-02 Dave Love <fx@gnu.org> |
| 10018 | |
| 10019 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. |
| 10020 | |
| 10021 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't |
| 10022 | set C_OPTIMIZE_SWITCH for gcc. |
| 10023 | |
| 10024 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
| 10025 | |
| 10026 | * coding.c (coding_save_composition): Be sure to allocate |
| 10027 | composition data area in coding even if there's no composition in |
| 10028 | the current run. |
| 10029 | |
| 10030 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
| 10031 | |
| 10032 | * w32term.c: Equivalent changes to those made to xterm.c on |
| 10033 | 2000-02-25 and 2000-02-24. |
| 10034 | |
| 10035 | * w32fns.c: Equivalent changes to those made to xfns.c on |
| 10036 | 2000-02-25 and 2000-02-21. |
| 10037 | |
| 10038 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure |
| 10039 | correct line-end convention is followed. |
| 10040 | |
| 10041 | * w32menu.c [HAVE_BOXES]: Remove #undef. |
| 10042 | (single_keymap_panes): Remove code for simulating checkmarks. |
| 10043 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. |
| 10044 | Remove code for drawing simulated checkmarks. |
| 10045 | (w32_menu_show): make unibyte help string correctly. |
| 10046 | (add_menu_item): draw standard Windows checkmarks. Draw radio |
| 10047 | buttons as radio buttons if possible. |
| 10048 | |
| 10049 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
| 10050 | |
| 10051 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
| 10052 | with ELF. |
| 10053 | |
| 10054 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: |
| 10055 | Don't define. |
| 10056 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. |
| 10057 | (LINKER): Don't undef if __NetBSD__ is defined. |
| 10058 | |
| 10059 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. |
| 10060 | |
| 10061 | * fileio.c [__NetBSD__]: Define `unix'. |
| 10062 | |
| 10063 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
| 10064 | |
| 10065 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
| 10066 | |
| 10067 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
| 10068 | (append_atimer_lists): New function. |
| 10069 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle |
| 10070 | arbitrary lists of stopped and running atimers. |
| 10071 | |
| 10072 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
| 10073 | some timers are stopped. |
| 10074 | |
| 10075 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null |
| 10076 | after canceling it. |
| 10077 | |
| 10078 | * fns.c (maybe_resize_hash_table): Handle case of new size |
| 10079 | coming out as being the same as old size. |
| 10080 | |
| 10081 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
| 10082 | |
| 10083 | * makefile.nt: Add atimer.h to dependencies. |
| 10084 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. |
| 10085 | * w32console.c: Only disable window system features for dispextern.h |
| 10086 | (initialize_w32_display): Build a display info for the console. |
| 10087 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. |
| 10088 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, |
| 10089 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice |
| 10090 | as 2 button mice. |
| 10091 | * w32gui.h (struct W32FontStruct): Revert last change after change |
| 10092 | to xdisp.c. |
| 10093 | * w32menu.c (single_submenu): Set up help string. |
| 10094 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. |
| 10095 | (w32_dialog_show): Set up help string. |
| 10096 | * w32term.c (w32_display_info_for_display): Remove unused function. |
| 10097 | (w32_draw_bitmap): Use pre-built bitmaps. |
| 10098 | (w32_initialize_display_info): New function to initialize parts of |
| 10099 | display info that are common to both GUI and console frames. |
| 10100 | (w32_term_init): Use w32_initialize_display_info. Do not set |
| 10101 | Vw32_num_mouse_buttons here, as it is not called for console |
| 10102 | frames. Build bitmaps for indicating truncated lines etc. |
| 10103 | (x_delete_display): Destroy pre-built bitmaps. |
| 10104 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. |
| 10105 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. |
| 10106 | |
| 10107 | 2000-02-27 Dave Love <fx@gnu.org> |
| 10108 | |
| 10109 | * lisp.h: Add a bunch of prototypes. |
| 10110 | |
| 10111 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
| 10112 | |
| 10113 | * keyboard.c (read_char): Set `usec' correctly. |
| 10114 | |
| 10115 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
| 10116 | |
| 10117 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is |
| 10118 | `lambda', set reg[RRR] to the map index. |
| 10119 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set |
| 10120 | reg[RRR] to 0. Otherwise, set it to -1. |
| 10121 | |
| 10122 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
| 10123 | |
| 10124 | * emacs.c (main): Remove code snippet commented out with `//'. |
| 10125 | |
| 10126 | 2000-02-25 Richard M. Stallman <rms@gnu.org> |
| 10127 | |
| 10128 | * fileio.c (Ffile_symlink_p): If result starts with a `/' |
| 10129 | and contains a `:', prepend `/:'. |
| 10130 | |
| 10131 | * window.c (select_window_1): If selected_window is nil, |
| 10132 | don't "swap out" the buffer's point. |
| 10133 | (Fset_window_configuration): Set selected_window to nil |
| 10134 | before calling Fselect_window. |
| 10135 | (unshow_buffer): Don't set point in buffer from window's point |
| 10136 | if another more recently selected window also shows the buffer. |
| 10137 | |
| 10138 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
| 10139 | |
| 10140 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
| 10141 | |
| 10142 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
| 10143 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. |
| 10144 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New |
| 10145 | variables. |
| 10146 | (DEFAULT_BUSY_CURSOR_DELAY): New define. |
| 10147 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) |
| 10148 | (hide_busy_cursor): New functions. |
| 10149 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. |
| 10150 | |
| 10151 | * minibuf.c (read_minibuf): Cancel busy-cursor. |
| 10152 | |
| 10153 | * keyboard.c (command_loop_1): Call start_busy_cursor before |
| 10154 | Fcommand_execute and cancel_busy_cursor after it. |
| 10155 | (timer_check): Remove busy-cursor code. |
| 10156 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy |
| 10157 | cursor timer. |
| 10158 | |
| 10159 | * process.c (wait_reading_process_input): Remove busy-cursor code. |
| 10160 | |
| 10161 | * eval.c (Fsignal): Call cancel_busy_cursor instead of |
| 10162 | Fx_hide_busy_cursor. |
| 10163 | |
| 10164 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): |
| 10165 | Remove prototyoes. |
| 10166 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. |
| 10167 | |
| 10168 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. |
| 10169 | |
| 10170 | * xterm.c (XTread_socket): Remove busy-cursor code. |
| 10171 | |
| 10172 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
| 10173 | (build_frame_matrix_from_leaf_window): Put code handling |
| 10174 | glyph row's not being a slice of a frame row in #if 0. |
| 10175 | (sync_window_with_frame_matrix_rows): New function. |
| 10176 | (frame_row_to_window): New function. |
| 10177 | (mirror_line_dance): Handle copies between windows. |
| 10178 | |
| 10179 | * lread.c (Fload): Use `xfree' instead of `free'. |
| 10180 | (init_obarray): Use `xmalloc' instead of `malloc'. |
| 10181 | |
| 10182 | * window.c (Fset_window_buffer): Set WINDOW to the window |
| 10183 | after decoding. |
| 10184 | (coordinates_in_window): Take frame's internal border width |
| 10185 | into account. |
| 10186 | |
| 10187 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
| 10188 | |
| 10189 | * xterm.c (x_display_and_set_cursor): Display cursor of |
| 10190 | non-selected windows depending on the setting of |
| 10191 | cursor_in_non_selected_windows. |
| 10192 | |
| 10193 | * xdisp.c (cursor_in_non_selected_windows): New variable. |
| 10194 | (syms_of_xdisp): DEFVAR_BOOL it. |
| 10195 | |
| 10196 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
| 10197 | |
| 10198 | * data.c (Fstring_to_number): If number is greater than what |
| 10199 | fits into an integer, return a float. |
| 10200 | |
| 10201 | * eval.c (specbind): Remove references to |
| 10202 | keyword_symbols_constant_flag. |
| 10203 | |
| 10204 | * data.c (keyword_symbols_constant_flag): Removed. |
| 10205 | (Fmakunbound, set_internal, syms_of_data): Remove references to |
| 10206 | keyword_symbols_constant_flag. |
| 10207 | |
| 10208 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. |
| 10209 | |
| 10210 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
| 10211 | |
| 10212 | * syntax.c (multibyte_syntax_as_symbol): New variable. |
| 10213 | (syms_of_syntax): Declare it as a Lisp variable. |
| 10214 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. |
| 10215 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are |
| 10216 | nonzero, treat all multibyte characters as symbol. |
| 10217 | (init_syntax_once): Give syntax `word' to all multibyte |
| 10218 | characters. |
| 10219 | |
| 10220 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
| 10221 | |
| 10222 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
| 10223 | a deleted frame. |
| 10224 | |
| 10225 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
| 10226 | |
| 10227 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. |
| 10228 | |
| 10229 | * xfns.c (x_window_to_frame, x_any_window_to_frame) |
| 10230 | (x_non_menubar_window_to_frame): Check the busy-cursor window. |
| 10231 | |
| 10232 | 2000-02-21 Dave Love <fx@gnu.org> |
| 10233 | |
| 10234 | * frame.c (Vmouse_position_function): New variable. |
| 10235 | (Fmouse_position): Use it. |
| 10236 | (syms_of_frame): Install it. |
| 10237 | |
| 10238 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. |
| 10239 | |
| 10240 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
| 10241 | |
| 10242 | * fileio.c (Finsert_file_contents): Unbind the binding of |
| 10243 | standard-output done by temp_output_buffer_setup. |
| 10244 | |
| 10245 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless |
| 10246 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. |
| 10247 | (specbind, unbind_to): Handle most common case of non-constant |
| 10248 | symbol with trivial value specially. |
| 10249 | |
| 10250 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. |
| 10251 | |
| 10252 | 2000-02-20 Richard M. Stallman <rms@gnu.org> |
| 10253 | |
| 10254 | * data.c (Fmake_variable_buffer_local): Doc fix. |
| 10255 | Init found_for_buffer to 0. |
| 10256 | (Fmake_variable_frame_local): If the variable has already |
| 10257 | been buffer-local, set the check_frame field. |
| 10258 | |
| 10259 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
| 10260 | |
| 10261 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data |
| 10262 | produced for CODING_MODE_LAST_BLOCK requires. |
| 10263 | |
| 10264 | 2000-02-18 Dave Love <fx@gnu.org> |
| 10265 | |
| 10266 | * keyboard.c (echo_keystrokes): Remove declaration. |
| 10267 | (Vecho_keystrokes) New variable. |
| 10268 | (read_char, record_menu_key, read_key_sequence): Use it to allow |
| 10269 | use of float value. |
| 10270 | (syms_of_keyboard): Change Vecho_keystrokes declaration. |
| 10271 | |
| 10272 | * lread.c: Undef feature selection macros before defining. |
| 10273 | |
| 10274 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
| 10275 | |
| 10276 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings |
| 10277 | for symbols other than the symbol in question. |
| 10278 | |
| 10279 | 2000-02-17 Dave Love <fx@gnu.org> |
| 10280 | |
| 10281 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. |
| 10282 | |
| 10283 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
| 10284 | |
| 10285 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
| 10286 | |
| 10287 | * alloc.c (enum mem_type): Compile unconditionally. |
| 10288 | |
| 10289 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
| 10290 | |
| 10291 | * xfaces.c (tty_defined_color): Don't return faulire indication |
| 10292 | for unspecified-fg and unspecified-bg pseudo-colors. |
| 10293 | |
| 10294 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
| 10295 | |
| 10296 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
| 10297 | (gc_sweep): Don't unmark symbol names in pure space. |
| 10298 | |
| 10299 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) |
| 10300 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) |
| 10301 | [GC_MARK_STACK]: New defines. |
| 10302 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) |
| 10303 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. |
| 10304 | |
| 10305 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. |
| 10306 | |
| 10307 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use |
| 10308 | allocate_buffer instead of xmalloc. |
| 10309 | |
| 10310 | * alloc.c (toplevel): Include setjmp.h. |
| 10311 | (PURE_POINTER_P): New define. |
| 10312 | (enum mem_type) [GC_MARK_STACK]: New enumeration. |
| 10313 | (Vdead) [GC_MARK_STACK]: New variable. |
| 10314 | (lisp_malloc): Add parameter TYPE, call mem_insert if |
| 10315 | GC_MARK_STACK is defined. |
| 10316 | (allocate_buffer): New function. |
| 10317 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. |
| 10318 | (free_float) [GC_MARK_STACK]: Set type to Vdead. |
| 10319 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. |
| 10320 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. |
| 10321 | (MEM_NIL) [GC_MARK_STACK]: New define. |
| 10322 | (struct mem_node) [GC_MARK_STACK]: New structure. |
| 10323 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) |
| 10324 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) |
| 10325 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) |
| 10326 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) |
| 10327 | (mark_stack) [GC_MARK_STACK]: New functions. |
| 10328 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. |
| 10329 | (clear_marks): Removed. |
| 10330 | (gc_sweep): Set free conses' car, free floats' type, free |
| 10331 | symbols' function to Vdead. Use lisp_free to free buffers. |
| 10332 | (init_alloc_once): Initialize Vdead. |
| 10333 | (survives_gc_p): Return non-zero for pure objects. |
| 10334 | |
| 10335 | * alloc.c: Add comments throughout the file. |
| 10336 | |
| 10337 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
| 10338 | that unblocks alarms. |
| 10339 | |
| 10340 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
| 10341 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, |
| 10342 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. |
| 10343 | |
| 10344 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
| 10345 | |
| 10346 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
| 10347 | |
| 10348 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
| 10349 | avoid infinite error signaling. Allocate sufficient memory for |
| 10350 | eol_str in the case that eoltype is Lisp_Int. |
| 10351 | |
| 10352 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
| 10353 | |
| 10354 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode |
| 10355 | depends on the previous behavior. |
| 10356 | |
| 10357 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
| 10358 | |
| 10359 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. |
| 10360 | |
| 10361 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
| 10362 | |
| 10363 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. |
| 10364 | |
| 10365 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: |
| 10366 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
| 10367 | write(2). |
| 10368 | |
| 10369 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
| 10370 | |
| 10371 | * data.c (set_internal): Don't make variable buffer-local |
| 10372 | if within a let-binding for the same buffer. |
| 10373 | (let_shadows_buffer_binding_p): New function. |
| 10374 | |
| 10375 | * eval.c (specbind): For buffer-local value, |
| 10376 | record the current buffer also. |
| 10377 | (unbind_to): Cope with that change. |
| 10378 | |
| 10379 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
| 10380 | |
| 10381 | * window.c (Fsave_window_excursion): Doc fix. |
| 10382 | |
| 10383 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
| 10384 | |
| 10385 | * syntax.c (back_comment): Make sure we only consider comment-starters |
| 10386 | of the relevant style and return -1 in case of a failure to find the |
| 10387 | beginning of the comment. |
| 10388 | (Fforward_comment): If back_comment fails, go back to the position just |
| 10389 | after the comment-end. |
| 10390 | (scan_lists): Add comment describing a very minor bug. |
| 10391 | |
| 10392 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
| 10393 | |
| 10394 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to |
| 10395 | `completion-regexp-list' in the docstring. |
| 10396 | |
| 10397 | 2000-02-14 Dave Love <fx@gnu.org> |
| 10398 | |
| 10399 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. |
| 10400 | |
| 10401 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
| 10402 | |
| 10403 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS |
| 10404 | to Emacs' syntax. Also fix the comment about set/not-set meanings |
| 10405 | since Emacs syntax is not the value 0 any more. |
| 10406 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax |
| 10407 | since it's now part of RE_SYNTAX_EMACS. |
| 10408 | |
| 10409 | 2000-02-12 Dave Love <fx@gnu.org> |
| 10410 | |
| 10411 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on |
| 10412 | Alpha. |
| 10413 | |
| 10414 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
| 10415 | |
| 10416 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. |
| 10417 | |
| 10418 | 2000-02-12 Dave Love <fx@gnu.org> |
| 10419 | |
| 10420 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. |
| 10421 | |
| 10422 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: |
| 10423 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
| 10424 | * s/hpux.h: Don't define HAVE_VFORK. |
| 10425 | |
| 10426 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. |
| 10427 | |
| 10428 | * s/nextstep.h: Don't define HAVE_ALLOCA. |
| 10429 | |
| 10430 | * config.in: Add vfork bits. |
| 10431 | |
| 10432 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
| 10433 | |
| 10434 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register |
| 10435 | unwind function to undo the effect of stopping atimers. |
| 10436 | |
| 10437 | * keyboard.c (bind_polling_period): Stop all timers except |
| 10438 | poll_timer. |
| 10439 | |
| 10440 | * atimer.c (stopped_atimers): New variable. |
| 10441 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): |
| 10442 | New functions. |
| 10443 | |
| 10444 | * atimer.h (stop_other_atimers, run_all_atimers) |
| 10445 | (unwind_stop_other_atimers): Add function prototypes. |
| 10446 | |
| 10447 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. |
| 10448 | |
| 10449 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
| 10450 | |
| 10451 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff |
| 10452 | library may depend on jpeg. |
| 10453 | (atimer.o): Depends on atimer.c. |
| 10454 | |
| 10455 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
| 10456 | |
| 10457 | * insdel.c (del_range_1): Call update_compositions. |
| 10458 | (del_range_both): Call update_compositions just once.. |
| 10459 | |
| 10460 | 2000-02-10 Dave Love <fx@gnu.org> |
| 10461 | |
| 10462 | * xfns.c (create_frame_xic): Fix initialization of automatic |
| 10463 | aggregates for pcc. |
| 10464 | |
| 10465 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
| 10466 | |
| 10467 | * ccl.c (CCL_MAKE_CHAR): New macro. |
| 10468 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of |
| 10469 | registers by CCL_MAKE_CHAR before calling translate_char. |
| 10470 | <CCL_TranslateCharacterConstTbl> Likewise. |
| 10471 | |
| 10472 | 2000-02-08 Dave Love <fx@gnu.org> |
| 10473 | |
| 10474 | * lread.c (__EXTENSIONS__): Define. |
| 10475 | |
| 10476 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
| 10477 | |
| 10478 | * puresize.h (BASE_PURESIZE): Increase to 650000. |
| 10479 | |
| 10480 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 10481 | |
| 10482 | * msdos.c (XMenuActivate): Turn off the cursor after displaying |
| 10483 | the help message. |
| 10484 | |
| 10485 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
| 10486 | |
| 10487 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, |
| 10488 | md, mh, mb, mr, and me to the fake termcap entry. |
| 10489 | |
| 10490 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
| 10491 | |
| 10492 | * sound.c (sound_cleanup): Don't call device close routine if the |
| 10493 | function pointer is null. |
| 10494 | |
| 10495 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
| 10496 | |
| 10497 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, |
| 10498 | around image definitions and prototypes. |
| 10499 | (gamma_correct) [WINDOWSNT]: New prototype. |
| 10500 | |
| 10501 | * w32term.c (x_make_frame_visible): Replace call to |
| 10502 | input_poll_signal with poll_for_input. |
| 10503 | |
| 10504 | * window.c [WINDOWSNT]: Include w32term.h. |
| 10505 | |
| 10506 | * xdisp.c [WINDOWSNT]: Include w32term.h. |
| 10507 | |
| 10508 | * makefile.nt: Add dependencies on w32gui.h. |
| 10509 | (OBJ1): Include atimer.obj. |
| 10510 | ($(BLD)\atimer.obj): New dependency rule. |
| 10511 | |
| 10512 | * w32.c (sigmask): New function (does nothing). |
| 10513 | (sigunblock): Ditto. |
| 10514 | |
| 10515 | * frame.c [WINDOWSNT]: Include w32term.h. |
| 10516 | |
| 10517 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. |
| 10518 | |
| 10519 | * lread.c (syms_of_lread): Fix literal newlines. |
| 10520 | |
| 10521 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around |
| 10522 | the string constant limit (2048 bytes) in MSVC. |
| 10523 | (main): Ditto. |
| 10524 | |
| 10525 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
| 10526 | |
| 10527 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit |
| 10528 | area. |
| 10529 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. |
| 10530 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't |
| 10531 | dispatch the event. |
| 10532 | |
| 10533 | 2000-02-04 Dave Love <fx@gnu.org> |
| 10534 | |
| 10535 | * fileio.c: Remove some unused vars. |
| 10536 | (_GNU_SOURCE): Define (for euidaccess). |
| 10537 | |
| 10538 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). |
| 10539 | |
| 10540 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared |
| 10541 | gcpro1, gcpro2. |
| 10542 | (read_minibuf): Deal with allow_props correctly. |
| 10543 | |
| 10544 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 10545 | |
| 10546 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. |
| 10547 | |
| 10548 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
| 10549 | |
| 10550 | * search.c (compile_pattern): If a cache entry has a nil regexp, |
| 10551 | fill in that entry instead of clobbering a previously cached |
| 10552 | string regexp. |
| 10553 | |
| 10554 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
| 10555 | |
| 10556 | * puresize.h (BASE_PURESIZE): Increase to 610000. |
| 10557 | |
| 10558 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
| 10559 | |
| 10560 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name |
| 10561 | can GC. |
| 10562 | |
| 10563 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
| 10564 | |
| 10565 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
| 10566 | instead of incrementing ic directly. |
| 10567 | <CCL_WriteExprConst> Likewise. |
| 10568 | <ccl_set_expr>: Set ic to jump_address. |
| 10569 | |
| 10570 | * fileio.c (e_write): Fix the handling of |
| 10571 | CODING_FINISH_INSUFFICIENT_SRC. |
| 10572 | |
| 10573 | 2000-02-01 Dave Love <fx@gnu.org> |
| 10574 | |
| 10575 | * editfns.c (Fpropertize): Doc fix. |
| 10576 | |
| 10577 | * process.c (Fstart_process): Doc fix. |
| 10578 | |
| 10579 | * eval.c: Fix various doc strings not to duplicate information |
| 10580 | from help-manyarg-func-alist. |
| 10581 | |
| 10582 | * window.c (Fset_window_margins): Don't make interactive. Doc |
| 10583 | fix. |
| 10584 | |
| 10585 | * doc.c (Vhelp_manyarg_func_alist): New variable. |
| 10586 | (Fdocumentation): Use it. |
| 10587 | (syms_of_doc): Define it. |
| 10588 | |
| 10589 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
| 10590 | |
| 10591 | * xterm.c (xim_open_dpy): Remove unused local variable. |
| 10592 | |
| 10593 | * emacs.c (USAGE): Use term `display options' instead of `X |
| 10594 | options'. |
| 10595 | |
| 10596 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. |
| 10597 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. |
| 10598 | |
| 10599 | * fns.c (sweep_weak_table): New function. |
| 10600 | (sweep_weak_hash_tables): Use it. Keep on marking until there |
| 10601 | is no more change. |
| 10602 | |
| 10603 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
| 10604 | |
| 10605 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure |
| 10606 | that XTread_socket does not crash by trying to call XNoOp on a |
| 10607 | closed display. |
| 10608 | |
| 10609 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
| 10610 | |
| 10611 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): |
| 10612 | Change selected_frame to SELECTED_FRAME (). |
| 10613 | (w32_console_mouse_position): Remove #ifndef MULE from around |
| 10614 | `insist' parameter. |
| 10615 | |
| 10616 | * makefile.nt: Remove dosfns.obj. |
| 10617 | |
| 10618 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. |
| 10619 | |
| 10620 | * w32fns.c (w32_defined_color): Check for valid frame before |
| 10621 | applying gamma correction. Eliminate dependency on frame elsewhere. |
| 10622 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. |
| 10623 | (w32_to_x_font): Use resx and resy not height_in and width_in. |
| 10624 | (x_to_w32_font): Doc fix. |
| 10625 | (xlfd_strip_height): New function to strip and return font height. |
| 10626 | (w32_font_match): Compare height separately from rest of xlfd |
| 10627 | spec, using xlfd_strip_height. |
| 10628 | |
| 10629 | * w32term.c (w32_term_init): Swap resx and height_in, resy and |
| 10630 | width_in. Use w32_defined_color in place of defined_color. |
| 10631 | |
| 10632 | * w32faces.c: Merge more of DOS and X specifics in preparation for |
| 10633 | merge with xfaces.c. |
| 10634 | (defined_color): Remove FIXME comment. |
| 10635 | (tty_color_name): Provide w32-specific function. |
| 10636 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. |
| 10637 | |
| 10638 | * w32console.c (turn_on_face, turn_off_face): Removed. |
| 10639 | (w32_face_attributes): New function. |
| 10640 | (Global_variables): Reduce scope where possible. |
| 10641 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as |
| 10642 | fill attribute. |
| 10643 | (hl_mode): Don't modify text attributes. |
| 10644 | (write_glyphs): Don't do anything if len <= 0. Use |
| 10645 | w32_face_attributes to get attributes for drawing. Write |
| 10646 | terminating codes using char_attr_normal. |
| 10647 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. |
| 10648 | (update_begin, update_end): Likewise. |
| 10649 | (vga_stdcolor_name): New function. |
| 10650 | (initialize_w32_display): Remove char_attr_reverse and char_attr. |
| 10651 | (Fset_screen_color): Remove char_attr_reverse. |
| 10652 | |
| 10653 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
| 10654 | |
| 10655 | * xfns.c (xic_set_preeditarea): Take window parameter and |
| 10656 | window-relative pixel-positions. |
| 10657 | |
| 10658 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window |
| 10659 | is its frame's selected window. |
| 10660 | (xim_instantiate_callback): Likewise. |
| 10661 | |
| 10662 | * xfns.c (x_create_im): Removed. |
| 10663 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. |
| 10664 | (supported_xim_styles): Renamed from supported_styles. |
| 10665 | (best_xim_style): Renamed from best_style. |
| 10666 | (create_frame_xic): Renamed from xic_create_frame. |
| 10667 | (free_frame_xic): Renamed from xic_destroy_frame. |
| 10668 | |
| 10669 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> |
| 10670 | |
| 10671 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of |
| 10672 | our frames, call XFilterEvent with 2nd parameter `None'. |
| 10673 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString |
| 10674 | returning XBufferOverflow. |
| 10675 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status |
| 10676 | area. |
| 10677 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. |
| 10678 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. |
| 10679 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) |
| 10680 | (xim_initialize, xim_close) |
| 10681 | [HAVE_X_I18N && HAVE_X11R6]: New functions. |
| 10682 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. |
| 10683 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. |
| 10684 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. |
| 10685 | |
| 10686 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' |
| 10687 | and `xim_styles'. |
| 10688 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add |
| 10689 | `xic_style' and `xic_xfs'. |
| 10690 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) |
| 10691 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. |
| 10692 | (FRAME_XIM): Removed. |
| 10693 | |
| 10694 | * xfns.c (supported_styles): New variable. |
| 10695 | (DEFAULT_STYLE, DEFAULT_FONT): New macros |
| 10696 | (xic_create_xfontset, best_style, xic_create_frame) |
| 10697 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) |
| 10698 | (xic_set_xfontset): New functions. |
| 10699 | |
| 10700 | 2000-01-28 Dave Love <fx@gnu.org> |
| 10701 | |
| 10702 | * s/irix6-5.h: Revert last change after change to irix5-0.h. |
| 10703 | |
| 10704 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. |
| 10705 | |
| 10706 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
| 10707 | |
| 10708 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
| 10709 | for *scratch* if it already existed. |
| 10710 | |
| 10711 | * emacs.c (USAGE): New macro. |
| 10712 | (main): Use it to display usage information. |
| 10713 | |
| 10714 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
| 10715 | |
| 10716 | Support for the menu-help feature: |
| 10717 | |
| 10718 | * msdos.h: Change prototypes of XMenuAddSelection and |
| 10719 | XMenuActivate. |
| 10720 | |
| 10721 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared |
| 10722 | part of the line to the termscript file. |
| 10723 | (IT_clear_to_end): Clear the entire line, not just its beginning. |
| 10724 | (menu_help_message, prev_menu_help_message): New variables. |
| 10725 | (IT_menu_make_room): Make room for the help_text member. |
| 10726 | (IT_menu_display): New argument disp_help; all callers changed. |
| 10727 | If disp_help is non-zero, store the help text of the active menu |
| 10728 | item in menu_help_message. |
| 10729 | (XMenuAddPane): Initialize the help_text member to NULL. |
| 10730 | (XMenuAddSelection): New argument help_text. Store it in the |
| 10731 | XMenu structure. |
| 10732 | (XMenuActivate): New argument help_callback. If the value of |
| 10733 | menu_help_message has changed since the last time, display the |
| 10734 | menu help message text while waiting for the mouse to move. Clear |
| 10735 | the echo area before exiting. |
| 10736 | (XMenuDestroy): Free the help_text member. |
| 10737 | |
| 10738 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
| 10739 | |
| 10740 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to |
| 10741 | XMenuAddSelection. Pass help callback to XMenuActivate. |
| 10742 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. |
| 10743 | |
| 10744 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
| 10745 | |
| 10746 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS |
| 10747 | and EMACS_SET_USECS. |
| 10748 | |
| 10749 | 2000-01-26 Dave Love <fx@gnu.org> |
| 10750 | |
| 10751 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
| 10752 | |
| 10753 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
| 10754 | an error may be signalled. |
| 10755 | |
| 10756 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
| 10757 | |
| 10758 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
| 10759 | LD_SWITCH_SYSTEM inherited from irix5-0.h. |
| 10760 | |
| 10761 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
| 10762 | |
| 10763 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
| 10764 | |
| 10765 | * charset.c (Fstring): If there is a multibyte char among |
| 10766 | the args, always return a multibyte string. |
| 10767 | |
| 10768 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
| 10769 | |
| 10770 | * sysdep.c (sys_select): Turn atimers off and on instead of |
| 10771 | recording and restoring old alarm handler |
| 10772 | |
| 10773 | * process.c (toplevel): Include atimer.h. |
| 10774 | (create_process_1): Rewritten. |
| 10775 | (create_process): Use atimers instead of alarm. |
| 10776 | (wait_reading_process_input) [hpux]: Turn atimers off instead |
| 10777 | of turning off SIGALRM. |
| 10778 | (wait_reading_process_input): Turn off atimers instead off |
| 10779 | calling stop_polling. |
| 10780 | |
| 10781 | * emacs.c (main): Call init_atimer. |
| 10782 | |
| 10783 | * keyboard.c (toplevel): Include systime.h and atimer.h. |
| 10784 | (polling_for_input): Removed because unused. |
| 10785 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. |
| 10786 | (poll_timer): New variable. |
| 10787 | (poll_for_input, poll_for_input_1): New functions. |
| 10788 | (start_polling, stop_polling): Rewritten. |
| 10789 | |
| 10790 | * keyboard.h (polling_for_input): Removed. |
| 10791 | |
| 10792 | * atimer.h, atimer.c: New files. |
| 10793 | |
| 10794 | * Makefile.in (obj): Add atimer.o. |
| 10795 | (atimer.o): New target. |
| 10796 | |
| 10797 | * blockinput.h (pending_atimers): Add extern declaration. |
| 10798 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. |
| 10799 | |
| 10800 | * lisp.h (popup_activated_flag): Add extern declaration. |
| 10801 | |
| 10802 | * xmenu.c (popup_activated_flag): Make externally visible. |
| 10803 | (popup_activate_callback) [USE_MOTIF]: Increment |
| 10804 | popup_activated_flag. |
| 10805 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. |
| 10806 | |
| 10807 | * xterm.c (toplevel): Include atimer.h. |
| 10808 | (toolkit_scroll_bar_interaction): New variable. |
| 10809 | (Fxt_process_timeouts): Removed. |
| 10810 | (x_process_timeouts): New function. |
| 10811 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. |
| 10812 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. |
| 10813 | (x_make_frame_visible): Call poll_for_input_1 instead of |
| 10814 | input_poll_signal. Don't call alarm. |
| 10815 | (x_initialize): Install timer calling x_process_timeouts. |
| 10816 | |
| 10817 | 2000-01-24 Dave Love <fx@gnu.org> |
| 10818 | |
| 10819 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
| 10820 | Don't use -cckr -- apparently not now necessary. |
| 10821 | |
| 10822 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
| 10823 | |
| 10824 | * msdos.c (IT_menu_display): Truncate long menu lines at the right |
| 10825 | screen boundary. |
| 10826 | |
| 10827 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
| 10828 | |
| 10829 | * w32fns.c (w32_defined_color): Apply gamma correction before |
| 10830 | trying to map to the palette. |
| 10831 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame |
| 10832 | to w32_clear_rect. |
| 10833 | |
| 10834 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc |
| 10835 | here. Callers changed to always pass real device context. |
| 10836 | (w32_draw_bitmap): Likewise. |
| 10837 | (w32_get_glyph_overhangs): Likewise. |
| 10838 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new |
| 10839 | one. |
| 10840 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to |
| 10841 | pfnSetScrollInfo and SetScrollRange. |
| 10842 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters |
| 10843 | back into MULE characters after decoding them. |
| 10844 | (x_get_glyph_face_and_encoding): Likewise. |
| 10845 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when |
| 10846 | GetCharABCWidthsW fails, since this is defined on Windows 9x. |
| 10847 | (x_produce_glyphs): Calculate per char metrics for a character |
| 10848 | that we know exists in default font when font_not_found_p is true. |
| 10849 | |
| 10850 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
| 10851 | |
| 10852 | * makefile.nt (intervals.obj, composite.obj): New modules. |
| 10853 | (composite.h): Added as dependency where appropriate. |
| 10854 | |
| 10855 | * w32gui.h (XGCValue): New struct for emulating X GCs. |
| 10856 | |
| 10857 | * w32term.h (XCharStruct): New struct for emulating X. |
| 10858 | |
| 10859 | * w32console.c (turn_on_face, turn_off_face): New functions. |
| 10860 | (change_line_highlight): New prototype for new redisplay. |
| 10861 | (write_glyphs): Support multibyte text. Support faces. |
| 10862 | |
| 10863 | * w32faces.c: Complete rewrite for new redisplay based on new |
| 10864 | xfaces.c. |
| 10865 | |
| 10866 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame |
| 10867 | throughout. struct frame * in place of FRAME_PTR. |
| 10868 | Skeleton support for images, toolbars, tooltips from xfns.c. |
| 10869 | (Fx_create_frame): Use system default for default scroll bar |
| 10870 | width. |
| 10871 | (w32_get_arg): Renamed from x_get_arg. |
| 10872 | (Fx_file_dialog): New function. |
| 10873 | (w32_list_fonts): Check cache before asking system. |
| 10874 | (Vw32_enable_synthesized_fonts): New variable. |
| 10875 | (Vw32_enable_italics): Obsolete, removed. |
| 10876 | |
| 10877 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): |
| 10878 | Use SELECTED_FRAME macro. |
| 10879 | |
| 10880 | * w32menu.c: Add skeleton support for help strings on menus. |
| 10881 | (add_menu_item): Native checkbox and radio support added, but not |
| 10882 | yet enabled due to bugs. |
| 10883 | (push_menu_item): Add parameters type, selection and help. |
| 10884 | Callers updated. |
| 10885 | Formatting changes to reduce unnecessary diffs with xmenu.c. |
| 10886 | |
| 10887 | * w32select.c (Fw32_set_clipboard_data): Update call to |
| 10888 | find_charset_in_str. |
| 10889 | |
| 10890 | * w32term.c: Complete rewrite for new redisplay based on new |
| 10891 | xterm.c with necessary sections merged back in from old w32term.c. |
| 10892 | |
| 10893 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
| 10894 | |
| 10895 | * data.c (set_internal): Further fix in same criterion. |
| 10896 | |
| 10897 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
| 10898 | |
| 10899 | * data.c (set_internal): Fix the criteria for whether |
| 10900 | to swap out the old cached binding. |
| 10901 | |
| 10902 | 2000-01-19 Dave Love <fx@gnu.org> |
| 10903 | |
| 10904 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. |
| 10905 | |
| 10906 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
| 10907 | |
| 10908 | * regex.c (re_compile_fastmap): While checking a range table for |
| 10909 | `charset', skip flag bits for a character class correctly. |
| 10910 | |
| 10911 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
| 10912 | |
| 10913 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
| 10914 | |
| 10915 | * xfns.c (x_window): Call lw_create_widget with new parameter |
| 10916 | list. |
| 10917 | |
| 10918 | * widget.c (EmacsFrameSetCharSize): Change size of children first |
| 10919 | because of problems with main window geometry management under |
| 10920 | Lesstif. |
| 10921 | |
| 10922 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines |
| 10923 | MENU_ITEMS_ITEM_.*. |
| 10924 | (MENU_ITEMS_ITEM_HELP): New enumerator. |
| 10925 | (push_menu_item): Add parameter HELP. Record help in menu_items. |
| 10926 | (single_menu_item, single_submenu, list_of_items): Call |
| 10927 | push_menu_item with new parameter. |
| 10928 | (single_submenu): Set help string in widget value. |
| 10929 | (menu_highlight_callback): New function. |
| 10930 | (set_frame_menubar): Call lw_create_widget with new |
| 10931 | parameter list. |
| 10932 | (xmenu_show, xdialog_show): Ditto. |
| 10933 | |
| 10934 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
| 10935 | |
| 10936 | * sound.c (Fplay_sound): Improve doc string. |
| 10937 | |
| 10938 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
| 10939 | |
| 10940 | * lisp.h (set_internal): Enter the new arg. |
| 10941 | |
| 10942 | * eval.c (specbind): Record buffer-local variables specially, |
| 10943 | indicating which buffer's binding was saved. |
| 10944 | (unbind_to): Restore buffer-local variables specially |
| 10945 | in the proper buffer. |
| 10946 | |
| 10947 | * data.c (set_internal): New arg BUF. |
| 10948 | |
| 10949 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. |
| 10950 | * data.c (Fset): Pass new arg to set_internal. |
| 10951 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. |
| 10952 | |
| 10953 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
| 10954 | |
| 10955 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, |
| 10956 | xprintsym. |
| 10957 | |
| 10958 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
| 10959 | |
| 10960 | * minibuf.c (Ftry_completion): Doc fix. |
| 10961 | |
| 10962 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
| 10963 | |
| 10964 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys |
| 10965 | vector, too. |
| 10966 | |
| 10967 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
| 10968 | |
| 10969 | * coding.c (code_convert_region): Initialize total_skip. |
| 10970 | |
| 10971 | 2000-01-08 Dave Love <fx@gnu.org> |
| 10972 | |
| 10973 | * eval.c (Fuser_variable_p): Check customizability too. |
| 10974 | |
| 10975 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
| 10976 | |
| 10977 | * minibuf.c (Fcompleting_read): Doc fix. |
| 10978 | |
| 10979 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
| 10980 | |
| 10981 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
| 10982 | -L /usr/local/lib. |
| 10983 | |
| 10984 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
| 10985 | Check that input style is supported before trying to create an |
| 10986 | IC for it. |
| 10987 | (x_window): Call x_create_im. |
| 10988 | |
| 10989 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
| 10990 | |
| 10991 | * xfns.c (current_gif_memory_src): New variable. |
| 10992 | (gif_load): Record the address of the current memory source |
| 10993 | in current_gif_memory_src. |
| 10994 | (gif_read_from_memory): Use current_gif_memory_src. |
| 10995 | |
| 10996 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
| 10997 | macros statement form. |
| 10998 | |
| 10999 | * sound.c (struct sound): Renamed from struct sound_file. |
| 11000 | (struct sound): Add members `data' and `header_size'. |
| 11001 | (enum sound_attr): Add SOUND_DATA. |
| 11002 | (current_sound, current_sound_device): Variables renamed from |
| 11003 | sound_file and sound_device. |
| 11004 | (parse_sound): Parse :data. |
| 11005 | (parse_sound): Handle sound data in strings. |
| 11006 | (find_sound_type): Function renamed from find_sound_file_type. |
| 11007 | (wav_init, au_init): Fail if sound's header_size is smaller than |
| 11008 | needed header size. |
| 11009 | (wav_play, au_play): Play sounds from string data. |
| 11010 | |
| 11011 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
| 11012 | |
| 11013 | * lisp.h: Add prototype for allocate_string_data. |
| 11014 | |
| 11015 | * alloc.c (Fgarbage_collect): Return number of live and free |
| 11016 | strings. |
| 11017 | |
| 11018 | * alloc.c (mark_buffer): Remove code in #if 0. |
| 11019 | (gc_sweep): Ditto. |
| 11020 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. |
| 11021 | (strings_consed): New variable. |
| 11022 | (allocate_string): Set it. |
| 11023 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. |
| 11024 | (Fmemory_use_counts): Return strings_consed. Use Flist. |
| 11025 | |
| 11026 | * alloc.c: General cleanup in comments etc. Remove conditional |
| 11027 | compilation for `standalone'. |
| 11028 | |
| 11029 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. |
| 11030 | |
| 11031 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): |
| 11032 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. |
| 11033 | (DONT_COPY_FLAG): Removed. |
| 11034 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. |
| 11035 | (struct sdata, struct sblock): New |
| 11036 | (struct string_block): Rewritten. |
| 11037 | (STRINGS_IN_STRING_BLOCK): New macro. |
| 11038 | (oldest_sblock, current_sblock, total_strings, total_free_strings) |
| 11039 | (large_sblocks, string_blocks, string_free_list): New variables. |
| 11040 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. |
| 11041 | (init_strings): Rewritten. |
| 11042 | (allocate_string, allocate_string_data, compact_small_strings) |
| 11043 | (free_large_strings, sweep_strings): New functions. |
| 11044 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) |
| 11045 | (struct string_block_head, current_string_block) |
| 11046 | (first_string_block, large_string_blocks, STRING_FULLSIZE) |
| 11047 | (STRING_PAD): Removed. |
| 11048 | (make_uninit_multibyte_string, make_pure_string): Rewritten. |
| 11049 | (Fgarbage_collect): Don't set mark bit in large strings. |
| 11050 | (mark_object): Mark strings differently. Mark symbol names |
| 11051 | differently. |
| 11052 | (survives_gc_p): Test marked strings differently. |
| 11053 | (gc_sweep): Sweep strings differently, unmark strings in |
| 11054 | symbol names. |
| 11055 | (compact_strings): Removed. |
| 11056 | |
| 11057 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
| 11058 | |
| 11059 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and |
| 11060 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. |
| 11061 | |
| 11062 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
| 11063 | |
| 11064 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
| 11065 | in a non-empty buffer. |
| 11066 | |
| 11067 | * term.c (encode_terminal_code): Fix the previous change. |
| 11068 | |
| 11069 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
| 11070 | |
| 11071 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to |
| 11072 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. |
| 11073 | |
| 11074 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. |
| 11075 | |
| 11076 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 11077 | |
| 11078 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No |
| 11079 | need to test for MSDOS frames. |
| 11080 | |
| 11081 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 11082 | |
| 11083 | * dosfns.c (unspecified_colors): Remove. |
| 11084 | (msdos_stdcolor_idx): Use global variables unspecified_fg and |
| 11085 | unspecified_bg. |
| 11086 | (msdos_stdcolor_name): Return strings for unspecified fore- and |
| 11087 | back-ground colors. |
| 11088 | |
| 11089 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. |
| 11090 | (syms_of_xfaces): Remove their staticpro's. |
| 11091 | (tty_color_name): Return Lisp strings for unspecified fore- and |
| 11092 | back-ground colors. |
| 11093 | (Finternal_set_lisp_face_attribute): Remove the special treatment |
| 11094 | for Qunspecified_{f,b}g. |
| 11095 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp |
| 11096 | string. |
| 11097 | |
| 11098 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
| 11099 | |
| 11100 | * xdisp.c (reseat_at_next_visible_line_start): Position before |
| 11101 | newline only if ending up on a newline. |
| 11102 | (next_element_from_ellipsis): Return success. Handle case of |
| 11103 | displaying no ellipsis. Fix case of ellipsis defined in display |
| 11104 | table. |
| 11105 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis |
| 11106 | returns 0. |
| 11107 | |
| 11108 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 11109 | |
| 11110 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. |
| 11111 | (Fcolor_supported_p): Renamed from face-color-supported-p. |
| 11112 | |
| 11113 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 11114 | |
| 11115 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The |
| 11116 | list of colors renamed to tty-defined-color-alist. |
| 11117 | (tty_color_name): Pass the frame to tty-color-by-index. |
| 11118 | (realize_tty_face): tty-color-alist is now a function which |
| 11119 | accepts the frame as argument. |
| 11120 | |
| 11121 | * term.c (Ftty_display_color_p): Accept an optional argument |
| 11122 | FRAME. |
| 11123 | |
| 11124 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 11125 | |
| 11126 | * term.c (insert_glyphs): Pass glyph, not &glyph, to |
| 11127 | encode_terminal_code. |
| 11128 | |
| 11129 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
| 11130 | |
| 11131 | * dispnew.c (mode_line_string): Support termcap frames as well. |
| 11132 | |
| 11133 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
| 11134 | |
| 11135 | * syntax.c (Fforward_word): Undo previous change. |
| 11136 | |
| 11137 | * editfns.c (Fconstrain_to_field): Don't constrain if |
| 11138 | inhibit-field-text-motion is non-nil. |
| 11139 | (Fline_beginning_position): Undo previous change. |
| 11140 | (Fline_end_position): Ditto. |
| 11141 | |
| 11142 | * syntax.c (Fforward_word): Notice field boundaries only if |
| 11143 | inhibit-field-text-motion is nil. |
| 11144 | |
| 11145 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. |
| 11146 | |
| 11147 | * editfns.c (Vinhibit_field_text_motion): New variable. |
| 11148 | (inhibit-field-text-motion): New DEFVAR_LISP. |
| 11149 | (Fline_beginning_position, Fline_end_position): Notice field |
| 11150 | boundaries only if inhibit-field-text-motion is nil. |
| 11151 | |
| 11152 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
| 11153 | All calls adjusted. |
| 11154 | (x_build_heuristic_mask): Likewise. |
| 11155 | (xbm_load_image_from_file): Change error output. |
| 11156 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) |
| 11157 | (gif_load, gs_load, x_kill_gs_process): Ditto. |
| 11158 | |
| 11159 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
| 11160 | color indices when accessing raster pixels. |
| 11161 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
| 11162 | one of :file or :data. |
| 11163 | (enum pbm_keyword_index): Add PBM_DATA. |
| 11164 | (pbm_format): Add :data. |
| 11165 | (pbm_image_p): Allow either :file or :data. |
| 11166 | (pbm_read_file): New function. |
| 11167 | (pbm_scan_number): Rewritten to read from string. |
| 11168 | (pbm_load): Support :data. |
| 11169 | |
| 11170 | See ChangeLog.8 for earlier changes. |
| 11171 | |
| 11172 | ;; Local Variables: |
| 11173 | ;; coding: iso-2022-7bit |
| 11174 | ;; End: |