Remove INLINE uses in header files.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b7982059
DN
12010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * intervals.h (temp_set_point, temp_set_point_both):
4 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
5
01664ed1
KB
62010-11-20 Ken Brown <kbrown@cornell.edu>
7
8 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
9
7c2d713b
EZ
102010-11-20 Eli Zaretskii <eliz@gnu.org>
11
12 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
13 \xNNNNNN for hex-code display of glyphless characters.
14
d2bd5189
JD
152010-11-20 Jan Djärv <jan.h.d@swipnet.se>
16
17 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
18 Set important to ! vert_only.
19 (xg_show_toolbar_item): Don't show label horizontally if
20 tool item isn't important.
21 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
22 xg_make_tool_item, or update important on existing tool item.
23
24 * keyboard.c (QCvert_only): New variable.
25 (parse_tool_bar_item): Check for QCvert_only.
26 (syms_of_keyboard): Initialize QCvert_only.
27
28 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
29
d9a95e67
EZ
302010-11-20 Eli Zaretskii <eliz@gnu.org>
31
32 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
33 same in-line.
34
b6557553
AS
352010-11-20 Andreas Schwab <schwab@linux-m68k.org>
36
37 * xfaces.c (lookup_face): Make static.
38 * dispnew.c (copy_row_except_pointers): Likewise.
39 * syntax.c (dec_bytepos): Likewise.
40 (inc_bytepos): Remove.
41 * dispextern.h (lookup_face): Remove declaration.
42
f48fe1f0
EZ
432010-11-19 Eli Zaretskii <eliz@gnu.org>
44
45 * xdisp.c (set_cursor_from_row): Display cursor after all the
46 glyphs that come from an overlay. Don't overstep the last glyph
47 when skipping glyphs from an overlay. (Bug#6687)
48
654ef137
DN
492010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
50
84dfc8a7
DN
51 * alloc.c (refill_memory_reserve): Move declaration ...
52 * lisp.h (refill_memory_reserve): ... here.
53
94fa3833
DN
54 * strftime.c (_strftime_copytm): Add declaration.
55
dde990a0
DN
56 * callproc.c (syms_of_callproc): Use intern_c_string.
57
50c77428
DN
58 Move declarations from .c files to .h files.
59 * process.c (timers_run):
60 * minibuf.c (quit_char):
61 * lread.c (read_emacs_mule_char):
62 * keyboard.c (minibuf_level, message_enable_multibyte)
63 (pending_malloc_warning):
64 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
65 (Qonly): Remove declarations.
66 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
67 (Vselect_active_regions):
68 * keyboard.h (timers_run): Add declarations.
69
654ef137
DN
70 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
71 (tm_diff): Convert definitions to standard C.
72 (extra_args_spec_iso): Remove, unused.
73
4a47c275 742010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
75
76 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
77
78 * config.in (HAVE_G_TYPE_INIT): New symbol.
79
4a47c275 802010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
81
82 * lread.c (Fload): Mention `load-in-progress' and
83 `load-file-name'. (Bug#7346)
84
86520d8c
EZ
85 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
86 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
87 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
88 subprocesses. Use buffer_free only ifdef subprocesses.
89
90 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
91 the subprocesses version, not in the non-subprocesses one.
92
794a4b6d
EZ
93 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
94
146d267b
EZ
952010-11-17 Eli Zaretskii <eliz@gnu.org>
96
97 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
98 lines on text-mode terminals. (bug#7417)
99
fad0d565
SM
1002010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
101
102 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
103 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
104
6b4bb703
KH
1052010-11-17 Kenichi Handa <handa@m17n.org>
106
107 * coding.c (Fset_terminal_coding_system_internal): Fix previous
108 change (set charset-ID list instead of charset-symbol list).
109
9173a8fb
CY
1102010-11-16 Chong Yidong <cyd@stupidchicken.com>
111
112 * keyboard.c (make_lispy_position): For text area clicks, record Y
113 pixel position relative to the text area, excluding header line.
114 Also change X and Y to Lisp_Objects, not pointers; don't return
115 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
116 buffer_posn_from_coords counting from the start of the text area.
117 (Fposn_at_x_y, make_lispy_event): Callers changed.
118
119 * window.c (coordinates_in_window): Change X and Y to ints rather
120 than pointers; don't return coordinates via pointers.
121 (struct check_window_data): Change X and Y from pointers to ints.
122 (window_from_coordinates): Remove args WX and WY; don't return
123 coordinates via pointers.
124 (Fcoordinates_in_window_p, window_from_coordinates):
125 (check_window_containing, Fwindow_at): Callers changed.
126 (window_relative_x_coord): New function.
127
128 * window.h (window_from_coordinates, window_relative_x_coord):
129 Update prototypes.
130
131 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
132 the start of the text area.
133
134 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
135 call. Use window_relative_x_coord.
136 (note_mouse_highlight): Change window_from_coordinates call.
137
138 * w32term.c (w32_read_socket):
139 * msdos.c (dos_rawgetc):
140 * xterm.c (handle_one_xevent): Likewise.
141
d2762c86
DN
1422010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
143
144 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
145 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
146 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
147 Convert definitions to standard C.
148 * regex.c: Do not include <stdlib.h>, config.h does it.
149 Include unistd.h.
150 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
151 (regerror, regfree): Convert definitions to standard C.
152 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
153 (__mktime_internal): Convert definitions to standard C.
154
c2f0866a
DN
1552010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
156
42a7e7f1
DN
157 * w32proc.c:
158 * w32inevt.c:
159 * w32heap.c:
160 * w32.c: Remove config.h include guards.
161
67802943
DN
162 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
163 No code changes.
164
f0e1af46
DN
165 * process.c: Include <sys/ioctl.h> unconditionally,
166 keyboard.c already does it.
167
c2f0866a
DN
168 * keyboard.c (pending_malloc_warning): Add const to match
169 definition in alloc.c.
170 (Fset_input_interrupt_mode): Simplify #ifdefs.
171
92d3ab7e
DN
1722010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
173
12e610e8
DN
174 Clean up systty.h macros.
175 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
176 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
177 definition in all uses.
178 (EMACS_TTY_TABS_OK): Remove, it has a single user.
179 * sysdep.c (discard_tty_input, child_setup_tty)
180 (init_sys_modes, tabs_safe_p, reset_sys_modes):
181 * emacs.c (shut_down_emacs):
182 * callproc.c (child_setup):
183 * term.c (dissociate_if_controlling_tty): Inline removed macros.
184
92d3ab7e
DN
185 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
186
a3e6bad4
CY
1872010-11-14 Chong Yidong <cyd@stupidchicken.com>
188
189 * w32fns.c (Fx_create_frame):
190 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
191 resource here; it's now done at startup.
192
5a232ffb
J
1932010-11-14 Jan Djärv <jan.h.d@swipnet.se>
194
195 * xterm.c (set_wm_state): Add Qnil to final cons.
196
197 * xselect.c (x_send_client_event): Remove unused variables cons and
198 size.
199
24021b38
YM
2002010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
201
202 * keyboard.c (modify_event_symbol) : Add const to array elements of
203 arg NAME_TABLE.
204 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
205 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
206 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
207 Add const to array elements.
208 (scroll_bar_parts): Make static. Fix position of const.
209
210 * w32fns.c (lispy_function_keys): Add const to extern.
211
212 * w32inevt.c (lispy_function_keys): Likewise.
213
afa42fe3
CY
2142010-11-14 Chong Yidong <cyd@stupidchicken.com>
215
216 * xfns.c (Fx_create_frame): Don't check for the cursorColor
217 resource here; it's now done at startup.
218
53260a94
DN
2192010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
220
c865c575 221 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 222
c865c575 223 Fix compilation on Solaris.
ff2e8052
DN
224 * sysdep.c: Do not #include <term.h>.
225 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
226
53260a94
DN
227 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
228
933e29ff
J
2292010-11-13 Jan Djärv <jan.h.d@swipnet.se>
230
231 * xterm.c (set_wm_state): Don't put Atom in cons, call
232 make_fixnum_or_float on them first.
233 (x_term_init): Initialize Xatom_net_supporting_wm_check and
234 Xatom_net_supported correctly.
235
236 * xselect.c (x_send_client_event): Move CHECK_STRING ...
237 (Fx_send_client_event): to here.
238
a048073e
MR
2392010-11-13 Martin Rudalics <rudalics@gmx.at>
240
241 * window.c (Fwindow_use_time): New function.
242
0eb025fb
EZ
2432010-11-13 Eli Zaretskii <eliz@gnu.org>
244
245 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
246 zero-width characters.
247
248 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
249
250 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
251 box before drawing the glyphs inside it.
252
253 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
254
255 * dispextern.h (enum glyphless_display_method): Rename
256 GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE. All
257 users changed.
258
259 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Fix
260 comments.
261 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
262 whitespace in "[]", to simulate a box. Don't use uninitialized
263 variable `width'.
264
c869cc37
JD
2652010-11-11 Julien Danjou <julien@danjou.info>
266
2d9074ba
JD
267 * xsettings.c (init_xsettings): Use already fetch atoms.
268
269 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
270 from dpyinfo.
271
272 * xselect.c (Fx_send_client_event): Split and create
273 x_send_client_event.
274
275 * lisp.h: Do not EXFUN Fx_send_client_event.
276
277 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
278 from dpyinfo.
279 (wm_supports): Use atoms from dpyinfo.
280 (do_ewmh_fullscreen): Use atoms from dpyinfo.
281 (x_ewmh_activate_frame): Use atoms from dpyinfo.
282 (xembed_set_info): Use atoms from dpyinfo.
283 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
284 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
285 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
286 Get all atoms in one round-trip.
287 (set_wm_state): Use x_send_client_event rather than
288 Fx_send_client_event, using Atom directly.
289 (x_ewmh_activate_frame): Ditto.
290 (x_set_sticky): Pass atoms to set_wm_state.
291 (do_ewmh_fullscreen): Ditto.
292
293
294 * xterm.h (x_display_info): Add Xatom_net_supported,
295 Xatom_net_supporting_wm_check, Xatom_net_active_window,
296 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
297
c869cc37
JD
298 * xfns.c (Fx_show_tip): Fix typo in docstring.
299
1a4236ea
SM
3002010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
301
302 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
303 it's not negative.
304
3106121c
YM
3052010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
306
307 * font.c (font_filter_properties): Add const to array elements of
308 properties args.
309
310 * font.h (font_filter_properties): Likewise.
311
312 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
313 elements.
314
315 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
316
da1fec2b
MA
3172010-11-10 Michael Albinus <michael.albinus@gmx.de>
318
319 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
320 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
321 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
322 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
323 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
324
bd6bc222
GM
3252010-11-10 Glenn Morris <rgm@gnu.org>
326
327 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
328
c0098065
EZ
3292010-11-09 Eli Zaretskii <eliz@gnu.org>
330
bd6bc222 331 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 332
d607b96b 3332010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
334
335 * image.c (free_image): Don't garbage the frame here, since this
336 function can be called while redisplaying (Bug#7210).
337 (uncache_image): Garbage the frame here (Bug#6426).
338
d607b96b 3392010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 340
d607b96b
SM
341 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
342 parent is the root window. Check this after traversing window tree.
184765cc 343
d607b96b 344 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 345
d607b96b 346 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 347
d607b96b
SM
348 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
349 before traversing window tree (Bug#5721).
c2e124a9 350
27f92be7
J
3512010-11-07 Jan Djärv <jan.h.d@swipnet.se>
352
66b16767
J
353 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
354
25f38310
SM
355 * xdisp.c (note_mode_line_or_margin_highlight):
356 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 357
a971c0a7
EZ
3582010-11-06 Eli Zaretskii <eliz@gnu.org>
359
360 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
361 adjust width of tool-tip frame to the width of text, excluding the
362 stretch glyph at the beginning of R2L glyph rows.
363
364 * w32fns.c (Fx_show_tip): Likewise.
365
80417b95
JD
3662010-11-06 Jan Djärv <jan.h.d@swipnet.se>
367
368 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 369 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 370
28118eb6
EZ
3712010-11-05 Eli Zaretskii <eliz@gnu.org>
372
c1fc2d3a 373 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
374
375 * term.c: Remove static mouse_face_* variables. All users
376 changed.
377 (term_show_mouse_face, term_clear_mouse_face)
378 (fast_find_position, term_mouse_highlight): Functions deleted.
379 (tty_draw_row_with_mouse_face): New function.
380 (term_mouse_movement): Call note_mouse_highlight instead of
381 term_mouse_highlight.
382
bbf534ce
EZ
383 * nsterm.m (ns_update_window_begin, ns_update_window_end)
384 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
385 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
386 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
387 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
388 Replace Display_Info with Mouse_HLInfo everywhere where
389 mouse_face_* members were accessed for mouse highlight purposes.
390
391 * xterm.c (x_update_window_begin, x_update_window_end)
392 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
393 (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
394 Display_Info with Mouse_HLInfo everywhere where mouse_face_*
395 members were accessed for mouse highlight purposes.
396
397 * w32term.c (x_update_window_begin, x_update_window_end)
398 (x_update_end, w32_read_socket, x_free_frame_resources)
399 (w32_initialize_display_info): Replace Display_Info with
400 Mouse_HLInfo everywhere where mouse_face_* members were accessed
401 for mouse highlight purposes.
402
403 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
404 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
405 unless the frame is on a window-system.
c1fc2d3a 406 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
407 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
408 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
409 (note_mode_line_or_margin_highlight, note_mouse_highlight)
410 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
411 Replace Display_Info with Mouse_HLInfo everywhere where
412 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 413 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
414 HAVE_WINDOW_SYSTEM conditional.
415 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
416 HAVE_WINDOW_SYSTEM block.
417 (try_window_id) [HAVE_GPM || MSDOS]: Call
418 x_clear_window_mouse_face.
419 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
420 systems. Call tty_draw_row_with_mouse_face for TTY systems.
421 (show_mouse_face): Call draw_row_with_mouse_face, instead of
422 calling draw_glyphs directly.
d009ae66
EZ
423 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
424 (cursor_in_mouse_face_p, rows_from_pos_range)
425 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
426 (note_mode_line_or_margin_highlight, note_mouse_highlight)
427 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
428 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
429 fragments.
430 (note_mouse_highlight): Call popup_activated for MSDOS as well.
431 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
432 integer.
433 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
c1fc2d3a
EZ
434 (x_consider_frame_title, tool_bar_lines_needed): Move
435 prototypes to HAVE_WINDOW_SYSTEM-only part.
436 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
437 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
438 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
439 part.
d009ae66
EZ
440
441 * dispnew.c (mirror_make_current): Set Y coordinate of the
442 mode-line and header-line rows.
c1fc2d3a
EZ
443 (init_display): Setup initial frame's output_data for text
444 terminal frames.
d009ae66 445
c1fc2d3a
EZ
446 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
447 its own definition on msdos.c.
d009ae66
EZ
448
449 * msdos.c (show_mouse_face, clear_mouse_face)
450 (fast_find_position, IT_note_mode_line_highlight)
451 (IT_note_mouse_highlight): Functions deleted.
452 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
453 instead of IT_note_mouse_highlight.
454 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
455 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
456 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
457 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
458 where mouse_face_* members were accessed for mouse highlight
459 purposes.
460
461 * msdos.h (initialize_msdos_display): Add prototype.
462
463 * frame.h (MOUSE_HL_INFO): New macro.
464
465 * lisp.h (Mouse_HLInfo): New data type.
466
467 * xterm.h (struct x_display_info):
468 * w32term.h (struct w32_display_info):
469 * nsterm.h (struct ns_display_info):
470 * termchar.h (struct tty_display_info): Use it instead of
471 mouse_face_* members.
472
473 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
474 1st argument.
475 (frame_to_window_pixel_xy, note_mouse_highlight)
476 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
477 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
478 HAVE_WINDOW_SYSTEM conditional.
479 (draw_row_with_mouse_face): Declare prototype.
480 (tty_draw_row_with_mouse_face): Declare prototype.
481
6e8d7c47
EZ
4822010-11-05 Eli Zaretskii <eliz@gnu.org>
483
484 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Remove
485 unused variables.
486
f31ba3f0
AR
4872010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
488
489 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
490 logic pointed out by Eli Zaretskii.
491
448e17d6
LMI
4922010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
493
0c3a9a9f
GM
494 * coding.c (coding-category-list): Refer to set-coding-system-priority
495 instead of the obsolete set-coding-priority in the doc string.
448e17d6 496
f31ba3f0 497
3fdebbf9 4982010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
499
500 * nsfont.m (nsfont_draw): Correct previous patch to return
501 correct value.
502 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
503 don't change the method signature, change the return.
504
5052010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
506
507 * nsfont.m (nsfont_draw)
508 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 509 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 510
17c0c952
JD
5112010-11-03 Julien Danjou <julien@danjou.info>
512
513 * image.c (gif_load): Add support for transparency and specified
514 :background.
515
b18fad6d
KH
5162010-11-01 Kenichi Handa <handa@m17n.org>
517
518 * dispextern.h (lookup_glyphless_char_display): Extern it.
519
520 * termhooks.h (struct terminal): New member charset_list.
521
522 * coding.c (Fset_terminal_coding_system_internal): Set the
523 `charset_list' member of struct terminal.
524
a8039db1 525 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
526 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
527
528 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
529 (lookup_glyphless_char_display): Set it->what at the end.
530 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
531 (last_glyphless_glyph_merged_face_id): Make them non-static.
532
a8039db1
JB
533 * w32term.c (x_draw_glyphless_glyph_string_foreground):
534 Fix the arg with_background for font->driver->draw.
65b6b59a 535
a8039db1 5362010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 537
a8039db1
JB
538 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
539 Surround chp by parentheses.
0269bd90 540
a8039db1 5412010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
542
543 Implement various display methods for glyphless characters.
544
545 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
546 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
547 (Qzero_width): New variables.
548 (THIN_SPACE_WIDTH): New macro.
549 (lookup_glyphless_char_display): New funciton.
550 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
551 (last_glyphless_glyph_merged_face_id): New variables.
552 (get_next_display_element): Check glyphless characters.
553 (redisplay_internal): Initialize last_glyphless_glyph_frame and
554 last_glyphless_glyph_face_id.
555 (fill_glyphless_glyph_string): New function.
556 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
557 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
558 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
559 (x_produce_glyphs): If a suitable font is not found, produce a
560 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
561 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
562 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
563 Qzero_width.
564 (Vglyphless_char_display): Declare it as a Lisp variable.
565
566 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
567 (struct glyph): Change the size of the member "type" to 3.
568 Add glyphless to the union slice and u.
b2cca856
KH
569 (enum display_element_type): Add IT_GLYPHLESS.
570 (enum glyphless_display_method): New enum.
571 (struct it): New member glyphless_method.
572 (Vglyphless_char_display): Extern it.
573
574 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
575 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
576
a8039db1 577 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
578 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
579
580 * nsterm.m (ns_draw_glyph_string): Handle the case
581 GLYPHLESS_GLYPH (the detail is not yet implemented).
582
c8c59954
GM
5832010-10-31 Glenn Morris <rgm@gnu.org>
584
80696982
GM
585 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
586
c8c59954
GM
587 * frame.c (syms_of_frame) <tool-bar-mode>:
588 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
589
46eadc7a
CY
5902010-10-31 Chong Yidong <cyd@stupidchicken.com>
591
592 * xterm.c (x_connection_closed): Print informative error message
593 when aborting on GTK. This requires using shut_down_emacs
594 directly instead of Fkill_emacs.
595
ffe75e6b
EZ
5962010-10-29 Eli Zaretskii <eliz@gnu.org>
597
598 * emacs.c (main): Call syms_of_filelock unconditionally.
599
600 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
601 clause, but keep part of it conditioned on CLASH_DETECTION.
602
9d794026
GM
6032010-10-29 Glenn Morris <rgm@gnu.org>
604
4f4f2973
GM
605 * nsfns.m (Fx-display-save-under, Fx-open-connection)
606 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
607 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
608 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
609 Sync docs between X, W32, NS.
610
9d794026
GM
611 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
612 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
613
d46f6bbb
JB
6142010-10-26 Juanma Barranquero <lekktu@gmail.com>
615
616 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
617 otherwise, bootstrapping on Windows fails to compile macroexp.el.
618
2e35f1a2
EZ
6192010-10-26 Eli Zaretskii <eliz@gnu.org>
620
621 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 622 zero or negative. (Bug#7281)
2e35f1a2 623
8daaeda6
J
6242010-10-26 Jan Djärv <jan.h.d@swipnet.se>
625
626 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
627
6a5c2175
GM
6282010-10-25 Glenn Morris <rgm@gnu.org>
629
630 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
631
7c051dd8
GM
6322010-10-24 Glenn Morris <rgm@gnu.org>
633
634 * w32fns.c (Fx_synchronize, Fx_change_window_property)
635 (Fx_window_property, Fx_file_dialog):
636 * xfns.c (Fx_synchronize, Fx_change_window_property)
637 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
638
23c261f5
CY
6392010-10-24 Chong Yidong <cyd@stupidchicken.com>
640
641 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
642
d414c713 6432010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
644
645 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
646
647 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
648 Deprecate use as a boolean flag.
649
947f5e01
JM
6502010-10-24 Jim Meyering <jim@meyering.net>
651
652 * emacs.c (argmatch): Don't treat "--" as "--chdir".
653
65807d73
GM
6542010-10-24 Glenn Morris <rgm@gnu.org>
655
f5f25615
GM
656 * w16select.c (syms_of_win16select) <selection-coding-system>:
657 <next-selection-coding-system>:
658 * w32select.c (syms_of_w32select) <selection-coding-system>:
659 <next-selection-coding-system>:
3646b86d
GM
660 Sync docs with select.el.
661
46710489
GM
662 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
663 Lisp version.
664
ea883883
GM
665 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
666 Sync doc with the xterm.c version.
667
65807d73
GM
668 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
669 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
670
f3d87560
GM
6712010-10-23 Glenn Morris <rgm@gnu.org>
672
66c6abf0 673 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 674 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 675 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 676 <hourglass-delay>: Sync docs with Lisp.
f3d87560 677
7b7e2c18
EZ
6782010-10-23 Eli Zaretskii <eliz@gnu.org>
679
d1d6801e 680 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
681
682 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
683 (mouse_face_from_string_pos): New function, replaces
684 fast_find_string_pos.
685 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
686 (note_mode_line_or_margin_highlight): Support bidi-reordered
687 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
688 (note_mouse_highlight): When bidi reordering is turned on in a
689 buffer, call next-single-property-change and
d1d6801e
EZ
690 previous-single-property-change with last argument nil. Clear
691 mouse highlight when mouse pointer is in a R2L row on the stretch
692 glyph that stands for no text beyond the line end.
1f382a02
EZ
693 (row_containing_pos): Don't return too early when CHARPOS is in a
694 bidi-reordered continued line. Return immediately when the first
695 hit is found in a line that is not continued, or when an exact
696 match for CHARPOS is found.
d1d6801e
EZ
697 (rows_from_pos_range): New function.
698 (mouse_face_from_buffer_pos): Use it instead of calling
699 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
700 function to support mouse highlight in bidi-reordered lines and
701 not to assume that START_CHARPOS is always in mouse_face_beg_row.
702 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
703 that the former is always above the latter or identical to it.
1554d88e 704 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
705 (coords_in_mouse_face_p): New function, bidi-aware.
706 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
707 Call it instead of comparing with mouse-face members of dpyinfo.
708 (note_mode_line_or_margin_highlight): Fix confusingly swapped
709 usage of hpos and vpos.
544bbc31 710
dee186b6
J
7112010-10-22 Jan Djärv <jan.h.d@swipnet.se>
712
713 * xrdb.c: Include keyboard.h for MOTIF.
714
715 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
716 MOTIF (Bug#7263).
717
718 * xfns.c: Include Xm/TextF and Xm/List.
719 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
720 ANSI prototypes.
721
5fb59edb
GM
7222010-10-22 Glenn Morris <rgm@gnu.org>
723
724 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
725 Remove ccl and duplicate mouse.
726
8b78d5e3
CY
7272010-10-21 Chong Yidong <cyd@stupidchicken.com>
728
729 * insdel.c (prepare_to_modify_buffer): Don't set
730 saved-region-selection if modification hooks are disabled.
731
b8a47412
CY
7322010-10-19 Chong Yidong <cyd@stupidchicken.com>
733
734 * cmds.c (Fdelete_char): Doc fix.
735
ca3fa302 7362010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
737
738 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
739
ca3fa302 7402010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
741
742 Fix incorrect font metrics when the same font is opened with
743 different pixelsizes.
744
745 * xftfont.c: Include composite.h.
746 (xftfont_shape): New function.
747 (syms_of_xftfont): Set xftfont_driver.shape.
748
c978536f
JD
7492010-10-18 Julien Danjou <julien@danjou.info>
750
751 * frame.c (Fframe_pointer_visible_p):
752 Add `frame-pointer-visible-p' to get the pointer visibility.
753
4b2d9ec2
LMI
7542010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
755
756 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
757 non-"EAGAIN"-like error to signal to Emacs that the socket should
758 be closed.
759
9cf66cf2
EZ
7602010-10-15 Eli Zaretskii <eliz@gnu.org>
761
c3911ead
EZ
762 * unexcoff.c (make_hdr): Fix prototype according to changes in
763 2010-10-03T13:59:56Z!dann@ics.uci.edu.
764
9cf66cf2
EZ
765 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
766
be98da05
TH
7672010-10-15 Tassilo Horn <tassilo@member.fsf.org>
768
769 * Makefile.in (really-oldXMenu): Fix typo in variable name that
770 made building the X menu fail.
cc98b256 771 (really-oldXMenu): Fix my previous fix.
be98da05 772
220d91b8 7732010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
774
775 Fix handling of font properties on Windows (bug#6303).
776 * font.c (font_filter_properties): New function, refactored from
777 ftfont_filter_properties.
778 * font.h (font_filter_properties): Declare.
779 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
780 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
781 (w32font_filter_properties): New function.
782 (w32font_driver): Add w32font_filter_properties.
783
220d91b8 7842010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 785
c0943d3d 786 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
787 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
788
24f981c9
JB
7892010-10-14 Juanma Barranquero <lekktu@gmail.com>
790
791 * w32fns.c (w32_wnd_proc, file_dialog_callback):
792 * w32font.c (w32_generic_family):
793 * w32inevt.c (key_event):
794 * w32menu.c (fill_in_menu):
795 * w32proc.c (reader_thread, w32_executable_type, compare_env)
796 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
797 * w32term.c (w32_read_socket): Make static.
798
850690cc
JB
7992010-10-13 Juanma Barranquero <lekktu@gmail.com>
800
801 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
802 prototypes; all callers changed.
803
5e371708
JB
8042010-10-13 Juanma Barranquero <lekktu@gmail.com>
805
806 * makefile.w32-in (TLIB2): Rename from TLIBW32.
807 (OBJ2): New macro.
808 (WIN32OBJ, FONTOBJ): Remove.
809 (OBJ1): Redistribute object files with OBJ2.
810 (LIBS, $(TEMACS)): Use TLIB2.
811 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
812 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
813
2e288d54
JB
8142010-10-13 Juanma Barranquero <lekktu@gmail.com>
815
816 * emacs.c (Vdynamic_library_alist)
817 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
818 Doc fix.
819
820 * lisp.h (Vdynamic_library_alist): Declare extern.
821
822 * image.c (Vimage_library_alist)
823 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
824 (lookup_image_type): Use Vdynamic_library_alist.
825 (Finit_image_library): Doc fix.
826
aba1381b
DN
8272010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
828
829 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
830 (lispdir): Remove trailing /, update all uses.
831
4c14013d 8322010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
833
834 * nsterm.m (Qleft): Declare.
835 (ns_right_alternate_modifier): New variable
836 (NSRightAlternateKeyMask): New define.
837 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
838 ns_right_alternate_modifier isn't Qleft.
839 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
840 as emacs modifier for NSRightAlternateKeyMask.
841 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
842
355cdaf3
LMI
8432010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
844
845 * gnutls.c (emacs_gnutls_write): If we're trying to write before
846 gnutls is ready, return EAGAIN as the errno.
847
4c620157
DN
8482010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
849
edfd76ce
DN
850 * vm-limit.c:
851 * unexhp9k800.c:
852 * unexelf.c:
853 * unexaix.c:
854 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
855
a4daeecf
DN
856 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
857 (PROFILING_LDFLAGS): Remove, not needed anymore.
858
2cb72a75 859 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
860 (CRT_DIR): Move near potential user.
861 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 862
4c620157
DN
863 * sysdep.c (LPASS8): Remove, unused.
864 (emacs_ospeed): Change from being a global to a local in the only
865 user: init_baud_rate.
866
b845653d
LMI
8672010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
868
869 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 870 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 871 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 872 gnutls_read. This allows us to actually read lots of data from
b845653d 873 the GnuTLS stream.
2e6c74c5
LMI
874 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
875 According to the documentation, this is correct, and it seems to
876 make things work.
b845653d 877
3625b3e2
CY
8782010-10-09 Chong Yidong <cyd@stupidchicken.com>
879
880 * xterm.c (x_draw_relief_rect): Clear corner pixels.
881
8b1c619f
MA
8822010-10-08 Michael Albinus <michael.albinus@gmx.de>
883
884 * keyboard.c: Revert last change; it was not intended to be
885 synchronized with the trunk.
886
93d50df8
KH
8872010-10-08 Kenichi Handa <handa@m17n.org>
888
2b7c9342 889 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 890
4628bef1 8912010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
892
893 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
894 (Fdbus_init_bus): ... here. (Bug#7113)
895
4628bef1 8962010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
897
898 * buffer.c (before-change-functions, after-change-functions):
899 Three-year overdue doc fix following 2007-08-13 change.
900
4628bef1 9012010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
902
903 * coding.c (coding_inherit_eol_type): If parent doesn't specify
904 eol-format, inherit from the system's default.
905 (complement_process_encoding_system): Make a new coding system
906 inherit the original eol-format.
907
4628bef1 9082010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
909
910 * coding.c (complement_process_encoding_system): New function.
911
912 * coding.h (complement_process_encoding_system): Extern it.
913
914 * callproc.c (Fcall_process): Complement the coding system for
915 encoding arguments.
916 (Fcall_process_region): Complement the coding system for encoding
917 the input to the process.
918
919 * process.c (Fstart_process): Complement the coding system for
920 encoding arguments.
921 (send_process): Complement the coding system for encoding what
922 sent to the process.
923
4628bef1 9242010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
925
926 * xfont.c (xfont_open): Fix setting of font->average_width from
927 :avgwidth property (Bug#7123).
928
4628bef1 9292010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
930
931 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
932 is more portable.
933
934 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
935 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
936 has not defined SIGIO.
937
389454fb
CY
9382010-10-08 Chong Yidong <cyd@stupidchicken.com>
939
940 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
941 draw the outermost line using the black relief, for legibility.
942 Omit drawing the four corner pixels.
943
51b403bd
CY
9442010-10-04 Chong Yidong <cyd@stupidchicken.com>
945
946 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
947 (read_key_sequence): Inline echo_prompt.
948 (echo_dash): Add a dash only if key is continued (Bug#7137).
949
3e6ae1a4
DN
9502010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
951
952 Remove O_RDONLY, O_WRONLY definitions, not needed.
953 * unexcoff.c:
954 * lread.c:
955 * fileio.c:
956 * doc.c:
957 * callproc.c:
958 * alloc.c:
959 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
960
c1ae068b
LMI
9612010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
962
963 * gnutls.h (GNUTLS_LOG2): Convenience macro.
964
965 * gnutls.c: Add property list symbol holders.
966 (emacs_gnutls_handshake): Clarify how sockets are passed to
967 GnuTLS.
968 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
969 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
970 and keyfiles to be a list of file names. Default to "NORMAL" for
971 the priority string. Improve logging.
972
e2afe435
GM
9732010-10-03 Glenn Morris <rgm@gnu.org>
974
975 * fileio.c (Vdirectory_sep_char): Remove.
976
dd5ecd6b
DN
9772010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
978
b5437a05
DN
979 * termhooks.h: Remove #ifdef CONSP.
980
4777478a
DN
981 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
982
a3d5088d
DN
983 Include <fcntl.h> unconditionally.
984 * termcap.c:
985 * sysdep.c:
986 * lread.c:
987 * keyboard.c:
988 * filelock.c:
989 * fileio.c:
990 * doc.c:
991 * callproc.c:
992 * alloc.c: Remove include guards for <fcntl.h>, process.c already
993 does it.
994
82719735
DN
995 * process.c: Do not include <sys/wait.h>, syswait.h does it.
996
9de940b5
DN
997 * sysdep.c (flush_pending_output): Remove code, does not do
998 anything on any platform.
999
57507bf8
DN
1000 Remove unused code.
1001 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
1002 select emulation, all systems support select.
1003 (set_exclusive_use): Remove, the only user is in an #if 0 block.
1004 * process.c (create_process): Remove #if 0 code.
1005
dd5ecd6b
DN
1006 Remove unused arguments for unexec.
1007 The third one is never used, and the last two are always passed as zero.
1008 * emacs.c (unexec): Add declaration.
1009 (Fdump_emacs): Only pass the first two arguments to unexec.
1010 Simplify #ifdef.
1011 * unexw32.c (unexec):
1012 * unexsol.c (unexec):
1013 * unexhp9k800.c (unexec):
1014 * unexcw.c (unexec): Remove the last 3 arguments, unused.
1015 * unexelf.c (unexec): Remove the last 3 arguments, unused.
1016 (find_section): Use const.
1017 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
1018 (unexec_error): Declare it NO_RETURN.
1019 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
1020 it as an argument, remove data_start and entry_address arguments, unused.
1021 (unexec): Remove bss_start, data_start and
1022 entry_address arguments.
1023 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
1024 it as an argument, remove data_start and entry_address arguments, unused.
1025 (unexec): Remove bss_start, data_start and
1026 entry_address arguments.
1027
74f1829d
JB
10282010-10-03 Juanma Barranquero <lekktu@gmail.com>
1029
7f467e14
JB
1030 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
1031
74f1829d
JB
1032 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
1033 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
1034 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
1035 Fix typos in docstrings.
1036 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
1037 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
1038
6926550f
CY
10392010-10-03 Chong Yidong <cyd@stupidchicken.com>
1040
1041 * keyboard.c (command_loop_1): Make sure the mark is really alive
1042 before using it (Bug#7044).
1043
54b65f7b
JB
10442010-10-02 Juanma Barranquero <lekktu@gmail.com>
1045
1046 * makefile.w32-in (tags): Rename target to full-tags.
1047
383ebd15
EZ
10482010-10-02 Eli Zaretskii <eliz@gnu.org>
1049
1050 * emacs.c (main): Remove !WINDOWSNT conditional.
1051 (Fkill_emacs): Don't mention exemption on MS-Windows.
1052
9c524fcb
GM
10532010-10-02 Glenn Morris <rgm@gnu.org>
1054
3226d6ca
GM
1055 * character.c (Fchar_bytes): Remove obsolete function.
1056 (syms_of_character): Remove Schar_bytes.
1057
9c524fcb
GM
1058 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
1059 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
1060 in batch-mode.
1061 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
1062 (kill-emacs-hook): Doc fix.
1063
1b217849
LMI
10642010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
1065
1066 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
1067 (parse_region): Reworked to take regions instead of strings, and
1068 renamed to reflect that these are the libxml functions.
1069
54cc6a83
EZ
10702010-10-01 Eli Zaretskii <eliz@gnu.org>
1071
0ebf79de
EZ
1072 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
1073 screen dimensions in tty->Wcm.
1074
54cc6a83
EZ
1075 * xdisp.c (set_cursor_from_row): When the row is truncated and
1076 point is outside the range of displayed characters, position the
1077 cursor inside the scroll margin. (Bug#6349)
1078
321401d1
DN
10792010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
1080
4cacd822
DN
1081 Do not include stdlib.h and string.h, config.h does it.
1082 * xfont.c:
1083 * w32term.c:
1084 * w32reg.c:
1085 * w32inevt.c:
1086 * w32heap.c:
1087 * w32console.c:
1088 * w16select.c:
1089 * unexsol.c:
1090 * term.c:
1091 * sound.c:
1092 * scroll.c (m):
1093 * gtkutil.c:
1094 * font.c:
1095 * filelock.c:
1096 * fileio.c:
1097 * dosfns.c:
1098 * dbusbind.c:
1099 * bidi.c:
1100 * callproc.c:
1101 * process.c:
1102 * msdos.c:
1103 * charset.c: Do not include stdlib.h and string.h, config.h does it.
1104
0781e7ab
DN
1105 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
1106
9bf58201
DN
1107 * process.c: Move #include <pty.h> earlier.
1108 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
1109 (pty_name): Move definition later.
1110
088dcc3e
DN
1111 * nsselect.m (syms_of_nsselect):
1112 * nsmenu.m (syms_of_nsmenu):
1113 * nsfns.m (syms_of_nsfns):
1114 * msdos.c (syms_of_msdos):
4cacd822 1115
088dcc3e
DN
1116 * image.c (syms_of_image):
1117 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
1118
321401d1
DN
1119 * point.h: Remove, unused.
1120
73077a9a
EZ
11212010-10-01 Eli Zaretskii <eliz@gnu.org>
1122
1123 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
1124 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
1125 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
1126
55e572ef
DN
11272010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1128
1129 * xml.c (parse_string): Use const.
1130
d4b6d95d
LMI
11312010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
1132
1133 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
1134 only override Vprint_level if it isn't already bound, and increase
1135 the level to 8 to produce more useful backtraces for bug reports.
1136
e4b6db12
DN
11372010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1138
1139 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
1140
1becef93
JB
11412010-09-30 Juanma Barranquero <lekktu@gmail.com>
1142
1143 * w32console.c (vga_stdcolor_name): Remove unused function;
1144 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
1145
df7fcaff
LMI
11462010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
1147
bac5cef8
LMI
1148 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
1149 (Fgnutls_boot): Start the handshake.
1150 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
1151 (Fgnutls_boot): Remove some debugging messages.
1152 Change indentation throughout to use the Emacs style.
1153 (emacs_gnutls_handshake): Cast the fds to something that's
1154 possibly the expected length.
1155 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 1156
df7fcaff
LMI
1157 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
1158
1159 * process.c (make_process): Set the gnutls_p field to zero by
1160 default.
1161 (read_process_output): Always call the gnutls_read function if the
1162 stream is a gnutls stream.
1163 (send_process): Ditto for writes.
1164
1165 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
1166 or write anything until the state is GNUTLS_STAGE_READY.
1167 (Fgnutls_boot): Mark the stream as being a gnutls stream.
1168
d585695f
EZ
11692010-09-29 Eli Zaretskii <eliz@gnu.org>
1170
af7ef32d
EZ
1171 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
1172 NEUTRAL_DIR.
1173 (handle_invisible_prop, iterate_out_of_display_property)
1174 (next_element_from_buffer): If bidi_it.first_elt is set, call
1175 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
1176 (Bug#7128)
1177
d585695f
EZ
1178 * print.c (print_object): Fix format string and argument types for
1179 printing a Lisp_Misc_Marker.
1180
1181 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
1182 (load_overlay_strings, get_overlay_strings_1)
1183 (get_overlay_strings, forward_to_next_line_start)
1184 (back_to_previous_visible_line_start, reseat, reseat_to_string)
1185 (get_next_display_element, next_element_from_string)
1186 (next_element_from_c_string, next_element_from_buffer)
1187 (move_it_vertically_backward, move_it_by_lines, add_to_log)
1188 (message_dolog, message_log_check_duplicate, message2_nolog)
1189 (message3, message3_nolog, vmessage, set_message, set_message_1)
1190 (hscroll_window_tree, text_outside_line_unchanged_p)
1191 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
1192 (find_last_unchanged_at_beg_row)
1193 (find_first_unchanged_at_end_row, row_containing_pos)
1194 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
1195 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
1196 EMACS_INT for buffer and string positions.
1197
1198 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
1199 (row_containing_pos): Adjust prototype.
1200
1201 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
1202 (message2_nolog, set_message): Adjust prototypes.
1203
a6f3211f
SM
12042010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1205
1206 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
1207 (Fgnutls_boot): Use SDATA.
1208 (Fgnutls_handshake): Remove unused var `max_log_level'.
1209
e0720500
MA
12102010-09-27 Michael Albinus <michael.albinus@gmx.de>
1211
11a5af7c 1212 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
1213 (Bug#7113)
1214
d8a4b27a
J
12152010-09-27 Jan Djärv <jan.h.d@swipnet.se>
1216
42d3022b
J
1217 * xgselect.c (xg_select): Clear file descriptors not set from
1218 rfds and wfds.
1219
d8a4b27a
J
1220 * process.c (wait_reading_process_output): Add missing FD_CLR
1221 for write_mask (must mirror connect_wait_mask).
1222
8ed70bf3
LMI
12232010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
1224
1225 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
1226 prefix.
1227 (Fgnutls_boot): Use changed process members. Use log level with a
1228 function parameter to set it. Bring back Emacs-level debugging
1229 messages at log level 1 and 2.
1230
1231 * process.c (make_process): Initialize gnutls_log_level.
1232
1233 * process.h: Add gnutls_log_level and rename x509_cred and
1234 anon_cred to have the gnutls_ prefix for consistency.
1235
1236 * gnutls.h (GNUTLS_LOG): Add convenience macro.
1237
bedf4aab
JB
12382010-09-27 Juanma Barranquero <lekktu@gmail.com>
1239
1240 * w32.c (g_b_init_get_sid_identifier_authority)
1241 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1242 Remove, not used.
1243 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1244 (init_winsock): Remove useless assignment.
1245 (open_process_token, get_token_information, lookup_account_sid)
1246 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1247 (get_security_descriptor_owner, get_security_descriptor_group)
1248 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1249 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1250 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1251 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1252 (unc_volume_file_attributes, convert_from_time_t)
1253 (create_toolhelp32_snapshot, process32_first, process32_next)
1254 (open_thread_token, impersonate_self, revert_to_self)
1255 (get_process_memory_info, get_process_working_set_size)
1256 (global_memory_status, global_memory_status_ex, socket_to_fd)
1257 (shutdown_handler): Make static.
1258
08609ffd
MA
12592010-09-27 Michael Albinus <michael.albinus@gmx.de>
1260
1261 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1262 (xd_pending_messages): Functions removed.
1263 (xd_read_queued_messages): Add parameters fd, *data, for_read in
1264 order to be compatible with add_read_fd. Determine bus from data,
1265 and call xd_read_message just for this bus.
1266 (xd_add_watch): Use xd_read_queued_messages as callback function.
1267 Add data.
1268
1269 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1270
d2e9d0bb
LMI
12712010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
1272
1273 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 1274 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 1275
4be9765d
KH
12762010-09-27 Kenichi Handa <handa@m17n.org>
1277
1278 These changes are to remove restriction on the number of glyphs in
1279 one composition.
1280
1281 * dispextern.h (struct glyph): Change the member "slice" to union.
1282 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
1283 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
1284
1285 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1286 instead of glyph->slice.
1287 (marginal_area_string): Likewise.
1288
1289 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1290 glyph->u.cmp.
1291 (append_composite_glyph): Likewise.
1292
1293 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1294 glyph->u.cmp.
1295 (fill_gstring_glyph_string, x_get_glyph_overhangs)
1296 (append_composite_glyph): Likewise.
1297 (fill_image_glyph_string): Use glyph->slice.img instead of
1298 glyph->slice.
1299 (append_glyph, produce_image_glyph, append_stretch_glyph)
1300 (note_mouse_highlight): Likewise.
1301
3fad2ad2
J
13022010-09-26 Jan Djärv <jan.h.d@swipnet.se>
1303
bf05eed6
J
1304 * process.c (add_keyboard_wait_descriptor)
1305 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
1306 (wait_reading_process_output): Don't pass write_mask to select
1307 if SELECT_CANT_DO_WRITE_MASK is defined.
1308 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 1309
3fad2ad2
J
1310 * process.h (add_read_fd, delete_read_fd, add_write_fd)
1311 (delete_write_fd): Declare.
1312
1313 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1314 (write_mask): New variable.
1315 (max_input_desc): Renamed from max_keyboard_desc.
1316 (fd_callback_info): New variable.
70e31436
JB
1317 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1318 New functions.
3fad2ad2
J
1319 (Fmake_network_process): FD_SET write_mask.
1320 (deactivate_process): FD_CLR write_mask.
1321 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
1322 check_connect removed. check_write is new. Remove references to gpm.
1323 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
1324 NON_BLOCKING_CONNECT) instead of Connecting.
1325 Loop over file descriptors and call callbacks in fd_callback_info
1326 if file descriptor is ready for I/O.
1327 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1328 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1329 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
1330 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1331 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
1332 (init_process): Initialize write_mask and fd_callback_info.
1333
1334 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1335
1336 * dbusbind.c: Include process.h.
1337 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1338 (xd_read_message_1): New functions.
70e31436
JB
1339 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1340 Handle watch for both read and write.
3fad2ad2
J
1341 (Fdbus_init_bus): Also register xd_toggle_watch.
1342 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1343 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1344 to dbus_connection_flush.
70e31436 1345 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
1346 Call xd_read_message_1 until status is COMPLETE.
1347
dce4c2ac
DN
13482010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
1349
1350 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
1351 (init_tty): Reorder code to reduce the number of #ifdefs.
1352 No code changes.
dce4c2ac 1353
8af55556
TZ
13542010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
1355
1356 * process.h: Set up GnuTLS support.
1357
1358 * process.c (make_process, Fstart_process)
1359 (read_process_output, send_process): Set up GnuTLS support for
1360 process input/output file descriptors.
1361
1362 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1363
1364 * gnutls.c: The source code for GnuTLS support in Emacs.
1365
1366 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1367
1368 * config.in: Set up GnuTLS support.
1369
1370 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1371 (obj, LIBES): Set up GnuTLS support.
1372
83e245c4
JB
13732010-09-26 Juanma Barranquero <lekktu@gmail.com>
1374
1375 * w32.c (get_emacs_configuration_options): Fix previous change.
1376
d24ec09a
CY
13772010-09-25 Chong Yidong <cyd@stupidchicken.com>
1378
1379 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1380 alive before using it (Bug#6977).
1381
b7bdc47c
LMI
13822010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1383
a952d5f3
LMI
1384 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1385
1386 * dispextern.h: EMACS_INT/int fixup.
1387
1388 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1389 fixup.
1390
b7bdc47c
LMI
1391 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1392
41118bd3
EZ
13932010-09-25 Eli Zaretskii <eliz@gnu.org>
1394
2452438f
EZ
1395 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1396 (Fselect_window, window_scroll_pixel_based)
1397 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1398 Use EMACS_INT for buffer positions.
1399
1400 * textprop.c (validate_interval_range, interval_of)
1401 (property_change_between_p, Fadd_text_properties)
1402 (set_text_properties_1, Fremove_text_properties)
1403 (Fremove_list_of_text_properties, Ftext_property_any)
1404 (Ftext_property_not_all, copy_text_properties)
1405 (text_property_list, extend_property_ranges)
1406 (verify_interval_modification): Use EMACS_INT for buffer
1407 positions.
1408
f877c546
EZ
1409 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1410 for buffer positions.
1411
1412 * process.c (read_process_output, send_process)
1413 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1414 and string positions and size.
1415
da43f021
EZ
1416 * print.c (print_object, print_string, strout): Use EMACS_INT for
1417 string indices.
1418
1419 * minibuf.c (string_to_object): Use EMACS_INT for string position
1420 and size.
1421
1422 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1423
1424 * lread.c <read_from_string_index, read_from_string_index_byte>
1425 <read_from_string_limit, readchar_count>: Define EMACS_INT.
1426 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1427 buffer positions and string length.
1428
41118bd3
EZ
1429 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
1430 EMACS_INT.
1431 (echo_truncate, adjust_point_for_property, read_char)
1432 (gen_help_event, make_lispy_event, modify_event_symbol)
1433 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
1434 for buffer positions and string length.
1435
1436 * keyboard.h (gen_help_event): Adjust prototype.
1437
1438 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
1439
1440 * commands.h <last_point_position>: Declare EMACS_INT.
1441
1442 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
1443 (truncate_echo_area): Accept EMACS_INT argument.
1444
1445 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
1446
1447 * lisp.h (truncate_echo_area): Adjust prototype.
1448
1449 * composite.c (composition_adjust_point): Return EMACS_INT.
1450
1451 * composite.h (composition_adjust_point): Adjust prototype.
1452
ba3033ee
JB
14532010-09-25 Juanma Barranquero <lekktu@gmail.com>
1454
1455 * process.c (Fmake_network_process): When arg :host is 'local,
1456 use address 127.0.0.1, not name "localhost". (Bug#6781)
1457
4f3a2f8d
EZ
14582010-09-24 Eli Zaretskii <eliz@gnu.org>
1459
5816888b
EZ
1460 * indent.c (Fcurrent_indentation, indented_beyond_p)
1461 (compute_motion): Use EMACS_INT for buffer position variables.
1462
1463 * lisp.h (indented_beyond_p): Adjust prototype.
1464
1465 * buffer.c (overlay_strings): Return EMACS_INT.
1466
1467 * buffer.h (overlay_strings): Adjust prototype.
1468
1469 * region-cache.c (pp_cache): Adjust format to arguments.
1470
1471 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1472 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1473 (verror): Use EMACS_INT for size of allocated buffer.
1474
ace1712c
EZ
1475 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1476 positions.
1477
1478 * xdisp.c (redisplay_internal, try_window_id)
1479 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
1480 EMACS_INT for buffer positions.
1481
f5276b75 1482 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
1483
1484 * dispnew.c (increment_matrix_positions)
1485 (increment_row_positions, copy_glyph_row_contents)
1486 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1487 positions.
1488
1489 * dispextern.h (mode_line_string, marginal_area_string)
1490 (increment_matrix_positions, increment_row_positions): Adjust
1491 prototypes.
1492
1493 * data.c (Faref, Faset): Use EMACS_INT for string length and
1494 positions.
1495
1496 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1497 characters to insert.
1498
1499 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1500 position and size.
1501
4f3a2f8d
EZ
1502 * syntax.c (scan_words, update_syntax_table)
1503 (prev_char_comend_first, back_comment, skip_chars)
1504 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
1505 EMACS_INT for buffer and string positions.
1506
1507 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1508
1509 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1510 positions.
1511
db063399
LMI
15122010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1513
f0812d35
LMI
1514 * scroll.c (calculate_scrolling, line_ins_del)
1515 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1516 conversion.
1517
f5c7fc27
LMI
1518 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1519 (region_cache_backward, region_cache_forward)
1520 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1521 conversion.
1522
db063399
LMI
1523 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1524
1525 * eval.c (verror): Fix EMACS_INT/int conversion.
1526
07914cd0 1527 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
1528 (print_preprocess, print_check_string_charset_prop)
1529 (print_object): Fix EMACS_INT/int conversion.
1530
1531 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1532
e6d4aefa
EZ
15332010-09-24 Eli Zaretskii <eliz@gnu.org>
1534
69481da7
EZ
1535 * callproc.c (Fcall_process): Use EMACS_INT for count of
1536 characters read from the subprocess.
1537
61bfec98
EZ
1538 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1539 positions.
1540 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1541 positions.
1542
145582a0
EZ
1543 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1544 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1545 length.
1546 (advance_to_char_boundary, Fset_buffer_multibyte)
1547 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1548 (overlay_touches_p, record_overlay_string, overlay_strings)
1549 (recenter_overlay_lists, fix_start_end_in_overlays)
1550 (modify_overlay, Fmove_overlay, report_overlay_modification)
1551 (evaporate_overlays): Use EMACS_INT for buffer positions.
1552
1553 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
1554 prototypes.
1555
446470a9
EZ
1556 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1557 positions.
1558
e6d4aefa
EZ
1559 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1560 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1561 (Fsubstring_no_properties, substring_both, Ffillarray)
1562 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1563 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1564 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1565 (Fmd5): Use EMACS_INT for buffer and string positions and length
1566 variables and arguments.
1567
1568 * lisp.h (substring_both): Adjust prototype.
1569
eb652396
JB
15702010-09-24 Juanma Barranquero <lekktu@gmail.com>
1571
1572 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1573 * w32fns.c (clipboard_sequence_fn): Don't declare.
1574 (globals_of_w32fns): Don't initialize it.
1575
266a86bd 15762010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
1577
1578 * syntax.c (back_comment): Detect the case where a 1-char comment
1579 starter is also the 2nd char of a 2-char comment ender.
1580
266a86bd 15812010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
1582
1583 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1584
40283062
LMI
15852010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1586
db063399
LMI
1587 * eval.c (verror): EMACS_INT/int cleanup.
1588
faf8b5bc
LMI
1589 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1590 unwind_protect more than 2GB worth of functions.
1591
1592 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1593
40283062
LMI
1594 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1595 string and avoid compiler warnings.
1596 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1597 all users.
1598
1599 * lread.c (oblookup): EMACS_INT/int cleanup.
1600
1601 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1602
fe3537c3
EZ
16032010-09-23 Eli Zaretskii <eliz@gnu.org>
1604
1605 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1606
1607 * lisp.h (clip_to_bounds): Adjust prototype.
1608
1609 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1610
0350982f
LMI
16112010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1612
84c9ce05
LMI
1613 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1614
1615 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1616
1617 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1618 cleanup.
1619
0350982f
LMI
1620 * lisp.h: Change the definition of all marker.c functions that
1621 take and return buffer stuff to be EMACS_INT instead of int.
1622
1623 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1624 (buf_charpos_to_bytepos, bytepos_to_charpos)
1625 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1626 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1627 for all buffer positions.
1628
c50bd0d2
CY
16292010-09-23 Chong Yidong <cyd@stupidchicken.com>
1630
1631 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1632 (split_interval_right, find_interval, next_interval)
1633 (delete_node, delete_interval, interval_deletion_adjustment)
1634 (adjust_intervals_for_deletion, merge_interval_right)
1635 (merge_interval_left, graft_intervals_into_buffer)
1636 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1637
1638 * intervals.h (traverse_intervals): Update prototype.
1639
14162469
EZ
16402010-09-23 Eli Zaretskii <eliz@gnu.org>
1641
c098fdb8
EZ
1642 * indent.c (compute_motion): Use EMACS_INT for arguments to
1643 region_cache_forward.
1644
1645 * region-cache.c (struct boundary, struct region_cache): Use
1646 EMACS_INT for positions.
1647 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1648 (delete_cache_boundaries, set_cache_region)
1649 (invalidate_region_cache, know_region_cache)
1650 (region_cache_forward, region_cache_backward, pp_cache): Use
1651 EMACS_INT for buffer positions.
1652
1653 * region-cache.h (know_region_cache, invalidate_region_cache)
1654 (region_cache_forward, region_cache_backward): Adjust prototypes.
1655
1656 * search.c (string_match_1, fast_c_string_match_ignore_case)
1657 (looking_at_1, scan_buffer, scan_newline)
1658 (find_next_newline_no_quit, find_before_next_newline)
1659 (search_command, trivial_regexp_p, search_buffer, simple_search)
1660 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1661 and string positions and length.
1662
caefdbe7
EZ
1663 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1664 (find_before_next_newline): Adjust prototypes.
c098fdb8 1665
29cdc13e
EZ
1666 * editfns.c (transpose_markers, update_buffer_properties)
1667 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1668 (get_pos_property, Fconstrain_to_field)
1669 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1670 (Fchar_after, Fchar_before, Finsert_char)
1671 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1672 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1673 EMACS_INT for buffer and string position variables.
c098fdb8 1674 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
1675
1676 * lisp.h (clip_to_bounds): Adjust prototype.
1677
e79123aa
EZ
1678 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1679 (balance_an_interval, split_interval_right, split_interval_left)
1680 (find_interval, next_interval, update_interval)
1681 (adjust_intervals_for_insertion, delete_node, delete_interval)
1682 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1683 (offset_intervals, merge_interval_right, merge_interval_left)
1684 (graft_intervals_into_buffer, adjust_for_invis_intang)
1685 (move_if_not_intangible, get_local_map, copy_intervals)
1686 (copy_intervals_to_string, compare_string_intervals)
1687 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 1688 and for interval tree size.
e79123aa
EZ
1689
1690 * intervals.h (traverse_intervals, split_interval_right)
1691 (split_interval_left, find_interval, offset_intervals)
1692 (graft_intervals_into_buffer, copy_intervals)
1693 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1694 (update_interval): Adjust prototypes.
1695
579c18d0
EZ
1696 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1697 Use EMACS_INT for buffer position variables and arguments.
1698
1699 * composite.c (get_composition_id, find_composition)
1700 (run_composition_function, compose_text)
1701 (composition_gstring_width, autocmp_chars)
1702 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1703 for buffer positions and string length variables and arguments.
1704
1705 * composite.h (get_composition_id, find_composition, compose_text)
1706 (composition_gstring_width): Adjust prototypes.
1707
1708 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1709
1710 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1711 EMACS_INT for string positions.
1712
1713 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1714 position arguments.
1715
1716 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
1717
1718 * character.c (parse_str_as_multibyte, str_as_multibyte)
1719 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
1720 (string_count_byte8, string_escape_byte8, c_string_width)
1721 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1722 EMACS_INT for string length variables and arguments.
14162469
EZ
1723
1724 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
1725 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1726 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
1727 prototypes.
1728
579c18d0
EZ
1729 * font.c (font_intern_prop): Use EMACS_INT for string length
1730 variables.
1731
1732 * font.c (font_intern_prop): Use EMACS_INT for string length
1733 variables.
1734
14162469
EZ
1735 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1736 variables.
1737
1738 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1739 (Fmake_string): Protect against too large strings.
1740 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1741 (live_misc_p): Use ptrdiff_t instead of int for pointer
1742 differences.
1743 (string_bytes, check_sblock, check_string_free_list)
1744 (allocate_string_data, compact_small_strings, Fmake_string)
1745 (Fmake_bool_vector, make_string, make_unibyte_string)
1746 (make_multibyte_string, make_string_from_bytes)
1747 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1748 EMACS_INT for string length variables and arguments.
1749 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1750 (Fpurecopy): Use EMACS_INT for string size.
1751 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1752 for vector size.
1753
1754 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1755 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
1756 (make_pure_string, string_bytes, check_point_in_composition):
1757 Adjust prototypes.
14162469 1758
c8a66ab8
EZ
17592010-09-22 Eli Zaretskii <eliz@gnu.org>
1760
1761 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1762 (check_translation): Use EMACS_INT for buffer positions and
1763 length.
1764
1765 * undo.c (record_marker_adjustment, record_delete)
1766 (record_change, record_point, record_insert)
1767 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1768 buffer positions.
1769
1770 * lisp.h (record_marker_adjustment, record_delete)
1771 (record_change, record_point, record_insert)
1772 (record_property_change, Fprimitive_undo): Adjust prototypes.
1773
38c54d9d
JB
17742010-09-22 Juanma Barranquero <lekktu@gmail.com>
1775 Eli Zaretskii <eliz@gnu.org>
1776
1777 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1778
413d18e7
EZ
17792010-09-22 Eli Zaretskii <eliz@gnu.org>
1780
1781 * minibuf.c (Fminibuffer_contents)
1782 (Fminibuffer_contents_no_properties)
1783 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1784 positions.
1785
1786 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1787 mark.
1788
1789 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1790 (allocate_string_data): Accept EMACS_INT for string length.
1791
1792 * editfns.c (Ffield_string, Ffield_string_no_properties)
1793 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1794 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1795 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1796 (Ffield_end): Use EMACS_INT for buffer positions.
1797
1798 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1799 point with mark.
1800
1801 * lisp.h (allocate_string_data, make_uninit_string)
1802 (make_uninit_multibyte_string, make_buffer_string)
1803 (make_buffer_string_both): Adjust prototypes.
1804
4b9832a6
CY
18052010-09-22 Chong Yidong <cyd@stupidchicken.com>
1806
1807 * xml.c: Switch to GNU indentation.
1808 (make_dom): Change parse tree format to match xml.el.
1809 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1810 (Fxml_parse_string_internal): Rename from xml-parse-string.
1811
86282aab
KH
18122010-09-22 Kenichi Handa <handa@m17n.org>
1813
1814 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1815 only if we are not at a composition.
1816 (set_iterator_to_next): Give it->end_charpos to
1817 composition_compute_stop_pos.
1818 (set_iterator_to_next, next_element_from_buffer): Likewise.
1819
1820 * dispnew.c (buffer_posn_from_coords): Fix position when the
1821 current display element is a grapheme cluster in bidi-reordered
1822 region.
1823
840b985a
AR
18242010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1825
1826 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1827 the regions may overlap.
1828
5bc88f4b
JB
18292010-09-21 Juanma Barranquero <lekktu@gmail.com>
1830
1831 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1832
92bc9a36
DN
18332010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1834
d19e096e
DN
1835 * emacs.c: Do not include sys/ioctl.h, not needed.
1836
92bc9a36
DN
1837 * doprnt.c: Do not include stdlib.h, config.h does it.
1838 Move #include before macro definition.
1839
15f844ac
DN
18402010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1841
48e24408
DN
1842 * Makefile.in (temacs): Link using $(CC) not $(LD).
1843 (LD_FIRSTFLAG): Define using autoconf.
1844 (LD): Remove.
1845
65539506
DN
1846 Remove HAVE_TERMIOS definitions.
1847 * s/usg5-4-common.h (HAVE_TERMIOS):
1848 * s/template.h (HAVE_TERMIOS):
1849 * s/gnu-linux.h (HAVE_TERMIOS):
1850 * s/darwin.h (HAVE_TERMIOS):
1851 * s/cygwin.h (HAVE_TERMIOS):
1852 * s/bsd-common.h (HAVE_TERMIOS):
1853 * s/aix4-2.h (HAVE_TERMIOS):
1854 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1855 defined on all non-MS platforms.
1856 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1857
15f844ac
DN
1858 * xterm.c (xt_action_hook): Use const.
1859
7d701334
JB
18602010-09-20 Juanma Barranquero <lekktu@gmail.com>
1861
1862 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1863 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1864 (gethostname) [!HAVE_SOCKETS]: Remove.
1865 (SOCK_REPLACE_HANDLE): Remove macro.
1866 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1867 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1868 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1869 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1870
f3ec267a
EZ
18712010-09-18 Eli Zaretskii <eliz@gnu.org>
1872
1873 * deps.mk (xml.o): Add dependencies.
1874
93acd23d
JB
1875 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1876 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
1877
1878 * bidi.c (bidi_paragraph_init): Accept an additional argument
1879 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1880 search back until a paragraph with a strong directional character
1881 is found, and use that to determine paragraph's base direction.
1882
1883 * dispextern.h (bidi_paragraph_init): Update prototype.
1884
69e847be
EZ
18852010-09-17 Eli Zaretskii <eliz@gnu.org>
1886
1887 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1888 of w32api >= 3.15. (Bug#6989)
1889
283357a7
LMI
18902010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1891
1892 * process.c (wait_reading_process_output): Don't message about
1893 accept-process-output unless the time limit really is zero.
1894
4ddb20d6
SM
18952010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1896
1897 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1898 int/Lisp_Object mixup).
1899
e24ad6dd
J
19002010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1901
1902 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1903 not HELP.
1904
fb0cf781
J
19052010-09-17 Stephen Berman <stephen.berman@gmx.net>
1906
1907 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1908 bar's pixel width to Lisp (Bug#7048).
1909
4ddb20d6
SM
19102010-09-14 Juanma Barranquero <lekktu@gmail.com>
1911
1912 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 1913
318a04c6
J
19142010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1915
1916 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1917 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1918
78a21772
KH
19192010-09-17 Kenichi Handa <handa@m17n.org>
1920
1921 * ftfont.c (ftfont_check_otf): Fix previous change.
1922
fa3f6039
KH
19232010-09-14 Kenichi Handa <handa@m17n.org>
1924
1925 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1926 existence of GSUB or GPOS.
1927
2b5491fa
JB
19282010-09-14 Juanma Barranquero <lekktu@gmail.com>
1929
1930 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1931
c97c655f
LMI
19322010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1933
2b5491fa 1934 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
1935 what it does.
1936 (parse_string): Return nil when the document can't be parsed.
1937
6664fc59 19382010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
1939
1940 * xterm.c (get_current_vm_state): New function.
1941 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1942 want_fullscreen so set_wm_state calls are few (Bug#7013).
1943 (x_handle_net_wm_state): Move code to get_current_vm_state and
1944 call that function.
1945
6664fc59 19462010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
1947
1948 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1949
6664fc59 19502010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
1951
1952 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1953 we may use designation or locking-shift.
1954
6664fc59 19552010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
1956
1957 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1958 sequence when the source is multibyte.
1959
1da70e99
AS
19602010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1961
6664fc59
JB
1962 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1963 Don't make first argument optional. Doc fix.
1da70e99 1964
26632d8d
LMI
19652010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1966
1967 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1968 parameters for the doc string.
1969
21fa8e37
LMI
19702010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1971
1972 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1973
5616cc54
SM
19742010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1975
1976 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1977 (syms_of_fns): Don't defsubr Sy_or_n_p.
1978 * lisp.h: Don't declare Fy_or_n_p.
1979 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1980
381408e2
LMI
19812010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1982
1983 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1984
19852010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1986
1987 * xml.c: New file.
1988 (Fhtml_parse_buffer): New function to interface to the libxml2
1989 html parsing function.
1990
733946e7
JB
19912010-09-05 Juanma Barranquero <lekktu@gmail.com>
1992
1993 * biditype.h: Regenerate.
1994
7574650a
AS
19952010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1996
1997 * nsimage.m (ns_load_image): Check argument types.
1998
1999 * image.c: Remove all uses of gcpro.
2000 (xpm_load): Check all lisp types.
2001 (pbm_load): Likewise.
2002 (png_load): Likewise.
2003 (jpeg_load): Likewise.
2004 (tiff_load): Likewise.
2005 (gif_load): Likewise.
2006 (imagemagick_load_image): Likewise.
2007 (imagemagick_load): Likewise.
2008 (svg_load): Likewise.
2009 (gs_load): Likewise.
2010
6e6b8e25
EZ
20112010-09-04 Eli Zaretskii <eliz@gnu.org>
2012
2013 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
2014 try to reorder grapheme clusters, since LGSTRING should always
2015 hold them in the logical order.
2016 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
2017 return glyph codes in the logical order.
2018
dbfe4532
AS
20192010-09-04 Andreas Schwab <schwab@linux-m68k.org>
2020
2021 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 2022 (imagemagick_load_image): Fix type mismatch.
5e5992c2 2023 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 2024
6d7cc563
JD
20252010-09-02 Jan Djärv <jan.h.d@swipnet.se>
2026
2027 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
2028
2029 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
2030
2031 * xselect.c: Remove declaration of cut-buffer objects and functions.
2032 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
2033 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
2034 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
2035 (Fx_rotate_cut_buffers_internal): Remove.
2036 (syms_of_xselect): Remove defsubr of above.
2037 Remove intern of QCUT_BUFFERn.
2038
8f4e9110
SM
20392010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2040
2041 * cmds.c (Vblink_paren_function): Remove.
2042 (internal_self_insert): Make it insert N chars at a time.
2043 Don't call blink-paren-function.
2044 (Fself_insert_command): Adjust accordingly.
2045 (syms_of_cmds): Don't declare blink-paren-function.
2046
d419e1d9
KH
20472010-08-31 Kenichi Handa <handa@m17n.org>
2048
2049 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
2050 characters.
2051
2052 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
2053 (produce_glyphs): Don't set it->char_to_display here.
2054 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
2055 (produce_special_glyphs): Set temp_it.char_to_display before
2056 calling produce_glyphs.
2057
2058 * xdisp.c (get_next_display_element): Set it->char_to_display
2059 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
2060 characters.
2061 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
2062 calling PRODUCE_GLYPHS.
2063 (append_space_for_newline): Save and store it->char_to_display.
2064 Set it->char_to_display before calling PRODUCE_GLYPHS.
2065 (extend_face_to_end_of_line): Set it->char_to_display before
2066 calling PRODUCE_GLYPHS.
2067 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
2068 character to its byte value.
2069 (get_char_glyph_code): New function.
2070 (produce_stretch_glyph): Set it2.char_to_display too before
2071 calling x_produce_glyphs.
2072 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
2073 non-ASCII characters. Don't set it->char_to_display here.
2074 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 2075 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 2076
b819f760
SM
20772010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2078
2079 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
2080
07fa68a7
CY
20812010-08-31 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
2084
cd196f12
SM
20852010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
2086
2087 * marker.c (Fcopy_marker): Make the first arg optional.
2088
49a752bb
KH
20892010-08-30 Kenichi Handa <handa@m17n.org>
2090
2091 * composite.c (composition_update_it): Fix computing of
2092 cmp_it->width.
2093
769ae9e1
KH
20942010-08-29 Kenichi Handa <handa@m17n.org>
2095
9e69cb05 2096 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 2097 corresponding bytes.
9e69cb05 2098
4520b858
J
20992010-08-29 Jan Djärv <jan.h.d@swipnet.se>
2100
2101 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
2102
fe50eb41
KH
21032010-08-26 Kenichi Handa <handa@m17n.org>
2104
2105 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
2106 on calling composition_compute_stop_pos.
2107
f6aa6ec6
KH
21082010-08-25 Kenichi Handa <handa@m17n.org>
2109
9dfdbc0a
KH
2110 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
2111 :otf.
2112
f6aa6ec6
KH
2113 * composite.c (composition_compute_stop_pos): Don't break
2114 composition at PT.
2115 (composition_reseat_it): Likewise. Fix calculation of character
2116 position starting a composition.
2117 (Fcomposition_get_gstring): Don't limit the number of components
2118 for automatic composition.
2119
ff94e32c
KH
21202010-08-25 Kenichi Handa <handa@m17n.org>
2121
2122 * composite.c (composition_compute_stop_pos): In forward search,
2123 pay attention to the possibility that some character after ENDPOS
2124 will be composed with charactrs before ENDPOS.
2125
1c409d0b
CY
21262010-08-24 Chong Yidong <cyd@stupidchicken.com>
2127
2128 * keyboard.c (command_loop_1): Don't clobber primary selection
2129 during handle-switch-frame (Bug#6872).
2130
0c372655
MA
21312010-08-23 Michael Albinus <michael.albinus@gmx.de>
2132
2133 * dbusbind.c: Accept UNIX domain sockets as bus address.
2134 (Fdbus_close_bus): New function.
2135 (Vdbus_registered_buses): New variable.
2136 (xd_initialize): Implement string as bus address.
2137 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
2138 (Fdbus_get_unique_name, Fdbus_call_method)
2139 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2140 (Fdbus_method_error_internal, Fdbus_send_signal)
2141 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
2142 check. This is done in xd_initialize_bus. Adapt doc string, if
2143 necessary.
2144 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
2145 Vdbus_registered_buses.
2146 (Vdbus_registered_objects_table): Create hash.
2147
7133b7ee
JL
21482010-08-22 Juri Linkov <juri@jurta.org>
2149
2150 * keyboard.c (Fexecute_extended_command): Move reading a command name
2151 with `completing-read' to a new Elisp function `read-extended-command'.
2152 Call it to read a command to `function' (bug#5364, bug#5214).
2153
198a7a97
CY
21542010-08-22 Chong Yidong <cyd@stupidchicken.com>
2155
2156 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
2157
b0126eac 21582010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
2159
2160 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
2161 instead of SAFE_ALLOCA.
2162
b0126eac 21632010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
2164
2165 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
2166 (Bug#6214).
2167
b0126eac 21682010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
2169
2170 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
2171
b0126eac
CY
21722010-08-22 Jan Djärv <jan.h.d@swipnet.se>
2173
2174 * doc.c (Fsnarf_documentation): Initialize skip_file before
2175 build-files test.
2176
692f3ddc 21772010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 2178
692f3ddc
JB
2179 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
2180 New definitions.
b0126eac
CY
2181 (HAVE_TERMIO): Remove.
2182
5f2f0bc1
EZ
21832010-08-22 Eli Zaretskii <eliz@gnu.org>
2184
b613941b
EZ
2185 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
2186
a583bbef
EZ
2187 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
2188 for w32.
2189
2190 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
2191 it's done in nt/config.nt.
2192
2193 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
2194
5f2f0bc1
EZ
2195 * unexcoff.c (report_error, make_hdr, write_segment)
2196 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
2197 Convert argument lists and prototypes to ANSI C.
2198 (make_hdr, write_segment): Remove unused variables.
2199 (unexec): Remove commented-out line. Initialize `new' to shut up
2200 compiler warnings.
2201
a7ebc409
DN
22022010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
2203
2204 Simplify termio code.
2205 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
2206 HAVE_TERMIO code is obsolete.
2207 Replace HAVE_TERMIOS conditionals with !DOS_NT.
2208 * systty.h: Do not define HAVE_TCATTR.
2209 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
2210 Do not define EMACS_HAVE_TTY_PGRP. Only define
2211 EMACS_GET_TTY_PGRP for !DOS_NT.
2212 * sysdep.c: Include sysselect.h unconditionally. Do not include
2213 sys/ioctl.h and termios.h, systty.h does it. Use
2214 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
2215 (init_baud_rate): Remove HAVE_TERMIO code.
2216 (child_setup_tty): Remove HAVE_TERMIO code.
2217 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
2218 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
2219 (new_ltchars, new_tchars): Remove, unused.
2220 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
2221 code. Remove special casing for __mips__, it was a no-op. Remove
2222 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
2223 (init_sys_modes): Remove HPUX special case.
2224 * process.c: Include stdlib.h unconditionally. Do not include
2225 fcntl.h, systty.h does it. Remove conditional code for
2226 HAVE_SERIAL, it is always true.
2227 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
2228 always true when SIGNALS_VIA_CHARACTERS is true.
2229 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
2230 !WINDOWSNT means HAVE_TERMIOS.
2231 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
2232 conditional, which is true for all HAVE_TERMIOS systems.
2233 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
2234 instead of HAVE_TERMIOS.
2235 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
2236 EMACS_HAVE_TTY_PGRP.
2237 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2238 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2239 anyway.
2240
914f049b 22412010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
2242
2243 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2244 mirroring pixel positions.
2245
d931da8c
DN
22462010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
2247
b5c76d0c
DN
2248 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2249 write only.
2250 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2251 malloc_sbrk_used, nothing uses them.
2252
74815588
DN
2253 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2254 defined, unconditionally defined in lisp.h.
2255
f5817d1c
DN
2256 * term.c: Do not include <termios.h>, systty.h does it.
2257
d931da8c
DN
2258 * s/unixware.h (HAVE_TCATTR):
2259 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2260 systty.h defines it when HAVE_TERMIOS is defined.
2261
ff2de6d2 22622010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 2263
b43c883c 2264 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 2265 terminals: add one-character offset for R2L lines.
b43c883c 2266
491a1546
EZ
2267 * emacs.c <emacs_version>: Add a comment regarding
2268 msdos/mainmake.v2's dependency on the syntax of this declaration.
2269
2396cbba
EZ
22702010-08-20 Eli Zaretskii <eliz@gnu.org>
2271
2272 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2273 position for R2L lines by mirroring the pixel position wrt the
2274 text are box. Improve commentary.
2275
7df6150a
AS
22762010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2277
2278 * image.c (imagemagick_clear_image): Remove debugging output.
2279
a2e5caf7
SM
22802010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2281
2282 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2283 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2284 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2285 self-insert-face.
2286 (syms_of_cmds): Initialize the new vars.
2287
20d60baf
JR
22882010-08-19 Jason Rumney <jasonr@gnu.org>
2289
cc477da7
JR
2290 * w32menu.c (set_frame_menubar): Remove call to undefined function.
2291
20d60baf
JR
2292 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2293
2c0ac867
J
22942010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2295
2296 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2297
93352106
EZ
22982010-08-18 Eli Zaretskii <eliz@gnu.org>
2299
2300 * xterm.c (x_draw_bar_cursor):
2301 * w32term.c (x_draw_bar_cursor): If the character under cursor is
2302 R2L, draw the bar cursor on its right rather than on its left.
2303
c785836d
SM
23042010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2305
0193499f
SM
2306 * eval.c (Fdefmacro): Only obey one declaration.
2307
c785836d
SM
2308 * casefiddle.c (casify_region): Setup gl_state.
2309
9cb728a5
J
23102010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2311
2312 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2313
e1e18511
J
23142010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2315
1d77b63e 2316 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 2317
64cb6c78
J
23182010-08-18 David De La Harpe Golden <david@harpegolden.net>
2319
2320 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2321 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2322 QPRIMARY => NXPrimaryPboard.
2323 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2324 NXPrimaryPboard => QPRIMARY.
2325 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2326 NXSecondaryPboard = SecondarySelection.
2327 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2328
0c9b8993
GM
23292010-08-18 Joakim Verona <joakim@verona.se>
2330
2331 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
2332 defined:
2333 (imagemagick_image_p): New function to test for ImageMagic image.
2334 (imagemagick_load): New function to load ImageMagick image.
2335 (imagemagick_load_image): New function, helper for imagemagick_load.
2336 (imagemagick-types): New function.
2337 (Qimagemagick): New Lisp_object.
2338 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 2339
c3554f68
SM
23402010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
2341
2342 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2343 is a string.
2344
1ff2e434
J
23452010-08-17 Jan Djärv <jan.h.d@swipnet.se>
2346
2347 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2348 x_set_tool_bar_position handler.
2349
0cc56427
EZ
23502010-08-17 Eli Zaretskii <eliz@gnu.org>
2351
2352 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2353 x_set_tool_bar_position handler, needed to support changes from
2354 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
2355
e45a249b
JD
23562010-08-16 Jan Djärv <jan.h.d@swipnet.se>
2357
921242c6
J
2358 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2359 declaration (Bug#6863).
573d150b 2360 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 2361
e45a249b
JD
2362 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2363
2364 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2365
7c23dd44
CY
23662010-08-16 Chong Yidong <cyd@stupidchicken.com>
2367
2368 * keyboard.c (command_loop_1): Avoid setting selection twice,
2369 since it's done in deactivate-mark as well.
2370 (Vselect_active_regions): Change default to t. Replace `lazy'
2371 with non-default value `only', meaning only set PRIMARY for
2372 temporarily active regions.
2373
2374 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2375 select-active-regions.
2376
0005830c
J
23772010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2378
2379 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2380 isn't a string.
2381
603dfc72
AS
23822010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2383
2384 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2385
c25ce9d0
J
23862010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2387
c3554f68
SM
2388 * keyboard.c (parse_tool_bar_item): malloc buf.
2389 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2390 new_lbl (Bug#6855).
c25ce9d0 2391
5872c762
EZ
23922010-08-14 Eli Zaretskii <eliz@gnu.org>
2393
b236615c
EZ
2394 * xterm.c (x_draw_stretch_glyph_string):
2395 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2396 the cursor on the right edge of the stretch glyph.
2397
c3554f68
SM
2398 * xdisp.c (window_box_right_offset, window_box_right):
2399 Fix commentary.
b236615c 2400
5872c762
EZ
2401 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2402 direction when point is inside a run of whitespace characters.
2403
2404 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2405
e66f9a1b
JR
24062010-08-14 Jason Rumney <jasonr@gnu.org>
2407
2408 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2409
79d6f59e
CY
24102010-08-14 Chong Yidong <cyd@stupidchicken.com>
2411
2412 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2413
1c9b4129
JR
24142010-08-13 Jason Rumney <jasonr@gnu.org>
2415
2416 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2417 (MessageBoxW_Proc): New function typedef.
2418 (unicode-message-box): New function pointer.
2419 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2420
2b4e6277
J
24212010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2422
2423 * frame.h (Qtool_bar_position): Declare.
2424
2425 * xfns.c (Fx_create_frame): Call x_default_parameter for
2426 Qtool_bar_position.
2427
94c97d85
EZ
24282010-08-13 Eli Zaretskii <eliz@gnu.org>
2429
8ee81892
EZ
2430 * unexcoff.c: Remove the parts used when "emacs" is not defined.
2431 (report_error, report_error_1): Ditto.
2432 (write_segment): Remove "#if 0" unused code.
2433 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
2434 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
2435 (start_of_text): Remove unused function (was used only if NO_REMAP
2436 was NOT defined).
2437
891ef8f7
EZ
2438 * msdos.c (IT_set_face): Fix format string to match argument
2439 types.
2440 (IT_write_glyphs, IT_note_mode_line_highlight)
2441 (IT_set_frame_parameters): Remove unused variables.
2442 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
2443 (IT_set_terminal_modes): Disambiguate expression in if clause.
2444 (Fmsdos_remember_default_colors): Return Qnil.
2445 (IT_set_frame_parameters): Add parens to disambiguate boolean
2446 expression for logging the cursor type to termscript.
2447 (keyboard_layout_list, keypad_translate_map)
2448 (grey_key_translate_map): Add braces in inner initializers.
2449 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
2450 (dos_rawgetc): Remove unused label.
2451 (XMenuActivate): Add braces to remove ambiguous `else'.
2452 (dos_ttraw): Always return a value.
2453 (spawnve): Declare.
2454 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
2455
2456 * dosfns.h (x_set_title): Declare.
2457
2458 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2459 Remove unused variables.
2460
2461 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2462 variables.
2463 (init_dosfns): Declare get_lim_data.
2464 (system_process_attributes): Declare Fget_internal_run_time.
2465
38e41e0e
EZ
2466 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2467 list to be consistent with menu.h.
2468
94c97d85
EZ
2469 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2470 warnings due to mixing of "char *" and "const char *".
2471
c5683ceb
SM
24722010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2473
2474 Introduce a new comment style "c" flag.
2475 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2476 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2477 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2478 (syntax_prefix_flag_p): New function.
2479 (Fstring_to_syntax): Understand new "c" flag.
2480 (Finternal_describe_syntax_value): Recognize new flag; use the
2481 SYNTAX_FLAGS_* macros.
2482 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2483 comment style to accomodate the new styles.
2484 (back_comment, forw_comment, Fforward_comment, scan_lists)
2485 (scan_sexps_forward): Update code to obey the new comment style flag.
2486
2487 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2488
2489 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2490
7aee76f4
J
24912010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2492
3a46642b
J
2493 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2494 first.
94dff98f 2495 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
2496
2497 * gtkutil.h (xg_check_special_colors): Declare.
2498
2499 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2500 (xg_create_frame_widgets): Connect theme name changes to
2501 style_changed_cb.
2502
42ca4633
J
2503 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2504 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2505 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 2506 string literal. file is const char*.
42ca4633
J
2507
2508 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2509 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2510 props. Free them at the end.
2511
2512 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2513
c5683ceb
SM
2514 * xrdb.c (get_system_app): Make path const and use char *p for
2515 non-const char.
42ca4633
J
2516
2517 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 2518 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
2519 char *.
2520 (button_names): Is const char *.
2521 (xdialog_show): error_name and pane_string is const.
2522
2523 * process.h (synch_process_death): Is const char*.
2524
2525 * w32menu.c (w32_menu_show):
2526 * nsmenu.m (ns_menu_show): error parameter is const char **.
2527
2528 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2529 is const char **.
2530
2531 * menu.c (Fx_popup_menu): error_name is const.
2532
2533 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2534 with unsigned char and XtPointer with void *.
2535
2536 * gtkutil.h: Replace widget_value with struct _widget_value.
2537 (enum button_type, struct _widget_value): Remove and use the one from
2538 keyboard.h.
2539
2540 * gtkutil.c (get_utf8_string): Always return an allocated string.
2541 Parameter is const.
2542 (create_dialog, xg_create_one_menuitem, create_menus)
2543 (xg_item_label_same_p, xg_update_menu_item): Free result from
2544 get_utf8_string.
2545 (xg_separator_p, xg_item_label_same_p): label is const.
2546
2547 * font.h (font_open_by_name): Make name const.
2548
2549 * font.c (font_open_by_name): Make name const.
2550
2551 * floatfns.c (matherr): Use a const char* variable for x->name.
2552
2553 * emacs.c (main): Pass char[] to putenv instead of literal.
2554
2555 * callproc.c (synch_process_death): Make const.
2556 (Fcall_process): Make signame const.
2557
9c5bd55a
J
2558 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2559 (addDisplayItemWithImage): Use const char*.
2560
2561 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2562 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2563
2564 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2565
2566 * keyboard.h (_widget_value): name, value and key are const char*.
2567
7aee76f4
J
2568 * unexmacosx.c (unexec_error): Use const char *.
2569
09d93395
DN
25702010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2571
2572 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2573 (font_parse_name, font_open_by_name):
09d93395 2574 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2575 (font_parse_name, font_open_by_name): Remove const.
09d93395 2576
671d409f
AS
25772010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2578
2579 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2580 definition.
2581
2582 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2583 * m/amdx86-64.h: Likewise.
2584 * m/arm.h: Likewise.
2585 * m/hp800.h: Likewise.
2586 * m/ia64.h: Likewise.
2587 * m/ibmrs6000.h: Likewise.
2588 * m/ibms390.h: Likewise.
2589 * m/intel386.h: Likewise.
2590 * m/iris4d.h: Likewise.
2591 * m/m68k.h: Likewise.
2592 * m/macppc.h: Likewise.
2593 * m/mips.h: Likewise.
2594 * m/sh3.h: Likewise.
2595 * m/sparc.h: Likewise.
2596 * m/template.h: Likewise.
2597 * m/vax.h: Likewise.
2598 * m/xtensa.h: Likewise.
2599 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2600 WORDS_BIG_ENDIAN.
2601 * lisp.h: Likewise.
2602 * md5.c: Likewise.
2603 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2604
8ea90aa3
DN
26052010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2606
2607 Use const char* instead of char*.
2608 Reduce the number of warnings with -Wwrite-strings.
2609 * xrdb.c (get_environ_db, get_system_name):
2610 * unexelf.c (find_section):
2611 * term.c (string_cost, string_cost_one_line, per_line_cost)
2612 (get_named_tty, init_tty):
2613 * sysdep.c (sys_subshell):
2614 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2615 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2616 * search.c (Freplace_match):
2617 * process.c (Fmake_network_process, send_process, init_process):
2618 * lread.c (Fload, init_lread):
2619 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2620 * keyboard.c (parse_tool_bar_item, struct event_head):
2621 * gtkutil.h (xg_get_font_name):
2622 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2623 (make_widget_for_menu_item, make_menu_item, create_menus)
2624 (xg_make_tool_item):
2625 * font.c (parse_matrix, font_parse_name):
2626 * floatfns.c (rounding_driver, float_error_fn_name):
2627 * filelock.c (get_boot_time_1, lock_file_1):
2628 * fileio.c (barf_or_query_if_file_exists, check_writable):
2629 * editfns.c (get_system_name, get_operating_system_release)
2630 (Fencode_time, Fset_time_zone_rule):
2631 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2632 * buffer.c (defvar_per_buffer): Use const.
2633
7815fe19 26342010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 2635
692f3ddc 2636 * charset.c: Include <stdlib.h>.
7a84eee5
KH
2637 (struct charset_sort_data): New struct.
2638 (charset_compare): New function.
692f3ddc 2639 (Fsort_charsets): New function.
7a84eee5
KH
2640 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2641
2642 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2643 number in CTEXT extended segment.
2644
7815fe19 26452010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
2646
2647 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2648 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2649
7815fe19 26502010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
2651
2652 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2653 (Fhash_table_size): Fix typos in docstrings.
2654 (Fmake_hash_table): Doc fix.
2655
7815fe19 26562010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
2657
2658 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2659 Doc fix (bug#5625).
2660
7815fe19 26612010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
2662
2663 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2664 the MSDOS definition.
2665
1b6d8cf0
DN
26662010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2667
675e2c69
DN
2668 Use const char* instead of char*.
2669 * xterm.c (x_create_toolkit_scroll_bar):
2670 * xfont.c (xfont_list_pattern):
2671 * xfns.c (x_default_scroll_bar_color_parameter)
2672 (xic_create_fontsetname, x_default_font_parameter)
2673 (x_screen_planes):
2674 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2675 (store_mode_line_string, decode_mode_spec, display_string):
2676 * menu.c (digest_single_submenu):
2677 * keymap.h (initial_define_key, initial_define_lispy_key):
2678 * keymap.c (initial_define_key, initial_define_lispy_key):
2679 * image.c (image_error, image_keyword):
2680 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2681 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2682 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2683 (ftfont_list, ftfont_match):
2684 * frame.c (frame_parm_table):
2685 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2686 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2687 (font_add_log, font_deferred_log):
2688 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2689 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2690 (font_add_log, font_deferred_log):
2691 * emacs.c (argmatch):
2692 * dispextern.h (struct it):
2693 * coding.c (ENCODE_DESIGNATION):
2694 * charset.c (define_charset_internal): Use const.
2695
25717ca1
DN
2696 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2697
c5683ceb
SM
2698 * xrdb.c: Remove include guard.
2699 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
2700 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2701 realloc->xrealloc instead of using #defines.
2702
efb41e21
EZ
27032010-08-08 Eli Zaretskii <eliz@gnu.org>
2704
cd21226d 2705 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
2706 * editfns.c (Fline_beginning_position, Fline_end_position):
2707 State in the doc strings that start and end of line are in the
2708 logical order.
cd21226d 2709
efb41e21
EZ
2710 * xdisp.c (display_line): Move the handling of overlay arrow after
2711 the call to find_row_edges. (Bug#6699)
2712
746812d9
CY
27132010-08-07 Chong Yidong <cyd@stupidchicken.com>
2714
2715 * keyboard.c (command_loop_1):
2716 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2717
9852377f
CY
27182010-08-07 Chong Yidong <cyd@stupidchicken.com>
2719
2720 * insdel.c (prepare_to_modify_buffer): Save active region text to
2721 Vsaved_region_selection.
2722
2723 * xselect.c (QPRIMARY): Move to keyboard.c.
2724
2725 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
2726 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2727 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 2728
0e9c8657
JB
27292010-08-07 Juanma Barranquero <lekktu@gmail.com>
2730
2731 * alloc.c (lisp_malloc):
2732 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2733 * charset.h (emacs_mule_charset):
2734 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2735 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2736 (bitch_at_user):
2737 * lisp.h (Fcheck_coding_system, Fget_text_property)
2738 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2739 Remove duplicate declarations.
2740
648801d1
DN
27412010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2742
32bc6709
DN
2743 * process.c: Simplify include logic.
2744
3ef1d108
DN
2745 * keyboard.h (quit_char): Add declaration.
2746 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
2747 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2748 Add declarations.
3ef1d108
DN
2749 * sysdep.c:
2750 * w32.c: Remove the above declarations.
2751
97ec208f
DN
2752 Remove extern declarations in .c files, .h files have them.
2753 * xterm.c:
2754 * xdisp.c:
97ec208f
DN
2755 * msdos.c:
2756 * image.c:
2757 * gtkutil.c:
2758 * fileio.c:
2759 * eval.c: Remove declarations.
2760
94eed851
DN
2761 * frame.c (frame_params): Make const.
2762
36e053eb
DN
2763 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2764
0e843971
DN
2765 * emacs.c (emacs_copyright, emacs_version): Make static.
2766 (Vinitial_window_system, Vauto_save_list_file_name)
2767 (Vinhibit_redisplay): Remove declarations.
2768 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2769 for AIX.
2770
648801d1
DN
2771 Use const for some arrays and functions.
2772 * xterm.h (xg_set_icon_from_xpm_data):
2773 * xfns.c (xg_set_icon_from_xpm_data):
2774 * term.c (fkeys):
2775 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2776 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2777 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2778 (frame.c frame_parms):
2779 * emacs-icon.h (gnu_xpm_bits):
2780 * callint.c (callint_argfuns): Use const.
2781
8646d999
J
27822010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2783
2784 * sysdep.c: Move include term.h last of includes (Bug#6812).
2785
cb4545ad
EZ
27862010-08-06 Eli Zaretskii <eliz@gnu.org>
2787
2788 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2789
2790 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2791
2792 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2793
da7e2be6
JB
27942010-08-06 Juanma Barranquero <lekktu@gmail.com>
2795
2796 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2797
3d608a86
J
27982010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2799
7908fb60
J
2800 * xterm.h (x_get_focus_frame): Declare.
2801
2802 * keyboard.h (poll_for_input_1): Unconditionally declare.
2803
4094bf36
J
2804 * nsterm.h (x_set_menu_bar_lines): Declare.
2805
2806 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2807
3d608a86
J
2808 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2809
2810 * window.c: Include menu.h.
2811
2812 * unexmacosx.c (print_region_list, print_regions)
2813 (build_region_list, find_emacs_zone_regions)
2814 (unexec_regions_merge, read_load_commands, dump_it)
2815 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2816
2817 * term.c: Check HAVE_SYS_IOCTL_H.
2818
686b968e 2819 * sysdep.c: Check HAVE_TERM_H.
3d608a86 2820
686b968e 2821 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
2822
2823 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2824 (ns_ring_bell, ns_defined_color, hide_hourglass)
2825 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2826 Convert to ANSI C prototypes.
2827 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2828 before code.
2829
2830 * nsterm.h : Include sysselect.h.
2831 (x_sync, x_get_focus_frame, x_set_mouse_position)
2832 (x_set_mouse_pixel_position, x_make_frame_visible)
2833 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2834 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2835 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2836 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 2837 Declare.
3d608a86
J
2838
2839 * nsmenu.m (popup_activated, name_is_separator)
2840 (syms_of_nsmenu): Convert to ANSI C prototypes.
2841 (runMenuAt): Prototypes and move declarations before code.
2842
2843 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2844
2845 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2846 prototypes.
2847
2848 * nsfns.m (have_menus_p, ns_display_info_for_name)
2849 (x_set_cursor_type, ns_appkit_version_str)
2850 (ns_appkit_version_int, ns_do_applescript)
2851 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2852 (syms_of_nsfns): Convert to ANSI C prototypes.
2853
2854 * menu.h (x_set_menu_bar_line): Declare.
2855 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2856
2857 * lisp.h (fmod_float): Declare.
2858
2859 * image.c (xpm_scan, xpm_make_color_table_v)
2860 (xpm_put_color_table_v, xpm_get_color_table_v)
2861 (xpm_make_color_table_h, xpm_put_color_table_h)
2862 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2863 (xpm_load): Convert to ANSI C prototypes.
2864
2865 * emacs.c: Include nsterm.h if HAVE_NS.
2866
2867 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2868
fce70521
DN
28692010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2870
2871 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2872 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2873 (socket_options): Use const char* for name.
2874
a11889ab
JB
28752010-08-06 Juanma Barranquero <lekktu@gmail.com>
2876
2877 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2878
2879 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2880 Don't declare xmalloc_widget_value and digest_single_submenu.
2881
2882 * w32font.c (Qlatin): Remove declaration.
2883
2884 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2885
c95b508f 2886 * dired.c (compile_pattern): Restore declaration.
a11889ab 2887
6254cdda
DN
28882010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2889
04bab72c
DN
2890 Remove extern declarations in .c files, .h files have them.
2891 * data.c:
2892 * dired.c:
2893 * editfns.c:
2894 * filelock.c:
2895 * fns.c:
2896 * font.c:
2897 * fontset.c:
2898 * frame.c:
2899 * fringe.c:
2900 * ftfont.c:
2901 * gtkutil.c:
2902 * indent.c:
2903 * keyboard.c:
2904 * keymap.c:
2905 * lread.c:
2906 * menu.c:
2907 * print.c:
2908 * search.c:
2909 * sound.c:
2910 * window.c:
2911 * xdisp.c:
2912 * xfaces.c:
2913 * xfns.c:
2914 * xfont.c:
2915 * xftfont.c:
2916 * xmenu.c:
2917 * xterm.c: Remove declarations.
2918
dff94ed5
DN
2919 Cleanup syssignal.h.
2920 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2921 (main_thread): Move down to remove #ifdef.
2922 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2923 Remove conditional definition following unconditional ones.
2924
99f3388e
DN
2925 * lisp.h: Remove HAVE_SHM code, unused.
2926 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2927 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2928 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2929 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2930 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2931 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2932 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2933 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2934 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2935 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2936 (Qwindow_scroll_functions, Vafter_load_alist)
2937 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2938 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2939 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2940 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2941 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2942 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2943 (initial_argv, last_nonmenu_event, load_in_progress)
2944 (noninteractive_need_newline, scroll_margin): Add declarations.
2945
2946 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2947 declarations, menu.h has them.
2948 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2949 (Vinput_method_function, Qinput_method_function)
2950 (Qevent_symbol_element_mask, last_event_timestamp):
2951 * dispextern.h (Voverflow_newline_into_fringe):
2952 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2953 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2954 (syms_of_w32font, syms_of_nsfont):
2955 * fontset.h (find_font_encoding, Qlatin):
2956 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2957 (Vtool_bar_mode, set_frame_menubar):
2958 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2959 * xterm.h (Qx_gtk_map_stock):
2960 * keymap.h (meta_prefix_char): Add declarations.
2961
9f5dd6f2
DN
2962 * term.c: Remove dead code.
2963
6254cdda
DN
2964 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2965 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2966 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2967 which is what was there before BSD_PGRPS was removed.
2968
29cf3e20
EZ
29692010-08-05 Eli Zaretskii <eliz@gnu.org>
2970
2971 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2972
2973 * unexcoff.c: Renamed from unexec.c.
2974
aaa0a19a
SM
29752010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2976
2977 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2978
8d1d9587
JB
29792010-08-03 Johan Bockgård <bojohan@gnu.org>
2980
2981 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2982 (Bug#6744)
8d1d9587 2983
9a747ba6
JD
29842010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2985
4d464ae4
JD
2986 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2987 to TRUE if depth of screen is < 16.
2988
ac01763e
JD
2989 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2990 USE_GTK_TOOLTIP.
e0d62a9b
JB
2991 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2992 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2993 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2994 USE_GTK_TOOLTIP.
2995 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2996
2997 * xterm.h (USE_GTK_TOOLTIP): New define.
2998 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2999
9a747ba6
JD
3000 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
3001 to Control-D (Bug#6771).
3002
7b0815ba
JB
30032010-08-02 Juanma Barranquero <lekktu@gmail.com>
3004
3005 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
3006 Wording by Drew Adams <drew.adams@oracle.com>.
3007
aa1859f5
J
30082010-08-01 Jan Djärv <jan.h.d@swipnet.se>
3009
3010 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
3011 ttip_lbl.
3012
3013 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
3014 calling gtk_widget_queue_draw.
3015 (x_free_frame_resources): Call xg_free_frame_widgets.
3016
3017 * xfns.c (x_gtk_use_system_tooltips): New variable.
3018 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
3019 new gtkutil tooltip functions to show the tooltip.
3020 (Fx_hide_tip): Call xg_hide_tooltip.
3021 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
3022
3023 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
3024 (xg_show_tooltip, xg_hide_tooltip): Declare.
3025
3026 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
3027 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
3028 New functions.
aa1859f5
J
3029 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
3030 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
3031 Remove code that is commented out.
3032
76417ef4
SM
30332010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
3034
3035 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
3036
16041401
CY
30372010-07-31 Chong Yidong <cyd@stupidchicken.com>
3038
3039 * xselect.c (x_own_selection): Use list4.
3040
2c09a58f
DN
30412010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3042
3043 * buffer.c (Qwindow): Do not define, already defined in data.c.
3044 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
3045
59df9fdd 30462010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 3047
59df9fdd
JB
3048 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
3049 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
3050 * config.in: Undef HAVE_DIRENT_H.
1c97e857 3051 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 3052 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 3053
1b231651
DN
30542010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3055
3056 Rename s/usg5-4.h -> s/usg5-4-common.h.
3057 * s/usg5-4.h: Rename file to ...
3058 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
3059 * s/unixware.h:
3060 * s/sol2-6.h:
3061 * s/irix6-5.h: Update includes accordingly.
3062
bfeabdc3
JD
30632010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3064
2ebf1083
J
3065 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
3066
bfeabdc3 3067 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
3068 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
3069 Remove toolbar_height.
3070 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
3071 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
3072 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
3073 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
3074
3075 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3076
3077 * xfns.c (x_set_tool_bar_position): New function.
3078 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
3079 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 3080 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
3081
3082 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
3083 and FRAME_TOOLBAR_LEFT_WIDTH.
3084
3085 * gtkutil.h (xg_change_toolbar_position): Declare.
3086
3087 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
3088 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3089 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
3090 (xg_create_frame_widgets): Create a hobox for placing widgets
3091 vertically. Use gtk_box_pack_start.
3092 (xg_height_or_width_changed): Renamed from xg_height_changed.
3093 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
3094 (xg_update_frame_menubar, free_frame_menubar): Change to
3095 xg_height_or_width_changed.
3096 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
3097 size correctly. Remove hardcoded 4, instead use handlebox size -
3098 toolbar size.
3099 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 3100 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
3101 (xg_pack_tool_bar): POS is a new parameter.
3102 Set orientation of tool bar based on pos.
3103 Only make handlebox_widget if NULL.
3104 Check if tool bar goes to vbox or hbox depending on pos.
3105 (xg_update_tool_bar_sizes): New function.
686b968e 3106 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
3107 height, call xg_update_tool_bar_sizes instead.
3108 (free_frame_tool_bar): Remove from hbox or vbox depending on
3109 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
3110 (xg_change_toolbar_position): New function.
3111
3112 * frame.h (struct frame): Add tool_bar_position.
3113 (Qbottom): Declare.
3114
3115 * frame.c (Qtool_bar_position): New variable.
3116 (make_frame): Set tool_bar_position to Qtop.
3117 (frame_parms): Add tool-bar-position.
3118 (x_report_frame_params): Store tool_bar_position.
3119 (x_set_fringe_width): Reset wm size hint after fringe changes.
3120
26469a38
DN
31212010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3122
3123 Make lisp_time_argument declaration work on all systems.
3124 * lisp.h (lisp_time_argument): Move declaration ...
3125 * systime.h (lisp_time_argument): ... here
3126 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
3127
8848b728
JD
31282010-07-29 Jan Djärv <jan.h.d@swipnet.se>
3129
3130 * vm-limit.c (POINTER): Add typedef for it.
3131 (start_of_data): Change return type from POINTER to char *.
3132
3133 * frame.h (Qtty_color_mode): Move declaration out of ifdef
3134 HAVE_WINDOW_SYSTEM.
3135
76fd1ee9
DN
31362010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
3137
0441987e
DN
3138 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
3139 Remove reference to __osf__, unused.
3140
56a000c7
DN
3141 * mem-limits.h: Remove duplicated includes.
3142 (NULL): Remove definition, unused.
3143 (POINTER): Remove definition.
3144 (start_of_data): Use char* in prototype, as the function
3145 definition does.
3146
e6cba650
DN
3147 Remove extern declarations from .c files, and them to .h files.
3148 * keyboard.h (Qhelp_echo, waiting_for_input)
3149 (input_available_clear_time, ignore_mouse_drag_p)
3150 (Vdouble_click_time, real_this_command, Vthis_original_command):
3151 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
3152 (Voverriding_local_map_menu_flag):
3153 * lisp.h (Qinteractive_form, use_file_dialog)
3154 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
3155 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
3156 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3157 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
3158 (Qfunction, debug_on_next_call, Qfield)
3159 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
3160 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
3161 (Qfile_directory_p, Qinsert_file_contents)
3162 (Qcompletion_ignore_case, Qcompletion_ignore_case)
3163 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
3164 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
3165 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
3166 (Qminibuffer_prompt)
3167 (Vtemporary_file_directory,char_ins_del_vector, Qface):
3168 * xterm.h (gray_bitmap_width, gray_bitmap_height)
3169 (gray_bitmap_bits, xic_create_fontsetname):
3170 * coding.h (Vtranslation_table_for_input): Add extern declarations.
3171
3172 * xsmfns.c (Vuser_login_name):
3173 * xrdb.c (Vdouble_click_time):
3174 * xfaces.c (xic_create_fontsetname):
3175 * w32select.c (waiting_for_input):
3176 * print.c (minibuffer_auto_raise):
3177 * msdos.c (Qhelp_echo):
3178 * macros.c (real_this_command):
3179 * keymap.c (Voverriding_local_map):
3180 * xterm.c (poll_for_input_1, gray_bitmap_width)
3181 (gray_bitmap_height, gray_bitmap_bits;
3182 * xmenu.c ( Voverriding_local_map)
3183 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
3184 (use_file_dialog, Xt_app_con):
3185 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
3186 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
3187 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
3188 (Qtool_bar_lines, ignore_mouse_drag_p):
3189 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
3190 (Qrear_nonsticky, nconc2):
3191 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
3192 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
3193 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
3194 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
3195 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
3196 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
3197 (gc_in_progress):
3198 * doc.c (Voverriding_local_map, Qremap):
3199 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
3200 (Vcompletion_regexp_list):
3201 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
3202 (Qcompletion_ignore_case):
3203 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
3204 (Vhistory_length, Vthis_original_command, real_this_command)
3205 (Qface, Qminibuffer_prompt, history_delete_duplicates):
3206 * image.c (Qrisky_local_variable):
3207 * fontset.c (QCname):
3208 * fns.c (minibuffer_auto_raise, QCname):
3209 * dispnew.c (char_ins_del_cost):
3210 * composite.c (font_fill_lglyph_metrics):
3211 * cmds.c (Qface, Vtranslation_table_for_input):
3212 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
3213 * ccl.c (charset_unicode):
3214 * callproc.c (Vtemporary_file_directory):
3215 * buffer.c (emacs_strerror): Remove extern declarations.
3216
3217 * data.c (Qwindow): Make non-static, used from other files too.
3218 * frame.c (validate_x_resource_name): Remove shadow definition for i.
3219
76fd1ee9
DN
3220 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
3221 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
3222 * s/usg5-4.h (COFF):
3223 * s/template.h:
3224 * s/msdos.h (COFF, NO_REMAP):
3225 * s/ms-w32.h (NO_REMAP):
3226 * s/hpux10-20.h (NO_REMAP):
3227 * m/sparc.h (SEGMENT_MASK):
3228 * m/m68k.h (NO_REMAP):
3229 * m/intel386.h (SEGMENT_MASK):
3230 * m/arm.h (NO_REMAP):
3231 * m/alpha.h (COFF):
3232 * m/template.h: Remove references to unused defines.
3233
8a52f00a
JD
32342010-07-28 Jan Djärv <jan.h.d@swipnet.se>
3235
3236 * xsettings.c (Ftool_bar_get_system_style): Also check for
3237 Qtext_image_horiz.
3238
3239 * xdisp.c (Qtext_image_horiz): Define.
3240 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 3241 to documentation of tool-bar-style.
8a52f00a
JD
3242
3243 * lisp.h (Qtext_image_horiz): Declare.
3244
3245 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3246 style text_image_horiz.
3247
89dc303e
DN
32482010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3249
60799703
DN
3250 * emacs.c (Fkill_emacs): Remove return statement.
3251
37254dc1
DN
3252 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3253 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
3254 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
3255 local extern declarations.
3256
71c7345a
DN
3257 * xmenu.c: Do not included lwlib.h, not needed.
3258
6ba577cb
DN
3259 * m/iris4d.h (XUINT, XSET): Remove, not needed.
3260
fdb183d6
DN
3261 * process.c: Move definitions earlier to minimize #ifdefs.
3262
3263 * xterm.h (x_get_customization_string, x_load_resources)
3264 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3265 (x_check_errors, x_property_data_to_lisp, defined_color)
3266 (xic_set_xfontset, x_defined_color): Use const.
3267
3268 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3269 (x_text_icon, x_check_errors, x_connection_closed): Use const.
3270
3271 * xselect.c (selection_data_to_lisp_data)
3272 (x_property_data_to_lisp):
3273 * xrdb.c (x_get_string_resource, file_p)
3274 (x_get_customization_string, magic_file_p, search_magic_path)
3275 (get_system_app, get_user_app, x_load_resources, x_get_resource)
3276 (x_get_string_resource): Use const.
3277
3278 * xfns.c: Include xlwmenu.h when USE_LUCID.
3279 (x_defined_color, xic_set_xfontset): Use const.
3280 (Fx_hide_tip): Remove local extern declaration.
3281
3282 * xfaces.c (Qmouse_face): Remove declaration.
3283 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 3284 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
3285
3286 * xdisp.c (do_mouse_tracking): Remove declaration.
3287 (add_to_log): Use const.
3288
3289 * minibuf.c (Qmouse_face): Remove declaration.
3290
3291 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3292
3293 * keyboard.h (do_mouse_tracking): Add declaration.
3294
3295 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3296 (QCdata, QCtype, Qcenter): Remove declarations.
3297
3298 * frame.c (x_get_resource_string, x_get_string_resource)
3299 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3300 (x_default_parameter): Use const.
3301
3302 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3303 (QCheight, QCsize, QCname): Remove declarations.
3304
3305 * emacs.c (main): Remove local extern declaration.
3306
3307 * editfns.c (region_limit, syms_of_editfns): Remove local extern
3308 declarations.
3309
3310 * dispnew.c: Remove duplicate #include <unistd.h>.
3311 (update_window, update_frame_1, init_display): Remove local extern
3312 declarations.
3313
3314 * dispextern.h (add_to_log): Remove declaration.
3315 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3316 (x_frame_get_and_record_arg, x_default_parameter): Add const.
3317
3318 * dired.c (scmp): Add const.
3319 (directory_files_internal): Remove local extern declaration.
3320
3321 * data.c (Finteractive_form): Use const.
3322
3323 * composite.c (syms_of_composite): Remove local extern declarations.
3324
3325 * charset.c (add_to_log): Remove declaration.
3326
3327 * character.c (strwidth, parse_str_to_multibyte): Add const.
3328
3329 * character.h (strwidth, parse_str_to_multibyte): Likewise.
3330
3331 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3332
89dc303e 3333 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
3334 (Lisp_Subr): Make doc and intspec constant.
3335 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3336 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3337 (QCheight, QCsize, QCname, QCwidth, QCforeground)
3338 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3339 (display_arg): Add declarations.
89dc303e 3340
0ed082fe 33412010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
3342
3343 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3344
0ed082fe
JB
3345 * window.c (Fwindow_height): Doc fix (bug#6518).
3346
33472010-07-27 Juanma Barranquero <lekktu@gmail.com>
3348
3349 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3350
ccaf0336
DN
33512010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
3352
977105dc
DN
3353 * keyboard.c (Ftop_level, Fexit_recursive_edit)
3354 (Fabort_recursive_edit): Remove return statements in NO_RETURN
3355 functions.
3356
f5ada890
DN
3357 * frame.h (Qtty_color_mode): Add declaration.
3358
ccaf0336
DN
3359 * lisp.h (Ftop_level, Fexit_recursive_edit)
3360 (Fabort_recursive_edit): Mark as NO_RETURN.
3361
dfe3c90f
KH
33622010-07-26 Kenichi Handa <handa@m17n.org>
3363
3364 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 3365 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 3366
7d383292
JB
33672010-07-26 Juanma Barranquero <lekktu@gmail.com>
3368
3369 * lread.c (unreadpure, mapatoms_1): Make static.
3370
da31e629
JB
33712010-07-25 Juanma Barranquero <lekktu@gmail.com>
3372
3373 * terminfo.c (tparam): Fix prototype of tparm.
3374
7bfa6d77
AS
33752010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3376
dcc19aac
AS
3377 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3378 find start of text segment.
3379 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3380 is defined.
3381
7bfa6d77
AS
3382 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3383
63f9a672
KB
33842010-07-25 Ken Brown <kbrown@cornell.edu>
3385
3386 * vm-limit.c (check_memory_limits): Fix previous change;
3387 accidentally reverted an earlier change.
3388
24933075
KB
33892010-07-25 Ken Brown <kbrown@cornell.edu>
3390
3391 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3392 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3393
361358ea
JB
33942010-07-25 Juanma Barranquero <lekktu@gmail.com>
3395
3396 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3397 * dired.c (opendir, readdir): Fix prototypes.
3398 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3399 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3400 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3401 (telldir): Remove declaration.
3402 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3403 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3404 * syssignal.h (strsignal): Fix prototype.
3405 * term.c (tparam): Fix prototype.
3406 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3407 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3408 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3409 and __morecore.
3410 * w32gui.h (XParseGeometry): Fix prototype.
3411 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3412 * w32term.c (my_set_focus): Declare inside #if 0.
3413 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3414 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3415 (drain_message_queue, get_next_msg, post_msg, parse_button)
3416 (ClipboardSequence_Proc): Fix prototypes.
3417 (wait_for_sync): Remove declaration.
3418
630b9592
JB
34192010-07-24 Juanma Barranquero <lekktu@gmail.com>
3420
3421 * w32fns.c (w32_to_x_color): Remove, unused.
3422
6a0d6611
AS
34232010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3424
3425 * lisp.h: Remove leftover P_.
3426
4e8608ff
DN
34272010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3428
3429 * ecrt0.c, unexalpha.c: Remove files, unused.
3430
c8197983
AS
34312010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3432
3433 * cmds.c (internal_self_insert): Make static.
3434 * lisp.h (internal_self_insert): Remove declaration.
3435
97b372d7
JB
34362010-07-23 Juanma Barranquero <lekktu@gmail.com>
3437
33ac0414
JB
3438 * alloc.c (free_float):
3439 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
3440 * frame.c (delete_frame_handler):
3441 * ralloc.c (reorder_bloc):
3442 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
3443 Remove unused static functions.
3444
94da8397
JB
3445 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
3446 it is called only from NS code.
3447
2e6c8532
JB
3448 * w32term.c (my_set_focus): #ifdef away; it is called only from
3449 "#ifdef 0" code.
3450
97b372d7
JB
3451 * w32fns.c (x_edge_detection):
3452 * xfaces.c (may_use_scalable_font_p):
3453 Remove obsolete static declarations.
3454
7c3320d8
JB
34552010-07-20 Juanma Barranquero <lekktu@gmail.com>
3456
3457 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3458 (emacs_blocked_realloc, uninterrupt_malloc):
3459 * fringe.c (w32_reset_fringes):
3460 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3461 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3462 * sound.c (be2hs, do_play_sound):
3463 * vm-limit.c (get_lim_data, ret_lim_data):
3464 * w32term.c (x_free_frame_resources):
3465 * xfaces.c (x_create_gc, x_free_gc):
3466 Convert definitions to standard C.
3467
d5273788
SM
34682010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3469
3470 * eval.c (Feval, Ffuncall): Use the new names.
3471
3472 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3473 (DEFUN): Add braces around the union initialisation and use ## to
3474 specify the right union alternative and avoid a cast.
3475
8d16a259
JB
34762010-07-18 Juanma Barranquero <lekktu@gmail.com>
3477
3478 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3479
3b8eff32
CY
34802010-07-17 Chong Yidong <cyd@stupidchicken.com>
3481
3482 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3483
499322ce
J
34842010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3485
3486 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3487 is related to the menu bar (Bug#6499).
a628ad9d 3488 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 3489
f6003da5 34902010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
3491
3492 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3493
3494 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3495
3496 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3497 i.e. don't put back ButtonRelease (Bug#6608).
3498
3499 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3500 instead of Window. Call xg_event_is_for_menubar when
3501 USE_GTK (Bug#6499).
3502
3503 * gtkutil.h (xg_event_is_for_menubar): Declare.
3504
3505 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3506
f6003da5 35072010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
3508
3509 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3510 when it's the same as the old foreground. (Bug#6609)
3511
23243f29
J
35122010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3513
3514 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3515 widget is non-null (Bug#6645).
3516
2b23d2a6
AS
35172010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3518
01b564ff
AS
3519 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3520 Convert old-style definition.
3521
2b23d2a6
AS
3522 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3523 timestamp argument.
3524
c4affd2c
EZ
35252010-07-15 Eli Zaretskii <eliz@gnu.org>
3526
3527 * fringe.c (update_window_fringes): Restore mistakenly reverted
3528 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3529
cf28cebc
J
35302010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3531
3532 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3533 (SET_SAVED_KEY_EVENT): Remove (not used).
3534 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3535 remove size parameter.
3536 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3537 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3538 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3539 ButtonRelease.
6b2c4bd9
J
3540 (x_set_window_size_1): scroll_bar_actual_width is always
3541 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
3542
3543 * xdisp.c (pending_menu_activation): Remove extern declaration.
3544 (prepare_menu_bars): Remove setting of pending_menu_activation.
3545
3546 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
3547 (x_activate_menubar): Set popup_activated_flag for Xt also.
3548 Remove setting of pending_menu_activation.
cf28cebc
J
3549 (set_frame_menubar): Remove check of pending_menu_activation.
3550 Declare menubar_size before code. Correct spelling in comment.
3551
f6c1c771
KH
35522010-07-14 Kenichi Handa <handa@m17n.org>
3553
3554 * font.c (font_open_entity): Cancel previous change.
3555 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3556
20477505
EZ
35572010-07-13 Eli Zaretskii <eliz@gnu.org>
3558
77defa9a
EZ
3559 Remove subprocesses #ifdefs.
3560 * process.c <inhibit_sentinels>: Move to the common part.
3561 (Fwaiting_for_user_input_p): Move to the common part; return nil
3562 if async subprocesses aren't supported.
3563 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3564 MS-DOS. Remove "#ifdef subprocesses".
3565 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3566 (gettimeofday): Remove "#ifdef subprocesses".
3567 (wait_without_blocking): Remove function.
3568 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3569 Remove "#ifdef subprocesses".
3570 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3571 compiled on MS-DOS.
3572 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3573 wait_for_termination on MS-DOS.
3574 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3575 initialization of inhibit_sentinels.
3576 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3577 subprocesses" conditional.
3578 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3579 wait_for_termination, since `buffer' cannot be an integer when
3580 async subprocesses are not supported
3581 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3582 for ifdefing away the call to Fprocess_status.
3583
20477505
EZ
3584 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3585 away the entire body of the function.
3586
b3ffc17c
DN
35872010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3588
01faa934
DN
3589 Remove subprocesses #ifdefs from term.c.
3590 * process.c (add_keyboard_wait_descriptor)
3591 (delete_keyboard_wait_descriptor): Move to common section, do
3592 nothing when subprocesses is not defined.
a628ad9d
JB
3593 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3594 Remove subprocesses #ifdefs.
01faa934 3595
b3ffc17c
DN
3596 Convert maybe_fatal to standard C.
3597 * lisp.h (verror): Declare.
3598 * eval.c (verror): New function containing the code from ...
3599 (error): ... this. Call verror.
3600 * term.c (vfatal): New function containing the code from ...
3601 (fatal): ... this. Call vfatal.
3602 (maybe_fatal): Convert to standard C, use variable number of
3603 arguments. Declare as non-return.
3604 (init_tty): Fix maybe_fatal call.
3605
0521f580
DN
36062010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3607
3608 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3609 (_scroll_bar_note_movement): Convert definitions to standard C.
3610 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3611 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3612
ebd15611
DN
36132010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3614
3615 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3616 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3617 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3618 (xaw_jump_callback, xaw_scroll_callback)
3619 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3620 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3621 definitions to standard C.
3622 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3623 (popup_activate_callback, popup_deactivate_callback)
3624 (menu_highlight_callback, menubar_selection_callback)
3625 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3626 (free_frame_menubar, popup_selection_callback, as)
3627 (create_and_show_popup_menu, dialog_selection_callback)
3628 (create_and_show_dialog):
3629 * xfns.c (hack_wm_protocols, x_window):
3630 * xfaces.c (x_update_menu_appearance):
3631 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3632 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3633 (set_frame_size, update_wm_hints, setup_frame_gcs)
3634 (update_various_frame_slots, update_from_various_frame_slots)
3635 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3636 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3637 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3638
de06a2dd
AS
36392010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3640
a628ad9d 3641 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 3642
fc549af9
EZ
36432010-07-12 Eli Zaretskii <eliz@gnu.org>
3644
3645 * process.c (setup_process_coding_systems): Move to the part
3646 shared by non-subprocesses systems, and make its body empty when
3647 subprocesses is not defined.
3648 (close_process_descs): Move to the part shared by non-subprocesses
3649 systems.
1408902e
EZ
3650 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3651 ANSI C.
fc549af9 3652
d5a3eaaf
AS
36532010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3654
3655 * editfns.c (transpose_markers): Convert old-style definition.
3656 * emacs.c (abort, shut_down_emacs, fixup_locale)
3657 (synchronize_system_time_locale)
3658 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3659 * floatfns.c (extract_float, matherr, init_floatfns)
3660 (syms_of_floatfns): Likewise.
3661 * fns.c (make_hash_table): Likewise.
3662 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3663 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3664 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3665 (ftfont_variation_glyphs): Likewise.
3666 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3667 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3668 * lread.c (read_filtered_event): Likewise.
3669 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3670 * process.c (wait_reading_process_output): Likewise.
3671 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3672 * search.c (search_buffer, boyer_moore): Likewise.
3673 * syntax.c (scan_sexps_forward): Likewise.
3674 * xdisp.c (try_scrolling): Likewise.
3675 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3676 (face_at_string_position): Likewise.
3677 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3678 * xselect.c (x_get_window_property, receive_incremental_selection)
3679 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3680 Likewise.
3681 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3682
6f704c76
DN
36832010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3684
ded80a25
DN
3685 * callproc.c (child_setup): Remove subprocesses conditional.
3686 Remove code dealing with SET_EMACS_PRIORITY, unused.
3687
49d937f4 3688 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
3689 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3690
3691 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3692 (__do_global_dtors, __main): Use void in definition.
3693 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3694 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3695 the only users from ...
3696 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3697 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3698 (HAVE_VOLATILE): Remove, unused.
3699
6f704c76
DN
3700 Convert more function definitions to standard C.
3701 * xdisp.c (window_box_edges, handle_single_display_spec)
3702 (display_string): Convert definition to standard C.
3703 * scroll.c (do_direct_scrolling, scrolling_1):
3704 * dispnew.c (allocate_matrices_for_frame_redisplay)
3705 (mirrored_line_dance):
3706 * coding.c (code_convert_string):
3707 * charset.c (map_charset_chars):
3708 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3709 (Fregister_ccl_program, Fregister_code_conversion_map):
3710 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3711 (head_table): Make static and const.
3712
e6cfa7c3
AS
37132010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3714
3715 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3716 (PROFILING_LDFLAGS): Set from substitution.
3717 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3718 CFLAGS last.
3719
892dd565
KH
37202010-07-12 Kenichi Handa <handa@m17n.org>
3721
6f2cdcd1
KH
3722 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3723 (shortlisp): Likewise.
3724
892dd565
KH
3725 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3726
3727 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3728 of FONT_ENTITY_INDEX.
3729 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3730 property, get the property value dynamically.
3731 (Ffont_put): Accept font-entity and font-object too.
3732 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3733 return value changed.
3734 (syms_of_font): Adjusted for the above change.
3735
ae96d47a
AS
37362010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3737
c8fc18ee
AS
3738 * blockinput.h: Remove obsolete comment.
3739
89887d67
AS
3740 * lisp.h: Include <stddef.h>.
3741 (OFFSETOF): Don't define.
3742 (VECSIZE): Use offsetof instead of OFFSETOF.
3743 (PSEUDOVECSIZE): Likewise.
3744 * process.c (conv_sockaddr_to_lisp): Likewise.
3745 * alloc.c: Don't include <stddef.h>.
3746 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3747
ae96d47a
AS
3748 * process.c: Remove obsolete comment.
3749
635c0aa1
CY
37502010-07-11 Chong Yidong <cyd@stupidchicken.com>
3751
3752 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3753
a64df650
AS
37542010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3755
8966b757
AS
3756 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3757 index, rindex.
3758 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3759 * editfns.c (Fuser_full_name, Fformat): Likewise.
3760 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3761 * fileio.c (Ffile_symlink_p): Likewise.
3762 * filelock.c (current_lock_owner): Likewise.
3763 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3764 * fontset.c (fontset_pattern_regexp): Likewise.
3765 * lread.c (read1): Likewise.
3766 * sysdep.c (init_system_name): Likewise.
3767 * xfns.c (select_visual): Likewise.
3768 * s/hpux10-20.h (index, rindex): Don't define.
3769 * s/ms-w32.h (index): Likewise.
3770 * s/usg5-4.h: Likewise.
3771
cf237e27
AS
3772 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3773
a8fe7202
AS
3774 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3775 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3776 (egetenv): Likewise.
3777 * doprnt.c (doprnt): Likewise.
3778 * editfns.c (set_time_zone_rule, format2): Likewise.
3779 * emacs.c (decode_env_path): Likewise.
3780 * eval.c (signal_error, error): Likewise.
3781 * insdel.c (replace_range_2): Likewise.
3782 * keyboard.c (cmd_error_internal): Likewise.
3783 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3784 * print.c (write_string, write_string_1, print_error_message):
3785 Likewise.
3786 * vm-limit.c (warn_function, memory_warnings): Likewise.
3787 * xdisp.c (message1, message1_nolog, message_with_string)
3788 (vmessage, message, message_nolog): Likewise.
3789 * emacs.c: Remove duplicate declaration.
3790 * keyboard.h: Likewise.
3791 * lisp.h: Update prototypes.
3792
bb8e180f
AS
3793 * eval.c: Fix indentation problem.
3794
83380e65
AS
3795 * keyboard.c: Include "process.h"
3796
a64df650
AS
3797 * eval.c: Remove obsolete noinline declaration.
3798 * fns.c: Likewise.
3799
6a8033e1
KR
38002010-07-11 Ken Raeburn <raeburn@raeburn.org>
3801
3802 * doprnt.c (doprnt): Take a va_list argument instead of count and
3803 pointer.
3804 * eval.c (error): Change to a standard-C variadic function.
3805 * xdisp.c (vmessage): Renamed from message, made static, and
3806 changed to take a va_list argument.
3807 (message): New variadic wrapper.
3808 (message_nolog): Now a variadic function, calling vmessage.
3809 * lisp.h: Include stdarg.h for va_list.
3810 (doprnt, error, message, message_nolog): Decls updated.
3811
462aa963
EZ
38122010-07-11 Eli Zaretskii <eliz@gnu.org>
3813
3814 * process.c (syms_of_process) <delete-exited-processes>: Define
3815 even if !subprocesses.
3816 (delete_exited_processes): Ditto.
3817
3818 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3819 (delete_exited_processes): Don't define.
3820
48104462
CY
38212010-07-10 Chong Yidong <cyd@stupidchicken.com>
3822
3823 * frame.c (make_frame): Initialize menu_bar_lines and
3824 tool_bar_lines members.
3825 (make_initial_frame, make_terminal_frame): Initialize
3826 menu_bar_lines using value of menu-bar-mode.
3827
3828 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3829
f388c88a
EZ
38302010-07-10 Eli Zaretskii <eliz@gnu.org>
3831
3832 * process.c: Reshuffle #include's. Condition some of the global
3833 and static variables on `subprocesses'.
3834 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3835 Leave only one implementation.
3836 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3837 (kill_buffer_processes, Flist_system_processes)
3838 (Fprocess_attributes, init_process, syms_of_process): Unify the
3839 implementations for with subprocesses and without them.
3840
723f5a07
J
38412010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3842
3843 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3844 correct size for Motif.
3845 (free_frame_menubar): Call x_set_window_size to update frame size.
3846
3847 * xfns.c (x_window): Set borderWidth to 0 for pane and
3848 EmacsFrame. Frame size calculation is wrong otherwise.
3849
2536a4b7
MA
38502010-07-09 Michael Albinus <michael.albinus@gmx.de>
3851
3852 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3853 allows to suppress errors when polling in Emacs' main loop.
3854 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3855 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3856 (Fdbus_method_error_internal, Fdbus_send_signal)
3857 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3858 (Fdbus_register_method): Use it. (Bug#6579)
3859
5842a27b
DN
38602010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3861
3862 * alloc.c: Convert DEFUNs to standard C.
3863 * buffer.c:
3864 * bytecode.c:
3865 * callint.c:
3866 * callproc.c:
3867 * casefiddle.c:
3868 * casetab.c:
3869 * category.c:
3870 * character.c:
3871 * charset.c:
3872 * chartab.c:
3873 * cmds.c:
3874 * coding.c:
3875 * composite.c:
3876 * data.c:
3877 * dbusbind.c:
3878 * dired.c:
3879 * dispnew.c:
3880 * doc.c:
3881 * dosfns.c:
3882 * editfns.c:
3883 * emacs.c:
3884 * eval.c:
3885 * fileio.c:
3886 * filelock.c:
3887 * floatfns.c:
3888 * fns.c:
3889 * font.c:
3890 * fontset.c:
3891 * frame.c:
3892 * fringe.c:
3893 * image.c:
3894 * indent.c:
3895 * insdel.c:
3896 * keyboard.c:
3897 * keymap.c:
3898 * lread.c:
3899 * macros.c:
3900 * marker.c:
3901 * menu.c:
3902 * minibuf.c:
3903 * msdos.c:
3904 * nsfns.m:
3905 * nsmenu.m:
3906 * nsselect.m:
3907 * print.c:
3908 * process.c:
3909 * search.c:
3910 * sound.c:
3911 * syntax.c:
3912 * term.c:
3913 * terminal.c:
3914 * textprop.c:
3915 * undo.c:
3916 * w16select.c:
3917 * w32console.c:
3918 * w32fns.c:
3919 * w32font.c:
3920 * w32menu.c:
3921 * w32proc.c:
3922 * w32select.c:
3923 * window.c:
3924 * xdisp.c:
3925 * xfaces.c:
3926 * xfns.c:
3927 * xmenu.c:
3928 * xselect.c:
3929 * xsettings.c:
3930 * xsmfns.c: Likewise.
3931
d568829b
EZ
39322010-07-08 Eli Zaretskii <eliz@gnu.org>
3933
3934 * process.c (kbd_is_on_hold, hold_keyboard_input)
3935 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3936
52214050
J
39372010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3938
3939 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3940 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3941 unless USE_LUCID.
3942
313d9eb2
DN
39432010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3944
a628ad9d
JB
3945 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3946 declaration.
d8825aa3 3947
295d0d8f
DN
3948 Clean up include guards.
3949 * tparam.c: Remove include guards for config.h, string.h and code
3950 that assumes #ifndef emacs.
3951 * termcap.c:
3952 * unexalpha.c:
3953 * sysdep.c:
3954 * filemode.c:
3955 * filelock.c:
3956 * bidi.c: Likewise.
3957
49d9e6b0
DN
3958 Remove prefix-args.c
3959 * prefix-args.c: Remove file.
3960 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3961 * Makefile.in (temacs${EXEEXT}): Remove references to
3962 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3963 (mostlyclean): Remove reference to prefix-args.
3964 (prefix-args): Remove.
3965
313d9eb2
DN
3966 Simplify cstart_of_data, start_of_code and related code.
3967 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3968 (start_of_data): Merge into start_of_data function.
3969 * sysdep.c (start_of_text): Remove. Move simplified versions of
3970 it in the only users: unexaix.c and unexec.c.
3971 (read_input_waiting): Remove local declaration of quit_char.
3972 (start, etext): Remove declarations.
3973 (start_of_data): Merge with the version in mem-limits.h and move
3974 to vm-limits.c.
3975 * vm-limit.c (start_of_data): Merged and simplified version of the
3976 code formerly in mem-limits.h and sysdep.c.
3977 * unexec.c (start): New declaration, moved from sysdep.c.
3978 (start_of_text): Simplified version of the code formerly in sysdep.c.
3979 * unexaix.c (start_of_text): Simplified version of the code
3980 formerly in sysdep.c.
3981 * m/alpha.h (HAVE_TEXT_START): Remove.
3982 (TEXT_START): Move ...
3983 * unexalpha.c (TEXT_START): ... here.
3984 * s/hpux10-20.h (TEXT_START): Remove.
3985 * s/darwin.h (TEXT_START):
3986 * m/mips.h (TEXT_START):
3987 * m/macppc.h (HAVE_TEXT_START):
3988 * m/m68k.h (TEXT_START):
3989 * m/iris4d.h (TEXT_START):
3990 * m/intel386.h (TEXT_START):
3991 * m/ibmrs6000.h (TEXT_START):
3992 * m/ia64.h (HAVE_TEXT_START):
3993 * s/msdos.h (TEXT_START): Likewise.
3994
72af86bd
AS
39952010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3996
3997 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3998 (overrun_check_free, xstrdup, allocate_string)
3999 (allocate_string_data, compact_small_strings, Fmake_string)
4000 (make_unibyte_string, make_multibyte_string)
4001 (make_string_from_bytes, make_specified_string, make_float)
4002 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
4003 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
4004 memcpy, memmove, memset, memcmp.
4005 * atimer.c (start_atimer, set_alarm): Likewise.
4006 * buffer.c (clone_per_buffer_values, report_overlay_modification)
4007 (mmap_realloc, init_buffer_once): Likewise.
4008 * callint.c (Fcall_interactively): Likewise.
4009 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
4010 (getenv_internal_1): Likewise.
4011 * casefiddle.c (casify_object): Likewise.
4012 * ccl.c (ccl_driver): Likewise.
4013 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
4014 * charset.c (load_charset_map_from_file)
4015 (load_charset_map_from_file, load_charset_map_from_vector)
4016 (Fdefine_charset_internal): Likewise.
4017 * cm.c (Wcm_clear): Likewise.
4018 * coding.c (decode_eol, decode_coding_object)
4019 (Fset_coding_system_priority, make_subsidiaries): Likewise.
4020 * data.c (Faset): Likewise.
4021 * dired.c (directory_files_internal, file_name_completion_stat):
4022 Likewise.
4023 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
4024 (clear_glyph_row, copy_row_except_pointers)
4025 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
4026 (save_current_matrix, restore_current_matrix)
4027 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
4028 (mirror_line_dance, scrolling_window): Likewise.
4029 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
4030 Likewise.
4031 * doprnt.c (doprnt): Likewise.
4032 * editfns.c (Fuser_full_name, make_buffer_string_both)
4033 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
4034 * emacs.c (sort_args): Likewise.
4035 * eval.c (Fapply, Ffuncall): Likewise.
4036 * fileio.c (Ffile_name_directory, make_temp_name)
4037 (Fexpand_file_name, search_embedded_absfilename)
4038 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
4039 (auto_save_error): Likewise.
4040 * fns.c (Fstring_equal, Fcopy_sequence, concat)
4041 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
4042 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
4043 (Fmake_hash_table): Likewise.
4044 * fringe.c (Fdefine_fringe_bitmap): Likewise.
4045 * ftfont.c (ftfont_text_extents): Likewise.
4046 * getloadavg.c (getloadavg): Likewise.
4047 * image.c (define_image_type, make_image, make_image_cache)
4048 (x_create_x_image_and_pixmap, xbm_image_p)
4049 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
4050 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
4051 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
4052 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
4053 (tiff_image_p, tiff_read_from_memory, gif_image_p)
4054 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
4055 Likewise.
4056 * indent.c (scan_for_column, compute_motion): Likewise.
4057 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
4058 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
4059 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
4060 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
4061 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
4062 (store_user_signal_events, menu_bar_items, tool_bar_items)
4063 (process_tool_bar_item, append_tool_bar_item)
4064 (read_char_minibuf_menu_prompt, read_key_sequence)
4065 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
4066 Likewise.
4067 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
4068 Likewise.
4069 * lisp.h (STRING_COPYIN): Likewise.
4070 * lread.c (Fload, read1, oblookup): Likewise.
4071 * msdos.c (Frecent_doskeys): Likewise.
4072 * nsfns.m (Fx_create_frame): Likewise.
4073 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
4074 Likewise.
4075 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
4076 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
4077 Likewise.
4078 * nsmenu.m (ns_update_menubar): Likewise.
4079 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
4080 * print.c (print_unwind, printchar, strout, print_string)
4081 (print_error_message): Likewise.
4082 * process.c (conv_lisp_to_sockaddr, set_socket_option)
4083 (Fmake_network_process, Fnetwork_interface_list)
4084 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
4085 (init_process): Likewise.
4086 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
4087 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
4088 Likewise.
4089 * scroll.c (do_scrolling, do_direct_scrolling)
4090 (scrolling_max_lines_saved): Likewise.
4091 * search.c (search_buffer, wordify, Freplace_match): Likewise.
4092 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
4093 * syntax.c (skip_chars, skip_syntaxes): Likewise.
4094 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
4095 (emacs_set_tty): Likewise.
4096 * term.c (encode_terminal_code, calculate_costs)
4097 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
4098 Likewise.
4099 * termcap.c (tgetst1, gobble_line): Likewise.
4100 * termhooks.h (EVENT_INIT): Likewise.
4101 * tparam.c (tparam1): Likewise.
4102 * unexalpha.c (unexec): Likewise.
4103 * unexec.c (write_segment): Likewise.
4104 * unexmacosx.c (unexec_write_zero): Likewise.
4105 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
4106 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
4107 * w32font.c (w32font_list_family, w32font_text_extents)
4108 (w32font_list_internal, w32font_match_internal)
4109 (w32font_open_internal, compute_metrics, Fx_select_font):
4110 Likewise.
4111 * w32menu.c (set_frame_menubar, add_menu_item)
4112 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
4113 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
4114 * w32uniscribe.c (uniscribe_list_family): Likewise.
4115 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
4116 * window.c (make_window, replace_window, set_window_buffer)
4117 (Fsplit_window): Likewise.
4118 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
4119 (add_to_log, message3, x_consider_frame_title)
4120 (append_space_for_newline, extend_face_to_end_of_line)
4121 (decode_mode_spec_coding, init_glyph_string): Likewise.
4122 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
4123 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
4124 (face_attr_equal_p, make_realized_face, make_face_cache)
4125 (free_realized_faces, lookup_named_face, smaller_face)
4126 (face_with_height, lookup_derived_face)
4127 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
4128 (Finternal_set_font_selection_order, realize_default_face)
4129 (compute_char_face, face_at_buffer_position)
4130 (face_for_overlay_string, face_at_string_position, merge_faces):
4131 Likewise.
4132 * xfns.c (xic_create_fontsetname, Fx_create_frame)
4133 (Fx_window_property, x_create_tip_frame)
4134 (Fx_backspace_delete_keys_p): Likewise.
4135 * xfont.c (xfont_list, xfont_match, xfont_list_family)
4136 (xfont_text_extents): Likewise.
4137 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
4138 * xrdb.c (magic_file_p, x_get_resource): Likewise.
4139 * xselect.c (x_queue_event, x_get_window_property)
4140 (receive_incremental_selection): Likewise.
4141 * xsmfns.c (x_session_check_input): Likewise.
4142 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
4143 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
4144 Likewise.
4145 * character.h (BCOPY_SHORT): Removed.
4146 * config.in: Regenerate.
4147 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
4148 * emacs.c (main) [PROFILING]: Don't declare
4149 dump_opcode_frequencies.
4150 * lisp.h (safe_bcopy): Remove declaration.
4151 (memset) [!HAVE_MEMSET]: Declare.
4152 (memcpy) [!HAVE_MEMCPY]: Likewise.
4153 (memmove) [!HAVE_MEMMOVE]: Likewise.
4154 (memcmp) [!HAVE_MEMCMP]: Likewise.
4155 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
4156 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
4157 Don't define.
4158 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
4159 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
4160 (BCOPY_DOWNWARD_SAFE): Don't define.
4161 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
4162 (memcpy) [!HAVE_MEMCPY]: Define.
4163 (memmove) [!HAVE_MEMMOVE]: Define.
4164 (memcmp) [!HAVE_MEMCMP]: Define.
4165
cb768704
J
41662010-07-07 Jan Djärv <jan.h.d@swipnet.se>
4167
4168 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
4169 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4170 New functions.
cb768704
J
4171 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
4172 select on empty input mask.
4173 (init_process): Initialize kbd_is_on_hold to 0.
4174
4175 * process.h (hold_keyboard_input, unhold_keyboard_input)
4176 (kbd_on_hold_p): Declare.
4177
4178 * keyboard.c (input_available_signal): Declare.
4179 (kbd_buffer_nr_stored): New function.
4180 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
4181 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
4182 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
4183 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
4184 (tty_read_avail_input): If input is on hold, return.
4185 Don't read more that free slots in kbd_buffer (Bug#6571).
4186
3a8ce822
EZ
41872010-07-07 Eli Zaretskii <eliz@gnu.org>
4188
4189 * msdos.h:
4190 * msdos.c:
4191 * dosfns.c:
4192 * w16select.c: Convert function definitions to ANSI C.
4193
a628ad9d
JB
4194 * msdos.h (ctrl_break_func, install_ctrl_break_check):
4195 Remove unused prototypes.
3a8ce822 4196
cf84bb53
JB
41972010-07-07 Juanma Barranquero <lekktu@gmail.com>
4198
4199 * coding.c, sysdep.c: Convert some more functions to standard C.
4200
1a4990fb
JB
42012010-07-07 Juanma Barranquero <lekktu@gmail.com>
4202
4203 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
4204 (encode_coding_object): Use SPECPDL_INDEX.
4205 (syms_of_coding): Use DOS_NT.
4206
c0f2f16b
DN
42072010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
4208
48fb6855
DN
4209 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
4210
c0f2f16b
DN
4211 Make the function member of Lisp_Subr use standard C prototypes.
4212 * lisp.h (struct Lisp_Subr): Use a union for the function member.
4213 (DECL_ALIGN): Add a cast for the function.
4214 * eval.c (Feval, Ffuncall): Use the proper type for each type
4215 function call.
4216
67aecef9
CY
42172010-07-06 Chong Yidong <cyd@stupidchicken.com>
4218
4219 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
4220 fringe face id, so face-remapping-alist works (Bug#6091).
4221
b56ceb92
JB
42222010-07-06 Juanma Barranquero <lekktu@gmail.com>
4223
4224 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
4225 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
4226 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
4227
7af07b96
AS
42282010-07-06 Andreas Schwab <schwab@linux-m68k.org>
4229
4230 * xterm.c (x_get_keysym_name): Change type of parameter to int.
4231 * lisp.h: Declare x_get_keysym_name.
4232 * keyboard.c (modify_event_symbol): Don't declare
4233 x_get_keysym_name here.
4234
69e24e34
DN
42352010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
4236
4237 * ecrt0.c: Revert conversion to standard C.
4238
d3da34e0 42392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
4240
4241 * vm-limit.c (memory_warnings):
4242 * keyboard.c (modify_event_symbol):
4243 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4244 (round2, emacs_rint):
4245 * process.c (send_process, old_sigpipe): Convert function
4246 definitions and declarations to standard C.
4247
42482010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
4249
4250 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4251 * xdisp.c: Convert function definitions to standard C.
4252
4253 * cm.c (cmputc): Arg C is now int, not char.
4254 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4255
00be444c
J
42562010-07-05 James Cloos <cloos@jhcloos.com>
4257
4258 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4259
4260 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4261 _NET_WM_ICON_NAME atoms.
4262
4263 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4264 and _NET_WM_ICON_NAME properties, too, matching what is
4265 done in the Gtk+ case.
4266
e4c8d29a
J
42672010-07-05 Jan Djärv <jan.h.d@swipnet.se>
4268
ff919460
J
4269 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4270
e4c8d29a
J
4271 * xsmfns.c (SSDATA): New macro.
4272 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4273 passed to strlen/strcpy/strcat.
4274 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 4275 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
4276
4277 * xsettings.c (something_changedCB, parse_settings)
4278 (apply_xft_settings): Reformat prototype.
4279 (something_changedCB, init_gconf): Remove unused variable i.
4280 (read_settings): Remove unused variable long_len.
4281
4282 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4283 (xg_get_image_for_pixmap, create_dialog)
4284 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4285 (menuitem_highlight_callback, make_menu_item)
4286 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4287 (xg_create_scroll_bar, xg_update_scrollbar_pos)
4288 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4289 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4290 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4291 (xg_tool_bar_item_expose_callback): Reformat prototype.
4292 (xg_update_menubar): GList *group => GSList *group.
4293 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4294 before use.
4295 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4296 to GTK_IMAGE (wimage).
4297
dd4c5104
DN
42982010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4299
898b4c5c
DN
4300 * atimer.c: Use "" instead of <> for local includes for
4301 consistency with the rest of the code.
4302
dd4c5104
DN
4303 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4304 * xrdb.c (get_system_name):
4305 * window.c (shrink_windows):
4306 * syntax.c (forw_comment):
4307 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4308 (ins_del_costs):
4309 * mem-limits.h (start_of_data):
4310 * lread.c (readevalloop):
4311 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4312 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4313 * frame.c (x_get_focus_frame):
4314 * floatfns.c (fmod_float):
4315 * fileio.c (choose_write_coding_system):
4316 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4317 (malloc_initialize_hook, sort_args, synchronize_locale):
4318 * doprnt.c (doprnt):
4319 * dired.c (compile_pattern):
4320 * data.c (fmod_float):
4321 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4322 (map_char_table_for_charset):
4323 * charset.c (define_charset_internal):
4324 * alloc.c (Fgarbage_collect): Convert declarations or definitions
4325 to standard C.
4326
9a39b306 43272010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 4328 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
4329
4330 * lread.c (read1): Fix up last change to not mess up `c'.
4331
e6cb2cbb
JB
43322010-07-04 Juanma Barranquero <lekktu@gmail.com>
4333
4334 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4335
438105ed
JB
43362010-07-04 Juanma Barranquero <lekktu@gmail.com>
4337
4338 Fix prototypes.
4339
e5447b22 4340 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 4341 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
4342 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4343 arg, as required by internal_condition_case_1.
dcc7404b 4344 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
4345 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4346 (analyse_first): Fix "const const".
e5447b22 4347 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 4348 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 4349 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 4350
971de7fb
DN
43512010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
4352
4353 * alloc.c: Convert function definitions to standard C.
4354 * atimer.c:
4355 * bidi.c:
4356 * bytecode.c:
4357 * callint.c:
4358 * callproc.c:
4359 * casefiddle.c:
4360 * casetab.c:
4361 * category.c:
4362 * ccl.c:
4363 * character.c:
4364 * charset.c:
4365 * chartab.c:
4366 * cmds.c:
4367 * coding.c:
4368 * composite.c:
4369 * data.c:
4370 * dbusbind.c:
4371 * dired.c:
4372 * dispnew.c:
4373 * doc.c:
4374 * doprnt.c:
4375 * ecrt0.c:
4376 * editfns.c:
4377 * fileio.c:
4378 * filelock.c:
4379 * filemode.c:
4380 * fns.c:
4381 * font.c:
4382 * fontset.c:
4383 * frame.c:
4384 * fringe.c:
4385 * ftfont.c:
4386 * ftxfont.c:
4387 * gtkutil.c:
4388 * indent.c:
4389 * insdel.c:
4390 * intervals.c:
4391 * keymap.c:
4392 * lread.c:
4393 * macros.c:
4394 * marker.c:
4395 * md5.c:
4396 * menu.c:
4397 * minibuf.c:
4398 * prefix-args.c:
4399 * print.c:
4400 * ralloc.c:
4401 * regex.c:
4402 * region-cache.c:
4403 * scroll.c:
4404 * search.c:
4405 * sound.c:
4406 * strftime.c:
4407 * syntax.c:
4408 * sysdep.c:
4409 * termcap.c:
4410 * terminal.c:
4411 * terminfo.c:
4412 * textprop.c:
4413 * tparam.c:
4414 * undo.c:
4415 * unexelf.c:
4416 * window.c:
4417 * xfaces.c:
4418 * xfns.c:
4419 * xfont.c:
4420 * xftfont.c:
4421 * xgselect.c:
4422 * xmenu.c:
4423 * xrdb.c:
4424 * xselect.c:
4425 * xsettings.c:
4426 * xsmfns.c:
4427 * xterm.c: Likewise.
4428
ae492bec
EZ
44292010-07-03 Eli Zaretskii <eliz@gnu.org>
4430
76ea4cc9
EZ
4431 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
4432 frames other than the initial one. Fix reversal of colors when
4433 `reverse' is specified in the frame parameters. Call
4434 update_face_from_frame_parameter instead of
4435 internal-set-lisp-face-attribute. Initialize screen colors from
4436 initial_screen_colors[] when f->default_face_done_p is zero,
4437 instead of depending on being called with default-frame-alist as
4438 the alist argument.
4439
4440 * xfaces.c (update_face_from_frame_parameter): Move out of
4441 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
4442 with HAVE_WINDOW_SYSTEM.
4443
1e6255ae
EZ
4444 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4445 to menu-bar-mode, if not set in the frame parameters or in
4446 default-frame-alist.
4447
ae492bec
EZ
4448 * w32console.c (sys_tputs): Adjust argument list to prototype in
4449 term.c.
4450
3a35a84c
JB
44512010-07-03 Juanma Barranquero <lekktu@gmail.com>
4452
4453 * lisp.h (memory_warnings): Fix prototype.
4454
4455 * cm.h (evalcost): Fix prototype.
4456
4457 * cm.c (evalcost): Fix arg type.
4458
c532d349
DN
44592010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4460
4461 * term.c (term_clear_mouse_face, Fidentity):
4462 * syssignal.h (signal_handler_t):
4463 * lisp.h (memory_warnings):
4464 * coding.h (preferred_coding_system):
4465 * cm.h (evalcost):
4466 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4467
c0b36d46
EZ
44682010-07-02 Eli Zaretskii <eliz@gnu.org>
4469
4470 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4471 from prototypes.
4472
4473 * msdos.h (load_pixmap): Don't define away.
4474
383e0970
J
44752010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4476
f57e2426
J
4477 * lisp.h:
4478 * atimer.h: Remove define for P_.
4479
4480 * alloc.c: Remove __P and P_ from .c and .m files.
4481 * atimer.c:
4482 * buffer.c:
4483 * callint.c:
4484 * category.c:
4485 * charset.c:
4486 * chartab.c:
4487 * cm.c:
4488 * coding.c:
4489 * composite.c:
4490 * data.c:
4491 * dired.c:
4492 * dispnew.c:
4493 * doc.c:
4494 * editfns.c:
4495 * emacs.c:
4496 * eval.c:
4497 * fileio.c:
4498 * filelock.c:
4499 * fns.c:
4500 * font.c:
4501 * fontset.c:
4502 * frame.c:
4503 * ftfont.c:
4504 * ftxfont.c:
4505 * gmalloc.c:
4506 * gtkutil.c:
4507 * image.c:
4508 * indent.c:
4509 * intervals.c:
4510 * keyboard.c:
4511 * keymap.c:
4512 * lread.c:
4513 * marker.c:
4514 * menu.c:
4515 * minibuf.c:
4516 * print.c:
4517 * process.c:
4518 * scroll.c:
4519 * search.c:
4520 * sound.c:
4521 * strftime.c:
4522 * syntax.c:
4523 * sysdep.c:
4524 * term.c:
4525 * terminal.c:
4526 * textprop.c:
4527 * unexalpha.c:
4528 * w32console.c:
4529 * w32fns.c:
4530 * w32font.c:
4531 * w32menu.c:
4532 * w32term.c:
4533 * w32uniscribe.c:
4534 * window.c:
4535 * xdisp.c:
4536 * xfaces.c:
4537 * xfns.c:
4538 * xfont.c:
4539 * xftfont.c:
4540 * xmenu.c:
4541 * xselect.c:
4542 * xterm.c: Likewise.
4543
383e0970 4544 Remove P_ and __P macros.
f57e2426
J
4545 * atimer.h: Remove P_ and __P macros.
4546 * buffer.h:
383e0970
J
4547 * category.h:
4548 * ccl.h:
4549 * character.h:
4550 * charset.h:
4551 * cm.h:
4552 * coding.h:
4553 * composite.h:
4554 * dispextern.h:
4555 * disptab.h:
9e892c8d 4556 * dosfns.h:
383e0970
J
4557 * font.h:
4558 * fontset.h:
4559 * frame.h:
4560 * gtkutil.h:
4561 * indent.h:
4562 * intervals.h:
4563 * keyboard.h:
4564 * keymap.h:
4565 * lisp.h:
4566 * macros.h:
4567 * md5.h:
4568 * menu.h:
4569 * msdos.h:
4570 * nsterm.h:
4571 * puresize.h:
4572 * region-cache.h:
4573 * syntax.h:
4574 * syssignal.h:
4575 * systime.h:
4576 * termhooks.h:
9e892c8d 4577 * w32font.h:
383e0970
J
4578 * w32term.h:
4579 * widget.h:
4580 * window.h:
4581 * xgselect.h:
4582 * xsettings.h:
4583 * xterm.h: Likewise.
4584
98601119
DN
45852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4586
d9170db5
DN
4587 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4588
98601119
DN
4589 Cleanup old code.
4590 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4591 * syssignal.h: Remove code for Lynx, not supported anymore.
4592 * vm-limit.c: Remove unused code the depends on emacs not being
4593 defined and NO_LIM_DATA being defined.
4594 * mem-limits.h: Remove dead code.
4595
1f984e12
J
45962010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4597
c49d071a
J
4598 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4599
9d5405ec
J
4600 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4601 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4602
7a18115b
J
4603 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4604 parameters, they are already absolute.
4605
a628ad9d
JB
4606 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4607 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 4608
a628ad9d 4609 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 4610
a628ad9d
JB
4611 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4612 Update FRAME_TOOLBAR_HEIGHT.
581a8100 4613
a628ad9d
JB
4614 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4615 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 4616
c1ef4455
CY
46172010-06-30 Chong Yidong <cyd@stupidchicken.com>
4618
4619 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4620 check default-frame-alist.
4621
ce8f5a9a
AS
46222010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4623
4624 * process.c (create_process): Avoid using invalid file descriptors.
4625
4626 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4627
bf935339
J
46282010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4629
4630 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4631 Improve documentation. Return font regardless of use_system_font.
4632 (syms_of_xsettings): Improve documentation for font-use-system-font.
4633
7c33a057
CY
46342010-07-10 Chong Yidong <cyd@stupidchicken.com>
4635
2ec1b5ee
CY
4636 * xfaces.c (realize_face): Garbage the frame if a face is removed
4637 (Bug#6593).
4638
46392010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4640
4641 * keyboard.c: Remove duplicate <setjmp.h>.
4642 (read_key_sequence): Remove volatile qualifiers.
4643
46442010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4645
4646 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4647 (struct glyph_row): New members left_fringe_offset and
4648 right_fringe_offset.
4649
4650 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4651 specially.
4652 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4653 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4654
4655 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 4656 Take account of bitmap offset.
2ec1b5ee
CY
4657 (draw_window_fringes): Take account of window vscroll.
4658 (update_window_fringes): Likewise. Extend top-aligned top indicator
4659 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4660 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4661 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4662
46632010-07-04 Juanma Barranquero <lekktu@gmail.com>
4664
4665 * w32fns.c (Qtooltip): Declare.
4666 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4667
46682010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4669
4670 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4671 grab on just Press (Bug#6499).
4672
46732010-07-02 Chong Yidong <cyd@stupidchicken.com>
4674
4675 * frame.c (Qtooltip): New var.
4676 (delete_frame): Use it. Fix faulty if statement. Don't update
4677 mode line for tooltip frames. Suggested by Martin Rudalics.
4678
4679 * xfns.c (x_create_tip_frame):
4680 * w32fns.c (x_create_tip_frame): Use it.
4681
46822010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
4683
4684 * xftfont.c (xftfont_open): Check font width one by one also when
4685 spacing is dual.
4686
4687 * ftfont.c (ftfont_open): Ditto.
4688
6259c2ec
GM
46892010-06-30 Glenn Morris <rgm@gnu.org>
4690
a46007e9
GM
4691 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4692
6259c2ec
GM
4693 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4694
4695 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4696 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4697 * s/darwin.h (SYSTEM_MALLOC):
4698 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4699
5d1d3d04
J
47002010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4701
4702 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4703 (ns_get_screen): Don't assign integer to f.
4704 (Fx_display_color_cells): Declarations before statements.
4705
e547b051
J
47062010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4707
5fc8e5bc
J
4708 * xfns.c (x_default_font_parameter): Remove got_from_system
4709 (Bug#6526).
4710
e547b051
J
4711 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4712 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4713 defines based on what configure finds.
4714
4715 * xterm.c (XTflash): Use gtk_widget_get_window.
4716 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4717 gtk_adjustment_get_page_size.
4718 (handle_one_xevent): Use gtk_widget_get_mapped.
4719 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4720 messages.
4721
4722 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4723
4724 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4725 HAVE_GTK_FILE_SELECTION_NEW.
4726
4727 * gtkutil.c (xg_display_open, xg_display_close): Remove
4728 HAVE_GTK_MULTIDISPLAY, it is always defined.
4729 (xg_display_open): Return type is void.
4730 (gtk_widget_set_has_window)
4731 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4732 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4733 (gtk_adjustment_set_page_increment)
4734 (gtk_adjustment_get_step_increment): #define these if not found
4735 by configure.
4736 (remove_submenu): New define based on Gtk+ version.
4737 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4738 gtk_widget_get_window.
4739 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4740 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4741 (create_dialog): Use gtk_dialog_get_action_area and
4742 gtk_dialog_get_content_area.
4743 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4744 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4745 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4746 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4747 g_object_ref and g_object_unref.
4748 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4749 gtk_widget_get_sensitive.
4750 (xg_update_submenu): Use remove_submenu.
4751 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4752 properties instead to get old x and y position.
4753 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4754 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 4755 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
4756 (xg_get_tool_bar_widgets): New function.
4757 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4758 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4759 (toolbar_set_orientation): New #define based on if configure
4760 finds gtk_orientable_set_orientation.
4761 (xg_create_tool_bar): Call toolbar_set_orientation.
4762 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4763 instead of gtk_box_pack_start_defaults.
4764
b9229673
CY
47652010-06-28 Chong Yidong <cyd@stupidchicken.com>
4766
4767 * cmds.c (Fdelete_backward_char): Move into Lisp.
4768
bbc803b0
DN
47692010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4770
4771 * s/freebsd.h (BSD4_2): Remove redundant definition.
4772 bsd-common.h defines it already.
4773
6431f2e6
CY
47742010-06-27 Chong Yidong <cyd@stupidchicken.com>
4775
4776 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4777 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4778 tool-bar-mode, which are now set using these X resources at
4779 startup, to determine the defaults (Bug#2249).
4780
4781 * w32fns.c (Fx_create_frame):
4782 * nsfns.m (Fx_create_frame): Likewise.
4783
4784 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4785
8c079ebb
JB
47862010-06-24 Juanma Barranquero <lekktu@gmail.com>
4787
4788 * gtkutil.c (xg_update_scrollbar_pos):
4789 Avoid C99 mid-block variable declaration.
4790
e9b7ab96
JD
47912010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4792
bc869eca
JD
4793 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4794
2b7e356a 4795 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
4796
4797 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4798 if height is less than scroll bar min size.
4799 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4800
e9b7ab96
JD
4801 * xfns.c (x_default_font_parameter): Try to open font from system
4802 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4803
a628ad9d 48042010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
4805
4806 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4807
70c4cfbb
EZ
48082010-06-20 Eli Zaretskii <eliz@gnu.org>
4809
4810 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4811 most-positive-fixnum, be extra accurate when scrolling window
4812 start, to avoid missing the cursor line.
4813
ad5a12b5
EZ
48142010-06-19 Eli Zaretskii <eliz@gnu.org>
4815
4816 * xdisp.c (try_scrolling): Compute the limit for searching point
4817 in forward scroll from scroll_max, instead of an arbitrary limit
4818 of 10 screen lines. See
4819 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4820 and
4821 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4822 for details.
4823
2a64315a 48242010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
4825
4826 * editfns.c (Fbyte_to_string): Pacify compiler.
4827
288cf4e9
SM
48282010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4829
4830 * lread.c (read1): Phase out old-style backquotes a bit more.
4831
6e6e5760
EZ
48322010-06-12 Eli Zaretskii <eliz@gnu.org>
4833
cbc4fd20
EZ
4834 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4835 bidimirror.h.
4836
4837 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4838
317fbf33
EZ
4839 * bidi.c (bidi_initialize): Remove explicit initialization of
4840 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 4841 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 4842 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
4843
4844 * biditype.h: New file.
4845
cbc4fd20
EZ
4846 * bidimirror.h: New file.
4847
6e6e5760
EZ
4848 * window.c (syms_of_window): Doc fix (bug#6409).
4849
4176cba2
RF
48502010-06-12 Romain Francoise <romain@orebokech.com>
4851
4852 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4853 ediff-hook.
4854
cb4bfcb5
GM
48552010-06-10 Glenn Morris <rgm@gnu.org>
4856
64c60c2f
GM
4857 * editfns.c (Fbyte_to_string): Pacify compiler.
4858
cb4bfcb5
GM
4859 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4860
2ec1b5ee
CY
48612010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4862
4863 * alloc.c (Fmake_byte_code): Don't access undefined argument
4864 (Bug#6517).
4865
48662010-06-25 Chong Yidong <cyd@stupidchicken.com>
4867
4868 * xdisp.c (next_element_from_image): Ensure that after-strings are
4869 read the next time we hit handle_stop (Bug#1336).
4870
48712010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4872
4873 * lread.c (read1): Signal error if #s is not followed by paren.
4874
48752010-06-19 Chong Yidong <cyd@stupidchicken.com>
4876
4877 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4878
4879 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4880
48812010-06-15 Glenn Morris <rgm@gnu.org>
4882
4883 * editfns.c (Fbyte_to_string): Pacify compiler.
4884
e454a4a3
SM
48852010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4886
4887 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4888 Check `object's type before accessing its guts.
4889
c1b1acc2
DN
48902010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4891
4892 * s/usg5-4.h: Fix previous change.
4893 Suggested by Lawrence Mitchell <wence@gmx.li>
4894
657d4c0b
AS
48952010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4896
4897 * minibuf.c (Fall_completions): Add more checks.
4898
9b27fd9f
JB
48992010-06-08 Juanma Barranquero <lekktu@gmail.com>
4900
4901 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4902
a99ebb40
DN
49032010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4904
d7c5d87d
DN
4905 * lread.c (X_OK): Remove, unused.
4906
0263a941
DN
4907 * dispnew.c: Remove obsolete comment.
4908
a99ebb40
DN
4909 Remove INCLUDED_FCNTL.
4910 * xterm.c (INCLUDED_FCNTL):
4911 * callproc.c (INCLUDED_FCNTL):
4912 * alloc.c (INCLUDED_FCNTL):
4913 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4914 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4915
13b5221f
MR
49162010-06-07 Martin Rudalics <rudalics@gmx.at>
4917
4918 * window.c (Fselect_window): Move `record_buffer' up to the
4919 beginning of this function, so the buffer gets recorded
4920 even if the selected window does not change.
4921 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4922
5220357f
JB
49232010-06-07 Juanma Barranquero <lekktu@gmail.com>
4924
4925 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4926 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4927
3085237c
DN
49282010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4929
4930 Remove BSTRING related code, all platforms define it.
4931 * s/usg5-4.h (BSTRING): Remove definition.
4932 * s/template.h (BSTRING):
4933 * s/msdos.h (BSTRING):
4934 * s/ms-w32.h (BSTRING):
4935 * s/hpux10-20.h (BSTRING):
4936 * s/gnu-linux.h (BSTRING):
4937 * s/darwin.h (BSTRING):
4938 * s/cygwin.h (BSTRING):
4939 * s/bsd-common.h (BSTRING):
4940 * s/aix4-2.h (BSTRING): Likewise.
4941 * sysdep.c: Remove code depending on BSTRING not being defined.
4942
409f2919
JB
49432010-06-05 Juanma Barranquero <lekktu@gmail.com>
4944
4945 Remove obsolete macro BASE_LEADING_CODE_P.
4946 * character.h (BASE_LEADING_CODE_P): Remove.
4947 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4948 * buffer.c (Fset_buffer_multibyte):
4949 * indent.c (scan_for_column, compute_motion):
4950 * insdel.c (count_combining_before, count_combining_after):
4951 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4952
087fc47a
JB
49532010-06-04 Juanma Barranquero <lekktu@gmail.com>
4954
4955 Turn `directory-sep-char' into a noop.
4956
4957 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4958 (DIRECTORY_SEP): Define unconditionally.
4959
4960 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4961
4962 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4963 call dostounix_filename directly.
4964
4965 * fileio.c (CORRECT_DIR_SEPS): Remove.
4966 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4967 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4968 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4969 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4970
4971 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4972 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4973
0eb7675e
AS
49742010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4975
a628ad9d
JB
4976 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4977 (Bug#6346)
0eb7675e 4978
78edd3b7
JB
49792010-06-03 Juanma Barranquero <lekktu@gmail.com>
4980
4981 * ccl.c (Fccl_program_p): Fix typo in docstring.
4982
eb697db5
DN
49832010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4984
4985 Move UNEXEC definition to autoconf.
4986 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4987 * s/sol2-10.h (UNEXEC):
4988 * s/irix6-5.h (UNEXEC):
4989 * s/hpux10-20.h (UNEXEC):
4990 * s/gnu-linux.h (UNEXEC):
4991 * s/darwin.h (UNEXEC):
4992 * s/cygwin.h (UNEXEC):
4993 * s/bsd-common.h (UNEXEC):
4994 * s/aix4-2.h (UNEXEC):
4995 * m/alpha.h (UNEXEC): Likewise.
4996 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4997
aa3830c4
JB
49982010-06-03 Juanma Barranquero <lekktu@gmail.com>
4999
5000 Remove obsolete pre-unicode2 macros.
5001 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
5002 * composite.c (composition_reseat_it):
5003 * data.c (Faset):
5004 * fns.c (Ffillarray):
5005 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
5006 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
5007
d234d13e
JL
50082010-06-03 Juri Linkov <juri@jurta.org>
5009
5010 * buffer.c (Fother_buffer): Add CHECK_FRAME.
5011 (Fswitch_to_buffer): Remove unused variable `err'.
5012
0d4bcf4d
GM
50132010-06-03 Glenn Morris <rgm@gnu.org>
5014
e23dc1e2
GM
5015 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
5016
05b09564
GM
5017 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
5018 now that AH_BOTTOM does it.
5019
824e2978
GM
5020 * m/hp800.h (HAVE_ALLOCA):
5021 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
5022
0d4bcf4d
GM
5023 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
5024 Remove NOT_C_CODE tests, it is always true now.
5025
c55d2abf
DN
50262010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
5027
08a494a3
DN
5028 Fix config.h includes.
5029 * xsettings.c:
5030 * xgselect.c:
5031 * nsterm.m:
5032 * nsselect.m:
5033 * nsimage.m:
5034 * nsfont.m:
5035 * nsfns.m:
5036 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
5037 other files do.
5038
75934b1d
DN
5039 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
5040
9f32a766
DN
5041 * s/sol2-6.h: Remove obsolete comments.
5042
c55d2abf
DN
5043 Remove unnecessary alloca.h includes.
5044 * keymap.c: Do not include alloca.h, config.h does that.
5045 * sysdep.c: Likewise. Do not define fwrite, not used.
5046
06ac62b4
SM
50472010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5048
5049 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
5050 the HAVE_TERMIO where it belongs (bug#6149).
5051
1ab8293c
SM
50522010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5053
5054 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
5055 of bug#6305).
5056
6dcfd253
EZ
50572010-05-30 Eli Zaretskii <eliz@gnu.org>
5058
5059 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
5060 state is always cached (bug#6306).
5061
6d26bbb2
EZ
50622010-05-29 Eli Zaretskii <eliz@gnu.org>
5063
06fa4a23
EZ
5064 Fix cursor motion in bidi-reordered continued lines.
5065 * xdisp.c (try_cursor_movement): Backup to non-continuation line
5066 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
5067 over continuation lines in bidi-reordered buffers. Return
5068 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
5069 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
5070
f5783df3
MA
50712010-05-28 Michael Albinus <michael.albinus@gmx.de>
5072
5073 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
5074
7d56b2dd
KH
50752010-05-28 Kenichi Handa <handa@m17n.org>
5076
5077 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
5078 Don't sheck SPEC if it is nil.
5079 (font_list_entities): Call font_delete_unmatched if
b925d231 5080 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 5081
e58d4ff7
GM
50822010-05-28 Glenn Morris <rgm@gnu.org>
5083
5084 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
5085
f1a5d776
CY
50862010-05-27 Chong Yidong <cyd@stupidchicken.com>
5087
5088 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
5089 whether to trash.
5090 (internal_delete_file, Frename_file): Callers changed.
5091 (delete_by_moving_to_trash): Doc fix.
5092 (Fdelete_directory_internal): Don't move to trash.
5093
5094 * callproc.c (delete_temp_file):
5095 * buffer.c (Fkill_buffer): Callers changed.
5096
5097 * lisp.h: Update prototype.
5098
f44a59e6
CY
50992010-05-27 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * xdisp.c (redisplay_window): After redisplay, check if point is
5102 still valid before setting it (Bug#6177).
5103
81ac4f35
GM
51042010-05-27 Glenn Morris <rgm@gnu.org>
5105
5106 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
5107 Convert comments to Makefile format.
5108
5109 * Makefile.in (bootstrap-clean): No more Makefile.c.
5110
ccd89fb3
GM
51112010-05-26 Glenn Morris <rgm@gnu.org>
5112
90278cb6
GM
5113 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
5114 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
5115
ccd89fb3
GM
5116 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5117 Remove.
5118 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5119
b7050583
KH
51202010-05-26 Kenichi Handa <handa@m17n.org>
5121
5122 * composite.c (composition_compute_stop_pos): Fix condition for
5123 backward scanning.
5124
e5458003
GM
51252010-05-25 Glenn Morris <rgm@gnu.org>
5126
c345fe90
GM
5127 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5128 Move before TEMACS_LDFLAGS.
5129 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5130 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5131
2e0689ab
GM
5132 * Makefile.in (NOT_C_CODE): No longer define.
5133 (config.h): No longer include.
5134
8009a5e8
GM
5135 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
5136 variables it may reference.
5137
e5458003
GM
5138 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
5139 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5140
10f72a37
KH
51412010-05-25 Kenichi Handa <handa@m17n.org>
5142
5143 * dispextern.h (struct composition_it): New members rule_idx and
5144 charpos.
5145
5146 * xdisp.c (set_iterator_to_next): While scanning backward, assume
5147 that the character positions of IT point the last character of the
5148 current grapheme cluster.
5149 (next_element_from_composition): Don't change character positions
5150 of IT.
5151 (append_composite_glyph): Set glyph->charpos to
5152 it->cmp_it.charpos.
5153
5154 * composite.c (autocmp_chars): Change the first argument to RULE,
5155 and try composition with RULE only.
5156 (composition_compute_stop_pos): Record the index number of the
5157 composition rule in CMP_IT->rule_idx.
5158 (composition_reseat_it): Call autocmp_chars repeatedly until the
5159 correct rule of the composition is found.
5160 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
5161 is at the last character of the current grapheme cluster when
5162 CMP_IT->reversed_p is nonzero.
5163
171eda53 51642010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 5165
171eda53
SM
5166 * editfns.c (Fbyte_to_string): New function.
5167
66a9f7f4
SM
51682010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
5169
5170 * process.c (Fmake_network_process): Set :host to nil if it's not used.
5171 Suggested by Masatake YAMATO <yamato@redhat.com>.
5172
d8c315d1
EZ
51732010-05-23 Eli Zaretskii <eliz@gnu.org>
5174
171eda53 5175 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 5176
f5b416d2 51772010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
5178
5179 * s/netbsd.h: If terminfo is found, use it in preference to
5180 termcap. (Bug#6190) [Backport from trunk]
5181
0416466c
EZ
51822010-05-19 Eli Zaretskii <eliz@gnu.org>
5183
11117830 5184 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
5185
5186 * dispextern.h (struct glyph_row): New members minpos and maxpos.
5187 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
5188 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
5189 and maxpos members instead of start.pos and end.pos, respectively.
5190
5191 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
5192 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
5193 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
5194 (try_window_reusing_current_matrix, try_window_id):
5195 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
5196 (init_from_display_pos, init_iterator): Use EMACS_INT for
5197 character and byte positions.
66a9f7f4 5198 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
5199 arguments for minimum and maximum buffer positions seen by
5200 display_line for this row. Don't use iterator to find the
5201 position following the maximum one; instead, increment the
11117830
EZ
5202 position found by display_line directly. Fix logic; eol_pos
5203 should be tested before the rest. Handle the case of characters
5204 delivered from display vector (bug#6036). Fix tests related to
5205 it->method. Handle the truncated_on_right_p rows.
5206 (RECORD_MAX_MIN_POS): New macro.
5207 (display_line): Use it to record the minimum and maximum buffer
5208 positions for glyphs in the row being assembled. Record the
5209 position of the newline that terminates the line. If word wrap is
5210 in effect, restore minimum and maximum positions seen up to the
5211 wrap point, when iterator returns to it.
5212 (try_window_reusing_current_matrix): Give up if in bidi-reordered
5213 row and cursor not already at point. Restore original pre-bidi
5214 code for unidirectional buffers.
d36fe237
EZ
5215
5216 * dispnew.c (increment_row_positions, check_matrix_invariants):
5217 Increment and check row->start.pos and row->end.pos, in addition
5218 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
5219
11117830
EZ
5220 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
5221 Display truncated_on_left_p and truncated_on_right_p flags.
5222 Formatting fixes.
5223 (pmtxrows): Display the ordinal number of each row. Don't display
5224 rows beyond the last one.
5225
5226 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
5227 it is not copied by bidi_copy_it.
5228
6e83d800
EZ
52292010-05-22 Eli Zaretskii <eliz@gnu.org>
5230
5231 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
5232 (Bug#6237)
5233
110683ad
CY
52342010-05-22 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * image.c (Fimage_flush): Rename from image-refresh.
5237
98fe5161
CY
52382010-05-21 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5241 just one window.
5242
5243 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5244 (clear_image_cache): If the number of cached images is unusually
5245 large, decrease the cache eviction delay (Bug#6230).
5246
e8752c66
GM
52472010-05-21 Glenn Morris <rgm@gnu.org>
5248
66dbf213
GM
5249 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5250 Move these rules to ns.mk.
5251 * ns.mk: New file.
5252
04384b2d
GM
5253 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5254
e8752c66
GM
5255 * Makefile.in (CANNOT_DUMP): New, set by configure.
5256 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5257
2e2bbddb
JL
52582010-05-20 Juri Linkov <juri@jurta.org>
5259
5260 * fileio.c (Fdelete_file): Change interative spec to use
5261 `read-file-name' like in `find-file-read-args' where the default
5262 value is `default-directory' instead of `buffer-file-name'.
5263 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
5264
31c4aaf6
KR
52652010-05-20 Kevin Ryde <user42@zip.com.au>
5266
5267 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
5268 (Voverriding_terminal_local_map, Vsystem_key_alist)
5269 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
5270
9d5cf9b6
GM
52712010-05-20 Glenn Morris <rgm@gnu.org>
5272
5273 * Makefile.in (DEPDIR): New constant.
5274 (DEPFLAGS): Set with configure, not cpp.
5275 (MKDEPDIR): New, set by configure.
5276 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
5277 (clean): Use $DEPDIR.
5278 (deps_frag): Include from configure.
5279 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
5280 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
5281
ead6f8f5
EZ
5282 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
5283 reallocation of the cache. (Bug#6210)
5284
7f34aec3
GM
52852010-05-19 Glenn Morris <rgm@gnu.org>
5286
d494e8f2
GM
5287 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
5288
c1d0dcfd
GM
5289 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
5290 (GNULIB_VAR): Remove.
5291 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
5292
5293 * m/ibms390x.h (LINKER):
5294 * m/macppc.h (LINKER) [GNU_LINUX]:
5295 * s/aix4-2.h (ORDINARY_LINK):
5296 * s/cygwin.h (LINKER):
5297 * s/darwin.h (ORDINARY_LINK):
5298 * s/gnu.h (ORDINARY_LINK):
5299 * s/netbsd.h (LINKER):
5300 * s/usg5-4.h (ORDINARY_LINK):
5301 Move to configure.
5302
7f34aec3
GM
5303 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
5304
754790b6
CY
53052010-05-18 Chong Yidong <cyd@stupidchicken.com>
5306
5307 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
5308 prevent stack overflow if number of arguments is too large
5309 (Bug#6214).
5310
161e44d1
JB
53112010-05-18 Juanma Barranquero <lekktu@gmail.com>
5312
5313 * charset.c (load_charset_map_from_file): Don't call close after fclose.
5314
be4ff9da
GM
53152010-05-18 Glenn Morris <rgm@gnu.org>
5316
9539dc5d
GM
5317 * s/gnu-linux.h: Combine two conditionals.
5318
5319 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
5320 $(POST_ALLOC_OBJ).
5321
40dc6bf4
GM
5322 * Makefile.in (RALLOC_OBJ): New, set by configure.
5323 (rallocobj): Replace with the previous variable.
5324 (otherobj): Use $RALLOC_OBJ.
5325
5326 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
5327 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
5328
be4ff9da
GM
5329 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
5330 (gmallocobj, vmlimitobj): Replace with previous two variables.
5331 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
5332
16455a85
GM
53332010-05-17 Glenn Morris <rgm@gnu.org>
5334
5335 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
5336 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
5337
5fdb7468
GM
53382010-05-16 Glenn Morris <rgm@gnu.org>
5339
7ca1f3f9
GM
5340 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
5341
7541dad5
GM
5342 * Makefile.in (clean): Get rid of HAVE_NS conditional.
5343
da53fab9
GM
5344 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
5345 trailing "/".
5346
b02a6645
GM
5347 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
5348 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
5349
8877ca0f
GM
5350 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
5351 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5352 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
5353 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
5354 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
5355
5fdb7468
GM
5356 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
5357 Remove ${STARTFLAGS}, nothing ever sets it.
5358
95adb4b1
DN
53592010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5360
5361 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5362
676b6304
GM
53632010-05-16 Glenn Morris <rgm@gnu.org>
5364
9beab9ce
GM
5365 * Makefile.in (LIBX_BASE): Always define.
5366
8a95f0e7
GM
5367 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5368
676b6304
GM
5369 * Makefile.in (LIBXT): Always define.
5370
6e546d18
GM
53712010-05-15 Glenn Morris <rgm@gnu.org>
5372
4235ca47 5373 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 5374
6e546d18
GM
5375 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5376 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5377
8c5ff6dd
KR
53782010-05-15 Ken Raeburn <raeburn@raeburn.org>
5379
560bb7ae 5380 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
5381 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5382
8b4eb796
KR
5383 * emacs.c (main): Initialize initial-environment and
5384 process-environment before generating from env, not after.
5385
8c5ff6dd
KR
5386 Handle --version reasonably in CANNOT_DUMP configuration.
5387 * emacs.c (emacs_version, emacs_copyright): New string variables.
5388 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5389 (syms_of_emacs): Defvar them, and initialize them from the C
5390 string variables.
5391 (main): If initialization hasn't been done, print initial version
5392 info from the C strings, instead of starting an interactive session.
5393
dbd3f723
EZ
53942010-05-15 Eli Zaretskii <eliz@gnu.org>
5395
d20e1419
EZ
5396 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5397 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
5398 (bidi_paragraph_init): Remove redundant assertion that we are at
5399 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
5400
5401 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5402 (syms_of_xdisp): Defsubr it.
5403
d36fe237
EZ
5404 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5405
dbd3f723
EZ
5406 * Makefile.in: Fix MSDOS-related comments.
5407
02be533b
GM
54082010-05-15 Glenn Morris <rgm@gnu.org>
5409
1a82cca9
GM
5410 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5411 (really-lwlib, really-oldXMenu): Always define.
5412 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5413
3df7b338
GM
5414 * Makefile.in: Simplify cpp conditional.
5415
2b5f541b
GM
5416 * Makefile.in (${ns_appdir}): Simplify using umask.
5417
02be533b
GM
5418 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5419
4e2db1fe
SM
54202010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5421
5422 * eval.c (specbind): Remove left-over duplicate test.
5423 Disallow let-binding frame-local vars. Add comment.
5424
4b292a22
EZ
54252010-05-14 Eli Zaretskii <eliz@gnu.org>
5426
2fe72643 5427 Make the cache of bidi iterator states dynamically allocated.
1edbd309 5428 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
5429 (bidi_init_it): Call it.
5430 (bidi_cache_iterator_state): Enlarge the cache if needed.
5431
4e2db1fe 5432 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
5433 bidi_get_next_char_visually. All callers changed.
5434
82ebc97b
KH
54352010-05-14 Kenichi Handa <handa@m17n.org>
5436
5437 * dispextern.h (struct composition_it): New member reversed_p.
5438
5439 * composite.c (composition_compute_stop_pos): Search backward if
5440 ENDPOS < CHARPOS.
5441 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
5442 Set CMP_IT->reversed_p.
b4b6e17e 5443 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 5444
4e2db1fe
SM
5445 * xdisp.c (set_iterator_to_next):
5446 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
5447 scanning backward. Call composition_compute_stop_pos if scan
5448 direction is changed.
5449 (next_element_from_buffer): Call composition_compute_stop_pos with
5450 negative ENDPOS if we are scanning backward.
5451 (next_element_from_composition): Pay attention to
5452 IT->cmp_it.reversed_p.
5453
0e5d7800
KH
54542010-05-14 Kenichi Handa <handa@m17n.org>
5455
560bb7ae 5456 * font.c (font_range): Return the range for the font found at first.
0e5d7800 5457
cb027b32
GM
54582010-05-14 Glenn Morris <rgm@gnu.org>
5459
177b0288
GM
5460 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5461
fbc00890
GM
5462 * Makefile.in (mktime, X11, register): Move undefs to configure.
5463
f14d1dfd
GM
5464 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5465 (MSDOS_X_OBJ): New variable.
5466 (MSDOS_SUPPORT_REAL): New constant.
5467 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5468 (obj): Use MSDOS_X_OBJ.
5469 (lisp): Use MSDOS_SUPPORT as a variable.
5470
11842bd8
GM
5471 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5472 (GPM_MOUSE_SUPPORT): Now it's a constant.
5473 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5474 not cpp.
5475
489d31a4 5476 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 5477 (ns_appresdir): Remove, unused.
e20f1f07 5478
489d31a4
GM
5479 * Makefile.in (SHELL): Move outside cpp section.
5480
cb027b32
GM
5481 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5482
5a903aa9
GM
54832010-05-13 Glenn Morris <rgm@gnu.org>
5484
3369c79f
GM
5485 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5486 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5487
d5e982a6
GM
5488 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5489 HAVE_WINDOW_SYSTEM must be too.
5490
6192e163
GM
5491 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5492 (lisp): Remove WINNT_SUPPORT.
5493
472c5d6b
GM
5494 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5495 Let configure set these variables (to empty) in this case as well.
5496
0116466b
GM
5497 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5498 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5499
5a903aa9
GM
5500 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5501 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5502 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5503 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5504 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 5505 the values output by configure.
5a903aa9
GM
5506 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5507
1a0d7c06
GM
55082010-05-12 Glenn Morris <rgm@gnu.org>
5509
b5457f14
GM
5510 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5511 (LINKER_WAS_SPECIFIED): Remove.
5512
1a0d7c06
GM
5513 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5514 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5515 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5516 * s/cygwin.h (LIB_GCC):
5517 * s/freebsd.h (LIB_GCC):
5518 * s/gnu-linux.h (LIB_GCC):
5519 * s/msdos.h (LIB_GCC):
5520 * s/netbsd.h (LIB_GCC):
5521 Move to configure.
5522
3ffd4615 55232010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
5524
5525 * ftfont.c: Fix incorrect parentheses of #if condition for
5526 definining M17N_FLT_USE_NEW_FEATURE.
5527
acddf8ae
GM
55282010-05-11 Glenn Morris <rgm@gnu.org>
5529
5530 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5531 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5532
ae5e04fa
EZ
55332010-05-10 Eli Zaretskii <eliz@gnu.org>
5534
5535 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5536 unibyte buffers. See
5537 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5538
7490175b
GM
55392010-05-10 Glenn Morris <rgm@gnu.org>
5540
97efb629
GM
5541 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5542 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5543 (LIBES): Use LIBS_SYSTEM as a variable.
5544 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5545 * s/aix4-2.h (LIBS_SYSTEM):
5546 * s/freebsd.h (LIBS_SYSTEM):
5547 * s/hpux10-20.h (LIBS_SYSTEM):
5548 * s/sol2-6.h (LIBS_SYSTEM):
5549 * s/unixware.h (LIBS_SYSTEM):
5550 Move to configure.
5551
7490175b
GM
5552 * s/aix4-2.h (MAIL_USE_LOCKF):
5553 * s/bsd-common.h (MAIL_USE_FLOCK):
5554 * s/darwin.h (MAIL_USE_FLOCK):
5555 * s/gnu-linux.h (MAIL_USE_FLOCK):
5556 * s/irix6-5.h (MAIL_USE_FLOCK):
5557 * s/template.h (MAIL_USE_FLOCK):
5558 Move to configure.
5559
0235128c 55602010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
5561
5562 * Version 23.2 released.
5563
0235128c 55642010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
5565
5566 * composite.c (autocmp_chars): Save point as marker before calling
5567 auto-composition-function (Bug#5984).
5568
5569 * lisp.h (restore_point_unwind): Add prototype.
5570
5571 * fileio.c (restore_point_unwind): Remove static attribute.
5572
0235128c 55732010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
5574
5575 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5576 new feature of libotf and m17n-flt.
0235128c
SM
5577 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5578 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
5579 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5580 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5581 that OUT is NULL. Use OTF_drive_gsub_with_log and
5582 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5583 OTF_drive_gpos.
5584 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
5585 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5586 Setup mflt_enable_new_feature and mflt_try_otf.
5587
4721152c
J
55882010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5589
5590 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5591
5592 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5593 box and toolbar (Bug #6139).
5594 (xg_create_tool_bar): Remove comment (Bug #6139).
5595 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5596 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5597
ee0a16cf
JB
55982010-05-08 Juanma Barranquero <lekktu@gmail.com>
5599
5600 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5601 Update dependencies.
5602
96d79611
EZ
56032010-05-08 Eli Zaretskii <eliz@gnu.org>
5604
5605 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5606 R2L lines.
5607
40c17879
GM
56082010-05-08 Glenn Morris <rgm@gnu.org>
5609
7b42b29f
GM
5610 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5611
40c17879
GM
5612 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5613 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5614 (termcapobj): Replace with TERMCAP_OBJ.
5615 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5616 (LIBES): Use LIBS_TERMCAP as a variable.
5617
5618 * s/freebsd.h (osreldate.h): No longer include, since this file
5619 does not use __FreeBSD_version any more.
5620
5621 * s/aix4-2.h (TERMINFO):
5622 * s/cygwin.h (TERMINFO):
5623 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5624 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5625 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5626 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5627 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5628 * s/irix6-5.h (TERMINFO):
5629 * s/netbsd.h (LIBS_TERMCAP):
5630 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5631 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5632 * s/usg5-4.h (TERMINFO):
5633 Move to configure.
5634
94b612ad
SM
56352010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5636
5637 * eval.c (unbind_to): Don't unbind a local binding into the global
5638 binding when the local binding disappeared. Inversely, don't unbind
5639 a global binding into a newly created local binding.
5640 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5641 can specify the frame to use, when applicable. Adjust callers.
5642
15e12598 56432010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 5644 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
5645
5646 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5647
f724825e
EZ
56482010-05-07 Eli Zaretskii <eliz@gnu.org>
5649
5cba3209
EZ
5650 * w32fns.c: Include w32.h.
5651 (Fw32_shell_execute): Decode the error message before passing it
5652 to `error'. (Bug#6126)
5653
d16bdfc3
EZ
5654 * msdos.c (dos_set_window_size):
5655 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5656 instead of `XSYMBOL (foo)->value'.
5657
59d93e87
EZ
56582010-05-07 Eli Zaretskii <eliz@gnu.org>
5659
9fdec8bc
EZ
5660 Fix the MS-DOS build, broken by autoconfiscation.
5661
5662 * Makefile.in: Don't use Make-style comments past the "start of
5663 cpp stuff" line.
5664 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5665
5666 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5667 edited directly by msdos/sed1v2.inp).
f724825e 5668
2f86b22b
GM
56692010-05-07 Glenn Morris <rgm@gnu.org>
5670
5671 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5672 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5673 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5674 move out of cpp section.
5675 * s/freebsd.h (LD_SWITCH_SYSTEM):
5676 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5677 * s/netbsd.h (LD_SWITCH_SYSTEM):
5678 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5679
49ebbd65
DN
56802010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5681
5682 Define LIB_STANDARD and START_FILES using autoconf.
5683 * s/usg5-4.h (LIB_STANDARD):
5684 * s/netbsd.h (START_FILES):
5685 * s/irix6-5.h (LIB_STANDARD):
5686 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5687 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5688 * s/freebsd.h (START_FILES):
5689 * s/darwin.h (START_FILES):
5690 * s/cygwin.h (START_FILES):
5691 * s/aix4-2.h (LIB_STANDARD):
5692 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5693 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5694 autoconf, not cpp.
5695
d43c06d6
DN
56962010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5697
28823648
DN
5698 Remove NEED_BSDTTY and NEED_UNISTD_H.
5699 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5700 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5701 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5702 <sys/ptyio.h> and <unistd.h>.
5703
aca00430
DN
5704 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5705
d43c06d6
DN
5706 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5707 * s/gnu.h (START_FILES): Remove empty definition.
5708
3e56b11d
JD
57092010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5710
5711 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5712
e3cf0cde
GM
57132010-05-06 Glenn Morris <rgm@gnu.org>
5714
5715 * Makefile.in (CPP, LN_S): Remove unused variables.
5716
774b9a60
SM
57172010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5718
5719 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5720
4ab92842
LM
57212010-05-05 Lawrence Mitchell <wence@gmx.li>
5722
5723 * m/sparc.h: Fix typo in earlier change.
5724
178f2507
SM
57252010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5726
5727 Misc tweaks.
5728 * eval.c (Fdefvaralias): Remove unintended nested if.
5729 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5730
80f00217 57312010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
5732
5733 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5734
ef03a4e6
DN
57352010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5736
58eb6cf0
DN
5737 Remove BSD_PGRPS.
5738 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5739 * s/gnu-linux.h (BSD_PGRPS): Remove.
5740 * term.c (dissociate_if_controlling_tty):
5741 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5742 (init_sys_modes, reset_sys_modes):
5743 * emacs.c (main):
5744 * callproc.c (Fcall_process, child_setup): Remove code depending
5745 on BSD_PGRPS.
5746
ef03a4e6
DN
5747 Remove POSIX_SIGNALS.
5748 * s/usg5-4.h (POSIX_SIGNALS):
5749 * s/netbsd.h (POSIX_SIGNALS):
5750 * s/msdos.h (POSIX_SIGNALS):
5751 * s/ms-w32.h (POSIX_SIGNALS):
5752 * s/hpux11.h (POSIX_SIGNALS):
5753 * s/gnu.h (POSIX_SIGNALS):
5754 * s/gnu-linux.h (POSIX_SIGNALS):
5755 * s/freebsd.h (POSIX_SIGNALS):
5756 * s/darwin.h (POSIX_SIGNALS):
5757 * s/cygwin.h (POSIX_SIGNALS):
5758 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5759 * s/unixware.h:
5760 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5761 * process.c (create_process):
5762 * syssignal.h:
5763 * sysdep.c (wait_for_termination, init_signals):
5764 * process.c (create_process):
5765 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5766 remove all code that assumes the contrary.
5767
49628785
GM
57682010-05-04 Glenn Morris <rgm@gnu.org>
5769
27a2cdfc
GM
5770 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5771 variable.
5772 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5773 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5774 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5775 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5776 LD_SWITCH_SYSTEM_tmp.
5777 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5778 New variables, set by configure.
5779
eb21eab5
GM
5780 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5781 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5782 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5783 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5784 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5785
49628785
GM
5786 * s/aix4-2.h (C_SWITCH_SYSTEM):
5787 * m/alpha.h (C_SWITCH_MACHINE):
5788 Move to configure.in.
5789 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5790 New variables, set by configure.
5791 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5792 $c_switch_machine and $c_switch_system.
5793
7dff330b
DN
57942010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5795
5796 * s/hpux10-20.h (LIB_STANDARD): New definition.
5797 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5798 on it, not used anymore.
5799
53967e09
CY
58002010-05-03 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * eval.c (internal_condition_case_n): Rename from
5803 internal_condition_case_2.
5804 (internal_condition_case_2): New function.
5805
5806 * xdisp.c (safe_call): Use internal_condition_case_n.
5807
5808 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5809 (internal_delete_file, Frename_file): Callers changed.
5810
5811 * buffer.c (Fkill_buffer):
5812 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5813
5814 * lisp.h: Update prototypes.
5815
3dee6fdb
GM
58162010-05-03 Glenn Morris <rgm@gnu.org>
5817
5818 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5819 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5820 (LIBXT): Set with configure, not cpp.
5821 (LIBX): Remove.
5822 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5823
a101e0fb
DN
58242010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5825
5826 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5827 The FreeBSD is not needed, the default works, Solaris version is
5828 not needed, and the remaining case is not supported by configure.
5829
f63d0028
JD
58302010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5831
5832 * xsmfns.c (CHDIR_OPT): New define.
5833 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5834 restarting emacs.
5835
5836 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5837 shut_down_emacs.
5838
5839 * emacs.c (USAGE1): Mention --chdir.
5840 (main): Handle --chdir.
5841 (standard_args): Add --chdir.
5842 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5843 #5552).
5844
e4814a9f
DN
58452010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5846
cd03c74a
DN
5847 Remove LD_SWITCH_MACHINE.
5848 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5849 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5850
c3a398a1
DN
5851 Clean up IRIX code.
5852 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5853 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5854
87e7285c
DN
5855 Clean up AIX code.
5856 * m/ibmrs6000.inp: Remove file, unused.
5857 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5858 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5859 definition ...
5860 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5861
80f00217
JB
5862 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5863 unused.
e4814a9f 5864
59ca28de
EZ
58652010-05-01 Eli Zaretskii <eliz@gnu.org>
5866
197daef4
EZ
5867 Emulate POSIX_SIGNALS on MS-Windows.
5868
5869 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5870 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
5871
5872 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5873 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5874 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5875
80f00217
JB
5876 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5877 New stubs.
197daef4 5878
af7c7572
EZ
5879 Miscellaneous fixes of bidi display.
5880
59ca28de
EZ
5881 * xdisp.c (find_row_end): New function, refactored from display_line.
5882 (display_line): Use it.
017ea819
EZ
5883 (extend_face_to_end_of_line): In almost-filled rows, extend only
5884 if the row is R2L and not continued.
166e930d 5885 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 5886 Preserve overlay and string info in row->end.
166e930d
EZ
5887 (insert_left_trunc_glyphs): Support addition of left truncation
5888 glyphs to R2L rows.
b47e0dcf 5889 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
5890 glyph between adjacent windows. Fix a crash when a display string
5891 is continued to the next line. Don't return zero if cursor was
5892 found by `cursor' property of a display string.
b47e0dcf
EZ
5893 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5894 test for that explicitly.
59ca28de 5895
7acac9f4
GM
58962010-05-01 Glenn Morris <rgm@gnu.org>
5897
5898 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5899 for clarity.
5900 (OTHER_OBJ): Remove.
5901 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5902 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5903
45841e65
KK
59042010-05-01 Karel Klíč <kklic@redhat.com>
5905
5906 * fileio.c (Ffile_selinux_context): Context functions may return null.
5907
afc61943
DN
59082010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5909
80f00217 5910 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 5911
5a1bb006
GM
59122010-04-30 Glenn Morris <rgm@gnu.org>
5913
5914 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5915 (OTHER_OBJ): Define as a separate variable, for clarity.
5916
210af043
J
59172010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5918
5919 * xsettings.c: include limits.h and update file comment.
5920
0a7df391
GM
59212010-04-30 Glenn Morris <rgm@gnu.org>
5922
d5096f16
GM
5923 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5924 Set with configure, not cpp.
5925 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5926
7eb1ac33
GM
5927 * Makefile.in (mallocobj): Remove.
5928 (otherobj): Simplify using @OTHER_OBJ@.
5929
517d086b
GM
5930 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5931 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5932 Don't bother making nsgui.h dependency platform-specific.
5933
0a7df391
GM
5934 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5935
d6d23852
SM
59362010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5937
d2630aef
SM
5938 * process.c (read_process_output, exec_sentinel): Don't burp if the
5939 sentinel/filter kills the current buffer (bug#6060).
5940
f9dddf52 5941 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
5942 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5943 Remove unused var `args'.
5944 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5945 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5946 * doc.c (store_function_docstring): Use XSETCAR.
5947
f1e3642a
GM
59482010-04-28 Glenn Morris <rgm@gnu.org>
5949
faf535f8
GM
5950 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5951 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5952
c40f9449
GM
5953 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5954
658f86ca
GM
5955 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5956 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5957
bc0b5f61
GM
5958 * Makefile.in (FONT_OBJ): New, set by configure.
5959 (FONT_DRIVERS): Use $FONT_OBJ.
5960
294c50a0
GM
5961 * Makefile.in (LIBXMU): Set with configure, not cpp.
5962 * s/aix4-2.h (LIBXMU):
5963 * s/hpux10-20.h (LIBXMU):
5964 Remove definition, now set in configure.
5965
e6ec4e99
GM
5966 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5967
f1e3642a
GM
5968 * m/amdx86-64.h [i386]: Move this test to configure.in.
5969
c6ea2936
GM
59702010-04-27 Glenn Morris <rgm@gnu.org>
5971
8fdac2c3
GM
5972 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5973 * s/unixware.h (NEED_LIBW): Remove definition.
5974
986fb647
GM
5975 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5976 (TOOLKIT_LIBW): New, set by configure.
5977 (@X_TOOLKIT_TYPE@): No longer define it.
5978
c6ea2936
GM
5979 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5980 (MOTIF_LIBW): Set with configure, not cpp.
5981 * s/aix4-2.h (LIB_MOTIF):
5982 * s/gnu-linux.h (LIB_MOTIF):
5983 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5984
aaa36002
DN
59852010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5986
5987 Reduce CPP usage.
5988 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5989 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5990 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5991 definitions and undefs. Inline definitions in the only user.
5992 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5993
b678dd8b
GM
59942010-04-27 Glenn Morris <rgm@gnu.org>
5995
76cda504
GM
5996 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5997 since the defaults (set by the system file) are fine in most cases.
5998 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5999 * m/ibms390x.h (START_FILES, LIB_STANDARD):
6000 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
6001 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
6002 Remove definitions, since they are set correctly in s/gnu-linux.h.
6003 * s/freebsd.h (START_FILES, LIB_STANDARD):
6004 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6005 * s/hpux10-20.h (START_FILES):
6006 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
6007 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
6008
b678dd8b
GM
6009 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
6010 (MOTIF_LIBW): Use $LIBXP.
6011 (otherobj): Use $WIDGET_OBJ.
6012
9452ded1
DN
60132010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
6014
7e10844c
DN
6015 * Makefile.in (LIBS_MACHINE): Remove, unused.
6016
9452ded1
DN
6017 Use autoconf instead of cpp for LIB_MATH.
6018 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
6019 * s/cygwin.h (LIB_MATH): Likewise.
6020 * Makefile.in (LIB_MATH): Do not define with cpp.
6021 (LIBES): Use autoconf for LIB_MATH.
6022
fcebfc6a
KH
60232010-04-26 Kenichi Handa <handa@m17n.org>
6024
6025 * composite.c (Ffind_composition_internal): Fix the return value
6026 for an automatic composition.
6027
39e2ad1b
DN
60282010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
6029
6030 Remove all NO_ARG_ARRAY uses.
6031 * fns.c (concat2, concat3, nconc2):
6032 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
6033 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
6034 * m/xtensa.h (NO_ARG_ARRAY):
6035 * m/template.h (NO_ARG_ARRAY):
6036 * m/sparc.h (NO_ARG_ARRAY):
6037 * m/sh3.h (NO_ARG_ARRAY):
6038 * m/mips.h (NO_ARG_ARRAY):
6039 * m/macppc.h (NO_ARG_ARRAY):
6040 * m/iris4d.h (NO_ARG_ARRAY):
6041 * m/intel386.h (NO_ARG_ARRAY):
6042 * m/ibms390x.h (NO_ARG_ARRAY):
6043 * m/ibms390.h (NO_ARG_ARRAY):
6044 * m/ibmrs6000.h (NO_ARG_ARRAY):
6045 * m/ia64.h (NO_ARG_ARRAY):
6046 * m/hp800.h (NO_ARG_ARRAY):
6047 * m/arm.h (NO_ARG_ARRAY):
6048 * m/amdx86-64.h (NO_ARG_ARRAY):
6049 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
6050
adf4f59c
EZ
60512010-04-25 Eli Zaretskii <eliz@gnu.org>
6052
6bdf5d65
EZ
6053 * xdisp.c (display_line): Don't assume 2nd call to
6054 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
6055 (iterate_out_of_display_property): New function, body from pop_it.
6056 (pop_it): Use it.
adf4f59c 6057
dfbbda83
GM
60582010-04-24 Glenn Morris <rgm@gnu.org>
6059
6060 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
6061 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
6062 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
6063 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
6064
2d4018aa
EZ
60652010-04-24 Eli Zaretskii <eliz@gnu.org>
6066
a49884a6
EZ
6067 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
6068 use `get_next_display_element' and `set_iterator_to_next' to
6069 advance to the next character, when looking for the character that
6070 begins the next row.
6071
76db6fcc 6072 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
6073 definition of "struct Lisp_Symbol".
6074
70eab5c1
GM
60752010-04-24 Glenn Morris <rgm@gnu.org>
6076
6077 * Makefile.in (CRT_DIR): New variable, set by configure.
6078 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
6079 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
6080
1ad4cc3d
DN
60812010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6082
e769f484
DN
6083 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
6084
4196ff33
DN
6085 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
6086
879b0ee4
DN
6087 Remove redundant flags.
6088 * s/freebsd.h (C_SWITCH_SYSTEM):
6089 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
6090 * s/netbsd.h (C_SWITCH_SYSTEM):
6091 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
6092 of these.
6093
03cbbcb8
DN
6094 Simplify m/intel386.h.
6095 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
6096 user: ecrt0.c.
6097 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
6098 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
6099 the only user: s/unixware.h.
6100 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
6101 from m/intel386.h.
6102 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
6103 moved here from m/intel386.h.
6104
1ad4cc3d
DN
6105 * m/mips.h: Remove #if 0 code.
6106
8785b888
EZ
61072010-04-23 Eli Zaretskii <eliz@gnu.org>
6108
728588cc
EZ
6109 Fix display of composed characters from L2R scripts in bidi buffers.
6110 * xdisp.c (set_iterator_to_next, next_element_from_composition):
6111 After advancing IT past the composition, resync the bidi iterator
6112 with IT's position. (Bug#5977)
6113
a63f80b4
DN
61142010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6115
6116 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
6117 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
6118
ff5dec5c
SM
61192010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6120
6121 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
6122
8785b888
EZ
61232010-04-23 Eli Zaretskii <eliz@gnu.org>
6124
58ccf243 6125 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
6126 * xdisp.c (pop_it): When the stack is popped after displaying
6127 from a string, bidi-iterate to exit from the text portion covered
6128 by the `display' property or overlay. (Bug#5988, bug#5920)
6129
feeb1604
DN
61302010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
6131
8e324eb6
DN
6132 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
6133 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
6134
809fcaba
DN
6135 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
6136 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
6137
ed710380
DN
6138 Simplify STARTFILES definition.
6139 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
6140 relying on Makefile.in to define it.
6141 * s/cygwin.h (START_FILES): Likewise.
6142 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
6143
feeb1604
DN
6144 Clean up Solaris code.
6145 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
6146 (LIB_MOTIF): Remove, configure takes care of this.
6147 (NOT_USING_MOTIF): Remove, unused.
6148 * xrdb.c: Remove #if 0-ed #include.
6149 (SYSV): Remove conditional for old SysV.
6150 * sysdep.c (closedir): Remove conditional code for Solaris,
6151 Solaris has closedir.
6152
a0d0b563
JD
61532010-04-22 Jan Djärv <jan.h.d@swipnet.se>
6154
6155 * xsettings.c (read_and_apply_settings): Check if current_font is
6156 NULL before strcmp (Bug#6001).
6157
56bae7c7
DN
61582010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
6159
6160 Clean up HP-UX files.
6161 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
6162 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
6163 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
6164 * s/hpux10-20.h: ... to the only user, here.
6165
372b7a95
EZ
61662010-04-21 Eli Zaretskii <eliz@gnu.org>
6167
6168 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
6169 use buffer-local values of paragraph-start and paragraph-separate.
6170 <paragraph_start_re, paragraph_separate_re>: Rename from
6171 fallback_paragraph_start_re and fallback_paragraph_separate_re.
6172 (Bug#5992)
6173
f904c0f9
JD
61742010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6175
6176 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
6177 current_tool_bar_style are new.
6178 (store_config_changed_event): Rename from store_font_changed_event.
6179 (XSETTINGS_TOOL_BAR_STYLE): New define.
6180 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
6181 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
6182 HAVE_XFT.
6183 (something_changedCB): store_font_changed_event is now
c4cc8b9a 6184 store_config_changed_event.
f904c0f9
JD
6185 (parse_settings): Rename from parse_xft_settings. Read
6186 non-xft xsettings outside #ifdef HAVE_XFT.
6187 (read_settings): Renamed from read_xft_settings.
6188 (apply_xft_settings): Take current settings as parameter. Do not
6189 call read_(xft)_settings.
6190 (read_and_apply_settings): New function.
6191 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
6192 read_and_apply_settings if there are settings to be read.
6193 (init_xsettings): Renamed from init_xfd_settings.
6194 Call read_and_apply_settings unconditionally.
6195 (xsettings_initialize): Call init_xsettings.
6196 (Ftool_bar_get_system_style): New function.
6197 (syms_of_xsettings): Define Qmonospace_font_name and
6198 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 6199 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 6200 dynamic-setting.
31a01b90 6201 Move misplaced HAVE_GCONF
f904c0f9
JD
6202
6203 * xsettings.h (Ftool_bar_get_system_style): Declare.
6204
6205 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
6206 Qtext, Qboth, Qboth_horiz are new.
6207 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
6208 Vtool_bar_style, tool_bar_max_label_size.
6209
6210 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
6211
6212 * keyboard.c: QClabel is new.
6213 (parse_tool_bar_item): Take out QClabel from tool bar items.
6214 Try to construct a label if ther is no QClabel.
6215 (syms_of_keyboard): Intern :label as QClabel.
6216
6217 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
6218 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
6219 New.
6220
6221 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
6222 dynamic-setting.el.
6223
6224 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
6225 (xg_make_tool_item, xg_show_toolbar_item): New function.
6226 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
6227 Call xg_make_tool_item to make a tool bar item.
6228 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
6229
6230 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
6231 into account for toolbars.
6232
c632dfda
JD
62332010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6234
6235 * data.c (make_blv): Declarations before code (Bug#5993).
6236
10efe302
GM
62372010-04-21 Glenn Morris <rgm@gnu.org>
6238
6239 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6240 Define using autoconf, not cpp.
6241 (LIBXSM): New variable, set by autoconf.
6242 (LIBXT): Use $LIBXSM.
6243
4285ac5a
DN
62442010-04-21 Dan Nicolaescu <local_user@dannlt>
6245
3ec759e7
DN
6246 Remove NOMULTIPLEJOBS, unused.
6247 * s/template.h (NOMULTIPLEJOBS):
6248 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6249
4285ac5a
DN
6250 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6251 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6252 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6253 detects -znocombreloc and passes it to the linker
6254 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
6255
2807228d
GM
62562010-04-21 Glenn Morris <rgm@gnu.org>
6257
6258 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
6259
574c05e2
KK
62602010-04-21 Karel Klíč <kklic@redhat.com>
6261
6262 * Makefile.in (LIBSELINUX_LIBS): New.
6263 (LIBES): Add $LIBSELINUX_LIBS.
6264 * eval.c, lisp.h (call7): New function.
6265 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
6266 (Ffile_selinux_context, Fset_file_selinux_context):
6267 New functions.
6268 (Fcopy_file): New parameter preserve-selinux-context.
6269 (Frename_file): Preserve selinux context when renaming by copy-file.
6270
91eac4bb 62712010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 6272 Eli Zaretskii <eliz@gnu.org>
91eac4bb 6273
50426a04
JB
6274 Don't depend on cm.c or termcap.c on Windows, use stubs.
6275 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
6276 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
6277 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
6278 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
6279 (sys_tputs, sys_tgetstr): New stubs.
6280 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
6281 (tputs, tgetstr): New; define to sys_*.
91eac4bb 6282
938efb77
JB
62832010-04-20 Juanma Barranquero <lekktu@gmail.com>
6284
6285 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
6286
b4bf28b7
SM
62872010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6288
8b1e1112
SM
6289 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
6290 Just signal a warning rather than an error when inside a let.
6291 (Fmake_variable_frame_local): Add the same test.
6292
933ac235
SM
6293 * font.c (syms_of_font): Make the style table vars read-only.
6294
b4bf28b7
SM
6295 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
6296 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
6297
6298 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
6299
93d68d0c
EZ
63002010-04-20 Eli Zaretskii <eliz@gnu.org>
6301
6302 Fix R2L paragraph display on TTY.
6303
6304 * xdisp.c (unproduce_glyphs): New function.
6305 (display_line): Use it when produced glyphs are discarded from R2L
6306 glyph rows.
6307 (append_composite_glyph): In R2L rows, prepend the glyph rather
6308 than appending it.
6309
6310 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
6311 rather than append it. Set up the resolved_level and bidi_type
6312 attributes of the appended glyph.
283ccc18
EZ
6313 (produce_special_glyphs): Mirror the backslash continuation
6314 character in R2L lines.
93d68d0c 6315
283ccc18 6316 Implement display of R2L paragraphs in GUI sessions.
26cdf528 6317
283ccc18
EZ
6318 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6319 append_stretch_glyph.
6320 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
6321 off-by-one error in computing x at end of text in the row.
6322 (append_stretch_glyph): In reversed row, prepend the glyph rather
6323 than append it. Set resolved_level and bidi_type of the glyph.
6324 (extend_face_to_end_of_line): If the row is reversed, prepend a
6325 stretch glyph whose width is such that the rightmost glyph will be
6326 drawn at the right margin of the window. Fix off-by-one error on
6327 TTY frames in testing whether a line needs face extension. Fix
6328 face extension at ZV. If this is the last glyph row, use
6329 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
6330 region face.
6331 (set_cursor_from_row, display_line): Use
26cdf528
EZ
6332 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
6333 row->continuation_lines_width.
283ccc18
EZ
6334 (next_element_from_buffer): Don't call bidi_paragraph_init if we
6335 are at ZV. Fixes a crash when reseated to ZV by
6336 try_window_reusing_current_matrix.
45903529
EZ
6337 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
6338 which happens with R2L glyph rows. Fixes a crash when inserting a
6339 character at end of an R2L line.
283ccc18
EZ
6340 (set_cursor_from_row): Don't be fooled by truncated rows: don't
6341 treat them as having zero-width characters. Improve comments.
6342 Don't reverse pos_before and pos_after for reversed glyph rows.
6343 Set cursor.x to negative value when the cursor might be on the
6344 left fringe.
6345 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
6346 left fringe, not the right one.
f951a506
EZ
6347 (notice_overwritten_cursor, draw_phys_cursor_glyph)
6348 (erase_phys_cursor): For reversed cursor_row, support cursor on
6349 the left fringe.
6350
283ccc18
EZ
6351 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
6352 of continuation indicators on the fringes.
6353 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
6354 left fringe.
6355
f951a506
EZ
6356 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
6357 draw cursor on the left fringe.
6358
6359 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6360 cursor on the left fringe.
6361
f951a506
EZ
6362 * dispnew.c (update_text_area): Handle reversed desired rows when
6363 the cursor is on the left fringe.
6364 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6365 below, not by 0, for when the cursor is on the left fringe.
6366
3bb49aaf
JD
63672010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6368
6369 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6370 widget is a scrollbar.
6371
c0be27fd
KH
63722010-04-20 Kenichi Handa <handa@m17n.org>
6373
6374 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6375 only when the arg CHARSET_LIST is nil.
6376
ce5b453a
SM
63772010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6378
6379 Make variable forwarding explicit rather the using special values.
6380 Basically, this makes the structure of buffer-local values and object
6381 forwarding explicit in the type of Lisp_Symbols rather than use
6382 special Lisp_Objects for that. This tends to lead to slightly more
6383 verbose code, but is more C-like, simpler, and makes it easier to make
6384 sure we handled all cases, among other things by letting the compiler
6385 help us check it.
6386 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6387 Removing forwarding objects.
6388 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6389 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6390 explicit rather than hiding them inside Lisp_Object "values".
6391 (XFWDTYPE): New macro.
6392 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6393 (XBUFFER_LOCAL_VALUE): Remove.
6394 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6395 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6396 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6397 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6398 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6399 Remove the Lisp_Misc_* header.
6400 (struct Lisp_Buffer_Local_Value): Redefine.
6401 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6402 (struct Lisp_Misc_Any): Add filler to get the right size.
6403 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6404 Lisp_Intfwd.
6405 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6406 (DEFVAR_KBOARD): Allocate a forwarding object.
6407 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6408 (let_shadows_global_binding_p): New function.
6409 (union Lisp_Val_Fwd): New type.
6410 (make_blv): New function.
6411 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6412 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6413 (swap_in_symval_forwarding, find_symbol_value, Fset)
6414 (let_shadows_buffer_binding_p, set_internal, default_value)
6415 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6416 (Fkill_local_variable, Fmake_variable_frame_local)
6417 (Flocal_variable_p, Flocal_variable_if_set_p)
6418 (Fvariable_binding_locus):
6419 * xdisp.c (select_frame_for_redisplay):
6420 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6421 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6422 * frame.c (store_frame_param):
6423 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6424 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
6425 value structure.
6426 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
6427 (clone_per_buffer_values): Only adjust markers into the current buffer.
6428 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
6429 (Fbuffer_local_value, set_buffer_internal_1)
6430 (swap_out_buffer_local_variables):
6431 Adapt to the new symbol value structure.
6432 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
6433 (defvar_per_buffer): Take a new arg for the fwd object.
6434 (buffer_lisp_local_variables): Return a proper alist (different fix
6435 for bug#4138).
6436 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
6437 (Fgarbage_collect): Don't handle buffer_defaults specially.
6438 (mark_object): Handle new symbol value structure rather than the old
6439 special Lisp_Misc_* objects.
6440 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
6441 * term.c (set_tty_color_mode):
6442 * bidi.c (bidi_initialize): Don't access the ->value field directly.
6443 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
6444 a buffer_local_flags.
6445 * print.c (print_object): Get rid of impossible forwarding objects.
6446
fd3998ff
EZ
64472010-04-19 Eli Zaretskii <eliz@gnu.org>
6448
6449 * bidi.c (bidi_get_type, bidi_get_category)
6450 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
6451 (bidi_type_of_next_char, bidi_level_of_next_char):
6452 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 6453
e42cd1a7
JB
64542010-04-19 Juanma Barranquero <lekktu@gmail.com>
6455
6456 * dired.c (Ffile_attributes): Fix typo in docstring.
6457
6e104790 64582010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
6459
6460 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6461 NSInteger (Bug#5811).
6462
6e104790 64632010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
6464
6465 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6466 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6467
6e104790 64682010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
6469
6470 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6471
6e104790
SM
64722010-04-19 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6475 terminal frames (Bug#5837).
6476
37dcfea0
EZ
64772010-04-19 Eli Zaretskii <eliz@gnu.org>
6478
d1da276f
EZ
6479 * .gdbinit (xsubchartable): New command.
6480
37dcfea0
EZ
64812010-04-19 Eli Zaretskii <eliz@gnu.org>
6482
6483 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 6484 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
6485 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6486 and
6487 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6488
e9515805
SM
64892010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6490
6491 * alloc.c (Fpurecopy): Hash-cons if requested.
6492 (syms_of_alloc): Update purify-flag docstring.
6493
22aa44a8
JD
64942010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6495
6496 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6497 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6498
ebb5722e
EZ
64992010-04-17 Eli Zaretskii <eliz@gnu.org>
6500
6501 Fix a crash when an NSM character is inserted at BEGV.
6502
6503 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6504 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6505 NEUTRAL_B or UNKNOWN_BT.
6506
0f4442ef
EZ
65072010-04-16 Eli Zaretskii <eliz@gnu.org>
6508
6509 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6510 other rows with cursor unless they are different from this row and
6511 this row is part of a continued line. (Bug#5943)
6512
7d4e45f8
DN
65132010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6514
6515 * s/freebsd.h: Restore osreldate.h include.
6516 Suggested by Naohiro Aota.
6517
5ba5ec85
J
65182010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6519
6520 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6521
20af301d
CY
65222010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6523
6524 * s/cygwin.h: Avoid linking against static libgcc.
6525
a4b000fb
JL
65262010-04-15 Juri Linkov <juri@jurta.org>
6527
6528 * window.c: Add Qscroll_command.
6529 Remove Vscroll_preserve_screen_position_commands.
6530 (window_scroll_pixel_based, window_scroll_line_based): Check the
6531 `scroll-command' property on the last command instead of searching
6532 the last command in Vscroll_preserve_screen_position_commands.
6533 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6534 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6535 (scroll-preserve-screen-position): Doc fix.
6536 (Vscroll_preserve_screen_position_commands): Remove variable.
6537
bc319ba4
DN
65382010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6539
6bb24457
DN
6540 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6541
19d4c244
DN
65422010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6543
6544 Reduce cpp use in Makefile.in.
6545 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6546 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6547 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6548 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6549 (CRT0_COMPILE): Remove, inline it in the only user.
6550
32129746
JL
65512010-04-14 Juri Linkov <juri@jurta.org>
6552
6553 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6554 `scroll-up-command' and `M-v' from `scroll-down' to
6555 `scroll-down-command'.
6556
9013a7f8
JL
65572010-04-14 Juri Linkov <juri@jurta.org>
6558
6559 * window.c (Vscroll_preserve_screen_position_commands): New variable
6560 with the default value as the list of Qscroll_down and Qscroll_up.
6561 (window_scroll_pixel_based, window_scroll_line_based): Search the
6562 last command in the list Vscroll_preserve_screen_position_commands
6563 instead of comparing with Qscroll_up and Qscroll_down.
6564
4bef8d26
JD
65652010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6566
92848133
JD
6567 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6568 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6569 does that.
6570
4bef8d26
JD
6571 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6572 to zero.
6573
58b963f7
SM
65742010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6575
84164a0d
SM
6576 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6577
2b0a91e7
SM
6578 Try to solve the problem of spurious EOF chars in long lines of text
6579 sent to interactive subprocesses.
6580 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6581 (system_process_attributes): Remove unused var `ttotal'.
6582 * process.c (send_process): Don't bother breaking long line with EOF
6583 chars when talking to ttys any more.
6584 (wait_reading_process_output): Output a warning when called in such
6585 a way that it could block without being interruptible.
6586
58b963f7
SM
6587 Try to detect file modification within the same second.
6588 * buffer.h (struct buffer): New field modtime_size.
6589 * buffer.c (reset_buffer): Initialize it.
6590 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6591 (Fverify_visited_file_modtime): Check it.
6592 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6593 (Fset_visited_file_modtime): Set (or clear) it.
6594
01f5787b
SM
65952010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6596
6597 * process.c (status_notify): Remove unused var `ro'.
6598
83725342
JD
65992010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6600
6601 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6602 more than one visual (Bug#5938).
6603
b9465836
DN
66042010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6605
50426a04
JB
6606 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6607 Undefine.
b9465836 6608
8d9c8ece
DN
66092010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6610
b1f52161
DN
6611 Remove C_SWITCH_SYSTEM_TEMACS.
6612 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6613 (malloc, realloc, free): Use emacs, not temacs for conditional
6614 definition.
6615
6616 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6617 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6618
8d9c8ece
DN
6619 Use autoconf, not cpp for some variables.
6620 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6621 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6622 (ALL_CFLAGS): Use them as make variables.
6623 (really-lwlib, really-oldXMenu): Do not pass them.
6624
1ecb2d3f
JD
66252010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6626
6627 * xmenu.c (apply_systemfont_to_dialog): New.
6628 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6629
3a4fa2f2
SM
66302010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6631
97e53006
SM
6632 * process.c (exec_sentinel): Preserve current-buffer.
6633
3a4fa2f2
SM
6634 * process.c (read_process_output): Move the save-current-buffer to
6635 apply to both the filter and the non-filter branches.
6636
88df7221
DN
66372010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6638
6639 * s/msdos.h (UNEXEC): New definition.
6640
5634ff85
YM
66412010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6642
6eff5c3d
YM
6643 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6644 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6645
6646 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6647 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6648 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6649 TRY_WINDOW_CHECK_MARGINS.
6650
6651 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
6652 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6653 width only when it is for padding.
5634ff85 6654
b13aef54
J
66552010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6656
6657 * xfns.c (Fx_show_tip): Call try_window in a loop until
6658 fonts_changed_p is zero (Bug#2423).
6659
21d28484
EZ
66602010-04-08 Eli Zaretskii <eliz@gnu.org>
6661
6662 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6663 the end of TEXT_AREA. (Bug#5856)
6664
0269ef77
JD
66652010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6666
6667 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6668 HAVE_GCONF.
6669
5930fe97
EZ
66702010-04-08 Eli Zaretskii <eliz@gnu.org>
6671
6672 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6673 prev.orig_type, for resolving type of NSM. (Bug#5858)
6674
99852628
JD
66752010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6676
6677 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6678 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6679 in current_font.
6680 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
6681 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6682 New functions.
6683 (syms_of_xsettings): Initialize current_font.
6684 defsubr Sfont_get_system_normal_font.
99852628 6685
686b968e
JB
6686 * xsettings.h (Ffont_get_system_normal_font)
6687 (xsettings_get_system_normal_font): Declare.
99852628
JD
6688
6689 * xfns.c (extern xlwmenu_default_font): Remove.
6690 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6691 to xlwmenu.c.
6692
6693 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6694 menu items in UTF-8.
6695
6696 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6697 (apply_systemfont_to_menu): New function.
6698 (set_frame_menubar, create_and_show_popup_menu): Call
6699 apply_systemfont_to_menu.
6700
7fc874c4
J
67012010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6702
6703 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6704 FRAME_LINE_TO_PIXEL_Y.
6705
6706 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6707 pixelwidth/height.
6708
863bf481
DN
67092010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6710
5e5a3b92
DN
6711 Simplify code for HP machines.
6712 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6713 for GNU_LINUX, not needed.
6714 (UNEXEC, NEED_BSDTTY): Move definitions...
6715 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6716
863bf481
DN
6717 * m/iris4d.h (UNEXEC): Move definition ...
6718 * s/irix6-5.h (UNEXEC): ... here.
6719
3e6bec3b
JD
67202010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6721
6722 * xfns.c (set_machine_and_pid_properties): New function.
6723 (Fx_create_frame): Call set_machine_and_pid_properties.
6724
2912322b
SM
67252010-04-03 Eli Zaretskii <eliz@gnu.org>
6726
1502b819
EZ
6727 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6728 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6729 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6730
2912322b
SM
6731 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6732 in this function. (Bug#5703)
6733
67342010-04-03 Chong Yidong <cyd@stupidchicken.com>
6735
6736 * nsterm.h: Fix last change.
6737
c435b432
DN
67382010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6739
a568f507
DN
6740 * m/intel386.h (NO_REMAP): Move definition ...
6741 * s/msdos.h (NO_REMAP): ... here.
6742
4cd9f6c2
DN
6743 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6744
c435b432
DN
6745 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6746 used on those platforms.
6747
42a2c622
DN
67482010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6749
6750 Remove extern errno declarations.
6751 * xterm.c:
6752 * xrdb.c:
6753 * w32term.c:
6754 * unexec.c:
6755 * unexaix.c:
6756 * sysdep.c:
6757 * process.c:
6758 * lread.c:
6759 * keyboard.c:
6760 * floatfns.c:
6761 * filelock.c:
6762 * fileio.c:
6763 * emacs.c (main):
6764 * ecrt0.c:
6765 * dispnew.c:
6766 * callproc.c:
6767 * buffer.c: Remove errno extern declarations.
6768 * s/netbsd.h (NEED_ERRNO): Remove.
6769
8224f93d
DN
67702010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6771
6772 Remove all uses of LIBX11_SYSTEM.
6773 * Makefile.in (LIBX11_SYSTEM): Remove.
6774 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6775 instead.
6776
814062c7
EZ
67772010-04-01 Eli Zaretskii <eliz@gnu.org>
6778
ed68db4d
EZ
6779 Remove support for DJGPP v1.x (bug#5813).
6780
6781 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
6782 * s/msdos.h:
6783 * unexec.c (make_hdr, copy_text_and_data):
6784 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 6785 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
6786 (IT_set_terminal_modes, __write, _rename, gethostname)
6787 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6788 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6789 the value of __DJGPP__.
ed68db4d
EZ
6790 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6791 compatibility code.
8224f93d
DN
6792 * lread.c:
6793 * gmalloc.c (memalign):
6794 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6795 * emacs.c (main):
6796 * dosfns.c (init_dosfns):
ed68db4d
EZ
6797 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6798
52f4d8d5
EZ
67992010-04-01 Eli Zaretskii <eliz@gnu.org>
6800
814062c7
EZ
6801 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6802 string with `cursor' property comes from an `after-string'
6803 overlay. (Bug#5816)
6804
0dc2e11d
GM
68052010-04-01 Glenn Morris <rgm@gnu.org>
6806
6807 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6808 Define as Makefile variables.
6809 (LIBX): Use above variables rather than directly using autoconf.
6810
1d29df59
DN
68112010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6812
6813 Clean up BSD_SYSTEM use.
6814 * xterm.c:
6815 * process.c:
6816 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6817 for including <sys/ioctl.h>.
6818 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6819 code is only used for MSDOS.
6820
1546c559
JL
68212010-03-31 Juri Linkov <juri@jurta.org>
6822
6823 * image.c: Add `Qextension_data'.
6824 (syms_of_image): Initialize and staticpro `Qextension_data'.
6825 (Fimage_metadata): Rename from `Fimage_extension_data'.
6826 (gif_load): Put GIF extension data to the property
6827 `Qextension_data'.
6828
6521c534
CY
68292010-03-31 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6832 * nsterm.h: Fix prototype.
6833
52c30783
EZ
68342010-03-31 Eli Zaretskii <eliz@gnu.org>
6835
6836 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6837 trailing whitespace in right-to-left rows.
6838
855a0da7
SM
68392010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6840
6841 Get rid of the direct_output optimizations.
6842 * keyboard.c (nonundocount): Remove extern declaration.
6843 (command_loop_1): Remove brittle optimisation for cheap and
6844 common operations.
6845 * xdisp.c (redisplay_internal): Don't bother checking
6846 redisplay_performed_directly_p any more.
6847 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6848 any more.
6849 * dispnew.c (redisplay_performed_directly_p)
6850 (direct_output_for_insert, direct_output_forward_char):
6851 * dispextern.h (redisplay_performed_directly_p)
6852 (direct_output_for_insert, direct_output_forward_char): Remove.
6853 * cmds.c (nonundocount): Make it static.
6854
85738751 68552010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
6856
6857 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6858
85738751 68592010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
6860
6861 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6862 invisible (Bug#5766).
6863
85738751 68642010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 6865
855a0da7
SM
6866 * xdisp.c (x_consider_frame_title, update_window_cursor):
6867 Remove HAVE_NS conditionals.
194d44e7 6868 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
6869
6870 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6871 filename for the title.
6872 (ns_set_doc_edited): Do nothing if the selected window is a
6873 minibuffer window.
6874
6875 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6876 ns_set_doc_edited.
6877
6878 * nsterm.m: Remove unneeded prototype.
6879
85738751 68802010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
6881
6882 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6883 in the DOC file. (Bug#5336)
6884
85738751 68852010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
6886
6887 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6888
75d1428c
SM
68892010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6890
6891 * window.c (keys_of_window): Remove redundant/overridden bindings.
6892
82043cfb
EZ
68932010-03-30 Eli Zaretskii <eliz@gnu.org>
6894
6895 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6896 Restore original behavior when the iterator is not bidi_p.
6897
b5dd0ae7
DN
68982010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6899
6900 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6901
bd924a5d
EZ
69022010-03-30 Eli Zaretskii <eliz@gnu.org>
6903
6904 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6905 are outside the range of cached character positions.
6906
3580374b
JB
69072010-03-30 Juanma Barranquero <lekktu@gmail.com>
6908
6909 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6910
a7b02820
EZ
69112010-03-30 Eli Zaretskii <eliz@gnu.org>
6912
6913 Initial support for bidirectional editing.
6914
6915 * Makefile.in (obj): Include bidi.o.
6916 (bidi.o): New target.
6917
6918 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6919 ($(BLD)/bidi.$(O)): New target.
6920
6921 * bidi.c: New file.
6922
6923 * buffer.h (struct buffer): New members bidi_display_reordering
6924 and bidi_paragraph_direction.
6925
6926 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6927 and bidi_paragraph_direction.
6928 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6929 and bidi-paragraph-direction.
6930 (Fbuffer_swap_text): Swap the values of
6931 bidi_display_reordering and bidi_paragraph_direction.
6932
6933 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6934 (bidi_type_t, bidi_dir_t): New types.
6935 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6936 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6937 prev_stop, base_level_stop, and eol_pos.
6938 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6939 (IT_STACK_SIZE): Enlarge to 5.
6940 (struct glyph_row): New member reversed_p.
6941 <string_buffer_position>: Update prototype.
6942 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6943 glyph_row if bidi_it.paragraph_dir == R2L.
6944 (struct glyph): New members resolved_level and bidi_type.
6945
6946 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6947 processing or buffer's direction is right-to-left.
6948 (prepare_desired_row): Preserve the reversed_p flag.
6949 (row_equal_p): Compare the reversed_p attributes as well.
6950
6951 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6952 bidi_init_it and set it->paragraph_embedding from the current
6953 buffer's value of bidi_paragraph_direction.
6954 (reseat_1): Initialize bidi_it.first_elt.
6955 (set_iterator_to_next, next_element_from_buffer): Use the value of
6956 paragraph_embedding to determine the paragraph direction.
6957 (set_iterator_to_next): Under bidi reordering, call
6958 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6959 new_paragraph flag is set in the bidi iterator.
6960 (next_element_from_buffer): If bidi_it.first_elt is set,
6961 initialize paragraph direction and find the first character to
6962 display in the visual order. If reseated to a middle of a line,
6963 prime the bidi iterator starting at the line's beginning. Handle
6964 the situation where we overstepped stop_charpos due to
6965 non-linearity of the bidi iteration. Likewise for when we back up
6966 beyond the previous stop_charpos. When moving across stop_charpos,
6967 record it in prev_stop.
6968 (display_line): Set row->end and it->start for the next row to the
6969 next character in logical order. Always extend reversed_p rows to
6970 the end of line, even if they end at ZV. Copy the reversed_p flag
6971 to the next glyph row. Keep calling set_cursor_from_row for
6972 bidi-reordered rows even if we already have a possible candidate
6973 for cursor position. Set row_end after all the row's glyphs have
6974 been produced, by looping over the glyphs. Record the position
6975 after EOL in it->eol_pos, and use it to set end_pos of the last
6976 row produced for a continued line.
6977 <Qright_to_left, Qleft_to_right>: New variables.
6978 (syms_of_xdisp): Initialize and staticpro them.
6979 (string_buffer_position_lim): New function.
6980 (string_buffer_position): Most of code moved to
6981 string_buffer_position_lim. Last argument and return value are
6982 now EMACS_INT; all callers changed.
6983 (set_cursor_from_row): Rewritten to support bidirectional text and
6984 reversed glyph rows.
6985 (text_outside_line_unchanged_p, try_window_id): Disable
6986 optimizations if we are reordering bidirectional text and the
6987 paragraph direction can be affected by the change.
6988 (append_glyph, append_composite_glyph)
6989 (produce_image_glyph, append_stretch_glyph): Set the
6990 resolved_level and bidi_type members of each glyph.
6991 (append_glyph): If the glyph row is reversed, prepend the glyph
6992 rather than appending it.
6993 (handle_stop_backwards): New function.
6994 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6995 (reseat): call handle_stop_backwards to recompute prev_stop and
6996 base_level_stop for the new position.
6997 (handle_invisible_prop): Under bidi iteration, skip invisible text
6998 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6999 paragraph direction. Update IT->prev_stop after skipping
7000 invisible text.
7001 (move_it_in_display_line_to): New variables prev_method
7002 and prev_pos. Compare for strict equality in
7003 BUFFER_POS_REACHED_P.
7004 (try_cursor_movement): Examine all the candidate rows that occlude
7005 point, to return the best match. If rows are bidi-reordered
7006 and point moved backwards, back up to the row that is not a
7007 continuation line, and start looking for a suitable row from
7008 there.
7009
7010 * term.c (append_glyph): Reverse glyphs by pre-pending them,
7011 rather than appending, if the glyph_row's reversed_p flag is set.
7012 Set the resolved_level and bidi_type members of each glyph.
7013
7014 * .gdbinit (pbiditype): New command.
7015 (pgx): Use it to display bidi level and type of the glyph.
7016 (pitx): Display some bidi information about the iterator.
7017 (prowlims, pmtxrows): New commands.
7018
32a8894e
DN
70192010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
7020
7021 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
7022 * s/usg5-4.h (LIBS_DEBUG):
7023 * s/irix6-5.h (C_DEBUG_SWITCH):
7024 * s/gnu-linux.h (LIBS_DEBUG):
7025 * s/darwin.h (LIBS_DEBUG):
7026 * s/bsd-common.h (LIBS_DEBUG):
7027 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
7028 * m/iris4d.h (LIBS_DEBUG):
7029 * m/hp800.h (LIBS_DEBUG): Remove definitions.
7030
7031 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
7032 (LIBS_DEBUG): Remove definition.
7033
649dbf36
CY
70342010-03-27 Chong Yidong <cyd@stupidchicken.com>
7035
7036 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
7037 Windows.
7038
cad4261f
YM
70392010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7040
7041 * process.c (Fmake_network_process): Don't call turn_on_atimers around
7042 `connect' (Bug#5723).
7043
cd591dbc
HE
70442010-03-25 Helmut Eller <eller.helmut@gmail.com>
7045
7046 * process.c (Fmake_network_process): Call `select' for interrupted
7047 `connect' rather than creating new socket (Bug#5173).
7048
e867cb5d 70492010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
7050
7051 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
7052
7053 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
7054
7055 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
7056
e867cb5d 70572010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
7058
7059 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
7060 XLoadQueryFont.
7061
e867cb5d 70622010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
7063
7064 * coding.c (decode_coding_ccl): Fix previous change for the
7065 multibyte case.
fb608df3
KH
7066 (encode_coding_ccl): Don't setup ccl program here. Fix for the
7067 case that the output buffer is fullfilled.
7068 (encode_coding): Setup ccl program here.
fbdc1721 7069
5845f0ed
DN
70702010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
7071
814fb708
DN
7072 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
7073
5845f0ed
DN
7074 Simplify LIBS_MACHINE definitions.
7075 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
7076 * m/iris4d.h (LIBS_MACHINE): Likewise.
7077 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
7078 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 7079 * s/netbsd.h: Remove commented out code.
5845f0ed 7080
b7064064
DN
70812010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
7082
df7734b2
DN
7083 Remove dead code dealing with POSIX_SIGNALS.
7084 * atimer.c (set_alarm): Remove dead code, all USG systems define
7085 POSIX_SIGNALS.
7086 * data.c (arith_error): Likewise.
7087 * keyboard.c (input_available_signal, handle_user_signal)
7088 (interrupt_signal): Likewise.
7089 * process.c (sigchld_handler): Likewise.
7090 (create_process): Remove if 0 code. Remove HPUX conditional when
7091 !defined (POSIX_SIGNALS), it cannot be true.
7092 * syssignal.h: Remove USG5_4 and USG conditionals when
7093 !POSIX_SIGNALS, they cannot be true.
7094
b7064064
DN
7095 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
7096 NO_SOCK_SIGIO, not used anymore.
7097
55da5ee3
DN
70982010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
7099
0be96e3a
DN
7100 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
7101 support vax on BSDs.
7102
55da5ee3
DN
7103 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
7104 * s/aix4-2.h (ORDINARY_LINK): ... here.
7105
c0282183
AS
71062010-03-21 Andreas Schwab <schwab@linux-m68k.org>
7107
82c3d67a
AS
7108 * Makefile.in (abs_builddir): Define.
7109 (bootstrap_exe): Use it.
7110 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 7111
3613edce
SM
71122010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7113
7114 * Makefile.in (bootstrap_exe): Use an absolute name.
7115
7f110ddc
DN
71162010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7117
22e87574
DN
7118 Remove support for old GNU/Linux using libc version 5.
7119 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
7120 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
7121
05a670e6
DN
7122 Consolidate redundant definitions in s/bsd-common.h.
7123 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7124 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7125 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
7126 doing it in all files that include this one.
7127 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7128 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7129 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7130 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7131 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7132 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7133 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7134 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7135 (LDAV_SYMBOL, KERNEL_FILE): Remove.
7136
2968f561
DN
7137 Consolidate redundant definitions.
7138 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
7139 it's undefined in all files that include this one.
7140 (POSIX_SIGNALS): Define here instead of doing it in all files that
7141 include this one.
7142 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7143 (POSIX_SIGNALS): Do not define.
7144 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7145 (POSIX_SIGNALS): Do not define.
7146 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7147 (POSIX_SIGNALS): Do not define.
7148
15d25dc0
DN
7149 Remove support for old UNIX System V systems.
7150 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
7151 * s/usg-5-4-2.h: Remove.
7152
07e339e4
DN
7153 Remove support for Solaris on PPC and for old versions.
7154 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
7155 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
7156 that cancel each other.
7157 * s/sol2-3.h:
7158 * s/sol2-4.h:
7159 * s/sol2-5.h: Remove.
7160 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
7161 (NO_REMAP): Remove, unused.
7162 (UNEXEC): Move definition ...
7163 * s/aix4-2.h (UNEXEC): ... here.
7164
7f110ddc
DN
7165 * s/openbsd.h: Remove support for non-ELF and for systems that do
7166 not support shared libraries.
7167 * s/netbsd.h:
7168 * s/freebsd.h: Likewise.
7169
605f35cd
DN
71702010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7171
7172 Remove non-working support for lynxos 3.0.
7173 * s/lynxos.h: Remove file.
7174
7175 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
7176 COFF_BSD_SYMBOLS, nothing defines it anymore.
7177
aed71cf4
DN
71782010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
7179
7180 Remove obsolete uses of HAVE_SHM.
7181 * emacs.c (standard_args):
7182 (Fdump_emacs):
7183 (syms_of_emacs): Remove code depending on HAVE_SHM.
7184
7185 * alloc.c: Remove HAVE_SHM dependent definition.
7186
7187 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
7188
aded53ff
GM
71892010-03-18 Glenn Morris <rgm@gnu.org>
7190
17284745
GM
7191 * emacs.c (USAGE4): Hard-code bug address.
7192 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
7193 (bug_reporting_address): Remove.
7194 (main): Don't call bug_reporting_address.
7195
aded53ff
GM
7196 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
7197 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
7198
303500aa
CY
71992010-03-15 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * xfns.c (Fx_create_frame):
7202 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
7203 on left.
7204
cef3058f
CY
72052010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
7206
7207 * editfns.c (Fformat): Account for string precision when computing
7208 field width (Bug#5710).
7209
a647d59d
CY
72102010-03-12 Chong Yidong <cyd@stupidchicken.com>
7211
4fa42018
CY
7212 * xfns.c (Fx_create_frame): Set default to Qright.
7213
a647d59d
CY
7214 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
7215 all window systems.
7216
6da23aaa
EZ
72172010-03-12 Eli Zaretskii <eliz@gnu.org>
7218
a96f6398 7219 These changes remove termcap.c from the build on Posix platforms.
83d02def 7220 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
7221 (MSDOS_OBJ): ...to here.
7222 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
7223 now identical to when LIBS_TERMCAP is defined.
7224
7225 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
7226
7227 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
7228
a96f6398 7229 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 7230
288f9fc0
CY
72312010-03-10 Chong Yidong <cyd@stupidchicken.com>
7232
7233 * Branch for 23.2.
7234
d48cd3f4
SM
72352010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7236
7237 Cleanup setup of gl_state in various parts of the code.
7238 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7239 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7240 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7241 (skip_chars):
7242 * regex.c (regex_compile): Use it.
7243 (re_compile_pattern): Don't set gl_state.current_syntax_table since
7244 it's now set in regex_compile when/if we need it.
7245
618db430
SM
72462010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
7247
c0335e02
SM
7248 Make it possible to C-g in a tight bytecode loop again (bug#5680).
7249 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7250 (QUIT): Use it to consolidate code and remove redundancy.
7251 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7252
254c06a8
SM
7253 * regex.c (regex_compile): Setup gl_state as well.
7254
618db430
SM
7255 * syntax.c (skip_chars): Setup gl_state (bug#3823).
7256 (in_classes): Use CONSP before XCAR/XCDR.
7257
233f0c9f
CY
72582010-03-03 Chong Yidong <cyd@stupidchicken.com>
7259
7260 * keymap.c (Fwhere_is_internal): Use Fequal to compare
7261 definitions, so that keyboard macros are correctly handled
7262 (Bug#5481).
7263
75f80e63
EZ
72642010-03-02 Eli Zaretskii <eliz@gnu.org>
7265
7266 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
7267 text that could be relocated inside the call to emacs_mule_char.
7268 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
7269 (CODING_DECODE_CHAR): Add a comment describing its purpose.
7270
dcfb9bc4
KH
72712010-03-02 Kenichi Handa <handa@m17n.org>
7272
fc9a17bc
KH
7273 * character.c (parse_str_as_multibyte): Fix handling of the
7274 multibyte form of raw-bytes.
7275 (str_as_multibyte): Likewise.
7276
dcfb9bc4
KH
7277 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
7278 form of raw-bytes.
7279
412c01b6
CY
72802010-02-28 Chong Yidong <cyd@stupidchicken.com>
7281
7282 * charset.c (load_charset_map_from_file)
7283 (load_charset_map_from_vector): Zero out allocated
7284 charset_map_entries before using them.
7285
df7e1ea0
AS
72862010-02-27 Andreas Schwab <schwab@linux-m68k.org>
7287
7288 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
7289
fe69a722
CY
72902010-02-27 Chong Yidong <cyd@stupidchicken.com>
7291
4ed28cf4
CY
7292 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
7293 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 7294
7379cfce
KH
72952010-02-26 Kenichi Handa <handa@m17n.org>
7296
f88cc4d6
KH
7297 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
7298
7379cfce
KH
7299 * xdisp.c (reseat_to_string): Fix previous change.
7300
cf2fdcfb
CY
73012010-02-26 David Reitter <david.reitter@gmail.com>
7302
7303 * nsfont.m (nsfont_draw): ns_antialias_text should be a
7304 Lisp_Object (Bug#4736).
7305
cc6c7c75
KH
73062010-02-25 Kenichi Handa <handa@m17n.org>
7307
7308 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
7309
32e737d7
JD
73102010-02-24 Jan Djärv <jan.h.d@swipnet.se>
7311
7312 * xterm.c (XTflash): Move declarations before statements.
7313
7314 * gtkutil.c (xg_get_gdk_display): Remove (unused).
7315 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
7316 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
7317 (xg_create_tool_bar): Remove unused variables.
7318 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 7319 (xg_create_frame_widgets): Remove variable grav.
32e737d7 7320
676cae9f
CY
73212010-02-21 Chong Yidong <cyd@stupidchicken.com>
7322
7323 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
7324
886cc2b8
SM
73252010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7326
7327 * term.c (fatal): Add a final \n if needed (bug#5596).
7328
ddb2d8e2
CY
73292010-02-18 Chong Yidong <cyd@stupidchicken.com>
7330
7331 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
7332
2a4f8d3d
GM
73332010-02-18 Glenn Morris <rgm@gnu.org>
7334
7335 * callint.c (Finteractive): Doc fix.
7336
ebaf11b6
KH
73372010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
7338
886cc2b8
SM
7339 * coding.c (record_conversion_result):
7340 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
7341 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
7342 memory allocation error.
7343
d0396581
KH
73442010-02-17 Kenichi Handa <handa@m17n.org>
7345
886cc2b8
SM
7346 * coding.c (decode_coding_ccl): Don't setup ccl program here.
7347 Fix for the case that the output buffer is fullfilled.
d0396581
KH
7348 (decode_coding): Setup ccl program here. Keep looping when the
7349 decoder stopped because the output buffer is
7350 fullfilled (bug#5534).
7351
7352 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
7353
98599f74
JD
73542010-02-13 Jan Djärv <jan.h.d@swipnet.se>
7355
471e4f04 7356 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 7357 bug #5571.
886cc2b8 7358 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 7359 overdrawn.
98599f74 7360
182659ae
JD
73612010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7362
7363 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7364 doing_interact here.
7365 (ice_connection_closed): New function.
7366 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7367 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7368 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7369 returns I/O error.
7370 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7371 bug #5512.
7372
9be32c4e 73732010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
7374
7375 * nsfont.m (nsfont_open): The system's value for the font descent
7376 is negative, so round it down to avoid clipping.
7377
a2f3eb19
CY
73782010-02-06 Chong Yidong <cyd@stupidchicken.com>
7379
7380 * charset.c (load_charset_map_from_file)
7381 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 7382 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 7383
3088147c
CY
73842010-02-05 Chong Yidong <cyd@stupidchicken.com>
7385
7386 * charset.c (load_charset_map_from_file): Allocate large
7387 charset_map_entries structure on the heap rather than the stack.
7388 (Bug#5526).
7389
b57d9029
KH
73902010-01-31 Kenichi Handa <handa@m17n.org>
7391
7392 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 7393 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 7394
c67d885b
CY
73952010-01-31 Chong Yidong <cyd@stupidchicken.com>
7396
7397 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7398 <deactivated@gmail.com> (Bug#3605).
7399
8fab2362
CY
74002010-01-31 David De La Harpe Golden <david@harpegolden.net>
7401
7402 * fileio.c (Frename_file): Correctly rename symlinks to
7403 directories (Bug#5496).
7404
cb2a62f2
CY
74052010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7406
7407 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7408
944c7a26
AS
74092010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7410
7411 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7412
c024ac08
CY
74132010-01-29 Chong Yidong <cyd@stupidchicken.com>
7414
7415 * frame.c (DEFAULT_ROWS): Change default to 35.
7416
7417 * xfns.c (x_default_font_parameter): Change default XFT font to
7418 monospace-10 (Bug#3643).
7419
af93af83
EZ
74202010-01-29 Eli Zaretskii <eliz@gnu.org>
7421
7422 * w32inevt.c (key_event): Remove unnecessary comparison of
7423 event->uChar.AsciiChar with 128.
7424
ca0eb708
CY
74252010-01-28 Chong Yidong <cyd@stupidchicken.com>
7426
b242dbfc
CY
7427 * fileio.c (Frename_file): Fix last change (Bug#5487).
7428
ca0eb708
CY
7429 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
7430
7431 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
7432
45d45af5
JD
74332010-01-28 Jan Djärv <jan.h.d@swipnet.se>
7434
7435 * xfns.c (Fx_create_frame): Remove window size matching code from
7436 2010-01-15.
a73f9c9d 7437 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 7438
7e233730
JR
74392010-01-27 Jason Rumney <jasonr@gnu.org>
7440
7441 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 7442 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 7443
86e893e3
KH
74442010-01-27 Kenichi Handa <handa@m17n.org>
7445
7446 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 7447 pattern string (Bug#4209).
86e893e3 7448
8719abec
CY
74492010-01-27 David De La Harpe Golden <david@harpegolden.net>
7450
7451 * fileio.c (Frename_file): Call copy-directory and
7452 delete-directory for directories, in order to handle cross-device
7453 renaming (Bug#3353).
7454
844794c8
JD
74552010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7456
aa3e13b5 7457 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 7458 sizes 24 and 10. Bug #3643.
844794c8 7459
bd4b5750
SM
74602010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7461
8dc1adf6 7462 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
7463 * keymap.c (shadow_lookup): Add `remap' arg.
7464 (describe_map, describe_vector): Update calls to shadow_lookup.
7465 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7466 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
7467 perform remapping during shadow_lookup check of remapped_sequences.
7468
285d07e2
CY
74692010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7470
7471 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7472 png_check_sig, which has been removed in libpng 1.4.
7473
c6d09b8d
CY
74742010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7475
7476 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7477 lacks this header file).
7478
3d782998
YM
74792010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7480
7481 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7482 as in Emacs 22.
7483
2aff7c53
YM
74842010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7485
7486 * lisp.h (make_pure_string): String pointer arg now points to const.
7487
7488 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7489 args now point to const.
7490
74327f7a
EZ
74912010-01-22 Eli Zaretskii <eliz@gnu.org>
7492
7493 * lread.c (Fload): Don't treat files without .elc extension as
7494 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7495 them. (bug#5303)
7496
4d1e6632
KH
74972010-01-20 Kenichi Handa <handa@m17n.org>
7498
7499 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7500 treat the source as actual byte sequence.
7501
1fdede8f
AM
75022010-01-19 Alan Mackenzie <acm@muc.de>
7503
7504 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 7505 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
7506 `signal_after_change_p' to `coherent_change_p', and make the
7507 invocation of `modify_region' conditional on it.
7508
67477f30
JD
75092010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7510
7511 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7512 for debug purpose.
7513 (syms_of_xsettings): Declare xft-settings.
7514
244b023e
CY
75152010-01-18 Chong Yidong <cyd@stupidchicken.com>
7516
7517 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7518
617364fe
CY
75192010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7522
4fe22cdf
CY
75232010-01-16 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * emacs.c (standard_args): Adjust arg priorities to reflect how
7526 they are processed in startup.el.
7527
e118d2be
AS
75282010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7529
7530 * Makefile.in (lisp, shortlisp): Update.
7531
523ae620
SM
75322010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7533
7534 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7535 code, link the new kboard into all_kboard before running Lisp code,
7536 and protect the new terminal with GCPRO (Bug#5365).
7537 (x_term_init): Remove unused var `atom'.
7538 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7539
f0d13888
JD
75402010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7541
7542 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7543 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7544 to find out usable size of the desktop. Don't make frames larger than
ac146f82 7545 this. Bug #3643.
f0d13888 7546
cc320f07
KH
75472010-01-15 Kenichi Handa <handa@m17n.org>
7548
7549 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7550
7ffdf101
CY
75512010-01-15 Chong Yidong <cyd@stupidchicken.com>
7552
7553 * nsterm.m (Qnone): Define.
7554
7555 * nsfns.m (Qnone): Move definition to nsterm.m.
7556
d12bd917
KH
75572010-01-14 Kenichi Handa <handa@m17n.org>
7558
7559 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7560 systems.
7561
d9a7c140
KH
75622010-01-14 Kenichi Handa <handa@m17n.org>
7563
7564 Make auto-composition work on all buffers even if they are
7565 fundamental mode.
7566
7567 * composite.c (Vauto_composition_mode): New variable.
7568 (composition_compute_stop_pos): Check Vauto_composition_mode
7569 instead of Vauto_composition_function.
7570 (composition_adjust_point, Ffind_composition_internal): Likewise.
7571 (syms_of_composite): Declare Lisp variable
7572 "auto-composition-mode" here.
7573
63286bb2
CY
75742010-01-13 Chong Yidong <cyd@stupidchicken.com>
7575
7576 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7577 during call to vendor-specific-keysyms (Bug#5365).
7578
c2623ee7
YM
75792010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7580
7581 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7582 Call SIGNAL_THREAD_CHECK (Bug#5333).
7583
7584 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7585 Call SIGNAL_THREAD_CHECK.
7586
0b5397c2
SM
75872010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7588
7589 Try to fix bug#5314. This is probably not the final word, tho.
7590 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7591 recent-auto-save-p as a side-effect.
7592 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7593 * buffer.c (Fkill_buffer, reset_buffer):
7594 * editfns.c (Fsubst_char_in_region):
7595 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7596 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7597
dc954cb2
KH
75982010-01-13 Kenichi Handa <handa@m17n.org>
7599
7600 Display buffer name, etc. in mode line by composing correctly.
7601
7602 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7603 STRING is not nil.
0b5397c2 7604 (display_mode_element): Adjust for the change of
dc954cb2
KH
7605 decode_mode_spec and display_line.
7606 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7607 (display_string): Handle the case that STRING is non-null and
7608 LISP_STRING is not nil.
7609
0b5397c2
SM
7610 * xterm.c (x_draw_composite_glyph_string_foreground):
7611 Pay attention to s->face->overstrike.
dc954cb2
KH
7612
7613 * composite.c (composition_reseat_it): Don't check PT if STRING is
7614 non nil.
7615
4a00eaca
YM
76162010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7617
7618 * keyboard.c (read_char): Don't apply previous change when current
7619 buffer is unchanged by command execution.
7620
60abb287
JD
76212010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7622
7623 * keyboard.c (read_char): Return after executing from special map.
7624
893db5bc
GM
76252010-01-12 Glenn Morris <rgm@gnu.org>
7626
7627 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7628 bug-gnu-emacs rather than emacs-pretest-bug.
7629
4d03ece0
CY
76302010-01-11 Chong Yidong <cyd@stupidchicken.com>
7631
7632 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7633 initializing the Lisp variables that depend on them.
7634
1df47e38
YM
76352010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7636
7637 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7638 Clear areas that will not be updated after change of menu bar lines.
7639 Clear the menu bar window's current matrix when the window gets empty.
7640
2f1c6384
CY
76412010-01-09 Chong Yidong <cyd@stupidchicken.com>
7642
e398c61c
CY
7643 * intervals.h, textprop.c (extend_property_ranges): Return value
7644 and args changed. Discard properties that begin at or after the
7645 new end (Bug#5306).
7646
7647 * editfns.c (Fformat): Caller changed.
7648
e5a29a10
CY
7649 * nsterm.m (ns_set_default_prefs): Delete function.
7650 (syms_of_nsterm): Initialize ns_command_modifier,
7651 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7652 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7653
2f1c6384
CY
7654 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7655 position (Bug#4040).
7656
d427a9fa
EZ
76572010-01-09 Eli Zaretskii <eliz@gnu.org>
7658
7659 * editfns.c (Ffloat_time): Doc fix.
7660
21b9df2f
JD
76612010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7662
7663 * xfns.c (Fx_create_frame): Don't create frame larger than display
7664 by default bug#3643.
7665
4b00d3b1
YM
76662010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7667
7668 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7669 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7670 windows above internal border.
7671
7672 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7673 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7674 windows above internal border.
7675
7676 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7677 tool bar windows specially.
7678
7679 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7680
7681 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7682 specially.
7683 (XTflash): Take account of menu bar height.
7684
7685 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7686 specially.
7687
5075d853
JD
76882010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7689
ac146f82 7690 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
7691 also be true before we can return early (bug #5339).
7692
474217c8
CY
76932010-01-06 David Reitter <david.reitter@gmail.com>
7694
7695 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7696 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7697 (Bug#3233).
7698
c0e6d47d
JD
76992010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7700
d0cf45b7
JD
7701 * font.c (font_open_entity): Enable chache and call cached_font_ok
7702 for the driver if defined.
7703 (QCuser_spec): New symbol.
7704 (font_spec_from_name): Save name as user-spec.
7705 (font_load_for_lface): Keep user-spec instead of name.
7706 (font_open_by_name): Save name as user-spec.
7707 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 7708 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
7709
7710 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7711 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7712 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7713
7714 * font.h (struct font_driver): Add cached_font_ok.
7715
c0e6d47d
JD
7716 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7717
7c583cd8
JD
77182010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7719
7720 * xterm.c (x_new_font): Move code for setting rows/cols before
7721 resizing ...
ac146f82 7722 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
7723
7724 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
7725 (xg_frame_resized, xg_frame_set_char_size):
7726 Call xg_clear_under_internal_border.
7c583cd8 7727 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 7728
03f77f0a
CY
77292010-01-05 Chong Yidong <cyd@stupidchicken.com>
7730
7731 * keyboard.c (read_key_sequence): Catch keyboard switch after
7732 making a new tty frame (Bug#5095).
7733
2a1ef5be
KH
77342010-01-05 Kenichi Handa <handa@m17n.org>
7735
7736 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7737
e3eb1dae
SM
77382010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7739
7740 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7741 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7742 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7743
777013f2
MA
77442010-01-03 Michael Albinus <michael.albinus@gmx.de>
7745
7746 * dbusbind.c (xd_add_watch): Improve debug message.
7747 (xd_remove_watch): Improve debug message. If DATA is the session
7748 bus, unset D-Bus session environment.
7749 (Fdbus_init_bus): Pass the bus as argument to
7750 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 7751
8932b1c2
CY
77522010-01-01 Chong Yidong <cyd@stupidchicken.com>
7753
87231e2c
CY
7754 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7755
4801c5fa
CY
7756 * lread.c (syms_of_lread): Make it clearer that these are the
7757 names of loaded files (Bug#5068).
7758
8932b1c2
CY
7759 * eval.c (run_hook_with_args): Handle the case where the global
7760 value has the obsolete single-function form (Bug#5026).
7761
11e3c684
CY
77622009-12-27 Chong Yidong <cyd@stupidchicken.com>
7763
7764 * minibuf.c (Fall_completions): Minor optimization.
7765
5b28ce35
EZ
77662009-12-26 Eli Zaretskii <eliz@gnu.org>
7767
5ce6e4f4
JB
7768 * .gdbinit (pgx): Fix display of composite glyphs.
7769 Display cmp.from and cmp.to as well.
7770 (pitx): Fix last change.
5b28ce35 7771
bcffff46
KH
77722009-12-25 Kenichi Handa <handa@m17n.org>
7773
7774 * composite.h (composition_adjust_point): Update prototype.
7775
7776 * composite.c (composition_reseat_it): Don't make a composition
7777 spanning over point.
7778 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7779 composable characters.
7780 (composition_adjust_point): New arg NEW_PT. Callers changed.
7781
7782 * keyboard.c (command_loop_1): Force redisplay if the last point
7783 was within a composition.
7784 (adjust_point_for_property): Don't adjust point for automatic
7785 composition when called after buffer modification.
7786
3f670e9a
EZ
77872009-12-19 Eli Zaretskii <eliz@gnu.org>
7788
5ce6e4f4
JB
7789 * .gdbinit (pitx): Don't use enum names, use their values.
7790 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
7791 (pgx): Don't use enum names, use their values.
7792 (pitmethod): New helper command.
7793 (pitx): Use it to display iteration method.
7794 (pgrowit): New command.
7795
ad903955
EZ
7796 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7797
3f670e9a
EZ
7798 Update dependencies in Makefile.in.
7799
7800 * Makefile.in (alloc.o): Depend on termhooks.h.
7801 (atimer.o): Depend on blockinput.h.
7802 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7803 and frame.h.
7804 (callint.o): Depend on systime.h, coding.h, and composite.h.
7805 (callproc.o): Depend on buffer.h.
7806 (casefiddle.o): Don't depend on charset.h.
7807 (casetab.o): Depend on character.h.
7808 (ccl.o): Depend on composite.h.
7809 (chartab.o): Depend on ccl.h.
7810 (cm.o): Depend on dispextern.h.
7811 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7812 (coding.o): Don't depend on $(INTERVALS_H).
7813 (composite.o): Don't depend on dispextern.h explicitly (it's in
7814 $(INTERVALS_H)). Depend on ccl.h.
7815 (data.o): Depend on systime.h, coding.h, composite.h,
7816 dispextern.h, font.h, and ccl.h.
7817 (dired.o): Depend on composite.h.
7818 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7819 composite.h (it's in $(INTERVALS_H)).
7820 (doc.o): Depend on systime.h, coding.h, and composite.h.
7821 (editfns.o): Don't depend explicitly on dispextern.h.
7822 (emacs.o): Depend on frame.h and coding.h.
7823 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7824 (fileio.o): Depend on frame.h and commands.h. Don't depend
7825 explicitly on dispextern.h.
7826 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7827 composite.h.
7828 (fns.o): Don't depend on termhooks.h.
7829 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7830 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7831 coding.h, $(INTERVALS_H), window.h, xterm.h.
7832 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7833 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7834 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7835 fontset.h, ccl.h, and ftfont.h.
7836 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7837 (gtkutil.o): Depend on dispextern.h and composite.h.
7838 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7839 termhooks.h, and ccl.h.
7840 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7841 (intervals.o): Depend on systime.h and coding.h.
7842 (keyboard.o): Depend on composite.h and coding.h.
7843 (keymap.o): Depend on coding.h and frame.h.
7844 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7845 (macros.o): Depend on systime.h, coding.h, and composite.h.
7846 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7847 and atimer.h.
7848 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7849 dispextern.h explicitly.
0b5397c2
SM
7850 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7851 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
7852 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7853 (regex.o): Don't depend on charset.h.
7854 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7855 (search.o): Don't depend explicitly on composite.h.
7856 (sound.o): Depend on atimer.h and systime.h.
7857 (syntax.o): Don't depend explicitly on composite.h.
7858 (sysdep.o): Depend on coding.h and composite.h.
7859 (term.o): Depend on xterm.h and buffer.h.
7860 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7861 (textprop.o): Don't depend on dispextern.h explicitly.
7862 (undo.o): Depend on dispextern.h.
7863 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7864 dispextern.h and composite.h explicitly.
7865 (xdisp.o): Depend on ccl.h.
7866 (xfaces.o): Depend on coding.h and ccl.h.
7867 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7868 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7869 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7870 ftfont.h.
7871 (xgselect.o): New dependency.
7872 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7873 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7874 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7875 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7876 (xsmfns.o): Depend on frame.h and dispextern.h.
7877 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7878 sysselect.h.
7879
7a6f7fea
AS
78802009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7881
7882 * font.c (Fclear_font_cache): Pass correct cache argument to
7883 font_clear_cache.
7884
f4c21026
AS
78852009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7886
7887 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7888 twice.
7889
f7ab0997
CY
78902009-12-15 Chong Yidong <cyd@stupidchicken.com>
7891
7892 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7893 calling file-remote-p. Reported by Jim Meyering.
7894
fa8e045a
MA
78952009-12-15 Michael Albinus <michael.albinus@gmx.de>
7896
7897 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 7898 avoid compiler warnings. (Bug #5217)
fa8e045a 7899
a63dba42
KH
79002009-12-14 Kenichi Handa <handa@m17n.org>
7901
7902 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7903 in 8-bit encoding.
7904
5ce6e4f4 79052009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
7906
7907 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7908 tooltip windows.
7909
223e5fc6
JD
79102009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7911
36acb2a7
JD
7912 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7913 Xatom_net_window_type.
7914
7915 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7916 Xatom_net_window_type.
7917
b8f00677
JD
7918 * xterm.c (my_log_handler): New function.
7919 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 7920 so we can filter out buggy messages. (Bug #5120).
b8f00677 7921
e5f0bc9a
JD
7922 * xterm.c (xg_scroll_callback): Parameter list changed,
7923 use parameter GtkScrollType to determine scroll/line/page.
7924 Only allow dragging if a button < 4 is grabbed (bug #5177).
7925 (xg_end_scroll_callback): New function.
7926 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7927 xg_create_scroll_bar.
7928
7929 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7930 (scroll_end_callback): Remove.
7931 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7932 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 7933 bug #5177.
e5f0bc9a
JD
7934 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7935 bug #5177.
7936
7937 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7938 (xg_create_scroll_bar): Add GCallback end_callback.
7939
223e5fc6
JD
7940 * xftfont.c (QClcdfilter): New variable.
7941 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7942 (syms_of_xftfont): Initialize QClcdfilter.
7943
3c055b77
JD
79442009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7945
7946 * xsettings.c (struct xsettings): Add member seen.
7947 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 7948 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
7949 (apply_xft_settings): Only update Xft settings with what member seen
7950 indicates as new.
7951
05fe33ff
EZ
79522009-12-12 Eli Zaretskii <eliz@gnu.org>
7953
c4cc8b9a 7954 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
7955 (struct glyph): Use EMACS_INT for charpos.
7956 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7957 region_beg_charpos, region_end_charpos,
7958 redisplay_end_trigger_charpos, and also for
7959 iterator_stack_entry.end_charpos and
7960 iterator_stack_entry.stop_charpos.
7961
e8d7886a
JD
79622009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7963
5ce6e4f4 7964 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7965 (xg_create_scroll_bar): Call scroll_end_callback on button release
7966 event (bug #5177).
7967 (xg_event_is_for_scrollbar): != replaced with ==.
7968
d0db2ec8
KH
79692009-12-12 Kenichi Handa <handa@m17n.org>
7970
7971 * ftfont.c (struct ftfont_info): New member matrix.
7972 (ftfont_open): Setup xftfont_info->matrix.
7973 (MFLTFontFT): New member matrix.
7974 (FLOOR, CEIL, ROUND): New macros.
7975 (ftfont_get_metrics): Handle matrix transformation.
7976 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7977
7978 * xftfont.c (struct xftfont_info): New member matrix.
7979 (xftfont_open): Setup xftfont_info->matrix.
7980
79812009-12-10 Kenichi Handa <handa@m17n.org>
7982
7983 * xdisp.c (append_space_for_newline): Consider face-remapping.
7984
2cc7b62f
AS
79852009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7986
b87dd913
AS
7987 * xsettings.c: Include "keyboard.h".
7988
eba5eb94
AS
7989 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7990
2cc7b62f
AS
7991 Fix implicit function declarations.
7992 * cmds.c: Include "frame.h".
7993 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7994 * frame.h: Move declaration of delete_frame outside of
7995 HAVE_WINDOW_SYSTEM.
7996
a4ef73c8
CY
79972009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7998
7999 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
8000
8001 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
8002 GTK builds.
8003
944a300c
AS
80042009-12-07 Andreas Schwab <schwab@linux-m68k.org>
8005
8006 * unexelf.c (unexec): Don't search for .data twice.
8007
022eef62
CY
80082009-12-05 Chong Yidong <cyd@stupidchicken.com>
8009
426ac949
CY
8010 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
8011 if push failed.
8012 (handle_line_prefix): Set avoid_cursor_p here. Check return value
8013 of push_display_prop (Bug#5000).
8014
022eef62
CY
8015 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
8016 value of font_list_entities (Bug#5085).
8017
be95bee9
JB
80182009-12-04 Juanma Barranquero <lekktu@gmail.com>
8019
8020 Fix `string-to-number' to deal consistently with integers and floats.
8021 * lread.c (isfloat_string): New argument ignore_trailing to accept all
8022 trailing characters, not just whitespace.
8023 (read1): Pass new arg 0 to keep old behavior.
8024 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
8025 trailing chars, as it is already done for integers. Doc fixes.
8026 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
8027
24c2d7ce
EZ
80282009-12-04 Eli Zaretskii <eliz@gnu.org>
8029
0b5397c2
SM
8030 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
8031 Delete unused enumeration value.
24c2d7ce 8032
7e694795
EZ
80332009-12-03 Eli Zaretskii <eliz@gnu.org>
8034
8035 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
8036
84b31826
SM
80372009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
8038
8039 * process.c (Fmake_network_process): Fix up the tests for
8040 "connectionless socket", so they DTRT for seqpacket sockets as well.
8041
f00c449b
SM
80422009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
8043
8044 * process.c (Qseqpacket): New symbol.
8045 (HAVE_SEQPACKET): New macro.
8046 (Fmake_network_process): Accept new :type `seqpacket'.
8047 (init_process): Add `seqpacket' feature when applicable.
8048 (syms_of_process): Initialize Qseqpacket.
8049
8096a0ff
YM
80502009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8051
8052 * font.c (font_load_for_lface, font_open_by_name): Don't store name
8053 if entity is Qnil.
8054
3e0de07f
SM
80552009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
8056
8057 * print.c (print_preprocess): Preprocess the key_and_value table of
8058 hashtables, even tho they're "hidden" (bug#5082).
8059
abeafb2a
JD
80602009-11-29 Jan Djärv <jan.h.d@swipnet.se>
8061
8062 * frame.c (frame_make_pointer_invisible)
8063 (frame_make_pointer_visible): Declare f before statements.
8064
4bf47195
EZ
80652009-11-28 Eli Zaretskii <eliz@gnu.org>
8066
8067 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
8068 omitted dependencies on lisp.h.
8069
c525b3f2
JD
80702009-11-27 Jan Djärv <jan.h.d@swipnet.se>
8071
ece2d4ed
JD
8072 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
8073 is NULL.
8074
8075 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
8076
8077 * frame.c (frame_make_pointer_invisible)
3e0de07f 8078 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
8079 frame.
8080
c525b3f2
JD
8081 * search.c (simple_search): Remove warning by making *p const.
8082
2f00e299
DN
80832009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 * xdisp.c (power_letter): Remove duplicate const.
8086
084b049b
JD
80872009-11-25 Jan Djärv <jan.h.d@swipnet.se>
8088
a1fadc6f
JD
8089 * term.c (delete_tty): Remove check for last terminal (bug#4970).
8090
5ce6e4f4 8091 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
8092 defaults (bug #5025).
8093
28259cac
SM
80942009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
8095
8096 * insdel.c (adjust_markers_for_delete): Move it in the
8097 right direction! (bug#4803)
8098
e8e14166
YM
80992009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8100
8101 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
8102
8103 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
8104
86677b58
GM
81052009-11-24 Glenn Morris <rgm@gnu.org>
8106
8107 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
8108
581e51e8
JD
81092009-11-23 Jan Djärv <jan.h.d@swipnet.se>
8110
cfc86c7a
JD
8111 * Makefile.in: Must create deps for ecrt0.o in its rule.
8112
581e51e8
JD
8113 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
8114 because that is what Gtk+ font dialog understands.
8115
8116 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
8117 of Fcopy_sequence.
8118 (font_open_by_name): Put name given into QCname for font-object returned.
8119
8120 * frame.c (x_set_font): Save original font name as frame parameter
8121 font-parameter.
8122
8123 * xsettings.c (set_default_xft_settings): New function.
8124 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
8125 is found.
8126
8b264ecb
AS
81272009-11-22 Andreas Schwab <schwab@linux-m68k.org>
8128
8129 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
8130 searching backwards through multibyte buffer.
8131
872870b2
JD
81322009-11-21 Jan Djärv <jan.h.d@swipnet.se>
8133
8134 * xterm.c: #include xgselect.h.
8135 (x_initialize): Call xgselect_initialize.
8136
8137 * xsettings.c (something_changedCB): C++ comments => C comments.
8138 (init_gconf): Do not deal with any GLib file descriptors, xg_select
8139 does that now.
8140
8141 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
8142 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
8143 (scroll_bar_button_cb): Remove.
5ce6e4f4 8144 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
8145 event.
8146 (xg_create_scroll_bar): Don't bind button-press-event and
8147 button-release-event.
8148
8149 * process.c: Include xgselect.h if defined (USE_GTK) ||
8150 defined (HAVE_GCONF).
8151 (wait_reading_process_output): Call xg_select for the same condition.
8152
8153 * xgselect.c (xg_select): New function to better integrate with
8154 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
8155
8156 * xgselect.h: New file, declare xg_select, xgselect_initialize.
8157
8158 * Makefile.in (XOBJ): Add xgselect.o.
8159
62a6e103
AS
81602009-11-21 Andreas Schwab <schwab@linux-m68k.org>
8161
0b5397c2
SM
8162 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
8163 Remove ignored second argument. All callers changed.
62a6e103
AS
8164 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
8165 (RE_STRING_CHAR_AND_LENGTH): Likewise.
8166 * xdisp.c (string_char_and_length): Likewise.
8167
b0ca0f33
DN
81682009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
8169
8170 * xterm.c (x_new_font):
8171 * print.c (print_object):
8172 * cmds.c (Fself_insert_command): Move declarations before statements.
8173
dd5a6279
CY
81742009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
8175
8176 * s/cygwin.h: Remove unneeded linker flags.
8177
4a8e097d
JD
81782009-11-20 Jan Djärv <jan.h.d@swipnet.se>
8179
0d1d0d26
JD
8180 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
8181
8182 * xsettings.h: Declare xsettings_get_system_font.
8183
8184 * xsettings.c (xsettings_get_system_font): New function.
8185 (init_gconf): No use initiating gconf unless we have Xft also.
8186 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
8187 HAVE_GCONF.
8188
4a8e097d
JD
8189 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
8190 add a blank entry so it doesn't collapse into nothing.
8191
8ab1650e
SM
81922009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8193
8194 * lread.c (Funintern): Comment out last change.
8195
82c602f0
RS
81962009-11-19 Richard Stallman <rms@gnu.org>
8197
8198 * lread.c (Funintern): Error if symbol is t or nil.
8199
87e32266
SM
82002009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8201
8202 * insdel.c (make_gap_larger): Don't make as many assumptions about the
8203 representation of Lisp integers.
8204 Reported by MJ Chan <mjchan.inbox@gmail.com>.
8205
1b9ac145
AS
82062009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8207
8208 * lisp.h: Remove declaration of Ffont_get_system_font.
8209 * xfns.c: Move include of "xsettings.h".
8210 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
8211
dfb3c4c6
JD
82122009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8213
87e32266
SM
8214 * xsettings.c (something_changedCB, Ffont_get_system_font):
8215 Check use_system_font.
dfb3c4c6
JD
8216 (syms_of_xsettings): DEFVAR font-use-system-font.
8217
9370c1d8
AS
82182009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8219
25fe851a
AS
8220 * xfns.c (x_default_font_parameter): Remove dead assignment.
8221
9370c1d8
AS
8222 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
8223
637fa988
JD
82242009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8225
87e32266 8226 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 8227 not have FC_LCD_*. #define them if not there.
a6eb20d8 8228
87e32266 8229 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 8230
637fa988
JD
8231 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
8232
8233 * xterm.c (handle_one_xevent): Call xft_settings_event for
8234 ClientMessage, PropertyNotify and DestroyNotify.
8235 (x_term_init): If we have XFT, get DPI from Xft.dpi.
8236 Call xsettings_initialize.
8237
8238 * xftfont.c (xftfont_fix_match): New function.
8239 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8240 Call xftfont_fix_match after XftFontMatch.
8241
8242 * xfont.c (xfont_driver): Initialize all members.
8243
87e32266
SM
8244 * xfns.c (x_default_font_parameter):
8245 Try font from Ffont_get_system_font.
637fa988
JD
8246 Do not get font from x_default_parameter if we got one from
8247 Ffont_get_system_font.
87e32266 8248 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
8249
8250 * w32font.c (w32font_driver): Initialize all members.
8251
8252 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8253
8254 * lisp.h: Declare syms_of_xsettings.
8255
87e32266
SM
8256 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
8257 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
8258
8259 * ftfont.c (ftfont_filter_properties): New function.
8260
8261 * frame.c (x_set_font): Remove unused variable lval.
8262
87e32266 8263 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
8264
8265 * font.c (font_put_extra): Don't return if val is nil, it means
8266 boolean option is off.
8267 (font_parse_fcname): Collect all extra properties in extra_props
8268 and call filter_properties for all drivers with extra_props and
8269 font as parameter.
87e32266
SM
8270 (font_open_entity): Do not use cache, it does not pick up new
8271 fontconfig settings like hinting.
637fa988
JD
8272 (font_load_for_lface): If spec had a name in it, store it in entity.
8273
a73f9c9d 8274 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
8275
8276 * config.in: HAVE_GCONF is new.
8277
8278 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
8279 xsettings.o is new.
8280
5a942932
KH
82812009-11-17 Kenichi Handa <handa@m17n.org>
8282
8283 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
8284 back to the default font in case that no suitable font is found.
8285
b7c7a4d1
SM
82862009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8287
8288 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
8289 Suggested by Chad Brown <yandros@mit.edu>.
8290 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
8291
072f1e39
JD
82922009-11-16 Jan Djärv <jan.h.d@swipnet.se>
8293
8294 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
8295
5d1e70a2
AS
82962009-11-14 Andreas Schwab <schwab@linux-m68k.org>
8297
87e32266 8298 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 8299
a53cfbe5
JD
83002009-11-14 Jan Djärv <jan.h.d@swipnet.se>
8301
473a99b7
JD
8302 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
8303 has a parent.
8304
a53cfbe5 8305 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 8306 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
8307
8308 * config.in: Generated (AUTO_DEPEND).
8309
f04bb9b2
MA
83102009-11-13 Michael Albinus <michael.albinus@gmx.de>
8311
b7c7a4d1 8312 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
8313 Vdbus_registered_functions_table, because it contains also
8314 properties. Fix docstring.
b7c7a4d1 8315 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 8316
8f11f7ec
SM
83172009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
8318
8319 * alloc.c (mark_object): Don't reprocess marked strings.
8320 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
8321 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
8322
8a605fe8
KH
83232009-11-13 Kenichi Handa <handa@m17n.org>
8324
8f11f7ec 8325 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
8326 semantics of Vword_combining_categories.
8327 (Vword_combining_categories): Describe the slight change of the
8328 semantics.
8329
241c4680
EZ
83302009-11-13 Eli Zaretskii <eliz@gnu.org>
8331
8332 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
8333
8334 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
8335
5d58e44c
SM
83362009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
8337
8338 * xdisp.c (syms_of_xdisp): Fix typo in last change.
8339
5e13f9d3
JB
83402009-11-12 Juanma Barranquero <lekktu@gmail.com>
8341
8342 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8343
cf54c754
DR
83442009-11-11 David Reitter <david.reitter@gmail.com>
8345
8346 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
8347 variables to fix 2009-11-09 change.
8348
a4ada374
DN
83492009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
8350
91433552
DN
8351 * process.c (ifflag_def): Make flag_sym constant.
8352 (Fnetwork_interface_info): Use a constant pointer.
8353 (ifflag_table):
8354 * xfns.c (cursor_bits):
8355 * xdisp.c (power_letter):
8356 * termcap.c (speeds, esctab):
8357 * sysdep.c (baud_convert):
8358 * keyboard.c (lispy_accent_codes, modifier_names):
8359 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8360 (jpeg_format, tiff_format, gif_format, svg_format)
8361 (interlace_start, interlace_increment, gs_format):
8362 * gtkutil.c (separator_names):
8363 * fringe.c (swap_nibble):
8364 * fns.c (base64_value_to_char, base64_char_to_value):
8365 * fileio.c (make_temp_name_tbl):
8366 * coding.c (suffixes): Make constant.
8367
f4265f6c
DN
8368 * frame.c (make_initial_frame):
8369 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8370 build_string.
8371 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8372
04420943
DN
8373 * s/freebsd.h:
8374 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8375
0a5d24ae
DN
8376 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8377 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8378
a4ada374
DN
8379 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8380 * xterm.c (syms_of_xterm):
8381 * xfaces.c (syms_of_xfaces):
8382 * xdisp.c (syms_of_xdisp):
8383 * lread.c (syms_of_lread):
8384 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8385 build_string.
91433552 8386
a4ada374
DN
8387 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8388
af98fc7f
SM
83892009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8ab1650e 8391 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 8392
e90292a9
JD
83932009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8394
8395 * keyboard.h: Declare timer_check.
8396
8397 * keyboard.c (timer_check_2): New function that does what the old
8398 timer_check did.
8399 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8400 returned, i.e. don't return -1 with timers pending.
8401
8402 * process.c: Remove extern declaration of timer_check.
8403
8404 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8405 even if timer_check returned -1.
8406
af98fc7f
SM
8407 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8408 xg_dialog_data.
e90292a9
JD
8409 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8410 the event loop.
8411 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8412 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8413 Destroy the dialog after xg_dialog_run.
8414
045b83c0
SM
84152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8416
8417 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8418
1fb99a3a
JD
84192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8420
8421 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8422
04e452cb
JB
84232009-11-09 Juanma Barranquero <lekktu@gmail.com>
8424
8425 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
8426
ef7417fd
SM
84272009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
8428
8429 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
8430 w32menu.c, and nsmenu.m.
8431 Simplify the obsolete case where position is nil.
8432 (cleanup_popup_menu): New function, moved from nsmenu.m.
8433 (struct skp): Remove slot `notreal'.
8434 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
8435 adjust callers.
8436 (single_menu_item): Adjust call to parse_menu_item.
8437 (syms_of_menu): Defsubr x-popup-menu.
8438 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
8439 (keymap_panes): Don't export any more.
8440 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
8441 (xmenu_show): Declare.
8442 * keyboard.c (parse_menu_item): Remove arg `notreal'.
8443 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
8444 * keyboard.h (parse_menu_item): Update declaration.
8445 * xmenu.c (Fx_popup_menu): Remove.
8446 (syms_of_xmenu): Don't defsubr x-popup-menu.
8447 * w32menu.c (Fx_popup_menu): Remove.
8448 (syms_of_w32menu): Don't defsubr x-popup-menu.
8449 * nsmenu.m (cleanup_popup_menu): Remove.
8450 (ns_menu_show): Rename from ns_popup_menu and remove all the code
8451 moved to menu.c's Fx_popup_menu.
8452 (Fx_popup_menu): Remove.
8453 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
8454 menu_items (it's done in menu.c already).
8455
424d6179
SM
84562009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8457
8458 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8459 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8460
c0df13a6 84612009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
8462
8463 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 8464 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
8465 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8466 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8467
2de9f71c
SM
84682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8469
8470 Let integers use up 2 tags to give them one extra bit and thus double
8471 their range.
8472 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8473 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8474 New macros.
8475 (enum Lisp_Type): Use them. Give explicit values.
8476 (Lisp_Type_Limit): Remove.
8477 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8478 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8479 Pay attention to USE_2_TAGS_FOR_INTS.
8480 (INTEGERP): Use LISP_INT_TAG_P.
8481 * fns.c (internal_equal): Simplify the default case.
8482 (sxhash): Use case_Lisp_Int.
8483 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8484 any more.
8485 (Ftype_of): Use case_Lisp_Int.
8486 (store_symval_forwarding): Take into account the fact that Ints can
8487 now have more than one tag.
8488 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 8489 (buffer_slot_type_mismatch):
2de9f71c
SM
8490 * xfaces.c (face_attr_equal_p):
8491 * print.c (print_object):
8492 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8493 Use case_Lisp_Int.
8494
323637a2
EZ
84952009-11-06 Eli Zaretskii <eliz@gnu.org>
8496
7ac65b38
EZ
8497 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8498
323637a2
EZ
8499 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8500 warning.
8501
e511451f
JD
85022009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8503
8504 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8505
8506 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8507
8508 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8509 ButtonPressRelease and MotionNotify (bug#4870).
8510
5e2327cf
DN
85112009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8512
5adc433e
DN
8513 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8514
d67b4f80
DN
8515 * xterm.c (syms_of_xterm):
8516 * xselect.c (syms_of_xselect):
8517 * xmenu.c (syms_of_xmenu):
8518 * xfns.c (syms_of_xfns):
8519 * xfaces.c (syms_of_xfaces):
8520 * xdisp.c (syms_of_xdisp):
8521 * window.c (syms_of_window):
8522 * w32fns.c (syms_of_w32fns):
8523 * undo.c (syms_of_undo):
8524 * textprop.c (syms_of_textprop):
8525 * terminal.c (syms_of_terminal):
8526 * syntax.c (syms_of_syntax):
8527 * sound.c (syms_of_sound):
8528 * search.c (syms_of_search):
8529 * print.c (syms_of_print):
8530 * minibuf.c (syms_of_minibuf):
8531 * macros.c (syms_of_macros):
8532 * keymap.c (syms_of_keymap, initial_define_key)
8533 (initial_define_lispy_key):
8534 * keyboard.c (syms_of_keyboard):
8535 * insdel.c (syms_of_insdel):
8536 * image.c (syms_of_image):
8537 * fringe.c (syms_of_fringe):
8538 * frame.c (syms_of_frame):
8539 * fontset.c (syms_of_fontset):
8540 * fns.c (syms_of_fns):
8541 * fns.c (syms_of_fns):
8542 * fileio.c (syms_of_fileio):
8543 * fileio.c (syms_of_fileio):
8544 * eval.c (syms_of_eval):
8545 * doc.c (syms_of_doc):
8546 * dispnew.c (syms_of_display):
8547 * dired.c (syms_of_dired):
8548 * dbusbind.c (syms_of_dbusbind):
8549 * data.c (syms_of_data):
8550 * composite.c (syms_of_composite):
8551 * coding.c (syms_of_coding):
8552 * cmds.c (syms_of_cmds):
8553 * charset.c (define_charset_internal, syms_of_character):
8554 * ccl.c (syms_of_ccl):
8555 * category.c (syms_of_category, init_category_once):
8556 * casetab.c (syms_of_casetab):
8557 * casefiddle.c (syms_of_casefiddle):
8558 * callint.c (syms_of_callint):
8559 * bytecode.c (syms_of_bytecode):
8560 * buffer.c (keys_of_buffer, syms_of_buffer):
8561 * alloc.c (syms_of_alloc):
8562 * process.c (syms_of_process, init_process):
8563 * lread.c (syms_of_lread, init_obarray):
8564 * font.c (build_style_table):
8565 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8566 intern_c_string, calls to make_pure_string with
8567 make_pure_c_string. Use pure_cons instead of Fcons.
8568
5e2327cf
DN
8569 * process.c (socket_options): Make it const.
8570 (set_socket_option, init_process): Use a const pointer.
8571
8572 * lread.c (intern_c_string): New function.
8573 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8574 (defvar_int): Uset it. Make the name const char*.
8575
8576 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8577 (defvar_int): Update prototypes.
8578 (DEFUN, EXFUN): Support for prototypes is now required.
8579 (intern_c_string): New prototype.
8580 (struct Lisp_Subr): Make symbol_name constant.
8581
8582 * font.c (struct table_entry): Remove unused member. Make NAMES
8583 constant.
8584 (weight_table, slant_table, width_table): Make constant.
8585
8586 * emacs.c (struct standard_args): Make name and longname constant.
8587
8588 * character.h (DEFSYM): Use intern_c_string.
8589
a56eaaef
DN
85902009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8591
8592 * alloc.c (make_pure_c_string): New function.
8593
8594 * eval.c (Fautoload): Purecopy all arguments.
8595
f6a07420
KH
85962009-11-05 Kenichi Handa <handa@m17n.org>
8597
8598 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8599 the buffer in case of replace.
8600
5d28d4b1
DN
86012009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8602
8603 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8604
b349d111
SM
86052009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8606
d528b1ce
SM
8607 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8608 when applicable (bug#4851).
8609
b349d111
SM
8610 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8611 (P_): Support for prototypes is now required.
8612
c38eb027
CY
86132009-10-31 Chong Yidong <cyd@stupidchicken.com>
8614
8615 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8616 (Bug#4827).
8617
0405f8d9
EZ
86182009-10-30 Eli Zaretskii <eliz@gnu.org>
8619
d528b1ce 8620 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 8621
ca0a881a
DN
86222009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8623
8624 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8625
d528b1ce
SM
8626 * lread.c (Fload): Purecopy the file name when building
8627 Vpreloaded_file_list.
ca0a881a 8628
47e0e0e4
JR
86292009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8630
8631 * w32fns.c (syms_of_w32fns): Change default value of
8632 w32-scroll-lock-modifier to nil. (Bug#2827)
8633
057bce6f
JB
86342009-10-26 Juanma Barranquero <lekktu@gmail.com>
8635
782a943e 8636 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 8637
242bc74c
AS
86382009-10-26 Andreas Schwab <schwab@redhat.com>
8639
8640 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8641
522d013a
JB
86422009-10-26 Juanma Barranquero <lekktu@gmail.com>
8643
8644 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8645 For delta < 0, skip check that only makes sense when the mini-window
8646 is going to be enlarged. (Bug#4534)
8647
18060980
CY
86482009-10-25 Chong Yidong <cyd@stupidchicken.com>
8649
8650 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8651 string in menu maps (Bug#4471).
8652
fec8f0fe
CY
86532009-10-24 Chong Yidong <cyd@stupidchicken.com>
8654
8655 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8656 FRAME_NS_VIEW on terminal frames (Bug#4765).
8657
10d66ec0
AS
86582009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8659
1cae01f7
AS
8660 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8661 DBUS_TYPE_UINTnn separately to get proper sign extension.
8662
58a12889
AS
8663 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8664 can properly handle unsigned types.
d528b1ce 8665 (make_uid, make_gid): Remove.
58a12889 8666
987c9327
AS
8667 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8668 types again.
8669
522d013a 8670 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
8671 (system_process_attributes): Likewise.
8672
905a9ed3
DN
86732009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8674
8675 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8676
8677 * eval.c (Fautoload): Purecopy the filename. Simplify.
8678
8679 * category.c (Fdefine_category): Purecopy docstring.
8680
a599b3e8
AS
86812009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8682
7b792fc9
AS
8683 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8684
a599b3e8
AS
8685 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8686
b35ac83e
CY
86872009-10-23 Chong Yidong <cyd@stupidchicken.com>
8688
8689 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8690 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8691 (Bug#4775).
8692
e8903e00
SM
86932009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8694
8695 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8696 (init_fileio_once):
8697 * lisp.h (init_fileio_once): Remove.
8698 * emacs.c (main): Don't call init_fileio_once.
8699
8f43cbf3
DN
87002009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8701
8702 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8703
26898943
AS
87042009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8705
8706 * doprnt.c (doprnt): Fix overflow check.
8707
5c646d5a
JD
87082009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8709
3132a7ea
JD
8710 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8711
5c646d5a
JD
8712 * xterm.h (x_wait_for_event): Declare it.
8713
8714 * xterm.c (pending_event_wait): New variable.
8715 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8716 see pending_event_wait.eventtype.
8717 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
8718 (x_new_font): Call change_frame_size with new rows/columns before we
8719 try to resize the frame.
5c646d5a 8720 (x_wait_for_event): New function.
d528b1ce
SM
8721 (x_set_window_size_1): Don't change gravity unless change_gravity
8722 is set.
5c646d5a
JD
8723 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8724 don't change frame size, instead wait for the ConfigureNotify.
8725 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8726 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8727 (x_initialize): Initialize pending_event_wait.
8728
8729 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8730 size.
8731
8732 * widget.c (EmacsFrameSetValues): Add comment.
8733 (EmacsFrameSetCharSize): Just call x_set_window_size.
8734
8735 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8736 x_wait_for_event.
d528b1ce 8737 (flush_and_sync): Remove again.
5c646d5a
JD
8738 (xg_get_font_name): Suggest monospace if no previous font is known.
8739
e9c1637d
SM
87402009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8741
8742 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 8743 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 8744
5a72cccb
YM
87452009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8746
8747 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8748 processing pending events when event is filtered for input method.
ab04798f 8749 (Bug#3681)
5a72cccb 8750
2629aa37
JB
87512009-10-20 Juanma Barranquero <lekktu@gmail.com>
8752
8753 * fns.c: Add #endif accidentally removed in previous change.
8754
c3417a74
DN
87552009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8756
8757 * fns.c: Remove code for unsupported system: MAC_OS.
8758 * image.c: Likewise. Include setjmp.h.
8759
9685cef2
JD
87602009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8761
8762 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8763 pixel -1 (bug #4742).
8764
d7306fe6
DN
87652009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8766
019d2c4c
DN
8767 * process.c (create_pty): Remove conditionals for no longer
8768 supported systems: UNIPLUS and RTU.
8769
ee6bacd4
DN
8770 * xterm.c:
8771 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8772
d7306fe6
DN
8773 * alloc.c: Do not define struct catchtag.
8774 * eval.c: Move struct catchtag definition ...
8775 * lisp.h: ... here.
8776
8777 * image.c: Move png.h #include earlier to avoid warnings.
8778
8779 * xterm.c:
8780 * xsmfns.c:
8781 * xselect.c:
8782 * xrdb.c:
8783 * xmenu.c:
8784 * xftfont.c:
8785 * xfont.c:
8786 * xfns.c:
8787 * xfaces.c:
8788 * xdisp.c:
8789 * window.c:
8790 * widget.c:
8791 * w32xfns.c:
8792 * w32uniscribe.c:
8793 * w32term.c:
8794 * w32select.c:
8795 * w32reg.c:
8796 * w32proc.c:
8797 * w32menu.c:
8798 * w32inevt.c:
8799 * w32heap.c:
8800 * w32font.c:
8801 * w32fns.c:
8802 * w32console.c:
8803 * w32.c:
8804 * w16select.c:
8805 * vm-limit.c:
8806 * unexsol.c:
8807 * unexec.c:
8808 * unexcw.c:
8809 * unexaix.c:
8810 * undo.c:
8811 * tparam.c:
8812 * textprop.c:
8813 * terminfo.c:
8814 * terminal.c:
8815 * termcap.c:
8816 * term.c:
8817 * syntax.c:
8818 * sound.c:
8819 * sheap.c:
8820 * search.c:
8821 * scroll.c:
8822 * region-cache.c:
8823 * regex.c:
8824 * ralloc.c:
8825 * process.c:
8826 * print.c:
b024548b
DN
8827 * nsterm.m:
8828 * nsselect.m:
8829 * nsmenu.m:
8830 * nsimage.m:
8831 * nsfont.m:
8832 * nsfns.m:
d7306fe6
DN
8833 * msdos.c:
8834 * minibuf.c:
8835 * menu.c:
8836 * marker.c:
8837 * macros.c:
8838 * keymap.c:
8839 * keyboard.c:
8840 * intervals.c:
8841 * insdel.c:
8842 * indent.c:
8843 * gtkutil.c:
8844 * ftxfont.c:
8845 * ftfont.c:
8846 * fringe.c:
8847 * frame.c:
8848 * fontset.c:
8849 * font.c:
8850 * fns.c:
8851 * floatfns.c:
8852 * filelock.c:
8853 * fileio.c:
8854 * emacs.c:
8855 * editfns.c:
8856 * dosfns.c:
8857 * doprnt.c:
8858 * doc.c:
8859 * dispnew.c:
8860 * dired.c:
8861 * dbusbind.c:
8862 * data.c:
8863 * composite.c:
8864 * coding.c:
8865 * cmds.c:
8866 * cm.c:
8867 * chartab.c:
8868 * charset.c:
8869 * character.c:
8870 * ccl.c:
8871 * category.c:
8872 * casetab.c:
8873 * casefiddle.c:
8874 * callproc.c:
8875 * callint.c:
8876 * bytecode.c:
8877 * buffer.c:
8878 * atimer.c: Include setjmp.h. (Bug#4643)
8879
fd5f21e6
SM
88802009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8881
4c0354d7
SM
8882 Remove leftover table unibyte_to_multibyte_table.
8883 * character.c (unibyte_to_multibyte_table): Remove.
8884 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8885 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8886 * character.h (UNIBYTE_TO_CHAR): New macro.
8887 (MAKE_CHAR_MULTIBYTE): Use it.
8888 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8889 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8890 (message_dolog, set_message_1):
8891 * search.c (Freplace_match):
8892 * editfns.c (Fcompare_buffer_substrings):
8893 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8894 (concat):
8895 * insdel.c (copy_text, count_size_as_multibyte):
8896 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8897 * term.c (produce_glyphs):
8898 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8899 * regex.c (RE_CHAR_TO_MULTIBYTE):
8900 * cmds.c (internal_self_insert):
8901 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8902
fd5f21e6
SM
8903 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8904
4418646e
DN
89052009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8906
8907 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8908
35f5c1d2
JB
89092009-10-16 Juanma Barranquero <lekktu@gmail.com>
8910
8911 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8912
a0cd8f6b
AR
89132009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8914
8915 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8916 still needed under Tiger.
8917
8918 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8919
8920 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8921 __Apple__.
8922
8923 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8924
01a8d3fa
KH
89252009-10-15 Kenichi Handa <handa@m17n.org>
8926
8927 * print.c (print_object): Escape a symbol like "2E10" too.
8928
bf6c75c9 89292009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
8930
8931 Cleanups and changes for 64-bit compile under Snow Leopard.
8932 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
8933
8934 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8935
c5959062 8936 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
8937 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8938 cast argument.
8939 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 8940 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
8941
8942 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8943
8944 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8945 where appropriate.
8946
8947 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8948 where appropriate.
6e4780c5
JB
8949 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8950 Use stringWithUTF8String.
bf6c75c9
AR
8951 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8952
6e4780c5
JB
8953 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8954 Add formal protocol mention to inheritance.
bf6c75c9
AR
8955 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8956
6e4780c5
JB
8957 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8958 Fix printf format.
bf6c75c9
AR
8959 (ns_query_color): Use CGFloat where appropriate.
8960 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8961 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8962 argument.
8963
3d87f118
AR
8964 * config.in (NS_HAVE_NSINTEGER): Drop.
8965
a95c8102
AR
8966 * dbusbind.c (dbus-method-return-internal)
8967 (dbus-method-error-internal): Use long format in printf, and cast
8968 argument.
8969
8970 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8971 in printf, and cast argument.
8972
6873acca 8973 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8974 cast argument.
8975
9ec6f100
GM
89762009-10-11 Glenn Morris <rgm@gnu.org>
8977
8978 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8979
5be883cd
JD
89802009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8981
8982 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8983 menu bar with a small width so it doesn't enlarge the frame.
8984
d7a39b51
JB
89852009-10-08 Juanma Barranquero <lekktu@gmail.com>
8986
8987 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8988
0c2b6f8e
GM
89892009-10-06 Glenn Morris <rgm@gnu.org>
8990
8991 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8992 SOME_MACHINE_LISP (this enters indirectly via DOC).
8993
e02131a2
EZ
89942009-10-05 Eli Zaretskii <eliz@gnu.org>
8995
8996 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8997
b4744254
EZ
89982009-10-04 Eli Zaretskii <eliz@gnu.org>
8999
9000 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
9001 Doc fix.
9002
dbf64827
JB
90032009-10-03 Martin Rudalics <rudalics@gmx.at>
9004
9005 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
9006
e9a0aef8
MA
90072009-10-02 Michael Albinus <michael.albinus@gmx.de>
9008
d528b1ce 9009 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
9010 used anymore outside fileio.c.
9011
9012 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
9013
64eb2b56
JB
90142009-10-01 Juanma Barranquero <lekktu@gmail.com>
9015
9016 * lisp.h (Qdelete_directory_internal):
9017 Declare, instead of Qdelete_directory.
9018
9019 * w32fns.c (Fsystem_move_file_to_trash): Use it.
9020
9d28c33e
SM
90212009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
9022
9023 * eval.c (Fcalled_interactively_p): Add `kind' argument.
9024
9d8f3bd9
MA
90252009-10-01 Michael Albinus <michael.albinus@gmx.de>
9026
9d28c33e 9027 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
9028 Fdelete_directory. It is not a command anymore. It has no file
9029 name handler.
9030
9694740b
SM
90312009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * xdisp.c (get_next_display_element): Use an enum in last change.
9034
748e162f
KH
90352009-09-28 Kenichi Handa <handa@m17n.org>
9036
9694740b 9037 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
9038 unibyte_display_via_language_environment in handling
9039 Vnobreak_char_display.
9040
17efd58d
AR
90412009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9042
9043 * nsterm.h (ns_app_name): New extern variable.
9044
9045 * nsterm.m (ns_app_name): New variable.
9046 (ns_term_init): Set and use it.
9047 (ns_term_shutdown): Use it.
9048
9049 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
9050 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
9051
9052 * nsfns.m (ns_set_name_iconic, ns_set_name)
9053 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
9054 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
9055
9694740b
SM
9056 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
9057 Remove double-casting in client_data comparison.
31c2d412 9058
3208cb35
YM
90592009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9060
9061 * keyboard.c (make_lispy_event): Remember last wheel direction.
9062 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
9063
b7d552d6
GM
90642009-09-26 Glenn Morris <rgm@gnu.org>
9065
9066 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
9067 internal.elc. Add term/pc-win.elc.
9068 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
9069 term/x-win.elc.
9070 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
9071 term/w32-win.elc.
9072 (NS_SUPPORT): New.
9073 (lisp): Add NS_SUPPORT.
9074 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
9075
4ff670a8
DR
90762009-09-25 David Reitter <david.reitter@gmail.com>
9077
9078 * nsmenu.m (EmacsMenu-clear): Recognize application menu
9079 on Mac OS X 10.6+ (bug#4513).
9080
feabfb6c
JB
90812009-09-24 Juanma Barranquero <lekktu@gmail.com>
9082
9083 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
9084 some parts of Emacs code (like font selection) don't grok them.
9085 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 9086
de59072a
AS
90872009-09-24 Andreas Schwab <schwab@redhat.com>
9088
9089 * coding.c (decode_coding_iso_2022): Fix operator precedence.
9090
a489517b
JB
90912009-09-24 Juanma Barranquero <lekktu@gmail.com>
9092
9093 * dired.c (Fdirectory_files): Fix typo in docstring.
9094
0592970c
AR
90952009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9096
9097 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
9098 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
9099 (EmacsScroller-setPosition:portion:whole:): Remove -display call
9100 under GNUstep.
9101 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
9102
9103 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
9104 glyph advancement.
9105
48e8a88b
AR
91062009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9107
9108 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 9109 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
9110
9111 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
9112 deleted (bug #4492).
9113
e14f0a78
AR
9114 * nsfont.m (Vns_reg_to_script): New lisp variable.
9115 (syms_of_nsfont): Declare it.
9116 (ns_registry_to_script): New function.
9117 (ns_get_req_script): Call it.
9118 (ns_findfonts): Don't give up on non-unicode registry.
9119
9120 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
9121
5b650faa
SM
91222009-09-20 Tom Tromey <tromey@redhat.com>
9123
9124 * eval.c (find_handler_clause): Make stack-trace-on-error work in
9125 batch mode (bug#4228).
9126
a489517b 91272009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
9128
9129 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 9130 carefully. (Bug #4339)
0bae4e09 9131
fcfe06f3
CY
91322009-09-18 Chong Yidong <cyd@stupidchicken.com>
9133
d798ba87 9134 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 9135
31642728
AR
91362009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9137
9138 * emacs.c (inhibit_x_resources): Update doc string for NS.
9139 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 9140 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
9141
9142 * nsterm.h (ns_no_defaults): Remove.
9143
9144 * nsterm.m (ns_no_defaults): Remove.
9145 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
9146 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
9147 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
9148 don't update the NSWindow itself.
9149 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 9150 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
9151
9152 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
9153 ns_use_qd_smoothing.
9154
9155 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
9156 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 9157 (x-close-connection): Drop PSFlush() under OS X.
a489517b 9158 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 9159
8686ac71
JB
91602009-09-17 Juanma Barranquero <lekktu@gmail.com>
9161
9162 * emacs.c (inhibit_x_resources): New variable.
9163 (main) [HAVE_NS]: Don't process --quick command line option.
9164 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
9165
9166 * lisp.h (inhibit_x_resources): Declare it extern.
9167
9168 * w32reg.c (x_get_string_resource):
9169 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
9170
e227ba05
EZ
91712009-09-17 Eli Zaretskii <eliz@gnu.org>
9172
362654a6
JB
9173 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
9174 Add lisp/term/internal.elc.
e227ba05 9175
742d40e8
SM
91762009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9177
9178 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
9179 (bug#4461).
9180
005bd5a2
DN
91812009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
9182
9183 * puresize.h (BASE_PURESIZE): Increase to 1290000.
9184
9185 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
9186 (OBJECTS_MACHINE): Remove, unused.
9187
f9af9719
SM
91882009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
9189
9190 * frame.c (x_get_resource_string): Remove unused.
9191
0307c7d2
JD
91922009-09-15 Jan Djärv <jan.h.d@swipnet.se>
9193
9194 * xterm.c (x_new_font): Call change_frame_size before calling
9195 x_set_window_size, in case frame size won't change.
9196
9197 * frame.c (x_set_font): Remove dead code.
9198
428b13d6
SM
91992009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
9202
5766c380
SM
92032009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9204
9205 * lread.c (Fload): Don't output a message after loading an obsolete
9206 package any more (done in Lisp now).
9207
2fd0161b
CY
92082009-09-12 Chong Yidong <cyd@stupidchicken.com>
9209
9210 * fns.c (syms_of_fns): Doc fix (Bug#4227).
9211
bc5e75b6
SM
92122009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * keymap.c (Fwhere_is_internal): Use nconc2.
9215
c31c985e
AM
92162009-09-11 Alan Mackenzie <acm@muc.de>
9217
9218 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
9219 batch mode.
9220
78012bd2
AS
92212009-09-11 Andreas Schwab <schwab@linux-m68k.org>
9222
9223 * xdisp.c (display_mode_element): Detect cycles.
9224
9d889332
SM
92252009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * keymap.c (where_is_internal): Don't erroneously return nil right after
9228 filling the cache.
9229 (where_is_internal_1): Fix up typo.
9230
7ab5d780
GM
92312009-09-11 Glenn Morris <rgm@gnu.org>
9232
9233 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
9234 share a common doc-string.
9235
5238a749
SM
92362009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9237
66d77eda
SM
9238 * keymap.c (get_keymap): Return the actual keymap symbol rather than
9239 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9240
5238a749
SM
9241 * keymap.c (QCadvertised_binding): New constant.
9242 (syms_of_keymap): Initialize it.
9243 (Fwhere_is_internal): Try and use bindings from :advertised-binding
9244 if applicable.
9245
19f48442
SM
92462009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9247
50d4ba39
SM
9248 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9249 (parse_menu_item): Streamline since bindings are recomputed all the
9250 time anyway. Don't bother checking Vdefine_key_rebound_commands any
9251 more and don't support lmenu's menu-alias any more either.
9252
a88a5372
SM
9253 * keymap.c (where_is_internal_data): Make noindirect a boolean.
9254 (where_is_internal): Strip it down to only traverse the keymaps.
9255 Move the cache handling from Fwhere_is_internal to here.
9256 (Fwhere_is_internal): Move the handling of remapping and the choice of
9257 the best binding from where_is_internal to here.
9258 Unify the cached/noncached paths, so remapping is also handled
9259 correctly when the cache is used, and so the cache can be used to
9260 speed up remap-handling when applicable.
9261 Give preference to non-remapped bindings.
9262 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
9263 non-remapped bindings.
9264 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
9265 command remapping.
9266
19f48442
SM
9267 * xdisp.c (display_mode_element): Move list length limit from 50 to
9268 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
9269
599498c3 92702009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
9271
9272 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
9273
f9b7b5ac
SM
92742009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
9275
a53af587
JB
9276 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
9277 (Bug#4334)
9278
f9b7b5ac
SM
9279 * keymap.c (where_is_internal): Filter out shadowed remappings.
9280 Assume that where_is_internal returns unshadowed bindings to simplify
9281 the code and get rid of the gotos. Use ASIZE.
9282
04f4b72d
JD
92832009-09-04 Jan Djärv <jan.h.d@swipnet.se>
9284
4da146f2
JD
9285 * xterm.c (x_focus_changed): If we get a focusout and pointer
9286 is invisible, make it visible.
9287
04f4b72d
JD
9288 * xterm.h: Remove condition for declaration of
9289 x_*_window_to_frame.
9290
7cef7ce3
SM
92912009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
9292
9293 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
9294 initial terminal as well.
9295
a54fa5b7
JD
92962009-09-02 Jan Djärv <jan.h.d@swipnet.se>
9297
9298 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 9299 x_menubar_window_to_frame.
a54fa5b7 9300
50426a04 9301 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
9302 (XTmouse_position): Do not return valid positions
9303 for clicks in the menubar and the toolbar for Gtk+.
9304
9305 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
9306 if the widget for the event has the same top level as a frame,
9307 return the frame.
9308 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
9309 internal windows, bug #4122.
9310 (x_non_menubar_window_to_frame): Remove.
9311
5a021dd0
GM
93122009-09-02 Glenn Morris <rgm@gnu.org>
9313
9314 * buffer.c (default-major-mode): Move most of the doc from here...
9315 (major-mode): ... to here.
9316
548fe2f3
NR
93172009-08-30 Nick Roberts <nickrob@snap.net.nz>
9318
9319 * process.c (wait_reading_process_output): Keep the descriptor
9320 when pty is used by a non-child process, e.g., in I/O buffer of
9321 GDB this allows inferior to be restarted.
9322
e0840eef
EZ
93232009-08-29 Eli Zaretskii <eliz@gnu.org>
9324
9325 * xdisp.c (redisplay_internal): Remove redundant test and collapse
9326 both branches into one.
9327
82e98df4
SM
93282009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9329
9330 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
9331 (main): Use enable-multibyte-characters rather than
9332 default-enable-multibyte-characters. Output a warning message when
9333 running a unibyte session.
9334
890617cb
YM
93352009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9336
9337 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
9338 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
9339 (copy_data_segment): Also copy __program_vars section.
9340 (copy_dyld_info) [LC_DYLD_INFO]: New function.
9341 (dump_it) [LC_DYLD_INFO]: Use it.
9342
9343 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
9344
e7adeadc
EZ
93452009-08-28 Eli Zaretskii <eliz@gnu.org>
9346
9347 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
9348 $(SRC)/buildobj.h.
9349 (buildobj.h): Renamed from $(SRC)/buildobj.h.
9350 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
9351 $(SRC)/buildobj.h.
9352 (clean): Add buildobj.h.
9353
3ed8bbdc
TZ
93542009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
9355
9356 * print.c (print_object): Set escapeflag to 1 when printing
9357 hashtable keys and values.
9358
155a6764
SM
93592009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9360
9361 * lread.c (read_integer): Use doubles (and potentially return a float
9362 number) as we do in string-to-number.
9363 (read1): Use strtol to read integers, signal errors on strtol's
9364 overflow and use floats if strtol's output is too large for
9365 Elisp integers.
9366
877610de
EZ
93672009-08-27 Eli Zaretskii <eliz@gnu.org>
9368
9369 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9370 (make-buildobj-SH): Fix last change.
9371 (SRC): Move to before where it's first used.
9372
ef73e7be
KH
93732009-08-27 Kenichi Handa <handa@m17n.org>
9374
550c8289
KH
9375 * process.c (send_process): Use encode_coding_object instead of
9376 encode_coding_string to perform eol-conversion even if the string
9377 is unibyte.
9378
60afa08d
KH
9379 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9380 character.
9381
ef73e7be 9382 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 9383 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 9384
7b3a82d7
DN
93852009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9386
5654bf63
DN
9387 * callproc.c (Fcall_process): Remove always true #if.
9388
7b3a82d7
DN
9389 * lisp.h: Replace #if 0 code for checking with text pointing to
9390 the --enable-checking configure flag.
9391
9392 * emacs.c (main): Mention the --enable-profiling configure flag
9393 instead of using CFLAGS.
9394
878bde49
KR
93952009-08-26 Ken Raeburn <raeburn@raeburn.org>
9396
9397 * Makefile.in (buildobj.h): New target.
9398 (doc.o): Depend on it.
9399 (temacs${EXEEXT}): Don't generate buildobj.lst.
9400 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9401 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9402 ($(BLD)/doc.$(O)): Depend on it.
9403 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9404 provided by Eli Zaretskii.)
9405 ($(TEMACS)): Don't generate buildobj.lst.
9406 * doc.c: Include buildobj.h.
9407 (buildobj): New static variable.
9408 (Fsnarf_documentation): Use it, instead of opening and reading
9409 buildobj.lst.
9410
1574224c
MA
94112009-08-25 Michael Albinus <michael.albinus@gmx.de>
9412
9413 * dbusbind.c (Fdbus_call_method)
9414 (Fdbus_call_method_asynchronously): Use English numeric format for
9415 timeout values in doc string.
9416
d9da2f45
KH
94172009-08-25 Kenichi Handa <handa@m17n.org>
9418
ef73e7be
KH
9419 * alloc.c (mark_char_table): New function.
9420 (mark_object): Use mark_char_table for a char-table.
9421
d9da2f45
KH
9422 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9423 (CHAR_TABLE_REF): Use it.
9424
c8edcc01
KR
94252009-08-23 Ken Raeburn <raeburn@raeburn.org>
9426
9427 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
9428 before invoking the newly build emacs to check for load-path
9429 shadowing.
9430
7763401b
GM
94312009-08-22 Glenn Morris <rgm@gnu.org>
9432
9433 * Makefile.in (bootstrap_exe): New variable.
9434 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
9435 Use ${bootstrap_exe}.
9436
729eadda
EZ
94372009-08-22 Eli Zaretskii <eliz@gnu.org>
9438
9439 * coding.h (encode_coding_string): Don't encode unibyte strings.
9440 (Bug#4047)
9441
eb4c6ace
MA
94422009-08-22 Michael Albinus <michael.albinus@gmx.de>
9443
9444 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
9445
9446 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
9447 intended as hotfix only.
9448 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
9449
36e34d1b
AR
94502009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9451
9452 * nsterm.m (ns_get_color): Update documentation properly for last
9453 change, and clean up loose ends in the code left by it. Fix
9454 longstanding bug with 16-bit hex parsing, and add support for
9455 yet another X11 format (rgb:r/g/b) for compatibility.
9456 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9457 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9458
f983eb8a
SM
94592009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9460
9461 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9462
3f56d3c6
MA
94632009-08-20 Michael Albinus <michael.albinus@gmx.de>
9464
9465 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9466 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9467 (xd_initialize, xd_pending_messages): Check, whether
9468 $DBUS_SESSION_BUS_ADDRESS is set.
9469
fb641d68
YM
94702009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9471
9472 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9473
9474 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9475
cf59a374
GM
94762009-08-20 Glenn Morris <rgm@gnu.org>
9477
9478 * emacs.c (system-type): Doc fix.
9479
1373f3be
SM
94802009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9481
9482 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9483 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9484
058ed861
MA
94852009-08-18 Michael Albinus <michael.albinus@gmx.de>
9486
1373f3be
SM
9487 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9488 New functions.
058ed861
MA
9489 (xd_initialize): Revert change from 2009-08-16.
9490
563a866e 94912009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
9492
9493 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 9494 font-group vector, return nil.
5fc05db0 9495
e42bdf01
CY
94962009-08-17 Chong Yidong <cyd@stupidchicken.com>
9497
9498 * process.c (status_notify): Don't perform redisplay.
9499 (Fdelete_process, list_processes_1, process_send_signal):
9500 Expliticly perform redisplay.
9501 (wait_reading_process_output): Always check process status, but
9502 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9503
4230ab74
KR
95042009-08-17 Ken Raeburn <raeburn@raeburn.org>
9505
1373f3be 9506 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
9507 (XFLOAT_INIT): New macro for storing a float value.
9508 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9509 * fns.c (sxhash): Copy out the value of a float in order to
9510 examine its bytes.
9511 * dbusbind.c (xd_append_arg): Likewise.
9512
4230ab74
KR
9513 * emacs.c (main): Don't call syms_of_data twice.
9514
a0645cdd
MA
95152009-08-16 Michael Albinus <michael.albinus@gmx.de>
9516
9517 * dbusbind.c (xd_initialize): Add connection file descriptor to
9518 input_wait_mask, in order to let select() detect, whether a new
9519 message has been arrived.
ca4f31ea 9520 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 9521
485db0ba
MA
95222009-08-15 Michael Albinus <michael.albinus@gmx.de>
9523
1373f3be
SM
9524 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9525 New functions.
485db0ba
MA
9526
9527 * lisp.h (xd_pending_messages): Declare.
9528
9529 * keyboard.c (readable_events): Call xd_pending_messages.
9530
b5b98ff4
CY
95312009-08-15 Chong Yidong <cyd@stupidchicken.com>
9532
1373f3be 9533 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 9534
f8354c6e
CY
9535 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9536
b5b98ff4
CY
9537 * buffer.c (set_buffer_internal_1)
9538 (swap_out_buffer_local_variables): Check for unbound local
9539 variables (Bug#4138).
9540
8b9fc636
EZ
95412009-08-14 Eli Zaretskii <eliz@gnu.org>
9542
9543 * process.c (create_pty): Fix last change.
9544
ce959360
CY
95452009-08-13 Chong Yidong <cyd@stupidchicken.com>
9546
9547 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9548 (xbm_load_image): Caller changed.
64b807c9 9549 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 9550
c7baf7e9
NR
95512009-08-13 Nick Roberts <nickrob@snap.net.nz>
9552
9553 * process.c (create_pty): New function.
9554 (Fstart_process): Use it to allow Emacs to just associate a pty
9555 with the buffer. See associated change in gdb-mi.el.
9556 (list_processes_1): Deal with no program name.
9557 (start_process_unwind): Use pid == -2 to mean no process.
9558
1ac9108a
SM
95592009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9560
9561 * cmds.c (nonundocount): New global variable.
9562 (keys_of_cmds): Initialize it.
9563 (Fself_insert_command): Use it to combine upto 20 sequential chars
9564 into a single undo entry, just like the Qself_insert_command code in
9565 keyboard.c does.
9566 Call frame_make_pointer_invisible, also like the Qself_insert_command
9567 code in keyboard.c does.
9568 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9569 than its own local replacement for it.
9570
e267324c
KR
95712009-08-10 Ken Raeburn <raeburn@raeburn.org>
9572
1ac9108a 9573 * fns.c (concat): Don't re-set string length to its current value.
77437343 9574
1ac9108a
SM
9575 * coding.h (decode_coding_string, encode_coding_string):
9576 Use SBYTES macro.
f0bed503 9577
1ac9108a 9578 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
9579 (doprnt): Merge with doprnt1, discarding lispstrings code.
9580 * lisp.h (doprnt_lisp): Don't declare.
9581
416e006d
JL
95822009-08-07 Juri Linkov <juri@jurta.org>
9583
9584 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9585
6f7d5780
DN
95862009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9587
9588 * print.c (syms_of_print): Undo previous change.
9589
f19a0f5b
TZ
95902009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9591
9592 * lread.c (read1, syms_of_lread): Read hashtables back from the
9593 readable format.
9594
9595 * print.c (print_preprocess, print_object): Print hashtables fully
9596 and readably.
9597 (syms_of_print): Provide 'hashtable-print-readable.
9598
b9173dc2
AR
95992009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9600
9601 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9602 no family set.
9603 (nsfont_open): Handle case when entity has no family.
9604
1586503c
AR
96052009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9606
9607 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9608 element, not a list, for match case.
9609
087048cd
KH
96102009-07-28 Kenichi Handa <handa@m17n.org>
9611
9612 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9613 rigidly.
9614
9615 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9616 font_parse_xlfd. Check font properties more rigidly.
9617
780c2506
DN
96182009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9619
31fd7c5c
JB
9620 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9621 bsd-common.h.
780c2506 9622
a8c0cc18
KH
96232009-07-27 Kenichi Handa <handa@m17n.org>
9624
9625 * xfaces.c (face_with_height): Call font_clear_prop.
9626
4fbe2306
CY
96272009-07-26 Chong Yidong <cyd@stupidchicken.com>
9628
111d9af3
CY
9629 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9630
9631 * xterm.c (x_term_init): Use Qx.
9632
4fbe2306
CY
9633 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9634
1ac9108a 9635 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
9636 (ns_get_color): Revert 2009-07-16 change.
9637
beb0b7f9
EZ
96382009-07-25 Eli Zaretskii <eliz@gnu.org>
9639
9640 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 9641 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 9642
2baf5e76
KR
96432009-07-25 Ken Raeburn <raeburn@raeburn.org>
9644
1ac9108a
SM
9645 * coding.h (decode_coding_string, encode_coding_string):
9646 Use SCHARS macro.
8890e5f5 9647
2baf5e76 9648 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 9649 (load_depth): Delete.
2baf5e76
KR
9650 (Qload_in_progress): New variable.
9651 (load_unwind): Don't reference load_depth or load_in_progress.
9652 (Fload): Likewise; specbind Qload_in_progress instead.
9653 (init_lread): Don't initialize load_depth.
9654 (syms_of_lread): Initialize and protect Qload_in_progress.
9655
1395c6f5
AR
96562009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9657
9658 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9659
4e2f36cf
AR
96602009-07-23 Yavor Doganov <yavor@gnu.org>
9661
9662 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9663
5dd9a6f7
AR
96642009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9665
9666 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
9667 Bugs 3792, 3720, 2402.
9668 (ns_lookup_indexed_color): Check for bad index.
9669 (ns_index_color): Init unused slot to 0.
9670 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9671 Bug 3714, possibly 3082.
5dd9a6f7 9672
c902b920
JR
96732009-07-22 Jason Rumney <jasonr@gnu.org>
9674
1ac9108a
SM
9675 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9676 Position IME window at cursor (Bug#2570).
c902b920
JR
9677 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9678 (globals_of_w32fns): Dynamically load functions required above.
9679
9680 * w32term.c (w32_draw_window_cursor): Send message to reposition
9681 any IME window.
9682
090101cf
CY
96832009-07-21 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * fileio.c: Revert 2009-07-16 changes.
9686 (Vauto_save_include_big_deletions): New variable.
9687 (Fdo_auto_save): Disable auto-save only if
9688 auto-save-include-big-deletions is nil.
9689
e6583e3d
CY
96902009-07-21 Chong Yidong <cyd@stupidchicken.com>
9691
9692 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9693 the overflowed pixels into account (Bug#3879).
9694
ece435a5
KR
96952009-07-21 Ken Raeburn <raeburn@raeburn.org>
9696
9697 * lread.c (load_depth): New variable.
9698 (Fload, load_unwind, init_lread): Set it to the load recursion
9699 depth; set load_in_progress as a simple boolean based on the
9700 current load_depth. (Bug#3892)
9701
40b2d973
AR
97022009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9703
9704 * nsfont.m (ns_has_attribute): Remove.
9705 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9706
10be7e0d
JL
97072009-07-18 Juri Linkov <juri@jurta.org>
9708
9709 * process.c (Fset_process_query_on_exit_flag): Mention killing
9710 a buffer in docstring.
9711
fa055055
KH
97122009-07-17 Kenichi Handa <handa@m17n.org>
9713
9714 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9715
042f7b69
YM
97162009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9717
9718 * nsfns.m (Fns_set_alpha): Remove function.
9719 (syms_of_nsfns): Don't defsubr it.
9720
9721 * nsterm.m (ns_get_color): Remove incompatible color formats.
9722 (ns_color_to_lisp): Generate #rrggbb color format string.
9723
4be941e3
RS
97242009-07-16 Richard Stallman <rms@gnu.org>
9725
9726 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9727 (Fset_buffer_auto_saved): Handle save_length = -2.
9728
4e6b227d
CY
97292009-07-16 Chong Yidong <cyd@stupidchicken.com>
9730
9731 * xterm.c (Qx_gtk_map_stock): New var.
9732
9733 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9734 of calling intern each time.
9735
a1856973
YM
97362009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9737
9738 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9739 does tiling.
9740
9741 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9742
497e54d8
KH
97432009-07-14 Kenichi Handa <handa@m17n.org>
9744
72d36834
KH
9745 * font.c (font_vconcat_entity_vectors): New function.
9746 (struct font_sort_data): New member font_driver_preference.
9747 (font_compare): Check font_driver_preference.
9748 (font_sort_entities): The format of the first argument changed.
9749 (font_delete_unmatched): Likewise.
9750 (font_list_entities): The return type changed.
9751 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
9752 (font_find_for_lface): Adjuste for the above changes.
9753 Don't suppress the checking of C even if the repertory supports it.
9754 (Flist_fonts): Adjust for the above changes.
72d36834 9755
1ac9108a
SM
9756 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9757 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
9758 Reject a font who has adstyle property that is different from a
9759 langname derived from registry property.
1ac9108a 9760 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 9761
b6046155
EZ
97622009-07-13 Eli Zaretskii <eliz@gnu.org>
9763
9764 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9765 local copy of dirfilename.
9766
fb6b6049
KH
97672009-07-13 Kenichi Handa <handa@m17n.org>
9768
e2402a5e
KH
9769 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9770 against max_char.
9771
fb6b6049
KH
9772 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9773 calling XSYMBOL (sym).
9774
65156807
EZ
97752009-07-11 Eli Zaretskii <eliz@gnu.org>
9776
1ac9108a
SM
9777 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9778 New function.
9779 (directory_files_internal) [WINDOWSNT]:
9780 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
9781 the filesystem of the directory is fast or slow.
9782
9783 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9784 file name.
9785 (is_slow_fs): New function.
9786 (stat): Use it to determine whether to issue more system calls to
9787 get accurate file attributes, when w32-get-true-file-attributes is
9788 `local'.
9789
e0ab5fcf
JD
97902009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9791
9792 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 9793 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
9794 parameter font-parameter as default to the font dialog.
9795
784ceded
KH
97962009-07-10 Kenichi Handa <handa@m17n.org>
9797
9798 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9799
fb8edc0b
EZ
98002009-07-09 Eli Zaretskii <eliz@gnu.org>
9801
1ac9108a 9802 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 9803
fb8edc0b
EZ
9804 * w32.c (stat): Treat UNC file names as residing on remote
9805 drives. (Bug#3542)
9806
635c75b1
KH
98072009-07-09 Kenichi Handa <handa@m17n.org>
9808
9809 * fontset.c (fontset_find_font): Fix previous change.
9810
c1d5ce94
MA
98112009-07-08 Michael Albinus <michael.albinus@gmx.de>
9812
9813 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9814 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9815 error flag.
9816
edb61b39
KH
98172009-07-08 Kenichi Handa <handa@m17n.org>
9818
374bf7e4
KH
9819 * fontset.c (fontset_find_font): Fix the logic of handling
9820 charset_matched.
9821 (font_for_char): Delete unused var.
9822 (generate_ascii_font_name): Delete it.
9823
edb61b39
KH
9824 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9825
9826 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9827 (encode_coding_sjis): Fix the code range check.
9828
0f3f018c
CY
98292009-07-07 Chong Yidong <cyd@stupidchicken.com>
9830
9831 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9832 (Fexpand_file_name): Copy string data properly (Bug#3772).
9833
fcaf6f3a
JD
98342009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9835
9836 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9837 first MapNotify.
9838
6809ca75
KH
98392009-07-07 Kenichi Handa <handa@m17n.org>
9840
9841 * character.h (unibyte_has_multibyte_table): Delete extern.
9842 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9843
9844 * charset.c (Fset_charset_priority): Update charset_unibyte.
9845 (syms_of_charset): Initialize charset_unibyte.
9846
9847 * character.c (unibyte_has_multibyte_table): Delete it.
9848 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9849 charset_unibyte.
9850 (multibyte_char_to_unibyte_safe): Likewise.
9851 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9852
1ac9108a 9853 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
9854 (x_produce_glyphs): Likewise.
9855
9856 * .gdbinit (xcharset): Fix the treating $arg0.
9857
ad9e2d54
EZ
98582009-07-04 Eli Zaretskii <eliz@gnu.org>
9859
9860 Emulation of `getloadavg' on MS-Windows.
50426a04 9861 * w32.c: Include float.h.
ad9e2d54
EZ
9862 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9863 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9864 (get_native_system_info, get_system_times): New functions.
9865 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9866 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9867 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9868 g_b_init_get_system_times, and num_of_processors.
9869
0a3472c7
JR
98702009-07-03 Jason Rumney <jasonr@gnu.org>
9871
9872 * w32term.c (w32_initialize): Use standard types.
9873
80904120
EZ
98742009-07-03 Eli Zaretskii <eliz@gnu.org>
9875
9876 * dired.c (Ffile_attributes): Decode user and group names by the
9877 locale's encoding. (Bug#3443)
9878
6978862d
DN
98792009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9880
f8d23104
DN
9881 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9882 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9883
9884 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9885
9886 * term.c (init_tty): Remove spurious #ifdef.
9887
6978862d
DN
9888 * m/mips.h: Mention this file is also used for netbsd.
9889 * m/pmax.h: Remove file.
9890
e044e4fc
JD
98912009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9892
9893 * xterm.h (struct x_display_info): Add invisible_cursor.
9894 (struct x_output): Add current_cursor.
9895
9896 * xterm.c (XTtoggle_invisible_pointer): New function.
9897 (x_define_frame_cursor): Don't define cursor if invisible or the
9898 same as before. Set current_cursor.
9899 (x_create_terminal): Set toggle_invisible_pointer_hook.
9900
9901 * xfns.c (make_invisible_cursor): New function.
9902 (x_set_mouse_color): Call make_invisible_cursor.
9903 Set current_cursor.
9904 (x_window): Set current_cursor.
9905
9906 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9907
9908 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9909 inserting a character.
9910 (read_avail_input): Call frame_make_pointer_visible.
9911
9912 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
9913 (frame_make_pointer_invisible, frame_make_pointer_visible):
9914 New functions.
e044e4fc
JD
9915 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9916
9917 * frame.h: Declare frame_make_pointer_invisible and
9918 frame_make_pointer_visible.
9919 (struct frame): Add pointer_invisible.
9920
574c8efa
JD
99212009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9922
7b507248
JD
9923 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9924 frame isn't visible.
9925 (xg_frame_resized): If width/height is -1, get size of window
9926 from X server.
9927
9928 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9929 for MapNotify.
9930
835bdaa7 9931 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 9932 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 9933 (flush_and_sync): Reintroduce.
574c8efa 9934
3f1c6666 99352009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 9936
31fd7c5c 9937 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
9938
9939 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9940 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9941
9942 * frame.h: Declare Qsticky.
9943
cad9ef74
JD
9944 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9945
9946 * nsfns.m (ns_frame_parm_handlers): Ditto.
9947
9948 * frame.c: Declare Qsticky.
9949 (frame_parms): Add sticky.
9950
9951 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9952
9953 * xterm.h: Declare x_set_sticky.
9954
9955 * xterm.c (x_set_sticky): New function.
9956
69b16610
JD
9957 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9958 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9959 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9960
9961 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9962
9963 * frame.c: Qmaximized is new.
9964 (x_set_frame_parameters): Do not handle fullscreen specially.
9965 Only set width and height if explicitly set.
9966 (x_set_fullscreen): Handle Qmaximized.
9967 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9968 (syms_of_frame): Initialize Qmaximized.
9969
1ac9108a
SM
9970 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9971 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9972
9973 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9974 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9975 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9976 set gravity to NorthWestGravity when USE_GTK.
9977 (set_wm_state): New function.
31fd7c5c 9978 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9979 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9980 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9981 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9982 to x_real_positions and x_fullscreen_adjust.
9983
9984 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9985 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9986 flush_and_sync.
9987 (xg_height_changed): New function.
9988 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9989 and gtk_window_set_policy. Set frame gravity after parsing the
9990 geometry string.
3f1c6666
JD
9991 (xg_update_frame_menubar, free_frame_menubar)
9992 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9993 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9994 Remove calls to xg_frame_set_char_size.
9995
fd503d99
KH
99962009-07-01 Kenichi Handa <handa@m17n.org>
9997
9998 * keyboard.c (decode_keyboard_code): New function.
9999 (tty_read_avail_input): Decode the input bytes if necessary.
10000
1ac9108a
SM
10001 * coding.c (setup_coding_system):
10002 Initialize coding->carryover_bytes to 0.
fd503d99
KH
10003 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
10004 use Qno_conversion.
10005
24ed93fb
YM
100062009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10007
10008 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
10009
99061dfc
CY
100102009-06-30 Chong Yidong <cyd@stupidchicken.com>
10011
1ac9108a 10012 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 10013
ff90fbde
JR
100142009-06-30 Jason Rumney <jasonr@gnu.org>
10015
10016 * w32term.c (w32_initialize): Use GetModuleHandle for library that
10017 is already loaded.
10018 Set user model ID if supported (bug#1849).
10019
5f445726
JM
100202009-06-29 Jim Meyering <meyering@redhat.com>
10021
10022 Remove useless if-before-xfree test.
10023 * nsfont.m (nsfont_close): Remove useless test.
10024 * term.c (delete_tty): Likewise.
10025 * w32.c (system_process_attributes): Likewise.
10026 * w32font.c (w32font_close): Likewise.
10027 * xfaces.c (x_free_gc): Likewise.
10028 * xselect.c (buffer): Likewise.
10029
b9607587
AS
100302009-06-28 Andreas Schwab <schwab@linux-m68k.org>
10031
10032 * process.c (send_process): Keep decoded string in a local
10033 variable and protect it from GC. (Bug#3521)
10034
89ba96f4
EZ
100352009-06-28 Eli Zaretskii <eliz@gnu.org>
10036
10037 * term.c (create_tty_output) [MSDOS]: #ifdef away.
10038 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
10039
098a1589
CY
100402009-06-28 Chong Yidong <cyd@stupidchicken.com>
10041
485422be
CY
10042 * xdisp.c (start_display, handle_face_prop)
10043 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
10044 (redisplay_window, try_window_id, produce_image_glyph):
10045 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 10046
098a1589
CY
10047 * xterm.c (x_update_window_begin, x_new_focus_frame)
10048 (x_scroll_bar_handle_click, handle_one_xevent)
10049 (handle_one_xevent, XTread_socket, x_focus_on_frame)
10050 (x_make_frame_visible, x_make_frame_invisible)
10051 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
10052 code chunks that are now obsolete.
10053
78c38319
MA
100542009-06-28 Michael Albinus <michael.albinus@gmx.de>
10055
10056 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
10057 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
10058 for hours, when optimzation is enabled.
10059 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
10060 (xd_read_message): Make them static.
10061
4189ed40
CY
100622009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
10063
10064 * term.c (turn_on_face): Allow simultaneously bold and dim
10065 terminal faces (Bug#3530).
10066
cd9b5e16
CY
100672009-06-27 Chong Yidong <cyd@stupidchicken.com>
10068
4e23bedb
CY
10069 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
10070
cd9b5e16
CY
10071 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
10072 truncation glyphs (Bug#3686).
10073
07cc3c35
GM
100742009-06-27 Glenn Morris <rgm@gnu.org>
10075
10076 * m/pmax.h: Restore file, with only netbsd portions.
10077
31fd7c5c 100782009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 10079
cd9b5e16 10080 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 10081
42d4a64f
KH
100822009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
10083
10084 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
10085 the arg FORCE_SYMBOL.
10086
930fe55b 100872009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
10088
10089 * fontset.c (fontset_find_font): When a usable rfont_def is found
10090 in a fallback font-group, make it the first element of the group.
10091
57ebc3fd
CY
100922009-06-24 Chong Yidong <cyd@stupidchicken.com>
10093
10094 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
10095
f084f942
KH
100962009-06-24 Kenichi Handa <handa@m17n.org>
10097
10098 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
10099 set for C.
10100 (fontset_font): Record the availability of a font for C both in
10101 the realized fontsets of the current one and the default one.
10102
2f686c87
DN
101032009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
10104
10105 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
10106 conditional, it is always defined on AIX.
10107
666e158e
MB
101082009-06-23 Miles Bader <miles@gnu.org>
10109
10110 * window.c (Vrecenter_redisplay): New variable.
10111 (syms_of_window): Initialize it.
10112 (Qtty): New extern declaration.
10113 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
10114
c6da7cd2
JM
101152009-06-23 Jim Meyering <meyering@redhat.com>
10116
1ac9108a
SM
10117 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
10118 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 10119 pointer dereferences are guaranteed to be valid.
c6da7cd2 10120
678dca3d
KH
101212009-06-23 Kenichi Handa <handa@m17n.org>
10122
74d75424
KH
10123 * emacs.c (main): Call init_font ().
10124
10125 * font.h (Vfont_log): Extern it.
10126 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
10127
10128 * font.c (font_sort_entities, font_list_entities)
10129 (font_matching_entity, font_open_entity)
10130 (font_close_object): Change font_add_log to FONT_ADD_LOG.
10131 (Vfont_log): Delete static.
10132 (font_log_env_checked): Delete this variable.
10133 (font_add_log): Don't check font_log_env_checked.
10134 (font_deferred_log): Check Vfont_log.
10135 (init_font): New function.
10136
678dca3d
KH
10137 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
10138
10139 * w32font.c: Change font_add_log to FONT_ADD_LOG.
10140
10141 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
10142
10143 * xfont.c: Change font_add_log to FONT_ADD_LOG.
10144
10145 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
10146 (face_for_char): Don't call font_deferred_log here.
10147 (font_for_char): Likewise.
10148
8a668709
CY
101492009-06-22 Chong Yidong <cyd@stupidchicken.com>
10150
9a01ee33
CY
10151 * w32term.c (x_draw_glyph_string): Use the glyph string's width
10152 rather than its background_width for drawing the overline and
10153 underline (Bug#489).
10154
10155 * xterm.c (x_draw_glyph_string): Use the glyph string's width
10156 rather than its background_width for drawing the overline and
10157 underline (Bug#489).
ec7c9926
CY
10158 (xg_default_icon_file): New variable.
10159 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
10160 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 10161
8a668709
CY
10162 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
10163 (load_overlay_strings): Remove externs.
10164 (fast_find_position): Function deleted.
10165 (mouse_face_from_buffer_pos): New function, based on
10166 fast_find_position. Correctly handle before-strings,
10167 display-strings, and after-strings (Bug#1220).
10168 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
10169
4d4c02d8
CY
101702009-06-21 Chong Yidong <cyd@stupidchicken.com>
10171
1ac9108a 10172 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
10173 (move_it_in_display_line_to, move_it_in_display_line_to)
10174 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
10175
70243478
CY
101762009-06-21 Chong Yidong <cyd@stupidchicken.com>
10177
10178 * Branch for 23.1.
10179
13087e59
JR
101802009-06-21 Jason Rumney <jasonr@gnu.org>
10181
10182 * w32term.c (keyboard_codepage): New static variable.
10183 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
10184 (w32_read_socket) [WM_CHAR]: Use it to decode character
10185 input (bug#3237).
10186 (w32_initialize): Initialize it.
10187 (codepage_for_locale): New function.
10188
4735b74e
KR
101892009-06-20 Ken Raeburn <raeburn@raeburn.org>
10190
10191 * process.c (status_message): Pass Faset index argument as a lisp
10192 object, so as to work with USE_LISP_UNION_TYPE.
10193
0e727afa
YM
101942009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10195
10196 * coding.c (Ffind_coding_systems_region_internal):
10197 Cache checked characters.
10198
cf299835
KH
101992009-06-18 Kenichi Handa <handa@m17n.org>
10200
1ac9108a 10201 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 10202
90f20d94
AS
102032009-06-18 Andreas Schwab <aschwab@redhat.com>
10204
10205 * xdisp.c (redisplay_internal): Check that the frame is still
10206 live after redisplay of its windows.
10207 (redisplay_windows): Check that the window is still live.
10208
7f1faf1c
KH
102092009-06-17 Andreas Schwab <schwab@linux-m68k.org>
10210
10211 * coding.c (detect_coding_utf_16): Fix previous change.
10212
cc13543e
KH
102132009-06-16 Kenichi Handa <handa@m17n.org>
10214
10215 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
10216 UTF-16 by checking the dispersion of Eth and Oth bytes.
10217
977b85f4
AS
102182009-06-15 Andreas Schwab <schwab@linux-m68k.org>
10219
10220 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
10221
66bd43d1
KH
102222009-06-15 Kenichi Handa <handa@m17n.org>
10223
10224 * process.c (status_message): Fix previous change. Be sure to
10225 decode a localized string.
10226
cb5ca9c5
YM
102272009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10228
10229 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
10230 add comment explaining why.
10231
ec7709ba 102322009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 10233
ec7709ba 10234 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 10235
4b7f335c
AR
102362009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
10237
10238 * nsfont.m (ns_attribute_value): Remove.
10239 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10240 (ns_has_attribute): Shrink the normal range.
10241 (ns_findfonts): Don't worry about requested spec in determining
10242 need for synthItal.
e41820ee 10243 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 10244
73b26103
SZ
102452009-06-14 Seiji Zenitani <zenitani@mac.com>
10246
10247 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10248
5753e4da
KH
102492009-06-11 Kenichi Handa <handa@m17n.org>
10250
10251 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10252 overhang for the static composition case.
10253
3561b671
KH
102542009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10255
5753e4da
KH
10256 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10257 overhang for the automatic composition case.
10258
3561b671
KH
10259 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
10260 composition case.
10261
852bbd41
CY
102622009-06-10 Chong Yidong <cyd@stupidchicken.com>
10263
10264 * xdisp.c (get_next_display_element): When handling wrap-prefix
10265 and line-prefix, treat \n as a control character (bug#3502).
10266
9903d1e6
KH
102672009-06-10 Kenichi Handa <handa@m17n.org>
10268
10269 * font.c (font_parse_family_registry): Fix for one-char foundry.
10270 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
10271
0bcbaaaa
CY
102722009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
10273
10274 * process.c (status_message): Fix handling of multibyte signal
10275 string (Bug#3499).
10276
40aa3f13
JM
102772009-06-09 Jim Meyering <meyering@redhat.com>
10278
1f80c7e2
CY
10279 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
10280 color name is missing.
40aa3f13 10281
72d51285
KH
102822009-06-09 Kenichi Handa <handa@m17n.org>
10283
10284 * charset.c (Fmap_charset_chars): In docstring, state clearly that
10285 FROM-CODE and TO-CODE are codepoints of CHARSET.
10286
c1d04d84
AR
102872009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10288
10289 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
10290
102912009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10292
10293 Changes to support :script/:lang/:otf in NS font driver.
10294 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
10295 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
10296 indicate not part of font driver interface, and change callers.
10297 (ns_get_family): Remove pointless null check.
10298 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
10299 ns_spec_to_descriptor, ns_descriptor_to_entity.
10300 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
10301 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
10302 (ns_spec_to_descriptor, ns_descriptor_to_entity)
10303 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
10304 (ns_get_req_script, ns_accumulate_script_ranges)
10305 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
10306 New functions.
10307 (nsfont_list, nsfont_match): Use ns_findfonts.
10308 (nsfont_open): Use font descriptor instead of traits.
10309 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
10310 (dump_glyphstring): Rename to ns_dump_glyphstring.
10311
c7eb9816
AR
10312 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
10313
c1d04d84
AR
10314 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
10315
10316 * fontset.c (fontset_from_font): Remove NS-specific code.
10317
ec7709ba 103182009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
10319
10320 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
10321 nonactive windows.
10322
31fd7c5c 103232009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 10324
1ac9108a 10325 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 10326
68852c13 103272009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
10328
10329 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
10330
6756cd1d
CY
103312009-06-07 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
10334 account for the overflowing of newlines into the last glyph on the
10335 display line (Bug#3482).
10336
28bf482a
DR
103372009-06-05 David Reitter <david.reitter@gmail.com>
10338
ec7709ba
JB
10339 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
10340 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
10341 Fns_selection_exists_p, Fns_selection_owner_p.
10342
fdb55376
JR
103432009-06-03 Jason Rumney <jasonr@gnu.org>
10344
10345 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
10346 available. (Bug#3379)
10347
05129fbe
KH
103482009-05-29 Kenichi Handa <handa@m17n.org>
10349
1ac9108a
SM
10350 * coding.c (get_translation_table):
10351 Check Venable_character_translation.
05129fbe 10352
ec7709ba 103532009-05-26 David Reitter <david.reitter@gmail.com>
15891144 10354
ec7709ba
JB
10355 * nsterm.m (ns_raise_frame): Only raise frame if visible.
10356 (x_make_frame_visible): Move frame to front rather than calling
15891144 10357 ns_raise_frame().
ec7709ba 10358 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 10359 isn't key window.
ec7709ba 10360 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
10361 drawRect may be called by NSView even if the frame is hidden.
10362
ec7709ba
JB
10363 * nsfns.m (Fx_create_frame): Follow other ports in
10364 determining visibility; default to t. Ensure async_visible is set.
15891144 10365
21f73755
EZ
103662009-05-23 Eli Zaretskii <eliz@gnu.org>
10367
10368 * dired.c (Ffile_attributes): Doc fix.
10369
34001e41
CY
103702009-05-22 Chong Yidong <cyd@stupidchicken.com>
10371
10372 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10373
46306a17
SM
103742009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10375
10376 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10377 and xfont_scratch_props.
10378 (syms_of_xfont): Do it here instead.
10379 (xfont_find_ccl_program): Delete, unused.
10380 (xfont_open): Delete unused var `i'.
10381
ef6e0694
KH
103822009-05-21 Kenichi Handa <handa@m17n.org>
10383
10384 * fontset.c (Qlatin): Don't make it static.
10385
46306a17
SM
10386 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10387 New functions.
ef6e0694
KH
10388 (xfont_scripts_cache, xfont_scratch_props): New variables.
10389 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
10390 (xfont_list_pattern): Argument changed. Callers changed.
10391 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
10392 (xfont_list): Don't reject a font spec with :script property.
10393 (xfont_has_char): Fix setting of encoding.
10394 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10395 xfont_scratch_props.
10396
103972009-05-19 Kenichi Handa <handa@m17n.org>
10398
46306a17 10399 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
10400 Callers changed.
10401
104022009-05-18 Kenichi Handa <handa@m17n.org>
10403
10404 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10405
ac71ced7
SM
104062009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10407
10408 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10409 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10410
1c6d1051
YM
104112009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10412
10413 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10414 (x_delete_terminal): Dissociate resource database from display and
10415 then call XrmDestroyDatabase before closing display.
10416
9b9b779c
AR
104172009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10418
10419 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
10420 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10421 whether selected frame is viable before raising it (based on patch
10422 by David Reitter), and improve commentary.
10423 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 10424
cccd42d5
KH
104252009-05-15 Kenichi Handa <handa@m17n.org>
10426
10427 * font.c (Ffont_spec): Check arguments.
10428
337fbd17
CY
104292009-05-14 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
10432 weight when testing attributes (Bug#3282).
10433
47a6002f
JD
104342009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10435
10436 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
10437 what we expect to get in the next ConfigureNotify event.
10438
9cb363db
YM
10439 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
10440 before Xft one (Bug#1696).
10441
b9126609
CY
104422009-05-07 David Reitter <david.reitter@gmail.com>
10443
10444 * nsfns.m (Fx_display_planes): Compute bitplanes using
10445 NSBitsPerPixelFromDepth (Bug#3207).
10446
27a69fd9
CY
104472009-05-10 Chong Yidong <cyd@stupidchicken.com>
10448
10449 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
10450
00f37552
TTN
104512009-05-10 Ulrich Mueller <ulm@gentoo.org>
10452
10453 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
10454
2d82a920
DR
104552009-05-07 David Reitter <david.reitter@gmail.com>
10456
ec7709ba
JB
10457 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10458 Respect mouse face background.
2d82a920 10459
46b0d52d
DR
104602009-05-07 David Reitter <david.reitter@gmail.com>
10461
ec7709ba
JB
10462 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10463 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
10464 in ns_update_begin and ns_update_end.
10465
ce1b23bb
SM
104662009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10467
5996e1b7
SM
10468 * nsfns.m (ns_get_screen): Rewrite.
10469 Don't presume selected-frame is of type `ns'.
10470
ba98e3a0
SM
10471 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10472 all drivers.
10473
ce1b23bb
SM
10474 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10475
bcda200f
YM
104762009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10477
10478 * keyboard.h (add_user_signal): Fix typo in extern.
10479
10480 * lisp.h (add_user_signal): Remove extern.
10481
10482 * unexelf.c (unexec): Consider a section to precede the .bss section
10483 if its addresses overlap that of .bss.
10484 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10485 instead of dumping process.
10486
864660a2
SM
104872009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10488
10489 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10490
50da4e56
SM
104912009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10492
10493 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10494
51520a1a
DN
104952009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10496
10497 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10498 any statements.
10499
409ea3a1
AS
105002009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10501
59c4c60f
AS
10502 * process.c (read_process_output): Make sure the current buffer is
10503 always restored.
10504
409ea3a1
AS
10505 * coding.c (record_conversion_result): Don't modify
10506 Vlast_code_conversion_error for successful result.
10507 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10508
56f00ed2
KH
105092009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10510
10511 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 10512 (load_charset_map): Remove unnecessary code.
56f00ed2 10513
4491c9d2
DR
105142009-04-30 David Reitter <david.reitter@gmail.com>
10515
35f5b128 10516 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
10517 through f24.
10518
6970f632
CY
105192009-04-30 Chong Yidong <cyd@stupidchicken.com>
10520
10521 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10522
10523 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10524 face_at_buffer_position.
10525 (face_before_or_after_it_pos, get_next_display_element)
10526 (note_mouse_highlight): Update face_at_buffer_position call.
10527
10528 * term.c (term_mouse_highlight):
10529 * msdos.c (IT_note_mouse_highlight):
10530 * fontset.c (Finternal_char_font):
35f5b128 10531 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
10532
10533 * dispextern.h (face_at_buffer_position): Update prototype.
10534
0c616f63
KH
105352009-04-30 Kenichi Handa <handa@m17n.org>
10536
35f5b128 10537 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 10538
ad3aaf33
AS
105392009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10540
10541 * callproc.c (Fcall_process): Fix GC protection. Make sure
10542 current buffer is always restored.
10543
c3c963a0
YM
105442009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10545
10546 * atimer.c (init_atimer): Also clear stopped_atimers.
10547
10548 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10549
7e3386cb
YM
10550 * process.c (create_process): Clean up merger residues of
10551 2008-07-17 change.
10552
91f68422
CY
105532009-04-29 Ulrich Mueller <ulm@gentoo.org>
10554
10555 * lread.c (Vread_circle): New variable.
10556 (read1): Disable recursive read if Vread_circle is nil.
10557
24b34550
KH
105582009-04-29 Kenichi Handa <handa@m17n.org>
10559
10560 * fontset.h (set_default_ascii_font): Delete extern.
10561
10562 * fontset.c (set_default_ascii_font): Delete this unused function.
10563
10564 * frame.c (x_set_font): When ARG is a font-object, check if the
10565 font-object matches with the ASCII font-spec of the frame's
9c358bda 10566 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 10567
77bf07e1
AS
105682009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10569
10570 * fns.c (Flocale_info): Protect vector from GC during decoding.
10571
10572 * process.c (Fstart_process): Protect argv strings from GC during
10573 encoding.
10574
2c55aacf
AS
105752009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10576
10577 * sysdep.c: Include <ctype.h>.
10578
b892d3c9
DR
105792009-04-27 David Reitter <david.reitter@gmail.com>
10580
35f5b128 10581 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
10582 Remove commented-out code.
10583
9d0644c4
JB
105842009-04-26 Johan Bockgård <bojohan@gnu.org>
10585
10586 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10587
b7053016
JR
105882009-04-25 Jason Rumney <jasonr@gnu.org>
10589
10590 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10591
4e8231f3
YM
105922009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10593
10594 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10595 Swap bytes in short integer if fringe bitmap width > 8.
10596
493dcf2c
KH
105972009-04-23 Kenichi Handa <handa@m17n.org>
10598
10599 * xfaces.c (Fx_list_fonts): If a font size is specified in
10600 PATTERN, set it in returned scalable fonts.
10601
401e9e57
CY
106022009-04-22 Chong Yidong <cyd@stupidchicken.com>
10603
708e05dc
CY
10604 * keyboard.c (Fset_input_meta_mode): Doc fix.
10605
10606 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10607
1ac9108a 10608 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
10609
10610 * coding.c (Fterminal_coding_system): Doc fix.
10611
10612 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10613 (Fx_display_pixel_height, Fx_display_planes)
10614 (Fx_display_color_cells, Fx_server_max_request_size)
10615 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10616 (Fx_display_mm_height, Fx_display_mm_width)
10617 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
10618 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10619 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
10620 (check_x_display_info): Handle terminal objects instead of
10621 terminal ids.
10622
401e9e57
CY
10623 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10624 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
10625 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10626 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 10627
df80c7f0
KH
106282009-04-21 Kenichi Handa <handa@m17n.org>
10629
5a8f12af 10630 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 10631 (font_score): Check AVGWIDTH too.
908567ef 10632
df80c7f0
KH
10633 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10634 worst case.
1ac9108a
SM
10635 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10636 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 10637
705af33f
JR
106382009-04-19 Jason Rumney <jasonr@gnu.org>
10639
10640 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 10641 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
10642
10643 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10644 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10645 get_phys_cursor_geometry.
10646
b71ac3dd 10647 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
10648 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10649 using get_phys_cursor_geometry.
10650
10651 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10652 correctly calculated.
10653
dc2933eb
JD
106542009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10655
1ac9108a
SM
10656 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10657 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
10658 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10659 is deprecated.
10660
973e7849
AS
106612009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10662
10663 * font.c (font_put_frame_data): Use xfree instead of free.
10664
314d66f4
JB
106652009-04-17 Juanma Barranquero <lekktu@gmail.com>
10666
10667 * w32font.c (Qja, Qko): Remove declarations.
10668 (syms_of_w32font): Don't DEFSYM them.
10669
cf702558
CY
106702009-04-17 Chong Yidong <cyd@stupidchicken.com>
10671
10672 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10673
10674 * font.h (Qja, Qko): Extern them.
10675
10676 * ftfont.c (Qja, Qko): Remove declarations.
10677
10678 * xfont.c (Qja, Qko): Remove declarations.
10679
b50504f5
KH
106802009-04-17 Kenichi Handa <handa@m17n.org>
10681
bde25748
KH
10682 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10683 string from a vector to handle Latin-1 characters correctly.
10684
b50504f5
KH
10685 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10686 entity even if the cache hits.
10687
f4646fff
AS
106882009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10689
10690 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 10691 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 10692
e7deaab0
AS
10693 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10694 * lisp.h: Adjust prototypes.
10695
0a0e7d49
CY
106962009-04-16 Chong Yidong <cyd@stupidchicken.com>
10697
10698 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10699 change (Bug#3003).
10700
3c908a57
KH
107012009-04-16 Kenichi Handa <handa@m17n.org>
10702
1ac9108a 10703 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
10704
10705 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10706 adstyle.
10707
10708 * ftfont.c (Qja, Qko): Don't make them static.
10709 (enum ftfont_cache_for): New enum.
10710 (fc_charset_table): Undo the previous change.
10711 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
10712 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10713 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
10714 non-scarable font, try to get AVERAGE_WIDTH.
10715 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10716 Change ft_face_cache from a list of a hash-table. Don't check
10717 `ja' and `ko' adstyle here.
10718 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10719 FTFONT_CACHE_FOR_CHARET.
10720 (ftfont_get_charset): Undo the previous change.
1ac9108a 10721 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
10722 (ftfont_close): Likewise.
10723 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10724
10725 * font.c (font_sort_entites): Change the meaning of the arg
10726 BEST-ONLY. Don't optimize for VEC of lenght 1.
10727 (font_select_entity): Just return the value of font_sort_entites.
10728
10729 * xfaces.c (merge_face_vectors): Reflect font properties in
10730 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10731 font_clear_prop if a face attribute doesn't change.
10732
3c908a57
KH
10733 * charset.h (charset_ksc5601): Extern it.
10734
10735 * charset.c (charset_ksc5601): New variable.
10736 (Fdefine_charset_internal): Set charset_ksc5601.
10737 (init_charset_once): Initialize charset_ksc5601 to -1.
10738
d65859c3
DN
107392009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10740
10741 * fileio.c (history_delete_duplicates): Remove unused declaration.
10742
10743 * callint.c (history_delete_duplicates): New declaration.
10744 (Fcall_interactively): Remove command history duplicates when
10745 history_delete_duplicates is true.
10746
3ba010e5
EZ
107472009-04-14 Eli Zaretskii <eliz@gnu.org>
10748
10749 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10750
06f19b91
KH
107512009-04-14 Kenichi Handa <handa@m17n.org>
10752
10753 * font.c (Ffont_info): Fix docstring. Fix the second element of
10754 the returned value (bug#2949).
10755
2cce8bfc
CY
107562009-04-14 Chong Yidong <cyd@stupidchicken.com>
10757
10758 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10759
d156542d
KH
107602009-04-14 Kenichi Handa <handa@m17n.org>
10761
10762 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10763 encoding charset is ascii_compatible.
10764
10765 * charset.c (Fdefine_charset_internal): Make charset
10766 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10767 code_offset is 0, and covers all ASCII characters.
10768
86fa089e
SM
107692009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10770
10771 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10772 (ns_string_to_pasteboard_internal):
10773 * nsmenu.m (process_dialog):
10774 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10775 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10776 * lisp.h (Fx_load_color_file): Declare.
10777
a8a3728b
KH
107782009-04-13 Kenichi Handa <handa@m17n.org>
10779
1ac9108a 10780 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
10781 (font_select_entity): Suppress the code to optimize for the same
10782 kind of fonts.
10783 (font_load_for_lface): Get a font that supports at least ASCII
10784 characters.
10785
10786 * ftfont.c (Qja, Qko): New variables.
10787 (fc_charset_table): Delete uniquifier data for iso8859-1.
10788 (ftfont_get_latin1_charset): New function.
10789 (get_adstyle_property): New function.
10790 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10791 bitmap fonts.
10792 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10793 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10794 `ko' or `ja'.
10795 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 10796 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
10797 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10798 property.
10799 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10800 (syms_of_ftfont): DEFSYM Qja and Qko.
10801
483670b5
KH
108022009-04-09 Kenichi Handa <handa@m17n.org>
10803
12b55765
KH
10804 * charset.c (map_charset_chars): For a charset of `superset'
10805 method, fix calculation of code range.
10806
483670b5
KH
10807 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10808 from the list of extra properties.
10809 (font_clear_prop): Be sure to delete `:name' font property.
10810
57d3b93b
KH
108112009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10812
b4b2c2ca
YM
10813 * dispnew.c (redraw_overlapping_rows): Fix detection of
10814 overlapping for topmost and bottommost rows.
10815
1ac9108a 10816 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 10817
472c3609
JR
108182009-04-06 Jason Rumney <jasonr@gnu.org>
10819
10820 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10821
ab193662
KH
108222009-04-06 Kenichi Handa <handa@m17n.org>
10823
10824 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10825
10826 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10827
0c26f026
KH
108282009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10829
10830 * ftfont.c (ftfont_open): Fix checking of the return value of
10831 FT_Load_Char. Fix setting font->underline_thickness.
10832
e173bbce
CY
108332009-04-04 Chong Yidong <cyd@stupidchicken.com>
10834
10835 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10836 (Fterminal_parameters, Fterminal_parameter)
10837 (Fset_terminal_parameter): In doc string, refer to terminal
10838 objects rather than terminal ids.
10839
693a2698
EZ
108402009-04-04 Eli Zaretskii <eliz@gnu.org>
10841
10842 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10843 ret_lim_data. (Bug#2867)
10844
d5221487
CY
108452009-04-03 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10848 so they don't get wider than the window, matching 2006-01-23
10849 change to the partner function in xdisp.c (Bug#2800).
10850
223509a3
KH
108512009-04-03 Kenichi Handa <handa@m17n.org>
10852
10853 * print.c (print_object): Make each lowest sub_char_table start a
10854 new line (Bug#2866).
10855
74fcd0b1
KH
108562009-04-02 Kenichi Handa <handa@m17n.org>
10857
10858 * fontset.c (fontset_font): Record no-font when a fontset
10859 explicitly tells not to try another font-specs.
10860
c542407d
SM
108612009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10862
10863 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10864
e3869731
KH
108652009-03-30 Kenichi Handa <handa@m17n.org>
10866
d8d2f142
KH
10867 * fontset.c (fontset_from_font): Specify only registry in a
10868 font-spec for all characters supported by that registry.
10869
e3869731
KH
10870 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10871 even if HAVE_M17N_FLT is not defined.
10872
5da5f805
CY
108732009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10874
10875 * ftfont.c: Conditionalize prototyping and use of
10876 ftfont_variation_glyphs.
10877
ab226c50
SM
108782009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10879
9628fed7
SM
10880 * frame.c (delete_frame): Work around compiler bug.
10881
10882 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10883 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10884 Some more EMACS_INT.
10885 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10886
10887 * xdisp.c (dump_glyph): Fix typo.
10888
ae19ba7c
SM
10889 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10890 (adjust_markers_gap_motion, adjust_markers_for_delete)
10891 (adjust_markers_for_insert, adjust_point)
10892 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10893 (make_gap, copy_text, count_size_as_multibyte, insert)
10894 (insert_and_inherit, insert_before_markers)
10895 (insert_before_markers_and_inherit, insert_1)
10896 (count_combining_before, count_combining_after, insert_1_both)
10897 (insert_from_string, insert_from_string_before_markers)
10898 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10899 (insert_from_buffer_1, adjust_after_replace)
10900 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10901 (replace_range_2, del_range, del_range_1, del_range_byte)
10902 (del_range_both, del_range_2, modify_region)
10903 (prepare_to_modify_buffer, signal_before_change)
10904 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10905 for buffer positions and sizes.
10906 * lisp.h: Adjust prototypes accordingly.
10907
10908 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10909 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10910 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10911
ab226c50
SM
10912 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10913
46dfb8fb
JD
109142009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10915
10916 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10917 lines and columns so we keep the same pixel height and width.
10918
10919 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10920 the property _NET_WM_STATE has changed.
46dfb8fb
JD
10921 (x_handle_net_wm_state): New function to update frame parameter
10922 fullscreen.
10923 (x_term_init): Initialize atoms for _NET_WM_STATE.
10924
10925 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10926
d347e494
SM
109272009-03-27 Kevin Ryde <user42@zip.com.au>
10928
10929 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10930 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10931 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10932 (Fgpm_mouse_stop): Pass that new parameter.
10933 * termhooks.h (close_gpm): Adjust prototype.
10934
84db11d6
SM
109352009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10936
c95a5008
SM
10937 * lisp.h (Fx_focus_frame): Declare.
10938
84db11d6
SM
10939 * callint.c (Fcall_interactively): For '^' just delegate the work to
10940 handle-shift-selection.
10941 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10942
0a1958d6
CY
109432009-03-24 Chong Yidong <cyd@stupidchicken.com>
10944
0bfdff23
CY
10945 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10946
0a1958d6
CY
10947 * data.c (Qinteractive_form): New variable.
10948 (Finteractive_form): Use it.
10949
10950 * eval.c (Fcommandp): Use Qinteractive_form.
10951
58aec0d6
JR
109522009-03-24 Jason Rumney <jasonr@gnu.org>
10953
10954 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10955 Calculate total size precisely. Decode environment variables
10956 before substituting. (Bug#38)
10957
553dd618
KH
109582009-03-24 Kenichi Handa <handa@m17n.org>
10959
10960 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10961 encoding (Bug#2722).
553dd618 10962
c39ea606
JD
109632009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10964
10965 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10966 that gdpy is set.
10967
bc9b2b5e
AM
109682009-03-22 Alan Mackenzie <acm@muc.de>
10969
10970 * callint.c (Finteractive): Clarify the doc string - even
10971 promptless elements need \n separators.
10972
9f995a76
JR
109732009-03-22 Jason Rumney <jasonr@gnu.org>
10974
10975 * w32term.c (syms_of_w32term): Doc fix for
10976 x-use-underline-position-properties.
10977
22749e9a
EZ
109782009-03-21 Eli Zaretskii <eliz@gnu.org>
10979
10980 * w32.c (getpwuid): Change argument type to unsigned.
10981 (struct w32_id): Change type of `rid' member to unsigned.
10982 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10983 argument ID to unsigned. All callers changed.
10984 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10985
e00553bf
EZ
109862009-03-20 Eli Zaretskii <eliz@gnu.org>
10987
10988 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10989 negative, produce a float value.
10990
10991 * dired.c (make_uid, make_gid): New functions.
10992 (Ffile_attributes): Use them to avoid negative UID and GID.
10993
f761d6b6
JB
109942009-03-20 Juanma Barranquero <lekktu@gmail.com>
10995
10996 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10997 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10998 Fix typos in docstrings.
10999
d507f8d7
KH
110002009-03-19 Kenichi Handa <handa@m17n.org>
11001
11002 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
11003 changed, use font_load_for_lface to get a new font object.
11004 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
11005
11006 * frame.c (x_set_font): Handle the case that ARG is a cons.
11007
c68845e0
GM
110082009-03-19 Glenn Morris <rgm@gnu.org>
11009
11010 * fileio.c (Fsubstitute_in_file_name): Doc fix.
11011
bfa49dd1
CY
110122009-03-19 Chong Yidong <cyd@stupidchicken.com>
11013
11014 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
11015
8458d4c1
KH
110162009-03-19 Kenichi Handa <handa@m17n.org>
11017
11018 * charset.c (load_charset_map_from_file): When a mapfile can't be
11019 loaded, signal an error.
11020
78e7d1fe
EZ
110212009-03-18 Eli Zaretskii <eliz@gnu.org>
11022
11023 * dired.c (Ffile_attributes): Make sure UID and GID are always
11024 positive, even if the value is too large for a positive EMACS_INT.
11025 Doc fix.
11026
11027 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
11028
5da9fdfa
YM
110292009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11030
11031 * xmenu.c (xdialog_show): Move Fredisplay call ...
11032 (Fx_popup_dialog): ... here.
11033
7519c40d
SM
110342009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
11035
11036 * dired.c (file_name_completion): Disable the first optimization just
11037 installed, since it is not implemented correctly.
11038
2cd298e2
SM
110392009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11040
11041 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 11042 only if the entry can affect bestmatch.
2cd298e2
SM
11043 Stop the search early, as Ftry_completion already does.
11044
48d37adf
CY
110452009-03-17 Chong Yidong <cyd@stupidchicken.com>
11046
e10c9c93 11047 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 11048
9286b16a
CY
110492009-03-15 Chong Yidong <cyd@stupidchicken.com>
11050
11051 * keyboard.c (parse_menu_item): Don't display remappings as menu
11052 equivalent bindings (Bug#788).
11053
f7b146dc
JR
110542009-03-15 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32term.h (WM_EMACS_PAINT): New message.
11057 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
11058 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
11059 before passing to lisp thread. (Bug#950)
11060
f761d6b6 110612009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 11062
d93f9575
CY
11063 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
11064 variable as it was never reset.
11065 (ns_term_init): Remove initialization of Lisp-settable defaults
11066 and ns_expand_space.
11067 (-setPanelFromDefaultValues): Remove ns_expand_space.
11068 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
11069 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
11070 i.e. no additional spacing, similar to Carbon port.
11071
d93f9575
CY
11072 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
11073 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 11074
305018ec
JD
110752009-03-14 Jan Djärv <jan.h.d@swipnet.se>
11076
11077 * sound.c (alsa_configure): Remove call to deprecated
11078 snd_pcm_sw_params_set_xfer_align.
11079
f761d6b6 110802009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
11081
11082 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
11083 after clicking in a detached tool bar.
11084 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
11085
46e722a9
SM
110862009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
11087
348db3dd
SM
11088 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
11089 int/Lisp_Object mixup).
46e722a9 11090
a3d16f39
KH
110912009-03-13 Kenichi Handa <handa@m17n.org>
11092
11093 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 11094 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
11095 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
11096 (set_fontset_font): Change ARG to a vector. Handle range_list in
11097 ARG correctly.
11098 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 11099 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
11100 the above change.
11101 (fontset_from_font): Fix previous change.
fe24f56a 11102 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
11103 entry. If FONTSET is the default fontset, don't set the extra
11104 slot of the returning char-table.
11105
b066e6b6
JB
111062009-03-12 Juanma Barranquero <lekktu@gmail.com>
11107
11108 * nsfns.m (Fx_close_connection): Doc fix.
11109 (Fns_do_applescript): Reflow docstring.
11110 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
11111 (Fx_display_pixel_width, Fx_display_pixel_height)
11112 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
11113 Fix typos in docstrings.
11114 (Fns_set_alpha): Fix typos in error messages.
11115
d472514e 111162009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 11117
d472514e 11118 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
11119 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
11120 were used for such events.
11121
d472514e
JB
11122 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
11123 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 11124
d472514e 11125 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
11126 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
11127
fb930676
KH
111282009-03-11 Kenichi Handa <handa@m17n.org>
11129
ff85581a
KH
11130 * font.h (font_open_by_spec): Extern it.
11131
c50b7e98
KH
11132 * font.c (font_open_by_spec): New function.
11133 (font_open_by_name): Use font_open_by_spec.
11134
fb930676
KH
11135 * frame.c (x_set_font): When ARG is a font-object, don't alter the
11136 fontset of the frame.
11137
11138 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
11139 modify the default font of frames that use this fontset.
11140 (num_auto_fontsets): New variable.
11141 (fontset_from_font): Use num_auto_fontsets to decide a fontset
11142 name. Be sure to set FONTSET_ASCII to the correct font name.
11143 (update_auto_fontset_alist): New function.
11144
df4e8455
JB
111452009-03-11 Juanma Barranquero <lekktu@gmail.com>
11146
11147 * makefile.w32-in: Update dependencies.
11148
0a375797
AR
111492009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11150
11151 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
11152
61313fa3
SM
111532009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11154
11155 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
11156
b55103fb
CY
111572009-03-10 Chong Yidong <cyd@stupidchicken.com>
11158
11159 * lread.c (Feval_buffer): Doc fix.
11160
dde2559c
KH
111612009-03-09 Kenichi Handa <handa@m17n.org>
11162
11163 * charset.c (Qfile_name_handler_alist): Extern it.
11164 (load_charset_map_from_file): Temporarily bind
11165 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
11166
df4e8455 111672009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 11168
47f588bb
GM
11169 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
11170 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 11171
4ddf94bd
AR
111722009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11173
4c9bdfc2
AR
11174 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
11175 (x_set_window_size): Change back to calculated method of setting
11176 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
11177 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
11178 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
11179
fe41ae9e
AR
11180 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
11181
4c9bdfc2
AR
11182 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
11183 accelerator in parens under GNUstep.
11184
825d0875
KH
111852009-03-06 Kenichi Handa <handa@m17n.org>
11186
11187 These changes are to detect incorrect composition sequence without
f3b3be74 11188 looking ahead the source. (Bug#2370)
825d0875
KH
11189
11190 * coding.h: Include "composite.h".
11191 (enum compisition_state): New enum.
11192 (struct compisition_status): New struct.
11193 (struct iso_2022_spec): New member cmp_status.
11194 (struct emacs_mule_spec): New struct.
11195 (struct coding_system): New members ctext_extended_segment_len and
11196 embedded_utf_8. Change the union member
11197 spec.emacs_mule_full_support to spec.emacs_mule.
11198
11199 * coding.c (CODING_ISO_CMP_STATUS): New macro.
11200 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 11201 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
11202 (ADD_COMPOSITION_DATA): New arg nbytes.
11203 (emacs_mule_char): New arg cmp_status.
11204 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
11205 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
11206 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
11207 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
11208 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
11209 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
11210 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
11211 (EMACS_MULE_COMPOSITION_END): New macro.
11212 (emacs_mule_finish_composition): New function.
11213 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
11214 (decode_coding_emacs_mule): Avoid long looking ahead while
11215 handling composition.
11216 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
11217 (ENCODE_COMPOSITION_RULE): New macro.
11218 (finish_composition): New function.
11219 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
11220 (DECODE_COMPOSITION_START): New implementation.
11221 (DECODE_COMPOSITION_END): Likewise.
11222 (STORE_COMPOSITION_RULE): New macro.
11223 (decode_coding_iso_2022): Avoid long looking ahead while handling
11224 composition, CTEXT extended segment, and embedded UTF-8.
11225 (setup_coding_system): For a coding of type iso-2022, reset
11226 CODING_ISO_EXTSEGMENT_LEN (coding) and
11227 CODING_ISO_EMBEDDED_UTF_8 (coding).
11228 (get_translation): Delete arguments last_block, from_nchars,
11229 to_nchars. Callers changed.
11230 (produce_chars): Don't modify charbuf. Adjusted for the change of
11231 get_translation.
98a326f7 11232 (produce_composition): Adjust for the new annotation sequence.
825d0875 11233 (handle_composition_annotation): Likewise.
98a326f7 11234 (consume_chars): Adjust for the change of get_translation.
825d0875 11235
ccbc4452
AR
112362009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
11237
4ddf94bd 11238 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 11239
988a7ddb
KH
112402009-03-05 Kenichi Handa <handa@m17n.org>
11241
11242 * font.c (font_select_entity): New function.
11243 (font_find_for_lface): Use font_select_entity to select a font.
11244
11245 * fontset.c (fontset_find_font): If a font found without
a8a3728b 11246 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
11247 font with C restriction.
11248
98a326f7 112492009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 11250
be1bce46 11251 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 11252
10ea2b82
JR
112532009-03-04 Jason Rumney <jasonr@gnu.org>
11254
2c93b248 11255 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 11256 characters that have already been read. (Bug#2569)
2c93b248 11257
10ea2b82
JR
11258 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
11259 Log an error message if check_image_size failed.
11260 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 11261 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 11262
71a0c011
EZ
112632009-03-02 Eli Zaretskii <eliz@gnu.org>
11264
11265 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
11266 when decoding process output.
11267
2f63bba8
RS
112682009-03-01 Richard M Stallman <rms@gnu.org>
11269
11270 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
11271
11272 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11273
0a9564cb
EZ
112742009-02-28 Eli Zaretskii <eliz@gnu.org>
11275
11276 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
11277 (decode_coding_emacs_mule, decode_coding_iso_2022)
11278 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11279 (decode_coding_raw_text, decode_coding_charset)
11280 (setup_coding_system, decode_eol, decode_coding, consume_chars):
11281 Honor inhibit-eol-conversion. (Bug #2186)
11282
449148b3
JR
112832009-02-28 Jason Rumney <jasonr@gnu.org>
11284
11285 * coding.c (detect_coding_charset): If not checking latin extra,
11286 fail on characters between 0x80 and 0xA0. (Bug#2354)
11287
a4aee864
EZ
112882009-02-28 Eli Zaretskii <eliz@gnu.org>
11289
11290 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 11291 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 11292
d88bee5a
GM
112932009-02-27 Glenn Morris <rgm@gnu.org>
11294
11295 * callint.c (Finteractive): Doc fix.
11296
a808f22d
KH
112972009-02-27 Kenichi Handa <handa@m17n.org>
11298
11299 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
11300
caf8d60c
CY
113012009-02-27 Chong Yidong <cyd@stupidchicken.com>
11302
11303 * font.c (font_style_to_value): Set value for unknown symbols to
11304 100 instead of 255.
b61137ea
CY
11305 (weight_table, slant_table, width_table): Treat "unspecified" as
11306 the default value.
caf8d60c 11307
1a0de25c
JB
113082009-02-26 Juanma Barranquero <lekktu@gmail.com>
11309
11310 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
11311
8fc45744
JB
113122009-02-25 Juanma Barranquero <lekktu@gmail.com>
11313
107bd7d1
JB
11314 * lread.c (Fload): Stop checking Vloads_in_progress and signal
11315 error as soon as a recursive load is detected.
8fc45744 11316
f097e223
AR
113172009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11318
11319 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
11320 before caching.
11321
8810a12f
KH
113222009-02-24 Kenichi Handa <handa@m17n.org>
11323
11324 * fontset.c (fontset_find_font): Fix the condition for checking
11325 unavailable font.
11326
2c7d1565
GM
113272009-02-24 Glenn Morris <rgm@gnu.org>
11328
11329 * xfaces.c (Finternal_set_font_selection_order): Remove leading
11330 whitespace that confuses documentation.
11331
a20878b6
MB
113322009-02-23 Miles Bader <miles@gnu.org>
11333
11334 * process.c (Flist_system_processes, Fprocess_attributes)
11335 (syms_of_process): Rename `system-process-attributes' to
11336 `process-attributes'.
11337
b3b58c01
AS
113382009-02-22 Andreas Schwab <schwab@linux-m68k.org>
11339
1b3b981b
AS
11340 * coding.h (struct coding_system): Make safe_charsets a pointer to
11341 unsigned char.
11342 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
11343 being 255.
11344 (SAFE_CHARSET_P): Likewise.
11345 (setup_iso_safe_charsets): Properly setup safe_charsets.
11346 (Fdefine_coding_system_internal): Likewise.
11347 (setup_coding_system): Likewise. Remove unneeded casts.
11348 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
11349 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
11350 unneeded casts.
11351
b3b58c01
AS
11352 * insdel.c (del_range_2): Don't modify gap contents when called
11353 from decode_coding_object. (Bug#1809)
11354
0b6f228c
CY
113552009-02-21 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11358 Qfont_object.
11359 (Ftype_of): Recognize font objects.
11360
11361 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11362
11363 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
11364 moved to data.c.
11365
52f8870b
AR
113662009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11367
11368 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11369 async_iconified. Based on a patch by Christian Lynbech
11370 <christian.lynbech@tieto.com>.
11371 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11372
7087d5e9
GM
113732009-02-20 Glenn Morris <rgm@gnu.org>
11374
11375 * syntax.c (Fskip_chars_forward): Fix doc typo.
11376
41d2ceef
CY
113772009-02-20 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11380
1a3b7ca6
CY
113812009-02-19 Chong Yidong <cyd@stupidchicken.com>
11382
11383 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11384
73cce38d
KH
113852009-02-19 Kenichi Handa <handa@m17n.org>
11386
11387 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 11388 Don't overflow coding->carryover. (Bug#2370)
73cce38d 11389
a51092ee
DN
113902009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11391
11392 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11393
c423ecca
KH
113942009-02-18 Kenichi Handa <handa@m17n.org>
11395
11396 * font.c (font_check_otf_features): Fix handling of `nil' element.
11397 (Ffont_spec): Describe :lang and :otf in the docstring.
11398
4c1958f4
AS
113992009-02-16 Andreas Schwab <schwab@suse.de>
11400
11401 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11402 string.
11403
5704f39a
KH
114042009-02-16 Kenichi Handa <handa@m17n.org>
11405
11406 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 11407 (Bug#1723)
5704f39a 11408
8f0085aa
CY
114092009-02-14 Chong Yidong <cyd@stupidchicken.com>
11410
a057d86a 11411 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
11412
11413 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11414 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11415
aff01dd9
EZ
114162009-02-14 Eli Zaretskii <eliz@gnu.org>
11417
11418 * msdos.c (MAX_SCREEN_BUF): New macro.
11419 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11420 Encode the entire run of glyphs sharing the same face, instead of
11421 doing that one glyph at a time (fixes a bug with displaying
11422 double-size characters).
11423
ba301db3
AR
114242009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
11425
11426 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
11427
11428 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
11429 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 11430 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
11431
11432 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 11433 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 11434
51d861de
SM
114352009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11436
ac146f82 11437 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
11438 invisible areas.
11439
7fed8996
JR
114402009-02-12 Jason Rumney <jasonr@gnu.org>
11441
631ea4fb
JR
11442 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
11443 (add_font_entity_to_list): Call check_face_name even when family
11444 is unspecified.
11445
cb4a3e42
JR
11446 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11447 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 11448 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 11449
7fed8996 11450 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 11451 raster fonts. (Bug#2219)
7fed8996 11452
895416e3
KH
114532009-02-12 Kenichi Handa <handa@m17n.org>
11454
11455 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11456 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11457 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 11458 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11459 (find_automatic_composition): While looking forward and backward,
11460 check static composition. Fix where to stop looking forward.
11461 (composition_adjust_point): Fix checking of static composition.
11462 (Fcomposition_get_gstring): Pay attention to
1dacf998 11463 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11464
11465 * lisp.h (fast_looking_at): Extern it.
11466
11467 * search.c (fast_looking_at): New function.
11468
51d861de 11469 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
11470 <struct glyph>.u.cmp.to.
11471 (append_composite_glyph): Likewise.
11472
51d861de 11473 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
11474 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11475 composition.
51d861de 11476 (append_composite_glyph): Adjust for the change of
895416e3
KH
11477 <strcut glyph>.u.cmp.to.
11478
8510724d
JB
114792009-02-11 Juanma Barranquero <lekktu@gmail.com>
11480
11481 * casetab.c (init_casetab_once):
11482 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11483 * font.c (font_update_lface):
11484 * fontset.c (Fnew_fontset):
11485 * ftfont.c (ftfont_drive_otf):
11486 * xfont.c (xfont_open):
11487 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11488
294fa707
SM
114892009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11490
11491 * fileio.c (Fwrite_region): !NILP -> CONSP.
11492
b5bfebec
AS
114932009-02-10 Andreas Schwab <schwab@suse.de>
11494
11495 * process.c (send_process): Properly relocate pointer into data
adab88bd 11496 when using encoded data. (Bug#2272)
b5bfebec 11497
cb84a2be
KH
114982009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11499
11500 * coding.c (detect_coding_charset): Fix previous change.
11501
89e09428
JR
115022009-02-08 Jason Rumney <jasonr@gnu.org>
11503
11504 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 11505 disappeared while hourglass was displayed. (Bug #2193)
89e09428 11506
4470a277
AS
115072009-02-07 Andreas Schwab <schwab@suse.de>
11508
11509 * unexelf.c (unexec): Fix error message.
11510
3175b12a
AR
115112009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11512
11513 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 11514 when modal window is active. (Bug #2152)
3175b12a
AR
11515 (applicationShouldTerminate:): Remove now-unneeded while loop
11516 around NSRunAlertPanel.
11517
11518 * nsmenu.m (popupSession): New file-global variable.
11519 (pop_down_menu): End the popupSession before closing dialog.
11520 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11521 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11522 don't query NSApp for events (just sleep instead).
11523
8434d0b8
EZ
115242009-02-07 Eli Zaretskii <eliz@gnu.org>
11525
51d861de
SM
11526 * coding.c (syms_of_coding) <translation-table-for-input>:
11527 Modify doc string to discourage use for character code unification.
8434d0b8 11528
aa82edfd
CY
115292009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11530
11531 * atimer.c (run_timers): Update pending_atimers.
11532
2d283c7c
CY
115332009-02-06 Chong Yidong <cyd@stupidchicken.com>
11534
eb306cab
CY
11535 * image.c (svg_load_image): Fix last change.
11536
2d283c7c
CY
11537 * xfns.c (Fx_create_frame): Signal an error if no font is
11538 found (Bug#2147).
11539
4d8e170e
JB
115402009-02-05 Juanma Barranquero <lekktu@gmail.com>
11541
11542 * character.c (syms_of_character) <script-representative-chars>:
11543 Fix typo in docstring.
11544
c96169a0
AR
115452009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11546
11547 * nsmenu.m (pop_down_menu): New function.
11548 (ns_popup_dialog): Call it on unwind.
11549 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11550 call timer_check() (Bug#2154).
11551 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11552 handling_signal is set.
11553 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11554
31fd7c5c 11555 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
11556
11557 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11558
11559 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11560
51d861de
SM
11561 * keyboard.c (poll_for_input_1, handle_async_input):
11562 Set handling_signal under HAVE_NS.
c96169a0 11563
aacd8ba1
GM
115642009-02-04 Glenn Morris <rgm@gnu.org>
11565
11566 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11567
4cb75c4b
KH
115682009-02-04 Kenichi Handa <handa@m17n.org>
11569
11570 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11571
11572 * charset.c (Fchar_charset): New optional arg restriction.
11573
11574 * coding.h (coding_system_charset_list): Extern it.
11575
11576 * coding.c (coding_system_charset_list): New function.
11577
11578 * composite.c: Include coding.h and termhooks.h.
11579 (composition_gstring_p): Fix for the terminal case.
11580 (composition_gstring_width): Likewise.
11581 (fill_gstring_body): Likewise.
11582 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11583 the frame.
11584 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11585 is within a composition.
867d4bb3 11586 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
11587
11588 * term.c (encode_terminal_code): Fix handling of composition.
11589 (produce_composite_glyph): For static composition, get pixel_width
11590 from struct composition.
11591
826ba17e
AS
115922009-02-02 Andreas Schwab <schwab@suse.de>
11593
11594 * unexelf.c (unexec): Handle unaligned bss offset.
11595
8ad093db
AR
115962009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11597
11598 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11599 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 11600
8ad093db
AR
11601 * keyboard.c (handle_interrupt): Don't call
11602 quit_throw_to_read_char() under NS.
d0a76a6e 11603
8ad093db
AR
11604 * blockinput.h: Remove NS-specific code.
11605
4d18a7a2
DN
116062009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11607
db878925
DN
11608 * dispnew.c (window_change_signal): Don't try to get the size of a
11609 suspended tty frame.
11610 * term.c (Fresume_tty): Resize if the size has changed while the
11611 tty was suspended.
11612
4d18a7a2
DN
11613 * alloc.c (mark_stack): Properly conditionalize previous change.
11614
8984df7c
JB
116152009-01-30 Juanma Barranquero <lekktu@gmail.com>
11616
11617 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11618 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11619 Remove; this code is not used on Windows.
11620
75f4f1ac
EZ
116212009-01-30 Eli Zaretskii <eliz@gnu.org>
11622
11623 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11624 EOLs that also has stray ^M characters.
11625
07a1e794
JB
116262009-01-30 Juanma Barranquero <lekktu@gmail.com>
11627
11628 * atimer.c (run_timers, alarm_signal_handler):
11629 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11630 * w32inevt.c (w32_console_read_socket):
11631 * w32term.c (w32_read_socket):
11632 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11633
a8b11cc9
CY
116342009-01-30 Chong Yidong <cyd@stupidchicken.com>
11635
11636 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11637 Initialize it as a relative filename pattern.
11638 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11639 (Fcall_process_region): Simplify temp file creation using
11640 temporary-file-directory.
11641
c279587b
EZ
116422009-01-29 Eli Zaretskii <eliz@gnu.org>
11643
11644 * msdos.c: Rename pending_signals to msdos_pending_signals.
11645 (sig_suspender, sigprocmask): Adjust.
11646
a8fe3242
CY
116472009-01-29 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * keyboard.c (pending_signals): New var.
11650 (poll_for_input, input_available_signal, init_keyboard): Set it.
11651 (process_pending_signals): New function.
11652
11653 * lisp.h (QUIT): Check pending_signals instead of
11654 interrupt_input_pending. Use process_pending_signals.
11655
51d861de 11656 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 11657
51d861de 11658 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
11659
11660 * sysdep.c (emacs_write): Use process_pending_signals.
11661
11662 * xterm.c (XTread_socket): Update pending_signals.
11663
11664 * w32term.c (w32_read_socket): Update pending_signals.
11665
11666 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11667
6570a1c4
KH
116682009-01-29 Kenichi Handa <handa@m17n.org>
11669
11670 * xftfont.c (xftfont_has_char): New function.
11671 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11672
d72a4afa
AR
116732009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11674
11675 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11676 under GNUstep.
11677 (ns_query_color): New declaration.
11678
11679 * nsterm.m (ns_confirm_quit): New variable.
11680 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11681 (EmacsApp-applicationShouldTerminate:): Use it.
11682 (EmacsPrefsController): Let user set it.
11683 (ns_query_color): New function.
11684 (ns_defined_color): Use it.
11685 (ns_initialize): Drop.
11686 (ns_term_init): Add two lines from ns_initialize(), and set
11687 input_interrupt_mode to nil.
11688
11689 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 11690 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 11691
9fe78804
KH
116922009-01-28 Kenichi Handa <handa@m17n.org>
11693
11694 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
11695 (fontset_get_font_group): Remember that no font-group is specified
11696 for C.
9fe78804 11697
fa57de36
CY
116982009-01-27 Chong Yidong <cyd@stupidchicken.com>
11699
930600e9
CY
11700 * fns.c (concat): Check for string overflow (bug#1787).
11701
fa57de36
CY
11702 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11703 Quadruple undo limits (bug#1501).
11704
7179ce7b
KH
117052009-01-27 Kenichi Handa <handa@m17n.org>
11706
11707 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11708 directly use GT_Get_Char_index.
11709
11710 * xftfont.c (struct xftfont_info): New member `index'.
11711
11712 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 11713 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 11714
5be8fcc0
CY
117152009-01-26 Kenichi Handa <handa@m17n.org>
11716
11717 * fontset.c (fontset_find_font): Fix handling of non-cons return
11718 value of fontset_get_font_group.
11719 (fontset_font): Revert last change.
11720
19ae3e61
JR
117212009-01-26 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32font.c (w32font_list_internal): Return quickly if registry is
11724 unknown. Simplify final return.
11725 (add_font_entity_to_list): Break complex logic down into more
11726 manageable chunks. Move unknown registry check to
11727 w32font_list_internal.
11728
8612b71a
AR
117292009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11730
11731 Changes to remove Feval calls from GUI under NS.
11732
d8038940
JB
11733 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11734 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
11735 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11736
11737 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11738 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11739 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11740 instead of NON_ASCII_KEYSTROKE_EVENT.
11741 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11742 (EmacsApp-applicationShouldTerminate:): Query user.
11743 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11744 instead of Feval.
11745
11746 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11747
11748 * keyboard.c (kbd_buffer_get_event): Check for it.
11749 (keys_of_keyboard): Define lispy keys for
11750 ns-put/unput-working-text.
11751
11752 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11753 versions.
11754 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11755
6288ae55
CY
117562009-01-25 Chong Yidong <cyd@stupidchicken.com>
11757
11758 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 11759 setting current_buffer directly. (Bug#2044)
6288ae55 11760
289e7f8f
CY
117612009-01-24 Chong Yidong <cyd@stupidchicken.com>
11762
5ce87308 11763 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 11764 any work. (Bug#1952, bug#1990).
5ce87308 11765
64cc3cf6 11766 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 11767
b3243e6f
AR
117682009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11769
11770 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
11771 (ns_no_defaults): New declaration.
11772 (main): Use it.
e0d2e69a 11773
d900b2af 11774 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 11775
d900b2af 11776 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 11777
d900b2af
AR
11778 * nsterm.m (ns_no_defaults): New variable.
11779 (ns_initialize): Don't read defaults when ns_no_defaults.
11780 (EmacsView-readSelectionFromPasteboard:)
11781 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 11782 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
11783 (ns_dumpglyphs_stretch): New function.
11784 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 11785 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 11786
e0d2e69a
AR
11787 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11788
3ac71f5d
CY
117892009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11790
11791 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11792 call for Sparc64.
11793
3fe53a83
AR
117942009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11795
11796 * nsfns.m:
11797 * nsgui.h:
11798 * nsmenu.m:
11799 * nsselect.m:
11800 * nsterm.h:
11801 * nsterm.m: Remove '23' comments that indicated code added during
11802 update from emacs-20 -> emacs-23.
11803
10f87c6f 118042009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
11805
11806 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 11807 ns_alternate_modifier. (Bug#1217)
a3b53a85 11808
c7cef62d
AR
11809 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11810 Display all shortcuts, including those w/o super modifier.
11811
575fb8bd
AR
11812 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11813
918b848b
CY
118142009-01-22 Chong Yidong <cyd@stupidchicken.com>
11815
11816 * fileio.c (Vwrite_region_post_annotation_function)
11817 (Vwrite_region_annotation_buffers): New vars.
11818 (build_annotations_unwind): Just reset
11819 Vwrite_region_annotation_buffers.
11820 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11821 Call write-region-post-annotation-function.
11822 (build_annotations): Add to Vwrite_region_annotation_buffers if
11823 buffer changes.
11824
a39e2539
AR
118252009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11826
11827 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11828 Tiger.
51d861de
SM
11829 * nsfns.m (ns_do_applescript):
11830 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 11831
35ed44db
AR
118322009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11833
11834 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11835
cbe0b5bf
AR
118362009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11837
11838 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 11839
6049d3a0
AR
11840 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11841
11842 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
11843 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11844 handle Ctrl-tab. (Bug#1841)
11845 (ns_get_color): Use unsigned long long for scanned hex string value.
11846 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 11847 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 11848 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 11849 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 11850 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 11851 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 11852 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 11853
d3810c21 11854 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 11855 DPI. (Bug#1316)
d3810c21
AR
11856 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11857 values in onTiger section.
4c7077c3 11858
e301e634
CY
118592009-01-19 Chong Yidong <cyd@stupidchicken.com>
11860
7f82490b
CY
11861 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11862 Check return value of font_spec_from_name.
64cc3cf6 11863 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
11864
11865 * font.c (font_spec_from_name): Return Qnil if font name could not
11866 be parsed.
11867 (font_parse_name): Treat a `?' character as part of an XLFD.
11868
e301e634
CY
11869 * fns.c (Fsubstring): Doc fix.
11870
1c0db158
KH
118712009-01-19 Kenichi Handa <handa@m17n.org>
11872
51d861de 11873 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
11874 (ftfont_list): Likewise.
11875
acf20901
JB
118762009-01-18 Juanma Barranquero <lekktu@gmail.com>
11877
fff4e459
JB
11878 * dbusbind.c (Fdbus_register_signal):
11879 * process.c (conv_sockaddr_to_lisp):
11880 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11881
acf20901
JB
11882 * callproc.c (Fgetenv_internal): Doc fix.
11883
e7abcdfb
CY
118842009-01-16 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11887 it is not even used.
11888
b60861e6
GM
118892009-01-16 Glenn Morris <rgm@gnu.org>
11890
11891 * font.c (Ffont_variation_glyphs): Silence compiler.
11892
8db52afe
JB
118932009-01-15 Juanma Barranquero <lekktu@gmail.com>
11894
11895 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11896 Reported by David Robinow <drobinow@gmail.com>.
11897
4cddb209
KH
118982009-01-15 Kenichi Handa <handa@m17n.org>
11899
51d861de 11900 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 11901
f247f67b
JR
119022009-01-14 Jason Rumney <jasonr@gnu.org>
11903
11904 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 11905 never a fontset. (Bug#1562)
f247f67b 11906
f56a4450
KH
119072009-01-14 Kenichi Handa <handa@m17n.org>
11908
11909 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 11910 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 11911
4e99855e
CY
119122009-01-13 Chong Yidong <cyd@stupidchicken.com>
11913
11914 * font.c (font_clear_prop): If clearing the family, clear the font
11915 width index too.
11916
fff4e459 11917 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 11918
24f01470
JB
119192009-01-12 Juanma Barranquero <lekktu@gmail.com>
11920
11921 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11922 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11923 functions, use sizeof.
11924
a41240a3
MR
119252009-01-12 Martin Rudalics <rudalics@gmx.at>
11926
11927 * keyboard.c (read_char): Fix case where last_nonmenu_event
11928 returned a bad value with submenus. (Bug#447)
11929
944636b8
CY
119302009-01-12 Chong Yidong <cyd@stupidchicken.com>
11931
11932 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11933 family, clear the font width index too.
11934
0dad7c6f
JR
119352009-01-11 Jason Rumney <jasonr@gnu.org>
11936
11937 * keyboard.c (cmd_error_internal): Exit when errors occur before
11938 frame creation and not in daemon mode. (Bug#1836)
11939
7c2363af
CY
119402009-01-10 Chong Yidong <cyd@stupidchicken.com>
11941
11942 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11943 of a display vector, backtrack.
11944 (try_window_reusing_current_matrix): Check glyph type before
11945 referencing charpos member.
11946
97b1b294
EZ
119472009-01-10 Eli Zaretskii <eliz@gnu.org>
11948
11949 Fix Bug #876:
11950
11951 * coding.c (inhibit_null_byte_detection): New variable.
11952 (detect_coding, detect_coding_system): Don't pay attention to null
11953 bytes if inhibit_null_byte_detection is non-zero.
51d861de 11954 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
11955 <inhibit-iso-escape-detection>: Doc fix.
11956
4624b6e3
JR
119572009-01-09 Jason Rumney <jasonr@gnu.org>
11958
11959 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11960 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11961 Only report Unicode Plane 2 fonts as unicode-sip.
11962
323b840c
CY
119632009-01-09 Chong Yidong <cyd@stupidchicken.com>
11964
51d861de
SM
11965 * xfaces.c (Fx_font_family_list): Delete function.
11966 Move compatibility version to faces.el.
323b840c 11967
51d861de 11968 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11969
eba7400d
MR
119702009-01-09 Martin Rudalics <rudalics@gmx.at>
11971
11972 * frame.c (x_set_frame_parameters): Remember requested value for
11973 fullscreen before it's reset by the parameter handler.
11974
4b09796d
GM
119752009-01-09 Glenn Morris <rgm@gnu.org>
11976
11977 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11978 (last_command_event): ... and update all users.
4b09796d
GM
11979 (last_input_char): For clarity, rename to...
11980 (last_input_event): ... and update all users.
11981 (last-command-char, last-input-char): Move to subr.el as aliases.
11982 * cmds.c, commands.h: Update for last_command_char rename.
11983
14ccea62
CY
119842009-01-08 Chong Yidong <cyd@stupidchicken.com>
11985
51d861de 11986 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11987
5f004711
JR
119882009-01-08 Jason Rumney <jasonr@gnu.org>
11989
11990 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11991 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11992 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11993 Don't declare.
fff4e459 11994 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11995 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11996
b71f6f73
KH
119972009-01-07 Kenichi Handa <handa@m17n.org>
11998
50b06221 11999 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 12000 remember the coding system used for decoding in
50b06221
KH
12001 coding_system (Bug#1039).
12002
b71f6f73 12003 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 12004 breaking the loop. (Bug#870)
b71f6f73
KH
12005 (decode_coding_utf_16, decode_coding_emacs_mule)
12006 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12007 (decode_coding_charset): Likewise.
12008
56f668f7
MR
120092009-01-05 Martin Rudalics <rudalics@gmx.at>
12010
12011 * frame.c (x_set_frame_parameters): Make sure height (width) get
12012 applied when fullwidth (fullheight) is set. (Bug#1522)
12013
5da9424d
JB
120142009-01-04 Juanma Barranquero <lekktu@gmail.com>
12015
12016 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
12017 (utc_base): Declare as ULONGLONG, not long double.
12018 (convert_time_raw): Delete.
12019 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
12020 (initialize_utc_base): New function.
12021 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
12022 (convert_from_time_t): Use initialize_utc_base; compute result with
12023 64-bit arithmetic.
12024 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
12025
c4605e09
EZ
120262009-01-03 Eli Zaretskii <eliz@gnu.org>
12027
9acef61c 12028 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
12029 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
12030 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
12031 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
12032 [!subprocesses]: Define.
12033 (syms_of_process) [!subprocesses]: Intern and staticpro them.
12034 (Flist_system_processes, Fsystem_process_attributes)
12035 [!subprocesses]: Call list_system_processes and
12036 system_process_attributes instead of returning Qnil.
12037
9acef61c
JB
12038 * dosfns.c (system_process_attributes, list_system_processes):
12039 New functions.
c4605e09
EZ
12040
12041 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
12042
12043 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
12044 Don't use the default (no-op) implementation.
12045
8b7d0a16
JR
120462009-01-03 Jason Rumney <jasonr@gnu.org>
12047
a6d46bc1
JR
12048 * keyboard.c (parse_modifiers_uncached): Wheel events are
12049 clicks (bug#687).
12050
8b7d0a16
JR
12051 * w32term.c (x_query_colors, x_query_color): New functions.
12052
12053 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
12054 (svg_load_image): Cast returned pointers from dynamically loaded
12055 functions. Eliminate W32 specific code.
12056
bfe11752
DN
120572009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
12058
89e2438a
DN
12059 * nsfns.m (x_set_foreground_color, x_set_background_color)
12060 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
12061 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
12062 x_ prefix instead of ns_. Update references.
12063 (syms_of_nsfns): Add a FIXME comment.
12064
12065 * nsterm.m (x_set_cursor_type): New prototype.
12066 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
12067
bfe11752
DN
12068 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
12069 for Solaris instead of incorrectly providing Qutime and Qcutime.
12070
031da700
EZ
120712009-01-02 Eli Zaretskii <eliz@gnu.org>
12072
12073 * w32.c (process_times): Compute sum of utime and stime.
12074 (system_process_attributes): Add Qtime to the alist.
12075
12076 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
12077 and add them to the alist.
12078
12079 * process.c (top level) <Qtime, Qctime>: New variables.
12080 (syms_of_process): staticpro them.
12081 (Fsystem_process_attributes): Add their documentation to the doc
12082 string.
12083
12084 * process.h: Declare Qtime and Qctime.
12085
df23bf08
JR
120862009-01-02 Jason Rumney <jasonr@gnu.org>
12087
9acef61c 12088 * image.c (Qgobject): New symbol.
df23bf08
JR
12089 (syms_of_image): Initialize it.
12090 (init_svg_functions): Load some functions from gobject library.
12091
5bbdf7aa
DN
120922009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
12093
12094 * frame.c (make_terminal_frame): Remove redundant code and useless
12095 block.
12096
63136da6
AS
120972009-01-01 Andreas Schwab <schwab@suse.de>
12098
12099 * process.c (conv_sockaddr_to_lisp): Add workaround for
12100 getsockname bug on BSD.
12101
9ef69046
CY
121022009-01-01 Chong Yidong <cyd@stupidchicken.com>
12103
d6fafbe0
CY
12104 * xfns.c (x_create_tip_frame): Set border width of the X window.
12105
51d861de 12106 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 12107
f9c34147
JR
121082009-01-01 Jason Rumney <jasonr@gnu.org>
12109
9acef61c 12110 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
12111 Don't block input, as per earlier xterm.c changes.
12112
f5497e45
AR
121132008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
12114
12115 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
12116 (ns_appkit_version_int): New function.
12117 (x-server-version): Use ns_appkit_version_int and follow 21+
12118 convention of returning 3 integers.
12119
c19cab20
KH
121202008-12-30 Kenichi Handa <handa@m17n.org>
12121
12122 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
12123 (CHAR_SURROGATE_PAIR_P): New macro.
12124
12125 * font.h (struct font_driver): New member get_variation_glyphs.
12126
9acef61c 12127 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
12128 (Ffont_variation_glyphs): New function.
12129 (syms_of_font): Defsubr it.
12130
12131 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
12132 ftfont_variation_glyphs.
12133 (setup_otf_gstring): New function.
12134 (ftfont_drive_otf): Use it.
12135 (ftfont_shape_by_flt): Handle variation selector.
12136 (ftfont_variation_glyphs): New function.
12137
28cd591f
MR
121382008-12-30 Martin Rudalics <rudalics@gmx.at>
12139
12140 * frame.c (Vemacs_iconified): Remove.
12141
7f714baf
JR
121422008-12-30 Jason Rumney <jasonr@gnu.org>
12143
12144 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 12145 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 12146
9d2d22ab
CY
121472008-12-30 Chong Yidong <cyd@stupidchicken.com>
12148
12149 * indent.c (Fvertical_motion): Don't advance iterator if we have
12150 reseated to the desired position.
12151
12152 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
12153 checking for pos match.
12154
545312c2
KH
121552008-12-30 Kenichi Handa <handa@m17n.org>
12156
1ede3eb6
KH
12157 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
12158 just get the low 8-bit of the code.
12159
545312c2
KH
12160 * font.c (font_intern_prop): Validate str as multibyte.
12161
bd7bbf29
DN
121622008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12163
31e0750e
DN
12164 * dispextern.h (struct face): Move lface and hash from the middle
12165 of bitfields.
12166
bd7bbf29
DN
12167 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
12168
b5672e7c
DN
121692008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
12170
12171 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
12172 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
12173 instead of intervals.h.
12174
d704470f
AS
121752008-12-26 Andreas Schwab <schwab@suse.de>
12176
12177 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
12178 cons.
12179
54b33868
MR
121802008-12-26 Martin Rudalics <rudalics@gmx.at>
12181
12182 * textprop.c (Qminibuffer_prompt): New variable.
12183 (syms_of_textprop): Initialize it.
12184 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
12185 in minibuffer-prompt face. (Bug#1662)
12186
40b615d6
JR
121872008-12-25 Jason Rumney <jasonr@gnu.org>
12188
12189 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
12190
baae5c2d
JR
121912008-12-24 Jason Rumney <jasonr@gnu.org>
12192
12193 * ralloc.c (r_alloc_reset_variable): New function.
12194
12195 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 12196 record of what points where. (Bug#716)
baae5c2d 12197
a9051c88
DN
121982008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
12199
12200 * minibuf.c (read_minibuf): Follow the non-interactive case when
12201 running as a daemon, before detaching.
12202
8b146312
AS
122032008-12-22 Andreas Schwab <schwab@suse.de>
12204
12205 * buffer.c (init_buffer): Use realloc instead of xrealloc.
12206 * gtkutil.c (free_widget_value): Use xfree instead of free.
12207
56f2de10
MR
122082008-12-22 Martin Rudalics <rudalics@gmx.at>
12209
12210 * frame.c (delete_frame): New function derived from
12211 Fdelete_frame to handle Qnoelisp value for FORCE argument.
12212 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
12213 (Fdelete_frame): Call delete_frame. Remove line from doc-string
12214 saying that FORCE non-nil doesn't run `delete-frame-functions'.
12215 * frame.h: Extern delete_frame.
12216 * window.c (window_loop):
12217 * terminal.c (delete_terminal):
12218 * xterm.c (x_connection_closed):
12219 * xfns.c (Fx_hide_tip):
9acef61c 12220 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 12221
1fc200d6
JR
122222008-12-21 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
12225 when character maps to .notdef character.
12226
5e252df2
SM
122272008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
12228
12229 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
12230
99b72cc4
JR
122312008-12-20 Jason Rumney <jasonr@gnu.org>
12232
12233 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 12234 a graphical frame on Windows. (Bug#1325)
99b72cc4 12235
acc49a52
JD
122362008-12-20 Jan Djärv <jan.h.d@swipnet.se>
12237
12238 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12239
6ea15123
CY
122402008-12-20 Chong Yidong <cyd@stupidchicken.com>
12241
12242 * minibuf.c (Fread_buffer): Doc fix.
12243
b2dab6c8
JR
122442008-12-20 Jason Rumney <jasonr@gnu.org>
12245
54ea0c87 12246 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 12247 server name in UNC paths. (Bug#719)
54ea0c87 12248
b2dab6c8 12249 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 12250 charbuf. (Bug#1035)
b2dab6c8 12251
6d1921be
DN
122522008-12-19 Daniel Engeler <engeler@gmail.com>
12253
12254 * sysdep.c (serial_configure): Fix typo.
12255
53934c98
DN
122562008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12257
12258 * sysdep.c: Include alloca.h.
f4f634e8
DN
12259 (system_process_attributes): Add implementation for Solaris.
12260
12261 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 12262
06e111a6
DN
122632008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12264
12265 Reorganize implementation of Flist_system_processes and
12266 Fsystem_process_attributes. No functional changes.
12267 * process.c: Don't #include pwd.h, grp.h and limits.h.
12268 (Flist_system_processes): Just call list_system_processes.
12269 (Fsystem_process_attributes): Just call system_process_attributes.
12270 (procfs_list_system_processes, time_from_jiffies)
12271 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12272 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
12273
12274 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
12275 (list_system_processes): Rename from
12276 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
12277 Provide a do nothing implementation.
12278 (system_process_attributes): Rename from
12279 procfs_list_system_processes.
12280 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 12281 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
12282
12283 * w32.c (list_system_processes): Rename from
12284 w32_list_system_processes.
12285 (system_process_attributes): Rename from
12286 w32_system_process_attributes.
12287
12288 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
12289
12290 * process.h (w32_list_system_processes)
12291 (w32_system_process_attributes): Remove.
362654a6
JB
12292 (list_system_processes, system_process_attributes):
12293 New prototypes.
06e111a6 12294
6a705b23
KH
122952008-12-19 Kenichi Handa <handa@m17n.org>
12296
12297 * xfont.c (xfont_decode_coding_xlfd): New function.
12298 (xfont_encode_coding_xlfd): New function.
12299 (xfont_list_pattern): Decode XLFD by iso-8859-1.
12300 (xfont_list): Decode and encode XLFD by iso-8859-1.
12301 (xfont_match): Likewise.
12302 (xfont_list_family): Likewise.
12303 (xfont_open): Likewise.
12304
d66c0241 12305 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
12306 names are utf-8.
12307
d66c0241 12308 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
12309 names are utf-8.
12310
5a130941
JD
123112008-12-18 Jan Djärv <jan.h.d@swipnet.se>
12312
12313 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
12314 changed.
bfd20325
JD
12315 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
12316 clicked on a detached tool bar button.
5a130941 12317
fd95644b
DN
123182008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
12319
12320 * emacs.c (main): Print and error and exit when no data is read
12321 from the pipe.
12322
e6eee6ae
JR
123232008-12-17 Jason Rumney <jasonr@gnu.org>
12324
12325 * w32font.c (w32font_has_char): Always return -1.
12326
a35dd56b
KH
123272008-12-16 Kenichi Handa <handa@m17n.org>
12328
12329 * font.c (font_open_entity): Fix previous change.
12330
0e3635c2
DN
123312008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
12332
12333 * process.c: Include <limits.h>.
12334
d4835507 123352008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
12336
12337 * font.c (font_update_drivers): Fix mistake in reconstructing the
12338 driver list.
12339
123402008-12-16 Chong Yidong <cyd@stupidchicken.com>
12341
12342 * font.c (font_clear_cache): Fix format of font cache data.
12343
e2cbc401
CY
123442008-12-15 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * xftfont.c (xftfont_open): Free Xft font pattern if
12347 XftFontOpenPattern fails.
12348
12349 * xterm.c (x_free_frame_resources): Remove extraneous call to
12350 free_frame_faces.
12351
b131d535
CY
123522008-12-13 Chong Yidong <cyd@stupidchicken.com>
12353
12354 * xterm.c (x_delete_display): Move xim_close_dpy call to
12355 x_delete_terminal.
12356 (x_delete_terminal): Call xim_close_dpy.
12357
e6df5336
JR
123582008-12-13 Jason Rumney <jasonr@gnu.org>
12359
12360 * w32font.c (intern_font_name): New function.
12361 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12362 (w32font_open_internal, Fx_select_font): Decode font name.
12363 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12364
12365 * w32font.h (intern_font_name): Declare new function.
12366
12367 * w32uniscribe.c (add_opentype_font_name_to_list):
12368 Use intern_font_name.
12369
20d68145
CY
123702008-12-13 Chong Yidong <cyd@stupidchicken.com>
12371
9f2554de
CY
12372 * frame.c (Fdelete_frame): Call free_font_driver_list.
12373
3d9bec9a
CY
12374 * font.c (free_font_driver_list): Implement missing function.
12375
20d68145
CY
12376 * w32term.c (w32_term_init): Don't initialize the image cache
12377 here; it will be done in init_frame_faces.
12378
12379 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
12380 (struct x_display_info): Remove unused member null_pixel. New
12381 member xim_callback_data.
12382
12383 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12384 (xim_initialize): Save pointer to callback function data.
12385 (xim_close_dpy): Free callback function data. Call XCloseIM,
12386 reverting 2008-11-04 change by David Smith.
12387 (x_term_init): Don't initialize the image cache here; it will be
12388 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12389 (x_delete_display): Free x_dnd_atoms member.
12390
96f9306b
KH
123912008-12-13 Kenichi Handa <handa@m17n.org>
12392
6dec9044
JB
12393 * font.c (font_rescale_ratio): Moved from xfaces.c.
12394 Argument type changed. Handle a font-spec too.
96f9306b 12395 (font_score): Check Vface_font_rescale_alist.
6dec9044 12396 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
12397
12398 * xfaces.c (font_rescale_ratio): Moved to font.c.
12399
8d5b4964
CY
124002008-12-13 Chong Yidong <cyd@stupidchicken.com>
12401
12402 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12403
e6df5336
JR
124042008-12-12 Jason Rumney <jasonr@gnu.org>
12405
12406 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
12407 Vwindow_system_version to the real w32 major version.
12408
97c6058a
DN
124092008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12410
12411 * term.c (init_tty): Move setting the terminal name before the
12412 potential user: maybe_fatal.
12413
ec4e88d7
CY
124142008-12-11 Chong Yidong <cyd@stupidchicken.com>
12415
d4835507
JB
12416 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
12417 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 12418
b4233ec9
JR
124192008-12-11 Jason Rumney <jasonr@gnu.org>
12420
8ec71e23 12421 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 12422 SYMBOL_CHARSET. (Bug#547)
8ec71e23 12423
b4233ec9 12424 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 12425 size for surrogates. (Bug#1096, bug#872)
b4233ec9 12426
011a0143
JB
124272008-12-11 Juanma Barranquero <lekktu@gmail.com>
12428
12429 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
12430
3c309f34
JB
124312008-12-11 Juanma Barranquero <lekktu@gmail.com>
12432
12433 * process.c (Fsystem_process_attributes, syms_of_process):
12434 Fix typo in name of Ssystem_process_attributes.
12435 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
12436
fedc6ab5
JB
124372008-12-11 Juanma Barranquero <lekktu@gmail.com>
12438
12439 * syntax.c (Fmodify_syntax_entry): Doc fix.
12440
ba3de0e8
JB
124412008-12-10 Juanma Barranquero <lekktu@gmail.com>
12442
12443 * font.c (Ffont_spec): Move usage to end of docstring.
12444
174f1c74
JR
124452008-12-10 Jason Rumney <jasonr@gnu.org>
12446
12447 * w32font.c (Qcham): New symbol.
12448 (font_supported_scripts): Add cham, and comments for other new
12449 scripts in bitfield from OpenType spec.
9d32f818
JR
12450 (add_font_entity_to_list): Limit unicode-sip fonts to those that
12451 contain characters beyond the bmp.
174f1c74 12452
7b649478
KH
124532008-12-10 Kenichi Handa <handa@m17n.org>
12454
12455 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 12456 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
12457 Qunicode_sip.
12458
2133e2d1
JB
124592008-12-10 Juanma Barranquero <lekktu@gmail.com>
12460
12461 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12462 (Fcoding_system_put): Use QCdefault_char.
12463 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12464
9af886ee
CY
124652008-12-09 Chong Yidong <cyd@stupidchicken.com>
12466
74d819eb
CY
12467 * xftfont.c (syms_of_xftfont): Fix typo.
12468
4ccfa1c0 12469 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 12470
7c19d3ae
DN
124712008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12472
12473 * emacs.c (main): Close daemon_pipe on exec.
12474
567826bb
CY
124752008-12-08 Chong Yidong <cyd@stupidchicken.com>
12476
12477 * termchar.h (struct tty): New members termcap_term_buffer and
12478 termcap_strings_buffer.
12479
12480 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 12481 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
12482 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12483 All callers changed.
12484 (init_tty): Store termcap data and string buffers in new struct
12485 tty members termcap_term_buffer and termcap_strings_buffer.
12486 (delete_tty): Free them.
4ccfa1c0 12487 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 12488
aa96c42b
SZ
124892008-12-07 Seiji Zenitani <zenitani@mac.com>
12490
12491 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 12492 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 12493
b7e1d896
CY
124942008-12-06 Chong Yidong <cyd@stupidchicken.com>
12495
12496 * coding.c (make_conversion_work_buffer): Disable buffer
12497 modification hooks in the work buffer.
12498
b5ec91a5
EZ
124992008-12-05 Eli Zaretskii <eliz@gnu.org>
12500
12501 * process.c (procfs_system_process_attributes): If `nread' has a
12502 negative value, assign zero to it.
12503
a5d2a52b
CY
125042008-12-05 Chong Yidong <cyd@stupidchicken.com>
12505
68c5540b 12506 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 12507
7bf1bb21
KH
125082008-12-05 Kenichi Handa <handa@m17n.org>
12509
12510 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12511 second character is a combining character.
12512
2fdc7d00
EZ
125132008-12-05 Eli Zaretskii <eliz@gnu.org>
12514
12515 * process.c (procfs_system_process_attributes): Don't use cmd,
12516 cmdsize, and q without initializing them first.
12517
bf6bfba8
JR
125182008-12-04 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32font.c (w32font_draw): Initialize orig_clip before getting
12521 it, and delete it when finished.
12522
a3b1a468
DN
125232008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12524
12525 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12526 case when running as a daemon before detaching.
12527
8b8be8eb
JB
125282008-12-03 Juanma Barranquero <lekktu@gmail.com>
12529
805f2638 12530 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 12531
b1bde622
KH
125322008-12-03 Kenichi Handa <handa@m17n.org>
12533
e500c47d
KH
12534 * font.c (font_at): Set `multibyte' at first.
12535
ca516334
KH
12536 * coding.c (decode_coding_charset): Check type of an element of
12537 vector VALIDS.
7bf1bb21 12538 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 12539
4ccfa1c0 12540 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
12541 (font_for_char): Likewise.
12542
1e5ecd37
CY
125432008-12-03 Chong Yidong <cyd@stupidchicken.com>
12544
d5b01609 12545 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
12546 (font_update_lface): Handle fonts with corrupted size specs,
12547 i.e. non-int and non-float.
d5b01609 12548
11e3a6e4 12549 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 12550 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 12551 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 12552
ab06788b
CY
12553 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12554
1e5ecd37 12555 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 12556 underline_minimum_offset for underline position.
1e5ecd37 12557
63c125ab
DN
125582008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12559
12560 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12561
12562 * character.c (c_string_width): Specify the type for LEN.
12563
3a8406e1
KH
125642008-12-03 Kenichi Handa <handa@m17n.org>
12565
4ccfa1c0 12566 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 12567 (decode_coding_utf_8): Likewise.
4ccfa1c0 12568 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 12569 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 12570
651df7d9
CY
125712008-12-02 Chong Yidong <cyd@stupidchicken.com>
12572
12573 * keyboard.c (make_lispy_position): Only use PT if the selected
12574 window is current.
12575
1f625c6c
AS
125762008-12-02 Andreas Schwab <schwab@suse.de>
12577
f7741ce9
AS
12578 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12579
1f625c6c
AS
12580 * doprnt.c (doprnt1): Fix size of charbuf.
12581
92bc2678
CY
125822008-12-02 Chong Yidong <cyd@stupidchicken.com>
12583
12584 * keyboard.c (timer_check): Revert last change.
12585
93b9e8cc
JB
125862008-12-02 Juanma Barranquero <lekktu@gmail.com>
12587
12588 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12589
fd7a37d5
JB
125902008-12-01 Juanma Barranquero <lekktu@gmail.com>
12591
12592 * makefile.w32-in: Update dependencies.
12593 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12594
c115043b
AS
125952008-12-01 Andreas Schwab <schwab@suse.de>
12596
12597 * font.c (register_font_driver): Use xmalloc.
12598 (font_put_frame_data): Likewise.
12599
f5668d2a
CY
126002008-12-01 Chong Yidong <cyd@stupidchicken.com>
12601
860d96be
CY
12602 * xfaces.c (realize_x_face): Make abort condition clearer.
12603
f5668d2a
CY
12604 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12605
379c17e7
CY
126062008-11-30 Chong Yidong <cyd@stupidchicken.com>
12607
12608 * keyboard.c (timer_check): After a timer runs, ensure that the
12609 selected window's buffer is current.
12610
35f36d65
JB
126112008-11-30 Juanma Barranquero <lekktu@gmail.com>
12612
f952c61c
JB
12613 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12614 It was accidentally restored by the Unicode merge.
12615
35f36d65
JB
12616 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12617
b23077df
JB
126182008-11-29 Juanma Barranquero <lekktu@gmail.com>
12619
12620 * w32proc.c: Include "coding.h".
12621 (Fw32_short_file_name): Encode filename passed to Windows API.
12622 (Fw32_long_file_name): Encode filename passed to Windows API and
12623 decode back the result. (Bug#1433)
12624
b8ebe9dd
KH
126252008-11-29 Kenichi Handa <handa@m17n.org>
12626
8cc53f96
KH
12627 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12628 not before accessing it.
12629
b8ebe9dd
KH
12630 * charset.c (Fdefine_charset_internal): After calculating
12631 min_char, max_char, and fastmap, copy the charset structure again.
12632 (encode_char): Fix the previous change.
12633
59bc82c0
SZ
126342008-11-28 Seiji Zenitani <zenitani@mac.com>
12635
12636 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12637
12638 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12639
12640 * nsterm.m (x_set_frame_alpha): New function.
12641
32247e3d
EZ
126422008-11-27 Eli Zaretskii <eliz@gnu.org>
12643
12644 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12645
b003e5ff
JB
126462008-11-27 Juanma Barranquero <lekktu@gmail.com>
12647
12648 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12649 pointer to check_face_name.
12650
708550f5
KH
126512008-11-27 Kenichi Handa <handa@m17n.org>
12652
12653 * category.h (SET_CATEGORY_SET): Call set_category_set.
12654 (set_category_set): Extern it.
12655
12656 * category.c (hash_get_category_set): New function.
12657 (Fmodify_category_entry): Adjusted for the change of
12658 char_table_ref_and_range. Call hash_get_category_set to get a
12659 category set to store in the table.
12660
12661 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12662 Funify_charset.
12663
2ae37cf0 12664 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
12665 (DECODE_CHAR): Check if the decoder vector is ready.
12666 (ENCODE_CHAR): Check if the encoder char-table is ready.
12667 (maybe_unify_char): Extern it.
12668
12669 * charset.c (Vchar_unified_charset_table): Delete it.
12670 (inhibit_load_charset_map): New variable.
12671 (temp_charset_work): New variable.
12672 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12673 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12674 New macros.
12675 (load_charset_map): Meaning of control_flag changed. If
12676 inhibit_load_charset_map is nonzero, setup a table in
12677 temp_charset_work.
12678 (load_charset): New argument control_flag.
12679 (map_charset_for_dump): New function.
12680 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12681 map_charset_for_dump.
12682 (Fdefine_charset_internal): If the charset method is MAP, load
12683 mapping tables by calling load_charset.
12684 (Funify_charset): Don't load a mapping table but directly set
12685 Vchar_unify_table.
12686 (maybe_unify_char): New function.
12687 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12688 Handle the case of inhibit_load_charset_map being nonzero.
12689 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12690 Handle the case of inhibit_load_charset_map being nonzero.
12691 (Fclear_charset_maps): Just free temp_charset_work.
12692 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12693 variable.
12694
12695 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12696 change of char_table_ref_and_range.
12697 (char_table_ref_and_range): Change the meaning of argument FROM
12698 and TO. Now the caller must provide initial values for *FROM
12699 and *TO.
12700
12701 * fontset.c (fontset_add): Adjusted for the change of
12702 char_table_ref_and_range.
12703 (fontset_get_font_group): Likewise.
12704 (Ffontset_info): Likewise.
12705
12706 * keymap.c (describe_vector): Adjusted for the change of
12707 char_table_ref_and_range. For char-table, put boundary between
12708 non-ASCII and 8-bit characters.
12709
12710 * print.c (print_object): For bool-vector, delete unnecessary
12711 check of ASCII_BYTE_P.
12712
9196133b
JR
127132008-11-26 Jason Rumney <jasonr@gnu.org>
12714
12715 * w32font.c (w32font_open_internal): Don't include external
9acef61c 12716 leading in font height. (Bug#879)
9196133b 12717
9f688acf
GM
127182008-11-26 Glenn Morris <rgm@gnu.org>
12719
12720 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12721 redefinition with ifdef. (Bug#1383)
12722
90d19aff
AR
127232008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12724
12725 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12726
4ccfa1c0 127272008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
12728
12729 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12730 New EmacsView methods.
12731 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12732 Fixes bug #1048,1357,1414.
12733
127342008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12735
12736 Fix bug #1362.
12737 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12738 is not an indexed color.
12739 * nsterm.m (free_indexed_color): Add argument checking.
12740 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12741
e7d5ecb3
CY
127422008-11-24 Chong Yidong <cyd@stupidchicken.com>
12743
12744 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12745 Document confirm-after-completion value for
12746 minibuffer-completion-confirm.
12747
c285743c
JR
127482008-11-24 Jason Rumney <jasonr@gnu.org>
12749
12750 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12751 warning.
12752
b0857706
JR
127532008-11-23 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12756 restored before returning.
12757
12758 * w32font.c (check_face_name): New function.
12759 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 12760 fonts. (Bug#642)
b0857706 12761
ee50ff07
MR
127622008-11-22 Martin Rudalics <rudalics@gmx.at>
12763
12764 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12765 confirm-nonexistent-file-or-buffer in doc-string.
12766
b8ff72fa
SM
127672008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12768
12769 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12770 Fix copy/paste typo. Add checks.
12771
cee53ed4
KH
127722008-11-21 Kenichi Handa <handa@m17n.org>
12773
12774 * coding.c (detect_coding_iso_2022): Reject invalid composition
12775 sequence.
12776 (DECODE_COMPOSITION_START): If the current source is the last
12777 block, and the current composition doesn't end, regard this
12778 sequence as invalid.
12779 (decode_coding_iso_2022): Handle invalid composition sequence.
12780
f6ef1e65
MR
127812008-11-20 Martin Rudalics <rudalics@gmx.at>
12782
12783 * window.c (coordinates_in_window): Don't return
12784 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12785 line when the window is not the rightmost one. (Bug#1372)
12786
e08b1705
MR
127872008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12788
12789 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12790
ad98e89f
EZ
127912008-11-15 Eli Zaretskii <eliz@gnu.org>
12792
12793 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12794 and bright_bg if noninteractive is non-zero.
12795
fb098a4b
CY
127962008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12797
12798 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12799 x_draw_glyph_string_background.
12800
12801 * w32term.c (x_draw_glyph_string): Likewise.
12802
ce952b6e
CY
128032008-11-15 Chong Yidong <cyd@stupidchicken.com>
12804
12805 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12806 the next glyph string once past the overhang width.
12807
12808 * nsterm.m (ns_draw_glyph_string): Likewise.
12809
12810 * w32term.c (x_draw_glyph_string): Likewise.
12811
26ea7079
CY
128122008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12813
12814 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12815 double file close.
12816
1c33c906
MR
128172008-11-14 Martin Rudalics <rudalics@gmx.at>
12818
12819 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12820 dedicated status of window before attempting to display another
12821 buffer in it.
12822
8fc29035
JB
128232008-11-14 Juanma Barranquero <lekktu@gmail.com>
12824
12825 * msdos.c (Fmsdos_long_file_names):
12826 (syms_of_msdos) <dos-unsupported-char-glyph>:
12827 * dosfns.c (Fint86): Fix typos in docstrings.
12828
55fb4286
EZ
128292008-11-14 Eli Zaretskii <eliz@gnu.org>
12830
12831 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12832
3fda0315
KY
128332008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12834
12835 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12836
7e849c17
CY
128372008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12838
12839 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12840
12841 * frame.h: Negative alpha means "don't touch".
12842
12843 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12844
12845 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12846
b9fd67bd
DN
128472008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12848
12849 * hftctl.c:
12850 * chpdef.h:
12851 * acldef.h: Remove files used only for systems no longer supported.
12852
12853 * Makefile.in: Fix .o alphabetical ordering.
12854 (hftctl.o): Remove dependency, file removed.
12855 (keymap.o, print.o): Depend on charset.h.
12856
d5998e03
KH
128572008-11-10 Kenichi Handa <handa@m17n.org>
12858
2ae37cf0 12859 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 12860
be70e183
CY
128612008-11-08 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * dired.c (file_name_completion): If completion_ignore_case is
12864 enabled, ignore case when checking completion-regexp-list.
12865
7cf94eac
EZ
128662008-11-08 Eli Zaretskii <eliz@gnu.org>
12867
12868 * vm-limit.c (get_lim_data): Fix last change.
12869
ee107a89
KH
128702008-11-08 Kenichi Handa <handa@m17n.org>
12871
12872 * character.c (Fget_byte): New function.
12873 (syms_of_character): Defsubr Fget_byte.
12874
5fd15622
CY
128752008-11-07 Chong Yidong <cyd@stupidchicken.com>
12876
12877 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12878 cursor position is valid after scrolling.
12879
13d62fad
JB
128802008-11-06 Juanma Barranquero <lekktu@gmail.com>
12881
12882 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12883
a1dd2936
GM
128842008-11-06 Glenn Morris <rgm@gnu.org>
12885
12886 * xterm.c (handle_one_xevent): Don't let popup menus cause
12887 mouse-autoselect-window related window switching. (Bug#1261)
12888
860cd236
CY
128892008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12890
12891 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12892
653a3150
AS
128932008-11-04 Andreas Schwab <schwab@suse.de>
12894
12895 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12896
870f5cac
CY
128972008-11-03 Chong Yidong <cyd@stupidchicken.com>
12898
12899 * xfns.c (Fx_wm_set_size_hint): New function.
12900
1e02f3cb
MR
129012008-11-03 Martin Rudalics <rudalics@gmx.at>
12902
12903 * textprop.c (Fprevious_single_char_property_change): Return 0
12904 when there's no change in a string. (Bug#1301)
12905
e630dfc6
MR
129062008-11-02 Martin Rudalics <rudalics@gmx.at>
12907
12908 * frame.c (do_switch_frame): New argument NORECORD passed to
12909 Fselect_window.
12910 (Fselect_frame): New argument NORECORD passed to
12911 do_switch_frame.
12912 (Fset_frame_selected_window): New argument NORECORD passed to
12913 Fselect_frame.
12914 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12915 in call of do_switch_frame.
12916 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12917 Handle NORECORD argument in call of Fselect_frame.
12918 * lisp.h (do_switch_frame, Fselect_frame)
12919 (Fset_frame_selected_window): Adjust declarations.
12920 * window.c (select_frame_norecord): New function.
12921 (run_window_configuration_change_hook): Use it and call
12922 Fselect_frame with NORECORD set.
12923 (Fselect_window): Pass NORECORD to Fselect_frame.
12924 (Fset_window_configuration): Handle NORECORD argument in call of
12925 do_switch_frame.
12926 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12927 Fset_frame_selected_window.
12928 * keyboard.c (command_loop_1): Handle NORECORD in call of
12929 Fselect_frame (currently ifdefd).
12930
9020b223
GM
129312008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12932
12933 * emacs.c (USAGE2): Untabify.
12934
793ffee8
SM
129352008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12936
12937 * composite.c (fill_gstring_header): Fix copy/paste typo.
12938
ab6d1131
MR
129392008-10-31 Martin Rudalics <rudalics@gmx.at>
12940
12941 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12942 (Fother_window): Rename argument and rewrite doc-string.
12943 (select_window_norecord): Fix return value. (Bug#1276)
12944
601a9cf1
JB
129452008-10-30 Juanma Barranquero <lekktu@gmail.com>
12946
12947 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12948 new frames overriding foreground for tooltips. Based on similar patch
12949 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12950
813b0652
CY
129512008-10-29 Chong Yidong <cyd@stupidchicken.com>
12952
12953 * emacs.c (Fdaemon_initialized): Initialize nfd.
12954
4414f58f
MR
129552008-10-29 Martin Rudalics <rudalics@gmx.at>
12956
12957 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12958 (Fwindow_text_height): Clarify doc-strings.
12959 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12960 doc-string of window-scroll-functions.
12961
ecdcaa09
RS
129622008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12963
12964 * category.c (syms_of_category): Fix typo in docstring.
12965
23fe745a
JB
129662008-10-28 Juanma Barranquero <lekktu@gmail.com>
12967
12968 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12969 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12970 Fix typos in docstrings.
12971
ff808935
DN
129722008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12973
12974 * emacs.c (daemon_pipe): Make non-static.
12975 (IS_DAEMON): Move definition ...
12976 * lisp.h (IS_DAEMON): ... here.
12977 (daemon_pipe): Declare.
12978 (is_daemon): Remove.
12979 * dispnew.c (init_display): Use IS_DAEMON.
12980
fc012771
SM
129812008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12982
12983 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12984 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12985
12986 * emacs.c (is_daemon): Remove.
12987 (main): Don't set is_daemon.
12988 (IS_DAEMON): New macro.
12989 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12990 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12991 parent exits.
12992 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12993
d8bdbe6f
CY
129942008-10-27 Chong Yidong <cyd@stupidchicken.com>
12995
d1a072bf
CY
12996 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12997 over-sized glyph, draw it with the default glyph width.
12998
e2e325aa
CY
12999 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13000 glyph, draw it with the default glyph width.
13001
13002 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13003 glyph, draw it with the default glyph width.
13004
d8bdbe6f
CY
13005 * xdisp.c (try_scrolling): When computing the distance from the
13006 scroll margin to PT, try moving some distance past the window
13007 bottom before giving up.
13008
7bfac547
MR
130092008-10-27 Martin Rudalics <rudalics@gmx.at>
13010
13011 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
13012 (Fset_window_buffer): Explain in doc-string that a window can be
13013 "strongly" dedicated to its buffer.
13014
4ff029f6
DN
130152008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
13016
13017 * emacs.c (daemon_name): New variable.
13018 (main): Deal with --daemon=SERVER_NAME.
13019 (Fdaemonp): Return a name if one was passed to --daemon.
13020
5790ef40
DN
130212008-10-26 Romain Francoise <romain@orebokech.com>
13022
f9bd0df9 13023 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
13024 (main): Create a pipe before forking, make the parent exit only after
13025 the child has closed its end of the pipe. Move closing the
13026 descriptors ...
13027 (Fdaemon_initialized): ... here. New function.
13028
f5385255
SM
130292008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
13030
4d632321
SM
13031 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
13032 the previous unoptimized table.
13033
f5385255
SM
13034 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
13035 the distinction between non-nil and non-t value of `dedicated'.
13036
6c56a0f3
CY
130372008-10-25 Chong Yidong <cyd@stupidchicken.com>
13038
13039 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 13040 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 13041
fec89261
MR
130422008-10-25 Martin Rudalics <rudalics@gmx.at>
13043
13044 * window.c (Fget_buffer_window, Fdelete_windows_on)
13045 (Freplace_buffer_in_windows): Make buffer argument optional and
13046 rename to buffer_or_name.
13047
34fcddd0
CY
130482008-10-24 Chong Yidong <cyd@stupidchicken.com>
13049
f5385255
SM
13050 * xdisp.c (handle_single_display_spec, handle_display_prop):
13051 Undo 2005-05-16 change.
34fcddd0
CY
13052 (handle_stop): Pop iterator if it's loaded with an empty string.
13053 (get_overlay_strings_1): Don't save iterator if it's loaded with
13054 an empty string (bug#1201).
13055
064766f2
KH
130562008-10-24 Kenichi Handa <handa@m17n.org>
13057
13058 * ftfont.c (ftfont_otf_features): Fix previous change.
13059 (ftfont_otf_capability): Check FeatureList.FeatureCount before
13060 calling ftfont_otf_features.
13061
f9bd0df9 130622008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
13063
13064 * font.c (font_match_p): Fix for the case that a vector of
13065 characters is in script-representative-chars.
13066
1dae9197
MA
130672008-10-24 Michael Albinus <michael.albinus@gmx.de>
13068
13069 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 13070 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
13071 (xd_read_queued_messages): Catch Qdbus_error from the macros.
13072 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 13073 macro. (Bug#1186)
1dae9197 13074
f9bd0df9 130752008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
13076
13077 * s/sol2-10.h: New file.
13078
878a4584
JB
130792008-10-23 Juanma Barranquero <lekktu@gmail.com>
13080
13081 * xdisp.c (fill_glyph_string): Fix typo in source (though the
13082 poor beast has survived 9+ years and the jump from xterm.c!).
13083
cd265ca6
MR
130842008-10-23 Martin Rudalics <rudalics@gmx.at>
13085
13086 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
13087 Reword doc-string.
f5385255 13088 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 13089
472a4dc9
JB
130902008-10-23 Juanma Barranquero <lekktu@gmail.com>
13091
13092 * character.c (syms_of_character) <script-representative-chars>:
13093 <unicode-category-table>: Doc fixes.
13094
159bd5a2
NF
130952008-10-23 Noah Friedman <friedman@splode.com>
13096
13097 * coding.c (make_conversion_work_buffer): Check that
13098 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
13099 Fget_buffer_create.
13100
49f9c344
KH
131012008-10-23 Kenichi Handa <handa@m17n.org>
13102
13103 * font.c (font_add_log): Check the values of extra properties.
13104
12bb3111
MR
131052008-10-22 Martin Rudalics <rudalics@gmx.at>
13106
13107 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13108 Reword doc-string.
13109 (Fset_window_parameter): Use NILP.
13110 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 13111 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 13112
bbeb4e99
JB
131132008-10-22 Juanma Barranquero <lekktu@gmail.com>
13114
13115 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
13116
131172008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
13118
13119 * nsfns.m (ns_appkit_version): New function.
13120 (x-server-version): Use it.
13121 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
13122 (x-server-vendor): Don't check_ns().
13123
13124 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
13125
a9b555d3
JB
131262008-10-22 Juanma Barranquero <lekktu@gmail.com>
13127
13128 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
13129 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
13130
4626499f
KH
131312008-10-22 Kenichi Handa <handa@m17n.org>
13132
e3681952
KH
13133 * syntax.c (scan_words): Call word_boundary_p instead of comparing
13134 scripts.
13135
4626499f
KH
13136 * category.c (word_boundary_p): Check scripts instead of charset.
13137 Handle nil value in word-separating-categories and
13138 word-combining-categories.
13139 (syms_of_category): Fix docstrings of word-separating-categories
13140 and word-combining-categories.
13141
1560f91a
EZ
131422008-10-21 Eli Zaretskii <eliz@gnu.org>
13143
13144 * coding.c (Fencode_coding_region, Fdecode_coding_region)
13145 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
13146
f4668441
MR
131472008-10-21 Martin Rudalics <rudalics@gmx.at>
13148
13149 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
13150 Rename arg "buffer" to "buffer_or_name".
13151 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
13152 it optional.
13153 (no_switch_window): Remove since the return value is not used.
a9b555d3 13154 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
13155 Consider window as dedicated when Fwindow_dedicated_p returns a
13156 non-nil value.
13157 * lisp.h: Remove prototype for no_switch_window.
13158
fd75ddb2
JD
131592008-10-21 Jan Djärv <jan.h.d@swipnet.se>
13160
13161 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 13162 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 13163
07295713
KH
131642008-10-21 Kenichi Handa <handa@m17n.org>
13165
13166 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
13167 check Vlatin_extra_code_table.
13168
712adc82
EZ
131692008-10-20 Eli Zaretskii <eliz@gnu.org>
13170
13171 * fileio.c (Fset_file_modes): Doc fix.
13172
f549eb0b
MA
131732008-10-19 Michael Albinus <michael.albinus@gmx.de>
13174
13175 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
13176 in arrays.
13177
aac0c6e3
MR
131782008-10-19 Martin Rudalics <rudalics@gmx.at>
13179
13180 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13181 Mention kill-buffer in doc-string.
13182 (Fset_window_buffer): Reinsert tem check removed in last commit.
13183 (Fenlarge_window, Fshrink_window): Have argument names and
13184 doc-string follow Elisp manual more closely.
13185
131862008-10-18 Eli Zaretskii <eliz@gnu.org>
13187
13188 * fileio.c (Fset_file_modes): Doc fix.
13189
131902008-10-18 Martin Rudalics <rudalics@gmx.at>
13191
13192 * window.c (Fwindow_width, Fset_window_start)
13193 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
13194 (Fdelete_windows_on, Freplace_buffer_in_windows):
13195 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
13196 (Fwindow_dedicated_p): Make window argument optional.
13197 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
13198 (Fset_window_buffer): Respect any non-nil dedicated value for
13199 window. Rename "buffer" argument to "buffer_or_name".
13200
132012008-10-18 Ulrich Mueller <ulm@gentoo.org>
13202
13203 * m/sh3.h: New file, machine description for SuperH.
13204
132052008-10-17 Martin Rudalics <rudalics@gmx.at>
13206
13207 * window.c (Fsplit_window): Rename arg horflag to horizontal.
13208
132092008-10-17 Kenichi Handa <handa@m17n.org>
13210
13211 * ftfont.c (ftfont_otf_features): Fix indexing
13212 gsub_gpos->FeatureList.Feature. Check the validity of indices.
13213
132142008-10-16 Magnus Henoch <mange@freemail.hu>
13215
13216 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
13217 (Fdbus_call_method_asynchronously): Ditto.
13218 This change makes C-h f display the argument list.
13219
132202008-10-16 Chong Yidong <cyd@stupidchicken.com>
13221
13222 * fileio.c (Fexpand_file_name): Doc fix.
13223
13224 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
13225 of :foreground and :background equivalent to unspecified (20.x
13226 compatibility).
13227
132282008-10-15 Eli Zaretskii <eliz@gnu.org>
13229
13230 * buffer.c (syms_of_buffer): Doc fix.
13231
132322008-10-14 Kenichi Handa <handa@m17n.org>
13233
13234 * font.c (font_clear_prop): When clearing font width, clear the
13235 average width field too.
13236
132372008-10-12 Andreas Schwab <schwab@suse.de>
13238
13239 * ftfont.c (ftfont_shape_by_flt): Make static.
13240 * ftfont.h (ftfont_shape_by_flt): Don't declare.
13241
13242 * font.c: Don't include <m17n-flt.h>.
13243
132442008-10-10 Eli Zaretskii <eliz@gnu.org>
13245
13246 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13247
132482008-10-09 Eli Zaretskii <eliz@gnu.org>
13249
13250 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13251 away code.
13252
132532008-10-09 Chong Yidong <cyd@stupidchicken.com>
13254
13255 * dispnew.c (update_text_area): Avoid looping due to large glyph
13256 overhangs (bug#1070).
13257
132582008-10-09 Kenichi Handa <handa@m17n.org>
13259
13260 * fontset.c (face_for_char): If face->fontset is negative, just
13261 return ascii_face.
13262
f5385255
SM
13263 * font.c (font_delete_unmatched): Fix previous change.
13264 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
13265
132662008-10-09 Martin Rudalics <rudalics@gmx.at>
13267
13268 * frame.c (Fraise_frame): On text-only terminals select frame in
13269 order to make it visible. (Bug#1061)
13270
132712008-10-08 Chong Yidong <cyd@stupidchicken.com>
13272
13273 * fontset.c (fontset_find_font): Check frame validity.
13274
132752008-10-07 Chong Yidong <cyd@stupidchicken.com>
13276
a9b555d3 13277 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
13278 (xg_display_close): Allow Emacs to close all displays (bug#985).
13279
132802008-10-06 Andreas Schwab <schwab@suse.de>
13281
f5385255 13282 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
13283
132842008-10-06 Chong Yidong <cyd@stupidchicken.com>
13285
f5385255 13286 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 13287
a9b555d3 13288 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
13289
13290 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
13291 during initialization.
13292
132932008-10-04 Eli Zaretskii <eliz@gnu.org>
13294
13295 * xdisp.c (redisplay_internal): If frame switched, redisplay the
13296 whole thing on MSDOS frames as well as on a TTY.
13297
13298 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
13299 well as for TTY.
13300 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
13301 well as on a TTY.
13302
13303 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
13304 as well as for TTY.
13305
13306 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
13307
13308 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
13309 MSDOS frames as well.
13310
133112008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13312
13313 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
13314 correct arguments.
b71ac3dd 13315 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
13316
133172008-10-03 Glenn Morris <rgm@gnu.org>
13318
13319 * emacs.c (USAGE1): Add --daemon.
13320
133212008-10-02 Eli Zaretskii <eliz@gnu.org>
13322
13323 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
13324 100, so it's in percents as advertised.
13325
133262008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13327
13328 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
13329 (ns_output.current_cursor, ns_output.desired_cursor)
13330 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
13331 (FRAME_NEW_CURSOR_COLOR): Remove.
13332
13333 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 13334 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
13335 enumeration (HOLLOW_BOX_CURSOR, etc.).
13336
13337 * nsterm.m (ns_frame_rehighlight): Remove commented code.
13338 (draw_window_cursor): Simplify code.
f5385255
SM
13339 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
13340 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 13341 updates manually.
a9b555d3
JB
13342 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
13343 Use core Emacs cursor types.
aac0c6e3 13344
b8ff72fa 13345 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
13346
133472008-10-02 Martin Rudalics <rudalics@gmx.at>
13348
13349 * process.c (Faccept_process_output): Fix doc-string.
13350
133512008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
13352
13353 * gmalloc.c (__sbrk): Also define for uClibc.
13354
13355 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
13356 for uClibc.
13357
133582008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13359
13360 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13361 styles.
13362 (nsfont_open): Reenable the cache.
13363
133642008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13365
13366 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13367 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13368
133692008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13370
13371 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13372 a suspended terminal.
13373
133742008-09-30 Michael Albinus <michael.albinus@gmx.de>
13375
13376 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13377
133782008-09-30 Eli Zaretskii <eliz@gnu.org>
13379
13380 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13381
133822008-09-30 Chong Yidong <cyd@stupidchicken.com>
13383
13384 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13385 in a continued line coincides with a line beginning.
13386
133872008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13388
13389 * nsfont.m (nsfont_trait_distance): Fix bug.
13390 (nsfont_list): Return a list rather than a vector (syncs with Handa
13391 changes of 2008-05-14).
13392 (nsfont_open): Improve logging.
13393
133942008-09-29 Andreas Schwab <schwab@suse.de>
13395
13396 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13397
133982008-09-28 Martin Rudalics <rudalics@gmx.at>
13399
13400 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13401 name as char-resolve-modifiers.
13402 Reported by: Markus Triska <markus.triska@gmx.at>
13403
134042008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13405
13406 * dispnew.c (init_display): Return earlier when running as a daemon.
13407
134082008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13409
13410 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13411
134122008-09-27 Eli Zaretskii <eliz@gnu.org>
13413
13414 * composite.c (Fcomposition_get_gstring)
13415 (Fcompose_region_internal, Fcompose_string_internal)
13416 (Ffind_composition_internal): Doc fix.
13417 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13418 (syms_of_composite) <auto-composition-function>: Doc fix.
13419 (syms_of_composite) <composition-function-table>: Doc fix.
13420
134212008-09-25 Chong Yidong <cyd@stupidchicken.com>
13422
13423 * search.c (wordify): New argument for lax word-ends.
13424 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
13425
134262008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
13427
13428 * lisp.h (is_daemon): Declare.
13429 * dispnew.c (init_display): Do not try to initialize the terminal
13430 when running as a daemon.
13431
134322008-09-22 Chong Yidong <cyd@stupidchicken.com>
13433
13434 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
13435 x_display_pixel_height.
13436
134372008-09-22 Martin Rudalics <rudalics@gmx.at>
13438
13439 * undo.c (record_point): Don't call Fundo_boundary for first
13440 change. (Bug#731)
13441
134422008-09-22 Juanma Barranquero <lekktu@gmail.com>
13443
13444 * emacs.c (Fdaemonp): Doc fix.
13445
134462008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
13447
13448 * emacs.c (main): Place #ifdef in the proper place.
13449
134502008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13451
13452 * emacs.c (standard_args): Add --daemon.
13453 (main): Disconnect from the terminal when --daemon is passed.
13454 (is_daemon): New variable.
13455 (Fdaemonp): New function.
13456 (syms_of_emacs): Defsubr it.
13457
134582008-09-20 Chong Yidong <cyd@stupidchicken.com>
13459
13460 * xdisp.c (get_next_display_element): Handle string display
13461 correctly when checking for the end of a box run.
13462
134632008-09-20 Glenn Morris <rgm@gnu.org>
13464
13465 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13466 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13467 (Frename_file): Avoid copying to trash if a rename involves
13468 a delete. (Bug#964).
13469
134702008-09-20 Eli Zaretskii <eliz@gnu.org>
13471
13472 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13473 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13474 frames as well as termcap frames.
13475 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13476 get_named_tty.
13477
134782008-09-19 Eli Zaretskii <eliz@gnu.org>
13479
13480 * process.c (procfs_system_process_attributes): Fix cmdline in
13481 case /proc/PID/cmdline is empty.
13482
13483 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13484 x_display_pixel_height.
13485
134862008-09-19 Juanma Barranquero <lekktu@gmail.com>
13487
13488 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13489
13490 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13491 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13492
134932008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13494
13495 * dispextern.h (struct it): Move line_wrap away from the middle of
13496 bitfields. Move voffset in struct iterator_stack_entry after the
13497 bitfields. Move tab_width near after another short.
13498
134992008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13500
13501 * frame.h (struct frame): Move alpha from the middle of bitfields.
13502
13503 * window.h (struct window): Move frozen_window_start_p after the
13504 rest of the bitfields to reduce padding.
13505
135062008-09-18 Chong Yidong <cyd@stupidchicken.com>
13507
13508 * xterm.h (x_display_info): Remove `height' and `width' members.
13509
13510 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13511
13512 * w32term.h (w32_display_info): Remove `height', `width',
13513 `height_in', and `width_in' members.
13514
b8ff72fa
SM
13515 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13516 New functions.
aac0c6e3
MR
13517 (x_calc_absolute_position): Use them.
13518 (x_term_init): Omit removed `height' and `width' members.
13519
b8ff72fa
SM
13520 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13521 New functions.
aac0c6e3
MR
13522 (w32_read_socket, x_calc_absolute_position): Use them.
13523 (w32_initialize_display_info, w32_term_init): Omit removed members
13524 of w32_display_info.
13525
b8ff72fa
SM
13526 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13527 New functions.
13528 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 13529
b8ff72fa
SM
13530 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13531 New functions.
aac0c6e3
MR
13532 (x_calc_absolute_position): Use them.
13533 (x_term_init): Omit removed `height' and `width' members.
13534
13535 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
13536 (compute_tip_xy):
13537 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
13538 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13539 x_display_pixel_width.
13540
135412008-09-18 Kenichi Handa <handa@m17n.org>
13542
13543 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13544 (composition_compute_stop_pos): Fix handling of static composition.
13545 (Fcomposition_get_gstring): Check FROM and TO at first.
13546
135472008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13548
46e722a9 13549 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
13550 mixup (YAILOM).
13551
135522008-09-17 Chong Yidong <cyd@stupidchicken.com>
13553
13554 * indent.c (Fvertical_motion): Use position reported by iterator
13555 instead of PT for determining screen motion (bug#943).
13556
135572008-09-17 Romain Francoise <romain@orebokech.com>
13558
13559 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13560
135612008-09-17 Kenichi Handa <handa@m17n.org>
13562
13563 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13564
13565 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13566 if necessary.
13567
135682008-09-16 Kenichi Handa <handa@m17n.org>
13569
13570 * coding.c (make_conversion_work_buffer): Avoid calling
13571 Fget_buffer_create if it is not necessary.
13572
135732008-09-15 Martin Rudalics <rudalics@gmx.at>
13574
13575 * window.c (Fselect_window): Don't update window_select_count and
13576 use_time when norecord is not nil.
13577
135782008-09-14 Kenichi Handa <handa@m17n.org>
13579
13580 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13581 specpdl_ptr.
13582
135832008-09-12 Kenichi Handa <handa@m17n.org>
13584
13585 * indent.c (scan_for_column): Don't handle automatic composition
13586 if the current buffer is not associated with a window.
13587
13588 * composite.c (composition_reseat_it): If the current buffer is
13589 not associated with a window, ignore the automatic composition.
13590 (find_automatic_composition): Likewise.
13591
135922008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13595 (Fgpm_mouse_stop): Use it.
13596 * termhooks.h (close_gpm): Declare.
13597 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13598 connection if Gpm_GetEvent fails.
13599
13600 * window.c (set_window_buffer): Always preserve current-buffer.
13601
136022008-09-12 Glenn Morris <rgm@gnu.org>
13603
13604 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13605
136062008-09-11 Glenn Morris <rgm@gnu.org>
13607
13608 * charset.c (charset-map-path): Doc fix.
13609
136102008-09-10 Kenichi Handa <handa@m17n.org>
13611
13612 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13613
13614 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13615 compose a grapheme cluster with the preceding base glyph.
13616
13617 * composite.c (composition_compute_stop_pos): Fix previous change.
13618 Reset cmp_it->id to -1 at first.
13619
136202008-09-10 Glenn Morris <rgm@gnu.org>
13621
13622 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13623
136242008-09-09 Chong Yidong <cyd@stupidchicken.com>
13625
13626 * keyboard.c (read_key_sequence): Reapply translation maps when
13627 switching keyboards.
13628
136292008-09-09 Kenichi Handa <handa@m17n.org>
13630
13631 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13632 characters.
13633
13634 * composite.c (FORWARD_CHAR): Fix calculation
13635 of (POSITION).pos_byte.
13636 (composition_compute_stop_pos): Limit the search of composition to
13637 at most 500 characters ahead. If we reach the limit or find a
13638 newline, set cmp_it->ch to -2 and return 0.
13639 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13640
136412008-09-08 Kenichi Handa <handa@m17n.org>
13642
13643 * indent.c (Fvertical_motion): Be sure to set
13644 it_overshoot_expected if it.cmp_it.id is non-negative.
13645
136462008-09-07 Andreas Schwab <schwab@suse.de>
13647
13648 * callproc.c (Fcall_process): Don't hold references to string data
13649 across garbage collection. Move initialisation of new_argv down
13650 to avoid compiler bug.
13651
136522008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13653
13654 * process.c (Fsystem_process_attributes): Doc fix.
13655
136562008-09-07 Chong Yidong <cyd@stupidchicken.com>
13657
13658 * callproc.c (Fcall_process): Canonicalize current directory name.
13659
13660 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13661 iterator advances to the next line if the current line ends in a
13662 continued tab.
13663
136642008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13665
13666 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13667 member to point to cmp_from.
13668
13669 * xdisp.c: Doc fix for references to gidx data member.
13670
136712008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13672
13673 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13674
136752008-09-07 Kenichi Handa <handa@m17n.org>
13676
13677 * composite.c (FORWARD_CHAR): Check STOP after
13678 incrementing (POSITION).pos.
13679
136802008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13681
13682 * process.c (Fsystem_process_attributes): Doc fix.
13683
136842008-09-06 Chong Yidong <cyd@stupidchicken.com>
13685
13686 * keyboard.c (Ftop_level): Doc fix.
13687
136882008-09-06 Eli Zaretskii <eliz@gnu.org>
13689
13690 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13691 minibuffer, don't let lower part of menu invade the echo area.
13692
13693 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13694 "char *q" to access menu text and advance through it. Revert the
13695 change that displayed ">" instead of ASCII character 0x10.
13696
136972008-09-05 Eli Zaretskii <eliz@gnu.org>
13698
13699 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13700 toggle boxes and radio buttons on MS-DOS as well.
13701
137022008-09-05 Kenichi Handa <handa@m17n.org>
13703
13704 * composite.c (autocmp_chars): Check lookback count.
13705 (composition_compute_stop_pos): Set cmp_it->lookback.
13706 (composition_reseat_it): Check lookback count.
13707 (struct position_record): New struct.
13708 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13709 (find_automatic_composition): New function.
13710 (composition_adjust_point): Use find_automatic_composition.
13711
13712 * dispextern.h (struct composition_it): New member lookback.
13713
137142008-09-02 Chong Yidong <cyd@stupidchicken.com>
13715
13716 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13717 if moving by a single line.
13718
137192008-09-02 Andreas Schwab <schwab@suse.de>
13720
13721 * xterm.c (x_delete_display): Fix merge error.
13722
13723 * fileio.c (Fexpand_file_name): Remove unused variables.
13724
137252008-09-02 Eli Zaretskii <eliz@gnu.org>
13726
13727 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13728 storage on all platforms, not just on DOS_NT.
13729
137302008-09-02 Jason Rumney <jasonr@gnu.org>
13731
b8ff72fa
SM
13732 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13733 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
13734
137352008-09-01 Chong Yidong <cyd@stupidchicken.com>
13736
13737 * xfaces.c (Finternal_set_alternative_font_family_alist)
13738 (Finternal_set_alternative_font_registry_alist): Properly copy
13739 entire alist structure.
13740
137412008-09-01 Kenichi Handa <handa@m17n.org>
13742
d66c0241 13743 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 13744 representative chars of the script is a vector.
d66c0241
JB
13745 (ftfont_list): Handle the case where the representative chars of
13746 the script is a vector.
aac0c6e3
MR
13747
13748 * character.c (syms_of_character): Docstring of
13749 script-representative-chars fixed.
13750
137512008-08-31 Eli Zaretskii <eliz@gnu.org>
13752
13753 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13754 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13755 the menu. Allocate larger buffer for `text', to account for
13756 possible ^C characters.
13757
137582008-08-31 Martin Rudalics <rudalics@gmx.at>
13759
13760 * xdisp.c (prepare_menu_bars): Don't call
13761 Vwindow_size_change_functions with arg Qt.
13762
137632008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13764
13765 * font.h (font_range):
13766 * fileio.c (report_file_error):
46e722a9
SM
13767 * composite.c (composition_update_it): Yet another int/Lisp_Object
13768 mixup (YAILOM).
aac0c6e3
MR
13769
137702008-08-30 Glenn Morris <rgm@gnu.org>
13771
13772 * data.c (Fmake_variable_frame_local): Doc fix.
13773
13774 * frame.c (Fmodify_frame_parameters): Doc fix.
13775
137762008-08-30 Eli Zaretskii <eliz@gnu.org>
13777
13778 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13779 needed by GetTokenInformation.
13780 (w32_system_process_attributes): Check return values of all system
13781 APIs.
13782
13783 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13784 only when the state changes.
13785 (IT_update_begin, IT_update_end): Add termscript trace.
13786
13787 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13788 clipboard is unavailable. Set dst to NULL if it doesn't point to
13789 malloc'ed data.
13790 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13791 passing random values to xfree.
13792
13793 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 13794 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
13795
137962008-08-29 Jason Rumney <jasonr@gnu.org>
13797
13798 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13799
138002008-08-29 Eli Zaretskii <eliz@gnu.org>
13801
13802 * composite.c (fill_gstring_body): Avoid compiler warnings.
13803
13804 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13805 LGLYPH_SET_CODE to avoid compiler warnings.
13806
2ae37cf0 13807 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
13808
13809 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13810
13811 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13812 LGLYPH_SET_CODE.
13813
138142008-08-29 Kenichi Handa <handa@m17n.org>
13815
13816 * fileio.c (report_file_error): Don't downcase the first character
13817 of errstring if it is still unibyte.
13818
138192008-08-29 Kenichi Handa <handa@m17n.org>
13820
13821 These changes are to re-implement the automatic composition so
13822 that it doesn't use text properties.
13823
13824 * Makefile.in (ftfont.o): Depend on composite.h.
13825 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13826
13827 * character.h (Vunicode_category_table): Extern it.
13828
13829 * character.c (Vunicode_category_table): New variable.
13830 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13831
13832 * chartab.c (optimize_sub_char_table): Perform more greedy
13833 optimization.
13834
b8ff72fa
SM
13835 * composite.h (enum composition_method):
13836 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
13837 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13838 (Vcomposition_function_table): Extern it.
13839 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13840 (composition_gstring_put_cache, composition_gstring_from_id)
13841 (composition_gstring_p, composition_gstring_width)
13842 (composition_compute_stop_pos, composition_reseat_it)
13843 (composition_update_it, composition_adjust_point): Extern them.
13844 (Fcomposition_get_gstring): EXFUN it.
13845
d66c0241 13846 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
13847 (Vcomposition_function_table)
13848 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
13849 (gstring_hash_table, gstring_work, gstring_work_headers):
13850 New variables.
aac0c6e3
MR
13851 (gstring_lookup_cache, composition_gstring_put_cache)
13852 (composition_gstring_from_id, composition_gstring_p)
13853 (composition_gstring_width, fill_gstring_header)
13854 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13855 (composition_reseat_it, composition_update_it)
b8ff72fa 13856 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
13857 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13858 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 13859 Defsubr composition_get_gstring.
aac0c6e3
MR
13860
13861 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13862 cmp_id.
13863 (struct glyph_string): Delete the member gidx. New members
13864 cmp_id, cmp_from, and cmp_to.
13865 (enum it_method): Delete GET_FROM_COMPOSITION.
13866 (struct composition_it): New struct.
13867 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13868 Delete c, len, cmp_id, cmp_len in u.comp.
13869
13870 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 13871 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 13872 (enum lglyph_indices): Likewise.
b8ff72fa 13873 (font_range): Adjust extern.
aac0c6e3
MR
13874 (font_fill_lglyph_metrics): Extern it.
13875
13876 * font.c (QCf): New variable.
13877 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13878 (font_prepare_composition): Delete this function.
13879 (font_range): Type and arguments changed.
13880 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13881 (font_fill_lglyph_metrics): New function.
b8ff72fa 13882 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 13883 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
13884 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13885 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
13886
13887 * fontset.h (font_for_char): Extern it.
13888
13889 * fontset.c (font_for_char): New function.
13890
13891 * ftfont.c: Include composite.h.
13892 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 13893 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
13894
13895 * indent.c: Include composite.h and dispextern.h.
13896 (check_composition): Delete this function.
13897 (scan_for_column): Handle composition by
13898 composition_compute_stop_pos, composition_reseat_it, and
13899 composition_update_it.
13900 (compute_motion): Likewise.
13901 (Fvertical_motion): Fix checking of composition.
13902
13903 * keyboard.c (adjust_point_for_property): Check composition by
13904 composition_adjust_point.
13905
b8ff72fa 13906 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
13907 struct glyph_string.
13908
b8ff72fa
SM
13909 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13910 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
13911 struct glyph.
13912 (produce_composite_glyph): Likewise.
13913
b8ff72fa
SM
13914 * w32term.c (x_draw_composite_glyph_string_foreground):
13915 Adjust for the change of struct glyph_string.
aac0c6e3
MR
13916 (x_draw_glyph_string): Likewise.
13917
13918 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13919 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13920
13921 * xdisp.c: Include font.h.
13922 (it_props): Delete the entry for Qauto_composed.
13923 (init_iterator): Initialize it->cmp_it.id to -1.
13924 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 13925 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
13926 (handle_auto_composed_prop): Delete it.
13927 (handle_composition_prop): Handle only static composition.
13928 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13929 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 13930 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
13931 (pop_it): Likewise.
13932 (get_next_element): Delete next_element_from_composition.
13933 (CHAR_COMPOSED_P): New macro.
13934 (get_next_display_element): For automatic composition, get a face
13935 from the font in the glyph-string.
13936 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 13937 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
13938 (next_element_from_string): Check if the character at the current
13939 position is composed by CHAR_COMPOSED_P.
13940 (next_element_from_buffer): Likewise.
d66c0241
JB
13941 (next_element_from_composition): Adjust for the change of struct it.
13942 Update it->cmp_it.
b8ff72fa
SM
13943 (dump_glyph): Adjust for the change of struct glyph.
13944 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
13945 it and struct glyph. Don't handle automatic composition here.
13946 (fill_gstring_glyph_string): New function.
13947 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 13948 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
13949 (BUILD_GSTRING_GLYPH_STRING): New macro.
13950 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13951 automatic composition.
b8ff72fa 13952 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 13953 struct glyph.
b8ff72fa 13954 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 13955
b8ff72fa 13956 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
13957 the change of struct glyph_string.
13958 (x_draw_glyph_string): Likewise.
13959
139602008-08-29 Glenn Morris <rgm@gnu.org>
13961
13962 * buffer.c (word-wrap): Doc fix.
13963 * xdisp.c (truncate-partial-width-windows): Doc fix.
13964 Increase default to 50.
13965
139662008-08-29 Chong Yidong <cyd@stupidchicken.com>
13967
13968 * xdisp.c (update_tool_bar_unwind): New function.
13969 (update_tool_bar): Temporarily set selected frame before building
13970 tool-bar items.
13971
139722008-08-28 Michael Albinus <michael.albinus@gmx.de>
13973
13974 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13975 snprintf, respectively.
13976 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13977
139782008-08-28 Chong Yidong <cyd@stupidchicken.com>
13979
13980 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13981 LDFLAGS to GNUstep CC invocation.
13982
139832008-08-27 Chong Yidong <cyd@stupidchicken.com>
13984
13985 * indent.c (Fvertical_motion): Revert last change. Handle the
13986 general case where we are moving forward, and PT spans multiple
13987 screen lines.
13988
13989 * eval.c (find_handler_clause): Temporarily increase
13990 max-lisp-eval-depth while printing the backtrace buffer, to
13991 guarantee that help-mode code can run.
13992
139932008-08-27 Eli Zaretskii <eliz@gnu.org>
13994
13995 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13996 colors under -rv.
13997 (IT_set_frame_parameters): Don't swap foreground and background
13998 colors if `(reverse . t)' is present in the frame properties.
13999 (internal_terminal_init): Call init_frame_faces only for the
14000 initial frame.
14001
140022008-08-27 Andreas Schwab <schwab@suse.de>
14003
14004 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
14005
140062008-08-27 Andreas Schwab <schwab@suse.de>
14007
14008 * search.c (search_buffer): Set char_base to zero only at the end.
14009
140102008-08-27 Kenichi Handa <handa@m17n.org>
14011
b8ff72fa 14012 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
14013
140142008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
14015
14016 * xterm.c (x_term_init): Temporarily hide the partially
14017 initialized terminal while calling vendor-specific-keysyms.
14018
140192008-08-26 Eli Zaretskii <eliz@gnu.org>
14020
14021 * msdos.c (internal_terminal_init): Most initializations done only
14022 once, especially initial_screen_colors[] and termscript open.
14023
140242008-08-26 Chong Yidong <cyd@stupidchicken.com>
14025
14026 * eval.c (Fcondition_case): Doc fix.
14027
14028 * widgetprv.h (EmacsFramePart): Change font member to the new font
14029 struct.
14030
14031 * widget.c: Include character.h and font.h for XSETFONT.
14032 (setup_frame_gcs): Compute X font id from font struct, just once.
14033
140342008-08-26 Eli Zaretskii <eliz@gnu.org>
14035
14036 * term.c (get_named_tty): Fix last change.
14037
140382008-08-26 Chong Yidong <cyd@stupidchicken.com>
14039
14040 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 14041 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
14042
140432008-08-25 Eli Zaretskii <eliz@gnu.org>
14044
14045 * frame.c (do_switch_frame): Mark previously displayed frame as
14046 obscured for FRAME_MSDOS_P frames as well.
14047
140482008-08-24 Eli Zaretskii <eliz@gnu.org>
14049
14050 * frame.c (make_terminal_frame): Initialize f->terminal,
14051 f->terminal->reference_count, and scroll bars on MS-DOS as well.
14052 Set the top frame to newly created frame.
14053 (Fmake_terminal_frame): Reuse the_only_display_info.
14054
14055 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
14056 estimating available memory.
14057
b97439ce 140582008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
14059
14060 * nsterm.m (ns_draw_window_cursor): Don't call
14061 NSDisableScreenUpdates and NSEnableScreenUpdates on
14062 non-NS_IMPL_COCOA systems.
14063
140642008-08-23 Andreas Schwab <schwab@suse.de>
14065
14066 * process.c (procfs_system_process_attributes): Fix use of
14067 uninitialized variables.
14068
140692008-08-23 Eli Zaretskii <eliz@gnu.org>
14070
14071 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
14072
14073 * dispnew.c (init_display): Remove MS-DOS specific conditions for
14074 calling tty-set-up-initial-frame-faces.
14075
b8ff72fa
SM
14076 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
14077 Allow MSDOS frames along with X frames.
aac0c6e3
MR
14078
14079 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
14080 addition to output_termcap.
14081
14082 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
14083
14084 * termchar.h (FRAME_TTY): Support output_msdos_raw.
14085 (struct tty_display_info) [MSDOS]: Add fields related to mouse
14086 highlight.
14087
14088 * process.c [!subprocesses]: Define QCname.
14089 (syms_of_process): Intern and staticpro it.
14090
14091 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
14092 Adjust for changes in encoding/decoding routines.
14093 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
14094 encode_coding and decode_coding.
14095
b8ff72fa 14096 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
14097
14098 * dosfns.c: Include frame.h before termhooks.h.
14099 (dos_cleanup): Use CURTTY ()->termscript instead of a global
14100 variable termscript.
14101
14102 * s/msdos.h (USER_FULL_NAME): Define.
14103 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
14104
14105 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
14106 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
14107 pw->pw_gecos.
14108
14109 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
14110 SELECTED_FRAME as additional (1st) argument.
14111 (tty_read_avail_input): Handle output_msdos_raw in
14112 addition to output_termcap.
14113
14114 * msdos.c: Include frame.h before termhooks.h.
14115 (mouse_on, mouse_off, mouse_moveto, mouse_init)
14116 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
14117 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
14118 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
14119 (IT_set_terminal_modes, IT_reset_terminal_modes)
14120 (IT_set_frame_parameters): Use tty->termscript instead of a global
14121 variable termscript.
14122 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
14123 global variable terminal_coding. Don't refer to
14124 Vnonascii_translation_table.
14125 (internal_terminal_init): Set Vwindow_system in current_kboard.
14126 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
14127 Announce date and time of session start, if termscript is open.
14128 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
14129 term.c:init_tty). Open termscript only of not already open.
14130 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
14131 here instead of dos_ttraw. Don't initialize display if this is an
14132 initial tty. Don't set FRAME_FONT.
14133 (Vwindow_system_version): Bump to 23.
14134 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
14135 is available, set up mouse_position_hook.
14136 (dos_ttraw, IT_set_terminal_modes): If called with initial
14137 terminal, do nothing.
14138 (IT_set_frame_parameters): Handle the Qtty_type frame
14139 parameter by calling internal_terminal_init.
14140 (dos_set_window_size, show_mouse_face)
14141 (clear_mouse_face, IT_note_mode_line_highlight)
14142 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
14143 (dos_rawgetc): Use tty_display_info instead of x_display_info.
14144 (initialize_msdos_display): New function.
14145 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
14146 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
14147 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
14148 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 14149 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
14150 (request_sigio, unrequest_sigio): Don't define, now defined on
14151 sysdep.c.
14152 (IT_write_glyphs): Rewrite to use encode_terminal_code.
14153
14154 * term.c [MSDOS]: Include msdos.h.
14155 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
14156 conditional to DOS_NT. Allow only one call to this function in a
14157 session. Don't allocate a new struct tty_display_info; instead,
14158 reuse the_only_display_info. Call get_tty_size to get screen
14159 dimensions. Call init_baud_rate to set bad_rate.
14160 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
14161 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 14162 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
14163 (get_tty_terminal, get_named_tty, Ftty_type)
14164 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
14165 output_termcap.
b8ff72fa
SM
14166 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
14167 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 14168 only when subprocesses are supported.
aac0c6e3
MR
14169
14170 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
14171 f->output_data.x.
14172 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
14173 terminal devices.
14174
5582fbc7 14175 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
14176 x_output.
14177 (FRAME_FONT): Use output_data.tty.
14178 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
14179 (struct x_display_info): Rename from display_info. Update all users in
14180 msdos.c.
aac0c6e3 14181 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 14182 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
14183 (dos_ttraw): Update prototype.
14184
14185 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
14186 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
14187
141882008-08-23 Jason Rumney <jasonr@gnu.org>
14189
14190 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
14191 (fn_TIFFSetDirectory): New library function used.
14192 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
14193 (tiff_load): Use :index to select among multiple images. Set count
14194 property when multiple images exist.
14195 (gif_format): Use :index, not :image.
14196
141972008-08-23 Chong Yidong <cyd@stupidchicken.com>
14198
14199 * xdisp.c (try_scrolling): Check INT_MAX instead of
14200 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
14201 to obtain INT_MAX.
14202
142032008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
14204
14205 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
14206
142072008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
14208
14209 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
14210 GNUstep library location.
14211
142122008-08-21 Chong Yidong <cyd@stupidchicken.com>
14213
14214 * xfaces.c (x_update_menu_appearance): Check validity of menu font
14215 before using it.
14216
14217 * puresize.h (BASE_PURESIZE): Increase to 1250000.
14218
142192008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14220
14221 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
14222 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
14223 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
14224 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
14225 (EmacsApp-cursor_blink_handler): Remove declaration.
14226 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
14227 match 01 Feb 2008 changes in xterm.c.
14228 (ns_read_socket): Add cast to avoid warning.
14229 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
14230 GNUstep.
14231
142322008-08-20 Chong Yidong <cyd@stupidchicken.com>
14233
14234 * xselect.c (x_get_foreign_selection): Return nil if desired
14235 selection could not be obtained, instead of signalling an error.
14236
142372008-08-20 David Reitter <david.reitter@gmail.com>
14238
14239 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14240 * nsterm.m: Remove ns-specific code for cursor blinking.
14241 (ns_draw_window_cursor): Clear cursor properly rather than
14242 redrawing the area. Respect width of bar cursors.
14243 These changes enable the use of generic blink-cursor-mode and
14244 generic cursor types in NS and support smooth cursor movements (do
14245 not blink off after command).
14246 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14247 Nextstep, too.
14248
142492008-08-19 Kenichi Handa <handa@m17n.org>
14250
14251 * font.c (Vfont_log_deferred): New variable.
14252 (font_add_log): Check Vfont_log_deferred.
14253 (font_deferred_log): New function.
14254
14255 * font.h (font_deferred_log): Extern it.
14256
14257 * fontset.c (reorder_font_vector): Use encoding charset of fonts
14258 for sorting.
14259 (face_for_char): Use deferred log.
14260
142612008-08-18 Kenichi Handa <handa@m17n.org>
14262
14263 * fontset.c (face_for_char): Add font log.
14264
14265 * font.c (font_add_log): Add the font properties :script, :lang,
14266 and :otf in the log.
14267
142682008-08-17 Chong Yidong <cyd@stupidchicken.com>
14269
14270 * xdisp.c: Remove dead code.
14271 (handle_invisible_prop, next_overlay_string): Defer call to
14272 setup_for_ellipsis.
14273 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
14274
142752008-08-15 Chong Yidong <cyd@stupidchicken.com>
14276
14277 * xfaces.c (lookup_derived_face): Properly handle possible zero
14278 return value of get_lface_attributes.
14279 (merge_faces): Don't tell lookup_derived_face to signal an error
14280 if face is not found.
14281
14282 * dired.c (Fdirectory_files): Doc fix.
14283
14284 * process.c (make_process): Initialize kill_without_query struct
14285 member.
14286
142872008-08-15 Eli Zaretskii <eliz@gnu.org>
14288
14289 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
14290 Alternative calculation of totphys for Visual Studio 6.
14291
14292 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
14293
14294 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
14295 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
14296 All users changed.
14297 (stat): Only root directory passed to GetDriveType. Allow RAM
14298 disk as well as local fixed disk when w32-get-true-file-attributes
14299 is set to `local'.
14300 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
14301 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
14302 (w32_cached_id, w32_add_to_cache): New functions.
14303 (get_name_and_id): Look account names in the cache before calling
14304 lookup_account_sid.
14305 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
14306 New initialization flags.
14307 (globals_of_w32): Initialize them to zero.
14308 (w32_system_process_attributes): Use w32_cached_id and
14309 w32_add_to_cache.
14310
143112008-08-14 Lawrence Mitchell <wence@gmx.li>
14312
14313 * lread.c (Fread_char, Fread_char_exclusive): If no character
14314 event is read before timeout is reached, return nil, rather than
14315 converting to a number.
14316
143172008-08-14 Chong Yidong <cyd@stupidchicken.com>
14318
14319 * fns.c (use_dialog_box): Doc fix.
14320
14321 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
14322 on OS X.
14323
143242008-08-13 Chong Yidong <cyd@stupidchicken.com>
14325
14326 * frame.c (Qns_parse_geometry): New var.
14327 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
14328
143292008-08-11 Chong Yidong <cyd@stupidchicken.com>
14330
14331 * xdisp.c (x_produce_glyphs): Handle the case when font has no
14332 space character in calculating tabs.
14333
143342008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
14335
14336 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14337
143382008-08-10 Glenn Morris <rgm@gnu.org>
14339
14340 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
14341 silence gcc "limited range of data type" warnings in some
14342 make_fixnum_or_float calls.
14343
143442008-08-09 Eli Zaretskii <eliz@gnu.org>
14345
14346 * w32.c (w32_system_process_attributes): If the process does not
14347 exist, return nil.
14348
14349 * w32.c: Include thelp32.h, psapi.h and coding.h.
14350 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
14351 declarations.
14352 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
14353 (Process32Next_Proc): New typedefs.
14354 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
14355 (g_b_init_process32_next, g_b_init_open_thread_token)
14356 (g_b_init_impersonate_self, g_b_init_revert_to_self)
14357 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14358 (g_b_init_get_process_working_set_size)
14359 (g_b_init_global_memory_status_ex): New static variables.
14360 (globals_of_w32): Initialize them.
14361 (create_toolhelp32_snapshot, process32_first, process32_next)
14362 (open_thread_token, impersonate_self, revert_to_self)
14363 (get_process_memory_info, get_process_working_set_size)
14364 (global_memory_status, global_memory_status_ex): New wrapper
14365 functions.
14366 (w32_list_system_processes, w32_system_process_attributes)
14367 (enable_privilege, restore_privilege, ltime, process_times):
14368 New functions.
14369 (convert_time_raw): New function.
14370 (convert_time): Remove conversion of FILETIME into time in 100
14371 nsec units, call convert_time_raw instead.
14372
14373 * process.h (w32_list_system_processes, w32_system_process_attributes):
14374 Add prototypes.
14375 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14376 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14377 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14378 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14379
14380 * process.c (Fsystem_process_attributes): Doc fix.
14381
143822008-08-08 Chong Yidong <cyd@stupidchicken.com>
14383
14384 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14385 a continued multi-char glyph; if so, advance to the actual glyph.
14386
143872008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14388
14389 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14390
14391 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14392 (.m.o): Use it.
14393 * config.in: Regenerate.
14394
143952008-08-07 Chong Yidong <cyd@stupidchicken.com>
14396
14397 * xdisp.c (redisplay_window): Revert last change.
14398 (try_window): Check bottom scroll margin too.
14399
144002008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14401
14402 * config.in: Regenerate.
14403
14404 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14405 -list-load-path-shadows'.
14406 (nsgui.h): Reduce number of things depending on it.
14407
144082008-08-06 Chong Yidong <cyd@stupidchicken.com>
14409
14410 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14411 instead of window-end which does the wrong thing at eob.
14412 (try_cursor_movement): Minor optimization.
14413 (redisplay_window): If scroll margin is defined, don't assume
14414 window doesn't need scrolling.
14415
144162008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14417
14418 * config.in: Regenerate.
14419
14420 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14421 (mostlyclean): Don't delete *.d under NS.
14422
14423 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14424
144252008-08-06 Kenichi Handa <handa@m17n.org>
14426
14427 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
14428
144292008-08-06 Andreas Schwab <schwab@suse.de>
14430
14431 * config.in: Regenerate.
14432
144332008-08-05 Chong Yidong <cyd@stupidchicken.com>
14434
14435 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
14436 forcing a window start.
14437
14438 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
14439 (auto_save_1): Update modtime when auto-save-list-file-name is on.
14440
144412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14442
14443 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
14444 argument.
14445
144462008-08-05 Juanma Barranquero <lekktu@gmail.com>
14447
14448 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
14449 <scroll-down-aggressively, before-change-functions>:
14450 <after-change-functions>: Reflow docstrings.
14451
144522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 14453 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
14454
14455 Dock menu customization, based on a patch by Ken Raeburn, plus some
14456 other fixes.
14457 * nsmenu.m (dockMenu): New variable.
14458 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14459
14460 * nsterm.h (dockMenu): Declare.
14461
14462 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14463 (ns_term_init): Initialize dockMenu.
14464 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14465 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14466 left.
14467
14468 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14469
144702008-08-04 Chong Yidong <cyd@stupidchicken.com>
14471
14472 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14473
14474 * config.in: Regenerate.
14475
144762008-08-04 Seiji Zenitani <zenitani@mac.com>
14477
14478 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14479
144802008-08-04 Chong Yidong <cyd@stupidchicken.com>
14481
14482 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14483
144842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14485
14486 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14487
14488 * keyboard.h: Comment an #endif.
14489
14490 * lisp.h (have_menus_p): Adjust comment.
14491
14492 * menu.c (find_and_return_menu_selection): Fix comparison with
14493 client_data.
14494
14495 * nsmenu.m (popup_activated_flag): New variable.
14496 (popup_activated): New function.
14497 (menu-or-popup-active-p): New exported lisp definition.
14498 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14499 when popup done.
14500 (ns_popup_dialog): Set popup_activated_flag.
14501
14502 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14503 version for GNUstep (handled by conditional typedef in nsterm.m).
14504 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14505 in rgb.txt).
14506
14507 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14508
14509 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14510
14511 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14512
14513 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14514 shortcircuit if popup_activated like GTK and X toolkit.
14515
14516 * m/inter386.h: Change DARWIN to DARWIN_OS.
14517
14518 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14519 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14520 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
14521 comment on NO_SOCK_SIGIO.
14522
145232008-08-03 Chong Yidong <cyd@stupidchicken.com>
14524
14525 * nsterm.m (windowDidResize): Remove stopModal call.
14526
145272008-08-03 Andreas Schwab <schwab@suse.de>
14528
14529 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14530 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14531
145322008-08-02 Chong Yidong <cyd@stupidchicken.com>
14533
14534 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14535 Don't use uninitialized pointer variable when using getrlimit.
14536
145372008-08-02 Jason Rumney <jasonr@gnu.org>
14538
14539 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14540
145412008-08-02 Eli Zaretskii <eliz@gnu.org>
14542
14543 * alloc.c (NSTATICS): Bump to 0x640.
14544
14545 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14546
14547 * lisp.h: Add prototype for directory_files_internal.
14548
14549 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14550 New functions.
14551 (syms_of_process): Defsubr them. Add initializations for various
14552 Q* symbols used in procfs_system_process_attributes.
14553 (procfs_list_system_processes, procfs_system_process_attributes)
14554 [HAVE_PROCFS]: New functions.
14555 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14556 (procfs_get_total_memory): New functions.
14557
145582008-08-01 Juanma Barranquero <lekktu@gmail.com>
14559
14560 * xfaces.c (Fx_load_color_file): Fix previous change;
14561 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14562
145632008-08-01 Michael Albinus <michael.albinus@gmx.de>
14564
14565 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14566
145672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14568
14569 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14570
145712008-08-01 Chong Yidong <cyd@stupidchicken.com>
14572
14573 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14574
14575 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14576 define NSApplicationDelegateReplySuccess.
14577 (EmacsView -converstationIdentifier): Use long instead of
14578 NSInteger for GNUstep, since it doesn't have NSInteger.
14579
14580 * xmenu.c: Revert last change.
14581
14582 * keyboard.h: Fix last change.
14583
145842008-08-01 Juanma Barranquero <lekktu@gmail.com>
14585
14586 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14587 on Windows.
14588
145892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14590
14591 Warning clearing and clean-up in NS port.
14592 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14593 Add prototypes.
14594 * nsgui.h (FACE_DEFAULT): Remove, unused.
14595 (XGCValues): Change colors to unsigned long.
14596 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14597 nsterm.m.
14598 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14599 (ns_list_fonts): Remove, unused.
14600 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14601 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14602 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14603 (nsfont_draw): Compare face colors to 0, not nil.
14604 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14605 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14606 (-addSubmenuWithTitle:): Use NSMenuItem class.
14607 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14608 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14609 (ns_clip_to_row): Make gc arg a BOOL.
14610 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14611 ns_clip_to_row() call.
14612 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14613 used). Cast FRAME_FONT assignments.
14614 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14615 (ns_string_to_lispmod): Change arg to const char.
14616 (ns_term_init): Use NSMenuItem class.
14617 (EmacsApp -openFile:): Move to different section of file.
14618 (EmacsApp -application:openFiles:): Don't return a value, call
14619 -replyToOpenOrPrint:.
14620 (EmacsView -keyDown:): Fix up cast.
14621 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14622 (EmacsView -menuDown:): Cast tag in call to
14623 find_and_call_menu_selection().
14624 (ns_list_fonts): Remove, unused.
14625 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14626 (ns_fontname_to_xlfd): Make static.
14627 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14628 Remove prototypes (now in keyboard.h).
14629 (next_menubar_widget_id): Remove, unused.
14630 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14631 Remove prototypes (now in keyboard.h).
14632 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14633
146342008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14635
14636 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14637 (floatfns.o): Depend on syssignal.h.
14638 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14639
14640 * systty.h: Fix previous change that removed BSD_TERMIOS.
14641 Add comments to #ifdefs.
14642
146432008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14644
14645 * w32fns.c (w32-load-color-file): Remove.
14646 (x-open-connection): Use renamed Fx_load_color_file.
14647 * xfaces.c (x-load-color-file): Add.
14648 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14649 Emacs.clr.
14650 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14651
146522008-07-31 Michael Albinus <michael.albinus@gmx.de>
14653
14654 * dbusbind.c (Fdbus_call_method_asynchronously)
14655 (Fdbus_method_error_internal): New defuns.
14656 (xd_read_message): Handle also reply messages.
14657 (Vdbus_registered_functions_table): Extend docstring.
14658
146592008-07-31 Juanma Barranquero <lekktu@gmail.com>
14660
14661 * keyboard.c (gobble_input): Fix previous change.
14662
146632008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14664
14665 * bitmaps/README:
14666 * xfns.c:
14667 * termcap.c:
14668 * term.c:
14669 * syswait.h:
14670 * systty.h:
14671 * systime.h:
14672 * syssignal.h:
14673 * sysdep.c:
14674 * process.h:
14675 * process.c:
14676 * print.c:
14677 * ndir.h:
14678 * lread.c:
14679 * keyboard.c:
14680 * getpagesize.h:
14681 * floatfns.c:
14682 * fileio.c:
14683 * emacs.c:
14684 * doc.c:
14685 * dispnew.c:
14686 * dired.c:
14687 * data.c:
14688 * callproc.c:
14689 * buffer.c:
14690 * README:
14691 * Makefile.in:
14692 * s/template.h:
14693 * s/msdos.h:
14694 * m/vax.h: Remove VMS support.
14695 * s/vms.h:
14696 * vlimit.h:
14697 * uaf.h:
14698 * temacs.opt:
14699 * param.h:
14700 * ioctl.h: Remove file.
14701
147022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14703
14704 * s/ms-w32.h (MULTI_KBOARD): Remove.
14705 * xterm.c:
14706 * xselect.c:
14707 * xfns.c:
14708 * window.c:
14709 * w32term.c:
14710 * w32fns.c:
14711 * terminal.c:
14712 * termhooks.h:
14713 * term.c:
14714 * sysdep.c:
14715 * keyboard.h:
14716 * keyboard.c:
14717 * frame.h:
14718 * frame.c:
14719 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14720 * config.in: Regenerate.
14721
147222008-07-30 Jason Rumney <jasonr@gnu.org>
14723
14724 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14725
14726 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14727 (w32font_open_internal): Get unicode version of textmetrics.
14728 Don't enable or disable glyph indices here.
14729 (w32font_open): Disable use of glyph indices.
14730
14731 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14732
147332008-07-30 Chong Yidong <cyd@stupidchicken.com>
14734
14735 * minibuf.c (Vread_buffer_function): Doc fix.
14736
147372008-07-30 John Paul Wallington <jpw@pobox.com>
14738
14739 * minibuf.c (read_buffer_completion_ignore_case): New var.
14740 (Fread_buffer): Use it.
14741
147422008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14743
14744 * systty.h (sensemode): Remove empty #if. Remove reference to
14745 BSD_TERMIOS, unused.
14746
14747 * sysdep.c: Remove reference to DGUX.
14748 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14749
14750 * config.in: Regenerate.
14751
147522008-07-30 Jason Rumney <jasonr@gnu.org>
14753
14754 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14755
147562008-07-29 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14759 is populated.
14760 (uniscribe_encode_char): Always use uniscribe.
14761 Avoid using context if cache is populated.
14762
147632008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14764
14765 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14766 open menu.
14767
14768 * gtkutil.c (menu_nav_ended): Remove.
14769 (create_menus): Remove signal connect for menu_nav_ended.
14770
147712008-07-28 Chong Yidong <cyd@stupidchicken.com>
14772
14773 * xdisp.c (redisplay_window): Check return value of
14774 compute_window_start_on_continuation_line before forcing a window
14775 start.
14776
147772008-07-28 Jason Rumney <jasonr@gnu.org>
14778
14779 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14780
14781 * w32term.c (w32_enable_unicode_output, cleartype_active):
14782 Remove obsolete display options.
14783 (x_draw_glyph_string_background): Don't use old cleartype_active
14784 workaround.
14785 (w32_initialize): Remove cleartype_active initialization.
14786 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14787
147882008-07-28 Andreas Schwab <schwab@suse.de>
14789
14790 * lisp.h (init_weak_hash_tables, syms_of_font)
14791 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14792 (remove_hash_entry): Don't declare.
14793 * eval.c (maybe_call_debugger): Make static and move before use.
14794 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14795 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14796 * xterm.h (x_set_frame_alpha): Declare.
14797
147982008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14799
14800 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14801 (create_menus): Connect selection-done to menu_nav_ended.
14802
148032008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14804
14805 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14806 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14807 parameter with read of 'alpha' one.
14808 (Qns_frame_parameter): Remove.
5582fbc7 14809 * nsselect.m (selection-coding-system)
aac0c6e3
MR
14810 (next-selection-coding-system, Vselection_coding_system)
14811 (Vnext_selection_coding_system): Drop.
14812
148132008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14814
14815 * nsfns.m (do-applescript, do_applescript): Rename to
14816 ns-do-applescript, ns_do_applescript, and move within file.
14817
148182008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14819
14820 Remove support for Mac Carbon.
14821 * mactoolbox.c:
14822 * macterm.h:
14823 * macterm.c:
14824 * macselect.c:
14825 * macmenu.c:
14826 * macgui.h:
14827 * macfns.c:
14828 * mac.c: Remove file.
14829 * s/darwin.h:
14830 * m/intel386.h:
14831 * xfaces.c:
14832 * xdisp.c:
14833 * window.c:
14834 * tparam.c:
14835 * termhooks.h:
14836 * termcap.c:
14837 * term.c:
14838 * syssignal.h:
14839 * sysselect.h:
14840 * sysdep.c:
14841 * process.c:
14842 * lread.c:
14843 * lisp.h:
14844 * keyboard.c:
14845 * image.c:
14846 * fringe.c:
14847 * frame.h:
14848 * frame.c:
14849 * fontset.c:
14850 * font.h:
14851 * font.c:
14852 * fns.c:
14853 * fileio.c:
14854 * emacs.c:
14855 * dispnew.c:
14856 * dispextern.h:
14857 * config.in:
14858 * atimer.c:
2ae37cf0 14859 * Makefile.in: Remove code for Carbon.
aac0c6e3 14860
f0131492 148612008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
14862
14863 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14864
148652008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14866
14867 * macterm.h (kCGBitmapByteOrder32Host): New define for
14868 non-universal SDKs.
14869
14870 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14871 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14872
14873 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14874 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14875
148762008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14877
14878 * w32inevt.c: Include dispextern.h.
14879
148802008-07-26 Andreas Schwab <schwab@suse.de>
14881
14882 * print.c (print_object): Fix off-by-one in last change.
14883
148842008-07-25 Juanma Barranquero <lekktu@gmail.com>
14885
14886 * term.c (syms_of_term): Don't initialize default_orig_pair,
14887 default_set_foreground and default_set_background on Windows.
14888
148892008-07-25 Jason Rumney <jasonr@gnu.org>
14890
14891 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14892 ScriptItemize. Clean up return value checking. Remove unused
14893 variables.
14894 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14895 shaping engine.
14896
14897 * w32font.c (w32font_has_char): Handle the case where we can't
14898 determine the script for a character.
14899
149002008-07-25 Chong Yidong <cyd@stupidchicken.com>
14901
14902 * term.c (syms_of_term): Initialize default_orig_pair,
14903 default_set_foreground, and default_set_background.
14904
14905 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14906 clash (bug#86).
14907 (getloadavg): Callers changed.
14908
14909 * image.c (svg_load_image): Fix last change.
14910 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14911 image size is valid. Use g_object_unref instead of deprecated
14912 rsvg_handle_free to free rsvg handle.
14913 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14914
149152008-07-25 Jason Rumney <jasonr@gnu.org>
14916
14917 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14918 surrogates before looking up glyph index.
14919 (w32font_text_extents): Encode as surrogates if falling back to
14920 functions that need UTF-16 wide chars.
14921
14922 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14923 BMP as surrogates before looking up glyph index.
14924
149252008-07-25 Chong Yidong <cyd@stupidchicken.com>
14926
14927 * image.c (svg_load_image): Check for failure in return value of
14928 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14929
149302008-07-25 Jason Rumney <jasonr@gnu.org>
14931
14932 * w32font.c (Fx_select_font): Reverse sense of second arg.
14933
149342008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14935
14936 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14937 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14938
14939 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14940 (PURESIZE): Use it.
14941
149422008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14943
14944 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14945 * m/alpha.h (TEXT_END):
14946 * m/ibmrs6000.h (TEXT_END):
14947 * m/macppc.h (TEXT_END):
14948 * s/darwin.h (TEXT_END):
14949 * s/msdos.h (TEXT_END): Remove, unused.
14950 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14951 * s/cygwin.h: Remove comment.
14952
14953 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14954 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14955 * m/intel386.h (DOT_GLOBAL_START):
14956 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14957 (USG): Remove, file not used on USG platforms.
14958
14959 * Makefile.in (HAVE_X11): Remove empty #else.
14960
149612008-07-24 Andreas Schwab <schwab@suse.de>
14962
14963 * fileio.c (Finsert_file_contents): Properly adjust undo list
14964 after format conversion.
14965
149662008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14967
14968 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14969 (menu_nav_ended): Remove.
14970 (create_menus): Remove signal connect for menu_nav_ended.
14971 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14972 create_menus.
14973 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14974
149752008-07-23 Jason Rumney <jasonr@gnu.org>
14976
14977 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14978 with opened font.
14979 (w32font_open): Set font type to gdi.
14980
14981 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14982
149832008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14984
14985 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14986 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14987 defines it.
14988 * unexec.c (ADDR_CORRECT): Define unconditionally.
14989
14990 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14991
14992 * unexec.c: Remove code depending on !COFF and USG, the file is
14993 not used for such systems.
14994
14995 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14996 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14997 (LD_SWITCH_SYSTEM_1): Remove, update users.
14998
14999 * s/darwin.h (DATA_END):
15000 * m/intel386.h (DATA_END):
15001 * m/ibmrs6000.h (DATA_END):
15002 * m/alpha.h (DATA_END): Remove, unused.
15003
15004 * config.in: Regenerate.
15005 * s/ms-w32.h (subprocesses): Define unconditionally.
15006 * s/template.h (subprocesses): Update comment.
15007 * s/vms.h (subprocesses):
15008 * s/usg5-4.h (subprocesses):
15009 * s/hpux10-20.h (subprocesses):
15010 * s/gnu-linux.h (subprocesses):
15011 * s/cygwin.h (subprocesses):
15012 * s/bsd-common.h (subprocesses):
15013 * s/aix4-2.h (subprocesses):
15014 * s/darwin.h (subprocesses): Do not define, defined by default now.
15015
15016 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
15017 Remove all references.
15018 (temacs): Add GNUstep specific ld flags.
15019
15020 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
15021 similarly to what X does.
15022
150232008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15024
15025 * nsfns.m (x-list-fonts): Remove.
15026 (syms_of_nsfns): Drop the x-list-fonts declaration.
15027 * nsterm.m: Get rid of remaining "//" comments.
15028
150292008-07-22 Chong Yidong <cyd@stupidchicken.com>
15030
15031 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
15032
15033 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
15034 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
15035 (Fns_own_selection_internal, Fx_disown_selection_internal)
15036 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
15037
15038 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
15039 ... */' style of docstrings. Doc fixes.
15040
150412008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15042
15043 * terminfo.c (UP, BC, PC): Undo previous change.
15044
15045 * nsfns.m: Rename ns prefixed functions/variables to the
15046 corresponding x versions. Update references.
15047
150482008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
15049
15050 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
15051
150522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
15053
15054 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
15055 Remove forwarding functions.
15056 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
15057 non-static.
15058 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
15059 non-static.
15060 (ns_frame_parm_handlers): Use the new names.
15061 (syms_of_nsfns): Move to the end of file.
15062
15063 * nsterm.m (syms_of_nsterm): Move to the end of file.
15064
15065 * dispnew.c (init_display): Remove code for X10.
15066
150672008-07-22 Jason Rumney <jasonr@gnu.org>
15068
15069 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
15070 bare drive.
15071
150722008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15073
15074 * nsterm.m (syms_of_nsterm): Remove debugging println.
15075
150762008-07-22 David Reitter <david.reitter@gmail.com>
15077
15078 * nsfns.m (do_applescript, F_do_applescript): NS version of the
15079 Carbon implementation of the same functionality: execute arbitrary
15080 AppleScript code.
15081
150822008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15083
15084 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
15085 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
15086 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15087 (Fx_display_mm_height, Fx_display_mm_width)
15088 (Fx_display_backing_store, Fx_display_visual_class)
15089 (Fx_display_save_under, Fx_open_connection)
15090 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
15091 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
15092 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15093 (Fx_display_pixel_width, Fx_display_pixel_height)
15094 (Fx_display_usable_bounds, Fx_display_planes)
15095 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
15096 ... */' style of docstrings.
15097
150982008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
15101 on this platform.
15102 (mips):
15103 * m/iris4d.h (mips): Do not define.
15104 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
15105
15106 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
15107
15108 * image.c:
15109 * nsfns.m:
15110 * nsselect.m:
15111 * nsterm.h:
15112 * nsterm.m: Rename ns prefixed functions/variables to the
15113 corresponding x versions. Update references.
15114
15115 * m/ibms390x.h (NO_REMAP): Do not undefine.
15116
15117 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
15118
151192008-07-21 Chong Yidong <cyd@stupidchicken.com>
15120
15121 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
15122 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
15123 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
15124 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
15125 (Fns_display_mm_height, Fns_display_mm_width)
15126 (Fns_display_backing_store, Fns_display_visual_class)
15127 (Fns_display_save_under, Fns_open_connection)
15128 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
15129 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
15130 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15131 (Fns_display_pixel_width, Fns_display_pixel_height)
15132 (Fns_display_usable_bounds, Fx_display_planes)
15133 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
15134
151352008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
15136
15137 * print.c (print_object): Check print_depth before searching for
15138 circularities.
15139
151402008-07-21 Michael Albinus <michael.albinus@gmx.de>
15141
15142 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
15143 only sprintf.
15144
151452008-07-21 Kenichi Handa <handa@m17n.org>
15146
15147 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
15148
151492008-07-20 Andreas Schwab <schwab@suse.de>
15150
15151 * syntax.c (find_start_pos, find_start_value)
15152 (find_start_value_byte, find_start_begv, find_defun_start)
15153 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
15154
151552008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15156
15157 * s/sol2-3.h: Insert contents of s/sol2.h.
15158 (LD_SWITCH_SYSTEM): Remove redundant definition.
15159 * s/sol2.h: Remove, unused.
15160
151612008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15162
15163 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
15164
151652008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
15166
15167 * Makefile.in (ns_appdir): Fix typo in find command.
15168
151692008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
15170
15171 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
15172
15173 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
15174 added not supported anymore.
15175
15176 * s/usg5-4-2.h (LIBS_SYSTEM):
15177 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
15178
15179 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15180 * s/lynxos.h (GETPGRP_NO_ARG):
15181 * s/hpux10-20.h (NO_SIOCTL_H):
15182 * s/gnu.h (GETPGRP_NO_ARG):
15183 * s/gnu-linux.h (NO_SIOCTL_H):
15184 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15185 * s/cygwin.h (GETPGRP_NO_ARG):
15186 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
15187 (C_DEBUG_SWITCH): Remove duplicate definition.
15188
15189 * m/ibms390.h: Remove boilerplate comments.
15190
15191 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
15192
15193 * process.c (HAVE_SERIAL): Consolidate ifdefs.
15194 (wait_reading_process_output): Remove code for SunOS, platform not
15195 supported anymore. Use SOLARIS2 instead of sun.
15196
151972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15198
15199 * font.c (font_open_by_name): Under NS, default lface height to zero.
15200 (font_open_for_lface): Under NS, set size based on frame fontsize.
15201 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
15202 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
15203
152042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15205
15206 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
15207 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
15208 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
15209 YES/NO.
15210 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
15211 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
15212 * Makefile.in (clean): Clear out build destination dir.
15213
152142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15215
15216 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
15217 xterm, xselect.
15218 * lisp.h: Remove declaration of hash_remove.
15219 * nsgui.h: Remove redefinitions of hash_remove.
15220 * fns.c (hash_remove): Rename to hash_remove_from_table.
15221
152222008-07-19 Seiji Zenitani <zenitani@mac.com>
15223
15224 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
15225 strdup() the family UTF8String before modifying it.
15226
152272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15228
15229 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
15230 NS_FACE_BACKGROUND with 0 instead of nil.
15231 * nsfont.m (nsfont_draw): Same.
15232
152332008-07-19 Chong Yidong <cyd@stupidchicken.com>
15234
15235 * nsfns.m (ns_set_background_color): Fix crash.
15236
152372008-07-18 Chong Yidong <cyd@stupidchicken.com>
15238
15239 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15240
152412008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
15242
15243 * puresize.h (BASE_PURESIZE): Increase to 1240000.
15244
152452008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15246
15247 * gtkutil.c: Include <config.h> instead of "config.h".
15248
15249 * lisp.h (Foverlay_buffer): Add EXFUN.
15250
15251 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15252 child process to complete child_setup. Undo 2005-09-21 change.
15253
15254 * s/darwin.h: Mention setsid after vfork.
15255
152562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15257
15258 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
15259 Depend on macgui.h.
15260
15261 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
15262 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
15263
15264 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
15265 and f19.
15266 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
15267
15268 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
15269 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15270 Remove enumerators.
15271
15272 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
15273 Check if FACE_FROM_ID returns NULL.
15274
152752008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
15276
15277 * w32inevt.c (change_frame_size): Remove extern declaration.
15278 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
15279 change_frame_size.
15280
152812008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15282
15283 * getloadavg.c: Revert last change (2008-07-15).
15284
152852008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15286
15287 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 15288 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
15289 from configure.
15290
152912008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
15292
15293 * s/sol2.h:
15294 * s/sol2-4.h: Reorganize conditionals.
15295
15296 * ecrt0.c: Remove code depending on m68000, not used anymore.
15297
15298 * fns.c (hash_remove): Make static.
15299 * lisp.h (hash_remove): Don't prototype.
15300
15301 * m/ibmrs6000.h:
15302 * m/ibms390x.h:
15303 * m/macppc.h: Remove boilerplate comments.
15304
15305 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
15306 Solaris, which does not need them.
15307
15308 * m/vax.h: Remove comments about unsupported systems.
15309
15310 * s/darwin.h: Reorganize ifdefs.
15311
153122008-07-17 Andreas Schwab <schwab@suse.de>
15313
15314 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
15315
153162008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 Use SDATA. Follow coding convention of placing operators at
15319 beginning of next line rather than end of previous line, and placing
15320 spaces around infix operators.
15321
15322 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
15323 in case it was defined already.
15324 USE @GNUSTEP_MAKEFILES@ rather than envvars.
15325 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
15326 ns_default.
15327 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
15328 Lisp_Objects.
15329 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
15330 (ns_defined_color, ns_color_to_lisp): Declare.
15331 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
15332 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
15333 it's accepted even with USE_LISP_UNION_TYPE.
15334 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
15335 (update_frame_tool_bar): Remove apparently obsolete tests for
15336 non-integerness of f->tool_bar_lines.
15337 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
15338 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
15339 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
15340 (nsfont_open): Don't confuse NULL for Qnil.
15341 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
15342 * menu.h (find_and_call_menu_selection):
15343 * menu.c (find_and_call_menu_selection): Use just int for vector size.
15344 (find_and_return_menu_selection): Always return something.
15345 * frame.h: Include dispextern.h for Display_Info.
15346 (display_x_get_resource): Declare.
15347
153482008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
15349
15350 * syntax.c: Remove stdio.h include accidentally introduced in
15351 Emacs.app commit.
15352 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
15353 NS_IMPL_COCOA.
15354 * keyboard.c (handle_async_input, input_available_signal): Remove
15355 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
15356
153572008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15358
15359 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15360 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15361 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15362 Use SDATA.
15363
15364 * keymap.c: Remove all NS-specific code.
15365 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15366 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15367 where_is_preferred_modifier, return a different value depending on how
15368 preferred is the binding.
15369 (where_is_internal): Adjust accordingly.
15370 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15371 Adjust to new preferred_sequence_p.
15372 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15373 * keyboard.c (parse_solitary_modifier): Not static any more.
15374 * keyboard.h (parse_solitary_modifier): Declare.
15375
153762008-07-16 Andreas Schwab <schwab@suse.de>
15377
15378 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15379 of easymenu.
15380
153812008-07-16 Chong Yidong <cyd@stupidchicken.com>
15382
15383 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15384 that we don't move off the line.
15385
153862008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15387
15388 * keyboard.c (Qsuper): Remove.
15389 (parse_menu_item): Don't call where_is_internal specially for NS.
15390
153912008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15392
15393 * s/gnu-linux.h: Remove boilerplate comments.
15394
15395 * m/alpha.h (__ELF__): Consolidate conditions.
15396
15397 * m/m68k.h (linux): Use GNU_LINUX instead.
15398 Remove boilerplate comments.
15399
15400 * m/intel386.h: Undo refactoring from previous change.
15401 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15402 too, remove dead code.
15403 (linux): Use GNU_LINUX instead.
15404
154052008-07-16 Jason Rumney <jasonr@gnu.org>
15406
15407 * w32gui.h: Repeat 26 June changes lost by last change.
15408
154092008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15410
15411 * systty.h: Remove code for Aix on 386, unsupported platform.
15412
15413 * s/ms-w32.h: Remove boilerplate comments.
15414 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15415
15416 * s/gnu-linux.h (TERM): Remove support.
15417 (HAVE_SYSVIPC): Remove, unused.
15418 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15419 for this system.
15420
15421 * process.c: Remove support for IRIS, unused.
15422 Remove support for TERM, not relevant anymore.
15423
15424 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
15425 used with the definition.
15426
15427 * s/aix4-2.h (static): Do not undef.
15428
15429 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
15430 only used on Aix.
15431 (HAVE_SYSVIPC): Remove, unused.
15432
15433 * m/hp800.h (CANNOT_DUMP): Do not undef.
15434
15435 * m/alpha.h: Fix comment.
15436
15437 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
15438 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
15439 used by this configuration.
15440 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
15441 * unexec.c: Remove code depending on HPUX and
15442 USG_SHARED_LIBRARIES, not used with this file. Remove code
15443 depending on IRIS, unused. Remove if 0-ed code.
15444
15445 * s/template.h: Remove comments about static.
15446
15447 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
15448 Remove if 0-ed code.
15449 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
15450 were the same as the default.
15451 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
15452 Remove boilerplate comments.
15453 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
15454 (HAVE_SYSVIPC): Remove, unused.
15455 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15456
15457 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15458 Remove boilerplate comments.
15459 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15460 Remove boilerplate comments.
15461 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15462 Remove boilerplate comments.
15463 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15464
15465 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15466 USG systems which do not use DATA_SEG_BITS.
15467 Refactor code. Remove boilerplate comments.
15468
15469 * m/ibms390.h:
15470 * m/m68k.h:
15471 * s/bsd-common.h:
15472 * s/cygwin.h:
15473 * s/darwin.h:
15474 * s/freebsd.h:
15475 * s/gnu.h:
15476 * s/msdos.h: Remove boilerplate comments.
15477
15478 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 15479 do not use this file.
aac0c6e3
MR
15480 (IRIS_4D): Remove, unused.
15481
15482 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 15483 do not use this file.
aac0c6e3
MR
15484 (SIGN_EXTEND_CHAR):
15485 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15486 * unexmips.c: Remove file, unused.
15487
15488 * editfns.c (Fuser_full_name): Replace the only use of
15489 USER_FULL_NAME with its value.
15490 * config.in: Regenerate.
15491
154922008-07-16 David Reitter <david.reitter@gmail.com>
15493
15494 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15495 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15496
154972008-07-16 Glenn Morris <rgm@gnu.org>
15498
15499 * emacs.c (system-type): Doc fix.
15500
155012008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15504 If the cache doesn't work, let's fix it, rather than work around it.
15505
155062008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15507
15508 * Makefile.in: Correct additions for nsfont.o in last commit.
15509 * nsfont.m: New file (forgot last commit).
15510
155112008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15512
15513 * callproc.c (set_initial_environment): Initialize
15514 Vprocess_environment under CANNOT_DUMP (fixes crash when
15515 batch-compiling for bootstrap).
15516
155172008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 15518 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 15519
c4cc8b9a
JB
15520 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15521 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
15522
155232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15524
15525 Changes and additions for NeXTstep windowing system (Cocoa and
15526 GNUstep) support.
15527
15528 * Makefile.in:
15529 * config.in: Support defines and build commands for NS port.
15530 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15531 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15532 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15533 windowing.
15534 (struct face): Add synth_ital field.
15535 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15536 (init_display): Initialize Vinitial_window_system to "ns" when so
15537 compiled.
15538 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15539 (display_arg): Use under NS.
15540 (main): Under NS, allocate autorelease pool and handle command line
15541 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15542 (standard_args): Add NS-specific args.
15543 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15544 * font.c (DEFAULT_ENCODING): New variable.
15545 (font_find_for_lface): Use it.
15546 (syms_of_font): Load syms_of_nsfont under NS.
15547 * font.h: Declare nsfont_driver when compiled under NS.
15548 * fontset.c: When compiling under NS, include nsterm.h.
15549 (fontset_from_font): Autoconstruct fontset under NS.
15550 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15551 symbol, document and use it.
15552 (do_switch_frame): When for_deletion under Cocoa, add
15553 Fraise_frame(Qnil).
15554 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15555 (x_get_arg): Allow "yes" and "no" as boolean values.
15556 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15557 Qright under Cocoa.
15558 (focus-follows-mouse): Default to 0 under NS.
15559 * frame.h (enum output_method): Add output_ns.
15560 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15561 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15562 (FRAME_WINDOW_P): NS-specific definition.
15563 * fringe.c (max_used_fringe_bitmap): Make public.
15564 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15565 (getloadavg): Use NeXT code under descendant OS's.
15566 * image.c (includes and header section, x_create_bitmap_from_data)
15567 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15568 (image_background_transparent, x_clear_image_1)
15569 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15570 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15571 (x_to_xcolors, x_from_xcolors, x_disable_image)
15572 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15573 other GUIs, including XPM support using code originally written for
15574 Carbon GUI.
15575 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15576 using NS API.
15577 (image_ascent): Use font metrics macros instead of direct struct field
15578 access.
15579 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15580 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15581 Also, handle NS as GTK for menu bar purposes.
15582 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15583 toolkit where they differ.
15584 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15585 use cachelist, still needed under NS.
15586 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15587 (struct widget_value): Define it here for menu.c.
15588 * keymap.c (includes): Include modifier internals.
15589 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15590 NS.
15591 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15592 support for preferring sequences using certain modifiers, specified by
15593 the FIRSTONLY argument.
15594 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15595 under NS GNUstep implementation.
15596 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15597 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15598 * menu.c: Include nsterm.h under NS.
15599 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15600 (free_menubar_widget_tree_value, update_submenu_strings)
15601 (find_and_call_menu_selection): Treat NS as X and NT.
15602 (find_and_return_menu_selection): New function, used for popup menus.
15603 * nsgui.h:
15604 * nsterm.h:
15605 * nsfns.m:
15606 * nsimage.m:
15607 * nsmenu.m:
15608 * nsselect.m:
15609 * nsterm.m: New files.
15610 * process.c (wait_reading_process_output): Under NS, call ns_select()
15611 instead of plain select().
15612 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15613 beginning of buffer.
15614 * sysselect.h (init_process): Rename when compiling under Cocoa to
15615 avoid name conflict.
15616 * termhooks.h (display_info): Add ns_display_info to union.
15617 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15618 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15619 COCOA environment.
15620 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15621 unexec() signature. (Note, this will dump, but the resulting file
15622 crashes; unexosx is used instead; keeping around for reference and
15623 possible aid in getting dump working under GNUstep.)
15624 * w32gui.h (button_type, widget_value): Remove definitions (now in
15625 keyboard.h).
15626 * window.c: Include nsterm.h when compiling under NS.
15627 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15628 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15629 other GUI windowing systems.
15630 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15631 GTK.
15632 (x_consider_frame_title): Under NS, set icon type and frame
15633 modified-state indicator; use ns_set_name_as_filename() when using
15634 formatted title.
15635 (update_window_cursor): Make public when compiling under NS.
15636 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15637 (hourglass_atimer, Vhourglass_delay
15638 * xfaces.c (header section, init_frame_faces, clear_font_table)
15639 (defined_color, unload_color, x_face_list_fonts)
15640 (prepare_face_for_display): Add NS support parallel to other GUIs.
15641 Emulate GCs like other non-X GUIs.
15642 (split_font_name): Don't lowercase font name under NS.
15643 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15644 under NS.
15645 * s/darwin.h: Add support for compilation under NS.
15646
156472008-07-15 Jason Rumney <jasonr@gnu.org>
15648
15649 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15650 (w32_show_hourglass): Rename from show_hourglass.
15651 (w32_hide_hourglass): Rename from hide_hourglass.
15652 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15653 (Vhourglass_delay): Declare extern.
15654 (hourglass_started): Remove.
15655
15656 * xdisp.c (Vhourglass_delay): Remove static.
15657 (hourglass_started, start_hourglass, cancel_hourglass):
15658 Don't include these versions on WINDOWSNT.
15659
156602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15661
15662 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15663 variables (formerly in xfns.c).
15664 (show_hourglass, hide_hourglass): New prototypes (same).
15665 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15666 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15667 in xfns.c).
15668 (syms_of_xdisp): Declare/initialize display-hourglass,
15669 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15670 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15671 formerly in xfns.c.
15672 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15673 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15674 (start_hourglass, cancel_hourglass): Remove.
15675 (show_hourglass, hide_hourglass): Remove prototypes and static
15676 modifiers.
15677 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15678 hourglass_atimer, hourglass_shown_p declaration/initialization.
15679 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15680 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15681 (start_hourglass, cancel_hourglass): Remove.
15682 (show_hourglass, hide_hourglass): Remove prototypes and static
15683 modifiers.
15684 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15685 hourglass_atimer, hourglass_shown_p declaration/initialization.
15686 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15687 (DEFAULT_HOURGLASS_DELAY): Remove.
15688 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15689 hourglass_shown_p declaration/initialization.
15690
156912008-07-14 Jason Rumney <jasonr@gnu.org>
15692
15693 * w32fns.c (w32_get_arg): Remove wrapper function.
15694 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15695 directly.
15696 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15697
156982008-07-14 Kenichi Handa <handa@m17n.org>
15699
15700 * xfont.c (xfont_open): Add workaround for X's bug.
15701
157022008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15703
15704 * fontset.c: Include <stdio.h> unconditionally.
15705
157062008-07-13 Michael Albinus <michael.albinus@gmx.de>
15707
15708 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15709 for filtering.
15710
157112008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15712
15713 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15714
15715 * m/macppc.h:
15716 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15717
c4cc8b9a 15718 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
15719 (SPECIAL_EMACS_INT):
15720 * m/ia64.h (SPECIAL_EMACS_INT):
15721 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15722 * s/gnu.h (NLIST_STRUCT):
15723 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15724 * s/gnu-linux.h (LINUX):
15725 * s/msdos.h (HAVE_FACES):
15726 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15727
15728 * systty.h:
15729 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15730 anymore.
15731
157322008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15733
15734 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15735 always defined as int.
15736
15737 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15738 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15739 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15740 * s/freebsd.h (HAVE_WAIT_HEADER):
15741 * s/bsd-common.h (HAVE_UNION_WAIT):
15742 * s/aix4-2.h (HAVE_WAIT_HEADER):
15743 * m/mips.h (HAVE_UNION_WAIT):
15744 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15745 (COFF, static): Do not define, they are undefined later in the file.
15746
15747 * process.c (update_status): Don't use a union.
15748 (status_convert):
15749 (sigchld_handler): Use int instead of WAITTYPE.
15750
157512008-07-12 Chong Yidong <cyd@stupidchicken.com>
15752
15753 * indent.c (Fvertical_motion): Restore hscroll before moving to
15754 goal column.
15755
157562008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15757
15758 * lisp.h: Remove left over code.
15759
157602008-07-11 Andreas Schwab <schwab@suse.de>
15761
15762 * lisp.h: Fix logic in last change.
15763
15764 * menu.h: New file.
15765 * menu.c: Include it.
15766 * xmenu.c: Likewise.
15767 * Makefile.in: Update dependencies.
15768
157692008-07-11 Kenichi Handa <handa@m17n.org>
15770
15771 * fontset.c (fontset_from_font): Cancel the previous change.
15772
157732008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15774
15775 * lisp.h:
15776 * w32heap.c:
15777 * emacs.c:
15778 * alloc.c: Replace all references of NO_UNION_TYPE with
15779 USE_LISP_UNION_TYPE.
15780
15781 * m/xtensa.h (NO_UNION_TYPE):
15782 * m/vax.h (NO_UNION_TYPE):
15783 * m/template.h (NO_UNION_TYPE):
15784 * m/sparc.h (NO_UNION_TYPE):
15785 * m/mips.h (NO_UNION_TYPE):
15786 * m/macppc.h (NO_UNION_TYPE):
15787 * m/m68k.h (NO_UNION_TYPE):
15788 * m/iris4d.h (NO_UNION_TYPE):
15789 * m/intel386.h (NO_UNION_TYPE):
15790 * m/ibms390x.h (NO_UNION_TYPE):
15791 * m/ibms390.h (NO_UNION_TYPE):
15792 * m/ibmrs6000.h (NO_UNION_TYPE):
15793 * m/ia64.h (NO_UNION_TYPE):
15794 * m/hp800.h (NO_UNION_TYPE):
15795 * m/arm.h (NO_UNION_TYPE):
15796 * m/amdx86-64.h (NO_UNION_TYPE):
15797 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15798 defining it the same.
15799
158002008-07-10 Chong Yidong <cyd@stupidchicken.com>
15801
15802 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15803
158042008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15805
15806 * fileio.c:
50426a04 15807 * sysdep.c:
aac0c6e3
MR
15808 * systty.h:
15809 * m/ibmrs6000.h:
15810 * m/iris4d.h:
15811 * s/aix4-2.h:
15812 * s/freebsd.h:
15813 * s/gnu-linux.h:
15814 * s/hpux10-20.h:
15815 * s/hpux11.h:
15816 * s/netbsd.h:
15817 * s/sol2-3.h:
15818 * s/sol2-4.h:
15819 * s/sol2.h:
15820 * s/usg5-4.h:
15821 * s/vms.h: Remove references to unused variables.
15822
158232008-07-10 Andreas Schwab <schwab@suse.de>
15824
15825 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15826 pattern before matching the generic family.
15827
158282008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15829
15830 * unexec.c:
15831 * s/vms.h:
15832 * s/usg5-4-2.h:
15833 * s/sol2-5.h:
15834 * s/freebsd.h:
15835 * s/darwin.h: Remove dead code.
15836
15837 * m/template.h:
15838 * m/sparc.h:
15839 * m/mips.h:
15840 * m/m68k.h:
15841 * m/iris4d.h:
15842 * m/intel386.h:
15843 * m/ibms390x.h:
15844 * m/ibms390.h:
15845 * m/ia64.h:
15846 * m/hp800.h:
15847 * m/arm.h:
15848 * m/amdx86-64.h: Remove dead code and references to unused
15849 and compiler defined symbols.
15850
15851 * unexmips.c:
15852 * unexelf.c: Remove references to desupported systems.
15853
15854 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15855
15856 * m/powermac.h: Remove boilerplate comments.
15857 (NO_REMAP): Remove unused definition.
15858
15859 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15860 define them.
15861
158622008-07-10 Kenichi Handa <handa@m17n.org>
15863
15864 * xfont.c (xfont_open): Log the reason of failure.
15865
158662008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15867
15868 * fontset.c (fontset_get_font_group):
15869 * font.c (font_check_otf): Specify argument types.
15870
158712008-07-09 Kenichi Handa <handa@m17n.org>
15872
15873 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15874 non-ASCII char is found.
15875
15876 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15877 (reorder_font_vector): Change the arg preferred_family to font.
15878 Prefer the spec matching with font.
15879 (fontset_get_font_group): New function.
15880 (fontset_find_font): Change the format of an element of a realized
15881 fontset. Use fontset_get_font_group.
15882 (fontset_font): Try the current fontset, the default fontset, the
15883 fallbacks of the current fontset, and the fallbacks of the default
15884 fontset in this order.
15885 (face_for_char): Delete the shortcut to use the current font.
15886 (fontset_from_font): Don't set fonts for Latin in the fontset.
15887
15888 * font.h (font_make_object, font_match_p): Adjust prototypes.
15889
15890 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15891
15892 * font.c (font_make_object): New arg entity and pixelsize.
15893 (font_check_otf_features, font_check_otf): New functions.
15894 (font_match_p): Check :lang, :script, and :otf properties.
15895
15896 * xfont.c (xfont_open): Adjust it for the change of
15897 font_make_object.
15898 (xfont_text_extents): Fix initial setting of metrics.
15899
15900 * ftfont.c (struct ftfont_info): New member index, delete member
15901 fc_charset_idx. Make the member order compatible with struct
15902 xftfont_info.
15903 (fc_charset_table): Change charset names to registry names.
15904 (ftfont_pattern_entity): Delete the args registry and
15905 fc_charset_idx. Change the value of :font-entity property
15906 to (FONTNAME . INDEX). Always set :registry property to
15907 `iso10646-1'.
15908 (struct ftfont_cache_data): New struct.
15909 (ftfont_lookup_cache): New arg for_face.
15910 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15911 (ftfont_driver): Set the member otf_capability.
15912 (ftfont_get_charset): Adjust it for the change of
15913 fc_charset_table.
15914 (OTF_TAG_SYM): New macro.
15915 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15916 for the change of fc_charset_table.
15917 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15918 ftfont_pattern_entity. Add FC_INDEX to objset.
15919 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15920 and ftfont_pattern_entity.
15921 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15922 font_make_object, struct ftfont_info.
15923 (ftfont_has_char): Use ftfont_get_fc_charset.
15924 (ftfont_otf_features, ftfont_otf_capability): New functions.
15925 (ftfont_shape): Use ftfont_get_otf.
15926 (ftfont_text_extents): Fix initial setting of metrics.
15927
15928 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15929 member order compatible with struct ftfont_info.
15930 (xftfont_open): Add FC_CHARSET to the pattern. Set
15931 xftfont_info->ft_size. Don't unlock the face. Check BDF
15932 properties if appropriate.
15933 (xftfont_close): Unlock the face.
15934 (xftfont_anchor_point, xftfont_shape): Deleted.
15935 (syms_of_xftfont): Don't set members anchor_point and shape of
15936 xftfont_driver.
15937
15938 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15939 font_make_object.
15940
15941 * w32font.c (w32font_open): Adjust it for the change of
15942 font_make_object.
15943 (w32font_open_internal): Don't set properties of font_object here.
15944
159452008-07-08 Chong Yidong <cyd@stupidchicken.com>
15946
15947 * macfns.c (x_create_tip_frame):
15948 * w32fns.c (x_create_tip_frame):
15949 * xfns.c (x_create_tip_frame): Pass parameter argument to
15950 face-set-after-frame-default.
15951
15952 * xfaces.c (Finternal_merge_in_global_face): Save merged
15953 attributes for the default face back into the face vector.
15954
159552008-07-08 Andreas Schwab <schwab@suse.de>
15956
15957 * fontset.h: Declare fontset_from_font. Don't declare
15958 new_fontset_from_font and fontset_from_font_name.
15959 * xterm.c: Include "fontset.h".
15960 * Makefile.in (xterm.o): Update dependencies.
15961
159622008-07-08 Glenn Morris <rgm@gnu.org>
15963
15964 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15965 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15966
159672008-07-07 Chong Yidong <cyd@stupidchicken.com>
15968
15969 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15970 (x_set_frame_parameters): Don't bind it.
15971
159722008-07-07 Juanma Barranquero <lekktu@gmail.com>
15973
15974 * w32fns.c (map_w32_filename): Declare extern.
15975
159762008-07-07 Jason Rumney <jasonr@gnu.org>
15977
15978 * w32term.c (WS_EX_LAYERED): Define if not already.
15979
159802008-07-06 Chong Yidong <cyd@stupidchicken.com>
15981
15982 * xfaces.c (set_font_frame_param): Don't try to set the font
15983 parameter if it is still unspecified in the lface.
15984
159852008-07-05 Chong Yidong <cyd@stupidchicken.com>
15986
15987 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15988 face if it didn't already exist.
15989
15990 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15991
159922008-07-05 Andreas Schwab <schwab@suse.de>
15993
15994 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15995
159962008-07-05 Chong Yidong <cyd@stupidchicken.com>
15997
15998 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15999 word-wrapping.
16000 (IT_DISPLAYING_WHITESPACE): New macro.
16001 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
16002 when word-wrapping. Simplify word-wrapping logic. Use correct
16003 pixel positions when saving copies of the iterator.
16004 (display_line): Use proper wrap point if the last character on a
16005 line was preceded by whitespace.
16006
160072008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
16008
16009 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
16010
160112008-07-04 Kenichi Handa <handa@m17n.org>
16012
16013 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
16014
16015 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
16016
160172008-07-02 Jason Rumney <jasonr@gnu.org>
16018
16019 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 16020 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
16021
16022 * xdisp.c (next_element_from_display_vector): Move assignment out
16023 of if statement.
16024
160252008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
16026
16027 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
16028
16029 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
16030 (syms_of_fileio): Initialize and export them.
16031 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
16032
16033 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
16034 (Fsystem_move_file_to_trash): New function.
16035 (syms_of_w32fns): Export it to lisp.
16036
160372008-07-01 Jason Rumney <jasonr@gnu.org>
16038
16039 * w32font.c (w32font_text_extents): Don't count overhang as part
16040 of width.
16041
160422008-06-30 Miles Bader <miles@gnu.org>
16043
16044 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
16045 Add `avoid_cursor_p' field.
16046
16047 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
16048 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
16049 (append_glyph, append_composite_glyph, produce_image_glyph)
16050 (append_stretch_glyph): Initialize avoid_cursor_p.
16051 (get_it_property): Rename from `get_line_height_property'.
16052 (x_produce_glyphs): Use get_it_property.
16053 (handle_line_prefix, push_display_prop): New functions.
16054 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
16055 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
16056 New variables.
16057 (syms_of_xdisp): Initialize them.
16058
160592008-06-30 Kenichi Handa <handa@m17n.org>
16060
16061 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
16062 XftDefaultSubstitute (they are called in XftFontMatch).
16063 (xftfont_open): Fix args to ftfont_font_format.
16064
16065 * ftfont.c (fc_charset_table): New member lang.
16066 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 16067 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
16068 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
16069 (ftfont_open): Fix args to ftfont_font_format.
16070 (ftfont_font_format): New arg filename.
16071
160722008-06-30 Chong Yidong <cyd@stupidchicken.com>
16073
16074 * xfaces.c (Finternal_merge_in_global_face): If default face was
16075 modified, realize it again. Update the font face attribute.
16076
160772008-06-29 Jason Rumney <jasonr@gnu.org>
16078
16079 * w32term.c (x_set_frame_alpha): Fix logic.
16080
160812008-06-29 Kenichi Handa <handa@m17n.org>
16082
16083 * fontset.c (Finternal_char_font): Return font-object instead of
16084 font-name.
16085
16086 * composite.c (get_composition_id): Fix the width calculation for TAB.
16087
160882008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
16089
16090 * indent.c (Fvertical_motion): Properly handle float column arg.
16091
160922008-06-28 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
16095 (pfnSetLayeredWindowAttributes): New function pointer.
16096 (w32_initialize): Initialize it when supported.
16097 (x_set_frame_alpha): New function.
16098
16099 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
16100 (w32_frame_parm_handlers): Set alpha handler.
16101
16102 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
16103
161042008-06-27 Jason Rumney <jasonr@gnu.org>
16105
16106 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
16107 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
16108 (w32_to_x_charset, x_to_w32_charset)
16109 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16110 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16111 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16112 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16113 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16114 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16115 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
16116 (Qw32_charset_unicode): Remove.
16117 (syms_of_w32fns): Update for above changes.
16118
16119 * w32font.c (w32_to_x_charset, x_to_w32_charset)
16120 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16121 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16122 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16123 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16124 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16125 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16126 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
16127 (syms_of_w32font): Update for above changes.
16128
161292008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
16130
16131 * s/usg5-4.h: Fix previous change: keep the correct branch of a
16132 removed #if.
16133 (USG_SHARED_LIBRARIES): Remove duplicate definition.
16134
161352008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 16136 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
16137
16138 * makefile.w32-in (LOCAL_FLAGS):
16139 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
16140
16141 * sysdep.c (_spawnlp, _getpid):
16142 Declare with explicit _cdecl instead of _CRTAPI1.
16143
16144 * editfns.c (Fget_internal_run_time):
16145 Check for WINDOWSNT with #ifdef, not #if.
16146
161472008-06-26 Jason Rumney <jasonr@gnu.org>
16148
16149 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
16150
16151 * w32term.c (x_draw_glyph_string_foreground)
16152 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
16153 Use FONT_HANDLE macro.
16154 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
16155
16156 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16157 (uniscribe_encode_char): Use FONT_HANDLE macro.
16158
16159 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
16160 (w32font_text_extents): Use precast w32_font.
16161 (w32font_close): Free cached metrics.
16162 (w32font_open_internal): Allocate space for name on stack.
16163
161642008-06-26 Chong Yidong <cyd@stupidchicken.com>
16165
16166 * xdisp.c (extend_face_to_end_of_line): Fix last change.
16167
161682008-06-26 Jason Rumney <jasonr@gnu.org>
16169
16170 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
16171 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
16172
161732008-06-26 Juanma Barranquero <lekktu@gmail.com>
16174
16175 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
16176
161772008-06-26 Jason Rumney <jasonr@gnu.org>
16178
16179 * w32bdf.c, w32bdf.h: Remove obsolete files.
16180
16181 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
16182
16183 * w32gui.h: Don't include w32bdf.h.
16184 (XCharStruct, enum w32_char_font_type, W32FontStruct):
16185 Remove obsolete font support.
16186
16187 * w32font.h (struct w32font_info): Remove compat_w32_font.
16188 Add hfont member.
16189 (FONT_COMPAT): Remove obsolete macro.
16190
16191 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
16192 (w32font_encode_char, w32font_text_extents): Use new hfont member.
16193 (w32font_open_internal): Remove compat code. Set new hfont member.
16194 (Fx_select_font): Use new hfont member.
16195
16196 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16197 (uniscribe_encode_char): Use new hfont member.
16198
16199 * w32term.c (x_draw_glyph_string_foreground)
16200 (x_draw_composite_glyph_string_foreground): Use new hfont member.
16201 (x_draw_glyph_string): Use metrics in w32font_info.
16202
162032008-06-26 Kenichi Handa <handa@m17n.org>
16204
16205 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
16206
162072008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
16208
16209 * unexnext.c:
16210 * m/ews4800.h:
16211 * m/hp9000s300.h:
16212 * m/ibm370aix.h:
16213 * m/mips-siemens.h:
16214 * m/ncr386.h:
16215 * m/next.h:
16216 * m/pmax.h:
16217 * m/powerpcle.h:
16218 * m/tandem-s2.h:
16219 * s/386bsd.h:
16220 * s/bsd386.h:
16221 * s/bsd4-1.h:
16222 * s/bsd4-2.h:
16223 * s/bsdos2-1.h:
16224 * s/bsdos2.h:
16225 * s/bsdos3.h:
16226 * s/bsdos4.h:
16227 * s/nextstep.h:
16228 * s/ultrix4-3.h:
16229 * s/usg5-0.h:
16230 * s/usg5-2-2.h:
16231 * s/usg5-2.h:
16232 * s/usg5-4-3.h:
16233 * s/ux4800.h:
16234 * s/uxpds.h:
16235 * s/uxpv.h: Remove support for obsolete systems.
16236 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 16237 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
16238 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16239 Remove, insert contents in s/aix4-2.h.
16240 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16241 * s/bsd4-3.h: Rename to ...
16242 * s/bsd-common.h: ... this.
16243 * data.c:
16244 * doc.c:
16245 * ecrt0.c:
16246 * emacs.c:
16247 * fileio.c:
16248 * floatfns.c:
16249 * keyboard.c:
16250 * mem-limits.h:
16251 * print.c:
16252 * process.c:
16253 * sysdep.c:
16254 * syssignal.h:
16255 * systty.h:
16256 * syswait.h:
16257 * term.c:
16258 * unexec.c:
16259 * unexelf.c:
16260 * unexhp9k800.c:
16261 * m/hp800.h:
16262 * m/ibmrs6000.h:
16263 * m/mips.h:
16264 * m/vax.h:
16265 * s/darwin.h:
16266 * s/freebsd.h:
16267 * s/gnu.h:
16268 * s/ms-w32.h:
16269 * s/msdos.h:
16270 * s/netbsd.h:
16271 * s/template.h: Remove references to obsolete variables.
16272
16273 * Makefile.in: Add dependencies for all unexec files.
16274 (admindir): Remove unused variable.
16275 (UNEXEC_SRC): Remove references.
16276
162772008-06-25 Chong Yidong <cyd@stupidchicken.com>
16278
16279 * xfns.c (x_default_font_parameter): If Xft is available, first
16280 try Monospace-12 for the default font.
16281
162822008-06-25 Jason Rumney <jasonr@gnu.org>
16283
16284 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
16285
162862008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
16289
16290 * buffer.c (syms_of_buffer): Remove default-word-wrap.
16291
162922008-06-25 Juanma Barranquero <lekktu@gmail.com>
16293
16294 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
16295 <scroll-conservatively>: Fix typo in docstring.
16296
16297 * xselect.c (Fx_send_client_event): Doc fix.
16298
162992008-06-25 Kenichi Handa <handa@m17n.org>
16300
16301 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
16302
16303 * font.c (font_parse_fcname): Remove unused variables.
16304 (font_sort_entites): Delete the arg SPEC. Caller changed.
16305 Fix for the case of ! best_only.
16306 (font_delete_unmatched): Check DPI and AVGWIDTH too.
16307
16308 * lisp.h (Fstring_to_unibyte): EXFUN it.
16309
16310 * character.h (str_to_unibyte): Extern it.
16311
16312 * character.c (str_to_unibyte): New function.
16313
16314 * fns.c (Fstring_to_unibyte): New function.
16315 (syms_of_fns): Defsubr it.
16316
163172008-06-24 Kenichi Handa <handa@m17n.org>
16318
16319 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
16320 DPI too.
16321 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
16322
163232008-06-24 Andreas Schwab <schwab@suse.de>
16324
16325 * Makefile.in (${lispsource}loaddefs.el): Rename from
16326 ../lisp/loaddefs.el.
16327 (bootstrap-clean): Do what distclean does but don't remove
16328 Makefile.
16329 (distclean): Depend on bootstrap-clean and remove Makefile.
16330
163312008-06-24 Chong Yidong <cyd@stupidchicken.com>
16332
16333 * buffer.h (struct buffer): New member word_wrap.
16334
16335 * buffer.c (syms_of_buffer): New variables default-word-wrap and
16336 word-wrap.
16337 (init_buffer_once): Initialize them.
16338
16339 * dispextern.h (struct it): Replace bool truncate_lines_p with a
16340 line_wrap enum possessing three possible values.
16341
16342 * termopts.h: Replace truncate_partial_width_windows with
16343 Vtruncate_partial_width_windows.
16344
16345 * dispnew.c (direct_output_for_insert): Avoid direct output when
16346 inserting a space with word wrap on.
16347
16348 * indent.c (compute_motion): Obey integer values of
16349 truncate-partial-width-windows.
16350
16351 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
16352 replacing truncate_partial_width_windows.
16353 (init_iterator): If Vtruncate_partial_width_windows is an integer,
16354 truncate only if the window width is below that integer.
16355 (start_display, resize_mini_window, produce_stretch_glyph)
16356 (display_string, move_it_in_display_line_to): Use line_wrap.
16357 (back_to_previous_visible_line_start, reseat_1): Reset
16358 string_from_display_prop_p.
16359 (display_line): Extend default face to end of line when wrapping.
16360
163612008-06-24 Kim F. Storm <storm@cua.dk>
16362
16363 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16364 to wrap continued lines at word boundaries.
16365
163662008-06-24 Jason Rumney <jasonr@gnu.org>
16367
16368 * font.c (Ffont_face_attributes): Multiply pixel size before point
16369 conversion to avoid multiplying rounding error.
16370
163712008-06-23 Jason Rumney <jasonr@gnu.org>
16372
16373 * w32term.c (x_draw_glyph_string_background)
16374 (x_draw_glyph_string): Remove old bdf font code.
16375
16376 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16377
163782008-06-22 Kenichi Handa <handa@m17n.org>
16379
16380 * font.c (font_find_for_lface): Try the adstyle specified in
16381 the property of LFACE_FONT of LFACE (if any).
16382
163832008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16384 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16385
16386 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16387
163882008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16389
16390 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16391 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16392 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16393 (witness-emacs): Remove.
16394 (lisp, shortlisp): Move loaddefs.el earlier.
16395 (mostlyclean): Forget about witness-emacs.
16396
163972008-06-22 Glenn Morris <rgm@gnu.org>
16398
16399 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16400 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16401
164022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16403
16404 * Makefile.in (PRECOMP): Remove.
16405 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16406 (witness-emacs): Run `compile-first'.
16407 (.el.elc): Use the new compile-onefile target.
16408
164092008-06-21 Kenichi Handa <handa@m17n.org>
16410
16411 * xftfont.c (xftfont_open): Handle QCembolden only when
16412 FC_EMBOLDEN is defined.
16413
164142008-06-21 Andreas Schwab <schwab@suse.de>
16415
16416 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16417 (.el.elc): Likewise.
16418
164192008-06-21 Miles Bader <miles@gnu.org>
16420
16421 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16422 build dir, not the lisp source dir.
16423
164242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16425
16426 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
16427 (bootstrapclean): Remove.
16428 (.el.elc): New rule.
16429 (PRECOMP): New var.
16430 (../lisp/subdirs.el): Remove.
16431 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
16432 (witness-emacs): New target.
16433 (mostlyclean): Remove witness-emacs as well.
16434 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
16435 Add witness-emacs dependency.
16436
164372008-06-20 Chong Yidong <cyd@stupidchicken.com>
16438
16439 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
16440 defined by the font.
16441
164422008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16443
16444 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
16445 (bootstrap-clean): New target that keeps TAGS around.
16446 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
16447 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
16448
164492008-06-20 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
16452 Remove obsolete font code.
16453
16454 * w32font.c (font_matches_spec): Use csb bitfield from font signature
16455 to determine language support.
16456
164572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16458
16459 * sysdep.c (cfsetspeed): New fun extracted from the code.
16460 (cfmakeraw): Move before first use.
16461
164622008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16463
16464 * sysdep.c (cfmakeraw): Provide fallback implementation.
16465 (serial_configure): Provide fallback implementation of cfsetspeed.
16466
164672008-06-20 Kenichi Handa <handa@m17n.org>
16468
16469 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16470 the pattern.
16471
16472 * fontset.c (fontset_from_font): Copy font_spec before changing
16473 the elements.
16474
16475 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16476
164772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16478
16479 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16480 for explicit `font' parameters.
16481
16482 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16483
164842008-06-19 Kenichi Handa <handa@m17n.org>
16485
16486 * frame.c: Include <ctype.h>.
16487 (x_set_font_backend): Allow spacing characters in the X resource
16488 for FontBackend.
16489
164902008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16491
16492 * w32fns.c, xfns.c (Qfont_param): New var.
16493 (syms_of_w32fns): Initialize it.
16494 (x_default_font_parameter): Record explicit `font' into
16495 `font-parameter'.
16496
164972008-06-18 Kenichi Handa <handa@m17n.org>
16498
16499 * font.c (font_parse_xlfd): Fix previous change.
16500 (font_parse_fcname): Don't use :fc-unknown-spec.
16501 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16502 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16503 (font_add_log): Prepend the driver name to the resulting fonts.
16504
16505 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16506 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16507 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16508
16509 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16510 (QCembolden): New variables.
16511 (syms_of_xftfont): DEFSYM them.
16512 (xftfont_open): Call XftFontMatch. Don't trust the result of
16513 XftTextExtents8 if the pixel_size is less than 5.
16514
165152008-06-18 Andreas Schwab <schwab@suse.de>
16516
16517 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16518 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16519
165202008-06-18 Jason Rumney <jasonr@gnu.org>
16521
16522 * w32font.c (w32font_list, w32font_match): Add logging.
16523
16524 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16525
165262008-06-17 Chong Yidong <cyd@stupidchicken.com>
16527
16528 * font.c (font_parse_fcname): Store divider characters for
16529 unknown-spec list. For known key symbols, intern using correct
16530 symbol name.
16531
165322008-06-17 Kenichi Handa <handa@m17n.org>
16533
16534 * xfaces.c (realize_default_face): If the frame is not on window
16535 system, set the fontset of face to nil.
16536
165372008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16538
16539 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16540
165412008-06-16 Juanma Barranquero <lekktu@gmail.com>
16542
16543 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16544 (build_font_name_from_vector): Delete externs.
16545
16546 * xfaces.c (struct font_name): Don't declare.
16547
165482008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16549
16550 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16551
165522008-06-16 Chong Yidong <cyd@stupidchicken.com>
16553
16554 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16555
165562008-06-16 Juanma Barranquero <lekktu@gmail.com>
16557
16558 * font.c (Ffont_spec): Fix usage in docstring.
16559 (Ffont_face_attributes): Doc fix.
16560
165612008-06-16 Andreas Schwab <schwab@suse.de>
16562
16563 * font.c (Ffont_face_attributes): Fix definition.
16564
165652008-06-16 Jason Rumney <jasonr@gnu.org>
16566
16567 * font.h (font_style_symbolic_from_value): Remove.
16568
16569 * font.c (font_style_symbolic_from_value): Remove.
16570 (font_style_symbolic): Revert to pre 2008-06-13 version.
16571
16572 * w32font.c (w32_to_fc_weight): New function.
16573 (w32font_full_name, logfont_to_fcname): Use it.
16574
165752008-06-16 Kenichi Handa <handa@m17n.org>
16576
16577 * font.c (font_check_object): Delete it.
16578 (font_clear_cache): Check if a font-object is alive.
16579 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16580 font-object to nil.
16581 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16582 (font_at): Don't call font_check_object.
16583 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16584
165852008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16586
16587 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16588
165892008-06-16 Chong Yidong <cyd@stupidchicken.com>
16590
16591 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16592
165932008-06-15 Chong Yidong <cyd@stupidchicken.com>
16594
16595 * font.c (font_parse_fcname): Only one decimal point.
16596 (font_unparse_fcname): Handle data in family and foundry indices
16597 as symbols, not strings.
16598 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16599
16600 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16601
16602 * font.h (font_unparse_gtkname): Add prototype.
16603
166042008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16605
16606 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16607
166082008-06-15 Andreas Schwab <schwab@suse.de>
16609
16610 * font.c (font_update_drivers): Fix crash when no drivers match.
16611
166122008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16613
16614 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16615 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16616
166172008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16618
16619 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16620
166212008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16622
16623 * process.c (Fserial_process_configure, Fprocess_send_eof):
16624 Use EQ to compare Lisp_Objects.
16625
166262008-06-13 Jason Rumney <jasonr@gnu.org>
16627
16628 * w32fns.c (Fw32_select_font): Remove old font API function.
16629
16630 * w32font.c (logfont_to_fcname): New function.
16631 (Fx_select_font): New font dialog function compatible with
16632 GTK/fontconfig version.
16633
16634 * font.c (font_style_symbolic_from_value): New function.
16635 (font_style_symbolic): Use it.
16636
16637 * font.h (font_style_symbolic_from_value): Declare new function.
16638
166392008-06-13 Juanma Barranquero <lekktu@gmail.com>
16640
16641 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16642 <font-width-table>: Fix typos in docstrings.
16643
166442008-06-13 Daniel Engeler <engeler@gmail.com>
16645
16646 These changes add serial port access.
16647 * process.c: Add HAVE_SERIAL.
16648 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16649 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16650 (list_processes_1, select_wrapper, Fstop_process)
16651 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16652 (status_notify): Modify to handle serial processes.
16653 [HAVE_SERIAL] (Fserial_process_configure)
16654 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16655 New functions.
16656 * process.h (struct Lisp_Process): Add `type'.
16657 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16658 New functions.
16659 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16660 serial ports.
b71ac3dd 16661 (serial_open, serial_configure): New functions.
aac0c6e3
MR
16662 * w32.h: Add FILE_SERIAL.
16663 (struct _child_process): Add ovl_read, ovl_write.
16664
166652008-06-13 Kenichi Handa <handa@m17n.org>
16666
16667 * dispextern.h (enum lface_attribute_index): New member
16668 LFACE_FOUNDRY_INDEX.
16669
16670 * font.c (font_score): Delete arg alternate_families. Check only
16671 weight, slant, width, and size. Ignore the difference of alias
16672 style symbols.
16673 (font_sort_entites): Adjust for the above change. Reflect the
16674 order of font-driver to scores.
16675 (font_list_entities): Don't check alternate_familes here.
16676 (font_clear_prop): Handle foundry.
16677 (font_update_lface): Don't parse "foundry-family" form here.
16678 Handle FONT_FOUNDRY_INDEX.
16679 (font_find_for_lface): Likewise. Handle alternate families here.
16680 If registry is nil, try iso8859-1 and ascii-0.
16681 (font_open_for_lface): Pay attention to size in ENTITY.
16682 (font_open_by_name): Simplify by calling font_load_for_lface.
16683 (free_font_driver_list): Delete it.
16684 (font_update_drivers): Preserve the order of backends.
16685 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16686 of font_score and font_sort_entites.
16687 (font_update_sort_order): Likewise.
16688
16689 * xfaces.c (LFACE_FOUNDRY): New macro.
16690 (check_lface_attrs): Check foundry.
16691 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16692 (merge_face_vectors): Check foundry.
16693 (merge_face_ref): Likewise.
16694 (Finternal_set_lisp_face_attribute): Likewise.
16695 (x_update_menu_appearance): Likewise.
16696 (Finternal_get_lisp_face_attribute): Likewise.
16697 (lface_hash): Likewise.
16698 (lface_same_font_attributes_p): Likewise.
16699 (x_supports_face_attributes_p): Likewise.
16700 (tty_supports_face_attributes_p): Likewise.
16701 (Finternal_set_alternative_font_family_alist): Intern strings.
16702 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16703 (realize_default_face): Set LFACE_FOUNDRY (lface).
16704
16705 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16706 font-driver at first.
16707
16708 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16709
167102008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16711
16712 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16713
167142008-06-12 Jim Meyering <meyering@redhat.com>
16715
16716 Make unexec_free handle NULL the same way free does.
16717 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16718
167192008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16722 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16723 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16724 (WEAK_ALIAS): Simplify.
16725 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16726 when searching a unibyte buffer.
16727
167282008-06-12 Chong Yidong <cyd@stupidchicken.com>
16729
16730 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16731
167322008-06-12 Juanma Barranquero <lekktu@gmail.com>
16733
16734 * w32font.c: Include ctype.h.
16735
167362008-06-11 Jason Rumney <jasonr@gnu.org>
16737
16738 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16739 misreported as space.
16740 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16741 as aliases for registry iso10646-1.
16742
167432008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16744
16745 * buffer.c (clone_per_buffer_values): Skip `name'.
16746
167472008-06-11 Chong Yidong <cyd@stupidchicken.com>
16748
16749 * font.c (font_parse_fcname): Fix last change; accept decimal
16750 points in font size.
16751
167522008-06-10 Jason Rumney <jasonr@gnu.org>
16753
16754 * w32uniscribe.c (add_opentype_font_name_to_list):
16755 Skip non unicode fonts.
16756
167572008-06-10 Chong Yidong <cyd@stupidchicken.com>
16758
16759 * xfns.c (Fx_font_dialog): New function.
16760
16761 * gtkutil.c (xg_dialog_response_cb): Rename from
16762 xg_file_response_callback.
16763 (pop_down_dialog): Rename from pop_down_file_dialog.
16764 (xg_get_file_name): Callers changed.
16765 (xg_get_font_name): New function.
16766
16767 * gtkutil.h (xg_get_font_name): Insert prototype.
16768
167692008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16770
16771 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16772 x_underline_minimum_display_offset.
16773 (syms_of_xdisp): Declare it here rather than in xterm.c.
16774 * dispextern.h (underline_minimum_offset): Declare it.
16775 * w32term.c (x_draw_glyph_string): Use it.
16776 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16777 (syms_of_xterm): Don't declare it any more.
16778 (x_draw_glyph_string): Adjust to the new name.
16779
8719abec 167802008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
16781
16782 * xterm.c (x_underline_minimum_display_offset): New var.
16783 (x_draw_glyph_string): Use it.
16784 (syms_of_xterm): Declare it.
16785
167862008-06-10 Chong Yidong <cyd@stupidchicken.com>
16787
16788 * font.c (font_parse_fcname): Accept GTK-style font names too.
16789
167902008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16791
16792 * dired.c (file_name_completion): Don't return t if the match is exact
16793 but with different capitalization.
16794 * minibuf.c (Ftry_completion): Simplify.
16795
16796 * window.c (Vwindow_point_insertion_type): New var.
16797 (set_window_buffer): Use it.
16798 (syms_of_window): Init and export it to Lisp.
16799
168002008-06-10 Kenichi Handa <handa@m17n.org>
16801
16802 * font.h (font_intern_prop): Prototype adjusted.
16803
16804 * font.c (font_intern_prop): New arg force_symbol.
16805 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16806 Adjust for the change of font_intern_prop.
16807
16808 * ftfont.c (ftfont_pattern_entity):
16809 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16810 (w32_registry):
16811 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16812 the change of font_intern_prop.
16813
168142008-06-09 Juanma Barranquero <lekktu@gmail.com>
16815
16816 * w32menu.c (digest_single_submenu): Declare extern.
16817
168182008-06-09 Jason Rumney <jasonr@gnu.org>
16819
16820 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16821
16822 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16823 (parse_single_submenu): Remove.
16824 (digest_single_submenu): Remove.
16825 (syms_of_w32menu): Don't initialise variables that have moved
16826 to menu.c.
16827 (set_frame_menubar): Sync with version in xmenu.c.
16828 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16829
16830 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16831 Make static again.
16832
168332008-06-09 Jason Rumney <jasonr@gnu.org>
16834
16835 Changes to w32 files related to the move of common menu code
16836 to menu.c on 2008-06-08 by Chong Yidong.
16837
16838 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16839 defs to w32gui.h.
16840 (single_keymap_panes, push_menu_item, push_menu_pane):
16841 Make globally visible.
16842
16843 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16844 (local_free, malloc_widget_value, free_widget_value)
16845 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16846 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16847 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16848 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16849 (menu_items, menu_items_allocated, menu_items_used)
16850 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16851 (init_menu_items, finish_menu_items, discard_menu_items)
16852 (grow_menu_items, push_submenu_start, push_submenu_end)
16853 (push_left_right_boundary, push_menu_pane, push_menu_item)
16854 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16855 (free_menubar_widget_tree_value, parse_single_submenu)
16856 (update_submenu_strings): Remove functions.
16857 (xmalloc_widget_value): Remove and declare extern.
16858
16859 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16860 (OBJ1): Build it.
16861
16862 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16863 (local_heap, local_alloc, local_free, malloc_widget_value)
16864 (free_widget_value): Define here.
16865
168662008-06-09 Kenichi Handa <handa@m17n.org>
16867
16868 * font.h (Qascii_0): Extern it.
16869
16870 * font.c (Qascii_0): New variable.
16871 (syms_of_font): DEFSYM it.
16872 (font_open_by_name): If the registry "iso8859-1" fails, try also
16873 "ascii-0".
16874
16875 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16876
168772008-06-08 Kenichi Handa <handa@m17n.org>
16878
16879 * .gdbinit (xfont): New command.
16880
168812008-06-08 Andreas Schwab <schwab@suse.de>
16882
16883 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16884 * Makefile.in (menu.o): Update dependencies.
16885
16886 * Makefile.in (obj): Always add menu.o.
16887 * emacs.c (main): Always call syms_of_menu.
16888 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16889
168902008-06-08 Chong Yidong <cyd@stupidchicken.com>
16891
16892 * Makefile.in: Compile menu.c.
16893
16894 * lisp.h: Declare syms_of_menu.
16895
16896 * emacs.c (main): Call syms_of_menu.
16897
16898 * keyboard.h: Relocate platform-independent menu definitions from
16899 xmenu.c.
16900
16901 * menu.c: New file. Relocate platform-independent menu
16902 definitions from xmenu.c. Suggested by Adrian Robert.
16903
16904 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 16905 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
16906 (menu_items_used, menu_items_n_panes)
16907 (menu_items_submenu_depth): Move to keyboard.h.
16908 (init_menu_items, finish_menu_items, unuse_menu_items)
16909 (discard_menu_items, restore_menu_items, save_menu_items)
16910 (grow_menu_items, push_submenu_start, push_submenu_end)
16911 (push_left_right_boundary, push_menu_pane, push_menu_item)
16912 (keymap_panes, single_keymap_panes, single_menu_item)
16913 (list_of_panes, list_of_items, find_and_call_menu_selection)
16914 (xmalloc_widget_value, free_menubar_widget_value_tree)
16915 (parse_single_submenu, digest_single_submenu)
16916 (update_submenu_strings): Move to menu.c.
16917
169182008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16919
16920 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16921
169222008-06-06 Miles Bader <miles@gnu.org>
16923
16924 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16925 face, not frame default.
16926
169272008-06-05 Martin Rudalics <rudalics@gmx.at>
16928
16929 * window.c (pop_up_windows, pop_up_frames)
16930 (display_buffer_reuse_frames, Vpop_up_frame_function)
16931 (Vdisplay_buffer_function, Veven_window_heights)
16932 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16933 (Vspecial_display_function, Vsame_window_buffer_names)
16934 (Vsame_window_regexps, split_height_threshold)
16935 (Vsplit_window_preferred_function): Move those vars to window.el.
16936 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16937 (Fdisplay_buffer): Move those functions to window.el.
16938 (syms_of_window): Remove corresponding declarations.
16939 (display_buffer): New function.
16940 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16941 * dispnew.c (Flast_nonminibuf_frame): New function.
16942 * buffer.c (Fpop_to_buffer): Move to window.el.
16943
169442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16945
16946 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16947
169482008-06-05 Kenichi Handa <handa@m17n.org>
16949
16950 * coding.c (detect_coding): Fix previous change.
16951 (detect_coding_system): Likewise.
16952
169532008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16954
16955 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16956
16957 * keymap.c (Vminibuffer_local_filename_must_match_map):
16958 Rename from Vminibuffer_local_must_match_filename_map.
16959 (syms_of_keymap):
16960 * minibuf.c (Fcompleting_read): Adjust accordingly.
16961 * commands.h: Rename declaration as well.
16962
169632008-06-05 Kenichi Handa <handa@m17n.org>
16964
16965 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16966 family name.
16967 (Ffont_put): Likewise.
16968
16969 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16970 current font-spec.
16971
16972 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16973 is unspecified.
16974
16975 * xfaces.c (realize_x_face): If the font-related face attributes
16976 are the same as those of default face, realize a new fontset from
16977 default->fontset.
16978 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16979
169802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16981
16982 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16983 (move_it_in_display_line): New wrapper.
16984
16985 * window.c (window_scroll_pixel_based_preserve_x)
16986 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16987 (window_scroll_pixel_based, window_scroll_line_based):
16988 Use them to preserve column positions.
16989 (syms_of_window): Initialize them.
16990
16991 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16992 (HPOS . VPOS) pair.
16993
16994 * dispextern.h (move_it_in_display_line): Declare.
16995
169962008-06-05 Juanma Barranquero <lekktu@gmail.com>
16997
16998 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16999 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
17000 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
17001
170022008-06-04 Juanma Barranquero <lekktu@gmail.com>
17003
17004 * window.c (Fset_window_parameter): Doc fix.
17005 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
17006
170072008-06-04 Joakim Verona <joakim@verona.se>
17008
17009 * window.h (struct window): Add new member window_parameters.
17010
17011 * window.c (Fwindow_parameters, Fwindow_parameter)
17012 (Fset_window_parameter): New defuns.
17013 (syms_of_window): Defsubr the new defuns.
17014 (make_window): Initialize window_parameters to nil.
17015
170162008-06-04 John Paul Wallington <jpw@pobox.com>
17017
17018 * eval.c (Fdefmacro): Doc fix.
17019
170202008-06-04 Kenichi Handa <handa@m17n.org>
17021
17022 * coding.c (detect_coding): Fix handling of coding->head_ascii.
17023 Be sure to call setup_coding_system when we find a proper coding system.
17024 (detect_coding_system): Fix handling of coding->head_ascii.
17025
170262008-06-03 Andreas Schwab <schwab@suse.de>
17027
17028 * font.c (font_prop_validate_spacing): Fix last change.
17029
170302008-06-03 Kenichi Handa <handa@m17n.org>
17031
17032 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
17033 (font_parse_fcname): Fix handling of unknown key.
17034
17035 * xfont.c (xfont_list): Try an alias.
17036
17037 * charset.c (char_charset): Return NULL if the arg charset_list is
17038 specified and C doesn't belong to any of them.
17039
170402008-06-02 Chip Coldwell <coldwell@redhat.com>
17041
17042 * font.c (font_pixel_size): Don't take cdr of an integer.
17043
170442008-06-02 Jim Meyering <meyering@redhat.com>
17045
17046 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
17047 * alloc.c (xfree): Return right away for a NULL arg.
17048 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
17049 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
17050 * mac.c (create_apple_event_from_event_ref): Likewise.
17051 (create_apple_event_from_drag_ref, cfstring_create_normalized):
17052 Likewise.
17053 * doprnt.c (doprnt1): Likewise.
17054 * frame.c (frame): Likewise.
17055 * keyboard.c (wipe_kboard): Likewise.
17056 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
17057 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
17058 * term.c (tty_default_color_capabilities, maybe_fatal)
17059 (delete_tty): Likewise.
17060 * w16select.c (string): Likewise.
17061 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
17062 * w32bdf.c (w32_free_bdf_font): Likewise.
17063 * w32fns.c (w32_unload_font): Likewise.
17064 * w32font.c (w32font_close): Likewise.
17065 * window.c (size_window): Likewise.
17066 * xselect.c (receive_incremental_selection): Likewise.
17067 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
17068 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
17069 * w32.c (stat): Likewise.
17070
17071 Remove useless if-before-free tests.
17072 * editfns.c (Fset_time_zone_rule): Likewise.
17073 * lread.c (nosuffix): Likewise.
17074 * ralloc.c (get_bloc): Likewise.
17075 * regex.c (reg_free): Likewise.
17076 * xftfont.c (xftfont_open, xftfont_close): Likewise.
17077 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
17078 * xsmfns.c (smc_save_yourself_CB): Likewise.
17079
170802008-06-02 Kenichi Handa <handa@m17n.org>
17081
17082 * font.c (font_find_for_lface): Handle float font size.
17083 (font_open_for_lface): Likewise.
17084
17085 * xfaces.c (x_supports_face_attributes_p): Check face->font before
17086 comparing the properties.
17087
170882008-06-01 Jason Rumney <jasonr@gnu.org>
17089
17090 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
17091 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
17092 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
17093 Don't add empty script list.
17094 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
17095
170962008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
17097
17098 * Makefile.in (dot, dotdot): Remove, update users.
17099 ".." has been used elsewhere in the file for a long time.
17100 (LIBXT_STATIC): Remove conditional based on unused variable.
17101
171022008-06-01 Miles Bader <miles@gnu.org>
17103
17104 * xfaces.c (Vface_remapping_alist): New variable.
17105 (syms_of_xfaces): Initialize it.
17106 (enum named_merge_point_kind): New type.
17107 (struct named_merge_point): Add `named_merge_point_kind' field.
17108 (push_named_merge_point): Make cycle detection respect different
17109 named-merge-point kinds.
17110 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
17111 Remove face-name alias resolution.
17112 (lface_from_face_name): New definition using
17113 `lface_from_face_name_no_resolve'.
17114 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
17115 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
17116 (get_lface_attributes): New definition that layers face-remapping on
17117 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
17118 (lookup_basic_face): New function.
17119 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
17120 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
17121 `get_lface_attributes'.
17122 (face_at_buffer_position): Use `lookup_basic_face' to lookup
17123 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
17124 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
17125
17126 * xdisp.c (init_iterator): Pass base_face_id through
17127 `lookup_basic_face' when we actually use it as a face-id.
17128 (handle_single_display_prop): Use `lookup_basic_face' to lookup
17129 DEFAULT_FACE_ID.
17130
17131 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
17132 lookup the initial face-id.
17133
17134 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
17135
171362008-06-01 Juanma Barranquero <lekktu@gmail.com>
17137
17138 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
17139 (Fremove_text_properties): Fix typos in docstrings.
17140
171412008-05-31 Kenichi Handa <handa@m17n.org>
17142
17143 * font.c (font_list_entities): Fix the car part of data to be
17144 stored in the cache.
17145
17146 * ftfont.c (ftfont_font_format): Don't use strcasestr.
17147
171482008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17149
17150 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
17151 Add a `test' argument so another predicate than `equal' can be used.
17152 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
17153 (map_char_table): Remove unused vars `c' and `i'.
17154 * lisp.h (Foptimize_char_table): Adjust declaration.
17155 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
17156
171572008-05-30 Kenichi Handa <handa@m17n.org>
17158
17159 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
17160 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
17161 defined.
17162
171632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
17164
17165 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17166 (Fmake_variable_frame_local): Disallow mixing buffer-local and
17167 frame-local settings for the same variable.
17168
171692008-05-30 Kenichi Handa <handa@m17n.org>
17170
17171 * fontset.c (Ffont_info): Move to font.c.
17172 (syms_of_fontset): Delete defsubr of Sfont_info.
17173
17174 * font.c (font_style_to_value, font_score): Delete casting of the
17175 args to xstcasecmp.
17176 (register_font_driver): Increment num_font_drivers only when
17177 registering the driver globally.
17178 (Ffont_info): Move from fontset.c. Handle a font object too.
17179 (syms_of_font): Defsubr Sfont_info.
17180
171812008-05-29 Kenichi Handa <handa@m17n.org>
17182
17183 * coding.h (enum define_coding_utf8_arg_index): New enum.
17184 (enum coding_attr_index): Change coding_attr_utf_16_bom to
17185 coding_attr_utf_bom.
17186 (enum utf_bom_type): Rename from utf_16_bom_type.
17187 (struct utf_16_spec): Adjust for the above change.
17188 (struct coding_system): Add utf_8_bom in `spec' union.
17189
17190 * coding.c (CODING_UTF_8_BOM): New macro.
17191 (enum coding_category): Delete coding_category_utf_8, add
17192 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
17193 coding_category_utf_8_sig.
17194 (CATEGORY_MASK_UTF_8): Delete it.
17195 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
17196 (CATEGORY_MASK_UTF_8_SIG): New macros.
17197 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
17198 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
17199 CATEGORY_MASK_UTF_8_SIG.
17200 (CATEGORY_MASK_UTF_8): New macro.
17201 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
17202 (detect_coding_utf_8): Check BOM.
17203 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
17204 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
17205 (encode_coding_utf_16): Likewise.
17206 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
17207 (detect_coding, detect_coding_system): Handle utf-8-auto.
17208 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
17209 (syms_of_coding): Fix setting up of Vcoding_category_table.
17210
172112008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
17212
17213 * process.c (Faccept_process_output): If `millisec' is non-nil,
17214 `seconds' default to 0.
17215 (wait_reading_process_output): Also return non-nil if we read output
17216 from a non-running process.
17217
172182008-05-29 Jason Rumney <jasonr@gnu.org>
17219
17220 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
17221 `raster' specified.
17222 (add_font_entity_to_list): Allow non-opentype truetype fonts back
17223 in the uniscribe backend, but disallow any font that has no
17224 unicode subrange support.
17225
172262008-05-29 Juanma Barranquero <lekktu@gmail.com>
17227
17228 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
17229 Fix typos in docstrings.
17230
172312008-05-29 Kenichi Handa <handa@m17n.org>
17232
17233 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
17234 (Fx_family_fonts): Set frame correctly.
17235
172362008-05-28 Jason Rumney <jasonr@gnu.org>
17237
17238 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17239
172402008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
17241
17242 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17243 calling build_annotations.
17244
172452008-05-28 Juanma Barranquero <lekktu@gmail.com>
17246
17247 * coding.c (Fdecode_coding_region, Fencode_coding_region)
17248 (Fencode_coding_string):
17249 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17250 <latin-extra-code-table>: Fix typos in docstrings.
17251 (syms_of_coding) <coding-system-alist>: Doc fix.
17252 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17253
172542008-05-28 Kenichi Handa <handa@m17n.org>
17255
17256 * fontset.c (Ffont_info): Don't call font_close_object.
17257
17258 * font.c (font_parse_family_registry): Use Ffont_put to validate
17259 foundry and family.
17260 (font_delete_unmatched): Don't check spacing.
17261 (font_list_entities): Add spacing to the spec to list fonts.
17262
17263 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
17264 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
17265
17266 * coding.c (encode_coding_raw_text): Fix previous change.
17267 (encode_coding_object): When the dst_object is a buffer and is
17268 different from src_object, move gap to PT.
17269
172702008-05-27 Chong Yidong <cyd@stupidchicken.com>
17271
17272 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
17273
172742008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17275
17276 * coding.c (encode_coding_raw_text): Set coding->produced_char for
17277 all branches. Compute it differently.
17278
17279 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
17280
172812008-05-27 Juanma Barranquero <lekktu@gmail.com>
17282
17283 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
17284 into "else if () ... else ...".
17285
172862008-05-27 Jason Rumney <jasonr@gnu.org>
17287
17288 * w32font.c (w32font_open_internal): Determine if glyph indices
17289 are likely to work here.
17290
172912008-05-27 Chong Yidong <cyd@stupidchicken.com>
17292
17293 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
17294 draw overlap glyphs with appropriate highlighting.
17295
172962008-05-27 Kenichi Handa <handa@m17n.org>
17297
17298 * xfont.c (xfont_open): Fix calculation of font->average_width.
17299
173002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17301
17302 * casefiddle.c (casify_object): Try to guess better whether the
17303 argument is a byte or a char.
17304
173052008-05-26 Andreas Schwab <schwab@suse.de>
17306
17307 * xselect.c (x_reply_selection_request): Properly handle format == 32.
17308 Always send multiples of format size.
17309
17310 * xterm.c (x_set_frame_alpha): Fix type mismatch.
17311
173122008-05-26 Jason Rumney <jasonr@gnu.org>
17313
17314 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
17315 (compute_metrics): Don't set failure if we just cleared the cache.
17316 (w32_weight_table): Remove unused variable.
17317 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
17318 backwards compatibility.
17319
173202008-05-25 Kenichi Handa <handa@m17n.org>
17321
17322 * w32term.c (x_draw_glyph_string):
17323 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
17324
17325 * xfaces.c: Delete unused function prototypes.
17326 (xstrlwr, font_frame): Delete them.
17327 (clear_face_cache): Delete unused variable.
17328
17329 * xftfont.c (xftfont_open): Delete unused variable.
17330 If underline_thickness is not 1, adjust underline_position.
17331
17332 * ftxfont.c (ftxfont_open): Delete unused variable.
17333
17334 * fontset.c (face_for_char): Optimize for the case of no charset
17335 property.
17336
17337 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
17338 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
17339 (otf_open, font_otf_capability, generate_otf_features)
17340 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17341 Comment out by surrounding "#if 0" and "#endif" for the moment.
17342 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
17343 (syms_of_font): Codes for accessing above commented out.
17344
173452008-05-24 Eli Zaretskii <eliz@gnu.org>
17346
17347 * w32proc.c: Include dispextern.h.
17348
17349 * w32.c: Include dispextern.h.
17350
173512008-05-23 Juanma Barranquero <lekktu@gmail.com>
17352
17353 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
17354 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
17355 Fix typos in docstrings.
17356
173572008-05-23 Jason Rumney <jasonr@gnu.org>
17358
17359 * xsmfns.c: Remove includes that are already included by config.h.
17360
173612008-05-23 Kenichi Handa <handa@m17n.org>
17362
17363 * charset.c (Qemacs, charset_emacs): New variables.
17364 (char_charset): Fix for non-Unicode characters.
17365 (syms_of_charset): Define charset_emacs.
17366
17367 * w32term.c (x_draw_glyph_string): Be sure to update
17368 s->underline_thickness and s->underline_position. Be sure to draw
17369 underline within the current line area.
17370
17371 * xterm.c (x_draw_glyph_string): Be sure to update
17372 s->underline_thickness and s->underline_position. Be sure to draw
17373 underline within the current line area.
17374
17375 * fontset.c: Delete unused variables and add casting for char *
17376 throughout the file.
17377 (fontset_font): Try the fallback fonts of the current fontset
17378 before consulting the default fontset.
17379
17380 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17381
17382 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17383
173842008-05-22 Jason Rumney <jasonr@gnu.org>
17385
17386 * font.c: Don't include strings.h.
17387
17388 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17389
17390 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17391 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17392 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17393 to call xstrcasecmp.
17394
17395 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17396
17397 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17398
17399 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17400
17401 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17402
174032008-05-22 Kenichi Handa <handa@m17n.org>
17404
17405 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17406
17407 * font.c (font_prop_validate_style): Adjust for the format
17408 change of font_style_table.
17409
17410 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17411 two args.
17412
17413 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17414 two args.
17415
174162008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17417
17418 * minibuf.c (keys_of_minibuf): Delete.
17419 * lisp.h (keys_of_minibuf): Delete.
17420 * emacs.c (main): Don't call keys_of_minibuf.
17421
174222008-05-22 Kenichi Handa <handa@m17n.org>
17423
17424 * ftfont.c (ftfont_resolve_generic_family): Rename from
17425 ftfont_list_generic_family. Return a single family for each
17426 generic family.
17427 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
17428 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
17429 Call font_add_log.
17430 (ftfont_match): Call font_add_log.
17431
17432 * font.h (Ffont_xlfd_name): EXFUN adjusted.
17433 (FONT_DEBUG): Define it.
17434 (font_add_log): Extern it.
17435 (font_assert): Rename from xassert.
17436
17437 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
17438 (xfont_list_family): Call font_add_log.
17439 (xfont_match): Likewise.
17440 (memq_no_quit): Delete.
17441
17442 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
17443 call of Ffont_xlfd_name.
17444
17445 * xfaces.c (struct table_entry, slant_table, weight_table)
17446 (swidth_table): Move to font.c.
17447
17448 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
17449 xassert are changed to font_assert. Delete many unused variables.
17450 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
17451 New variables.
17452 (struct table_entry): Move from xfaces.c and modified.
17453 (weight_table, slant_table, width_table): Move from xfaces.c and
17454 contents adjusted for the change of struct table_entry.
17455 (font_style_to_value, font_style_symbolic): Adjust for the
17456 format change of font_style_table.
17457 (font_parse_family_registry): Don't overwrite existing foundry and
17458 family of font_spec.
17459 (font_score): Fix calculation of diff for sizes.
17460 (font_sort_entites): Call font_add_log.
17461 (font_delete_unmatched): Return a newly created list.
17462 (font_list_entities): Fix previous change. Call font_add_log.
17463 (font_matching_entity, font_open_entity, font_close_entity):
17464 Call font_add_log.
17465 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17466 (Finternal_set_font_style_table): Delete.
17467 (BUILD_STYLE_TABLE): New macro.
17468 (build_style_table): New function.
17469 (Vfont_log, font_log_env_checked): New variables.
17470 (font_add_log): New function.
17471 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17472 Declare Lisp variables "font-weight-table", "font-slant-table",
17473 "font-width-table", and "font-log". Initialize font_style_table.
17474
174752008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17476
17477 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17478
174792008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17480 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17481
17482 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17483 (Vframe_alpha_lower_limit): New variable.
17484 (x_set_alpha): New function.
17485
17486 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17487
17488 * xfns.c (x-create-frame, Qalpha):
17489 Initialize the frame parameter `alpha'.
17490 * xterm.c (OPAQUE, OPACITY): New.
17491 (x_set_frame_alpha): New function.
17492 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17493
17494 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17495 * w32fns.c (w32_frame_parm_handlers): Likewise.
17496
174972008-05-20 Jason Rumney <jasonr@gnu.org>
17498
17499 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17500 truetype fonts to opentype list.
17501
175022008-05-20 Juanma Barranquero <lekktu@gmail.com>
17503
17504 * fontset.c (Ffontset_info): Doc fix.
17505 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17506 <ignore-relative-composition>: Fix typos in docstrings.
17507
17508 * font.c (syms-of-font) <font-encoding-alist>:
17509 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17510 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17511 (Ffont_otf_alternates): Doc fixes.
17512
175132008-05-20 Kenichi Handa <handa@m17n.org>
17514
17515 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17516 font.h through out the file.
17517 (FONT_DRIVERS): Rename from FONTOBJ.
17518 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17519 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17520
17521 * emacs.c (main): Call syms_of_font unconditionally.
17522
17523 * font.h (find_font_encoding): Extern it.
17524
17525 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17526 fontset.c.
194d44e7 17527 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
17528 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17529 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17530 only when HAVE_WINDOW_SYSTEM is defined.
17531 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17532 when HAVE_WINDOW_SYSTEM is defined.
17533
17534 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17535 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17536
17537 * xfaces.c: Include font.h unconditionally.
17538 (merge_face_ref, merge_face_vectors)
17539 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17540
175412008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17542
17543 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17544 indirect_variable.
17545 * eval.c (lisp_indirect_variable): New fun.
17546 (Fuser_variable_p): Use it.
17547
175482008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17549
17550 * lisp.h (indirect_variable):
17551 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17552 Use Lisp_Symbol pointers rather than Lisp_Object.
17553 Adjust callers.
17554 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17555 To this end, change calling-convention.
17556
17557 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17558 if some non-hidden buffers are selected by string&pred.
17559
175602008-05-19 Chong Yidong <cyd@stupidchicken.com>
17561
17562 * process.c (wait_reading_process_output): Always check status
17563 when in batch mode.
17564
175652008-05-19 Kenichi Handa <handa@m17n.org>
17566
17567 * font.c (font_list_entities): Fix handling of cache.
17568 (font_matching_entity): Likewise.
17569
17570 * ftfont.c (cs_iso8859_1): Delete.
17571 (ft_face_cache): New variable.
17572 (struct ftfont_info): New member fc_charset_idx.
17573 (ftfont_build_basic_charsets): Delete.
17574 (fc_charset_table): New variable.
17575 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17576 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17577 Callers changed.
17578 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17579 (ftfont_spec_pattern): New argument fc_charset_idx.
17580 Check registry more rigidly. Change callers.
17581 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17582 change of :font-entity property of the font.
17583
17584 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17585 property of the font.
17586
175872008-05-18 Juanma Barranquero <lekktu@gmail.com>
17588
17589 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17590 (Funencodable_char_position, Fcheck_coding_systems_region)
17591 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17592 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17593 (Ffind_operation_coding_system, Fset_coding_system_priority)
17594 (Fcoding_system_eol_type): Doc fixes.
17595
175962008-05-17 Glenn Morris <rgm@gnu.org>
17597
17598 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17599
176002008-05-16 Eli Zaretskii <eliz@gnu.org>
17601
17602 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17603 and st_gid.
17604
17605 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17606 HAVE_WINDOW_SYSTEM is not defined.
17607
17608 * xfaces.c (merge_face_ref, merge_face_vectors)
17609 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17610 HAVE_WINDOW_SYSTEM is defined.
17611 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17612
176132008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17614
17615 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17616
176172008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17618
17619 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17620
176212008-05-15 Kenichi Handa <handa@m17n.org>
17622
17623 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17624 preference.
17625
176262008-05-15 Glenn Morris <rgm@gnu.org>
17627
17628 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17629
176302008-05-15 Chong Yidong <cyd@stupidchicken.com>
17631
17632 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17633 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17634
17635 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17636
176372008-05-15 Kenichi Handa <handa@m17n.org>
17638
17639 * ftfont.c (ftfont_list): Downcase family name to check generic
17640 families.
17641
17642 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17643 font-spec for QCfont value.
17644
17645 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17646 buffer. Check the return value of it.
17647
176482008-05-14 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32term.c (w32_get_glyph_overhangs): Remove.
17651 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17652
176532008-05-14 Kenichi Handa <handa@m17n.org>
17654
17655 * font.c (font_prop_validate): Make nil a valid value.
17656 (font_clear_cache): Check if the cached vector of entities is nil
17657 or not.
17658
176592008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17660
17661 * emacs.c (main_thread): Conditionalize on
17662 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17663 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17664
17665 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17666 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17667 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17668
176692008-05-14 Kenichi Handa <handa@m17n.org>
17670
17671 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17672 has no corresponding coding system.
17673
176742008-05-14 Jason Rumney <jasonr@gnu.org>
17675
17676 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17677
17678 * w32font.h (w32font_open_internal): Update declaration.
17679
17680 * w32font.c (w32font_open_internal): Change last argument from
17681 w32font_info struct to font object. Fill in font object from
17682 font_entity. Get Outline metrics if possible. Use them to
17683 calculate underline position and thickness. Use xlfd name as name
17684 property. Don't set codepage.
17685 (w32font_open): Pass font_object to w32font_open_internal. Don't
17686 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17687 (w32font_draw): Use s->font.
17688 (clear_cached_metrics): Don't clear non-existent blocks.
17689
17690 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17691 font was not found.
17692 (x_draw_glyph_string): Use underline position and thickness from font.
17693
17694 * w32uniscribe.c (uniscribe_open): Pass font_object to
17695 w32font_open_internal.
17696
176972008-05-14 Kenichi Handa <handa@m17n.org>
17698
17699 These changes are to delete all legacy font-handling codes, and
17700 make Emacs use only font-backends.
17701
17702 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17703 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17704
17705 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17706
17707 * charset.h (Vcharset_non_preferred_head)
17708 (Vcurrent_iso639_language): Extern them.
17709
17710 * charset.c (Vcharset_non_preferred_head): New variable.
17711 (Vcurrent_iso639_language): New variable.
17712 (syms_of_charset): Declare it as a Lisp variable.
17713 (char_charset): Don't check non preferred charsets. As a last
17714 resort, return charset_unicode.
17715 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17716
17717 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17718 conditionals. Don't check enable_font_backend. Delete all codes
17719 used only when USE_FONT_BACKEND is not defined.
17720
17721 * dispextern.h (struct glyph_string): Change type of `font' to
17722 `struct font *'.
17723 (struct glyph_string): New member underline_position and
17724 underline_thickness.
17725 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17726 (struct face): Change type of `font' to `struct font *'. Remove
17727 members `font_name', `font_info_id'.
17728 (per_char_metric, encode_char): Delete externs.
17729 (calc_pixel_width_or_height): Adjust the prototype.
17730
17731 * emacs.c (enable_font_backend): Delete extern.
17732 (main): Don't set enable_font_backend. Don't check the command
17733 line argument "-disable-font-backend".
17734
17735 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17736 (enum font_property_index): New members FONT_DPI_INDEX,
17737 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17738 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17739 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17740 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17741 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17742 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17743 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17744 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17745 (struct font_spec, struct font_entity): New structs.
17746 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17747 (struct font): Many members from old "struct font_info" moved to
17748 here. Members font and entity deleted.
17749 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17750 the new font-related objects.
17751 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17752 (CHECK_FONT_GET_OBJECT): Likewise.
17753 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17754 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17755 (struct font_driver): New members case_sensitive anc check. Type
17756 of the member list and open changed.
17757 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17758 (font_symbolic_width, font_find_object, font_get_spec)
17759 (font_set_lface_from_name): Delete extern.
17760 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17761
17762 * font.c: Include <strings.h>.
17763 (enable_font_backend): Delete it.
17764 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17765 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17766 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17767 (null_string): Delete it.
17768 (null_vector): Make it static.
17769 (font_family_alist): Delete it.
17770 (Qnormal): Extern it.
17771 (QCextra, QClanguage): Delete it.
17772 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17773 (font_make_spec, font_make_entity, font_make_object)
17774 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17775 the string. Callers changed.
17776 (font_pixel_size): Adjusted for the format change of font-related
17777 objects.
17778 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17779 (font_style_to_value, font_style_symbolic): New function.
17780 (build_font_family_alist): Delete it.
17781 (font_registry_charsets): Use Fassoc_string instead of
17782 assq_no_quit.
17783 (font_prop_validate_symbol): Don't return null_string.
17784 (font_prop_validate_style): Adjusted for the change of
17785 style-related values in a font vector.
17786 (font_property_table): Delete entries for QClanguage and
17787 QCantialias, add entries for QCavgwidth.
17788 (get_font_prop_index): Delete the 2nd argument FROM.
17789 (font_prop_validate): Arguments changed.
17790 (font_put_extra): Adjusted for the change of font-related objects.
17791 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17792 (font_parse_fcname, font_unparse_fcname)
17793 (font_prepare_composition): Likewise.
17794 (font_parse_family_registry): Renamed from font_merge_old_spec.
17795 (otf_open): Delete the 1st arg entity.
17796 (font_otf_capability): Adjusted for the above change.
17797 (font_score): New arg alternate_families. Adjusted for the change
17798 of font-related objects.
17799 (font_sort_entites): New arg best_only.
17800 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17801 Delete them.
17802 (font_match_p): Check alternate families.
17803 (font_find_object): Delete it.
17804 (font_check_object): New function.
17805 (font_clear_cache): Adjusted for the change of font-related objects.
17806 (font_delete_unmatched): New arg.
17807 (font_list_entities): Call font_driver->list with a spec that
17808 doesn't specify style-related properties.
17809 (font_matching_entity): Arguments changed. Caller changed.
17810 (font_open_entity): Adjusted for the change of font-related objects.
17811 (font_close_object, font_has_char, font_encode_char)
17812 (font_get_name, font_get_spec): Likewise.
17813 (font_spec_from_name, font_clear_prop, font_update_lface):
17814 New functions.
17815 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17816 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17817 (font_at): Adjusted for the change of font-related objects.
17818 (font_range): New function.
17819 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17820 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17821 (Fcopy_font_spec, Fmerge_font_spec): New function.
17822 (Ffont_family_list): Renamed from list-families.
17823 (Finternal_set_font_style_table): Arguments changed.
17824 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17825 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17826 change of font-related objects.
17827 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17828
17829 * fontset.h (struct font_info): Delete it. Most members go to
17830 struct font.
17831 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17832 (enum FONT_SPEC_INDEX): Delete it.
17833 (font_info, list_fonts_func, load_font_func, query_font_func)
17834 (set_frame_fontset_func, find_ccl_program_func)
17835 (get_font_repertory_func, new_fontset_from_font_name): Delete
17836 externs.
17837 (fontset_from_font_name): Extern it.
17838 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17839 (FONT_INFO_FROM_FACE): Deleted.
17840 (face_for_font): Adjust prototype.
17841
17842 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17843 conditionals. Don't check enable_font_backend. Delete all codes
17844 used only when USE_FONT_BACKEND is not defined.
17845 (get_font_info_func, list_font_func, load_font_func)
17846 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17847 (get_font_repertory_func): Delete them.
17848 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17849 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17850 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17851 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17852 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17853 (fontset_compare_rfontdef): New function.
17854 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17855 rfont-defs by qsort. Adjusted for the change of font-group vector.
17856 (load_font_get_repertory): Deleted.
17857 (fontset_find_font): Use new macros to ref/set elements of
17858 font-def and rfont-def.
17859 (fontset_font): Fix the timing of remembering that no font for C.
17860 (free_face_fontset): Do nothing if the face has no fontset.
17861 (face_suitable_for_char_p): Use new macros to ref/set elements of
17862 rfont-def.
17863 (face_for_char): Likewise. Call face_for_char with font_object.
17864 (fs_load_font): Delete. Delete #pragma surrounding it.
17865 (fs_query_fontset): Use strcasecmp instead of strcmp.
17866 (generate_ascii_font_name): Adjusted for the format change of
17867 font-spec.
17868 (Fset_fontset_font): Likewise. Use new macros to set elements of
17869 font-def.
17870 (Fnew_fontset): Use font_unparse_xlfd to generate
17871 FONTSET_ASCII (fontset).
17872 (new_fontset_from_font_name): Deleted.
17873 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17874 a fontset is already created for the font. FIx updating of
17875 Vfontset_alias_alist.
17876 (fontset_ascii_font): Deleted.
17877 (Ffont_info): Adjusted for the format change of font-spec.
17878 (Finternal_char_font): Likewise.
17879 (Ffontset_info): Likewise.
17880 (syms_of_fontset): Don't check load_font_func.
17881
17882 * fns.c (internal_equal): Handle PREV_FONT.
17883
17884 * frame.h: Delete USE_FONT_BACKEND conditional.
17885
17886 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17887 conditionals. Don't check enable_font_backend. Delete all codes
17888 used only when USE_FONT_BACKEND is not defined.
17889 (x_set_font): Call x_new_font, not x_new_fontset2.
17890 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17891 already set for the frame.
17892
17893 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17894 a font-entity by font_make_entity. Use font_intern_prop instead
17895 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17896 font property. If a font is scalable, set avgwidth property to 0.
17897 Set font-entity property by font_put_extra.
17898 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17899 (ffont_driver): Adjusted for the change of struct font_driver.
17900 (ftfont_spec_pattern): New function.
17901 (ftfont_list): Return a list, not vector.
17902 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17903 (ftfont_list_family): Don't downcase names.
17904 (ftfont_free_entity): Deleted.
17905 (ftfont_open): Return a font-object. Adjusted for the change of
17906 struct font. Get underline_thickness and underline_position from
17907 font property. Don't update dpyinfo->smallest_font_height and
17908 dpyinfo->smallest_char_width.
17909 (ftfont_close): Don't free `struct font'.
17910 (ftfont_has_char): Adjusted for the format change of font-entity.
17911 (ftfont_encode_char, ftfont_text_extents): Likewise.
17912
17913 * ftxfont.c (ftxfont_list): Return a list, not vector.
17914 (ftxfont_open): Return a font-object. Adjusted for the change of
17915 struct font. Get underline_thickness and underline_position from
17916 font property. Don't update dpyinfo->smallest_font_height and
17917 dpyinfo->smallest_char_width.
17918 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17919 (ftxfont_draw): Adjusted for the change of struct font.
17920
17921 * image.c (image_ascent): Don't include "charset.h". Include
17922 "character.h" and "font.h".
17923
17924 * lisp.h (enum pvec_type): New member PREV_FONT.
17925 (Fassoc_string): EXFUN it.
17926
17927 * print.c: Include font.h.
17928 (print_object): Handle font-related objects.
17929
17930 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17931 conditionals. Don't check enable_font_backend. Delete all codes
17932 used only when USE_FONT_BACKEND is not defined.
17933 (handle_auto_composed_prop): Do nothing if it->f is not on a
17934 window system. Check how many following characters can be
17935 displayed by the same font.
17936 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17937 'struct font *'.
17938 (get_char_face_and_encoding): Assign the whole encoding task to
17939 the `encode-char' method of a font driver.
17940 (fill_composite_glyph_string): Adjusted for the change of `struct
17941 face' and `struct glyph_string'.
17942 (fill_glyph_string): Likewise.
17943 (get_per_char_metric): Arguments changed.
17944 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17945 and `struct glyph_string'.
17946 (produce_stretch_glyph, calc_line_height_property)
17947 (x_produce_glyphs): Likewise.
17948
17949 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17950 conditionals. Don't check enable_font_backend. Delete all codes
17951 used only when USE_FONT_BACKEND is not defined. Use
17952 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17953 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17954 (Qp): Extern them.
17955 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17956 Deleted.
17957 (struct font_name): Deleted.
17958 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17959 (compare_fonts_by_sort_order): New function.
17960 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17961 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17962 Deleted.
17963 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17964 compare_fonts_by_sort_order.
17965 (Fx_font_family_list): Call Ffont_family_list.
17966 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17967 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17968 (face_symbolic_slant, face_symbolic_swidth)
17969 (split_font_name_into_vector, build_font_name_from_vector)
17970 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17971 (font_rescale_ratio, split_font_name, build_font_name)
17972 (free_font_names, sort_fonts, x_face_list_fonts)
17973 (face_font_available_p, sorted_font_list, cmp_font_names)
17974 (font_list_1, concat_font_list, font_list, remove_duplicates):
17975 Deleted.
17976 (Fx_list_fonts): Use Ffont_list.
17977 (LFACE_AVGWIDTH): Deleted.
17978 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17979 by FONTP.
17980 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17981 (set_lface_from_font_name): Delete it.
17982 (set_lface_from_font): Renamed from
17983 set_lface_from_font_and_fontset. Caller changed. Don't set
17984 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17985 for face.
17986 (merge_face_vectors): Copy font-spec if necessary.
17987 Clear properties of the font-spec if necessary.
17988 (merge_face_ref): Clear properties of the font-spec if necessary.
17989 (Finternal_set_lisp_face_attribute): Likewise.
17990 (set_font_frame_param): Use font_load_for_lface to load a
17991 font-object, and call Fmodify_frame_parameters with it.
17992 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17993 font name by Ffont_xlfd_name.
17994 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17995 QCslant, and QCwidth.
17996 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17997 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17998 Compare fonts by EQ.
17999 (lookup_non_ascii_face): Deleted.
18000 (face_for_font): The 2nd argument changed.
18001 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
18002 Check atomic font properties by case insensitive.
18003 (realize_non_ascii_face): Set face->overstrike correctly.
18004 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
18005 (dump_realized_face): Get font name from
18006 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
18007
18008 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
18009 conditionals. Don't check enable_font_backend. Delete all codes
18010 used only when USE_FONT_BACKEND is not defined.
18011 (xic_create_xfontset): Original code deleted and renamed from
18012 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
18013 (x_make_gc): Don't set GCFont in GCs.
18014 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
18015 opened by "fixed".
18016 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
18017 find_ccl_program_func, query_font_func, set_frame_fontset_func,
18018 get_font_repertory_func.
18019
18020 * xfont.c: Include <stdlib.h> and "ccl.h".
18021 (struct xfont_info): New structure.
18022 (xfont_query_font): Deleted.
18023 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
18024 moved from xterm.c.
18025 (xfont_driver): Adjusted for the change of struct font_driver.
18026 (compare_font_names): New function.
18027 (xfont_list_pattern): Sort font names case insensitively. Make
18028 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
18029 (xfont_list): Return a list, not vector.
18030 (xfont_match): If the font doesn't have QCname property, generate
18031 a name from the other font properties.
18032 (xfont_open): Return a font-object. Adjusted for the change of
18033 struct font. Get underline_thickness and underline_position from
18034 font property. Don't update dpyinfo->smallest_font_height and
18035 dpyinfo->smallest_char_width.
18036 (xfont_close): Don't free struct font.
18037 (xfont_prepare_face): Adjusted for the change of struct font.
18038 (xfont_done_face): Deleted.
18039 (xfont_has_char): Adjusted for the change of struct font.
18040 (xfont_encode_char, xfont_draw): Likewise.
18041 (xfont_check): New function.
18042
18043 * xftfont.c (xftfont_list): Adjusted for the change of `list'
18044 callback function.
18045 (xftfont_match): Adjusted for the format change of font-entity.
18046 (xftfont_open): Adjusted for the format change of font-entity and
18047 font-object. Adjusted for the change of struct font. Return a
18048 font-object. Don't update dpyinfo->smallest_font_height and
18049 dpyinfo->smallest_char_width.
18050 (xftfont_close): Block input while calling XftFontClose.
18051 (xftfont_prepare_face): Don't block input while calling
18052 xftfont_get_colors. Adjusted for the change of struct font.
18053 (xftfont_shape): Return value of error case fixed.
18054
18055 * xrdb.c (x_load_resources): Don't setup a fontset resource.
18056
18057 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
18058 conditionals.
18059 (FONT_WIDTH): Return (f)->max_width.
18060 (struct x_display_info): Delete member `font'.
18061 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
18062 (x_find_ccl_program, x_get_font_repertory): Delete externs.
18063 (struct x_output): Change type of `font' to `struct font *'.
18064
18065 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
18066 conditionals. Don't check enable_font_backend. Delete all codes
18067 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
18068 (x_per_char_metric, x_encode_char): Deleted.
18069 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
18070 (x_compute_glyph_string_overhangs): Adjusted for the change of
18071 `struct face'.
18072 (x_draw_glyph_string_foreground)
18073 (x_draw_composite_glyph_string_foreground): Likewise.
18074 (x_draw_glyph_string): Likewise. Use font->underline_position and
18075 font->underline_thickness.
18076 (x_new_font): Renamed from x_new_fontset2.
18077 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
18078 (x_check_font): Call `check' method of a font driver.
18079 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
18080 (x_query_font, x_get_font_repertory): Deleted.
18081 (x_find_ccl_program): Renamed and moved to xfont.c.
18082 (x_redisplay_interface): Adjusted for the change of `struct
18083 redisplay_interface'.
18084
18085 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
18086 conditionals. Don't check enable_font_backend. Delete all codes
18087 used only when USE_FONT_BACKEND is not defined. Surround non-used
18088 code by "#ifdef OLD_FONT" and "endif".
18089 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
18090
18091 * w32font.h (struct w32font_info): New member.
18092 (FONT_COMPAT): New macro.
18093 (w32font_open_internal): Prototype adjusted.
18094
18095 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
18096 OLD_FONT" and "endif".
18097
18098 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
18099 conditionals. Don't check enable_font_backend. Delete all codes
18100 used only when USE_FONT_BACKEND is not defined.
18101 (w32font_open): Return a font-object. Make a font-object by
18102 font_make_object. Adjusted for the change of struct w32font_info.
18103 (w32font_close): Don't free struct font. Adjusted for the change
18104 of struct w32font_info.
18105 (w32font_encode_char, w32font_text_extents, w32font_draw):
18106 Adjusted for the change of struct w32font_info.
18107 (w32font_draw): Likewise.
18108 (w32font_list_internal): Return a list, not vector.
18109 (w32font_open_internal): Change the 4th arg to font-object.
18110 Adjusted for the change of struct w32font_info and font-object format.
18111 (add_font_name_to_list): Don't downcase names.
18112 (w32_enumfont_pattern_entity): Make a font-entity by
18113 font_make_entity. Adjusted for the format change of font-entity.
18114 Use FONT_SET_STYLE to set a style-related font property. If a
18115 font is scalable, set avgwidth property to 0. Set font-entity
18116 property by font_put_extra.
18117 (font_matches_spec): Adjusted for the format change of font-entity.
18118 (w32_weight_table, w32_decode_weight): New variables.
18119 (w32_encode_weight): New function.
18120 (fill_in_logfont): Adjusted for the format change of font-spec.
18121 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
18122 weight value.
18123 (w32font_driver): Adjusted for the change of struct font_driver.
18124
18125 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
18126 conditionals. Don't check enable_font_backend. Surround non-used
18127 code by "#ifdef OLD_FONT" and "endif".
18128 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
18129 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
18130
18131 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
18132 conditionals. Don't check enable_font_backend. Delete all codes
18133 used only when USE_FONT_BACKEND is not defined. Surround non-used
18134 code by "#ifdef OLD_FONT" and "endif".
18135
18136 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
18137 (uniscribe_open): Return value changed to font-object.
18138 Adjusted for the format change of font-object.
18139 (uniscribe_otf_capability): Adjusted for the change of struct font.
18140 (add_opentype_font_name_to_list): Don't downcase names.
18141 (uniscribe_font_driver): Adjusted for the change of struct
18142 font_driver.
18143
181442008-05-13 Chong Yidong <cyd@stupidchicken.com>
18145
18146 * dispnew.c (update_frame_1): Check if tty output is still valid
18147 before flushing it.
18148
181492008-05-13 Jan Djärv <jan.h.d@swipnet.se>
18150
18151 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
18152 to Gtk+ menus.
18153
181542008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
18155
18156 * dired.c (file_name_completion): Tweak the code so as to always do it
18157 in a single pass. Tighten the scope of some variables.
18158
18159 * dired.c (Qdefault_directory): New var.
18160 (file_name_completion): Use it instead of Fexpand_file_name.
18161 (syms_of_dired): Initialize it.
18162
181632008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
18164
18165 * fileio.c (double_dollars): Remove dead code.
18166
181672008-05-10 Eli Zaretskii <eliz@gnu.org>
18168
18169 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
18170 Mention w32-get-true-file-attributes in doc string.
18171
18172 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
18173
181742008-05-09 Glenn Morris <rgm@gnu.org>
18175
18176 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
18177 2008-04-23.
18178
181792008-05-09 Eli Zaretskii <eliz@gnu.org>
18180
18181 Support for reporting owner and group of each file on MS-Windows:
18182 * dired.c (stat_uname, stat_gname): New functions, with special
18183 implementation for w32.
18184 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
18185
18186 * w32.c: Rename the_passwd_* to dflt_passwd_*.
18187 (dflt_group_name): New static variable.
18188 (dflt_group): Rename from the_group.
18189 (init_user_info): Init dflt_group fields. Get user's group name
18190 from LookupAccountSid.
18191 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
18192 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
18193 New initialization states.
18194 (globals_of_w32): Initialize them to zero. Initialize the default
18195 group name to "None".
18196 (GetFileSecurity_Name): New global var, the name of the function
18197 to call for GetFileSecurity.
18198 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
18199 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
18200 (get_file_security, get_security_descriptor_owner)
18201 (get_security_descriptor_group, is_valid_sid)
18202 (get_file_security_desc, get_rid, get_name_and_id)
18203 (get_file_owner_and_group): New functions.
18204 (stat): Use get_file_security_desc and get_file_owner_and_group to
18205 report the owner and primary group of each file. Don't ignore the
18206 high 32 bits of file's size, now that st_size is 64-bit wide.
18207 Fix test when to get true file attributes.
18208 (init_user_info): Use get_rid instead of equivalent inline code.
18209 (fstat): Don't ignore the high 32 bits of file's size.
18210
182112008-05-09 Chong Yidong <cyd@stupidchicken.com>
18212
18213 * image.c (png_load): Use correct bit-depth for setting background
18214 color.
18215
182162008-05-08 Eli Zaretskii <eliz@gnu.org>
18217
18218 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
18219 epa-hook.elc.
18220
182212008-05-08 Juanma Barranquero <lekktu@gmail.com>
18222
18223 * font.c (Ffont_match_p): Don't use `iff' in docstring.
18224
182252008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
18226
18227 * macfns.c (Fx_create_frame): Make a copy of frame parameters
18228 because the original parameters are in pure storage now.
18229 (mac_window): Remove unused params. Update callers.
18230
182312008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 * lread.c (substitute_object_recurse): Use lower-level primitives.
18234 Don't signal errors when traversing sub-char-tables.
18235 Don't loop over all the possible characters when traversing char-tables.
18236
18237 * print.c (print_preprocess): Add sub-char-tables to the print-table,
18238 just like we do in print.c.
18239
182402008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * minibuf.c (Ftry_completion): Remove code left over from when we used
18243 scmp instead of Fcompare_strings.
18244
182452008-05-04 Juanma Barranquero <lekktu@gmail.com>
18246
18247 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18248
182492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18250
18251 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18252 Create bitmap context in native byte order.
18253
18254 * macterm.c (XDrawLine)
18255 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
18256 context in native byte order.
18257
182582008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18259
18260 * config.in: Regenerate.
18261
18262 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
18263 New definitions for Image I/O support.
18264 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
18265 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
18266 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18267 (mac_data_provider_release_data, image_load_image_io)
18268 [USE_MAC_IMAGE_IO]: New functions.
18269 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
18270 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
18271 (init_image_func_pointer) [MAC_OSX]: Remove function.
18272 (image_load_quartz2d) [MAC_OSX]: Check availability of
18273 CGImageCreateWithPNGDataProvider at compile time.
18274 Use lowercase `false' for boolean constant.
18275 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
18276 Use image_load_image_io.
18277 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
18278 Don't check MyCGImageCreateWithPNGDataProvider.
18279 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
18280 Don't call init_image_func_pointer.
18281
18282 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
18283
18284 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
18285 Make variable non-static.
18286 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
18287 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18288
18289 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
18290 (RED_FROM_ULONG): Mask off higher bits.
18291 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
18292
18293 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
18294 Include AvailabilityMacros.h.
18295 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
18296 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
18297
182982008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18299
18300 * chartab.c (Fset_char_table_range): If range is t, really set all
18301 chars to that value.
18302
183032008-05-03 Eli Zaretskii <eliz@gnu.org>
18304
18305 * dired.c (Ffile_attributes): Don't allow the device number become
18306 negative.
18307
183082008-05-02 Daiki Ueno <ueno@unixuser.org>
18309
18310 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
18311
183122008-05-02 Juri Linkov <juri@jurta.org>
18313
18314 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
18315 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
18316 DEFAULT argument as a list of default values in docstrings.
18317
183182008-05-01 Chong Yidong <cyd@stupidchicken.com>
18319
18320 * puresize.h (BASE_PURESIZE): Increase to 1210000.
18321
183222008-05-01 Martin Rudalics <rudalics@gmx.at>
18323
18324 * dispnew.c (change_frame_size_1): Preserve small windows when
18325 shrinking frames by calling set_window_height|width with third
18326 arg 2.
18327
18328 * window.h (struct window): Replace field too_small_ok by field
18329 resize_proportionally.
18330
18331 * window.c (make_window): Initialize resize_proportionally.
18332 (enlarge_window): Temporarily set resize_proportionally to make
18333 sure that shrink_windows does scale the window proportionally.
18334 (shrink_windows): When window has resize_proportionally set try
18335 to shrink it proportionally by stealing from other windows.
18336 (struct saved_window, Fset_window_configuration)
18337 (compare_window_configurations): Handle resize_proportionally.
18338 (WINDOW_TOTAL_SIZE): New macro.
18339 (window_min_size, shrink_windows, size_window): Use it.
18340 (check_min_window_sizes): Remove. Invalid values of
18341 window-min-height|width are handled by window_min_size_2 now.
18342 (size_window, Fsplit_window, enlarge_window)
18343 (adjust_window_trailing_edge, grow_mini_window): Don't call
18344 check_min_window_sizes.
18345 (window_min_size_2, window_min_size_1, window_min_size):
18346 New argument safe_p for retrieving "safe" minimum sizes.
18347 (Fdisplay_buffer, Fsplit_window, enlarge_window)
18348 (adjust_window_trailing_edge, grow_mini_window):
18349 Adjust arguments of window_min_size... functions.
18350 (shrink_windows): Argument min_size removed. New argument
18351 safe_p allows shrinking windows to their safe minimum sizes.
18352 Calculate minimum size and decide whether a window shall be
18353 deleted for each window individually.
18354 (size_window): When nodelete_p equals 2, tell shrink_windows to
18355 delete windows only if their new minimum size is no more safe.
18356 (shrink_window_lowest_first): Call window_min_size_1 to make
18357 sure to preserve modeline of bottom-most window when resizing
18358 the minibuffer.
18359 (Fset_window_configuration, Fcurrent_window_configuration)
18360 (compare_window_configurations): Do not handle
18361 window-min-height|width any more.
18362 (syms_of_window): Clarify window-min-height|width doc-strings.
18363
183642008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18365
18366 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18367 some more. Copy some of the code from Ftry_completions.
18368 Remove special case code that dates back to initial revision when the
18369 slash was only added when necessary and that can't trigger nowadays.
18370
183712008-04-27 Kenichi Handa <handa@m17n.org>
18372
18373 * font.c (font_prop_validate): Signal `error' instead of `font'.
18374
183752008-04-29 Jason Rumney <jasonr@gnu.org>
18376
18377 * w32fns.c (Fw32_battery_status): New defun.
18378 (syms_of_w32fns): Defsubr it.
18379
183802008-04-28 Andreas Schwab <schwab@suse.de>
18381
18382 * dired.c (file_name_completion): Fix another mixing of encoded
18383 and decoded names.
18384
183852008-04-28 Juanma Barranquero <lekktu@gmail.com>
18386
18387 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18388
183892008-04-27 Juanma Barranquero <lekktu@gmail.com>
18390
18391 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18392
183932008-04-27 Andreas Schwab <schwab@suse.de>
18394
18395 * dired.c (file_name_completion): Fix inappropriate mixing of
18396 encoded and decoded names.
18397
18398 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18399
18400 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18401
184022008-04-26 Eli Zaretskii <eliz@gnu.org>
18403
18404 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18405 2008-03-31, it's not needed anymore with `struct stat' definition
18406 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18407 for the same reasons.
18408
184092008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18410
18411 * m/sparc.h: Additional redefinitions for GNU/Linux.
18412
184132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18414
18415 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18416 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18417 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18418 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18419 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18420 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18421 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18422 Likewise.
18423
18424 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
18425 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
18426 (mac_ax_number_of_characters): Add externs.
18427 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18428 [USE_MAC_TSM]: Likewise.
18429 (mac_handle_text_input_event) [MAC_OSX]:
18430 Handle kEventTextInputOffsetToPos for no active input area case.
18431 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18432 (mac_handle_document_access_event)
18433 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
18434 (install_application_handler) [MAC_OSX]: Register handlers for
18435 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18436 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18437 Register mac_handle_document_access_event.
18438
18439 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
18440 Make functions non-static.
18441
184422008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
18443
18444 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
18445 (read_file_name_completion_ignore_case, insert_default_directory)
18446 (Qdefault_directory): Move to minibuffer.el.
18447 (Fread_file_name): Call the new `read-file-name' instead.
18448
184492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18450
18451 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
18452 Make function non-static.
18453 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
18454 Remove function.
18455 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18456 Move to mactoolbox.c.
18457 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18458
18459 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18460 (mac_rect_make): New macro.
18461
18462 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18463 instead of float.
18464 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18465 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18466 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18467 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18468 CGRectMake.
18469 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18470 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18471 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18472 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18473 instead of WindowRef in argument type.
18474 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18475 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18476 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18477 instead of DISPLAY. All uses changed.
18478 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18479 (x_calc_absolute_position): Simplify so as not to use
18480 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18481
18482 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18483 instead of WindowRef in argument type.
18484 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18485 [TARGET_API_MAC_CARBON]: Remove externs.
18486 (create_apple_event, mac_event_parameters_to_lisp)
18487 [TARGET_API_MAC_CARBON]: Add externs.
18488
18489 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18490 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18491 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18492 is clicked.
18493 (x_activate_menubar): Remove extern for saved_menu_event_location.
18494 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18495 Move from mac.c.
18496
184972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18498
18499 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18500 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18501
185022008-04-23 Jason Rumney <jasonr@gnu.org>
18503
18504 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18505 attributes only for local files.
18506
18507 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18508 default to Qlocal.
18509
185102008-04-22 Juri Linkov <juri@jurta.org>
18511
18512 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18513 read-buffer-to-switch instead of using the letter "B".
18514
185152008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18516
18517 * fileio.c (Qdefault_directory): New variable.
18518 (Fread_file_name): Use it to pass `dir' to the completion functions.
18519
185202008-04-20 Chong Yidong <cyd@stupidchicken.com>
18521
18522 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18523
185242008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18525
18526 * keyboard.c (Vpre_help_message): Remove.
18527 (show_help_echo): Remove default C code.
18528
18529 * dired.c (directory_files_internal, file_name_completion):
18530 Only call ENCODE_FILE if the string is indeed decoded.
18531
185322008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18533
18534 * Makefile.in (TOOLKIT_DEFINES): Remove.
18535 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18536
185372008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18538
18539 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18540 (mactoolbox.o): New target.
18541
18542 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18543 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18544
18545 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18546 Use mac_set_frame_window_background instead of XSetWindowBackground.
18547 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18548 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18549 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18550 instead of SetWindowTitleWithCFString.
18551 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18552 Move function to mactoolbox.c.
18553 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18554 Use mac_set_window_modified instead of SetWindowModified.
18555 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18556 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18557 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18558 FrontNonFloatingWindow. Use mac_activate_window instead of
18559 ActivateWindow. Use mac_active_non_floating_window instead of
18560 ActiveNonFloatingWindow.
18561 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18562 Use mac_show_hourglass and mac_hide_hourglass.
18563 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18564 instead of GetGlobalMouse.
18565 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18566 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18567 Use mac_bring_window_to_front instead of BringToFront.
18568 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18569 mactoolbox.c.
18570 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18571 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18572 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18573 mactoolbox.c.
18574
18575 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18576 (XtPointer): Move typedef from macmenu.c.
18577 (enum button_type): Move enum from macmenu.c.
18578 (widget_value): Move typedef from macmenu.c.
18579 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18580 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18581 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18582 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18583 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18584 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18585 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18586 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18587 (Selection): Move typedef from macselect.c.
18588 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18589 macterm.c.
18590 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18591 (mac_is_window_collapsed, mac_bring_window_to_front)
18592 (mac_send_window_behind, mac_hide_window, mac_show_window)
18593 (mac_collapse_window, mac_front_non_floating_window)
18594 (mac_active_non_floating_window, mac_activate_window)
18595 (mac_move_window_structure, mac_move_window, mac_size_window)
18596 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18597
18598 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18599 (enum mac_menu_kind): Move enum to mactoolbox.c.
18600 (min_menu_id): Move variable to mactoolbox.c.
18601 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18602 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18603 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18604 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18605 [TARGET_API_MAC_CARBON]: Likewise.
18606 (XtPointer): Move typedef to macgui.h.
18607 (enum button_type): Move enum to macgui.h.
18608 (widget_value): Move typedef to macgui.h.
18609 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18610 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18611 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18612 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18613 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18614 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18615 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18616 (popup_activated_flag): Make variable non-static.
18617 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18618 (add_menu_item, fill_menu, dispose_menus):
18619 Move functions to mactoolbox.c.
18620 (restore_show_help_function, menu_target_item_handler)
18621 (install_menu_target_item_handler, mac_handle_dialog_event)
18622 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18623 [TARGET_API_MAC_CARBON]: Likewise.
18624 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18625 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18626 (find_and_call_menu_selection, name_is_separator): Make function
18627 non-static.
18628 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18629 to mactoolbox.c.
18630 (set_frame_menubar): Don't call install_menu_quit_handler.
18631 (menu_item_selection): New variable.
18632 (mac_menu_show): Use create_and_show_popup_menu.
18633 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18634 selection but set variable menu_item_selection. All uses changed.
18635 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18636 Call install_menu_quit_handler. Move to mactoolbox.c.
18637
18638 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18639 (Selection): Move typedef to macgui.h.
18640 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18641 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18642 Make variables non-static.
18643 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18644 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18645 Make functions non-static.
18646 (Vmac_service_selection) [MAC_OSX]: Likewise.
18647 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18648 (mac_valid_selection_target_p, mac_clear_selection)
18649 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18650 (mac_put_selection_value, mac_selection_has_target_p)
18651 (mac_get_selection_value, mac_get_selection_target_list)
18652 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18653 Move functions to mactoolbox.c.
18654 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18655 Likewise.
18656 (copy_scrap_flavor_data, mac_handle_service_event)
18657 (install_service_handler) [MAC_OSX]: Likewise.
18658 (syms_of_macselect) <Vmac_dnd_known_types>:
18659 Use mac_dnd_default_known_types.
18660
18661 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18662 Move to mactoolbox.c.
18663 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18664 (Fx_selection_owner_p): Add EXFUN.
18665 (install_window_handler, remove_window_handler, XSetWindowBackground):
18666 Remove externs.
18667 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18668 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18669 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18670 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18671 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18672 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18673 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18674 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18675 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18676 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18677 (mac_valid_selection_target_p, mac_clear_selection)
18678 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18679 (mac_put_selection_value, mac_selection_has_target_p)
18680 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18681 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18682 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18683 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18684 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18685 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18686 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18687 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18688 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18689
18690 * mactoolbox.c: New file.
18691
186922008-04-18 Jason Rumney <jasonr@gnu.org>
18693
18694 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18695
186962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18697
18698 * character.c (Fmultibyte_char_to_unibyte):
18699 Return latin1 chars unchanged.
18700
18701 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18702 relocated if it points to `name'.
18703
187042008-04-17 Kenichi Handa <handa@m17n.org>
18705
18706 * data.c (Faset): Allow setting a multibyte character in an
18707 ASCII-only unibyte string.
18708
18709 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18710
187112008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18712
18713 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18714 done in config.h.
18715
187162008-04-16 Juanma Barranquero <lekktu@gmail.com>
18717
18718 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18719 (Fchar_direction): Add usage in the docstring.
18720
187212008-04-15 Chong Yidong <cyd@stupidchicken.com>
18722
18723 * keyboard.c (read_key_sequence): Remove always-true checks.
18724
187252008-04-14 Jason Rumney <jasonr@gnu.org>
18726
18727 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18728 compatibility struct, for better underline positioning.
18729
187302008-04-13 David Hansen <david.hansen@gmx.net>
18731
18732 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18733 string.
18734
187352008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18736
18737 * m/hp800.h (XUINT, XSET): Remove.
18738
187392008-04-12 Juanma Barranquero <lekktu@gmail.com>
18740
18741 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18742 previous change.
18743
187442008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18745
18746 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18747 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18748
187492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18750
18751 * keymap.h (map_keymap_canonical): Declare.
18752 * xmenu.c (single_keymap_panes): Use it.
18753
187542008-04-11 Glenn Morris <rgm@gnu.org>
18755
18756 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18757 set the target's value to that of the alias.
18758
187592008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18760
18761 * term.c (set_tty_color_mode): Left over typo.
18762
187632008-04-10 Michael Albinus <michael.albinus@gmx.de>
18764
18765 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18766 only after check for file name handler functions. Signal, when
18767 native functionality is not supported.
18768 (syms_of_fileio): Declare it unconditionally.
18769
187702008-04-10 Jason Rumney <jasonr@gnu.org>
18771
18772 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18773 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18774
18775 * w32.c (logon_network_drive): Also logon to remote drives that
18776 are mapped to drive letters.
18777
187782008-04-10 Glenn Morris <rgm@gnu.org>
18779
18780 * xdisp.c (truncate-partial-width-windows): Doc fix.
18781
187822008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18783
18784 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18785 Move functions to minibuffer.el.
18786 (syms_of_fileio): Don't declare them.
18787
187882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18789
18790 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18791 (syms_of_minibuf): Remove its initialization.
18792
18793 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18794
187952008-04-09 Juanma Barranquero <lekktu@gmail.com>
18796
18797 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18798
187992008-04-09 Jason Rumney <jasonr@gnu.org>
18800
18801 * makefile.w32-in (distclean): Delete makefile too.
18802 (maintainer-clean): New target.
18803
18804 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18805
18806 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18807 for new font backend and composite cases.
18808
188092008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18810
18811 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18812 Most of the code moved to run_timers.
18813 (do_pending_atimers): Call run_timers.
18814 (run_timers): New function.
18815
18816 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18817 run atimers.
18818
18819 * process.c (wait_reading_process_output): The same as above.
18820
188212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18822
18823 * minibuf.c (last_exact_completion): Remove variable.
18824 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18825 (complete_and_exit_1, complete_and_exit_2)
18826 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18827 (Fdisplay_completion_list, display_completion_list_1)
18828 (Fminibuffer_completion_help, Fself_insert_and_exit)
18829 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18830 minibuffer.el.
18831 (syms_of_minibuf): Remove corresponding initializations.
18832
18833 * keyboard.c (Qdeactivate_mark): New var.
18834 (command_loop_1): Use it to call `deactivate-mark'.
18835 (syms_of_keyboard): Initialize it.
18836
18837 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18838 to another frame.
18839 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18840 Don't call set_tty_color_mode.
18841 (store_frame_param): Reset previous_frame rather than call
18842 set_tty_color_mode.
18843 * term.c (set_tty_color_mode): Rewrite.
18844 * dispextern.h (set_tty_color_mode): New type.
18845 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18846
188472008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18850 for generic chars, which do not exist any more in emacs-unicode.
18851
188522008-04-08 Michael Albinus <michael.albinus@gmx.de>
18853
18854 * coding.c (detect_coding_emacs_mule)
18855 (Ffind_operation_coding_system): Fix typo.
18856
188572008-04-08 Jason Rumney <jasonr@gnu.org>
18858
18859 * w32uniscribe.c (SNAME): Extract only symbol name.
18860
18861 * w32font.h (struct w32_metric_cache): New struct.
18862 (w32font_info): Use it.
18863 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18864 (CACHE_BLOCKSIZE): New constants.
18865
18866 * w32font.c (Qja, Qko, Qzh): New symbols.
18867 (syms_of_w32font): Initialise them.
18868 (font_matches_spec): Use them to filter by language.
18869 (recompute_cached_metrics): Remove function.
18870 (compute_metrics, clear_cached_metrics): New functions.
18871 (w32font_encode_char): Use them to manage metric cache.
18872 (w32font_text_extents): Cache metrics for all glyphs on demand.
18873 Delay converting glyph indices to WORD until needed.
18874 (w32font_open_internal): Initialize metric cache to empty.
18875 (registry_to_w32_charset): Charset should always be a symbol.
18876 (fill_in_logfont, list_all_matching_fonts): Family should
18877 always be a symbol.
18878
188792008-04-06 Jason Rumney <jasonr@gnu.org>
18880
18881 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18882 Give up if glyph indices not supported. Use uniscribe obtained
18883 ABC widths for individual metrics. Map glyph clusters back to
18884 characters using fClusterStart flag. Return number of glyphs
18885 produced, not chars processed.
18886 (uniscribe_shape): Map char at FROM to current glyph.
18887
188882008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18889
18890 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18891 Use SetMenuItemHierarchicalMenu.
18892
188932008-04-05 Jason Rumney <jasonr@gnu.org>
18894
18895 * image.c (pbm_load): Allow color values up to 65535.
18896 Throw an error if max_color_idx is outside the supported range.
18897 Report an error when image size is invalid.
18898 Read two bytes at a time when raw images have max_color_idx above 255.
18899
aac0c6e3
MR
189002008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18901
18902 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18903 append "CCL: Quitted" when the CCL program is quitted.
18904 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18905
18906 * ccl.h (struct ccl_program): New member quit_silently.
18907
189082008-04-05 Chong Yidong <cyd@stupidchicken.com>
18909
18910 * search.c (compile_pattern_1): Treat non-nil and non-string of
18911 search-spaces-regexp as nil.
18912
18913 * minibuf.c (Fassoc_string): Tweak docstring.
18914
189152008-04-05 Eli Zaretskii <eliz@gnu.org>
18916
18917 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18918 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18919 2008-03-14 to force inode be positive.
18920
18921 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18922 _S_* ones, since we now use our own sys/stat.h.
18923 (stat, fstat): Don't mangle the inode number.
18924 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18925
189262008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18927
18928 * frame.h (struct frame): Give one more bit to `visible' since we use
18929 values larger than 1 to indicate obscured frames on ttys.
18930
18931 * keymap.c (Qkeymap_canonicalize): New var.
18932 (Fmap_keymap_internal): New fun.
18933 (describe_map): Use keymap-canonicalize.
18934
18935 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18936 (Fundo_boundary): Set them.
18937 (syms_of_undo): Initialize them.
18938 (record_point): Use them instead of last_point_position*.
18939 (last_undo_buffer): Change type.
18940
189412008-04-04 Jason Rumney <jasonr@gnu.org>
18942
18943 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18944 (recompute_cached_metrics): Don't set ascent and descent per char.
18945
18946 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18947 (uniscribe_check_otf): Add GC protection before consing.
18948 Rearrange loop for counting features.
18949
189502008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18953 buffer with byte-size of source buffer.
18954
189552008-04-03 Chong Yidong <cyd@stupidchicken.com>
18956
18957 * callint.c (Fcall_interactively): Handle temporary region even
18958 when shift-select-mode is off.
18959
189602008-04-03 Jason Rumney <jasonr@gnu.org>
18961
18962 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18963
189642008-04-03 Kenichi Handa <handa@m17n.org>
18965
18966 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18967 (CATEGORY_MASK_UTF_16): Likewise.
18968 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18969 binary file.
18970 (detect_coding): Add null-byte detection for a binary file.
18971 (detect_coding_system): Likewise.
18972
189732008-04-03 Jason Rumney <jasonr@gnu.org>
18974
18975 * w32uniscribe.c: New file.
18976
18977 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18978
18979 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18980
18981 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18982 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18983 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18984 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18985 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18986 (Qphonetic): New symbols.
18987 (syms_of_w32font): Initialize them.
18988 (font_supported_scripts): Use them.
18989 (w32font_list_family): List all charsets.
18990 (w32font_text_extents, recompute_cached_metrics): Fix metric
18991 calculations.
18992 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18993 Give opentype fonts their own format.
18994 (font_matches_spec): New arguments backend and logfont.
18995 Handle :otf spec for uniscribe backend.
18996 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18997 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18998
18999 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
19000 font backend.
19001 (globals_of_w32fns): Initialize uniscribe font backend.
19002
19003 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
19004 dependencies.
19005 (w32uniscribe.$(O)): New file to build.
19006 (FONT_OBJ): Include w32uniscribe.$(O).
19007 (LIBS): Add uniscribe libraries.
19008
19009 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
19010
190112008-04-02 Chong Yidong <cyd@stupidchicken.com>
19012
19013 * callint.c (Vshift_select_mode): New var.
19014 (Finteractive): Document new ^ spec.
19015 (Fcall_interactively): Call handle-shift-selection if the ^ spec
19016 is present.
19017
19018 * keyboard.c (Vthis_command_keys_shift_translated): New var.
19019 (command_loop_1): Avoid running the direct display versions of
19020 forward-char and backward-char if shift-selection may occur.
19021 (read_key_sequence): Set Vthis_command_keys_shift_translated if
19022 shift-translation takes place.
19023
19024 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
19025 avoid clobbering by define-minor-mode.
19026
19027 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
19028 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
19029
19030 * syntax.c (Fforward_word): Add ^ interactive spec.
19031
19032 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
19033 (Fscroll_right): Add ^ interactive spec.
19034
190352008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
19036
19037 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
19038
19039 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
19040
19041 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
19042
190432008-03-31 Juri Linkov <juri@jurta.org>
19044
19045 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
19046
190472008-03-30 Jan Djärv <jan.h.d@swipnet.se>
19048
19049 * gtkutil.c (xg_set_geometry): Fix indentation.
19050 (xg_resize_outer_widget): Remove.
19051 (x_wm_size_hint_off): Fix indentation.
19052 (xg_frame_set_char_size): Call flush_and_sync after
19053 gtk_window_resize.
19054 (x_wm_set_size_hint): Pass NULL as geometry window to
19055 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
19056 Add menu bar and tool bar height to base height.
19057 (xg_update_frame_menubar, free_frame_menubar)
19058 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
19059 (update_frame_tool_bar, free_frame_tool_bar):
19060 Change xg_resize_outer_widget to xg_frame_set_char_size.
19061
190622008-03-30 Michael Albinus <michael.albinus@gmx.de>
19063
19064 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
19065 (Fdbus_call_method): New parameter TIMEOUT.
19066 (dbus-send-signal): Optimize UNGCPRO call.
19067
190682008-03-29 Juri Linkov <juri@jurta.org>
19069
19070 * window.c (Fdisplay_buffer): Move call to
19071 Vsplit_window_preferred_function out of conditions that check
19072 if window is eligible for vertical splitting.
19073 When Vsplit_window_preferred_function is non-nil, call it and use
19074 its non-nil return value as window. Otherwise, continue doing
19075 vertical splitting using Fsplit_window with arg horflag=nil.
19076 (syms_of_window) <Vsplit_window_preferred_function>: Change the
19077 default value from `split-window' to nil.
19078
190792008-03-29 Juri Linkov <juri@jurta.org>
19080
19081 * callint.c (Fcall_interactively): Revert 2008-03-16 change
19082 for interactive code letters 'b' and 'B'.
19083
190842008-03-29 Eli Zaretskii <eliz@gnu.org>
19085
19086 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
19087 multibyte string.
19088
190892008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * keyboard.c (pending_funcalls): New var.
19092 (timer_check): Run it.
19093 (syms_of_keyboard): Initialize it.
19094 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
19095 (Vdelete_terminal_functions): New vars.
19096 (syms_of_terminal): Initialize them.
19097 (Fdelete_terminal): Run delete-terminal-functions.
19098 * xdisp.c (safe_eval): Rewrite.
19099 (safe_call2): New fun.
19100 * frame.c (Qdelete_frame_functions): New var.
19101 (syms_of_frame): Initialize it.
19102 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
19103 * lisp.h (safe_call2, pending_funcalls): Declare.
19104
191052008-03-28 Andreas Schwab <schwab@suse.de>
19106
19107 * indent.c (Fmove_to_column): Move declaration before statements.
19108
191092008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
19110
19111 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
19112 (struct frame): Use bit fields for boolean vars.
19113
19114 * process.c (server_accept_connection): Simplify naming.
19115 (emacs_get_tty_pgrp): Use SDATA.
19116
19117 * coding.c (decode_coding_object): Fix last change.
19118
191192008-03-27 Jason Rumney <jasonr@gnu.org>
19120
19121 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
19122
191232008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
19124
19125 * charset.c (Fdefine_charset_internal): Change the way of
19126 registering charsets in Vcharset_order_list.
19127 (syms_of_charset): Make the charset `eight-bit' supplementary.
19128
191292008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
19130
19131 * regex.c (EXTEND_BUFFER): Change order of pointer addition
19132 operations, to avoid having the difference between pointers
19133 overflow.
19134
191352008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
19136
19137 * indent.c (check_display_width): New fun.
19138 (scan_for_column): Use it.
19139
19140 * data.c (syms_of_data): Mark most-positive-fixnum and
19141 most-negative-fixnum as constants.
19142
19143 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
19144
19145 * indent.c (scan_for_column): Extract from current_column_1.
19146 Merge with the same code from Fmove_to_column.
19147 (current_column_1, Fmove_to_column): Use it.
19148
191492008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
19150
19151 * keymap.c (map_keymap_internal): New fun.
19152 (map_keymap): Use it.
19153 (Fmap_keymap_internal): New fun.
19154 (Fmap_keymap): Remove left-out test from before make_save_value.
19155
19156 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
19157
19158 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
19159 Use XCAR/XCDR.
19160
19161 * process.h (struct Lisp_Process): Remove filter_multibyte.
19162 * process.c (QCfilter_multibyte): Remove.
19163 (setup_process_coding_systems): Don't use filter_multibyte.
19164 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
19165 (read_process_output): Don't adjust multibyteness to filter_multibyte.
19166 (Fset_process_filter_multibyte): Change the coding-system to
19167 approximate the previous behavior.
19168 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
19169 coding-system.
19170
19171 * coding.c (decode_coding_object): When not decoding into a buffer,
19172 obey the coding system's preference of (uni|multi)byte.
19173
191742008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
19175
19176 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
19177 every char is changed and has a different byte-length.
19178 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
19179 Fix int -> EMACS_INT.
19180
191812008-03-23 David Hansen <david.hansen@gmx.net>
19182
19183 * dbusbind.c (xd_read_message): Remove extra copying of message
19184 strings. Check for NULL `interface' or `member'.
19185
191862008-03-22 Eli Zaretskii <eliz@gnu.org>
19187
19188 * w32.c (readdir): If FindFirstFile/FindNextFile return in
19189 cFileName a file name that includes `?' characters, use the 8+3
19190 alias in cAlternateFileName instead.
19191
191922008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
19193
19194 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
19195
191962008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
19199 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
19200 work on current_buffer only instead (that was already the case
19201 for some of the code anyway).
19202 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
19203 (temp_set_point, temp_set_point_both): Use EMACS_INT.
19204 (SET_PT, SET_PT_BOTH): Adjust.
19205 * intervals.h (set_point, temp_set_point, set_point_both)
19206 (temp_set_point_both): Remove redundant declarations.
19207
192082008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
19209
19210 * fileio.c (Finsert_file_contents):
19211 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
19212 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
19213 when buffer != current_buffer anyway.
19214
192152008-03-20 Andreas Schwab <schwab@suse.de>
19216
19217 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
19218 as default.
19219
192202008-03-19 Jason Rumney <jasonr@gnu.org>
19221
19222 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
19223 (syms_of_w32fns): Initialize them.
19224 (HOURGLASS_ID): New constant.
19225 (x_window_to_frame): Don't check hourglass_window.
19226 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
19227 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
19228 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
19229 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
19230 Only change the cursor if hourglass is not active.
19231 (Fx_create_frame): Initialize frame's current_cursor.
19232 (hourglass_atimer): Remove.
19233 (hourglass_started): New function.
19234 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
19235 (show_hourglass): Adapt to w32, changing argument to frame.
19236
19237 * w32term.h (struct w32_output): Remove hourglass_window.
19238 Add current_cursor.
19239
19240 * eval.c (call_debugger, Fsignal):
19241 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19242 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19243 (Fexecute_extended_command, cancel_hourglass_unwind):
19244 * minibuf.c (read_minibuf):
19245 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19246
192472008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
19248
19249 * window.c (run_funs): New fun.
19250 (run_window_configuration_change_hook): Use it to run the buffer-local
19251 and the global part of the hook.
19252
19253 * xdisp.c (format_mode_line_unwind_data): Add window argument.
19254 (unwind_format_mode_line): Restore selected window.
19255 (x_consider_frame_title, Fformat_mode_line): Set selected window.
19256
192572008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
19258
19259 * editfns.c (Fchar_equal): Check they are valid characters.
19260
19261 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
19262
192632008-03-17 Andreas Schwab <schwab@suse.de>
19264
19265 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
19266 against a charset.
19267
19268 * lisp.h (Fbuffer_list): Declare.
19269
192702008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 19271
aac0c6e3
MR
19272 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
19273 handlebox_widget is != 0.
19274
192752008-03-16 Juri Linkov <juri@jurta.org>
19276
19277 * callint.c (Fcall_interactively): For interactive code letters
19278 'b' and 'B' put the buffer list into the list of default "future"
19279 values of the minibuffer.
19280
192812008-03-16 Andreas Schwab <schwab@suse.de>
19282
19283 * keyboard.c (read_key_sequence): Fix downcasing of letters with
19284 modifiers.
19285
19286 * regex.c (re_match_2_internal): Correct matching of a charset
19287 against latin-1 characters.
19288
192892008-03-16 Kenichi Handa <handa@m17n.org>
19290
19291 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
19292 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
19293 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
19294 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
19295 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
19296 CHAR_STRING_ADVANCE.
19297 (produce_chars): Fix for the case that the source and the
19298 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
19299 instead of CHAR_STRING_ADVANCE.
19300 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
19301 STRING_CHAR_ADVANCE.
19302
193032008-03-15 Andreas Schwab <schwab@suse.de>
19304
19305 * regex.c (re_match_2_internal): Correct matching of eight bit
19306 characters in unibyte strings.
19307
193082008-03-15 Martin Rudalics <rudalics@gmx.at>
19309
19310 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
19311 at end of range when it coincides with the end of the buffer.
19312
193132008-03-14 Eli Zaretskii <eliz@gnu.org>
19314
19315 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
19316
19317 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
19318
193192008-03-14 Jason Rumney <jasonr@gnu.org>
19320
19321 * editfns.c (initial_tz): New variable.
19322 (syms_of_editfns): Initialize it.
19323 (Fset_time_zone_rule): Set it when first called.
19324 Use it when TZSTRING is nil.
19325
19326 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
19327 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
19328 (monitor_from_point_fn, get_monitor_info_fn): New globals.
19329 (globals_of_w32fns): Initialize them.
19330 (compute_tip_xy): Use them to position tooltips.
19331
193322008-03-14 Glenn Morris <rgm@gnu.org>
19333
19334 * emacs.c (main): Revert previous change.
19335 (standard_args): Revert -internal-script back to -scriptload,
19336 and remove the long-option form.
19337
193382008-03-13 Glenn Morris <rgm@gnu.org>
19339
19340 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
19341 Remove option -enable-font-backend.
19342
193432008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
19344
19345 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
19346
193472008-03-11 Jan Djärv <jan.h.d@swipnet.se>
19348
19349 * xterm.c (x_connection_closed): For GTK: If this is the last
19350 terminal just exit without closing the display.
19351
193522008-03-11 Jason Rumney <jasonr@gnu.org>
19353
19354 * w32font.c (w32font_full_name): Use floor to round.
19355
f0131492 193562008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
19357
19358 * sound.c (alsa_configure): Declare vol at beginning of block.
19359
19360 * fontset.c (Ffontset_info): Remove extra semicolon.
19361
193622008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19363
19364 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19365 size of resulting string.
19366
193672008-03-10 Jason Rumney <jasonr@gnu.org>
19368
19369 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19370
193712008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19372
19373 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19374 Don't pretend as if characters with display property haven't been
19375 consumed for string-replacing-string case.
19376
193772008-03-08 Kim F. Storm <storm@cua.dk>
19378
19379 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19380 (get_next_display_element, next_element_from_string)
19381 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19382
193832008-03-08 Andreas Schwab <schwab@suse.de>
19384
19385 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19386
193872008-03-06 Jason Rumney <jasonr@gnu.org>
19388
19389 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19390 when charset not specified. Only translate ANSI to unicode when
19391 font_type is truetype.
19392 (w32font_coverage_ok): New function.
19393 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19394
193952008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19396
19397 * lread.c (Fread_char): Resolve modifiers.
19398 (Fread_char_exclusive): Likewise.
19399
19400 * character.c (char_resolve_modifier_mask): New function.
19401 (char_string): Use char_resolve_modifier_mask.
19402 (Fchar_resolve_modifiers): New function.
19403 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19404 function.
19405
194062008-03-04 Jason Rumney <jasonr@gnu.org>
19407
19408 * makefile.w32-in: Always include w32font.c in the build.
19409 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19410
194112008-03-04 Andreas Schwab <schwab@suse.de>
19412
19413 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19414 (versionclean): Likewise.
19415
194162008-03-04 Juanma Barranquero <lekktu@gmail.com>
19417
19418 * .cvsignore: Add oo.
19419
194202008-03-03 Andreas Schwab <schwab@suse.de>
19421
19422 * coding.c (decode_coding_object): Inhibit gap shrinking while
19423 decoding in place.
19424
194252008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
19426
19427 * w32term.c: Remove unused include "gnu.h".
19428 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
19429
19430 * gnu.h: Rename to ...
19431 * emacs-icon.h: ... this.
19432 * xterm.c: Use emacs-icon.h instead of gnu.h.
19433 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
19434
194352008-03-03 Juanma Barranquero <lekktu@gmail.com>
19436
19437 * w32font.c: Include math.h.
19438
194392008-03-03 Jason Rumney <jasonr@gnu.org>
19440
19441 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
19442 Compute options separately.
19443 (w32font_open_internal): Set glyph_idx before caching metrics.
19444
19445 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
19446 Define if system headers don't.
19447 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
19448 (w32font_encode_char): Don't declare here.
19449
19450 * w32font.c (Quniscribe, QCformat): New symbols.
19451 (syms_of_w32font): Define them.
19452 (w32font_has_char): Indicate uncertainty.
19453 (w32font_encode_char): Encode as glyph point. Make static.
19454 (recompute_cached_metrics): New function.
19455 (w32font_open_internal): Use it. Set font to use glyph points
19456 initially. Set format based on type of font.
19457 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19458 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19459 on it. Set format based on information available here.
19460 (add_font_entity_to_list): Identify backend based on opentype_only.
19461
194622008-03-02 Andreas Schwab <schwab@suse.de>
19463
19464 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19465
19466 * coding.c (decode_coding_big5, produce_chars):
19467 Fix typos in last change.
19468
194692008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19470
19471 * gnu.h: New icon.
19472
194732008-03-02 Kenichi Handa <handa@m17n.org>
19474
19475 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19476 `dos', don't decode '\r' if that is the last in the source.
19477 (decode_coding_utf_16, decode_coding_emacs_mule)
19478 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19479 (decode_coding_raw_text, decode_coding_charset): Likewise.
19480 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19481
194822008-03-01 Jason Rumney <jasonr@gnu.org>
19483
19484 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19485
194862008-03-01 Kim F. Storm <storm@cua.dk>
19487
19488 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19489
194902008-03-01 Jason Rumney <jasonr@gnu.org>
19491
19492 * w32font.c (w32font_full_name): New function.
19493 (w32font_open_internal): Use it.
19494
194952008-03-01 Kim F. Storm <storm@cua.dk>
19496
19497 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19498
194992008-03-01 Jason Rumney <jasonr@gnu.org>
19500
19501 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19502
195032008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19504
19505 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19506 xg_frame_resized when the event is for the edit widget.
19507
19508 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19509
19510 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19511 set_char_size.
19512 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19513 operations on widgets here. Just set frame size if needed.
19514 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19515 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19516 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19517 the whole frame.
19518 (xg_create_tool_bar): Move attachment of the tool bar to
19519 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19520 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19521
195222008-03-01 Jason Rumney <jasonr@gnu.org>
19523
19524 * w32fns.c (w32_msg_pump): Disable debug code.
19525
195262008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19527
19528 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19529
195302008-02-29 Chong Yidong <cyd@stupidchicken.com>
19531
19532 * xdisp.c (next_overlay_string): Don't set
19533 overlay_strings_at_end_processed_p if we're currently reading from
19534 a display string.
19535
195362008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19537
19538 * xdisp.c (get_overlay_strings_1): Fix typo.
19539
195402008-02-29 Chong Yidong <cyd@stupidchicken.com>
19541
19542 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19543
195442008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19545
19546 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19547
19548 * xdisp.c (display_mode_element): Cancel the previous change.
19549 (decode_mode_spec): Likewise.
19550 (handle_auto_composed_prop): Don't make composition if it->string
19551 is a string.
19552
195532008-02-27 Kim F. Storm <storm@cua.dk>
19554
19555 * lisp.h (GLYPH): Change type from int to struct with separate char
19556 and face_id members.
19557 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19558 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19559 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19560 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19561 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19562 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19563 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19564 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19565 handle new Lisp glyph code encoding, either an integer or a cons.
19566
19567 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19568 (GLYPH_ALIAS): Delete.
19569 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19570 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19571 (GLYPH_FROM_CHAR): Replace macro by ...
19572 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19573
19574 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19575 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19576 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19577 (GLYPH_INVALID_P): New macro.
19578 (spec_glyph_lookup_face): Update prototype.
19579
19580 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19581 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19582 new glyph code encoding.
19583 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19584 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19585
19586 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19587 Adapt to new glyph type and new glyph code encoding.
19588
19589 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19590
19591 * indent.c (current_column, current_column_1, Fmove_to_column)
19592 (compute_motion): Adapt to new glyph code encoding.
19593
19594 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19595
195962008-02-27 Chong Yidong <cyd@stupidchicken.com>
19597
19598 * process.c (wait_reading_process_output): Check for window
19599 changes caused by timers.
19600 Suggested by Johan Bockgård.
19601
196022008-02-27 Glenn Morris <rgm@gnu.org>
19603
19604 * emacs.c (USAGE1): Add `--disable-font-backend'.
19605
196062008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19607
19608 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19609 is made to the buffer.
19610
196112008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19612
19613 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19614 (face_at_string_position):
19615 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19616 (face_at_string_position):
19617 * xdisp.c (display_string, next_overlay_change):
19618 * buffer.h (overlays_at):
19619 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19620 Update callers.
19621
196222008-02-26 Chong Yidong <cyd@stupidchicken.com>
19623
19624 * editfns.c (Fformat): Doc fix.
19625
196262008-02-26 Juanma Barranquero <lekktu@gmail.com>
19627
19628 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19629 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19630 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19631
196322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19633
19634 * buffer.c (Fbuffer_swap_text): New function.
19635 (syms_of_buffer): Defsubr it.
19636
196372008-02-25 Chong Yidong <cyd@stupidchicken.com>
19638
19639 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19640
196412008-02-25 Jason Rumney <jasonr@gnu.org>
19642
19643 * w32font.c (w32font_draw): Draw one character at a time when padding.
19644
196452008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19646
19647 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19648 Handle a nil arg. Use run_window_configuration_change_hook.
19649 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19650 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19651 Use run_window_configuration_change_hook.
19652
196532008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19654
19655 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19656 1-pixel width.
19657
196582008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19659
19660 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19661 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19662 if the glyph in the font is zero pixel with.
19663
19664 * dispextern.h (struct glyph_string): New member padding_p.
19665
19666 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19667
19668 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19669
19670 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19671
19672 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19673
19674 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19675
196762008-02-25 Jason Rumney <jasonr@gnu.org>
19677
19678 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19679
196802008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19681
19682 Allow fine-grained image-cache flushing.
19683 * dispextern.h (struct image): Add `dependencies' field.
19684 (clear_image_caches): Change arg to Lisp_Object.
19685 * image.c (make_image): Initialize `dependencies' field.
19686 (clear_image_cache): Change arg to allow fine-grained flushing.
19687 Perform the flush even if image-cache-eviction-delay is nil.
19688 (clear_image_caches): Change arg to Lisp_Object.
19689 (Fclear_image_cache): Expand meaning of the argument.
19690 (mark_image): Mark `dependencies' field.
19691 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19692 (lface_hash): Use XHASH rather than XFASTINT.
19693 (face_at_buffer_position): Fix int -> EMACS_INT position.
19694 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19695 (select_frame_for_redisplay): Remove code duplication.
19696 (redisplay_internal): Adapt arg to call to clear_image_caches.
19697
196982008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19699
19700 * s/vms4-0.h:
19701 * s/vms4-2.h:
19702 * s/vms4-4.h:
19703 * s/vms5-5.h: Remove, unused.
19704
19705 * s/irix5-2.h:
19706 * s/irix6-0.h:
19707 * s/riscos5.h:
19708 * s/mach-bsd4-3.h:
19709 * m/mips4.h: Remove files for obsolete systems.
19710
19711 * Makefile.in:
19712 * filelock.c:
19713 * unexmips.c:
19714 * m/hp9000s300.h:
19715 * m/iris4d.h:
19716 * s/aix3-1.h:
19717 * s/hpux.h:
19718 * s/msdos.h:
19719 * s/usg5-0.h:
19720 * s/usg5-2-2.h:
19721 * s/usg5-2.h:
19722 * s/usg5-3.h: Remove references to obsolete variables.
19723
19724 * s/irix5-0.h: Remove, move all the contents ...
19725 * s/irix6-5.h: ... here. Simplify.
19726 * config.in: Regenerate.
19727
197282008-02-24 Jason Rumney <jasonr@gnu.org>
19729
19730 * w32term.c (x_draw_glyph_string_background): Clear the background
19731 manually when cleartype is in use.
19732 (x_draw_glyph_string_foreground): Draw text transparently when
19733 cleartype is in use.
19734
19735 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19736 a font into it unless we have to.
19737
197382008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19739
19740 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19741 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 19742
aac0c6e3
MR
197432008-02-18 Jason Rumney <jasonr@gnu.org>
19744
19745 * w32fns.c (Fw32_shell_execute): Encode parameters.
19746
197472008-02-09 Eli Zaretskii <eliz@gnu.org>
19748
19749 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19750
197512008-02-05 Juanma Barranquero <lekktu@gmail.com>
19752
19753 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19754
197552008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19756
19757 * xterm.c (x_set_offset): Don't change the gravity if
19758 CHANGE_GRAVITY is -1.
19759
197602008-02-23 Chong Yidong <cyd@stupidchicken.com>
19761
19762 * fileio.c (auto_save_error_occurred): New var.
19763 (auto_save_error): Set it.
19764 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19765 error occurred.
19766
197672008-02-23 Eli Zaretskii <eliz@gnu.org>
19768
19769 * w32.c (globals_of_w32): Add initializations for
19770 g_b_init_get_sid_sub_authority and
19771 g_b_init_get_sid_sub_authority_count.
19772
197732008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19774
19775 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19776 (font_parse_xlfd): Use them for sanity check.
19777 (Finternal_set_font_style_table): Make sure the table is bijective.
19778
19779 Consolidate the image_cache to the terminal struct.
19780 * termhooks.h (P_): Remove redundant def.
19781 (struct terminal): New field `image_cache'.
19782 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19783 of FRAME_X_IMAGE_CACHE.
19784 * xterm.h (struct x_display_info): Remove image_cache field.
19785 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19786 * w32term.h (struct w32_display_info): Remove image_cache field.
19787 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19788 * macterm.h (struct mac_display_info): Remove image_cache field.
19789 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19790 * xterm.c (x_term_init):
19791 * w32term.c (w32_term_init):
19792 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19793 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19794 Remove declarations.
19795 (clear_image_caches, mark_image_cache): New declarations.
19796 * xfaces.c (clear_face_cache):
19797 * xdisp.c (redisplay_internal): Use clear_image_caches.
19798 * image.c (clear_image_cache): Don't check that a frame is on
19799 a window-system before checking if it shares the same cache.
19800 (clear_image_caches): New function.
19801 (Fclear_image_cache): Use it.
19802 (mark_image): Move from allo.c.
19803 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19804 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19805 (mark_object): Don't call mark_image_cache for frames.
19806 (mark_terminals): Call mark_image_cache.
19807
19808 * lisp.h (Fdelete_terminal): Declare.
19809
19810 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19811 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19812 wrong_type_argument.
19813
198142008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19815
19816 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19817 malayalam.el, and tamil.el. Add sinhala.el.
19818
198192008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19820
19821 * xterm.c (x_connection_closed): Consolidate identical tests.
19822 (x_delete_terminal): Don't crash if called via x_connection_closed.
19823
198242008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19825
19826 * xdisp.c (decode_mode_spec): New arg string.
19827 (display_mode_element): Adjust for the above change.
19828
198292008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19830
19831 * callint.c (Fcall_interactively): Use AREF.
19832
198332008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19834
19835 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19836
198372008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19838
19839 * xfns.c (Fx_show_tip): Set string to " " if empty.
19840
198412008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19842
19843 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19844 with Qt.
19845
198462008-02-17 Kenichi Handa <handa@m17n.org>
19847
19848 * ftfont.c (ftfont_shape): Return Lispy number.
19849
19850 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19851 for GCs.
19852 (Finternal_set_font_selection_order): Call font_update_sort_order
19853 only when enable_font_backend is set.
19854 (realize_x_face): Set face->font_info to that of default face only
19855 when enable_font_backend is set.
19856
19857 * xdisp.c (handle_composition_prop): Set it->c to the fist
19858 character of the composed region.
19859 (fill_composite_glyph_string): Set base_face->font_info to
19860 s->font_info. Get a face for ascii from base_face->ascii_face.
19861 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19862 with a face already decided.
19863 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19864 non-negative.
19865 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19866 call font_prepare_composition unconditionally.
19867
19868 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19869
19870 * xterm.h (struct x_display_info): New member font.
19871
19872 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19873 (x_set_mouse_face_gc, x_new_font): Likewise.
19874 (x_term_init): Setup display_info->font.
19875 (x_delete_terminal): Free display_info->font.
19876
19877 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19878
19879 * ftxfont.c (ftxfont_default_fid): Delete it.
19880 (ftxfont_open): Set xfont->fid to 0.
19881 (ftxfont_end_for_frame): Clear data specific to the frame and the
19882 font-driver.
19883
19884 * xftfont.c (xftfont_default_fid): Delete it.
19885 (xftfont_open): Set xfont->fid to 0.
19886
19887 * fontset.c (FONTSET_OBJLIST): New macro.
19888 (fontset_find_font): Update font-object list of the fontset.
19889 (free_realized_fontset): New function.
19890 (free_face_fontset): Call free_realized_fontset.
19891 (Ffont_info): Call font_close_object only when enable_font_backend
19892 is set.
19893
19894 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19895 [HAVE_NTGUI]: Include w32term.h.
19896 [MAC_OS]: Include macterm.ch.
19897 (font_otf_ValueRecord): Use make_number.
19898 (font_finish_cache): Fix handling of reference count.
19899 (font_clear_cache): Update num_fonts.
19900 (font_open_entity): Update smallest_char_width and
19901 smallest_font_height of the frame.
19902 (font_close_object): Update num_fonts.
19903 (Fclear_font_cache): Fix finding the target cache data.
19904
199052008-02-16 Glenn Morris <rgm@gnu.org>
19906
19907 * fontset.c (Finternal_char_font): Fix compilation warning.
19908
199092008-02-16 Eli Zaretskii <eliz@gnu.org>
19910
19911 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19912 instead of char arrays. Enlarge the size of array passed to
19913 get_token_information.
19914
19915 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19916 warnings.
19917
199182008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19919
19920 * .gdbinit: Don't set `args', it breaks gdb --args.
19921
199222008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19923
19924 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19925 within a narrowed buffer.
19926
199272008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19928
19929 * coding.c (decode_coding_object, encode_coding_object):
19930 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19931
199322008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19933
19934 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19935 hardcoding 1.
19936 (detect_coding_system):
19937 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19938 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19939 * insdel.c (insert_from_gap):
19940 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19941 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19942 (string_to_multibyte):
19943 * character.c (chars_in_text, multibyte_chars_in_text):
19944 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19945
19946 * character.h (FETCH_STRING_CHAR_ADVANCE)
19947 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19948 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19949 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19950
19951 * casefiddle.c (casify_region): Only call after-change and composition
19952 functions on the part of the region that was changed.
19953
19954 * keyboard.c (read_avail_input):
19955 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19956
199572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19958
19959 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19960 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19961
199622008-02-11 Juanma Barranquero <lekktu@gmail.com>
19963
19964 * w32menu.c (push_submenu_start, push_submenu_end)
19965 (push_left_right_boundary, push_menu_pane, push_menu_item):
19966 * keyboard.c (read_key_sequence): Don't pass args with side effects
19967 to AREF, it fails when compiling with -DENABLE_CHECKING.
19968
199692008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19970
19971 * Makefile.in (${lispsource}international/charprop.el):
19972 Delete this target.
19973
19974 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19975 emacs-unicode-2.
19976
199772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19980
199812008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19982
19983 * frame.c (Qnoelisp): New symbol.
19984 (syms_of_frame): Initialize it.
19985 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19986 harmless Elisp code, from a strong `force' from x_connection_closed.
19987 * frame.h (Qnoelisp): Declare.
19988 * xterm.c (x_connection_closed): Pass `noelisp'.
19989
19990 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19991 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19992 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19993 rather than `int' for the type of `type'.
19994
199952008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19996
19997 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19998
19999 * Makefile.in (GNUC): Remove support for gcc-1.x.
20000
200012008-02-10 Richard Stallman <rms@gnu.org>
20002
20003 * lisp.h (ASET): Use AREF, not ASLOT.
20004
200052008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
20006
20007 * lisp.h (ASET): Check bounds.
20008
200092008-02-10 Glenn Morris <rgm@gnu.org>
20010
20011 * buffer.c (mode-name): Doc fix.
20012
200132008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20014
20015 * Makefile.in:
20016 * emacs.c:
20017 * gmalloc.c:
20018 * keyboard.c:
20019 * lisp.h:
20020 * m/ibm370aix.h:
20021 * process.c:
20022 * regex.c:
20023 * s/hpux.h:
20024 * sysdep.c:
20025 * sysselect.h:
20026 * systty.h:
20027 * unexec.c:
20028 * w32term.c:
20029 * xsmfns.c:
20030 * xterm.c: Remove code that deals with obsolete variables.
20031
20032 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
20033
20034 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
20035 nothing else needs it anymore.
20036
200372008-02-09 Eli Zaretskii <eliz@gnu.org>
20038
20039 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
20040 instead of unibyte_char_to_multibyte.
20041
200422008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
20043
20044 * s/gnu-linux.h: Remove commented out code.
20045
20046 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
20047
20048 * Makefile.in: Update what RMS says about using autoconf.
20049 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
20050 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
20051 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
20052 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
20053
200542008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
20055
20056 * keymap.c (Fkey_description): Move side effect outside of macro call.
20057
20058 * xfaces.c (Finternal_make_lisp_face):
20059 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
20060
20061 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
20062 (syms_of_fontset): Use ASET.
20063
20064 * fns.c (concat): Move side effect outside of macro call.
20065 (hash_clear): Use ASET.
20066
200672008-02-08 Richard Stallman <rms@gnu.org>
20068
20069 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
20070 If FORCE, and frame has a surrogate minibuffer for another frame,
20071 delete the other frame first.
20072
200732008-02-07 Timo Savola <timo.savola@iki.fi>
20074
20075 * xterm.c (x_detect_focus_change): Handle embed client message.
20076 (handle_one_xevent): Ditto.
20077 (handle_one_xevent): If embedded and we get a button press/release,
20078 request focus.
20079 (xembed_set_info, xembed_send_message): New functions.
20080 (x_make_frame_visible): Call xembed_set_info if embedded.
20081 (x_make_frame_invisible): Call xembed_set_info if embedded.
20082 (x_term_init): Initialize Xatom_XEMBED.
20083 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
20084 (x_iconify_frame): Ditto.
20085
20086 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
20087 (enum xembed_info, enum xembed_message, enum xembed_focus)
20088 (enum xembed_modifier, enum xembed_accelerator): New.
20089 (xembed_set_info, xembed_send_message): Declare.
20090 (FRAME_X_EMBEDDED_P): New.
20091
20092 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
20093 gtk_plug_new.
20094
20095 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
20096 window ID of a frame.
20097 (x_window): Reparent frame if embedded.
20098 (Fx_create_frame): Don't set border width if embedded.
20099
20100 * emacs.c (USAGE3): Add --parent-id.
20101 (standard_args): Ditto.
20102
201032008-02-07 Jan Djärv <jan.h.d@swipnet.se>
20104
20105 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
20106
201072008-02-07 Jim Meyering <meyering@redhat.com>
20108
20109 Use "do...while (0)", not "if (1)...else" in macro definitions.
20110 The latter provokes a warning from gcc about the empty else, when
20111 followed by ";". Also, without that trailing semicolon, it would
20112 silently swallow up any following statement.
20113 * syntax.h (SETUP_SYNTAX_TABLE)
20114 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
20115 * buffer.h (DECODE_POSITION): Likewise.
20116 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
20117 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
20118 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
20119 (FETCH_CHAR_ADVANCE): Likewise.
20120 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
20121
201222008-02-07 Jim Meyering <meyering@redhat.com>
20123
20124 * lread.c [lint]: Don't include <sys/inode.h>.
20125
201262008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
20127
20128 * xselect.c (x_handle_dnd_message):
20129 * xmenu.c (digest_single_submenu, xmenu_show):
20130 * xdisp.c (with_echo_area_buffer_unwind_data)
20131 (format_mode_line_unwind_data, unwind_format_mode_line)
20132 (display_menu_bar):
20133 * eval.c (Ffetch_bytecode):
20134 * doc.c (store_function_docstring):
20135 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
20136 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
20137 * buffer.c (add_overlay_mod_hooklist): Use ASET.
20138
201392008-02-07 Kenichi Handa <handa@m17n.org>
20140
20141 * ftxfont.c (ftxfont_open): Don't set
20142 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
20143
20144 * ftfont.c (ftfont_open): Fix previous change.
20145
201462008-02-06 Jason Rumney <jasonr@gnu.org>
20147
20148 * w32font.c (w32font_text_extents): Fill in lbearing metric.
20149 Use cached metrics for ASCII characters.
20150 (w32font_open_internal): Don't set font's owning_frame.
20151 Cache metrics for ASCII characters.
20152
20153 * w32font.h (struct w32font_info): Add ascii_metrics.
20154 Remove owning_frame.
20155
201562008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
20157
20158 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
20159 to negative value.
20160
20161 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
20162
20163 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
20164
20165 * charset.c (syms_of_charset): Set QCtest and Qeq.
20166
201672008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
20168
20169 * process.c (Fstart_process):
20170 * callproc.c (Fcall_process): Handle the case where
20171 Funhandled_file_name_directory returns nil.
20172
20173 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
20174 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
20175 * font.c (check_gstring): Use them and AREF to access the vector before
20176 we know it's really a gstring.
20177 (Ffont_shape_text): Fix typo.
46e722a9 20178 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
20179
20180 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
20181 Declare.
20182
20183 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
20184
201852008-02-05 Jason Rumney <jasonr@gnu.org>
20186
20187 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
20188 Set smallest_font_height and smallest_char_width in display info.
20189
201902008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
20191
20192 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
20193
201942008-02-05 Miles Bader <miles@gnu.org>
20195
20196 * xfaces.c (get_lface_attributes, merge_named_face)
20197 (lookup_named_face, lookup_derived_face, realize_named_face):
20198 Revert 2008-02-01 change by cyd@stupidchicken.com.
20199
202002008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
20201
20202 * fontset.c (Ffontset_info): Handle the case of inhibitting the
20203 fallback fonts.
20204 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
20205
202062008-02-04 Jason Rumney <jasonr@gnu.org>
20207
20208 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
20209 set full_name.
20210 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
20211
202122008-02-03 Jason Rumney <jasonr@gnu.org>
20213
20214 * makefile.w32-in (OBJ1): Include font.o here.
20215 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
20216
202172008-02-02 Jason Rumney <jasonr@gnu.org>
20218
20219 * makefile.w32-in (temacs): Bump EMHEAP to 21.
20220
202212008-02-01 Jason Rumney <jasonr@gnu.org>
20222
20223 * s/cygwin.h: Define VIRT_ADDR_VARIES.
20224
20225 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
20226
202272008-02-01 Andreas Schwab <schwab@suse.de>
20228
20229 * Makefile.in (shortlisp, lisp): Update for rename of
20230 ../lisp/language/myanmar.el.
20231
202322008-02-01 Chong Yidong <cyd@stupidchicken.com>
20233
20234 * xfaces.c (get_lface_attributes): Delete function.
20235 (merge_named_face, lookup_named_face, lookup_derived_face)
20236 (realize_named_face): Call lface_from_face_name directly, and use
20237 the fact that merge_face_vectors does not alter its FROM argument.
20238
202392008-02-01 Jason Rumney <jasonr@gnu.org>
20240
20241 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20242 input in the default locale. Handle non-Unicode multibyte input.
20243
202442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20245
20246 * fontset.c (reorder_font_vector): Exclude nil elements from the
20247 font group. Don't try multiple fonts.
20248 (fontset_font): Adjust for the above change.
20249 (Finternal_char_font): Return nil if the found font doesn't
20250 contain the character ch.
20251
20252 * Makefile.in (lisp, shortlisp): Add cham.el.
20253
202542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20255
20256 * font.h (FONTP): Make it return 1 also for a font-object.
20257
20258 * .gdbinit (xfontset): New function.
20259
20260 * font.c (font_find_for_lface): Check if the character C is
20261 supported or not only for the first font.
20262
20263 * fontset.c (reorder_font_vector): Fix typo.
20264 (fontset_find_font): Don't add a font-spec specifying a script.
20265 Use 0 (not Qt) for the indication of empty font-group. Change the
20266 format of RFONT-DEF. Return Qt if no font in the font-group
20267 support the character.
20268 (fontset_font): Adjust for the above change. If no font was
20269 found the character, remember that.
20270 (face_for_char): Adjust for the change of RFONT-DEF.
20271 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
20272 no font for the target.
20273 (Finternal_char_font): Adjust for the change of RFONT-DEF.
20274
202752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20276
20277 * font.c (font_load_for_face): Handle the case that the font in
20278 face->lface is a string.
20279
202802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20281
20282 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
20283
202842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20285
20286 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
20287 Fix previous change. If the frame is not on a window system,
20288 signal an error.
20289
202902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20291
20292 * coding.c (decode_coding_object, encode_coding_object): Adjust
20293 marker positions after conversion.
20294
20295 * lisp.h (struct Lisp_Marker): New member need_adjustment.
20296
202972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20298
20299 * font.c (font_find_for_lface): Fix the handling of the return
20300 value of font_has_char.
20301 (Ffont_shape_text): Fix previous change.
20302
20303 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
20304 (fontset_ref_and_range): Delete it.
20305 (fontset_find_font): Call char_table_ref_and_range instead of
20306 FONTSET_REF_AND_RANGE.
20307 (make_fontset): Don't setup font groups of Latin here.
20308 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
20309 (new_fontset_from_font): Make the specified font the default for
20310 all Latin characters.
20311
203122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20313
20314 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
20315 is on a window system before accessing the fontset of the frame.
20316
203172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20318
20319 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
20320
20321 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
20322 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
20323
20324 * font.c (Ffont_shape_text): If the font driver doesn't have a
20325 shaper function, make zero-width glyphs to have at least one-pixel
20326 width. Fix setting of `to' field of glyphs.
20327
203282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20329
20330 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
20331 glyphs.
20332
20333 * font.h (struct font_driver): Improve docstring of member `shape'.
20334
203352008-02-01 Kenichi Handa <handa@m17n.org>
20336
20337 * composite.c (syms_of_composite): Fix docstring of
20338 auto-composition-function.
20339
20340 * font.h (LGLYPH_SIZE): New macro.
20341
20342 * font.c (Ffont_fill_gstring): Stop filling when a character not
20343 supported by the font is found.
20344 (Ffont_shape_text): When a shape callback function returns nil,
20345 try at most two more times with larger gstring.
20346 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
20347
20348 * xdisp.c (handle_auto_composed_prop): Change the argument to
20349 auto-composition-function.
20350
20351 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
20352 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
20353 Lispy glyph and store it in the lgstring.
20354
20355 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
20356
20357 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20358
203592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20360
20361 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20362
20363 * fontset.c (Vfont_encoding_charset_alist): New variable.
20364 (syms_of_fontset): DEFVAR it.
20365 (reorder_font_vector, fontset_find_font): Optimize for the case of
20366 no need of reordering.
20367 (face_for_char): Map the charset property by
20368 Vfont_encoding_charset_alist.
20369
203702008-02-01 Jason Rumney <jasonr@gnu.org>
20371
20372 * w32font.c (logfonts_match): Don't check adstyle here.
20373 (font_matches_spec): Check here against physical font instead.
20374 (add_font_entity_to_list): Avoid some substitutions.
20375
20376 * font.c (font_parse_fcname): Default weight and slant to normal.
20377 (font_score): Prefer normal fonts if weight or slant unspecified.
20378 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20379 match freetype scores.
20380
203812008-02-01 Jason Rumney <jasonr@gnu.org>
20382
20383 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20384 font, as it may have been deleted.
20385 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20386 most common hyphenless variation.
20387 (logfonts_match): Check generic family.
20388 (font_matches_spec): Don't check generic family here.
20389 (fill_in_logfont): Set generic family based on adstyle.
20390
20391 * w32font.h (w32font_get_cache): Update declaration.
20392
203932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20394
20395 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20396
20397 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20398 If none of the new drivers are available, call font_update_drivers
20399 with the old drivers.
20400
20401 * w32font.c (w32font_get_cache): Adjust the argument type.
20402
20403 * xfont.c (xfont_get_cache): Adjust the argument type.
20404
20405 * font.h (struct font_driver): Change argument type of get_cache.
20406
20407 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20408
20409 * font.c (Ffont_get): Fix arguments to Fassoc.
20410 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20411 (font_clear_cache): New function.
20412 (font_list_entities, font_matching_entity): Use font_get_cache.
20413 (font_update_drivers): Call font_clear_cache when finishing a driver.
20414
20415 * fontset.c (fontset_find_font): Fix previous change.
20416
204172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20418
20419 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20420 dpyinfo->font_table.
20421 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20422 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20423
20424 * font.c (font_at): Handle the case that the arg C is negative.
20425 Handle the unibyte case.
20426 (Ffont_at): Call font_at with the arg C -1.
20427
20428 * xdisp.c (handle_auto_composed_prop): Don't get a character at
20429 the position here, and call font_at with the arg C -1.
20430 Don't check the range of the existing composition at the point.
20431
204322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20433
20434 * fontset.c (fontset_add): New args charset_id and family.
20435 Change caller.
20436 (load_font_get_repertory, fontset_find_font): Assume that
20437 font_spec is always a font-spec object.
20438 (Fset_fontset_font): Always store a font-spec object in a fontset.
20439
20440 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
20441 instead of get_property_and_range.
20442
204432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20444
20445 * xftfont.c (struct xftfont_info): Delete the member ft_face.
20446 (xftfont_open): Don't keep locking face.
20447 (xftfont_close): Don't unlock face.
20448 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
20449
20450 * fontset.c (fontset_find_font): Don't prefer a font of
20451 supplementary charset.
20452
204532008-02-01 Kenichi Handa <handa@m17n.org>
20454
20455 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20456 script, langsys_tag to langsys, new member script.
20457 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 20458 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
20459 listing to the script specified in that property. Fix arg to
20460 OTF_check_features.
20461
204622008-02-01 Jason Rumney <jasonr@gnu.org>
20463
20464 * w32font.h: New file.
20465
20466 * w32font.c: Include it.
20467 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20468 (w32font_open): Set owning_frame.
20469 (w32font_text_extents): Use owning_frame.
20470 (struct font_callback_data): Add opentype_only field.
20471 (add_font_entity_to_list): Use it to filter fonts.
20472 Don't check against full name.
20473 (w32font_list_internal): New function.
20474 (w32font_list): Use it.
20475 (w32font_match_internal): New function.
20476 (w32font_match): Use it.
20477 (w32font_open_internal): New function.
20478 (w32font_open): Use it.
20479 (w32font_get_cache, w32font_close, w32font_has_char)
20480 (w32font_encode_char, w32font_text_extents, w32font_draw):
20481 Make non-static.
20482
20483 * makefile.w32-in (w32font.o): Depend on w32font.h.
20484
204852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20486
20487 * charset.c (Fdefine_charset_internal): Record a supplementary
20488 charset at the tail of Vcharset_order_list.
20489
20490 * font.c (Ffont_shape_text): Fix the return value.
20491
20492 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20493
20494 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20495
204962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20497
20498 * ftfont.c (struct OpenTypeSpec): New struct.
20499 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20500 (ftfont_get_open_type_spec): New function.
20501 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20502
20503 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20504
205052008-02-01 Jason Rumney <jasonr@gnu.org>
20506
20507 * w32font.c (add_font_entity_to_list): Compare only the beginning
20508 of full name.
20509
205102008-02-01 Kenichi Handa <handa@m17n.org>
20511
20512 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20513 Never return HANDLED_RECOMPUTE_PROPS.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * font.c (font_gstring_produce): Delete it.
20518
20519 * composite.h (COMPOSITION_METHOD):
20520 Handle COMPOSITION_WITH_GLYPH_STRING.
20521
205222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20523
20524 * xfont.c (Qx): Delete.
20525 (syms_of_xfont): Don't initialize Qx.
20526
20527 * composite.h (enum composition_method):
20528 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20529
205302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20531
20532 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20533 (choose_face_font): Accept new form of font-spec.
20534
20535 * frame.h (font_driver_list): Declare it unconditionally.
20536 (struct frame): Define members font_driver_list and font_data_list
20537 unconditionally.
20538
20539 * fontset.c: Include "font.h" unconditionally.
20540 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20541 (Fset_fontset_font): Accept a font-spec object.
20542
20543 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20544 PIXEL_SIZE part a wild card.
20545
20546 * dispextern.h (struct glyph_string): Define members clip and
20547 num_clips unconditionally.
20548 (struct face): Define members font_info and extra unconditionally.
20549
20550 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20551 ftfont_info only when HAVE_LIBOTF is defined.
20552
205532008-02-01 Andreas Schwab <schwab@suse.de>
20554
20555 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20556 and end.
20557
205582008-02-01 Jason Rumney <jasonr@gnu.org>
20559
20560 * w32font.c (w32font_driver): Add new fields.
20561
205622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20563
20564 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20565 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20566 (LIBES): Add @M17N_FLT_CFLAGS@.
20567
20568 * composite.c (compose_text): Don't treat the new style
20569 composition specially.
20570
20571 * emacs.c (main): Call syms_of_font unconditionally.
20572
20573 * font.h (FONT_ENTITY_NOT_LOADABLE)
20574 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20575 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20576 (struct font_driver): New member shape.
20577 (font_registry_charsets): Extern it.
20578 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20579 (font_otf_capability, font_drive_otf): Delete their externs.
20580
20581 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20582 (font_charset_alist, font_registry_charsets): Move from xfont.c
20583 and rename.
20584 (font_prop_validate_otf): New function.
20585 (font_property_table): Register it for QCotf.
20586 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20587 (font_drive_otf): Delete.
20588 (font_prepare_composition): New arg F. Adjust for the change of
20589 lispy gstring.
20590 (font_find_for_lface): New arg C.
20591 (font_load_for_face): Adjust for the change of font_find_for_lface.
20592 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20593 lispy gstring.
20594 (Ffont_shape_text): New function.
20595 (Fopen_font): If the font size is not given, use 12-pixel.
20596 (Ffont_at): New arg STRING.
40b1a3a9 20597 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
20598 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20599 conditionally.
20600
20601 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20602 fonts of the same font-spec. Change the format of RFONT-DEF.
20603 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20604 Adjust for the change of RFONT-DEF.
20605 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20606
20607 * ftfont.h: New file.
20608
20609 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20610 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20611 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20612 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20613 font_otf_capability and font_drive_otf, set ftfont_shape.
20614 (ftfont_list): Adjust for the change of :otf property value.
20615 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20616 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20617 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20618 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20619 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20620 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20621
20622 * w32term.c (x_draw_composite_glyph_string_foreground):
20623 Adjust for the change of lispy gstring.
20624
20625 * xdisp.c (handle_composition_prop): Adjust for the change of
20626 lispy gstring. Call a function for auto-composition with the
20627 third arg it->window.
20628 (fill_composite_glyph_string): Adjust for the change of lispy string.
20629 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20630
20631 * xfaces.c (set_font_frame_param): Adjust for the change of
20632 font_find_for_lface.
20633
20634 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20635 (xfont_registry_charsets): Likewise. Change caller.
20636 (syms_of_xfont): Don't handle x_font_charset_alist.
20637
20638 * xftfont.c: Include "ftfont.h".
20639 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20640 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20641 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20642 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20643 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20644 Set xftfont_driver.shape to xftfont_shape.
20645
20646 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20647 the change of lispy gstring.
20648
206492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20650
20651 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20652
206532008-02-01 Jason Rumney <jasonr@gnu.org>
20654
20655 * w32font.c (w32font_draw): Fill background manually.
20656
206572008-02-01 Jason Rumney <jasonr@gnu.org>
20658
20659 * font.c (Qfontp): Remove unused symbol.
20660 (QCantialias): New symbol.
20661 (syms_of_font): Define it.
20662 (font_property_table): Set a validator for QCantialias.
20663
20664 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20665 Define if not already.
20666 (QCfamily): Share with xfaces.c.
20667 (Qstandard, Qsubpixel, Qnatural): New symbols.
20668 (syms_of_w32font): Define them. Don't define QCfamily here.
20669 (w32_antialias_type, lispy_antialias_type): New functions.
20670 (w32_enumfont_pattern_entity): New arg requested_font.
20671 Set antialias parameter if non-default was requested.
20672 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20673
206742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20675
20676 * lread.c (read1): Undo the previous change.
20677
206782008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20679
20680 * frame.c (Fdelete_frame): Call font_update_drivers only when
20681 USE_FONT_BACKEND is defined.
20682
206832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20684
20685 * font.h (struct font_bitmap): New member bits_per_pixel.
20686 (struct font_driver): New members start_for_frame and end_for_frame.
20687 (struct font_data_list): New struct.
20688 (font_put_frame_data, font_get_frame_data): Extern them.
20689
20690 * frame.h (struct frame): New member font_data_list.
20691
20692 * font.c (font_update_drivers): Call driver->start_for_frame and
20693 driver->end_for_frame at proper timings.
20694 (font_put_frame_data, font_get_frame_data): New functions.
20695 (Ffont_spec): Add usage in the docstring.
20696
20697 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20698 (Fdelete_frame): Call font_update_drivers.
20699
20700 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20701 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20702 (xftfont_get_xft_draw): New function.
20703 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20704 (xftfont_end_for_frame): New function.
20705 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20706
20707 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20708 Change argument. Cache GCs in the per-frame data.
20709 (struct ftxfont_frame_data): New struct.
20710 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20711 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20712 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20713 (ftxfont_end_for_frame): New function.
20714 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20715
20716 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20717
207182008-02-01 Kenichi Handa <handa@m17n.org>
20719
20720 * xselect.c (Vselection_coding_system)
20721 (Vnext_selection_coding_system): Delete them.
20722 (syms_of_xselect): Don't declare selection-coding-system and
20723 next-selection-coding-system. They are declared in select.el.
20724
207252008-02-01 Jason Rumney <jasonr@gnu.org>
20726
20727 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20728
20729 * w32fns.c: Include imm.h.
20730 (get_composition_string_fn, get_ime_context_fn): New optional
20731 system functions.
20732 (globals_of_w32fns): Load them from imm32.dll.
20733 (ignore_ime_char): New flag.
20734 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20735 WM_IME_ENDCOMPOSITION messages.
20736
20737 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20738 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20739
207402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20741
20742 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20743 (READCHAR_REPORT_MULTIBYTE): New macro.
20744 (readchar): New 2nd arg MULTIBYTE.
20745 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20746 Make symbol's name multibyte according to the multibyteness of the
20747 source.
20748
207492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20750
20751 * xfaces.c (face_for_overlay_string): Call lookup_face with
20752 correct arguments (fix of synching with the trunk).
20753
207542008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20757 (font_prop_validate_non_neg, font_prop_validate_spacing):
20758 Delete argument prop_index.
20759 (font_property_table): Change arguments to validater. Change Callers.
20760 (font_lispy_object): Delete.
20761 (font_at): Use font_find_object instead fo font_lispy_object.
20762
207632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20764
20765 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20766 and file names.
20767
207682008-02-01 Jason Rumney <jasonr@gnu.org>
20769
20770 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20771 (font_matches_spec): Remove debug output.
20772 (add_font_entity_to_list): Avoid using substituted fonts.
20773
207742008-02-01 Jason Rumney <jasonr@gnu.org>
20775
20776 * doc.c (Fsnarf_documentation):
20777 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20778
207792008-02-01 Miles Bader <miles@gnu.org>
20780
20781 * dispextern.h (struct glyph_row): Only define "clip" field if
20782 HAVE_WINDOW_SYSTEM is defined.
20783
207842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20785
20786 Fix up multi-tty merge.
20787
20788 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20789 and indentation.
20790
20791 * xfaces.c (free_realized_face, clear_face_gcs):
20792 Include font_done_for_face in the input_blocked section, just in case.
20793
20794 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20795 (get_char_face_and_encoding): Undo last change and remove the *other*
20796 duplicate definition (i.e. keep the one that's better scoped and that
20797 includes code for the font-backend).
20798
20799 * terminal.c (create_terminal): Default keyboard_coding to
20800 `no-conversion' and terminal_coding to `undecided'.
20801
20802 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20803
20804 * fontset.c (free_realized_fontsets): Check that the table entry does
20805 contain a fontset before trying to compare it to `base'.
20806
20807 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20808 syms_of_charset, and syms_of_coding earlier because init_window_once
20809 now needs Vcoding_system_hash_table to be setup.
20810
20811 * coding.h (default_buffer_file_coding): Remove.
20812
20813 * coding.c (default_buffer_file_coding): Remove.
20814 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20815 than ->symbol, and use the terminal-local coding system.
20816 (syms_of_coding): Don't setup the coding-systems that are not
20817 terminal-local.
20818 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20819
20820 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20821 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20822
20823 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20824 in chartab.c and were re-added here by mistake.
20825 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20826
20827 * doc.c (Fsnarf_documentation):
20828 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20829 src to etc.
20830
20831 * ChangeLog.10: Add mistakenly removed entry.
20832
208332008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20834
20835 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20836
208372008-02-01 Miles Bader <miles@gnu.org>
20838
20839 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20840 Add extra args to FACE_FOR_CHAR.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20845 in sequence.
20846
20847 * chartab.c (map_sub_char_table, map_char_table): If the range
20848 contains just one character, call the function with that character
20849 even if the depth is not 3.
20850
208512008-02-01 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32font.c (w32font_text_extents): Calculate metrics for the
20854 whole string.
20855
208562008-02-01 Jason Rumney <jasonr@gnu.org>
20857
20858 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20859
208602008-02-01 Jason Rumney <jasonr@gnu.org>
20861
20862 * w32term.c (x_set_glyph_string_clipping): Use
20863 get_glyph_string_clip_rects.
20864 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20865 Adjust for the change of struct glyph_string.
20866
20867 * w32font.c (w32font_draw): Do clipping here.
20868
208692008-02-01 Kenichi Handa <handa@m17n.org>
20870
20871 * xftfont.c (xftfont_draw): Adjust for the change of struct
20872 glyph_string.
20873
20874 * xterm.c (x_set_glyph_string_clipping): Use
20875 get_glyph_string_clip_rects.
20876 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20877 Adjust for the change of struct glyph_string.
20878
20879 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20880 the resulting clip(s}.
20881 (expose_overlaps): Add arg r. Change callers. Set it to
20882 row->clip temporarily.
20883 (expose_window): Redraw rows overlapping the exposed area.
20884
20885 * dispextern.h (struct glyph_row): New member clip.
20886 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20887 clip_height, new member clip, and num_clips.
20888
208892008-02-01 Kenichi Handa <handa@m17n.org>
20890
20891 * data.c (Fchar_or_string_p): Fix docstring.
20892
208932008-02-01 Kenichi Handa <handa@m17n.org>
20894
20895 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20896 create a temporary XftDraw object.
20897
208982008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * font.c (Ffontp): Fix docstring.
20901
20902 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20903 strong evidence of ISO-2022.
20904
209052008-02-01 Kenichi Handa <handa@m17n.org>
20906
20907 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20908 SYNTAX_ENTRY_FOLLOW_PARENT.
20909
209102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20913 its type.
20914 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20915 Update to the new type of weak_hash_tables and next_weak.
20916
20917 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20918 a plain C pointer to Lisp_Hash_Table.
20919
20920 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20921 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20922 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20923 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20924 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20925 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20926 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20927 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20928 (GC_EQ): Remove since they've been identical to their non-GC_
20929 alter-egos ever since the markbit was eradicated.
20930
20931 * alloc.c:
20932 * buffer.c:
20933 * buffer.h:
20934 * data.c:
20935 * fileio.c:
20936 * filelock.c:
20937 * fns.c:
20938 * frame.h:
20939 * lisp.h:
20940 * macterm.c:
20941 * print.c:
20942 * process.c:
20943 * w32fns.c:
20944 * w32menu.c:
20945 * w32term.c:
20946 * xfns.c:
20947 * xmenu.c:
20948 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20949
209502008-02-01 Kenichi Handa <handa@m17n.org>
20951
20952 * chartab.c (map_sub_char_table): Make it work for the top-level
20953 char-table. Fix handling of parent char-table.
20954 (map_char_table): Adjust for the above change.
20955
209562008-02-01 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32font.c (Qgdi): Rename from Qw32.
20959
209602008-02-01 Jason Rumney <jasonr@gnu.org>
20961
20962 * w32bdf.c (get_quoted_string): Make function static.
20963
209642008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20967 bigger ascent and descent than those of the font, use them as
20968 font's ascent and descent.
20969
209702008-02-01 Kenichi Handa <handa@m17n.org>
20971
20972 * Makefile.in (${lispsource}international/charprop.el): Move this
20973 target within "#ifdef HAVE_UNIDATA" and "#endif".
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20978 (shortlisp): Add ../lisp/language/tai-viet.el.
20979
209802008-02-01 Ulrich Mueller <ulm@gentoo.org>
20981
20982 * Makefile.in (${lispsource}international/charprop.el): Depend on
20983 temacs${EXEEXT}.
20984
209852008-02-01 Jason Rumney <jasonr@gnu.org>
20986
20987 * w32font.c (w32font_close): Delete the GDI font object.
20988
20989 * w32menu.c: Include character.h.
20990
20991 * w32proc.c: Likewise.
20992
20993 * w32select.c: Likewise.
20994
20995 * makefile.w32-in (w32proc.o): Depend on character.h.
20996
209972008-02-01 Jason Rumney <jasonr@gnu.org>
20998
20999 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
21000
21001 * w32menu.c (syms_of_w32menu): Likewise.
21002
21003 * w32proc.c (syms_of_ntproc): Likewise.
21004
21005 * w32select.c (syms_of_w32select): Likewise.
21006
21007 * w32term.c (syms_of_w32term): Likewise.
21008
210092008-02-01 Jason Rumney <jasonr@gnu.org>
21010
21011 * w32font.c (w32font_draw): Delete brush after using it.
21012
210132008-02-01 Jason Rumney <jasonr@gnu.org>
21014
21015 * w32font.c (w32font_open): Don't set font_idx.
21016 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
21017 to font settings.
21018 (w32font_draw): Fill background explicitly.
21019
210202008-02-01 Jason Rumney <jasonr@gnu.org>
21021
21022 * w32term.c (w32_initialize): Don't call w32font_initialize.
21023
21024 * w32font.c (w32font_info): Remove subranges.
21025 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
21026 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
21027 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
21028 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
21029 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
21030 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
21031 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
21032 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
21033 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
21034 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
21035 New symbols.
21036 (font_callback_data): New struct.
21037 (w32font_list, w32font_match): Use it.
21038 (w32font_open): Don't populate subranges.
21039 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
21040 (w32font_encode_char): Always return unicode code-point as-is.
21041 (w32font_text_extents): Supply a transformation matrix to
21042 GetGlyphOutline. Never look up by glyph index. Avoid looping
21043 twice. Use unicode version of GetTexExtentPoint32 instead of
21044 glyph index version.
21045 (set_fonts_frame): Remove.
21046 (w32_enumfont_pattern_entity): Add frame parameter, use it to
21047 set frame parameter. Use backward compatible fake foundries.
21048 Save generic family in extra slot under QCfamily. Make width slot
21049 constant. Save QCspacing value. Save list of scripts instead of
21050 binary subranges.
21051 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
21052 (add_font_entity_to_list): Use font_callback_data struct. Filter
21053 unwanted fonts.
21054 (add_one_font_entity_to_list): Use font_callback_data struct.
21055 (w32_registry): Default to iso10646_1.
21056 (fill_in_logfont): Use dpi from extra slot. Don't bother with
21057 string font registries. Don't fill in font name if it is a generic
21058 family name, fill family instead. Use spacing, family and script
21059 extra info to fill pitch, family and charset fields.
21060 (list_all_matching_fonts): Use font_callback_data struct.
21061 (unicode_range_for_char): Remove.
21062 (font_supported_scripts): New function.
21063 (w32font_initialize): Remove.
21064 (syms_of_w32font): Update which symbols are defined.
21065
210662008-02-01 Jason Rumney <jasonr@gnu.org>
21067
21068 * font.c (font_pixel_size): Reverse assq_no_quit args.
21069
21070 * w32term.h (FONT_WIDTH): Report max width, not average.
21071 (FONT_MAX_WIDTH): Remove.
21072 (FONT_AVG_WIDTH): New macro.
21073
21074 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
21075 redefinition of FONT_WIDTH.
21076
21077 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
21078 (w32_cache_char_metrics): Use FONT_WIDTH.
21079
21080 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
21081
210822008-02-01 Jason Rumney <jasonr@gnu.org>
21083
21084 * w32font.c (w32font_open): Make lfHeight negative.
21085
21086 * w32fns.c (x_default_font_parameter): Use new style font name.
21087 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
21088
210892008-02-01 Jason Rumney <jasonr@gnu.org>
21090
21091 * w32font.c (QCsubranges): New symbol.
21092 (w32font_open, w32font_has_char): Get subranges from subproperty
21093 of extra.
21094 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
21095 (syms_of_w32font): Define :subranges symbol.
21096
21097 * font.c (font_put_extra): Expose externally.
21098
21099 * font.h (font_put_extra): Move declaration from font.c.
21100
21101 * font.c (Ffont_get): Use font driver to determine otf capability.
21102 (adjust_anchor): Check if driver defines anchor_point before using.
21103
21104 * w32font.c (w32font_open): Handle size, height and pixel_size better.
21105 (w32font_draw): Use options.
21106 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
21107 Fix detection of truetype fonts.
21108 (registry_to_w32_charset): Handle charsets other than iso8859-1
21109 expressed as lisp symbols.
21110 (w32_registry): Express charset as lisp symbol.
21111 (fill_in_logfont): Reverse pixel and point height logic.
21112 Don't set width here. Set quality to default.
21113
21114 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
21115 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
21116
21117 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21118 Remove redundant loop and allocation.
21119
21120 * makefile.w32-in (font.o, w32font.o): New objects.
21121 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
21122 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
21123
21124 * xdisp.c (fill_composite_glyph_string): Make the first arg to
21125 STORE_XCHARB a valid l-value.
21126
21127 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
21128 calculations for non-Truetype fonts.
21129 (x_draw_glyph_string): Sync with xterm.c.
21130 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21131 Remove redundant code.
21132 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
21133
21134 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
21135 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
21136
21137 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
21138 (x_to_w32_charset, w32_to_x_charset): Expose externally.
21139
21140 * w32font.c: New file for w32 font backend.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * term.c: Don't include "buffer.h" twice.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * character.c (Funibyte_string): New function.
21149 (syms_of_character): Defsubr it.
21150
211512008-02-01 Jason Rumney <jasonr@gnu.org>
21152
21153 * w32term.c [USE_FONT_BACKEND]:
21154 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
21155 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
21156 (x_draw_glyph_string, x_draw_glyph_string_foreground)
21157 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
21158 (x_free_frame_resources): Sync with xterm.c.
21159
211602008-02-01 Andreas Schwab <schwab@suse.de>
21161
21162 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
21163 char-table size.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
21168
211692008-02-01 Kenichi Handa <handa@m17n.org>
21170
21171 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
21172 font_otf_gpos, add font_drive_otf.
21173
21174 * fontset.c (fontset_find_font): Pay attention to font size
21175 specified for a font.
21176 (reorder_font_vector): Check contents of font_def.
21177
21178 * font.c (struct otf_list): Delete it.
21179 (otf_list): Make it a lisp variable.
21180 (otf_open): Use lispy otf_list.
21181 (generate_otf_features): Rename from parse_gsub_gpos_spec.
21182 (check_otf_features): New function.
21183 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21184 New functions.
21185 (font_drive_otf): New function merging font_otf_gsub and
21186 font_otf_gpos.
21187 (font_open_for_lface): New arg spec. Change argument order.
21188 (font_load_for_face): Adjust for the change of font_open_for_lface.
21189 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
21190 Ffont_otf_gpos.
21191 (syms_of_font): Staticpro otf_list. Delete defsubr of
21192 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
21193
21194 * xfaces.c (set_font_frame_param): Adjust for the change of
21195 font_open_for_lface.
21196
21197 * font.h (font_open_for_lface): Adjust prototype.
21198 (struct font_driver): Delete members otf_gsub and otf_gpos, add
21199 member otf_drive.
21200 (font_otf_gsub, font_otf_gpos): Delete externs.
21201 (font_drive_otf): Extern it.
21202
212032008-02-01 Kenichi Handa <handa@m17n.org>
21204
21205 * font.c (font_at): If the window W is not on a window system,
21206 return Qnil.
21207
21208 * coding.c (produce_chars, encode_coding): Don't call
21209 insert_from_gap if no characters to produce.
21210
212112008-02-01 Kenichi Handa <handa@m17n.org>
21212
21213 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
21214 Fclear_face_cache.
21215
21216 * xfaces.c (face_for_font): Check also face->font==font->font.font.
21217
212182008-02-01 Miles Bader <miles@gnu.org>
21219
21220 * emacs.c (main): Change default value of `enable_font_backend' to 1.
21221 Parse "--disable-font-backend" option.
21222 (standard_args): Add "--disable-font-backend" option.
21223
212242008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 * fontset.c (fontset_find_font): New function.
21227 (fontset_font): Use fontset_find_font.
21228 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
21229 Register the specified font for all Latin characters.
21230 (new_fontset_from_font): Register the specified font for all Latin
21231 characters.
21232 (dump_fontset): For a realized fontset, include the base fontset
21233 name in the returned vector.
21234
212352008-02-01 Kenichi Handa <handa@m17n.org>
21236
21237 * character.h (CHAR_STRING): Cast C to unsigned on calling
21238 char_string.
21239
21240 * character.c (char_string): Type of arg C changed to unsigned.
21241 Signal an error if C is an invalid character code.
21242
21243 * editfns.c (general_insert_function, Fchar_to_string):
21244 Use CHARACTERP, not INTEGERP.
21245
212462008-02-01 Kenichi Handa <handa@m17n.org>
21247
21248 * character.h (MIN_MULTIBYTE_LEADING_CODE)
21249 (MAX_MULTIBYTE_LEADING_CODE): New macros.
21250
21251 * regex.c (analyse_first): Fix for multibyte characters in "case
21252 charset:" and "case categoryspec:".
21253
212542008-02-01 Andreas Schwab <schwab@suse.de>
21255
21256 * Makefile.in (LIBES): Move standard libraries to the end.
21257
212582008-02-01 Kenichi Handa <handa@m17n.org>
21259
21260 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
21261 nonzero, don't shrink the buffer nextb.
21262
21263 * buffer.h (struct buffer_text): New member inhibit_shrinking.
21264
21265 * coding.c (coding_alloc_by_making_gap): New arg offset.
21266 (alloc_destination): Call coding_alloc_by_making_gap with the arg
21267 offset.
21268 (decode_coding_iso_2022): Update coding->safe_charsets.
21269 (decode_coding_gap): Temporarily set
21270 current_buffer->text->inhibit_shrinking to 1.
21271
212722008-02-01 Kenichi Handa <handa@m17n.org>
21273
21274 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
21275 indexing into elements of s->cmp and s->char2b.
21276
212772008-02-01 Juanma Barranquero <lekktu@gmail.com>
21278
21279 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
21284 target_multibyte instead of multibyte.
21285 (re_match_2_internal): Call bcmp_translate with target_multibyte.
21286 (bcmp_translate): Change the argument name from multibyte to
21287 target_multibyte.
21288
212892008-02-01 Kenichi Handa <handa@m17n.org>
21290
21291 These changes are to compile a regexp into a pattern that can be
21292 used both for multibyte and unibyte targets.
21293
21294 * Makefile.in (search.o): Depend on charset.h.
21295
21296 * character.c (multibyte_char_to_unibyte_safe): New function.
21297
21298 * search.c: Include "charset.h".
21299 (compile_pattern_1): Delete argument multibyte. Don't set
21300 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
21301 (compile_pattern): Don't compare cp->buf.target_multibyte.
21302 Compare cp->buf.charset_unibyte.
21303 (compile_pattern): Set cp->buf.target_multibyte.
21304
21305 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
21306
21307 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
21308
21309 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
21310 multibyte. Change callers.
21311 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
21312 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
21313 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
21314 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
21315 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
21316 (regex_compile): Make the compiled pattern usable both for
21317 multibyte and unibyte targets.
21318 (analyse_first): Make the fastmap usable both for multibyte and
21319 unibyte targets.
21320 (TRANSLATE_VIA_MULTIBYTE): Delete.
21321 (re_match_2_internal): Pay attention to the case that the
21322 multibyteness of bufp and target may be different.
21323
213242008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * xdisp.c (x_produce_glyphs): When a font is not found, make the
21327 empty box occupy at least one column width.
21328
213292008-02-01 Miles Bader <miles@gnu.org>
21330
21331 * Makefile.in: Remove redundant HAVE_XFT clause.
21332
213332008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
21336
213372008-02-01 Kenichi Handa <handa@m17n.org>
21338
21339 * fontset.c (Finternal_char_font): Fix for the case of POSITION
21340 being nil.
21341
213422008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
21345
213462008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * search.c (simple_search): Fix previous change.
21353
213542008-02-01 Kenichi Handa <handa@m17n.org>
21355
21356 * xftfont.c (ftfont_font_format): Extern declaration.
21357
21358 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21359
21360 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21361 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21362
21363 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21364 (ftfont_font_format): Fix previous change.
21365
21366 * font.h (Ffont_xlfd_name): EXFUN it.
21367
21368 * font.c (font_parse_xlfd): Fix the array size of `f'.
21369 (register_font_driver): Use EQ to compare driver->type.
21370
21371 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21372 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21373 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21378 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21379
213802008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * xfont.c (xfont_open): Set font->format.
21383
21384 * xftfont.c (xftfont_open): Set font->format.
21385
21386 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21387 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21388 (ftfont_open): Set font->format.
21389 (ftfont_font_format): New function.
21390
21391 * font.h (struct font): New member format.
21392
21393 * font.c (Qopentype): New variable.
21394 (syms_of_font): Defsym it.
21395 (Fquery_font): Change the format of the last element of the return
21396 value.
21397
213982008-02-01 Kenichi Handa <handa@m17n.org>
21399
21400 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21401 last resort.
21402
214032008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * coding.c (detect_coding_charset): Fix detection of multi-byte
21406 charset.
21407
214082008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21409
21410 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21411
214122008-02-01 Kenichi Handa <handa@m17n.org>
21413
21414 * xdisp.c (get_next_display_element): Set it->face_id for the
21415 first component of a composition.
21416 (x_produce_glyphs): Check if the font is changed or not for composition.
21417
214182008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * fontset.c (Qlatin): New variable.
21421 (syms_of_fontset): Define it as a lisp symbol.
21422 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21423
214242008-02-01 Kenichi Handa <handa@m17n.org>
21425
21426 * font.c (font_unparse_fcname): Pay attention to the case that
21427 some of font property is a null string.
21428
214292008-02-01 Kenichi Handa <handa@m17n.org>
21430
21431 * term.c: Include "composite.h".
21432 (encode_terminal_code): Output all components of composition.
21433 Check the size of encode_terminal_src.
21434 (produce_glyphs): For composition, call produce_composite_glyph.
21435 (append_composite_glyph, produce_composite_glyph): New functions.
21436
21437 * xdisp.c (x_produce_glyphs): In handling composition, if a font
21438 is not found, get font_info from the current ascii face.
21439
214402008-02-01 Kenichi Handa <handa@m17n.org>
21441
21442 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
21443 buffer-file-name to Qnil before calling insert_from_buffer.
21444
21445 * font.c (font_unparse_fcname): Pay attention to the case that
21446 foundry is a null string.
21447
214482008-02-01 Kenichi Handa <handa@m17n.org>
21449
21450 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
21451
21452 * font.c (Qunicode_sip): New variable.
21453 (syms_of_font): Declare it as a Lisp symbol.
21454
21455 * font.h (Qunicode_sip): Extern it.
21456
214572008-02-01 Kenichi Handa <handa@m17n.org>
21458
21459 * composite.c (get_composition_id): Pay attention to TAB component.
21460
21461 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21462 TAB. Adjust for the change of s->char2b which always points to
21463 the first element of allocated memory.
21464
21465 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21466
21467 * xdisp.c (handle_composition_prop): Set it->c to the first
21468 non-TAB component.
21469 (fill_composite_glyph_string): Change argument.
21470 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21471 (x_produce_glyphs): Fix handling of left/right padding.
21472
214732008-02-01 Kenichi Handa <handa@m17n.org>
21474
21475 * coding.c (detect_coding_system): Fix for handling off
21476 inhibit_iso_escape_detection. Fix for the case that no coding
21477 system is defined for a specific coding category.
21478
214792008-02-01 Kenichi Handa <handa@m17n.org>
21480
21481 * font.c (font_matching_entity): Delete unused local var.
21482
21483 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21484 opening a font.
21485
21486 * fileio.c (Finsert_file_contents): On recovering a file, assume
21487 Unix-like eol.
21488 (choose_write_coding_system): On auto-saving a file, force
21489 Unix-like eol.
21490
21491 * coding.c (setup_coding_system): Fix setting of
21492 coding->common_flags based on eol_type.
21493 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21494 inherit from it.
21495
214962008-02-01 Kenichi Handa <handa@m17n.org>
21497
21498 * alloc.c (NSTATICS): Increas to 0x600.
21499
215002008-02-01 Kenichi Handa <handa@m17n.org>
21501
21502 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21503 (ftfont_list): Don't check :name property.
21504 (ftfont_match): New function.
21505 (ftfont_pattern_entity): If the pattern doesn't contain
21506 FC_SPACING, don't assume FC_MONO.
21507
21508 * font.h (struct font_driver): New member `match'.
21509 (font_update_drivers): Adjust prototype.
21510
21511 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21512 property of FONT.
21513 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
21514 them unconditionally.
21515 (font_matching_entity): New function.
21516 (font_open_by_name): Try font_matching_entity if exact match is
21517 not found.
21518 (font_update_drivers): Delete the arg FONT. Return a list of
21519 actually used backends. Don't free faces, font caches here.
21520 Don't store data in frame parameters. Don't call x_set_font.
21521 (Ffont_spec): Store :name property as is.
21522 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21523 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21524 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21525 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21526 Call font->driver->otf_gsub instead of font_otf_gsub.
21527
21528 * frame.c (x_set_font_backend): Do more works that were done in
21529 font_update_drivers before.
21530
21531 * xfont.c (xfont_match): New function.
21532 (xfont_driver): Set xfont_driver.match to xfont_match.
21533 (xfont_draw): Set font in GC if necessary.
21534
21535 * ftxfont.c (ftxfont_match): New function.
21536 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21537
21538 * xftfont.c (xftfont_match): New function.
21539 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21540
215412008-02-01 Kenichi Handa <handa@m17n.org>
21542
21543 * font.h (struct font): New member scalable.
21544 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21545 (font_otf_gsub): Adjust prototype.
21546
21547 * font.c (font_otf_capability): Fix handling of the default langsys.
21548 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21549 Check the contents of SPEC.
21550 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21551 (check_gstring): New function.
21552 (REPLACEMENT_CHARACTER): New macro.
21553 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21554 glyph codes of GSTRING.
21555 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21556 (font_prepare_composition): Set cmp->glyph_len.
21557 (font_open_entity): Set font->scalable.
21558 (Ffont_get): Handle :otf property.
21559 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
21560 functions.
21561 (Fquery_font): Use font->font.full_name.
21562 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21563 Sfont_otf_alternates.
21564
21565 * ftfont.c (ftfont_open): Set font->font.full_name and
21566 font->font.name properly. Fix calculation of font->font.height
21567 and font->min_width.
21568
21569 * ftxfont.c (ftxfont_create_gcs): New function.
21570 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21571 (ftxfont_draw_backgrond): Fix filling region.
21572 (ftxfont_default_fid): New function.
21573 (ftxfont_open): Set xfont->fid to the return value of
21574 ftxfont_default_fid.
21575 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21576 (ftxfont_done_face): Free only GCs that are created by
21577 ftxfont_create_gcs.
21578 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21579
21580 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21581 Clip to src->width, etc (not src->clip_XXX).
21582
21583 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21584 FontBackend frame parameter.
21585
215862008-02-01 Kenichi Handa <handa@m17n.org>
21587
21588 * font.h (struct font_driver_list): New member `on'.
21589 (Fclear_font_cache): EXFUN it.
21590 (font_update_drivers): Extern it.
21591
21592 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21593 (font_list_entities): Check driver_list->on.
40b1a3a9 21594 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
21595 (font_update_drivers): New function.
21596 (Fclear_font_cache): Check driver_list->on.
21597
21598 * frame.h (Qfont_backend): Extern it.
21599 (x_set_font_backend): Extern it.
21600
21601 * frame.c (Qfont_backend): New variable.
21602 (frame_parms): New element for font-backend.
21603 (x_set_font_backend): New function.
21604
21605 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21606 FontBackend frame parameter.
21607 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21608 x_set_font_backend.
21609
21610 * xfont.c (xfont_list): Don't try listing by :name property if the
21611 name is not for XLFD.
21612
216132008-02-01 Kenichi Handa <handa@m17n.org>
21614
21615 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21616 (LGLYPH_SET_TO): New macros.
21617 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21618 element of G is vector or not.
21619 (font_at): Extern it.
21620
21621 * font.c: Include window.h.
21622 (font_lispy_object): New function.
21623 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21624 end of valid glyph.
21625 (font_close_object): Fix getting (struct font *).
21626 (font_at): New function.
21627 (Ffont_get): If FONT is a font-object, get entity from it.
21628 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21629 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
21630 range check.
21631 (Ffont_at): New function.
21632 (syms_of_font): Defsubr Sfont_at.
21633
21634 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21635 before the entry for Qcomposition.
21636 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21637 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21638 the font in gstring.
21639 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21640 LGLYPH_FORM (g) to detect the end of valid glyph.
21641 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21642 we are composing with gstring.
21643
21644 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21645 Check if adjustment is vector or not.
21646
21647 * Makefile.in (font.o): Make it depends on window.h.
21648
216492008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21652 adjustment is vector or not.
21653
216542008-02-01 Miles Bader <miles@gnu.org>
21655
21656 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21657
216582008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21661 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21662 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21663
21664 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21665 (DEVICE_DELTA): Fix typo.
21666 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21667 LGLYPH format.
21668
21669 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21670 the change of LGLYPH format.
21671
216722008-02-01 Kenichi Handa <handa@m17n.org>
21673
21674 * ftfont.c (ftfont_list): Fix typo.
21675 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21676
216772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21678
21679 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21680
21681 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21682 xftface_info is non-NULL.
21683
216842008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21685
21686 * ftfont.c (ftfont_list): Move misplaced #endif.
21687
216882008-02-01 Kenichi Handa <handa@m17n.org>
21689
21690 * ftfont.c (ftfont_list): Pay attention to the case that
21691 FC_CAPABILITY is not defined.
21692
216932008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * xftfont.c (xftfont_open): Set charset related members to -1.
21696
21697 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21698 QCname.
21699 (ftfont_open): Set charset related members to -1.
21700
21701 * fontset.c (Votf_script_alist): New variable.
21702 (syms_of_fontset): Initialize it.
21703 (fontset_font): Delete unused variable.
21704
21705 * fontset.h (Votf_script_alist): Extern it.
21706
21707 * font.c (font_find_for_lface): Optimize code.
21708
21709 * font.h (font_close_object, font_merge_old_spec): Extern them.
21710
217112008-02-01 Kenichi Handa <handa@m17n.org>
21712
21713 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21714 (syms_of_font): Initialize them.
21715 (font_pixel_size): Allow float value in dpi.
21716 (font_prop_validate_type): Delete.
21717 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21718 Change caller.
21719 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21720 (font_prop_validate_extra): Delete.
21721 (font_prop_validate_spacing): New function.
21722 (font_property_table): Add elements for all known properties.
21723 (get_font_prop_index): Rename from check_font_prop_name. New
21724 argument FROM. Change caller.
21725 (font_prop_validate): Validate all known properties.
21726 (font_put_extra): Delete argument force. Change caller.
21727 (font_expand_wildcards): Make it static. Fix the way of shrinking
21728 the possible range.
21729 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21730 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21731 Change caller.
21732 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21733 (font_parse_fcname): Delete argument merge. Fix parsing of point
21734 size. Don't validate properties values here. Change caller.
21735 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21736 (font_open_by_name): Delete unused variable.
21737 (Ffont_spec): Likewise. Validate property values.
21738 (Ffont_match_p): New function.
21739
21740 * font.h (QCscalable): Extern it.
21741 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21742
21743 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21744
21745 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21746 (xfont_list_pattern): New function.
21747 (xfont_list): Use xfont_list_pattern.
21748
217492008-02-01 Kenichi Handa <handa@m17n.org>
21750
21751 * font.h (Flist_fonts): EXFUN it.
21752
217532008-02-01 Jason Rumney <jasonr@gnu.org>
21754
21755 * w32term.c (w32_initialize): Add back smoothing_type and
21756 smoothing_enabled definitions.
21757
217582008-02-01 Kenichi Handa <handa@m17n.org>
21759
21760 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21761 s->face->font on determining underline position.
21762
217632008-02-01 Kenichi Handa <handa@m17n.org>
21764
21765 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21766 (font_has_char): Accept font-object too.
21767 (font_find_for_lface): Try at first with a size specified in face.
21768
217692008-02-01 Kenichi Handa <handa@m17n.org>
21770
21771 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21772 font_open_by_name.
21773
217742008-02-01 Kenichi Handa <handa@m17n.org>
21775
21776 * font.h (QCspacing, QCdpi): Extern them.
21777 (enum font_spacing): New enum.
21778 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21779
21780 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21781 (QCspacing, QCdpi): New variables.
21782 (syms_of_font): Initialize them.
21783 (font_pixel_size): New function.
21784 (font_put_extra): New function.
21785 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21786 in FONT_EXTRA.
21787 (font_parse_fcname): Handle enumerated values (e.g. bold).
21788 Fix handling font size. Add QCname property that contains only
21789 unknown properties.
21790 (font_score): Change argument. Change caller. Pay attention to
21791 FONT_PIXEL_SIZE_QUANTUM.
21792 (font_sort_entites, font_list_entities, font_find_for_lface)
21793 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21794 (Ffont_spec): Add QCname property that contains only unknown properties.
21795
21796 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21797 include weight in listing pattern, instead check weight of each
21798 listed font. Don't include scalable in pattern. Pay attention to
21799 FONT_PIXEL_SIZE_QUANTUM.
21800
218012008-02-01 Kenichi Handa <handa@m17n.org>
21802
21803 * font.c (font_parse_fcname): Fix parsing of point-size.
21804 (font_unparse_fcname): Produce symbolic names for style properties.
21805 (font_list_entities): Handle float size correctly.
21806 (font_open_by_name): Prefer `normal' property values if the name
21807 doesn't specify them.
21808
21809 * fontset.c (Finternal_char_font): Use font_get_name, not
21810 Ffont_xlfd_name.
21811
21812 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21813 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21814 pattern. Don't force scalable.
21815
21816 * xftfont.c (xftfont_open): For generating a name, start from
21817 96-byte buffer.
21818
218192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21820
21821 * frame.h (x_new_fontset2): Fix prototype.
21822
218232008-02-01 Kenichi Handa <handa@m17n.org>
21824
21825 * font.h (struct font_driver): Delete member parse_name.
21826 (font_match_p, font_get_spec, font_parse_fcname)
21827 (font_unparse_fcname): Extern them.
21828 (font_get_name): Adjust prototype.
21829
21830 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21831 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21832 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21833 unnecessary checks for weight, slant, and swidth.
21834 (font_parse_fcname): New function.
21835 (font_unparse_fcname): New function.
21836 (font_parse_name): New function.
21837 (font_match_p): New function.
21838 (font_get_name): Change return value to Lisp string.
21839 (font_get_spec): New function.
21840 (Qunspecified, Qignore_defface): Don't extern them.
21841 (font_find_for_lface): Assume that LFACE is fully specified.
21842 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21843 object, use it for FACE.
21844 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21845 driver->parse_name.
21846 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21847
21848 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21849 prototype.
21850
21851 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21852 argument F. Don't call Fnew_fontset. Instead, directly call
21853 make_fontset.
21854
21855 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21856
21857 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21858 of x_new_fontset2.
21859
21860 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21861 (Qsans__serif): New variables.
21862 (ftfont_generic_family_list): New variable.
21863 (syms_of_ftfont): Initialize the above variables.
21864 (ftfont_pattern_entity): Delete argument NAME.
21865 (ftfont_list_generic_family): New function.
21866 (ftfont_parse_name): Delete this function.
21867 (ftfont_list): Try generic family only when FcFontList found no font.
21868 (ftfont_list_family): Fix args to FcObjectSetBuild.
21869
21870 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21871 object in attrs[LFACE_FONT_INDEX].
21872 (set_lface_from_font_name): Cancel all changes for font-backend.
21873 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21874 function.
21875 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21876 font object in QCfont attribute.
21877 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21878 (realize_default_face) [USE_FONT_BACKEND]: Call
21879 set_lface_from_font_and_fontset.
21880
21881 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21882 "fixed", and signal error here if no suitable font was found.
21883
21884 * xfont.c (xfont_parse_name): Delete this function.
21885
21886 * xftfont.c (xftfont_open): Change coding style of error
21887 handling. Generate fontconfig's fontname pattern.
21888
21889 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21890 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21891
21892 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21893 Both args FONTSET and FONT_OBJECT must be existing ones.
21894
218952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21896
21897 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21898
218992008-02-01 Kenichi Handa <handa@m17n.org>
21900
21901 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21902
21903 * font.h (struct font): Fix typo.
21904
21905 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21906 XLFD_XXX_INDEX.
21907 (enum xlfd_field_mask): New enum.
21908 (intern_font_field): Changed argument. Change caller. If digits
21909 are followed by non-digits, return a symbol.
21910 (font_expand_wildcards): New function.
21911 (font_parse_xlfd): Fix wildcard handling.
21912 (Ffont_spec): If :name is specified, reflect the info in the other
21913 properties.
21914
21915 * ftfont.c (ftfont_pattern_entity): Fix typo.
21916 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21917 locale.
21918
219192008-02-01 Kenichi Handa <handa@m17n.org>
21920
21921 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21922
21923 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21924 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21925 registry doesn't specify encoding part.
21926 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21927 (font_open_by_name): At first try parsing the name.
21928 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21929 as Lisp symbols.
21930
21931 * fontset.c (reorder_font_vector): Pay attention to the case that
21932 the 3rd element of font_def is nil.
21933 (fontset_font): For the default fontset, append one more fontset
21934 elements for a script-based font specification. Don't add script
21935 attribute on finding a font.
21936 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21937 font name.
21938 (fontset_ascii_font): If a font can't be opened, return nil.
21939
21940 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21941 (ftfont_pattern_entity): New function.
21942 (ftfont_get_cache): Assume that freetype_font_cache is already
21943 initialized.
21944 (ftfont_list): Handle the case that a file is specified in font
21945 name. Use ftfont_pattern_entity to generate entities.
21946 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21947 (syms_of_ftfont): Initialize freetype_font_cache.
21948
21949 * xftfont.c (xftfont_open): Make the font name fontconfig's
21950 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21951 (xftfont_close): Free font->font.name if not NULL.
21952
21953 * xfont.c (xfont_list): If script is specified for a font, return
21954 null_vector.
21955 (xfont_list_family): Declare argument type.
21956
21957 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21958 name, set LFACE_FONT (lface) to nil.
21959
21960 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21961 return Qnil.
21962
219632008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21966 (standard_args): Add "-enable-font-backend".
21967
219682008-02-01 Kenichi Handa <handa@m17n.org>
21969
21970 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21971 (struct xftdraw_list, xftdraw_list): Delete them.
21972 (register_xftdraw, check_xftdraw): Delete them.
21973 (xftfont_prepare_face): Don't call register_xftdraw.
21974 (xftfont_done_face): Don't call check_xftdraw.
21975 (xftfont_draw): Get background color only when with_background is
21976 nonzero.
21977
21978 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21979
219802008-02-01 Kenichi Handa <handa@m17n.org>
21981
21982 These changes are for the new font handling codes.
21983
21984 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21985 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21986 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21987 (FONTSRC, FONTOBJ): New variables.
21988 (obj): Add $(FONTOBJ).
21989 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21990 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21991 @LIBOTF_LIBS@.
21992 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21993 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21994
21995 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21996
21997 * character.h (Vscript_representative_chars): Extern it.
21998
21999 * character.c (Vscript_representative_chars): New variable.
22000 (syms_of_character): Declare it as a Lisp variable.
22001
22002 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
22003 enable_font_backend is nonzero, accept the composition method
22004 COMPOSITION_WITH_GLYPH_STRING.
22005
22006 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
22007 enumeration COMPOSITION_WITH_GLYPH_STRING.
22008
22009 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
22010 members clip_x, clip_y, clip_width, and clip_height.
22011 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
22012
22013 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
22014 --enable-font-backend. Call syms_of_font.
22015
22016 * fns.c (assoc_no_quit): New function.
22017
22018 * fontset.h (FONT_INFO_FROM_FACE): New macro.
22019 (face_for_font, new_fontset_from_font)
22020 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
22021
22022 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
22023 (fontset_font, fontset_ascii, face_for_char)
22024 (make_fontset_for_ascii_face, Ffont_info)
22025 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
22026 is nonzero, use font-backend mechanism.
22027 (find_font_encoding): Make it non-static.
22028 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
22029 New functions.
22030
22031 * frame.h (struct frame): New members resx and resy.
22032 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
22033 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
22034
22035 * frame.c [USE_FONT_BACKEND]: Include "font.h".
22036 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
22037
22038 * lisp.h (assoc_no_quit): Extern it.
22039
22040 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
22041 Through out the file, use FONT_INFO_FROM_FACE instead of
22042 FONT_INFO_FROM_ID, use get_per_char_metric instead of
22043 rif->per_char_metric.
22044 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
22045 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
22046 (get_glyph_face_and_encoding, fill_composite_glyph_string)
22047 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22048 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
22049 nonzero, use font-backend mechanism.
22050 (get_per_char_metric): New function.
22051
22052 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
22053 (set_lface_from_font_name)
22054 (set_font_frame_param, free_realized_face)
22055 (prepare_face_for_display, clear_face_gcs)
22056 (Finternal_set_font_selection_order, realize_x_face)
22057 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
22058 font-backend mechanism.
22059 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
22060 (load_face_font) [USE_FONT_BACKEND]: Abort.
22061 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
22062 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
22063
22064 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
22065 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
22066 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
22067 nonzero, register all available font drivers. Call
22068 x_default_font_parameter for deciding a font.
22069 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
22070
22071 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
22072 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
22073 (x_set_glyph_string_clipping_exactly)
22074 (x_compute_glyph_string_overhangs)
22075 (x_draw_glyph_string_foreground)
22076 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
22077 (x_free_frame_resources) [USE_FONT_BACKEND]: If
22078 enable_font_backend is nonzero, use font-backend mechanism.
22079 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
22080
220812008-02-01 Kenichi Handa <handa@m17n.org>
22082
22083 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
22084 system_eol_type.
22085 (syms_of_coding): Initialize system_eol_type.
22086
22087 * process.c (Fset_process_coding_system): Inherit system's eol
22088 format if necessary.
22089
220902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22091
22092 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
22093
220942008-02-01 Kenichi Handa <handa@m17n.org>
22095
22096 * coding.c (decode_eol): Pay attention to buffer relocation in
22097 del_range_2.
22098 (decode_coding): Call decode_eol before restoring undo_list.
22099
221002008-02-01 Kenichi Handa <handa@m17n.org>
22101
22102 * charset.c (Fdefine_charset_internal): Fix setting of
22103 emacs_mule_bytes.
22104
221052008-02-01 Kenichi Handa <handa@m17n.org>
22106
22107 * keyboard.c (read_char): Check if C is a character or not before
22108 looking up Vkeyboard_translate_table.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
22113 condition to terminate the loop.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * coding.c (produce_composition): Compare charbuf[i] instead of
22118 args[i] against 0.
22119 (Fterminal_coding_system): Use EQ to compare Lisp objects.
22120
221212008-02-01 Kenichi Handa <handa@m17n.org>
22122
22123 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
22124 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
22125 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
22126 detect_coding.
22127 (emacs_mule_char): Handle old style (Emacs 20) component character
22128 of a composition.
22129 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
22130 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
22131 composition rule.
22132 (decode_coding_emacs_mule): Handle invalid bytes correctly.
22133
221342008-02-01 Kenichi Handa <handa@m17n.org>
22135
22136 * coding.c (encode_coding_ccl): Allocate destination dynamically
22137 when necessary.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
22142 the loop. When quitted, show a proper error message.
22143
221442008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * xterm.c (x_set_glyph_string_clipping_exactly): Set
22147 src->clip_head and src->clip_tail temporarily instead of src->hl.
22148
22149 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
22150 character sequence.
22151 (Fccl_execute_on_string): Use ASET, not XSET.
22152
221532008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
22156
221572008-02-01 Kenichi Handa <handa@m17n.org>
22158
22159 * coding.c (decode_coding): Fix the condition of terminating the
22160 decoding loop.
22161
221622008-02-01 Kenichi Handa <handa@m17n.org>
22163
22164 * data.c (Faset): On setting a character bigger than 255 in a
22165 unibyte string, signal an error instead of make the string multibyte.
22166
221672008-02-01 Kenichi Handa <handa@m17n.org>
22168
22169 * charset.c (map_charset_chars): Fix for ascii-compatible charset
22170 made by a mapping table.
22171
221722008-02-01 Kenichi Handa <handa@m17n.org>
22173
22174 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
22175 not.
22176 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
22177 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
22178
22179 * xterm.c (x_draw_composite_glyph_string_foreground): Check
22180 s->face is NULL or not.
22181
221822008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
22185 (x_draw_glyph_string): Fix drawing of right_overhang and
22186 left_overhang around/on cursor.
22187
22188 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
22189
221902008-02-01 Kenichi Handa <handa@m17n.org>
22191
22192 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
22193
221942008-02-01 Kenichi Handa <handa@m17n.org>
22195
22196 * coding.c (Fdefine_coding_system_internal)
22197 (Fdefine_coding_system_alias): Avoid a duplicated element in
22198 Vcoding_system_alist.
22199
222002008-02-01 Kenichi Handa <handa@m17n.org>
22201
22202 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
22203
22204 * coding.c (Qcoding_system_define_form): New variable.
22205 (syms_of_coding): Intern and staticpro it.
22206 (Fcoding_system_p): Check Qcoding_system_define_form.
22207 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
22208
22209 * coding.h (CODING_SYSTEM_P): If ID is not available, call
22210 Fcoding_system_p.
22211 (CHECK_CODING_SYSTEM): If ID is not available, call
22212 Fcheck_coding_system.
22213 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
22214 Try also Fcheck_coding_system.
22215
222162008-02-01 Kenichi Handa <handa@m17n.org>
22217
22218 * coding.c (code_conversion_restore): GCPRO arg.
22219
222202008-02-01 Kenichi Handa <handa@m17n.org>
22221
22222 * character.c (lisp_string_width): Check multibyteness of STRING.
22223
222242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22225
22226 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
22227 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
22228 (decode_mac_font_name): Use decode_coding_c_string instead of
22229 decode_coding.
22230 (x_load_font): Initialize fontp->fontset to -1. Set
22231 fontp->encoding_type.
22232
222332008-02-01 Kenichi Handa <handa@m17n.org>
22234
22235 * search.c (search_buffer): Give up BM search on case-fold-search
22236 if one of a target character has a case-equivalence of different
3b59c351 22237 byte length even if that target character is an ASCII.
aac0c6e3
MR
22238 (simple_search): Fix calculation of byte length of matched text.
22239 (boyer_moore): Fix handling of case-equivalent multibyte characters.
22240
222412008-02-01 Kenichi Handa <handa@m17n.org>
22242
22243 * coding.c (decode_coding): Fix handling of invalid bytes.
22244
222452008-02-01 Kenichi Handa <handa@m17n.org>
22246
22247 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22248 Unicode characters.
22249
222502008-02-01 Kenichi Handa <handa@m17n.org>
22251
22252 * coding.c (encode_coding_object): If a pre-write-conversion
22253 function makes a new buffer, kill it.
22254
222552008-02-01 Kenichi Handa <handa@m17n.org>
22256
22257 * coding.c (QCascii_compatible_p): New variable.
22258 (syms_of_coding): Initialize it.
22259 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
22260 calling string_char.
22261 (record_conversion_result): Add `default:' case.
22262 (coding_charset_list): Delete unused variable `coding_type'.
22263 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
22264 property in the plist of the coding system.
22265 (Fcoding_system_put): Check QCascii_compatible_p.
22266
222672008-02-01 Miles Bader <miles@gnu.org>
22268
22269 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
22270 removed calculation of frame `f', as it's now used.
22271
222722008-02-01 Kenichi Handa <handa@m17n.org>
22273
22274 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
22275 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
22276 (UNIDATA): New variable.
22277 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
22278 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
22279 $(RUN_TEMACS) unconditionally.
22280
222812008-02-01 Kenichi Handa <handa@m17n.org>
22282
22283 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
22284 (admindir): New variable.
22285 ($(lispsource)international/charprop.el): New target.
22286
222872008-02-01 Miles Bader <miles@gnu.org>
22288
22289 * character.c (chars-in-region): Remove obsolete function.
22290 (syms_of_character): Remove its initialization.
22291
222922008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
22293
22294 * w32select.c (validate_coding_system)
22295 (setup_windows_coding_system): New functions.
22296 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
22297 setup_windows_coding_system.
22298 (setup_config, Fw32_get_clipboard_data): Use
22299 validate_coding_system.
22300 (Fx_selection_exists): Move call to setup_config to a place
22301 where signals are allowed.
22302
22303 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
22304 (Fcheck_coding_system): Add declarations.
22305
223062008-02-01 Kenichi Handa <handa@m17n.org>
22307
22308 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
22309
223102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22311
22312 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
22313 string as the second argument for x_new_fontset.
22314
223152008-02-01 Kenichi Handa <handa@m17n.org>
22316
22317 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
22318 (encode_coding_object): Use safe_call instead of call2.
22319
223202008-02-01 Kenichi Handa <handa@m17n.org>
22321
22322 * fontset.c (Fset_fontset_font): Check family element of a given vector.
22323
22324 * Makefile.in (lisp): Include charprop.el.
22325
223262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22327
22328 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
22329 Not sure if it's unnecessary.
22330
223312008-02-01 Steven Tamm <steventamm@mac.com>
22332
22333 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
22334 some possibly unnecessary fontset checking code that crashed
22335 when creating a new frame.
22336
223372008-02-01 Kenichi Handa <handa@m17n.org>
22338
22339 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
22340 lookup_face.
22341
22342 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
22343
22344 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
22345
223462008-02-01 Kenichi Handa <handa@m17n.org>
22347
22348 * coding.c: Cancel the change done in HEAD on 2008-02-01.
22349 (coding_charset_list): New function.
22350
22351 * coding.h (coding_charset_list): Extern it.
22352
223532008-02-01 Kenichi Handa <handa@m17n.org>
22354
22355 * fontset.c (Fset_fontset_font): Call find_font_encoding with
22356 concatenation of family and registry.
22357
223582008-02-01 Kenichi Handa <handa@m17n.org>
22359
22360 * character.h (BYTE8_STRING): Fix typo.
22361
22362 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22363 string to multibyte (sync to HEAD).
22364
22365 * casefiddle.c (casify_region): Handle changes in byte-length
22366 using replace_range_2 (sync to HEAD).
22367
223682008-02-01 Andreas Schwab <schwab@suse.de>
22369
22370 * chartab.c (map_char_table): GCPRO table and arg.
22371
223722008-02-01 Kenichi Handa <handa@m17n.org>
22373
22374 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22375 already at limit.
22376
223772008-02-01 Kenichi Handa <handa@m17n.org>
22378
22379 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22380 instead of fast_c_string_match_ignore_case.
22381 (find_font_encoding): Change argument to Lisp_Object. Use
22382 fast_string_match_ignore_case instead of
22383 fast_c_string_match_ignore_case. Change caller.
22384
223852008-02-01 Kenichi Handa <handa@m17n.org>
22386
22387 * xdisp.c (get_next_display_element): In unibyte case, decide to
22388 display in octal form by checking a character by
22389 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22390
22391 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22392
22393 * character.c (unibyte_has_multibyte_table): New variable.
22394
22395 * character.h (unibyte_has_multibyte_table): Extern it.
22396 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22397
223982008-02-01 Kenichi Handa <handa@m17n.org>
22399
22400 * coding.c (encode_coding_iso_2022): Fix handling of charset
22401 annotation.
22402
224032008-02-01 Kenichi Handa <handa@m17n.org>
22404
22405 * coding.c (setup_coding_system): If coding_system is nil, use
22406 Qundecided.
22407 (Fterminal_coding_system): Return nil if terminal coding system is
22408 `undecided'.
22409 (syms_of_coding): Define coding-system `undecided' here. Setup
22410 terminal_coding as `undecided'.
22411
224122008-02-01 Kenichi Handa <handa@m17n.org>
22413
22414 * xdisp.c (message_dolog, set_message_1): Call
22415 unibyte_char_to_multibyte with arg type int.
22416
22417 * lread.c (read1): Fix reading of a char-table.
22418
22419 * print.c (print_object): Include sub char-table in circularities
22420 detection.
22421
224222008-02-01 Kenichi Handa <handa@m17n.org>
22423
22424 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
22425 Append the found sequences in car of ARGS instead of prepending.
22426
224272008-02-01 Kenichi Handa <handa@m17n.org>
22428
22429 * fileio.c (report_file_error): Make a unibyte string from
22430 strerror (errorno).
22431 (Fsubstitute_in_file_name): Fix the arg to
22432 unibyte_char_to_multibyte. It is evaluated twice.
22433
224342008-02-01 Kenichi Handa <handa@m17n.org>
22435
22436 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
22437
224382008-02-01 Kenichi Handa <handa@m17n.org>
22439
22440 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
22441 BOM is not found.
22442 (detect_coding, detect_coding_system): Optimization for ISO-2022
22443 when no 8-bit data is found.
22444
224452008-02-01 Jason Rumney <jasonr@gnu.org>
22446
22447 * w32fns.c (x_to_w32_font): Update to use new coding struct.
22448
224492008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
22452 CHARS.
22453
224542008-02-01 Steven Tamm <steventamm@mac.com>
22455
22456 * macterm.c (mac_encode_char): Add charset argument and update
22457 to use encoding_type.
22458 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22459 switch to pure fontset.
22460 (decode_mac_font_name): Temporarily remove decoding.
22461 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22462 (x_load_font): Temporarily remove encoding.
22463
224642008-02-01 Kenichi Handa <handa@m17n.org>
22465
22466 * xfaces.c (Fface_font): If frame is not on a window system,
22467 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22468 refer to face->font.
22469 (split_font_name_into_vector, build_font_name_from_vector)
22470 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22471 when HAVE_WINDOW_SYSTEM is defined.
22472
224732008-02-01 Kenichi Handa <handa@m17n.org>
22474
22475 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22476 (x_produce_glyphs): Fix setting of members of cmp in case
22477 cmp->glyph_len is zero.
22478
22479 * fontset.c (Fset_fontset_font): Fix docstring.
22480 (Ffontset_info): Make it backward compatible. New arg ALL.
22481
224822008-02-01 Kim F. Storm <storm@cua.dk>
22483
22484 * process.c (read_process_output): Grow decoding_buf when needed;
22485 this could cause a crash in allocate_string and compact_small_strings.
22486
224872008-02-01 Kenichi Handa <handa@m17n.org>
22488
22489 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22490
224912008-02-01 Kenichi Handa <handa@m17n.org>
22492
22493 * coding.c (setup_coding_system): Set coding->common_flags
22494 correctly for raw-text.
22495 (consume_chars): On encoding unibyte text by raw-text, don't check
22496 multibyte form.
22497 (encode_coding): On encoding by raw-text, never use translation tables.
22498
22499 * fileio.c (e_write): Short cut for the case of no encoding.
22500
225012008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * coding.c (detect_coding, detect_coding_system): Delete unused
22504 variables.
22505
225062008-02-01 Kenichi Handa <handa@m17n.org>
22507
22508 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22509 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22510
225112008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * coding.c (Ffind_coding_systems_region_internal): Include
22514 raw-text and no-conversion in the result.
22515
225162008-02-01 Kenichi Handa <handa@m17n.org>
22517
22518 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22519 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22520 FONT_DEF.
22521 (font_def_arg, add_arg, from_arg, to_arg): New args.
22522 (set_fontset_font): Change argument.
22523 (Fset_fontset_font): Fix for the case that TARGET is a script
22524 name and charset name.
22525 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22526
225272008-02-01 Kenichi Handa <handa@m17n.org>
22528
22529 * fontset.c (fontset_font): Rename from fontset_face. Change return
22530 value.
22531 (face_suitable_for_char_p, face_for_char): Adjust for the change
22532 of fontset_font.
22533 (make_fontset_for_ascii_face): Fix setting of the fontset element
22534 for ASCII.
22535 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22536 to get a font name.
22537 (Ffontset_info): Adjust for the change of fontset_font.
22538
22539 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22540
22541 * character.h (LEADING_CODE_LATIN_1_MIN)
22542 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22543
225442008-02-01 Kenichi Handa <handa@m17n.org>
22545
22546 * editfns.c (check_translation): New function.
22547 (Ftranslate_region_internal): Handle M:N mapping.
22548
225492008-02-01 Kenichi Handa <handa@m17n.org>
22550
22551 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22552
225532008-02-01 Kenichi Handa <handa@m17n.org>
22554
22555 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22556 goto invalid_code.
22557 (decode_coding_iso_2022): Fix handling of invalid designation.
22558
22559 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22560 after calling code_conversion_save.
22561
225622008-02-01 Kenichi Handa <handa@m17n.org>
22563
22564 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22565
22566 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22567
22568 * fontset.c: Include "intervals.h".
22569 (fontset_face): Fix comparing of Lisp_Objects.
22570 (free_face_fontset, new_fontset_from_font_name): Fix
22571 Lisp_Object/int mixup.
22572
22573 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22574
22575 * coding.c: Add many prototypes for static functions.
22576 (get_translation_table): Allow max_lookup to be NULL.
22577 (decode_coding, Ffind_coding_systems_region_internal)
22578 (Funencodable_char_position, Fcheck_coding_systems_region): Call
22579 get_translation_table with max_lookup NULL.
22580
225812008-02-01 Kenichi Handa <handa@m17n.org>
22582
22583 * coding.c (get_translation_table): Declare it as Lisp_Object.
22584 (LOOKUP_TRANSLATION_TABLE): New macro.
22585 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22586 instead of CHAR_TABLE_REF.
22587
225882008-02-01 Kenichi Handa <handa@m17n.org>
22589
22590 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22591 annotation data format.
22592 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22593 Change arguments FROM and TO to single argument NCHARS. Change caller.
22594 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22595 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22596 (decode_coding_ccl, decode_coding_charset): Pay attention to
22597 coding->charbuf_used.
22598 (get_translation): New function.
22599 (produce_chars): New arguments translation_table and last_block.
22600 Translate characters here. Return number of carryover chars.
22601 Change caller.
22602 (produce_composition): New argument pos. Change caller.
22603 Adjust for the change of annotation data format.
22604 (produce_charset, produce_annotation): Likewise.
22605 (decode_coding, encode_coding): Don't call translate_chars.
22606 (consume_chars): New arg translation_table. Change caller.
22607 (translate_chars): Delete.
22608 (syms_of_coding): Make translation-table's number of extra slots 2.
22609
226102008-02-01 Kenichi Handa <handa@m17n.org>
22611
22612 * search.c (simple_search): Fix setting this_pos_byte in backward
22613 search.
22614
22615 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22616 byte sequence.
22617 (detect_coding_ccl): Fix setting of the variable valids.
22618
226192008-02-01 Kenichi Handa <handa@m17n.org>
22620
22621 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22622
22623 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22624
22625 * editfns.c (Ftranslate_region_internal): Rename from
22626 Ftranslate_region. Accept a char-table in TABLE.
22627 (syms_of_editfns): Defsubr Stranslate_region_internal.
22628
22629 * xfaces.c (set_lface_from_font_name): If a font is specified for
22630 a frame, generate a fontset from the font.
22631 (build_scalable_font_name): If the scalable font is requested for
22632 a specific size, don't change that size.
22633 (try_font_list): Try a scalable font also in the case that a
22634 pattern string is specified.
22635
226362008-02-01 Kenichi Handa <handa@m17n.org>
22637
22638 * xfaces.c (Fface_font): New optional arg CHARACTER.
22639
226402008-02-01 Kenichi Handa <handa@m17n.org>
22641
22642 * charset.h (CHARSET_OFFSET): New macro.
22643
226442008-02-01 Kenichi Handa <handa@m17n.org>
22645
22646 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22647
22648 * fontset.c (fontset_face): Handle the case that repertory is a
22649 char-table.
22650 (find_font_encoding): Return nil for unknown encoding.
22651 (Fset_fontset_font): Ignore a font of unknown encoding.
22652
226532008-02-01 Kenichi Handa <handa@m17n.org>
22654
22655 * keymap.c (describe_vector): Handle default value of a char table.
22656
22657 * fontset.c (fontset_face): Handle fallback fonts correctly.
22658 (Ffontset_info): Return infomation about fallback fonts.
22659
226602008-02-01 Kenichi Handa <handa@m17n.org>
22661
22662 * fontset.c (FONTSET_DEFAULT): New macro.
22663 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22664 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22665 the case that it is nil.
22666 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22667 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22668
22669 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22670 subset or superset.
22671
226722008-02-01 Kenichi Handa <handa@m17n.org>
22673
22674 * emacs.c (main): Call init_charset after syms_of_XXX.
22675
22676 * charset.c (Vcharset_map_directory): Delete.
22677 (Vcharset_map_path): New variable.
22678 (load_charset_map_from_file): Use Vcharset_map_path instead.
22679 (init_charset): Initialize Vcharset_map_path.
22680 (syms_of_charset): Delete declaration of "charset-map-directory",
22681 add declaration of "charset-map-path".
22682
226832008-02-01 Kenichi Handa <handa@m17n.org>
22684
22685 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22686 ASCII only string.
22687
22688 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22689
22690 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22691 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22692
226932008-02-01 Kenichi Handa <handa@m17n.org>
22694
22695 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22696
22697 * coding.c (QCmnemonic, QCdefalut_char)
22698 (QCdecode_translation_table, QCencode_translation_table)
22699 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22700 (get_translation_table): Return a list of translation tables if
22701 necessary.
22702 (decode_coding): Call get_translation_table with ENCODEP 0.
22703 (char_encodable_p): If translation_table is non-nil, always call
22704 translate_char.
22705 (Fdefine_coding_system_internal): Accept list of translation
22706 tables as :encode-translation-table and :decode-translation-table.
22707 (Fcoding_system_put): New function.
22708 (syms_of_coding): Declare new symbols. Defsubr
22709 Scoding_system_put.
22710 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22711 typically JISX0212.
22712
22713 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22714 when the charset is superset type.
22715
22716 * character.c (translate_char): Accept list of translation tables.
22717
227182008-02-01 Kenichi Handa <handa@m17n.org>
22719
22720 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22721 (CODING_ATTR_TRANS_TBL): New macro.
22722
22723 * coding.c (get_translation_table): New function.
22724 (translate_chars): Fix the bug of skipping annotation data.
22725 (decode_coding, encode_coding): Utilize get_translation_table.
22726 (char_encodable_p, Funencodable_char_position): Translate char if
22727 necessary.
22728 (Ffind_coding_systems_region_internal)
22729 (Fcheck_coding_systems_region): Setup translation table for encode
22730 in a coding system attribute vector in advance.
22731 (Fdefine_coding_system_internal): Allow a symbol as translation
22732 table. For shift-jis type coding system, allow 4th charset.
22733
227342008-02-01 Kenichi Handa <handa@m17n.org>
22735
22736 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22737
22738 * xdisp.c (get_next_display_element): Pass -1 as POS to
22739 FACE_FOR_CHAR if displaying a C-string.
22740
227412008-02-01 Kenichi Handa <handa@m17n.org>
22742
22743 * composite.c (get_composition_id): Handle xoff and yoff in a
22744 composition rule.
22745
22746 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22747 (struct composition): New member lbearing and rbearing.
22748
22749 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22750 (x_get_glyph_overhangs): Handle a composition glyph.
22751 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22752
22753 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22754 composition glyph.
22755
227562008-02-01 Kenichi Handa <handa@m17n.org>
22757
22758 * print.c: Include charset.h.
22759 (Vprint_charset_text_property): New variable.
22760 (Qdefault): Extern it.
22761 (PRINT_STRING_NON_CHARSET_FOUND)
22762 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22763 (print_check_string_result): New variable.
22764 (print_check_string_charset_prop): New function.
22765 (print_prune_charset_plist): New variable.
22766 (print_prune_string_charset): New function.
22767 (print_object): Call print_prune_string_charset if
22768 Vprint_charset_text_property is not t.
22769 (print_interval): Print nothing if interval->plist is nil.
22770 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22771 variable. Init and staticpro print_prune_charset_plist.
22772
227732008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * fontset.c (new_fontset_from_font_name): Use the specified font
22776 for all characters in the new fontset.
22777
22778 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22779 OBJECT args.
22780
22781 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22782 OBJECT args for composition too.
22783
22784 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22785 OBJECT args.
22786
227872008-02-01 Kenichi Handa <handa@m17n.org>
22788
22789 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22790
22791 * fontset.c (reorder_font_vector): Adjust for the change of
22792 FONT_DEF format.
22793 (fontset_face): New arg id. Change caller.
22794 (face_for_char): New args pos and object.
22795 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22796 (fs_query_fontset): Check NAME by Fassoc too.
22797 (Fset_fontset_font): Allow non-XLFD font name.
22798 (Ffontset_info): Adjust for the change of FONT_DEF format.
22799
22800 * fontset.h (face_for_char): Adjust prototype.
22801
22802 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22803 (append_space, extend_face_to_end_of_line)
22804 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22805 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22806
22807 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22808 POS and OBJECT args.
22809
22810 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22811 POS and OBJECT args.
22812
228132008-02-01 Jason Rumney <jasonr@gnu.org>
22814
22815 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22816 of GlobalAlloc'ed memory.
22817
228182008-02-01 Kenichi Handa <handa@m17n.org>
22819
22820 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22821
22822 * charset.h (charset_table_used): Delete extern.
22823
22824 * charset.c (charset_table_used): Make it static.
22825 (map_charset_chars): Fix args to c_function with.
22826
22827 * chartab.c (map_sub_char_table_for_charset): Fix args to
22828 c_function with.
22829
22830 * coding.h (enum coding_result_code): Delete
22831 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22832
22833 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22834 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22835 (Vlast_code_conversion_error): New variables.
22836 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22837 (ONE_MORE_BYTE): Record error if any instead of signaling an
22838 error. If non-ASCII multibyte char is found, return the negative
22839 value of the code. All callers changed to check it.
22840 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22841 (record_conversion_result): New function. Change all codes setting
22842 coding->result to call this function.
22843 (detect_coding_utf_8, decode_coding_utf_8)
22844 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22845 Don't use the local variable incomplete.
22846 (emacs_mule_char): Change the second arg to `const'.
22847 (decode_coding): Fix of flushing out unprocessed data.
22848 (make_conversion_work_buffer): Fix making of a work buffer.
22849 (decode_coding_object): Return coding->dst_object.
22850
22851 * fontset.c (set_fontset_font): Fix args.
22852
22853 * lisp.h (CHARACTERBITS): Define as 22.
22854
22855 * process.c (send_process): Be sure to set coding->src_multibyte.
22856
22857 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22858
228592008-02-01 Kenichi Handa <handa@m17n.org>
22860
22861 * xdisp.c (handle_auto_composed_prop): Give limit to
22862 Fnext_single_char_property_change.
22863
228642008-02-01 Kenichi Handa <handa@m17n.org>
22865
22866 * composite.c (syms_of_composite): Don't make the composition hash
22867 table weak.
22868
22869 * fontset.c (Fset_fontset_font): Fix docstring.
22870
22871 * lisp.h (detect_coding_system): Adjust prototype.
22872
22873 * fileio.c (kill_workbuf_unwind): Delete this function.
22874 (Finsert_file_contents): Adjust the call of detect_coding_system.
22875 Get conversion_buffer by code_conversion_save. Use the macro
22876 CODING_MAY_REQUIRE_DECODING. After decoding, update
22877 coding_system.
22878
22879 * coding.h (make_conversion_work_buffer): Delete extern.
22880 (code_conversion_save): Extern it.
22881
22882 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22883 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22884 (decode_coding_utf_8): Don't do eol converion.
22885 (detect_coding_utf_16): Check coding->src_chars, not
22886 coding->src_bytes. Add heuristics for those that have no signature.
22887 (decode_coding_emacs_mule, decode_coding_iso_2022)
22888 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22889 Don't do eol converion.
22890 (adjust_coding_eol_type): Return a new coding system.
22891 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22892 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22893 each change.
22894 (decode_coding): Pay attention to undo_list. Do eol conversion for
22895 all types of coding-systems (if necessary).
22896 (Vcode_conversion_work_buf_list): Delete it.
22897 (Vcode_conversion_reused_workbuf): Rename from
22898 Vcode_conversion_reused_work_buf.
22899 (Vcode_conversion_workbuf_name): New variable.
22900 (reused_workbuf_in_use): New variable.
22901 (make_conversion_work_buffer): Delete the arg DEPTH.
22902 (code_conversion_restore): Change argument to cons.
22903 (code_conversion_save): Delete the argument BUFFER. Change callers.
22904 (detect_coding_system): New argument src_chars. Change callers.
22905 Fix for utf-16 detection.
22906 (init_coding_once): Don't use ISO_carriage_return.
22907 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22908 reused_workbuf_in_use.
22909
229102008-02-01 Kenichi Handa <handa@m17n.org>
22911
22912 * keymap.c (store_in_keymap): Pay attention to the case that idx
22913 is a cons specifying a character range.
22914
229152008-02-01 Kenichi Handa <handa@m17n.org>
22916
22917 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22918 HANDLED_RECOMPUTE_PROPS.
22919
22920 * coding.c (Fdefine_coding_system_internal): Fix checking of
22921 ascii compatibility.
22922
229232008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * charset.c (find_charsets_in_text): Delete unused locale variable.
22926 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22927
22928 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22929 Resync charset_list to Vemacs_mule_charset_list.
22930
22931 * keymap.c (store_in_keymap): Pay attention to the case that idx
22932 is a cons specifying a character range.
22933
229342008-02-01 Kenichi Handa <handa@m17n.org>
22935
22936 * composite.c (update_compositions): Bind inhibit-read-only, etc
22937 to t before calling remove-list-of-text-properties.
22938
22939 * print.c (print_object): Always print ASCII chars as is.
22940
229412008-02-01 Kenichi Handa <handa@m17n.org>
22942
22943 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22944
22945 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22946 is a char table.
22947
229482008-02-01 Kenichi Handa <handa@m17n.org>
22949
22950 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22951
229522008-02-01 Kenichi Handa <handa@m17n.org>
22953
22954 * xfaces.c (set_lface_from_font_name): Fix for the case that
22955 FONTNAME is not fontset name.
22956
229572008-02-01 Kenichi Handa <handa@m17n.org>
22958
22959 * fns.c (base64_encode_1): Fix previous change.
22960
229612008-02-01 Kenichi Handa <handa@m17n.org>
22962
22963 * fontset.c (set_fontset_font): New function.
22964 (Fset_fontset_font): If a font is specified for a charset, use
22965 map_charset_chars to store the font spec in a fontset.
22966
229672008-02-01 Kenichi Handa <handa@m17n.org>
22968
22969 * fontset.c (fontset_face): Create a fallback fontset on demand.
22970 (make_fontset): Don't create a fallback fontset here.
22971 (free_face_fontset): Free a fallback fontset (if any) too.
22972 (n_auto_fontsets): Delete this variable.
22973 (auto_fontset_alist): New variable.
22974 (new_fontset_from_font_name): Check auto_fontset_alist.
22975 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22976 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22977 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22978 Defsubr Sfontset_list_all.
22979
229802008-02-01 Kenichi Handa <handa@m17n.org>
22981
22982 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22983
229842008-02-01 Kenichi Handa <handa@m17n.org>
22985
22986 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22987
229882008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * editfns.c (Fgoto_char): Fix docstring.
22991
229922008-02-01 Kenichi Handa <handa@m17n.org>
22993
22994 * insdel.c (insert_from_gap): Adjust intervals correctly.
22995
229962008-02-01 Jason Rumney <jasonr@gnu.org>
22997
22998 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22999 (pfnGetFontUnicodeRanges): New dynamically loaded function.
23000 (w32_initialize): Try to load it.
23001 (x_get_font_repertory): Use it if available.
23002 (w32_encode_char): Add shortcut for unicode output.
23003
23004 * w32fns.c (w32_load_system_font): Default charset to -1.
23005 (x_to_w32_charset): Match all fonts for unicode.
23006 (w32_to_x_charset): New parameter matching. Don't return partial
23007 or wildcard charsets.
23008 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
23009 (w32_codepage_for_font): Return CP_UNICODE for unicode.
23010 (w32_to_x_font): Match charset to real charset.
23011 (enum_font_cb2): Always list unicode versions.
23012
23013 * makefile.w32-in (temacs): Increase EMHEAP.
23014
230152008-02-01 Jason Rumney <jasonr@gnu.org>
23016
23017 * w32term.c (w32_encode_char): New charset parameter.
23018 font_info.encoding becomes encoding_type.
23019 (x_get_font_repertory): New function. Warning: stub only!
23020 (x_new_font): Return quickly if font already set.
23021 (x_new_fontset): fontsetname parameter is Lisp_Object.
23022 Use new fs_query_fontset. Try new_fontset_from_font_name.
23023 Use fontset_name for return value.
23024
23025 * w32term.h: Declare x_get_font_repertory.
23026
23027 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
23028 place of find_charset_in_text. Use encode_coding_object in place
23029 of encode_coding.
23030 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
23031 decode_coding.
23032
23033 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
23034 of x_new_fontset.
23035 (w32_load_system_font): Initialize charset as unicode.
23036 font_info.encoding becomes encoding_type.
23037 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
23038 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
23039 (syms_of_w32fns): Set get_font_repertory_func.
23040
23041 * w32console.c: Include character.h. Use terminal_encode_buffer
23042 from term.c.
23043 (write_glyphs): Use new version of encode_terminal_code. Use
23044 encode_coding_object in place of encode_coding.
23045
23046 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
23047 encoding becomes encoding_type.
23048
23049 * term.c (terminal_encode_buffer): Make externally visible.
23050
23051 * makefile.w32-in: Add character.h dependancies.
23052 (character.o, chartab.o): New targets.
23053
230542008-02-01 Kenichi Handa <handa@m17n.org>
23055
23056 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
23057 CODING_ID_EOL_TYPE.
23058
230592008-02-01 Andreas Schwab <schwab@suse.de>
23060
23061 * coding.c (produce_chars): Revert last change.
23062
230632008-02-01 Kenichi Handa <handa@m17n.org>
23064
23065 * charset.h (charset_unicode): Extern it.
23066
23067 * charset.c (string_xstring_p): Check by (C >= 0x100).
23068 (find_charsets_in_text): Change format of the arc CHARSETS. New
23069 arg MULTIBYTE.
23070 (Ffind_charset_region, Ffind_charset_string): Adjust for the
23071 change of find_charsets_in_text.
23072 (Fsplit_char): Fix doc. Never return unknown.
23073
23074 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
23075
23076 * coding.c (Fdefine_coding_system_alias): Update
23077 Vcoding_system_list.
23078
23079 * fontset.c (load_font_get_repertory): Pay attention to the case
23080 that ENCODING of a font is specified by a char-table.
23081
23082 * xterm.c (x_get_font_repertory): Handle the case that the
23083 encoding of font is other than Unicode.
23084
230852008-02-01 Kenichi Handa <handa@m17n.org>
23086
23087 * term.c (encode_terminal_code): Don't handle glyph-table. Check
23088 if a character is encodable by the terminal coding system. If
23089 not, produces proper number of `?'s. Update
23090 terminal_encode_buffer and terminal_encode_buf_size if necessary.
23091 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
23092
230932008-02-01 Kenichi Handa <handa@m17n.org>
23094
23095 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
23096 variables.
23097 (encode_terminal_code): Change argument. Encode multiple
23098 characters at once. Store the result of encoding in
23099 terminal_encode_buffer.
23100 (write_glyphs, insert_glyphs): Adjust for the change of
23101 encode_terminal_code.
23102 (term_init): Initialize terminal_encode_buffer and
23103 terminal_encode_buf_size.
23104
23105 * coding.c (consume_chars): If coding->src_object is nil, don't
23106 check annotation.
23107
231082008-02-01 Kenichi Handa <handa@m17n.org>
23109
23110 * character.c (char_string): Use ASCII_CHAR_P instead of
23111 SINGLE_BYTE_CHAR_P.
23112
231132008-02-01 Kenichi Handa <handa@m17n.org>
23114
23115 * xdisp.c (handle_auto_composed_prop): Check if the last
23116 characters of auto-composed region is newly composed with the
23117 following characters.
23118 (handle_composition_prop): Fix checking of point being inside
23119 composition.
23120
231212008-02-01 Kenichi Handa <handa@m17n.org>
23122
23123 * fns.c (concat): Don't change multibyteness of the result by
23124 concatenating an 8-bit character.
23125
23126 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
23127 multibyteness of the result when newelt is an 8-bit character.
23128
231292008-02-01 Dave Love <fx@gnu.org>
23130
23131 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
23132 EMACS_INT.
23133
23134 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
23135
23136 * xfaces.c (face_numeric_value): Declare dim size_t.
23137 (Finternal_lisp_face_equal_p): Remove unused f.
23138
23139 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
23140 (MATRIX_ROW): Remove unused vars.
23141 (draw_glyphs, x_insert_glyphs, fast_find_position)
23142 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
23143 byte/char counts.
23144
23145 * regex.c (regex_compile): Remove unused var.
23146
23147 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23148
23149 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
23150 (Faccessible_keymaps, where_is_internal): Remove unused vars.
23151
23152 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
23153
23154 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
23155
23156 * fileio.c (Fwrite_region): Remove unused var.
23157
23158 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
23159 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
23160
23161 * composite.c (Fremove_list_of_text_properties): Declare.
23162
23163 * coding.c (inhibit_pre_post_conversion): Remove (unused).
23164 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
23165 (coding_inherit_eol_type): Remove unused attrs.
23166 (detect_coding): Cast arg of detect_eol.
23167
23168 * charset.c (syms_of_charset): Remove unused var p.
23169 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
23170 byte/char counts.
23171
23172 * casetab.c (set_case_table): Remove unused var.
23173
23174 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
23175 unused vars.
23176
231772008-02-01 Dave Love <fx@gnu.org>
23178
23179 * xterm.c (x_bitmap_mask): Declare.
23180
231812008-02-01 Dave Love <fx@gnu.org>
23182
23183 * xterm.c (x_term_init): Fix type error.
23184
23185 * lisp.h: Add Funibyte_char_to_multibyte.
23186
23187 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
23188 (Fset_coding_system_priority): Doc fix.
23189
23190 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
23191
23192 * indent.c (check_composition): Make start and end EMACS_INT.
23193
23194 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
23195
23196 * xdisp.c (handle_composition_prop, check_point_in_composition):
23197 Make buffer positions EMACS_INT.
23198
23199 * composite.c (find_composition, run_composition_function)
23200 (update_compositions, Ffind_composition_internal): Make buffer
23201 positions EMACS_INT.
23202
23203 * composite.h (find_composition, update_compositions): Make
23204 position args EMACS_INT.
23205
23206 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
23207
23208 * intervals.c (get_property_and_range):
23209 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
23210
23211 * unexalpha.c: Don't include varargs.h.
23212
232132008-02-01 Dave Love <fx@gnu.org>
23214
23215 * coding.h (ENCODE_UTF_8): New.
23216
23217 * Makefile.in (gtkutil.o): Depend on coding.h.
23218
23219 * coding.c (Fset_coding_system_priority): Doc fix.
23220
232212008-02-01 Kenichi Handa <handa@m17n.org>
23222
23223 * fileio.c (Finsert_file_contents): Call setup_coding_system in
23224 the case of auto saving.
23225
232262008-02-01 Andreas Schwab <schwab@suse.de>
23227
23228 * chartab.c (map_char_table, map_char_table_for_charset): Protect
23229 `range' from GC.
23230
232312008-02-01 Kenichi Handa <handa@m17n.org>
23232
23233 * coding.c (decode_coding_sjis): Check bytes more rigidly.
23234
232352008-02-01 Kenichi Handa <handa@m17n.org>
23236
23237 * fileio.c (choose_write_coding_system): Return a decided coding system.
23238 (Fwrite_region): Set Vlast_coding_system_used to the return value
23239 of choose_write_coding_system.
23240
232412008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * charset.c (Fset_charset_priority): Pay attention to duplicated
23244 arguments.
23245
23246 * coding.c (QCcategory): New variable.
23247 (syms_of_coding): Defsym it. Set all elements of
23248 Vcoding_category_table and their symbol values.
23249 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
23250 coding-category-XXX, and coding-category-list.
23251 (Fdefine_coding_system_internal): Add category in the plist.
23252
232532008-02-01 Kenichi Handa <handa@m17n.org>
23254
23255 * callproc.c (Fcall_process): Handle carryover correctly.
23256
23257 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
23258 (raw_text_coding_system): Check NILP (coding_system).
23259 (coding_inherit_eol_type): Check NILP (coding_system) and
23260 NILP (parent).
23261 (consume_chars): Fix for the case of raw-text.
23262
23263 * process.c (read_process_output): Handle carryover correctly.
23264
232652008-02-01 Dave Love <fx@gnu.org>
23266
23267 * regex.c (re_search_2): Fix last change.
23268
232692008-02-01 Kenichi Handa <handa@m17n.org>
23270
23271 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
23272 target_multibyte. Even in a unibyte case, return a converted
23273 multibyte char.
23274 (GET_CHAR_AFTER): New macro.
23275 (PATFETCH): Translate via multibyte char.
23276 (HANDLE_UNIBYTE_RANGE): Delete this macro.
23277 (SETUP_MULTIBYTE_RANGE): New macro.
23278 (regex_compile): Setup compiled code so that its multibyteness
23279 matches that of a target. Fix the handling of "[X-YZ]" using
23280 SETUP_MULTIBYTE_RANGE.
23281 (analyse_first) <charset>: For filling fastmap for all multibyte
23282 characters, don't check by BASE_LEADING_CODE_P.
23283 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
23284 the same as RE_MULTIBYTE_P (bufp) now.
23285 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
23286 (TARGET_CHAR_AND_LENGTH): Delete this macro.
23287 (TRANSLATE_VIA_MULTIBYTE): New macro.
23288 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
23289 It is the same as RE_MULTIBYTE_P (bufp) now.
23290 <exactn>: Translate via multibyte.
23291 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
23292 translate it.
23293 <charset, charset_not>: Fetch a character by
23294 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
23295 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
23296 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
23297 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
23298 by GET_CHAR_AFTER.
23299 (bcmp_translate): Likewise.
23300
23301 * search.c (compile_pattern): Check the member target_multibyte,
23302 not the member multibyte of buf.
23303
23304 * lread.c (read1): While reading a string, set force_singlebyte
23305 and force_multibyte correctly.
23306
23307 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
23308 up of unibyte_to_multibyte_table.
23309
233102008-02-01 Kenichi Handa <handa@m17n.org>
23311
23312 * coding.c (setup_coding_system): If coding has
23313 post-read-conversion or pre-write-conversion, set
23314 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
23315 respectively.
23316 (decode_coding_gap): Run post-read-conversion if any.
23317
23318 * fileio.c (Finsert_file_contents): Even if we read into a
23319 unibyte buffer, check if we must decode the result or not.
23320
233212008-02-01 Kenichi Handa <handa@m17n.org>
23322
23323 * coding.c (make_conversion_work_buffer): Change the work buffer
23324 name to the same one as that of Emacs 21.
23325
233262008-02-01 Kenichi Handa <handa@m17n.org>
23327
23328 * coding.h (make_conversion_work_buffer): Adjust prototype.
23329 (code_conversion_restore): Don't extern it.
23330
23331 * coding.c (detected_mask): Delete unused variable.
23332 (decode_coding_iso_2022): Pay attention to the byte sequence of
23333 CTEXT extended segment, and retain those bytes as is.
23334 (decode_coding_ccl): Delete unused variable `valids'.
23335 (setup_coding_system): Delete unused variable `category'.
23336 (consume_chars): Delete unused variable `category'. Make it work
23337 for non-multibyte case.
23338 (make_conversion_work_buffer): Change argument.
23339 (saved_coding): Delete unused variable.
23340 (code_conversion_restore): Don't check saved_coding->destination.
23341 (code_conversion_save): New function.
23342 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
23343 instead of record_unwind_protect.
23344 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
23345 (detect_coding_system): Delete unused variable `mask'.
23346 (Fdefine_coding_system_internal): Delete unused variable id.
23347
23348 * fileio.c (kill_workbuf_unwind): New function.
23349 (Finsert_file_contents): On replacing, call
23350 make_conversion_work_buffer with correct args, and call
23351 record_unwind_protect with the first arg kill_workbuf_unwind.
23352
23353 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
23354
233552008-02-01 Kenichi Handa <handa@m17n.org>
23356
23357 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23358 (fontset_add): Fix for the case that TO is less than TO1.
23359 (Ffontset_info): Don't use fallback fontset on checking the
23360 default fontset.
23361 (dump_fontset): New function for debugging.
23362
23363 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23364 coding_type is Qcharset.
23365
233662008-02-01 Kenichi Handa <handa@m17n.org>
23367
23368 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23369 (map_char_table): Don't inherit the value from the parent on
23370 initializing VAL. Adjust for the above change.
23371
233722008-02-01 Kenichi Handa <handa@m17n.org>
23373
23374 * coding.c (Qsignature, Qendian): Delete these variables.
23375 (syms_of_coding): Don't initialize them.
23376 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23377 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23378 detect_info->found.
23379 (decode_coding_utf_16): Don't detect BOM here.
23380 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23381 is NOT utf_16_without_bom.
23382 (setup_coding_system): For a coding system of type utf-16, check
23383 if the attribute :endian is Qbig or not (not nil or not), and set
23384 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23385 (detect_coding): If coding type is utf-16 and BOM detection is
23386 required, detect it.
23387 (Fdefine_coding_system_internal): For a coding system of type
23388 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23389
233902008-02-01 Kenichi Handa <handa@m17n.org>
23391
23392 * coding.c (coding_set_source): Fix for the case that the current
23393 buffer is different from coding->src_object.
23394 (decode_coding_object): Don't use the conversion work buffer if
23395 DST_OBJECT is a buffer.
23396
233972008-02-01 Dave Love <fx@gnu.org>
23398
23399 * lread.c (read_emacs_mule_char) [len==2]: Index
23400 emacs_mule_charset correctly.
23401
234022008-02-01 Dave Love <fx@gnu.org>
23403
23404 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23405 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23406 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23407 treated specially.)
23408 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23409 (detected_mask): Remove Big5 bits.
23410
234112008-02-01 Kenichi Handa <handa@m17n.org>
23412
23413 The following changes are to make the font rescaling facility
23414 compatible with Emacs 21.
23415
23416 * xfaces.c (Vface_font_rescale_alist): Rename from
23417 Vface_resizing_fonts.
23418 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23419 (font_rescale_ratio): Rename from font_resizing_ratio.
23420 (split_font_name): Set font->rescale_ratio.
23421 (better_font_p): Pay attention to font->rescale_ratio.
23422 (build_scalable_font_name): Likewise. Change RESX, and RESY
23423 fields.
23424 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
23425
234262008-02-01 Kenichi Handa <handa@m17n.org>
23427
23428 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
23429 (Qutf_16_le): Remove these variables.
23430 (syms_of_coding): Don't DEFSYM them.
23431 (decode_coding_utf_16): Fix handling of BOM.
23432 (encode_coding_utf_16): Fix handling of BOM.
23433
234342008-02-01 Kenichi Handa <handa@m17n.org>
23435
23436 * fileio.c (Finsert_file_contents): On replacing, before decoding
23437 the file into the work buffer, set point of the work buffer to the end.
23438
234392008-02-01 Dave Love <fx@gnu.org>
23440
23441 * coding.c (Fcheck_coding_systems_region): Fix type errors.
23442
234432008-02-01 Dave Love <fx@gnu.org>
23444
23445 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23446 and fix C types.
23447
234482008-02-01 Kenichi Handa <handa@m17n.org>
23449
23450 * xdisp.c (SKIP_GLYPHS): New macro.
23451 (set_cursor_from_row): Pay attention to string display properties.
23452
23453 * category.c (copy_category_entry): Fix for the case that RANGE
23454 is an integer.
23455
23456 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23457
23458 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23459
234602008-02-01 Kenichi Handa <handa@m17n.org>
23461
23462 * charset.c (Fcharset_id_internal): New function.
23463 (syms_of_charset): Defsubr it.
23464
23465 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23466 with the last arg charset_list acquired from coding.
23467 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23468 the attribute coding_attr_ccl_valids.
23469
23470 * coding.h (enum define_coding_ccl_arg_index): Set the first
23471 member coding_arg_ccl_decoder to coding_arg_max.
23472
23473 * ccl.h (ccl_driver): Adjust prototype.
23474
23475 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23476 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 23477 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
23478 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23479 last arg Qnil.
23480
234812008-02-01 Kenichi Handa <handa@m17n.org>
23482
23483 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23484 call encode_char.
23485
23486 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23487
234882008-02-01 Dave Love <fx@gnu.org>
23489
23490 * composite.c (syms_of_composite): Make composition_hash_table weak.
23491
234922008-02-01 Kenichi Handa <handa@m17n.org>
23493
23494 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23495 (font_name_registry): Don't extern them.
23496 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23497
23498 * fontset.h (Qfontset): Don't extern it.
23499 (new_fontset_from_font_name): Extern it.
23500
23501 * fontset.c: Give 8 extra slots to fontset objects.
23502 (Qfontset_info): New variable.
23503 (syms_of_fontset): Defsym it.
23504 (FONTSET_FALLBACK): New macro.
23505 (fontset_face): Try also the default fontset.
23506 (make_fontset): Realize a fallback fontset from the default fontset.
23507 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23508 using split_font_name_into_vector and build_font_name_from_vector.
23509 (Fset_fontset_font): Access the elements of font_spec by enum
23510 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23511 name by using split_font_name_into_vector.
23512 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23513 generate a proper font name from the fontset name. Update
23514 Vfontset_alias_alist.
23515 (n_auto_fontsets): New variable.
23516 (new_fontset_from_font_name): New function.
23517 (Ffont_info): Store the information about fonts generated from the
23518 default fontset in the first extra slot of the returned char-table.
23519
23520 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23521 (font_name_registry): Delete function.
23522 (split_font_name_into_vector): New function.
23523 (build_font_name_from_vector): New function.
23524 (font_list): The argument REGISTRY is now a list of registry names.
23525 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23526 specifies an explicit font name, return the name as is. Make a
23527 list of registy names.
23528
23529 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23530 of x_new_fontset.
23531 (Fx_create_frame): Don't call x_new_fontset here. Just use
23532 x_list_fonts to check the existence of fonts.
23533
23534 * xterm.h (x_new_fontset): Adjust prototype.
23535
23536 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23537 string. Use new_fontset_from_font_name to create a fontset from a
23538 font name.
23539
235402008-02-01 Kenichi Handa <handa@m17n.org>
23541
23542 * syntax.c (Vfind_word_boundary_function_table): New name for
23543 Vnext_word_boundary_function_table.
23544 (find-word-boundary-function-table): New name for
23545 next-word-boundary-function-table.
23546
235472008-02-01 Dave Love <fx@gnu.org>
23548
23549 * Makefile.in: Fix some dependencies.
23550
23551 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23552 set it to nil before returning.
23553
23554 * composite.c (update_compositions): Fix type error.
23555
23556 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23557
235582008-02-01 Kenichi Handa <handa@m17n.org>
23559
23560 * xterm.c (x_new_font): Optimize for the case that the font is
23561 already set for the frame.
23562
235632008-02-01 Kenichi Handa <handa@m17n.org>
23564
23565 * chartab.c (char_table_ascii): Check if the char table contents
23566 is sub-char-table or not.
23567 (char_table_set, char_table_set_range): Fix argument to
23568 char_table_ascii.
23569
23570 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23571 (detect_coding_utf_8, detect_coding_utf_16)
23572 (detect_coding_emacs_mule, detect_coding_iso_2022)
23573 (detect_coding_sjis, detect_coding_big5)
23574 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23575 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23576 sequence is valid in this coding system. Change callers.
23577 (MAX_ANNOTATION_LENGTH): New macro.
23578 (ADD_ANNOTATION_DATA): New macro.
23579 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
23580 ADD_ANNOTATION_DATA. Change the format of annotation data.
23581 (ADD_CHARSET_DATA): New macro.
23582 (emacs_mule_char): New argument ID. Change callers.
23583 (decode_coding_emacs_mule, decode_coding_iso_2022)
23584 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23585 Produce charset annotation data in coding->charbuf.
23586 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23587 to charset annotation data in coding->charbuf.
23588 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23589 coding->common_flags if the coding system is iso-2022 based and
23590 uses designation.
23591 (produce_composition): Adjust for the new annotation data format.
23592 (produce_charset): New function.
23593 (produce_annotation): Handle charset annotation.
23594 (handle_composition_annotation, handle_charset_annotation): New
23595 functions.
23596 (consume_chars): Handle charset annotation. Utilize the above two
23597 functions.
23598 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23599 buffer, get the deleted text as a string and set
23600 coding->src_object to that string.
23601 (detect_coding, detect_coding_system): Use the new struct
23602 coding_detection_info.
23603
23604 * coding.h (struct coding_detection_info): New structure.
23605 (struct coding_system): Adjust prototype of the member `detector'.
23606 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23607
236082008-02-01 Kenichi Handa <handa@m17n.org>
23609
23610 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23611
236122008-02-01 Dave Love <fx@gnu.org>
23613
23614 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23615 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23616 to new local and nullify apropos_accumulate before returning.
23617 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23618
236192008-02-01 Kenichi Handa <handa@m17n.org>
23620
23621 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23622 correctly.
e3eea1fc 23623
aac0c6e3
MR
236242008-02-01 Dave Love <fx@gnu.org>
23625
23626 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23627
236282008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 The following changes are to make character composition happen
23631 automatically on displaying.
23632
23633 * Makefile.in (lisp, shortlisp): Add composite.elc.
23634
23635 * composite.h (Qauto_composed, Vauto_composition_function)
23636 (Qauto_composition_function): Extern them.
23637
23638 * composite.c (Vcomposition_function_table)
23639 (Qcomposition_function_table): Delete variables.
23640 (Qauto_composed, Vauto_composition_function)
23641 (Qauto_composition_function): New variables.
23642 (run_composition_function): Don't call
23643 compose-chars-after-function.
23644 (update_compositions): Clear `auto-composed' text property.
23645 (compose_chars_in_text): Delete this function.
23646 (syms_of_composite): Staticpro Qauto_composed and
23647 Qauto_composition_function. Declare Vauto_composition_function as
23648 a Lisp variable.
23649
23650 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23651
23652 * xdisp.c (it_props): Add an entry for Qauto_composed.
23653 (handle_auto_composed_prop): New function.
23654
23655 * xselect.c (selection_data_to_lisp_data): Don't call
23656 compose_chars_in_text.
23657
236582008-02-01 Dave Love <fx@gnu.org>
23659
23660 * keyboard.c (read_char): Modify checking around use of
23661 Vkeyboard_translate_table.
23662
23663 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23664 and fix C types.
23665
236662008-02-01 Kenichi Handa <handa@m17n.org>
23667
23668 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23669 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23670 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23671 the case that the last byte is '\r' correctly.
23672 (decode_coding): Flush out the unprocessed data correctly.
23673 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23674
236752008-02-01 Dave Love <fx@gnu.org>
23676
23677 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23678 Add XK_ISO... case.
23679 (xaw_scroll_callback): Revert last change.
23680
236812008-02-01 Kenichi Handa <handa@m17n.org>
23682
23683 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23684
236852008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * xfaces.c (Vface_resizing_fonts): New variable.
23688 (struct font_name): New member `resizing_ratio'.
23689 (font_resizing_ratio): New function.
23690 (split_font_name): Set font->resizing_ratio.
23691 (better_font_p): Pay attention to font->resizing_ratio.
23692 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23693 RESX, and RESY fields.
23694 (try_alternative_families): Try scalable fonts if
23695 Vscalable_fonts_allowed is not Qt.
23696 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23697
236982008-02-01 Dave Love <fx@gnu.org>
23699
23700 * xterm.c (xaw_scroll_callback): Cast correctly.
23701
237022008-02-01 Dave Love <fx@gnu.org>
23703
23704 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23705 (lispy_kana_keys): Comment out.
23706 (make_lispy_event) [XK_kana_A]: Comment out.
23707
23708 * xterm.c (xaw_scroll_callback): Cast call_data.
23709 (XTread_socket): Deal with ASCII keysyms.
23710 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23711
237122008-02-01 Dave Love <fx@gnu.org>
23713
23714 * xterm.c (Vx_keysym_table): New.
23715 (syms_of_xterm): Initialize it.
23716 (XTread_socket): Use it.
23717 From head: Eliminate incorrect optimization that tried to avoid
23718 decoding the output of X*LookupString.
23719 (x_get_font_repertory): Delete charset declaration.
23720
237212008-02-01 Kenichi Handa <handa@m17n.org>
23722
23723 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23724 return 0.
23725 (Fdefine_coding_system_internal): Setup
23726 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23727
237282008-02-01 Dave Love <fx@gnu.org>
23729
23730 * coding.c (Fcheck_coding_system): Doc fix.
23731
23732 * editfns.c (Finsert_byte): Return a proper value.
23733
237342008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * coding.c (decode_coding): Fix args to translate_chars. Pay
23737 attention to Vstandard_translation_table_for_decode.
23738 (encode_coding): Fix args to translate_chars. Pay attention to
23739 Vstandard_translation_table_for_encode.
23740
23741 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23742 SINGLE_BYTE_CHAR_P.
23743
23744 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23745 not by SINGLE_BYTE_CHAR_P.
23746
23747 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23748 SINGLE_BYTE_CHAR_P.
23749
23750 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23751 SINGLE_BYTE_CHAR_P.
23752
23753 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23754 by SINGLE_BYTE_CHAR_P.
23755
23756 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23757 SINGLE_BYTE_CHAR_P.
23758
237592008-02-01 Dave Love <fx@gnu.org>
23760
23761 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23762
237632008-02-01 Dave Love <fx@gnu.org>
23764
23765 * fns.c (Flanginfo): Fix typo.
23766
23767 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23768
237692008-02-01 Kenichi Handa <handa@m17n.org>
23770
23771 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23772 (detect_coding_emacs_mule, detect_coding_iso_2022)
23773 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23774 incomplete byte sequence. Don't update *mask when correctly detected.
23775 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23776 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23777 (detect_coding, detect_coding_system): Adjust for the changes above.
23778
237792008-02-01 Kenichi Handa <handa@m17n.org>
23780
23781 * character.c (char_string): Rename from
23782 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23783 (string_char): Rename from string_char.
23784
23785 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23786 if C is greater than MAX_3_BYTE_CHAR.
23787 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23788 string_char instead of string_char_with_unification.
23789
237902008-02-01 Dave Love <fx@gnu.org>
23791
23792 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23793
237942008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * keymap.c (push_key_description): Pay attention to force_multibyte.
23797
23798 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23799
238002008-02-01 Dave Love <fx@gnu.org>
23801
23802 * charset.c (define_charset_internal): Rename `supprementary'.
23803
23804 * Makefile.in (lisp, shortlisp): Remove latin-N.
23805
238062008-02-01 Dave Love <fx@gnu.org>
23807
23808 * xfns.c (x_window, x_window): Use use_xim.
23809
23810 * xterm.c (use_xim): Initialize.
23811 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23812 (x_term_init): Maybe set use_xim.
23813
23814 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23815
238162008-02-01 Kenichi Handa <handa@m17n.org>
23817
23818 * search.c (search_buffer): Fix case-fold-search of multibyte
23819 characters.
23820 (boyer_moore): Rename the last argument to char_high_bits.
23821
238222008-02-01 Kenichi Handa <handa@m17n.org>
23823
23824 * xdisp.c (display_string): Fix for the case of zero width glyph.
23825
23826 * xfns.c (x_set_font): Change the error message of the case that
23827 x_new_fontset returns Qt.
23828
23829 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23830 (Finternal_set_lisp_face_attribute): Use signal_error for the
23831 error of invalid fontset.
23832
23833 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23834 fontset, return Qt.
23835
238362008-02-01 Dave Love <fx@gnu.org>
23837
23838 * unexelf.c (unexec): Make .got handling not SGI-specific.
23839
23840 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23841
23842 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23843
23844 * keyboard.c (read_key_sequence): Fix type error.
23845
23846 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23847 type error.
23848
23849 * fontset.c (fontset_add): Return Lisp_Object.
23850
238512008-02-01 Dave Love <fx@gnu.org>
23852
23853 * charset.h (charset_ordered_list_tick): Declare extern.
23854
238552008-02-01 Kenichi Handa <handa@m17n.org>
23856
23857 The following changes (and some of 2008-02-01 changes of mine) are
23858 for handling syntax, category, and case conversion for unibyte
23859 characters by converting them to multibyte on the fly. With these
23860 changes, we don't have to setup syntax and case tables for unibyte
23861 characters in each language environment.
23862
23863 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23864 multibyte if necessary.
23865
23866 * bytecode.c (Fbyte_code): Likewise.
23867
23868 * character.h (LEADING_CODE_LATIN_1_MIN)
23869 (LEADING_CODE_LATIN_1_MAX): New macros.
23870 (unibyte_to_multibyte_table): Extern it.
23871 (unibyte_char_to_multibyte): New macro.
23872 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23873 (CHAR_LEADING_CODE): New macro.
23874 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23875
23876 * character.c (unibyte_to_multibyte_table): New variable.
23877 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23878 (multibyte_char_to_unibyte): If C is an eight-bit character,
23879 convert it to the corresponding byte value.
23880
23881 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23882 not 1, signals an error. Update the elements of
23883 unibyte_to_multibyte_table.
23884 (init_charset_once): Initialize unibyte_to_multibyte_table.
23885 (syms_of_charset): Define the charset `iso-8859-1'.
23886
23887 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23888 as is without converting it to unibyte. In a unibyte buffer,
23889 convert C to multibyte before checking the syntax.
23890
23891 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23892
23893 * minibuf.c (Fminibuffer_complete_word): Use the macro
23894 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23895
23896 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23897
23898 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23899 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23900 that is zero, convert an eight-bit char to multibyte.
23901 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23902 non-emacs case.
23903 (PATFETCH): Convert an eight-bit char to multibyte.
23904 (HANDLE_UNIBYTE_RANGE): New macro.
23905 (regex_compile): Setup the compiled pattern for multibyte chars
23906 even if the given regex string is unibyte. Use PATFETCH_RAW
23907 instead of PATFETCH in many places. To handle `charset'
23908 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23909 only for ASCII chars.
23910 (analyse_first) <exactn>: Simplify because the compiled pattern
23911 is multibyte.
23912 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23913 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23914 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23915 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23916 multibyte always 1.
23917 (re_search_2): In emacs, set the locale variable multibyte to 1,
23918 otherwise to 0. New local variable target_multibyte. Check it
23919 to decide the multibyteness of STR1 and STR2. If
23920 target_multibyte is zero, convert unibyte chars to multibyte
23921 before translating and checking fastmap.
23922 (TARGET_CHAR_AND_LENGTH): New macro.
23923 (re_match_2_internal): In emacs, set the locale variable multibyte
23924 to 1, otherwise to 0. New local variable target_multibyte. Check
23925 it to decide the multibyteness of STR1 and STR2. Use
23926 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23927 <charset, charset_not>: If multibyte is nonzero, check fastmap
23928 only for ASCII chars. Call bcmp_translate with
23929 target_multibyte, not with multibyte.
23930 <begline>: Declare the local variable C as `unsigned'.
23931 (bcmp_translate): Change the last arg name to target_multibyte.
23932
23933 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23934 the regexp pattern and the matching target. Set cp->buf.multibyte
23935 to the multibyteness of the regexp pattern. Set
23936 cp->but.target_multibyte to the multibyteness of the matching target.
23937 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23938 FETCH_STRING_CHAR_ADVANCE.
23939 (Freplace_match): Convert unibyte chars to multibyte.
23940
23941 * syntax.c (char_quoted, back_comment, scan_words)
23942 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23943 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23944 unibyte chars to multibyte.
23945 (skip_chars): Delete the arg syntaxp, and move the code for
23946 handling syntaxes to skip_syntaxes. Change callers.
23947 Fix the case that the multibyteness of STRING and the current
23948 buffer doesn't match.
23949 (skip_syntaxes): New function.
23950 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23951 SINGLE_BYTE_CHAR_P.
23952
239532008-02-01 Kenichi Handa <handa@m17n.org>
23954
23955 * xfaces.c (QCfontset): New variable.
23956 (LFACE_FONTSET): New macro.
23957 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23958 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23959 (Finternal_set_lisp_face_attribute)
23960 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23961 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23962 check also LFACE_FONTSET_INDEX.
23963 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23964 attrs[LFACE_FONT_INDEX].
23965 (syms_of_xfaces): Intern and staticpro QCfontset.
23966
23967 * dispextern.h (enum lface_attribute_index): New member
23968 LFACE_FONTSET_INDEX.
23969
23970 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23971
239722008-02-01 Kenichi Handa <handa@m17n.org>
23973
23974 * coding.c (coding_set_destination): Fix coding->destination for
23975 the case converting a region.
23976 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23977 (encode_coding_object): Fix coding->dst_pos and
23978 coding->dst_pos_byte for the case converting a region.
23979
23980 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23981
23982 * character.h (BYTE8_STRING): New macro.
23983
23984 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23985
239862008-02-01 Kenichi Handa <handa@m17n.org>
23987
23988 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23989 characters by octal form.
23990
23991 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23992
23993 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23994 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23995 _fetch_multibyte_char_len.
23996 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23997
23998 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23999
24000 * casefiddle.c (casify_object): Simplify. Handle the case that
24001 the case conversion change the byte length.
24002 (casify_region): Likewise.
24003
24004 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
24005
24006 * character.c (_fetch_multibyte_char_len): Delete this variable.
24007 (syms_of_character): Setup Vprintable_chars.
24008
24009 * editfns.c (Fchar_equal): Fix for the unibyte case.
24010 (Finsert_byte): New function.
24011 (syms_of_editfns): Defsubr it.
24012
24013 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
24014 of direct code 0x3ffff.
24015
24016 * search.c (Freplace_match): Fix for the unibyte case.
24017
240182008-02-01 Kenichi Handa <handa@m17n.org>
24019
24020 * lread.c (safe_to_load_p): Fix the logic.
24021
24022 * syntax.c (scan_words): Don't treat characters belonging to
24023 different scripts as constituting a word.
24024
24025 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24026
24027 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
24028
24029 * emacs.c (main): In the case of --unibyte, instead of aborting on
24030 finding non-empty buffer, make it unibyte.
24031
240322008-02-01 Kenichi Handa <handa@m17n.org>
24033
24034 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
24035 to create a fontset.
24036
240372008-02-01 Dave Love <fx@gnu.org>
24038
24039 * character.c (Funibyte_char_to_multibyte): Doc fix.
24040
24041 * xfns.c [HAVE_STDLIB_H]: Fix last change.
24042
240432008-02-01 Kenichi Handa <handa@m17n.org>
24044
24045 * fontset.c (fontset_add): Make the type `int'.
24046 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
24047
24048 * character.c (unibyte_char_to_multibyte)
24049 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
24050 charset_unibyte, not charset_primary.
24051
24052 * charset.h (charset_unibyte): Extern it instead of charset_primary.
24053
24054 * charset.c (charset_unibyte): Rename from charset_primary.
24055 (Funibyte_charset): Rename from Fprimary_charset.
24056 (Fset_unibyte_charset): Rename from Fset_primary_charset.
24057 (syms_of_charset): Adjust for the above changes.
24058
24059 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24060 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24061 it->multibyte_p is zero.
24062
24063 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
24064 Delete extern.
24065
240662008-02-01 Kenichi Handa <handa@m17n.org>
24067
24068 * coding.c (Fdefine_coding_system_internal): Fix category setting
24069 for a coding system of type iso-2022.
24070
240712008-02-01 Kenichi Handa <handa@m17n.org>
24072
24073 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
24074
240752008-02-01 Kenichi Handa <handa@m17n.org>
24076
24077 * syntax.c (Vnext_word_boundary_function_table): New variable.
24078 (next-word-boundary-function-table): Declare it as a Lisp variable
24079 in syms_of_syntax.
24080 (scan_words): Call functions in Vnext_word_boundary_function_table
24081 if any.
24082
24083 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
24084
24085 * fontset.c (fs_load_font): If fontp->charset is not negative,
24086 return fontp without setting its members.
24087
240882008-02-01 Dave Love <fx@gnu.org>
24089
24090 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
24091
24092 * m/sparc.h (HAVE_ALLOCA): Delete.
24093
24094 * s/irix6-5.h: Don't include strings.h.
24095 (bcopy, bzero, bcmp): Don't undef.
24096
24097 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
24098
24099 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
24100 (TIOCSIGSEND): Don't test IRIX6.
24101 (bcopy, bzero, bcmp): Define conditionally.
24102
241032008-02-01 Kenichi Handa <handa@m17n.org>
24104
24105 * buffer.c (Qas, Qmake, Qto): New variables.
24106 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
24107 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
24108
24109 * callproc.c (Fcall_process): Don't call insert_1_both directly if
24110 we are inserting a process output into a multibyte buffer.
24111
24112 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
24113 multibyte_char_to_unibyte.
24114
24115 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
24116 by the primary charset, make it eight-bit char.
24117 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
24118
24119 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
24120 (charset_8_bit__control, charset_8_bit_graphic)
24121 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
24122 (define_charset_internal): New function.
24123 (syms_of_charset): Call define_charset_internal for pre-defined
24124 charsets.
24125
24126 * charset.h (charset_8_bit): Extern it.
24127
24128 * coding.c (make_conversion_work_buffer): Adjust for the change
24129 of Fset_buffer_multibyte.
24130 (encode_coding_raw_text): Increment p0 in the loop.
24131
24132 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
24133
24134 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
24135 for the change of Fset_buffer_multibyte.
24136
24137 * fns.c (Fstring_to_multibyte): New function.
24138 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
24139
241402008-02-01 Dave Love <fx@gnu.org>
24141
24142 * xfns.c (x_put_x_image): Declare args.
24143
24144 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
24145 (try_font_list): Declare an arg.
24146
24147 * xdisp.c (message2_nolog, set_message): Declare an arg.
24148
24149 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
24150
24151 * syntax.c (scan_sexps_forward): Declare an arg.
24152
24153 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
24154 Declare an arg.
24155
24156 * lisp.h (Fnew_fontset): Declare.
24157
24158 * keymap.c (push_key_description): Call CHARACTERP correctly.
24159
24160 * fontset.c (fontset_add): Declare args. Call make_number correctly.
24161 (face_for_char): Delete unused vars.
24162 (Fset_fontset_font): Doc fix. Delete unused vars.
24163
24164 * doc.c (Fsubstitute_command_keys): Delete unused vars.
24165
24166 * composite.c (update_compositions): Declare arg.
24167
24168 * cm.c (calccost, cmgoto): Declare args.
24169
24170 * charset.c: Remove `emacs' conditional. Doc fixes.
24171 (map_char_table_for_charset): Declare.
24172
24173 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
24174
24175 * ccl.c: Remove `emacs' conditional.
24176
241772008-02-01 Kenichi Handa <handa@m17n.org>
24178
24179 The following changes are to allow specifying multiple font
24180 patterns for a character range (specified by script or charset).
24181
24182 * Makefile.in (abbrev.o): Depend on syntax.h.
24183 (xfaces.o): Depend on charset.h.
24184
24185 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
24186 SINGLE_BYTE_CHAR_P.
24187
24188 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
24189
24190 * character.h (Vchar_script_table): Extern it.
24191
24192 * character.c (Vscript_alist): Delete.
24193 (Vchar_script_table, Qchar_script_table): New variable.
24194 (syms_of_character): Declare Vchar_script_table as a lisp variable
24195 and initialize it.
24196
24197 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
24198 have property char-table-extra-slots, make no extra slot.
24199
24200 * dispextern.h (struct face): Delete member `charset'.
24201 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
24202 SINGLE_BYTE_CHAR_P.
24203 (choose_face_font, lookup_non_ascii_face, font_name_registry):
24204 Add prototypes.
24205 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
24206 (generate_ascii_font_name): Rename from generate_ascii_font.
24207
24208 * fontset.h (get_font_repertory_func): New prototype.
24209 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
24210 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
24211
24212 * fontset.c (Qprepend, Qappend): New variables.
24213 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
24214 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
24215 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
24216 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
24217 (fontset_ref_and_range, fontset_add, reorder_font_vector)
24218 (load_font_get_repertory): New functions.
24219 (fontset_set): Delete.
24220 (fontset_face): New arg FACE. Return face ID, not face.
24221 Complete re-write to handle new fontset structure. Change caller.
24222 (free_face_fontset): Use ASET istead of AREF (X) = Y.
24223 (face_for_char): Don't call lookup_face.
24224 (make_fontset_for_ascii_face): New arg FACE.
24225 (fs_load_font): New arg CHARSET_ID. Don't check
24226 Vfont_encoding_alist here.
24227 (find_font_encoding): New function.
24228 (list_fontsets): Use STRINGP, not ! NILP.
24229 (accumulate_script_ranges): New function.
24230 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
24231 re-written to handle new fontset structure.
24232 (Ffontset_font): Return a copy of element.
24233 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
24234 docstring of font-encoding-alist.
24235
24236 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
24237 (Fset_fotset_font): Fix arguments to 5.
24238
24239 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24240
24241 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24242 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24243 (highlight_trailing_whitespace): Adjust for the change of
24244 lookup_named_face.
24245
24246 * xfaces.c: Include charset.h.
24247 (load_face_font): Delete argument C. Change caller.
24248 (generate_ascii_font_name): Rename from generate_ascii_font.
24249 (font_name_registry): New function.
24250 (cache_face): Store ascii faces before non-ascii faces in buckets.
24251 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
24252 Lookup only ascii faces.
24253 (lookup_non_ascii_face): New function.
24254 (lookup_named_face): Delete argument C. Change caller.
24255 (lookup_derived_face): Delete argument C. Change caller.
24256 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
24257 a string, just call font_list with it.
24258 (choose_face_font): Delete arguments FACE and C. New arg
24259 FONT_SPEC. Change caller.
24260 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
24261 Change caller.
24262 (realize_non_ascii_face): New function.
24263 (realize_x_face): Call load_face_font here.
24264 (realize_tty_face): Delete argument C. Change caller.
24265 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
24266 get a face ID.
24267 (dump_realized_face): Don't print charset of FACE.
24268
24269 * xfns.c (x_set_font): Always call x_new_fontset and
24270 store_frame_parameter.
24271 (Fx_create_frame): Call x_new_fontset, not x_new_font.
24272 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
24273
24274 * xterm.h (x_get_font_repertory): Extern it.
24275
24276 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24277 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24278 it->multibyte_p is zero.
24279 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24280 (x_new_fontset): If FONTSETNAME doesn't match any existing
24281 fontsets, create a new one.
24282 (x_get_font_repertory): New function.
24283
242842008-02-01 Kenichi Handa <handa@m17n.org>
24285
24286 * coding.c (Ffind_coding_systems_region_internal): Detect an
24287 ASCII only string correctly.
24288
24289 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
24290 version is 0.
24291
242922008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 * lread.c: Include "coding.h".
24295 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
24296 (load_each_byte, unread_char): New variables.
24297 (readchar_backlog): Delete.
24298 (readchar): Return a character unless load_each_byte is nonzero.
24299 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
24300 cons. If unread_char is not -1, simply return it.
24301 (unreadchar): Handle the case that readcharfun is
24302 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
24303 (read_multibyte): Delete.
24304 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
24305 (read_emacs_mule_char): New functions.
24306 (Fload): Even if the file doesn't have the extension ".elc", if
24307 safe_to_load_p returns a positive version number, assume that the
24308 file contains bytecompiled code. If the version is less than 22,
24309 load the file while decoding multibyte sequences by emacs-mule.
24310 (readevalloop): Don't use readchar_backlog.
24311 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
24312 (Fread_from_string): Pay attention to the case that STREAM is a cons.
24313 (read_escape): Delete the arg BYTEREP.
24314 (read1): Set load_each_byte to 1 temporarily while handling
24315 #@NUMBER. Don't call read_multibyte.
24316 (read_vector): Call Fread with a cons. If readcharfun is
24317 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
24318 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
24319 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
24320 and Qload_force_doc_strings.
24321
243222008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * xdisp.c (face_before_or_after_it_pos): Call
24325 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24326
243272008-02-01 Kenichi Handa <handa@m17n.org>
24328
24329 * character.h (TRAILING_CODE_P): New macro.
24330 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
24331 (string_char_with_unification): Fix prototype.
24332 (Vscript_alist): Extern it.
24333
24334 * character.c (Vscript_alist): New variable.
24335 (string_char_with_unification, str_as_unibyte)
24336 (string_escape_byte8): Add `const' to local variables.
24337 (syms_of_character): Declare script-alist as a Lisp variable.
24338
24339 * charset.h (Vcharset_ordered_list): Extern it.
24340 (charset_ordered_list_tick): Extern it.
24341 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
24342 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
24343 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
24344 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
24345 (Funify_charset): Adjust for the change of Funify_charset.
24346
24347 * charset.c (charset_ordered_list_tick): New variable.
24348 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
24349 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 24350 deunify instead of unify a charset.
aac0c6e3
MR
24351 (string_xstring_p): Add `const' to local variables.
24352 (find_charsets_in_text): Add `const' to arguments and local variables.
24353 (encode_char): Adjust for the change of Funify_charset. Fix
24354 detecting of invalid code.
24355 (Fset_charset_priority): Increment charset_ordered_list_tick.
24356 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
24357 and TO_CODE.
24358
24359 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24360 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24361 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24362 (decode_coding_ccl, consume_chars)
24363 (Ffind_coding_systems_region_internal)
24364 (Fcheck_coding_systems_region): Add `const' to local variables.
24365
24366 * print.c (print_object): Use octal form for printing the
24367 contents of a bool vector.
24368
243692008-02-01 Dave Love <fx@gnu.org>
24370
24371 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24372 <version == 20>: Refuse to load.
24373
243742008-02-01 Dave Love <fx@gnu.org>
24375
24376 * fns.c: Move coding.h.
24377 (Qcodeset, Qdays, Qmonths): New.
24378 (concat): Use CHARACTERP instead of INTEGERP.
24379 (Flocale_codeset): Delete.
24380 (Flanginfo): New function.
24381 (syms_of_fns): Change accordingly.
24382
24383 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24384
243852008-02-01 Dave Love <fx@gnu.org>
24386
24387 * casetab.c (init_casetab_once, init_casetab_once): Fix
24388 CHAR_TABLE_SET call.
24389
24390 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24391
24392 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24393
24394 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24395 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24396 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24397
24398 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24399
24400 * coding.c (ENCODE_DESIGNATION, decode_eol)
24401 (make_conversion_work_buffer, code_conversion_restore)
24402 (Fdefine_coding_system_internal): Convert Lisp types.
24403 (code_conversion_restore): Use EQ, not ==.
24404 (Fencode_coding_string): Fix code_convert_string call.
24405
24406 * coding.h (code_convert_region): Fix prototype.
24407
24408 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24409
24410 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24411 (Ffontset_info): Convert Lisp types.
24412
24413 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24414
24415 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24416
24417 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24418
24419 * chartab.c: Include "...h", not <...h> in some cases.
24420
24421 * callproc.c (Fcall_process): Remove unused variables.
24422
244232008-02-01 Dave Love <fx@gnu.org>
24424
24425 * coding.c (Fset_coding_system_priority): Allow null arg list.
24426
244272008-02-01 Dave Love <fx@gnu.org>
24428
24429 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24430 (Fself_insert_and_exit): Use CHARACTERP.
24431
24432 * callproc.c (Fcall_process): Remove unused vars.
24433
24434 * xterm.c (XTread_socket): Add extra dead keysyms.
24435
24436 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
24437
24438 * dispextern.h: Remove prototypes for redraw_frame,
24439 redraw_garbaged_frames.
24440
24441 * cmds.c (Fself_insert_command): Use CHARACTERP.
24442
24443 * chartab.c (make_sub_char_table): Remove unused var.
24444 (Fset_char_table_default, Fmap_char_table): Doc fix.
24445
24446 * keymap.c (access_keymap): Remove generic char code.
24447 (push_key_description): Use CHARACTERP.
24448
244492008-02-01 Dave Love <fx@gnu.org>
24450
24451 * charset.c: Doc fixes.
24452 (Funify_charset): Extra checking.
24453
244542008-02-01 Dave Love <fx@gnu.org>
24455
24456 * lread.c: Remove some unused variables.
24457 (safe_to_load_p): If safe, return the magic number version byte.
24458 (Fload): Maybe use load-with-code-conversion.
24459
244602008-02-01 Kenichi Handa <handa@m17n.org>
24461
24462 * category.c (Fmodify_category_entry): Don't modify the contents
24463 of category_set for characters out of the range. Avoid
24464 unnecessary modification.
24465
24466 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24467 Vchar_unify_table. The default value of the table is now nil.
24468
24469 * character.c (syms_of_character): Setup Vchar_width_table for
24470 eight-bit-control and raw-byte chars.
24471
24472 * charset.h (enum define_charset_arg_index): Delete
24473 charset_arg_parents and add charset_arg_subset and
24474 charset_arg_superset.
24475 (enum charset_attr_index): Delete charset_parents and add
24476 charset_subset and charset_superset.
24477 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24478 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24479 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24480 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24481 (CHARSET_SUPERSET): New macros.
24482 (charset_work): Extern it.
24483 (ENCODE_CHAR): Use charset_work.
24484 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24485 (map_charset_chars): Extern it.
24486
24487 * charset.c (load_charset_map): Set the default value of encoder
24488 and deunifier char-tables to nil.
24489 (map_charset_chars): Change argument. Change callers. Use
24490 map_char_table_for_charset instead of map_char_table.
24491 (Fmap_charset_chars): New optional args from_code and to_code.
24492 (Fdefine_charset_internal): Adjust for the change of
24493 `define-charset' (:parents -> :subset or :superset).
24494 (charset_work): New variable.
24495 (encode_char, syms_of_charset): Adjust for the change of
24496 Fdefine_charset_internal.
24497 (Ffind_charset_string): Setup the vector `charsets' correctly.
24498
24499 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
24500 the previous change.
24501 (char_table_ref_and_range): Adjust for the above change.
24502 (map_sub_char_table_for_charset): New function.
24503 (map_char_table_for_charset): New function.
24504
24505 * keymap.c (describe_vector): Handle a char-table directly here.
24506 (describe_char_table): Delete.
24507
24508 * lisp.h (map_charset_chars): Delete.
24509
245102008-02-01 Dave Love <fx@gnu.org>
24511
24512 * fns.c (count_combining): Comment out (unused).
24513 (Flocale_codeset): New.
24514 (syms_of_fns): Defsubr it.
24515
24516 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24517 (size_t): Remove.
24518
245192008-02-01 Dave Love <fx@gnu.org>
24520
24521 * Makefile.in (chartab.o): Depend on charset.h.
24522
245232008-02-01 Kenichi Handa <handa@m17n.org>
24524
24525 * character.c (syms_of_character): Set the default value of
24526 Vprintable_chars to Qnil.
24527
245282008-02-01 Dave Love <fx@gnu.org>
24529
24530 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24531
245322008-02-01 Kenichi Handa <handa@m17n.org>
24533
24534 * charset.c (load_charset_map): Handle the case that from < to
24535 correctly.
24536
24537 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24538 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24539 Pay attention to raw-8-bit chars.
24540
245412008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24544 It is not bytecompiled now.
24545
24546 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24547 (charset_jisx0208): New variables.
24548 (Fdefine_charset_internal): Setup them if appropriate.
24549 (init_charset_once): Initialize them to -1.
24550
24551 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24552 (charset_jisx0208): Extern them.
24553
24554 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24555 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24556 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24557 (setup_iso_safe_charsets): Fix arguments to Fassq.
24558 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24559 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24560 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24561 (encode_coding_iso_2022): Change the 1st arg to
24562 ENCODE_ISO_CHARACTER to a variable.
24563
245642008-02-01 Kenichi Handa <handa@m17n.org>
24565
24566 * charset.h (enum define_charset_arg_index): New enums
24567 charset_arg_min_code and charset_arg_max_code.
24568 (struct charset): New member char_index_offset.
24569
24570 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24571 Take charset->char_index_offset into account.
24572 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24573 args[charset_arg_max_code]. Setup charset.char_index_offset.
24574 (syms_of_charset): Fix args to Fdefine_charset_internal.
24575
245762008-02-01 Dave Love <fx@gnu.org>
24577
24578 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24579
245802008-02-01 Dave Love <fx@gnu.org>
24581
24582 * coding.c: Doc fixes.
24583 (Fcoding_system_aliases): Fix return value.
24584 (Qmac): Remove (duplicated) definition.
24585
245862008-02-01 Dave Love <fx@gnu.org>
24587
362654a6
JB
24588 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24589 New functions.
aac0c6e3
MR
24590
24591 * character.c (Fstring): Doc fix.
24592
24593 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24594
362654a6 24595 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
24596 (font-encoding-alist): Doc fix.
24597
245982008-02-01 Dave Love <fx@gnu.org>
24599
24600 * term.c (costs_set): Declare static, non-initialized for pcc.
24601 (encode_terminal_code): Remove unused var.
24602
24603 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24604 for K&R.
24605
24606 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24607
24608 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24609 (suffixes): Move out of make_subsidiaries for K&R.
24610
24611 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24612
24613 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24614
246152008-02-01 Dave Love <fx@gnu.org>
24616
24617 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24618
24619 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24620
246212008-02-01 Yong Lu <lyongu@asia-infonet.com>
24622
24623 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24624
24625 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24630 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * coding.c (decode_coding_charset): Adjust for the change of
24635 Fdefine_coding_system_internal.
24636 (Fdefine_coding_system_internal): For a coding system of
24637 `charset' type, store a list of charset IDs in
24638 `charset_attr_charset_valids' element of coding attributes.
24639
246402008-02-01 Kenichi Handa <handa@m17n.org>
24641
24642 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24643 (emacs_mule_char): New arg src. Delete arg `composition'. Change
24644 caller. Handle 2-byte and 3-byte charsets correctly.
24645 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24646 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24647 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24648 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24649 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24650 sequence.
24651 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24652 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24653 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24654 and alt&rule composition.
24655 (decode_coding_iso_2022): Handle composition correctly.
24656 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24657
24658 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24659 re-defining a charset. If the charset has :emacs-mule-id, setup
24660 emacs_mule_bytes.
24661 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24662
246632008-02-01 Kenichi Handa <handa@m17n.org>
24664
24665 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24666 (encode_coding_big5, encode_coding_charset): If coding requires safe
24667 encoding, produce a character specified by
24668 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24669
246702008-02-01 Dave Love <fx@gnu.org>
24671
24672 * xterm.c (XSetIMValues): Declare.
24673
24674 * process.c: Conditionally include sys/wait.h, pty.h.
24675
24676 * print.c (print_object): Fix print format for 64-bit systems.
24677
24678 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24679
24680 * buffer.c (emacs_strerror): Declare.
24681
24682 * fontset.c (Fclear_face_cache): Declare.
24683 (accumulate_font_info): Comment-out (unused).
24684 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24685 variables.
24686
24687 * character.h (string_escape_byte8): Declare.
24688
24689 * charset.c (load_charset_map, load_charset_map_from_file): Remove
24690 unused vars.
24691 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24692 (Fmap_charset_chars): Doc fix.
24693
24694 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24695 (Fset_coding_system_priority, Fset_coding_system_priority)
24696 (Fdefine_coding_system_internal): Doc fix.
24697
246982008-02-01 Dave Love <fx@gnu.org>
24699
24700 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24701
247022008-02-01 Kenichi Handa <handa@m17n.org>
24703
24704 * character.c (string_escape_byte8): Make multibyte string with
24705 correct size.
24706
24707 * charset.c (Fmake_char): Delete unnecessary code.
24708
247092008-02-01 Kenichi Handa <handa@m17n.org>
24710
24711 * xfns.c (x_encode_text): Allocate coding.destination here, and
24712 call encode_coding_object with dst_object Qnil.
24713
24714 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24715 multibyte form correctly.
24716
24717 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24718 against Vfont_encoding_alist.
24719
24720 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24721 handling of charset list.
24722 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24723 (decode_coding_object): Move point to coding->dst_pos before
24724 calling post-read-conversion function.
24725 (encode_coding_object): Give correct arguments to
24726 pre-write-conversion. Ignore the return value of
24727 pre-write-conversion function. Pay attention to the case that
24728 pre-write-conversion changes the current buffer. If dst_object is
24729 Qt, even if coding->src_bytes is zero, allocate at least one byte
24730 to coding->destination.
24731
24732 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24733
24734 * charset.c (Fmake_char): Make it more backward compatible.
24735 (Fmap_charset_chars): Fix docstring.
24736
247372008-02-01 Dave Love <fx@gnu.org>
24738
24739 * coding.c: Doc fixes.
24740 (Fdefine_coding_system_alias): Use names, not symbols, in
24741 coding-system-alist.
24742
247432008-02-01 Kenichi Handa <handa@m17n.org>
24744
24745 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24746 of calling free_realized_face.
24747
247482008-02-01 Yong Lu <lyongu@asia-infonet.com>
24749
24750 * charset.c (read_hex): Don't treat SPC as a comment starter.
24751 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24752 (Fdecode_char): Fix typo.
24753
247542008-02-01 Kenichi Handa <handa@m17n.org>
24755
24756 * charset.h (struct charset): New member `code_space_mask'.
24757
24758 * coding.c (coding_set_source): Delete the local variable beg_byte.
24759 (encode_coding_charset, Fdefine_coding_system_internal):
24760 Delete the local variable charset.
24761 (Fdefine_coding_system_internal): Setup
24762 attrs[coding_attr_charset_valids] correctly.
24763
24764 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24765 member to check if CODE is valid or not.
24766 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24767 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24768 is within the range of charset->min_code and carset->max_code.
24769
247702008-02-01 Dave Love <fx@gnu.org>
24771
24772 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24773
24774 * dispextern.h (generate_ascii_font): Fix return type.
24775
24776 * xfaces.c (generate_ascii_font): Fix arg declaration.
24777
24778 * coding.c (coding_inherit_eol_type)
24779 (Fset_terminal_coding_system_internal)
24780 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24781
247822008-02-01 Kenichi Handa <handa@m17n.org>
24783
24784 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24785 multiple charsets correctly.
24786
247872008-02-01 Kenichi Handa <handa@m17n.org>
24788
24789 * search.c (boyer_moore): Fix handling of multibyte character
24790 translation.
24791
24792 * xdisp.c (display_mode_element): When the variable `elt' is
24793 changed, update `this' and `lisp_string'.
24794
247952008-02-01 Kenichi Handa <handa@m17n.org>
24796
24797 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24798
24799 * callproc.c (Fcall_process): Be sure to give the current buffer
24800 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24801
24802 * charset.c (struct charset_map_entries): New struct.
24803 (load_charset_map): Rename from parse_charset_map. New args
24804 entries and n_entries. Change caller.
24805 (load_charset_map_from_file): Rename from load_charset_map.
24806 Change caller. New arg control_flag. Call load_charset_map at
24807 the tail.
24808 (load_charset_map_from_vector): New function.
24809 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24810 (encode_char): If the charset is compact, change a character index
24811 to a code point.
24812
24813 * coding.c (coding_alloc_by_making_gap): Check the case that the
24814 source and destination are the same correctly.
24815 (decode_coding_raw_text): Set coding->consumed_char and
24816 coding->consumed to 0.
24817 (produce_chars): If coding->chars_at_source is nonzero, update
24818 coding->consumed_char and coding->consumed before calling
24819 alloc_destination.
24820 (Fdefine_coding_system_alias): Register ALIAS in
24821 Vcoding_system_alist.
24822 (syms_of_coding): Define `no-conversion' coding system at the tail.
24823
24824 * fileio.c (Finsert_file_contents): Set coding_system instead of
24825 val. If the current buffer is multibyte, always call
24826 decode_coding_gap.
24827
24828 * xfaces.c (try_font_list): Give higher priority to fontset's
24829 family than face's family.
24830
248312008-02-01 Kenichi Handa <handa@m17n.org>
24832
24833 * callproc.c (Fcall_process): Be sure to give the current buffer
24834 to decode_coding_c_string.
24835
24836 * xfaces.c (try_font_list): Give a family specified in a fontset
24837 higher priority than a family specified in a face.
24838
248392008-02-01 Kenichi Handa <handa@m17n.org>
24840
24841 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24842 Fix arguments to insert_from_buffer.
24843
24844 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24845
248462008-02-01 Kenichi Handa <handa@m17n.org>
24847
24848 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24849 (decode_coding_gap): Set coding->dst_multibyte correctly.
24850
248512008-02-01 Kenichi Handa <handa@m17n.org>
24852
24853 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24854 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24855 (encode_coding_utf_16): Substitute coding->default_char for
24856 non-Unicode characters.
24857 (decode_coding): Don't call record_insert here.
24858 (setup_coding_system): Initialize `surrogate' of
24859 coding->spec.utf_16 to 0.
24860 (EMIT_ONE_BYTE): Fix for multibyte case.
24861
24862 * insdel.c (insert_from_gap): Call record_insert.
24863
248642008-02-01 Kenichi Handa <handa@m17n.org>
24865
24866 * casefiddle.c (casify_region): Fix multibyte case.
24867
24868 * character.c (c_string_width): Add return type `int'.
24869 (char_string_with_unification): Delete arg ADVANCED.
24870
24871 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24872 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24873 (CHAR_STRING_ADVANCE): Make it do-while statement.
24874
24875 * chartab.c (sub_char_table_set_range): Optimize for the case
24876 DEPTH == 3. Add workaround code for a GCC optimization bug.
24877
24878 * charset.c (parse_charset_map): Remove an unused variable.
24879
24880 * coding.c: Delete unused variables.
24881
24882 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24883 earlier. If inserted is zero and the coding system doesn't
24884 require flushing, don't call decode_coding_gap.
24885
24886 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24887
248882008-02-01 Kenichi Handa <handa@m17n.org>
24889
24890 The following changes are for using Unicode as an internal
24891 character model, and use UTF-8 format for buffer/string
24892 representation.
24893
24894 * .gdbinit (xchartable): Adjust for the change of char table structure.
24895 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24896
24897 * Makefile.in (obj): Add character.o and chartab.o.
24898 (lisp, shortlisp): Remove utf-8.elc.
24899 (*.o): For many files, change dependency on charset.h to
24900 character.h, and add dependency on character.h.
24901 (character.o, chartab.o): New targets.
24902
24903 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24904 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24905 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24906 of "charset.h".
24907
24908 * dired.c, filelock.c: Include "character.h".
24909
24910 * alloc.c: Include "character.h" instead of "charset.h".
24911 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24912 (syms_of_alloc): Remove defsubr for Smake_char_table.
24913
24914 * buffer.c: Include "character.h" instead of "charset.h", don't
24915 include "coding.h".
24916 (Fset_buffer_multibyte): Adjust for UTF-8.
24917
24918 * buffer.h: EXFUN Fbuffer_live_p.
24919
24920 * callproc.c: Include "character.h" instead of "charset.h".
24921 (Fcall_process): Big change for the new code-conversion APIs.
24922
24923 * casetab.c: Include "character.h" instead of "charset.h".
24924 (set_canon, set_identity, shuffle): Adjust for the new
24925 map_char_table spec.
24926 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24927 accessing the char table structure.
24928
24929 * chartab.c: New file that implements char table.
24930
24931 * category.c: Include "character.h".
24932 (copy_category_entry): New function.
24933 (copy_category_table): Call map_char_table and copy_category_entry.
24934 (Fmake_category_table): Initialize all top-level slots.
24935 (char_category_set): New function.
24936 (modify_lower_category_set): Delete.
24937 (Fmodify_category_entry): Call char_table_ref_and_range.
24938
24939 * category.h (CATEGORY_SET): Just call char_category_set.
24940
24941 * ccl.c: Include "character.h".
24942 (Qccl, Qcclp): New variables.
24943 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24944 it's less than 256.
24945 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24946 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24947 and DST type.
24948 (ccl_driver): Change types of argument, adjust code accordingly.
24949 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24950 ccl_driver.
24951 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24952
24953 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24954 New members src_multibyte, dst_multibyte, consumed, and produced.
24955 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24956 (CODING_SPEC_CCL_PROGRAM): New macro.
24957 (ccl_driver): Update prototype.
24958 (Qccl, Qcclp, Fccl_program_p): Extern them.
24959 (CHECK_CCL_PROGRAM): New macro.
24960
24961 * character.c, character.h, chartab.c: New files.
24962
24963 * charset.c: Mostly re-written. Move character and multibyte sequence
24964 handling codes to character.c.
24965
24966 * charset.h: Mostly re-written. Move character and multibyte sequence
24967 handling codes to character.h.
24968
24969 * coding.c, coding.h: Mostly re-written.
24970
24971 * composite.c: Include "character.h" instead of "charset.h".
24972 (CHAR_WIDTH): Move to character.h.
24973 (HASH_KEY, HASH_VALUE): Delete.
24974
24975 * composite.h (enum composition_method): Change order of enumeration
24976 symbols.
24977
24978 * data.c: Include "character.h" instead of "charset.h".
24979 (Faref): Call CHAR_TABLE_REF for a char table.
24980 (Faset): Call CHAR_TABLE_SET for a char table.
24981
24982 * dispextern.h (free_realized_face, check_face_attribytes)
24983 (generate_ascii_font): Extern them.
24984 (free_realized_multibyte_face): Delete extern.
24985
24986 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24987 table structure.
24988
24989 * editfns.c: Include "character.h" instead of "charset.h".
24990 (Fchar_to_string): Always call CHAR_STRING.
24991
24992 * emacs.c (main): Call init_charset_once, init_charset,
24993 syms_of_chartab, and syms_of_character.
24994
24995 * fileio.c: Include "character.h" instead of "charset.h".
24996 (Finsert_file_contents): Big change for the new code-conversion API.
24997 (choose_write_coding_system, Fwrite_region): Likewise.
24998 (build_annotations_2): Delete.
24999 (e_write): Big change for the new code-conversion API.
25000
25001 * fns.c: Include "character.h" instead of "charset.h".
25002 (copy_sub_char_table): Move to chartab.c.
25003 (Fcopy_sequence): Call copy_char_table for a char table.
25004 (concat): Delete codes calling count_multibyte.
25005 (string_char_to_byte, string_byte_to_char): Adjust for the new
25006 multibyte form.
25007 (internal_equal): Adjust for the change of char table structure.
25008 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
25009 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
25010 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
25011 (char_table_translate, optimize_sub_char_table)
25012 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
25013 chartab.c.
25014 (char_table_ref_and_index): Delete.
25015 (HASH_KEY, HASH_VALUE): Move to lisp.h.
25016 (Fmd5): Call preferred_coding_system instead of accessing
25017 Vcoding_category_list. Adjust for the new code-conversion API.
25018 (syms_of_fns): Move defsubr for char table related functions to
25019 chartab.c.
25020
25021 * fontset.c: Mostly re-written.
25022
25023 * fontset.h (struct font_info): Change type of the member encoding_type.
25024 (enum FONT_SPEC_INDEX): New enum.
25025 (fontset_font_pattern, fs_load_font): Update prototype.
25026 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
25027
25028 * indent.c: Include "character.h" instead of "charset.h".
25029 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
25030
25031 * insdel.c: Include "character.h" instead of "charset.h".
25032 (copy_text): Don't refer to Vnonascii_translation_table.
25033 (insert_from_gap): New function.
25034
25035 * keyboard.c: Include "character.h" instead of "charset.h".
25036 (command_loop_1): Never call direct_output_forward_char before
25037 a non-ASCII character.
25038 (read_char): If Vkeyboard_translate_table is a char table, always
25039 translate a character.
25040
25041 * keymap.c: Include "character.h".
25042 (store_in_keymap): Handle the case that IDX is a cons.
25043 (Fdefine_key): Handle the case that KEY is a cons and the car part
25044 is also a cons (range).
25045 (push_key_description): Adjust for the new character code.
25046 (describe_vector): Call describe_char_table for a char table.
25047 (describe_char_table): New function.
25048
25049 * keymap.h (describe_char_table): Extern it.
25050
25051 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
25052 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
25053 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
25054 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
25055 Delete.
25056 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
25057 structure.
25058 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
25059 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
25060 (CHARTAB_SIZE_BITS_3): New macros.
25061 (chartab_size): Extern it.
25062 (struct Lisp_Char_Table): Re-design.
25063 (struct Lisp_Sub_Char_Table): New structure.
25064 (HASH_KEY, HASH_VALUE): Move from fns.c.
25065 (CHARACTERBITS): Define as 22.
25066 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
25067 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
25068 (GC_SUB_CHAR_TABLE_P): New macro.
25069 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
25070 (code_convert_string_norecord): Deleted extern.
25071 (init_character_once, syms_of_character, init_charset)
25072 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
25073
25074 * lread.c: Include "character.h".
25075 (read_multibyte): New arg NBYTES.
25076 (read_escape): Change the meaning of returned *BYTEREP.
25077 (to_multibyte): Delete.
25078 (read1): Adjust the handling of char table and string.
25079
25080 * print.c: Include "character.h" instead of "charset.h".
25081 (print_string): Convert 8-bit raw bytes to octal form by
25082 string_escape_byte8.
25083 (print_object): Adjust for the new multibyte form. Print 8-bit
25084 raw bytes always in octal form. Handle sub char table correctly.
25085
25086 * process.c: Include "character.h" instead of "charset.h".
25087 (read_process_output, send_process): Adjust for the new
25088 code-conversion API.
25089
25090 * puresize.h (BASE_PURESIZE): Increase.
25091
25092 * regex.c: Include "character.h" instead of "charset.h".
25093 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
25094 (regex_compile): Accept a range whose starting and ending
25095 character have different leading bytes.
25096 (analyse_first): Adjust for the above change.
25097
25098 * search.c: Include "character.h" instead of "charset.h".
25099 (search_buffer, boyer_moore): Adjust for the new multibyte form.
25100 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
25101
25102 * syntax.c: Include "character.h" instead of "charset.h".
25103 (syntax_parent_lookup): Delete.
25104 (Fmodify_syntax_entry): Accept a cons as CHAR.
25105 (skip_chars): Adjust for the new multibyte form.
25106 (init_syntax_once): Call char_table_set_range instead of directly
25107 accessing the structure of a char table.
25108
25109 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
25110 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
25111 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
25112 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
25113
25114 * term.c: Include "buffer.h" and "character.h".
25115 (encode_terminal_code, write_glyphs): Adjust for the new
25116 code-conversion API.
25117 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
25118
25119 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
25120
25121 * xdisp.c: Include "character.h".
25122 (get_next_display_element): Adjust for the new multibyte form.
25123 (disp_char_vector): Adjust for the new char table structure.
25124 (decode_mode_spec_coding): Adjust for the new structure of
25125 coding system.
25126 (decode_mode_spec): Adjust for the new code-conversion API.
25127
25128 * xfaces.c: Include "character.h" instead of "charset.h".
25129 (load_face_font): Adjust for the change of choose_face_font and
25130 FS_LOAD_FONT.
25131 (generate_ascii_font): New function.
25132 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
25133 (set_font_frame_param): Adjust for the change of choose_face_font.
25134 (free_realized_face): Make it public.
25135 (free_realized_faces_for_fontset): Rename from
25136 free_realized_multibyte_face. Free also faces realized for ASCII.
25137 (choose_face_font): Change arguments. Adjust for the change of
25138 fontset_font_pattern and FS_LOAD_FONT.
25139
25140 * xfns.c: Include "character.h".
25141 (x_encode_text): Adjust for the new code-conversion API.
25142
25143 * xselect.c: Don't include "charset.h".
25144 (selection_data_to_lisp_data): Adjust for the new code conversion API.
25145
25146 * xterm.c: Include "character.h".
25147 (x_encode_char): New argument CHARSET. Change caller.
25148 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
25149 Call ENCODE_CHAR instead of SPLIT_CHAR.
25150 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
25151 CHAR_WIDTH instead of CHARSET_WIDTH.
25152 (XTread_socket): Adjust for the new code-conversion API.
25153 (x_new_font): Adjust for the change of FS_LOAD_FONT.
25154 (x_load_font): Adjust for the change of struct font.
25155
251562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
25157
25158 * xfaces.c (face_at_buffer_position): Remove unused vars.
25159
251602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25161
25162 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
25163 Fix overflow checking.
25164
251652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
25166
25167 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
25168 Cancel previous change.
25169
251702008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25171
25172 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
25173 ccl->eight_bit_control. Fix check for buffer overflow.
25174 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
25175 (ccl_driver): Initialize extra_bytes to 0.
25176
251772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
25178
25179 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
25180 return it ORed with ctrl_modifier.
25181
251822008-01-29 Miles Bader <miles@gnu.org>
25183
25184 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
25185
251862008-01-28 Jason Rumney <jasonr@gnu.org>
25187
25188 * w32.c (stat): Don't double check for networked drive.
25189
251902008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
25191
25192 * window.c (run_window_configuration_change_hook): New function.
25193 Code extracted from set_window_buffer. Set the selected frame.
25194 (set_window_buffer): Use it.
25195 * window.h (run_window_configuration_change_hook): Declare.
25196 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
25197
25198 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
25199
252002008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
25201
25202 * Makefile.in: Remove references to unused macros.
25203
252042008-01-26 Eli Zaretskii <eliz@gnu.org>
25205
25206 * w32.c (g_b_init_get_sid_sub_authority)
25207 (g_b_init_get_sid_sub_authority_count): New static variables.
25208 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
25209 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
25210 (init_user_info): Use them to retrieve uid and gid.
25211 Use 500/513, the Windows defaults, as Administrator's uid/gid.
25212 (fstat): Use pw_uid and pw_gid from the_passwd structure for
25213 st_uid and st_gid of the file.
25214
252152008-01-26 Jason Rumney <jasonr@gnu.org>
25216
25217 * w32.c (logon_network_drive): New function.
25218 (stat): Use it.
25219
252202008-01-26 Chong Yidong <cyd@stupidchicken.com>
25221
25222 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
25223 invisible text covered with an ellipsis.
25224
252252008-01-25 Richard Stallman <rms@gnu.org>
25226
25227 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
25228 jump back to beginning. Move some other initializations after that.
25229 (Qwindow_text_change_functions, Vwindow_text_change_functions):
25230 New variables.
25231 (syms_of_xdisp): Init them.
25232
25233 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
25234
25235 * buffer.c (reset_buffer_local_variables):
25236 Implement `permanent-local-hook'.
25237 (Qpermanent_local_hook): New variable.
25238 (syms_of_buffer): Init and staticpro it.
25239
252402008-01-25 Michael Albinus <michael.albinus@gmx.de>
25241
25242 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25243
252442008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
25245
25246 * fns.c (Fclrhash): Return TABLE.
25247
252482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25249
25250 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25251 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25252 is set even without positional changes.
25253 (x_scroll_bar_clear): Set bar->redraw_needed_p.
25254
25255 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
25256
252572008-01-23 Jason Rumney <jasonr@gnu.org>
25258
25259 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
25260
25261 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
25262 the unicode range available in MULE by locale-coding-system.
25263 Improve dbcs lead byte detection. Set event timestamp and modifiers
25264 earlier.
25265
252662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25267
25268 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
25269 [MAC_OSX] (init_mac_osx_environment): Initialize it.
25270 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
25271 when used on child processes.
25272
252732008-01-21 Michael Albinus <michael.albinus@gmx.de>
25274
25275 * dbusbind.c (Fdbus_method_return_internal): Rename from
25276 Fdbus_method_return.
25277 (Fdbus_unregister_object): Move to dbus.el.
25278 (Fdbus_call_method, Fdbus_method_return_internal)
25279 (Fdbus_send_signal): Improve debug messages.
25280
252812008-01-20 Martin Rudalics <rudalics@gmx.at>
25282
25283 * undo.c (undo_inhibit_record_point): New variable.
25284 (syms_of_undo): Initialize it.
25285 (record_point): Don't record point when undo_inhibit_record_point
25286 is set.
25287
252882008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
25289
25290 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
25291
25292 * xdisp.c (Qauto_hscroll_mode): New var.
25293 (syms_of_xdisp): Initialize it.
25294 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
25295 window's buffer.
25296 (hscroll_windows): Don't check automatic_hscrolling_p here.
25297
25298 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
25299 vscroll if we're setting window-buffer to the value it already has.
25300
253012008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
25302
25303 * m/intel386.h: Remove references to XENIX.
25304
253052008-01-17 Andreas Schwab <schwab@suse.de>
25306
25307 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
25308 instead of HAVE_X86_64_LIB64_DIR.
25309 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
25310
253112008-01-17 Glenn Morris <rgm@gnu.org>
25312
25313 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
25314 to HAVE_X86_64_LIB64_DIR.
25315
253162008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
25317
25318 * s/irix3-3.h:
25319 * s/irix4-0.h:
25320 * s/386-ix.h:
25321 * s/domain.h:
25322 * s/hpux9-x11r4.h:
25323 * s/hpux9shxr4.h: Remove files for systems no longer supported.
25324
25325 * sysdep.c: Remove code containing references to symbols defined
25326 by unsupported systems.
25327
253282008-01-16 Glenn Morris <rgm@gnu.org>
25329
25330 * coding.c (select-safe-coding-system-function): Doc fix.
25331
253322008-01-15 Glenn Morris <rgm@gnu.org>
25333
25334 * config.in: Revert 2008-01-13 change: this is a generated file.
25335
253362008-01-13 Tom Tromey <tromey@redhat.com>
25337
25338 * lisp.h: Fix typo.
25339
253402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25341
25342 * m/sequent-ptx.h:
25343 * m/sequent.h:
25344 * s/ptx.h:
25345 * s/ptx4-2.h:
25346 * s/ptx4.h: Remove files for systems no longer supported.
25347
25348 * callproc.c (Fcall_process): Fix previous change.
25349
253502008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25351
25352 * unexsunos4.c: Remove file, system not supported anymore.
25353
25354 * m/mips.h:
25355 * m/intel386.h:
25356 * callproc.c:
25357 * config.in:
25358 * ecrt0.c:
25359 * emacs.c:
25360 * fileio.c:
25361 * frame.c:
25362 * getpagesize.h:
25363 * keyboard.c:
25364 * lread.c:
25365 * process.c:
25366 * puresize.h:
25367 * sysdep.c:
25368 * systty.h:
25369 * syswait.h:
25370 * unexec.c:
25371 * xdisp.c:
25372 * alloc.c: Remove code containing references to symbols defined by
25373 unsupported systems.
25374
253752008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25376
25377 * coding.c (detect_coding_mask): Fix previous change.
25378
253792008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25380
25381 * coding.c (detect_coding_iso2022): New arg
25382 latin_extra_code_state. Allow Latin extra codes only
25383 when *latin_extra_code_state is nonzero.
25384 (detect_coding_mask): If there is a NULL byte, detect the encoding
25385 as UTF-16 or binary. If Latin extra codes exist, detect the
25386 encoding as ISO-2022 only when there's no other proper encoding is
25387 found.
25388
253892008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25390
25391 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25392 #ifdef MAC_OS.
25393
253942008-01-08 Richard Stallman <rms@gnu.org>
25395
25396 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25397
253982008-01-06 Nick Roberts <nickrob@snap.net.nz>
25399
25400 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25401 menu bar in parentheses.
25402
254032008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25404
25405 * m/7300.h:
25406 * m/acorn.h:
25407 * m/alliant-2800.h:
25408 * m/alliant.h:
25409 * m/alliant1.h:
25410 * m/alliant4.h:
25411 * m/altos.h:
25412 * m/amdahl.h:
25413 * m/apollo.h:
25414 * m/att3b.h:
25415 * m/aviion-intel.h:
25416 * m/aviion.h:
25417 * m/celerity.h:
25418 * m/clipper.h:
25419 * m/cnvrgnt.h:
25420 * m/convex.h:
25421 * m/cydra5.h:
25422 * m/delta88k.h:
25423 * m/dpx2.h:
25424 * m/dual.h:
25425 * m/elxsi.h:
25426 * m/f301.h:
25427 * m/gould-np1.h:
25428 * m/gould.h:
25429 * m/i860.h:
25430 * m/ibmps2-aix.h:
25431 * m/ibmrt-aix.h:
25432 * m/ibmrt.h:
25433 * m/irist.h:
25434 * m/is386.h:
25435 * m/isi-ov.h:
25436 * m/mega68.h:
25437 * m/mg1.h:
25438 * m/news-r6.h:
25439 * m/news-risc.h:
25440 * m/news.h:
25441 * m/nh3000.h:
25442 * m/nh4000.h:
25443 * m/ns16000.h:
25444 * m/ns32000.h:
25445 * m/nu.h:
25446 * m/orion.h:
25447 * m/orion105.h:
25448 * m/paragon.h:
25449 * m/pfa50.h:
25450 * m/plexus.h:
25451 * m/pyramid.h:
25452 * m/pyrmips.h:
25453 * m/sh3el.h:
25454 * m/sps7.h:
25455 * m/sr2k.h:
25456 * m/stride.h:
25457 * m/sun1.h:
25458 * m/sun2.h:
25459 * m/sun3-68881.h:
25460 * m/sun3-fpa.h:
25461 * m/sun3-soft.h:
25462 * m/sun3.h:
25463 * m/sun386.h:
25464 * m/symmetry.h:
25465 * m/tad68k.h:
25466 * m/tahoe.h:
25467 * m/targon31.h:
25468 * m/tek4300.h:
25469 * m/tekxd88.h:
25470 * m/tower32.h:
25471 * m/tower32v3.h:
25472 * m/ustation.h:
25473 * m/wicat.h:
25474 * m/xps100.h:
25475 * s/cxux.h:
25476 * s/cxux7.h:
25477 * s/dgux.h:
25478 * s/dgux4.h:
25479 * s/dgux5-4-3.h:
25480 * s/dgux5-4r2.h:
25481 * s/esix.h:
25482 * s/esix5r4.h:
25483 * s/hiuxmpp.h:
25484 * s/hiuxwe2.h:
25485 * s/iris3-5.h:
25486 * s/iris3-6.h:
25487 * s/isc2-2.h:
25488 * s/isc3-0.h:
25489 * s/isc4-0.h:
25490 * s/isc4-1.h:
25491 * s/newsos5.h:
25492 * s/newsos6.h:
25493 * s/osf1.h:
25494 * s/osf5-0.h:
25495 * s/riscix1-1.h:
25496 * s/riscix12.h:
25497 * s/sco4.h:
25498 * s/sco5.h:
25499 * s/sunos4-0.h:
25500 * s/sunos4-1.h:
25501 * s/sunos413.h:
25502 * s/sunos4shr.h:
25503 * s/umax.h:
25504 * s/unipl5-2.h:
25505 * s/xenix.h:
25506 * cxux-crt0.s:
25507 * unexapollo.c:
25508 * unexconvex.c:
25509 * unexenix.c:
25510 * unexsni.c: Remove files for systems no longer supported.
25511
25512 * m/intel386.h: Remove references to unsupported systems.
25513
25514 * w32.c (get_emacs_configuration): Remove reference to i860.
25515
25516 * sysdep.c: Remove dead code.
25517
255182008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25519
25520 * s/rtu.h:
25521 * m/masscomp.h: Remove files. Platform is obsolete.
25522
255232008-01-04 Michael Albinus <michael.albinus@gmx.de>
25524
25525 * dbusbind.c (Fdbus_method_return): New function.
25526 (xd_read_message): Add the serial number to the event.
25527 (Fdbus_register_method): Activate the function.
25528
255292008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25530
25531 * keyboard.c (read_key_sequence): Fix typo.
25532
255332008-01-03 Michael Albinus <michael.albinus@gmx.de>
25534
25535 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25536 (xd_signature, xd_append_arg): Handle element type detection for
25537 empty arrays.
25538 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25539 SDATA () calls; this must be solved more general.
25540 (Fdbus_register_signal): Use SBYTES instead of strlen.
25541
255422008-01-03 Magnus Henoch <magnus@zemdatav>
25543
25544 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25545 unsigned int for byte values (necessary for big-endian platform).
25546 (Fdbus_call_method): Handle the case of no returned arguments.
25547
255482007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25549
25550 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25551
255522007-12-31 Magnus Henoch <mange@freemail.hu>
25553
25554 * dbusbind.c (xd_signature): Signature of variant is just "v".
25555
255562007-12-30 Michael Albinus <michael.albinus@gmx.de>
25557
25558 * dbusbind.c: Fix several errors and compiler warnings.
25559 Reported by Tom Tromey <tromey@redhat.com>.
25560 (XD_ERROR, XD_DEBUG_MESSAGE)
25561 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25562 (xd_append_arg): Part for basic D-Bus types rewritten.
25563 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25564 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25565 appropriate.
25566 (xd_read_message): Return Qnil. Don't signal an error; it is not
25567 useful during event reading.
25568 (Fdbus_register_signal): Signal an error if the check for
25569 FUNCTIONP fails.
25570 (Fdbus_register_method): New function. The implementation is not
25571 complete, the call of the function signals an error therefore.
25572 (Fdbus_unregister_object): New function, renamed from
25573 Fdbus_unregister_signal. The initial check signals an error, if
25574 the object is not well formed.
25575
255762007-12-30 Richard Stallman <rms@gnu.org>
25577
25578 * textprop.c (get_char_property_and_overlay):
25579 Signal error if POSITION is out of range in a buffer.
25580
255812007-12-29 Martin Rudalics <rudalics@gmx.at>
25582
25583 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25584 because the original parameters are in pure storage now.
25585
255862007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25587
25588 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25589
255902007-12-22 Eli Zaretskii <eliz@gnu.org>
25591
25592 * callint.c (syms_of_callint) <command-history>: Add reference to
25593 history-length in the doc string.
25594
255952007-12-17 Jason Rumney <jasonr@gnu.org>
25596
25597 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25598 before passing as wParam.
25599
256002007-12-22 Michael Albinus <michael.albinus@gmx.de>
25601
25602 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25603 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25604 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25605 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25606 as number.
25607 (Fdbus_call_method): Fix docstring.
25608
256092007-12-21 Michael Albinus <michael.albinus@gmx.de>
25610
25611 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25612 New macros.
25613 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25614 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25615 Simplify.
25616 (xd_signature): New function.
25617 (xd_append_arg): Compute also signatures. Major rewrite.
25618 (xd_retrieve_arg): Make debug messages friendly.
25619 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25620 Check for signatures of arguments.
25621
256222007-12-19 Michael Albinus <michael.albinus@gmx.de>
25623
25624 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25625 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25626 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25627 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25628 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25629 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25630 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25631 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25632 (xd_retrieve_value): Remove. Functionality included in ...
25633 (xd_append_arg): New function.
25634 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25635
256362007-12-16 Michael Albinus <michael.albinus@gmx.de>
25637
25638 * dbusbind.c (top): Include <stdio.h>.
25639 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25640 dbus_message_new_method_call and dbus_message_new_signal.
25641 (Fdbus_register_signal): Rename unique_name to uname.
25642 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25643 non-existing unique name. Fix typos in matching rule. Return an
25644 object which is useful in Fdbus_unregister_signal.
25645 (Fdbus_unregister_signal): Reimplementation, in order to remove
25646 only the corresponding entry.
25647 (Vdbus_registered_functions_table): Change the order of entries.
25648 Apply these changes in xd_read_message and Fdbus_register_signal.
25649
256502007-12-16 Andreas Schwab <schwab@suse.de>
25651
25652 * fileio.c (Finsert_file_contents): Fix overflow check to not
25653 depend on undefined integer overflow.
25654
256552007-12-14 Jason Rumney <jasonr@gnu.org>
25656
25657 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25658 for characters above 127.
25659
256602007-12-13 Jason Rumney <jasonr@gnu.org>
25661
25662 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25663 before dereferencing array.
25664 (lookup_vk_code): Remove zero comparison.
25665
256662007-12-14 Michael Albinus <michael.albinus@gmx.de>
25667
25668 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25669 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25670 Use `unsigned int' instead of `uint'.
25671 (xd_read_message, Fdbus_register_signal): Split expressions into
25672 multiple lines before operators "&&" and "||", according to the
25673 GNU Coding Standards.
25674
256752007-12-14 Eli Zaretskii <eliz@gnu.org>
25676
25677 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25678
256792007-12-12 Juri Linkov <juri@jurta.org>
25680
25681 * buffer.c (Frename_buffer): In interactive spec replace
25682 `read-buffer' with `read-string' that uses `buffer-name-history'
25683 as history, and the current buffer's name as default.
25684
256852007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25686
25687 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25688 manipulating the backtrace manually.
25689 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25690 (struct backtrace, backtrace_list): Remove.
25691 (command_loop_1): Remove dead var `no_direct'.
25692
25693 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25694 preserve non-built-in buffer-local variables.
25695 (Fkill_all_local_variables): Don't re-create&re-set permanent
25696 buffer-local variables.
25697
256982007-12-09 Juri Linkov <juri@jurta.org>
25699
25700 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25701 Lisp code that uses `read-buffer' with current buffer as default.
25702
257032007-12-08 Michael Albinus <michael.albinus@gmx.de>
25704
25705 * dbusbind.c (xd_read_message): Generate an event for every
25706 registered handler. There might be several handlers registered
25707 for the same signal.
25708 (Fdbus_register_signal): Don't overwrite a registration for the
25709 same signal. Add a new registration if handlers are different.
25710 (Vdbus_registered_functions_table): Rework doc string.
25711
257122007-12-07 Michael Albinus <michael.albinus@gmx.de>
25713
25714 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25715 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25716 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25717 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25718 Unify argument lists.
25719 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25720 arguments and hash table keys. Use unique name for service.
25721 (Fdbus_unregister_signal): Remove checks.
25722 (Vdbus_registered_functions_table): Fix doc string.
25723
257242007-12-05 Magnus Henoch <mange@freemail.hu>
25725
25726 * process.c (make_process): Initialize pty_flag to 0.
25727
257282007-12-05 Jason Rumney <jasonr@gnu.org>
25729
25730 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25731 specified XBMs.
25732
257332007-12-05 Richard Stallman <rms@gnu.org>
25734
25735 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25736
257372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25738
25739 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25740 New variable.
25741 (mac_try_close_socket) [MAC_OSX]: New function.
25742 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25743 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25744
25745 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25746 Use mac_try_close_socket.
25747
257482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25749
25750 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25751 reloc_base.
25752 (copy_dysymtab): Compute relocation base here.
25753 (rebase_reloc_address) [__ppc64__]: New function.
25754 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25755 changed.
25756
257572007-12-05 Jason Rumney <jasonr@gnu.org>
25758
25759 * w32proc.c (sys_spawnve): Quote args with wildcards.
25760
257612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25762
25763 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25764 __objc_* sections.
25765 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25766
257672007-12-05 Michael Albinus <michael.albinus@gmx.de>
25768
25769 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25770 Move check for Vdbus_registered_functions_table to
25771 xd_read_queued_messages.
25772 (xd_read_queued_messages): Protect xd_read_message calls by
25773 internal_condition_case_1.
25774
257752007-12-04 Michael Albinus <michael.albinus@gmx.de>
25776
25777 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25778 Qdbus_system_bus and Qdbus_session_bus, respectively.
25779 (Vdbus_intern_symbols): Remove.
25780 (Vdbus_registered_functions_table): New hash table.
25781 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25782 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25783 Rewrite in order to manage registered functions by hash table
25784 Vdbus_registered_functions_table.
25785
257862007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25787
25788 * xterm.c: Update URL to Window Manager Specification in comment.
25789
257902007-12-02 Michael Albinus <michael.albinus@gmx.de>
25791
25792 * config.in (HAVE_DBUS): Add.
25793
25794 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25795 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25796 (obj): Add $(DBUS_OBJ).
25797 (LIBES): Add $(DBUS_LIBS).
25798 (dbusbind.o): New target.
25799
25800 * dbusbind.c: New file.
25801
25802 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25803
25804 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25805 (Qdbus_event): New Lisp symbol.
25806 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25807 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 25808 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
25809
25810 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25811
258122007-12-01 Richard Stallman <rms@gnu.org>
25813
25814 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25815
258162007-11-30 Jason Rumney <jasonr@gnu.org>
25817
25818 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25819 (w32con_reset_terminal_modes): Clear screen buffer.
25820 (w32_face_attributes): Don't use color indexes that are out of range.
25821 Only reverse the default colors.
25822
25823 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25824 WINDOWSNT.
25825
25826 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25827
258282007-11-29 Jason Rumney <jasonr@gnu.org>
25829
25830 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25831 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25832 if the terminal colors are initialized.
25833 (unspecified_fg, unspecified_bg): Remove unused declarations.
25834
258352007-11-29 Andreas Schwab <schwab@suse.de>
25836
25837 * keyboard.c (apply_modifiers): Fix typo.
25838
258392007-11-29 Richard Stallman <rms@gnu.org>
25840
25841 * keymap.c (Fcurrent_local_map): Doc fix.
25842
258432007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25844
25845 * s/gnu-kfreebsd.h: New file.
25846
258472007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25848
25849 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25850 Don't cast redundantly.
25851
25852 * keyboard.c (KEY_TO_CHAR): New macro.
25853 (parse_modifiers, apply_modifiers): Accept integer arguments.
25854 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25855 for chars and symbol keys.
25856 After doing such remapping, apply function-key-map again.
25857
258582007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25859
25860 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25861 compiled anymore.
25862
258632007-11-26 Andreas Schwab <schwab@suse.de>
25864
25865 * process.c (list_processes_1): Fix indentation level of the
25866 command column.
25867
258682007-11-23 Andreas Schwab <schwab@suse.de>
25869
25870 * editfns.c (Fformat): Handle %c specially since it requires the
25871 argument to be of type int.
25872
258732007-11-23 Markus Triska <markus.triska@gmx.at>
25874
25875 * emacs.c (main): Call init_editfns before init_process, since
25876 init_process sets Vprocess_connection_type depending on OS release.
25877
258782007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25879
25880 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25881 (find_symbol_value): Use do_symval_forwarding.
25882
25883 * data.c (set_internal): Set the value in the `cons-cell' (for
25884 Buffer_Local_values) not only for frame-local variables.
25885
258862007-11-22 Andreas Schwab <schwab@suse.de>
25887
25888 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25889 values to sprintf.
25890 * keymap.c (Fsingle_key_description): Likewise.
25891 * print.c (print_object): Likewise.
25892
258932007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25894
25895 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25896 file for image is nil.
25897
258982007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25899
25900 * term.c: Include stdarg.h.
25901 (fatal): Implement using varargs.
25902 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25903
259042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25905
25906 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25907 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25908 Update call to buffer_slot_type_mismatch.
25909 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25910 (buffer_slot_type_mismatch): Update.
25911 * buffer.c (buffer_local_types): Remove.
25912 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25913 (defvar_per_buffer): Set the type in the buffer_objfwd.
25914
259152007-11-21 Jason Rumney <jasonr@gnu.org>
25916
25917 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25918 CreateFileMapping returns NULL on failure.
25919
259202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25921
25922 * search.c (Fset_match_data): Remove the `evaporate' feature.
25923 (unwind_set_match_data): Don't use the `evaporate' feature.
25924
259252007-11-21 Jason Rumney <jasonr@gnu.org>
25926
25927 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25928
25929 * w32console.c (w32con_write_glyphs): Remove unused variables.
25930
259312007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25932
25933 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25934
25935 * s/darwin.h (MULTI_KBOARD): Remove.
25936
25937 * macfns.c (x_create_tip_frame, Fx_create_frame)
25938 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25939
259402007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25941
25942 * buffer.c (Fbuffer_local_value): Remove redundant test.
25943 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25944 than in `current-buffer' to match the comment.
25945 Do the swap using swap_in_global_binding.
25946
25947 * data.c (store_symval_forwarding, set_internal):
25948 * eval.c (specbind): Remove dead code.
25949
25950 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25951 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25952 Since we do not want to see internal Lisp_*fwd objects here.
25953
259542007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25955
25956 * sysdep.c (init_system_name): Use getaddrinfo if available.
25957
25958 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25959 (x_scroll_bar_note_movement): start, end, with, height in struct
25960 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25961
259622007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25963
25964 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25965
259662007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25967
25968 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25969 This undoes Richard's change of 14-Oct-2002.
25970
25971 * alloc.c (allocate_other_vector):
25972 * lisp.h (allocate_other_vector): Remove.
25973
25974 * window.c (struct save_window_data): Move non-lisp data to the end
25975 and make it `int' rather than Lisp_Object.
25976 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25977 Done wrap/unwrap integer values.
25978 (Fset_window_configuration, compare_window_configurations):
25979 Update use of fields to their new types.
25980
25981 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25982 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25983 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25984 (SET_SCROLL_BAR_X_WINDOW): Remove.
25985 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25986 Access the new x_window field directly.
25987 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25988 Don't wrap/unwrap integers into Lisp_Objects.
25989 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25990 (x_scroll_bar_report_motion):
25991 Don't wrap/unwrap integers into Lisp_Objects.
25992 (x_term_init): Use SDATA.
25993 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25994 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25995 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25996 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25997 * xfns.c (x_set_background_color):
25998 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25999 Access the new x_window field directly.
26000
26001 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
26002 (allocate_pseudovector): Make non-static.
26003
26004 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
26005 (allocate_pseudovector): Declare.
26006 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
26007
260082007-11-15 Andreas Schwab <schwab@suse.de>
26009
26010 * editfns.c (Fformat): Correctly format EMACS_INT values.
26011 Also take precision into account when formatting an integer.
26012
26013 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
26014
260152007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
26016
26017 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
26018 (syms_of_keyboard): Defsubr it.
26019
26020 * data.c (swap_in_global_binding): Fix longstanding bug where
26021 store_symval_forwarding was not called with the right second argument,
26022 thus causing objfwd-ing from being dropped.
26023
260242007-11-14 Juanma Barranquero <lekktu@gmail.com>
26025
26026 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
26027 (Fx_display_pixel_height, Fx_display_planes)
26028 (Fx_display_color_cells, Fx_server_max_request_size)
26029 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26030 (Fx_display_visual_class, Fx_display_save_under):
26031 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
26032 (Fx_display_pixel_height, Fx_display_planes)
26033 (Fx_display_color_cells, Fx_server_max_request_size)
26034 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
26035 (Fx_display_mm_height, Fx_display_mm_width)
26036 (Fx_display_backing_store, Fx_display_visual_class)
26037 (Fw32_select_font, Fx_display_save_under):
26038 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
26039 (Fx_display_pixel_height, Fx_display_planes)
26040 (Fx_display_color_cells, Fx_server_max_request_size)
26041 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26042 (Fx_display_save_under): Fix typos in docstrings.
26043
260442007-11-14 Juanma Barranquero <lekktu@gmail.com>
26045
26046 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
26047 corresponding to deleted entries; they are an implementation detail.
26048 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
26049 Remove variables.
26050 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
26051 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
26052 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
26053 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
26054 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
26055 (Fw32_define_rgb_color, Fw32_load_color_file)
26056 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
26057 Fix typos in docstrings.
26058 (Fx_server_version): Reflow docstring.
26059 (Fw32_shell_execute): Doc fixes.
26060
260612007-11-13 Juanma Barranquero <lekktu@gmail.com>
26062
26063 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
26064 if w32_parse_hot_key returned nil.
26065
260662007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
26067
26068 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
26069
260702007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 26071
aac0c6e3
MR
26072 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
26073
26074 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
26075
26076 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
26077 Remove W32_SCROLL_BAR_CLICK_EVENT.
26078
26079 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
26080 Add MULTIMEDIA_KEY_EVENT.
26081
26082 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
26083 (lispy_multimedia_keys) [WINDOWSNT]: New array.
26084 (make_lispy_event) [WINDOWSNT]: Use it to translate
26085 MULTIMEDIA_KEY_EVENT.
26086
26087 * w32term.h (WM_APPCOMMAND): Define if not already.
26088 (GET_APPCOMMAND_LPARAM): Likewise.
26089
26090 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
26091 WM_APPCOMMAND.
26092
26093 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
26094 (syms_of_w32fns): Export and initialize it.
26095 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
26096
260972007-11-09 Chong Yidong <cyd@stupidchicken.com>
26098
26099 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
26100 twice.
26101
26102 * xdisp.c (handle_face_prop): Fix last change.
26103
261042007-11-09 Richard Stallman <rms@gnu.org>
26105
26106 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
26107 not just for after-strings and before-strings.
26108 Call face_for_overlay_string and pass the overlay to it.
26109 (handle_display_prop): Determine whether property came from an overlay.
26110 Pass OVERLAY arg to handle_single_display_spec.
26111 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
26112 (load_overlay_strings): Fill in it->string_overlays.
26113 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
26114
26115 * xfaces.c (face_for_overlay_string): Function renamed from
26116 face_at_buffer_position_no_overlays, and add arg OVERLAY.
26117
26118 * dispextern.h (struct it): New elt string_overlays.
26119 New elt from_overlay, also in stack.
26120 Rearrange a few elements.
26121 (face_for_overlay_string): Decl renamed from
26122 face_at_buffer_position_no_overlays, and add argument.
26123
261242007-11-09 Richard Stallman <rms@gnu.org>
26125
26126 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
26127 to get the base face for an overlay string.
26128
26129 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
26130
26131 * xfaces.c (face_at_buffer_position_no_overlays): New function.
26132
26133 * xdisp.c (handle_stop): Move some code out of loop.
26134
261352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26136
26137 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
26138 Fix conversion from Lisp object to ATSUFontID.
26139
261402007-11-09 Jason Rumney <jasonr@gnu.org>
26141
26142 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
26143
261442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26145
26146 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
26147 Don't assume regions are aligned to page boundary.
26148 (print_load_command_name): Add LC_UUID if defined.
26149
261502007-11-09 Richard Stallman <rms@gnu.org>
26151
26152 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
26153
261542007-11-07 Jason Rumney <jasonr@gnu.org>
26155
26156 * s/windows95.h: Remove.
26157
261582007-11-06 Jan Djärv <jan.h.d@swipnet.se>
26159
26160 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
26161 abort with a message on unhandled store_type values.
26162
261632007-11-01 Jan Djärv <jan.h.d@swipnet.se>
26164
26165 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
26166 Remove HAVE_X11R5 and HAVE_X11R4.
26167
261682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26169
26170 * Makefile.in: Remove references to sunfns.c and sunfns.o.
26171
261722007-11-01 Johan Bockgård <bojohan@gnu.org>
26173
26174 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
26175 Don't set s->stippled_p here, since it has already been set by
26176 x_set_glyph_string_gc from x_draw_glyph_string.
26177
261782007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
26179
26180 * sunfns.c: Remove file.
26181
26182 * m/sun386.h:
26183 * m/sun2.h:
26184 * m/sparc.h: Remove Sun windows code.
26185
261862007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
26187
26188 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
26189 (init_keyboard): Set current_kboard's window-system to nil.
26190 (tty_read_avail_input): Typo.
26191 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
26192
261932007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
26194
26195 * s/usg5-4.h:
26196 * s/usg5-3.h:
26197 * s/ptx.h:
26198 * m/is386.h:
26199 * m/ibmps2-aix.h:
26200 * Makefile.in: Remove all mentions of X10.
26201
26202 * dispnew.c (syms_of_display): Don't mention version 10.
26203
262042007-10-28 Juanma Barranquero <lekktu@gmail.com>
26205
26206 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
26207 ($(BLD)/abbrev.$(O)): Remove.
26208
262092007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
26210
26211 Rewrite abbrev.c in Elisp.
26212 * image.c (Qcount): Don't declare as extern.
26213 (syms_of_image): Initialize and staticpro `Qcount'.
26214 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
26215 * emacs.c (main): Don't call syms_of_abbrev.
26216 * Makefile.in (obj): Remove abbrev.o.
26217 (abbrev.o): Remove.
26218 * abbrev.c: Remove.
26219
262202007-10-26 Martin Rudalics <rudalics@gmx.at>
26221
26222 * window.c (window_min_size_2): Don't count header-line.
26223
262242007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
26225
26226 * frame.h (struct frame): Move all bit fields after the first bit
26227 field to take advantage of the available space. Group all the
26228 chars together to reduce wasted space due to padding.
26229
262302007-10-26 Juanma Barranquero <lekktu@gmail.com>
26231
26232 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
26233
26234 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
26235 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
26236 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
26237 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26238 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26239 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26240 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26241 (last_marked, mark_object_loop_halt): Make static.
26242
26243 * frame.c (syms_of_frame) <delete-frame-functions>:
26244 Fix typo in docstring.
26245
262462007-10-25 Juanma Barranquero <lekktu@gmail.com>
26247
26248 * w32.c (init_environment): Fix tiny memory leak.
26249 (w32_get_resource): Remove unused variable `ok'.
26250
262512007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
26252
26253 Make `window-system' into a keyboard-local variable (rather than
26254 frame-local as done originally by multi-tty).
26255
26256 * keyboard.h (struct kboard): Add Vwindow_system.
26257 * keyboard.c (init_kboard): Set a default for Vwindow_system.
26258 (mark_kboards): Mark Vwindow_system.
26259
26260 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
26261 (init_display): Don't set the obsolete `window-system' frame-param.
26262
26263 * xterm.c (x_term_init):
26264 * w32term.c (w32_create_terminal):
26265 * term.c (init_tty): Set Vwindow_system.
26266 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
26267 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
26268
26269 * xfns.c (Fx_create_frame, x_create_tip_frame):
26270 * w32fns.c (Fx_create_frame, x_create_tip_frame):
26271 * macfns.c (Fx_create_frame):
26272 Don't set the obsolete `window-system' frame-param.
26273
26274 * frame.h (Qwindow_system): Remove.
26275 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
26276 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
26277
262782007-10-24 Richard Stallman <rms@gnu.org>
26279
26280 * frame.c (x_figure_window_size): For fullscreen case,
26281 set USPosition | PPosition without clobbering rest of window_prompting.
26282
26283 * keyboard.c (Fcurrent_idle_time): Doc fix.
26284
26285 * print.c (Fwith_output_to_temp_buffer): Doc fix.
26286
262872007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
26288
26289 * process.c (unwind_request_sigio): Only define if __ultrix__.
26290
26291 * callproc.c (child_setup): Remove spurious *.
26292
26293 * lisp.h (Fget_text_property): Declare.
26294 (have_menus_p): Declare it here rather than in sys-dep header files.
26295 * macterm.h (have_menus_p):
26296 * msdos.h (have_menus_p):
26297 * xterm.h (have_menus_p): Remove.
26298
26299 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
26300 (Fmake_variable_frame_local): Just check the variable's const-ness
26301 rather than checking nil or t.
26302
263032007-10-22 Jason Rumney <jasonr@gnu.org>
26304
26305 * w32fns.c: Include math.h.
26306 (w32_abort): Declaration moved to nt/config.nt.
26307
26308 * s/ms-w32.h (HAVE_STDLIB_H): Define.
26309 (abort): Redefinition moved to nt/config.nt.
26310
26311 * m/windowsnt.h: Remove.
26312
263132007-10-22 Juanma Barranquero <lekktu@gmail.com>
26314
26315 * emacs.c (Fdump_emacs): Fix typo in message.
26316 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
26317 <installation-directory>: Reflow docstring.
26318
263192007-10-22 Juri Linkov <juri@jurta.org>
26320
26321 * minibuf.c: Allow minibuffer default to be a list of default values.
26322 With empty input use the first element of this list as returned default.
26323 (string_to_object)
26324 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
26325 (read_minibuf): If defalt is cons, set histstring to its car.
26326 (Fread_string): If default_value is cons, set val to its car.
26327 (Fread_buffer): If def is cons, use its car.
26328 (Fcompleting_read): If defalt is cons, set val to its car.
26329
263302007-10-21 Michael Albinus <michael.albinus@gmx.de>
26331
26332 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
26333
263342007-10-20 Juanma Barranquero <lekktu@gmail.com>
26335
26336 * doc.c (Fdocumentation): Check for advice in all cases.
26337
263382007-10-19 Chong Yidong <cyd@stupidchicken.com>
26339
26340 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
26341
263422007-10-19 Richard Stallman <rms@gnu.org>
26343
26344 * doc.c (Fdocumentation): Check for and handle an advised function.
26345
263462007-10-19 Juanma Barranquero <lekktu@gmail.com>
26347
26348 * process.c (Fset_process_filter): Doc fix.
26349
263502007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
26351
26352 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
26353 which caused key-translation-map to applied repeatedly (thus breaking
26354 double-mode).
26355
263562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26357
26358 * xselect.c (x_own_selection, x_handle_selection_clear)
26359 (x_clear_frame_selections):
26360 * w32menu.c (list_of_panes, list_of_items):
26361 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26362 * textprop.c (validate_plist, interval_has_all_properties)
26363 (interval_has_some_properties, interval_has_some_properties_list)
26364 (add_properties, text_property_list):
26365 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26366 * minibuf.c (Fassoc_string):
26367 * macselect.c (x_own_selection, x_clear_frame_selections)
26368 (Fx_disown_selection_internal):
26369 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26370 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26371
263722007-10-17 Chong Yidong <cyd@stupidchicken.com>
26373
26374 * process.c: Link to libs for calling res_init() if available.
26375 (Fmake_network_process): Call res_init() before getaddrinfo or
26376 gethostbyname, if possible.
26377
263782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26379
26380 * lread.c (read1): Set pvectype for char_tables.
26381
26382 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26383 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26384 Add type checks.
26385 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26386
26387 * alloc.c (free_misc): Use XMISCTYPE.
26388 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26389
263902007-10-17 Glenn Morris <rgm@gnu.org>
26391
26392 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26393 (syms_of_minibuf): Add Qcompletion_ignore_case.
26394 * dired.c (Qcompletion_ignore_case): Change to external.
26395 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26396 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26397 (Fread_file_name): Use it rather than intern'ing.
26398
26399 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26400 (Fread_coding_system): Ignore case of user input.
26401
264022007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26403
26404 * xdisp.c (handle_display_prop): Ignore display specs after
26405 replacing one when string text is being replaced.
26406 (handle_single_display_spec): Pretend as if characters with display
26407 property haven't been consumed only when buffer text is being replaced.
26408
264092007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26410
26411 * xfns.c (Fx_create_frame, Fx_display_list):
26412 * window.c (window_fixed_size_p, enlarge_window)
26413 (shrink_window_lowest_first):
26414 * macterm.c (init_font_name_table):
26415 * macfns.c (Fx_create_frame, Fx_display_list):
26416 * lread.c (close_load_descs):
26417 * keyboard.c (read_char_x_menu_prompt):
26418 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26419 * coding.c (code_convert_region_unwind): Test the type of an object
26420 rather than just !NILP before extracting data from it.
26421
26422 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26423
26424 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
26425 (XMISCANY): New macro.
26426 (XMISCTYPE): Use it.
26427 (struct Lisp_Misc_Any): New type.
26428 (union Lisp_Misc): Use it.
26429 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
26430 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
26431 (find_symbol_value, set_internal, default_value, Fset_default)
26432 (Fmake_variable_buffer_local, Fmake_local_variable)
26433 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
26434 (Flocal_variable_if_set_p, Fvariable_binding_locus):
26435 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
26436 * alloc.c (allocate_buffer): Set the size and tag.
26437 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
26438 Use XMISCANY.
26439 (die): Follow the GNU convention for error messages.
26440 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
26441 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
26442 tag any more.
26443 (set_buffer_internal_1):
26444 * frame.c (store_frame_param):
26445 * eval.c (specbind):
26446 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
26447
26448 * doc.c (Fsnarf_documentation): Simplify.
26449
264502007-10-14 Juanma Barranquero <lekktu@gmail.com>
26451
26452 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
26453 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
26454
264552007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26456
26457 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26458
264592007-10-14 Juanma Barranquero <lekktu@gmail.com>
26460
26461 * eval.c (do_autoload): Don't save autoloads.
26462
26463 * data.c (Ffset): Save autoload of the function being set.
26464
264652007-10-07 John Paul Wallington <jpw@pobox.com>
26466
26467 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26468 parameter before setting up faces.
26469
264702007-10-13 Eli Zaretskii <eliz@gnu.org>
26471
26472 * ccl.c (Fregister_code_conversion_map):
26473 * keyboard.c (append_tool_bar_item): Reformat last change.
26474
26475 * lisp.h (eabs): Rename from `abs'. All callers changed.
26476
264772007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26478
26479 * buffer.c (add_overlay_mod_hooklist):
26480 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26481 * fontset.c (make_fontset):
26482 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26483 (append_tool_bar_item):
26484 * macmenu.c (grow_menu_items):
26485 * w32menu.c (grow_menu_items):
26486 * xmenu.c (grow_menu_items): Use larger_vector.
26487
264882007-10-13 Eli Zaretskii <eliz@gnu.org>
26489
26490 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26491 selected frame'' on MSDOS).
26492
264932007-10-12 Martin Rudalics <rudalics@gmx.at>
26494
26495 * frame.c (Qexplicit_name): New variable.
26496 (x_report_frame_params): Report it in parameter alist.
26497 (syms_of_frame): Intern and staticpro it.
26498
264992007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26500
26501 * macfns.c (x_create_tip_frame): Set terminal for frame.
26502
265032007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26504
26505 * frame.c (Qenvironment): Remove.
26506 (syms_of_frame) <Qenvironment>: Don't initialize.
26507 (Fdelete_frame): Don't treat the `environment' param specially.
26508 * frame.h (Qenvironment): Don't declare.
26509 * callproc.c (set_initial_environment): Don't set unused frame param.
26510
26511 * frame.c (Fframe_with_environment): Remove.
26512 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26513
26514 * lisp.h (Fframe_with_environment): Don't declare.
26515
265162007-10-10 Juanma Barranquero <lekktu@gmail.com>
26517
26518 * indent.c (indent_tabs_mode, last_known_column)
26519 (last_known_column_modified): Make static.
26520 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26521
265222007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26523
26524 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26525
265262007-10-09 Jason Rumney <jasonr@gnu.org>
26527
26528 * w32term.c (x_set_window_size): Disable code that attempts to tell
26529 Lisp code about a size change before it actually happens.
26530
265312007-10-09 Richard Stallman <rms@gnu.org>
26532
26533 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26534 return HANDLED_RETURN.
26535
265362007-10-08 Martin Rudalics <rudalics@gmx.at>
26537
26538 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26539 when there's an unread command event.
26540
26541 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26542 window autoselection act appropriately when leaving selected frame.
26543 (syms_of_frame): Initialize focus_follows_mouse.
26544 * frame.h (focus_follows_mouse): Extern it.
26545 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26546 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26547 * msdos.c (dos_rawgetc): Likewise.
26548 * w32term.c (w32_read_socket): Likewise.
26549 * xterm.c (handle_one_xevent): Likewise.
26550 * xdisp.c (syms_of_xdisp): In doc-string of
26551 mouse-autoselect-window mention focus-follows-mouse.
26552
265532007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26554
26555 * macterm.c (mac_load_query_font): Fix missing return value.
26556 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26557 Add BLOCK_INPUT.
26558
265592007-10-08 Richard Stallman <rms@gnu.org>
26560
26561 * xdisp.c (get_window_cursor_type): Implement documented behavior
26562 for cursor-in-non-selected-windows = t.
26563
265642007-10-08 Jason Rumney <jasonr@gnu.org>
26565
26566 * w32.c (w32_get_resource): Always close registry keys.
26567
265682007-10-08 Jason Rumney <jasonr@gnu.org>
26569
26570 * makefile.w32-in (LIBS): Add COMCTL32.
26571
26572 * w32fns.c (globals_of_w32fns): Init common controls.
26573
265742007-10-08 Richard Stallman <rms@gnu.org>
26575
26576 * image.c (our_memory_buffer): Rename from omfib_buffer.
26577
265782007-10-08 Richard Stallman <rms@gnu.org>
26579
26580 * buffer.c (Foverlays_at): Doc fix.
26581
265822007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26583
26584 * fns.c (Fplist_put): Preserve uneven tail data.
26585
265862007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26587
26588 * termhooks.h (enum event_kind): Remove trailing comma.
26589
26590 * frame.h (enum): Remove trailing comma.
26591
265922007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26593
26594 * w32proc.c (delete_child): Don't terminate threads of zombies.
26595
265962007-10-08 Martin Rudalics <rudalics@gmx.at>
26597
26598 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26599
26600 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26601 last-repeatable-command.
26602 (init_kboard): Initialize Vlast_repeatable_command.
26603 (command_loop_1): Set it to real_this_command unless that was
26604 bound to an input event.
26605 (mark_kboards): Mark it.
26606
266072007-10-08 Richard Stallman <rms@gnu.org>
26608
26609 * eval.c (condition-case): Doc fix.
26610
266112007-10-08 Masatake YAMATO <jet@gyve.org>
26612
26613 * xfaces.c (tty_supports_face_attributes_p): Fix code
26614 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26615 was copied and not edited.
26616
266172007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26618
26619 Add new `input-decode-map' keymap and use it for terminal
26620 escape sequences.
26621 * keyboard.h (struct kboard): Add Vinput_decode_map.
26622 Remove Vlocal_key_translation_map.
26623 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26624 (init_kboard): Init input-decode-map.
26625 Replace local-key-translation-map back with key-translation-map.
26626 (syms_of_keyboard): Declare input-decode-map.
26627 Remove local-key-translation-map. Update docstrings.
26628 (mark_kboards): Mark Vinput_decode_map.
26629 Don't mark Vlocal_key_translation_map.
26630 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26631 Replace local-key-translation-map back with key-translation-map.
26632 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26633 Bind in input-decode-map rather than function-key-map.
26634
26635 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26636 This was made redundant by the previous introduction of XSETPVECTYPE.
26637
266382007-10-09 Richard Stallman <rms@gnu.org>
26639
26640 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26641
266422007-09-29 Richard Stallman <rms@gnu.org>
26643
26644 * eval.c (internal_condition_case_2, internal_condition_case_1)
26645 (internal_condition_case): Reenable abort if x_catching_errors ()
26646 to see if that really happens and why.
26647
266482007-10-06 Andreas Schwab <schwab@suse.de>
26649
26650 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26651
266522007-10-04 Juanma Barranquero <lekktu@gmail.com>
26653
26654 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26655
266562007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26657
26658 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26659
266602007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26661
26662 * window.h (struct window):
26663 * window.c (struct save_window_data, struct saved_window):
26664 * termhooks.h (struct terminal):
26665 * process.h (struct Lisp_Process):
26666 * frame.h (struct frame):
26667 * buffer.h (struct buffer):
26668 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26669 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26670 The size field of (pseudo)vectors is now unsigned.
26671 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26672
26673 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26674 Turn `count' into an integer.
26675
26676 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26677 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26678 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26679 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26680 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26681
26682 * alloc.c (allocate_pseudovector): New fun.
26683 (ALLOCATE_PSEUDOVECTOR): New macro.
26684 (allocate_window, allocate_terminal, allocate_frame)
26685 (allocate_process): Use it.
26686 (mark_vectorlike): New function.
26687 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26688 (mark_terminals): Use it.
26689 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26690 (Fmake_byte_code): Use XSETPVECTYPE.
26691
26692 * frame.c (Fframe_parameters): Minor simplification.
26693
26694 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26695
26696 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26697
26698 * buffer.c (Fget_buffer_create, init_buffer_once):
26699 * lread.c (defsubr):
26700 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26701
26702 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26703 defined differently in the m/*.h files.
26704 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26705 (XSETPVECTYPE): New macro.
26706 (XSETPSEUDOVECTOR): Use it.
26707
26708 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26709 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26710
26711 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26712 * lread.c (defvar_per_buffer):
26713 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26714
26715 * window.c (candidate_window_p): Only consider as visible frames that
26716 are on the same terminal.
26717
26718 * m/ibms390x.h (MARKBIT): Remove unused macro.
26719
267202007-10-01 Juanma Barranquero <lekktu@gmail.com>
26721
26722 * lread.c (Fload): Fix typo in docstring.
26723
267242007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26725
26726 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26727 of a non-zero value can't yield zero.
26728
267292007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26730
26731 * term.c (term_clear_mouse_face, term_mouse_highlight)
26732 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26733
26734 * print.c (safe_debug_print): Use XHASH.
26735
26736 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26737 Lisp elements such as tags.
26738 (XHASH): New macro.
26739 (EQ): Use it.
26740 (SREF, SSET, STRING_COPYIN): Use SDATA.
26741 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26742
26743 * alloc.c (mark_terminal): Remove left-over declaration.
26744 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26745 (allocate_vectorlike): Remove type argument. Adjust callers.
26746 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26747 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26748
26749 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26750 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26751 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26752 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26753 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26754 Use them.
26755
26756 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26757 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26758 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26759
267602007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26761
26762 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26763 loaded by default.
26764
267652007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26766
26767 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26768 on this tty.
26769 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26770
26771 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26772 Update all users.
26773 (handle_one_term_event): Use Gpm_DrawPointer.
26774 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26775 Signal errors instead of returning nil. Always return nil.
26776 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26777 Make it a noop if gpm-mouse was not activated.
26778 (syms_of_term): Update names.
26779
267802007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26781
26782 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26783 (init_sys_modes): Check that gpm_tty is the current tty.
26784
26785 * alloc.c (allocate_terminal): Set the vector size to only count the
26786 lisp fields. Initialize those to nil.
26787 (mark_object): Don't treat terminals specially.
26788 (mark_terminal): Remove.
26789 (mark_terminals): Use mark_object instead.
26790
26791 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26792 the GC to the beginning.
26793
26794 * indent.h:
26795 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26796
26797 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26798
267992007-09-25 Jason Rumney <jasonr@gnu.org>
26800
26801 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26802
26803 * w32console.c (create_w32cons_output): Remove.
26804
26805 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26806
26807 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26808 (reset_sys_modes): Use reset_terminal_modes_hook.
26809
268102007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26811
26812 * eval.c (do_autoload): Don't output any message.
26813
268142007-09-24 Juri Linkov <juri@jurta.org>
26815
26816 * emacs.c (standard_args): Change priority of "--no-splash"
26817 from 40 to 3. Add "--no-desktop" with the same priority.
26818
268192007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26820
26821 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26822 and optimize the case where they are all 1.
26823
268242007-09-23 Johannes Weiner <hannes@saeurebad.de>
26825
26826 * lisp.h (abs): Define if not defined.
26827 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26828 Don't define `abs', since it's defined in lisp.h.
26829
268302007-09-22 Eli Zaretskii <eliz@gnu.org>
26831
26832 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26833 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26834 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26835 (init_tty): Use DEV_TTY instead of "/dev/tty".
26836 [WINDOWSNT]: No need to protect from NAME arg being null.
26837
268382007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26839
26840 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26841 up the tty state.
26842
268432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26844
26845 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26846 (gpm_tty): Change its type.
26847 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26848 (gpm_tty): Change its type and initialize it.
26849 (Fterm_open_connection): Check the frame is indeed a tty.
26850 Use the new gpm_tty.
26851 (Fterm_close_connection): Use the new gpm_tty.
26852 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26853 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26854
268552007-09-21 Juanma Barranquero <lekktu@gmail.com>
26856
26857 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26858 underline_color, to draw strike-through.
26859
268602007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26861
26862 * lisp.h (allocate_terminal): Declare.
26863
26864 * window.c (candidate_window_p): Consider frames that are being placed
26865 by the user as somewhere between visible and iconified.
26866 (window_loop): Prefer windows on the current frame.
26867 (Fselect_window): Move the use of select-frame to the beginning so we
26868 can just delegate all the work (it'll call us back anyway).
26869
26870 * frame.c (Qdisplay_environment_variable):
26871 * frame.h (Qdisplay_environment_variable): Delete.
26872
26873 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26874 of the first arg, since that value may be a union.
26875
26876 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26877 parameter rather than Qdisplay_environment_variable. If all else
26878 fails, look for DISPLAY in initial-environment.
26879
268802007-09-21 Glenn Morris <rgm@gnu.org>
26881
26882 * Makefile.in (emacstool): Remove target.
26883 (lisp, shortlisp): Remove termdev.elc.
26884
268852007-09-21 Markus Triska <markus.triska@gmx.at>
26886
26887 * xterm.c (x_delete_display): Compile session management conditionally.
26888
268892007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26890
26891 * callproc.c (getenv_internal_1): New function.
26892 (getenv_internal): Use it.
26893 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26894
26895 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26896 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26897 (Fset_terminal_parameter): Work with dead terminals as well.
26898 (Fmodify_terminal_parameters): Remove.
26899
26900 * terminal.c (get_terminal): Handle terminals.
26901 Make sure the terminal returned is live.
26902 (create_terminal): Use allocate_terminal.
26903 (mark_terminals): Move to alloc.c.
26904 (delete_terminal): Use terminal->name as liveness status.
26905 NULL out fields after freeing their contents.
26906 Don't deallocate the object.
26907 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26908 rather than an int.
26909 (Fterminal_live_p): Accept non-integer arguments.
26910 (Fterminal_list): Return terminal objects rather than an ints.
26911
26912 * alloc.c (enum mem_type): New member for `terminal' objects.
26913 (allocate_terminal): New function.
26914 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26915 Handle terminals.
26916 (mark_terminal): New fun.
26917 (mark_terminals): Move from terminal.c.
26918
26919 * term.c (get_tty_terminal): Don't treat output_initial specially.
26920 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26921 (delete_tty): Use terminal->name as liveness status.
26922
26923 * termhooks.h (struct terminal): Make it into a pseudovector.
26924 Remove `deleted' replaced by checking `name's nullness.
26925
26926 * print.c (print_object): Handle terminals.
26927
26928 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26929 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26930
26931 * frame.c (make_terminal_frame):
26932 * keyboard.c (tty_read_avail_input):
26933 * w32term.c (x_delete_terminal):
26934 * xfns.c (Fx_create_frame, x_create_tip_frame):
26935 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26936
269372007-09-20 Glenn Morris <rgm@gnu.org>
26938
26939 * process.c (Fmake_network_process): Doc fix.
26940
269412007-09-19 Jason Rumney <jasonr@gnu.org>
26942
26943 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26944
269452007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26946
26947 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26948 Fix a C warning regarding variable constness.
26949
26950 * xterm.c (handle_one_xevent): Fix a C warning.
26951
269522007-09-18 Jason Rumney <jasonr@gnu.org>
26953
26954 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26955
269562007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26957
26958 * gtkutil.c (gdpy_def): New variable.
26959 (xg_initialize): Initialize gdpy_def.
26960 (xg_display_close): If no other display exists, set gdpy_def to a
26961 new connection.
26962
269632007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26964
26965 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26966 when we have no file name for the icon.
26967 (xg_tool_bar_expose_callback): Remove.
26968 (xg_create_tool_bar): Don't connect expose signal to
26969 xg_tool_bar_expose_callback.
26970 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26971
269722007-09-16 Andreas Schwab <schwab@suse.de>
26973
26974 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26975 values instead of zapping them.
26976
269772007-09-14 Glenn Morris <rgm@gnu.org>
26978
26979 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26980 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26981 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26982 scope and rename to omfib_buffer for clarity.
26983 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26984
269852007-09-14 Kenichi Handa <handa@m17n.org>
26986
26987 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26988
269892007-09-13 Jason Rumney <jasonr@gnu.org>
26990
26991 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26992
26993 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26994
26995 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26996 (mac_term_init): Call here instead, passing rif.
26997
269982007-09-13 Glenn Morris <rgm@gnu.org>
26999
27000 * s/hpux.h: No longer define `static' as nothing.
27001
270022007-09-13 Johan Bockgård <bojohan@gnu.org>
27003
27004 * callint.c (Fcall_interactively): Remove unused var `fun'.
27005
270062007-09-12 Romain Francoise <romain@orebokech.com>
27007
27008 * window.c (prefer_window_split_horizontally, display_buffer):
27009 Revert 2007-09-08 change.
27010
270112007-09-12 Glenn Morris <rgm@gnu.org>
27012
27013 * alloca.c: Remove file.
27014 * Makefile.in (alloca): Do not undef.
27015 (allocaobj, alloca.o): Remove.
27016 (otherobj): Remove allocaobj.
27017 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
27018 * regex.c (C_ALLOCA): Remove all references and code that was only
27019 used when this was defined.
27020 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
27021 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
27022 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
27023
27024 * Makefile.in (SOURCES, unlock, relock): Delete.
27025
27026 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
27027 (menu_grab_callback): All uses changed.
27028
27029 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
27030 (x_reply_selection_request): All uses changed.
27031
270322007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
27033
27034 * lread.c (load_warn_old_style_backquotes): Change message to look
27035 better when it appears in the middle of byte-compiler messages.
27036
270372007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
27038
27039 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
27040
27041 * xterm.c (x_create_terminal): Add comment.
27042
27043 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
27044
270452007-09-10 Richard Stallman <rms@gnu.org>
27046
27047 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
27048
270492007-09-10 Michaël Cadilhac <michael@cadilhac.name>
27050
27051 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
27052 (DEFUN): Document `intspec', use it instead of `prompt'.
27053
27054 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
27055
27056 * data.c (Finteractive_form): If the interactive specification starts
27057 with a `(', use it as a Lisp form.
27058
27059 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
27060 name and file modes.
27061
27062 * callint.c (Fcall_interactively): Comment fixes.
27063
270642007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
27065
27066 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
27067 and compiled functions.
27068
270692007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
27070
27071 * window.c (prefer_window_split_horizontally): New variable.
27072 (display_buffer): Consider splitting window horizontally depending
27073 on prefer_window_split_horizontally.
27074
270752007-09-08 Eli Zaretskii <eliz@gnu.org>
27076
27077 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
27078
270792007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27080
27081 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
27082
27083 * frame.c (x_set_frame_parameters): Check number is positive before
27084 using XFASTINT.
27085
27086 * window.c (freeze_window_start): Don't presume selected_window holds
27087 a window object.
27088 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
27089
270902007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
27091
27092 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
27093
270942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
27095
27096 * window.c (Vsplit_window_preferred_function): New var.
27097 (Fdisplay_buffer): Use it.
27098 (syms_of_window): Export, and initialize it.
27099
271002007-09-06 Pixel <pixel@mandriva.com> (tiny change)
27101
27102 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
27103
271042007-09-06 Glenn Morris <rgm@gnu.org>
27105
27106 * gtkutil.c (menu_grab_callback) <cnt>:
27107 * xselect.c (x_reply_selection_request) <cnt>: Move static
27108 variable to file scope.
27109
271102007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
27111
27112 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
27113 consistent values of selected_frame and selected_window.
27114
271152007-09-04 Jason Rumney <jasonr@gnu.org>
27116
27117 * w32console.c (initialize_w32_display): Zero unused hooks.
27118
271192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27120
27121 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
27122 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
27123
271242007-09-04 Jason Rumney <jasonr@gnu.org>
27125
27126 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
27127 in w32console.c. Set up input. Remove XXX comments that have been
27128 confirmed as correct.
27129
27130 * s/ms-w32.h (MULTI_KBOARD): Define.
27131
27132 * w32console.c (one_and_only_w32cons): Remove.
27133 (initialize_w32_display): Take terminal argument.
27134
27135 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
27136 initialize_w32_display.
27137 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
27138
27139 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
27140
27141 * keyboard.c (discard_mouse_events): Discard it.
27142 (make_lispy_event): Translate it to a lisp event.
27143 (lispy_wheel_names): Add wheel-left and right events.
27144 (syms_of_keyboard): Enlarge wheel_syms.
27145
27146 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
27147 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
27148
27149 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
27150
27151 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
27152 from WM_MOUSEHWHEEL.
27153 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
27154
27155 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
27156 terminal.
27157
27158 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
27159 keyboard for the terminal.
27160
271612007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
27162
27163 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
27164 (Vresume_tty_hook): Rename from Vresume_tty_functions.
27165 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
27166 and resume-tty-function to resume-tty-hook.
27167 (Fsuspend_tty, Fresume_tty): Use new names.
27168
271692007-09-02 Jan Djärv <jan.h.d@swipnet.se>
27170
27171 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
27172 if it starts with "n:".
27173
271742007-08-31 Jan Djärv <jan.h.d@swipnet.se>
27175
27176 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
27177
271782007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
27179
27180 * frame.h:
27181 * frame.c (Qterm_environment_variable): Remove.
27182 (syms_of_frame): Don't init and staticpro it.
27183
27184 * callproc.c (getenv_internal): Remove special case for $TERM.
27185
27186 * callproc.c (Vinitial_environment): New variable.
27187 (set_initial_environment): Initialize it.
27188 (syms_of_callproc): Declare it.
27189 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
27190 TERM under which a process runs is never related to the TERM in which
27191 Emacs is running.
27192
271932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27194
27195 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
27196 * s/darwin.h: ... do it here.
27197
271982007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
27199
27200 * lisp.h (set_initial_environment): Rename from set_global_environment.
27201
27202 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
27203 removed by mistake on the multi-tty branch.
27204
27205 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
27206 (Fmodify_frame_parameters): Return a value.
27207
27208 * image.c (png_load): Comment-out var only used in commented-out code.
27209
27210 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
27211 before passing it to mark_object.
27212
27213 * xfaces.c (internal_resolve_face_name): Return a value.
27214 (internal_resolve_face_name, resolve_face_name_error): Comment out.
27215
27216 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
27217 (x_icon): Comment-out var only used in commented-out code.
27218
272192007-08-29 Romain Francoise <romain@orebokech.com>
27220
27221 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
27222 QUIT hasn't been provided.
27223
272242007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27225
27226 * callproc.c (child_setup, getenv_internal): Use the
27227 display-environment-variable and term-environment-variable frame params.
27228 (set_initial_environment): Initialise Vprocess_environment.
27229
27230 * config.in: Disable multi-keyboard support on a mac.
27231
27232 * frame.c (Qterm_environment_variable)
27233 (Qdisplay_environment_variable): New variables.
27234 (syms_of_frame): Intern and staticpro them.
27235 (Fmake_terminal_frame): Disable output method test.
27236
27237 * frame.h: Declare them here.
27238
27239 * macfns.c (x_set_mouse_color): Get rif from the frame.
27240 (x_set_tool_bar_lines): Don't use updating_frame.
27241 (mac_window): Add 2 new parameters for consistency with other systems.
27242 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
27243 frame parameters following what is done in X11 and w32. Don't use
27244 FRAME_MAC_DISPLAY_INFO.
27245 (Fx_open_connection, start_hourglass): Remove window-system check.
27246 (x_create_tip_frame): Get the keyboard from the terminal.
27247
27248 * macmenu.c: Reorder includes.
27249 (Fx_popup_menu): Use terminal specific mouse_position_hook.
27250
27251 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27252 terminal parameter.
27253 (x_clear_frame): Add a frame parameter.
27254 (note_mouse_movement): Get rif from the frame.
27255 (mac_term_init): Initialize the terminal.
27256 (mac_initialize): Make static and move terminal initialization ...
27257 (mac_create_terminal): ... to this new function.
27258
27259 * macterm.h (struct mac_display_info): Add terminal.
27260 (mac_initialize): Delete declaration.
27261
27262 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
27263
27264 * sysdep.c: Comment out text after #endif.
27265
27266 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
27267 is defined. Better initialize ttys in windows. Use terminal
27268 specific mouse_position_hook.
27269
27270 * termhooks.h (union display_info): Add mac_display_info.
27271
27272 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
27273 Set the default minibuffer frame, window_system and the rest of the
27274 frame parameters following what is done in X11.
27275
27276 * w32term.c (w32_initialize): Make static.
27277
27278 * xselect.c (x_handle_selection_clear): Only access
27279 terminal->kboard when MULTI_KBOARD is defined.
27280
27281 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
27282 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
27283
272842007-08-29 Jason Rumney <jasonr@gnu.org>
27285
27286 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
27287 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
27288
27289 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
27290 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
27291
27292 * keyboard.c (restore_kboard_configuration): Only define when
27293 MULTI_KBOARD defined.
27294
27295 * makefile.w32-in: Update dependancies from Makefile.in.
27296 (OBJ1): Add terminal.$(O)
27297
27298 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
27299 Don't define function body.
27300 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
27301
27302 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
27303
27304 * w32.c (request_sigio, unrequest_sigio): Remove.
27305
27306 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
27307 (w32con_clear_frame, w32con_clear_end_of_line)
27308 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
27309 (w32con_delete_glyphs, w32con_set_terminal_window)
27310 (scroll_line, w32_sys_ring_bell): Add frame arg.
27311 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
27312 Add terminal arg.
27313 (PICK_FRAME): Remove.
27314 (w32con_write_glyphs): Use frame specific terminal coding.
27315 (one_and_only_w32cons): New global variable.
27316 (initialize_w32_display): Use it for storing hooks.
27317 (create_w32cons_output): New function.
27318
27319 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
27320 arg a frame.
27321
27322 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
27323 Set window_system.
27324 (x_set_tool_bar_lines): Don't use updating_frame.
27325 (Fx_create_frame): Set terminal and ref count.
27326 (Fx_open_connection): Remove window-system check.
27327
27328 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
27329
27330 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
27331 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
27332 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
27333 Add frame arg.
27334 (x_delete_terminal, w32_create_terminal): New functions.
27335 (w32_term_init): Create a terminal.
27336 (w32_initialize): Move terminal specific initialization to
27337 w32_create_terminal.
27338
27339 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
27340 (w32_clear_rect, w32_clear_area): Use background from frame.
27341 (w32_display_info): Add terminal.
27342 (w32_sys_ring_bell, x_delete_display): Declare here.
27343
27344 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
27345
27346 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
27347
273482007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
27349
27350 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
27351 Fix get_named_tty calls for the controlling tty.
27352
273532007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
27354
194d44e7 27355 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
27356
273572007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27358
27359 * term.c (tty_insert_glyphs): Add missing first parameter.
27360
273612007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27362
27363 * buffer.c (Fbuffer_list, Fbury_buffer):
27364 Take frame->buried_buffer_list into account.
27365
27366 * cm.c (current_tty): New variable, for cmputc().
27367 (cmputc): Use it.
27368 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27369 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27370 (cmgoto): Add tty parameter. Pass it on to calccost().
27371 Use emacs_tputs() instead of tputs().
27372
27373 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27374 tputs().
27375 (current_tty): New variable, for cmputc().
27376 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27377
27378 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27379 (internal_condition_case, internal_condition_case_1)
27380 (internal_condition_case_2): Don't abort when x_catching_errors.
27381
27382 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27383 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27384 prevent crashes caused by bogus longjmps in read_char.
27385
27386 * keymap.h (Fset_keymap_parent): Add EXFUN.
27387
27388 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27389 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27390 Remove redundant definition.
27391
27392 * macfns.c (x_set_mouse_color, x_make_gc):
27393 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27394
27395 * w32term.c (x_free_frame_resources):
27396 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27397 (w32_initialize): Use the accessor macros for terminal characteristics.
27398
27399 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27400 Use the accessor macros for terminal characteristics.
27401 * msdos.c (internal_terminal_init): Use the accessor macros for
27402 terminal characteristics.
27403 (ScreenVisualBell, internal_terminal_init):
27404 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27405
27406 * termopts.h (no_redraw_on_reenter): Declare.
27407
27408 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27409 (mark_terminals, mark_ttys): Declare.
27410 (Fgarbage_collect): Call them.
27411 (mark_object): Mark buried_buffer_list.
27412
27413 * prefix-args.c: Include stdlib.h for exit.
27414
27415 * syssignal.h: Add comment.
27416
27417 * indent.c: Include stdio.h.
27418
27419 * window.h (Vinitial_window_system): Declare.
27420 (Vwindow_system): Delete declaration.
27421
27422 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27423
27424 * image.c (lookup_image): Don't initialize `c' until the xasserts
27425 have been run.
27426
27427 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
27428 FRAME_FOREGROUND_PIXEL.
27429
27430 * print.c (print_preprocess): Don't lose print_depth levels while
27431 iterating.
27432
27433 * widget.c (update_from_various_frame_slots):
27434 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27435
27436 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
27437 frames.
27438 (window_internal_height): Remove bogus make_number call.
27439 (init_window_once): Call make_terminal_frame with two zero parameters.
27440
27441 * fileio.c (Fread_file_name): Update comment.
27442
27443 * callint.c (Fcall_interactively):
27444 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
27445 Make sure it is correctly unwound.
27446
27447 * xsmfns.c (x_session_close): New function.
27448
27449 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
27450 Delete declarations.
27451
27452 * xterm.h: Remove declaration for x_fully_uncatch_errors.
27453 (x_output): Remove background_pixel and foreground_pixel fields.
27454 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
27455 (x_delete_device, x_session_close): Declare.
27456
27457 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27458 (read_filtered_event): Call `read_char' with a local
27459 `wrong_kboard_jmpbuf'.
27460
27461 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27462 Don't call single_kboard_state. Use FRAME_RIF.
27463
27464 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27465 systems.
27466
27467 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27468 (Fframe_with_environment, Fset_input_meta_mode)
27469 (Fset_quit_char): EXFUN.
27470 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27471 (init_sys_modes, reset_sys_modes): Update prototypes.
27472 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27473
27474 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27475 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27476 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27477 Delete declarations.
27478 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27479 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27480 New declarations.
27481
27482 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27483 already does that during init_display(). Call syms_of_keymap
27484 before syms_of_keyboard. Call `syms_of_terminal'.
27485 Call set_initial_environment, not set_process_environment.
27486 (shut_down_emacs): Call reset_all_sys_modes() instead of
27487 reset_sys_modes().
27488
27489 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27490 (internal_resolve_face_name, resolve_face_name_error): New functions.
27491 (resolve_face_name): Protect against loops and errors thrown by Fget.
27492 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27493 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27494
27495 * scroll.c: Replace CURTTY() with local variables throughout the
27496 file (where applicable).
27497 (calculate_scrolling, calculate_direct_scrolling)
27498 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27499 characteristics.
27500
27501 * keymap.c (Vfunction_key_map): Remove.
27502 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27503 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27504 (Vkey_translation_map): Remove.
27505 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27506 (Fdescribe_buffer_bindings)
27507 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27508 Update for terminal-local key-translation-map.
27509
27510 * Makefile.in (callproc.o): Update dependencies.
27511 (lisp, shortlisp): Add termdev.elc.
27512 (obj): Add terminal.o.
27513 (terminal.o): Add dependencies.
27514 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27515 (data.o, fns.o): Add termhooks.h dependency.
27516 (SOME_MACHINE_LISP): Add dnd.elc.
27517 (minibuf.o): Fix typo.
27518 Update dependencies.
27519
27520 * data.c (do_symval_forwarding, store_symval_forwarding)
27521 (find_symbol_value): Use the selected frame's keyboard, not
27522 current_kboard.
27523
27524 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27525 Vwindow_system.
27526
27527 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27528 Fmenu_bar_open.
27529 (syms_of_xmenu): Update defsubr.
27530 (mouse_position_for_popup, Fx_popup_menu)
27531 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27532 (set_frame_menubar, free_frame_menubar)
b97439ce 27533 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
27534 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27535 an X frame.
27536
27537 * xselect.c (x_own_selection): Abort if not an X frame.
27538 (some_frame_on_display): Check if it is an X frame.
27539 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27540
27541 * coding.c: Include frame.h and termhooks.h.
27542 (terminal_coding, keyboard_coding): Delete.
27543 (Fset_terminal_coding_system_internal)
27544 (Fset_keyboard_coding_system_internal)
27545 (Fkeyboard_coding_system)
27546 (Fterminal_coding_system): Add a terminal parameter.
27547 Get terminal_coding from the terminal.
27548 (init_coding_once): Don't call setup_coding_system here.
27549
27550 * dispextern.h (set_scroll_region, turn_off_insert)
27551 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27552 (tty_clear_end_of_line, tty_setup_colors)
27553 (delete_tty, updating_frame)
27554 (produce_special_glyphs, produce_glyphs, write_glyphs)
27555 (insert_glyphs): Remove.
27556 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27557 (tty_turn_off_highlight, get_tty_size): Add declaration.
27558 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27559
27560 * frame.h (enum output_method): Add output_initial.
27561 (struct x_output): Delete.
27562 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27563 Access foreground_pixel and background_pixel directly from the frame.
27564 (tty_display): Delete.
27565 (struct frame): Add buried_buffer_list, foreground_pixel,
27566 background_pixel and terminal. Delete kboard.
27567 (union output_data): Add tty.
27568 (FRAME_KBOARD): Get the kboard from the terminal.
27569 (FRAME_INITIAL_P): New macro.
27570 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27571 (Qterm_environment_variable, Qdisplay_environment_variable)
27572 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27573 New declarations.
27574
27575 * termchar.h (tty_output, tty_display_info): New structures.
27576 (tty_list): Declare.
27577 (FRAME_TTY, CURTTY): New macros.
27578 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27579 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27580 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27581 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27582
27583 * callproc.c: Include frame.h and termhooks.h, for terminal
27584 parameters.
27585 (add_env): New function.
27586 (child_setup): Use it.
27587 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27588 (getenv_internal): Fix get_terminal_param call.
27589 (Fgetenv_internal, egetenv): Update doc.
27590 (syms_of_callproc): Initialize Vprocess_environment to nil.
27591 Register and initialize them. Remove obsolete defvars. Update doc
27592 strings.
27593 (child_setup): Handle Vlocal_environment_variables.
27594 (getenv_internal): Add terminal parameter.
27595 Handle Vlocal_environment_variables.
27596 (Fgetenv_internal): Add terminal parameter.
27597 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27598 environment in a frame (not terminal) parameter. Update doc strings.
27599 (set_initial_environment): Rename from set_global_environment.
27600 Store Emacs environment in initial frame parameter.
27601
27602 * xdisp.c (redisplay_internal): Update references to
27603 `previous_terminal_frame'.
27604 (display_mode_line, Fformat_mode_line): Replace calls to
27605 `push_frame_kboard' with `push_kboard'.
27606 (get_glyph_string_clip_rects): Add extra parentheses and
27607 braces to prevent compiler warnings.
27608 (calc_pixel_width_or_height): Add xassert to check that the
27609 frame is alive. Don't call `lookup_image' on a termcap frame.
27610 (message2_nolog, message3_nolog, redisplay_internal)
27611 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27612 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27613 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27614 (Fx_display_pixel_width, Fx_display_pixel_height)
27615 (Fx_display_planes, Fx_display_color_cells)
27616 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27617 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27618 (Fx_display_backing_store, Fx_display_visual_class)
27619 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27620 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27621
27622 * xfns.c (x_set_foreground_color x_set_background_color)
27623 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27624 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27625 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27626 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27627 terminal that is being deleted.
27628 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27629 frame parameter, and make sure it overrides any user-supplied setting.
27630 (Fx_close_connection, Fx_synchronize): Unify argument names with
27631 the rest of the DEFUNs.
27632
27633 * dispnew.c (Fsend_string_to_terminal): Update call to
27634 `get_tty_terminal'.
27635 (Fredraw_frame, Fsend_string_to_terminal)
27636 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27637 FRAME_TERMCAP_P and FRAME_TTY.
27638 (window_change_signal): Don't believe width/height values that are
27639 impossibly small.
27640 (Vinitial_window_system): Rename from Vwindow_system.
27641 (termscript, Wcm, rif): Delete.
27642
27643 * termhooks.h (struct terminal): New struct containing the
27644 previously global text display hooks and new members NAME,
27645 DELETED and PARAM_ALIST.
27646 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27647 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27648 (FRAME_RIF): New macros.
27649 (get_terminal_param, get_device): New declarations.
27650 (termscript): Delete declaration.
27651
27652 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27653 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27654 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27655 FRAME_FOREGROUND_PIXEL.
27656 (x_fully_uncatch_errors): Disable definition.
27657 (x_scroll_bar_expose): Fix reference to foreground pixel.
27658 (XTread_socket): Disable loop on all X displays.
27659 (x_delete_terminal): Don't set terminal->deleted and let
27660 delete_terminal delete the frames on the terminal.
27661 (x_delete_display): Doc update to reflect changes in
27662 delete_terminal.
27663 (x_display_info) <terminal>: Move member earlier in the struct.
27664 (deleting_tty): Remove old variable.
27665 (Fsuspend_tty): Call clear_tty_hooks.
27666 (Fresume_tty, init_tty): Call set_tty_hooks.
27667 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27668 errors on X frames.
27669 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27670 (handle_one_xevent): Initialize `f' to NULL.
27671 (x_delete_terminal, x_create_terminal): New functions.
27672 (XTset_terminal_modes, XTreset_terminal_modes)
27673 (XTread_socket, x_connection_closed, x_term_init)
27674 (x_term_init, x_delete_display): Add terminal parameter.
27675 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27676 X connections.
27677
27678 * frame.c: Include termchar.h.
27679 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27680 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27681 (Qdisplay_environment_variable): New vars.
27682 (Fframep): Deal with output_initial.
27683 (Fframe-live-p): Doc fix.
27684 (Fwindow-system): New function.
27685 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27686 (make_terminal_frame): Don't create frames on a terminal that is
27687 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27688 (store_frame_param): Check for found_for_frame before calling XFRAME.
27689 (Fmake_terminal_frame): Handle NULL tty names correctly.
27690 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27691 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27692 frames to refer to a deleted frame in their 'environment parameter.
27693 (Fframe_with_environment): New function.
27694 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27695 (get_future_frame_param): New function.
27696 (Fmake_terminal_frame): Use it.
27697 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27698
27699 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27700 * sysdep.c (reset_sys_modes): Update for renames.
27701
27702 * keyboard.c (tty_read_avail_input): New function.
27703 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27704 (syms_of_keyboard): Defsubr them.
27705 (Fset_input_meta_mode, Fset_quit_char): New functions.
27706 (Fset_input_mode): Split to above functions.
27707 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27708 parameter. Use it in call to `read_char'.
27709 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27710 Set wrong_kboard_jmpbuf correctly in recursive calls.
27711 Use current_kboard to access Vkeyboard_translate_table.
27712 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27713 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27714 Update longjmp invocations. Remember the original current_kboard,
27715 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27716 changes it. Comment out unnecessary calls to
27717 `record_single_kboard_state' and `any_kboard_state'.
27718 Update recursive calls.
27719 (wrong_kboard_jmpbuf): Remove global variable.
27720 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27721 Handle deleted interrupted_kboards correctly; that is a legal
27722 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27723 and read_char calls. Abort if interrupted_kboard died in read_char.
27724 (any_kboard_state, single_kboard_state)
27725 (push_frame_kboard): Remove function.
27726 (pop_kboard): Switch out of single_kboard mode if the kboard has
27727 been deleted. Remove unused variable. Help debugging by not
27728 changing current_kboard unnecessarily. Set current_kboard to the
27729 kboard of the selected frame when the stored kboard object has
27730 been deleted before pop_kboard.
27731 (temporarily_switch_to_single_kboard): Change first parameter to a
27732 frame pointer. Throw an error when caller wants to change kboards
27733 while in single_kboard mode. Don't push_kboard if we weren't in
27734 single kboard state. Don't pop_kboard if we popped into any
27735 kboard state.
27736 (restore_kboard_configuration): Abort if pop_kboard changed the
27737 kboard in single_kboard mode. Call pop_kboard only after setting
27738 up single_kboard mode.
27739 (Frecursive_edit): Switch to single_kboard mode only in nested
27740 command loops.
27741 (cmd_error, command_loop, command_loop_1, timer_check):
27742 Comment out unnecessary call to `any_kboard_state' and
27743 `record_single_kboard_state'.
27744 (delete_kboard): Exit single_kboard mode if we have just deleted
27745 that kboard. Use FRAME_KBOARD.
27746 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27747 `fatal_error_signal'.
27748 (record_single_kboard_state): Don't push_kboard if we weren't in
27749 single kboard state. Don't pop_kboard if we popped into any
27750 kboard state.
27751 (push_frame_kboard): Rename to push_kboard.
27752 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27753 (read_avail_input): Read input from all terminals.
27754 (mark_kboards): Also mark Vkeyboard_translate_table.
27755 (kbd_buffer_store_event_hold): Simplify condition.
27756 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27757 (Vkeyboard_translate_table): Move to struct kboard.
27758 (init_kboard): Initialize Vkeyboard_translate_table.
27759 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27760 Vkeyboard_translate_table. Update doc strings. Update docs of
27761 local-function-key-map and function-key-map.
27762
27763 * terminal.c: New file.
27764
27765 * term.c: Include errno.h.
27766 (Vring_bell_function, device_list, initial_device)
27767 (next_device_id, ring_bell, update_begin, update_end)
27768 (set_terminal_window, cursor_to, raw_cursor_to)
27769 (clear_to_end, clear_frame, clear_end_of_line)
27770 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27771 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27772 (syms_of_term): Move their initialization to terminal.c.
27773 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27774 (Ftty_display_color_cells)
27775 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27776 (clear_tty_hooks, set_tty_hooks)
27777 (init_tty, maybe_fatal): New functions.
27778 (Ftty_type): Return nil if terminal is not on a tty instead of
27779 throwing an error. Doc update.
27780 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27781 Doc update. Initialize new subrs and variables.
27782 (delete_tty): Use terminal->deleted.
27783 (tty_set_terminal_modes): Rename from set_terminal_modes.
27784 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27785 (set_scroll_region): Rename to `tty_set_scroll_region'.
27786 (turn_on_insert): Rename to `tty_turn_on_insert'.
27787 (turn_off_insert): Rename to `tty_turn_off_insert'.
27788 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27789 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27790 (toggle_highligh): Rename to `tty_toggle_highlight'.
27791 (background_highlight): Rename to `tty_background_highlight'.
27792 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27793 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27794 (tty_set_scroll_region, tty_background_highlight)
27795 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27796 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27797 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27798 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27799 Add static modifier.
27800 (tty_reset_terminal_modes, tty_set_terminal_window)
27801 (tty_set_scroll_region, tty_background_highlight)
27802 (tty_highlight_if_desired, tty_cursor_to)
27803 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27804 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27805 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27806 renames.
27807
278082007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27809
27810 * keyboard.c: Qrtl is new.
27811 (parse_tool_bar_item): Handle :rtl keyword.
27812 (syms_of_keyboard): Intern :rtl keyword.
27813
27814 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27815
27816 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27817 so no Lisp code is executed.
27818 (file_for_image, find_rtl_image): New functions.
27819 (xg_get_image_for_pixmap): Use file_for_image.
27820 (update_frame_tool_bar): If direction is RTL, use RTL image if
27821 defined. Use Gtk stock images if defined.
27822
278232007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27824
27825 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27826 for nonexistent or zero-width glyph in composition glyph.
27827
278282007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27829
27830 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27831
27832 * xdisp.c (Finvisible_p): New function.
27833 (syms_of_xdisp): defsubr it.
27834
278352007-08-24 Juanma Barranquero <lekktu@gmail.com>
27836
27837 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27838 Doc fixes.
27839
278402007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27841
27842 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27843
278442007-08-24 Martin Rudalics <rudalics@gmx.at>
27845
27846 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27847 whether decoding has modified buffer contents.
27848
278492007-08-24 Jason Rumney <jasonr@gnu.org>
27850
27851 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27852 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27853 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27854 (init_svg_functions) [HAVE_NTGUI]: New function.
27855 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27856 (svg_load_image): Use them.
27857 (svg_load_image) [HAVE_NTGUI]: Implement background.
27858
278592007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27860
27861 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27862 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27863 (LIBX): Remove @RSVG_LIBS@.
27864 (LIBES): Add $(RSVG_LIBS).
27865
27866 * image.c (svg_load_image): Blend with specified background if exists.
27867 Use IMAGE_BACKGROUND. Add Mac OS Support.
27868
27869 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27870 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27871 Remove macros.
27872 [MAC_OSX] (socket_callback): Do nothing.
27873 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27874 ReceiveNextEvent.
27875 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27876 socket_callback.
27877 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27878
278792007-08-22 Glenn Morris <rgm@gnu.org>
27880
27881 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27882
278832007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27884
27885 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27886
27887 * image.c: Add support for SVG images. Some additional comments
27888 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27889 (svg_image_p): New function to test for SVG image.
27890 (svg_load): New function to load SVG image.
27891 (svg_load_image): New function, helper for svg_load.
27892 (Qsvg): New Lisp_object.
27893 (svg_keyword_index): New enum.
27894 (svg_format): New static `image_keyword' struct.
27895 (svg_type): New static `image_type' struct.
27896 (librsvg/rsvg.h): Include it.
27897
278982007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27899
27900 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27901
279022007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27903
27904 * lread.c (Qold_style_backquotes): New var.
27905 (syms_of_lread): Init and staticpro it.
27906 (load_warn_old_style_backquotes): New fun.
27907 (Fload): Use them to warn about old style backquotes.
27908 (end_of_file_error, Fload): Remove unused vars.
27909
27910 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27911
27912 * lread.c (Vold_style_backquotes): New var.
27913 (syms_of_lread): Init and export it to Elisp.
27914 (read1): Set it when we find an old-style (back)quote.
27915
279162007-08-22 Jason Rumney <jasonr@gnu.org>
27917
27918 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27919
279202007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27921
27922 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27923
279242007-08-19 Richard Stallman <rms@gnu.org>
27925
27926 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27927
279282007-08-19 Andreas Schwab <schwab@suse.de>
27929
27930 * alloc.c (pure): Round PURESIZE up.
27931
279322007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27933
27934 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27935 active frame.
27936
279372007-08-16 Richard Stallman <rms@gnu.org>
27938
27939 * eval.c (Fcommandp): Add parens to clarify.
27940
27941 * minibuf.c (Fall_completions): Use enum for type of table.
27942
27943 * emacs.c (USAGE2): Improve text.
27944
279452007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27946
27947 * term.c (tty_default_color_capabilities): Declare static
27948 variables in file scope, to avoid HPUX compiler problem.
27949
279502007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27951
27952 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27953 to gtk_toolbar_insert.
27954
279552007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27956
27957 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27958
27959 * insdel.c (reset_var_on_error): New fun.
27960 (signal_before_change, signal_after_change):
27961 Use it to reset (after|before)-change-functions to nil in case of error.
27962 Bind inhibit-modification-hooks to t.
27963 Don't bind (after|before)-change-functions to nil while they run.
27964
279652007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27966
27967 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27968 filling pixmap with stippled background.
27969
279702007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27971
27972 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27973 Don't use invisible frame as parent window for repositioning.
27974
279752007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27976
27977 * print.c (new_backquote_output): Rename from old_backquote_output.
27978 (print): Inverse its logic (according to its name) so as to match the
27979 behavior of new_backquote_flag in lread.c.
27980
279812007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27982
27983 * gmalloc.c (posix_memalign): New function.
27984
27985 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27986 ActivateControl/DeactivateControl here.
27987 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27988 frame-notice-user-settings is non-nil.
27989 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27990 for kEventParamFMFontStyle.
27991 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27992 mac_pass_command_to_system and mac_pass_control_to_system here.
27993 (XTread_socket): Call ActivateControl/DeactivateControl here.
27994 (XTread_socket) [TARGET_API_MAC_CARBON]:
27995 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27996 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27997 for window repositioning.
27998
279992007-08-08 Glenn Morris <rgm@gnu.org>
28000
28001 * Replace `iff' in doc-strings and comments.
28002
280032007-08-07 Chong Yidong <cyd@stupidchicken.com>
28004
28005 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
28006
280072007-08-07 Martin Rudalics <rudalics@gmx.at>
28008
28009 * fileio.c (Finsert_file_contents): Run format-decode and
28010 after_insert_file_functions on entire buffer when REPLACE is
28011 non-nil and inhibit modification_hooks and point_motion_hooks.
28012 For consistency, run after_insert_file_functions iff something
28013 got inserted. Move signal_after_change and update_compositions
28014 after code running after_insert_file_functions. Make sure that
28015 undo_list doesn't record intermediate steps of the decoding process.
28016
280172007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28018
28019 * emacs.c (main)
28020 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
28021 Call malloc_enable_thread on interactive startup.
28022
28023 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
28024 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
28025 [USE_PTHREAD]: Conditionalize with it.
28026 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
28027 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
28028 New functions.
28029
280302007-08-06 Chong Yidong <cyd@stupidchicken.com>
28031
28032 * xdisp.c (redisplay_window): When restoring original buffer
28033 position, make sure it is still valid.
28034
28035 * image.c (png_load): Ignore png-supplied background color.
28036
280372007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28038
28039 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
28040 Use kCFAbsoluteTimeIntervalSince1970.
28041
28042 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
28043 New variable.
28044 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
28045 event loop should be quit.
28046 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
28047 Quit dialog event loop if quit_dialog_event_loop is set.
28048
28049 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
28050 (Selection): New typedef. Use instead of ScrapRef.
28051 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
28052 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
28053 (mac_clear_selection): Rename from clear_scrap.
28054 (get_flavor_type_from_symbol): New argument SEL and subsume function of
28055 scrap_has_target_type. All uses changed.
28056 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
28057 (mac_selection_has_target_p): New functions.
28058 (mac_put_selection_value): Rename from put_scrap_string.
28059 (mac_get_selection_value): Rename from get_scrap_string.
28060 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
28061 (put_scrap_private_timestamp, scrap_has_target_type)
28062 (get_scrap_private_timestamp): Remove functions.
28063 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
28064 (x_own_selection, x_get_local_selection):
28065 Use mac_valid_selection_value_p.
28066 (x_own_selection): Don't use put_scrap_private_timestamp.
28067 Record OWNERSHIP-INFO into Vselection_alist instead.
28068 (x_get_local_selection): Don't check type if request is local.
28069 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
28070 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
28071
280722007-08-04 Jan Djärv <jan.h.d@swipnet.se>
28073
28074 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
28075 add comment explaining why.
28076
280772007-08-03 Richard Stallman <rms@gnu.org>
28078
28079 * fileio.c (Fvisited_file_modtime): Use make_time.
28080
280812007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
28082
28083 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
28084 build.
28085
280862007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
28087
28088 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
28089
280902007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
28091
28092 * puresize.h (BASE_PURESIZE): Increase to 1130000.
28093
280942007-07-30 Richard Stallman <rms@gnu.org>
28095
28096 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
28097
280982007-07-29 Jan Djärv <jan.h.d@swipnet.se>
28099
28100 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
28101
281022007-07-28 Nick Roberts <nickrob@snap.net.nz>
28103
28104 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
28105 remote default-directory.
28106
28107 * buffer.c (mode-line-format): Update doc string.
28108
281092007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28110
28111 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
28112 scroll bar gap.
28113 (x_scroll_bar_create): Set bar->fringe_extended_p.
28114 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
28115 on frame edge. Check fringe background extension. Don't clear
28116 extended fringe background area.
28117
28118 * w32term.h (struct scroll_bar): New member fringe_extended_p.
28119 (w32_fill_area): Enclose multiple statements with do ... while (0).
28120
28121 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
28122 Extend fringe background to scroll bar gap.
28123 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
28124 Set bar->fringe_extended_p.
28125 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28126 Put leftmost/rightmost scroll bars on frame edge. Check fringe
28127 background extension. Don't clear extended fringe background area.
28128
28129 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28130 New member fringe_extended_p.
28131
281322007-07-25 Glenn Morris <rgm@gnu.org>
28133
28134 * Relicense all FSF files to GPLv3 or later.
28135
28136 * COPYING: Switch to GPLv3.
28137
281382007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
28139
28140 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
28141
28142 * data.c (Finteractive_form): Check for the presence of an
28143 `interactive-form' symbol property more thoroughly.
28144
28145 * data.c (Finteractive_form): Use an `interactive-form' property if
28146 present, analogous to the function-documentation property.
28147
281482007-07-24 Jason Rumney <jasonr@gnu.org>
28149
28150 * w32fns.c (x_real_positions): Get real position from OS instead of
28151 calculating it.
28152
281532007-07-23 Jason Rumney <jasonr@gnu.org>
28154
28155 * filelock.c (current_lock_owner): Allow for @ sign in username.
28156
281572007-07-22 Nick Roberts <nickrob@snap.net.nz>
28158
28159 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
28160 remote default-directory.
28161
28162 * buffer.c (mode-line-format): Describe above case in doc string.
28163
281642007-07-20 Eli Zaretskii <eliz@gnu.org>
28165
28166 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
28167 Define if not defined.
28168
281692007-07-18 Jason Rumney <jasonr@gnu.org>
28170
28171 * w32proc.c (w32_executable_type): Handle 64 bit executables.
28172
281732007-07-18 Richard Stallman <rms@gnu.org>
28174
28175 * data.c (Fsetq_default): Doc fix.
28176
28177 * eval.c (Fsetq): Doc fix.
28178
281792007-07-18 Juanma Barranquero <lekktu@gmail.com>
28180
28181 * coding.c (Ffind_operation_coding_system):
28182 * eval.c (For, Fand): Doc fixes.
28183 Reported by Johan Bockgård.
28184
281852007-07-18 Jan Djärv <jan.h.d@swipnet.se>
28186
28187 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
28188
28189 * xterm.h: Declare x_ewmh_activate_frame.
28190
28191 * xterm.c (x_ewmh_activate_frame): New function.
28192 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
28193
281942007-07-17 Martin Rudalics <rudalics@gmx.at>
28195
28196 * window.c (Fdisplay_buffer): If largest or LRU window is the
28197 only window, split it even if it is not eligible for splitting.
28198 This restores the original behavior broken by the 2007-07-15
28199 change.
28200
282012007-07-17 Glenn Morris <rgm@gnu.org>
28202
28203 * abbrev.c (abbrev_check_chars): New function.
28204 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
28205 Call abbrev_check_chars to check abbrev characters are word
28206 constituents. Doc fix.
28207
282082007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
28209
28210 * process.c (Fstart_process, Fmake_network_process)
28211 (read_process_output): Fix up last changes.
28212
282132007-07-16 Eli Zaretskii <eliz@gnu.org>
28214
28215 * makefile.w32-in (clean): Don't delete *~.
28216
282172007-07-16 Andreas Schwab <schwab@suse.de>
28218
28219 * window.c (Fdisplay_buffer): Use NILP.
28220 (Fset_window_scroll_bars): Likewise.
28221
282222007-07-15 Martin Rudalics <rudalics@gmx.at>
28223
28224 * window.c (window_min_size_2): New function.
28225 (window_min_size_1, size_window, Fdisplay_buffer)
28226 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
28227 windows without mode- or header-lines when window-min-height is
28228 too small.
28229 (size_window): Reset nodelete_p after testing it, following an
28230 earlier note by Kim F. Storm.
28231 (display_buffer): Do not set split_height_threshold to twice the
28232 value of window_min_height to avoid changing the value of a
28233 customizable variable. Rather explicitly check whether the
28234 height of the window that shall be splitted is at least as large
28235 as split_height_threshold.
28236 (Fwindow_full_width_p): New defun.
28237 (syms_of_window): Defsubr it.
28238
28239 * window.h: Add EXFUN for Fwindow_full_width_p.
28240
282412007-07-14 Jason Rumney <jasonr@gnu.org>
28242
28243 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28244
282452007-07-14 Richard Stallman <rms@gnu.org>
28246
28247 * eval.c (maybe_call_debugger): New function.
28248 (find_handler_clause): Use maybe_call_debugger.
28249 Call it when the handler says `debug'.
28250 Eliminate DEBUGGER_VALUE_PTR.
28251 (Fsignal): Eliminate debugger_value.
28252 (Qdebug): New variable.
28253 (syms_of_eval): Initialize it.
28254
282552007-07-14 Juanma Barranquero <lekktu@gmail.com>
28256
28257 * eval.c (Fprogn):
28258 * keyboard.c (Ftrack_mouse):
28259 * print.c (Fwith_output_to_temp_buffer):
28260 * window.c (Fsave_window_excursion): Doc fix.
28261
282622007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
28263
28264 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
28265
282662007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
28267
28268 * process.h (struct Lisp_Process): Turn slots infd, outfd,
28269 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
28270 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
28271 read_output_delay, and read_output_skip from Lisp_Objects to ints.
28272 Remove unused encoding_carryover.
28273 * process.c: Adjust all functions accordingly.
28274
282752007-07-12 Richard Stallman <rms@gnu.org>
28276
28277 * term.c: Include unistd.h only if HAVE_UNISTD_H.
28278
282792007-07-11 Jason Rumney <jasonr@gnu.org>
28280
28281 * makefile.w32-in (LIBS): Include OLE32.
28282
28283 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
28284 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
28285
282862007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
28287
28288 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
28289 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
28290 from a Lisp_Object into a bare pointer.
28291 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
28292 Adjust the code correspondingly.
28293
28294 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
28295
28296 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
28297 (term_show_mouse_face): Remove unused var `j'.
28298 (handle_one_term_event): Remove unused vars `i' and `j'.
28299 Don't cast return value of ttyname since it's not necessary.
28300
283012007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
28302
28303 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
28304 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
28305
28306 * fns.c (map_char_table): Use an array of int for `indices' rather than
28307 an array of Lisp_Objects (which are only ever integers anyway).
28308 (Fmap_char_table): Update caller.
28309 * lisp.h: Update prototype.
28310 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
28311 * fontset.c (Ffontset_info):
28312 * casetab.c (set_case_table): Update callers.
28313
28314 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
28315
28316 * keymap.c (struct accessible_keymaps_data)
28317 (struct where_is_internal_data): New structures.
28318 (accessible_keymaps_1, where_is_internal_1): Use them to change
28319 interface to adhere to the one used by map_keymap.
28320 (Faccessible_keymaps, where_is_internal): Use map_keymap.
28321 (accessible_keymaps_char_table, where_is_internal_2): Remove.
28322
28323 * keymap.h (map_keymap_function_t): More informative prototype.
28324
283252007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
28326
28327 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
28328 (looking_at_1): Don't change search_regs and last_thing_searched
28329 if `inhibit-changing-match-data' is non-nil.
28330 (string_match_1, search_buffer, set_search_regs): Likewise.
28331 (syms_of_search): Add Lisp level definition for
28332 `inhibit-changing-match-data' and set it to nil.
28333 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
28334 start and end of the match, instead of using values in search_regs.
28335
283362007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
28337
28338 * minibuf.c (Fcompleting_read): New value `confirm-only'
28339 for `require-match'.
28340
283412007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
28342
28343 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
28344 part of the 2007-06-27 change to syms_of_fileio.
28345
283462007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28347
28348 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
28349 Check WINDOWP before using XWINDOW. Consolidate return statements.
28350
283512007-06-27 Richard Stallman <rms@gnu.org>
28352
28353 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
28354
283552007-06-27 Juanma Barranquero <lekktu@gmail.com>
28356
28357 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28358
283592007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28360
28361 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28362 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28363 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28364 (_free_internal, memalign): Use them.
28365 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28366 Initialize to PTHREAD_MUTEX_INITIALIZER.
28367 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28368 (morecore_nolock): Rename from morecore. All uses changed.
28369 Use only nolock versions of internal allocation functions.
28370 (_malloc_internal_nolock, _realloc_internal_nolock)
28371 (_free_internal_nolock): New functions created from
28372 _malloc_internal, _realloc_internal, and _free_internal.
28373 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28374 Copy hook value to automatic variable before its use.
28375 (memalign): Copy hook value to automatic variable before its use.
28376
283772007-06-26 Kenichi Handa <handa@m17n.org>
28378
28379 * coding.c (Ffind_operation_coding_system): Docstring improved.
28380 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28381
283822007-06-25 David Kastrup <dak@gnu.org>
28383
28384 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28385 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28386 cater for additional parameter.
28387
28388 * keymap.h: Adjust number of parameters to `current-active-maps'.
28389
28390 * doc.c (Fsubstitute_command_keys): Adjust call of
28391 `current-active-maps'.
28392
283932007-06-25 David Kastrup <dak@gnu.org>
28394
28395 * callint.c (Fcall_interactively): Make the parsing of interactive
28396 specs somewhat more readable.
28397
283982007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28399
28400 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28401 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28402 if extended background has already been filled.
28403
284042007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28405
28406 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28407 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28408
28409 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28410 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28411 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28412 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28413 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28414 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28415 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28416 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28417 Run timers during dialog popup.
28418 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28419
284202007-06-21 Jason Rumney <jasonr@gnu.org>
28421
28422 * image.c (convert_mono_to_color_image): Swap fore and background.
28423
284242007-06-20 Jason Rumney <jasonr@gnu.org>
28425
28426 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
28427 (w32_free_bdf_font): Unmap memory not handle.
28428
284292007-06-20 Sam Steingold <sds@gnu.org>
28430
28431 * gmalloc.c (__morecore): Fix the declaration to comply with the
28432 definition.
28433
284342007-06-20 Juanma Barranquero <lekktu@gmail.com>
28435
28436 * w32term.c (w32_delete_display): Remove leftover declaration.
28437 (w32_define_cursor, w32_initialize): Make static.
28438
28439 * w32.c (_wsa_errlist): Fix typo in error message.
28440 (init_environment): Ignore any environment variable from the
28441 registry having a null value.
28442
284432007-06-20 Glenn Morris <rgm@gnu.org>
28444
28445 * Makefile.in (LIBGIF): Default to -lgif.
28446
284472007-06-17 Jason Rumney <jasonr@gnu.org>
28448
28449 * w32menu.c (add_menu_item): Don't use multibyte string functions on
28450 unicode strings.
28451
284522007-06-16 Juanma Barranquero <lekktu@gmail.com>
28453
28454 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
28455 Fix typo in docstring.
28456
284572007-06-16 Eli Zaretskii <eliz@gnu.org>
28458
28459 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28460 and their keybindings.
28461
284622007-06-15 Chong Yidong <cyd@stupidchicken.com>
28463
28464 * composite.c (update_compositions): Fix last fix.
28465
284662007-06-14 Jason Rumney <jasonr@gnu.org>
28467
28468 * w32.c (get_process_times_fn): New function pointer.
28469 (globals_of_w32): Intialize it if present in kernel32.dll.
28470 (w32_get_internal_run_time): New function.
28471
28472 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28473
284742007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28475
28476 * composite.c (update_compositions): Check the validness of
28477 compositions.
28478
284792007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28480
28481 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28482 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28483
28484 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28485 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28486
28487 * macgui.h (USE_MAC_TOOLBAR): New define.
28488
28489 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28490 Return immediately unless popup is activated.
28491
28492 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28493 background to scroll bar gap.
28494 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28495 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28496 scroll bars on frame edge. Check fringe background extension.
28497 Don't clear extended fringe background area.
28498 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28499 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28500 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28501 [USE_MAC_TOOLBAR]: New macros.
28502 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28503 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28504 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28505 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28506 [USE_MAC_TOOLBAR]: New functions.
28507 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28508 manually if previous repositioning has failed.
28509 (mac_handle_keyboard_event): Use precomputed event kind.
28510 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28511 as tool bar item click. Handle mouse movement over tool bar items.
28512
28513 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28514 toolbar_win_gravity.
28515 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28516 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28517 Add externs.
28518
28519 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28520 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28521
285222007-06-14 Chong Yidong <cyd@stupidchicken.com>
28523
28524 * image.c (search_image_cache): Remove unused variable.
28525
285262007-06-13 Chong Yidong <cyd@stupidchicken.com>
28527
28528 * xfns.c, xmenu.c: Link to xaw3d if available.
28529
285302007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28531
28532 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28533 frame_foreground and frame_background.
28534
28535 * image.c (lookup_image): Save frame foreground and background colors.
28536 (search_image_cache): Check if saved and current frame colors match.
28537
285382007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28539
28540 * regex.c (regex_compile): Remove the `regnum' counter.
28541 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28542
285432007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28544
28545 * term.c: Include intervals.h to declare Fget_text_property.
28546
285472007-06-10 Jason Rumney <jasonr@gnu.org>
28548
28549 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28550
285512007-06-08 Juanma Barranquero <lekktu@gmail.com>
28552
28553 * callint.c (Fcall_interactively):
28554 * editfns.c (Fdelete_and_extract_region):
28555 * fileio.c (Fread_file_name):
28556 * fns.c (Fmapconcat):
28557 * keyboard.c (cmd_error_internal):
28558 * keymap.c (Fkey_description):
28559 * lread.c (openp):
28560 * minibuf.c (read_minibuf):
28561 * search.c (wordify):
28562 * sunfns.c (sel_read):
28563 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28564 * xfns.c (x_default_scroll_bar_color_parameter):
28565 * xmenu.c (menu_help_callback):
28566 * xselect.c (Fx_get_atom_name):
28567 * xterm.c (x_term_init): Use empty_unibyte_string.
28568
285692007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28570
28571 * alloc.c (init_strings): Initialize canonical empty strings.
28572 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28573 canonical empty string when the requested size is 0.
28574
28575 * emacs.c (empty_unibyte_string): Rename from empty_string.
28576 (empty_multibyte_string): New canonical empty string.
28577 (syms_of_emacs): Don't initialize empty_string.
28578
28579 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28580 string, if appropriate.
28581 (empty_unibyte_string, empty_multibyte_string): New externs.
28582 (empty_string): Remove extern.
28583
28584 * lread.c (syms_of_lread): Use empty_unibyte_string.
28585
285862007-06-07 Jason Rumney <jasonr@gnu.org>
28587
28588 * s/ms-w32.h: Don't define HAVE_TZNAME.
28589
28590 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28591
285922007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28593
28594 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28595
28596 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28597 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28598
28599 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28600 Don't call next handler.
28601 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28602 Remove argument. Install handler to application.
28603 (set_frame_menubar): Don't change deep_p.
28604 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28605 FRAME_OUTER_TO_INNER_DIFF_Y.
28606 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28607 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28608 [HAVE_DIALOGS]: New macros.
28609 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28610 Use them.
28611 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28612
28613 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28614 init_service_handler. All callers changed. Return OSStatus value.
28615
28616 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28617 All callers changed so as not to call SetPortWindowPort.
28618 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28619 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28620 mac_draw_string_common.
28621 (mac_draw_image_string_qd): Likewise.
28622 (mac_draw_string_common): Use them. Add INLINE.
28623 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28624 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28625 GetGlobalMouse.
28626 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28627 and FRAME_OUTER_TO_INNER_DIFF_Y.
28628 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28629 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28630 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28631 repositioning window to mac_handle_window_event.
28632 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28633 saving window location to mac_handle_window_event
28634 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28635 (install_menu_target_item_handler): Remove argument in extern.
28636 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28637 Also accept command events.
28638 (do_keystroke): New function created from XTread_socket.
28639 (init_command_handler): Remove functions.
28640 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28641 and save window location by kEventWindowShowing and kEventWindowHiding
28642 handlers here. Don't call next handler for window state change and
28643 focus events.
28644 (mac_handle_application_event, mac_handle_keyboard_event)
28645 [TARGET_API_MAC_CARBON]: New functions.
28646 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28647 kEventWindowShowing and kEventWindowHiding events. Move installation
28648 of mouse, font, text input and menu target item handlers to
28649 install_application_handler.
28650 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28651 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28652 New function.
28653 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28654 Register it.
28655 (XTread_socket) [TARGET_API_MAC_CARBON]:
28656 Consolidate SendEventToEventTarget calls.
28657 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28658 Move application activation handler to mac_handle_application_event.
28659 Move keyboard handler to mac_handle_keyboard_event.
28660 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28661 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28662 init_command_handler. Call install_application_handler.
28663
28664 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28665 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28666
286672007-06-07 Glenn Morris <rgm@gnu.org>
28668
28669 * emacs.c (main): Use `emacs-copyright' in --version output.
28670
286712007-06-06 Chong Yidong <cyd@stupidchicken.com>
28672
28673 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28674
286752007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28676
28677 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28678
28679 * macgui.h: Replace WindowPtr with WindowRef.
28680
28681 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28682 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28683 Replace ControlHandle with ControlRef.
28684 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28685
28686 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28687 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28688 Replace ControlHandle with ControlRef.
28689 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28690 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28691
28692 * macterm.h (struct scroll_bar): Rename member control_handle_low
28693 and control_handle_high to control_ref_low and control_ref_high.
28694 All uses changed.
28695 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28696 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28697 respectively. All uses changed.
28698 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28699 (install_window_handler, remove_window_handler): Replace WindowPtr
28700 with WindowRef in externs.
28701
287022007-06-05 Juanma Barranquero <lekktu@gmail.com>
28703
28704 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28705
287062007-06-03 Nick Roberts <nickrob@snap.net.nz>
28707
28708 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28709
28710 * frame.c (Fmouse_position, Fmouse_pixel_position):
28711 Condition on HAVE_GPM too.
28712
28713 * term.c (term_mouse_highlight): Remove unused variables.
28714 (Fterm_open_connection): Set gpm_zerobased to 1.
28715 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28716 Use zero based co-ordinates.
28717 (handle_one_term_event): Report a drag as mouse movement too.
28718
28719 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28720
287212007-06-03 Chong Yidong <cyd@stupidchicken.com>
28722
28723 * image.c (search_image_cache): New function. Require background
28724 color match if background color is unspecified in the image spec.
28725 (uncache_image, lookup_image): Use it.
28726
287272007-06-01 Juanma Barranquero <lekktu@gmail.com>
28728
28729 * window.c (Fshrink_window): Reflow docstring.
28730
287312007-06-02 Chong Yidong <cyd@stupidchicken.com>
28732
28733 * Version 22.1 released.
28734
287352007-06-01 Richard Stallman <rms@gnu.org>
28736
28737 * xfns.c (x_encode_text): Add GCPRO.
28738
287392007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28740
28741 * xfns.c (x_set_name_internal): Save encoded name before
28742 x_encode_text in case string data is relocated.
28743
287442007-05-31 Richard Stallman <rms@gnu.org>
28745
28746 * buffer.c (syms_of_buffer): Doc fix.
28747
287482007-05-30 Nick Roberts <nickrob@snap.net.nz>
28749
28750 * sysdep.c (init_sys_modes): Add rather than replace with
28751 O_NONBLOCK.
28752
28753 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28754 term_mouse_moveto.
28755
28756 * termhooks.h (term_mouse_moveto): New extern.
28757
28758 * term.c (mouse_face_window): Rename...
28759 (Qmouse_face_window): ...to this.
28760 (term_show_mouse_face, term_clear_mouse_face)
28761 (term_mouse_highlight): Use Qmouse_face_window.
28762 (term_mouse_moveto): New function.
28763 (term_mouse_position): Make it work.
28764 (syms_of_term): Uncomment assignment to mouse_position_hook.
28765 Staticpro Qmouse_face_window.
28766
287672007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28768
28769 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28770 around current_column call.
28771
287722007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28773
28774 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28775 * xdisp.c (next_element_from_buffer):
28776 * window.c (delete_window):
28777 * term.c (term_mouse_highlight):
28778 * msdos.c (getdefdir):
28779 * macterm.c (mac_create_bitmap_from_bitmap_data)
28780 (init_font_name_table):
28781 * fns.c (Fsxhash):
28782 * data.c (Fmake_local_variable):
28783 * ccl.c (ccl_driver): Likewise.
28784
287852007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28786
28787 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28788 Call mac_wakeup_from_rne on window size change.
28789
287902007-05-25 Chong Yidong <cyd@stupidchicken.com>
28791
28792 * image.c (uncache_image): Fix typo.
28793
287942007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28795
28796 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28797
287982007-05-22 Richard Stallman <rms@gnu.org>
28799
28800 * xterm.c (x_connection_closed): Remove NO_RETURN.
28801
288022007-05-22 Martin Rudalics <rudalics@gmx.at>
28803
28804 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28805
288062007-05-21 Chong Yidong <cyd@stupidchicken.com>
28807
28808 * image.c (uncache_image): New function.
28809 (Fimage_refresh): New function.
28810
288112007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28812
28813 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28814
288152007-05-20 Nick Roberts <nickrob@snap.net.nz>
28816
28817 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28818 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28819
288202007-05-20 Nick Roberts <nickrob@snap.net.nz>
28821
28822 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28823 conditional on [HAVE_GPM_H].
28824
288252007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28826
28827 * syntax.c (skip_chars): Update syntax-table only after we checked that
28828 the new location is valid.
28829
288302007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28831
28832 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28833 mac_get_window_bounds.
28834
288352007-05-20 Nick Roberts <nickrob@snap.net.nz>
28836
28837 * Makefile.in (LIBGPM): Allow it to be set from configure.
28838 If set then link Emacs with it.
28839
28840 * config.in: Regenerate.
28841
28842 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28843 New externs.
28844
28845 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28846 Include gpm.h.
28847 (handle_one_term_event, term_gpm): New externs.
28848
28849 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28850 and allow it to be interrupted by SIGIO.
28851
28852 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28853 (wait_reading_process_output): Wait on gpm_fd too.
28854 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28855 (add_gpm_wait_descriptor_called_flag): New variable.
28856 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28857
28858 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28859 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28860 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28861 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28862 (make_lispy_event): Add case GPM_CLICK_EVENT.
28863 (read_avail_input): Handle mouse input.
28864
28865 * term.c (write_glyphs_with_face): New function.
28866 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28867 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28868 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28869 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28870 (last_mouse_x, last_mouse_y): New variables.
28871 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28872 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28873 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28874 (Fterm_close_connection): New functions.
28875 (term_init): Initialise mouse_face_window.
28876
288772007-05-19 Chong Yidong <cyd@stupidchicken.com>
28878
28879 * xdisp.c (redisplay_window): If first window line is a
28880 continuation line, recompute the new window start instead of
28881 recentering.
28882
288832007-05-18 Glenn Morris <rgm@gnu.org>
28884
28885 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28886 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28887
288882007-05-17 Glenn Morris <rgm@gnu.org>
28889
28890 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28891
288922007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28893
28894 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28895 dead key repeat and up events.
28896
288972007-05-14 Chong Yidong <cyd@stupidchicken.com>
28898
28899 * image.c (pbm_load): Check image size for monochrome pbm.
28900
289012007-05-13 Chong Yidong <cyd@stupidchicken.com>
28902
28903 * xterm.c (XTread_socket): Revert last change.
28904
289052007-05-12 Chong Yidong <cyd@stupidchicken.com>
28906
28907 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28908
28909 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28910
289112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28912
28913 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28914 mixup (YAILOM).
28915
289162007-05-07 Andreas Schwab <schwab@suse.de>
28917
28918 * keymap.c (Flookup_key): Fix typo in last change.
28919
289202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28921
28922 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28923 mapping for unibyte strings.
28924
289252007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28926
28927 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28928 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28929
289302007-04-29 Richard Stallman <rms@gnu.org>
28931
28932 * insdel.c (replace_range): For undo, record insertion first.
28933
289342007-04-29 Andreas Schwab <schwab@suse.de>
28935
28936 * lisp.h (VECSIZE): Use OFFSETOF.
28937
289382007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28939
28940 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28941 disabled lines.
28942
289432007-04-28 Richard Stallman <rms@gnu.org>
28944
28945 * lread.c (read_escape): In a string, \s is always space.
28946
289472007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28948
28949 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28950
28951 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28952 submenu for menu bar items.
28953
28954See ChangeLog.10 for earlier changes.
28955
28956;; Local Variables:
28957;; coding: utf-8
aac0c6e3
MR
28958;; End:
28959
f3d87560
GM
28960 Copyright (C) 2007, 2008, 2009, 2010
28961 Free Software Foundation, Inc.
aac0c6e3
MR
28962
28963 This file is part of GNU Emacs.
28964
28965 GNU Emacs is free software: you can redistribute it and/or modify
28966 it under the terms of the GNU General Public License as published by
28967 the Free Software Foundation, either version 3 of the License, or
28968 (at your option) any later version.
28969
28970 GNU Emacs is distributed in the hope that it will be useful,
28971 but WITHOUT ANY WARRANTY; without even the implied warranty of
28972 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28973 GNU General Public License for more details.
28974
28975 You should have received a copy of the GNU General Public License
28976 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28977