src/ChangeLog: Add missing bug reference.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8d1d9587
JB
12010-08-03 Johan Bockgård <bojohan@gnu.org>
2
3 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 4 (Bug#6744)
8d1d9587 5
9a747ba6
JD
62010-08-02 Jan Djärv <jan.h.d@swipnet.se>
7
4d464ae4
JD
8 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
9 to TRUE if depth of screen is < 16.
10
ac01763e
JD
11 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
12 USE_GTK_TOOLTIP.
e0d62a9b
JB
13 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
14 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 15 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
16 USE_GTK_TOOLTIP.
17 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
18
19 * xterm.h (USE_GTK_TOOLTIP): New define.
20 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
21
9a747ba6
JD
22 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
23 to Control-D (Bug#6771).
24
7b0815ba
JB
252010-08-02 Juanma Barranquero <lekktu@gmail.com>
26
27 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
28 Wording by Drew Adams <drew.adams@oracle.com>.
29
aa1859f5
J
302010-08-01 Jan Djärv <jan.h.d@swipnet.se>
31
32 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
33 ttip_lbl.
34
35 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
36 calling gtk_widget_queue_draw.
37 (x_free_frame_resources): Call xg_free_frame_widgets.
38
39 * xfns.c (x_gtk_use_system_tooltips): New variable.
40 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
41 new gtkutil tooltip functions to show the tooltip.
42 (Fx_hide_tip): Call xg_hide_tooltip.
43 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
44
45 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
46 (xg_show_tooltip, xg_hide_tooltip): Declare.
47
48 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
49 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
50 New functions.
aa1859f5
J
51 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
52 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
53 Remove code that is commented out.
54
76417ef4
SM
552010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
56
57 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
58
16041401
CY
592010-07-31 Chong Yidong <cyd@stupidchicken.com>
60
61 * xselect.c (x_own_selection): Use list4.
62
2c09a58f
DN
632010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
64
65 * buffer.c (Qwindow): Do not define, already defined in data.c.
66 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
67
59df9fdd 682010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 69
59df9fdd
JB
70 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
71 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
72 * config.in: Undef HAVE_DIRENT_H.
1c97e857 73 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 74 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 75
1b231651
DN
762010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
77
78 Rename s/usg5-4.h -> s/usg5-4-common.h.
79 * s/usg5-4.h: Rename file to ...
80 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
81 * s/unixware.h:
82 * s/sol2-6.h:
83 * s/irix6-5.h: Update includes accordingly.
84
bfeabdc3
JD
852010-07-29 Jan Djärv <jan.h.d@swipnet.se>
86
2ebf1083
J
87 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
88
bfeabdc3 89 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
90 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
91 Remove toolbar_height.
92 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
93 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
94 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
95 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
96
97 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
98
99 * xfns.c (x_set_tool_bar_position): New function.
100 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
101 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 102 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
103
104 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
105 and FRAME_TOOLBAR_LEFT_WIDTH.
106
107 * gtkutil.h (xg_change_toolbar_position): Declare.
108
109 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
110 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
111 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
112 (xg_create_frame_widgets): Create a hobox for placing widgets
113 vertically. Use gtk_box_pack_start.
114 (xg_height_or_width_changed): Renamed from xg_height_changed.
115 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
116 (xg_update_frame_menubar, free_frame_menubar): Change to
117 xg_height_or_width_changed.
118 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
119 size correctly. Remove hardcoded 4, instead use handlebox size -
120 toolbar size.
121 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 122 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
123 (xg_pack_tool_bar): POS is a new parameter.
124 Set orientation of tool bar based on pos.
125 Only make handlebox_widget if NULL.
126 Check if tool bar goes to vbox or hbox depending on pos.
127 (xg_update_tool_bar_sizes): New function.
128 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
129 height, call xg_update_tool_bar_sizes instead.
130 (free_frame_tool_bar): Remove from hbox or vbox depending on
131 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
132 (xg_change_toolbar_position): New function.
133
134 * frame.h (struct frame): Add tool_bar_position.
135 (Qbottom): Declare.
136
137 * frame.c (Qtool_bar_position): New variable.
138 (make_frame): Set tool_bar_position to Qtop.
139 (frame_parms): Add tool-bar-position.
140 (x_report_frame_params): Store tool_bar_position.
141 (x_set_fringe_width): Reset wm size hint after fringe changes.
142
26469a38
DN
1432010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
144
145 Make lisp_time_argument declaration work on all systems.
146 * lisp.h (lisp_time_argument): Move declaration ...
147 * systime.h (lisp_time_argument): ... here
148 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
149
8848b728
JD
1502010-07-29 Jan Djärv <jan.h.d@swipnet.se>
151
152 * vm-limit.c (POINTER): Add typedef for it.
153 (start_of_data): Change return type from POINTER to char *.
154
155 * frame.h (Qtty_color_mode): Move declaration out of ifdef
156 HAVE_WINDOW_SYSTEM.
157
76fd1ee9
DN
1582010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
159
0441987e
DN
160 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
161 Remove reference to __osf__, unused.
162
56a000c7
DN
163 * mem-limits.h: Remove duplicated includes.
164 (NULL): Remove definition, unused.
165 (POINTER): Remove definition.
166 (start_of_data): Use char* in prototype, as the function
167 definition does.
168
e6cba650
DN
169 Remove extern declarations from .c files, and them to .h files.
170 * keyboard.h (Qhelp_echo, waiting_for_input)
171 (input_available_clear_time, ignore_mouse_drag_p)
172 (Vdouble_click_time, real_this_command, Vthis_original_command):
173 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
174 (Voverriding_local_map_menu_flag):
175 * lisp.h (Qinteractive_form, use_file_dialog)
176 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
177 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
178 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
179 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
180 (Qfunction, debug_on_next_call, Qfield)
181 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
182 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
183 (Qfile_directory_p, Qinsert_file_contents)
184 (Qcompletion_ignore_case, Qcompletion_ignore_case)
185 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
186 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
187 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
188 (Qminibuffer_prompt)
189 (Vtemporary_file_directory,char_ins_del_vector, Qface):
190 * xterm.h (gray_bitmap_width, gray_bitmap_height)
191 (gray_bitmap_bits, xic_create_fontsetname):
192 * coding.h (Vtranslation_table_for_input): Add extern declarations.
193
194 * xsmfns.c (Vuser_login_name):
195 * xrdb.c (Vdouble_click_time):
196 * xfaces.c (xic_create_fontsetname):
197 * w32select.c (waiting_for_input):
198 * print.c (minibuffer_auto_raise):
199 * msdos.c (Qhelp_echo):
200 * macros.c (real_this_command):
201 * keymap.c (Voverriding_local_map):
202 * xterm.c (poll_for_input_1, gray_bitmap_width)
203 (gray_bitmap_height, gray_bitmap_bits;
204 * xmenu.c ( Voverriding_local_map)
205 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
206 (use_file_dialog, Xt_app_con):
207 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
208 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
209 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
210 (Qtool_bar_lines, ignore_mouse_drag_p):
211 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
212 (Qrear_nonsticky, nconc2):
213 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
214 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
215 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
216 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
217 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
218 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
219 (gc_in_progress):
220 * doc.c (Voverriding_local_map, Qremap):
221 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
222 (Vcompletion_regexp_list):
223 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
224 (Qcompletion_ignore_case):
225 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
226 (Vhistory_length, Vthis_original_command, real_this_command)
227 (Qface, Qminibuffer_prompt, history_delete_duplicates):
228 * image.c (Qrisky_local_variable):
229 * fontset.c (QCname):
230 * fns.c (minibuffer_auto_raise, QCname):
231 * dispnew.c (char_ins_del_cost):
232 * composite.c (font_fill_lglyph_metrics):
233 * cmds.c (Qface, Vtranslation_table_for_input):
234 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
235 * ccl.c (charset_unicode):
236 * callproc.c (Vtemporary_file_directory):
237 * buffer.c (emacs_strerror): Remove extern declarations.
238
239 * data.c (Qwindow): Make non-static, used from other files too.
240 * frame.c (validate_x_resource_name): Remove shadow definition for i.
241
76fd1ee9
DN
242 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
243 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
244 * s/usg5-4.h (COFF):
245 * s/template.h:
246 * s/msdos.h (COFF, NO_REMAP):
247 * s/ms-w32.h (NO_REMAP):
248 * s/hpux10-20.h (NO_REMAP):
249 * m/sparc.h (SEGMENT_MASK):
250 * m/m68k.h (NO_REMAP):
251 * m/intel386.h (SEGMENT_MASK):
252 * m/arm.h (NO_REMAP):
253 * m/alpha.h (COFF):
254 * m/template.h: Remove references to unused defines.
255
8a52f00a
JD
2562010-07-28 Jan Djärv <jan.h.d@swipnet.se>
257
258 * xsettings.c (Ftool_bar_get_system_style): Also check for
259 Qtext_image_horiz.
260
261 * xdisp.c (Qtext_image_horiz): Define.
262 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 263 to documentation of tool-bar-style.
8a52f00a
JD
264
265 * lisp.h (Qtext_image_horiz): Declare.
266
267 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
268 style text_image_horiz.
269
89dc303e
DN
2702010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
271
60799703
DN
272 * emacs.c (Fkill_emacs): Remove return statement.
273
37254dc1
DN
274 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
275 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
276 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
277 local extern declarations.
278
71c7345a
DN
279 * xmenu.c: Do not included lwlib.h, not needed.
280
6ba577cb
DN
281 * m/iris4d.h (XUINT, XSET): Remove, not needed.
282
fdb183d6
DN
283 * process.c: Move definitions earlier to minimize #ifdefs.
284
285 * xterm.h (x_get_customization_string, x_load_resources)
286 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
287 (x_check_errors, x_property_data_to_lisp, defined_color)
288 (xic_set_xfontset, x_defined_color): Use const.
289
290 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
291 (x_text_icon, x_check_errors, x_connection_closed): Use const.
292
293 * xselect.c (selection_data_to_lisp_data)
294 (x_property_data_to_lisp):
295 * xrdb.c (x_get_string_resource, file_p)
296 (x_get_customization_string, magic_file_p, search_magic_path)
297 (get_system_app, get_user_app, x_load_resources, x_get_resource)
298 (x_get_string_resource): Use const.
299
300 * xfns.c: Include xlwmenu.h when USE_LUCID.
301 (x_defined_color, xic_set_xfontset): Use const.
302 (Fx_hide_tip): Remove local extern declaration.
303
304 * xfaces.c (Qmouse_face): Remove declaration.
305 (face_color_gray_p, tty_defined_color, defined_color)
306 (face_color_gray_p, face_color_supported_p). Add const.
307
308 * xdisp.c (do_mouse_tracking): Remove declaration.
309 (add_to_log): Use const.
310
311 * minibuf.c (Qmouse_face): Remove declaration.
312
313 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
314
315 * keyboard.h (do_mouse_tracking): Add declaration.
316
317 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
318 (QCdata, QCtype, Qcenter): Remove declarations.
319
320 * frame.c (x_get_resource_string, x_get_string_resource)
321 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
322 (x_default_parameter): Use const.
323
324 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
325 (QCheight, QCsize, QCname): Remove declarations.
326
327 * emacs.c (main): Remove local extern declaration.
328
329 * editfns.c (region_limit, syms_of_editfns): Remove local extern
330 declarations.
331
332 * dispnew.c: Remove duplicate #include <unistd.h>.
333 (update_window, update_frame_1, init_display): Remove local extern
334 declarations.
335
336 * dispextern.h (add_to_log): Remove declaration.
337 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
338 (x_frame_get_and_record_arg, x_default_parameter): Add const.
339
340 * dired.c (scmp): Add const.
341 (directory_files_internal): Remove local extern declaration.
342
343 * data.c (Finteractive_form): Use const.
344
345 * composite.c (syms_of_composite): Remove local extern declarations.
346
347 * charset.c (add_to_log): Remove declaration.
348
349 * character.c (strwidth, parse_str_to_multibyte): Add const.
350
351 * character.h (strwidth, parse_str_to_multibyte): Likewise.
352
353 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
354
89dc303e 355 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
356 (Lisp_Subr): Make doc and intspec constant.
357 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
358 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
359 (QCheight, QCsize, QCname, QCwidth, QCforeground)
360 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
361 (display_arg): Add declarations.
89dc303e 362
0ed082fe 3632010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
364
365 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
366
0ed082fe
JB
367 * window.c (Fwindow_height): Doc fix (bug#6518).
368
3692010-07-27 Juanma Barranquero <lekktu@gmail.com>
370
371 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
372
ccaf0336
DN
3732010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
374
977105dc
DN
375 * keyboard.c (Ftop_level, Fexit_recursive_edit)
376 (Fabort_recursive_edit): Remove return statements in NO_RETURN
377 functions.
378
f5ada890
DN
379 * frame.h (Qtty_color_mode): Add declaration.
380
ccaf0336
DN
381 * lisp.h (Ftop_level, Fexit_recursive_edit)
382 (Fabort_recursive_edit): Mark as NO_RETURN.
383
dfe3c90f
KH
3842010-07-26 Kenichi Handa <handa@m17n.org>
385
386 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 387 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 388
7d383292
JB
3892010-07-26 Juanma Barranquero <lekktu@gmail.com>
390
391 * lread.c (unreadpure, mapatoms_1): Make static.
392
da31e629
JB
3932010-07-25 Juanma Barranquero <lekktu@gmail.com>
394
395 * terminfo.c (tparam): Fix prototype of tparm.
396
7bfa6d77
AS
3972010-07-25 Andreas Schwab <schwab@linux-m68k.org>
398
dcc19aac
AS
399 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
400 find start of text segment.
401 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
402 is defined.
403
7bfa6d77
AS
404 * callproc.c (set_initial_environment): Avoid unbalanced braces.
405
63f9a672
KB
4062010-07-25 Ken Brown <kbrown@cornell.edu>
407
408 * vm-limit.c (check_memory_limits): Fix previous change;
409 accidentally reverted an earlier change.
410
24933075
KB
4112010-07-25 Ken Brown <kbrown@cornell.edu>
412
413 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
414 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
415
361358ea
JB
4162010-07-25 Juanma Barranquero <lekktu@gmail.com>
417
418 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
419 * dired.c (opendir, readdir): Fix prototypes.
420 * editfns.c (w32_get_internal_run_time): Fix prototypes.
421 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
422 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
423 (telldir): Remove declaration.
424 * ralloc.c (real_morecore, __morecore): Fix prototypes.
425 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
426 * syssignal.h (strsignal): Fix prototype.
427 * term.c (tparam): Fix prototype.
428 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
429 (term_get_fkeys): Set inside "#ifndef DOS_NT".
430 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
431 and __morecore.
432 * w32gui.h (XParseGeometry): Fix prototype.
433 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
434 * w32term.c (my_set_focus): Declare inside #if 0.
435 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
436 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
437 (drain_message_queue, get_next_msg, post_msg, parse_button)
438 (ClipboardSequence_Proc): Fix prototypes.
439 (wait_for_sync): Remove declaration.
440
630b9592
JB
4412010-07-24 Juanma Barranquero <lekktu@gmail.com>
442
443 * w32fns.c (w32_to_x_color): Remove, unused.
444
6a0d6611
AS
4452010-07-24 Andreas Schwab <schwab@linux-m68k.org>
446
447 * lisp.h: Remove leftover P_.
448
4e8608ff
DN
4492010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
450
451 * ecrt0.c, unexalpha.c: Remove files, unused.
452
c8197983
AS
4532010-07-24 Andreas Schwab <schwab@linux-m68k.org>
454
455 * cmds.c (internal_self_insert): Make static.
456 * lisp.h (internal_self_insert): Remove declaration.
457
97b372d7
JB
4582010-07-23 Juanma Barranquero <lekktu@gmail.com>
459
33ac0414
JB
460 * alloc.c (free_float):
461 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
462 * frame.c (delete_frame_handler):
463 * ralloc.c (reorder_bloc):
464 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
465 Remove unused static functions.
466
94da8397
JB
467 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
468 it is called only from NS code.
469
2e6c8532
JB
470 * w32term.c (my_set_focus): #ifdef away; it is called only from
471 "#ifdef 0" code.
472
97b372d7
JB
473 * w32fns.c (x_edge_detection):
474 * xfaces.c (may_use_scalable_font_p):
475 Remove obsolete static declarations.
476
7c3320d8
JB
4772010-07-20 Juanma Barranquero <lekktu@gmail.com>
478
479 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
480 (emacs_blocked_realloc, uninterrupt_malloc):
481 * fringe.c (w32_reset_fringes):
482 * image.c (convert_mono_to_color_image, lookup_rgb_color)
483 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
484 * sound.c (be2hs, do_play_sound):
485 * vm-limit.c (get_lim_data, ret_lim_data):
486 * w32term.c (x_free_frame_resources):
487 * xfaces.c (x_create_gc, x_free_gc):
488 Convert definitions to standard C.
489
d5273788
SM
4902010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
491
492 * eval.c (Feval, Ffuncall): Use the new names.
493
494 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
495 (DEFUN): Add braces around the union initialisation and use ## to
496 specify the right union alternative and avoid a cast.
497
8d16a259
JB
4982010-07-18 Juanma Barranquero <lekktu@gmail.com>
499
500 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
501
3b8eff32
CY
5022010-07-17 Chong Yidong <cyd@stupidchicken.com>
503
504 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
505
499322ce
J
5062010-07-17 Jan Djärv <jan.h.d@swipnet.se>
507
508 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
509 is related to the menu bar (Bug#6499).
a628ad9d 510 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 511
f6003da5 5122010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
513
514 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
515
516 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
517
518 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
519 i.e. don't put back ButtonRelease (Bug#6608).
520
521 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
522 instead of Window. Call xg_event_is_for_menubar when
523 USE_GTK (Bug#6499).
524
525 * gtkutil.h (xg_event_is_for_menubar): Declare.
526
527 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
528
f6003da5 5292010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
530
531 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
532 when it's the same as the old foreground. (Bug#6609)
533
23243f29
J
5342010-07-16 Jan Djärv <jan.h.d@swipnet.se>
535
536 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
537 widget is non-null (Bug#6645).
538
2b23d2a6
AS
5392010-07-15 Andreas Schwab <schwab@linux-m68k.org>
540
01b564ff
AS
541 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
542 Convert old-style definition.
543
2b23d2a6
AS
544 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
545 timestamp argument.
546
c4affd2c
EZ
5472010-07-15 Eli Zaretskii <eliz@gnu.org>
548
549 * fringe.c (update_window_fringes): Restore mistakenly reverted
550 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
551
cf28cebc
J
5522010-07-14 Jan Djärv <jan.h.d@swipnet.se>
553
554 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
555 (SET_SAVED_KEY_EVENT): Remove (not used).
556 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
557 remove size parameter.
558 (handle_one_xevent): Check popup_activated () for menu for Xt also.
559 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
560 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
561 ButtonRelease.
6b2c4bd9
J
562 (x_set_window_size_1): scroll_bar_actual_width is always
563 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
564
565 * xdisp.c (pending_menu_activation): Remove extern declaration.
566 (prepare_menu_bars): Remove setting of pending_menu_activation.
567
568 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
569 (x_activate_menubar): Set popup_activated_flag for Xt also.
570 Remove setting of pending_menu_activation.
cf28cebc
J
571 (set_frame_menubar): Remove check of pending_menu_activation.
572 Declare menubar_size before code. Correct spelling in comment.
573
f6c1c771
KH
5742010-07-14 Kenichi Handa <handa@m17n.org>
575
576 * font.c (font_open_entity): Cancel previous change.
577 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
578
20477505
EZ
5792010-07-13 Eli Zaretskii <eliz@gnu.org>
580
77defa9a
EZ
581 Remove subprocesses #ifdefs.
582 * process.c <inhibit_sentinels>: Move to the common part.
583 (Fwaiting_for_user_input_p): Move to the common part; return nil
584 if async subprocesses aren't supported.
585 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
586 MS-DOS. Remove "#ifdef subprocesses".
587 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
588 (gettimeofday): Remove "#ifdef subprocesses".
589 (wait_without_blocking): Remove function.
590 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
591 Remove "#ifdef subprocesses".
592 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
593 compiled on MS-DOS.
594 * callproc.c (Fcall_process) [!MSDOS]: Don't call
595 wait_for_termination on MS-DOS.
596 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
597 initialization of inhibit_sentinels.
598 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
599 subprocesses" conditional.
600 * callproc.c (Fcall_process) [!subprocesses]: Don't call
601 wait_for_termination, since `buffer' cannot be an integer when
602 async subprocesses are not supported
603 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
604 for ifdefing away the call to Fprocess_status.
605
20477505
EZ
606 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
607 away the entire body of the function.
608
b3ffc17c
DN
6092010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
610
01faa934
DN
611 Remove subprocesses #ifdefs from term.c.
612 * process.c (add_keyboard_wait_descriptor)
613 (delete_keyboard_wait_descriptor): Move to common section, do
614 nothing when subprocesses is not defined.
a628ad9d
JB
615 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
616 Remove subprocesses #ifdefs.
01faa934 617
b3ffc17c
DN
618 Convert maybe_fatal to standard C.
619 * lisp.h (verror): Declare.
620 * eval.c (verror): New function containing the code from ...
621 (error): ... this. Call verror.
622 * term.c (vfatal): New function containing the code from ...
623 (fatal): ... this. Call vfatal.
624 (maybe_fatal): Convert to standard C, use variable number of
625 arguments. Declare as non-return.
626 (init_tty): Fix maybe_fatal call.
627
0521f580
DN
6282010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
629
630 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
631 (_scroll_bar_note_movement): Convert definitions to standard C.
632 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
633 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
634
ebd15611
DN
6352010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
636
637 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
638 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
639 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
640 (xaw_jump_callback, xaw_scroll_callback)
641 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
642 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
643 definitions to standard C.
644 * xmenu.c (menubar_id_to_frame, popup_get_selection)
645 (popup_activate_callback, popup_deactivate_callback)
646 (menu_highlight_callback, menubar_selection_callback)
647 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
648 (free_frame_menubar, popup_selection_callback, as)
649 (create_and_show_popup_menu, dialog_selection_callback)
650 (create_and_show_dialog):
651 * xfns.c (hack_wm_protocols, x_window):
652 * xfaces.c (x_update_menu_appearance):
653 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
654 (char_to_pixel_size, round_size_to_char, get_wm_shell)
655 (set_frame_size, update_wm_hints, setup_frame_gcs)
656 (update_various_frame_slots, update_from_various_frame_slots)
657 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
658 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
659 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
660
de06a2dd
AS
6612010-07-12 Andreas Schwab <schwab@linux-m68k.org>
662
a628ad9d 663 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 664
fc549af9
EZ
6652010-07-12 Eli Zaretskii <eliz@gnu.org>
666
667 * process.c (setup_process_coding_systems): Move to the part
668 shared by non-subprocesses systems, and make its body empty when
669 subprocesses is not defined.
670 (close_process_descs): Move to the part shared by non-subprocesses
671 systems.
1408902e
EZ
672 (wait_reading_process_output) [!subprocesses]: Convert arg list to
673 ANSI C.
fc549af9 674
d5a3eaaf
AS
6752010-07-12 Andreas Schwab <schwab@linux-m68k.org>
676
677 * editfns.c (transpose_markers): Convert old-style definition.
678 * emacs.c (abort, shut_down_emacs, fixup_locale)
679 (synchronize_system_time_locale)
680 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
681 * floatfns.c (extract_float, matherr, init_floatfns)
682 (syms_of_floatfns): Likewise.
683 * fns.c (make_hash_table): Likewise.
684 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
685 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
686 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
687 (ftfont_variation_glyphs): Likewise.
688 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
689 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
690 * lread.c (read_filtered_event): Likewise.
691 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
692 * process.c (wait_reading_process_output): Likewise.
693 * scroll.c (do_line_insertion_deletion_costs): Likewise.
694 * search.c (search_buffer, boyer_moore): Likewise.
695 * syntax.c (scan_sexps_forward): Likewise.
696 * xdisp.c (try_scrolling): Likewise.
697 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
698 (face_at_string_position): Likewise.
699 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
700 * xselect.c (x_get_window_property, receive_incremental_selection)
701 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
702 Likewise.
703 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
704
6f704c76
DN
7052010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
706
ded80a25
DN
707 * callproc.c (child_setup): Remove subprocesses conditional.
708 Remove code dealing with SET_EMACS_PRIORITY, unused.
709
49d937f4 710 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
711 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
712
713 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
714 (__do_global_dtors, __main): Use void in definition.
715 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
716 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
717 the only users from ...
718 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
719 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
720 (HAVE_VOLATILE): Remove, unused.
721
6f704c76
DN
722 Convert more function definitions to standard C.
723 * xdisp.c (window_box_edges, handle_single_display_spec)
724 (display_string): Convert definition to standard C.
725 * scroll.c (do_direct_scrolling, scrolling_1):
726 * dispnew.c (allocate_matrices_for_frame_redisplay)
727 (mirrored_line_dance):
728 * coding.c (code_convert_string):
729 * charset.c (map_charset_chars):
730 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
731 (Fregister_ccl_program, Fregister_code_conversion_map):
732 * keyboard.c (kbd_buffer_nr_stored): Likewise.
733 (head_table): Make static and const.
734
e6cfa7c3
AS
7352010-07-12 Andreas Schwab <schwab@linux-m68k.org>
736
737 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
738 (PROFILING_LDFLAGS): Set from substitution.
739 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
740 CFLAGS last.
741
892dd565
KH
7422010-07-12 Kenichi Handa <handa@m17n.org>
743
6f2cdcd1
KH
744 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
745 (shortlisp): Likewise.
746
892dd565
KH
747 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
748
749 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
750 of FONT_ENTITY_INDEX.
751 (Ffont_get): If KEY is :otf and the font-object doesn't have the
752 property, get the property value dynamically.
753 (Ffont_put): Accept font-entity and font-object too.
754 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
755 return value changed.
756 (syms_of_font): Adjusted for the above change.
757
ae96d47a
AS
7582010-07-11 Andreas Schwab <schwab@linux-m68k.org>
759
c8fc18ee
AS
760 * blockinput.h: Remove obsolete comment.
761
89887d67
AS
762 * lisp.h: Include <stddef.h>.
763 (OFFSETOF): Don't define.
764 (VECSIZE): Use offsetof instead of OFFSETOF.
765 (PSEUDOVECSIZE): Likewise.
766 * process.c (conv_sockaddr_to_lisp): Likewise.
767 * alloc.c: Don't include <stddef.h>.
768 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
769
ae96d47a
AS
770 * process.c: Remove obsolete comment.
771
635c0aa1
CY
7722010-07-11 Chong Yidong <cyd@stupidchicken.com>
773
774 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
775
a64df650
AS
7762010-07-11 Andreas Schwab <schwab@linux-m68k.org>
777
8966b757
AS
778 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
779 index, rindex.
780 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
781 * editfns.c (Fuser_full_name, Fformat): Likewise.
782 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
783 * fileio.c (Ffile_symlink_p): Likewise.
784 * filelock.c (current_lock_owner): Likewise.
785 * font.c (font_parse_name, font_parse_family_registry): Likewise.
786 * fontset.c (fontset_pattern_regexp): Likewise.
787 * lread.c (read1): Likewise.
788 * sysdep.c (init_system_name): Likewise.
789 * xfns.c (select_visual): Likewise.
790 * s/hpux10-20.h (index, rindex): Don't define.
791 * s/ms-w32.h (index): Likewise.
792 * s/usg5-4.h: Likewise.
793
cf237e27
AS
794 * callproc.c (relocate_fd): Use F_DUPFD if defined.
795
a8fe7202
AS
796 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
797 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
798 (egetenv): Likewise.
799 * doprnt.c (doprnt): Likewise.
800 * editfns.c (set_time_zone_rule, format2): Likewise.
801 * emacs.c (decode_env_path): Likewise.
802 * eval.c (signal_error, error): Likewise.
803 * insdel.c (replace_range_2): Likewise.
804 * keyboard.c (cmd_error_internal): Likewise.
805 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
806 * print.c (write_string, write_string_1, print_error_message):
807 Likewise.
808 * vm-limit.c (warn_function, memory_warnings): Likewise.
809 * xdisp.c (message1, message1_nolog, message_with_string)
810 (vmessage, message, message_nolog): Likewise.
811 * emacs.c: Remove duplicate declaration.
812 * keyboard.h: Likewise.
813 * lisp.h: Update prototypes.
814
bb8e180f
AS
815 * eval.c: Fix indentation problem.
816
83380e65
AS
817 * keyboard.c: Include "process.h"
818
a64df650
AS
819 * eval.c: Remove obsolete noinline declaration.
820 * fns.c: Likewise.
821
6a8033e1
KR
8222010-07-11 Ken Raeburn <raeburn@raeburn.org>
823
824 * doprnt.c (doprnt): Take a va_list argument instead of count and
825 pointer.
826 * eval.c (error): Change to a standard-C variadic function.
827 * xdisp.c (vmessage): Renamed from message, made static, and
828 changed to take a va_list argument.
829 (message): New variadic wrapper.
830 (message_nolog): Now a variadic function, calling vmessage.
831 * lisp.h: Include stdarg.h for va_list.
832 (doprnt, error, message, message_nolog): Decls updated.
833
462aa963
EZ
8342010-07-11 Eli Zaretskii <eliz@gnu.org>
835
836 * process.c (syms_of_process) <delete-exited-processes>: Define
837 even if !subprocesses.
838 (delete_exited_processes): Ditto.
839
840 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
841 (delete_exited_processes): Don't define.
842
48104462
CY
8432010-07-10 Chong Yidong <cyd@stupidchicken.com>
844
845 * frame.c (make_frame): Initialize menu_bar_lines and
846 tool_bar_lines members.
847 (make_initial_frame, make_terminal_frame): Initialize
848 menu_bar_lines using value of menu-bar-mode.
849
850 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
851
f388c88a
EZ
8522010-07-10 Eli Zaretskii <eliz@gnu.org>
853
854 * process.c: Reshuffle #include's. Condition some of the global
855 and static variables on `subprocesses'.
856 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
857 Leave only one implementation.
858 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
859 (kill_buffer_processes, Flist_system_processes)
860 (Fprocess_attributes, init_process, syms_of_process): Unify the
861 implementations for with subprocesses and without them.
862
723f5a07
J
8632010-07-09 Jan Djärv <jan.h.d@swipnet.se>
864
865 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
866 correct size for Motif.
867 (free_frame_menubar): Call x_set_window_size to update frame size.
868
869 * xfns.c (x_window): Set borderWidth to 0 for pane and
870 EmacsFrame. Frame size calculation is wrong otherwise.
871
2536a4b7
MA
8722010-07-09 Michael Albinus <michael.albinus@gmx.de>
873
874 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
875 allows to suppress errors when polling in Emacs' main loop.
876 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
877 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
878 (Fdbus_method_error_internal, Fdbus_send_signal)
879 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
880 (Fdbus_register_method): Use it. (Bug#6579)
881
5842a27b
DN
8822010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
883
884 * alloc.c: Convert DEFUNs to standard C.
885 * buffer.c:
886 * bytecode.c:
887 * callint.c:
888 * callproc.c:
889 * casefiddle.c:
890 * casetab.c:
891 * category.c:
892 * character.c:
893 * charset.c:
894 * chartab.c:
895 * cmds.c:
896 * coding.c:
897 * composite.c:
898 * data.c:
899 * dbusbind.c:
900 * dired.c:
901 * dispnew.c:
902 * doc.c:
903 * dosfns.c:
904 * editfns.c:
905 * emacs.c:
906 * eval.c:
907 * fileio.c:
908 * filelock.c:
909 * floatfns.c:
910 * fns.c:
911 * font.c:
912 * fontset.c:
913 * frame.c:
914 * fringe.c:
915 * image.c:
916 * indent.c:
917 * insdel.c:
918 * keyboard.c:
919 * keymap.c:
920 * lread.c:
921 * macros.c:
922 * marker.c:
923 * menu.c:
924 * minibuf.c:
925 * msdos.c:
926 * nsfns.m:
927 * nsmenu.m:
928 * nsselect.m:
929 * print.c:
930 * process.c:
931 * search.c:
932 * sound.c:
933 * syntax.c:
934 * term.c:
935 * terminal.c:
936 * textprop.c:
937 * undo.c:
938 * w16select.c:
939 * w32console.c:
940 * w32fns.c:
941 * w32font.c:
942 * w32menu.c:
943 * w32proc.c:
944 * w32select.c:
945 * window.c:
946 * xdisp.c:
947 * xfaces.c:
948 * xfns.c:
949 * xmenu.c:
950 * xselect.c:
951 * xsettings.c:
952 * xsmfns.c: Likewise.
953
d568829b
EZ
9542010-07-08 Eli Zaretskii <eliz@gnu.org>
955
956 * process.c (kbd_is_on_hold, hold_keyboard_input)
957 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
958
52214050
J
9592010-07-08 Jan Djärv <jan.h.d@swipnet.se>
960
961 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
962 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
963 unless USE_LUCID.
964
313d9eb2
DN
9652010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
966
a628ad9d
JB
967 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
968 declaration.
d8825aa3 969
295d0d8f
DN
970 Clean up include guards.
971 * tparam.c: Remove include guards for config.h, string.h and code
972 that assumes #ifndef emacs.
973 * termcap.c:
974 * unexalpha.c:
975 * sysdep.c:
976 * filemode.c:
977 * filelock.c:
978 * bidi.c: Likewise.
979
49d9e6b0
DN
980 Remove prefix-args.c
981 * prefix-args.c: Remove file.
982 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
983 * Makefile.in (temacs${EXEEXT}): Remove references to
984 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
985 (mostlyclean): Remove reference to prefix-args.
986 (prefix-args): Remove.
987
313d9eb2
DN
988 Simplify cstart_of_data, start_of_code and related code.
989 * mem-limits.h: Remove !emacs and _LIBC conditional code.
990 (start_of_data): Merge into start_of_data function.
991 * sysdep.c (start_of_text): Remove. Move simplified versions of
992 it in the only users: unexaix.c and unexec.c.
993 (read_input_waiting): Remove local declaration of quit_char.
994 (start, etext): Remove declarations.
995 (start_of_data): Merge with the version in mem-limits.h and move
996 to vm-limits.c.
997 * vm-limit.c (start_of_data): Merged and simplified version of the
998 code formerly in mem-limits.h and sysdep.c.
999 * unexec.c (start): New declaration, moved from sysdep.c.
1000 (start_of_text): Simplified version of the code formerly in sysdep.c.
1001 * unexaix.c (start_of_text): Simplified version of the code
1002 formerly in sysdep.c.
1003 * m/alpha.h (HAVE_TEXT_START): Remove.
1004 (TEXT_START): Move ...
1005 * unexalpha.c (TEXT_START): ... here.
1006 * s/hpux10-20.h (TEXT_START): Remove.
1007 * s/darwin.h (TEXT_START):
1008 * m/mips.h (TEXT_START):
1009 * m/macppc.h (HAVE_TEXT_START):
1010 * m/m68k.h (TEXT_START):
1011 * m/iris4d.h (TEXT_START):
1012 * m/intel386.h (TEXT_START):
1013 * m/ibmrs6000.h (TEXT_START):
1014 * m/ia64.h (HAVE_TEXT_START):
1015 * s/msdos.h (TEXT_START): Likewise.
1016
72af86bd
AS
10172010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1018
1019 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1020 (overrun_check_free, xstrdup, allocate_string)
1021 (allocate_string_data, compact_small_strings, Fmake_string)
1022 (make_unibyte_string, make_multibyte_string)
1023 (make_string_from_bytes, make_specified_string, make_float)
1024 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1025 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1026 memcpy, memmove, memset, memcmp.
1027 * atimer.c (start_atimer, set_alarm): Likewise.
1028 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1029 (mmap_realloc, init_buffer_once): Likewise.
1030 * callint.c (Fcall_interactively): Likewise.
1031 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1032 (getenv_internal_1): Likewise.
1033 * casefiddle.c (casify_object): Likewise.
1034 * ccl.c (ccl_driver): Likewise.
1035 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1036 * charset.c (load_charset_map_from_file)
1037 (load_charset_map_from_file, load_charset_map_from_vector)
1038 (Fdefine_charset_internal): Likewise.
1039 * cm.c (Wcm_clear): Likewise.
1040 * coding.c (decode_eol, decode_coding_object)
1041 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1042 * data.c (Faset): Likewise.
1043 * dired.c (directory_files_internal, file_name_completion_stat):
1044 Likewise.
1045 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1046 (clear_glyph_row, copy_row_except_pointers)
1047 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1048 (save_current_matrix, restore_current_matrix)
1049 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1050 (mirror_line_dance, scrolling_window): Likewise.
1051 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1052 Likewise.
1053 * doprnt.c (doprnt): Likewise.
1054 * editfns.c (Fuser_full_name, make_buffer_string_both)
1055 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1056 * emacs.c (sort_args): Likewise.
1057 * eval.c (Fapply, Ffuncall): Likewise.
1058 * fileio.c (Ffile_name_directory, make_temp_name)
1059 (Fexpand_file_name, search_embedded_absfilename)
1060 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1061 (auto_save_error): Likewise.
1062 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1063 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1064 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1065 (Fmake_hash_table): Likewise.
1066 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1067 * ftfont.c (ftfont_text_extents): Likewise.
1068 * getloadavg.c (getloadavg): Likewise.
1069 * image.c (define_image_type, make_image, make_image_cache)
1070 (x_create_x_image_and_pixmap, xbm_image_p)
1071 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1072 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1073 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1074 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1075 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1076 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1077 Likewise.
1078 * indent.c (scan_for_column, compute_motion): Likewise.
1079 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1080 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1081 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1082 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1083 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1084 (store_user_signal_events, menu_bar_items, tool_bar_items)
1085 (process_tool_bar_item, append_tool_bar_item)
1086 (read_char_minibuf_menu_prompt, read_key_sequence)
1087 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1088 Likewise.
1089 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1090 Likewise.
1091 * lisp.h (STRING_COPYIN): Likewise.
1092 * lread.c (Fload, read1, oblookup): Likewise.
1093 * msdos.c (Frecent_doskeys): Likewise.
1094 * nsfns.m (Fx_create_frame): Likewise.
1095 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1096 Likewise.
1097 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1098 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1099 Likewise.
1100 * nsmenu.m (ns_update_menubar): Likewise.
1101 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1102 * print.c (print_unwind, printchar, strout, print_string)
1103 (print_error_message): Likewise.
1104 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1105 (Fmake_network_process, Fnetwork_interface_list)
1106 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1107 (init_process): Likewise.
1108 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1109 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1110 Likewise.
1111 * scroll.c (do_scrolling, do_direct_scrolling)
1112 (scrolling_max_lines_saved): Likewise.
1113 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1114 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1115 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1116 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1117 (emacs_set_tty): Likewise.
1118 * term.c (encode_terminal_code, calculate_costs)
1119 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1120 Likewise.
1121 * termcap.c (tgetst1, gobble_line): Likewise.
1122 * termhooks.h (EVENT_INIT): Likewise.
1123 * tparam.c (tparam1): Likewise.
1124 * unexalpha.c (unexec): Likewise.
1125 * unexec.c (write_segment): Likewise.
1126 * unexmacosx.c (unexec_write_zero): Likewise.
1127 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1128 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1129 * w32font.c (w32font_list_family, w32font_text_extents)
1130 (w32font_list_internal, w32font_match_internal)
1131 (w32font_open_internal, compute_metrics, Fx_select_font):
1132 Likewise.
1133 * w32menu.c (set_frame_menubar, add_menu_item)
1134 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1135 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1136 * w32uniscribe.c (uniscribe_list_family): Likewise.
1137 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1138 * window.c (make_window, replace_window, set_window_buffer)
1139 (Fsplit_window): Likewise.
1140 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1141 (add_to_log, message3, x_consider_frame_title)
1142 (append_space_for_newline, extend_face_to_end_of_line)
1143 (decode_mode_spec_coding, init_glyph_string): Likewise.
1144 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1145 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1146 (face_attr_equal_p, make_realized_face, make_face_cache)
1147 (free_realized_faces, lookup_named_face, smaller_face)
1148 (face_with_height, lookup_derived_face)
1149 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1150 (Finternal_set_font_selection_order, realize_default_face)
1151 (compute_char_face, face_at_buffer_position)
1152 (face_for_overlay_string, face_at_string_position, merge_faces):
1153 Likewise.
1154 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1155 (Fx_window_property, x_create_tip_frame)
1156 (Fx_backspace_delete_keys_p): Likewise.
1157 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1158 (xfont_text_extents): Likewise.
1159 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1160 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1161 * xselect.c (x_queue_event, x_get_window_property)
1162 (receive_incremental_selection): Likewise.
1163 * xsmfns.c (x_session_check_input): Likewise.
1164 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1165 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1166 Likewise.
1167 * character.h (BCOPY_SHORT): Removed.
1168 * config.in: Regenerate.
1169 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1170 * emacs.c (main) [PROFILING]: Don't declare
1171 dump_opcode_frequencies.
1172 * lisp.h (safe_bcopy): Remove declaration.
1173 (memset) [!HAVE_MEMSET]: Declare.
1174 (memcpy) [!HAVE_MEMCPY]: Likewise.
1175 (memmove) [!HAVE_MEMMOVE]: Likewise.
1176 (memcmp) [!HAVE_MEMCMP]: Likewise.
1177 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1178 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1179 Don't define.
1180 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1181 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1182 (BCOPY_DOWNWARD_SAFE): Don't define.
1183 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1184 (memcpy) [!HAVE_MEMCPY]: Define.
1185 (memmove) [!HAVE_MEMMOVE]: Define.
1186 (memcmp) [!HAVE_MEMCMP]: Define.
1187
cb768704
J
11882010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1191 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1192 New functions.
cb768704
J
1193 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1194 select on empty input mask.
1195 (init_process): Initialize kbd_is_on_hold to 0.
1196
1197 * process.h (hold_keyboard_input, unhold_keyboard_input)
1198 (kbd_on_hold_p): Declare.
1199
1200 * keyboard.c (input_available_signal): Declare.
1201 (kbd_buffer_nr_stored): New function.
1202 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1203 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1204 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1205 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1206 (tty_read_avail_input): If input is on hold, return.
1207 Don't read more that free slots in kbd_buffer (Bug#6571).
1208
3a8ce822
EZ
12092010-07-07 Eli Zaretskii <eliz@gnu.org>
1210
1211 * msdos.h:
1212 * msdos.c:
1213 * dosfns.c:
1214 * w16select.c: Convert function definitions to ANSI C.
1215
a628ad9d
JB
1216 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1217 Remove unused prototypes.
3a8ce822 1218
cf84bb53
JB
12192010-07-07 Juanma Barranquero <lekktu@gmail.com>
1220
1221 * coding.c, sysdep.c: Convert some more functions to standard C.
1222
1a4990fb
JB
12232010-07-07 Juanma Barranquero <lekktu@gmail.com>
1224
1225 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1226 (encode_coding_object): Use SPECPDL_INDEX.
1227 (syms_of_coding): Use DOS_NT.
1228
c0f2f16b
DN
12292010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1230
48fb6855
DN
1231 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1232
c0f2f16b
DN
1233 Make the function member of Lisp_Subr use standard C prototypes.
1234 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1235 (DECL_ALIGN): Add a cast for the function.
1236 * eval.c (Feval, Ffuncall): Use the proper type for each type
1237 function call.
1238
67aecef9
CY
12392010-07-06 Chong Yidong <cyd@stupidchicken.com>
1240
1241 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1242 fringe face id, so face-remapping-alist works (Bug#6091).
1243
b56ceb92
JB
12442010-07-06 Juanma Barranquero <lekktu@gmail.com>
1245
1246 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1247 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1248 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1249
7af07b96
AS
12502010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1251
1252 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1253 * lisp.h: Declare x_get_keysym_name.
1254 * keyboard.c (modify_event_symbol): Don't declare
1255 x_get_keysym_name here.
1256
69e24e34
DN
12572010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1258
1259 * ecrt0.c: Revert conversion to standard C.
1260
d3da34e0 12612010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1262
1263 * vm-limit.c (memory_warnings):
1264 * keyboard.c (modify_event_symbol):
1265 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1266 (round2, emacs_rint):
1267 * process.c (send_process, old_sigpipe): Convert function
1268 definitions and declarations to standard C.
1269
12702010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1271
1272 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1273 * xdisp.c: Convert function definitions to standard C.
1274
1275 * cm.c (cmputc): Arg C is now int, not char.
1276 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1277
00be444c
J
12782010-07-05 James Cloos <cloos@jhcloos.com>
1279
1280 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1281
1282 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1283 _NET_WM_ICON_NAME atoms.
1284
1285 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1286 and _NET_WM_ICON_NAME properties, too, matching what is
1287 done in the Gtk+ case.
1288
e4c8d29a
J
12892010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1290
ff919460
J
1291 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1292
e4c8d29a
J
1293 * xsmfns.c (SSDATA): New macro.
1294 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1295 passed to strlen/strcpy/strcat.
1296 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1297 7:th arg to XChangeProperty to (unsigned char *)
1298
1299 * xsettings.c (something_changedCB, parse_settings)
1300 (apply_xft_settings): Reformat prototype.
1301 (something_changedCB, init_gconf): Remove unused variable i.
1302 (read_settings): Remove unused variable long_len.
1303
1304 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1305 (xg_get_image_for_pixmap, create_dialog)
1306 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1307 (menuitem_highlight_callback, make_menu_item)
1308 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1309 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1310 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1311 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1312 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1313 (xg_tool_bar_item_expose_callback): Reformat prototype.
1314 (xg_update_menubar): GList *group => GSList *group.
1315 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1316 before use.
1317 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1318 to GTK_IMAGE (wimage).
1319
dd4c5104
DN
13202010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1321
898b4c5c
DN
1322 * atimer.c: Use "" instead of <> for local includes for
1323 consistency with the rest of the code.
1324
dd4c5104
DN
1325 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1326 * xrdb.c (get_system_name):
1327 * window.c (shrink_windows):
1328 * syntax.c (forw_comment):
1329 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1330 (ins_del_costs):
1331 * mem-limits.h (start_of_data):
1332 * lread.c (readevalloop):
1333 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1334 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1335 * frame.c (x_get_focus_frame):
1336 * floatfns.c (fmod_float):
1337 * fileio.c (choose_write_coding_system):
1338 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1339 (malloc_initialize_hook, sort_args, synchronize_locale):
1340 * doprnt.c (doprnt):
1341 * dired.c (compile_pattern):
1342 * data.c (fmod_float):
1343 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1344 (map_char_table_for_charset):
1345 * charset.c (define_charset_internal):
1346 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1347 to standard C.
1348
9a39b306 13492010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1350 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1351
1352 * lread.c (read1): Fix up last change to not mess up `c'.
1353
e6cb2cbb
JB
13542010-07-04 Juanma Barranquero <lekktu@gmail.com>
1355
1356 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1357
438105ed
JB
13582010-07-04 Juanma Barranquero <lekktu@gmail.com>
1359
1360 Fix prototypes.
1361
e5447b22 1362 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1363 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1364 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1365 arg, as required by internal_condition_case_1.
dcc7404b 1366 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1367 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1368 (analyse_first): Fix "const const".
e5447b22 1369 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1370 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1371 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1372
971de7fb
DN
13732010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1374
1375 * alloc.c: Convert function definitions to standard C.
1376 * atimer.c:
1377 * bidi.c:
1378 * bytecode.c:
1379 * callint.c:
1380 * callproc.c:
1381 * casefiddle.c:
1382 * casetab.c:
1383 * category.c:
1384 * ccl.c:
1385 * character.c:
1386 * charset.c:
1387 * chartab.c:
1388 * cmds.c:
1389 * coding.c:
1390 * composite.c:
1391 * data.c:
1392 * dbusbind.c:
1393 * dired.c:
1394 * dispnew.c:
1395 * doc.c:
1396 * doprnt.c:
1397 * ecrt0.c:
1398 * editfns.c:
1399 * fileio.c:
1400 * filelock.c:
1401 * filemode.c:
1402 * fns.c:
1403 * font.c:
1404 * fontset.c:
1405 * frame.c:
1406 * fringe.c:
1407 * ftfont.c:
1408 * ftxfont.c:
1409 * gtkutil.c:
1410 * indent.c:
1411 * insdel.c:
1412 * intervals.c:
1413 * keymap.c:
1414 * lread.c:
1415 * macros.c:
1416 * marker.c:
1417 * md5.c:
1418 * menu.c:
1419 * minibuf.c:
1420 * prefix-args.c:
1421 * print.c:
1422 * ralloc.c:
1423 * regex.c:
1424 * region-cache.c:
1425 * scroll.c:
1426 * search.c:
1427 * sound.c:
1428 * strftime.c:
1429 * syntax.c:
1430 * sysdep.c:
1431 * termcap.c:
1432 * terminal.c:
1433 * terminfo.c:
1434 * textprop.c:
1435 * tparam.c:
1436 * undo.c:
1437 * unexelf.c:
1438 * window.c:
1439 * xfaces.c:
1440 * xfns.c:
1441 * xfont.c:
1442 * xftfont.c:
1443 * xgselect.c:
1444 * xmenu.c:
1445 * xrdb.c:
1446 * xselect.c:
1447 * xsettings.c:
1448 * xsmfns.c:
1449 * xterm.c: Likewise.
1450
ae492bec
EZ
14512010-07-03 Eli Zaretskii <eliz@gnu.org>
1452
76ea4cc9
EZ
1453 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1454 frames other than the initial one. Fix reversal of colors when
1455 `reverse' is specified in the frame parameters. Call
1456 update_face_from_frame_parameter instead of
1457 internal-set-lisp-face-attribute. Initialize screen colors from
1458 initial_screen_colors[] when f->default_face_done_p is zero,
1459 instead of depending on being called with default-frame-alist as
1460 the alist argument.
1461
1462 * xfaces.c (update_face_from_frame_parameter): Move out of
1463 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1464 with HAVE_WINDOW_SYSTEM.
1465
1e6255ae
EZ
1466 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1467 to menu-bar-mode, if not set in the frame parameters or in
1468 default-frame-alist.
1469
ae492bec
EZ
1470 * w32console.c (sys_tputs): Adjust argument list to prototype in
1471 term.c.
1472
3a35a84c
JB
14732010-07-03 Juanma Barranquero <lekktu@gmail.com>
1474
1475 * lisp.h (memory_warnings): Fix prototype.
1476
1477 * cm.h (evalcost): Fix prototype.
1478
1479 * cm.c (evalcost): Fix arg type.
1480
c532d349
DN
14812010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1482
1483 * term.c (term_clear_mouse_face, Fidentity):
1484 * syssignal.h (signal_handler_t):
1485 * lisp.h (memory_warnings):
1486 * coding.h (preferred_coding_system):
1487 * cm.h (evalcost):
1488 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1489
c0b36d46
EZ
14902010-07-02 Eli Zaretskii <eliz@gnu.org>
1491
1492 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1493 from prototypes.
1494
1495 * msdos.h (load_pixmap): Don't define away.
1496
383e0970
J
14972010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1498
f57e2426
J
1499 * lisp.h:
1500 * atimer.h: Remove define for P_.
1501
1502 * alloc.c: Remove __P and P_ from .c and .m files.
1503 * atimer.c:
1504 * buffer.c:
1505 * callint.c:
1506 * category.c:
1507 * charset.c:
1508 * chartab.c:
1509 * cm.c:
1510 * coding.c:
1511 * composite.c:
1512 * data.c:
1513 * dired.c:
1514 * dispnew.c:
1515 * doc.c:
1516 * editfns.c:
1517 * emacs.c:
1518 * eval.c:
1519 * fileio.c:
1520 * filelock.c:
1521 * fns.c:
1522 * font.c:
1523 * fontset.c:
1524 * frame.c:
1525 * ftfont.c:
1526 * ftxfont.c:
1527 * gmalloc.c:
1528 * gtkutil.c:
1529 * image.c:
1530 * indent.c:
1531 * intervals.c:
1532 * keyboard.c:
1533 * keymap.c:
1534 * lread.c:
1535 * marker.c:
1536 * menu.c:
1537 * minibuf.c:
1538 * print.c:
1539 * process.c:
1540 * scroll.c:
1541 * search.c:
1542 * sound.c:
1543 * strftime.c:
1544 * syntax.c:
1545 * sysdep.c:
1546 * term.c:
1547 * terminal.c:
1548 * textprop.c:
1549 * unexalpha.c:
1550 * w32console.c:
1551 * w32fns.c:
1552 * w32font.c:
1553 * w32menu.c:
1554 * w32term.c:
1555 * w32uniscribe.c:
1556 * window.c:
1557 * xdisp.c:
1558 * xfaces.c:
1559 * xfns.c:
1560 * xfont.c:
1561 * xftfont.c:
1562 * xmenu.c:
1563 * xselect.c:
1564 * xterm.c: Likewise.
1565
383e0970 1566 Remove P_ and __P macros.
f57e2426
J
1567 * atimer.h: Remove P_ and __P macros.
1568 * buffer.h:
383e0970
J
1569 * category.h:
1570 * ccl.h:
1571 * character.h:
1572 * charset.h:
1573 * cm.h:
1574 * coding.h:
1575 * composite.h:
1576 * dispextern.h:
1577 * disptab.h:
9e892c8d 1578 * dosfns.h:
383e0970
J
1579 * font.h:
1580 * fontset.h:
1581 * frame.h:
1582 * gtkutil.h:
1583 * indent.h:
1584 * intervals.h:
1585 * keyboard.h:
1586 * keymap.h:
1587 * lisp.h:
1588 * macros.h:
1589 * md5.h:
1590 * menu.h:
1591 * msdos.h:
1592 * nsterm.h:
1593 * puresize.h:
1594 * region-cache.h:
1595 * syntax.h:
1596 * syssignal.h:
1597 * systime.h:
1598 * termhooks.h:
9e892c8d 1599 * w32font.h:
383e0970
J
1600 * w32term.h:
1601 * widget.h:
1602 * window.h:
1603 * xgselect.h:
1604 * xsettings.h:
1605 * xterm.h: Likewise.
1606
98601119
DN
16072010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1608
d9170db5
DN
1609 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1610
98601119
DN
1611 Cleanup old code.
1612 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1613 * syssignal.h: Remove code for Lynx, not supported anymore.
1614 * vm-limit.c: Remove unused code the depends on emacs not being
1615 defined and NO_LIM_DATA being defined.
1616 * mem-limits.h: Remove dead code.
1617
1f984e12
J
16182010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1619
c49d071a
J
1620 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1621
9d5405ec
J
1622 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1623 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1624
7a18115b
J
1625 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1626 parameters, they are already absolute.
1627
a628ad9d
JB
1628 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1629 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1630
a628ad9d 1631 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1632
a628ad9d
JB
1633 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1634 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1635
a628ad9d
JB
1636 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1637 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1638
c1ef4455
CY
16392010-06-30 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1642 check default-frame-alist.
1643
ce8f5a9a
AS
16442010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1645
1646 * process.c (create_process): Avoid using invalid file descriptors.
1647
1648 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1649
bf935339
J
16502010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1651
1652 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1653 Improve documentation. Return font regardless of use_system_font.
1654 (syms_of_xsettings): Improve documentation for font-use-system-font.
1655
7c33a057
CY
16562010-07-10 Chong Yidong <cyd@stupidchicken.com>
1657
2ec1b5ee
CY
1658 * xfaces.c (realize_face): Garbage the frame if a face is removed
1659 (Bug#6593).
1660
16612010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1662
1663 * keyboard.c: Remove duplicate <setjmp.h>.
1664 (read_key_sequence): Remove volatile qualifiers.
1665
16662010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1667
1668 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1669 (struct glyph_row): New members left_fringe_offset and
1670 right_fringe_offset.
1671
1672 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1673 specially.
1674 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1675 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1676
1677 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1678 Take account of bitmap offset.
2ec1b5ee
CY
1679 (draw_window_fringes): Take account of window vscroll.
1680 (update_window_fringes): Likewise. Extend top-aligned top indicator
1681 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1682 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1683 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1684
16852010-07-04 Juanma Barranquero <lekktu@gmail.com>
1686
1687 * w32fns.c (Qtooltip): Declare.
1688 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1689
16902010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1691
1692 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1693 grab on just Press (Bug#6499).
1694
16952010-07-02 Chong Yidong <cyd@stupidchicken.com>
1696
1697 * frame.c (Qtooltip): New var.
1698 (delete_frame): Use it. Fix faulty if statement. Don't update
1699 mode line for tooltip frames. Suggested by Martin Rudalics.
1700
1701 * xfns.c (x_create_tip_frame):
1702 * w32fns.c (x_create_tip_frame): Use it.
1703
17042010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1705
1706 * xftfont.c (xftfont_open): Check font width one by one also when
1707 spacing is dual.
1708
1709 * ftfont.c (ftfont_open): Ditto.
1710
6259c2ec
GM
17112010-06-30 Glenn Morris <rgm@gnu.org>
1712
a46007e9
GM
1713 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1714
6259c2ec
GM
1715 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1716
1717 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1718 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1719 * s/darwin.h (SYSTEM_MALLOC):
1720 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1721
5d1d3d04
J
17222010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1723
1724 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1725 (ns_get_screen): Don't assign integer to f.
1726 (Fx_display_color_cells): Declarations before statements.
1727
e547b051
J
17282010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1729
5fc8e5bc
J
1730 * xfns.c (x_default_font_parameter): Remove got_from_system
1731 (Bug#6526).
1732
e547b051
J
1733 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1734 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1735 defines based on what configure finds.
1736
1737 * xterm.c (XTflash): Use gtk_widget_get_window.
1738 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1739 gtk_adjustment_get_page_size.
1740 (handle_one_xevent): Use gtk_widget_get_mapped.
1741 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1742 messages.
1743
1744 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1745
1746 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1747 HAVE_GTK_FILE_SELECTION_NEW.
1748
1749 * gtkutil.c (xg_display_open, xg_display_close): Remove
1750 HAVE_GTK_MULTIDISPLAY, it is always defined.
1751 (xg_display_open): Return type is void.
1752 (gtk_widget_set_has_window)
1753 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1754 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1755 (gtk_adjustment_set_page_increment)
1756 (gtk_adjustment_get_step_increment): #define these if not found
1757 by configure.
1758 (remove_submenu): New define based on Gtk+ version.
1759 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1760 gtk_widget_get_window.
1761 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1762 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1763 (create_dialog): Use gtk_dialog_get_action_area and
1764 gtk_dialog_get_content_area.
1765 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1766 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1767 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1768 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1769 g_object_ref and g_object_unref.
1770 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1771 gtk_widget_get_sensitive.
1772 (xg_update_submenu): Use remove_submenu.
1773 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1774 properties instead to get old x and y position.
1775 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1776 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1777 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1778 (xg_get_tool_bar_widgets): New function.
1779 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1780 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1781 (toolbar_set_orientation): New #define based on if configure
1782 finds gtk_orientable_set_orientation.
1783 (xg_create_tool_bar): Call toolbar_set_orientation.
1784 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1785 instead of gtk_box_pack_start_defaults.
1786
b9229673
CY
17872010-06-28 Chong Yidong <cyd@stupidchicken.com>
1788
1789 * cmds.c (Fdelete_backward_char): Move into Lisp.
1790
bbc803b0
DN
17912010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1792
1793 * s/freebsd.h (BSD4_2): Remove redundant definition.
1794 bsd-common.h defines it already.
1795
6431f2e6
CY
17962010-06-27 Chong Yidong <cyd@stupidchicken.com>
1797
1798 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1799 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1800 tool-bar-mode, which are now set using these X resources at
1801 startup, to determine the defaults (Bug#2249).
1802
1803 * w32fns.c (Fx_create_frame):
1804 * nsfns.m (Fx_create_frame): Likewise.
1805
1806 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1807
8c079ebb
JB
18082010-06-24 Juanma Barranquero <lekktu@gmail.com>
1809
1810 * gtkutil.c (xg_update_scrollbar_pos):
1811 Avoid C99 mid-block variable declaration.
1812
e9b7ab96
JD
18132010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1814
bc869eca
JD
1815 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1816
2b7e356a 1817 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1818
1819 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1820 if height is less than scroll bar min size.
1821 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1822
e9b7ab96
JD
1823 * xfns.c (x_default_font_parameter): Try to open font from system
1824 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1825
a628ad9d 18262010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1827
1828 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1829
70c4cfbb
EZ
18302010-06-20 Eli Zaretskii <eliz@gnu.org>
1831
1832 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1833 most-positive-fixnum, be extra accurate when scrolling window
1834 start, to avoid missing the cursor line.
1835
ad5a12b5
EZ
18362010-06-19 Eli Zaretskii <eliz@gnu.org>
1837
1838 * xdisp.c (try_scrolling): Compute the limit for searching point
1839 in forward scroll from scroll_max, instead of an arbitrary limit
1840 of 10 screen lines. See
1841 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1842 and
1843 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1844 for details.
1845
2a64315a 18462010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1847
1848 * editfns.c (Fbyte_to_string): Pacify compiler.
1849
288cf4e9
SM
18502010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1851
1852 * lread.c (read1): Phase out old-style backquotes a bit more.
1853
6e6e5760
EZ
18542010-06-12 Eli Zaretskii <eliz@gnu.org>
1855
cbc4fd20
EZ
1856 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1857 bidimirror.h.
1858
1859 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1860
317fbf33
EZ
1861 * bidi.c (bidi_initialize): Remove explicit initialization of
1862 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1863 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1864 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1865
1866 * biditype.h: New file.
1867
cbc4fd20
EZ
1868 * bidimirror.h: New file.
1869
6e6e5760
EZ
1870 * window.c (syms_of_window): Doc fix (bug#6409).
1871
4176cba2
RF
18722010-06-12 Romain Francoise <romain@orebokech.com>
1873
1874 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1875 ediff-hook.
1876
cb4bfcb5
GM
18772010-06-10 Glenn Morris <rgm@gnu.org>
1878
64c60c2f
GM
1879 * editfns.c (Fbyte_to_string): Pacify compiler.
1880
cb4bfcb5
GM
1881 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1882
2ec1b5ee
CY
18832010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1884
1885 * alloc.c (Fmake_byte_code): Don't access undefined argument
1886 (Bug#6517).
1887
18882010-06-25 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * xdisp.c (next_element_from_image): Ensure that after-strings are
1891 read the next time we hit handle_stop (Bug#1336).
1892
18932010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * lread.c (read1): Signal error if #s is not followed by paren.
1896
18972010-06-19 Chong Yidong <cyd@stupidchicken.com>
1898
1899 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1900
1901 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1902
19032010-06-15 Glenn Morris <rgm@gnu.org>
1904
1905 * editfns.c (Fbyte_to_string): Pacify compiler.
1906
e454a4a3
SM
19072010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1908
1909 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1910 Check `object's type before accessing its guts.
1911
c1b1acc2
DN
19122010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1913
1914 * s/usg5-4.h: Fix previous change.
1915 Suggested by Lawrence Mitchell <wence@gmx.li>
1916
657d4c0b
AS
19172010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1918
1919 * minibuf.c (Fall_completions): Add more checks.
1920
9b27fd9f
JB
19212010-06-08 Juanma Barranquero <lekktu@gmail.com>
1922
1923 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1924
a99ebb40
DN
19252010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1926
d7c5d87d
DN
1927 * lread.c (X_OK): Remove, unused.
1928
0263a941
DN
1929 * dispnew.c: Remove obsolete comment.
1930
a99ebb40
DN
1931 Remove INCLUDED_FCNTL.
1932 * xterm.c (INCLUDED_FCNTL):
1933 * callproc.c (INCLUDED_FCNTL):
1934 * alloc.c (INCLUDED_FCNTL):
1935 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1936 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1937
13b5221f
MR
19382010-06-07 Martin Rudalics <rudalics@gmx.at>
1939
1940 * window.c (Fselect_window): Move `record_buffer' up to the
1941 beginning of this function, so the buffer gets recorded
1942 even if the selected window does not change.
1943 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1944
5220357f
JB
19452010-06-07 Juanma Barranquero <lekktu@gmail.com>
1946
1947 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1948 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1949
3085237c
DN
19502010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1951
1952 Remove BSTRING related code, all platforms define it.
1953 * s/usg5-4.h (BSTRING): Remove definition.
1954 * s/template.h (BSTRING):
1955 * s/msdos.h (BSTRING):
1956 * s/ms-w32.h (BSTRING):
1957 * s/hpux10-20.h (BSTRING):
1958 * s/gnu-linux.h (BSTRING):
1959 * s/darwin.h (BSTRING):
1960 * s/cygwin.h (BSTRING):
1961 * s/bsd-common.h (BSTRING):
1962 * s/aix4-2.h (BSTRING): Likewise.
1963 * sysdep.c: Remove code depending on BSTRING not being defined.
1964
409f2919
JB
19652010-06-05 Juanma Barranquero <lekktu@gmail.com>
1966
1967 Remove obsolete macro BASE_LEADING_CODE_P.
1968 * character.h (BASE_LEADING_CODE_P): Remove.
1969 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1970 * buffer.c (Fset_buffer_multibyte):
1971 * indent.c (scan_for_column, compute_motion):
1972 * insdel.c (count_combining_before, count_combining_after):
1973 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1974
087fc47a
JB
19752010-06-04 Juanma Barranquero <lekktu@gmail.com>
1976
1977 Turn `directory-sep-char' into a noop.
1978
1979 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1980 (DIRECTORY_SEP): Define unconditionally.
1981
1982 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1983
1984 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1985 call dostounix_filename directly.
1986
1987 * fileio.c (CORRECT_DIR_SEPS): Remove.
1988 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1989 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1990 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1991 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1992
1993 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1994 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1995
0eb7675e
AS
19962010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1997
a628ad9d
JB
1998 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1999 (Bug#6346)
0eb7675e 2000
78edd3b7
JB
20012010-06-03 Juanma Barranquero <lekktu@gmail.com>
2002
2003 * ccl.c (Fccl_program_p): Fix typo in docstring.
2004
eb697db5
DN
20052010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2006
2007 Move UNEXEC definition to autoconf.
2008 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2009 * s/sol2-10.h (UNEXEC):
2010 * s/irix6-5.h (UNEXEC):
2011 * s/hpux10-20.h (UNEXEC):
2012 * s/gnu-linux.h (UNEXEC):
2013 * s/darwin.h (UNEXEC):
2014 * s/cygwin.h (UNEXEC):
2015 * s/bsd-common.h (UNEXEC):
2016 * s/aix4-2.h (UNEXEC):
2017 * m/alpha.h (UNEXEC): Likewise.
2018 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2019
aa3830c4
JB
20202010-06-03 Juanma Barranquero <lekktu@gmail.com>
2021
2022 Remove obsolete pre-unicode2 macros.
2023 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2024 * composite.c (composition_reseat_it):
2025 * data.c (Faset):
2026 * fns.c (Ffillarray):
2027 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2028 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2029
d234d13e
JL
20302010-06-03 Juri Linkov <juri@jurta.org>
2031
2032 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2033 (Fswitch_to_buffer): Remove unused variable `err'.
2034
0d4bcf4d
GM
20352010-06-03 Glenn Morris <rgm@gnu.org>
2036
e23dc1e2
GM
2037 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2038
05b09564
GM
2039 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2040 now that AH_BOTTOM does it.
2041
824e2978
GM
2042 * m/hp800.h (HAVE_ALLOCA):
2043 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2044
0d4bcf4d
GM
2045 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2046 Remove NOT_C_CODE tests, it is always true now.
2047
c55d2abf
DN
20482010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2049
08a494a3
DN
2050 Fix config.h includes.
2051 * xsettings.c:
2052 * xgselect.c:
2053 * nsterm.m:
2054 * nsselect.m:
2055 * nsimage.m:
2056 * nsfont.m:
2057 * nsfns.m:
2058 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2059 other files do.
2060
75934b1d
DN
2061 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2062
9f32a766
DN
2063 * s/sol2-6.h: Remove obsolete comments.
2064
c55d2abf
DN
2065 Remove unnecessary alloca.h includes.
2066 * keymap.c: Do not include alloca.h, config.h does that.
2067 * sysdep.c: Likewise. Do not define fwrite, not used.
2068
06ac62b4
SM
20692010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2070
2071 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2072 the HAVE_TERMIO where it belongs (bug#6149).
2073
1ab8293c
SM
20742010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2075
2076 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2077 of bug#6305).
2078
6dcfd253
EZ
20792010-05-30 Eli Zaretskii <eliz@gnu.org>
2080
2081 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2082 state is always cached (bug#6306).
2083
6d26bbb2
EZ
20842010-05-29 Eli Zaretskii <eliz@gnu.org>
2085
06fa4a23
EZ
2086 Fix cursor motion in bidi-reordered continued lines.
2087 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2088 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2089 over continuation lines in bidi-reordered buffers. Return
2090 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2091 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2092
f5783df3
MA
20932010-05-28 Michael Albinus <michael.albinus@gmx.de>
2094
2095 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2096
7d56b2dd
KH
20972010-05-28 Kenichi Handa <handa@m17n.org>
2098
2099 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2100 Don't sheck SPEC if it is nil.
2101 (font_list_entities): Call font_delete_unmatched if
b925d231 2102 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2103
e58d4ff7
GM
21042010-05-28 Glenn Morris <rgm@gnu.org>
2105
2106 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2107
f1a5d776
CY
21082010-05-27 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2111 whether to trash.
2112 (internal_delete_file, Frename_file): Callers changed.
2113 (delete_by_moving_to_trash): Doc fix.
2114 (Fdelete_directory_internal): Don't move to trash.
2115
2116 * callproc.c (delete_temp_file):
2117 * buffer.c (Fkill_buffer): Callers changed.
2118
2119 * lisp.h: Update prototype.
2120
f44a59e6
CY
21212010-05-27 Chong Yidong <cyd@stupidchicken.com>
2122
2123 * xdisp.c (redisplay_window): After redisplay, check if point is
2124 still valid before setting it (Bug#6177).
2125
81ac4f35
GM
21262010-05-27 Glenn Morris <rgm@gnu.org>
2127
2128 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2129 Convert comments to Makefile format.
2130
2131 * Makefile.in (bootstrap-clean): No more Makefile.c.
2132
ccd89fb3
GM
21332010-05-26 Glenn Morris <rgm@gnu.org>
2134
90278cb6
GM
2135 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2136 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2137
ccd89fb3
GM
2138 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2139 Remove.
2140 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2141
b7050583
KH
21422010-05-26 Kenichi Handa <handa@m17n.org>
2143
2144 * composite.c (composition_compute_stop_pos): Fix condition for
2145 backward scanning.
2146
e5458003
GM
21472010-05-25 Glenn Morris <rgm@gnu.org>
2148
c345fe90
GM
2149 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2150 Move before TEMACS_LDFLAGS.
2151 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2152 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2153
2e0689ab
GM
2154 * Makefile.in (NOT_C_CODE): No longer define.
2155 (config.h): No longer include.
2156
8009a5e8
GM
2157 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2158 variables it may reference.
2159
e5458003
GM
2160 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2161 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2162
10f72a37
KH
21632010-05-25 Kenichi Handa <handa@m17n.org>
2164
2165 * dispextern.h (struct composition_it): New members rule_idx and
2166 charpos.
2167
2168 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2169 that the character positions of IT point the last character of the
2170 current grapheme cluster.
2171 (next_element_from_composition): Don't change character positions
2172 of IT.
2173 (append_composite_glyph): Set glyph->charpos to
2174 it->cmp_it.charpos.
2175
2176 * composite.c (autocmp_chars): Change the first argument to RULE,
2177 and try composition with RULE only.
2178 (composition_compute_stop_pos): Record the index number of the
2179 composition rule in CMP_IT->rule_idx.
2180 (composition_reseat_it): Call autocmp_chars repeatedly until the
2181 correct rule of the composition is found.
2182 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2183 is at the last character of the current grapheme cluster when
2184 CMP_IT->reversed_p is nonzero.
2185
171eda53 21862010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2187
171eda53
SM
2188 * editfns.c (Fbyte_to_string): New function.
2189
66a9f7f4
SM
21902010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2193 Suggested by Masatake YAMATO <yamato@redhat.com>.
2194
d8c315d1
EZ
21952010-05-23 Eli Zaretskii <eliz@gnu.org>
2196
171eda53 2197 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2198
f5b416d2 21992010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2200
2201 * s/netbsd.h: If terminfo is found, use it in preference to
2202 termcap. (Bug#6190) [Backport from trunk]
2203
0416466c
EZ
22042010-05-19 Eli Zaretskii <eliz@gnu.org>
2205
11117830 2206 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2207
2208 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2209 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2210 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2211 and maxpos members instead of start.pos and end.pos, respectively.
2212
2213 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2214 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2215 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2216 (try_window_reusing_current_matrix, try_window_id):
2217 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2218 (init_from_display_pos, init_iterator): Use EMACS_INT for
2219 character and byte positions.
66a9f7f4 2220 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2221 arguments for minimum and maximum buffer positions seen by
2222 display_line for this row. Don't use iterator to find the
2223 position following the maximum one; instead, increment the
11117830
EZ
2224 position found by display_line directly. Fix logic; eol_pos
2225 should be tested before the rest. Handle the case of characters
2226 delivered from display vector (bug#6036). Fix tests related to
2227 it->method. Handle the truncated_on_right_p rows.
2228 (RECORD_MAX_MIN_POS): New macro.
2229 (display_line): Use it to record the minimum and maximum buffer
2230 positions for glyphs in the row being assembled. Record the
2231 position of the newline that terminates the line. If word wrap is
2232 in effect, restore minimum and maximum positions seen up to the
2233 wrap point, when iterator returns to it.
2234 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2235 row and cursor not already at point. Restore original pre-bidi
2236 code for unidirectional buffers.
d36fe237
EZ
2237
2238 * dispnew.c (increment_row_positions, check_matrix_invariants):
2239 Increment and check row->start.pos and row->end.pos, in addition
2240 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2241
11117830
EZ
2242 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2243 Display truncated_on_left_p and truncated_on_right_p flags.
2244 Formatting fixes.
2245 (pmtxrows): Display the ordinal number of each row. Don't display
2246 rows beyond the last one.
2247
2248 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2249 it is not copied by bidi_copy_it.
2250
6e83d800
EZ
22512010-05-22 Eli Zaretskii <eliz@gnu.org>
2252
2253 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2254 (Bug#6237)
2255
110683ad
CY
22562010-05-22 Chong Yidong <cyd@stupidchicken.com>
2257
2258 * image.c (Fimage_flush): Rename from image-refresh.
2259
98fe5161
CY
22602010-05-21 Chong Yidong <cyd@stupidchicken.com>
2261
2262 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2263 just one window.
2264
2265 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2266 (clear_image_cache): If the number of cached images is unusually
2267 large, decrease the cache eviction delay (Bug#6230).
2268
e8752c66
GM
22692010-05-21 Glenn Morris <rgm@gnu.org>
2270
66dbf213
GM
2271 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2272 Move these rules to ns.mk.
2273 * ns.mk: New file.
2274
04384b2d
GM
2275 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2276
e8752c66
GM
2277 * Makefile.in (CANNOT_DUMP): New, set by configure.
2278 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2279
2e2bbddb
JL
22802010-05-20 Juri Linkov <juri@jurta.org>
2281
2282 * fileio.c (Fdelete_file): Change interative spec to use
2283 `read-file-name' like in `find-file-read-args' where the default
2284 value is `default-directory' instead of `buffer-file-name'.
2285 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2286
31c4aaf6
KR
22872010-05-20 Kevin Ryde <user42@zip.com.au>
2288
2289 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2290 (Voverriding_terminal_local_map, Vsystem_key_alist)
2291 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2292
9d5cf9b6
GM
22932010-05-20 Glenn Morris <rgm@gnu.org>
2294
2295 * Makefile.in (DEPDIR): New constant.
2296 (DEPFLAGS): Set with configure, not cpp.
2297 (MKDEPDIR): New, set by configure.
2298 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2299 (clean): Use $DEPDIR.
2300 (deps_frag): Include from configure.
2301 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2302 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2303
ead6f8f5
EZ
2304 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2305 reallocation of the cache. (Bug#6210)
2306
7f34aec3
GM
23072010-05-19 Glenn Morris <rgm@gnu.org>
2308
d494e8f2
GM
2309 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2310
c1d0dcfd
GM
2311 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2312 (GNULIB_VAR): Remove.
2313 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2314
2315 * m/ibms390x.h (LINKER):
2316 * m/macppc.h (LINKER) [GNU_LINUX]:
2317 * s/aix4-2.h (ORDINARY_LINK):
2318 * s/cygwin.h (LINKER):
2319 * s/darwin.h (ORDINARY_LINK):
2320 * s/gnu.h (ORDINARY_LINK):
2321 * s/netbsd.h (LINKER):
2322 * s/usg5-4.h (ORDINARY_LINK):
2323 Move to configure.
2324
7f34aec3
GM
2325 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2326
754790b6
CY
23272010-05-18 Chong Yidong <cyd@stupidchicken.com>
2328
2329 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2330 prevent stack overflow if number of arguments is too large
2331 (Bug#6214).
2332
161e44d1
JB
23332010-05-18 Juanma Barranquero <lekktu@gmail.com>
2334
2335 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2336
be4ff9da
GM
23372010-05-18 Glenn Morris <rgm@gnu.org>
2338
9539dc5d
GM
2339 * s/gnu-linux.h: Combine two conditionals.
2340
2341 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2342 $(POST_ALLOC_OBJ).
2343
40dc6bf4
GM
2344 * Makefile.in (RALLOC_OBJ): New, set by configure.
2345 (rallocobj): Replace with the previous variable.
2346 (otherobj): Use $RALLOC_OBJ.
2347
2348 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2349 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2350
be4ff9da
GM
2351 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2352 (gmallocobj, vmlimitobj): Replace with previous two variables.
2353 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2354
16455a85
GM
23552010-05-17 Glenn Morris <rgm@gnu.org>
2356
2357 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2358 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2359
5fdb7468
GM
23602010-05-16 Glenn Morris <rgm@gnu.org>
2361
7ca1f3f9
GM
2362 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2363
7541dad5
GM
2364 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2365
da53fab9
GM
2366 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2367 trailing "/".
2368
b02a6645
GM
2369 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2370 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2371
8877ca0f
GM
2372 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2373 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2374 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2375 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2376 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2377
5fdb7468
GM
2378 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2379 Remove ${STARTFLAGS}, nothing ever sets it.
2380
95adb4b1
DN
23812010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2382
2383 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2384
676b6304
GM
23852010-05-16 Glenn Morris <rgm@gnu.org>
2386
9beab9ce
GM
2387 * Makefile.in (LIBX_BASE): Always define.
2388
8a95f0e7
GM
2389 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2390
676b6304
GM
2391 * Makefile.in (LIBXT): Always define.
2392
6e546d18
GM
23932010-05-15 Glenn Morris <rgm@gnu.org>
2394
4235ca47 2395 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2396
6e546d18
GM
2397 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2398 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2399
8c5ff6dd
KR
24002010-05-15 Ken Raeburn <raeburn@raeburn.org>
2401
560bb7ae 2402 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2403 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2404
8b4eb796
KR
2405 * emacs.c (main): Initialize initial-environment and
2406 process-environment before generating from env, not after.
2407
8c5ff6dd
KR
2408 Handle --version reasonably in CANNOT_DUMP configuration.
2409 * emacs.c (emacs_version, emacs_copyright): New string variables.
2410 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2411 (syms_of_emacs): Defvar them, and initialize them from the C
2412 string variables.
2413 (main): If initialization hasn't been done, print initial version
2414 info from the C strings, instead of starting an interactive session.
2415
dbd3f723
EZ
24162010-05-15 Eli Zaretskii <eliz@gnu.org>
2417
d20e1419
EZ
2418 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2419 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2420 (bidi_paragraph_init): Remove redundant assertion that we are at
2421 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2422
2423 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2424 (syms_of_xdisp): Defsubr it.
2425
d36fe237
EZ
2426 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2427
dbd3f723
EZ
2428 * Makefile.in: Fix MSDOS-related comments.
2429
02be533b
GM
24302010-05-15 Glenn Morris <rgm@gnu.org>
2431
1a82cca9
GM
2432 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2433 (really-lwlib, really-oldXMenu): Always define.
2434 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2435
3df7b338
GM
2436 * Makefile.in: Simplify cpp conditional.
2437
2b5f541b
GM
2438 * Makefile.in (${ns_appdir}): Simplify using umask.
2439
02be533b
GM
2440 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2441
4e2db1fe
SM
24422010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2443
2444 * eval.c (specbind): Remove left-over duplicate test.
2445 Disallow let-binding frame-local vars. Add comment.
2446
4b292a22
EZ
24472010-05-14 Eli Zaretskii <eliz@gnu.org>
2448
2fe72643 2449 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2450 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2451 (bidi_init_it): Call it.
2452 (bidi_cache_iterator_state): Enlarge the cache if needed.
2453
4e2db1fe 2454 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2455 bidi_get_next_char_visually. All callers changed.
2456
82ebc97b
KH
24572010-05-14 Kenichi Handa <handa@m17n.org>
2458
2459 * dispextern.h (struct composition_it): New member reversed_p.
2460
2461 * composite.c (composition_compute_stop_pos): Search backward if
2462 ENDPOS < CHARPOS.
2463 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2464 Set CMP_IT->reversed_p.
b4b6e17e 2465 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2466
4e2db1fe
SM
2467 * xdisp.c (set_iterator_to_next):
2468 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2469 scanning backward. Call composition_compute_stop_pos if scan
2470 direction is changed.
2471 (next_element_from_buffer): Call composition_compute_stop_pos with
2472 negative ENDPOS if we are scanning backward.
2473 (next_element_from_composition): Pay attention to
2474 IT->cmp_it.reversed_p.
2475
0e5d7800
KH
24762010-05-14 Kenichi Handa <handa@m17n.org>
2477
560bb7ae 2478 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2479
cb027b32
GM
24802010-05-14 Glenn Morris <rgm@gnu.org>
2481
177b0288
GM
2482 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2483
fbc00890
GM
2484 * Makefile.in (mktime, X11, register): Move undefs to configure.
2485
f14d1dfd
GM
2486 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2487 (MSDOS_X_OBJ): New variable.
2488 (MSDOS_SUPPORT_REAL): New constant.
2489 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2490 (obj): Use MSDOS_X_OBJ.
2491 (lisp): Use MSDOS_SUPPORT as a variable.
2492
11842bd8
GM
2493 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2494 (GPM_MOUSE_SUPPORT): Now it's a constant.
2495 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2496 not cpp.
2497
489d31a4 2498 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2499 (ns_appresdir): Remove, unused.
e20f1f07 2500
489d31a4
GM
2501 * Makefile.in (SHELL): Move outside cpp section.
2502
cb027b32
GM
2503 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2504
5a903aa9
GM
25052010-05-13 Glenn Morris <rgm@gnu.org>
2506
3369c79f
GM
2507 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2508 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2509
d5e982a6
GM
2510 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2511 HAVE_WINDOW_SYSTEM must be too.
2512
6192e163
GM
2513 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2514 (lisp): Remove WINNT_SUPPORT.
2515
472c5d6b
GM
2516 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2517 Let configure set these variables (to empty) in this case as well.
2518
0116466b
GM
2519 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2520 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2521
5a903aa9
GM
2522 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2523 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2524 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2525 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2526 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2527 the values output by configure.
5a903aa9
GM
2528 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2529
1a0d7c06
GM
25302010-05-12 Glenn Morris <rgm@gnu.org>
2531
b5457f14
GM
2532 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2533 (LINKER_WAS_SPECIFIED): Remove.
2534
1a0d7c06
GM
2535 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2536 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2537 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2538 * s/cygwin.h (LIB_GCC):
2539 * s/freebsd.h (LIB_GCC):
2540 * s/gnu-linux.h (LIB_GCC):
2541 * s/msdos.h (LIB_GCC):
2542 * s/netbsd.h (LIB_GCC):
2543 Move to configure.
2544
3ffd4615 25452010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2546
2547 * ftfont.c: Fix incorrect parentheses of #if condition for
2548 definining M17N_FLT_USE_NEW_FEATURE.
2549
acddf8ae
GM
25502010-05-11 Glenn Morris <rgm@gnu.org>
2551
2552 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2553 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2554
ae5e04fa
EZ
25552010-05-10 Eli Zaretskii <eliz@gnu.org>
2556
2557 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2558 unibyte buffers. See
2559 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2560
7490175b
GM
25612010-05-10 Glenn Morris <rgm@gnu.org>
2562
97efb629
GM
2563 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2564 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2565 (LIBES): Use LIBS_SYSTEM as a variable.
2566 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2567 * s/aix4-2.h (LIBS_SYSTEM):
2568 * s/freebsd.h (LIBS_SYSTEM):
2569 * s/hpux10-20.h (LIBS_SYSTEM):
2570 * s/sol2-6.h (LIBS_SYSTEM):
2571 * s/unixware.h (LIBS_SYSTEM):
2572 Move to configure.
2573
7490175b
GM
2574 * s/aix4-2.h (MAIL_USE_LOCKF):
2575 * s/bsd-common.h (MAIL_USE_FLOCK):
2576 * s/darwin.h (MAIL_USE_FLOCK):
2577 * s/gnu-linux.h (MAIL_USE_FLOCK):
2578 * s/irix6-5.h (MAIL_USE_FLOCK):
2579 * s/template.h (MAIL_USE_FLOCK):
2580 Move to configure.
2581
0235128c 25822010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2583
2584 * Version 23.2 released.
2585
0235128c 25862010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2587
2588 * composite.c (autocmp_chars): Save point as marker before calling
2589 auto-composition-function (Bug#5984).
2590
2591 * lisp.h (restore_point_unwind): Add prototype.
2592
2593 * fileio.c (restore_point_unwind): Remove static attribute.
2594
0235128c 25952010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2596
2597 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2598 new feature of libotf and m17n-flt.
0235128c
SM
2599 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2600 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2601 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2602 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2603 that OUT is NULL. Use OTF_drive_gsub_with_log and
2604 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2605 OTF_drive_gpos.
2606 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2607 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2608 Setup mflt_enable_new_feature and mflt_try_otf.
2609
4721152c
J
26102010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2611
2612 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2613
2614 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2615 box and toolbar (Bug #6139).
2616 (xg_create_tool_bar): Remove comment (Bug #6139).
2617 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2618 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2619
ee0a16cf
JB
26202010-05-08 Juanma Barranquero <lekktu@gmail.com>
2621
2622 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2623 Update dependencies.
2624
96d79611
EZ
26252010-05-08 Eli Zaretskii <eliz@gnu.org>
2626
2627 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2628 R2L lines.
2629
40c17879
GM
26302010-05-08 Glenn Morris <rgm@gnu.org>
2631
7b42b29f
GM
2632 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2633
40c17879
GM
2634 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2635 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2636 (termcapobj): Replace with TERMCAP_OBJ.
2637 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2638 (LIBES): Use LIBS_TERMCAP as a variable.
2639
2640 * s/freebsd.h (osreldate.h): No longer include, since this file
2641 does not use __FreeBSD_version any more.
2642
2643 * s/aix4-2.h (TERMINFO):
2644 * s/cygwin.h (TERMINFO):
2645 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2646 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2647 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2648 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2649 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2650 * s/irix6-5.h (TERMINFO):
2651 * s/netbsd.h (LIBS_TERMCAP):
2652 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2653 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2654 * s/usg5-4.h (TERMINFO):
2655 Move to configure.
2656
94b612ad
SM
26572010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2658
2659 * eval.c (unbind_to): Don't unbind a local binding into the global
2660 binding when the local binding disappeared. Inversely, don't unbind
2661 a global binding into a newly created local binding.
2662 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2663 can specify the frame to use, when applicable. Adjust callers.
2664
15e12598 26652010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2666 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2667
2668 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2669
f724825e
EZ
26702010-05-07 Eli Zaretskii <eliz@gnu.org>
2671
5cba3209
EZ
2672 * w32fns.c: Include w32.h.
2673 (Fw32_shell_execute): Decode the error message before passing it
2674 to `error'. (Bug#6126)
2675
d16bdfc3
EZ
2676 * msdos.c (dos_set_window_size):
2677 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2678 instead of `XSYMBOL (foo)->value'.
2679
59d93e87
EZ
26802010-05-07 Eli Zaretskii <eliz@gnu.org>
2681
9fdec8bc
EZ
2682 Fix the MS-DOS build, broken by autoconfiscation.
2683
2684 * Makefile.in: Don't use Make-style comments past the "start of
2685 cpp stuff" line.
2686 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2687
2688 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2689 edited directly by msdos/sed1v2.inp).
f724825e 2690
2f86b22b
GM
26912010-05-07 Glenn Morris <rgm@gnu.org>
2692
2693 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2694 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2695 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2696 move out of cpp section.
2697 * s/freebsd.h (LD_SWITCH_SYSTEM):
2698 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2699 * s/netbsd.h (LD_SWITCH_SYSTEM):
2700 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2701
49ebbd65
DN
27022010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2703
2704 Define LIB_STANDARD and START_FILES using autoconf.
2705 * s/usg5-4.h (LIB_STANDARD):
2706 * s/netbsd.h (START_FILES):
2707 * s/irix6-5.h (LIB_STANDARD):
2708 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2709 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2710 * s/freebsd.h (START_FILES):
2711 * s/darwin.h (START_FILES):
2712 * s/cygwin.h (START_FILES):
2713 * s/aix4-2.h (LIB_STANDARD):
2714 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2715 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2716 autoconf, not cpp.
2717
d43c06d6
DN
27182010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2719
28823648
DN
2720 Remove NEED_BSDTTY and NEED_UNISTD_H.
2721 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2722 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2723 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2724 <sys/ptyio.h> and <unistd.h>.
2725
aca00430
DN
2726 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2727
d43c06d6
DN
2728 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2729 * s/gnu.h (START_FILES): Remove empty definition.
2730
3e56b11d
JD
27312010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2732
2733 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2734
e3cf0cde
GM
27352010-05-06 Glenn Morris <rgm@gnu.org>
2736
2737 * Makefile.in (CPP, LN_S): Remove unused variables.
2738
774b9a60
SM
27392010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2740
2741 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2742
4ab92842
LM
27432010-05-05 Lawrence Mitchell <wence@gmx.li>
2744
2745 * m/sparc.h: Fix typo in earlier change.
2746
178f2507
SM
27472010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2748
2749 Misc tweaks.
2750 * eval.c (Fdefvaralias): Remove unintended nested if.
2751 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2752
80f00217 27532010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2754
2755 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2756
ef03a4e6
DN
27572010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2758
58eb6cf0
DN
2759 Remove BSD_PGRPS.
2760 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2761 * s/gnu-linux.h (BSD_PGRPS): Remove.
2762 * term.c (dissociate_if_controlling_tty):
2763 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2764 (init_sys_modes, reset_sys_modes):
2765 * emacs.c (main):
2766 * callproc.c (Fcall_process, child_setup): Remove code depending
2767 on BSD_PGRPS.
2768
ef03a4e6
DN
2769 Remove POSIX_SIGNALS.
2770 * s/usg5-4.h (POSIX_SIGNALS):
2771 * s/netbsd.h (POSIX_SIGNALS):
2772 * s/msdos.h (POSIX_SIGNALS):
2773 * s/ms-w32.h (POSIX_SIGNALS):
2774 * s/hpux11.h (POSIX_SIGNALS):
2775 * s/gnu.h (POSIX_SIGNALS):
2776 * s/gnu-linux.h (POSIX_SIGNALS):
2777 * s/freebsd.h (POSIX_SIGNALS):
2778 * s/darwin.h (POSIX_SIGNALS):
2779 * s/cygwin.h (POSIX_SIGNALS):
2780 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2781 * s/unixware.h:
2782 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2783 * process.c (create_process):
2784 * syssignal.h:
2785 * sysdep.c (wait_for_termination, init_signals):
2786 * process.c (create_process):
2787 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2788 remove all code that assumes the contrary.
2789
49628785
GM
27902010-05-04 Glenn Morris <rgm@gnu.org>
2791
27a2cdfc
GM
2792 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2793 variable.
2794 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2795 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2796 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2797 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2798 LD_SWITCH_SYSTEM_tmp.
2799 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2800 New variables, set by configure.
2801
eb21eab5
GM
2802 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2803 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2804 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2805 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2806 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2807
49628785
GM
2808 * s/aix4-2.h (C_SWITCH_SYSTEM):
2809 * m/alpha.h (C_SWITCH_MACHINE):
2810 Move to configure.in.
2811 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2812 New variables, set by configure.
2813 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2814 $c_switch_machine and $c_switch_system.
2815
7dff330b
DN
28162010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2817
2818 * s/hpux10-20.h (LIB_STANDARD): New definition.
2819 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2820 on it, not used anymore.
2821
53967e09
CY
28222010-05-03 Chong Yidong <cyd@stupidchicken.com>
2823
2824 * eval.c (internal_condition_case_n): Rename from
2825 internal_condition_case_2.
2826 (internal_condition_case_2): New function.
2827
2828 * xdisp.c (safe_call): Use internal_condition_case_n.
2829
2830 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2831 (internal_delete_file, Frename_file): Callers changed.
2832
2833 * buffer.c (Fkill_buffer):
2834 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2835
2836 * lisp.h: Update prototypes.
2837
3dee6fdb
GM
28382010-05-03 Glenn Morris <rgm@gnu.org>
2839
2840 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2841 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2842 (LIBXT): Set with configure, not cpp.
2843 (LIBX): Remove.
2844 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2845
a101e0fb
DN
28462010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2847
2848 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2849 The FreeBSD is not needed, the default works, Solaris version is
2850 not needed, and the remaining case is not supported by configure.
2851
f63d0028
JD
28522010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2853
2854 * xsmfns.c (CHDIR_OPT): New define.
2855 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2856 restarting emacs.
2857
2858 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2859 shut_down_emacs.
2860
2861 * emacs.c (USAGE1): Mention --chdir.
2862 (main): Handle --chdir.
2863 (standard_args): Add --chdir.
2864 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2865 #5552).
2866
e4814a9f
DN
28672010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2868
cd03c74a
DN
2869 Remove LD_SWITCH_MACHINE.
2870 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2871 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2872
c3a398a1
DN
2873 Clean up IRIX code.
2874 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2875 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2876
87e7285c
DN
2877 Clean up AIX code.
2878 * m/ibmrs6000.inp: Remove file, unused.
2879 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2880 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2881 definition ...
2882 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2883
80f00217
JB
2884 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2885 unused.
e4814a9f 2886
59ca28de
EZ
28872010-05-01 Eli Zaretskii <eliz@gnu.org>
2888
197daef4
EZ
2889 Emulate POSIX_SIGNALS on MS-Windows.
2890
2891 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2892 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2893
2894 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2895 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2896 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2897
80f00217
JB
2898 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2899 New stubs.
197daef4 2900
af7c7572
EZ
2901 Miscellaneous fixes of bidi display.
2902
59ca28de
EZ
2903 * xdisp.c (find_row_end): New function, refactored from display_line.
2904 (display_line): Use it.
017ea819
EZ
2905 (extend_face_to_end_of_line): In almost-filled rows, extend only
2906 if the row is R2L and not continued.
166e930d 2907 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2908 Preserve overlay and string info in row->end.
166e930d
EZ
2909 (insert_left_trunc_glyphs): Support addition of left truncation
2910 glyphs to R2L rows.
b47e0dcf 2911 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2912 glyph between adjacent windows. Fix a crash when a display string
2913 is continued to the next line. Don't return zero if cursor was
2914 found by `cursor' property of a display string.
b47e0dcf
EZ
2915 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2916 test for that explicitly.
59ca28de 2917
7acac9f4
GM
29182010-05-01 Glenn Morris <rgm@gnu.org>
2919
2920 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2921 for clarity.
2922 (OTHER_OBJ): Remove.
2923 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2924 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2925
45841e65
KK
29262010-05-01 Karel Klíč <kklic@redhat.com>
2927
2928 * fileio.c (Ffile_selinux_context): Context functions may return null.
2929
afc61943
DN
29302010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2931
80f00217 2932 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2933
5a1bb006
GM
29342010-04-30 Glenn Morris <rgm@gnu.org>
2935
2936 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2937 (OTHER_OBJ): Define as a separate variable, for clarity.
2938
210af043
J
29392010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2940
2941 * xsettings.c: include limits.h and update file comment.
2942
0a7df391
GM
29432010-04-30 Glenn Morris <rgm@gnu.org>
2944
d5096f16
GM
2945 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2946 Set with configure, not cpp.
2947 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2948
7eb1ac33
GM
2949 * Makefile.in (mallocobj): Remove.
2950 (otherobj): Simplify using @OTHER_OBJ@.
2951
517d086b
GM
2952 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2953 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2954 Don't bother making nsgui.h dependency platform-specific.
2955
0a7df391
GM
2956 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2957
d6d23852
SM
29582010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2959
d2630aef
SM
2960 * process.c (read_process_output, exec_sentinel): Don't burp if the
2961 sentinel/filter kills the current buffer (bug#6060).
2962
f9dddf52 2963 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2964 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2965 Remove unused var `args'.
2966 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2967 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2968 * doc.c (store_function_docstring): Use XSETCAR.
2969
f1e3642a
GM
29702010-04-28 Glenn Morris <rgm@gnu.org>
2971
faf535f8
GM
2972 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2973 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2974
c40f9449
GM
2975 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2976
658f86ca
GM
2977 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2978 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2979
bc0b5f61
GM
2980 * Makefile.in (FONT_OBJ): New, set by configure.
2981 (FONT_DRIVERS): Use $FONT_OBJ.
2982
294c50a0
GM
2983 * Makefile.in (LIBXMU): Set with configure, not cpp.
2984 * s/aix4-2.h (LIBXMU):
2985 * s/hpux10-20.h (LIBXMU):
2986 Remove definition, now set in configure.
2987
e6ec4e99
GM
2988 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2989
f1e3642a
GM
2990 * m/amdx86-64.h [i386]: Move this test to configure.in.
2991
c6ea2936
GM
29922010-04-27 Glenn Morris <rgm@gnu.org>
2993
8fdac2c3
GM
2994 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2995 * s/unixware.h (NEED_LIBW): Remove definition.
2996
986fb647
GM
2997 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2998 (TOOLKIT_LIBW): New, set by configure.
2999 (@X_TOOLKIT_TYPE@): No longer define it.
3000
c6ea2936
GM
3001 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3002 (MOTIF_LIBW): Set with configure, not cpp.
3003 * s/aix4-2.h (LIB_MOTIF):
3004 * s/gnu-linux.h (LIB_MOTIF):
3005 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3006
aaa36002
DN
30072010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3008
3009 Reduce CPP usage.
3010 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3011 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3012 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3013 definitions and undefs. Inline definitions in the only user.
3014 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3015
b678dd8b
GM
30162010-04-27 Glenn Morris <rgm@gnu.org>
3017
76cda504
GM
3018 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3019 since the defaults (set by the system file) are fine in most cases.
3020 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3021 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3022 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3023 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3024 Remove definitions, since they are set correctly in s/gnu-linux.h.
3025 * s/freebsd.h (START_FILES, LIB_STANDARD):
3026 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3027 * s/hpux10-20.h (START_FILES):
3028 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3029 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3030
b678dd8b
GM
3031 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3032 (MOTIF_LIBW): Use $LIBXP.
3033 (otherobj): Use $WIDGET_OBJ.
3034
9452ded1
DN
30352010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3036
7e10844c
DN
3037 * Makefile.in (LIBS_MACHINE): Remove, unused.
3038
9452ded1
DN
3039 Use autoconf instead of cpp for LIB_MATH.
3040 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3041 * s/cygwin.h (LIB_MATH): Likewise.
3042 * Makefile.in (LIB_MATH): Do not define with cpp.
3043 (LIBES): Use autoconf for LIB_MATH.
3044
fcebfc6a
KH
30452010-04-26 Kenichi Handa <handa@m17n.org>
3046
3047 * composite.c (Ffind_composition_internal): Fix the return value
3048 for an automatic composition.
3049
39e2ad1b
DN
30502010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3051
3052 Remove all NO_ARG_ARRAY uses.
3053 * fns.c (concat2, concat3, nconc2):
3054 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3055 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3056 * m/xtensa.h (NO_ARG_ARRAY):
3057 * m/template.h (NO_ARG_ARRAY):
3058 * m/sparc.h (NO_ARG_ARRAY):
3059 * m/sh3.h (NO_ARG_ARRAY):
3060 * m/mips.h (NO_ARG_ARRAY):
3061 * m/macppc.h (NO_ARG_ARRAY):
3062 * m/iris4d.h (NO_ARG_ARRAY):
3063 * m/intel386.h (NO_ARG_ARRAY):
3064 * m/ibms390x.h (NO_ARG_ARRAY):
3065 * m/ibms390.h (NO_ARG_ARRAY):
3066 * m/ibmrs6000.h (NO_ARG_ARRAY):
3067 * m/ia64.h (NO_ARG_ARRAY):
3068 * m/hp800.h (NO_ARG_ARRAY):
3069 * m/arm.h (NO_ARG_ARRAY):
3070 * m/amdx86-64.h (NO_ARG_ARRAY):
3071 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3072
adf4f59c
EZ
30732010-04-25 Eli Zaretskii <eliz@gnu.org>
3074
6bdf5d65
EZ
3075 * xdisp.c (display_line): Don't assume 2nd call to
3076 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3077 (iterate_out_of_display_property): New function, body from pop_it.
3078 (pop_it): Use it.
adf4f59c 3079
dfbbda83
GM
30802010-04-24 Glenn Morris <rgm@gnu.org>
3081
3082 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3083 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3084 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3085 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3086
2d4018aa
EZ
30872010-04-24 Eli Zaretskii <eliz@gnu.org>
3088
a49884a6
EZ
3089 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3090 use `get_next_display_element' and `set_iterator_to_next' to
3091 advance to the next character, when looking for the character that
3092 begins the next row.
3093
76db6fcc 3094 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3095 definition of "struct Lisp_Symbol".
3096
70eab5c1
GM
30972010-04-24 Glenn Morris <rgm@gnu.org>
3098
3099 * Makefile.in (CRT_DIR): New variable, set by configure.
3100 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3101 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3102
1ad4cc3d
DN
31032010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3104
e769f484
DN
3105 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3106
4196ff33
DN
3107 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3108
879b0ee4
DN
3109 Remove redundant flags.
3110 * s/freebsd.h (C_SWITCH_SYSTEM):
3111 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3112 * s/netbsd.h (C_SWITCH_SYSTEM):
3113 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3114 of these.
3115
03cbbcb8
DN
3116 Simplify m/intel386.h.
3117 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3118 user: ecrt0.c.
3119 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3120 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3121 the only user: s/unixware.h.
3122 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3123 from m/intel386.h.
3124 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3125 moved here from m/intel386.h.
3126
1ad4cc3d
DN
3127 * m/mips.h: Remove #if 0 code.
3128
8785b888
EZ
31292010-04-23 Eli Zaretskii <eliz@gnu.org>
3130
728588cc
EZ
3131 Fix display of composed characters from L2R scripts in bidi buffers.
3132 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3133 After advancing IT past the composition, resync the bidi iterator
3134 with IT's position. (Bug#5977)
3135
a63f80b4
DN
31362010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3137
3138 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3139 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3140
ff5dec5c
SM
31412010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3144
8785b888
EZ
31452010-04-23 Eli Zaretskii <eliz@gnu.org>
3146
58ccf243 3147 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3148 * xdisp.c (pop_it): When the stack is popped after displaying
3149 from a string, bidi-iterate to exit from the text portion covered
3150 by the `display' property or overlay. (Bug#5988, bug#5920)
3151
feeb1604
DN
31522010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3153
8e324eb6
DN
3154 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3155 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3156
809fcaba
DN
3157 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3158 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3159
ed710380
DN
3160 Simplify STARTFILES definition.
3161 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3162 relying on Makefile.in to define it.
3163 * s/cygwin.h (START_FILES): Likewise.
3164 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3165
feeb1604
DN
3166 Clean up Solaris code.
3167 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3168 (LIB_MOTIF): Remove, configure takes care of this.
3169 (NOT_USING_MOTIF): Remove, unused.
3170 * xrdb.c: Remove #if 0-ed #include.
3171 (SYSV): Remove conditional for old SysV.
3172 * sysdep.c (closedir): Remove conditional code for Solaris,
3173 Solaris has closedir.
3174
a0d0b563
JD
31752010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3176
3177 * xsettings.c (read_and_apply_settings): Check if current_font is
3178 NULL before strcmp (Bug#6001).
3179
56bae7c7
DN
31802010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3181
3182 Clean up HP-UX files.
3183 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3184 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3185 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3186 * s/hpux10-20.h: ... to the only user, here.
3187
372b7a95
EZ
31882010-04-21 Eli Zaretskii <eliz@gnu.org>
3189
3190 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3191 use buffer-local values of paragraph-start and paragraph-separate.
3192 <paragraph_start_re, paragraph_separate_re>: Rename from
3193 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3194 (Bug#5992)
3195
f904c0f9
JD
31962010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3197
3198 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3199 current_tool_bar_style are new.
3200 (store_config_changed_event): Rename from store_font_changed_event.
3201 (XSETTINGS_TOOL_BAR_STYLE): New define.
3202 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3203 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3204 HAVE_XFT.
3205 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3206 store_config_changed_event.
f904c0f9
JD
3207 (parse_settings): Rename from parse_xft_settings. Read
3208 non-xft xsettings outside #ifdef HAVE_XFT.
3209 (read_settings): Renamed from read_xft_settings.
3210 (apply_xft_settings): Take current settings as parameter. Do not
3211 call read_(xft)_settings.
3212 (read_and_apply_settings): New function.
3213 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3214 read_and_apply_settings if there are settings to be read.
3215 (init_xsettings): Renamed from init_xfd_settings.
3216 Call read_and_apply_settings unconditionally.
3217 (xsettings_initialize): Call init_xsettings.
3218 (Ftool_bar_get_system_style): New function.
3219 (syms_of_xsettings): Define Qmonospace_font_name and
3220 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3221 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3222 dynamic-setting.
31a01b90 3223 Move misplaced HAVE_GCONF
f904c0f9
JD
3224
3225 * xsettings.h (Ftool_bar_get_system_style): Declare.
3226
3227 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3228 Qtext, Qboth, Qboth_horiz are new.
3229 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3230 Vtool_bar_style, tool_bar_max_label_size.
3231
3232 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3233
3234 * keyboard.c: QClabel is new.
3235 (parse_tool_bar_item): Take out QClabel from tool bar items.
3236 Try to construct a label if ther is no QClabel.
3237 (syms_of_keyboard): Intern :label as QClabel.
3238
3239 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3240 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3241 New.
3242
3243 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3244 dynamic-setting.el.
3245
3246 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3247 (xg_make_tool_item, xg_show_toolbar_item): New function.
3248 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3249 Call xg_make_tool_item to make a tool bar item.
3250 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3251
3252 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3253 into account for toolbars.
3254
c632dfda
JD
32552010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3256
3257 * data.c (make_blv): Declarations before code (Bug#5993).
3258
10efe302
GM
32592010-04-21 Glenn Morris <rgm@gnu.org>
3260
3261 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3262 Define using autoconf, not cpp.
3263 (LIBXSM): New variable, set by autoconf.
3264 (LIBXT): Use $LIBXSM.
3265
4285ac5a
DN
32662010-04-21 Dan Nicolaescu <local_user@dannlt>
3267
3ec759e7
DN
3268 Remove NOMULTIPLEJOBS, unused.
3269 * s/template.h (NOMULTIPLEJOBS):
3270 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3271
4285ac5a
DN
3272 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3273 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3274 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3275 detects -znocombreloc and passes it to the linker
3276 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3277
2807228d
GM
32782010-04-21 Glenn Morris <rgm@gnu.org>
3279
3280 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3281
574c05e2
KK
32822010-04-21 Karel Klíč <kklic@redhat.com>
3283
3284 * Makefile.in (LIBSELINUX_LIBS): New.
3285 (LIBES): Add $LIBSELINUX_LIBS.
3286 * eval.c, lisp.h (call7): New function.
3287 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3288 (Ffile_selinux_context, Fset_file_selinux_context):
3289 New functions.
3290 (Fcopy_file): New parameter preserve-selinux-context.
3291 (Frename_file): Preserve selinux context when renaming by copy-file.
3292
91eac4bb 32932010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3294 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3295
50426a04
JB
3296 Don't depend on cm.c or termcap.c on Windows, use stubs.
3297 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3298 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3299 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3300 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3301 (sys_tputs, sys_tgetstr): New stubs.
3302 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3303 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3304
938efb77
JB
33052010-04-20 Juanma Barranquero <lekktu@gmail.com>
3306
3307 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3308
b4bf28b7
SM
33092010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3310
8b1e1112
SM
3311 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3312 Just signal a warning rather than an error when inside a let.
3313 (Fmake_variable_frame_local): Add the same test.
3314
933ac235
SM
3315 * font.c (syms_of_font): Make the style table vars read-only.
3316
b4bf28b7
SM
3317 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3318 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3319
3320 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3321
93d68d0c
EZ
33222010-04-20 Eli Zaretskii <eliz@gnu.org>
3323
3324 Fix R2L paragraph display on TTY.
3325
3326 * xdisp.c (unproduce_glyphs): New function.
3327 (display_line): Use it when produced glyphs are discarded from R2L
3328 glyph rows.
3329 (append_composite_glyph): In R2L rows, prepend the glyph rather
3330 than appending it.
3331
3332 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3333 rather than append it. Set up the resolved_level and bidi_type
3334 attributes of the appended glyph.
283ccc18
EZ
3335 (produce_special_glyphs): Mirror the backslash continuation
3336 character in R2L lines.
93d68d0c 3337
283ccc18 3338 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3339
283ccc18
EZ
3340 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3341 append_stretch_glyph.
3342 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3343 off-by-one error in computing x at end of text in the row.
3344 (append_stretch_glyph): In reversed row, prepend the glyph rather
3345 than append it. Set resolved_level and bidi_type of the glyph.
3346 (extend_face_to_end_of_line): If the row is reversed, prepend a
3347 stretch glyph whose width is such that the rightmost glyph will be
3348 drawn at the right margin of the window. Fix off-by-one error on
3349 TTY frames in testing whether a line needs face extension. Fix
3350 face extension at ZV. If this is the last glyph row, use
3351 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3352 region face.
3353 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3354 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3355 row->continuation_lines_width.
283ccc18
EZ
3356 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3357 are at ZV. Fixes a crash when reseated to ZV by
3358 try_window_reusing_current_matrix.
45903529
EZ
3359 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3360 which happens with R2L glyph rows. Fixes a crash when inserting a
3361 character at end of an R2L line.
283ccc18
EZ
3362 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3363 treat them as having zero-width characters. Improve comments.
3364 Don't reverse pos_before and pos_after for reversed glyph rows.
3365 Set cursor.x to negative value when the cursor might be on the
3366 left fringe.
3367 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3368 left fringe, not the right one.
f951a506
EZ
3369 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3370 (erase_phys_cursor): For reversed cursor_row, support cursor on
3371 the left fringe.
3372
283ccc18
EZ
3373 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3374 of continuation indicators on the fringes.
3375 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3376 left fringe.
3377
f951a506
EZ
3378 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3379 draw cursor on the left fringe.
3380
3381 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3382 cursor on the left fringe.
3383
f951a506
EZ
3384 * dispnew.c (update_text_area): Handle reversed desired rows when
3385 the cursor is on the left fringe.
3386 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3387 below, not by 0, for when the cursor is on the left fringe.
3388
3bb49aaf
JD
33892010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3390
3391 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3392 widget is a scrollbar.
3393
c0be27fd
KH
33942010-04-20 Kenichi Handa <handa@m17n.org>
3395
3396 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3397 only when the arg CHARSET_LIST is nil.
3398
ce5b453a
SM
33992010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3400
3401 Make variable forwarding explicit rather the using special values.
3402 Basically, this makes the structure of buffer-local values and object
3403 forwarding explicit in the type of Lisp_Symbols rather than use
3404 special Lisp_Objects for that. This tends to lead to slightly more
3405 verbose code, but is more C-like, simpler, and makes it easier to make
3406 sure we handled all cases, among other things by letting the compiler
3407 help us check it.
3408 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3409 Removing forwarding objects.
3410 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3411 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3412 explicit rather than hiding them inside Lisp_Object "values".
3413 (XFWDTYPE): New macro.
3414 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3415 (XBUFFER_LOCAL_VALUE): Remove.
3416 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3417 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3418 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3419 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3420 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3421 Remove the Lisp_Misc_* header.
3422 (struct Lisp_Buffer_Local_Value): Redefine.
3423 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3424 (struct Lisp_Misc_Any): Add filler to get the right size.
3425 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3426 Lisp_Intfwd.
3427 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3428 (DEFVAR_KBOARD): Allocate a forwarding object.
3429 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3430 (let_shadows_global_binding_p): New function.
3431 (union Lisp_Val_Fwd): New type.
3432 (make_blv): New function.
3433 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3434 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3435 (swap_in_symval_forwarding, find_symbol_value, Fset)
3436 (let_shadows_buffer_binding_p, set_internal, default_value)
3437 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3438 (Fkill_local_variable, Fmake_variable_frame_local)
3439 (Flocal_variable_p, Flocal_variable_if_set_p)
3440 (Fvariable_binding_locus):
3441 * xdisp.c (select_frame_for_redisplay):
3442 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3443 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3444 * frame.c (store_frame_param):
3445 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3446 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3447 value structure.
3448 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3449 (clone_per_buffer_values): Only adjust markers into the current buffer.
3450 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3451 (Fbuffer_local_value, set_buffer_internal_1)
3452 (swap_out_buffer_local_variables):
3453 Adapt to the new symbol value structure.
3454 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3455 (defvar_per_buffer): Take a new arg for the fwd object.
3456 (buffer_lisp_local_variables): Return a proper alist (different fix
3457 for bug#4138).
3458 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3459 (Fgarbage_collect): Don't handle buffer_defaults specially.
3460 (mark_object): Handle new symbol value structure rather than the old
3461 special Lisp_Misc_* objects.
3462 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3463 * term.c (set_tty_color_mode):
3464 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3465 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3466 a buffer_local_flags.
3467 * print.c (print_object): Get rid of impossible forwarding objects.
3468
fd3998ff
EZ
34692010-04-19 Eli Zaretskii <eliz@gnu.org>
3470
3471 * bidi.c (bidi_get_type, bidi_get_category)
3472 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3473 (bidi_type_of_next_char, bidi_level_of_next_char):
3474 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3475
e42cd1a7
JB
34762010-04-19 Juanma Barranquero <lekktu@gmail.com>
3477
3478 * dired.c (Ffile_attributes): Fix typo in docstring.
3479
6e104790 34802010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3481
3482 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3483 NSInteger (Bug#5811).
3484
6e104790 34852010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3486
3487 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3488 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3489
6e104790 34902010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3491
3492 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3493
6e104790
SM
34942010-04-19 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3497 terminal frames (Bug#5837).
3498
37dcfea0
EZ
34992010-04-19 Eli Zaretskii <eliz@gnu.org>
3500
d1da276f
EZ
3501 * .gdbinit (xsubchartable): New command.
3502
37dcfea0
EZ
35032010-04-19 Eli Zaretskii <eliz@gnu.org>
3504
3505 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3506 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3507 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3508 and
3509 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3510
e9515805
SM
35112010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3512
3513 * alloc.c (Fpurecopy): Hash-cons if requested.
3514 (syms_of_alloc): Update purify-flag docstring.
3515
22aa44a8
JD
35162010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3517
3518 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3519 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3520
ebb5722e
EZ
35212010-04-17 Eli Zaretskii <eliz@gnu.org>
3522
3523 Fix a crash when an NSM character is inserted at BEGV.
3524
3525 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3526 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3527 NEUTRAL_B or UNKNOWN_BT.
3528
0f4442ef
EZ
35292010-04-16 Eli Zaretskii <eliz@gnu.org>
3530
3531 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3532 other rows with cursor unless they are different from this row and
3533 this row is part of a continued line. (Bug#5943)
3534
7d4e45f8
DN
35352010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3536
3537 * s/freebsd.h: Restore osreldate.h include.
3538 Suggested by Naohiro Aota.
3539
5ba5ec85
J
35402010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3541
3542 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3543
20af301d
CY
35442010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3545
3546 * s/cygwin.h: Avoid linking against static libgcc.
3547
a4b000fb
JL
35482010-04-15 Juri Linkov <juri@jurta.org>
3549
3550 * window.c: Add Qscroll_command.
3551 Remove Vscroll_preserve_screen_position_commands.
3552 (window_scroll_pixel_based, window_scroll_line_based): Check the
3553 `scroll-command' property on the last command instead of searching
3554 the last command in Vscroll_preserve_screen_position_commands.
3555 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3556 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3557 (scroll-preserve-screen-position): Doc fix.
3558 (Vscroll_preserve_screen_position_commands): Remove variable.
3559
bc319ba4
DN
35602010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3561
6bb24457
DN
3562 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3563
19d4c244
DN
35642010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3565
3566 Reduce cpp use in Makefile.in.
3567 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3568 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3569 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3570 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3571 (CRT0_COMPILE): Remove, inline it in the only user.
3572
32129746
JL
35732010-04-14 Juri Linkov <juri@jurta.org>
3574
3575 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3576 `scroll-up-command' and `M-v' from `scroll-down' to
3577 `scroll-down-command'.
3578
9013a7f8
JL
35792010-04-14 Juri Linkov <juri@jurta.org>
3580
3581 * window.c (Vscroll_preserve_screen_position_commands): New variable
3582 with the default value as the list of Qscroll_down and Qscroll_up.
3583 (window_scroll_pixel_based, window_scroll_line_based): Search the
3584 last command in the list Vscroll_preserve_screen_position_commands
3585 instead of comparing with Qscroll_up and Qscroll_down.
3586
4bef8d26
JD
35872010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3588
92848133
JD
3589 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3590 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3591 does that.
3592
4bef8d26
JD
3593 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3594 to zero.
3595
58b963f7
SM
35962010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3597
84164a0d
SM
3598 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3599
2b0a91e7
SM
3600 Try to solve the problem of spurious EOF chars in long lines of text
3601 sent to interactive subprocesses.
3602 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3603 (system_process_attributes): Remove unused var `ttotal'.
3604 * process.c (send_process): Don't bother breaking long line with EOF
3605 chars when talking to ttys any more.
3606 (wait_reading_process_output): Output a warning when called in such
3607 a way that it could block without being interruptible.
3608
58b963f7
SM
3609 Try to detect file modification within the same second.
3610 * buffer.h (struct buffer): New field modtime_size.
3611 * buffer.c (reset_buffer): Initialize it.
3612 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3613 (Fverify_visited_file_modtime): Check it.
3614 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3615 (Fset_visited_file_modtime): Set (or clear) it.
3616
01f5787b
SM
36172010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3618
3619 * process.c (status_notify): Remove unused var `ro'.
3620
83725342
JD
36212010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3622
3623 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3624 more than one visual (Bug#5938).
3625
b9465836
DN
36262010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3627
50426a04
JB
3628 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3629 Undefine.
b9465836 3630
8d9c8ece
DN
36312010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3632
b1f52161
DN
3633 Remove C_SWITCH_SYSTEM_TEMACS.
3634 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3635 (malloc, realloc, free): Use emacs, not temacs for conditional
3636 definition.
3637
3638 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3639 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3640
8d9c8ece
DN
3641 Use autoconf, not cpp for some variables.
3642 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3643 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3644 (ALL_CFLAGS): Use them as make variables.
3645 (really-lwlib, really-oldXMenu): Do not pass them.
3646
1ecb2d3f
JD
36472010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3648
3649 * xmenu.c (apply_systemfont_to_dialog): New.
3650 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3651
3a4fa2f2
SM
36522010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3653
97e53006
SM
3654 * process.c (exec_sentinel): Preserve current-buffer.
3655
3a4fa2f2
SM
3656 * process.c (read_process_output): Move the save-current-buffer to
3657 apply to both the filter and the non-filter branches.
3658
88df7221
DN
36592010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3660
3661 * s/msdos.h (UNEXEC): New definition.
3662
5634ff85
YM
36632010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3664
6eff5c3d
YM
3665 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3666 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3667
3668 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3669 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3670 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3671 TRY_WINDOW_CHECK_MARGINS.
3672
3673 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3674 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3675 width only when it is for padding.
5634ff85 3676
b13aef54
J
36772010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3678
3679 * xfns.c (Fx_show_tip): Call try_window in a loop until
3680 fonts_changed_p is zero (Bug#2423).
3681
21d28484
EZ
36822010-04-08 Eli Zaretskii <eliz@gnu.org>
3683
3684 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3685 the end of TEXT_AREA. (Bug#5856)
3686
0269ef77
JD
36872010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3688
3689 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3690 HAVE_GCONF.
3691
5930fe97
EZ
36922010-04-08 Eli Zaretskii <eliz@gnu.org>
3693
3694 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3695 prev.orig_type, for resolving type of NSM. (Bug#5858)
3696
99852628
JD
36972010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3698
3699 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3700 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3701 in current_font.
3702 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3703 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3704 New functions.
3705 (syms_of_xsettings): Initialize current_font.
3706 defsubr Sfont_get_system_normal_font.
99852628
JD
3707
3708 * xsettings.h (Ffont_get_system_normal_font,
3709 xsettings_get_system_normal_font): Declare.
3710
3711 * xfns.c (extern xlwmenu_default_font): Remove.
3712 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3713 to xlwmenu.c.
3714
3715 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3716 menu items in UTF-8.
3717
3718 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3719 (apply_systemfont_to_menu): New function.
3720 (set_frame_menubar, create_and_show_popup_menu): Call
3721 apply_systemfont_to_menu.
3722
7fc874c4
J
37232010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3724
3725 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3726 FRAME_LINE_TO_PIXEL_Y.
3727
3728 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3729 pixelwidth/height.
3730
863bf481
DN
37312010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3732
5e5a3b92
DN
3733 Simplify code for HP machines.
3734 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3735 for GNU_LINUX, not needed.
3736 (UNEXEC, NEED_BSDTTY): Move definitions...
3737 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3738
863bf481
DN
3739 * m/iris4d.h (UNEXEC): Move definition ...
3740 * s/irix6-5.h (UNEXEC): ... here.
3741
3e6bec3b
JD
37422010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3743
3744 * xfns.c (set_machine_and_pid_properties): New function.
3745 (Fx_create_frame): Call set_machine_and_pid_properties.
3746
2912322b
SM
37472010-04-03 Eli Zaretskii <eliz@gnu.org>
3748
1502b819
EZ
3749 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3750 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3751 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3752
2912322b
SM
3753 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3754 in this function. (Bug#5703)
3755
37562010-04-03 Chong Yidong <cyd@stupidchicken.com>
3757
3758 * nsterm.h: Fix last change.
3759
c435b432
DN
37602010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3761
a568f507
DN
3762 * m/intel386.h (NO_REMAP): Move definition ...
3763 * s/msdos.h (NO_REMAP): ... here.
3764
4cd9f6c2
DN
3765 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3766
c435b432
DN
3767 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3768 used on those platforms.
3769
42a2c622
DN
37702010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3771
3772 Remove extern errno declarations.
3773 * xterm.c:
3774 * xrdb.c:
3775 * w32term.c:
3776 * unexec.c:
3777 * unexaix.c:
3778 * sysdep.c:
3779 * process.c:
3780 * lread.c:
3781 * keyboard.c:
3782 * floatfns.c:
3783 * filelock.c:
3784 * fileio.c:
3785 * emacs.c (main):
3786 * ecrt0.c:
3787 * dispnew.c:
3788 * callproc.c:
3789 * buffer.c: Remove errno extern declarations.
3790 * s/netbsd.h (NEED_ERRNO): Remove.
3791
8224f93d
DN
37922010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3793
3794 Remove all uses of LIBX11_SYSTEM.
3795 * Makefile.in (LIBX11_SYSTEM): Remove.
3796 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3797 instead.
3798
814062c7
EZ
37992010-04-01 Eli Zaretskii <eliz@gnu.org>
3800
ed68db4d
EZ
3801 Remove support for DJGPP v1.x (bug#5813).
3802
3803 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3804 * s/msdos.h:
3805 * unexec.c (make_hdr, copy_text_and_data):
3806 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3807 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3808 (IT_set_terminal_modes, __write, _rename, gethostname)
3809 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3810 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3811 the value of __DJGPP__.
ed68db4d
EZ
3812 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3813 compatibility code.
8224f93d
DN
3814 * lread.c:
3815 * gmalloc.c (memalign):
3816 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3817 * emacs.c (main):
3818 * dosfns.c (init_dosfns):
ed68db4d
EZ
3819 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3820
52f4d8d5
EZ
38212010-04-01 Eli Zaretskii <eliz@gnu.org>
3822
814062c7
EZ
3823 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3824 string with `cursor' property comes from an `after-string'
3825 overlay. (Bug#5816)
3826
0dc2e11d
GM
38272010-04-01 Glenn Morris <rgm@gnu.org>
3828
3829 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3830 Define as Makefile variables.
3831 (LIBX): Use above variables rather than directly using autoconf.
3832
1d29df59
DN
38332010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3834
3835 Clean up BSD_SYSTEM use.
3836 * xterm.c:
3837 * process.c:
3838 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3839 for including <sys/ioctl.h>.
3840 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3841 code is only used for MSDOS.
3842
1546c559
JL
38432010-03-31 Juri Linkov <juri@jurta.org>
3844
3845 * image.c: Add `Qextension_data'.
3846 (syms_of_image): Initialize and staticpro `Qextension_data'.
3847 (Fimage_metadata): Rename from `Fimage_extension_data'.
3848 (gif_load): Put GIF extension data to the property
3849 `Qextension_data'.
3850
6521c534
CY
38512010-03-31 Chong Yidong <cyd@stupidchicken.com>
3852
3853 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3854 * nsterm.h: Fix prototype.
3855
52c30783
EZ
38562010-03-31 Eli Zaretskii <eliz@gnu.org>
3857
3858 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3859 trailing whitespace in right-to-left rows.
3860
855a0da7
SM
38612010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3862
3863 Get rid of the direct_output optimizations.
3864 * keyboard.c (nonundocount): Remove extern declaration.
3865 (command_loop_1): Remove brittle optimisation for cheap and
3866 common operations.
3867 * xdisp.c (redisplay_internal): Don't bother checking
3868 redisplay_performed_directly_p any more.
3869 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3870 any more.
3871 * dispnew.c (redisplay_performed_directly_p)
3872 (direct_output_for_insert, direct_output_forward_char):
3873 * dispextern.h (redisplay_performed_directly_p)
3874 (direct_output_for_insert, direct_output_forward_char): Remove.
3875 * cmds.c (nonundocount): Make it static.
3876
85738751 38772010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3878
3879 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3880
85738751 38812010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3882
3883 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3884 invisible (Bug#5766).
3885
85738751 38862010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3887
855a0da7
SM
3888 * xdisp.c (x_consider_frame_title, update_window_cursor):
3889 Remove HAVE_NS conditionals.
194d44e7 3890 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3891
3892 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3893 filename for the title.
3894 (ns_set_doc_edited): Do nothing if the selected window is a
3895 minibuffer window.
3896
3897 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3898 ns_set_doc_edited.
3899
3900 * nsterm.m: Remove unneeded prototype.
3901
85738751 39022010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3903
3904 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3905 in the DOC file. (Bug#5336)
3906
85738751 39072010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3908
3909 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3910
75d1428c
SM
39112010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3912
3913 * window.c (keys_of_window): Remove redundant/overridden bindings.
3914
82043cfb
EZ
39152010-03-30 Eli Zaretskii <eliz@gnu.org>
3916
3917 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3918 Restore original behavior when the iterator is not bidi_p.
3919
b5dd0ae7
DN
39202010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3921
3922 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3923
bd924a5d
EZ
39242010-03-30 Eli Zaretskii <eliz@gnu.org>
3925
3926 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3927 are outside the range of cached character positions.
3928
3580374b
JB
39292010-03-30 Juanma Barranquero <lekktu@gmail.com>
3930
3931 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3932
a7b02820
EZ
39332010-03-30 Eli Zaretskii <eliz@gnu.org>
3934
3935 Initial support for bidirectional editing.
3936
3937 * Makefile.in (obj): Include bidi.o.
3938 (bidi.o): New target.
3939
3940 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3941 ($(BLD)/bidi.$(O)): New target.
3942
3943 * bidi.c: New file.
3944
3945 * buffer.h (struct buffer): New members bidi_display_reordering
3946 and bidi_paragraph_direction.
3947
3948 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3949 and bidi_paragraph_direction.
3950 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3951 and bidi-paragraph-direction.
3952 (Fbuffer_swap_text): Swap the values of
3953 bidi_display_reordering and bidi_paragraph_direction.
3954
3955 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3956 (bidi_type_t, bidi_dir_t): New types.
3957 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3958 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3959 prev_stop, base_level_stop, and eol_pos.
3960 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3961 (IT_STACK_SIZE): Enlarge to 5.
3962 (struct glyph_row): New member reversed_p.
3963 <string_buffer_position>: Update prototype.
3964 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3965 glyph_row if bidi_it.paragraph_dir == R2L.
3966 (struct glyph): New members resolved_level and bidi_type.
3967
3968 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3969 processing or buffer's direction is right-to-left.
3970 (prepare_desired_row): Preserve the reversed_p flag.
3971 (row_equal_p): Compare the reversed_p attributes as well.
3972
3973 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3974 bidi_init_it and set it->paragraph_embedding from the current
3975 buffer's value of bidi_paragraph_direction.
3976 (reseat_1): Initialize bidi_it.first_elt.
3977 (set_iterator_to_next, next_element_from_buffer): Use the value of
3978 paragraph_embedding to determine the paragraph direction.
3979 (set_iterator_to_next): Under bidi reordering, call
3980 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3981 new_paragraph flag is set in the bidi iterator.
3982 (next_element_from_buffer): If bidi_it.first_elt is set,
3983 initialize paragraph direction and find the first character to
3984 display in the visual order. If reseated to a middle of a line,
3985 prime the bidi iterator starting at the line's beginning. Handle
3986 the situation where we overstepped stop_charpos due to
3987 non-linearity of the bidi iteration. Likewise for when we back up
3988 beyond the previous stop_charpos. When moving across stop_charpos,
3989 record it in prev_stop.
3990 (display_line): Set row->end and it->start for the next row to the
3991 next character in logical order. Always extend reversed_p rows to
3992 the end of line, even if they end at ZV. Copy the reversed_p flag
3993 to the next glyph row. Keep calling set_cursor_from_row for
3994 bidi-reordered rows even if we already have a possible candidate
3995 for cursor position. Set row_end after all the row's glyphs have
3996 been produced, by looping over the glyphs. Record the position
3997 after EOL in it->eol_pos, and use it to set end_pos of the last
3998 row produced for a continued line.
3999 <Qright_to_left, Qleft_to_right>: New variables.
4000 (syms_of_xdisp): Initialize and staticpro them.
4001 (string_buffer_position_lim): New function.
4002 (string_buffer_position): Most of code moved to
4003 string_buffer_position_lim. Last argument and return value are
4004 now EMACS_INT; all callers changed.
4005 (set_cursor_from_row): Rewritten to support bidirectional text and
4006 reversed glyph rows.
4007 (text_outside_line_unchanged_p, try_window_id): Disable
4008 optimizations if we are reordering bidirectional text and the
4009 paragraph direction can be affected by the change.
4010 (append_glyph, append_composite_glyph)
4011 (produce_image_glyph, append_stretch_glyph): Set the
4012 resolved_level and bidi_type members of each glyph.
4013 (append_glyph): If the glyph row is reversed, prepend the glyph
4014 rather than appending it.
4015 (handle_stop_backwards): New function.
4016 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4017 (reseat): call handle_stop_backwards to recompute prev_stop and
4018 base_level_stop for the new position.
4019 (handle_invisible_prop): Under bidi iteration, skip invisible text
4020 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4021 paragraph direction. Update IT->prev_stop after skipping
4022 invisible text.
4023 (move_it_in_display_line_to): New variables prev_method
4024 and prev_pos. Compare for strict equality in
4025 BUFFER_POS_REACHED_P.
4026 (try_cursor_movement): Examine all the candidate rows that occlude
4027 point, to return the best match. If rows are bidi-reordered
4028 and point moved backwards, back up to the row that is not a
4029 continuation line, and start looking for a suitable row from
4030 there.
4031
4032 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4033 rather than appending, if the glyph_row's reversed_p flag is set.
4034 Set the resolved_level and bidi_type members of each glyph.
4035
4036 * .gdbinit (pbiditype): New command.
4037 (pgx): Use it to display bidi level and type of the glyph.
4038 (pitx): Display some bidi information about the iterator.
4039 (prowlims, pmtxrows): New commands.
4040
32a8894e
DN
40412010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4042
4043 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4044 * s/usg5-4.h (LIBS_DEBUG):
4045 * s/irix6-5.h (C_DEBUG_SWITCH):
4046 * s/gnu-linux.h (LIBS_DEBUG):
4047 * s/darwin.h (LIBS_DEBUG):
4048 * s/bsd-common.h (LIBS_DEBUG):
4049 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4050 * m/iris4d.h (LIBS_DEBUG):
4051 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4052
4053 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4054 (LIBS_DEBUG): Remove definition.
4055
649dbf36
CY
40562010-03-27 Chong Yidong <cyd@stupidchicken.com>
4057
4058 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4059 Windows.
4060
cad4261f
YM
40612010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4062
4063 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4064 `connect' (Bug#5723).
4065
cd591dbc
HE
40662010-03-25 Helmut Eller <eller.helmut@gmail.com>
4067
4068 * process.c (Fmake_network_process): Call `select' for interrupted
4069 `connect' rather than creating new socket (Bug#5173).
4070
e867cb5d 40712010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4072
4073 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4074
4075 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4076
4077 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4078
e867cb5d 40792010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4080
4081 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4082 XLoadQueryFont.
4083
e867cb5d 40842010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4085
4086 * coding.c (decode_coding_ccl): Fix previous change for the
4087 multibyte case.
fb608df3
KH
4088 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4089 case that the output buffer is fullfilled.
4090 (encode_coding): Setup ccl program here.
fbdc1721 4091
5845f0ed
DN
40922010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4093
814fb708
DN
4094 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4095
5845f0ed
DN
4096 Simplify LIBS_MACHINE definitions.
4097 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4098 * m/iris4d.h (LIBS_MACHINE): Likewise.
4099 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4100 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4101 * s/netbsd.h: Remove commented out code.
5845f0ed 4102
b7064064
DN
41032010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4104
df7734b2
DN
4105 Remove dead code dealing with POSIX_SIGNALS.
4106 * atimer.c (set_alarm): Remove dead code, all USG systems define
4107 POSIX_SIGNALS.
4108 * data.c (arith_error): Likewise.
4109 * keyboard.c (input_available_signal, handle_user_signal)
4110 (interrupt_signal): Likewise.
4111 * process.c (sigchld_handler): Likewise.
4112 (create_process): Remove if 0 code. Remove HPUX conditional when
4113 !defined (POSIX_SIGNALS), it cannot be true.
4114 * syssignal.h: Remove USG5_4 and USG conditionals when
4115 !POSIX_SIGNALS, they cannot be true.
4116
b7064064
DN
4117 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4118 NO_SOCK_SIGIO, not used anymore.
4119
55da5ee3
DN
41202010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4121
0be96e3a
DN
4122 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4123 support vax on BSDs.
4124
55da5ee3
DN
4125 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4126 * s/aix4-2.h (ORDINARY_LINK): ... here.
4127
c0282183
AS
41282010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4129
82c3d67a
AS
4130 * Makefile.in (abs_builddir): Define.
4131 (bootstrap_exe): Use it.
4132 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4133
3613edce
SM
41342010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4135
4136 * Makefile.in (bootstrap_exe): Use an absolute name.
4137
7f110ddc
DN
41382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4139
22e87574
DN
4140 Remove support for old GNU/Linux using libc version 5.
4141 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4142 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4143
05a670e6
DN
4144 Consolidate redundant definitions in s/bsd-common.h.
4145 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4146 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4147 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4148 doing it in all files that include this one.
4149 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4150 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4151 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4152 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4153 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4154 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4155 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4156 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4157 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4158
2968f561
DN
4159 Consolidate redundant definitions.
4160 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4161 it's undefined in all files that include this one.
4162 (POSIX_SIGNALS): Define here instead of doing it in all files that
4163 include this one.
4164 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4165 (POSIX_SIGNALS): Do not define.
4166 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4167 (POSIX_SIGNALS): Do not define.
4168 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4169 (POSIX_SIGNALS): Do not define.
4170
15d25dc0
DN
4171 Remove support for old UNIX System V systems.
4172 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4173 * s/usg-5-4-2.h: Remove.
4174
07e339e4
DN
4175 Remove support for Solaris on PPC and for old versions.
4176 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4177 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4178 that cancel each other.
4179 * s/sol2-3.h:
4180 * s/sol2-4.h:
4181 * s/sol2-5.h: Remove.
4182 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4183 (NO_REMAP): Remove, unused.
4184 (UNEXEC): Move definition ...
4185 * s/aix4-2.h (UNEXEC): ... here.
4186
7f110ddc
DN
4187 * s/openbsd.h: Remove support for non-ELF and for systems that do
4188 not support shared libraries.
4189 * s/netbsd.h:
4190 * s/freebsd.h: Likewise.
4191
605f35cd
DN
41922010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4193
4194 Remove non-working support for lynxos 3.0.
4195 * s/lynxos.h: Remove file.
4196
4197 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4198 COFF_BSD_SYMBOLS, nothing defines it anymore.
4199
aed71cf4
DN
42002010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4201
4202 Remove obsolete uses of HAVE_SHM.
4203 * emacs.c (standard_args):
4204 (Fdump_emacs):
4205 (syms_of_emacs): Remove code depending on HAVE_SHM.
4206
4207 * alloc.c: Remove HAVE_SHM dependent definition.
4208
4209 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4210
aded53ff
GM
42112010-03-18 Glenn Morris <rgm@gnu.org>
4212
17284745
GM
4213 * emacs.c (USAGE4): Hard-code bug address.
4214 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4215 (bug_reporting_address): Remove.
4216 (main): Don't call bug_reporting_address.
4217
aded53ff
GM
4218 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4219 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4220
303500aa
CY
42212010-03-15 Chong Yidong <cyd@stupidchicken.com>
4222
4223 * xfns.c (Fx_create_frame):
4224 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4225 on left.
4226
cef3058f
CY
42272010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4228
4229 * editfns.c (Fformat): Account for string precision when computing
4230 field width (Bug#5710).
4231
a647d59d
CY
42322010-03-12 Chong Yidong <cyd@stupidchicken.com>
4233
4fa42018
CY
4234 * xfns.c (Fx_create_frame): Set default to Qright.
4235
a647d59d
CY
4236 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4237 all window systems.
4238
6da23aaa
EZ
42392010-03-12 Eli Zaretskii <eliz@gnu.org>
4240
a96f6398 4241 These changes remove termcap.c from the build on Posix platforms.
83d02def 4242 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4243 (MSDOS_OBJ): ...to here.
4244 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4245 now identical to when LIBS_TERMCAP is defined.
4246
4247 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4248
4249 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4250
a96f6398 4251 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4252
288f9fc0
CY
42532010-03-10 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * Branch for 23.2.
4256
d48cd3f4
SM
42572010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4258
4259 Cleanup setup of gl_state in various parts of the code.
4260 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4261 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4262 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4263 (skip_chars):
4264 * regex.c (regex_compile): Use it.
4265 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4266 it's now set in regex_compile when/if we need it.
4267
618db430
SM
42682010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4269
c0335e02
SM
4270 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4271 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4272 (QUIT): Use it to consolidate code and remove redundancy.
4273 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4274
254c06a8
SM
4275 * regex.c (regex_compile): Setup gl_state as well.
4276
618db430
SM
4277 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4278 (in_classes): Use CONSP before XCAR/XCDR.
4279
233f0c9f
CY
42802010-03-03 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4283 definitions, so that keyboard macros are correctly handled
4284 (Bug#5481).
4285
75f80e63
EZ
42862010-03-02 Eli Zaretskii <eliz@gnu.org>
4287
4288 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4289 text that could be relocated inside the call to emacs_mule_char.
4290 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4291 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4292
dcfb9bc4
KH
42932010-03-02 Kenichi Handa <handa@m17n.org>
4294
fc9a17bc
KH
4295 * character.c (parse_str_as_multibyte): Fix handling of the
4296 multibyte form of raw-bytes.
4297 (str_as_multibyte): Likewise.
4298
dcfb9bc4
KH
4299 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4300 form of raw-bytes.
4301
412c01b6
CY
43022010-02-28 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * charset.c (load_charset_map_from_file)
4305 (load_charset_map_from_vector): Zero out allocated
4306 charset_map_entries before using them.
4307
df7e1ea0
AS
43082010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4309
4310 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4311
fe69a722
CY
43122010-02-27 Chong Yidong <cyd@stupidchicken.com>
4313
4ed28cf4
CY
4314 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4315 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4316
7379cfce
KH
43172010-02-26 Kenichi Handa <handa@m17n.org>
4318
f88cc4d6
KH
4319 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4320
7379cfce
KH
4321 * xdisp.c (reseat_to_string): Fix previous change.
4322
cf2fdcfb
CY
43232010-02-26 David Reitter <david.reitter@gmail.com>
4324
4325 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4326 Lisp_Object (Bug#4736).
4327
cc6c7c75
KH
43282010-02-25 Kenichi Handa <handa@m17n.org>
4329
4330 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4331
32e737d7
JD
43322010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4333
4334 * xterm.c (XTflash): Move declarations before statements.
4335
4336 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4337 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4338 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4339 (xg_create_tool_bar): Remove unused variables.
4340 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4341 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4342
676cae9f
CY
43432010-02-21 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4346
886cc2b8
SM
43472010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4348
4349 * term.c (fatal): Add a final \n if needed (bug#5596).
4350
ddb2d8e2
CY
43512010-02-18 Chong Yidong <cyd@stupidchicken.com>
4352
4353 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4354
2a4f8d3d
GM
43552010-02-18 Glenn Morris <rgm@gnu.org>
4356
4357 * callint.c (Finteractive): Doc fix.
4358
ebaf11b6
KH
43592010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4360
886cc2b8
SM
4361 * coding.c (record_conversion_result):
4362 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4363 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4364 memory allocation error.
4365
d0396581
KH
43662010-02-17 Kenichi Handa <handa@m17n.org>
4367
886cc2b8
SM
4368 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4369 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4370 (decode_coding): Setup ccl program here. Keep looping when the
4371 decoder stopped because the output buffer is
4372 fullfilled (bug#5534).
4373
4374 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4375
98599f74
JD
43762010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4377
471e4f04 4378 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4379 bug #5571.
886cc2b8 4380 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4381 overdrawn.
98599f74 4382
182659ae
JD
43832010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4384
4385 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4386 doing_interact here.
4387 (ice_connection_closed): New function.
4388 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4389 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4390 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4391 returns I/O error.
4392 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4393 bug #5512.
4394
9be32c4e 43952010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4396
4397 * nsfont.m (nsfont_open): The system's value for the font descent
4398 is negative, so round it down to avoid clipping.
4399
a2f3eb19
CY
44002010-02-06 Chong Yidong <cyd@stupidchicken.com>
4401
4402 * charset.c (load_charset_map_from_file)
4403 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4404 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4405
3088147c
CY
44062010-02-05 Chong Yidong <cyd@stupidchicken.com>
4407
4408 * charset.c (load_charset_map_from_file): Allocate large
4409 charset_map_entries structure on the heap rather than the stack.
4410 (Bug#5526).
4411
b57d9029
KH
44122010-01-31 Kenichi Handa <handa@m17n.org>
4413
4414 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4415 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4416
c67d885b
CY
44172010-01-31 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4420 <deactivated@gmail.com> (Bug#3605).
4421
8fab2362
CY
44222010-01-31 David De La Harpe Golden <david@harpegolden.net>
4423
4424 * fileio.c (Frename_file): Correctly rename symlinks to
4425 directories (Bug#5496).
4426
cb2a62f2
CY
44272010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4428
4429 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4430
944c7a26
AS
44312010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4432
4433 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4434
c024ac08
CY
44352010-01-29 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * frame.c (DEFAULT_ROWS): Change default to 35.
4438
4439 * xfns.c (x_default_font_parameter): Change default XFT font to
4440 monospace-10 (Bug#3643).
4441
af93af83
EZ
44422010-01-29 Eli Zaretskii <eliz@gnu.org>
4443
4444 * w32inevt.c (key_event): Remove unnecessary comparison of
4445 event->uChar.AsciiChar with 128.
4446
ca0eb708
CY
44472010-01-28 Chong Yidong <cyd@stupidchicken.com>
4448
b242dbfc
CY
4449 * fileio.c (Frename_file): Fix last change (Bug#5487).
4450
ca0eb708
CY
4451 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4452
4453 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4454
45d45af5
JD
44552010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4456
4457 * xfns.c (Fx_create_frame): Remove window size matching code from
4458 2010-01-15.
a73f9c9d 4459 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4460
7e233730
JR
44612010-01-27 Jason Rumney <jasonr@gnu.org>
4462
4463 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4464 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4465
86e893e3
KH
44662010-01-27 Kenichi Handa <handa@m17n.org>
4467
4468 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4469 pattern string (Bug#4209).
86e893e3 4470
8719abec
CY
44712010-01-27 David De La Harpe Golden <david@harpegolden.net>
4472
4473 * fileio.c (Frename_file): Call copy-directory and
4474 delete-directory for directories, in order to handle cross-device
4475 renaming (Bug#3353).
4476
844794c8
JD
44772010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4478
aa3e13b5 4479 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4480 sizes 24 and 10. Bug #3643.
844794c8 4481
bd4b5750
SM
44822010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4483
8dc1adf6 4484 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4485 * keymap.c (shadow_lookup): Add `remap' arg.
4486 (describe_map, describe_vector): Update calls to shadow_lookup.
4487 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4488 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4489 perform remapping during shadow_lookup check of remapped_sequences.
4490
285d07e2
CY
44912010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4492
4493 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4494 png_check_sig, which has been removed in libpng 1.4.
4495
c6d09b8d
CY
44962010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4497
4498 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4499 lacks this header file).
4500
3d782998
YM
45012010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4502
4503 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4504 as in Emacs 22.
4505
2aff7c53
YM
45062010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4507
4508 * lisp.h (make_pure_string): String pointer arg now points to const.
4509
4510 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4511 args now point to const.
4512
74327f7a
EZ
45132010-01-22 Eli Zaretskii <eliz@gnu.org>
4514
4515 * lread.c (Fload): Don't treat files without .elc extension as
4516 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4517 them. (bug#5303)
4518
4d1e6632
KH
45192010-01-20 Kenichi Handa <handa@m17n.org>
4520
4521 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4522 treat the source as actual byte sequence.
4523
1fdede8f
AM
45242010-01-19 Alan Mackenzie <acm@muc.de>
4525
4526 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4527 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4528 `signal_after_change_p' to `coherent_change_p', and make the
4529 invocation of `modify_region' conditional on it.
4530
67477f30
JD
45312010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4532
4533 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4534 for debug purpose.
4535 (syms_of_xsettings): Declare xft-settings.
4536
244b023e
CY
45372010-01-18 Chong Yidong <cyd@stupidchicken.com>
4538
4539 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4540
617364fe
CY
45412010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4542
4543 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4544
4fe22cdf
CY
45452010-01-16 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * emacs.c (standard_args): Adjust arg priorities to reflect how
4548 they are processed in startup.el.
4549
e118d2be
AS
45502010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4551
4552 * Makefile.in (lisp, shortlisp): Update.
4553
523ae620
SM
45542010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4555
4556 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4557 code, link the new kboard into all_kboard before running Lisp code,
4558 and protect the new terminal with GCPRO (Bug#5365).
4559 (x_term_init): Remove unused var `atom'.
4560 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4561
f0d13888
JD
45622010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4563
4564 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4565 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4566 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4567 this. Bug #3643.
f0d13888 4568
cc320f07
KH
45692010-01-15 Kenichi Handa <handa@m17n.org>
4570
4571 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4572
7ffdf101
CY
45732010-01-15 Chong Yidong <cyd@stupidchicken.com>
4574
4575 * nsterm.m (Qnone): Define.
4576
4577 * nsfns.m (Qnone): Move definition to nsterm.m.
4578
d12bd917
KH
45792010-01-14 Kenichi Handa <handa@m17n.org>
4580
4581 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4582 systems.
4583
d9a7c140
KH
45842010-01-14 Kenichi Handa <handa@m17n.org>
4585
4586 Make auto-composition work on all buffers even if they are
4587 fundamental mode.
4588
4589 * composite.c (Vauto_composition_mode): New variable.
4590 (composition_compute_stop_pos): Check Vauto_composition_mode
4591 instead of Vauto_composition_function.
4592 (composition_adjust_point, Ffind_composition_internal): Likewise.
4593 (syms_of_composite): Declare Lisp variable
4594 "auto-composition-mode" here.
4595
63286bb2
CY
45962010-01-13 Chong Yidong <cyd@stupidchicken.com>
4597
4598 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4599 during call to vendor-specific-keysyms (Bug#5365).
4600
c2623ee7
YM
46012010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4602
4603 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4604 Call SIGNAL_THREAD_CHECK (Bug#5333).
4605
4606 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4607 Call SIGNAL_THREAD_CHECK.
4608
0b5397c2
SM
46092010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4610
4611 Try to fix bug#5314. This is probably not the final word, tho.
4612 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4613 recent-auto-save-p as a side-effect.
4614 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4615 * buffer.c (Fkill_buffer, reset_buffer):
4616 * editfns.c (Fsubst_char_in_region):
4617 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4618 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4619
dc954cb2
KH
46202010-01-13 Kenichi Handa <handa@m17n.org>
4621
4622 Display buffer name, etc. in mode line by composing correctly.
4623
4624 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4625 STRING is not nil.
0b5397c2 4626 (display_mode_element): Adjust for the change of
dc954cb2
KH
4627 decode_mode_spec and display_line.
4628 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4629 (display_string): Handle the case that STRING is non-null and
4630 LISP_STRING is not nil.
4631
0b5397c2
SM
4632 * xterm.c (x_draw_composite_glyph_string_foreground):
4633 Pay attention to s->face->overstrike.
dc954cb2
KH
4634
4635 * composite.c (composition_reseat_it): Don't check PT if STRING is
4636 non nil.
4637
4a00eaca
YM
46382010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4639
4640 * keyboard.c (read_char): Don't apply previous change when current
4641 buffer is unchanged by command execution.
4642
60abb287
JD
46432010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4644
4645 * keyboard.c (read_char): Return after executing from special map.
4646
893db5bc
GM
46472010-01-12 Glenn Morris <rgm@gnu.org>
4648
4649 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4650 bug-gnu-emacs rather than emacs-pretest-bug.
4651
4d03ece0
CY
46522010-01-11 Chong Yidong <cyd@stupidchicken.com>
4653
4654 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4655 initializing the Lisp variables that depend on them.
4656
1df47e38
YM
46572010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4658
4659 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4660 Clear areas that will not be updated after change of menu bar lines.
4661 Clear the menu bar window's current matrix when the window gets empty.
4662
2f1c6384
CY
46632010-01-09 Chong Yidong <cyd@stupidchicken.com>
4664
e398c61c
CY
4665 * intervals.h, textprop.c (extend_property_ranges): Return value
4666 and args changed. Discard properties that begin at or after the
4667 new end (Bug#5306).
4668
4669 * editfns.c (Fformat): Caller changed.
4670
e5a29a10
CY
4671 * nsterm.m (ns_set_default_prefs): Delete function.
4672 (syms_of_nsterm): Initialize ns_command_modifier,
4673 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4674 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4675
2f1c6384
CY
4676 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4677 position (Bug#4040).
4678
d427a9fa
EZ
46792010-01-09 Eli Zaretskii <eliz@gnu.org>
4680
4681 * editfns.c (Ffloat_time): Doc fix.
4682
21b9df2f
JD
46832010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4684
4685 * xfns.c (Fx_create_frame): Don't create frame larger than display
4686 by default bug#3643.
4687
4b00d3b1
YM
46882010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4689
4690 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4691 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4692 windows above internal border.
4693
4694 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4695 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4696 windows above internal border.
4697
4698 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4699 tool bar windows specially.
4700
4701 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4702
4703 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4704 specially.
4705 (XTflash): Take account of menu bar height.
4706
4707 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4708 specially.
4709
5075d853
JD
47102010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4711
ac146f82 4712 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4713 also be true before we can return early (bug #5339).
4714
474217c8
CY
47152010-01-06 David Reitter <david.reitter@gmail.com>
4716
4717 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4718 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4719 (Bug#3233).
4720
c0e6d47d
JD
47212010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4722
d0cf45b7
JD
4723 * font.c (font_open_entity): Enable chache and call cached_font_ok
4724 for the driver if defined.
4725 (QCuser_spec): New symbol.
4726 (font_spec_from_name): Save name as user-spec.
4727 (font_load_for_lface): Keep user-spec instead of name.
4728 (font_open_by_name): Save name as user-spec.
4729 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4730 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4731
4732 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4733 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4734 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4735
4736 * font.h (struct font_driver): Add cached_font_ok.
4737
c0e6d47d
JD
4738 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4739
7c583cd8
JD
47402010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4741
4742 * xterm.c (x_new_font): Move code for setting rows/cols before
4743 resizing ...
ac146f82 4744 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4745
4746 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4747 (xg_frame_resized, xg_frame_set_char_size):
4748 Call xg_clear_under_internal_border.
7c583cd8 4749 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4750
03f77f0a
CY
47512010-01-05 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * keyboard.c (read_key_sequence): Catch keyboard switch after
4754 making a new tty frame (Bug#5095).
4755
2a1ef5be
KH
47562010-01-05 Kenichi Handa <handa@m17n.org>
4757
4758 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4759
e3eb1dae
SM
47602010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4761
4762 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4763 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4764 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4765
777013f2
MA
47662010-01-03 Michael Albinus <michael.albinus@gmx.de>
4767
4768 * dbusbind.c (xd_add_watch): Improve debug message.
4769 (xd_remove_watch): Improve debug message. If DATA is the session
4770 bus, unset D-Bus session environment.
4771 (Fdbus_init_bus): Pass the bus as argument to
4772 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4773
8932b1c2
CY
47742010-01-01 Chong Yidong <cyd@stupidchicken.com>
4775
87231e2c
CY
4776 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4777
4801c5fa
CY
4778 * lread.c (syms_of_lread): Make it clearer that these are the
4779 names of loaded files (Bug#5068).
4780
8932b1c2
CY
4781 * eval.c (run_hook_with_args): Handle the case where the global
4782 value has the obsolete single-function form (Bug#5026).
4783
11e3c684
CY
47842009-12-27 Chong Yidong <cyd@stupidchicken.com>
4785
4786 * minibuf.c (Fall_completions): Minor optimization.
4787
5b28ce35
EZ
47882009-12-26 Eli Zaretskii <eliz@gnu.org>
4789
5ce6e4f4
JB
4790 * .gdbinit (pgx): Fix display of composite glyphs.
4791 Display cmp.from and cmp.to as well.
4792 (pitx): Fix last change.
5b28ce35 4793
bcffff46
KH
47942009-12-25 Kenichi Handa <handa@m17n.org>
4795
4796 * composite.h (composition_adjust_point): Update prototype.
4797
4798 * composite.c (composition_reseat_it): Don't make a composition
4799 spanning over point.
4800 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4801 composable characters.
4802 (composition_adjust_point): New arg NEW_PT. Callers changed.
4803
4804 * keyboard.c (command_loop_1): Force redisplay if the last point
4805 was within a composition.
4806 (adjust_point_for_property): Don't adjust point for automatic
4807 composition when called after buffer modification.
4808
3f670e9a
EZ
48092009-12-19 Eli Zaretskii <eliz@gnu.org>
4810
5ce6e4f4
JB
4811 * .gdbinit (pitx): Don't use enum names, use their values.
4812 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4813 (pgx): Don't use enum names, use their values.
4814 (pitmethod): New helper command.
4815 (pitx): Use it to display iteration method.
4816 (pgrowit): New command.
4817
ad903955
EZ
4818 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4819
3f670e9a
EZ
4820 Update dependencies in Makefile.in.
4821
4822 * Makefile.in (alloc.o): Depend on termhooks.h.
4823 (atimer.o): Depend on blockinput.h.
4824 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4825 and frame.h.
4826 (callint.o): Depend on systime.h, coding.h, and composite.h.
4827 (callproc.o): Depend on buffer.h.
4828 (casefiddle.o): Don't depend on charset.h.
4829 (casetab.o): Depend on character.h.
4830 (ccl.o): Depend on composite.h.
4831 (chartab.o): Depend on ccl.h.
4832 (cm.o): Depend on dispextern.h.
4833 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4834 (coding.o): Don't depend on $(INTERVALS_H).
4835 (composite.o): Don't depend on dispextern.h explicitly (it's in
4836 $(INTERVALS_H)). Depend on ccl.h.
4837 (data.o): Depend on systime.h, coding.h, composite.h,
4838 dispextern.h, font.h, and ccl.h.
4839 (dired.o): Depend on composite.h.
4840 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4841 composite.h (it's in $(INTERVALS_H)).
4842 (doc.o): Depend on systime.h, coding.h, and composite.h.
4843 (editfns.o): Don't depend explicitly on dispextern.h.
4844 (emacs.o): Depend on frame.h and coding.h.
4845 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4846 (fileio.o): Depend on frame.h and commands.h. Don't depend
4847 explicitly on dispextern.h.
4848 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4849 composite.h.
4850 (fns.o): Don't depend on termhooks.h.
4851 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4852 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4853 coding.h, $(INTERVALS_H), window.h, xterm.h.
4854 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4855 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4856 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4857 fontset.h, ccl.h, and ftfont.h.
4858 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4859 (gtkutil.o): Depend on dispextern.h and composite.h.
4860 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4861 termhooks.h, and ccl.h.
4862 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4863 (intervals.o): Depend on systime.h and coding.h.
4864 (keyboard.o): Depend on composite.h and coding.h.
4865 (keymap.o): Depend on coding.h and frame.h.
4866 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4867 (macros.o): Depend on systime.h, coding.h, and composite.h.
4868 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4869 and atimer.h.
4870 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4871 dispextern.h explicitly.
0b5397c2
SM
4872 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4873 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4874 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4875 (regex.o): Don't depend on charset.h.
4876 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4877 (search.o): Don't depend explicitly on composite.h.
4878 (sound.o): Depend on atimer.h and systime.h.
4879 (syntax.o): Don't depend explicitly on composite.h.
4880 (sysdep.o): Depend on coding.h and composite.h.
4881 (term.o): Depend on xterm.h and buffer.h.
4882 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4883 (textprop.o): Don't depend on dispextern.h explicitly.
4884 (undo.o): Depend on dispextern.h.
4885 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4886 dispextern.h and composite.h explicitly.
4887 (xdisp.o): Depend on ccl.h.
4888 (xfaces.o): Depend on coding.h and ccl.h.
4889 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4890 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4891 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4892 ftfont.h.
4893 (xgselect.o): New dependency.
4894 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4895 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4896 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4897 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4898 (xsmfns.o): Depend on frame.h and dispextern.h.
4899 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4900 sysselect.h.
4901
7a6f7fea
AS
49022009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4903
4904 * font.c (Fclear_font_cache): Pass correct cache argument to
4905 font_clear_cache.
4906
f4c21026
AS
49072009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4908
4909 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4910 twice.
4911
f7ab0997
CY
49122009-12-15 Chong Yidong <cyd@stupidchicken.com>
4913
4914 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4915 calling file-remote-p. Reported by Jim Meyering.
4916
fa8e045a
MA
49172009-12-15 Michael Albinus <michael.albinus@gmx.de>
4918
4919 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4920 avoid compiler warnings. (Bug #5217)
fa8e045a 4921
a63dba42
KH
49222009-12-14 Kenichi Handa <handa@m17n.org>
4923
4924 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4925 in 8-bit encoding.
4926
5ce6e4f4 49272009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4928
4929 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4930 tooltip windows.
4931
223e5fc6
JD
49322009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4933
36acb2a7
JD
4934 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4935 Xatom_net_window_type.
4936
4937 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4938 Xatom_net_window_type.
4939
b8f00677
JD
4940 * xterm.c (my_log_handler): New function.
4941 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4942 so we can filter out buggy messages. (Bug #5120).
b8f00677 4943
e5f0bc9a
JD
4944 * xterm.c (xg_scroll_callback): Parameter list changed,
4945 use parameter GtkScrollType to determine scroll/line/page.
4946 Only allow dragging if a button < 4 is grabbed (bug #5177).
4947 (xg_end_scroll_callback): New function.
4948 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4949 xg_create_scroll_bar.
4950
4951 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4952 (scroll_end_callback): Remove.
4953 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4954 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4955 bug #5177.
e5f0bc9a
JD
4956 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4957 bug #5177.
4958
4959 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4960 (xg_create_scroll_bar): Add GCallback end_callback.
4961
223e5fc6
JD
4962 * xftfont.c (QClcdfilter): New variable.
4963 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4964 (syms_of_xftfont): Initialize QClcdfilter.
4965
3c055b77
JD
49662009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4967
4968 * xsettings.c (struct xsettings): Add member seen.
4969 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4970 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4971 (apply_xft_settings): Only update Xft settings with what member seen
4972 indicates as new.
4973
05fe33ff
EZ
49742009-12-12 Eli Zaretskii <eliz@gnu.org>
4975
c4cc8b9a 4976 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4977 (struct glyph): Use EMACS_INT for charpos.
4978 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4979 region_beg_charpos, region_end_charpos,
4980 redisplay_end_trigger_charpos, and also for
4981 iterator_stack_entry.end_charpos and
4982 iterator_stack_entry.stop_charpos.
4983
e8d7886a
JD
49842009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4985
5ce6e4f4 4986 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4987 (xg_create_scroll_bar): Call scroll_end_callback on button release
4988 event (bug #5177).
4989 (xg_event_is_for_scrollbar): != replaced with ==.
4990
d0db2ec8
KH
49912009-12-12 Kenichi Handa <handa@m17n.org>
4992
4993 * ftfont.c (struct ftfont_info): New member matrix.
4994 (ftfont_open): Setup xftfont_info->matrix.
4995 (MFLTFontFT): New member matrix.
4996 (FLOOR, CEIL, ROUND): New macros.
4997 (ftfont_get_metrics): Handle matrix transformation.
4998 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4999
5000 * xftfont.c (struct xftfont_info): New member matrix.
5001 (xftfont_open): Setup xftfont_info->matrix.
5002
50032009-12-10 Kenichi Handa <handa@m17n.org>
5004
5005 * xdisp.c (append_space_for_newline): Consider face-remapping.
5006
2cc7b62f
AS
50072009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5008
b87dd913
AS
5009 * xsettings.c: Include "keyboard.h".
5010
eba5eb94
AS
5011 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5012
2cc7b62f
AS
5013 Fix implicit function declarations.
5014 * cmds.c: Include "frame.h".
5015 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5016 * frame.h: Move declaration of delete_frame outside of
5017 HAVE_WINDOW_SYSTEM.
5018
a4ef73c8
CY
50192009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5020
5021 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5022
5023 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5024 GTK builds.
5025
944a300c
AS
50262009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5027
5028 * unexelf.c (unexec): Don't search for .data twice.
5029
022eef62
CY
50302009-12-05 Chong Yidong <cyd@stupidchicken.com>
5031
426ac949
CY
5032 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5033 if push failed.
5034 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5035 of push_display_prop (Bug#5000).
5036
022eef62
CY
5037 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5038 value of font_list_entities (Bug#5085).
5039
be95bee9
JB
50402009-12-04 Juanma Barranquero <lekktu@gmail.com>
5041
5042 Fix `string-to-number' to deal consistently with integers and floats.
5043 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5044 trailing characters, not just whitespace.
5045 (read1): Pass new arg 0 to keep old behavior.
5046 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5047 trailing chars, as it is already done for integers. Doc fixes.
5048 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5049
24c2d7ce
EZ
50502009-12-04 Eli Zaretskii <eliz@gnu.org>
5051
0b5397c2
SM
5052 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5053 Delete unused enumeration value.
24c2d7ce 5054
7e694795
EZ
50552009-12-03 Eli Zaretskii <eliz@gnu.org>
5056
5057 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5058
84b31826
SM
50592009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5060
5061 * process.c (Fmake_network_process): Fix up the tests for
5062 "connectionless socket", so they DTRT for seqpacket sockets as well.
5063
f00c449b
SM
50642009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5065
5066 * process.c (Qseqpacket): New symbol.
5067 (HAVE_SEQPACKET): New macro.
5068 (Fmake_network_process): Accept new :type `seqpacket'.
5069 (init_process): Add `seqpacket' feature when applicable.
5070 (syms_of_process): Initialize Qseqpacket.
5071
8096a0ff
YM
50722009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5073
5074 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5075 if entity is Qnil.
5076
3e0de07f
SM
50772009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5078
5079 * print.c (print_preprocess): Preprocess the key_and_value table of
5080 hashtables, even tho they're "hidden" (bug#5082).
5081
abeafb2a
JD
50822009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5083
5084 * frame.c (frame_make_pointer_invisible)
5085 (frame_make_pointer_visible): Declare f before statements.
5086
4bf47195
EZ
50872009-11-28 Eli Zaretskii <eliz@gnu.org>
5088
5089 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5090 omitted dependencies on lisp.h.
5091
c525b3f2
JD
50922009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5093
ece2d4ed
JD
5094 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5095 is NULL.
5096
5097 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5098
5099 * frame.c (frame_make_pointer_invisible)
3e0de07f 5100 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5101 frame.
5102
c525b3f2
JD
5103 * search.c (simple_search): Remove warning by making *p const.
5104
2f00e299
DN
51052009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5106
5107 * xdisp.c (power_letter): Remove duplicate const.
5108
084b049b
JD
51092009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5110
a1fadc6f
JD
5111 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5112
5ce6e4f4 5113 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5114 defaults (bug #5025).
5115
28259cac
SM
51162009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5117
5118 * insdel.c (adjust_markers_for_delete): Move it in the
5119 right direction! (bug#4803)
5120
e8e14166
YM
51212009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5122
5123 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5124
5125 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5126
86677b58
GM
51272009-11-24 Glenn Morris <rgm@gnu.org>
5128
5129 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5130
581e51e8
JD
51312009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5132
cfc86c7a
JD
5133 * Makefile.in: Must create deps for ecrt0.o in its rule.
5134
581e51e8
JD
5135 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5136 because that is what Gtk+ font dialog understands.
5137
5138 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5139 of Fcopy_sequence.
5140 (font_open_by_name): Put name given into QCname for font-object returned.
5141
5142 * frame.c (x_set_font): Save original font name as frame parameter
5143 font-parameter.
5144
5145 * xsettings.c (set_default_xft_settings): New function.
5146 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5147 is found.
5148
8b264ecb
AS
51492009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5150
5151 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5152 searching backwards through multibyte buffer.
5153
872870b2
JD
51542009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5155
5156 * xterm.c: #include xgselect.h.
5157 (x_initialize): Call xgselect_initialize.
5158
5159 * xsettings.c (something_changedCB): C++ comments => C comments.
5160 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5161 does that now.
5162
5163 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5164 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5165 (scroll_bar_button_cb): Remove.
5ce6e4f4 5166 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5167 event.
5168 (xg_create_scroll_bar): Don't bind button-press-event and
5169 button-release-event.
5170
5171 * process.c: Include xgselect.h if defined (USE_GTK) ||
5172 defined (HAVE_GCONF).
5173 (wait_reading_process_output): Call xg_select for the same condition.
5174
5175 * xgselect.c (xg_select): New function to better integrate with
5176 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5177
5178 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5179
5180 * Makefile.in (XOBJ): Add xgselect.o.
5181
62a6e103
AS
51822009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5183
0b5397c2
SM
5184 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5185 Remove ignored second argument. All callers changed.
62a6e103
AS
5186 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5187 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5188 * xdisp.c (string_char_and_length): Likewise.
5189
b0ca0f33
DN
51902009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5191
5192 * xterm.c (x_new_font):
5193 * print.c (print_object):
5194 * cmds.c (Fself_insert_command): Move declarations before statements.
5195
dd5a6279
CY
51962009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5197
5198 * s/cygwin.h: Remove unneeded linker flags.
5199
4a8e097d
JD
52002009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5201
0d1d0d26
JD
5202 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5203
5204 * xsettings.h: Declare xsettings_get_system_font.
5205
5206 * xsettings.c (xsettings_get_system_font): New function.
5207 (init_gconf): No use initiating gconf unless we have Xft also.
5208 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5209 HAVE_GCONF.
5210
4a8e097d
JD
5211 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5212 add a blank entry so it doesn't collapse into nothing.
5213
8ab1650e
SM
52142009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5215
5216 * lread.c (Funintern): Comment out last change.
5217
82c602f0
RS
52182009-11-19 Richard Stallman <rms@gnu.org>
5219
5220 * lread.c (Funintern): Error if symbol is t or nil.
5221
87e32266
SM
52222009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5223
5224 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5225 representation of Lisp integers.
5226 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5227
1b9ac145
AS
52282009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5229
5230 * lisp.h: Remove declaration of Ffont_get_system_font.
5231 * xfns.c: Move include of "xsettings.h".
5232 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5233
dfb3c4c6
JD
52342009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5235
87e32266
SM
5236 * xsettings.c (something_changedCB, Ffont_get_system_font):
5237 Check use_system_font.
dfb3c4c6
JD
5238 (syms_of_xsettings): DEFVAR font-use-system-font.
5239
9370c1d8
AS
52402009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5241
25fe851a
AS
5242 * xfns.c (x_default_font_parameter): Remove dead assignment.
5243
9370c1d8
AS
5244 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5245
637fa988
JD
52462009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5247
87e32266 5248 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5249 not have FC_LCD_*. #define them if not there.
a6eb20d8 5250
87e32266 5251 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5252
637fa988
JD
5253 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5254
5255 * xterm.c (handle_one_xevent): Call xft_settings_event for
5256 ClientMessage, PropertyNotify and DestroyNotify.
5257 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5258 Call xsettings_initialize.
5259
5260 * xftfont.c (xftfont_fix_match): New function.
5261 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5262 Call xftfont_fix_match after XftFontMatch.
5263
5264 * xfont.c (xfont_driver): Initialize all members.
5265
87e32266
SM
5266 * xfns.c (x_default_font_parameter):
5267 Try font from Ffont_get_system_font.
637fa988
JD
5268 Do not get font from x_default_parameter if we got one from
5269 Ffont_get_system_font.
87e32266 5270 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5271
5272 * w32font.c (w32font_driver): Initialize all members.
5273
5274 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5275
5276 * lisp.h: Declare syms_of_xsettings.
5277
87e32266
SM
5278 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5279 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5280
5281 * ftfont.c (ftfont_filter_properties): New function.
5282
5283 * frame.c (x_set_font): Remove unused variable lval.
5284
87e32266 5285 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5286
5287 * font.c (font_put_extra): Don't return if val is nil, it means
5288 boolean option is off.
5289 (font_parse_fcname): Collect all extra properties in extra_props
5290 and call filter_properties for all drivers with extra_props and
5291 font as parameter.
87e32266
SM
5292 (font_open_entity): Do not use cache, it does not pick up new
5293 fontconfig settings like hinting.
637fa988
JD
5294 (font_load_for_lface): If spec had a name in it, store it in entity.
5295
a73f9c9d 5296 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5297
5298 * config.in: HAVE_GCONF is new.
5299
5300 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5301 xsettings.o is new.
5302
5a942932
KH
53032009-11-17 Kenichi Handa <handa@m17n.org>
5304
5305 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5306 back to the default font in case that no suitable font is found.
5307
b7c7a4d1
SM
53082009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5309
5310 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5311 Suggested by Chad Brown <yandros@mit.edu>.
5312 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5313
072f1e39
JD
53142009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5315
5316 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5317
5d1e70a2
AS
53182009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5319
87e32266 5320 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5321
a53cfbe5
JD
53222009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5323
473a99b7
JD
5324 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5325 has a parent.
5326
a53cfbe5 5327 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5328 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5329
5330 * config.in: Generated (AUTO_DEPEND).
5331
f04bb9b2
MA
53322009-11-13 Michael Albinus <michael.albinus@gmx.de>
5333
b7c7a4d1 5334 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5335 Vdbus_registered_functions_table, because it contains also
5336 properties. Fix docstring.
b7c7a4d1 5337 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5338
8f11f7ec
SM
53392009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5340
5341 * alloc.c (mark_object): Don't reprocess marked strings.
5342 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5343 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5344
8a605fe8
KH
53452009-11-13 Kenichi Handa <handa@m17n.org>
5346
8f11f7ec 5347 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5348 semantics of Vword_combining_categories.
5349 (Vword_combining_categories): Describe the slight change of the
5350 semantics.
5351
241c4680
EZ
53522009-11-13 Eli Zaretskii <eliz@gnu.org>
5353
5354 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5355
5356 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5357
5d58e44c
SM
53582009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5359
5360 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5361
5e13f9d3
JB
53622009-11-12 Juanma Barranquero <lekktu@gmail.com>
5363
5364 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5365
cf54c754
DR
53662009-11-11 David Reitter <david.reitter@gmail.com>
5367
5368 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5369 variables to fix 2009-11-09 change.
5370
a4ada374
DN
53712009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5372
91433552
DN
5373 * process.c (ifflag_def): Make flag_sym constant.
5374 (Fnetwork_interface_info): Use a constant pointer.
5375 (ifflag_table):
5376 * xfns.c (cursor_bits):
5377 * xdisp.c (power_letter):
5378 * termcap.c (speeds, esctab):
5379 * sysdep.c (baud_convert):
5380 * keyboard.c (lispy_accent_codes, modifier_names):
5381 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5382 (jpeg_format, tiff_format, gif_format, svg_format)
5383 (interlace_start, interlace_increment, gs_format):
5384 * gtkutil.c (separator_names):
5385 * fringe.c (swap_nibble):
5386 * fns.c (base64_value_to_char, base64_char_to_value):
5387 * fileio.c (make_temp_name_tbl):
5388 * coding.c (suffixes): Make constant.
5389
f4265f6c
DN
5390 * frame.c (make_initial_frame):
5391 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5392 build_string.
5393 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5394
04420943
DN
5395 * s/freebsd.h:
5396 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5397
0a5d24ae
DN
5398 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5399 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5400
a4ada374
DN
5401 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5402 * xterm.c (syms_of_xterm):
5403 * xfaces.c (syms_of_xfaces):
5404 * xdisp.c (syms_of_xdisp):
5405 * lread.c (syms_of_lread):
5406 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5407 build_string.
91433552 5408
a4ada374
DN
5409 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5410
af98fc7f
SM
54112009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5412
8ab1650e 5413 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5414
e90292a9
JD
54152009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5416
5417 * keyboard.h: Declare timer_check.
5418
5419 * keyboard.c (timer_check_2): New function that does what the old
5420 timer_check did.
5421 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5422 returned, i.e. don't return -1 with timers pending.
5423
5424 * process.c: Remove extern declaration of timer_check.
5425
5426 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5427 even if timer_check returned -1.
5428
af98fc7f
SM
5429 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5430 xg_dialog_data.
e90292a9
JD
5431 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5432 the event loop.
5433 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5434 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5435 Destroy the dialog after xg_dialog_run.
5436
045b83c0
SM
54372009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5438
5439 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5440
1fb99a3a
JD
54412009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5442
5443 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5444
04e452cb
JB
54452009-11-09 Juanma Barranquero <lekktu@gmail.com>
5446
5447 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5448
ef7417fd
SM
54492009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5450
5451 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5452 w32menu.c, and nsmenu.m.
5453 Simplify the obsolete case where position is nil.
5454 (cleanup_popup_menu): New function, moved from nsmenu.m.
5455 (struct skp): Remove slot `notreal'.
5456 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5457 adjust callers.
5458 (single_menu_item): Adjust call to parse_menu_item.
5459 (syms_of_menu): Defsubr x-popup-menu.
5460 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5461 (keymap_panes): Don't export any more.
5462 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5463 (xmenu_show): Declare.
5464 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5465 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5466 * keyboard.h (parse_menu_item): Update declaration.
5467 * xmenu.c (Fx_popup_menu): Remove.
5468 (syms_of_xmenu): Don't defsubr x-popup-menu.
5469 * w32menu.c (Fx_popup_menu): Remove.
5470 (syms_of_w32menu): Don't defsubr x-popup-menu.
5471 * nsmenu.m (cleanup_popup_menu): Remove.
5472 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5473 moved to menu.c's Fx_popup_menu.
5474 (Fx_popup_menu): Remove.
5475 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5476 menu_items (it's done in menu.c already).
5477
424d6179
SM
54782009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5479
5480 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5481 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5482
c0df13a6 54832009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5484
5485 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5486 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5487 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5488 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5489
2de9f71c
SM
54902009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5491
5492 Let integers use up 2 tags to give them one extra bit and thus double
5493 their range.
5494 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5495 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5496 New macros.
5497 (enum Lisp_Type): Use them. Give explicit values.
5498 (Lisp_Type_Limit): Remove.
5499 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5500 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5501 Pay attention to USE_2_TAGS_FOR_INTS.
5502 (INTEGERP): Use LISP_INT_TAG_P.
5503 * fns.c (internal_equal): Simplify the default case.
5504 (sxhash): Use case_Lisp_Int.
5505 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5506 any more.
5507 (Ftype_of): Use case_Lisp_Int.
5508 (store_symval_forwarding): Take into account the fact that Ints can
5509 now have more than one tag.
5510 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5511 buffer_slot_type_mismatch):
5512 * xfaces.c (face_attr_equal_p):
5513 * print.c (print_object):
5514 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5515 Use case_Lisp_Int.
5516
323637a2
EZ
55172009-11-06 Eli Zaretskii <eliz@gnu.org>
5518
7ac65b38
EZ
5519 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5520
323637a2
EZ
5521 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5522 warning.
5523
e511451f
JD
55242009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5525
5526 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5527
5528 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5529
5530 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5531 ButtonPressRelease and MotionNotify (bug#4870).
5532
5e2327cf
DN
55332009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5534
5adc433e
DN
5535 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5536
d67b4f80
DN
5537 * xterm.c (syms_of_xterm):
5538 * xselect.c (syms_of_xselect):
5539 * xmenu.c (syms_of_xmenu):
5540 * xfns.c (syms_of_xfns):
5541 * xfaces.c (syms_of_xfaces):
5542 * xdisp.c (syms_of_xdisp):
5543 * window.c (syms_of_window):
5544 * w32fns.c (syms_of_w32fns):
5545 * undo.c (syms_of_undo):
5546 * textprop.c (syms_of_textprop):
5547 * terminal.c (syms_of_terminal):
5548 * syntax.c (syms_of_syntax):
5549 * sound.c (syms_of_sound):
5550 * search.c (syms_of_search):
5551 * print.c (syms_of_print):
5552 * minibuf.c (syms_of_minibuf):
5553 * macros.c (syms_of_macros):
5554 * keymap.c (syms_of_keymap, initial_define_key)
5555 (initial_define_lispy_key):
5556 * keyboard.c (syms_of_keyboard):
5557 * insdel.c (syms_of_insdel):
5558 * image.c (syms_of_image):
5559 * fringe.c (syms_of_fringe):
5560 * frame.c (syms_of_frame):
5561 * fontset.c (syms_of_fontset):
5562 * fns.c (syms_of_fns):
5563 * fns.c (syms_of_fns):
5564 * fileio.c (syms_of_fileio):
5565 * fileio.c (syms_of_fileio):
5566 * eval.c (syms_of_eval):
5567 * doc.c (syms_of_doc):
5568 * dispnew.c (syms_of_display):
5569 * dired.c (syms_of_dired):
5570 * dbusbind.c (syms_of_dbusbind):
5571 * data.c (syms_of_data):
5572 * composite.c (syms_of_composite):
5573 * coding.c (syms_of_coding):
5574 * cmds.c (syms_of_cmds):
5575 * charset.c (define_charset_internal, syms_of_character):
5576 * ccl.c (syms_of_ccl):
5577 * category.c (syms_of_category, init_category_once):
5578 * casetab.c (syms_of_casetab):
5579 * casefiddle.c (syms_of_casefiddle):
5580 * callint.c (syms_of_callint):
5581 * bytecode.c (syms_of_bytecode):
5582 * buffer.c (keys_of_buffer, syms_of_buffer):
5583 * alloc.c (syms_of_alloc):
5584 * process.c (syms_of_process, init_process):
5585 * lread.c (syms_of_lread, init_obarray):
5586 * font.c (build_style_table):
5587 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5588 intern_c_string, calls to make_pure_string with
5589 make_pure_c_string. Use pure_cons instead of Fcons.
5590
5e2327cf
DN
5591 * process.c (socket_options): Make it const.
5592 (set_socket_option, init_process): Use a const pointer.
5593
5594 * lread.c (intern_c_string): New function.
5595 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5596 (defvar_int): Uset it. Make the name const char*.
5597
5598 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5599 (defvar_int): Update prototypes.
5600 (DEFUN, EXFUN): Support for prototypes is now required.
5601 (intern_c_string): New prototype.
5602 (struct Lisp_Subr): Make symbol_name constant.
5603
5604 * font.c (struct table_entry): Remove unused member. Make NAMES
5605 constant.
5606 (weight_table, slant_table, width_table): Make constant.
5607
5608 * emacs.c (struct standard_args): Make name and longname constant.
5609
5610 * character.h (DEFSYM): Use intern_c_string.
5611
a56eaaef
DN
56122009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5613
5614 * alloc.c (make_pure_c_string): New function.
5615
5616 * eval.c (Fautoload): Purecopy all arguments.
5617
f6a07420
KH
56182009-11-05 Kenichi Handa <handa@m17n.org>
5619
5620 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5621 the buffer in case of replace.
5622
5d28d4b1
DN
56232009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5624
5625 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5626
b349d111
SM
56272009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5628
d528b1ce
SM
5629 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5630 when applicable (bug#4851).
5631
b349d111
SM
5632 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5633 (P_): Support for prototypes is now required.
5634
c38eb027
CY
56352009-10-31 Chong Yidong <cyd@stupidchicken.com>
5636
5637 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5638 (Bug#4827).
5639
0405f8d9
EZ
56402009-10-30 Eli Zaretskii <eliz@gnu.org>
5641
d528b1ce 5642 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5643
ca0a881a
DN
56442009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5645
5646 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5647
d528b1ce
SM
5648 * lread.c (Fload): Purecopy the file name when building
5649 Vpreloaded_file_list.
ca0a881a 5650
47e0e0e4
JR
56512009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5652
5653 * w32fns.c (syms_of_w32fns): Change default value of
5654 w32-scroll-lock-modifier to nil. (Bug#2827)
5655
057bce6f
JB
56562009-10-26 Juanma Barranquero <lekktu@gmail.com>
5657
782a943e 5658 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5659
242bc74c
AS
56602009-10-26 Andreas Schwab <schwab@redhat.com>
5661
5662 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5663
522d013a
JB
56642009-10-26 Juanma Barranquero <lekktu@gmail.com>
5665
5666 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5667 For delta < 0, skip check that only makes sense when the mini-window
5668 is going to be enlarged. (Bug#4534)
5669
18060980
CY
56702009-10-25 Chong Yidong <cyd@stupidchicken.com>
5671
5672 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5673 string in menu maps (Bug#4471).
5674
fec8f0fe
CY
56752009-10-24 Chong Yidong <cyd@stupidchicken.com>
5676
5677 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5678 FRAME_NS_VIEW on terminal frames (Bug#4765).
5679
10d66ec0
AS
56802009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5681
1cae01f7
AS
5682 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5683 DBUS_TYPE_UINTnn separately to get proper sign extension.
5684
58a12889
AS
5685 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5686 can properly handle unsigned types.
d528b1ce 5687 (make_uid, make_gid): Remove.
58a12889 5688
987c9327
AS
5689 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5690 types again.
5691
522d013a 5692 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5693 (system_process_attributes): Likewise.
5694
905a9ed3
DN
56952009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5696
5697 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5698
5699 * eval.c (Fautoload): Purecopy the filename. Simplify.
5700
5701 * category.c (Fdefine_category): Purecopy docstring.
5702
a599b3e8
AS
57032009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5704
7b792fc9
AS
5705 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5706
a599b3e8
AS
5707 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5708
b35ac83e
CY
57092009-10-23 Chong Yidong <cyd@stupidchicken.com>
5710
5711 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5712 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5713 (Bug#4775).
5714
e8903e00
SM
57152009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5716
5717 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5718 (init_fileio_once):
5719 * lisp.h (init_fileio_once): Remove.
5720 * emacs.c (main): Don't call init_fileio_once.
5721
8f43cbf3
DN
57222009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5723
5724 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5725
26898943
AS
57262009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5727
5728 * doprnt.c (doprnt): Fix overflow check.
5729
5c646d5a
JD
57302009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5731
3132a7ea
JD
5732 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5733
5c646d5a
JD
5734 * xterm.h (x_wait_for_event): Declare it.
5735
5736 * xterm.c (pending_event_wait): New variable.
5737 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5738 see pending_event_wait.eventtype.
5739 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5740 (x_new_font): Call change_frame_size with new rows/columns before we
5741 try to resize the frame.
5c646d5a 5742 (x_wait_for_event): New function.
d528b1ce
SM
5743 (x_set_window_size_1): Don't change gravity unless change_gravity
5744 is set.
5c646d5a
JD
5745 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5746 don't change frame size, instead wait for the ConfigureNotify.
5747 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5748 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5749 (x_initialize): Initialize pending_event_wait.
5750
5751 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5752 size.
5753
5754 * widget.c (EmacsFrameSetValues): Add comment.
5755 (EmacsFrameSetCharSize): Just call x_set_window_size.
5756
5757 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5758 x_wait_for_event.
d528b1ce 5759 (flush_and_sync): Remove again.
5c646d5a
JD
5760 (xg_get_font_name): Suggest monospace if no previous font is known.
5761
e9c1637d
SM
57622009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5763
5764 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5765 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5766
5a72cccb
YM
57672009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5768
5769 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5770 processing pending events when event is filtered for input method.
ab04798f 5771 (Bug#3681)
5a72cccb 5772
2629aa37
JB
57732009-10-20 Juanma Barranquero <lekktu@gmail.com>
5774
5775 * fns.c: Add #endif accidentally removed in previous change.
5776
c3417a74
DN
57772009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5778
5779 * fns.c: Remove code for unsupported system: MAC_OS.
5780 * image.c: Likewise. Include setjmp.h.
5781
9685cef2
JD
57822009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5783
5784 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5785 pixel -1 (bug #4742).
5786
d7306fe6
DN
57872009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5788
019d2c4c
DN
5789 * process.c (create_pty): Remove conditionals for no longer
5790 supported systems: UNIPLUS and RTU.
5791
ee6bacd4
DN
5792 * xterm.c:
5793 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5794
d7306fe6
DN
5795 * alloc.c: Do not define struct catchtag.
5796 * eval.c: Move struct catchtag definition ...
5797 * lisp.h: ... here.
5798
5799 * image.c: Move png.h #include earlier to avoid warnings.
5800
5801 * xterm.c:
5802 * xsmfns.c:
5803 * xselect.c:
5804 * xrdb.c:
5805 * xmenu.c:
5806 * xftfont.c:
5807 * xfont.c:
5808 * xfns.c:
5809 * xfaces.c:
5810 * xdisp.c:
5811 * window.c:
5812 * widget.c:
5813 * w32xfns.c:
5814 * w32uniscribe.c:
5815 * w32term.c:
5816 * w32select.c:
5817 * w32reg.c:
5818 * w32proc.c:
5819 * w32menu.c:
5820 * w32inevt.c:
5821 * w32heap.c:
5822 * w32font.c:
5823 * w32fns.c:
5824 * w32console.c:
5825 * w32.c:
5826 * w16select.c:
5827 * vm-limit.c:
5828 * unexsol.c:
5829 * unexec.c:
5830 * unexcw.c:
5831 * unexaix.c:
5832 * undo.c:
5833 * tparam.c:
5834 * textprop.c:
5835 * terminfo.c:
5836 * terminal.c:
5837 * termcap.c:
5838 * term.c:
5839 * syntax.c:
5840 * sound.c:
5841 * sheap.c:
5842 * search.c:
5843 * scroll.c:
5844 * region-cache.c:
5845 * regex.c:
5846 * ralloc.c:
5847 * process.c:
5848 * print.c:
b024548b
DN
5849 * nsterm.m:
5850 * nsselect.m:
5851 * nsmenu.m:
5852 * nsimage.m:
5853 * nsfont.m:
5854 * nsfns.m:
d7306fe6
DN
5855 * msdos.c:
5856 * minibuf.c:
5857 * menu.c:
5858 * marker.c:
5859 * macros.c:
5860 * keymap.c:
5861 * keyboard.c:
5862 * intervals.c:
5863 * insdel.c:
5864 * indent.c:
5865 * gtkutil.c:
5866 * ftxfont.c:
5867 * ftfont.c:
5868 * fringe.c:
5869 * frame.c:
5870 * fontset.c:
5871 * font.c:
5872 * fns.c:
5873 * floatfns.c:
5874 * filelock.c:
5875 * fileio.c:
5876 * emacs.c:
5877 * editfns.c:
5878 * dosfns.c:
5879 * doprnt.c:
5880 * doc.c:
5881 * dispnew.c:
5882 * dired.c:
5883 * dbusbind.c:
5884 * data.c:
5885 * composite.c:
5886 * coding.c:
5887 * cmds.c:
5888 * cm.c:
5889 * chartab.c:
5890 * charset.c:
5891 * character.c:
5892 * ccl.c:
5893 * category.c:
5894 * casetab.c:
5895 * casefiddle.c:
5896 * callproc.c:
5897 * callint.c:
5898 * bytecode.c:
5899 * buffer.c:
5900 * atimer.c: Include setjmp.h. (Bug#4643)
5901
fd5f21e6
SM
59022009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5903
4c0354d7
SM
5904 Remove leftover table unibyte_to_multibyte_table.
5905 * character.c (unibyte_to_multibyte_table): Remove.
5906 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5907 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5908 * character.h (UNIBYTE_TO_CHAR): New macro.
5909 (MAKE_CHAR_MULTIBYTE): Use it.
5910 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5911 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5912 (message_dolog, set_message_1):
5913 * search.c (Freplace_match):
5914 * editfns.c (Fcompare_buffer_substrings):
5915 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5916 (concat):
5917 * insdel.c (copy_text, count_size_as_multibyte):
5918 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5919 * term.c (produce_glyphs):
5920 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5921 * regex.c (RE_CHAR_TO_MULTIBYTE):
5922 * cmds.c (internal_self_insert):
5923 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5924
fd5f21e6
SM
5925 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5926
4418646e
DN
59272009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5928
5929 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5930
35f5c1d2
JB
59312009-10-16 Juanma Barranquero <lekktu@gmail.com>
5932
5933 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5934
a0cd8f6b
AR
59352009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5936
5937 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5938 still needed under Tiger.
5939
5940 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5941
5942 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5943 __Apple__.
5944
5945 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5946
01a8d3fa
KH
59472009-10-15 Kenichi Handa <handa@m17n.org>
5948
5949 * print.c (print_object): Escape a symbol like "2E10" too.
5950
bf6c75c9 59512009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5952
5953 Cleanups and changes for 64-bit compile under Snow Leopard.
5954 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5955
5956 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5957
c5959062 5958 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5959 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5960 cast argument.
5961 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5962 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5963
5964 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5965
5966 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5967 where appropriate.
5968
5969 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5970 where appropriate.
6e4780c5
JB
5971 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5972 Use stringWithUTF8String.
bf6c75c9
AR
5973 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5974
6e4780c5
JB
5975 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5976 Add formal protocol mention to inheritance.
bf6c75c9
AR
5977 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5978
6e4780c5
JB
5979 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5980 Fix printf format.
bf6c75c9
AR
5981 (ns_query_color): Use CGFloat where appropriate.
5982 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5983 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5984 argument.
5985
3d87f118
AR
5986 * config.in (NS_HAVE_NSINTEGER): Drop.
5987
a95c8102
AR
5988 * dbusbind.c (dbus-method-return-internal)
5989 (dbus-method-error-internal): Use long format in printf, and cast
5990 argument.
5991
5992 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5993 in printf, and cast argument.
5994
6873acca 5995 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5996 cast argument.
5997
9ec6f100
GM
59982009-10-11 Glenn Morris <rgm@gnu.org>
5999
6000 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6001
5be883cd
JD
60022009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6003
6004 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6005 menu bar with a small width so it doesn't enlarge the frame.
6006
d7a39b51
JB
60072009-10-08 Juanma Barranquero <lekktu@gmail.com>
6008
6009 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6010
0c2b6f8e
GM
60112009-10-06 Glenn Morris <rgm@gnu.org>
6012
6013 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6014 SOME_MACHINE_LISP (this enters indirectly via DOC).
6015
e02131a2
EZ
60162009-10-05 Eli Zaretskii <eliz@gnu.org>
6017
6018 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6019
b4744254
EZ
60202009-10-04 Eli Zaretskii <eliz@gnu.org>
6021
6022 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6023 Doc fix.
6024
dbf64827
JB
60252009-10-03 Martin Rudalics <rudalics@gmx.at>
6026
6027 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6028
e9a0aef8
MA
60292009-10-02 Michael Albinus <michael.albinus@gmx.de>
6030
d528b1ce 6031 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6032 used anymore outside fileio.c.
6033
6034 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6035
64eb2b56
JB
60362009-10-01 Juanma Barranquero <lekktu@gmail.com>
6037
6038 * lisp.h (Qdelete_directory_internal):
6039 Declare, instead of Qdelete_directory.
6040
6041 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6042
9d28c33e
SM
60432009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6044
6045 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6046
9d8f3bd9
MA
60472009-10-01 Michael Albinus <michael.albinus@gmx.de>
6048
9d28c33e 6049 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6050 Fdelete_directory. It is not a command anymore. It has no file
6051 name handler.
6052
9694740b
SM
60532009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6054
6055 * xdisp.c (get_next_display_element): Use an enum in last change.
6056
748e162f
KH
60572009-09-28 Kenichi Handa <handa@m17n.org>
6058
9694740b 6059 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6060 unibyte_display_via_language_environment in handling
6061 Vnobreak_char_display.
6062
17efd58d
AR
60632009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6064
6065 * nsterm.h (ns_app_name): New extern variable.
6066
6067 * nsterm.m (ns_app_name): New variable.
6068 (ns_term_init): Set and use it.
6069 (ns_term_shutdown): Use it.
6070
6071 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6072 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6073
6074 * nsfns.m (ns_set_name_iconic, ns_set_name)
6075 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6076 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6077
9694740b
SM
6078 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6079 Remove double-casting in client_data comparison.
31c2d412 6080
3208cb35
YM
60812009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6082
6083 * keyboard.c (make_lispy_event): Remember last wheel direction.
6084 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6085
b7d552d6
GM
60862009-09-26 Glenn Morris <rgm@gnu.org>
6087
6088 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6089 internal.elc. Add term/pc-win.elc.
6090 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6091 term/x-win.elc.
6092 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6093 term/w32-win.elc.
6094 (NS_SUPPORT): New.
6095 (lisp): Add NS_SUPPORT.
6096 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6097
4ff670a8
DR
60982009-09-25 David Reitter <david.reitter@gmail.com>
6099
6100 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6101 on Mac OS X 10.6+ (bug#4513).
6102
feabfb6c
JB
61032009-09-24 Juanma Barranquero <lekktu@gmail.com>
6104
6105 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6106 some parts of Emacs code (like font selection) don't grok them.
6107 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6108
de59072a
AS
61092009-09-24 Andreas Schwab <schwab@redhat.com>
6110
6111 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6112
a489517b
JB
61132009-09-24 Juanma Barranquero <lekktu@gmail.com>
6114
6115 * dired.c (Fdirectory_files): Fix typo in docstring.
6116
0592970c
AR
61172009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6118
6119 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6120 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6121 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6122 under GNUstep.
6123 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6124
6125 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6126 glyph advancement.
6127
48e8a88b
AR
61282009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6129
6130 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6131 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6132
6133 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6134 deleted (bug #4492).
6135
e14f0a78
AR
6136 * nsfont.m (Vns_reg_to_script): New lisp variable.
6137 (syms_of_nsfont): Declare it.
6138 (ns_registry_to_script): New function.
6139 (ns_get_req_script): Call it.
6140 (ns_findfonts): Don't give up on non-unicode registry.
6141
6142 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6143
5b650faa
SM
61442009-09-20 Tom Tromey <tromey@redhat.com>
6145
6146 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6147 batch mode (bug#4228).
6148
a489517b 61492009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6150
6151 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6152 carefully. (Bug #4339)
0bae4e09 6153
fcfe06f3
CY
61542009-09-18 Chong Yidong <cyd@stupidchicken.com>
6155
d798ba87 6156 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6157
31642728
AR
61582009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6159
6160 * emacs.c (inhibit_x_resources): Update doc string for NS.
6161 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6162 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6163
6164 * nsterm.h (ns_no_defaults): Remove.
6165
6166 * nsterm.m (ns_no_defaults): Remove.
6167 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6168 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6169 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6170 don't update the NSWindow itself.
6171 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6172 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6173
6174 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6175 ns_use_qd_smoothing.
6176
6177 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6178 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6179 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6180 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6181
8686ac71
JB
61822009-09-17 Juanma Barranquero <lekktu@gmail.com>
6183
6184 * emacs.c (inhibit_x_resources): New variable.
6185 (main) [HAVE_NS]: Don't process --quick command line option.
6186 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6187
6188 * lisp.h (inhibit_x_resources): Declare it extern.
6189
6190 * w32reg.c (x_get_string_resource):
6191 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6192
e227ba05
EZ
61932009-09-17 Eli Zaretskii <eliz@gnu.org>
6194
362654a6
JB
6195 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6196 Add lisp/term/internal.elc.
e227ba05 6197
742d40e8
SM
61982009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6199
6200 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6201 (bug#4461).
6202
005bd5a2
DN
62032009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6204
6205 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6206
6207 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6208 (OBJECTS_MACHINE): Remove, unused.
6209
f9af9719
SM
62102009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6211
6212 * frame.c (x_get_resource_string): Remove unused.
6213
0307c7d2
JD
62142009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6215
6216 * xterm.c (x_new_font): Call change_frame_size before calling
6217 x_set_window_size, in case frame size won't change.
6218
6219 * frame.c (x_set_font): Remove dead code.
6220
428b13d6
SM
62212009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6222
6223 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6224
5766c380
SM
62252009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * lread.c (Fload): Don't output a message after loading an obsolete
6228 package any more (done in Lisp now).
6229
2fd0161b
CY
62302009-09-12 Chong Yidong <cyd@stupidchicken.com>
6231
6232 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6233
bc5e75b6
SM
62342009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6235
6236 * keymap.c (Fwhere_is_internal): Use nconc2.
6237
c31c985e
AM
62382009-09-11 Alan Mackenzie <acm@muc.de>
6239
6240 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6241 batch mode.
6242
78012bd2
AS
62432009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6244
6245 * xdisp.c (display_mode_element): Detect cycles.
6246
9d889332
SM
62472009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6248
6249 * keymap.c (where_is_internal): Don't erroneously return nil right after
6250 filling the cache.
6251 (where_is_internal_1): Fix up typo.
6252
7ab5d780
GM
62532009-09-11 Glenn Morris <rgm@gnu.org>
6254
6255 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6256 share a common doc-string.
6257
5238a749
SM
62582009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6259
66d77eda
SM
6260 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6261 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6262
5238a749
SM
6263 * keymap.c (QCadvertised_binding): New constant.
6264 (syms_of_keymap): Initialize it.
6265 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6266 if applicable.
6267
19f48442
SM
62682009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6269
50d4ba39
SM
6270 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6271 (parse_menu_item): Streamline since bindings are recomputed all the
6272 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6273 more and don't support lmenu's menu-alias any more either.
6274
a88a5372
SM
6275 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6276 (where_is_internal): Strip it down to only traverse the keymaps.
6277 Move the cache handling from Fwhere_is_internal to here.
6278 (Fwhere_is_internal): Move the handling of remapping and the choice of
6279 the best binding from where_is_internal to here.
6280 Unify the cached/noncached paths, so remapping is also handled
6281 correctly when the cache is used, and so the cache can be used to
6282 speed up remap-handling when applicable.
6283 Give preference to non-remapped bindings.
6284 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6285 non-remapped bindings.
6286 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6287 command remapping.
6288
19f48442
SM
6289 * xdisp.c (display_mode_element): Move list length limit from 50 to
6290 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6291
599498c3 62922009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6293
6294 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6295
f9b7b5ac
SM
62962009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6297
a53af587
JB
6298 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6299 (Bug#4334)
6300
f9b7b5ac
SM
6301 * keymap.c (where_is_internal): Filter out shadowed remappings.
6302 Assume that where_is_internal returns unshadowed bindings to simplify
6303 the code and get rid of the gotos. Use ASIZE.
6304
04f4b72d
JD
63052009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6306
4da146f2
JD
6307 * xterm.c (x_focus_changed): If we get a focusout and pointer
6308 is invisible, make it visible.
6309
04f4b72d
JD
6310 * xterm.h: Remove condition for declaration of
6311 x_*_window_to_frame.
6312
7cef7ce3
SM
63132009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6314
6315 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6316 initial terminal as well.
6317
a54fa5b7
JD
63182009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6319
6320 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6321 x_menubar_window_to_frame.
a54fa5b7 6322
50426a04 6323 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6324 (XTmouse_position): Do not return valid positions
6325 for clicks in the menubar and the toolbar for Gtk+.
6326
6327 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6328 if the widget for the event has the same top level as a frame,
6329 return the frame.
6330 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6331 internal windows, bug #4122.
6332 (x_non_menubar_window_to_frame): Remove.
6333
5a021dd0
GM
63342009-09-02 Glenn Morris <rgm@gnu.org>
6335
6336 * buffer.c (default-major-mode): Move most of the doc from here...
6337 (major-mode): ... to here.
6338
548fe2f3
NR
63392009-08-30 Nick Roberts <nickrob@snap.net.nz>
6340
6341 * process.c (wait_reading_process_output): Keep the descriptor
6342 when pty is used by a non-child process, e.g., in I/O buffer of
6343 GDB this allows inferior to be restarted.
6344
e0840eef
EZ
63452009-08-29 Eli Zaretskii <eliz@gnu.org>
6346
6347 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6348 both branches into one.
6349
82e98df4
SM
63502009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6351
6352 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6353 (main): Use enable-multibyte-characters rather than
6354 default-enable-multibyte-characters. Output a warning message when
6355 running a unibyte session.
6356
890617cb
YM
63572009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6358
6359 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6360 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6361 (copy_data_segment): Also copy __program_vars section.
6362 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6363 (dump_it) [LC_DYLD_INFO]: Use it.
6364
6365 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6366
e7adeadc
EZ
63672009-08-28 Eli Zaretskii <eliz@gnu.org>
6368
6369 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6370 $(SRC)/buildobj.h.
6371 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6372 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6373 $(SRC)/buildobj.h.
6374 (clean): Add buildobj.h.
6375
3ed8bbdc
TZ
63762009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6377
6378 * print.c (print_object): Set escapeflag to 1 when printing
6379 hashtable keys and values.
6380
155a6764
SM
63812009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6382
6383 * lread.c (read_integer): Use doubles (and potentially return a float
6384 number) as we do in string-to-number.
6385 (read1): Use strtol to read integers, signal errors on strtol's
6386 overflow and use floats if strtol's output is too large for
6387 Elisp integers.
6388
877610de
EZ
63892009-08-27 Eli Zaretskii <eliz@gnu.org>
6390
6391 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6392 (make-buildobj-SH): Fix last change.
6393 (SRC): Move to before where it's first used.
6394
ef73e7be
KH
63952009-08-27 Kenichi Handa <handa@m17n.org>
6396
550c8289
KH
6397 * process.c (send_process): Use encode_coding_object instead of
6398 encode_coding_string to perform eol-conversion even if the string
6399 is unibyte.
6400
60afa08d
KH
6401 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6402 character.
6403
ef73e7be 6404 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6405 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6406
7b3a82d7
DN
64072009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6408
5654bf63
DN
6409 * callproc.c (Fcall_process): Remove always true #if.
6410
7b3a82d7
DN
6411 * lisp.h: Replace #if 0 code for checking with text pointing to
6412 the --enable-checking configure flag.
6413
6414 * emacs.c (main): Mention the --enable-profiling configure flag
6415 instead of using CFLAGS.
6416
878bde49
KR
64172009-08-26 Ken Raeburn <raeburn@raeburn.org>
6418
6419 * Makefile.in (buildobj.h): New target.
6420 (doc.o): Depend on it.
6421 (temacs${EXEEXT}): Don't generate buildobj.lst.
6422 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6423 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6424 ($(BLD)/doc.$(O)): Depend on it.
6425 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6426 provided by Eli Zaretskii.)
6427 ($(TEMACS)): Don't generate buildobj.lst.
6428 * doc.c: Include buildobj.h.
6429 (buildobj): New static variable.
6430 (Fsnarf_documentation): Use it, instead of opening and reading
6431 buildobj.lst.
6432
1574224c
MA
64332009-08-25 Michael Albinus <michael.albinus@gmx.de>
6434
6435 * dbusbind.c (Fdbus_call_method)
6436 (Fdbus_call_method_asynchronously): Use English numeric format for
6437 timeout values in doc string.
6438
d9da2f45
KH
64392009-08-25 Kenichi Handa <handa@m17n.org>
6440
ef73e7be
KH
6441 * alloc.c (mark_char_table): New function.
6442 (mark_object): Use mark_char_table for a char-table.
6443
d9da2f45
KH
6444 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6445 (CHAR_TABLE_REF): Use it.
6446
c8edcc01
KR
64472009-08-23 Ken Raeburn <raeburn@raeburn.org>
6448
6449 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6450 before invoking the newly build emacs to check for load-path
6451 shadowing.
6452
7763401b
GM
64532009-08-22 Glenn Morris <rgm@gnu.org>
6454
6455 * Makefile.in (bootstrap_exe): New variable.
6456 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6457 Use ${bootstrap_exe}.
6458
729eadda
EZ
64592009-08-22 Eli Zaretskii <eliz@gnu.org>
6460
6461 * coding.h (encode_coding_string): Don't encode unibyte strings.
6462 (Bug#4047)
6463
eb4c6ace
MA
64642009-08-22 Michael Albinus <michael.albinus@gmx.de>
6465
6466 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6467
6468 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6469 intended as hotfix only.
6470 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6471
36e34d1b
AR
64722009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6473
6474 * nsterm.m (ns_get_color): Update documentation properly for last
6475 change, and clean up loose ends in the code left by it. Fix
6476 longstanding bug with 16-bit hex parsing, and add support for
6477 yet another X11 format (rgb:r/g/b) for compatibility.
6478 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6479 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6480
f983eb8a
SM
64812009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6482
6483 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6484
3f56d3c6
MA
64852009-08-20 Michael Albinus <michael.albinus@gmx.de>
6486
6487 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6488 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6489 (xd_initialize, xd_pending_messages): Check, whether
6490 $DBUS_SESSION_BUS_ADDRESS is set.
6491
fb641d68
YM
64922009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6493
6494 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6495
6496 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6497
cf59a374
GM
64982009-08-20 Glenn Morris <rgm@gnu.org>
6499
6500 * emacs.c (system-type): Doc fix.
6501
1373f3be
SM
65022009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6503
6504 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6505 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6506
058ed861
MA
65072009-08-18 Michael Albinus <michael.albinus@gmx.de>
6508
1373f3be
SM
6509 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6510 New functions.
058ed861
MA
6511 (xd_initialize): Revert change from 2009-08-16.
6512
563a866e 65132009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6514
6515 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6516 font-group vector, return nil.
5fc05db0 6517
e42bdf01
CY
65182009-08-17 Chong Yidong <cyd@stupidchicken.com>
6519
6520 * process.c (status_notify): Don't perform redisplay.
6521 (Fdelete_process, list_processes_1, process_send_signal):
6522 Expliticly perform redisplay.
6523 (wait_reading_process_output): Always check process status, but
6524 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6525
4230ab74
KR
65262009-08-17 Ken Raeburn <raeburn@raeburn.org>
6527
1373f3be 6528 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6529 (XFLOAT_INIT): New macro for storing a float value.
6530 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6531 * fns.c (sxhash): Copy out the value of a float in order to
6532 examine its bytes.
6533 * dbusbind.c (xd_append_arg): Likewise.
6534
4230ab74
KR
6535 * emacs.c (main): Don't call syms_of_data twice.
6536
a0645cdd
MA
65372009-08-16 Michael Albinus <michael.albinus@gmx.de>
6538
6539 * dbusbind.c (xd_initialize): Add connection file descriptor to
6540 input_wait_mask, in order to let select() detect, whether a new
6541 message has been arrived.
ca4f31ea 6542 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6543
485db0ba
MA
65442009-08-15 Michael Albinus <michael.albinus@gmx.de>
6545
1373f3be
SM
6546 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6547 New functions.
485db0ba
MA
6548
6549 * lisp.h (xd_pending_messages): Declare.
6550
6551 * keyboard.c (readable_events): Call xd_pending_messages.
6552
b5b98ff4
CY
65532009-08-15 Chong Yidong <cyd@stupidchicken.com>
6554
1373f3be 6555 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6556
f8354c6e
CY
6557 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6558
b5b98ff4
CY
6559 * buffer.c (set_buffer_internal_1)
6560 (swap_out_buffer_local_variables): Check for unbound local
6561 variables (Bug#4138).
6562
8b9fc636
EZ
65632009-08-14 Eli Zaretskii <eliz@gnu.org>
6564
6565 * process.c (create_pty): Fix last change.
6566
ce959360
CY
65672009-08-13 Chong Yidong <cyd@stupidchicken.com>
6568
6569 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6570 (xbm_load_image): Caller changed.
64b807c9 6571 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6572
c7baf7e9
NR
65732009-08-13 Nick Roberts <nickrob@snap.net.nz>
6574
6575 * process.c (create_pty): New function.
6576 (Fstart_process): Use it to allow Emacs to just associate a pty
6577 with the buffer. See associated change in gdb-mi.el.
6578 (list_processes_1): Deal with no program name.
6579 (start_process_unwind): Use pid == -2 to mean no process.
6580
1ac9108a
SM
65812009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6582
6583 * cmds.c (nonundocount): New global variable.
6584 (keys_of_cmds): Initialize it.
6585 (Fself_insert_command): Use it to combine upto 20 sequential chars
6586 into a single undo entry, just like the Qself_insert_command code in
6587 keyboard.c does.
6588 Call frame_make_pointer_invisible, also like the Qself_insert_command
6589 code in keyboard.c does.
6590 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6591 than its own local replacement for it.
6592
e267324c
KR
65932009-08-10 Ken Raeburn <raeburn@raeburn.org>
6594
1ac9108a 6595 * fns.c (concat): Don't re-set string length to its current value.
77437343 6596
1ac9108a
SM
6597 * coding.h (decode_coding_string, encode_coding_string):
6598 Use SBYTES macro.
f0bed503 6599
1ac9108a 6600 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6601 (doprnt): Merge with doprnt1, discarding lispstrings code.
6602 * lisp.h (doprnt_lisp): Don't declare.
6603
416e006d
JL
66042009-08-07 Juri Linkov <juri@jurta.org>
6605
6606 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6607
6f7d5780
DN
66082009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6609
6610 * print.c (syms_of_print): Undo previous change.
6611
f19a0f5b
TZ
66122009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6613
6614 * lread.c (read1, syms_of_lread): Read hashtables back from the
6615 readable format.
6616
6617 * print.c (print_preprocess, print_object): Print hashtables fully
6618 and readably.
6619 (syms_of_print): Provide 'hashtable-print-readable.
6620
b9173dc2
AR
66212009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6622
6623 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6624 no family set.
6625 (nsfont_open): Handle case when entity has no family.
6626
1586503c
AR
66272009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6628
6629 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6630 element, not a list, for match case.
6631
087048cd
KH
66322009-07-28 Kenichi Handa <handa@m17n.org>
6633
6634 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6635 rigidly.
6636
6637 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6638 font_parse_xlfd. Check font properties more rigidly.
6639
780c2506
DN
66402009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6641
31fd7c5c
JB
6642 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6643 bsd-common.h.
780c2506 6644
a8c0cc18
KH
66452009-07-27 Kenichi Handa <handa@m17n.org>
6646
6647 * xfaces.c (face_with_height): Call font_clear_prop.
6648
4fbe2306
CY
66492009-07-26 Chong Yidong <cyd@stupidchicken.com>
6650
111d9af3
CY
6651 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6652
6653 * xterm.c (x_term_init): Use Qx.
6654
4fbe2306
CY
6655 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6656
1ac9108a 6657 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6658 (ns_get_color): Revert 2009-07-16 change.
6659
beb0b7f9
EZ
66602009-07-25 Eli Zaretskii <eliz@gnu.org>
6661
6662 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6663 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6664
2baf5e76
KR
66652009-07-25 Ken Raeburn <raeburn@raeburn.org>
6666
1ac9108a
SM
6667 * coding.h (decode_coding_string, encode_coding_string):
6668 Use SCHARS macro.
8890e5f5 6669
2baf5e76 6670 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6671 (load_depth): Delete.
2baf5e76
KR
6672 (Qload_in_progress): New variable.
6673 (load_unwind): Don't reference load_depth or load_in_progress.
6674 (Fload): Likewise; specbind Qload_in_progress instead.
6675 (init_lread): Don't initialize load_depth.
6676 (syms_of_lread): Initialize and protect Qload_in_progress.
6677
1395c6f5
AR
66782009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6679
6680 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6681
4e2f36cf
AR
66822009-07-23 Yavor Doganov <yavor@gnu.org>
6683
6684 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6685
5dd9a6f7
AR
66862009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6687
6688 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6689 Bugs 3792, 3720, 2402.
6690 (ns_lookup_indexed_color): Check for bad index.
6691 (ns_index_color): Init unused slot to 0.
6692 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6693 Bug 3714, possibly 3082.
5dd9a6f7 6694
c902b920
JR
66952009-07-22 Jason Rumney <jasonr@gnu.org>
6696
1ac9108a
SM
6697 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6698 Position IME window at cursor (Bug#2570).
c902b920
JR
6699 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6700 (globals_of_w32fns): Dynamically load functions required above.
6701
6702 * w32term.c (w32_draw_window_cursor): Send message to reposition
6703 any IME window.
6704
090101cf
CY
67052009-07-21 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * fileio.c: Revert 2009-07-16 changes.
6708 (Vauto_save_include_big_deletions): New variable.
6709 (Fdo_auto_save): Disable auto-save only if
6710 auto-save-include-big-deletions is nil.
6711
e6583e3d
CY
67122009-07-21 Chong Yidong <cyd@stupidchicken.com>
6713
6714 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6715 the overflowed pixels into account (Bug#3879).
6716
ece435a5
KR
67172009-07-21 Ken Raeburn <raeburn@raeburn.org>
6718
6719 * lread.c (load_depth): New variable.
6720 (Fload, load_unwind, init_lread): Set it to the load recursion
6721 depth; set load_in_progress as a simple boolean based on the
6722 current load_depth. (Bug#3892)
6723
40b2d973
AR
67242009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6725
6726 * nsfont.m (ns_has_attribute): Remove.
6727 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6728
10be7e0d
JL
67292009-07-18 Juri Linkov <juri@jurta.org>
6730
6731 * process.c (Fset_process_query_on_exit_flag): Mention killing
6732 a buffer in docstring.
6733
fa055055
KH
67342009-07-17 Kenichi Handa <handa@m17n.org>
6735
6736 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6737
042f7b69
YM
67382009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6739
6740 * nsfns.m (Fns_set_alpha): Remove function.
6741 (syms_of_nsfns): Don't defsubr it.
6742
6743 * nsterm.m (ns_get_color): Remove incompatible color formats.
6744 (ns_color_to_lisp): Generate #rrggbb color format string.
6745
4be941e3
RS
67462009-07-16 Richard Stallman <rms@gnu.org>
6747
6748 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6749 (Fset_buffer_auto_saved): Handle save_length = -2.
6750
4e6b227d
CY
67512009-07-16 Chong Yidong <cyd@stupidchicken.com>
6752
6753 * xterm.c (Qx_gtk_map_stock): New var.
6754
6755 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6756 of calling intern each time.
6757
a1856973
YM
67582009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6759
6760 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6761 does tiling.
6762
6763 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6764
497e54d8
KH
67652009-07-14 Kenichi Handa <handa@m17n.org>
6766
72d36834
KH
6767 * font.c (font_vconcat_entity_vectors): New function.
6768 (struct font_sort_data): New member font_driver_preference.
6769 (font_compare): Check font_driver_preference.
6770 (font_sort_entities): The format of the first argument changed.
6771 (font_delete_unmatched): Likewise.
6772 (font_list_entities): The return type changed.
6773 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6774 (font_find_for_lface): Adjuste for the above changes.
6775 Don't suppress the checking of C even if the repertory supports it.
6776 (Flist_fonts): Adjust for the above changes.
72d36834 6777
1ac9108a
SM
6778 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6779 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6780 Reject a font who has adstyle property that is different from a
6781 langname derived from registry property.
1ac9108a 6782 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6783
b6046155
EZ
67842009-07-13 Eli Zaretskii <eliz@gnu.org>
6785
6786 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6787 local copy of dirfilename.
6788
fb6b6049
KH
67892009-07-13 Kenichi Handa <handa@m17n.org>
6790
e2402a5e
KH
6791 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6792 against max_char.
6793
fb6b6049
KH
6794 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6795 calling XSYMBOL (sym).
6796
65156807
EZ
67972009-07-11 Eli Zaretskii <eliz@gnu.org>
6798
1ac9108a
SM
6799 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6800 New function.
6801 (directory_files_internal) [WINDOWSNT]:
6802 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6803 the filesystem of the directory is fast or slow.
6804
6805 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6806 file name.
6807 (is_slow_fs): New function.
6808 (stat): Use it to determine whether to issue more system calls to
6809 get accurate file attributes, when w32-get-true-file-attributes is
6810 `local'.
6811
e0ab5fcf
JD
68122009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6813
6814 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6815 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6816 parameter font-parameter as default to the font dialog.
6817
784ceded
KH
68182009-07-10 Kenichi Handa <handa@m17n.org>
6819
6820 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6821
fb8edc0b
EZ
68222009-07-09 Eli Zaretskii <eliz@gnu.org>
6823
1ac9108a 6824 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6825
fb8edc0b
EZ
6826 * w32.c (stat): Treat UNC file names as residing on remote
6827 drives. (Bug#3542)
6828
635c75b1
KH
68292009-07-09 Kenichi Handa <handa@m17n.org>
6830
6831 * fontset.c (fontset_find_font): Fix previous change.
6832
c1d5ce94
MA
68332009-07-08 Michael Albinus <michael.albinus@gmx.de>
6834
6835 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6836 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6837 error flag.
6838
edb61b39
KH
68392009-07-08 Kenichi Handa <handa@m17n.org>
6840
374bf7e4
KH
6841 * fontset.c (fontset_find_font): Fix the logic of handling
6842 charset_matched.
6843 (font_for_char): Delete unused var.
6844 (generate_ascii_font_name): Delete it.
6845
edb61b39
KH
6846 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6847
6848 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6849 (encode_coding_sjis): Fix the code range check.
6850
0f3f018c
CY
68512009-07-07 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6854 (Fexpand_file_name): Copy string data properly (Bug#3772).
6855
fcaf6f3a
JD
68562009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6857
6858 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6859 first MapNotify.
6860
6809ca75
KH
68612009-07-07 Kenichi Handa <handa@m17n.org>
6862
6863 * character.h (unibyte_has_multibyte_table): Delete extern.
6864 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6865
6866 * charset.c (Fset_charset_priority): Update charset_unibyte.
6867 (syms_of_charset): Initialize charset_unibyte.
6868
6869 * character.c (unibyte_has_multibyte_table): Delete it.
6870 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6871 charset_unibyte.
6872 (multibyte_char_to_unibyte_safe): Likewise.
6873 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6874
1ac9108a 6875 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6876 (x_produce_glyphs): Likewise.
6877
6878 * .gdbinit (xcharset): Fix the treating $arg0.
6879
ad9e2d54
EZ
68802009-07-04 Eli Zaretskii <eliz@gnu.org>
6881
6882 Emulation of `getloadavg' on MS-Windows.
50426a04 6883 * w32.c: Include float.h.
ad9e2d54
EZ
6884 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6885 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6886 (get_native_system_info, get_system_times): New functions.
6887 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6888 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6889 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6890 g_b_init_get_system_times, and num_of_processors.
6891
0a3472c7
JR
68922009-07-03 Jason Rumney <jasonr@gnu.org>
6893
6894 * w32term.c (w32_initialize): Use standard types.
6895
80904120
EZ
68962009-07-03 Eli Zaretskii <eliz@gnu.org>
6897
6898 * dired.c (Ffile_attributes): Decode user and group names by the
6899 locale's encoding. (Bug#3443)
6900
6978862d
DN
69012009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6902
f8d23104
DN
6903 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6904 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6905
6906 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6907
6908 * term.c (init_tty): Remove spurious #ifdef.
6909
6978862d
DN
6910 * m/mips.h: Mention this file is also used for netbsd.
6911 * m/pmax.h: Remove file.
6912
e044e4fc
JD
69132009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6914
6915 * xterm.h (struct x_display_info): Add invisible_cursor.
6916 (struct x_output): Add current_cursor.
6917
6918 * xterm.c (XTtoggle_invisible_pointer): New function.
6919 (x_define_frame_cursor): Don't define cursor if invisible or the
6920 same as before. Set current_cursor.
6921 (x_create_terminal): Set toggle_invisible_pointer_hook.
6922
6923 * xfns.c (make_invisible_cursor): New function.
6924 (x_set_mouse_color): Call make_invisible_cursor.
6925 Set current_cursor.
6926 (x_window): Set current_cursor.
6927
6928 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6929
6930 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6931 inserting a character.
6932 (read_avail_input): Call frame_make_pointer_visible.
6933
6934 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6935 (frame_make_pointer_invisible, frame_make_pointer_visible):
6936 New functions.
e044e4fc
JD
6937 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6938
6939 * frame.h: Declare frame_make_pointer_invisible and
6940 frame_make_pointer_visible.
6941 (struct frame): Add pointer_invisible.
6942
574c8efa
JD
69432009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6944
7b507248
JD
6945 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6946 frame isn't visible.
6947 (xg_frame_resized): If width/height is -1, get size of window
6948 from X server.
6949
6950 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6951 for MapNotify.
6952
835bdaa7 6953 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6954 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6955 (flush_and_sync): Reintroduce.
574c8efa 6956
3f1c6666 69572009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6958
31fd7c5c 6959 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6960
6961 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6962 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6963
6964 * frame.h: Declare Qsticky.
6965
cad9ef74
JD
6966 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6967
6968 * nsfns.m (ns_frame_parm_handlers): Ditto.
6969
6970 * frame.c: Declare Qsticky.
6971 (frame_parms): Add sticky.
6972
6973 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6974
6975 * xterm.h: Declare x_set_sticky.
6976
6977 * xterm.c (x_set_sticky): New function.
6978
69b16610
JD
6979 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6980 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6981 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6982
6983 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6984
6985 * frame.c: Qmaximized is new.
6986 (x_set_frame_parameters): Do not handle fullscreen specially.
6987 Only set width and height if explicitly set.
6988 (x_set_fullscreen): Handle Qmaximized.
6989 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6990 (syms_of_frame): Initialize Qmaximized.
6991
1ac9108a
SM
6992 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6993 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6994
6995 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6996 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6997 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6998 set gravity to NorthWestGravity when USE_GTK.
6999 (set_wm_state): New function.
31fd7c5c 7000 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7001 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7002 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7003 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7004 to x_real_positions and x_fullscreen_adjust.
7005
7006 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7007 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7008 flush_and_sync.
7009 (xg_height_changed): New function.
7010 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7011 and gtk_window_set_policy. Set frame gravity after parsing the
7012 geometry string.
3f1c6666
JD
7013 (xg_update_frame_menubar, free_frame_menubar)
7014 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7015 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7016 Remove calls to xg_frame_set_char_size.
7017
fd503d99
KH
70182009-07-01 Kenichi Handa <handa@m17n.org>
7019
7020 * keyboard.c (decode_keyboard_code): New function.
7021 (tty_read_avail_input): Decode the input bytes if necessary.
7022
1ac9108a
SM
7023 * coding.c (setup_coding_system):
7024 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7025 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7026 use Qno_conversion.
7027
24ed93fb
YM
70282009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7029
7030 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7031
99061dfc
CY
70322009-06-30 Chong Yidong <cyd@stupidchicken.com>
7033
1ac9108a 7034 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7035
ff90fbde
JR
70362009-06-30 Jason Rumney <jasonr@gnu.org>
7037
7038 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7039 is already loaded.
7040 Set user model ID if supported (bug#1849).
7041
5f445726
JM
70422009-06-29 Jim Meyering <meyering@redhat.com>
7043
7044 Remove useless if-before-xfree test.
7045 * nsfont.m (nsfont_close): Remove useless test.
7046 * term.c (delete_tty): Likewise.
7047 * w32.c (system_process_attributes): Likewise.
7048 * w32font.c (w32font_close): Likewise.
7049 * xfaces.c (x_free_gc): Likewise.
7050 * xselect.c (buffer): Likewise.
7051
b9607587
AS
70522009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7053
7054 * process.c (send_process): Keep decoded string in a local
7055 variable and protect it from GC. (Bug#3521)
7056
89ba96f4
EZ
70572009-06-28 Eli Zaretskii <eliz@gnu.org>
7058
7059 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7060 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7061
098a1589
CY
70622009-06-28 Chong Yidong <cyd@stupidchicken.com>
7063
485422be
CY
7064 * xdisp.c (start_display, handle_face_prop)
7065 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7066 (redisplay_window, try_window_id, produce_image_glyph):
7067 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7068
098a1589
CY
7069 * xterm.c (x_update_window_begin, x_new_focus_frame)
7070 (x_scroll_bar_handle_click, handle_one_xevent)
7071 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7072 (x_make_frame_visible, x_make_frame_invisible)
7073 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7074 code chunks that are now obsolete.
7075
78c38319
MA
70762009-06-28 Michael Albinus <michael.albinus@gmx.de>
7077
7078 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7079 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7080 for hours, when optimzation is enabled.
7081 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7082 (xd_read_message): Make them static.
7083
4189ed40
CY
70842009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7085
7086 * term.c (turn_on_face): Allow simultaneously bold and dim
7087 terminal faces (Bug#3530).
7088
cd9b5e16
CY
70892009-06-27 Chong Yidong <cyd@stupidchicken.com>
7090
4e23bedb
CY
7091 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7092
cd9b5e16
CY
7093 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7094 truncation glyphs (Bug#3686).
7095
07cc3c35
GM
70962009-06-27 Glenn Morris <rgm@gnu.org>
7097
7098 * m/pmax.h: Restore file, with only netbsd portions.
7099
31fd7c5c 71002009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7101
cd9b5e16 7102 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7103
42d4a64f
KH
71042009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7105
7106 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7107 the arg FORCE_SYMBOL.
7108
930fe55b 71092009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7110
7111 * fontset.c (fontset_find_font): When a usable rfont_def is found
7112 in a fallback font-group, make it the first element of the group.
7113
57ebc3fd
CY
71142009-06-24 Chong Yidong <cyd@stupidchicken.com>
7115
7116 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7117
f084f942
KH
71182009-06-24 Kenichi Handa <handa@m17n.org>
7119
7120 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7121 set for C.
7122 (fontset_font): Record the availability of a font for C both in
7123 the realized fontsets of the current one and the default one.
7124
2f686c87
DN
71252009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7126
7127 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7128 conditional, it is always defined on AIX.
7129
666e158e
MB
71302009-06-23 Miles Bader <miles@gnu.org>
7131
7132 * window.c (Vrecenter_redisplay): New variable.
7133 (syms_of_window): Initialize it.
7134 (Qtty): New extern declaration.
7135 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7136
c6da7cd2
JM
71372009-06-23 Jim Meyering <meyering@redhat.com>
7138
1ac9108a
SM
7139 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7140 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7141 pointer dereferences are guaranteed to be valid.
c6da7cd2 7142
678dca3d
KH
71432009-06-23 Kenichi Handa <handa@m17n.org>
7144
74d75424
KH
7145 * emacs.c (main): Call init_font ().
7146
7147 * font.h (Vfont_log): Extern it.
7148 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7149
7150 * font.c (font_sort_entities, font_list_entities)
7151 (font_matching_entity, font_open_entity)
7152 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7153 (Vfont_log): Delete static.
7154 (font_log_env_checked): Delete this variable.
7155 (font_add_log): Don't check font_log_env_checked.
7156 (font_deferred_log): Check Vfont_log.
7157 (init_font): New function.
7158
678dca3d
KH
7159 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7160
7161 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7162
7163 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7164
7165 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7166
7167 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7168 (face_for_char): Don't call font_deferred_log here.
7169 (font_for_char): Likewise.
7170
8a668709
CY
71712009-06-22 Chong Yidong <cyd@stupidchicken.com>
7172
9a01ee33
CY
7173 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7174 rather than its background_width for drawing the overline and
7175 underline (Bug#489).
7176
7177 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7178 rather than its background_width for drawing the overline and
7179 underline (Bug#489).
ec7c9926
CY
7180 (xg_default_icon_file): New variable.
7181 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7182 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7183
8a668709
CY
7184 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7185 (load_overlay_strings): Remove externs.
7186 (fast_find_position): Function deleted.
7187 (mouse_face_from_buffer_pos): New function, based on
7188 fast_find_position. Correctly handle before-strings,
7189 display-strings, and after-strings (Bug#1220).
7190 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7191
4d4c02d8
CY
71922009-06-21 Chong Yidong <cyd@stupidchicken.com>
7193
1ac9108a 7194 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7195 (move_it_in_display_line_to, move_it_in_display_line_to)
7196 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7197
70243478
CY
71982009-06-21 Chong Yidong <cyd@stupidchicken.com>
7199
7200 * Branch for 23.1.
7201
13087e59
JR
72022009-06-21 Jason Rumney <jasonr@gnu.org>
7203
7204 * w32term.c (keyboard_codepage): New static variable.
7205 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7206 (w32_read_socket) [WM_CHAR]: Use it to decode character
7207 input (bug#3237).
7208 (w32_initialize): Initialize it.
7209 (codepage_for_locale): New function.
7210
4735b74e
KR
72112009-06-20 Ken Raeburn <raeburn@raeburn.org>
7212
7213 * process.c (status_message): Pass Faset index argument as a lisp
7214 object, so as to work with USE_LISP_UNION_TYPE.
7215
0e727afa
YM
72162009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7217
7218 * coding.c (Ffind_coding_systems_region_internal):
7219 Cache checked characters.
7220
cf299835
KH
72212009-06-18 Kenichi Handa <handa@m17n.org>
7222
1ac9108a 7223 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7224
90f20d94
AS
72252009-06-18 Andreas Schwab <aschwab@redhat.com>
7226
7227 * xdisp.c (redisplay_internal): Check that the frame is still
7228 live after redisplay of its windows.
7229 (redisplay_windows): Check that the window is still live.
7230
7f1faf1c
KH
72312009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7232
7233 * coding.c (detect_coding_utf_16): Fix previous change.
7234
cc13543e
KH
72352009-06-16 Kenichi Handa <handa@m17n.org>
7236
7237 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7238 UTF-16 by checking the dispersion of Eth and Oth bytes.
7239
977b85f4
AS
72402009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7241
7242 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7243
66bd43d1
KH
72442009-06-15 Kenichi Handa <handa@m17n.org>
7245
7246 * process.c (status_message): Fix previous change. Be sure to
7247 decode a localized string.
7248
cb5ca9c5
YM
72492009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7250
7251 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7252 add comment explaining why.
7253
ec7709ba 72542009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7255
ec7709ba 7256 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7257
4b7f335c
AR
72582009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7259
7260 * nsfont.m (ns_attribute_value): Remove.
7261 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7262 (ns_has_attribute): Shrink the normal range.
7263 (ns_findfonts): Don't worry about requested spec in determining
7264 need for synthItal.
e41820ee 7265 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7266
73b26103
SZ
72672009-06-14 Seiji Zenitani <zenitani@mac.com>
7268
7269 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7270
5753e4da
KH
72712009-06-11 Kenichi Handa <handa@m17n.org>
7272
7273 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7274 overhang for the static composition case.
7275
3561b671
KH
72762009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7277
5753e4da
KH
7278 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7279 overhang for the automatic composition case.
7280
3561b671
KH
7281 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7282 composition case.
7283
852bbd41
CY
72842009-06-10 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * xdisp.c (get_next_display_element): When handling wrap-prefix
7287 and line-prefix, treat \n as a control character (bug#3502).
7288
9903d1e6
KH
72892009-06-10 Kenichi Handa <handa@m17n.org>
7290
7291 * font.c (font_parse_family_registry): Fix for one-char foundry.
7292 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7293
0bcbaaaa
CY
72942009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7295
7296 * process.c (status_message): Fix handling of multibyte signal
7297 string (Bug#3499).
7298
40aa3f13
JM
72992009-06-09 Jim Meyering <meyering@redhat.com>
7300
1f80c7e2
CY
7301 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7302 color name is missing.
40aa3f13 7303
72d51285
KH
73042009-06-09 Kenichi Handa <handa@m17n.org>
7305
7306 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7307 FROM-CODE and TO-CODE are codepoints of CHARSET.
7308
c1d04d84
AR
73092009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7310
7311 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7312
73132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7314
7315 Changes to support :script/:lang/:otf in NS font driver.
7316 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7317 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7318 indicate not part of font driver interface, and change callers.
7319 (ns_get_family): Remove pointless null check.
7320 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7321 ns_spec_to_descriptor, ns_descriptor_to_entity.
7322 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7323 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7324 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7325 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7326 (ns_get_req_script, ns_accumulate_script_ranges)
7327 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7328 New functions.
7329 (nsfont_list, nsfont_match): Use ns_findfonts.
7330 (nsfont_open): Use font descriptor instead of traits.
7331 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7332 (dump_glyphstring): Rename to ns_dump_glyphstring.
7333
c7eb9816
AR
7334 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7335
c1d04d84
AR
7336 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7337
7338 * fontset.c (fontset_from_font): Remove NS-specific code.
7339
ec7709ba 73402009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7341
7342 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7343 nonactive windows.
7344
31fd7c5c 73452009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7346
1ac9108a 7347 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7348
68852c13 73492009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7350
7351 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7352
6756cd1d
CY
73532009-06-07 Chong Yidong <cyd@stupidchicken.com>
7354
7355 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7356 account for the overflowing of newlines into the last glyph on the
7357 display line (Bug#3482).
7358
28bf482a
DR
73592009-06-05 David Reitter <david.reitter@gmail.com>
7360
ec7709ba
JB
7361 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7362 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7363 Fns_selection_exists_p, Fns_selection_owner_p.
7364
fdb55376
JR
73652009-06-03 Jason Rumney <jasonr@gnu.org>
7366
7367 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7368 available. (Bug#3379)
7369
05129fbe
KH
73702009-05-29 Kenichi Handa <handa@m17n.org>
7371
1ac9108a
SM
7372 * coding.c (get_translation_table):
7373 Check Venable_character_translation.
05129fbe 7374
ec7709ba 73752009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7376
ec7709ba
JB
7377 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7378 (x_make_frame_visible): Move frame to front rather than calling
15891144 7379 ns_raise_frame().
ec7709ba 7380 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7381 isn't key window.
ec7709ba 7382 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7383 drawRect may be called by NSView even if the frame is hidden.
7384
ec7709ba
JB
7385 * nsfns.m (Fx_create_frame): Follow other ports in
7386 determining visibility; default to t. Ensure async_visible is set.
15891144 7387
21f73755
EZ
73882009-05-23 Eli Zaretskii <eliz@gnu.org>
7389
7390 * dired.c (Ffile_attributes): Doc fix.
7391
34001e41
CY
73922009-05-22 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7395
46306a17
SM
73962009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7397
7398 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7399 and xfont_scratch_props.
7400 (syms_of_xfont): Do it here instead.
7401 (xfont_find_ccl_program): Delete, unused.
7402 (xfont_open): Delete unused var `i'.
7403
ef6e0694
KH
74042009-05-21 Kenichi Handa <handa@m17n.org>
7405
7406 * fontset.c (Qlatin): Don't make it static.
7407
46306a17
SM
7408 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7409 New functions.
ef6e0694
KH
7410 (xfont_scripts_cache, xfont_scratch_props): New variables.
7411 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7412 (xfont_list_pattern): Argument changed. Callers changed.
7413 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7414 (xfont_list): Don't reject a font spec with :script property.
7415 (xfont_has_char): Fix setting of encoding.
7416 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7417 xfont_scratch_props.
7418
74192009-05-19 Kenichi Handa <handa@m17n.org>
7420
46306a17 7421 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7422 Callers changed.
7423
74242009-05-18 Kenichi Handa <handa@m17n.org>
7425
7426 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7427
ac71ced7
SM
74282009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7429
7430 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7431 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7432
1c6d1051
YM
74332009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7434
7435 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7436 (x_delete_terminal): Dissociate resource database from display and
7437 then call XrmDestroyDatabase before closing display.
7438
9b9b779c
AR
74392009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7440
7441 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7442 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7443 whether selected frame is viable before raising it (based on patch
7444 by David Reitter), and improve commentary.
7445 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7446
cccd42d5
KH
74472009-05-15 Kenichi Handa <handa@m17n.org>
7448
7449 * font.c (Ffont_spec): Check arguments.
7450
337fbd17
CY
74512009-05-14 Chong Yidong <cyd@stupidchicken.com>
7452
7453 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7454 weight when testing attributes (Bug#3282).
7455
47a6002f
JD
74562009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7457
7458 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7459 what we expect to get in the next ConfigureNotify event.
7460
9cb363db
YM
7461 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7462 before Xft one (Bug#1696).
7463
b9126609
CY
74642009-05-07 David Reitter <david.reitter@gmail.com>
7465
7466 * nsfns.m (Fx_display_planes): Compute bitplanes using
7467 NSBitsPerPixelFromDepth (Bug#3207).
7468
27a69fd9
CY
74692009-05-10 Chong Yidong <cyd@stupidchicken.com>
7470
7471 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7472
00f37552
TTN
74732009-05-10 Ulrich Mueller <ulm@gentoo.org>
7474
7475 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7476
2d82a920
DR
74772009-05-07 David Reitter <david.reitter@gmail.com>
7478
ec7709ba
JB
7479 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7480 Respect mouse face background.
2d82a920 7481
46b0d52d
DR
74822009-05-07 David Reitter <david.reitter@gmail.com>
7483
ec7709ba
JB
7484 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7485 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7486 in ns_update_begin and ns_update_end.
7487
ce1b23bb
SM
74882009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7489
5996e1b7
SM
7490 * nsfns.m (ns_get_screen): Rewrite.
7491 Don't presume selected-frame is of type `ns'.
7492
ba98e3a0
SM
7493 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7494 all drivers.
7495
ce1b23bb
SM
7496 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7497
bcda200f
YM
74982009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7499
7500 * keyboard.h (add_user_signal): Fix typo in extern.
7501
7502 * lisp.h (add_user_signal): Remove extern.
7503
7504 * unexelf.c (unexec): Consider a section to precede the .bss section
7505 if its addresses overlap that of .bss.
7506 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7507 instead of dumping process.
7508
864660a2
SM
75092009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7510
7511 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7512
50da4e56
SM
75132009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7514
7515 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7516
51520a1a
DN
75172009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7518
7519 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7520 any statements.
7521
409ea3a1
AS
75222009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7523
59c4c60f
AS
7524 * process.c (read_process_output): Make sure the current buffer is
7525 always restored.
7526
409ea3a1
AS
7527 * coding.c (record_conversion_result): Don't modify
7528 Vlast_code_conversion_error for successful result.
7529 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7530
56f00ed2
KH
75312009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7532
7533 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7534 (load_charset_map): Remove unnecessary code.
56f00ed2 7535
4491c9d2
DR
75362009-04-30 David Reitter <david.reitter@gmail.com>
7537
35f5b128 7538 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7539 through f24.
7540
6970f632
CY
75412009-04-30 Chong Yidong <cyd@stupidchicken.com>
7542
7543 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7544
7545 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7546 face_at_buffer_position.
7547 (face_before_or_after_it_pos, get_next_display_element)
7548 (note_mouse_highlight): Update face_at_buffer_position call.
7549
7550 * term.c (term_mouse_highlight):
7551 * msdos.c (IT_note_mouse_highlight):
7552 * fontset.c (Finternal_char_font):
35f5b128 7553 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7554
7555 * dispextern.h (face_at_buffer_position): Update prototype.
7556
0c616f63
KH
75572009-04-30 Kenichi Handa <handa@m17n.org>
7558
35f5b128 7559 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7560
ad3aaf33
AS
75612009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7562
7563 * callproc.c (Fcall_process): Fix GC protection. Make sure
7564 current buffer is always restored.
7565
c3c963a0
YM
75662009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7567
7568 * atimer.c (init_atimer): Also clear stopped_atimers.
7569
7570 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7571
7e3386cb
YM
7572 * process.c (create_process): Clean up merger residues of
7573 2008-07-17 change.
7574
91f68422
CY
75752009-04-29 Ulrich Mueller <ulm@gentoo.org>
7576
7577 * lread.c (Vread_circle): New variable.
7578 (read1): Disable recursive read if Vread_circle is nil.
7579
24b34550
KH
75802009-04-29 Kenichi Handa <handa@m17n.org>
7581
7582 * fontset.h (set_default_ascii_font): Delete extern.
7583
7584 * fontset.c (set_default_ascii_font): Delete this unused function.
7585
7586 * frame.c (x_set_font): When ARG is a font-object, check if the
7587 font-object matches with the ASCII font-spec of the frame's
9c358bda 7588 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7589
77bf07e1
AS
75902009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7591
7592 * fns.c (Flocale_info): Protect vector from GC during decoding.
7593
7594 * process.c (Fstart_process): Protect argv strings from GC during
7595 encoding.
7596
2c55aacf
AS
75972009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7598
7599 * sysdep.c: Include <ctype.h>.
7600
b892d3c9
DR
76012009-04-27 David Reitter <david.reitter@gmail.com>
7602
35f5b128 7603 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7604 Remove commented-out code.
7605
9d0644c4
JB
76062009-04-26 Johan Bockgård <bojohan@gnu.org>
7607
7608 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7609
b7053016
JR
76102009-04-25 Jason Rumney <jasonr@gnu.org>
7611
7612 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7613
4e8231f3
YM
76142009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7617 Swap bytes in short integer if fringe bitmap width > 8.
7618
493dcf2c
KH
76192009-04-23 Kenichi Handa <handa@m17n.org>
7620
7621 * xfaces.c (Fx_list_fonts): If a font size is specified in
7622 PATTERN, set it in returned scalable fonts.
7623
401e9e57
CY
76242009-04-22 Chong Yidong <cyd@stupidchicken.com>
7625
708e05dc
CY
7626 * keyboard.c (Fset_input_meta_mode): Doc fix.
7627
7628 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7629
1ac9108a 7630 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7631
7632 * coding.c (Fterminal_coding_system): Doc fix.
7633
7634 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7635 (Fx_display_pixel_height, Fx_display_planes)
7636 (Fx_display_color_cells, Fx_server_max_request_size)
7637 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7638 (Fx_display_mm_height, Fx_display_mm_width)
7639 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7640 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7641 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7642 (check_x_display_info): Handle terminal objects instead of
7643 terminal ids.
7644
401e9e57
CY
7645 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7646 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7647 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7648 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7649
df80c7f0
KH
76502009-04-21 Kenichi Handa <handa@m17n.org>
7651
5a8f12af 7652 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7653 (font_score): Check AVGWIDTH too.
908567ef 7654
df80c7f0
KH
7655 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7656 worst case.
1ac9108a
SM
7657 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7658 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7659
705af33f
JR
76602009-04-19 Jason Rumney <jasonr@gnu.org>
7661
7662 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7663 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7664
7665 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7666 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7667 get_phys_cursor_geometry.
7668
b71ac3dd 7669 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7670 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7671 using get_phys_cursor_geometry.
7672
7673 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7674 correctly calculated.
7675
dc2933eb
JD
76762009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7677
1ac9108a
SM
7678 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7679 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7680 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7681 is deprecated.
7682
973e7849
AS
76832009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7684
7685 * font.c (font_put_frame_data): Use xfree instead of free.
7686
314d66f4
JB
76872009-04-17 Juanma Barranquero <lekktu@gmail.com>
7688
7689 * w32font.c (Qja, Qko): Remove declarations.
7690 (syms_of_w32font): Don't DEFSYM them.
7691
cf702558
CY
76922009-04-17 Chong Yidong <cyd@stupidchicken.com>
7693
7694 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7695
7696 * font.h (Qja, Qko): Extern them.
7697
7698 * ftfont.c (Qja, Qko): Remove declarations.
7699
7700 * xfont.c (Qja, Qko): Remove declarations.
7701
b50504f5
KH
77022009-04-17 Kenichi Handa <handa@m17n.org>
7703
bde25748
KH
7704 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7705 string from a vector to handle Latin-1 characters correctly.
7706
b50504f5
KH
7707 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7708 entity even if the cache hits.
7709
f4646fff
AS
77102009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7711
7712 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7713 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7714
e7deaab0
AS
7715 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7716 * lisp.h: Adjust prototypes.
7717
0a0e7d49
CY
77182009-04-16 Chong Yidong <cyd@stupidchicken.com>
7719
7720 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7721 change (Bug#3003).
7722
3c908a57
KH
77232009-04-16 Kenichi Handa <handa@m17n.org>
7724
1ac9108a 7725 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7726
7727 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7728 adstyle.
7729
7730 * ftfont.c (Qja, Qko): Don't make them static.
7731 (enum ftfont_cache_for): New enum.
7732 (fc_charset_table): Undo the previous change.
7733 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7734 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7735 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7736 non-scarable font, try to get AVERAGE_WIDTH.
7737 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7738 Change ft_face_cache from a list of a hash-table. Don't check
7739 `ja' and `ko' adstyle here.
7740 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7741 FTFONT_CACHE_FOR_CHARET.
7742 (ftfont_get_charset): Undo the previous change.
1ac9108a 7743 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7744 (ftfont_close): Likewise.
7745 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7746
7747 * font.c (font_sort_entites): Change the meaning of the arg
7748 BEST-ONLY. Don't optimize for VEC of lenght 1.
7749 (font_select_entity): Just return the value of font_sort_entites.
7750
7751 * xfaces.c (merge_face_vectors): Reflect font properties in
7752 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7753 font_clear_prop if a face attribute doesn't change.
7754
3c908a57
KH
7755 * charset.h (charset_ksc5601): Extern it.
7756
7757 * charset.c (charset_ksc5601): New variable.
7758 (Fdefine_charset_internal): Set charset_ksc5601.
7759 (init_charset_once): Initialize charset_ksc5601 to -1.
7760
d65859c3
DN
77612009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7762
7763 * fileio.c (history_delete_duplicates): Remove unused declaration.
7764
7765 * callint.c (history_delete_duplicates): New declaration.
7766 (Fcall_interactively): Remove command history duplicates when
7767 history_delete_duplicates is true.
7768
3ba010e5
EZ
77692009-04-14 Eli Zaretskii <eliz@gnu.org>
7770
7771 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7772
06f19b91
KH
77732009-04-14 Kenichi Handa <handa@m17n.org>
7774
7775 * font.c (Ffont_info): Fix docstring. Fix the second element of
7776 the returned value (bug#2949).
7777
2cce8bfc
CY
77782009-04-14 Chong Yidong <cyd@stupidchicken.com>
7779
7780 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7781
d156542d
KH
77822009-04-14 Kenichi Handa <handa@m17n.org>
7783
7784 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7785 encoding charset is ascii_compatible.
7786
7787 * charset.c (Fdefine_charset_internal): Make charset
7788 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7789 code_offset is 0, and covers all ASCII characters.
7790
86fa089e
SM
77912009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7792
7793 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7794 (ns_string_to_pasteboard_internal):
7795 * nsmenu.m (process_dialog):
7796 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7797 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7798 * lisp.h (Fx_load_color_file): Declare.
7799
a8a3728b
KH
78002009-04-13 Kenichi Handa <handa@m17n.org>
7801
1ac9108a 7802 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7803 (font_select_entity): Suppress the code to optimize for the same
7804 kind of fonts.
7805 (font_load_for_lface): Get a font that supports at least ASCII
7806 characters.
7807
7808 * ftfont.c (Qja, Qko): New variables.
7809 (fc_charset_table): Delete uniquifier data for iso8859-1.
7810 (ftfont_get_latin1_charset): New function.
7811 (get_adstyle_property): New function.
7812 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7813 bitmap fonts.
7814 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7815 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7816 `ko' or `ja'.
7817 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7818 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7819 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7820 property.
7821 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7822 (syms_of_ftfont): DEFSYM Qja and Qko.
7823
483670b5
KH
78242009-04-09 Kenichi Handa <handa@m17n.org>
7825
12b55765
KH
7826 * charset.c (map_charset_chars): For a charset of `superset'
7827 method, fix calculation of code range.
7828
483670b5
KH
7829 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7830 from the list of extra properties.
7831 (font_clear_prop): Be sure to delete `:name' font property.
7832
57d3b93b
KH
78332009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7834
b4b2c2ca
YM
7835 * dispnew.c (redraw_overlapping_rows): Fix detection of
7836 overlapping for topmost and bottommost rows.
7837
1ac9108a 7838 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7839
472c3609
JR
78402009-04-06 Jason Rumney <jasonr@gnu.org>
7841
7842 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7843
ab193662
KH
78442009-04-06 Kenichi Handa <handa@m17n.org>
7845
7846 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7847
7848 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7849
0c26f026
KH
78502009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7851
7852 * ftfont.c (ftfont_open): Fix checking of the return value of
7853 FT_Load_Char. Fix setting font->underline_thickness.
7854
e173bbce
CY
78552009-04-04 Chong Yidong <cyd@stupidchicken.com>
7856
7857 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7858 (Fterminal_parameters, Fterminal_parameter)
7859 (Fset_terminal_parameter): In doc string, refer to terminal
7860 objects rather than terminal ids.
7861
693a2698
EZ
78622009-04-04 Eli Zaretskii <eliz@gnu.org>
7863
7864 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7865 ret_lim_data. (Bug#2867)
7866
d5221487
CY
78672009-04-03 Chong Yidong <cyd@stupidchicken.com>
7868
7869 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7870 so they don't get wider than the window, matching 2006-01-23
7871 change to the partner function in xdisp.c (Bug#2800).
7872
223509a3
KH
78732009-04-03 Kenichi Handa <handa@m17n.org>
7874
7875 * print.c (print_object): Make each lowest sub_char_table start a
7876 new line (Bug#2866).
7877
74fcd0b1
KH
78782009-04-02 Kenichi Handa <handa@m17n.org>
7879
7880 * fontset.c (fontset_font): Record no-font when a fontset
7881 explicitly tells not to try another font-specs.
7882
c542407d
SM
78832009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7884
7885 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7886
e3869731
KH
78872009-03-30 Kenichi Handa <handa@m17n.org>
7888
d8d2f142
KH
7889 * fontset.c (fontset_from_font): Specify only registry in a
7890 font-spec for all characters supported by that registry.
7891
e3869731
KH
7892 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7893 even if HAVE_M17N_FLT is not defined.
7894
5da5f805
CY
78952009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7896
7897 * ftfont.c: Conditionalize prototyping and use of
7898 ftfont_variation_glyphs.
7899
ab226c50
SM
79002009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7901
9628fed7
SM
7902 * frame.c (delete_frame): Work around compiler bug.
7903
7904 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7905 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7906 Some more EMACS_INT.
7907 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7908
7909 * xdisp.c (dump_glyph): Fix typo.
7910
ae19ba7c
SM
7911 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7912 (adjust_markers_gap_motion, adjust_markers_for_delete)
7913 (adjust_markers_for_insert, adjust_point)
7914 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7915 (make_gap, copy_text, count_size_as_multibyte, insert)
7916 (insert_and_inherit, insert_before_markers)
7917 (insert_before_markers_and_inherit, insert_1)
7918 (count_combining_before, count_combining_after, insert_1_both)
7919 (insert_from_string, insert_from_string_before_markers)
7920 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7921 (insert_from_buffer_1, adjust_after_replace)
7922 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7923 (replace_range_2, del_range, del_range_1, del_range_byte)
7924 (del_range_both, del_range_2, modify_region)
7925 (prepare_to_modify_buffer, signal_before_change)
7926 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7927 for buffer positions and sizes.
7928 * lisp.h: Adjust prototypes accordingly.
7929
7930 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7931 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7932 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7933
ab226c50
SM
7934 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7935
46dfb8fb
JD
79362009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7937
7938 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7939 lines and columns so we keep the same pixel height and width.
7940
7941 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7942 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7943 (x_handle_net_wm_state): New function to update frame parameter
7944 fullscreen.
7945 (x_term_init): Initialize atoms for _NET_WM_STATE.
7946
7947 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7948
d347e494
SM
79492009-03-27 Kevin Ryde <user42@zip.com.au>
7950
7951 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7952 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7953 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7954 (Fgpm_mouse_stop): Pass that new parameter.
7955 * termhooks.h (close_gpm): Adjust prototype.
7956
84db11d6
SM
79572009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7958
c95a5008
SM
7959 * lisp.h (Fx_focus_frame): Declare.
7960
84db11d6
SM
7961 * callint.c (Fcall_interactively): For '^' just delegate the work to
7962 handle-shift-selection.
7963 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7964
0a1958d6
CY
79652009-03-24 Chong Yidong <cyd@stupidchicken.com>
7966
0bfdff23
CY
7967 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7968
0a1958d6
CY
7969 * data.c (Qinteractive_form): New variable.
7970 (Finteractive_form): Use it.
7971
7972 * eval.c (Fcommandp): Use Qinteractive_form.
7973
58aec0d6
JR
79742009-03-24 Jason Rumney <jasonr@gnu.org>
7975
7976 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7977 Calculate total size precisely. Decode environment variables
7978 before substituting. (Bug#38)
7979
553dd618
KH
79802009-03-24 Kenichi Handa <handa@m17n.org>
7981
7982 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7983 encoding (Bug#2722).
553dd618 7984
c39ea606
JD
79852009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7986
7987 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7988 that gdpy is set.
7989
bc9b2b5e
AM
79902009-03-22 Alan Mackenzie <acm@muc.de>
7991
7992 * callint.c (Finteractive): Clarify the doc string - even
7993 promptless elements need \n separators.
7994
9f995a76
JR
79952009-03-22 Jason Rumney <jasonr@gnu.org>
7996
7997 * w32term.c (syms_of_w32term): Doc fix for
7998 x-use-underline-position-properties.
7999
22749e9a
EZ
80002009-03-21 Eli Zaretskii <eliz@gnu.org>
8001
8002 * w32.c (getpwuid): Change argument type to unsigned.
8003 (struct w32_id): Change type of `rid' member to unsigned.
8004 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8005 argument ID to unsigned. All callers changed.
8006 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8007
e00553bf
EZ
80082009-03-20 Eli Zaretskii <eliz@gnu.org>
8009
8010 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8011 negative, produce a float value.
8012
8013 * dired.c (make_uid, make_gid): New functions.
8014 (Ffile_attributes): Use them to avoid negative UID and GID.
8015
f761d6b6
JB
80162009-03-20 Juanma Barranquero <lekktu@gmail.com>
8017
8018 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8019 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8020 Fix typos in docstrings.
8021
d507f8d7
KH
80222009-03-19 Kenichi Handa <handa@m17n.org>
8023
8024 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8025 changed, use font_load_for_lface to get a new font object.
8026 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8027
8028 * frame.c (x_set_font): Handle the case that ARG is a cons.
8029
c68845e0
GM
80302009-03-19 Glenn Morris <rgm@gnu.org>
8031
8032 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8033
bfa49dd1
CY
80342009-03-19 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8037
8458d4c1
KH
80382009-03-19 Kenichi Handa <handa@m17n.org>
8039
8040 * charset.c (load_charset_map_from_file): When a mapfile can't be
8041 loaded, signal an error.
8042
78e7d1fe
EZ
80432009-03-18 Eli Zaretskii <eliz@gnu.org>
8044
8045 * dired.c (Ffile_attributes): Make sure UID and GID are always
8046 positive, even if the value is too large for a positive EMACS_INT.
8047 Doc fix.
8048
8049 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8050
5da9fdfa
YM
80512009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8052
8053 * xmenu.c (xdialog_show): Move Fredisplay call ...
8054 (Fx_popup_dialog): ... here.
8055
7519c40d
SM
80562009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8057
8058 * dired.c (file_name_completion): Disable the first optimization just
8059 installed, since it is not implemented correctly.
8060
2cd298e2
SM
80612009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8062
8063 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8064 only if the entry can affect bestmatch.
2cd298e2
SM
8065 Stop the search early, as Ftry_completion already does.
8066
48d37adf
CY
80672009-03-17 Chong Yidong <cyd@stupidchicken.com>
8068
e10c9c93 8069 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8070
9286b16a
CY
80712009-03-15 Chong Yidong <cyd@stupidchicken.com>
8072
8073 * keyboard.c (parse_menu_item): Don't display remappings as menu
8074 equivalent bindings (Bug#788).
8075
f7b146dc
JR
80762009-03-15 Jason Rumney <jasonr@gnu.org>
8077
8078 * w32term.h (WM_EMACS_PAINT): New message.
8079 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8080 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8081 before passing to lisp thread. (Bug#950)
8082
f761d6b6 80832009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8084
d93f9575
CY
8085 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8086 variable as it was never reset.
8087 (ns_term_init): Remove initialization of Lisp-settable defaults
8088 and ns_expand_space.
8089 (-setPanelFromDefaultValues): Remove ns_expand_space.
8090 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8091 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8092 i.e. no additional spacing, similar to Carbon port.
8093
d93f9575
CY
8094 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8095 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8096
305018ec
JD
80972009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8098
8099 * sound.c (alsa_configure): Remove call to deprecated
8100 snd_pcm_sw_params_set_xfer_align.
8101
f761d6b6 81022009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8103
8104 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8105 after clicking in a detached tool bar.
8106 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8107
46e722a9
SM
81082009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8109
348db3dd
SM
8110 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8111 int/Lisp_Object mixup).
46e722a9 8112
a3d16f39
KH
81132009-03-13 Kenichi Handa <handa@m17n.org>
8114
8115 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8116 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8117 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8118 (set_fontset_font): Change ARG to a vector. Handle range_list in
8119 ARG correctly.
8120 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8121 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8122 the above change.
8123 (fontset_from_font): Fix previous change.
fe24f56a 8124 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8125 entry. If FONTSET is the default fontset, don't set the extra
8126 slot of the returning char-table.
8127
b066e6b6
JB
81282009-03-12 Juanma Barranquero <lekktu@gmail.com>
8129
8130 * nsfns.m (Fx_close_connection): Doc fix.
8131 (Fns_do_applescript): Reflow docstring.
8132 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8133 (Fx_display_pixel_width, Fx_display_pixel_height)
8134 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8135 Fix typos in docstrings.
8136 (Fns_set_alpha): Fix typos in error messages.
8137
d472514e 81382009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8139
d472514e 8140 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8141 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8142 were used for such events.
8143
d472514e
JB
8144 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8145 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8146
d472514e 8147 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8148 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8149
fb930676
KH
81502009-03-11 Kenichi Handa <handa@m17n.org>
8151
ff85581a
KH
8152 * font.h (font_open_by_spec): Extern it.
8153
c50b7e98
KH
8154 * font.c (font_open_by_spec): New function.
8155 (font_open_by_name): Use font_open_by_spec.
8156
fb930676
KH
8157 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8158 fontset of the frame.
8159
8160 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8161 modify the default font of frames that use this fontset.
8162 (num_auto_fontsets): New variable.
8163 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8164 name. Be sure to set FONTSET_ASCII to the correct font name.
8165 (update_auto_fontset_alist): New function.
8166
df4e8455
JB
81672009-03-11 Juanma Barranquero <lekktu@gmail.com>
8168
8169 * makefile.w32-in: Update dependencies.
8170
0a375797
AR
81712009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8172
8173 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8174
61313fa3
SM
81752009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8176
8177 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8178
b55103fb
CY
81792009-03-10 Chong Yidong <cyd@stupidchicken.com>
8180
8181 * lread.c (Feval_buffer): Doc fix.
8182
dde2559c
KH
81832009-03-09 Kenichi Handa <handa@m17n.org>
8184
8185 * charset.c (Qfile_name_handler_alist): Extern it.
8186 (load_charset_map_from_file): Temporarily bind
8187 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8188
df4e8455 81892009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8190
47f588bb
GM
8191 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8192 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8193
4ddf94bd
AR
81942009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8195
4c9bdfc2
AR
8196 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8197 (x_set_window_size): Change back to calculated method of setting
8198 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8199 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8200 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8201
fe41ae9e
AR
8202 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8203
4c9bdfc2
AR
8204 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8205 accelerator in parens under GNUstep.
8206
825d0875
KH
82072009-03-06 Kenichi Handa <handa@m17n.org>
8208
8209 These changes are to detect incorrect composition sequence without
f3b3be74 8210 looking ahead the source. (Bug#2370)
825d0875
KH
8211
8212 * coding.h: Include "composite.h".
8213 (enum compisition_state): New enum.
8214 (struct compisition_status): New struct.
8215 (struct iso_2022_spec): New member cmp_status.
8216 (struct emacs_mule_spec): New struct.
8217 (struct coding_system): New members ctext_extended_segment_len and
8218 embedded_utf_8. Change the union member
8219 spec.emacs_mule_full_support to spec.emacs_mule.
8220
8221 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8222 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8223 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8224 (ADD_COMPOSITION_DATA): New arg nbytes.
8225 (emacs_mule_char): New arg cmp_status.
8226 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8227 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8228 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8229 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8230 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8231 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8232 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8233 (EMACS_MULE_COMPOSITION_END): New macro.
8234 (emacs_mule_finish_composition): New function.
8235 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8236 (decode_coding_emacs_mule): Avoid long looking ahead while
8237 handling composition.
8238 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8239 (ENCODE_COMPOSITION_RULE): New macro.
8240 (finish_composition): New function.
8241 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8242 (DECODE_COMPOSITION_START): New implementation.
8243 (DECODE_COMPOSITION_END): Likewise.
8244 (STORE_COMPOSITION_RULE): New macro.
8245 (decode_coding_iso_2022): Avoid long looking ahead while handling
8246 composition, CTEXT extended segment, and embedded UTF-8.
8247 (setup_coding_system): For a coding of type iso-2022, reset
8248 CODING_ISO_EXTSEGMENT_LEN (coding) and
8249 CODING_ISO_EMBEDDED_UTF_8 (coding).
8250 (get_translation): Delete arguments last_block, from_nchars,
8251 to_nchars. Callers changed.
8252 (produce_chars): Don't modify charbuf. Adjusted for the change of
8253 get_translation.
98a326f7 8254 (produce_composition): Adjust for the new annotation sequence.
825d0875 8255 (handle_composition_annotation): Likewise.
98a326f7 8256 (consume_chars): Adjust for the change of get_translation.
825d0875 8257
ccbc4452
AR
82582009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8259
4ddf94bd 8260 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8261
988a7ddb
KH
82622009-03-05 Kenichi Handa <handa@m17n.org>
8263
8264 * font.c (font_select_entity): New function.
8265 (font_find_for_lface): Use font_select_entity to select a font.
8266
8267 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8268 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8269 font with C restriction.
8270
98a326f7 82712009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8272
be1bce46 8273 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8274
10ea2b82
JR
82752009-03-04 Jason Rumney <jasonr@gnu.org>
8276
2c93b248 8277 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8278 characters that have already been read. (Bug#2569)
2c93b248 8279
10ea2b82
JR
8280 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8281 Log an error message if check_image_size failed.
8282 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8283 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8284
71a0c011
EZ
82852009-03-02 Eli Zaretskii <eliz@gnu.org>
8286
8287 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8288 when decoding process output.
8289
2f63bba8
RS
82902009-03-01 Richard M Stallman <rms@gnu.org>
8291
8292 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8293
8294 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8295
0a9564cb
EZ
82962009-02-28 Eli Zaretskii <eliz@gnu.org>
8297
8298 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8299 (decode_coding_emacs_mule, decode_coding_iso_2022)
8300 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8301 (decode_coding_raw_text, decode_coding_charset)
8302 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8303 Honor inhibit-eol-conversion. (Bug #2186)
8304
449148b3
JR
83052009-02-28 Jason Rumney <jasonr@gnu.org>
8306
8307 * coding.c (detect_coding_charset): If not checking latin extra,
8308 fail on characters between 0x80 and 0xA0. (Bug#2354)
8309
a4aee864
EZ
83102009-02-28 Eli Zaretskii <eliz@gnu.org>
8311
8312 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8313 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8314
d88bee5a
GM
83152009-02-27 Glenn Morris <rgm@gnu.org>
8316
8317 * callint.c (Finteractive): Doc fix.
8318
a808f22d
KH
83192009-02-27 Kenichi Handa <handa@m17n.org>
8320
8321 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8322
caf8d60c
CY
83232009-02-27 Chong Yidong <cyd@stupidchicken.com>
8324
8325 * font.c (font_style_to_value): Set value for unknown symbols to
8326 100 instead of 255.
b61137ea
CY
8327 (weight_table, slant_table, width_table): Treat "unspecified" as
8328 the default value.
caf8d60c 8329
1a0de25c
JB
83302009-02-26 Juanma Barranquero <lekktu@gmail.com>
8331
8332 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8333
8fc45744
JB
83342009-02-25 Juanma Barranquero <lekktu@gmail.com>
8335
107bd7d1
JB
8336 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8337 error as soon as a recursive load is detected.
8fc45744 8338
f097e223
AR
83392009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8340
8341 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8342 before caching.
8343
8810a12f
KH
83442009-02-24 Kenichi Handa <handa@m17n.org>
8345
8346 * fontset.c (fontset_find_font): Fix the condition for checking
8347 unavailable font.
8348
2c7d1565
GM
83492009-02-24 Glenn Morris <rgm@gnu.org>
8350
8351 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8352 whitespace that confuses documentation.
8353
a20878b6
MB
83542009-02-23 Miles Bader <miles@gnu.org>
8355
8356 * process.c (Flist_system_processes, Fprocess_attributes)
8357 (syms_of_process): Rename `system-process-attributes' to
8358 `process-attributes'.
8359
b3b58c01
AS
83602009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8361
1b3b981b
AS
8362 * coding.h (struct coding_system): Make safe_charsets a pointer to
8363 unsigned char.
8364 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8365 being 255.
8366 (SAFE_CHARSET_P): Likewise.
8367 (setup_iso_safe_charsets): Properly setup safe_charsets.
8368 (Fdefine_coding_system_internal): Likewise.
8369 (setup_coding_system): Likewise. Remove unneeded casts.
8370 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8371 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8372 unneeded casts.
8373
b3b58c01
AS
8374 * insdel.c (del_range_2): Don't modify gap contents when called
8375 from decode_coding_object. (Bug#1809)
8376
0b6f228c
CY
83772009-02-21 Chong Yidong <cyd@stupidchicken.com>
8378
8379 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8380 Qfont_object.
8381 (Ftype_of): Recognize font objects.
8382
8383 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8384
8385 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8386 moved to data.c.
8387
52f8870b
AR
83882009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8389
8390 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8391 async_iconified. Based on a patch by Christian Lynbech
8392 <christian.lynbech@tieto.com>.
8393 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8394
7087d5e9
GM
83952009-02-20 Glenn Morris <rgm@gnu.org>
8396
8397 * syntax.c (Fskip_chars_forward): Fix doc typo.
8398
41d2ceef
CY
83992009-02-20 Chong Yidong <cyd@stupidchicken.com>
8400
8401 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8402
1a3b7ca6
CY
84032009-02-19 Chong Yidong <cyd@stupidchicken.com>
8404
8405 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8406
73cce38d
KH
84072009-02-19 Kenichi Handa <handa@m17n.org>
8408
8409 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8410 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8411
a51092ee
DN
84122009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8413
8414 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8415
c423ecca
KH
84162009-02-18 Kenichi Handa <handa@m17n.org>
8417
8418 * font.c (font_check_otf_features): Fix handling of `nil' element.
8419 (Ffont_spec): Describe :lang and :otf in the docstring.
8420
4c1958f4
AS
84212009-02-16 Andreas Schwab <schwab@suse.de>
8422
8423 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8424 string.
8425
5704f39a
KH
84262009-02-16 Kenichi Handa <handa@m17n.org>
8427
8428 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8429 (Bug#1723)
5704f39a 8430
8f0085aa
CY
84312009-02-14 Chong Yidong <cyd@stupidchicken.com>
8432
a057d86a 8433 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8434
8435 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8436 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8437
aff01dd9
EZ
84382009-02-14 Eli Zaretskii <eliz@gnu.org>
8439
8440 * msdos.c (MAX_SCREEN_BUF): New macro.
8441 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8442 Encode the entire run of glyphs sharing the same face, instead of
8443 doing that one glyph at a time (fixes a bug with displaying
8444 double-size characters).
8445
ba301db3
AR
84462009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8447
8448 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8449
8450 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8451 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8452 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8453
8454 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8455 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8456
51d861de
SM
84572009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8458
ac146f82 8459 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8460 invisible areas.
8461
7fed8996
JR
84622009-02-12 Jason Rumney <jasonr@gnu.org>
8463
631ea4fb
JR
8464 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8465 (add_font_entity_to_list): Call check_face_name even when family
8466 is unspecified.
8467
cb4a3e42
JR
8468 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8469 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8470 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8471
7fed8996 8472 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8473 raster fonts. (Bug#2219)
7fed8996 8474
895416e3
KH
84752009-02-12 Kenichi Handa <handa@m17n.org>
8476
8477 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8478 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8479 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8480 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8481 (find_automatic_composition): While looking forward and backward,
8482 check static composition. Fix where to stop looking forward.
8483 (composition_adjust_point): Fix checking of static composition.
8484 (Fcomposition_get_gstring): Pay attention to
1dacf998 8485 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8486
8487 * lisp.h (fast_looking_at): Extern it.
8488
8489 * search.c (fast_looking_at): New function.
8490
51d861de 8491 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8492 <struct glyph>.u.cmp.to.
8493 (append_composite_glyph): Likewise.
8494
51d861de 8495 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8496 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8497 composition.
51d861de 8498 (append_composite_glyph): Adjust for the change of
895416e3
KH
8499 <strcut glyph>.u.cmp.to.
8500
8510724d
JB
85012009-02-11 Juanma Barranquero <lekktu@gmail.com>
8502
8503 * casetab.c (init_casetab_once):
8504 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8505 * font.c (font_update_lface):
8506 * fontset.c (Fnew_fontset):
8507 * ftfont.c (ftfont_drive_otf):
8508 * xfont.c (xfont_open):
8509 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8510
294fa707
SM
85112009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8512
8513 * fileio.c (Fwrite_region): !NILP -> CONSP.
8514
b5bfebec
AS
85152009-02-10 Andreas Schwab <schwab@suse.de>
8516
8517 * process.c (send_process): Properly relocate pointer into data
adab88bd 8518 when using encoded data. (Bug#2272)
b5bfebec 8519
cb84a2be
KH
85202009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8521
8522 * coding.c (detect_coding_charset): Fix previous change.
8523
89e09428
JR
85242009-02-08 Jason Rumney <jasonr@gnu.org>
8525
8526 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8527 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8528
4470a277
AS
85292009-02-07 Andreas Schwab <schwab@suse.de>
8530
8531 * unexelf.c (unexec): Fix error message.
8532
3175b12a
AR
85332009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8536 when modal window is active. (Bug #2152)
3175b12a
AR
8537 (applicationShouldTerminate:): Remove now-unneeded while loop
8538 around NSRunAlertPanel.
8539
8540 * nsmenu.m (popupSession): New file-global variable.
8541 (pop_down_menu): End the popupSession before closing dialog.
8542 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8543 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8544 don't query NSApp for events (just sleep instead).
8545
8434d0b8
EZ
85462009-02-07 Eli Zaretskii <eliz@gnu.org>
8547
51d861de
SM
8548 * coding.c (syms_of_coding) <translation-table-for-input>:
8549 Modify doc string to discourage use for character code unification.
8434d0b8 8550
aa82edfd
CY
85512009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8552
8553 * atimer.c (run_timers): Update pending_atimers.
8554
2d283c7c
CY
85552009-02-06 Chong Yidong <cyd@stupidchicken.com>
8556
eb306cab
CY
8557 * image.c (svg_load_image): Fix last change.
8558
2d283c7c
CY
8559 * xfns.c (Fx_create_frame): Signal an error if no font is
8560 found (Bug#2147).
8561
4d8e170e
JB
85622009-02-05 Juanma Barranquero <lekktu@gmail.com>
8563
8564 * character.c (syms_of_character) <script-representative-chars>:
8565 Fix typo in docstring.
8566
c96169a0
AR
85672009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8568
8569 * nsmenu.m (pop_down_menu): New function.
8570 (ns_popup_dialog): Call it on unwind.
8571 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8572 call timer_check() (Bug#2154).
8573 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8574 handling_signal is set.
8575 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8576
31fd7c5c 8577 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8578
8579 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8580
8581 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8582
51d861de
SM
8583 * keyboard.c (poll_for_input_1, handle_async_input):
8584 Set handling_signal under HAVE_NS.
c96169a0 8585
aacd8ba1
GM
85862009-02-04 Glenn Morris <rgm@gnu.org>
8587
8588 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8589
4cb75c4b
KH
85902009-02-04 Kenichi Handa <handa@m17n.org>
8591
8592 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8593
8594 * charset.c (Fchar_charset): New optional arg restriction.
8595
8596 * coding.h (coding_system_charset_list): Extern it.
8597
8598 * coding.c (coding_system_charset_list): New function.
8599
8600 * composite.c: Include coding.h and termhooks.h.
8601 (composition_gstring_p): Fix for the terminal case.
8602 (composition_gstring_width): Likewise.
8603 (fill_gstring_body): Likewise.
8604 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8605 the frame.
8606 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8607 is within a composition.
867d4bb3 8608 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8609
8610 * term.c (encode_terminal_code): Fix handling of composition.
8611 (produce_composite_glyph): For static composition, get pixel_width
8612 from struct composition.
8613
826ba17e
AS
86142009-02-02 Andreas Schwab <schwab@suse.de>
8615
8616 * unexelf.c (unexec): Handle unaligned bss offset.
8617
8ad093db
AR
86182009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8619
8620 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8621 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8622
8ad093db
AR
8623 * keyboard.c (handle_interrupt): Don't call
8624 quit_throw_to_read_char() under NS.
d0a76a6e 8625
8ad093db
AR
8626 * blockinput.h: Remove NS-specific code.
8627
4d18a7a2
DN
86282009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8629
db878925
DN
8630 * dispnew.c (window_change_signal): Don't try to get the size of a
8631 suspended tty frame.
8632 * term.c (Fresume_tty): Resize if the size has changed while the
8633 tty was suspended.
8634
4d18a7a2
DN
8635 * alloc.c (mark_stack): Properly conditionalize previous change.
8636
8984df7c
JB
86372009-01-30 Juanma Barranquero <lekktu@gmail.com>
8638
8639 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8640 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8641 Remove; this code is not used on Windows.
8642
75f4f1ac
EZ
86432009-01-30 Eli Zaretskii <eliz@gnu.org>
8644
8645 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8646 EOLs that also has stray ^M characters.
8647
07a1e794
JB
86482009-01-30 Juanma Barranquero <lekktu@gmail.com>
8649
8650 * atimer.c (run_timers, alarm_signal_handler):
8651 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8652 * w32inevt.c (w32_console_read_socket):
8653 * w32term.c (w32_read_socket):
8654 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8655
a8b11cc9
CY
86562009-01-30 Chong Yidong <cyd@stupidchicken.com>
8657
8658 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8659 Initialize it as a relative filename pattern.
8660 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8661 (Fcall_process_region): Simplify temp file creation using
8662 temporary-file-directory.
8663
c279587b
EZ
86642009-01-29 Eli Zaretskii <eliz@gnu.org>
8665
8666 * msdos.c: Rename pending_signals to msdos_pending_signals.
8667 (sig_suspender, sigprocmask): Adjust.
8668
a8fe3242
CY
86692009-01-29 Chong Yidong <cyd@stupidchicken.com>
8670
8671 * keyboard.c (pending_signals): New var.
8672 (poll_for_input, input_available_signal, init_keyboard): Set it.
8673 (process_pending_signals): New function.
8674
8675 * lisp.h (QUIT): Check pending_signals instead of
8676 interrupt_input_pending. Use process_pending_signals.
8677
51d861de 8678 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8679
51d861de 8680 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8681
8682 * sysdep.c (emacs_write): Use process_pending_signals.
8683
8684 * xterm.c (XTread_socket): Update pending_signals.
8685
8686 * w32term.c (w32_read_socket): Update pending_signals.
8687
8688 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8689
6570a1c4
KH
86902009-01-29 Kenichi Handa <handa@m17n.org>
8691
8692 * xftfont.c (xftfont_has_char): New function.
8693 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8694
d72a4afa
AR
86952009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8696
8697 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8698 under GNUstep.
8699 (ns_query_color): New declaration.
8700
8701 * nsterm.m (ns_confirm_quit): New variable.
8702 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8703 (EmacsApp-applicationShouldTerminate:): Use it.
8704 (EmacsPrefsController): Let user set it.
8705 (ns_query_color): New function.
8706 (ns_defined_color): Use it.
8707 (ns_initialize): Drop.
8708 (ns_term_init): Add two lines from ns_initialize(), and set
8709 input_interrupt_mode to nil.
8710
8711 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8712 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8713
9fe78804
KH
87142009-01-28 Kenichi Handa <handa@m17n.org>
8715
8716 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8717 (fontset_get_font_group): Remember that no font-group is specified
8718 for C.
9fe78804 8719
fa57de36
CY
87202009-01-27 Chong Yidong <cyd@stupidchicken.com>
8721
930600e9
CY
8722 * fns.c (concat): Check for string overflow (bug#1787).
8723
fa57de36
CY
8724 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8725 Quadruple undo limits (bug#1501).
8726
7179ce7b
KH
87272009-01-27 Kenichi Handa <handa@m17n.org>
8728
8729 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8730 directly use GT_Get_Char_index.
8731
8732 * xftfont.c (struct xftfont_info): New member `index'.
8733
8734 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8735 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8736
5be8fcc0
CY
87372009-01-26 Kenichi Handa <handa@m17n.org>
8738
8739 * fontset.c (fontset_find_font): Fix handling of non-cons return
8740 value of fontset_get_font_group.
8741 (fontset_font): Revert last change.
8742
19ae3e61
JR
87432009-01-26 Jason Rumney <jasonr@gnu.org>
8744
8745 * w32font.c (w32font_list_internal): Return quickly if registry is
8746 unknown. Simplify final return.
8747 (add_font_entity_to_list): Break complex logic down into more
8748 manageable chunks. Move unknown registry check to
8749 w32font_list_internal.
8750
8612b71a
AR
87512009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8752
8753 Changes to remove Feval calls from GUI under NS.
8754
d8038940
JB
8755 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8756 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8757 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8758
8759 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8760 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8761 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8762 instead of NON_ASCII_KEYSTROKE_EVENT.
8763 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8764 (EmacsApp-applicationShouldTerminate:): Query user.
8765 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8766 instead of Feval.
8767
8768 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8769
8770 * keyboard.c (kbd_buffer_get_event): Check for it.
8771 (keys_of_keyboard): Define lispy keys for
8772 ns-put/unput-working-text.
8773
8774 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8775 versions.
8776 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8777
6288ae55
CY
87782009-01-25 Chong Yidong <cyd@stupidchicken.com>
8779
8780 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8781 setting current_buffer directly. (Bug#2044)
6288ae55 8782
289e7f8f
CY
87832009-01-24 Chong Yidong <cyd@stupidchicken.com>
8784
5ce87308 8785 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8786 any work. (Bug#1952, bug#1990).
5ce87308 8787
64cc3cf6 8788 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8789
b3243e6f
AR
87902009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8791
8792 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8793 (ns_no_defaults): New declaration.
8794 (main): Use it.
e0d2e69a 8795
d900b2af 8796 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8797
d900b2af 8798 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8799
d900b2af
AR
8800 * nsterm.m (ns_no_defaults): New variable.
8801 (ns_initialize): Don't read defaults when ns_no_defaults.
8802 (EmacsView-readSelectionFromPasteboard:)
8803 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8804 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8805 (ns_dumpglyphs_stretch): New function.
8806 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8807 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8808
e0d2e69a
AR
8809 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8810
3ac71f5d
CY
88112009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8812
8813 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8814 call for Sparc64.
8815
3fe53a83
AR
88162009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8817
8818 * nsfns.m:
8819 * nsgui.h:
8820 * nsmenu.m:
8821 * nsselect.m:
8822 * nsterm.h:
8823 * nsterm.m: Remove '23' comments that indicated code added during
8824 update from emacs-20 -> emacs-23.
8825
10f87c6f 88262009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8827
8828 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8829 ns_alternate_modifier. (Bug#1217)
a3b53a85 8830
c7cef62d
AR
8831 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8832 Display all shortcuts, including those w/o super modifier.
8833
575fb8bd
AR
8834 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8835
918b848b
CY
88362009-01-22 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * fileio.c (Vwrite_region_post_annotation_function)
8839 (Vwrite_region_annotation_buffers): New vars.
8840 (build_annotations_unwind): Just reset
8841 Vwrite_region_annotation_buffers.
8842 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8843 Call write-region-post-annotation-function.
8844 (build_annotations): Add to Vwrite_region_annotation_buffers if
8845 buffer changes.
8846
a39e2539
AR
88472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8848
8849 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8850 Tiger.
51d861de
SM
8851 * nsfns.m (ns_do_applescript):
8852 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8853
35ed44db
AR
88542009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8855
8856 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8857
cbe0b5bf
AR
88582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8859
8860 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8861
6049d3a0
AR
8862 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8863
8864 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8865 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8866 handle Ctrl-tab. (Bug#1841)
8867 (ns_get_color): Use unsigned long long for scanned hex string value.
8868 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8869 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8870 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8871 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8872 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8873 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8874 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8875
d3810c21 8876 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8877 DPI. (Bug#1316)
d3810c21
AR
8878 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8879 values in onTiger section.
4c7077c3 8880
e301e634
CY
88812009-01-19 Chong Yidong <cyd@stupidchicken.com>
8882
7f82490b
CY
8883 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8884 Check return value of font_spec_from_name.
64cc3cf6 8885 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8886
8887 * font.c (font_spec_from_name): Return Qnil if font name could not
8888 be parsed.
8889 (font_parse_name): Treat a `?' character as part of an XLFD.
8890
e301e634
CY
8891 * fns.c (Fsubstring): Doc fix.
8892
1c0db158
KH
88932009-01-19 Kenichi Handa <handa@m17n.org>
8894
51d861de 8895 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8896 (ftfont_list): Likewise.
8897
acf20901
JB
88982009-01-18 Juanma Barranquero <lekktu@gmail.com>
8899
fff4e459
JB
8900 * dbusbind.c (Fdbus_register_signal):
8901 * process.c (conv_sockaddr_to_lisp):
8902 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8903
acf20901
JB
8904 * callproc.c (Fgetenv_internal): Doc fix.
8905
e7abcdfb
CY
89062009-01-16 Chong Yidong <cyd@stupidchicken.com>
8907
8908 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8909 it is not even used.
8910
b60861e6
GM
89112009-01-16 Glenn Morris <rgm@gnu.org>
8912
8913 * font.c (Ffont_variation_glyphs): Silence compiler.
8914
8db52afe
JB
89152009-01-15 Juanma Barranquero <lekktu@gmail.com>
8916
8917 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8918 Reported by David Robinow <drobinow@gmail.com>.
8919
4cddb209
KH
89202009-01-15 Kenichi Handa <handa@m17n.org>
8921
51d861de 8922 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8923
f247f67b
JR
89242009-01-14 Jason Rumney <jasonr@gnu.org>
8925
8926 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8927 never a fontset. (Bug#1562)
f247f67b 8928
f56a4450
KH
89292009-01-14 Kenichi Handa <handa@m17n.org>
8930
8931 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8932 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8933
4e99855e
CY
89342009-01-13 Chong Yidong <cyd@stupidchicken.com>
8935
8936 * font.c (font_clear_prop): If clearing the family, clear the font
8937 width index too.
8938
fff4e459 8939 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8940
24f01470
JB
89412009-01-12 Juanma Barranquero <lekktu@gmail.com>
8942
8943 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8944 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8945 functions, use sizeof.
8946
a41240a3
MR
89472009-01-12 Martin Rudalics <rudalics@gmx.at>
8948
8949 * keyboard.c (read_char): Fix case where last_nonmenu_event
8950 returned a bad value with submenus. (Bug#447)
8951
944636b8
CY
89522009-01-12 Chong Yidong <cyd@stupidchicken.com>
8953
8954 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8955 family, clear the font width index too.
8956
0dad7c6f
JR
89572009-01-11 Jason Rumney <jasonr@gnu.org>
8958
8959 * keyboard.c (cmd_error_internal): Exit when errors occur before
8960 frame creation and not in daemon mode. (Bug#1836)
8961
7c2363af
CY
89622009-01-10 Chong Yidong <cyd@stupidchicken.com>
8963
8964 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8965 of a display vector, backtrack.
8966 (try_window_reusing_current_matrix): Check glyph type before
8967 referencing charpos member.
8968
97b1b294
EZ
89692009-01-10 Eli Zaretskii <eliz@gnu.org>
8970
8971 Fix Bug #876:
8972
8973 * coding.c (inhibit_null_byte_detection): New variable.
8974 (detect_coding, detect_coding_system): Don't pay attention to null
8975 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8976 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8977 <inhibit-iso-escape-detection>: Doc fix.
8978
4624b6e3
JR
89792009-01-09 Jason Rumney <jasonr@gnu.org>
8980
8981 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8982 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8983 Only report Unicode Plane 2 fonts as unicode-sip.
8984
323b840c
CY
89852009-01-09 Chong Yidong <cyd@stupidchicken.com>
8986
51d861de
SM
8987 * xfaces.c (Fx_font_family_list): Delete function.
8988 Move compatibility version to faces.el.
323b840c 8989
51d861de 8990 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8991
eba7400d
MR
89922009-01-09 Martin Rudalics <rudalics@gmx.at>
8993
8994 * frame.c (x_set_frame_parameters): Remember requested value for
8995 fullscreen before it's reset by the parameter handler.
8996
4b09796d
GM
89972009-01-09 Glenn Morris <rgm@gnu.org>
8998
8999 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9000 (last_command_event): ... and update all users.
4b09796d
GM
9001 (last_input_char): For clarity, rename to...
9002 (last_input_event): ... and update all users.
9003 (last-command-char, last-input-char): Move to subr.el as aliases.
9004 * cmds.c, commands.h: Update for last_command_char rename.
9005
14ccea62
CY
90062009-01-08 Chong Yidong <cyd@stupidchicken.com>
9007
51d861de 9008 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9009
5f004711
JR
90102009-01-08 Jason Rumney <jasonr@gnu.org>
9011
9012 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9013 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9014 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9015 Don't declare.
fff4e459 9016 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9017 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9018
b71f6f73
KH
90192009-01-07 Kenichi Handa <handa@m17n.org>
9020
50b06221 9021 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9022 remember the coding system used for decoding in
50b06221
KH
9023 coding_system (Bug#1039).
9024
b71f6f73 9025 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9026 breaking the loop. (Bug#870)
b71f6f73
KH
9027 (decode_coding_utf_16, decode_coding_emacs_mule)
9028 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9029 (decode_coding_charset): Likewise.
9030
56f668f7
MR
90312009-01-05 Martin Rudalics <rudalics@gmx.at>
9032
9033 * frame.c (x_set_frame_parameters): Make sure height (width) get
9034 applied when fullwidth (fullheight) is set. (Bug#1522)
9035
5da9424d
JB
90362009-01-04 Juanma Barranquero <lekktu@gmail.com>
9037
9038 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9039 (utc_base): Declare as ULONGLONG, not long double.
9040 (convert_time_raw): Delete.
9041 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9042 (initialize_utc_base): New function.
9043 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9044 (convert_from_time_t): Use initialize_utc_base; compute result with
9045 64-bit arithmetic.
9046 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9047
c4605e09
EZ
90482009-01-03 Eli Zaretskii <eliz@gnu.org>
9049
9acef61c 9050 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9051 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9052 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9053 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9054 [!subprocesses]: Define.
9055 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9056 (Flist_system_processes, Fsystem_process_attributes)
9057 [!subprocesses]: Call list_system_processes and
9058 system_process_attributes instead of returning Qnil.
9059
9acef61c
JB
9060 * dosfns.c (system_process_attributes, list_system_processes):
9061 New functions.
c4605e09
EZ
9062
9063 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9064
9065 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9066 Don't use the default (no-op) implementation.
9067
8b7d0a16
JR
90682009-01-03 Jason Rumney <jasonr@gnu.org>
9069
a6d46bc1
JR
9070 * keyboard.c (parse_modifiers_uncached): Wheel events are
9071 clicks (bug#687).
9072
8b7d0a16
JR
9073 * w32term.c (x_query_colors, x_query_color): New functions.
9074
9075 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9076 (svg_load_image): Cast returned pointers from dynamically loaded
9077 functions. Eliminate W32 specific code.
9078
bfe11752
DN
90792009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9080
89e2438a
DN
9081 * nsfns.m (x_set_foreground_color, x_set_background_color)
9082 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9083 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9084 x_ prefix instead of ns_. Update references.
9085 (syms_of_nsfns): Add a FIXME comment.
9086
9087 * nsterm.m (x_set_cursor_type): New prototype.
9088 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9089
bfe11752
DN
9090 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9091 for Solaris instead of incorrectly providing Qutime and Qcutime.
9092
031da700
EZ
90932009-01-02 Eli Zaretskii <eliz@gnu.org>
9094
9095 * w32.c (process_times): Compute sum of utime and stime.
9096 (system_process_attributes): Add Qtime to the alist.
9097
9098 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9099 and add them to the alist.
9100
9101 * process.c (top level) <Qtime, Qctime>: New variables.
9102 (syms_of_process): staticpro them.
9103 (Fsystem_process_attributes): Add their documentation to the doc
9104 string.
9105
9106 * process.h: Declare Qtime and Qctime.
9107
df23bf08
JR
91082009-01-02 Jason Rumney <jasonr@gnu.org>
9109
9acef61c 9110 * image.c (Qgobject): New symbol.
df23bf08
JR
9111 (syms_of_image): Initialize it.
9112 (init_svg_functions): Load some functions from gobject library.
9113
5bbdf7aa
DN
91142009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9115
9116 * frame.c (make_terminal_frame): Remove redundant code and useless
9117 block.
9118
63136da6
AS
91192009-01-01 Andreas Schwab <schwab@suse.de>
9120
9121 * process.c (conv_sockaddr_to_lisp): Add workaround for
9122 getsockname bug on BSD.
9123
9ef69046
CY
91242009-01-01 Chong Yidong <cyd@stupidchicken.com>
9125
d6fafbe0
CY
9126 * xfns.c (x_create_tip_frame): Set border width of the X window.
9127
51d861de 9128 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9129
f9c34147
JR
91302009-01-01 Jason Rumney <jasonr@gnu.org>
9131
9acef61c 9132 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9133 Don't block input, as per earlier xterm.c changes.
9134
f5497e45
AR
91352008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9136
9137 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9138 (ns_appkit_version_int): New function.
9139 (x-server-version): Use ns_appkit_version_int and follow 21+
9140 convention of returning 3 integers.
9141
c19cab20
KH
91422008-12-30 Kenichi Handa <handa@m17n.org>
9143
9144 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9145 (CHAR_SURROGATE_PAIR_P): New macro.
9146
9147 * font.h (struct font_driver): New member get_variation_glyphs.
9148
9acef61c 9149 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9150 (Ffont_variation_glyphs): New function.
9151 (syms_of_font): Defsubr it.
9152
9153 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9154 ftfont_variation_glyphs.
9155 (setup_otf_gstring): New function.
9156 (ftfont_drive_otf): Use it.
9157 (ftfont_shape_by_flt): Handle variation selector.
9158 (ftfont_variation_glyphs): New function.
9159
28cd591f
MR
91602008-12-30 Martin Rudalics <rudalics@gmx.at>
9161
9162 * frame.c (Vemacs_iconified): Remove.
9163
7f714baf
JR
91642008-12-30 Jason Rumney <jasonr@gnu.org>
9165
9166 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9167 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9168
9d2d22ab
CY
91692008-12-30 Chong Yidong <cyd@stupidchicken.com>
9170
9171 * indent.c (Fvertical_motion): Don't advance iterator if we have
9172 reseated to the desired position.
9173
9174 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9175 checking for pos match.
9176
545312c2
KH
91772008-12-30 Kenichi Handa <handa@m17n.org>
9178
1ede3eb6
KH
9179 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9180 just get the low 8-bit of the code.
9181
545312c2
KH
9182 * font.c (font_intern_prop): Validate str as multibyte.
9183
bd7bbf29
DN
91842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9185
31e0750e
DN
9186 * dispextern.h (struct face): Move lface and hash from the middle
9187 of bitfields.
9188
bd7bbf29
DN
9189 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9190
b5672e7c
DN
91912008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9192
9193 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9194 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9195 instead of intervals.h.
9196
d704470f
AS
91972008-12-26 Andreas Schwab <schwab@suse.de>
9198
9199 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9200 cons.
9201
54b33868
MR
92022008-12-26 Martin Rudalics <rudalics@gmx.at>
9203
9204 * textprop.c (Qminibuffer_prompt): New variable.
9205 (syms_of_textprop): Initialize it.
9206 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9207 in minibuffer-prompt face. (Bug#1662)
9208
40b615d6
JR
92092008-12-25 Jason Rumney <jasonr@gnu.org>
9210
9211 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9212
baae5c2d
JR
92132008-12-24 Jason Rumney <jasonr@gnu.org>
9214
9215 * ralloc.c (r_alloc_reset_variable): New function.
9216
9217 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9218 record of what points where. (Bug#716)
baae5c2d 9219
a9051c88
DN
92202008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9221
9222 * minibuf.c (read_minibuf): Follow the non-interactive case when
9223 running as a daemon, before detaching.
9224
8b146312
AS
92252008-12-22 Andreas Schwab <schwab@suse.de>
9226
9227 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9228 * gtkutil.c (free_widget_value): Use xfree instead of free.
9229
56f2de10
MR
92302008-12-22 Martin Rudalics <rudalics@gmx.at>
9231
9232 * frame.c (delete_frame): New function derived from
9233 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9234 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9235 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9236 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9237 * frame.h: Extern delete_frame.
9238 * window.c (window_loop):
9239 * terminal.c (delete_terminal):
9240 * xterm.c (x_connection_closed):
9241 * xfns.c (Fx_hide_tip):
9acef61c 9242 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9243
1fc200d6
JR
92442008-12-21 Jason Rumney <jasonr@gnu.org>
9245
9246 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9247 when character maps to .notdef character.
9248
5e252df2
SM
92492008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9250
9251 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9252
99b72cc4
JR
92532008-12-20 Jason Rumney <jasonr@gnu.org>
9254
9255 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9256 a graphical frame on Windows. (Bug#1325)
99b72cc4 9257
acc49a52
JD
92582008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9259
9260 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9261
6ea15123
CY
92622008-12-20 Chong Yidong <cyd@stupidchicken.com>
9263
9264 * minibuf.c (Fread_buffer): Doc fix.
9265
b2dab6c8
JR
92662008-12-20 Jason Rumney <jasonr@gnu.org>
9267
54ea0c87 9268 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9269 server name in UNC paths. (Bug#719)
54ea0c87 9270
b2dab6c8 9271 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9272 charbuf. (Bug#1035)
b2dab6c8 9273
6d1921be
DN
92742008-12-19 Daniel Engeler <engeler@gmail.com>
9275
9276 * sysdep.c (serial_configure): Fix typo.
9277
53934c98
DN
92782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9279
9280 * sysdep.c: Include alloca.h.
f4f634e8
DN
9281 (system_process_attributes): Add implementation for Solaris.
9282
9283 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9284
06e111a6
DN
92852008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9286
9287 Reorganize implementation of Flist_system_processes and
9288 Fsystem_process_attributes. No functional changes.
9289 * process.c: Don't #include pwd.h, grp.h and limits.h.
9290 (Flist_system_processes): Just call list_system_processes.
9291 (Fsystem_process_attributes): Just call system_process_attributes.
9292 (procfs_list_system_processes, time_from_jiffies)
9293 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9294 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9295
9296 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9297 (list_system_processes): Rename from
9298 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9299 Provide a do nothing implementation.
9300 (system_process_attributes): Rename from
9301 procfs_list_system_processes.
9302 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9303 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9304
9305 * w32.c (list_system_processes): Rename from
9306 w32_list_system_processes.
9307 (system_process_attributes): Rename from
9308 w32_system_process_attributes.
9309
9310 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9311
9312 * process.h (w32_list_system_processes)
9313 (w32_system_process_attributes): Remove.
362654a6
JB
9314 (list_system_processes, system_process_attributes):
9315 New prototypes.
06e111a6 9316
6a705b23
KH
93172008-12-19 Kenichi Handa <handa@m17n.org>
9318
9319 * xfont.c (xfont_decode_coding_xlfd): New function.
9320 (xfont_encode_coding_xlfd): New function.
9321 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9322 (xfont_list): Decode and encode XLFD by iso-8859-1.
9323 (xfont_match): Likewise.
9324 (xfont_list_family): Likewise.
9325 (xfont_open): Likewise.
9326
d66c0241 9327 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9328 names are utf-8.
9329
d66c0241 9330 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9331 names are utf-8.
9332
5a130941
JD
93332008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9334
9335 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9336 changed.
bfd20325
JD
9337 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9338 clicked on a detached tool bar button.
5a130941 9339
fd95644b
DN
93402008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9341
9342 * emacs.c (main): Print and error and exit when no data is read
9343 from the pipe.
9344
e6eee6ae
JR
93452008-12-17 Jason Rumney <jasonr@gnu.org>
9346
9347 * w32font.c (w32font_has_char): Always return -1.
9348
a35dd56b
KH
93492008-12-16 Kenichi Handa <handa@m17n.org>
9350
9351 * font.c (font_open_entity): Fix previous change.
9352
0e3635c2
DN
93532008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9354
9355 * process.c: Include <limits.h>.
9356
d4835507 93572008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9358
9359 * font.c (font_update_drivers): Fix mistake in reconstructing the
9360 driver list.
9361
93622008-12-16 Chong Yidong <cyd@stupidchicken.com>
9363
9364 * font.c (font_clear_cache): Fix format of font cache data.
9365
e2cbc401
CY
93662008-12-15 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * xftfont.c (xftfont_open): Free Xft font pattern if
9369 XftFontOpenPattern fails.
9370
9371 * xterm.c (x_free_frame_resources): Remove extraneous call to
9372 free_frame_faces.
9373
b131d535
CY
93742008-12-13 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * xterm.c (x_delete_display): Move xim_close_dpy call to
9377 x_delete_terminal.
9378 (x_delete_terminal): Call xim_close_dpy.
9379
e6df5336
JR
93802008-12-13 Jason Rumney <jasonr@gnu.org>
9381
9382 * w32font.c (intern_font_name): New function.
9383 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9384 (w32font_open_internal, Fx_select_font): Decode font name.
9385 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9386
9387 * w32font.h (intern_font_name): Declare new function.
9388
9389 * w32uniscribe.c (add_opentype_font_name_to_list):
9390 Use intern_font_name.
9391
20d68145
CY
93922008-12-13 Chong Yidong <cyd@stupidchicken.com>
9393
9f2554de
CY
9394 * frame.c (Fdelete_frame): Call free_font_driver_list.
9395
3d9bec9a
CY
9396 * font.c (free_font_driver_list): Implement missing function.
9397
20d68145
CY
9398 * w32term.c (w32_term_init): Don't initialize the image cache
9399 here; it will be done in init_frame_faces.
9400
9401 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9402 (struct x_display_info): Remove unused member null_pixel. New
9403 member xim_callback_data.
9404
9405 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9406 (xim_initialize): Save pointer to callback function data.
9407 (xim_close_dpy): Free callback function data. Call XCloseIM,
9408 reverting 2008-11-04 change by David Smith.
9409 (x_term_init): Don't initialize the image cache here; it will be
9410 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9411 (x_delete_display): Free x_dnd_atoms member.
9412
96f9306b
KH
94132008-12-13 Kenichi Handa <handa@m17n.org>
9414
6dec9044
JB
9415 * font.c (font_rescale_ratio): Moved from xfaces.c.
9416 Argument type changed. Handle a font-spec too.
96f9306b 9417 (font_score): Check Vface_font_rescale_alist.
6dec9044 9418 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9419
9420 * xfaces.c (font_rescale_ratio): Moved to font.c.
9421
8d5b4964
CY
94222008-12-13 Chong Yidong <cyd@stupidchicken.com>
9423
9424 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9425
e6df5336
JR
94262008-12-12 Jason Rumney <jasonr@gnu.org>
9427
9428 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9429 Vwindow_system_version to the real w32 major version.
9430
97c6058a
DN
94312008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * term.c (init_tty): Move setting the terminal name before the
9434 potential user: maybe_fatal.
9435
ec4e88d7
CY
94362008-12-11 Chong Yidong <cyd@stupidchicken.com>
9437
d4835507
JB
9438 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9439 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9440
b4233ec9
JR
94412008-12-11 Jason Rumney <jasonr@gnu.org>
9442
8ec71e23 9443 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9444 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9445
b4233ec9 9446 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9447 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9448
011a0143
JB
94492008-12-11 Juanma Barranquero <lekktu@gmail.com>
9450
9451 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9452
3c309f34
JB
94532008-12-11 Juanma Barranquero <lekktu@gmail.com>
9454
9455 * process.c (Fsystem_process_attributes, syms_of_process):
9456 Fix typo in name of Ssystem_process_attributes.
9457 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9458
fedc6ab5
JB
94592008-12-11 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * syntax.c (Fmodify_syntax_entry): Doc fix.
9462
ba3de0e8
JB
94632008-12-10 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * font.c (Ffont_spec): Move usage to end of docstring.
9466
174f1c74
JR
94672008-12-10 Jason Rumney <jasonr@gnu.org>
9468
9469 * w32font.c (Qcham): New symbol.
9470 (font_supported_scripts): Add cham, and comments for other new
9471 scripts in bitfield from OpenType spec.
9d32f818
JR
9472 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9473 contain characters beyond the bmp.
174f1c74 9474
7b649478
KH
94752008-12-10 Kenichi Handa <handa@m17n.org>
9476
9477 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9478 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9479 Qunicode_sip.
9480
2133e2d1
JB
94812008-12-10 Juanma Barranquero <lekktu@gmail.com>
9482
9483 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9484 (Fcoding_system_put): Use QCdefault_char.
9485 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9486
9af886ee
CY
94872008-12-09 Chong Yidong <cyd@stupidchicken.com>
9488
74d819eb
CY
9489 * xftfont.c (syms_of_xftfont): Fix typo.
9490
4ccfa1c0 9491 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9492
7c19d3ae
DN
94932008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9494
9495 * emacs.c (main): Close daemon_pipe on exec.
9496
567826bb
CY
94972008-12-08 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * termchar.h (struct tty): New members termcap_term_buffer and
9500 termcap_strings_buffer.
9501
9502 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9503 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9504 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9505 All callers changed.
9506 (init_tty): Store termcap data and string buffers in new struct
9507 tty members termcap_term_buffer and termcap_strings_buffer.
9508 (delete_tty): Free them.
4ccfa1c0 9509 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9510
aa96c42b
SZ
95112008-12-07 Seiji Zenitani <zenitani@mac.com>
9512
9513 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9514 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9515
b7e1d896
CY
95162008-12-06 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * coding.c (make_conversion_work_buffer): Disable buffer
9519 modification hooks in the work buffer.
9520
b5ec91a5
EZ
95212008-12-05 Eli Zaretskii <eliz@gnu.org>
9522
9523 * process.c (procfs_system_process_attributes): If `nread' has a
9524 negative value, assign zero to it.
9525
a5d2a52b
CY
95262008-12-05 Chong Yidong <cyd@stupidchicken.com>
9527
68c5540b 9528 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9529
7bf1bb21
KH
95302008-12-05 Kenichi Handa <handa@m17n.org>
9531
9532 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9533 second character is a combining character.
9534
2fdc7d00
EZ
95352008-12-05 Eli Zaretskii <eliz@gnu.org>
9536
9537 * process.c (procfs_system_process_attributes): Don't use cmd,
9538 cmdsize, and q without initializing them first.
9539
bf6bfba8
JR
95402008-12-04 Jason Rumney <jasonr@gnu.org>
9541
9542 * w32font.c (w32font_draw): Initialize orig_clip before getting
9543 it, and delete it when finished.
9544
a3b1a468
DN
95452008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9546
9547 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9548 case when running as a daemon before detaching.
9549
8b8be8eb
JB
95502008-12-03 Juanma Barranquero <lekktu@gmail.com>
9551
805f2638 9552 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9553
b1bde622
KH
95542008-12-03 Kenichi Handa <handa@m17n.org>
9555
e500c47d
KH
9556 * font.c (font_at): Set `multibyte' at first.
9557
ca516334
KH
9558 * coding.c (decode_coding_charset): Check type of an element of
9559 vector VALIDS.
7bf1bb21 9560 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9561
4ccfa1c0 9562 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9563 (font_for_char): Likewise.
9564
1e5ecd37
CY
95652008-12-03 Chong Yidong <cyd@stupidchicken.com>
9566
d5b01609 9567 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9568 (font_update_lface): Handle fonts with corrupted size specs,
9569 i.e. non-int and non-float.
d5b01609 9570
11e3a6e4 9571 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9572 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9573 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9574
ab06788b
CY
9575 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9576
1e5ecd37 9577 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9578 underline_minimum_offset for underline position.
1e5ecd37 9579
63c125ab
DN
95802008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9581
9582 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9583
9584 * character.c (c_string_width): Specify the type for LEN.
9585
3a8406e1
KH
95862008-12-03 Kenichi Handa <handa@m17n.org>
9587
4ccfa1c0 9588 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9589 (decode_coding_utf_8): Likewise.
4ccfa1c0 9590 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9591 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9592
651df7d9
CY
95932008-12-02 Chong Yidong <cyd@stupidchicken.com>
9594
9595 * keyboard.c (make_lispy_position): Only use PT if the selected
9596 window is current.
9597
1f625c6c
AS
95982008-12-02 Andreas Schwab <schwab@suse.de>
9599
f7741ce9
AS
9600 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9601
1f625c6c
AS
9602 * doprnt.c (doprnt1): Fix size of charbuf.
9603
92bc2678
CY
96042008-12-02 Chong Yidong <cyd@stupidchicken.com>
9605
9606 * keyboard.c (timer_check): Revert last change.
9607
93b9e8cc
JB
96082008-12-02 Juanma Barranquero <lekktu@gmail.com>
9609
9610 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9611
fd7a37d5
JB
96122008-12-01 Juanma Barranquero <lekktu@gmail.com>
9613
9614 * makefile.w32-in: Update dependencies.
9615 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9616
c115043b
AS
96172008-12-01 Andreas Schwab <schwab@suse.de>
9618
9619 * font.c (register_font_driver): Use xmalloc.
9620 (font_put_frame_data): Likewise.
9621
f5668d2a
CY
96222008-12-01 Chong Yidong <cyd@stupidchicken.com>
9623
860d96be
CY
9624 * xfaces.c (realize_x_face): Make abort condition clearer.
9625
f5668d2a
CY
9626 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9627
379c17e7
CY
96282008-11-30 Chong Yidong <cyd@stupidchicken.com>
9629
9630 * keyboard.c (timer_check): After a timer runs, ensure that the
9631 selected window's buffer is current.
9632
35f36d65
JB
96332008-11-30 Juanma Barranquero <lekktu@gmail.com>
9634
f952c61c
JB
9635 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9636 It was accidentally restored by the Unicode merge.
9637
35f36d65
JB
9638 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9639
b23077df
JB
96402008-11-29 Juanma Barranquero <lekktu@gmail.com>
9641
9642 * w32proc.c: Include "coding.h".
9643 (Fw32_short_file_name): Encode filename passed to Windows API.
9644 (Fw32_long_file_name): Encode filename passed to Windows API and
9645 decode back the result. (Bug#1433)
9646
b8ebe9dd
KH
96472008-11-29 Kenichi Handa <handa@m17n.org>
9648
8cc53f96
KH
9649 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9650 not before accessing it.
9651
b8ebe9dd
KH
9652 * charset.c (Fdefine_charset_internal): After calculating
9653 min_char, max_char, and fastmap, copy the charset structure again.
9654 (encode_char): Fix the previous change.
9655
59bc82c0
SZ
96562008-11-28 Seiji Zenitani <zenitani@mac.com>
9657
9658 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9659
9660 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9661
9662 * nsterm.m (x_set_frame_alpha): New function.
9663
32247e3d
EZ
96642008-11-27 Eli Zaretskii <eliz@gnu.org>
9665
9666 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9667
b003e5ff
JB
96682008-11-27 Juanma Barranquero <lekktu@gmail.com>
9669
9670 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9671 pointer to check_face_name.
9672
708550f5
KH
96732008-11-27 Kenichi Handa <handa@m17n.org>
9674
9675 * category.h (SET_CATEGORY_SET): Call set_category_set.
9676 (set_category_set): Extern it.
9677
9678 * category.c (hash_get_category_set): New function.
9679 (Fmodify_category_entry): Adjusted for the change of
9680 char_table_ref_and_range. Call hash_get_category_set to get a
9681 category set to store in the table.
9682
9683 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9684 Funify_charset.
9685
2ae37cf0 9686 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9687 (DECODE_CHAR): Check if the decoder vector is ready.
9688 (ENCODE_CHAR): Check if the encoder char-table is ready.
9689 (maybe_unify_char): Extern it.
9690
9691 * charset.c (Vchar_unified_charset_table): Delete it.
9692 (inhibit_load_charset_map): New variable.
9693 (temp_charset_work): New variable.
9694 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9695 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9696 New macros.
9697 (load_charset_map): Meaning of control_flag changed. If
9698 inhibit_load_charset_map is nonzero, setup a table in
9699 temp_charset_work.
9700 (load_charset): New argument control_flag.
9701 (map_charset_for_dump): New function.
9702 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9703 map_charset_for_dump.
9704 (Fdefine_charset_internal): If the charset method is MAP, load
9705 mapping tables by calling load_charset.
9706 (Funify_charset): Don't load a mapping table but directly set
9707 Vchar_unify_table.
9708 (maybe_unify_char): New function.
9709 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9710 Handle the case of inhibit_load_charset_map being nonzero.
9711 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9712 Handle the case of inhibit_load_charset_map being nonzero.
9713 (Fclear_charset_maps): Just free temp_charset_work.
9714 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9715 variable.
9716
9717 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9718 change of char_table_ref_and_range.
9719 (char_table_ref_and_range): Change the meaning of argument FROM
9720 and TO. Now the caller must provide initial values for *FROM
9721 and *TO.
9722
9723 * fontset.c (fontset_add): Adjusted for the change of
9724 char_table_ref_and_range.
9725 (fontset_get_font_group): Likewise.
9726 (Ffontset_info): Likewise.
9727
9728 * keymap.c (describe_vector): Adjusted for the change of
9729 char_table_ref_and_range. For char-table, put boundary between
9730 non-ASCII and 8-bit characters.
9731
9732 * print.c (print_object): For bool-vector, delete unnecessary
9733 check of ASCII_BYTE_P.
9734
9196133b
JR
97352008-11-26 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9738 leading in font height. (Bug#879)
9196133b 9739
9f688acf
GM
97402008-11-26 Glenn Morris <rgm@gnu.org>
9741
9742 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9743 redefinition with ifdef. (Bug#1383)
9744
90d19aff
AR
97452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9746
9747 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9748
4ccfa1c0 97492008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9750
9751 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9752 New EmacsView methods.
9753 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9754 Fixes bug #1048,1357,1414.
9755
97562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9757
9758 Fix bug #1362.
9759 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9760 is not an indexed color.
9761 * nsterm.m (free_indexed_color): Add argument checking.
9762 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9763
e7d5ecb3
CY
97642008-11-24 Chong Yidong <cyd@stupidchicken.com>
9765
9766 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9767 Document confirm-after-completion value for
9768 minibuffer-completion-confirm.
9769
c285743c
JR
97702008-11-24 Jason Rumney <jasonr@gnu.org>
9771
9772 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9773 warning.
9774
b0857706
JR
97752008-11-23 Jason Rumney <jasonr@gnu.org>
9776
9777 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9778 restored before returning.
9779
9780 * w32font.c (check_face_name): New function.
9781 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9782 fonts. (Bug#642)
b0857706 9783
ee50ff07
MR
97842008-11-22 Martin Rudalics <rudalics@gmx.at>
9785
9786 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9787 confirm-nonexistent-file-or-buffer in doc-string.
9788
b8ff72fa
SM
97892008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9790
9791 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9792 Fix copy/paste typo. Add checks.
9793
cee53ed4
KH
97942008-11-21 Kenichi Handa <handa@m17n.org>
9795
9796 * coding.c (detect_coding_iso_2022): Reject invalid composition
9797 sequence.
9798 (DECODE_COMPOSITION_START): If the current source is the last
9799 block, and the current composition doesn't end, regard this
9800 sequence as invalid.
9801 (decode_coding_iso_2022): Handle invalid composition sequence.
9802
f6ef1e65
MR
98032008-11-20 Martin Rudalics <rudalics@gmx.at>
9804
9805 * window.c (coordinates_in_window): Don't return
9806 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9807 line when the window is not the rightmost one. (Bug#1372)
9808
e08b1705
MR
98092008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9810
9811 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9812
ad98e89f
EZ
98132008-11-15 Eli Zaretskii <eliz@gnu.org>
9814
9815 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9816 and bright_bg if noninteractive is non-zero.
9817
fb098a4b
CY
98182008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9819
9820 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9821 x_draw_glyph_string_background.
9822
9823 * w32term.c (x_draw_glyph_string): Likewise.
9824
ce952b6e
CY
98252008-11-15 Chong Yidong <cyd@stupidchicken.com>
9826
9827 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9828 the next glyph string once past the overhang width.
9829
9830 * nsterm.m (ns_draw_glyph_string): Likewise.
9831
9832 * w32term.c (x_draw_glyph_string): Likewise.
9833
26ea7079
CY
98342008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9835
9836 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9837 double file close.
9838
1c33c906
MR
98392008-11-14 Martin Rudalics <rudalics@gmx.at>
9840
9841 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9842 dedicated status of window before attempting to display another
9843 buffer in it.
9844
8fc29035
JB
98452008-11-14 Juanma Barranquero <lekktu@gmail.com>
9846
9847 * msdos.c (Fmsdos_long_file_names):
9848 (syms_of_msdos) <dos-unsupported-char-glyph>:
9849 * dosfns.c (Fint86): Fix typos in docstrings.
9850
55fb4286
EZ
98512008-11-14 Eli Zaretskii <eliz@gnu.org>
9852
9853 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9854
3fda0315
KY
98552008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9856
9857 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9858
7e849c17
CY
98592008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9860
9861 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9862
9863 * frame.h: Negative alpha means "don't touch".
9864
9865 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9866
9867 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9868
b9fd67bd
DN
98692008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9870
9871 * hftctl.c:
9872 * chpdef.h:
9873 * acldef.h: Remove files used only for systems no longer supported.
9874
9875 * Makefile.in: Fix .o alphabetical ordering.
9876 (hftctl.o): Remove dependency, file removed.
9877 (keymap.o, print.o): Depend on charset.h.
9878
d5998e03
KH
98792008-11-10 Kenichi Handa <handa@m17n.org>
9880
2ae37cf0 9881 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9882
be70e183
CY
98832008-11-08 Chong Yidong <cyd@stupidchicken.com>
9884
9885 * dired.c (file_name_completion): If completion_ignore_case is
9886 enabled, ignore case when checking completion-regexp-list.
9887
7cf94eac
EZ
98882008-11-08 Eli Zaretskii <eliz@gnu.org>
9889
9890 * vm-limit.c (get_lim_data): Fix last change.
9891
ee107a89
KH
98922008-11-08 Kenichi Handa <handa@m17n.org>
9893
9894 * character.c (Fget_byte): New function.
9895 (syms_of_character): Defsubr Fget_byte.
9896
5fd15622
CY
98972008-11-07 Chong Yidong <cyd@stupidchicken.com>
9898
9899 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9900 cursor position is valid after scrolling.
9901
13d62fad
JB
99022008-11-06 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9905
a1dd2936
GM
99062008-11-06 Glenn Morris <rgm@gnu.org>
9907
9908 * xterm.c (handle_one_xevent): Don't let popup menus cause
9909 mouse-autoselect-window related window switching. (Bug#1261)
9910
860cd236
CY
99112008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9912
9913 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9914
653a3150
AS
99152008-11-04 Andreas Schwab <schwab@suse.de>
9916
9917 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9918
870f5cac
CY
99192008-11-03 Chong Yidong <cyd@stupidchicken.com>
9920
9921 * xfns.c (Fx_wm_set_size_hint): New function.
9922
1e02f3cb
MR
99232008-11-03 Martin Rudalics <rudalics@gmx.at>
9924
9925 * textprop.c (Fprevious_single_char_property_change): Return 0
9926 when there's no change in a string. (Bug#1301)
9927
e630dfc6
MR
99282008-11-02 Martin Rudalics <rudalics@gmx.at>
9929
9930 * frame.c (do_switch_frame): New argument NORECORD passed to
9931 Fselect_window.
9932 (Fselect_frame): New argument NORECORD passed to
9933 do_switch_frame.
9934 (Fset_frame_selected_window): New argument NORECORD passed to
9935 Fselect_frame.
9936 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9937 in call of do_switch_frame.
9938 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9939 Handle NORECORD argument in call of Fselect_frame.
9940 * lisp.h (do_switch_frame, Fselect_frame)
9941 (Fset_frame_selected_window): Adjust declarations.
9942 * window.c (select_frame_norecord): New function.
9943 (run_window_configuration_change_hook): Use it and call
9944 Fselect_frame with NORECORD set.
9945 (Fselect_window): Pass NORECORD to Fselect_frame.
9946 (Fset_window_configuration): Handle NORECORD argument in call of
9947 do_switch_frame.
9948 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9949 Fset_frame_selected_window.
9950 * keyboard.c (command_loop_1): Handle NORECORD in call of
9951 Fselect_frame (currently ifdefd).
9952
9020b223
GM
99532008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9954
9955 * emacs.c (USAGE2): Untabify.
9956
793ffee8
SM
99572008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9958
9959 * composite.c (fill_gstring_header): Fix copy/paste typo.
9960
ab6d1131
MR
99612008-10-31 Martin Rudalics <rudalics@gmx.at>
9962
9963 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9964 (Fother_window): Rename argument and rewrite doc-string.
9965 (select_window_norecord): Fix return value. (Bug#1276)
9966
601a9cf1
JB
99672008-10-30 Juanma Barranquero <lekktu@gmail.com>
9968
9969 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9970 new frames overriding foreground for tooltips. Based on similar patch
9971 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9972
813b0652
CY
99732008-10-29 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * emacs.c (Fdaemon_initialized): Initialize nfd.
9976
4414f58f
MR
99772008-10-29 Martin Rudalics <rudalics@gmx.at>
9978
9979 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9980 (Fwindow_text_height): Clarify doc-strings.
9981 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9982 doc-string of window-scroll-functions.
9983
ecdcaa09
RS
99842008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9985
9986 * category.c (syms_of_category): Fix typo in docstring.
9987
23fe745a
JB
99882008-10-28 Juanma Barranquero <lekktu@gmail.com>
9989
9990 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9991 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9992 Fix typos in docstrings.
9993
ff808935
DN
99942008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9995
9996 * emacs.c (daemon_pipe): Make non-static.
9997 (IS_DAEMON): Move definition ...
9998 * lisp.h (IS_DAEMON): ... here.
9999 (daemon_pipe): Declare.
10000 (is_daemon): Remove.
10001 * dispnew.c (init_display): Use IS_DAEMON.
10002
fc012771
SM
100032008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10004
10005 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10006 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10007
10008 * emacs.c (is_daemon): Remove.
10009 (main): Don't set is_daemon.
10010 (IS_DAEMON): New macro.
10011 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10012 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10013 parent exits.
10014 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10015
d8bdbe6f
CY
100162008-10-27 Chong Yidong <cyd@stupidchicken.com>
10017
d1a072bf
CY
10018 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10019 over-sized glyph, draw it with the default glyph width.
10020
e2e325aa
CY
10021 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10022 glyph, draw it with the default glyph width.
10023
10024 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10025 glyph, draw it with the default glyph width.
10026
d8bdbe6f
CY
10027 * xdisp.c (try_scrolling): When computing the distance from the
10028 scroll margin to PT, try moving some distance past the window
10029 bottom before giving up.
10030
7bfac547
MR
100312008-10-27 Martin Rudalics <rudalics@gmx.at>
10032
10033 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10034 (Fset_window_buffer): Explain in doc-string that a window can be
10035 "strongly" dedicated to its buffer.
10036
4ff029f6
DN
100372008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10038
10039 * emacs.c (daemon_name): New variable.
10040 (main): Deal with --daemon=SERVER_NAME.
10041 (Fdaemonp): Return a name if one was passed to --daemon.
10042
5790ef40
DN
100432008-10-26 Romain Francoise <romain@orebokech.com>
10044
f9bd0df9 10045 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10046 (main): Create a pipe before forking, make the parent exit only after
10047 the child has closed its end of the pipe. Move closing the
10048 descriptors ...
10049 (Fdaemon_initialized): ... here. New function.
10050
f5385255
SM
100512008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10052
4d632321
SM
10053 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10054 the previous unoptimized table.
10055
f5385255
SM
10056 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10057 the distinction between non-nil and non-t value of `dedicated'.
10058
6c56a0f3
CY
100592008-10-25 Chong Yidong <cyd@stupidchicken.com>
10060
10061 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10062 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10063
fec89261
MR
100642008-10-25 Martin Rudalics <rudalics@gmx.at>
10065
10066 * window.c (Fget_buffer_window, Fdelete_windows_on)
10067 (Freplace_buffer_in_windows): Make buffer argument optional and
10068 rename to buffer_or_name.
10069
34fcddd0
CY
100702008-10-24 Chong Yidong <cyd@stupidchicken.com>
10071
f5385255
SM
10072 * xdisp.c (handle_single_display_spec, handle_display_prop):
10073 Undo 2005-05-16 change.
34fcddd0
CY
10074 (handle_stop): Pop iterator if it's loaded with an empty string.
10075 (get_overlay_strings_1): Don't save iterator if it's loaded with
10076 an empty string (bug#1201).
10077
064766f2
KH
100782008-10-24 Kenichi Handa <handa@m17n.org>
10079
10080 * ftfont.c (ftfont_otf_features): Fix previous change.
10081 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10082 calling ftfont_otf_features.
10083
f9bd0df9 100842008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10085
10086 * font.c (font_match_p): Fix for the case that a vector of
10087 characters is in script-representative-chars.
10088
1dae9197
MA
100892008-10-24 Michael Albinus <michael.albinus@gmx.de>
10090
10091 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10092 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10093 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10094 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10095 macro. (Bug#1186)
1dae9197 10096
f9bd0df9 100972008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10098
10099 * s/sol2-10.h: New file.
10100
878a4584
JB
101012008-10-23 Juanma Barranquero <lekktu@gmail.com>
10102
10103 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10104 poor beast has survived 9+ years and the jump from xterm.c!).
10105
cd265ca6
MR
101062008-10-23 Martin Rudalics <rudalics@gmx.at>
10107
10108 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10109 Reword doc-string.
f5385255 10110 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10111
472a4dc9
JB
101122008-10-23 Juanma Barranquero <lekktu@gmail.com>
10113
10114 * character.c (syms_of_character) <script-representative-chars>:
10115 <unicode-category-table>: Doc fixes.
10116
159bd5a2
NF
101172008-10-23 Noah Friedman <friedman@splode.com>
10118
10119 * coding.c (make_conversion_work_buffer): Check that
10120 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10121 Fget_buffer_create.
10122
49f9c344
KH
101232008-10-23 Kenichi Handa <handa@m17n.org>
10124
10125 * font.c (font_add_log): Check the values of extra properties.
10126
12bb3111
MR
101272008-10-22 Martin Rudalics <rudalics@gmx.at>
10128
10129 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10130 Reword doc-string.
10131 (Fset_window_parameter): Use NILP.
10132 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10133 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10134
bbeb4e99
JB
101352008-10-22 Juanma Barranquero <lekktu@gmail.com>
10136
10137 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10138
101392008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10140
10141 * nsfns.m (ns_appkit_version): New function.
10142 (x-server-version): Use it.
10143 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10144 (x-server-vendor): Don't check_ns().
10145
10146 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10147
a9b555d3
JB
101482008-10-22 Juanma Barranquero <lekktu@gmail.com>
10149
10150 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10151 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10152
4626499f
KH
101532008-10-22 Kenichi Handa <handa@m17n.org>
10154
e3681952
KH
10155 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10156 scripts.
10157
4626499f
KH
10158 * category.c (word_boundary_p): Check scripts instead of charset.
10159 Handle nil value in word-separating-categories and
10160 word-combining-categories.
10161 (syms_of_category): Fix docstrings of word-separating-categories
10162 and word-combining-categories.
10163
1560f91a
EZ
101642008-10-21 Eli Zaretskii <eliz@gnu.org>
10165
10166 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10167 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10168
f4668441
MR
101692008-10-21 Martin Rudalics <rudalics@gmx.at>
10170
10171 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10172 Rename arg "buffer" to "buffer_or_name".
10173 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10174 it optional.
10175 (no_switch_window): Remove since the return value is not used.
a9b555d3 10176 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10177 Consider window as dedicated when Fwindow_dedicated_p returns a
10178 non-nil value.
10179 * lisp.h: Remove prototype for no_switch_window.
10180
fd75ddb2
JD
101812008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10182
10183 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10184 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10185
07295713
KH
101862008-10-21 Kenichi Handa <handa@m17n.org>
10187
10188 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10189 check Vlatin_extra_code_table.
10190
712adc82
EZ
101912008-10-20 Eli Zaretskii <eliz@gnu.org>
10192
10193 * fileio.c (Fset_file_modes): Doc fix.
10194
f549eb0b
MA
101952008-10-19 Michael Albinus <michael.albinus@gmx.de>
10196
10197 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10198 in arrays.
10199
aac0c6e3
MR
102002008-10-19 Martin Rudalics <rudalics@gmx.at>
10201
10202 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10203 Mention kill-buffer in doc-string.
10204 (Fset_window_buffer): Reinsert tem check removed in last commit.
10205 (Fenlarge_window, Fshrink_window): Have argument names and
10206 doc-string follow Elisp manual more closely.
10207
102082008-10-18 Eli Zaretskii <eliz@gnu.org>
10209
10210 * fileio.c (Fset_file_modes): Doc fix.
10211
102122008-10-18 Martin Rudalics <rudalics@gmx.at>
10213
10214 * window.c (Fwindow_width, Fset_window_start)
10215 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10216 (Fdelete_windows_on, Freplace_buffer_in_windows):
10217 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10218 (Fwindow_dedicated_p): Make window argument optional.
10219 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10220 (Fset_window_buffer): Respect any non-nil dedicated value for
10221 window. Rename "buffer" argument to "buffer_or_name".
10222
102232008-10-18 Ulrich Mueller <ulm@gentoo.org>
10224
10225 * m/sh3.h: New file, machine description for SuperH.
10226
102272008-10-17 Martin Rudalics <rudalics@gmx.at>
10228
10229 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10230
102312008-10-17 Kenichi Handa <handa@m17n.org>
10232
10233 * ftfont.c (ftfont_otf_features): Fix indexing
10234 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10235
102362008-10-16 Magnus Henoch <mange@freemail.hu>
10237
10238 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10239 (Fdbus_call_method_asynchronously): Ditto.
10240 This change makes C-h f display the argument list.
10241
102422008-10-16 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * fileio.c (Fexpand_file_name): Doc fix.
10245
10246 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10247 of :foreground and :background equivalent to unspecified (20.x
10248 compatibility).
10249
102502008-10-15 Eli Zaretskii <eliz@gnu.org>
10251
10252 * buffer.c (syms_of_buffer): Doc fix.
10253
102542008-10-14 Kenichi Handa <handa@m17n.org>
10255
10256 * font.c (font_clear_prop): When clearing font width, clear the
10257 average width field too.
10258
102592008-10-12 Andreas Schwab <schwab@suse.de>
10260
10261 * ftfont.c (ftfont_shape_by_flt): Make static.
10262 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10263
10264 * font.c: Don't include <m17n-flt.h>.
10265
102662008-10-10 Eli Zaretskii <eliz@gnu.org>
10267
10268 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10269
102702008-10-09 Eli Zaretskii <eliz@gnu.org>
10271
10272 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10273 away code.
10274
102752008-10-09 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * dispnew.c (update_text_area): Avoid looping due to large glyph
10278 overhangs (bug#1070).
10279
102802008-10-09 Kenichi Handa <handa@m17n.org>
10281
10282 * fontset.c (face_for_char): If face->fontset is negative, just
10283 return ascii_face.
10284
f5385255
SM
10285 * font.c (font_delete_unmatched): Fix previous change.
10286 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10287
102882008-10-09 Martin Rudalics <rudalics@gmx.at>
10289
10290 * frame.c (Fraise_frame): On text-only terminals select frame in
10291 order to make it visible. (Bug#1061)
10292
102932008-10-08 Chong Yidong <cyd@stupidchicken.com>
10294
10295 * fontset.c (fontset_find_font): Check frame validity.
10296
102972008-10-07 Chong Yidong <cyd@stupidchicken.com>
10298
a9b555d3 10299 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10300 (xg_display_close): Allow Emacs to close all displays (bug#985).
10301
103022008-10-06 Andreas Schwab <schwab@suse.de>
10303
f5385255 10304 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10305
103062008-10-06 Chong Yidong <cyd@stupidchicken.com>
10307
f5385255 10308 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10309
a9b555d3 10310 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10311
10312 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10313 during initialization.
10314
103152008-10-04 Eli Zaretskii <eliz@gnu.org>
10316
10317 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10318 whole thing on MSDOS frames as well as on a TTY.
10319
10320 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10321 well as for TTY.
10322 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10323 well as on a TTY.
10324
10325 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10326 as well as for TTY.
10327
10328 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10329
10330 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10331 MSDOS frames as well.
10332
103332008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10334
10335 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10336 correct arguments.
b71ac3dd 10337 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10338
103392008-10-03 Glenn Morris <rgm@gnu.org>
10340
10341 * emacs.c (USAGE1): Add --daemon.
10342
103432008-10-02 Eli Zaretskii <eliz@gnu.org>
10344
10345 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10346 100, so it's in percents as advertised.
10347
103482008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10349
10350 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10351 (ns_output.current_cursor, ns_output.desired_cursor)
10352 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10353 (FRAME_NEW_CURSOR_COLOR): Remove.
10354
10355 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10356 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10357 enumeration (HOLLOW_BOX_CURSOR, etc.).
10358
10359 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10360 (draw_window_cursor): Simplify code.
f5385255
SM
10361 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10362 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10363 updates manually.
a9b555d3
JB
10364 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10365 Use core Emacs cursor types.
aac0c6e3 10366
b8ff72fa 10367 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10368
103692008-10-02 Martin Rudalics <rudalics@gmx.at>
10370
10371 * process.c (Faccept_process_output): Fix doc-string.
10372
103732008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10374
10375 * gmalloc.c (__sbrk): Also define for uClibc.
10376
10377 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10378 for uClibc.
10379
103802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10381
10382 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10383 styles.
10384 (nsfont_open): Reenable the cache.
10385
103862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10387
10388 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10389 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10390
103912008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10392
10393 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10394 a suspended terminal.
10395
103962008-09-30 Michael Albinus <michael.albinus@gmx.de>
10397
10398 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10399
104002008-09-30 Eli Zaretskii <eliz@gnu.org>
10401
10402 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10403
104042008-09-30 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10407 in a continued line coincides with a line beginning.
10408
104092008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10410
10411 * nsfont.m (nsfont_trait_distance): Fix bug.
10412 (nsfont_list): Return a list rather than a vector (syncs with Handa
10413 changes of 2008-05-14).
10414 (nsfont_open): Improve logging.
10415
104162008-09-29 Andreas Schwab <schwab@suse.de>
10417
10418 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10419
104202008-09-28 Martin Rudalics <rudalics@gmx.at>
10421
10422 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10423 name as char-resolve-modifiers.
10424 Reported by: Markus Triska <markus.triska@gmx.at>
10425
104262008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10427
10428 * dispnew.c (init_display): Return earlier when running as a daemon.
10429
104302008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10431
10432 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10433
104342008-09-27 Eli Zaretskii <eliz@gnu.org>
10435
10436 * composite.c (Fcomposition_get_gstring)
10437 (Fcompose_region_internal, Fcompose_string_internal)
10438 (Ffind_composition_internal): Doc fix.
10439 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10440 (syms_of_composite) <auto-composition-function>: Doc fix.
10441 (syms_of_composite) <composition-function-table>: Doc fix.
10442
104432008-09-25 Chong Yidong <cyd@stupidchicken.com>
10444
10445 * search.c (wordify): New argument for lax word-ends.
10446 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10447
104482008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10449
10450 * lisp.h (is_daemon): Declare.
10451 * dispnew.c (init_display): Do not try to initialize the terminal
10452 when running as a daemon.
10453
104542008-09-22 Chong Yidong <cyd@stupidchicken.com>
10455
10456 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10457 x_display_pixel_height.
10458
104592008-09-22 Martin Rudalics <rudalics@gmx.at>
10460
10461 * undo.c (record_point): Don't call Fundo_boundary for first
10462 change. (Bug#731)
10463
104642008-09-22 Juanma Barranquero <lekktu@gmail.com>
10465
10466 * emacs.c (Fdaemonp): Doc fix.
10467
104682008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10469
10470 * emacs.c (main): Place #ifdef in the proper place.
10471
104722008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10473
10474 * emacs.c (standard_args): Add --daemon.
10475 (main): Disconnect from the terminal when --daemon is passed.
10476 (is_daemon): New variable.
10477 (Fdaemonp): New function.
10478 (syms_of_emacs): Defsubr it.
10479
104802008-09-20 Chong Yidong <cyd@stupidchicken.com>
10481
10482 * xdisp.c (get_next_display_element): Handle string display
10483 correctly when checking for the end of a box run.
10484
104852008-09-20 Glenn Morris <rgm@gnu.org>
10486
10487 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10488 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10489 (Frename_file): Avoid copying to trash if a rename involves
10490 a delete. (Bug#964).
10491
104922008-09-20 Eli Zaretskii <eliz@gnu.org>
10493
10494 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10495 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10496 frames as well as termcap frames.
10497 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10498 get_named_tty.
10499
105002008-09-19 Eli Zaretskii <eliz@gnu.org>
10501
10502 * process.c (procfs_system_process_attributes): Fix cmdline in
10503 case /proc/PID/cmdline is empty.
10504
10505 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10506 x_display_pixel_height.
10507
105082008-09-19 Juanma Barranquero <lekktu@gmail.com>
10509
10510 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10511
10512 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10513 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10514
105152008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10516
10517 * dispextern.h (struct it): Move line_wrap away from the middle of
10518 bitfields. Move voffset in struct iterator_stack_entry after the
10519 bitfields. Move tab_width near after another short.
10520
105212008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10522
10523 * frame.h (struct frame): Move alpha from the middle of bitfields.
10524
10525 * window.h (struct window): Move frozen_window_start_p after the
10526 rest of the bitfields to reduce padding.
10527
105282008-09-18 Chong Yidong <cyd@stupidchicken.com>
10529
10530 * xterm.h (x_display_info): Remove `height' and `width' members.
10531
10532 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10533
10534 * w32term.h (w32_display_info): Remove `height', `width',
10535 `height_in', and `width_in' members.
10536
b8ff72fa
SM
10537 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10538 New functions.
aac0c6e3
MR
10539 (x_calc_absolute_position): Use them.
10540 (x_term_init): Omit removed `height' and `width' members.
10541
b8ff72fa
SM
10542 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10543 New functions.
aac0c6e3
MR
10544 (w32_read_socket, x_calc_absolute_position): Use them.
10545 (w32_initialize_display_info, w32_term_init): Omit removed members
10546 of w32_display_info.
10547
b8ff72fa
SM
10548 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10549 New functions.
10550 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10551
b8ff72fa
SM
10552 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10553 New functions.
aac0c6e3
MR
10554 (x_calc_absolute_position): Use them.
10555 (x_term_init): Omit removed `height' and `width' members.
10556
10557 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10558 (compute_tip_xy):
10559 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10560 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10561 x_display_pixel_width.
10562
105632008-09-18 Kenichi Handa <handa@m17n.org>
10564
10565 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10566 (composition_compute_stop_pos): Fix handling of static composition.
10567 (Fcomposition_get_gstring): Check FROM and TO at first.
10568
105692008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10570
46e722a9 10571 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10572 mixup (YAILOM).
10573
105742008-09-17 Chong Yidong <cyd@stupidchicken.com>
10575
10576 * indent.c (Fvertical_motion): Use position reported by iterator
10577 instead of PT for determining screen motion (bug#943).
10578
105792008-09-17 Romain Francoise <romain@orebokech.com>
10580
10581 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10582
105832008-09-17 Kenichi Handa <handa@m17n.org>
10584
10585 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10586
10587 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10588 if necessary.
10589
105902008-09-16 Kenichi Handa <handa@m17n.org>
10591
10592 * coding.c (make_conversion_work_buffer): Avoid calling
10593 Fget_buffer_create if it is not necessary.
10594
105952008-09-15 Martin Rudalics <rudalics@gmx.at>
10596
10597 * window.c (Fselect_window): Don't update window_select_count and
10598 use_time when norecord is not nil.
10599
106002008-09-14 Kenichi Handa <handa@m17n.org>
10601
10602 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10603 specpdl_ptr.
10604
106052008-09-12 Kenichi Handa <handa@m17n.org>
10606
10607 * indent.c (scan_for_column): Don't handle automatic composition
10608 if the current buffer is not associated with a window.
10609
10610 * composite.c (composition_reseat_it): If the current buffer is
10611 not associated with a window, ignore the automatic composition.
10612 (find_automatic_composition): Likewise.
10613
106142008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10617 (Fgpm_mouse_stop): Use it.
10618 * termhooks.h (close_gpm): Declare.
10619 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10620 connection if Gpm_GetEvent fails.
10621
10622 * window.c (set_window_buffer): Always preserve current-buffer.
10623
106242008-09-12 Glenn Morris <rgm@gnu.org>
10625
10626 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10627
106282008-09-11 Glenn Morris <rgm@gnu.org>
10629
10630 * charset.c (charset-map-path): Doc fix.
10631
106322008-09-10 Kenichi Handa <handa@m17n.org>
10633
10634 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10635
10636 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10637 compose a grapheme cluster with the preceding base glyph.
10638
10639 * composite.c (composition_compute_stop_pos): Fix previous change.
10640 Reset cmp_it->id to -1 at first.
10641
106422008-09-10 Glenn Morris <rgm@gnu.org>
10643
10644 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10645
106462008-09-09 Chong Yidong <cyd@stupidchicken.com>
10647
10648 * keyboard.c (read_key_sequence): Reapply translation maps when
10649 switching keyboards.
10650
106512008-09-09 Kenichi Handa <handa@m17n.org>
10652
10653 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10654 characters.
10655
10656 * composite.c (FORWARD_CHAR): Fix calculation
10657 of (POSITION).pos_byte.
10658 (composition_compute_stop_pos): Limit the search of composition to
10659 at most 500 characters ahead. If we reach the limit or find a
10660 newline, set cmp_it->ch to -2 and return 0.
10661 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10662
106632008-09-08 Kenichi Handa <handa@m17n.org>
10664
10665 * indent.c (Fvertical_motion): Be sure to set
10666 it_overshoot_expected if it.cmp_it.id is non-negative.
10667
106682008-09-07 Andreas Schwab <schwab@suse.de>
10669
10670 * callproc.c (Fcall_process): Don't hold references to string data
10671 across garbage collection. Move initialisation of new_argv down
10672 to avoid compiler bug.
10673
106742008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10675
10676 * process.c (Fsystem_process_attributes): Doc fix.
10677
106782008-09-07 Chong Yidong <cyd@stupidchicken.com>
10679
10680 * callproc.c (Fcall_process): Canonicalize current directory name.
10681
10682 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10683 iterator advances to the next line if the current line ends in a
10684 continued tab.
10685
106862008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10687
10688 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10689 member to point to cmp_from.
10690
10691 * xdisp.c: Doc fix for references to gidx data member.
10692
106932008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10694
10695 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10696
106972008-09-07 Kenichi Handa <handa@m17n.org>
10698
10699 * composite.c (FORWARD_CHAR): Check STOP after
10700 incrementing (POSITION).pos.
10701
107022008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10703
10704 * process.c (Fsystem_process_attributes): Doc fix.
10705
107062008-09-06 Chong Yidong <cyd@stupidchicken.com>
10707
10708 * keyboard.c (Ftop_level): Doc fix.
10709
107102008-09-06 Eli Zaretskii <eliz@gnu.org>
10711
10712 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10713 minibuffer, don't let lower part of menu invade the echo area.
10714
10715 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10716 "char *q" to access menu text and advance through it. Revert the
10717 change that displayed ">" instead of ASCII character 0x10.
10718
107192008-09-05 Eli Zaretskii <eliz@gnu.org>
10720
10721 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10722 toggle boxes and radio buttons on MS-DOS as well.
10723
107242008-09-05 Kenichi Handa <handa@m17n.org>
10725
10726 * composite.c (autocmp_chars): Check lookback count.
10727 (composition_compute_stop_pos): Set cmp_it->lookback.
10728 (composition_reseat_it): Check lookback count.
10729 (struct position_record): New struct.
10730 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10731 (find_automatic_composition): New function.
10732 (composition_adjust_point): Use find_automatic_composition.
10733
10734 * dispextern.h (struct composition_it): New member lookback.
10735
107362008-09-02 Chong Yidong <cyd@stupidchicken.com>
10737
10738 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10739 if moving by a single line.
10740
107412008-09-02 Andreas Schwab <schwab@suse.de>
10742
10743 * xterm.c (x_delete_display): Fix merge error.
10744
10745 * fileio.c (Fexpand_file_name): Remove unused variables.
10746
107472008-09-02 Eli Zaretskii <eliz@gnu.org>
10748
10749 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10750 storage on all platforms, not just on DOS_NT.
10751
107522008-09-02 Jason Rumney <jasonr@gnu.org>
10753
b8ff72fa
SM
10754 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10755 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10756
107572008-09-01 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * xfaces.c (Finternal_set_alternative_font_family_alist)
10760 (Finternal_set_alternative_font_registry_alist): Properly copy
10761 entire alist structure.
10762
107632008-09-01 Kenichi Handa <handa@m17n.org>
10764
d66c0241 10765 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10766 representative chars of the script is a vector.
d66c0241
JB
10767 (ftfont_list): Handle the case where the representative chars of
10768 the script is a vector.
aac0c6e3
MR
10769
10770 * character.c (syms_of_character): Docstring of
10771 script-representative-chars fixed.
10772
107732008-08-31 Eli Zaretskii <eliz@gnu.org>
10774
10775 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10776 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10777 the menu. Allocate larger buffer for `text', to account for
10778 possible ^C characters.
10779
107802008-08-31 Martin Rudalics <rudalics@gmx.at>
10781
10782 * xdisp.c (prepare_menu_bars): Don't call
10783 Vwindow_size_change_functions with arg Qt.
10784
107852008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10786
10787 * font.h (font_range):
10788 * fileio.c (report_file_error):
46e722a9
SM
10789 * composite.c (composition_update_it): Yet another int/Lisp_Object
10790 mixup (YAILOM).
aac0c6e3
MR
10791
107922008-08-30 Glenn Morris <rgm@gnu.org>
10793
10794 * data.c (Fmake_variable_frame_local): Doc fix.
10795
10796 * frame.c (Fmodify_frame_parameters): Doc fix.
10797
107982008-08-30 Eli Zaretskii <eliz@gnu.org>
10799
10800 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10801 needed by GetTokenInformation.
10802 (w32_system_process_attributes): Check return values of all system
10803 APIs.
10804
10805 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10806 only when the state changes.
10807 (IT_update_begin, IT_update_end): Add termscript trace.
10808
10809 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10810 clipboard is unavailable. Set dst to NULL if it doesn't point to
10811 malloc'ed data.
10812 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10813 passing random values to xfree.
10814
10815 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10816 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10817
108182008-08-29 Jason Rumney <jasonr@gnu.org>
10819
10820 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10821
108222008-08-29 Eli Zaretskii <eliz@gnu.org>
10823
10824 * composite.c (fill_gstring_body): Avoid compiler warnings.
10825
10826 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10827 LGLYPH_SET_CODE to avoid compiler warnings.
10828
2ae37cf0 10829 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10830
10831 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10832
10833 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10834 LGLYPH_SET_CODE.
10835
108362008-08-29 Kenichi Handa <handa@m17n.org>
10837
10838 * fileio.c (report_file_error): Don't downcase the first character
10839 of errstring if it is still unibyte.
10840
108412008-08-29 Kenichi Handa <handa@m17n.org>
10842
10843 These changes are to re-implement the automatic composition so
10844 that it doesn't use text properties.
10845
10846 * Makefile.in (ftfont.o): Depend on composite.h.
10847 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10848
10849 * character.h (Vunicode_category_table): Extern it.
10850
10851 * character.c (Vunicode_category_table): New variable.
10852 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10853
10854 * chartab.c (optimize_sub_char_table): Perform more greedy
10855 optimization.
10856
b8ff72fa
SM
10857 * composite.h (enum composition_method):
10858 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10859 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10860 (Vcomposition_function_table): Extern it.
10861 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10862 (composition_gstring_put_cache, composition_gstring_from_id)
10863 (composition_gstring_p, composition_gstring_width)
10864 (composition_compute_stop_pos, composition_reseat_it)
10865 (composition_update_it, composition_adjust_point): Extern them.
10866 (Fcomposition_get_gstring): EXFUN it.
10867
d66c0241 10868 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10869 (Vcomposition_function_table)
10870 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10871 (gstring_hash_table, gstring_work, gstring_work_headers):
10872 New variables.
aac0c6e3
MR
10873 (gstring_lookup_cache, composition_gstring_put_cache)
10874 (composition_gstring_from_id, composition_gstring_p)
10875 (composition_gstring_width, fill_gstring_header)
10876 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10877 (composition_reseat_it, composition_update_it)
b8ff72fa 10878 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10879 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10880 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10881 Defsubr composition_get_gstring.
aac0c6e3
MR
10882
10883 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10884 cmp_id.
10885 (struct glyph_string): Delete the member gidx. New members
10886 cmp_id, cmp_from, and cmp_to.
10887 (enum it_method): Delete GET_FROM_COMPOSITION.
10888 (struct composition_it): New struct.
10889 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10890 Delete c, len, cmp_id, cmp_len in u.comp.
10891
10892 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10893 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10894 (enum lglyph_indices): Likewise.
b8ff72fa 10895 (font_range): Adjust extern.
aac0c6e3
MR
10896 (font_fill_lglyph_metrics): Extern it.
10897
10898 * font.c (QCf): New variable.
10899 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10900 (font_prepare_composition): Delete this function.
10901 (font_range): Type and arguments changed.
10902 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10903 (font_fill_lglyph_metrics): New function.
b8ff72fa 10904 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10905 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10906 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10907 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10908
10909 * fontset.h (font_for_char): Extern it.
10910
10911 * fontset.c (font_for_char): New function.
10912
10913 * ftfont.c: Include composite.h.
10914 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10915 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10916
10917 * indent.c: Include composite.h and dispextern.h.
10918 (check_composition): Delete this function.
10919 (scan_for_column): Handle composition by
10920 composition_compute_stop_pos, composition_reseat_it, and
10921 composition_update_it.
10922 (compute_motion): Likewise.
10923 (Fvertical_motion): Fix checking of composition.
10924
10925 * keyboard.c (adjust_point_for_property): Check composition by
10926 composition_adjust_point.
10927
b8ff72fa 10928 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10929 struct glyph_string.
10930
b8ff72fa
SM
10931 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10932 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10933 struct glyph.
10934 (produce_composite_glyph): Likewise.
10935
b8ff72fa
SM
10936 * w32term.c (x_draw_composite_glyph_string_foreground):
10937 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10938 (x_draw_glyph_string): Likewise.
10939
10940 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10941 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10942
10943 * xdisp.c: Include font.h.
10944 (it_props): Delete the entry for Qauto_composed.
10945 (init_iterator): Initialize it->cmp_it.id to -1.
10946 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10947 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10948 (handle_auto_composed_prop): Delete it.
10949 (handle_composition_prop): Handle only static composition.
10950 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10951 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10952 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10953 (pop_it): Likewise.
10954 (get_next_element): Delete next_element_from_composition.
10955 (CHAR_COMPOSED_P): New macro.
10956 (get_next_display_element): For automatic composition, get a face
10957 from the font in the glyph-string.
10958 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10959 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10960 (next_element_from_string): Check if the character at the current
10961 position is composed by CHAR_COMPOSED_P.
10962 (next_element_from_buffer): Likewise.
d66c0241
JB
10963 (next_element_from_composition): Adjust for the change of struct it.
10964 Update it->cmp_it.
b8ff72fa
SM
10965 (dump_glyph): Adjust for the change of struct glyph.
10966 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10967 it and struct glyph. Don't handle automatic composition here.
10968 (fill_gstring_glyph_string): New function.
10969 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10970 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10971 (BUILD_GSTRING_GLYPH_STRING): New macro.
10972 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10973 automatic composition.
b8ff72fa 10974 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10975 struct glyph.
b8ff72fa 10976 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10977
b8ff72fa 10978 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10979 the change of struct glyph_string.
10980 (x_draw_glyph_string): Likewise.
10981
109822008-08-29 Glenn Morris <rgm@gnu.org>
10983
10984 * buffer.c (word-wrap): Doc fix.
10985 * xdisp.c (truncate-partial-width-windows): Doc fix.
10986 Increase default to 50.
10987
109882008-08-29 Chong Yidong <cyd@stupidchicken.com>
10989
10990 * xdisp.c (update_tool_bar_unwind): New function.
10991 (update_tool_bar): Temporarily set selected frame before building
10992 tool-bar items.
10993
109942008-08-28 Michael Albinus <michael.albinus@gmx.de>
10995
10996 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10997 snprintf, respectively.
10998 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10999
110002008-08-28 Chong Yidong <cyd@stupidchicken.com>
11001
11002 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11003 LDFLAGS to GNUstep CC invocation.
11004
110052008-08-27 Chong Yidong <cyd@stupidchicken.com>
11006
11007 * indent.c (Fvertical_motion): Revert last change. Handle the
11008 general case where we are moving forward, and PT spans multiple
11009 screen lines.
11010
11011 * eval.c (find_handler_clause): Temporarily increase
11012 max-lisp-eval-depth while printing the backtrace buffer, to
11013 guarantee that help-mode code can run.
11014
110152008-08-27 Eli Zaretskii <eliz@gnu.org>
11016
11017 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11018 colors under -rv.
11019 (IT_set_frame_parameters): Don't swap foreground and background
11020 colors if `(reverse . t)' is present in the frame properties.
11021 (internal_terminal_init): Call init_frame_faces only for the
11022 initial frame.
11023
110242008-08-27 Andreas Schwab <schwab@suse.de>
11025
11026 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11027
110282008-08-27 Andreas Schwab <schwab@suse.de>
11029
11030 * search.c (search_buffer): Set char_base to zero only at the end.
11031
110322008-08-27 Kenichi Handa <handa@m17n.org>
11033
b8ff72fa 11034 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11035
110362008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11037
11038 * xterm.c (x_term_init): Temporarily hide the partially
11039 initialized terminal while calling vendor-specific-keysyms.
11040
110412008-08-26 Eli Zaretskii <eliz@gnu.org>
11042
11043 * msdos.c (internal_terminal_init): Most initializations done only
11044 once, especially initial_screen_colors[] and termscript open.
11045
110462008-08-26 Chong Yidong <cyd@stupidchicken.com>
11047
11048 * eval.c (Fcondition_case): Doc fix.
11049
11050 * widgetprv.h (EmacsFramePart): Change font member to the new font
11051 struct.
11052
11053 * widget.c: Include character.h and font.h for XSETFONT.
11054 (setup_frame_gcs): Compute X font id from font struct, just once.
11055
110562008-08-26 Eli Zaretskii <eliz@gnu.org>
11057
11058 * term.c (get_named_tty): Fix last change.
11059
110602008-08-26 Chong Yidong <cyd@stupidchicken.com>
11061
11062 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11063 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11064
110652008-08-25 Eli Zaretskii <eliz@gnu.org>
11066
11067 * frame.c (do_switch_frame): Mark previously displayed frame as
11068 obscured for FRAME_MSDOS_P frames as well.
11069
110702008-08-24 Eli Zaretskii <eliz@gnu.org>
11071
11072 * frame.c (make_terminal_frame): Initialize f->terminal,
11073 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11074 Set the top frame to newly created frame.
11075 (Fmake_terminal_frame): Reuse the_only_display_info.
11076
11077 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11078 estimating available memory.
11079
b97439ce 110802008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11081
11082 * nsterm.m (ns_draw_window_cursor): Don't call
11083 NSDisableScreenUpdates and NSEnableScreenUpdates on
11084 non-NS_IMPL_COCOA systems.
11085
110862008-08-23 Andreas Schwab <schwab@suse.de>
11087
11088 * process.c (procfs_system_process_attributes): Fix use of
11089 uninitialized variables.
11090
110912008-08-23 Eli Zaretskii <eliz@gnu.org>
11092
11093 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11094
11095 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11096 calling tty-set-up-initial-frame-faces.
11097
b8ff72fa
SM
11098 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11099 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11100
11101 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11102 addition to output_termcap.
11103
11104 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11105
11106 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11107 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11108 highlight.
11109
11110 * process.c [!subprocesses]: Define QCname.
11111 (syms_of_process): Intern and staticpro it.
11112
11113 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11114 Adjust for changes in encoding/decoding routines.
11115 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11116 encode_coding and decode_coding.
11117
b8ff72fa 11118 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11119
11120 * dosfns.c: Include frame.h before termhooks.h.
11121 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11122 variable termscript.
11123
11124 * s/msdos.h (USER_FULL_NAME): Define.
11125 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11126
11127 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11128 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11129 pw->pw_gecos.
11130
11131 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11132 SELECTED_FRAME as additional (1st) argument.
11133 (tty_read_avail_input): Handle output_msdos_raw in
11134 addition to output_termcap.
11135
11136 * msdos.c: Include frame.h before termhooks.h.
11137 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11138 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11139 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11140 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11141 (IT_set_terminal_modes, IT_reset_terminal_modes)
11142 (IT_set_frame_parameters): Use tty->termscript instead of a global
11143 variable termscript.
11144 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11145 global variable terminal_coding. Don't refer to
11146 Vnonascii_translation_table.
11147 (internal_terminal_init): Set Vwindow_system in current_kboard.
11148 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11149 Announce date and time of session start, if termscript is open.
11150 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11151 term.c:init_tty). Open termscript only of not already open.
11152 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11153 here instead of dos_ttraw. Don't initialize display if this is an
11154 initial tty. Don't set FRAME_FONT.
11155 (Vwindow_system_version): Bump to 23.
11156 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11157 is available, set up mouse_position_hook.
11158 (dos_ttraw, IT_set_terminal_modes): If called with initial
11159 terminal, do nothing.
11160 (IT_set_frame_parameters): Handle the Qtty_type frame
11161 parameter by calling internal_terminal_init.
11162 (dos_set_window_size, show_mouse_face)
11163 (clear_mouse_face, IT_note_mode_line_highlight)
11164 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11165 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11166 (initialize_msdos_display): New function.
11167 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11168 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11169 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11170 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11171 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11172 (request_sigio, unrequest_sigio): Don't define, now defined on
11173 sysdep.c.
11174 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11175
11176 * term.c [MSDOS]: Include msdos.h.
11177 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11178 conditional to DOS_NT. Allow only one call to this function in a
11179 session. Don't allocate a new struct tty_display_info; instead,
11180 reuse the_only_display_info. Call get_tty_size to get screen
11181 dimensions. Call init_baud_rate to set bad_rate.
11182 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11183 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11184 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11185 (get_tty_terminal, get_named_tty, Ftty_type)
11186 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11187 output_termcap.
b8ff72fa
SM
11188 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11189 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11190 only when subprocesses are supported.
aac0c6e3
MR
11191
11192 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11193 f->output_data.x.
11194 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11195 terminal devices.
11196
5582fbc7 11197 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11198 x_output.
11199 (FRAME_FONT): Use output_data.tty.
11200 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11201 (struct x_display_info): Rename from display_info. Update all users in
11202 msdos.c.
aac0c6e3 11203 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11204 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11205 (dos_ttraw): Update prototype.
11206
11207 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11208 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11209
112102008-08-23 Jason Rumney <jasonr@gnu.org>
11211
11212 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11213 (fn_TIFFSetDirectory): New library function used.
11214 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11215 (tiff_load): Use :index to select among multiple images. Set count
11216 property when multiple images exist.
11217 (gif_format): Use :index, not :image.
11218
112192008-08-23 Chong Yidong <cyd@stupidchicken.com>
11220
11221 * xdisp.c (try_scrolling): Check INT_MAX instead of
11222 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11223 to obtain INT_MAX.
11224
112252008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11226
11227 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11228
112292008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11230
11231 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11232 GNUstep library location.
11233
112342008-08-21 Chong Yidong <cyd@stupidchicken.com>
11235
11236 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11237 before using it.
11238
11239 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11240
112412008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11242
11243 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11244 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11245 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11246 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11247 (EmacsApp-cursor_blink_handler): Remove declaration.
11248 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11249 match 01 Feb 2008 changes in xterm.c.
11250 (ns_read_socket): Add cast to avoid warning.
11251 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11252 GNUstep.
11253
112542008-08-20 Chong Yidong <cyd@stupidchicken.com>
11255
11256 * xselect.c (x_get_foreign_selection): Return nil if desired
11257 selection could not be obtained, instead of signalling an error.
11258
112592008-08-20 David Reitter <david.reitter@gmail.com>
11260
11261 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11262 * nsterm.m: Remove ns-specific code for cursor blinking.
11263 (ns_draw_window_cursor): Clear cursor properly rather than
11264 redrawing the area. Respect width of bar cursors.
11265 These changes enable the use of generic blink-cursor-mode and
11266 generic cursor types in NS and support smooth cursor movements (do
11267 not blink off after command).
11268 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11269 Nextstep, too.
11270
112712008-08-19 Kenichi Handa <handa@m17n.org>
11272
11273 * font.c (Vfont_log_deferred): New variable.
11274 (font_add_log): Check Vfont_log_deferred.
11275 (font_deferred_log): New function.
11276
11277 * font.h (font_deferred_log): Extern it.
11278
11279 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11280 for sorting.
11281 (face_for_char): Use deferred log.
11282
112832008-08-18 Kenichi Handa <handa@m17n.org>
11284
11285 * fontset.c (face_for_char): Add font log.
11286
11287 * font.c (font_add_log): Add the font properties :script, :lang,
11288 and :otf in the log.
11289
112902008-08-17 Chong Yidong <cyd@stupidchicken.com>
11291
11292 * xdisp.c: Remove dead code.
11293 (handle_invisible_prop, next_overlay_string): Defer call to
11294 setup_for_ellipsis.
11295 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11296
112972008-08-15 Chong Yidong <cyd@stupidchicken.com>
11298
11299 * xfaces.c (lookup_derived_face): Properly handle possible zero
11300 return value of get_lface_attributes.
11301 (merge_faces): Don't tell lookup_derived_face to signal an error
11302 if face is not found.
11303
11304 * dired.c (Fdirectory_files): Doc fix.
11305
11306 * process.c (make_process): Initialize kill_without_query struct
11307 member.
11308
113092008-08-15 Eli Zaretskii <eliz@gnu.org>
11310
11311 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11312 Alternative calculation of totphys for Visual Studio 6.
11313
11314 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11315
11316 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11317 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11318 All users changed.
11319 (stat): Only root directory passed to GetDriveType. Allow RAM
11320 disk as well as local fixed disk when w32-get-true-file-attributes
11321 is set to `local'.
11322 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11323 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11324 (w32_cached_id, w32_add_to_cache): New functions.
11325 (get_name_and_id): Look account names in the cache before calling
11326 lookup_account_sid.
11327 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11328 New initialization flags.
11329 (globals_of_w32): Initialize them to zero.
11330 (w32_system_process_attributes): Use w32_cached_id and
11331 w32_add_to_cache.
11332
113332008-08-14 Lawrence Mitchell <wence@gmx.li>
11334
11335 * lread.c (Fread_char, Fread_char_exclusive): If no character
11336 event is read before timeout is reached, return nil, rather than
11337 converting to a number.
11338
113392008-08-14 Chong Yidong <cyd@stupidchicken.com>
11340
11341 * fns.c (use_dialog_box): Doc fix.
11342
11343 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11344 on OS X.
11345
113462008-08-13 Chong Yidong <cyd@stupidchicken.com>
11347
11348 * frame.c (Qns_parse_geometry): New var.
11349 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11350
113512008-08-11 Chong Yidong <cyd@stupidchicken.com>
11352
11353 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11354 space character in calculating tabs.
11355
113562008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11357
11358 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11359
113602008-08-10 Glenn Morris <rgm@gnu.org>
11361
11362 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11363 silence gcc "limited range of data type" warnings in some
11364 make_fixnum_or_float calls.
11365
113662008-08-09 Eli Zaretskii <eliz@gnu.org>
11367
11368 * w32.c (w32_system_process_attributes): If the process does not
11369 exist, return nil.
11370
11371 * w32.c: Include thelp32.h, psapi.h and coding.h.
11372 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11373 declarations.
11374 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11375 (Process32Next_Proc): New typedefs.
11376 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11377 (g_b_init_process32_next, g_b_init_open_thread_token)
11378 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11379 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11380 (g_b_init_get_process_working_set_size)
11381 (g_b_init_global_memory_status_ex): New static variables.
11382 (globals_of_w32): Initialize them.
11383 (create_toolhelp32_snapshot, process32_first, process32_next)
11384 (open_thread_token, impersonate_self, revert_to_self)
11385 (get_process_memory_info, get_process_working_set_size)
11386 (global_memory_status, global_memory_status_ex): New wrapper
11387 functions.
11388 (w32_list_system_processes, w32_system_process_attributes)
11389 (enable_privilege, restore_privilege, ltime, process_times):
11390 New functions.
11391 (convert_time_raw): New function.
11392 (convert_time): Remove conversion of FILETIME into time in 100
11393 nsec units, call convert_time_raw instead.
11394
11395 * process.h (w32_list_system_processes, w32_system_process_attributes):
11396 Add prototypes.
11397 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11398 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11399 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11400 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11401
11402 * process.c (Fsystem_process_attributes): Doc fix.
11403
114042008-08-08 Chong Yidong <cyd@stupidchicken.com>
11405
11406 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11407 a continued multi-char glyph; if so, advance to the actual glyph.
11408
114092008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11410
11411 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11412
11413 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11414 (.m.o): Use it.
11415 * config.in: Regenerate.
11416
114172008-08-07 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * xdisp.c (redisplay_window): Revert last change.
11420 (try_window): Check bottom scroll margin too.
11421
114222008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11423
11424 * config.in: Regenerate.
11425
11426 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11427 -list-load-path-shadows'.
11428 (nsgui.h): Reduce number of things depending on it.
11429
114302008-08-06 Chong Yidong <cyd@stupidchicken.com>
11431
11432 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11433 instead of window-end which does the wrong thing at eob.
11434 (try_cursor_movement): Minor optimization.
11435 (redisplay_window): If scroll margin is defined, don't assume
11436 window doesn't need scrolling.
11437
114382008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11439
11440 * config.in: Regenerate.
11441
11442 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11443 (mostlyclean): Don't delete *.d under NS.
11444
11445 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11446
114472008-08-06 Kenichi Handa <handa@m17n.org>
11448
11449 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11450
114512008-08-06 Andreas Schwab <schwab@suse.de>
11452
11453 * config.in: Regenerate.
11454
114552008-08-05 Chong Yidong <cyd@stupidchicken.com>
11456
11457 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11458 forcing a window start.
11459
11460 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11461 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11462
114632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11464
11465 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11466 argument.
11467
114682008-08-05 Juanma Barranquero <lekktu@gmail.com>
11469
11470 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11471 <scroll-down-aggressively, before-change-functions>:
11472 <after-change-functions>: Reflow docstrings.
11473
114742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11475 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11476
11477 Dock menu customization, based on a patch by Ken Raeburn, plus some
11478 other fixes.
11479 * nsmenu.m (dockMenu): New variable.
11480 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11481
11482 * nsterm.h (dockMenu): Declare.
11483
11484 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11485 (ns_term_init): Initialize dockMenu.
11486 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11487 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11488 left.
11489
11490 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11491
114922008-08-04 Chong Yidong <cyd@stupidchicken.com>
11493
11494 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11495
11496 * config.in: Regenerate.
11497
114982008-08-04 Seiji Zenitani <zenitani@mac.com>
11499
11500 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11501
115022008-08-04 Chong Yidong <cyd@stupidchicken.com>
11503
11504 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11505
115062008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11507
11508 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11509
11510 * keyboard.h: Comment an #endif.
11511
11512 * lisp.h (have_menus_p): Adjust comment.
11513
11514 * menu.c (find_and_return_menu_selection): Fix comparison with
11515 client_data.
11516
11517 * nsmenu.m (popup_activated_flag): New variable.
11518 (popup_activated): New function.
11519 (menu-or-popup-active-p): New exported lisp definition.
11520 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11521 when popup done.
11522 (ns_popup_dialog): Set popup_activated_flag.
11523
11524 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11525 version for GNUstep (handled by conditional typedef in nsterm.m).
11526 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11527 in rgb.txt).
11528
11529 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11530
11531 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11532
11533 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11534
11535 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11536 shortcircuit if popup_activated like GTK and X toolkit.
11537
11538 * m/inter386.h: Change DARWIN to DARWIN_OS.
11539
11540 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11541 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11542 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11543 comment on NO_SOCK_SIGIO.
11544
115452008-08-03 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * nsterm.m (windowDidResize): Remove stopModal call.
11548
115492008-08-03 Andreas Schwab <schwab@suse.de>
11550
11551 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11552 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11553
115542008-08-02 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11557 Don't use uninitialized pointer variable when using getrlimit.
11558
115592008-08-02 Jason Rumney <jasonr@gnu.org>
11560
11561 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11562
115632008-08-02 Eli Zaretskii <eliz@gnu.org>
11564
11565 * alloc.c (NSTATICS): Bump to 0x640.
11566
11567 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11568
11569 * lisp.h: Add prototype for directory_files_internal.
11570
11571 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11572 New functions.
11573 (syms_of_process): Defsubr them. Add initializations for various
11574 Q* symbols used in procfs_system_process_attributes.
11575 (procfs_list_system_processes, procfs_system_process_attributes)
11576 [HAVE_PROCFS]: New functions.
11577 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11578 (procfs_get_total_memory): New functions.
11579
115802008-08-01 Juanma Barranquero <lekktu@gmail.com>
11581
11582 * xfaces.c (Fx_load_color_file): Fix previous change;
11583 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11584
115852008-08-01 Michael Albinus <michael.albinus@gmx.de>
11586
11587 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11588
115892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11590
11591 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11592
115932008-08-01 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11596
11597 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11598 define NSApplicationDelegateReplySuccess.
11599 (EmacsView -converstationIdentifier): Use long instead of
11600 NSInteger for GNUstep, since it doesn't have NSInteger.
11601
11602 * xmenu.c: Revert last change.
11603
11604 * keyboard.h: Fix last change.
11605
116062008-08-01 Juanma Barranquero <lekktu@gmail.com>
11607
11608 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11609 on Windows.
11610
116112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11612
11613 Warning clearing and clean-up in NS port.
11614 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11615 Add prototypes.
11616 * nsgui.h (FACE_DEFAULT): Remove, unused.
11617 (XGCValues): Change colors to unsigned long.
11618 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11619 nsterm.m.
11620 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11621 (ns_list_fonts): Remove, unused.
11622 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11623 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11624 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11625 (nsfont_draw): Compare face colors to 0, not nil.
11626 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11627 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11628 (-addSubmenuWithTitle:): Use NSMenuItem class.
11629 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11630 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11631 (ns_clip_to_row): Make gc arg a BOOL.
11632 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11633 ns_clip_to_row() call.
11634 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11635 used). Cast FRAME_FONT assignments.
11636 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11637 (ns_string_to_lispmod): Change arg to const char.
11638 (ns_term_init): Use NSMenuItem class.
11639 (EmacsApp -openFile:): Move to different section of file.
11640 (EmacsApp -application:openFiles:): Don't return a value, call
11641 -replyToOpenOrPrint:.
11642 (EmacsView -keyDown:): Fix up cast.
11643 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11644 (EmacsView -menuDown:): Cast tag in call to
11645 find_and_call_menu_selection().
11646 (ns_list_fonts): Remove, unused.
11647 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11648 (ns_fontname_to_xlfd): Make static.
11649 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11650 Remove prototypes (now in keyboard.h).
11651 (next_menubar_widget_id): Remove, unused.
11652 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11653 Remove prototypes (now in keyboard.h).
11654 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11655
116562008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11657
11658 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11659 (floatfns.o): Depend on syssignal.h.
11660 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11661
11662 * systty.h: Fix previous change that removed BSD_TERMIOS.
11663 Add comments to #ifdefs.
11664
116652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11666
11667 * w32fns.c (w32-load-color-file): Remove.
11668 (x-open-connection): Use renamed Fx_load_color_file.
11669 * xfaces.c (x-load-color-file): Add.
11670 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11671 Emacs.clr.
11672 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11673
116742008-07-31 Michael Albinus <michael.albinus@gmx.de>
11675
11676 * dbusbind.c (Fdbus_call_method_asynchronously)
11677 (Fdbus_method_error_internal): New defuns.
11678 (xd_read_message): Handle also reply messages.
11679 (Vdbus_registered_functions_table): Extend docstring.
11680
116812008-07-31 Juanma Barranquero <lekktu@gmail.com>
11682
11683 * keyboard.c (gobble_input): Fix previous change.
11684
116852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11686
11687 * bitmaps/README:
11688 * xfns.c:
11689 * termcap.c:
11690 * term.c:
11691 * syswait.h:
11692 * systty.h:
11693 * systime.h:
11694 * syssignal.h:
11695 * sysdep.c:
11696 * process.h:
11697 * process.c:
11698 * print.c:
11699 * ndir.h:
11700 * lread.c:
11701 * keyboard.c:
11702 * getpagesize.h:
11703 * floatfns.c:
11704 * fileio.c:
11705 * emacs.c:
11706 * doc.c:
11707 * dispnew.c:
11708 * dired.c:
11709 * data.c:
11710 * callproc.c:
11711 * buffer.c:
11712 * README:
11713 * Makefile.in:
11714 * s/template.h:
11715 * s/msdos.h:
11716 * m/vax.h: Remove VMS support.
11717 * s/vms.h:
11718 * vlimit.h:
11719 * uaf.h:
11720 * temacs.opt:
11721 * param.h:
11722 * ioctl.h: Remove file.
11723
117242008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11725
11726 * s/ms-w32.h (MULTI_KBOARD): Remove.
11727 * xterm.c:
11728 * xselect.c:
11729 * xfns.c:
11730 * window.c:
11731 * w32term.c:
11732 * w32fns.c:
11733 * terminal.c:
11734 * termhooks.h:
11735 * term.c:
11736 * sysdep.c:
11737 * keyboard.h:
11738 * keyboard.c:
11739 * frame.h:
11740 * frame.c:
11741 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11742 * config.in: Regenerate.
11743
117442008-07-30 Jason Rumney <jasonr@gnu.org>
11745
11746 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11747
11748 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11749 (w32font_open_internal): Get unicode version of textmetrics.
11750 Don't enable or disable glyph indices here.
11751 (w32font_open): Disable use of glyph indices.
11752
11753 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11754
117552008-07-30 Chong Yidong <cyd@stupidchicken.com>
11756
11757 * minibuf.c (Vread_buffer_function): Doc fix.
11758
117592008-07-30 John Paul Wallington <jpw@pobox.com>
11760
11761 * minibuf.c (read_buffer_completion_ignore_case): New var.
11762 (Fread_buffer): Use it.
11763
117642008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11765
11766 * systty.h (sensemode): Remove empty #if. Remove reference to
11767 BSD_TERMIOS, unused.
11768
11769 * sysdep.c: Remove reference to DGUX.
11770 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11771
11772 * config.in: Regenerate.
11773
117742008-07-30 Jason Rumney <jasonr@gnu.org>
11775
11776 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11777
117782008-07-29 Jason Rumney <jasonr@gnu.org>
11779
11780 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11781 is populated.
11782 (uniscribe_encode_char): Always use uniscribe.
11783 Avoid using context if cache is populated.
11784
117852008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11786
11787 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11788 open menu.
11789
11790 * gtkutil.c (menu_nav_ended): Remove.
11791 (create_menus): Remove signal connect for menu_nav_ended.
11792
117932008-07-28 Chong Yidong <cyd@stupidchicken.com>
11794
11795 * xdisp.c (redisplay_window): Check return value of
11796 compute_window_start_on_continuation_line before forcing a window
11797 start.
11798
117992008-07-28 Jason Rumney <jasonr@gnu.org>
11800
11801 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11802
11803 * w32term.c (w32_enable_unicode_output, cleartype_active):
11804 Remove obsolete display options.
11805 (x_draw_glyph_string_background): Don't use old cleartype_active
11806 workaround.
11807 (w32_initialize): Remove cleartype_active initialization.
11808 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11809
118102008-07-28 Andreas Schwab <schwab@suse.de>
11811
11812 * lisp.h (init_weak_hash_tables, syms_of_font)
11813 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11814 (remove_hash_entry): Don't declare.
11815 * eval.c (maybe_call_debugger): Make static and move before use.
11816 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11817 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11818 * xterm.h (x_set_frame_alpha): Declare.
11819
118202008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11821
11822 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11823 (create_menus): Connect selection-done to menu_nav_ended.
11824
118252008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11826
11827 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11828 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11829 parameter with read of 'alpha' one.
11830 (Qns_frame_parameter): Remove.
5582fbc7 11831 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11832 (next-selection-coding-system, Vselection_coding_system)
11833 (Vnext_selection_coding_system): Drop.
11834
118352008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11836
11837 * nsfns.m (do-applescript, do_applescript): Rename to
11838 ns-do-applescript, ns_do_applescript, and move within file.
11839
118402008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11841
11842 Remove support for Mac Carbon.
11843 * mactoolbox.c:
11844 * macterm.h:
11845 * macterm.c:
11846 * macselect.c:
11847 * macmenu.c:
11848 * macgui.h:
11849 * macfns.c:
11850 * mac.c: Remove file.
11851 * s/darwin.h:
11852 * m/intel386.h:
11853 * xfaces.c:
11854 * xdisp.c:
11855 * window.c:
11856 * tparam.c:
11857 * termhooks.h:
11858 * termcap.c:
11859 * term.c:
11860 * syssignal.h:
11861 * sysselect.h:
11862 * sysdep.c:
11863 * process.c:
11864 * lread.c:
11865 * lisp.h:
11866 * keyboard.c:
11867 * image.c:
11868 * fringe.c:
11869 * frame.h:
11870 * frame.c:
11871 * fontset.c:
11872 * font.h:
11873 * font.c:
11874 * fns.c:
11875 * fileio.c:
11876 * emacs.c:
11877 * dispnew.c:
11878 * dispextern.h:
11879 * config.in:
11880 * atimer.c:
2ae37cf0 11881 * Makefile.in: Remove code for Carbon.
aac0c6e3 11882
f0131492 118832008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11884
11885 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11886
118872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11888
11889 * macterm.h (kCGBitmapByteOrder32Host): New define for
11890 non-universal SDKs.
11891
11892 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11893 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11894
11895 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11896 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11897
118982008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11899
11900 * w32inevt.c: Include dispextern.h.
11901
119022008-07-26 Andreas Schwab <schwab@suse.de>
11903
11904 * print.c (print_object): Fix off-by-one in last change.
11905
119062008-07-25 Juanma Barranquero <lekktu@gmail.com>
11907
11908 * term.c (syms_of_term): Don't initialize default_orig_pair,
11909 default_set_foreground and default_set_background on Windows.
11910
119112008-07-25 Jason Rumney <jasonr@gnu.org>
11912
11913 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11914 ScriptItemize. Clean up return value checking. Remove unused
11915 variables.
11916 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11917 shaping engine.
11918
11919 * w32font.c (w32font_has_char): Handle the case where we can't
11920 determine the script for a character.
11921
119222008-07-25 Chong Yidong <cyd@stupidchicken.com>
11923
11924 * term.c (syms_of_term): Initialize default_orig_pair,
11925 default_set_foreground, and default_set_background.
11926
11927 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11928 clash (bug#86).
11929 (getloadavg): Callers changed.
11930
11931 * image.c (svg_load_image): Fix last change.
11932 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11933 image size is valid. Use g_object_unref instead of deprecated
11934 rsvg_handle_free to free rsvg handle.
11935 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11936
119372008-07-25 Jason Rumney <jasonr@gnu.org>
11938
11939 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11940 surrogates before looking up glyph index.
11941 (w32font_text_extents): Encode as surrogates if falling back to
11942 functions that need UTF-16 wide chars.
11943
11944 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11945 BMP as surrogates before looking up glyph index.
11946
119472008-07-25 Chong Yidong <cyd@stupidchicken.com>
11948
11949 * image.c (svg_load_image): Check for failure in return value of
11950 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11951
119522008-07-25 Jason Rumney <jasonr@gnu.org>
11953
11954 * w32font.c (Fx_select_font): Reverse sense of second arg.
11955
119562008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11957
11958 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11959 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11960
11961 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11962 (PURESIZE): Use it.
11963
119642008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11965
11966 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11967 * m/alpha.h (TEXT_END):
11968 * m/ibmrs6000.h (TEXT_END):
11969 * m/macppc.h (TEXT_END):
11970 * s/darwin.h (TEXT_END):
11971 * s/msdos.h (TEXT_END): Remove, unused.
11972 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11973 * s/cygwin.h: Remove comment.
11974
11975 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11976 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11977 * m/intel386.h (DOT_GLOBAL_START):
11978 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11979 (USG): Remove, file not used on USG platforms.
11980
11981 * Makefile.in (HAVE_X11): Remove empty #else.
11982
119832008-07-24 Andreas Schwab <schwab@suse.de>
11984
11985 * fileio.c (Finsert_file_contents): Properly adjust undo list
11986 after format conversion.
11987
119882008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11989
11990 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11991 (menu_nav_ended): Remove.
11992 (create_menus): Remove signal connect for menu_nav_ended.
11993 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11994 create_menus.
11995 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11996
119972008-07-23 Jason Rumney <jasonr@gnu.org>
11998
11999 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12000 with opened font.
12001 (w32font_open): Set font type to gdi.
12002
12003 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12004
120052008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12006
12007 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12008 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12009 defines it.
12010 * unexec.c (ADDR_CORRECT): Define unconditionally.
12011
12012 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12013
12014 * unexec.c: Remove code depending on !COFF and USG, the file is
12015 not used for such systems.
12016
12017 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12018 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12019 (LD_SWITCH_SYSTEM_1): Remove, update users.
12020
12021 * s/darwin.h (DATA_END):
12022 * m/intel386.h (DATA_END):
12023 * m/ibmrs6000.h (DATA_END):
12024 * m/alpha.h (DATA_END): Remove, unused.
12025
12026 * config.in: Regenerate.
12027 * s/ms-w32.h (subprocesses): Define unconditionally.
12028 * s/template.h (subprocesses): Update comment.
12029 * s/vms.h (subprocesses):
12030 * s/usg5-4.h (subprocesses):
12031 * s/hpux10-20.h (subprocesses):
12032 * s/gnu-linux.h (subprocesses):
12033 * s/cygwin.h (subprocesses):
12034 * s/bsd-common.h (subprocesses):
12035 * s/aix4-2.h (subprocesses):
12036 * s/darwin.h (subprocesses): Do not define, defined by default now.
12037
12038 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12039 Remove all references.
12040 (temacs): Add GNUstep specific ld flags.
12041
12042 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12043 similarly to what X does.
12044
120452008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12046
12047 * nsfns.m (x-list-fonts): Remove.
12048 (syms_of_nsfns): Drop the x-list-fonts declaration.
12049 * nsterm.m: Get rid of remaining "//" comments.
12050
120512008-07-22 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12054
12055 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12056 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12057 (Fns_own_selection_internal, Fx_disown_selection_internal)
12058 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12059
12060 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12061 ... */' style of docstrings. Doc fixes.
12062
120632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12064
12065 * terminfo.c (UP, BC, PC): Undo previous change.
12066
12067 * nsfns.m: Rename ns prefixed functions/variables to the
12068 corresponding x versions. Update references.
12069
120702008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12073
120742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12075
12076 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12077 Remove forwarding functions.
12078 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12079 non-static.
12080 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12081 non-static.
12082 (ns_frame_parm_handlers): Use the new names.
12083 (syms_of_nsfns): Move to the end of file.
12084
12085 * nsterm.m (syms_of_nsterm): Move to the end of file.
12086
12087 * dispnew.c (init_display): Remove code for X10.
12088
120892008-07-22 Jason Rumney <jasonr@gnu.org>
12090
12091 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12092 bare drive.
12093
120942008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12095
12096 * nsterm.m (syms_of_nsterm): Remove debugging println.
12097
120982008-07-22 David Reitter <david.reitter@gmail.com>
12099
12100 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12101 Carbon implementation of the same functionality: execute arbitrary
12102 AppleScript code.
12103
121042008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12105
12106 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12107 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12108 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12109 (Fx_display_mm_height, Fx_display_mm_width)
12110 (Fx_display_backing_store, Fx_display_visual_class)
12111 (Fx_display_save_under, Fx_open_connection)
12112 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12113 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12114 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12115 (Fx_display_pixel_width, Fx_display_pixel_height)
12116 (Fx_display_usable_bounds, Fx_display_planes)
12117 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12118 ... */' style of docstrings.
12119
121202008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12121
12122 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12123 on this platform.
12124 (mips):
12125 * m/iris4d.h (mips): Do not define.
12126 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12127
12128 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12129
12130 * image.c:
12131 * nsfns.m:
12132 * nsselect.m:
12133 * nsterm.h:
12134 * nsterm.m: Rename ns prefixed functions/variables to the
12135 corresponding x versions. Update references.
12136
12137 * m/ibms390x.h (NO_REMAP): Do not undefine.
12138
12139 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12140
121412008-07-21 Chong Yidong <cyd@stupidchicken.com>
12142
12143 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12144 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12145 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12146 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12147 (Fns_display_mm_height, Fns_display_mm_width)
12148 (Fns_display_backing_store, Fns_display_visual_class)
12149 (Fns_display_save_under, Fns_open_connection)
12150 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12151 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12152 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12153 (Fns_display_pixel_width, Fns_display_pixel_height)
12154 (Fns_display_usable_bounds, Fx_display_planes)
12155 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12156
121572008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12158
12159 * print.c (print_object): Check print_depth before searching for
12160 circularities.
12161
121622008-07-21 Michael Albinus <michael.albinus@gmx.de>
12163
12164 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12165 only sprintf.
12166
121672008-07-21 Kenichi Handa <handa@m17n.org>
12168
12169 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12170
121712008-07-20 Andreas Schwab <schwab@suse.de>
12172
12173 * syntax.c (find_start_pos, find_start_value)
12174 (find_start_value_byte, find_start_begv, find_defun_start)
12175 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12176
121772008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12178
12179 * s/sol2-3.h: Insert contents of s/sol2.h.
12180 (LD_SWITCH_SYSTEM): Remove redundant definition.
12181 * s/sol2.h: Remove, unused.
12182
121832008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12184
12185 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12186
121872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12188
12189 * Makefile.in (ns_appdir): Fix typo in find command.
12190
121912008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12192
12193 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12194
12195 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12196 added not supported anymore.
12197
12198 * s/usg5-4-2.h (LIBS_SYSTEM):
12199 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12200
12201 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12202 * s/lynxos.h (GETPGRP_NO_ARG):
12203 * s/hpux10-20.h (NO_SIOCTL_H):
12204 * s/gnu.h (GETPGRP_NO_ARG):
12205 * s/gnu-linux.h (NO_SIOCTL_H):
12206 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12207 * s/cygwin.h (GETPGRP_NO_ARG):
12208 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12209 (C_DEBUG_SWITCH): Remove duplicate definition.
12210
12211 * m/ibms390.h: Remove boilerplate comments.
12212
12213 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12214
12215 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12216 (wait_reading_process_output): Remove code for SunOS, platform not
12217 supported anymore. Use SOLARIS2 instead of sun.
12218
122192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12220
12221 * font.c (font_open_by_name): Under NS, default lface height to zero.
12222 (font_open_for_lface): Under NS, set size based on frame fontsize.
12223 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12224 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12225
122262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12227
12228 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12229 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12230 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12231 YES/NO.
12232 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12233 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12234 * Makefile.in (clean): Clear out build destination dir.
12235
122362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12237
12238 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12239 xterm, xselect.
12240 * lisp.h: Remove declaration of hash_remove.
12241 * nsgui.h: Remove redefinitions of hash_remove.
12242 * fns.c (hash_remove): Rename to hash_remove_from_table.
12243
122442008-07-19 Seiji Zenitani <zenitani@mac.com>
12245
12246 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12247 strdup() the family UTF8String before modifying it.
12248
122492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12250
12251 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12252 NS_FACE_BACKGROUND with 0 instead of nil.
12253 * nsfont.m (nsfont_draw): Same.
12254
122552008-07-19 Chong Yidong <cyd@stupidchicken.com>
12256
12257 * nsfns.m (ns_set_background_color): Fix crash.
12258
122592008-07-18 Chong Yidong <cyd@stupidchicken.com>
12260
12261 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12262
122632008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12264
12265 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12266
122672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12268
12269 * gtkutil.c: Include <config.h> instead of "config.h".
12270
12271 * lisp.h (Foverlay_buffer): Add EXFUN.
12272
12273 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12274 child process to complete child_setup. Undo 2005-09-21 change.
12275
12276 * s/darwin.h: Mention setsid after vfork.
12277
122782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12279
12280 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12281 Depend on macgui.h.
12282
12283 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12284 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12285
12286 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12287 and f19.
12288 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12289
12290 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12291 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12292 Remove enumerators.
12293
12294 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12295 Check if FACE_FROM_ID returns NULL.
12296
122972008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12298
12299 * w32inevt.c (change_frame_size): Remove extern declaration.
12300 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12301 change_frame_size.
12302
123032008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12304
12305 * getloadavg.c: Revert last change (2008-07-15).
12306
123072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12308
12309 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12310 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12311 from configure.
12312
123132008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12314
12315 * s/sol2.h:
12316 * s/sol2-4.h: Reorganize conditionals.
12317
12318 * ecrt0.c: Remove code depending on m68000, not used anymore.
12319
12320 * fns.c (hash_remove): Make static.
12321 * lisp.h (hash_remove): Don't prototype.
12322
12323 * m/ibmrs6000.h:
12324 * m/ibms390x.h:
12325 * m/macppc.h: Remove boilerplate comments.
12326
12327 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12328 Solaris, which does not need them.
12329
12330 * m/vax.h: Remove comments about unsupported systems.
12331
12332 * s/darwin.h: Reorganize ifdefs.
12333
123342008-07-17 Andreas Schwab <schwab@suse.de>
12335
12336 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12337
123382008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12339
12340 Use SDATA. Follow coding convention of placing operators at
12341 beginning of next line rather than end of previous line, and placing
12342 spaces around infix operators.
12343
12344 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12345 in case it was defined already.
12346 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12347 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12348 ns_default.
12349 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12350 Lisp_Objects.
12351 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12352 (ns_defined_color, ns_color_to_lisp): Declare.
12353 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12354 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12355 it's accepted even with USE_LISP_UNION_TYPE.
12356 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12357 (update_frame_tool_bar): Remove apparently obsolete tests for
12358 non-integerness of f->tool_bar_lines.
12359 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12360 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12361 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12362 (nsfont_open): Don't confuse NULL for Qnil.
12363 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12364 * menu.h (find_and_call_menu_selection):
12365 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12366 (find_and_return_menu_selection): Always return something.
12367 * frame.h: Include dispextern.h for Display_Info.
12368 (display_x_get_resource): Declare.
12369
123702008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12371
12372 * syntax.c: Remove stdio.h include accidentally introduced in
12373 Emacs.app commit.
12374 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12375 NS_IMPL_COCOA.
12376 * keyboard.c (handle_async_input, input_available_signal): Remove
12377 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12378
123792008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12380
12381 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12382 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12383 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12384 Use SDATA.
12385
12386 * keymap.c: Remove all NS-specific code.
12387 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12388 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12389 where_is_preferred_modifier, return a different value depending on how
12390 preferred is the binding.
12391 (where_is_internal): Adjust accordingly.
12392 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12393 Adjust to new preferred_sequence_p.
12394 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12395 * keyboard.c (parse_solitary_modifier): Not static any more.
12396 * keyboard.h (parse_solitary_modifier): Declare.
12397
123982008-07-16 Andreas Schwab <schwab@suse.de>
12399
12400 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12401 of easymenu.
12402
124032008-07-16 Chong Yidong <cyd@stupidchicken.com>
12404
12405 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12406 that we don't move off the line.
12407
124082008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12409
12410 * keyboard.c (Qsuper): Remove.
12411 (parse_menu_item): Don't call where_is_internal specially for NS.
12412
124132008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12414
12415 * s/gnu-linux.h: Remove boilerplate comments.
12416
12417 * m/alpha.h (__ELF__): Consolidate conditions.
12418
12419 * m/m68k.h (linux): Use GNU_LINUX instead.
12420 Remove boilerplate comments.
12421
12422 * m/intel386.h: Undo refactoring from previous change.
12423 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12424 too, remove dead code.
12425 (linux): Use GNU_LINUX instead.
12426
124272008-07-16 Jason Rumney <jasonr@gnu.org>
12428
12429 * w32gui.h: Repeat 26 June changes lost by last change.
12430
124312008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12432
12433 * systty.h: Remove code for Aix on 386, unsupported platform.
12434
12435 * s/ms-w32.h: Remove boilerplate comments.
12436 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12437
12438 * s/gnu-linux.h (TERM): Remove support.
12439 (HAVE_SYSVIPC): Remove, unused.
12440 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12441 for this system.
12442
12443 * process.c: Remove support for IRIS, unused.
12444 Remove support for TERM, not relevant anymore.
12445
12446 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12447 used with the definition.
12448
12449 * s/aix4-2.h (static): Do not undef.
12450
12451 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12452 only used on Aix.
12453 (HAVE_SYSVIPC): Remove, unused.
12454
12455 * m/hp800.h (CANNOT_DUMP): Do not undef.
12456
12457 * m/alpha.h: Fix comment.
12458
12459 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12460 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12461 used by this configuration.
12462 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12463 * unexec.c: Remove code depending on HPUX and
12464 USG_SHARED_LIBRARIES, not used with this file. Remove code
12465 depending on IRIS, unused. Remove if 0-ed code.
12466
12467 * s/template.h: Remove comments about static.
12468
12469 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12470 Remove if 0-ed code.
12471 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12472 were the same as the default.
12473 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12474 Remove boilerplate comments.
12475 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12476 (HAVE_SYSVIPC): Remove, unused.
12477 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12478
12479 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12480 Remove boilerplate comments.
12481 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12482 Remove boilerplate comments.
12483 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12484 Remove boilerplate comments.
12485 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12486
12487 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12488 USG systems which do not use DATA_SEG_BITS.
12489 Refactor code. Remove boilerplate comments.
12490
12491 * m/ibms390.h:
12492 * m/m68k.h:
12493 * s/bsd-common.h:
12494 * s/cygwin.h:
12495 * s/darwin.h:
12496 * s/freebsd.h:
12497 * s/gnu.h:
12498 * s/msdos.h: Remove boilerplate comments.
12499
12500 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12501 do not use this file.
aac0c6e3
MR
12502 (IRIS_4D): Remove, unused.
12503
12504 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12505 do not use this file.
aac0c6e3
MR
12506 (SIGN_EXTEND_CHAR):
12507 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12508 * unexmips.c: Remove file, unused.
12509
12510 * editfns.c (Fuser_full_name): Replace the only use of
12511 USER_FULL_NAME with its value.
12512 * config.in: Regenerate.
12513
125142008-07-16 David Reitter <david.reitter@gmail.com>
12515
12516 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12517 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12518
125192008-07-16 Glenn Morris <rgm@gnu.org>
12520
12521 * emacs.c (system-type): Doc fix.
12522
125232008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12524
12525 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12526 If the cache doesn't work, let's fix it, rather than work around it.
12527
125282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12529
12530 * Makefile.in: Correct additions for nsfont.o in last commit.
12531 * nsfont.m: New file (forgot last commit).
12532
125332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12534
12535 * callproc.c (set_initial_environment): Initialize
12536 Vprocess_environment under CANNOT_DUMP (fixes crash when
12537 batch-compiling for bootstrap).
12538
125392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12540 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12541
c4cc8b9a
JB
12542 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12543 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12544
125452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12546
12547 Changes and additions for NeXTstep windowing system (Cocoa and
12548 GNUstep) support.
12549
12550 * Makefile.in:
12551 * config.in: Support defines and build commands for NS port.
12552 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12553 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12554 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12555 windowing.
12556 (struct face): Add synth_ital field.
12557 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12558 (init_display): Initialize Vinitial_window_system to "ns" when so
12559 compiled.
12560 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12561 (display_arg): Use under NS.
12562 (main): Under NS, allocate autorelease pool and handle command line
12563 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12564 (standard_args): Add NS-specific args.
12565 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12566 * font.c (DEFAULT_ENCODING): New variable.
12567 (font_find_for_lface): Use it.
12568 (syms_of_font): Load syms_of_nsfont under NS.
12569 * font.h: Declare nsfont_driver when compiled under NS.
12570 * fontset.c: When compiling under NS, include nsterm.h.
12571 (fontset_from_font): Autoconstruct fontset under NS.
12572 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12573 symbol, document and use it.
12574 (do_switch_frame): When for_deletion under Cocoa, add
12575 Fraise_frame(Qnil).
12576 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12577 (x_get_arg): Allow "yes" and "no" as boolean values.
12578 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12579 Qright under Cocoa.
12580 (focus-follows-mouse): Default to 0 under NS.
12581 * frame.h (enum output_method): Add output_ns.
12582 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12583 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12584 (FRAME_WINDOW_P): NS-specific definition.
12585 * fringe.c (max_used_fringe_bitmap): Make public.
12586 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12587 (getloadavg): Use NeXT code under descendant OS's.
12588 * image.c (includes and header section, x_create_bitmap_from_data)
12589 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12590 (image_background_transparent, x_clear_image_1)
12591 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12592 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12593 (x_to_xcolors, x_from_xcolors, x_disable_image)
12594 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12595 other GUIs, including XPM support using code originally written for
12596 Carbon GUI.
12597 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12598 using NS API.
12599 (image_ascent): Use font metrics macros instead of direct struct field
12600 access.
12601 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12602 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12603 Also, handle NS as GTK for menu bar purposes.
12604 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12605 toolkit where they differ.
12606 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12607 use cachelist, still needed under NS.
12608 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12609 (struct widget_value): Define it here for menu.c.
12610 * keymap.c (includes): Include modifier internals.
12611 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12612 NS.
12613 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12614 support for preferring sequences using certain modifiers, specified by
12615 the FIRSTONLY argument.
12616 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12617 under NS GNUstep implementation.
12618 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12619 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12620 * menu.c: Include nsterm.h under NS.
12621 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12622 (free_menubar_widget_tree_value, update_submenu_strings)
12623 (find_and_call_menu_selection): Treat NS as X and NT.
12624 (find_and_return_menu_selection): New function, used for popup menus.
12625 * nsgui.h:
12626 * nsterm.h:
12627 * nsfns.m:
12628 * nsimage.m:
12629 * nsmenu.m:
12630 * nsselect.m:
12631 * nsterm.m: New files.
12632 * process.c (wait_reading_process_output): Under NS, call ns_select()
12633 instead of plain select().
12634 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12635 beginning of buffer.
12636 * sysselect.h (init_process): Rename when compiling under Cocoa to
12637 avoid name conflict.
12638 * termhooks.h (display_info): Add ns_display_info to union.
12639 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12640 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12641 COCOA environment.
12642 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12643 unexec() signature. (Note, this will dump, but the resulting file
12644 crashes; unexosx is used instead; keeping around for reference and
12645 possible aid in getting dump working under GNUstep.)
12646 * w32gui.h (button_type, widget_value): Remove definitions (now in
12647 keyboard.h).
12648 * window.c: Include nsterm.h when compiling under NS.
12649 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12650 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12651 other GUI windowing systems.
12652 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12653 GTK.
12654 (x_consider_frame_title): Under NS, set icon type and frame
12655 modified-state indicator; use ns_set_name_as_filename() when using
12656 formatted title.
12657 (update_window_cursor): Make public when compiling under NS.
12658 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12659 (hourglass_atimer, Vhourglass_delay
12660 * xfaces.c (header section, init_frame_faces, clear_font_table)
12661 (defined_color, unload_color, x_face_list_fonts)
12662 (prepare_face_for_display): Add NS support parallel to other GUIs.
12663 Emulate GCs like other non-X GUIs.
12664 (split_font_name): Don't lowercase font name under NS.
12665 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12666 under NS.
12667 * s/darwin.h: Add support for compilation under NS.
12668
126692008-07-15 Jason Rumney <jasonr@gnu.org>
12670
12671 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12672 (w32_show_hourglass): Rename from show_hourglass.
12673 (w32_hide_hourglass): Rename from hide_hourglass.
12674 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12675 (Vhourglass_delay): Declare extern.
12676 (hourglass_started): Remove.
12677
12678 * xdisp.c (Vhourglass_delay): Remove static.
12679 (hourglass_started, start_hourglass, cancel_hourglass):
12680 Don't include these versions on WINDOWSNT.
12681
126822008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12683
12684 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12685 variables (formerly in xfns.c).
12686 (show_hourglass, hide_hourglass): New prototypes (same).
12687 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12688 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12689 in xfns.c).
12690 (syms_of_xdisp): Declare/initialize display-hourglass,
12691 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12692 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12693 formerly in xfns.c.
12694 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12695 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12696 (start_hourglass, cancel_hourglass): Remove.
12697 (show_hourglass, hide_hourglass): Remove prototypes and static
12698 modifiers.
12699 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12700 hourglass_atimer, hourglass_shown_p declaration/initialization.
12701 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12702 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12703 (start_hourglass, cancel_hourglass): Remove.
12704 (show_hourglass, hide_hourglass): Remove prototypes and static
12705 modifiers.
12706 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12707 hourglass_atimer, hourglass_shown_p declaration/initialization.
12708 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12709 (DEFAULT_HOURGLASS_DELAY): Remove.
12710 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12711 hourglass_shown_p declaration/initialization.
12712
127132008-07-14 Jason Rumney <jasonr@gnu.org>
12714
12715 * w32fns.c (w32_get_arg): Remove wrapper function.
12716 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12717 directly.
12718 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12719
127202008-07-14 Kenichi Handa <handa@m17n.org>
12721
12722 * xfont.c (xfont_open): Add workaround for X's bug.
12723
127242008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12725
12726 * fontset.c: Include <stdio.h> unconditionally.
12727
127282008-07-13 Michael Albinus <michael.albinus@gmx.de>
12729
12730 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12731 for filtering.
12732
127332008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12734
12735 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12736
12737 * m/macppc.h:
12738 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12739
c4cc8b9a 12740 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12741 (SPECIAL_EMACS_INT):
12742 * m/ia64.h (SPECIAL_EMACS_INT):
12743 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12744 * s/gnu.h (NLIST_STRUCT):
12745 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12746 * s/gnu-linux.h (LINUX):
12747 * s/msdos.h (HAVE_FACES):
12748 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12749
12750 * systty.h:
12751 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12752 anymore.
12753
127542008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12755
12756 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12757 always defined as int.
12758
12759 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12760 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12761 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12762 * s/freebsd.h (HAVE_WAIT_HEADER):
12763 * s/bsd-common.h (HAVE_UNION_WAIT):
12764 * s/aix4-2.h (HAVE_WAIT_HEADER):
12765 * m/mips.h (HAVE_UNION_WAIT):
12766 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12767 (COFF, static): Do not define, they are undefined later in the file.
12768
12769 * process.c (update_status): Don't use a union.
12770 (status_convert):
12771 (sigchld_handler): Use int instead of WAITTYPE.
12772
127732008-07-12 Chong Yidong <cyd@stupidchicken.com>
12774
12775 * indent.c (Fvertical_motion): Restore hscroll before moving to
12776 goal column.
12777
127782008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12779
12780 * lisp.h: Remove left over code.
12781
127822008-07-11 Andreas Schwab <schwab@suse.de>
12783
12784 * lisp.h: Fix logic in last change.
12785
12786 * menu.h: New file.
12787 * menu.c: Include it.
12788 * xmenu.c: Likewise.
12789 * Makefile.in: Update dependencies.
12790
127912008-07-11 Kenichi Handa <handa@m17n.org>
12792
12793 * fontset.c (fontset_from_font): Cancel the previous change.
12794
127952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12796
12797 * lisp.h:
12798 * w32heap.c:
12799 * emacs.c:
12800 * alloc.c: Replace all references of NO_UNION_TYPE with
12801 USE_LISP_UNION_TYPE.
12802
12803 * m/xtensa.h (NO_UNION_TYPE):
12804 * m/vax.h (NO_UNION_TYPE):
12805 * m/template.h (NO_UNION_TYPE):
12806 * m/sparc.h (NO_UNION_TYPE):
12807 * m/mips.h (NO_UNION_TYPE):
12808 * m/macppc.h (NO_UNION_TYPE):
12809 * m/m68k.h (NO_UNION_TYPE):
12810 * m/iris4d.h (NO_UNION_TYPE):
12811 * m/intel386.h (NO_UNION_TYPE):
12812 * m/ibms390x.h (NO_UNION_TYPE):
12813 * m/ibms390.h (NO_UNION_TYPE):
12814 * m/ibmrs6000.h (NO_UNION_TYPE):
12815 * m/ia64.h (NO_UNION_TYPE):
12816 * m/hp800.h (NO_UNION_TYPE):
12817 * m/arm.h (NO_UNION_TYPE):
12818 * m/amdx86-64.h (NO_UNION_TYPE):
12819 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12820 defining it the same.
12821
128222008-07-10 Chong Yidong <cyd@stupidchicken.com>
12823
12824 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12825
128262008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12827
12828 * fileio.c:
50426a04 12829 * sysdep.c:
aac0c6e3
MR
12830 * systty.h:
12831 * m/ibmrs6000.h:
12832 * m/iris4d.h:
12833 * s/aix4-2.h:
12834 * s/freebsd.h:
12835 * s/gnu-linux.h:
12836 * s/hpux10-20.h:
12837 * s/hpux11.h:
12838 * s/netbsd.h:
12839 * s/sol2-3.h:
12840 * s/sol2-4.h:
12841 * s/sol2.h:
12842 * s/usg5-4.h:
12843 * s/vms.h: Remove references to unused variables.
12844
128452008-07-10 Andreas Schwab <schwab@suse.de>
12846
12847 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12848 pattern before matching the generic family.
12849
128502008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12851
12852 * unexec.c:
12853 * s/vms.h:
12854 * s/usg5-4-2.h:
12855 * s/sol2-5.h:
12856 * s/freebsd.h:
12857 * s/darwin.h: Remove dead code.
12858
12859 * m/template.h:
12860 * m/sparc.h:
12861 * m/mips.h:
12862 * m/m68k.h:
12863 * m/iris4d.h:
12864 * m/intel386.h:
12865 * m/ibms390x.h:
12866 * m/ibms390.h:
12867 * m/ia64.h:
12868 * m/hp800.h:
12869 * m/arm.h:
12870 * m/amdx86-64.h: Remove dead code and references to unused
12871 and compiler defined symbols.
12872
12873 * unexmips.c:
12874 * unexelf.c: Remove references to desupported systems.
12875
12876 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12877
12878 * m/powermac.h: Remove boilerplate comments.
12879 (NO_REMAP): Remove unused definition.
12880
12881 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12882 define them.
12883
128842008-07-10 Kenichi Handa <handa@m17n.org>
12885
12886 * xfont.c (xfont_open): Log the reason of failure.
12887
128882008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * fontset.c (fontset_get_font_group):
12891 * font.c (font_check_otf): Specify argument types.
12892
128932008-07-09 Kenichi Handa <handa@m17n.org>
12894
12895 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12896 non-ASCII char is found.
12897
12898 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12899 (reorder_font_vector): Change the arg preferred_family to font.
12900 Prefer the spec matching with font.
12901 (fontset_get_font_group): New function.
12902 (fontset_find_font): Change the format of an element of a realized
12903 fontset. Use fontset_get_font_group.
12904 (fontset_font): Try the current fontset, the default fontset, the
12905 fallbacks of the current fontset, and the fallbacks of the default
12906 fontset in this order.
12907 (face_for_char): Delete the shortcut to use the current font.
12908 (fontset_from_font): Don't set fonts for Latin in the fontset.
12909
12910 * font.h (font_make_object, font_match_p): Adjust prototypes.
12911
12912 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12913
12914 * font.c (font_make_object): New arg entity and pixelsize.
12915 (font_check_otf_features, font_check_otf): New functions.
12916 (font_match_p): Check :lang, :script, and :otf properties.
12917
12918 * xfont.c (xfont_open): Adjust it for the change of
12919 font_make_object.
12920 (xfont_text_extents): Fix initial setting of metrics.
12921
12922 * ftfont.c (struct ftfont_info): New member index, delete member
12923 fc_charset_idx. Make the member order compatible with struct
12924 xftfont_info.
12925 (fc_charset_table): Change charset names to registry names.
12926 (ftfont_pattern_entity): Delete the args registry and
12927 fc_charset_idx. Change the value of :font-entity property
12928 to (FONTNAME . INDEX). Always set :registry property to
12929 `iso10646-1'.
12930 (struct ftfont_cache_data): New struct.
12931 (ftfont_lookup_cache): New arg for_face.
12932 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12933 (ftfont_driver): Set the member otf_capability.
12934 (ftfont_get_charset): Adjust it for the change of
12935 fc_charset_table.
12936 (OTF_TAG_SYM): New macro.
12937 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12938 for the change of fc_charset_table.
12939 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12940 ftfont_pattern_entity. Add FC_INDEX to objset.
12941 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12942 and ftfont_pattern_entity.
12943 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12944 font_make_object, struct ftfont_info.
12945 (ftfont_has_char): Use ftfont_get_fc_charset.
12946 (ftfont_otf_features, ftfont_otf_capability): New functions.
12947 (ftfont_shape): Use ftfont_get_otf.
12948 (ftfont_text_extents): Fix initial setting of metrics.
12949
12950 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12951 member order compatible with struct ftfont_info.
12952 (xftfont_open): Add FC_CHARSET to the pattern. Set
12953 xftfont_info->ft_size. Don't unlock the face. Check BDF
12954 properties if appropriate.
12955 (xftfont_close): Unlock the face.
12956 (xftfont_anchor_point, xftfont_shape): Deleted.
12957 (syms_of_xftfont): Don't set members anchor_point and shape of
12958 xftfont_driver.
12959
12960 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12961 font_make_object.
12962
12963 * w32font.c (w32font_open): Adjust it for the change of
12964 font_make_object.
12965 (w32font_open_internal): Don't set properties of font_object here.
12966
129672008-07-08 Chong Yidong <cyd@stupidchicken.com>
12968
12969 * macfns.c (x_create_tip_frame):
12970 * w32fns.c (x_create_tip_frame):
12971 * xfns.c (x_create_tip_frame): Pass parameter argument to
12972 face-set-after-frame-default.
12973
12974 * xfaces.c (Finternal_merge_in_global_face): Save merged
12975 attributes for the default face back into the face vector.
12976
129772008-07-08 Andreas Schwab <schwab@suse.de>
12978
12979 * fontset.h: Declare fontset_from_font. Don't declare
12980 new_fontset_from_font and fontset_from_font_name.
12981 * xterm.c: Include "fontset.h".
12982 * Makefile.in (xterm.o): Update dependencies.
12983
129842008-07-08 Glenn Morris <rgm@gnu.org>
12985
12986 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12987 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12988
129892008-07-07 Chong Yidong <cyd@stupidchicken.com>
12990
12991 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12992 (x_set_frame_parameters): Don't bind it.
12993
129942008-07-07 Juanma Barranquero <lekktu@gmail.com>
12995
12996 * w32fns.c (map_w32_filename): Declare extern.
12997
129982008-07-07 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32term.c (WS_EX_LAYERED): Define if not already.
13001
130022008-07-06 Chong Yidong <cyd@stupidchicken.com>
13003
13004 * xfaces.c (set_font_frame_param): Don't try to set the font
13005 parameter if it is still unspecified in the lface.
13006
130072008-07-05 Chong Yidong <cyd@stupidchicken.com>
13008
13009 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13010 face if it didn't already exist.
13011
13012 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13013
130142008-07-05 Andreas Schwab <schwab@suse.de>
13015
13016 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13017
130182008-07-05 Chong Yidong <cyd@stupidchicken.com>
13019
13020 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13021 word-wrapping.
13022 (IT_DISPLAYING_WHITESPACE): New macro.
13023 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13024 when word-wrapping. Simplify word-wrapping logic. Use correct
13025 pixel positions when saving copies of the iterator.
13026 (display_line): Use proper wrap point if the last character on a
13027 line was preceded by whitespace.
13028
130292008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13030
13031 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13032
130332008-07-04 Kenichi Handa <handa@m17n.org>
13034
13035 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13036
13037 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13038
130392008-07-02 Jason Rumney <jasonr@gnu.org>
13040
13041 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13042 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13043
13044 * xdisp.c (next_element_from_display_vector): Move assignment out
13045 of if statement.
13046
130472008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13048
13049 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13050
13051 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13052 (syms_of_fileio): Initialize and export them.
13053 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13054
13055 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13056 (Fsystem_move_file_to_trash): New function.
13057 (syms_of_w32fns): Export it to lisp.
13058
130592008-07-01 Jason Rumney <jasonr@gnu.org>
13060
13061 * w32font.c (w32font_text_extents): Don't count overhang as part
13062 of width.
13063
130642008-06-30 Miles Bader <miles@gnu.org>
13065
13066 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13067 Add `avoid_cursor_p' field.
13068
13069 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13070 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13071 (append_glyph, append_composite_glyph, produce_image_glyph)
13072 (append_stretch_glyph): Initialize avoid_cursor_p.
13073 (get_it_property): Rename from `get_line_height_property'.
13074 (x_produce_glyphs): Use get_it_property.
13075 (handle_line_prefix, push_display_prop): New functions.
13076 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13077 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13078 New variables.
13079 (syms_of_xdisp): Initialize them.
13080
130812008-06-30 Kenichi Handa <handa@m17n.org>
13082
13083 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13084 XftDefaultSubstitute (they are called in XftFontMatch).
13085 (xftfont_open): Fix args to ftfont_font_format.
13086
13087 * ftfont.c (fc_charset_table): New member lang.
13088 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13089 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13090 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13091 (ftfont_open): Fix args to ftfont_font_format.
13092 (ftfont_font_format): New arg filename.
13093
130942008-06-30 Chong Yidong <cyd@stupidchicken.com>
13095
13096 * xfaces.c (Finternal_merge_in_global_face): If default face was
13097 modified, realize it again. Update the font face attribute.
13098
130992008-06-29 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32term.c (x_set_frame_alpha): Fix logic.
13102
131032008-06-29 Kenichi Handa <handa@m17n.org>
13104
13105 * fontset.c (Finternal_char_font): Return font-object instead of
13106 font-name.
13107
13108 * composite.c (get_composition_id): Fix the width calculation for TAB.
13109
131102008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13111
13112 * indent.c (Fvertical_motion): Properly handle float column arg.
13113
131142008-06-28 Jason Rumney <jasonr@gnu.org>
13115
13116 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13117 (pfnSetLayeredWindowAttributes): New function pointer.
13118 (w32_initialize): Initialize it when supported.
13119 (x_set_frame_alpha): New function.
13120
13121 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13122 (w32_frame_parm_handlers): Set alpha handler.
13123
13124 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13125
131262008-06-27 Jason Rumney <jasonr@gnu.org>
13127
13128 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13129 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13130 (w32_to_x_charset, x_to_w32_charset)
13131 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13132 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13133 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13134 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13135 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13136 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13137 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13138 (Qw32_charset_unicode): Remove.
13139 (syms_of_w32fns): Update for above changes.
13140
13141 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13142 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13143 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13144 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13145 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13146 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13147 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13148 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13149 (syms_of_w32font): Update for above changes.
13150
131512008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13152
13153 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13154 removed #if.
13155 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13156
131572008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13158 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13159
13160 * makefile.w32-in (LOCAL_FLAGS):
13161 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13162
13163 * sysdep.c (_spawnlp, _getpid):
13164 Declare with explicit _cdecl instead of _CRTAPI1.
13165
13166 * editfns.c (Fget_internal_run_time):
13167 Check for WINDOWSNT with #ifdef, not #if.
13168
131692008-06-26 Jason Rumney <jasonr@gnu.org>
13170
13171 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13172
13173 * w32term.c (x_draw_glyph_string_foreground)
13174 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13175 Use FONT_HANDLE macro.
13176 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13177
13178 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13179 (uniscribe_encode_char): Use FONT_HANDLE macro.
13180
13181 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13182 (w32font_text_extents): Use precast w32_font.
13183 (w32font_close): Free cached metrics.
13184 (w32font_open_internal): Allocate space for name on stack.
13185
131862008-06-26 Chong Yidong <cyd@stupidchicken.com>
13187
13188 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13189
131902008-06-26 Jason Rumney <jasonr@gnu.org>
13191
13192 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13193 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13194
131952008-06-26 Juanma Barranquero <lekktu@gmail.com>
13196
13197 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13198
131992008-06-26 Jason Rumney <jasonr@gnu.org>
13200
13201 * w32bdf.c, w32bdf.h: Remove obsolete files.
13202
13203 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13204
13205 * w32gui.h: Don't include w32bdf.h.
13206 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13207 Remove obsolete font support.
13208
13209 * w32font.h (struct w32font_info): Remove compat_w32_font.
13210 Add hfont member.
13211 (FONT_COMPAT): Remove obsolete macro.
13212
13213 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13214 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13215 (w32font_open_internal): Remove compat code. Set new hfont member.
13216 (Fx_select_font): Use new hfont member.
13217
13218 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13219 (uniscribe_encode_char): Use new hfont member.
13220
13221 * w32term.c (x_draw_glyph_string_foreground)
13222 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13223 (x_draw_glyph_string): Use metrics in w32font_info.
13224
132252008-06-26 Kenichi Handa <handa@m17n.org>
13226
13227 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13228
132292008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13230
13231 * unexnext.c:
13232 * m/ews4800.h:
13233 * m/hp9000s300.h:
13234 * m/ibm370aix.h:
13235 * m/mips-siemens.h:
13236 * m/ncr386.h:
13237 * m/next.h:
13238 * m/pmax.h:
13239 * m/powerpcle.h:
13240 * m/tandem-s2.h:
13241 * s/386bsd.h:
13242 * s/bsd386.h:
13243 * s/bsd4-1.h:
13244 * s/bsd4-2.h:
13245 * s/bsdos2-1.h:
13246 * s/bsdos2.h:
13247 * s/bsdos3.h:
13248 * s/bsdos4.h:
13249 * s/nextstep.h:
13250 * s/ultrix4-3.h:
13251 * s/usg5-0.h:
13252 * s/usg5-2-2.h:
13253 * s/usg5-2.h:
13254 * s/usg5-4-3.h:
13255 * s/ux4800.h:
13256 * s/uxpds.h:
13257 * s/uxpv.h: Remove support for obsolete systems.
13258 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13259 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13260 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13261 Remove, insert contents in s/aix4-2.h.
13262 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13263 * s/bsd4-3.h: Rename to ...
13264 * s/bsd-common.h: ... this.
13265 * data.c:
13266 * doc.c:
13267 * ecrt0.c:
13268 * emacs.c:
13269 * fileio.c:
13270 * floatfns.c:
13271 * keyboard.c:
13272 * mem-limits.h:
13273 * print.c:
13274 * process.c:
13275 * sysdep.c:
13276 * syssignal.h:
13277 * systty.h:
13278 * syswait.h:
13279 * term.c:
13280 * unexec.c:
13281 * unexelf.c:
13282 * unexhp9k800.c:
13283 * m/hp800.h:
13284 * m/ibmrs6000.h:
13285 * m/mips.h:
13286 * m/vax.h:
13287 * s/darwin.h:
13288 * s/freebsd.h:
13289 * s/gnu.h:
13290 * s/ms-w32.h:
13291 * s/msdos.h:
13292 * s/netbsd.h:
13293 * s/template.h: Remove references to obsolete variables.
13294
13295 * Makefile.in: Add dependencies for all unexec files.
13296 (admindir): Remove unused variable.
13297 (UNEXEC_SRC): Remove references.
13298
132992008-06-25 Chong Yidong <cyd@stupidchicken.com>
13300
13301 * xfns.c (x_default_font_parameter): If Xft is available, first
13302 try Monospace-12 for the default font.
13303
133042008-06-25 Jason Rumney <jasonr@gnu.org>
13305
13306 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13307
133082008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13309
13310 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13311
13312 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13313
133142008-06-25 Juanma Barranquero <lekktu@gmail.com>
13315
13316 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13317 <scroll-conservatively>: Fix typo in docstring.
13318
13319 * xselect.c (Fx_send_client_event): Doc fix.
13320
133212008-06-25 Kenichi Handa <handa@m17n.org>
13322
13323 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13324
13325 * font.c (font_parse_fcname): Remove unused variables.
13326 (font_sort_entites): Delete the arg SPEC. Caller changed.
13327 Fix for the case of ! best_only.
13328 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13329
13330 * lisp.h (Fstring_to_unibyte): EXFUN it.
13331
13332 * character.h (str_to_unibyte): Extern it.
13333
13334 * character.c (str_to_unibyte): New function.
13335
13336 * fns.c (Fstring_to_unibyte): New function.
13337 (syms_of_fns): Defsubr it.
13338
133392008-06-24 Kenichi Handa <handa@m17n.org>
13340
13341 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13342 DPI too.
13343 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13344
133452008-06-24 Andreas Schwab <schwab@suse.de>
13346
13347 * Makefile.in (${lispsource}loaddefs.el): Rename from
13348 ../lisp/loaddefs.el.
13349 (bootstrap-clean): Do what distclean does but don't remove
13350 Makefile.
13351 (distclean): Depend on bootstrap-clean and remove Makefile.
13352
133532008-06-24 Chong Yidong <cyd@stupidchicken.com>
13354
13355 * buffer.h (struct buffer): New member word_wrap.
13356
13357 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13358 word-wrap.
13359 (init_buffer_once): Initialize them.
13360
13361 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13362 line_wrap enum possessing three possible values.
13363
13364 * termopts.h: Replace truncate_partial_width_windows with
13365 Vtruncate_partial_width_windows.
13366
13367 * dispnew.c (direct_output_for_insert): Avoid direct output when
13368 inserting a space with word wrap on.
13369
13370 * indent.c (compute_motion): Obey integer values of
13371 truncate-partial-width-windows.
13372
13373 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13374 replacing truncate_partial_width_windows.
13375 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13376 truncate only if the window width is below that integer.
13377 (start_display, resize_mini_window, produce_stretch_glyph)
13378 (display_string, move_it_in_display_line_to): Use line_wrap.
13379 (back_to_previous_visible_line_start, reseat_1): Reset
13380 string_from_display_prop_p.
13381 (display_line): Extend default face to end of line when wrapping.
13382
133832008-06-24 Kim F. Storm <storm@cua.dk>
13384
13385 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13386 to wrap continued lines at word boundaries.
13387
133882008-06-24 Jason Rumney <jasonr@gnu.org>
13389
13390 * font.c (Ffont_face_attributes): Multiply pixel size before point
13391 conversion to avoid multiplying rounding error.
13392
133932008-06-23 Jason Rumney <jasonr@gnu.org>
13394
13395 * w32term.c (x_draw_glyph_string_background)
13396 (x_draw_glyph_string): Remove old bdf font code.
13397
13398 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13399
134002008-06-22 Kenichi Handa <handa@m17n.org>
13401
13402 * font.c (font_find_for_lface): Try the adstyle specified in
13403 the property of LFACE_FONT of LFACE (if any).
13404
134052008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13406 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13407
13408 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13409
134102008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13411
13412 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13413 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13414 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13415 (witness-emacs): Remove.
13416 (lisp, shortlisp): Move loaddefs.el earlier.
13417 (mostlyclean): Forget about witness-emacs.
13418
134192008-06-22 Glenn Morris <rgm@gnu.org>
13420
13421 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13422 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13423
134242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13425
13426 * Makefile.in (PRECOMP): Remove.
13427 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13428 (witness-emacs): Run `compile-first'.
13429 (.el.elc): Use the new compile-onefile target.
13430
134312008-06-21 Kenichi Handa <handa@m17n.org>
13432
13433 * xftfont.c (xftfont_open): Handle QCembolden only when
13434 FC_EMBOLDEN is defined.
13435
134362008-06-21 Andreas Schwab <schwab@suse.de>
13437
13438 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13439 (.el.elc): Likewise.
13440
134412008-06-21 Miles Bader <miles@gnu.org>
13442
13443 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13444 build dir, not the lisp source dir.
13445
134462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13447
13448 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13449 (bootstrapclean): Remove.
13450 (.el.elc): New rule.
13451 (PRECOMP): New var.
13452 (../lisp/subdirs.el): Remove.
13453 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13454 (witness-emacs): New target.
13455 (mostlyclean): Remove witness-emacs as well.
13456 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13457 Add witness-emacs dependency.
13458
134592008-06-20 Chong Yidong <cyd@stupidchicken.com>
13460
13461 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13462 defined by the font.
13463
134642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13467 (bootstrap-clean): New target that keeps TAGS around.
13468 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13469 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13470
134712008-06-20 Jason Rumney <jasonr@gnu.org>
13472
13473 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13474 Remove obsolete font code.
13475
13476 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13477 to determine language support.
13478
134792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13480
13481 * sysdep.c (cfsetspeed): New fun extracted from the code.
13482 (cfmakeraw): Move before first use.
13483
134842008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13485
13486 * sysdep.c (cfmakeraw): Provide fallback implementation.
13487 (serial_configure): Provide fallback implementation of cfsetspeed.
13488
134892008-06-20 Kenichi Handa <handa@m17n.org>
13490
13491 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13492 the pattern.
13493
13494 * fontset.c (fontset_from_font): Copy font_spec before changing
13495 the elements.
13496
13497 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13498
134992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13500
13501 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13502 for explicit `font' parameters.
13503
13504 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13505
135062008-06-19 Kenichi Handa <handa@m17n.org>
13507
13508 * frame.c: Include <ctype.h>.
13509 (x_set_font_backend): Allow spacing characters in the X resource
13510 for FontBackend.
13511
135122008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13513
13514 * w32fns.c, xfns.c (Qfont_param): New var.
13515 (syms_of_w32fns): Initialize it.
13516 (x_default_font_parameter): Record explicit `font' into
13517 `font-parameter'.
13518
135192008-06-18 Kenichi Handa <handa@m17n.org>
13520
13521 * font.c (font_parse_xlfd): Fix previous change.
13522 (font_parse_fcname): Don't use :fc-unknown-spec.
13523 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13524 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13525 (font_add_log): Prepend the driver name to the resulting fonts.
13526
13527 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13528 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13529 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13530
13531 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13532 (QCembolden): New variables.
13533 (syms_of_xftfont): DEFSYM them.
13534 (xftfont_open): Call XftFontMatch. Don't trust the result of
13535 XftTextExtents8 if the pixel_size is less than 5.
13536
135372008-06-18 Andreas Schwab <schwab@suse.de>
13538
13539 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13540 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13541
135422008-06-18 Jason Rumney <jasonr@gnu.org>
13543
13544 * w32font.c (w32font_list, w32font_match): Add logging.
13545
13546 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13547
135482008-06-17 Chong Yidong <cyd@stupidchicken.com>
13549
13550 * font.c (font_parse_fcname): Store divider characters for
13551 unknown-spec list. For known key symbols, intern using correct
13552 symbol name.
13553
135542008-06-17 Kenichi Handa <handa@m17n.org>
13555
13556 * xfaces.c (realize_default_face): If the frame is not on window
13557 system, set the fontset of face to nil.
13558
135592008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13560
13561 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13562
135632008-06-16 Juanma Barranquero <lekktu@gmail.com>
13564
13565 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13566 (build_font_name_from_vector): Delete externs.
13567
13568 * xfaces.c (struct font_name): Don't declare.
13569
135702008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13571
13572 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13573
135742008-06-16 Chong Yidong <cyd@stupidchicken.com>
13575
13576 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13577
135782008-06-16 Juanma Barranquero <lekktu@gmail.com>
13579
13580 * font.c (Ffont_spec): Fix usage in docstring.
13581 (Ffont_face_attributes): Doc fix.
13582
135832008-06-16 Andreas Schwab <schwab@suse.de>
13584
13585 * font.c (Ffont_face_attributes): Fix definition.
13586
135872008-06-16 Jason Rumney <jasonr@gnu.org>
13588
13589 * font.h (font_style_symbolic_from_value): Remove.
13590
13591 * font.c (font_style_symbolic_from_value): Remove.
13592 (font_style_symbolic): Revert to pre 2008-06-13 version.
13593
13594 * w32font.c (w32_to_fc_weight): New function.
13595 (w32font_full_name, logfont_to_fcname): Use it.
13596
135972008-06-16 Kenichi Handa <handa@m17n.org>
13598
13599 * font.c (font_check_object): Delete it.
13600 (font_clear_cache): Check if a font-object is alive.
13601 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13602 font-object to nil.
13603 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13604 (font_at): Don't call font_check_object.
13605 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13606
136072008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13608
13609 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13610
136112008-06-16 Chong Yidong <cyd@stupidchicken.com>
13612
13613 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13614
136152008-06-15 Chong Yidong <cyd@stupidchicken.com>
13616
13617 * font.c (font_parse_fcname): Only one decimal point.
13618 (font_unparse_fcname): Handle data in family and foundry indices
13619 as symbols, not strings.
13620 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13621
13622 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13623
13624 * font.h (font_unparse_gtkname): Add prototype.
13625
136262008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13627
13628 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13629
136302008-06-15 Andreas Schwab <schwab@suse.de>
13631
13632 * font.c (font_update_drivers): Fix crash when no drivers match.
13633
136342008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13635
13636 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13637 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13638
136392008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13640
13641 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13642
136432008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13644
13645 * process.c (Fserial_process_configure, Fprocess_send_eof):
13646 Use EQ to compare Lisp_Objects.
13647
136482008-06-13 Jason Rumney <jasonr@gnu.org>
13649
13650 * w32fns.c (Fw32_select_font): Remove old font API function.
13651
13652 * w32font.c (logfont_to_fcname): New function.
13653 (Fx_select_font): New font dialog function compatible with
13654 GTK/fontconfig version.
13655
13656 * font.c (font_style_symbolic_from_value): New function.
13657 (font_style_symbolic): Use it.
13658
13659 * font.h (font_style_symbolic_from_value): Declare new function.
13660
136612008-06-13 Juanma Barranquero <lekktu@gmail.com>
13662
13663 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13664 <font-width-table>: Fix typos in docstrings.
13665
136662008-06-13 Daniel Engeler <engeler@gmail.com>
13667
13668 These changes add serial port access.
13669 * process.c: Add HAVE_SERIAL.
13670 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13671 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13672 (list_processes_1, select_wrapper, Fstop_process)
13673 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13674 (status_notify): Modify to handle serial processes.
13675 [HAVE_SERIAL] (Fserial_process_configure)
13676 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13677 New functions.
13678 * process.h (struct Lisp_Process): Add `type'.
13679 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13680 New functions.
13681 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13682 serial ports.
b71ac3dd 13683 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13684 * w32.h: Add FILE_SERIAL.
13685 (struct _child_process): Add ovl_read, ovl_write.
13686
136872008-06-13 Kenichi Handa <handa@m17n.org>
13688
13689 * dispextern.h (enum lface_attribute_index): New member
13690 LFACE_FOUNDRY_INDEX.
13691
13692 * font.c (font_score): Delete arg alternate_families. Check only
13693 weight, slant, width, and size. Ignore the difference of alias
13694 style symbols.
13695 (font_sort_entites): Adjust for the above change. Reflect the
13696 order of font-driver to scores.
13697 (font_list_entities): Don't check alternate_familes here.
13698 (font_clear_prop): Handle foundry.
13699 (font_update_lface): Don't parse "foundry-family" form here.
13700 Handle FONT_FOUNDRY_INDEX.
13701 (font_find_for_lface): Likewise. Handle alternate families here.
13702 If registry is nil, try iso8859-1 and ascii-0.
13703 (font_open_for_lface): Pay attention to size in ENTITY.
13704 (font_open_by_name): Simplify by calling font_load_for_lface.
13705 (free_font_driver_list): Delete it.
13706 (font_update_drivers): Preserve the order of backends.
13707 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13708 of font_score and font_sort_entites.
13709 (font_update_sort_order): Likewise.
13710
13711 * xfaces.c (LFACE_FOUNDRY): New macro.
13712 (check_lface_attrs): Check foundry.
13713 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13714 (merge_face_vectors): Check foundry.
13715 (merge_face_ref): Likewise.
13716 (Finternal_set_lisp_face_attribute): Likewise.
13717 (x_update_menu_appearance): Likewise.
13718 (Finternal_get_lisp_face_attribute): Likewise.
13719 (lface_hash): Likewise.
13720 (lface_same_font_attributes_p): Likewise.
13721 (x_supports_face_attributes_p): Likewise.
13722 (tty_supports_face_attributes_p): Likewise.
13723 (Finternal_set_alternative_font_family_alist): Intern strings.
13724 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13725 (realize_default_face): Set LFACE_FOUNDRY (lface).
13726
13727 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13728 font-driver at first.
13729
13730 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13731
137322008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13733
13734 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13735
137362008-06-12 Jim Meyering <meyering@redhat.com>
13737
13738 Make unexec_free handle NULL the same way free does.
13739 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13740
137412008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13742
13743 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13744 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13745 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13746 (WEAK_ALIAS): Simplify.
13747 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13748 when searching a unibyte buffer.
13749
137502008-06-12 Chong Yidong <cyd@stupidchicken.com>
13751
13752 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13753
137542008-06-12 Juanma Barranquero <lekktu@gmail.com>
13755
13756 * w32font.c: Include ctype.h.
13757
137582008-06-11 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13761 misreported as space.
13762 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13763 as aliases for registry iso10646-1.
13764
137652008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13766
13767 * buffer.c (clone_per_buffer_values): Skip `name'.
13768
137692008-06-11 Chong Yidong <cyd@stupidchicken.com>
13770
13771 * font.c (font_parse_fcname): Fix last change; accept decimal
13772 points in font size.
13773
137742008-06-10 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32uniscribe.c (add_opentype_font_name_to_list):
13777 Skip non unicode fonts.
13778
137792008-06-10 Chong Yidong <cyd@stupidchicken.com>
13780
13781 * xfns.c (Fx_font_dialog): New function.
13782
13783 * gtkutil.c (xg_dialog_response_cb): Rename from
13784 xg_file_response_callback.
13785 (pop_down_dialog): Rename from pop_down_file_dialog.
13786 (xg_get_file_name): Callers changed.
13787 (xg_get_font_name): New function.
13788
13789 * gtkutil.h (xg_get_font_name): Insert prototype.
13790
137912008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13792
13793 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13794 x_underline_minimum_display_offset.
13795 (syms_of_xdisp): Declare it here rather than in xterm.c.
13796 * dispextern.h (underline_minimum_offset): Declare it.
13797 * w32term.c (x_draw_glyph_string): Use it.
13798 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13799 (syms_of_xterm): Don't declare it any more.
13800 (x_draw_glyph_string): Adjust to the new name.
13801
8719abec 138022008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13803
13804 * xterm.c (x_underline_minimum_display_offset): New var.
13805 (x_draw_glyph_string): Use it.
13806 (syms_of_xterm): Declare it.
13807
138082008-06-10 Chong Yidong <cyd@stupidchicken.com>
13809
13810 * font.c (font_parse_fcname): Accept GTK-style font names too.
13811
138122008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13813
13814 * dired.c (file_name_completion): Don't return t if the match is exact
13815 but with different capitalization.
13816 * minibuf.c (Ftry_completion): Simplify.
13817
13818 * window.c (Vwindow_point_insertion_type): New var.
13819 (set_window_buffer): Use it.
13820 (syms_of_window): Init and export it to Lisp.
13821
138222008-06-10 Kenichi Handa <handa@m17n.org>
13823
13824 * font.h (font_intern_prop): Prototype adjusted.
13825
13826 * font.c (font_intern_prop): New arg force_symbol.
13827 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13828 Adjust for the change of font_intern_prop.
13829
13830 * ftfont.c (ftfont_pattern_entity):
13831 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13832 (w32_registry):
13833 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13834 the change of font_intern_prop.
13835
138362008-06-09 Juanma Barranquero <lekktu@gmail.com>
13837
13838 * w32menu.c (digest_single_submenu): Declare extern.
13839
138402008-06-09 Jason Rumney <jasonr@gnu.org>
13841
13842 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13843
13844 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13845 (parse_single_submenu): Remove.
13846 (digest_single_submenu): Remove.
13847 (syms_of_w32menu): Don't initialise variables that have moved
13848 to menu.c.
13849 (set_frame_menubar): Sync with version in xmenu.c.
13850 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13851
13852 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13853 Make static again.
13854
138552008-06-09 Jason Rumney <jasonr@gnu.org>
13856
13857 Changes to w32 files related to the move of common menu code
13858 to menu.c on 2008-06-08 by Chong Yidong.
13859
13860 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13861 defs to w32gui.h.
13862 (single_keymap_panes, push_menu_item, push_menu_pane):
13863 Make globally visible.
13864
13865 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13866 (local_free, malloc_widget_value, free_widget_value)
13867 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13868 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13869 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13870 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13871 (menu_items, menu_items_allocated, menu_items_used)
13872 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13873 (init_menu_items, finish_menu_items, discard_menu_items)
13874 (grow_menu_items, push_submenu_start, push_submenu_end)
13875 (push_left_right_boundary, push_menu_pane, push_menu_item)
13876 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13877 (free_menubar_widget_tree_value, parse_single_submenu)
13878 (update_submenu_strings): Remove functions.
13879 (xmalloc_widget_value): Remove and declare extern.
13880
13881 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13882 (OBJ1): Build it.
13883
13884 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13885 (local_heap, local_alloc, local_free, malloc_widget_value)
13886 (free_widget_value): Define here.
13887
138882008-06-09 Kenichi Handa <handa@m17n.org>
13889
13890 * font.h (Qascii_0): Extern it.
13891
13892 * font.c (Qascii_0): New variable.
13893 (syms_of_font): DEFSYM it.
13894 (font_open_by_name): If the registry "iso8859-1" fails, try also
13895 "ascii-0".
13896
13897 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13898
138992008-06-08 Kenichi Handa <handa@m17n.org>
13900
13901 * .gdbinit (xfont): New command.
13902
139032008-06-08 Andreas Schwab <schwab@suse.de>
13904
13905 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13906 * Makefile.in (menu.o): Update dependencies.
13907
13908 * Makefile.in (obj): Always add menu.o.
13909 * emacs.c (main): Always call syms_of_menu.
13910 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13911
139122008-06-08 Chong Yidong <cyd@stupidchicken.com>
13913
13914 * Makefile.in: Compile menu.c.
13915
13916 * lisp.h: Declare syms_of_menu.
13917
13918 * emacs.c (main): Call syms_of_menu.
13919
13920 * keyboard.h: Relocate platform-independent menu definitions from
13921 xmenu.c.
13922
13923 * menu.c: New file. Relocate platform-independent menu
13924 definitions from xmenu.c. Suggested by Adrian Robert.
13925
13926 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13927 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13928 (menu_items_used, menu_items_n_panes)
13929 (menu_items_submenu_depth): Move to keyboard.h.
13930 (init_menu_items, finish_menu_items, unuse_menu_items)
13931 (discard_menu_items, restore_menu_items, save_menu_items)
13932 (grow_menu_items, push_submenu_start, push_submenu_end)
13933 (push_left_right_boundary, push_menu_pane, push_menu_item)
13934 (keymap_panes, single_keymap_panes, single_menu_item)
13935 (list_of_panes, list_of_items, find_and_call_menu_selection)
13936 (xmalloc_widget_value, free_menubar_widget_value_tree)
13937 (parse_single_submenu, digest_single_submenu)
13938 (update_submenu_strings): Move to menu.c.
13939
139402008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13941
13942 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13943
139442008-06-06 Miles Bader <miles@gnu.org>
13945
13946 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13947 face, not frame default.
13948
139492008-06-05 Martin Rudalics <rudalics@gmx.at>
13950
13951 * window.c (pop_up_windows, pop_up_frames)
13952 (display_buffer_reuse_frames, Vpop_up_frame_function)
13953 (Vdisplay_buffer_function, Veven_window_heights)
13954 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13955 (Vspecial_display_function, Vsame_window_buffer_names)
13956 (Vsame_window_regexps, split_height_threshold)
13957 (Vsplit_window_preferred_function): Move those vars to window.el.
13958 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13959 (Fdisplay_buffer): Move those functions to window.el.
13960 (syms_of_window): Remove corresponding declarations.
13961 (display_buffer): New function.
13962 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13963 * dispnew.c (Flast_nonminibuf_frame): New function.
13964 * buffer.c (Fpop_to_buffer): Move to window.el.
13965
139662008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13967
13968 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13969
139702008-06-05 Kenichi Handa <handa@m17n.org>
13971
13972 * coding.c (detect_coding): Fix previous change.
13973 (detect_coding_system): Likewise.
13974
139752008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13976
13977 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13978
13979 * keymap.c (Vminibuffer_local_filename_must_match_map):
13980 Rename from Vminibuffer_local_must_match_filename_map.
13981 (syms_of_keymap):
13982 * minibuf.c (Fcompleting_read): Adjust accordingly.
13983 * commands.h: Rename declaration as well.
13984
139852008-06-05 Kenichi Handa <handa@m17n.org>
13986
13987 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13988 family name.
13989 (Ffont_put): Likewise.
13990
13991 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13992 current font-spec.
13993
13994 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13995 is unspecified.
13996
13997 * xfaces.c (realize_x_face): If the font-related face attributes
13998 are the same as those of default face, realize a new fontset from
13999 default->fontset.
14000 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14001
140022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14003
14004 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14005 (move_it_in_display_line): New wrapper.
14006
14007 * window.c (window_scroll_pixel_based_preserve_x)
14008 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14009 (window_scroll_pixel_based, window_scroll_line_based):
14010 Use them to preserve column positions.
14011 (syms_of_window): Initialize them.
14012
14013 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14014 (HPOS . VPOS) pair.
14015
14016 * dispextern.h (move_it_in_display_line): Declare.
14017
140182008-06-05 Juanma Barranquero <lekktu@gmail.com>
14019
14020 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14021 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14022 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14023
140242008-06-04 Juanma Barranquero <lekktu@gmail.com>
14025
14026 * window.c (Fset_window_parameter): Doc fix.
14027 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14028
140292008-06-04 Joakim Verona <joakim@verona.se>
14030
14031 * window.h (struct window): Add new member window_parameters.
14032
14033 * window.c (Fwindow_parameters, Fwindow_parameter)
14034 (Fset_window_parameter): New defuns.
14035 (syms_of_window): Defsubr the new defuns.
14036 (make_window): Initialize window_parameters to nil.
14037
140382008-06-04 John Paul Wallington <jpw@pobox.com>
14039
14040 * eval.c (Fdefmacro): Doc fix.
14041
140422008-06-04 Kenichi Handa <handa@m17n.org>
14043
14044 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14045 Be sure to call setup_coding_system when we find a proper coding system.
14046 (detect_coding_system): Fix handling of coding->head_ascii.
14047
140482008-06-03 Andreas Schwab <schwab@suse.de>
14049
14050 * font.c (font_prop_validate_spacing): Fix last change.
14051
140522008-06-03 Kenichi Handa <handa@m17n.org>
14053
14054 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14055 (font_parse_fcname): Fix handling of unknown key.
14056
14057 * xfont.c (xfont_list): Try an alias.
14058
14059 * charset.c (char_charset): Return NULL if the arg charset_list is
14060 specified and C doesn't belong to any of them.
14061
140622008-06-02 Chip Coldwell <coldwell@redhat.com>
14063
14064 * font.c (font_pixel_size): Don't take cdr of an integer.
14065
140662008-06-02 Jim Meyering <meyering@redhat.com>
14067
14068 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14069 * alloc.c (xfree): Return right away for a NULL arg.
14070 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14071 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14072 * mac.c (create_apple_event_from_event_ref): Likewise.
14073 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14074 Likewise.
14075 * doprnt.c (doprnt1): Likewise.
14076 * frame.c (frame): Likewise.
14077 * keyboard.c (wipe_kboard): Likewise.
14078 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14079 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14080 * term.c (tty_default_color_capabilities, maybe_fatal)
14081 (delete_tty): Likewise.
14082 * w16select.c (string): Likewise.
14083 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14084 * w32bdf.c (w32_free_bdf_font): Likewise.
14085 * w32fns.c (w32_unload_font): Likewise.
14086 * w32font.c (w32font_close): Likewise.
14087 * window.c (size_window): Likewise.
14088 * xselect.c (receive_incremental_selection): Likewise.
14089 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14090 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14091 * w32.c (stat): Likewise.
14092
14093 Remove useless if-before-free tests.
14094 * editfns.c (Fset_time_zone_rule): Likewise.
14095 * lread.c (nosuffix): Likewise.
14096 * ralloc.c (get_bloc): Likewise.
14097 * regex.c (reg_free): Likewise.
14098 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14099 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14100 * xsmfns.c (smc_save_yourself_CB): Likewise.
14101
141022008-06-02 Kenichi Handa <handa@m17n.org>
14103
14104 * font.c (font_find_for_lface): Handle float font size.
14105 (font_open_for_lface): Likewise.
14106
14107 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14108 comparing the properties.
14109
141102008-06-01 Jason Rumney <jasonr@gnu.org>
14111
14112 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14113 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14114 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14115 Don't add empty script list.
14116 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14117
141182008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14119
14120 * Makefile.in (dot, dotdot): Remove, update users.
14121 ".." has been used elsewhere in the file for a long time.
14122 (LIBXT_STATIC): Remove conditional based on unused variable.
14123
141242008-06-01 Miles Bader <miles@gnu.org>
14125
14126 * xfaces.c (Vface_remapping_alist): New variable.
14127 (syms_of_xfaces): Initialize it.
14128 (enum named_merge_point_kind): New type.
14129 (struct named_merge_point): Add `named_merge_point_kind' field.
14130 (push_named_merge_point): Make cycle detection respect different
14131 named-merge-point kinds.
14132 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14133 Remove face-name alias resolution.
14134 (lface_from_face_name): New definition using
14135 `lface_from_face_name_no_resolve'.
14136 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14137 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14138 (get_lface_attributes): New definition that layers face-remapping on
14139 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14140 (lookup_basic_face): New function.
14141 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14142 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14143 `get_lface_attributes'.
14144 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14145 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14146 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14147
14148 * xdisp.c (init_iterator): Pass base_face_id through
14149 `lookup_basic_face' when we actually use it as a face-id.
14150 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14151 DEFAULT_FACE_ID.
14152
14153 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14154 lookup the initial face-id.
14155
14156 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14157
141582008-06-01 Juanma Barranquero <lekktu@gmail.com>
14159
14160 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14161 (Fremove_text_properties): Fix typos in docstrings.
14162
141632008-05-31 Kenichi Handa <handa@m17n.org>
14164
14165 * font.c (font_list_entities): Fix the car part of data to be
14166 stored in the cache.
14167
14168 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14169
141702008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14171
14172 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14173 Add a `test' argument so another predicate than `equal' can be used.
14174 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14175 (map_char_table): Remove unused vars `c' and `i'.
14176 * lisp.h (Foptimize_char_table): Adjust declaration.
14177 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14178
141792008-05-30 Kenichi Handa <handa@m17n.org>
14180
14181 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14182 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14183 defined.
14184
141852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14186
14187 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14188 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14189 frame-local settings for the same variable.
14190
141912008-05-30 Kenichi Handa <handa@m17n.org>
14192
14193 * fontset.c (Ffont_info): Move to font.c.
14194 (syms_of_fontset): Delete defsubr of Sfont_info.
14195
14196 * font.c (font_style_to_value, font_score): Delete casting of the
14197 args to xstcasecmp.
14198 (register_font_driver): Increment num_font_drivers only when
14199 registering the driver globally.
14200 (Ffont_info): Move from fontset.c. Handle a font object too.
14201 (syms_of_font): Defsubr Sfont_info.
14202
142032008-05-29 Kenichi Handa <handa@m17n.org>
14204
14205 * coding.h (enum define_coding_utf8_arg_index): New enum.
14206 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14207 coding_attr_utf_bom.
14208 (enum utf_bom_type): Rename from utf_16_bom_type.
14209 (struct utf_16_spec): Adjust for the above change.
14210 (struct coding_system): Add utf_8_bom in `spec' union.
14211
14212 * coding.c (CODING_UTF_8_BOM): New macro.
14213 (enum coding_category): Delete coding_category_utf_8, add
14214 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14215 coding_category_utf_8_sig.
14216 (CATEGORY_MASK_UTF_8): Delete it.
14217 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14218 (CATEGORY_MASK_UTF_8_SIG): New macros.
14219 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14220 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14221 CATEGORY_MASK_UTF_8_SIG.
14222 (CATEGORY_MASK_UTF_8): New macro.
14223 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14224 (detect_coding_utf_8): Check BOM.
14225 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14226 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14227 (encode_coding_utf_16): Likewise.
14228 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14229 (detect_coding, detect_coding_system): Handle utf-8-auto.
14230 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14231 (syms_of_coding): Fix setting up of Vcoding_category_table.
14232
142332008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14234
14235 * process.c (Faccept_process_output): If `millisec' is non-nil,
14236 `seconds' default to 0.
14237 (wait_reading_process_output): Also return non-nil if we read output
14238 from a non-running process.
14239
142402008-05-29 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14243 `raster' specified.
14244 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14245 in the uniscribe backend, but disallow any font that has no
14246 unicode subrange support.
14247
142482008-05-29 Juanma Barranquero <lekktu@gmail.com>
14249
14250 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14251 Fix typos in docstrings.
14252
142532008-05-29 Kenichi Handa <handa@m17n.org>
14254
14255 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14256 (Fx_family_fonts): Set frame correctly.
14257
142582008-05-28 Jason Rumney <jasonr@gnu.org>
14259
14260 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14261
142622008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14265 calling build_annotations.
14266
142672008-05-28 Juanma Barranquero <lekktu@gmail.com>
14268
14269 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14270 (Fencode_coding_string):
14271 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14272 <latin-extra-code-table>: Fix typos in docstrings.
14273 (syms_of_coding) <coding-system-alist>: Doc fix.
14274 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14275
142762008-05-28 Kenichi Handa <handa@m17n.org>
14277
14278 * fontset.c (Ffont_info): Don't call font_close_object.
14279
14280 * font.c (font_parse_family_registry): Use Ffont_put to validate
14281 foundry and family.
14282 (font_delete_unmatched): Don't check spacing.
14283 (font_list_entities): Add spacing to the spec to list fonts.
14284
14285 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14286 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14287
14288 * coding.c (encode_coding_raw_text): Fix previous change.
14289 (encode_coding_object): When the dst_object is a buffer and is
14290 different from src_object, move gap to PT.
14291
142922008-05-27 Chong Yidong <cyd@stupidchicken.com>
14293
14294 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14295
142962008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14297
14298 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14299 all branches. Compute it differently.
14300
14301 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14302
143032008-05-27 Juanma Barranquero <lekktu@gmail.com>
14304
14305 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14306 into "else if () ... else ...".
14307
143082008-05-27 Jason Rumney <jasonr@gnu.org>
14309
14310 * w32font.c (w32font_open_internal): Determine if glyph indices
14311 are likely to work here.
14312
143132008-05-27 Chong Yidong <cyd@stupidchicken.com>
14314
14315 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14316 draw overlap glyphs with appropriate highlighting.
14317
143182008-05-27 Kenichi Handa <handa@m17n.org>
14319
14320 * xfont.c (xfont_open): Fix calculation of font->average_width.
14321
143222008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14323
14324 * casefiddle.c (casify_object): Try to guess better whether the
14325 argument is a byte or a char.
14326
143272008-05-26 Andreas Schwab <schwab@suse.de>
14328
14329 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14330 Always send multiples of format size.
14331
14332 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14333
143342008-05-26 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14337 (compute_metrics): Don't set failure if we just cleared the cache.
14338 (w32_weight_table): Remove unused variable.
14339 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14340 backwards compatibility.
14341
143422008-05-25 Kenichi Handa <handa@m17n.org>
14343
14344 * w32term.c (x_draw_glyph_string):
14345 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14346
14347 * xfaces.c: Delete unused function prototypes.
14348 (xstrlwr, font_frame): Delete them.
14349 (clear_face_cache): Delete unused variable.
14350
14351 * xftfont.c (xftfont_open): Delete unused variable.
14352 If underline_thickness is not 1, adjust underline_position.
14353
14354 * ftxfont.c (ftxfont_open): Delete unused variable.
14355
14356 * fontset.c (face_for_char): Optimize for the case of no charset
14357 property.
14358
14359 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14360 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14361 (otf_open, font_otf_capability, generate_otf_features)
14362 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14363 Comment out by surrounding "#if 0" and "#endif" for the moment.
14364 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14365 (syms_of_font): Codes for accessing above commented out.
14366
143672008-05-24 Eli Zaretskii <eliz@gnu.org>
14368
14369 * w32proc.c: Include dispextern.h.
14370
14371 * w32.c: Include dispextern.h.
14372
143732008-05-23 Juanma Barranquero <lekktu@gmail.com>
14374
14375 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14376 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14377 Fix typos in docstrings.
14378
143792008-05-23 Jason Rumney <jasonr@gnu.org>
14380
14381 * xsmfns.c: Remove includes that are already included by config.h.
14382
143832008-05-23 Kenichi Handa <handa@m17n.org>
14384
14385 * charset.c (Qemacs, charset_emacs): New variables.
14386 (char_charset): Fix for non-Unicode characters.
14387 (syms_of_charset): Define charset_emacs.
14388
14389 * w32term.c (x_draw_glyph_string): Be sure to update
14390 s->underline_thickness and s->underline_position. Be sure to draw
14391 underline within the current line area.
14392
14393 * xterm.c (x_draw_glyph_string): Be sure to update
14394 s->underline_thickness and s->underline_position. Be sure to draw
14395 underline within the current line area.
14396
14397 * fontset.c: Delete unused variables and add casting for char *
14398 throughout the file.
14399 (fontset_font): Try the fallback fonts of the current fontset
14400 before consulting the default fontset.
14401
14402 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14403
14404 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14405
144062008-05-22 Jason Rumney <jasonr@gnu.org>
14407
14408 * font.c: Don't include strings.h.
14409
14410 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14411
14412 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14413 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14414 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14415 to call xstrcasecmp.
14416
14417 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14418
14419 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14420
14421 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14422
14423 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14424
144252008-05-22 Kenichi Handa <handa@m17n.org>
14426
14427 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14428
14429 * font.c (font_prop_validate_style): Adjust for the format
14430 change of font_style_table.
14431
14432 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14433 two args.
14434
14435 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14436 two args.
14437
144382008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14439
14440 * minibuf.c (keys_of_minibuf): Delete.
14441 * lisp.h (keys_of_minibuf): Delete.
14442 * emacs.c (main): Don't call keys_of_minibuf.
14443
144442008-05-22 Kenichi Handa <handa@m17n.org>
14445
14446 * ftfont.c (ftfont_resolve_generic_family): Rename from
14447 ftfont_list_generic_family. Return a single family for each
14448 generic family.
14449 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14450 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14451 Call font_add_log.
14452 (ftfont_match): Call font_add_log.
14453
14454 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14455 (FONT_DEBUG): Define it.
14456 (font_add_log): Extern it.
14457 (font_assert): Rename from xassert.
14458
14459 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14460 (xfont_list_family): Call font_add_log.
14461 (xfont_match): Likewise.
14462 (memq_no_quit): Delete.
14463
14464 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14465 call of Ffont_xlfd_name.
14466
14467 * xfaces.c (struct table_entry, slant_table, weight_table)
14468 (swidth_table): Move to font.c.
14469
14470 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14471 xassert are changed to font_assert. Delete many unused variables.
14472 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14473 New variables.
14474 (struct table_entry): Move from xfaces.c and modified.
14475 (weight_table, slant_table, width_table): Move from xfaces.c and
14476 contents adjusted for the change of struct table_entry.
14477 (font_style_to_value, font_style_symbolic): Adjust for the
14478 format change of font_style_table.
14479 (font_parse_family_registry): Don't overwrite existing foundry and
14480 family of font_spec.
14481 (font_score): Fix calculation of diff for sizes.
14482 (font_sort_entites): Call font_add_log.
14483 (font_delete_unmatched): Return a newly created list.
14484 (font_list_entities): Fix previous change. Call font_add_log.
14485 (font_matching_entity, font_open_entity, font_close_entity):
14486 Call font_add_log.
14487 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14488 (Finternal_set_font_style_table): Delete.
14489 (BUILD_STYLE_TABLE): New macro.
14490 (build_style_table): New function.
14491 (Vfont_log, font_log_env_checked): New variables.
14492 (font_add_log): New function.
14493 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14494 Declare Lisp variables "font-weight-table", "font-slant-table",
14495 "font-width-table", and "font-log". Initialize font_style_table.
14496
144972008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14498
14499 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14500
145012008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14502 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14503
14504 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14505 (Vframe_alpha_lower_limit): New variable.
14506 (x_set_alpha): New function.
14507
14508 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14509
14510 * xfns.c (x-create-frame, Qalpha):
14511 Initialize the frame parameter `alpha'.
14512 * xterm.c (OPAQUE, OPACITY): New.
14513 (x_set_frame_alpha): New function.
14514 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14515
14516 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14517 * w32fns.c (w32_frame_parm_handlers): Likewise.
14518
145192008-05-20 Jason Rumney <jasonr@gnu.org>
14520
14521 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14522 truetype fonts to opentype list.
14523
145242008-05-20 Juanma Barranquero <lekktu@gmail.com>
14525
14526 * fontset.c (Ffontset_info): Doc fix.
14527 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14528 <ignore-relative-composition>: Fix typos in docstrings.
14529
14530 * font.c (syms-of-font) <font-encoding-alist>:
14531 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14532 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14533 (Ffont_otf_alternates): Doc fixes.
14534
145352008-05-20 Kenichi Handa <handa@m17n.org>
14536
14537 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14538 font.h through out the file.
14539 (FONT_DRIVERS): Rename from FONTOBJ.
14540 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14541 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14542
14543 * emacs.c (main): Call syms_of_font unconditionally.
14544
14545 * font.h (find_font_encoding): Extern it.
14546
14547 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14548 fontset.c.
194d44e7 14549 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14550 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14551 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14552 only when HAVE_WINDOW_SYSTEM is defined.
14553 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14554 when HAVE_WINDOW_SYSTEM is defined.
14555
14556 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14557 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14558
14559 * xfaces.c: Include font.h unconditionally.
14560 (merge_face_ref, merge_face_vectors)
14561 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14562
145632008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14564
14565 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14566 indirect_variable.
14567 * eval.c (lisp_indirect_variable): New fun.
14568 (Fuser_variable_p): Use it.
14569
145702008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14571
14572 * lisp.h (indirect_variable):
14573 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14574 Use Lisp_Symbol pointers rather than Lisp_Object.
14575 Adjust callers.
14576 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14577 To this end, change calling-convention.
14578
14579 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14580 if some non-hidden buffers are selected by string&pred.
14581
145822008-05-19 Chong Yidong <cyd@stupidchicken.com>
14583
14584 * process.c (wait_reading_process_output): Always check status
14585 when in batch mode.
14586
145872008-05-19 Kenichi Handa <handa@m17n.org>
14588
14589 * font.c (font_list_entities): Fix handling of cache.
14590 (font_matching_entity): Likewise.
14591
14592 * ftfont.c (cs_iso8859_1): Delete.
14593 (ft_face_cache): New variable.
14594 (struct ftfont_info): New member fc_charset_idx.
14595 (ftfont_build_basic_charsets): Delete.
14596 (fc_charset_table): New variable.
14597 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14598 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14599 Callers changed.
14600 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14601 (ftfont_spec_pattern): New argument fc_charset_idx.
14602 Check registry more rigidly. Change callers.
14603 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14604 change of :font-entity property of the font.
14605
14606 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14607 property of the font.
14608
146092008-05-18 Juanma Barranquero <lekktu@gmail.com>
14610
14611 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14612 (Funencodable_char_position, Fcheck_coding_systems_region)
14613 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14614 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14615 (Ffind_operation_coding_system, Fset_coding_system_priority)
14616 (Fcoding_system_eol_type): Doc fixes.
14617
146182008-05-17 Glenn Morris <rgm@gnu.org>
14619
14620 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14621
146222008-05-16 Eli Zaretskii <eliz@gnu.org>
14623
14624 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14625 and st_gid.
14626
14627 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14628 HAVE_WINDOW_SYSTEM is not defined.
14629
14630 * xfaces.c (merge_face_ref, merge_face_vectors)
14631 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14632 HAVE_WINDOW_SYSTEM is defined.
14633 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14634
146352008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14636
14637 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14638
146392008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14640
14641 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14642
146432008-05-15 Kenichi Handa <handa@m17n.org>
14644
14645 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14646 preference.
14647
146482008-05-15 Glenn Morris <rgm@gnu.org>
14649
14650 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14651
146522008-05-15 Chong Yidong <cyd@stupidchicken.com>
14653
14654 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14655 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14656
14657 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14658
146592008-05-15 Kenichi Handa <handa@m17n.org>
14660
14661 * ftfont.c (ftfont_list): Downcase family name to check generic
14662 families.
14663
14664 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14665 font-spec for QCfont value.
14666
14667 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14668 buffer. Check the return value of it.
14669
146702008-05-14 Jason Rumney <jasonr@gnu.org>
14671
14672 * w32term.c (w32_get_glyph_overhangs): Remove.
14673 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14674
146752008-05-14 Kenichi Handa <handa@m17n.org>
14676
14677 * font.c (font_prop_validate): Make nil a valid value.
14678 (font_clear_cache): Check if the cached vector of entities is nil
14679 or not.
14680
146812008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14682
14683 * emacs.c (main_thread): Conditionalize on
14684 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14685 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14686
14687 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14688 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14689 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14690
146912008-05-14 Kenichi Handa <handa@m17n.org>
14692
14693 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14694 has no corresponding coding system.
14695
146962008-05-14 Jason Rumney <jasonr@gnu.org>
14697
14698 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14699
14700 * w32font.h (w32font_open_internal): Update declaration.
14701
14702 * w32font.c (w32font_open_internal): Change last argument from
14703 w32font_info struct to font object. Fill in font object from
14704 font_entity. Get Outline metrics if possible. Use them to
14705 calculate underline position and thickness. Use xlfd name as name
14706 property. Don't set codepage.
14707 (w32font_open): Pass font_object to w32font_open_internal. Don't
14708 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14709 (w32font_draw): Use s->font.
14710 (clear_cached_metrics): Don't clear non-existent blocks.
14711
14712 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14713 font was not found.
14714 (x_draw_glyph_string): Use underline position and thickness from font.
14715
14716 * w32uniscribe.c (uniscribe_open): Pass font_object to
14717 w32font_open_internal.
14718
147192008-05-14 Kenichi Handa <handa@m17n.org>
14720
14721 These changes are to delete all legacy font-handling codes, and
14722 make Emacs use only font-backends.
14723
14724 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14725 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14726
14727 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14728
14729 * charset.h (Vcharset_non_preferred_head)
14730 (Vcurrent_iso639_language): Extern them.
14731
14732 * charset.c (Vcharset_non_preferred_head): New variable.
14733 (Vcurrent_iso639_language): New variable.
14734 (syms_of_charset): Declare it as a Lisp variable.
14735 (char_charset): Don't check non preferred charsets. As a last
14736 resort, return charset_unicode.
14737 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14738
14739 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14740 conditionals. Don't check enable_font_backend. Delete all codes
14741 used only when USE_FONT_BACKEND is not defined.
14742
14743 * dispextern.h (struct glyph_string): Change type of `font' to
14744 `struct font *'.
14745 (struct glyph_string): New member underline_position and
14746 underline_thickness.
14747 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14748 (struct face): Change type of `font' to `struct font *'. Remove
14749 members `font_name', `font_info_id'.
14750 (per_char_metric, encode_char): Delete externs.
14751 (calc_pixel_width_or_height): Adjust the prototype.
14752
14753 * emacs.c (enable_font_backend): Delete extern.
14754 (main): Don't set enable_font_backend. Don't check the command
14755 line argument "-disable-font-backend".
14756
14757 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14758 (enum font_property_index): New members FONT_DPI_INDEX,
14759 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14760 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14761 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14762 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14763 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14764 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14765 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14766 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14767 (struct font_spec, struct font_entity): New structs.
14768 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14769 (struct font): Many members from old "struct font_info" moved to
14770 here. Members font and entity deleted.
14771 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14772 the new font-related objects.
14773 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14774 (CHECK_FONT_GET_OBJECT): Likewise.
14775 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14776 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14777 (struct font_driver): New members case_sensitive anc check. Type
14778 of the member list and open changed.
14779 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14780 (font_symbolic_width, font_find_object, font_get_spec)
14781 (font_set_lface_from_name): Delete extern.
14782 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14783
14784 * font.c: Include <strings.h>.
14785 (enable_font_backend): Delete it.
14786 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14787 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14788 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14789 (null_string): Delete it.
14790 (null_vector): Make it static.
14791 (font_family_alist): Delete it.
14792 (Qnormal): Extern it.
14793 (QCextra, QClanguage): Delete it.
14794 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14795 (font_make_spec, font_make_entity, font_make_object)
14796 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14797 the string. Callers changed.
14798 (font_pixel_size): Adjusted for the format change of font-related
14799 objects.
14800 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14801 (font_style_to_value, font_style_symbolic): New function.
14802 (build_font_family_alist): Delete it.
14803 (font_registry_charsets): Use Fassoc_string instead of
14804 assq_no_quit.
14805 (font_prop_validate_symbol): Don't return null_string.
14806 (font_prop_validate_style): Adjusted for the change of
14807 style-related values in a font vector.
14808 (font_property_table): Delete entries for QClanguage and
14809 QCantialias, add entries for QCavgwidth.
14810 (get_font_prop_index): Delete the 2nd argument FROM.
14811 (font_prop_validate): Arguments changed.
14812 (font_put_extra): Adjusted for the change of font-related objects.
14813 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14814 (font_parse_fcname, font_unparse_fcname)
14815 (font_prepare_composition): Likewise.
14816 (font_parse_family_registry): Renamed from font_merge_old_spec.
14817 (otf_open): Delete the 1st arg entity.
14818 (font_otf_capability): Adjusted for the above change.
14819 (font_score): New arg alternate_families. Adjusted for the change
14820 of font-related objects.
14821 (font_sort_entites): New arg best_only.
14822 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14823 Delete them.
14824 (font_match_p): Check alternate families.
14825 (font_find_object): Delete it.
14826 (font_check_object): New function.
14827 (font_clear_cache): Adjusted for the change of font-related objects.
14828 (font_delete_unmatched): New arg.
14829 (font_list_entities): Call font_driver->list with a spec that
14830 doesn't specify style-related properties.
14831 (font_matching_entity): Arguments changed. Caller changed.
14832 (font_open_entity): Adjusted for the change of font-related objects.
14833 (font_close_object, font_has_char, font_encode_char)
14834 (font_get_name, font_get_spec): Likewise.
14835 (font_spec_from_name, font_clear_prop, font_update_lface):
14836 New functions.
14837 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14838 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14839 (font_at): Adjusted for the change of font-related objects.
14840 (font_range): New function.
14841 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14842 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14843 (Fcopy_font_spec, Fmerge_font_spec): New function.
14844 (Ffont_family_list): Renamed from list-families.
14845 (Finternal_set_font_style_table): Arguments changed.
14846 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14847 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14848 change of font-related objects.
14849 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14850
14851 * fontset.h (struct font_info): Delete it. Most members go to
14852 struct font.
14853 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14854 (enum FONT_SPEC_INDEX): Delete it.
14855 (font_info, list_fonts_func, load_font_func, query_font_func)
14856 (set_frame_fontset_func, find_ccl_program_func)
14857 (get_font_repertory_func, new_fontset_from_font_name): Delete
14858 externs.
14859 (fontset_from_font_name): Extern it.
14860 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14861 (FONT_INFO_FROM_FACE): Deleted.
14862 (face_for_font): Adjust prototype.
14863
14864 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14865 conditionals. Don't check enable_font_backend. Delete all codes
14866 used only when USE_FONT_BACKEND is not defined.
14867 (get_font_info_func, list_font_func, load_font_func)
14868 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14869 (get_font_repertory_func): Delete them.
14870 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14871 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14872 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14873 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14874 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14875 (fontset_compare_rfontdef): New function.
14876 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14877 rfont-defs by qsort. Adjusted for the change of font-group vector.
14878 (load_font_get_repertory): Deleted.
14879 (fontset_find_font): Use new macros to ref/set elements of
14880 font-def and rfont-def.
14881 (fontset_font): Fix the timing of remembering that no font for C.
14882 (free_face_fontset): Do nothing if the face has no fontset.
14883 (face_suitable_for_char_p): Use new macros to ref/set elements of
14884 rfont-def.
14885 (face_for_char): Likewise. Call face_for_char with font_object.
14886 (fs_load_font): Delete. Delete #pragma surrounding it.
14887 (fs_query_fontset): Use strcasecmp instead of strcmp.
14888 (generate_ascii_font_name): Adjusted for the format change of
14889 font-spec.
14890 (Fset_fontset_font): Likewise. Use new macros to set elements of
14891 font-def.
14892 (Fnew_fontset): Use font_unparse_xlfd to generate
14893 FONTSET_ASCII (fontset).
14894 (new_fontset_from_font_name): Deleted.
14895 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14896 a fontset is already created for the font. FIx updating of
14897 Vfontset_alias_alist.
14898 (fontset_ascii_font): Deleted.
14899 (Ffont_info): Adjusted for the format change of font-spec.
14900 (Finternal_char_font): Likewise.
14901 (Ffontset_info): Likewise.
14902 (syms_of_fontset): Don't check load_font_func.
14903
14904 * fns.c (internal_equal): Handle PREV_FONT.
14905
14906 * frame.h: Delete USE_FONT_BACKEND conditional.
14907
14908 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14909 conditionals. Don't check enable_font_backend. Delete all codes
14910 used only when USE_FONT_BACKEND is not defined.
14911 (x_set_font): Call x_new_font, not x_new_fontset2.
14912 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14913 already set for the frame.
14914
14915 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14916 a font-entity by font_make_entity. Use font_intern_prop instead
14917 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14918 font property. If a font is scalable, set avgwidth property to 0.
14919 Set font-entity property by font_put_extra.
14920 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14921 (ffont_driver): Adjusted for the change of struct font_driver.
14922 (ftfont_spec_pattern): New function.
14923 (ftfont_list): Return a list, not vector.
14924 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14925 (ftfont_list_family): Don't downcase names.
14926 (ftfont_free_entity): Deleted.
14927 (ftfont_open): Return a font-object. Adjusted for the change of
14928 struct font. Get underline_thickness and underline_position from
14929 font property. Don't update dpyinfo->smallest_font_height and
14930 dpyinfo->smallest_char_width.
14931 (ftfont_close): Don't free `struct font'.
14932 (ftfont_has_char): Adjusted for the format change of font-entity.
14933 (ftfont_encode_char, ftfont_text_extents): Likewise.
14934
14935 * ftxfont.c (ftxfont_list): Return a list, not vector.
14936 (ftxfont_open): Return a font-object. Adjusted for the change of
14937 struct font. Get underline_thickness and underline_position from
14938 font property. Don't update dpyinfo->smallest_font_height and
14939 dpyinfo->smallest_char_width.
14940 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14941 (ftxfont_draw): Adjusted for the change of struct font.
14942
14943 * image.c (image_ascent): Don't include "charset.h". Include
14944 "character.h" and "font.h".
14945
14946 * lisp.h (enum pvec_type): New member PREV_FONT.
14947 (Fassoc_string): EXFUN it.
14948
14949 * print.c: Include font.h.
14950 (print_object): Handle font-related objects.
14951
14952 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14953 conditionals. Don't check enable_font_backend. Delete all codes
14954 used only when USE_FONT_BACKEND is not defined.
14955 (handle_auto_composed_prop): Do nothing if it->f is not on a
14956 window system. Check how many following characters can be
14957 displayed by the same font.
14958 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14959 'struct font *'.
14960 (get_char_face_and_encoding): Assign the whole encoding task to
14961 the `encode-char' method of a font driver.
14962 (fill_composite_glyph_string): Adjusted for the change of `struct
14963 face' and `struct glyph_string'.
14964 (fill_glyph_string): Likewise.
14965 (get_per_char_metric): Arguments changed.
14966 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14967 and `struct glyph_string'.
14968 (produce_stretch_glyph, calc_line_height_property)
14969 (x_produce_glyphs): Likewise.
14970
14971 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14972 conditionals. Don't check enable_font_backend. Delete all codes
14973 used only when USE_FONT_BACKEND is not defined. Use
14974 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14975 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14976 (Qp): Extern them.
14977 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14978 Deleted.
14979 (struct font_name): Deleted.
14980 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14981 (compare_fonts_by_sort_order): New function.
14982 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14983 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14984 Deleted.
14985 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14986 compare_fonts_by_sort_order.
14987 (Fx_font_family_list): Call Ffont_family_list.
14988 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14989 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14990 (face_symbolic_slant, face_symbolic_swidth)
14991 (split_font_name_into_vector, build_font_name_from_vector)
14992 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14993 (font_rescale_ratio, split_font_name, build_font_name)
14994 (free_font_names, sort_fonts, x_face_list_fonts)
14995 (face_font_available_p, sorted_font_list, cmp_font_names)
14996 (font_list_1, concat_font_list, font_list, remove_duplicates):
14997 Deleted.
14998 (Fx_list_fonts): Use Ffont_list.
14999 (LFACE_AVGWIDTH): Deleted.
15000 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15001 by FONTP.
15002 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15003 (set_lface_from_font_name): Delete it.
15004 (set_lface_from_font): Renamed from
15005 set_lface_from_font_and_fontset. Caller changed. Don't set
15006 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15007 for face.
15008 (merge_face_vectors): Copy font-spec if necessary.
15009 Clear properties of the font-spec if necessary.
15010 (merge_face_ref): Clear properties of the font-spec if necessary.
15011 (Finternal_set_lisp_face_attribute): Likewise.
15012 (set_font_frame_param): Use font_load_for_lface to load a
15013 font-object, and call Fmodify_frame_parameters with it.
15014 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15015 font name by Ffont_xlfd_name.
15016 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15017 QCslant, and QCwidth.
15018 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15019 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15020 Compare fonts by EQ.
15021 (lookup_non_ascii_face): Deleted.
15022 (face_for_font): The 2nd argument changed.
15023 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15024 Check atomic font properties by case insensitive.
15025 (realize_non_ascii_face): Set face->overstrike correctly.
15026 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15027 (dump_realized_face): Get font name from
15028 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15029
15030 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15031 conditionals. Don't check enable_font_backend. Delete all codes
15032 used only when USE_FONT_BACKEND is not defined.
15033 (xic_create_xfontset): Original code deleted and renamed from
15034 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15035 (x_make_gc): Don't set GCFont in GCs.
15036 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15037 opened by "fixed".
15038 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15039 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15040 get_font_repertory_func.
15041
15042 * xfont.c: Include <stdlib.h> and "ccl.h".
15043 (struct xfont_info): New structure.
15044 (xfont_query_font): Deleted.
15045 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15046 moved from xterm.c.
15047 (xfont_driver): Adjusted for the change of struct font_driver.
15048 (compare_font_names): New function.
15049 (xfont_list_pattern): Sort font names case insensitively. Make
15050 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15051 (xfont_list): Return a list, not vector.
15052 (xfont_match): If the font doesn't have QCname property, generate
15053 a name from the other font properties.
15054 (xfont_open): Return a font-object. Adjusted for the change of
15055 struct font. Get underline_thickness and underline_position from
15056 font property. Don't update dpyinfo->smallest_font_height and
15057 dpyinfo->smallest_char_width.
15058 (xfont_close): Don't free struct font.
15059 (xfont_prepare_face): Adjusted for the change of struct font.
15060 (xfont_done_face): Deleted.
15061 (xfont_has_char): Adjusted for the change of struct font.
15062 (xfont_encode_char, xfont_draw): Likewise.
15063 (xfont_check): New function.
15064
15065 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15066 callback function.
15067 (xftfont_match): Adjusted for the format change of font-entity.
15068 (xftfont_open): Adjusted for the format change of font-entity and
15069 font-object. Adjusted for the change of struct font. Return a
15070 font-object. Don't update dpyinfo->smallest_font_height and
15071 dpyinfo->smallest_char_width.
15072 (xftfont_close): Block input while calling XftFontClose.
15073 (xftfont_prepare_face): Don't block input while calling
15074 xftfont_get_colors. Adjusted for the change of struct font.
15075 (xftfont_shape): Return value of error case fixed.
15076
15077 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15078
15079 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15080 conditionals.
15081 (FONT_WIDTH): Return (f)->max_width.
15082 (struct x_display_info): Delete member `font'.
15083 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15084 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15085 (struct x_output): Change type of `font' to `struct font *'.
15086
15087 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15088 conditionals. Don't check enable_font_backend. Delete all codes
15089 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15090 (x_per_char_metric, x_encode_char): Deleted.
15091 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15092 (x_compute_glyph_string_overhangs): Adjusted for the change of
15093 `struct face'.
15094 (x_draw_glyph_string_foreground)
15095 (x_draw_composite_glyph_string_foreground): Likewise.
15096 (x_draw_glyph_string): Likewise. Use font->underline_position and
15097 font->underline_thickness.
15098 (x_new_font): Renamed from x_new_fontset2.
15099 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15100 (x_check_font): Call `check' method of a font driver.
15101 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15102 (x_query_font, x_get_font_repertory): Deleted.
15103 (x_find_ccl_program): Renamed and moved to xfont.c.
15104 (x_redisplay_interface): Adjusted for the change of `struct
15105 redisplay_interface'.
15106
15107 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15108 conditionals. Don't check enable_font_backend. Delete all codes
15109 used only when USE_FONT_BACKEND is not defined. Surround non-used
15110 code by "#ifdef OLD_FONT" and "endif".
15111 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15112
15113 * w32font.h (struct w32font_info): New member.
15114 (FONT_COMPAT): New macro.
15115 (w32font_open_internal): Prototype adjusted.
15116
15117 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15118 OLD_FONT" and "endif".
15119
15120 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15121 conditionals. Don't check enable_font_backend. Delete all codes
15122 used only when USE_FONT_BACKEND is not defined.
15123 (w32font_open): Return a font-object. Make a font-object by
15124 font_make_object. Adjusted for the change of struct w32font_info.
15125 (w32font_close): Don't free struct font. Adjusted for the change
15126 of struct w32font_info.
15127 (w32font_encode_char, w32font_text_extents, w32font_draw):
15128 Adjusted for the change of struct w32font_info.
15129 (w32font_draw): Likewise.
15130 (w32font_list_internal): Return a list, not vector.
15131 (w32font_open_internal): Change the 4th arg to font-object.
15132 Adjusted for the change of struct w32font_info and font-object format.
15133 (add_font_name_to_list): Don't downcase names.
15134 (w32_enumfont_pattern_entity): Make a font-entity by
15135 font_make_entity. Adjusted for the format change of font-entity.
15136 Use FONT_SET_STYLE to set a style-related font property. If a
15137 font is scalable, set avgwidth property to 0. Set font-entity
15138 property by font_put_extra.
15139 (font_matches_spec): Adjusted for the format change of font-entity.
15140 (w32_weight_table, w32_decode_weight): New variables.
15141 (w32_encode_weight): New function.
15142 (fill_in_logfont): Adjusted for the format change of font-spec.
15143 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15144 weight value.
15145 (w32font_driver): Adjusted for the change of struct font_driver.
15146
15147 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15148 conditionals. Don't check enable_font_backend. Surround non-used
15149 code by "#ifdef OLD_FONT" and "endif".
15150 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15151 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15152
15153 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15154 conditionals. Don't check enable_font_backend. Delete all codes
15155 used only when USE_FONT_BACKEND is not defined. Surround non-used
15156 code by "#ifdef OLD_FONT" and "endif".
15157
15158 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15159 (uniscribe_open): Return value changed to font-object.
15160 Adjusted for the format change of font-object.
15161 (uniscribe_otf_capability): Adjusted for the change of struct font.
15162 (add_opentype_font_name_to_list): Don't downcase names.
15163 (uniscribe_font_driver): Adjusted for the change of struct
15164 font_driver.
15165
151662008-05-13 Chong Yidong <cyd@stupidchicken.com>
15167
15168 * dispnew.c (update_frame_1): Check if tty output is still valid
15169 before flushing it.
15170
151712008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15172
15173 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15174 to Gtk+ menus.
15175
151762008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15177
15178 * dired.c (file_name_completion): Tweak the code so as to always do it
15179 in a single pass. Tighten the scope of some variables.
15180
15181 * dired.c (Qdefault_directory): New var.
15182 (file_name_completion): Use it instead of Fexpand_file_name.
15183 (syms_of_dired): Initialize it.
15184
151852008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15186
15187 * fileio.c (double_dollars): Remove dead code.
15188
151892008-05-10 Eli Zaretskii <eliz@gnu.org>
15190
15191 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15192 Mention w32-get-true-file-attributes in doc string.
15193
15194 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15195
151962008-05-09 Glenn Morris <rgm@gnu.org>
15197
15198 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15199 2008-04-23.
15200
152012008-05-09 Eli Zaretskii <eliz@gnu.org>
15202
15203 Support for reporting owner and group of each file on MS-Windows:
15204 * dired.c (stat_uname, stat_gname): New functions, with special
15205 implementation for w32.
15206 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15207
15208 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15209 (dflt_group_name): New static variable.
15210 (dflt_group): Rename from the_group.
15211 (init_user_info): Init dflt_group fields. Get user's group name
15212 from LookupAccountSid.
15213 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15214 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15215 New initialization states.
15216 (globals_of_w32): Initialize them to zero. Initialize the default
15217 group name to "None".
15218 (GetFileSecurity_Name): New global var, the name of the function
15219 to call for GetFileSecurity.
15220 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15221 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15222 (get_file_security, get_security_descriptor_owner)
15223 (get_security_descriptor_group, is_valid_sid)
15224 (get_file_security_desc, get_rid, get_name_and_id)
15225 (get_file_owner_and_group): New functions.
15226 (stat): Use get_file_security_desc and get_file_owner_and_group to
15227 report the owner and primary group of each file. Don't ignore the
15228 high 32 bits of file's size, now that st_size is 64-bit wide.
15229 Fix test when to get true file attributes.
15230 (init_user_info): Use get_rid instead of equivalent inline code.
15231 (fstat): Don't ignore the high 32 bits of file's size.
15232
152332008-05-09 Chong Yidong <cyd@stupidchicken.com>
15234
15235 * image.c (png_load): Use correct bit-depth for setting background
15236 color.
15237
152382008-05-08 Eli Zaretskii <eliz@gnu.org>
15239
15240 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15241 epa-hook.elc.
15242
152432008-05-08 Juanma Barranquero <lekktu@gmail.com>
15244
15245 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15246
152472008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15248
15249 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15250 because the original parameters are in pure storage now.
15251 (mac_window): Remove unused params. Update callers.
15252
152532008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15254
15255 * lread.c (substitute_object_recurse): Use lower-level primitives.
15256 Don't signal errors when traversing sub-char-tables.
15257 Don't loop over all the possible characters when traversing char-tables.
15258
15259 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15260 just like we do in print.c.
15261
152622008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15263
15264 * minibuf.c (Ftry_completion): Remove code left over from when we used
15265 scmp instead of Fcompare_strings.
15266
152672008-05-04 Juanma Barranquero <lekktu@gmail.com>
15268
15269 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15270
152712008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15272
15273 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15274 Create bitmap context in native byte order.
15275
15276 * macterm.c (XDrawLine)
15277 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15278 context in native byte order.
15279
152802008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15281
15282 * config.in: Regenerate.
15283
15284 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15285 New definitions for Image I/O support.
15286 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15287 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15288 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15289 (mac_data_provider_release_data, image_load_image_io)
15290 [USE_MAC_IMAGE_IO]: New functions.
15291 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15292 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15293 (init_image_func_pointer) [MAC_OSX]: Remove function.
15294 (image_load_quartz2d) [MAC_OSX]: Check availability of
15295 CGImageCreateWithPNGDataProvider at compile time.
15296 Use lowercase `false' for boolean constant.
15297 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15298 Use image_load_image_io.
15299 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15300 Don't check MyCGImageCreateWithPNGDataProvider.
15301 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15302 Don't call init_image_func_pointer.
15303
15304 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15305
15306 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15307 Make variable non-static.
15308 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15309 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15310
15311 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15312 (RED_FROM_ULONG): Mask off higher bits.
15313 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15314
15315 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15316 Include AvailabilityMacros.h.
15317 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15318 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15319
153202008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15321
15322 * chartab.c (Fset_char_table_range): If range is t, really set all
15323 chars to that value.
15324
153252008-05-03 Eli Zaretskii <eliz@gnu.org>
15326
15327 * dired.c (Ffile_attributes): Don't allow the device number become
15328 negative.
15329
153302008-05-02 Daiki Ueno <ueno@unixuser.org>
15331
15332 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15333
153342008-05-02 Juri Linkov <juri@jurta.org>
15335
15336 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15337 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15338 DEFAULT argument as a list of default values in docstrings.
15339
153402008-05-01 Chong Yidong <cyd@stupidchicken.com>
15341
15342 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15343
153442008-05-01 Martin Rudalics <rudalics@gmx.at>
15345
15346 * dispnew.c (change_frame_size_1): Preserve small windows when
15347 shrinking frames by calling set_window_height|width with third
15348 arg 2.
15349
15350 * window.h (struct window): Replace field too_small_ok by field
15351 resize_proportionally.
15352
15353 * window.c (make_window): Initialize resize_proportionally.
15354 (enlarge_window): Temporarily set resize_proportionally to make
15355 sure that shrink_windows does scale the window proportionally.
15356 (shrink_windows): When window has resize_proportionally set try
15357 to shrink it proportionally by stealing from other windows.
15358 (struct saved_window, Fset_window_configuration)
15359 (compare_window_configurations): Handle resize_proportionally.
15360 (WINDOW_TOTAL_SIZE): New macro.
15361 (window_min_size, shrink_windows, size_window): Use it.
15362 (check_min_window_sizes): Remove. Invalid values of
15363 window-min-height|width are handled by window_min_size_2 now.
15364 (size_window, Fsplit_window, enlarge_window)
15365 (adjust_window_trailing_edge, grow_mini_window): Don't call
15366 check_min_window_sizes.
15367 (window_min_size_2, window_min_size_1, window_min_size):
15368 New argument safe_p for retrieving "safe" minimum sizes.
15369 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15370 (adjust_window_trailing_edge, grow_mini_window):
15371 Adjust arguments of window_min_size... functions.
15372 (shrink_windows): Argument min_size removed. New argument
15373 safe_p allows shrinking windows to their safe minimum sizes.
15374 Calculate minimum size and decide whether a window shall be
15375 deleted for each window individually.
15376 (size_window): When nodelete_p equals 2, tell shrink_windows to
15377 delete windows only if their new minimum size is no more safe.
15378 (shrink_window_lowest_first): Call window_min_size_1 to make
15379 sure to preserve modeline of bottom-most window when resizing
15380 the minibuffer.
15381 (Fset_window_configuration, Fcurrent_window_configuration)
15382 (compare_window_configurations): Do not handle
15383 window-min-height|width any more.
15384 (syms_of_window): Clarify window-min-height|width doc-strings.
15385
153862008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15387
15388 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15389 some more. Copy some of the code from Ftry_completions.
15390 Remove special case code that dates back to initial revision when the
15391 slash was only added when necessary and that can't trigger nowadays.
15392
153932008-04-27 Kenichi Handa <handa@m17n.org>
15394
15395 * font.c (font_prop_validate): Signal `error' instead of `font'.
15396
153972008-04-29 Jason Rumney <jasonr@gnu.org>
15398
15399 * w32fns.c (Fw32_battery_status): New defun.
15400 (syms_of_w32fns): Defsubr it.
15401
154022008-04-28 Andreas Schwab <schwab@suse.de>
15403
15404 * dired.c (file_name_completion): Fix another mixing of encoded
15405 and decoded names.
15406
154072008-04-28 Juanma Barranquero <lekktu@gmail.com>
15408
15409 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15410
154112008-04-27 Juanma Barranquero <lekktu@gmail.com>
15412
15413 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15414
154152008-04-27 Andreas Schwab <schwab@suse.de>
15416
15417 * dired.c (file_name_completion): Fix inappropriate mixing of
15418 encoded and decoded names.
15419
15420 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15421
15422 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15423
154242008-04-26 Eli Zaretskii <eliz@gnu.org>
15425
15426 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15427 2008-03-31, it's not needed anymore with `struct stat' definition
15428 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15429 for the same reasons.
15430
154312008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15432
15433 * m/sparc.h: Additional redefinitions for GNU/Linux.
15434
154352008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15436
15437 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15438 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15439 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15440 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15441 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15442 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15443 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15444 Likewise.
15445
15446 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15447 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15448 (mac_ax_number_of_characters): Add externs.
15449 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15450 [USE_MAC_TSM]: Likewise.
15451 (mac_handle_text_input_event) [MAC_OSX]:
15452 Handle kEventTextInputOffsetToPos for no active input area case.
15453 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15454 (mac_handle_document_access_event)
15455 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15456 (install_application_handler) [MAC_OSX]: Register handlers for
15457 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15458 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15459 Register mac_handle_document_access_event.
15460
15461 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15462 Make functions non-static.
15463
154642008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15465
15466 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15467 (read_file_name_completion_ignore_case, insert_default_directory)
15468 (Qdefault_directory): Move to minibuffer.el.
15469 (Fread_file_name): Call the new `read-file-name' instead.
15470
154712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15472
15473 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15474 Make function non-static.
15475 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15476 Remove function.
15477 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15478 Move to mactoolbox.c.
15479 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15480
15481 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15482 (mac_rect_make): New macro.
15483
15484 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15485 instead of float.
15486 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15487 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15488 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15489 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15490 CGRectMake.
15491 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15492 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15493 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15494 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15495 instead of WindowRef in argument type.
15496 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15497 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15498 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15499 instead of DISPLAY. All uses changed.
15500 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15501 (x_calc_absolute_position): Simplify so as not to use
15502 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15503
15504 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15505 instead of WindowRef in argument type.
15506 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15507 [TARGET_API_MAC_CARBON]: Remove externs.
15508 (create_apple_event, mac_event_parameters_to_lisp)
15509 [TARGET_API_MAC_CARBON]: Add externs.
15510
15511 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15512 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15513 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15514 is clicked.
15515 (x_activate_menubar): Remove extern for saved_menu_event_location.
15516 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15517 Move from mac.c.
15518
155192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15520
15521 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15522 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15523
155242008-04-23 Jason Rumney <jasonr@gnu.org>
15525
15526 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15527 attributes only for local files.
15528
15529 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15530 default to Qlocal.
15531
155322008-04-22 Juri Linkov <juri@jurta.org>
15533
15534 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15535 read-buffer-to-switch instead of using the letter "B".
15536
155372008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15538
15539 * fileio.c (Qdefault_directory): New variable.
15540 (Fread_file_name): Use it to pass `dir' to the completion functions.
15541
155422008-04-20 Chong Yidong <cyd@stupidchicken.com>
15543
15544 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15545
155462008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15547
15548 * keyboard.c (Vpre_help_message): Remove.
15549 (show_help_echo): Remove default C code.
15550
15551 * dired.c (directory_files_internal, file_name_completion):
15552 Only call ENCODE_FILE if the string is indeed decoded.
15553
155542008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15555
15556 * Makefile.in (TOOLKIT_DEFINES): Remove.
15557 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15558
155592008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15560
15561 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15562 (mactoolbox.o): New target.
15563
15564 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15565 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15566
15567 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15568 Use mac_set_frame_window_background instead of XSetWindowBackground.
15569 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15570 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15571 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15572 instead of SetWindowTitleWithCFString.
15573 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15574 Move function to mactoolbox.c.
15575 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15576 Use mac_set_window_modified instead of SetWindowModified.
15577 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15578 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15579 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15580 FrontNonFloatingWindow. Use mac_activate_window instead of
15581 ActivateWindow. Use mac_active_non_floating_window instead of
15582 ActiveNonFloatingWindow.
15583 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15584 Use mac_show_hourglass and mac_hide_hourglass.
15585 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15586 instead of GetGlobalMouse.
15587 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15588 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15589 Use mac_bring_window_to_front instead of BringToFront.
15590 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15591 mactoolbox.c.
15592 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15593 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15594 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15595 mactoolbox.c.
15596
15597 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15598 (XtPointer): Move typedef from macmenu.c.
15599 (enum button_type): Move enum from macmenu.c.
15600 (widget_value): Move typedef from macmenu.c.
15601 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15602 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15603 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15604 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15605 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15606 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15607 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15608 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15609 (Selection): Move typedef from macselect.c.
15610 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15611 macterm.c.
15612 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15613 (mac_is_window_collapsed, mac_bring_window_to_front)
15614 (mac_send_window_behind, mac_hide_window, mac_show_window)
15615 (mac_collapse_window, mac_front_non_floating_window)
15616 (mac_active_non_floating_window, mac_activate_window)
15617 (mac_move_window_structure, mac_move_window, mac_size_window)
15618 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15619
15620 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15621 (enum mac_menu_kind): Move enum to mactoolbox.c.
15622 (min_menu_id): Move variable to mactoolbox.c.
15623 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15624 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15625 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15626 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15627 [TARGET_API_MAC_CARBON]: Likewise.
15628 (XtPointer): Move typedef to macgui.h.
15629 (enum button_type): Move enum to macgui.h.
15630 (widget_value): Move typedef to macgui.h.
15631 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15632 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15633 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15634 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15635 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15636 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15637 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15638 (popup_activated_flag): Make variable non-static.
15639 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15640 (add_menu_item, fill_menu, dispose_menus):
15641 Move functions to mactoolbox.c.
15642 (restore_show_help_function, menu_target_item_handler)
15643 (install_menu_target_item_handler, mac_handle_dialog_event)
15644 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15645 [TARGET_API_MAC_CARBON]: Likewise.
15646 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15647 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15648 (find_and_call_menu_selection, name_is_separator): Make function
15649 non-static.
15650 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15651 to mactoolbox.c.
15652 (set_frame_menubar): Don't call install_menu_quit_handler.
15653 (menu_item_selection): New variable.
15654 (mac_menu_show): Use create_and_show_popup_menu.
15655 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15656 selection but set variable menu_item_selection. All uses changed.
15657 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15658 Call install_menu_quit_handler. Move to mactoolbox.c.
15659
15660 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15661 (Selection): Move typedef to macgui.h.
15662 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15663 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15664 Make variables non-static.
15665 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15666 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15667 Make functions non-static.
15668 (Vmac_service_selection) [MAC_OSX]: Likewise.
15669 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15670 (mac_valid_selection_target_p, mac_clear_selection)
15671 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15672 (mac_put_selection_value, mac_selection_has_target_p)
15673 (mac_get_selection_value, mac_get_selection_target_list)
15674 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15675 Move functions to mactoolbox.c.
15676 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15677 Likewise.
15678 (copy_scrap_flavor_data, mac_handle_service_event)
15679 (install_service_handler) [MAC_OSX]: Likewise.
15680 (syms_of_macselect) <Vmac_dnd_known_types>:
15681 Use mac_dnd_default_known_types.
15682
15683 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15684 Move to mactoolbox.c.
15685 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15686 (Fx_selection_owner_p): Add EXFUN.
15687 (install_window_handler, remove_window_handler, XSetWindowBackground):
15688 Remove externs.
15689 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15690 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15691 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15692 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15693 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15694 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15695 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15696 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15697 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15698 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15699 (mac_valid_selection_target_p, mac_clear_selection)
15700 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15701 (mac_put_selection_value, mac_selection_has_target_p)
15702 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15703 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15704 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15705 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15706 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15707 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15708 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15709 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15710 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15711
15712 * mactoolbox.c: New file.
15713
157142008-04-18 Jason Rumney <jasonr@gnu.org>
15715
15716 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15717
157182008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15719
15720 * character.c (Fmultibyte_char_to_unibyte):
15721 Return latin1 chars unchanged.
15722
15723 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15724 relocated if it points to `name'.
15725
157262008-04-17 Kenichi Handa <handa@m17n.org>
15727
15728 * data.c (Faset): Allow setting a multibyte character in an
15729 ASCII-only unibyte string.
15730
15731 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15732
157332008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15734
15735 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15736 done in config.h.
15737
157382008-04-16 Juanma Barranquero <lekktu@gmail.com>
15739
15740 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15741 (Fchar_direction): Add usage in the docstring.
15742
157432008-04-15 Chong Yidong <cyd@stupidchicken.com>
15744
15745 * keyboard.c (read_key_sequence): Remove always-true checks.
15746
157472008-04-14 Jason Rumney <jasonr@gnu.org>
15748
15749 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15750 compatibility struct, for better underline positioning.
15751
157522008-04-13 David Hansen <david.hansen@gmx.net>
15753
15754 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15755 string.
15756
157572008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15758
15759 * m/hp800.h (XUINT, XSET): Remove.
15760
157612008-04-12 Juanma Barranquero <lekktu@gmail.com>
15762
15763 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15764 previous change.
15765
157662008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15767
15768 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15769 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15770
157712008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15772
15773 * keymap.h (map_keymap_canonical): Declare.
15774 * xmenu.c (single_keymap_panes): Use it.
15775
157762008-04-11 Glenn Morris <rgm@gnu.org>
15777
15778 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15779 set the target's value to that of the alias.
15780
157812008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15782
15783 * term.c (set_tty_color_mode): Left over typo.
15784
157852008-04-10 Michael Albinus <michael.albinus@gmx.de>
15786
15787 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15788 only after check for file name handler functions. Signal, when
15789 native functionality is not supported.
15790 (syms_of_fileio): Declare it unconditionally.
15791
157922008-04-10 Jason Rumney <jasonr@gnu.org>
15793
15794 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15795 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15796
15797 * w32.c (logon_network_drive): Also logon to remote drives that
15798 are mapped to drive letters.
15799
158002008-04-10 Glenn Morris <rgm@gnu.org>
15801
15802 * xdisp.c (truncate-partial-width-windows): Doc fix.
15803
158042008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15805
15806 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15807 Move functions to minibuffer.el.
15808 (syms_of_fileio): Don't declare them.
15809
158102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15811
15812 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15813 (syms_of_minibuf): Remove its initialization.
15814
15815 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15816
158172008-04-09 Juanma Barranquero <lekktu@gmail.com>
15818
15819 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15820
158212008-04-09 Jason Rumney <jasonr@gnu.org>
15822
15823 * makefile.w32-in (distclean): Delete makefile too.
15824 (maintainer-clean): New target.
15825
15826 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15827
15828 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15829 for new font backend and composite cases.
15830
158312008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15832
15833 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15834 Most of the code moved to run_timers.
15835 (do_pending_atimers): Call run_timers.
15836 (run_timers): New function.
15837
15838 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15839 run atimers.
15840
15841 * process.c (wait_reading_process_output): The same as above.
15842
158432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15844
15845 * minibuf.c (last_exact_completion): Remove variable.
15846 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15847 (complete_and_exit_1, complete_and_exit_2)
15848 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15849 (Fdisplay_completion_list, display_completion_list_1)
15850 (Fminibuffer_completion_help, Fself_insert_and_exit)
15851 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15852 minibuffer.el.
15853 (syms_of_minibuf): Remove corresponding initializations.
15854
15855 * keyboard.c (Qdeactivate_mark): New var.
15856 (command_loop_1): Use it to call `deactivate-mark'.
15857 (syms_of_keyboard): Initialize it.
15858
15859 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15860 to another frame.
15861 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15862 Don't call set_tty_color_mode.
15863 (store_frame_param): Reset previous_frame rather than call
15864 set_tty_color_mode.
15865 * term.c (set_tty_color_mode): Rewrite.
15866 * dispextern.h (set_tty_color_mode): New type.
15867 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15868
158692008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15870
15871 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15872 for generic chars, which do not exist any more in emacs-unicode.
15873
158742008-04-08 Michael Albinus <michael.albinus@gmx.de>
15875
15876 * coding.c (detect_coding_emacs_mule)
15877 (Ffind_operation_coding_system): Fix typo.
15878
158792008-04-08 Jason Rumney <jasonr@gnu.org>
15880
15881 * w32uniscribe.c (SNAME): Extract only symbol name.
15882
15883 * w32font.h (struct w32_metric_cache): New struct.
15884 (w32font_info): Use it.
15885 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15886 (CACHE_BLOCKSIZE): New constants.
15887
15888 * w32font.c (Qja, Qko, Qzh): New symbols.
15889 (syms_of_w32font): Initialise them.
15890 (font_matches_spec): Use them to filter by language.
15891 (recompute_cached_metrics): Remove function.
15892 (compute_metrics, clear_cached_metrics): New functions.
15893 (w32font_encode_char): Use them to manage metric cache.
15894 (w32font_text_extents): Cache metrics for all glyphs on demand.
15895 Delay converting glyph indices to WORD until needed.
15896 (w32font_open_internal): Initialize metric cache to empty.
15897 (registry_to_w32_charset): Charset should always be a symbol.
15898 (fill_in_logfont, list_all_matching_fonts): Family should
15899 always be a symbol.
15900
159012008-04-06 Jason Rumney <jasonr@gnu.org>
15902
15903 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15904 Give up if glyph indices not supported. Use uniscribe obtained
15905 ABC widths for individual metrics. Map glyph clusters back to
15906 characters using fClusterStart flag. Return number of glyphs
15907 produced, not chars processed.
15908 (uniscribe_shape): Map char at FROM to current glyph.
15909
159102008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15911
15912 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15913 Use SetMenuItemHierarchicalMenu.
15914
159152008-04-05 Jason Rumney <jasonr@gnu.org>
15916
15917 * image.c (pbm_load): Allow color values up to 65535.
15918 Throw an error if max_color_idx is outside the supported range.
15919 Report an error when image size is invalid.
15920 Read two bytes at a time when raw images have max_color_idx above 255.
15921
aac0c6e3
MR
159222008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15923
15924 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15925 append "CCL: Quitted" when the CCL program is quitted.
15926 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15927
15928 * ccl.h (struct ccl_program): New member quit_silently.
15929
159302008-04-05 Chong Yidong <cyd@stupidchicken.com>
15931
15932 * search.c (compile_pattern_1): Treat non-nil and non-string of
15933 search-spaces-regexp as nil.
15934
15935 * minibuf.c (Fassoc_string): Tweak docstring.
15936
159372008-04-05 Eli Zaretskii <eliz@gnu.org>
15938
15939 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15940 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15941 2008-03-14 to force inode be positive.
15942
15943 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15944 _S_* ones, since we now use our own sys/stat.h.
15945 (stat, fstat): Don't mangle the inode number.
15946 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15947
159482008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15949
15950 * frame.h (struct frame): Give one more bit to `visible' since we use
15951 values larger than 1 to indicate obscured frames on ttys.
15952
15953 * keymap.c (Qkeymap_canonicalize): New var.
15954 (Fmap_keymap_internal): New fun.
15955 (describe_map): Use keymap-canonicalize.
15956
15957 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15958 (Fundo_boundary): Set them.
15959 (syms_of_undo): Initialize them.
15960 (record_point): Use them instead of last_point_position*.
15961 (last_undo_buffer): Change type.
15962
159632008-04-04 Jason Rumney <jasonr@gnu.org>
15964
15965 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15966 (recompute_cached_metrics): Don't set ascent and descent per char.
15967
15968 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15969 (uniscribe_check_otf): Add GC protection before consing.
15970 Rearrange loop for counting features.
15971
159722008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15973
15974 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15975 buffer with byte-size of source buffer.
15976
159772008-04-03 Chong Yidong <cyd@stupidchicken.com>
15978
15979 * callint.c (Fcall_interactively): Handle temporary region even
15980 when shift-select-mode is off.
15981
159822008-04-03 Jason Rumney <jasonr@gnu.org>
15983
15984 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15985
159862008-04-03 Kenichi Handa <handa@m17n.org>
15987
15988 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15989 (CATEGORY_MASK_UTF_16): Likewise.
15990 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15991 binary file.
15992 (detect_coding): Add null-byte detection for a binary file.
15993 (detect_coding_system): Likewise.
15994
159952008-04-03 Jason Rumney <jasonr@gnu.org>
15996
15997 * w32uniscribe.c: New file.
15998
15999 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16000
16001 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16002
16003 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16004 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16005 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16006 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16007 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16008 (Qphonetic): New symbols.
16009 (syms_of_w32font): Initialize them.
16010 (font_supported_scripts): Use them.
16011 (w32font_list_family): List all charsets.
16012 (w32font_text_extents, recompute_cached_metrics): Fix metric
16013 calculations.
16014 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16015 Give opentype fonts their own format.
16016 (font_matches_spec): New arguments backend and logfont.
16017 Handle :otf spec for uniscribe backend.
16018 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16019 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16020
16021 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16022 font backend.
16023 (globals_of_w32fns): Initialize uniscribe font backend.
16024
16025 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16026 dependencies.
16027 (w32uniscribe.$(O)): New file to build.
16028 (FONT_OBJ): Include w32uniscribe.$(O).
16029 (LIBS): Add uniscribe libraries.
16030
16031 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16032
160332008-04-02 Chong Yidong <cyd@stupidchicken.com>
16034
16035 * callint.c (Vshift_select_mode): New var.
16036 (Finteractive): Document new ^ spec.
16037 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16038 is present.
16039
16040 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16041 (command_loop_1): Avoid running the direct display versions of
16042 forward-char and backward-char if shift-selection may occur.
16043 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16044 shift-translation takes place.
16045
16046 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16047 avoid clobbering by define-minor-mode.
16048
16049 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16050 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16051
16052 * syntax.c (Fforward_word): Add ^ interactive spec.
16053
16054 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16055 (Fscroll_right): Add ^ interactive spec.
16056
160572008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16058
16059 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16060
16061 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16062
16063 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16064
160652008-03-31 Juri Linkov <juri@jurta.org>
16066
16067 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16068
160692008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16070
16071 * gtkutil.c (xg_set_geometry): Fix indentation.
16072 (xg_resize_outer_widget): Remove.
16073 (x_wm_size_hint_off): Fix indentation.
16074 (xg_frame_set_char_size): Call flush_and_sync after
16075 gtk_window_resize.
16076 (x_wm_set_size_hint): Pass NULL as geometry window to
16077 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16078 Add menu bar and tool bar height to base height.
16079 (xg_update_frame_menubar, free_frame_menubar)
16080 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16081 (update_frame_tool_bar, free_frame_tool_bar):
16082 Change xg_resize_outer_widget to xg_frame_set_char_size.
16083
160842008-03-30 Michael Albinus <michael.albinus@gmx.de>
16085
16086 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16087 (Fdbus_call_method): New parameter TIMEOUT.
16088 (dbus-send-signal): Optimize UNGCPRO call.
16089
160902008-03-29 Juri Linkov <juri@jurta.org>
16091
16092 * window.c (Fdisplay_buffer): Move call to
16093 Vsplit_window_preferred_function out of conditions that check
16094 if window is eligible for vertical splitting.
16095 When Vsplit_window_preferred_function is non-nil, call it and use
16096 its non-nil return value as window. Otherwise, continue doing
16097 vertical splitting using Fsplit_window with arg horflag=nil.
16098 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16099 default value from `split-window' to nil.
16100
161012008-03-29 Juri Linkov <juri@jurta.org>
16102
16103 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16104 for interactive code letters 'b' and 'B'.
16105
161062008-03-29 Eli Zaretskii <eliz@gnu.org>
16107
16108 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16109 multibyte string.
16110
161112008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16112
16113 * keyboard.c (pending_funcalls): New var.
16114 (timer_check): Run it.
16115 (syms_of_keyboard): Initialize it.
16116 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16117 (Vdelete_terminal_functions): New vars.
16118 (syms_of_terminal): Initialize them.
16119 (Fdelete_terminal): Run delete-terminal-functions.
16120 * xdisp.c (safe_eval): Rewrite.
16121 (safe_call2): New fun.
16122 * frame.c (Qdelete_frame_functions): New var.
16123 (syms_of_frame): Initialize it.
16124 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16125 * lisp.h (safe_call2, pending_funcalls): Declare.
16126
161272008-03-28 Andreas Schwab <schwab@suse.de>
16128
16129 * indent.c (Fmove_to_column): Move declaration before statements.
16130
161312008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16132
16133 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16134 (struct frame): Use bit fields for boolean vars.
16135
16136 * process.c (server_accept_connection): Simplify naming.
16137 (emacs_get_tty_pgrp): Use SDATA.
16138
16139 * coding.c (decode_coding_object): Fix last change.
16140
161412008-03-27 Jason Rumney <jasonr@gnu.org>
16142
16143 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16144
161452008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16146
16147 * charset.c (Fdefine_charset_internal): Change the way of
16148 registering charsets in Vcharset_order_list.
16149 (syms_of_charset): Make the charset `eight-bit' supplementary.
16150
161512008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16152
16153 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16154 operations, to avoid having the difference between pointers
16155 overflow.
16156
161572008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16158
16159 * indent.c (check_display_width): New fun.
16160 (scan_for_column): Use it.
16161
16162 * data.c (syms_of_data): Mark most-positive-fixnum and
16163 most-negative-fixnum as constants.
16164
16165 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16166
16167 * indent.c (scan_for_column): Extract from current_column_1.
16168 Merge with the same code from Fmove_to_column.
16169 (current_column_1, Fmove_to_column): Use it.
16170
161712008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16172
16173 * keymap.c (map_keymap_internal): New fun.
16174 (map_keymap): Use it.
16175 (Fmap_keymap_internal): New fun.
16176 (Fmap_keymap): Remove left-out test from before make_save_value.
16177
16178 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16179
16180 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16181 Use XCAR/XCDR.
16182
16183 * process.h (struct Lisp_Process): Remove filter_multibyte.
16184 * process.c (QCfilter_multibyte): Remove.
16185 (setup_process_coding_systems): Don't use filter_multibyte.
16186 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16187 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16188 (Fset_process_filter_multibyte): Change the coding-system to
16189 approximate the previous behavior.
16190 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16191 coding-system.
16192
16193 * coding.c (decode_coding_object): When not decoding into a buffer,
16194 obey the coding system's preference of (uni|multi)byte.
16195
161962008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16197
16198 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16199 every char is changed and has a different byte-length.
16200 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16201 Fix int -> EMACS_INT.
16202
162032008-03-23 David Hansen <david.hansen@gmx.net>
16204
16205 * dbusbind.c (xd_read_message): Remove extra copying of message
16206 strings. Check for NULL `interface' or `member'.
16207
162082008-03-22 Eli Zaretskii <eliz@gnu.org>
16209
16210 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16211 cFileName a file name that includes `?' characters, use the 8+3
16212 alias in cAlternateFileName instead.
16213
162142008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16215
16216 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16217
162182008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16219
16220 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16221 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16222 work on current_buffer only instead (that was already the case
16223 for some of the code anyway).
16224 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16225 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16226 (SET_PT, SET_PT_BOTH): Adjust.
16227 * intervals.h (set_point, temp_set_point, set_point_both)
16228 (temp_set_point_both): Remove redundant declarations.
16229
162302008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16231
16232 * fileio.c (Finsert_file_contents):
16233 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16234 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16235 when buffer != current_buffer anyway.
16236
162372008-03-20 Andreas Schwab <schwab@suse.de>
16238
16239 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16240 as default.
16241
162422008-03-19 Jason Rumney <jasonr@gnu.org>
16243
16244 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16245 (syms_of_w32fns): Initialize them.
16246 (HOURGLASS_ID): New constant.
16247 (x_window_to_frame): Don't check hourglass_window.
16248 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16249 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16250 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16251 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16252 Only change the cursor if hourglass is not active.
16253 (Fx_create_frame): Initialize frame's current_cursor.
16254 (hourglass_atimer): Remove.
16255 (hourglass_started): New function.
16256 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16257 (show_hourglass): Adapt to w32, changing argument to frame.
16258
16259 * w32term.h (struct w32_output): Remove hourglass_window.
16260 Add current_cursor.
16261
16262 * eval.c (call_debugger, Fsignal):
16263 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16264 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16265 (Fexecute_extended_command, cancel_hourglass_unwind):
16266 * minibuf.c (read_minibuf):
16267 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16268
162692008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16270
16271 * window.c (run_funs): New fun.
16272 (run_window_configuration_change_hook): Use it to run the buffer-local
16273 and the global part of the hook.
16274
16275 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16276 (unwind_format_mode_line): Restore selected window.
16277 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16278
162792008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16280
16281 * editfns.c (Fchar_equal): Check they are valid characters.
16282
16283 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16284
162852008-03-17 Andreas Schwab <schwab@suse.de>
16286
16287 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16288 against a charset.
16289
16290 * lisp.h (Fbuffer_list): Declare.
16291
162922008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16293
aac0c6e3
MR
16294 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16295 handlebox_widget is != 0.
16296
162972008-03-16 Juri Linkov <juri@jurta.org>
16298
16299 * callint.c (Fcall_interactively): For interactive code letters
16300 'b' and 'B' put the buffer list into the list of default "future"
16301 values of the minibuffer.
16302
163032008-03-16 Andreas Schwab <schwab@suse.de>
16304
16305 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16306 modifiers.
16307
16308 * regex.c (re_match_2_internal): Correct matching of a charset
16309 against latin-1 characters.
16310
163112008-03-16 Kenichi Handa <handa@m17n.org>
16312
16313 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16314 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16315 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16316 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16317 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16318 CHAR_STRING_ADVANCE.
16319 (produce_chars): Fix for the case that the source and the
16320 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16321 instead of CHAR_STRING_ADVANCE.
16322 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16323 STRING_CHAR_ADVANCE.
16324
163252008-03-15 Andreas Schwab <schwab@suse.de>
16326
16327 * regex.c (re_match_2_internal): Correct matching of eight bit
16328 characters in unibyte strings.
16329
163302008-03-15 Martin Rudalics <rudalics@gmx.at>
16331
16332 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16333 at end of range when it coincides with the end of the buffer.
16334
163352008-03-14 Eli Zaretskii <eliz@gnu.org>
16336
16337 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16338
16339 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16340
163412008-03-14 Jason Rumney <jasonr@gnu.org>
16342
16343 * editfns.c (initial_tz): New variable.
16344 (syms_of_editfns): Initialize it.
16345 (Fset_time_zone_rule): Set it when first called.
16346 Use it when TZSTRING is nil.
16347
16348 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16349 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16350 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16351 (globals_of_w32fns): Initialize them.
16352 (compute_tip_xy): Use them to position tooltips.
16353
163542008-03-14 Glenn Morris <rgm@gnu.org>
16355
16356 * emacs.c (main): Revert previous change.
16357 (standard_args): Revert -internal-script back to -scriptload,
16358 and remove the long-option form.
16359
163602008-03-13 Glenn Morris <rgm@gnu.org>
16361
16362 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16363 Remove option -enable-font-backend.
16364
163652008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16366
16367 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16368
163692008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16370
16371 * xterm.c (x_connection_closed): For GTK: If this is the last
16372 terminal just exit without closing the display.
16373
163742008-03-11 Jason Rumney <jasonr@gnu.org>
16375
16376 * w32font.c (w32font_full_name): Use floor to round.
16377
f0131492 163782008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16379
16380 * sound.c (alsa_configure): Declare vol at beginning of block.
16381
16382 * fontset.c (Ffontset_info): Remove extra semicolon.
16383
163842008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16385
16386 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16387 size of resulting string.
16388
163892008-03-10 Jason Rumney <jasonr@gnu.org>
16390
16391 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16392
163932008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16394
16395 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16396 Don't pretend as if characters with display property haven't been
16397 consumed for string-replacing-string case.
16398
163992008-03-08 Kim F. Storm <storm@cua.dk>
16400
16401 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16402 (get_next_display_element, next_element_from_string)
16403 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16404
164052008-03-08 Andreas Schwab <schwab@suse.de>
16406
16407 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16408
164092008-03-06 Jason Rumney <jasonr@gnu.org>
16410
16411 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16412 when charset not specified. Only translate ANSI to unicode when
16413 font_type is truetype.
16414 (w32font_coverage_ok): New function.
16415 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16416
164172008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16418
16419 * lread.c (Fread_char): Resolve modifiers.
16420 (Fread_char_exclusive): Likewise.
16421
16422 * character.c (char_resolve_modifier_mask): New function.
16423 (char_string): Use char_resolve_modifier_mask.
16424 (Fchar_resolve_modifiers): New function.
16425 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16426 function.
16427
164282008-03-04 Jason Rumney <jasonr@gnu.org>
16429
16430 * makefile.w32-in: Always include w32font.c in the build.
16431 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16432
164332008-03-04 Andreas Schwab <schwab@suse.de>
16434
16435 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16436 (versionclean): Likewise.
16437
164382008-03-04 Juanma Barranquero <lekktu@gmail.com>
16439
16440 * .cvsignore: Add oo.
16441
164422008-03-03 Andreas Schwab <schwab@suse.de>
16443
16444 * coding.c (decode_coding_object): Inhibit gap shrinking while
16445 decoding in place.
16446
164472008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16448
16449 * w32term.c: Remove unused include "gnu.h".
16450 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16451
16452 * gnu.h: Rename to ...
16453 * emacs-icon.h: ... this.
16454 * xterm.c: Use emacs-icon.h instead of gnu.h.
16455 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16456
164572008-03-03 Juanma Barranquero <lekktu@gmail.com>
16458
16459 * w32font.c: Include math.h.
16460
164612008-03-03 Jason Rumney <jasonr@gnu.org>
16462
16463 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16464 Compute options separately.
16465 (w32font_open_internal): Set glyph_idx before caching metrics.
16466
16467 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16468 Define if system headers don't.
16469 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16470 (w32font_encode_char): Don't declare here.
16471
16472 * w32font.c (Quniscribe, QCformat): New symbols.
16473 (syms_of_w32font): Define them.
16474 (w32font_has_char): Indicate uncertainty.
16475 (w32font_encode_char): Encode as glyph point. Make static.
16476 (recompute_cached_metrics): New function.
16477 (w32font_open_internal): Use it. Set font to use glyph points
16478 initially. Set format based on type of font.
16479 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16480 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16481 on it. Set format based on information available here.
16482 (add_font_entity_to_list): Identify backend based on opentype_only.
16483
164842008-03-02 Andreas Schwab <schwab@suse.de>
16485
16486 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16487
16488 * coding.c (decode_coding_big5, produce_chars):
16489 Fix typos in last change.
16490
164912008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16492
16493 * gnu.h: New icon.
16494
164952008-03-02 Kenichi Handa <handa@m17n.org>
16496
16497 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16498 `dos', don't decode '\r' if that is the last in the source.
16499 (decode_coding_utf_16, decode_coding_emacs_mule)
16500 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16501 (decode_coding_raw_text, decode_coding_charset): Likewise.
16502 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16503
165042008-03-01 Jason Rumney <jasonr@gnu.org>
16505
16506 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16507
165082008-03-01 Kim F. Storm <storm@cua.dk>
16509
16510 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16511
165122008-03-01 Jason Rumney <jasonr@gnu.org>
16513
16514 * w32font.c (w32font_full_name): New function.
16515 (w32font_open_internal): Use it.
16516
165172008-03-01 Kim F. Storm <storm@cua.dk>
16518
16519 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16520
165212008-03-01 Jason Rumney <jasonr@gnu.org>
16522
16523 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16524
165252008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16526
16527 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16528 xg_frame_resized when the event is for the edit widget.
16529
16530 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16531
16532 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16533 set_char_size.
16534 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16535 operations on widgets here. Just set frame size if needed.
16536 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16537 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16538 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16539 the whole frame.
16540 (xg_create_tool_bar): Move attachment of the tool bar to
16541 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16542 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16543
165442008-03-01 Jason Rumney <jasonr@gnu.org>
16545
16546 * w32fns.c (w32_msg_pump): Disable debug code.
16547
165482008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16549
16550 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16551
165522008-02-29 Chong Yidong <cyd@stupidchicken.com>
16553
16554 * xdisp.c (next_overlay_string): Don't set
16555 overlay_strings_at_end_processed_p if we're currently reading from
16556 a display string.
16557
165582008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16559
16560 * xdisp.c (get_overlay_strings_1): Fix typo.
16561
165622008-02-29 Chong Yidong <cyd@stupidchicken.com>
16563
16564 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16565
165662008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16567
16568 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16569
16570 * xdisp.c (display_mode_element): Cancel the previous change.
16571 (decode_mode_spec): Likewise.
16572 (handle_auto_composed_prop): Don't make composition if it->string
16573 is a string.
16574
165752008-02-27 Kim F. Storm <storm@cua.dk>
16576
16577 * lisp.h (GLYPH): Change type from int to struct with separate char
16578 and face_id members.
16579 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16580 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16581 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16582 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16583 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16584 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16585 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16586 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16587 handle new Lisp glyph code encoding, either an integer or a cons.
16588
16589 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16590 (GLYPH_ALIAS): Delete.
16591 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16592 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16593 (GLYPH_FROM_CHAR): Replace macro by ...
16594 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16595
16596 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16597 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16598 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16599 (GLYPH_INVALID_P): New macro.
16600 (spec_glyph_lookup_face): Update prototype.
16601
16602 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16603 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16604 new glyph code encoding.
16605 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16606 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16607
16608 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16609 Adapt to new glyph type and new glyph code encoding.
16610
16611 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16612
16613 * indent.c (current_column, current_column_1, Fmove_to_column)
16614 (compute_motion): Adapt to new glyph code encoding.
16615
16616 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16617
166182008-02-27 Chong Yidong <cyd@stupidchicken.com>
16619
16620 * process.c (wait_reading_process_output): Check for window
16621 changes caused by timers.
16622 Suggested by Johan Bockgård.
16623
166242008-02-27 Glenn Morris <rgm@gnu.org>
16625
16626 * emacs.c (USAGE1): Add `--disable-font-backend'.
16627
166282008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16629
16630 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16631 is made to the buffer.
16632
166332008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16634
16635 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16636 (face_at_string_position):
16637 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16638 (face_at_string_position):
16639 * xdisp.c (display_string, next_overlay_change):
16640 * buffer.h (overlays_at):
16641 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16642 Update callers.
16643
166442008-02-26 Chong Yidong <cyd@stupidchicken.com>
16645
16646 * editfns.c (Fformat): Doc fix.
16647
166482008-02-26 Juanma Barranquero <lekktu@gmail.com>
16649
16650 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16651 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16652 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16653
166542008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16655
16656 * buffer.c (Fbuffer_swap_text): New function.
16657 (syms_of_buffer): Defsubr it.
16658
166592008-02-25 Chong Yidong <cyd@stupidchicken.com>
16660
16661 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16662
166632008-02-25 Jason Rumney <jasonr@gnu.org>
16664
16665 * w32font.c (w32font_draw): Draw one character at a time when padding.
16666
166672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16668
16669 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16670 Handle a nil arg. Use run_window_configuration_change_hook.
16671 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16672 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16673 Use run_window_configuration_change_hook.
16674
166752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16676
16677 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16678 1-pixel width.
16679
166802008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16681
16682 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16683 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16684 if the glyph in the font is zero pixel with.
16685
16686 * dispextern.h (struct glyph_string): New member padding_p.
16687
16688 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16689
16690 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16691
16692 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16693
16694 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16695
16696 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16697
166982008-02-25 Jason Rumney <jasonr@gnu.org>
16699
16700 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16701
167022008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16703
16704 Allow fine-grained image-cache flushing.
16705 * dispextern.h (struct image): Add `dependencies' field.
16706 (clear_image_caches): Change arg to Lisp_Object.
16707 * image.c (make_image): Initialize `dependencies' field.
16708 (clear_image_cache): Change arg to allow fine-grained flushing.
16709 Perform the flush even if image-cache-eviction-delay is nil.
16710 (clear_image_caches): Change arg to Lisp_Object.
16711 (Fclear_image_cache): Expand meaning of the argument.
16712 (mark_image): Mark `dependencies' field.
16713 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16714 (lface_hash): Use XHASH rather than XFASTINT.
16715 (face_at_buffer_position): Fix int -> EMACS_INT position.
16716 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16717 (select_frame_for_redisplay): Remove code duplication.
16718 (redisplay_internal): Adapt arg to call to clear_image_caches.
16719
167202008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16721
16722 * s/vms4-0.h:
16723 * s/vms4-2.h:
16724 * s/vms4-4.h:
16725 * s/vms5-5.h: Remove, unused.
16726
16727 * s/irix5-2.h:
16728 * s/irix6-0.h:
16729 * s/riscos5.h:
16730 * s/mach-bsd4-3.h:
16731 * m/mips4.h: Remove files for obsolete systems.
16732
16733 * Makefile.in:
16734 * filelock.c:
16735 * unexmips.c:
16736 * m/hp9000s300.h:
16737 * m/iris4d.h:
16738 * s/aix3-1.h:
16739 * s/hpux.h:
16740 * s/msdos.h:
16741 * s/usg5-0.h:
16742 * s/usg5-2-2.h:
16743 * s/usg5-2.h:
16744 * s/usg5-3.h: Remove references to obsolete variables.
16745
16746 * s/irix5-0.h: Remove, move all the contents ...
16747 * s/irix6-5.h: ... here. Simplify.
16748 * config.in: Regenerate.
16749
167502008-02-24 Jason Rumney <jasonr@gnu.org>
16751
16752 * w32term.c (x_draw_glyph_string_background): Clear the background
16753 manually when cleartype is in use.
16754 (x_draw_glyph_string_foreground): Draw text transparently when
16755 cleartype is in use.
16756
16757 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16758 a font into it unless we have to.
16759
167602008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16761
16762 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16763 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16764
aac0c6e3
MR
167652008-02-18 Jason Rumney <jasonr@gnu.org>
16766
16767 * w32fns.c (Fw32_shell_execute): Encode parameters.
16768
167692008-02-09 Eli Zaretskii <eliz@gnu.org>
16770
16771 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16772
167732008-02-05 Juanma Barranquero <lekktu@gmail.com>
16774
16775 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16776
167772008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16778
16779 * xterm.c (x_set_offset): Don't change the gravity if
16780 CHANGE_GRAVITY is -1.
16781
167822008-02-23 Chong Yidong <cyd@stupidchicken.com>
16783
16784 * fileio.c (auto_save_error_occurred): New var.
16785 (auto_save_error): Set it.
16786 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16787 error occurred.
16788
167892008-02-23 Eli Zaretskii <eliz@gnu.org>
16790
16791 * w32.c (globals_of_w32): Add initializations for
16792 g_b_init_get_sid_sub_authority and
16793 g_b_init_get_sid_sub_authority_count.
16794
167952008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16796
16797 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16798 (font_parse_xlfd): Use them for sanity check.
16799 (Finternal_set_font_style_table): Make sure the table is bijective.
16800
16801 Consolidate the image_cache to the terminal struct.
16802 * termhooks.h (P_): Remove redundant def.
16803 (struct terminal): New field `image_cache'.
16804 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16805 of FRAME_X_IMAGE_CACHE.
16806 * xterm.h (struct x_display_info): Remove image_cache field.
16807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16808 * w32term.h (struct w32_display_info): Remove image_cache field.
16809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16810 * macterm.h (struct mac_display_info): Remove image_cache field.
16811 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16812 * xterm.c (x_term_init):
16813 * w32term.c (w32_term_init):
16814 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16815 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16816 Remove declarations.
16817 (clear_image_caches, mark_image_cache): New declarations.
16818 * xfaces.c (clear_face_cache):
16819 * xdisp.c (redisplay_internal): Use clear_image_caches.
16820 * image.c (clear_image_cache): Don't check that a frame is on
16821 a window-system before checking if it shares the same cache.
16822 (clear_image_caches): New function.
16823 (Fclear_image_cache): Use it.
16824 (mark_image): Move from allo.c.
16825 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16826 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16827 (mark_object): Don't call mark_image_cache for frames.
16828 (mark_terminals): Call mark_image_cache.
16829
16830 * lisp.h (Fdelete_terminal): Declare.
16831
16832 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16833 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16834 wrong_type_argument.
16835
168362008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16837
16838 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16839 malayalam.el, and tamil.el. Add sinhala.el.
16840
168412008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16842
16843 * xterm.c (x_connection_closed): Consolidate identical tests.
16844 (x_delete_terminal): Don't crash if called via x_connection_closed.
16845
168462008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16847
16848 * xdisp.c (decode_mode_spec): New arg string.
16849 (display_mode_element): Adjust for the above change.
16850
168512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * callint.c (Fcall_interactively): Use AREF.
16854
168552008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16858
168592008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16860
16861 * xfns.c (Fx_show_tip): Set string to " " if empty.
16862
168632008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16864
16865 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16866 with Qt.
16867
168682008-02-17 Kenichi Handa <handa@m17n.org>
16869
16870 * ftfont.c (ftfont_shape): Return Lispy number.
16871
16872 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16873 for GCs.
16874 (Finternal_set_font_selection_order): Call font_update_sort_order
16875 only when enable_font_backend is set.
16876 (realize_x_face): Set face->font_info to that of default face only
16877 when enable_font_backend is set.
16878
16879 * xdisp.c (handle_composition_prop): Set it->c to the fist
16880 character of the composed region.
16881 (fill_composite_glyph_string): Set base_face->font_info to
16882 s->font_info. Get a face for ascii from base_face->ascii_face.
16883 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16884 with a face already decided.
16885 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16886 non-negative.
16887 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16888 call font_prepare_composition unconditionally.
16889
16890 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16891
16892 * xterm.h (struct x_display_info): New member font.
16893
16894 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16895 (x_set_mouse_face_gc, x_new_font): Likewise.
16896 (x_term_init): Setup display_info->font.
16897 (x_delete_terminal): Free display_info->font.
16898
16899 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16900
16901 * ftxfont.c (ftxfont_default_fid): Delete it.
16902 (ftxfont_open): Set xfont->fid to 0.
16903 (ftxfont_end_for_frame): Clear data specific to the frame and the
16904 font-driver.
16905
16906 * xftfont.c (xftfont_default_fid): Delete it.
16907 (xftfont_open): Set xfont->fid to 0.
16908
16909 * fontset.c (FONTSET_OBJLIST): New macro.
16910 (fontset_find_font): Update font-object list of the fontset.
16911 (free_realized_fontset): New function.
16912 (free_face_fontset): Call free_realized_fontset.
16913 (Ffont_info): Call font_close_object only when enable_font_backend
16914 is set.
16915
16916 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16917 [HAVE_NTGUI]: Include w32term.h.
16918 [MAC_OS]: Include macterm.ch.
16919 (font_otf_ValueRecord): Use make_number.
16920 (font_finish_cache): Fix handling of reference count.
16921 (font_clear_cache): Update num_fonts.
16922 (font_open_entity): Update smallest_char_width and
16923 smallest_font_height of the frame.
16924 (font_close_object): Update num_fonts.
16925 (Fclear_font_cache): Fix finding the target cache data.
16926
169272008-02-16 Glenn Morris <rgm@gnu.org>
16928
16929 * fontset.c (Finternal_char_font): Fix compilation warning.
16930
169312008-02-16 Eli Zaretskii <eliz@gnu.org>
16932
16933 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16934 instead of char arrays. Enlarge the size of array passed to
16935 get_token_information.
16936
16937 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16938 warnings.
16939
169402008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16941
16942 * .gdbinit: Don't set `args', it breaks gdb --args.
16943
169442008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16945
16946 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16947 within a narrowed buffer.
16948
169492008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16950
16951 * coding.c (decode_coding_object, encode_coding_object):
16952 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16953
169542008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16955
16956 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16957 hardcoding 1.
16958 (detect_coding_system):
16959 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16960 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16961 * insdel.c (insert_from_gap):
16962 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16963 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16964 (string_to_multibyte):
16965 * character.c (chars_in_text, multibyte_chars_in_text):
16966 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16967
16968 * character.h (FETCH_STRING_CHAR_ADVANCE)
16969 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16971 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16972
16973 * casefiddle.c (casify_region): Only call after-change and composition
16974 functions on the part of the region that was changed.
16975
16976 * keyboard.c (read_avail_input):
16977 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16978
169792008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16980
16981 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16982 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16983
169842008-02-11 Juanma Barranquero <lekktu@gmail.com>
16985
16986 * w32menu.c (push_submenu_start, push_submenu_end)
16987 (push_left_right_boundary, push_menu_pane, push_menu_item):
16988 * keyboard.c (read_key_sequence): Don't pass args with side effects
16989 to AREF, it fails when compiling with -DENABLE_CHECKING.
16990
169912008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16992
16993 * Makefile.in (${lispsource}international/charprop.el):
16994 Delete this target.
16995
16996 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16997 emacs-unicode-2.
16998
169992008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17002
170032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17004
17005 * frame.c (Qnoelisp): New symbol.
17006 (syms_of_frame): Initialize it.
17007 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17008 harmless Elisp code, from a strong `force' from x_connection_closed.
17009 * frame.h (Qnoelisp): Declare.
17010 * xterm.c (x_connection_closed): Pass `noelisp'.
17011
17012 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17013 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17014 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17015 rather than `int' for the type of `type'.
17016
170172008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17018
17019 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17020
17021 * Makefile.in (GNUC): Remove support for gcc-1.x.
17022
170232008-02-10 Richard Stallman <rms@gnu.org>
17024
17025 * lisp.h (ASET): Use AREF, not ASLOT.
17026
170272008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17028
17029 * lisp.h (ASET): Check bounds.
17030
170312008-02-10 Glenn Morris <rgm@gnu.org>
17032
17033 * buffer.c (mode-name): Doc fix.
17034
170352008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17036
17037 * Makefile.in:
17038 * emacs.c:
17039 * gmalloc.c:
17040 * keyboard.c:
17041 * lisp.h:
17042 * m/ibm370aix.h:
17043 * process.c:
17044 * regex.c:
17045 * s/hpux.h:
17046 * sysdep.c:
17047 * sysselect.h:
17048 * systty.h:
17049 * unexec.c:
17050 * w32term.c:
17051 * xsmfns.c:
17052 * xterm.c: Remove code that deals with obsolete variables.
17053
17054 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17055
17056 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17057 nothing else needs it anymore.
17058
170592008-02-09 Eli Zaretskii <eliz@gnu.org>
17060
17061 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17062 instead of unibyte_char_to_multibyte.
17063
170642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17065
17066 * s/gnu-linux.h: Remove commented out code.
17067
17068 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17069
17070 * Makefile.in: Update what RMS says about using autoconf.
17071 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17072 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17073 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17074 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17075
170762008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17077
17078 * keymap.c (Fkey_description): Move side effect outside of macro call.
17079
17080 * xfaces.c (Finternal_make_lisp_face):
17081 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17082
17083 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17084 (syms_of_fontset): Use ASET.
17085
17086 * fns.c (concat): Move side effect outside of macro call.
17087 (hash_clear): Use ASET.
17088
170892008-02-08 Richard Stallman <rms@gnu.org>
17090
17091 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17092 If FORCE, and frame has a surrogate minibuffer for another frame,
17093 delete the other frame first.
17094
170952008-02-07 Timo Savola <timo.savola@iki.fi>
17096
17097 * xterm.c (x_detect_focus_change): Handle embed client message.
17098 (handle_one_xevent): Ditto.
17099 (handle_one_xevent): If embedded and we get a button press/release,
17100 request focus.
17101 (xembed_set_info, xembed_send_message): New functions.
17102 (x_make_frame_visible): Call xembed_set_info if embedded.
17103 (x_make_frame_invisible): Call xembed_set_info if embedded.
17104 (x_term_init): Initialize Xatom_XEMBED.
17105 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17106 (x_iconify_frame): Ditto.
17107
17108 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17109 (enum xembed_info, enum xembed_message, enum xembed_focus)
17110 (enum xembed_modifier, enum xembed_accelerator): New.
17111 (xembed_set_info, xembed_send_message): Declare.
17112 (FRAME_X_EMBEDDED_P): New.
17113
17114 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17115 gtk_plug_new.
17116
17117 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17118 window ID of a frame.
17119 (x_window): Reparent frame if embedded.
17120 (Fx_create_frame): Don't set border width if embedded.
17121
17122 * emacs.c (USAGE3): Add --parent-id.
17123 (standard_args): Ditto.
17124
171252008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17126
17127 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17128
171292008-02-07 Jim Meyering <meyering@redhat.com>
17130
17131 Use "do...while (0)", not "if (1)...else" in macro definitions.
17132 The latter provokes a warning from gcc about the empty else, when
17133 followed by ";". Also, without that trailing semicolon, it would
17134 silently swallow up any following statement.
17135 * syntax.h (SETUP_SYNTAX_TABLE)
17136 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17137 * buffer.h (DECODE_POSITION): Likewise.
17138 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17139 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17140 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17141 (FETCH_CHAR_ADVANCE): Likewise.
17142 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17143
171442008-02-07 Jim Meyering <meyering@redhat.com>
17145
17146 * lread.c [lint]: Don't include <sys/inode.h>.
17147
171482008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17149
17150 * xselect.c (x_handle_dnd_message):
17151 * xmenu.c (digest_single_submenu, xmenu_show):
17152 * xdisp.c (with_echo_area_buffer_unwind_data)
17153 (format_mode_line_unwind_data, unwind_format_mode_line)
17154 (display_menu_bar):
17155 * eval.c (Ffetch_bytecode):
17156 * doc.c (store_function_docstring):
17157 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17158 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17159 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17160
171612008-02-07 Kenichi Handa <handa@m17n.org>
17162
17163 * ftxfont.c (ftxfont_open): Don't set
17164 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17165
17166 * ftfont.c (ftfont_open): Fix previous change.
17167
171682008-02-06 Jason Rumney <jasonr@gnu.org>
17169
17170 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17171 Use cached metrics for ASCII characters.
17172 (w32font_open_internal): Don't set font's owning_frame.
17173 Cache metrics for ASCII characters.
17174
17175 * w32font.h (struct w32font_info): Add ascii_metrics.
17176 Remove owning_frame.
17177
171782008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17179
17180 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17181 to negative value.
17182
17183 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17184
17185 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17186
17187 * charset.c (syms_of_charset): Set QCtest and Qeq.
17188
171892008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17190
17191 * process.c (Fstart_process):
17192 * callproc.c (Fcall_process): Handle the case where
17193 Funhandled_file_name_directory returns nil.
17194
17195 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17196 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17197 * font.c (check_gstring): Use them and AREF to access the vector before
17198 we know it's really a gstring.
17199 (Ffont_shape_text): Fix typo.
46e722a9 17200 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17201
17202 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17203 Declare.
17204
17205 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17206
172072008-02-05 Jason Rumney <jasonr@gnu.org>
17208
17209 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17210 Set smallest_font_height and smallest_char_width in display info.
17211
172122008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17213
17214 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17215
172162008-02-05 Miles Bader <miles@gnu.org>
17217
17218 * xfaces.c (get_lface_attributes, merge_named_face)
17219 (lookup_named_face, lookup_derived_face, realize_named_face):
17220 Revert 2008-02-01 change by cyd@stupidchicken.com.
17221
172222008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17223
17224 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17225 fallback fonts.
17226 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17227
172282008-02-04 Jason Rumney <jasonr@gnu.org>
17229
17230 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17231 set full_name.
17232 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17233
172342008-02-03 Jason Rumney <jasonr@gnu.org>
17235
17236 * makefile.w32-in (OBJ1): Include font.o here.
17237 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17238
172392008-02-02 Jason Rumney <jasonr@gnu.org>
17240
17241 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17242
172432008-02-01 Jason Rumney <jasonr@gnu.org>
17244
17245 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17246
17247 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17248
172492008-02-01 Andreas Schwab <schwab@suse.de>
17250
17251 * Makefile.in (shortlisp, lisp): Update for rename of
17252 ../lisp/language/myanmar.el.
17253
172542008-02-01 Chong Yidong <cyd@stupidchicken.com>
17255
17256 * xfaces.c (get_lface_attributes): Delete function.
17257 (merge_named_face, lookup_named_face, lookup_derived_face)
17258 (realize_named_face): Call lface_from_face_name directly, and use
17259 the fact that merge_face_vectors does not alter its FROM argument.
17260
172612008-02-01 Jason Rumney <jasonr@gnu.org>
17262
17263 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17264 input in the default locale. Handle non-Unicode multibyte input.
17265
172662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17267
17268 * fontset.c (reorder_font_vector): Exclude nil elements from the
17269 font group. Don't try multiple fonts.
17270 (fontset_font): Adjust for the above change.
17271 (Finternal_char_font): Return nil if the found font doesn't
17272 contain the character ch.
17273
17274 * Makefile.in (lisp, shortlisp): Add cham.el.
17275
172762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17277
17278 * font.h (FONTP): Make it return 1 also for a font-object.
17279
17280 * .gdbinit (xfontset): New function.
17281
17282 * font.c (font_find_for_lface): Check if the character C is
17283 supported or not only for the first font.
17284
17285 * fontset.c (reorder_font_vector): Fix typo.
17286 (fontset_find_font): Don't add a font-spec specifying a script.
17287 Use 0 (not Qt) for the indication of empty font-group. Change the
17288 format of RFONT-DEF. Return Qt if no font in the font-group
17289 support the character.
17290 (fontset_font): Adjust for the above change. If no font was
17291 found the character, remember that.
17292 (face_for_char): Adjust for the change of RFONT-DEF.
17293 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17294 no font for the target.
17295 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17296
172972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17298
17299 * font.c (font_load_for_face): Handle the case that the font in
17300 face->lface is a string.
17301
173022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17303
17304 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17305
173062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17307
17308 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17309 Fix previous change. If the frame is not on a window system,
17310 signal an error.
17311
173122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17313
17314 * coding.c (decode_coding_object, encode_coding_object): Adjust
17315 marker positions after conversion.
17316
17317 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17318
173192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17320
17321 * font.c (font_find_for_lface): Fix the handling of the return
17322 value of font_has_char.
17323 (Ffont_shape_text): Fix previous change.
17324
17325 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17326 (fontset_ref_and_range): Delete it.
17327 (fontset_find_font): Call char_table_ref_and_range instead of
17328 FONTSET_REF_AND_RANGE.
17329 (make_fontset): Don't setup font groups of Latin here.
17330 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17331 (new_fontset_from_font): Make the specified font the default for
17332 all Latin characters.
17333
173342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17335
17336 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17337 is on a window system before accessing the fontset of the frame.
17338
173392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17340
17341 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17342
17343 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17344 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17345
17346 * font.c (Ffont_shape_text): If the font driver doesn't have a
17347 shaper function, make zero-width glyphs to have at least one-pixel
17348 width. Fix setting of `to' field of glyphs.
17349
173502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17351
17352 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17353 glyphs.
17354
17355 * font.h (struct font_driver): Improve docstring of member `shape'.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * composite.c (syms_of_composite): Fix docstring of
17360 auto-composition-function.
17361
17362 * font.h (LGLYPH_SIZE): New macro.
17363
17364 * font.c (Ffont_fill_gstring): Stop filling when a character not
17365 supported by the font is found.
17366 (Ffont_shape_text): When a shape callback function returns nil,
17367 try at most two more times with larger gstring.
17368 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17369
17370 * xdisp.c (handle_auto_composed_prop): Change the argument to
17371 auto-composition-function.
17372
17373 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17374 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17375 Lispy glyph and store it in the lgstring.
17376
17377 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17378
17379 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17380
173812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17382
17383 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17384
17385 * fontset.c (Vfont_encoding_charset_alist): New variable.
17386 (syms_of_fontset): DEFVAR it.
17387 (reorder_font_vector, fontset_find_font): Optimize for the case of
17388 no need of reordering.
17389 (face_for_char): Map the charset property by
17390 Vfont_encoding_charset_alist.
17391
173922008-02-01 Jason Rumney <jasonr@gnu.org>
17393
17394 * w32font.c (logfonts_match): Don't check adstyle here.
17395 (font_matches_spec): Check here against physical font instead.
17396 (add_font_entity_to_list): Avoid some substitutions.
17397
17398 * font.c (font_parse_fcname): Default weight and slant to normal.
17399 (font_score): Prefer normal fonts if weight or slant unspecified.
17400 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17401 match freetype scores.
17402
174032008-02-01 Jason Rumney <jasonr@gnu.org>
17404
17405 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17406 font, as it may have been deleted.
17407 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17408 most common hyphenless variation.
17409 (logfonts_match): Check generic family.
17410 (font_matches_spec): Don't check generic family here.
17411 (fill_in_logfont): Set generic family based on adstyle.
17412
17413 * w32font.h (w32font_get_cache): Update declaration.
17414
174152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17416
17417 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17418
17419 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17420 If none of the new drivers are available, call font_update_drivers
17421 with the old drivers.
17422
17423 * w32font.c (w32font_get_cache): Adjust the argument type.
17424
17425 * xfont.c (xfont_get_cache): Adjust the argument type.
17426
17427 * font.h (struct font_driver): Change argument type of get_cache.
17428
17429 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17430
17431 * font.c (Ffont_get): Fix arguments to Fassoc.
17432 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17433 (font_clear_cache): New function.
17434 (font_list_entities, font_matching_entity): Use font_get_cache.
17435 (font_update_drivers): Call font_clear_cache when finishing a driver.
17436
17437 * fontset.c (fontset_find_font): Fix previous change.
17438
174392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17440
17441 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17442 dpyinfo->font_table.
17443 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17444 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17445
17446 * font.c (font_at): Handle the case that the arg C is negative.
17447 Handle the unibyte case.
17448 (Ffont_at): Call font_at with the arg C -1.
17449
17450 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17451 the position here, and call font_at with the arg C -1.
17452 Don't check the range of the existing composition at the point.
17453
174542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17455
17456 * fontset.c (fontset_add): New args charset_id and family.
17457 Change caller.
17458 (load_font_get_repertory, fontset_find_font): Assume that
17459 font_spec is always a font-spec object.
17460 (Fset_fontset_font): Always store a font-spec object in a fontset.
17461
17462 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17463 instead of get_property_and_range.
17464
174652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17466
17467 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17468 (xftfont_open): Don't keep locking face.
17469 (xftfont_close): Don't unlock face.
17470 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17471
17472 * fontset.c (fontset_find_font): Don't prefer a font of
17473 supplementary charset.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17478 script, langsys_tag to langsys, new member script.
17479 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17480 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17481 listing to the script specified in that property. Fix arg to
17482 OTF_check_features.
17483
174842008-02-01 Jason Rumney <jasonr@gnu.org>
17485
17486 * w32font.h: New file.
17487
17488 * w32font.c: Include it.
17489 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17490 (w32font_open): Set owning_frame.
17491 (w32font_text_extents): Use owning_frame.
17492 (struct font_callback_data): Add opentype_only field.
17493 (add_font_entity_to_list): Use it to filter fonts.
17494 Don't check against full name.
17495 (w32font_list_internal): New function.
17496 (w32font_list): Use it.
17497 (w32font_match_internal): New function.
17498 (w32font_match): Use it.
17499 (w32font_open_internal): New function.
17500 (w32font_open): Use it.
17501 (w32font_get_cache, w32font_close, w32font_has_char)
17502 (w32font_encode_char, w32font_text_extents, w32font_draw):
17503 Make non-static.
17504
17505 * makefile.w32-in (w32font.o): Depend on w32font.h.
17506
175072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17508
17509 * charset.c (Fdefine_charset_internal): Record a supplementary
17510 charset at the tail of Vcharset_order_list.
17511
17512 * font.c (Ffont_shape_text): Fix the return value.
17513
17514 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17515
17516 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17517
175182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17519
17520 * ftfont.c (struct OpenTypeSpec): New struct.
17521 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17522 (ftfont_get_open_type_spec): New function.
17523 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17524
17525 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17526
175272008-02-01 Jason Rumney <jasonr@gnu.org>
17528
17529 * w32font.c (add_font_entity_to_list): Compare only the beginning
17530 of full name.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17535 Never return HANDLED_RECOMPUTE_PROPS.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * font.c (font_gstring_produce): Delete it.
17540
17541 * composite.h (COMPOSITION_METHOD):
17542 Handle COMPOSITION_WITH_GLYPH_STRING.
17543
175442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17545
17546 * xfont.c (Qx): Delete.
17547 (syms_of_xfont): Don't initialize Qx.
17548
17549 * composite.h (enum composition_method):
17550 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17551
175522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17553
17554 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17555 (choose_face_font): Accept new form of font-spec.
17556
17557 * frame.h (font_driver_list): Declare it unconditionally.
17558 (struct frame): Define members font_driver_list and font_data_list
17559 unconditionally.
17560
17561 * fontset.c: Include "font.h" unconditionally.
17562 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17563 (Fset_fontset_font): Accept a font-spec object.
17564
17565 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17566 PIXEL_SIZE part a wild card.
17567
17568 * dispextern.h (struct glyph_string): Define members clip and
17569 num_clips unconditionally.
17570 (struct face): Define members font_info and extra unconditionally.
17571
17572 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17573 ftfont_info only when HAVE_LIBOTF is defined.
17574
175752008-02-01 Andreas Schwab <schwab@suse.de>
17576
17577 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17578 and end.
17579
175802008-02-01 Jason Rumney <jasonr@gnu.org>
17581
17582 * w32font.c (w32font_driver): Add new fields.
17583
175842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17585
17586 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17587 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17588 (LIBES): Add @M17N_FLT_CFLAGS@.
17589
17590 * composite.c (compose_text): Don't treat the new style
17591 composition specially.
17592
17593 * emacs.c (main): Call syms_of_font unconditionally.
17594
17595 * font.h (FONT_ENTITY_NOT_LOADABLE)
17596 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17597 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17598 (struct font_driver): New member shape.
17599 (font_registry_charsets): Extern it.
17600 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17601 (font_otf_capability, font_drive_otf): Delete their externs.
17602
17603 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17604 (font_charset_alist, font_registry_charsets): Move from xfont.c
17605 and rename.
17606 (font_prop_validate_otf): New function.
17607 (font_property_table): Register it for QCotf.
17608 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17609 (font_drive_otf): Delete.
17610 (font_prepare_composition): New arg F. Adjust for the change of
17611 lispy gstring.
17612 (font_find_for_lface): New arg C.
17613 (font_load_for_face): Adjust for the change of font_find_for_lface.
17614 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17615 lispy gstring.
17616 (Ffont_shape_text): New function.
17617 (Fopen_font): If the font size is not given, use 12-pixel.
17618 (Ffont_at): New arg STRING.
17619 (syms_of_font): Initalize font_charset_alist.
17620 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17621 conditionally.
17622
17623 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17624 fonts of the same font-spec. Change the format of RFONT-DEF.
17625 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17626 Adjust for the change of RFONT-DEF.
17627 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17628
17629 * ftfont.h: New file.
17630
17631 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17632 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17633 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17634 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17635 font_otf_capability and font_drive_otf, set ftfont_shape.
17636 (ftfont_list): Adjust for the change of :otf property value.
17637 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17638 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17639 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17640 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17641 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17642 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17643
17644 * w32term.c (x_draw_composite_glyph_string_foreground):
17645 Adjust for the change of lispy gstring.
17646
17647 * xdisp.c (handle_composition_prop): Adjust for the change of
17648 lispy gstring. Call a function for auto-composition with the
17649 third arg it->window.
17650 (fill_composite_glyph_string): Adjust for the change of lispy string.
17651 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17652
17653 * xfaces.c (set_font_frame_param): Adjust for the change of
17654 font_find_for_lface.
17655
17656 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17657 (xfont_registry_charsets): Likewise. Change caller.
17658 (syms_of_xfont): Don't handle x_font_charset_alist.
17659
17660 * xftfont.c: Include "ftfont.h".
17661 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17662 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17663 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17664 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17665 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17666 Set xftfont_driver.shape to xftfont_shape.
17667
17668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17669 the change of lispy gstring.
17670
176712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17672
17673 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17674
176752008-02-01 Jason Rumney <jasonr@gnu.org>
17676
17677 * w32font.c (w32font_draw): Fill background manually.
17678
176792008-02-01 Jason Rumney <jasonr@gnu.org>
17680
17681 * font.c (Qfontp): Remove unused symbol.
17682 (QCantialias): New symbol.
17683 (syms_of_font): Define it.
17684 (font_property_table): Set a validator for QCantialias.
17685
17686 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17687 Define if not already.
17688 (QCfamily): Share with xfaces.c.
17689 (Qstandard, Qsubpixel, Qnatural): New symbols.
17690 (syms_of_w32font): Define them. Don't define QCfamily here.
17691 (w32_antialias_type, lispy_antialias_type): New functions.
17692 (w32_enumfont_pattern_entity): New arg requested_font.
17693 Set antialias parameter if non-default was requested.
17694 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17695
176962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17697
17698 * lread.c (read1): Undo the previous change.
17699
177002008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17701
17702 * frame.c (Fdelete_frame): Call font_update_drivers only when
17703 USE_FONT_BACKEND is defined.
17704
177052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17706
17707 * font.h (struct font_bitmap): New member bits_per_pixel.
17708 (struct font_driver): New members start_for_frame and end_for_frame.
17709 (struct font_data_list): New struct.
17710 (font_put_frame_data, font_get_frame_data): Extern them.
17711
17712 * frame.h (struct frame): New member font_data_list.
17713
17714 * font.c (font_update_drivers): Call driver->start_for_frame and
17715 driver->end_for_frame at proper timings.
17716 (font_put_frame_data, font_get_frame_data): New functions.
17717 (Ffont_spec): Add usage in the docstring.
17718
17719 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17720 (Fdelete_frame): Call font_update_drivers.
17721
17722 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17723 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17724 (xftfont_get_xft_draw): New function.
17725 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17726 (xftfont_end_for_frame): New function.
17727 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17728
17729 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17730 Change argument. Cache GCs in the per-frame data.
17731 (struct ftxfont_frame_data): New struct.
17732 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17733 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17734 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17735 (ftxfont_end_for_frame): New function.
17736 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17737
17738 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * xselect.c (Vselection_coding_system)
17743 (Vnext_selection_coding_system): Delete them.
17744 (syms_of_xselect): Don't declare selection-coding-system and
17745 next-selection-coding-system. They are declared in select.el.
17746
177472008-02-01 Jason Rumney <jasonr@gnu.org>
17748
17749 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17750
17751 * w32fns.c: Include imm.h.
17752 (get_composition_string_fn, get_ime_context_fn): New optional
17753 system functions.
17754 (globals_of_w32fns): Load them from imm32.dll.
17755 (ignore_ime_char): New flag.
17756 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17757 WM_IME_ENDCOMPOSITION messages.
17758
17759 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17760 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17761
177622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17763
17764 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17765 (READCHAR_REPORT_MULTIBYTE): New macro.
17766 (readchar): New 2nd arg MULTIBYTE.
17767 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17768 Make symbol's name multibyte according to the multibyteness of the
17769 source.
17770
177712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17772
17773 * xfaces.c (face_for_overlay_string): Call lookup_face with
17774 correct arguments (fix of synching with the trunk).
17775
177762008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17779 (font_prop_validate_non_neg, font_prop_validate_spacing):
17780 Delete argument prop_index.
17781 (font_property_table): Change arguments to validater. Change Callers.
17782 (font_lispy_object): Delete.
17783 (font_at): Use font_find_object instead fo font_lispy_object.
17784
177852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17786
17787 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17788 and file names.
17789
177902008-02-01 Jason Rumney <jasonr@gnu.org>
17791
17792 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17793 (font_matches_spec): Remove debug output.
17794 (add_font_entity_to_list): Avoid using substituted fonts.
17795
177962008-02-01 Jason Rumney <jasonr@gnu.org>
17797
17798 * doc.c (Fsnarf_documentation):
17799 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17800
178012008-02-01 Miles Bader <miles@gnu.org>
17802
17803 * dispextern.h (struct glyph_row): Only define "clip" field if
17804 HAVE_WINDOW_SYSTEM is defined.
17805
178062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17807
17808 Fix up multi-tty merge.
17809
17810 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17811 and indentation.
17812
17813 * xfaces.c (free_realized_face, clear_face_gcs):
17814 Include font_done_for_face in the input_blocked section, just in case.
17815
17816 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17817 (get_char_face_and_encoding): Undo last change and remove the *other*
17818 duplicate definition (i.e. keep the one that's better scoped and that
17819 includes code for the font-backend).
17820
17821 * terminal.c (create_terminal): Default keyboard_coding to
17822 `no-conversion' and terminal_coding to `undecided'.
17823
17824 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17825
17826 * fontset.c (free_realized_fontsets): Check that the table entry does
17827 contain a fontset before trying to compare it to `base'.
17828
17829 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17830 syms_of_charset, and syms_of_coding earlier because init_window_once
17831 now needs Vcoding_system_hash_table to be setup.
17832
17833 * coding.h (default_buffer_file_coding): Remove.
17834
17835 * coding.c (default_buffer_file_coding): Remove.
17836 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17837 than ->symbol, and use the terminal-local coding system.
17838 (syms_of_coding): Don't setup the coding-systems that are not
17839 terminal-local.
17840 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17841
17842 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17843 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17844
17845 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17846 in chartab.c and were re-added here by mistake.
17847 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17848
17849 * doc.c (Fsnarf_documentation):
17850 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17851 src to etc.
17852
17853 * ChangeLog.10: Add mistakenly removed entry.
17854
178552008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17856
17857 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17858
178592008-02-01 Miles Bader <miles@gnu.org>
17860
17861 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17862 Add extra args to FACE_FOR_CHAR.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17867 in sequence.
17868
17869 * chartab.c (map_sub_char_table, map_char_table): If the range
17870 contains just one character, call the function with that character
17871 even if the depth is not 3.
17872
178732008-02-01 Jason Rumney <jasonr@gnu.org>
17874
17875 * w32font.c (w32font_text_extents): Calculate metrics for the
17876 whole string.
17877
178782008-02-01 Jason Rumney <jasonr@gnu.org>
17879
17880 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17881
178822008-02-01 Jason Rumney <jasonr@gnu.org>
17883
17884 * w32term.c (x_set_glyph_string_clipping): Use
17885 get_glyph_string_clip_rects.
17886 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17887 Adjust for the change of struct glyph_string.
17888
17889 * w32font.c (w32font_draw): Do clipping here.
17890
178912008-02-01 Kenichi Handa <handa@m17n.org>
17892
17893 * xftfont.c (xftfont_draw): Adjust for the change of struct
17894 glyph_string.
17895
17896 * xterm.c (x_set_glyph_string_clipping): Use
17897 get_glyph_string_clip_rects.
17898 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17899 Adjust for the change of struct glyph_string.
17900
17901 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17902 the resulting clip(s}.
17903 (expose_overlaps): Add arg r. Change callers. Set it to
17904 row->clip temporarily.
17905 (expose_window): Redraw rows overlapping the exposed area.
17906
17907 * dispextern.h (struct glyph_row): New member clip.
17908 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17909 clip_height, new member clip, and num_clips.
17910
179112008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * data.c (Fchar_or_string_p): Fix docstring.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17918 create a temporary XftDraw object.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * font.c (Ffontp): Fix docstring.
17923
17924 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17925 strong evidence of ISO-2022.
17926
179272008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17930 SYNTAX_ENTRY_FOLLOW_PARENT.
17931
179322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17933
17934 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17935 its type.
17936 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17937 Update to the new type of weak_hash_tables and next_weak.
17938
17939 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17940 a plain C pointer to Lisp_Hash_Table.
17941
17942 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17943 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17944 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17945 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17946 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17947 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17948 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17949 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17950 (GC_EQ): Remove since they've been identical to their non-GC_
17951 alter-egos ever since the markbit was eradicated.
17952
17953 * alloc.c:
17954 * buffer.c:
17955 * buffer.h:
17956 * data.c:
17957 * fileio.c:
17958 * filelock.c:
17959 * fns.c:
17960 * frame.h:
17961 * lisp.h:
17962 * macterm.c:
17963 * print.c:
17964 * process.c:
17965 * w32fns.c:
17966 * w32menu.c:
17967 * w32term.c:
17968 * xfns.c:
17969 * xmenu.c:
17970 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17971
179722008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * chartab.c (map_sub_char_table): Make it work for the top-level
17975 char-table. Fix handling of parent char-table.
17976 (map_char_table): Adjust for the above change.
17977
179782008-02-01 Jason Rumney <jasonr@gnu.org>
17979
17980 * w32font.c (Qgdi): Rename from Qw32.
17981
179822008-02-01 Jason Rumney <jasonr@gnu.org>
17983
17984 * w32bdf.c (get_quoted_string): Make function static.
17985
179862008-02-01 Kenichi Handa <handa@m17n.org>
17987
17988 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17989 bigger ascent and descent than those of the font, use them as
17990 font's ascent and descent.
17991
179922008-02-01 Kenichi Handa <handa@m17n.org>
17993
17994 * Makefile.in (${lispsource}international/charprop.el): Move this
17995 target within "#ifdef HAVE_UNIDATA" and "#endif".
17996
179972008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18000 (shortlisp): Add ../lisp/language/tai-viet.el.
18001
180022008-02-01 Ulrich Mueller <ulm@gentoo.org>
18003
18004 * Makefile.in (${lispsource}international/charprop.el): Depend on
18005 temacs${EXEEXT}.
18006
180072008-02-01 Jason Rumney <jasonr@gnu.org>
18008
18009 * w32font.c (w32font_close): Delete the GDI font object.
18010
18011 * w32menu.c: Include character.h.
18012
18013 * w32proc.c: Likewise.
18014
18015 * w32select.c: Likewise.
18016
18017 * makefile.w32-in (w32proc.o): Depend on character.h.
18018
180192008-02-01 Jason Rumney <jasonr@gnu.org>
18020
18021 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18022
18023 * w32menu.c (syms_of_w32menu): Likewise.
18024
18025 * w32proc.c (syms_of_ntproc): Likewise.
18026
18027 * w32select.c (syms_of_w32select): Likewise.
18028
18029 * w32term.c (syms_of_w32term): Likewise.
18030
180312008-02-01 Jason Rumney <jasonr@gnu.org>
18032
18033 * w32font.c (w32font_draw): Delete brush after using it.
18034
180352008-02-01 Jason Rumney <jasonr@gnu.org>
18036
18037 * w32font.c (w32font_open): Don't set font_idx.
18038 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18039 to font settings.
18040 (w32font_draw): Fill background explicitly.
18041
180422008-02-01 Jason Rumney <jasonr@gnu.org>
18043
18044 * w32term.c (w32_initialize): Don't call w32font_initialize.
18045
18046 * w32font.c (w32font_info): Remove subranges.
18047 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18048 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18049 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18050 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18051 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18052 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18053 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18054 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18055 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18056 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18057 New symbols.
18058 (font_callback_data): New struct.
18059 (w32font_list, w32font_match): Use it.
18060 (w32font_open): Don't populate subranges.
18061 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18062 (w32font_encode_char): Always return unicode code-point as-is.
18063 (w32font_text_extents): Supply a transformation matrix to
18064 GetGlyphOutline. Never look up by glyph index. Avoid looping
18065 twice. Use unicode version of GetTexExtentPoint32 instead of
18066 glyph index version.
18067 (set_fonts_frame): Remove.
18068 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18069 set frame parameter. Use backward compatible fake foundries.
18070 Save generic family in extra slot under QCfamily. Make width slot
18071 constant. Save QCspacing value. Save list of scripts instead of
18072 binary subranges.
18073 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18074 (add_font_entity_to_list): Use font_callback_data struct. Filter
18075 unwanted fonts.
18076 (add_one_font_entity_to_list): Use font_callback_data struct.
18077 (w32_registry): Default to iso10646_1.
18078 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18079 string font registries. Don't fill in font name if it is a generic
18080 family name, fill family instead. Use spacing, family and script
18081 extra info to fill pitch, family and charset fields.
18082 (list_all_matching_fonts): Use font_callback_data struct.
18083 (unicode_range_for_char): Remove.
18084 (font_supported_scripts): New function.
18085 (w32font_initialize): Remove.
18086 (syms_of_w32font): Update which symbols are defined.
18087
180882008-02-01 Jason Rumney <jasonr@gnu.org>
18089
18090 * font.c (font_pixel_size): Reverse assq_no_quit args.
18091
18092 * w32term.h (FONT_WIDTH): Report max width, not average.
18093 (FONT_MAX_WIDTH): Remove.
18094 (FONT_AVG_WIDTH): New macro.
18095
18096 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18097 redefinition of FONT_WIDTH.
18098
18099 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18100 (w32_cache_char_metrics): Use FONT_WIDTH.
18101
18102 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18103
181042008-02-01 Jason Rumney <jasonr@gnu.org>
18105
18106 * w32font.c (w32font_open): Make lfHeight negative.
18107
18108 * w32fns.c (x_default_font_parameter): Use new style font name.
18109 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18110
181112008-02-01 Jason Rumney <jasonr@gnu.org>
18112
18113 * w32font.c (QCsubranges): New symbol.
18114 (w32font_open, w32font_has_char): Get subranges from subproperty
18115 of extra.
18116 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18117 (syms_of_w32font): Define :subranges symbol.
18118
18119 * font.c (font_put_extra): Expose externally.
18120
18121 * font.h (font_put_extra): Move declaration from font.c.
18122
18123 * font.c (Ffont_get): Use font driver to determine otf capability.
18124 (adjust_anchor): Check if driver defines anchor_point before using.
18125
18126 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18127 (w32font_draw): Use options.
18128 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18129 Fix detection of truetype fonts.
18130 (registry_to_w32_charset): Handle charsets other than iso8859-1
18131 expressed as lisp symbols.
18132 (w32_registry): Express charset as lisp symbol.
18133 (fill_in_logfont): Reverse pixel and point height logic.
18134 Don't set width here. Set quality to default.
18135
18136 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18137 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18138
18139 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18140 Remove redundant loop and allocation.
18141
18142 * makefile.w32-in (font.o, w32font.o): New objects.
18143 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18144 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18145
18146 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18147 STORE_XCHARB a valid l-value.
18148
18149 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18150 calculations for non-Truetype fonts.
18151 (x_draw_glyph_string): Sync with xterm.c.
18152 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18153 Remove redundant code.
18154 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18155
18156 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18157 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18158
18159 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18160 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18161
18162 * w32font.c: New file for w32 font backend.
18163
181642008-02-01 Kenichi Handa <handa@m17n.org>
18165
18166 * term.c: Don't include "buffer.h" twice.
18167
181682008-02-01 Kenichi Handa <handa@m17n.org>
18169
18170 * character.c (Funibyte_string): New function.
18171 (syms_of_character): Defsubr it.
18172
181732008-02-01 Jason Rumney <jasonr@gnu.org>
18174
18175 * w32term.c [USE_FONT_BACKEND]:
18176 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18177 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18178 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18179 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18180 (x_free_frame_resources): Sync with xterm.c.
18181
181822008-02-01 Andreas Schwab <schwab@suse.de>
18183
18184 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18185 char-table size.
18186
181872008-02-01 Kenichi Handa <handa@m17n.org>
18188
18189 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18194 font_otf_gpos, add font_drive_otf.
18195
18196 * fontset.c (fontset_find_font): Pay attention to font size
18197 specified for a font.
18198 (reorder_font_vector): Check contents of font_def.
18199
18200 * font.c (struct otf_list): Delete it.
18201 (otf_list): Make it a lisp variable.
18202 (otf_open): Use lispy otf_list.
18203 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18204 (check_otf_features): New function.
18205 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18206 New functions.
18207 (font_drive_otf): New function merging font_otf_gsub and
18208 font_otf_gpos.
18209 (font_open_for_lface): New arg spec. Change argument order.
18210 (font_load_for_face): Adjust for the change of font_open_for_lface.
18211 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18212 Ffont_otf_gpos.
18213 (syms_of_font): Staticpro otf_list. Delete defsubr of
18214 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18215
18216 * xfaces.c (set_font_frame_param): Adjust for the change of
18217 font_open_for_lface.
18218
18219 * font.h (font_open_for_lface): Adjust prototype.
18220 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18221 member otf_drive.
18222 (font_otf_gsub, font_otf_gpos): Delete externs.
18223 (font_drive_otf): Extern it.
18224
182252008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * font.c (font_at): If the window W is not on a window system,
18228 return Qnil.
18229
18230 * coding.c (produce_chars, encode_coding): Don't call
18231 insert_from_gap if no characters to produce.
18232
182332008-02-01 Kenichi Handa <handa@m17n.org>
18234
18235 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18236 Fclear_face_cache.
18237
18238 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18239
182402008-02-01 Miles Bader <miles@gnu.org>
18241
18242 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18243 Parse "--disable-font-backend" option.
18244 (standard_args): Add "--disable-font-backend" option.
18245
182462008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * fontset.c (fontset_find_font): New function.
18249 (fontset_font): Use fontset_find_font.
18250 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18251 Register the specified font for all Latin characters.
18252 (new_fontset_from_font): Register the specified font for all Latin
18253 characters.
18254 (dump_fontset): For a realized fontset, include the base fontset
18255 name in the returned vector.
18256
182572008-02-01 Kenichi Handa <handa@m17n.org>
18258
18259 * character.h (CHAR_STRING): Cast C to unsigned on calling
18260 char_string.
18261
18262 * character.c (char_string): Type of arg C changed to unsigned.
18263 Signal an error if C is an invalid character code.
18264
18265 * editfns.c (general_insert_function, Fchar_to_string):
18266 Use CHARACTERP, not INTEGERP.
18267
182682008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18271 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18272
18273 * regex.c (analyse_first): Fix for multibyte characters in "case
18274 charset:" and "case categoryspec:".
18275
182762008-02-01 Andreas Schwab <schwab@suse.de>
18277
18278 * Makefile.in (LIBES): Move standard libraries to the end.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18283 nonzero, don't shrink the buffer nextb.
18284
18285 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18286
18287 * coding.c (coding_alloc_by_making_gap): New arg offset.
18288 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18289 offset.
18290 (decode_coding_iso_2022): Update coding->safe_charsets.
18291 (decode_coding_gap): Temporarily set
18292 current_buffer->text->inhibit_shrinking to 1.
18293
182942008-02-01 Kenichi Handa <handa@m17n.org>
18295
18296 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18297 indexing into elements of s->cmp and s->char2b.
18298
182992008-02-01 Juanma Barranquero <lekktu@gmail.com>
18300
18301 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18302
183032008-02-01 Kenichi Handa <handa@m17n.org>
18304
18305 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18306 target_multibyte instead of multibyte.
18307 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18308 (bcmp_translate): Change the argument name from multibyte to
18309 target_multibyte.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 These changes are to compile a regexp into a pattern that can be
18314 used both for multibyte and unibyte targets.
18315
18316 * Makefile.in (search.o): Depend on charset.h.
18317
18318 * character.c (multibyte_char_to_unibyte_safe): New function.
18319
18320 * search.c: Include "charset.h".
18321 (compile_pattern_1): Delete argument multibyte. Don't set
18322 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18323 (compile_pattern): Don't compare cp->buf.target_multibyte.
18324 Compare cp->buf.charset_unibyte.
18325 (compile_pattern): Set cp->buf.target_multibyte.
18326
18327 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18328
18329 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18330
18331 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18332 multibyte. Change callers.
18333 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18334 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18335 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18336 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18337 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18338 (regex_compile): Make the compiled pattern usable both for
18339 multibyte and unibyte targets.
18340 (analyse_first): Make the fastmap usable both for multibyte and
18341 unibyte targets.
18342 (TRANSLATE_VIA_MULTIBYTE): Delete.
18343 (re_match_2_internal): Pay attention to the case that the
18344 multibyteness of bufp and target may be different.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18349 empty box occupy at least one column width.
18350
183512008-02-01 Miles Bader <miles@gnu.org>
18352
18353 * Makefile.in: Remove redundant HAVE_XFT clause.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18362 being nil.
18363
183642008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18371
183722008-02-01 Kenichi Handa <handa@m17n.org>
18373
18374 * search.c (simple_search): Fix previous change.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * xftfont.c (ftfont_font_format): Extern declaration.
18379
18380 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18381
18382 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18383 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18384
18385 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18386 (ftfont_font_format): Fix previous change.
18387
18388 * font.h (Ffont_xlfd_name): EXFUN it.
18389
18390 * font.c (font_parse_xlfd): Fix the array size of `f'.
18391 (register_font_driver): Use EQ to compare driver->type.
18392
18393 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18394 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18395 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18400 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 * xfont.c (xfont_open): Set font->format.
18405
18406 * xftfont.c (xftfont_open): Set font->format.
18407
18408 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18409 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18410 (ftfont_open): Set font->format.
18411 (ftfont_font_format): New function.
18412
18413 * font.h (struct font): New member format.
18414
18415 * font.c (Qopentype): New variable.
18416 (syms_of_font): Defsym it.
18417 (Fquery_font): Change the format of the last element of the return
18418 value.
18419
184202008-02-01 Kenichi Handa <handa@m17n.org>
18421
18422 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18423 last resort.
18424
184252008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * coding.c (detect_coding_charset): Fix detection of multi-byte
18428 charset.
18429
184302008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18431
18432 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18433
184342008-02-01 Kenichi Handa <handa@m17n.org>
18435
18436 * xdisp.c (get_next_display_element): Set it->face_id for the
18437 first component of a composition.
18438 (x_produce_glyphs): Check if the font is changed or not for composition.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * fontset.c (Qlatin): New variable.
18443 (syms_of_fontset): Define it as a lisp symbol.
18444 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * font.c (font_unparse_fcname): Pay attention to the case that
18449 some of font property is a null string.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * term.c: Include "composite.h".
18454 (encode_terminal_code): Output all components of composition.
18455 Check the size of encode_terminal_src.
18456 (produce_glyphs): For composition, call produce_composite_glyph.
18457 (append_composite_glyph, produce_composite_glyph): New functions.
18458
18459 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18460 is not found, get font_info from the current ascii face.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18465 buffer-file-name to Qnil before calling insert_from_buffer.
18466
18467 * font.c (font_unparse_fcname): Pay attention to the case that
18468 foundry is a null string.
18469
184702008-02-01 Kenichi Handa <handa@m17n.org>
18471
18472 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18473
18474 * font.c (Qunicode_sip): New variable.
18475 (syms_of_font): Declare it as a Lisp symbol.
18476
18477 * font.h (Qunicode_sip): Extern it.
18478
184792008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * composite.c (get_composition_id): Pay attention to TAB component.
18482
18483 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18484 TAB. Adjust for the change of s->char2b which always points to
18485 the first element of allocated memory.
18486
18487 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18488
18489 * xdisp.c (handle_composition_prop): Set it->c to the first
18490 non-TAB component.
18491 (fill_composite_glyph_string): Change argument.
18492 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18493 (x_produce_glyphs): Fix handling of left/right padding.
18494
184952008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * coding.c (detect_coding_system): Fix for handling off
18498 inhibit_iso_escape_detection. Fix for the case that no coding
18499 system is defined for a specific coding category.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * font.c (font_matching_entity): Delete unused local var.
18504
18505 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18506 opening a font.
18507
18508 * fileio.c (Finsert_file_contents): On recovering a file, assume
18509 Unix-like eol.
18510 (choose_write_coding_system): On auto-saving a file, force
18511 Unix-like eol.
18512
18513 * coding.c (setup_coding_system): Fix setting of
18514 coding->common_flags based on eol_type.
18515 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18516 inherit from it.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * alloc.c (NSTATICS): Increas to 0x600.
18521
185222008-02-01 Kenichi Handa <handa@m17n.org>
18523
18524 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18525 (ftfont_list): Don't check :name property.
18526 (ftfont_match): New function.
18527 (ftfont_pattern_entity): If the pattern doesn't contain
18528 FC_SPACING, don't assume FC_MONO.
18529
18530 * font.h (struct font_driver): New member `match'.
18531 (font_update_drivers): Adjust prototype.
18532
18533 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18534 property of FONT.
18535 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18536 them unconditionally.
18537 (font_matching_entity): New function.
18538 (font_open_by_name): Try font_matching_entity if exact match is
18539 not found.
18540 (font_update_drivers): Delete the arg FONT. Return a list of
18541 actually used backends. Don't free faces, font caches here.
18542 Don't store data in frame parameters. Don't call x_set_font.
18543 (Ffont_spec): Store :name property as is.
18544 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18545 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18546 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18547 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18548 Call font->driver->otf_gsub instead of font_otf_gsub.
18549
18550 * frame.c (x_set_font_backend): Do more works that were done in
18551 font_update_drivers before.
18552
18553 * xfont.c (xfont_match): New function.
18554 (xfont_driver): Set xfont_driver.match to xfont_match.
18555 (xfont_draw): Set font in GC if necessary.
18556
18557 * ftxfont.c (ftxfont_match): New function.
18558 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18559
18560 * xftfont.c (xftfont_match): New function.
18561 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * font.h (struct font): New member scalable.
18566 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18567 (font_otf_gsub): Adjust prototype.
18568
18569 * font.c (font_otf_capability): Fix handling of the default langsys.
18570 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18571 Check the contents of SPEC.
18572 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18573 (check_gstring): New function.
18574 (REPLACEMENT_CHARACTER): New macro.
18575 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18576 glyph codes of GSTRING.
18577 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18578 (font_prepare_composition): Set cmp->glyph_len.
18579 (font_open_entity): Set font->scalable.
18580 (Ffont_get): Handle :otf property.
18581 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18582 functions.
18583 (Fquery_font): Use font->font.full_name.
18584 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18585 Sfont_otf_alternates.
18586
18587 * ftfont.c (ftfont_open): Set font->font.full_name and
18588 font->font.name properly. Fix calculation of font->font.height
18589 and font->min_width.
18590
18591 * ftxfont.c (ftxfont_create_gcs): New function.
18592 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18593 (ftxfont_draw_backgrond): Fix filling region.
18594 (ftxfont_default_fid): New function.
18595 (ftxfont_open): Set xfont->fid to the return value of
18596 ftxfont_default_fid.
18597 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18598 (ftxfont_done_face): Free only GCs that are created by
18599 ftxfont_create_gcs.
18600 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18601
18602 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18603 Clip to src->width, etc (not src->clip_XXX).
18604
18605 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18606 FontBackend frame parameter.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * font.h (struct font_driver_list): New member `on'.
18611 (Fclear_font_cache): EXFUN it.
18612 (font_update_drivers): Extern it.
18613
18614 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18615 (font_list_entities): Check driver_list->on.
18616 (register_font_driver): Initalize `on' member to 0.
18617 (font_update_drivers): New function.
18618 (Fclear_font_cache): Check driver_list->on.
18619
18620 * frame.h (Qfont_backend): Extern it.
18621 (x_set_font_backend): Extern it.
18622
18623 * frame.c (Qfont_backend): New variable.
18624 (frame_parms): New element for font-backend.
18625 (x_set_font_backend): New function.
18626
18627 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18628 FontBackend frame parameter.
18629 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18630 x_set_font_backend.
18631
18632 * xfont.c (xfont_list): Don't try listing by :name property if the
18633 name is not for XLFD.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18638 (LGLYPH_SET_TO): New macros.
18639 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18640 element of G is vector or not.
18641 (font_at): Extern it.
18642
18643 * font.c: Include window.h.
18644 (font_lispy_object): New function.
18645 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18646 end of valid glyph.
18647 (font_close_object): Fix getting (struct font *).
18648 (font_at): New function.
18649 (Ffont_get): If FONT is a font-object, get entity from it.
18650 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18651 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18652 range check.
18653 (Ffont_at): New function.
18654 (syms_of_font): Defsubr Sfont_at.
18655
18656 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18657 before the entry for Qcomposition.
18658 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18659 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18660 the font in gstring.
18661 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18662 LGLYPH_FORM (g) to detect the end of valid glyph.
18663 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18664 we are composing with gstring.
18665
18666 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18667 Check if adjustment is vector or not.
18668
18669 * Makefile.in (font.o): Make it depends on window.h.
18670
186712008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18674 adjustment is vector or not.
18675
186762008-02-01 Miles Bader <miles@gnu.org>
18677
18678 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18679
186802008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18683 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18684 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18685
18686 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18687 (DEVICE_DELTA): Fix typo.
18688 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18689 LGLYPH format.
18690
18691 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18692 the change of LGLYPH format.
18693
186942008-02-01 Kenichi Handa <handa@m17n.org>
18695
18696 * ftfont.c (ftfont_list): Fix typo.
18697 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18698
186992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18700
18701 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18702
18703 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18704 xftface_info is non-NULL.
18705
187062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18707
18708 * ftfont.c (ftfont_list): Move misplaced #endif.
18709
187102008-02-01 Kenichi Handa <handa@m17n.org>
18711
18712 * ftfont.c (ftfont_list): Pay attention to the case that
18713 FC_CAPABILITY is not defined.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xftfont.c (xftfont_open): Set charset related members to -1.
18718
18719 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18720 QCname.
18721 (ftfont_open): Set charset related members to -1.
18722
18723 * fontset.c (Votf_script_alist): New variable.
18724 (syms_of_fontset): Initialize it.
18725 (fontset_font): Delete unused variable.
18726
18727 * fontset.h (Votf_script_alist): Extern it.
18728
18729 * font.c (font_find_for_lface): Optimize code.
18730
18731 * font.h (font_close_object, font_merge_old_spec): Extern them.
18732
187332008-02-01 Kenichi Handa <handa@m17n.org>
18734
18735 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18736 (syms_of_font): Initialize them.
18737 (font_pixel_size): Allow float value in dpi.
18738 (font_prop_validate_type): Delete.
18739 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18740 Change caller.
18741 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18742 (font_prop_validate_extra): Delete.
18743 (font_prop_validate_spacing): New function.
18744 (font_property_table): Add elements for all known properties.
18745 (get_font_prop_index): Rename from check_font_prop_name. New
18746 argument FROM. Change caller.
18747 (font_prop_validate): Validate all known properties.
18748 (font_put_extra): Delete argument force. Change caller.
18749 (font_expand_wildcards): Make it static. Fix the way of shrinking
18750 the possible range.
18751 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18752 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18753 Change caller.
18754 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18755 (font_parse_fcname): Delete argument merge. Fix parsing of point
18756 size. Don't validate properties values here. Change caller.
18757 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18758 (font_open_by_name): Delete unused variable.
18759 (Ffont_spec): Likewise. Validate property values.
18760 (Ffont_match_p): New function.
18761
18762 * font.h (QCscalable): Extern it.
18763 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18764
18765 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18766
18767 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18768 (xfont_list_pattern): New function.
18769 (xfont_list): Use xfont_list_pattern.
18770
187712008-02-01 Kenichi Handa <handa@m17n.org>
18772
18773 * font.h (Flist_fonts): EXFUN it.
18774
187752008-02-01 Jason Rumney <jasonr@gnu.org>
18776
18777 * w32term.c (w32_initialize): Add back smoothing_type and
18778 smoothing_enabled definitions.
18779
187802008-02-01 Kenichi Handa <handa@m17n.org>
18781
18782 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18783 s->face->font on determining underline position.
18784
187852008-02-01 Kenichi Handa <handa@m17n.org>
18786
18787 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18788 (font_has_char): Accept font-object too.
18789 (font_find_for_lface): Try at first with a size specified in face.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18794 font_open_by_name.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * font.h (QCspacing, QCdpi): Extern them.
18799 (enum font_spacing): New enum.
18800 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18801
18802 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18803 (QCspacing, QCdpi): New variables.
18804 (syms_of_font): Initialize them.
18805 (font_pixel_size): New function.
18806 (font_put_extra): New function.
18807 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18808 in FONT_EXTRA.
18809 (font_parse_fcname): Handle enumerated values (e.g. bold).
18810 Fix handling font size. Add QCname property that contains only
18811 unknown properties.
18812 (font_score): Change argument. Change caller. Pay attention to
18813 FONT_PIXEL_SIZE_QUANTUM.
18814 (font_sort_entites, font_list_entities, font_find_for_lface)
18815 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18816 (Ffont_spec): Add QCname property that contains only unknown properties.
18817
18818 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18819 include weight in listing pattern, instead check weight of each
18820 listed font. Don't include scalable in pattern. Pay attention to
18821 FONT_PIXEL_SIZE_QUANTUM.
18822
188232008-02-01 Kenichi Handa <handa@m17n.org>
18824
18825 * font.c (font_parse_fcname): Fix parsing of point-size.
18826 (font_unparse_fcname): Produce symbolic names for style properties.
18827 (font_list_entities): Handle float size correctly.
18828 (font_open_by_name): Prefer `normal' property values if the name
18829 doesn't specify them.
18830
18831 * fontset.c (Finternal_char_font): Use font_get_name, not
18832 Ffont_xlfd_name.
18833
18834 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18835 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18836 pattern. Don't force scalable.
18837
18838 * xftfont.c (xftfont_open): For generating a name, start from
18839 96-byte buffer.
18840
188412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18842
18843 * frame.h (x_new_fontset2): Fix prototype.
18844
188452008-02-01 Kenichi Handa <handa@m17n.org>
18846
18847 * font.h (struct font_driver): Delete member parse_name.
18848 (font_match_p, font_get_spec, font_parse_fcname)
18849 (font_unparse_fcname): Extern them.
18850 (font_get_name): Adjust prototype.
18851
18852 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18853 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18854 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18855 unnecessary checks for weight, slant, and swidth.
18856 (font_parse_fcname): New function.
18857 (font_unparse_fcname): New function.
18858 (font_parse_name): New function.
18859 (font_match_p): New function.
18860 (font_get_name): Change return value to Lisp string.
18861 (font_get_spec): New function.
18862 (Qunspecified, Qignore_defface): Don't extern them.
18863 (font_find_for_lface): Assume that LFACE is fully specified.
18864 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18865 object, use it for FACE.
18866 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18867 driver->parse_name.
18868 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18869
18870 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18871 prototype.
18872
18873 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18874 argument F. Don't call Fnew_fontset. Instead, directly call
18875 make_fontset.
18876
18877 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18878
18879 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18880 of x_new_fontset2.
18881
18882 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18883 (Qsans__serif): New variables.
18884 (ftfont_generic_family_list): New variable.
18885 (syms_of_ftfont): Initialize the above variables.
18886 (ftfont_pattern_entity): Delete argument NAME.
18887 (ftfont_list_generic_family): New function.
18888 (ftfont_parse_name): Delete this function.
18889 (ftfont_list): Try generic family only when FcFontList found no font.
18890 (ftfont_list_family): Fix args to FcObjectSetBuild.
18891
18892 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18893 object in attrs[LFACE_FONT_INDEX].
18894 (set_lface_from_font_name): Cancel all changes for font-backend.
18895 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18896 function.
18897 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18898 font object in QCfont attribute.
18899 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18900 (realize_default_face) [USE_FONT_BACKEND]: Call
18901 set_lface_from_font_and_fontset.
18902
18903 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18904 "fixed", and signal error here if no suitable font was found.
18905
18906 * xfont.c (xfont_parse_name): Delete this function.
18907
18908 * xftfont.c (xftfont_open): Change coding style of error
18909 handling. Generate fontconfig's fontname pattern.
18910
18911 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18912 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18913
18914 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18915 Both args FONTSET and FONT_OBJECT must be existing ones.
18916
189172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18918
18919 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18920
189212008-02-01 Kenichi Handa <handa@m17n.org>
18922
18923 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18924
18925 * font.h (struct font): Fix typo.
18926
18927 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18928 XLFD_XXX_INDEX.
18929 (enum xlfd_field_mask): New enum.
18930 (intern_font_field): Changed argument. Change caller. If digits
18931 are followed by non-digits, return a symbol.
18932 (font_expand_wildcards): New function.
18933 (font_parse_xlfd): Fix wildcard handling.
18934 (Ffont_spec): If :name is specified, reflect the info in the other
18935 properties.
18936
18937 * ftfont.c (ftfont_pattern_entity): Fix typo.
18938 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18939 locale.
18940
189412008-02-01 Kenichi Handa <handa@m17n.org>
18942
18943 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18944
18945 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18946 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18947 registry doesn't specify encoding part.
18948 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18949 (font_open_by_name): At first try parsing the name.
18950 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18951 as Lisp symbols.
18952
18953 * fontset.c (reorder_font_vector): Pay attention to the case that
18954 the 3rd element of font_def is nil.
18955 (fontset_font): For the default fontset, append one more fontset
18956 elements for a script-based font specification. Don't add script
18957 attribute on finding a font.
18958 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18959 font name.
18960 (fontset_ascii_font): If a font can't be opened, return nil.
18961
18962 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18963 (ftfont_pattern_entity): New function.
18964 (ftfont_get_cache): Assume that freetype_font_cache is already
18965 initialized.
18966 (ftfont_list): Handle the case that a file is specified in font
18967 name. Use ftfont_pattern_entity to generate entities.
18968 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18969 (syms_of_ftfont): Initialize freetype_font_cache.
18970
18971 * xftfont.c (xftfont_open): Make the font name fontconfig's
18972 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18973 (xftfont_close): Free font->font.name if not NULL.
18974
18975 * xfont.c (xfont_list): If script is specified for a font, return
18976 null_vector.
18977 (xfont_list_family): Declare argument type.
18978
18979 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18980 name, set LFACE_FONT (lface) to nil.
18981
18982 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18983 return Qnil.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18988 (standard_args): Add "-enable-font-backend".
18989
189902008-02-01 Kenichi Handa <handa@m17n.org>
18991
18992 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18993 (struct xftdraw_list, xftdraw_list): Delete them.
18994 (register_xftdraw, check_xftdraw): Delete them.
18995 (xftfont_prepare_face): Don't call register_xftdraw.
18996 (xftfont_done_face): Don't call check_xftdraw.
18997 (xftfont_draw): Get background color only when with_background is
18998 nonzero.
18999
19000 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19001
190022008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 These changes are for the new font handling codes.
19005
19006 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19007 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19008 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19009 (FONTSRC, FONTOBJ): New variables.
19010 (obj): Add $(FONTOBJ).
19011 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19012 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19013 @LIBOTF_LIBS@.
19014 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19015 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19016
19017 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19018
19019 * character.h (Vscript_representative_chars): Extern it.
19020
19021 * character.c (Vscript_representative_chars): New variable.
19022 (syms_of_character): Declare it as a Lisp variable.
19023
19024 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19025 enable_font_backend is nonzero, accept the composition method
19026 COMPOSITION_WITH_GLYPH_STRING.
19027
19028 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19029 enumeration COMPOSITION_WITH_GLYPH_STRING.
19030
19031 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19032 members clip_x, clip_y, clip_width, and clip_height.
19033 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19034
19035 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19036 --enable-font-backend. Call syms_of_font.
19037
19038 * fns.c (assoc_no_quit): New function.
19039
19040 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19041 (face_for_font, new_fontset_from_font)
19042 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19043
19044 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19045 (fontset_font, fontset_ascii, face_for_char)
19046 (make_fontset_for_ascii_face, Ffont_info)
19047 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19048 is nonzero, use font-backend mechanism.
19049 (find_font_encoding): Make it non-static.
19050 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19051 New functions.
19052
19053 * frame.h (struct frame): New members resx and resy.
19054 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19055 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19056
19057 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19058 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19059
19060 * lisp.h (assoc_no_quit): Extern it.
19061
19062 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19063 Through out the file, use FONT_INFO_FROM_FACE instead of
19064 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19065 rif->per_char_metric.
19066 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19067 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19068 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19069 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19070 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19071 nonzero, use font-backend mechanism.
19072 (get_per_char_metric): New function.
19073
19074 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19075 (set_lface_from_font_name)
19076 (set_font_frame_param, free_realized_face)
19077 (prepare_face_for_display, clear_face_gcs)
19078 (Finternal_set_font_selection_order, realize_x_face)
19079 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19080 font-backend mechanism.
19081 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19082 (load_face_font) [USE_FONT_BACKEND]: Abort.
19083 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19084 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19085
19086 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19087 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19088 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19089 nonzero, register all available font drivers. Call
19090 x_default_font_parameter for deciding a font.
19091 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19092
19093 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19094 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19095 (x_set_glyph_string_clipping_exactly)
19096 (x_compute_glyph_string_overhangs)
19097 (x_draw_glyph_string_foreground)
19098 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19099 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19100 enable_font_backend is nonzero, use font-backend mechanism.
19101 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19102
191032008-02-01 Kenichi Handa <handa@m17n.org>
19104
19105 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19106 system_eol_type.
19107 (syms_of_coding): Initialize system_eol_type.
19108
19109 * process.c (Fset_process_coding_system): Inherit system's eol
19110 format if necessary.
19111
191122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19113
19114 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19115
191162008-02-01 Kenichi Handa <handa@m17n.org>
19117
19118 * coding.c (decode_eol): Pay attention to buffer relocation in
19119 del_range_2.
19120 (decode_coding): Call decode_eol before restoring undo_list.
19121
191222008-02-01 Kenichi Handa <handa@m17n.org>
19123
19124 * charset.c (Fdefine_charset_internal): Fix setting of
19125 emacs_mule_bytes.
19126
191272008-02-01 Kenichi Handa <handa@m17n.org>
19128
19129 * keyboard.c (read_char): Check if C is a character or not before
19130 looking up Vkeyboard_translate_table.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19135 condition to terminate the loop.
19136
191372008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * coding.c (produce_composition): Compare charbuf[i] instead of
19140 args[i] against 0.
19141 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19142
191432008-02-01 Kenichi Handa <handa@m17n.org>
19144
19145 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19146 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19147 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19148 detect_coding.
19149 (emacs_mule_char): Handle old style (Emacs 20) component character
19150 of a composition.
19151 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19152 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19153 composition rule.
19154 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19155
191562008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 * coding.c (encode_coding_ccl): Allocate destination dynamically
19159 when necessary.
19160
191612008-02-01 Kenichi Handa <handa@m17n.org>
19162
19163 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19164 the loop. When quitted, show a proper error message.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19169 src->clip_head and src->clip_tail temporarily instead of src->hl.
19170
19171 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19172 character sequence.
19173 (Fccl_execute_on_string): Use ASET, not XSET.
19174
191752008-02-01 Kenichi Handa <handa@m17n.org>
19176
19177 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * coding.c (decode_coding): Fix the condition of terminating the
19182 decoding loop.
19183
191842008-02-01 Kenichi Handa <handa@m17n.org>
19185
19186 * data.c (Faset): On setting a character bigger than 255 in a
19187 unibyte string, signal an error instead of make the string multibyte.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19192 made by a mapping table.
19193
191942008-02-01 Kenichi Handa <handa@m17n.org>
19195
19196 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19197 not.
19198 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19199 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19200
19201 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19202 s->face is NULL or not.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19207 (x_draw_glyph_string): Fix drawing of right_overhang and
19208 left_overhang around/on cursor.
19209
19210 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * coding.c (Fdefine_coding_system_internal)
19219 (Fdefine_coding_system_alias): Avoid a duplicated element in
19220 Vcoding_system_alist.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19225
19226 * coding.c (Qcoding_system_define_form): New variable.
19227 (syms_of_coding): Intern and staticpro it.
19228 (Fcoding_system_p): Check Qcoding_system_define_form.
19229 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19230
19231 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19232 Fcoding_system_p.
19233 (CHECK_CODING_SYSTEM): If ID is not available, call
19234 Fcheck_coding_system.
19235 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19236 Try also Fcheck_coding_system.
19237
192382008-02-01 Kenichi Handa <handa@m17n.org>
19239
19240 * coding.c (code_conversion_restore): GCPRO arg.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * character.c (lisp_string_width): Check multibyteness of STRING.
19245
192462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19247
19248 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19249 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19250 (decode_mac_font_name): Use decode_coding_c_string instead of
19251 decode_coding.
19252 (x_load_font): Initialize fontp->fontset to -1. Set
19253 fontp->encoding_type.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * search.c (search_buffer): Give up BM search on case-fold-search
19258 if one of a target character has a case-equivalence of different
19259 byte length even if that target charcter is an ASCII.
19260 (simple_search): Fix calculation of byte length of matched text.
19261 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * coding.c (decode_coding): Fix handling of invalid bytes.
19266
192672008-02-01 Kenichi Handa <handa@m17n.org>
19268
19269 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19270 Unicode characters.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * coding.c (encode_coding_object): If a pre-write-conversion
19275 function makes a new buffer, kill it.
19276
192772008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * coding.c (QCascii_compatible_p): New variable.
19280 (syms_of_coding): Initialize it.
19281 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19282 calling string_char.
19283 (record_conversion_result): Add `default:' case.
19284 (coding_charset_list): Delete unused variable `coding_type'.
19285 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19286 property in the plist of the coding system.
19287 (Fcoding_system_put): Check QCascii_compatible_p.
19288
192892008-02-01 Miles Bader <miles@gnu.org>
19290
19291 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19292 removed calculation of frame `f', as it's now used.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19297 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19298 (UNIDATA): New variable.
19299 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19300 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19301 $(RUN_TEMACS) unconditionally.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19306 (admindir): New variable.
19307 ($(lispsource)international/charprop.el): New target.
19308
193092008-02-01 Miles Bader <miles@gnu.org>
19310
19311 * character.c (chars-in-region): Remove obsolete function.
19312 (syms_of_character): Remove its initialization.
19313
193142008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19315
19316 * w32select.c (validate_coding_system)
19317 (setup_windows_coding_system): New functions.
19318 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19319 setup_windows_coding_system.
19320 (setup_config, Fw32_get_clipboard_data): Use
19321 validate_coding_system.
19322 (Fx_selection_exists): Move call to setup_config to a place
19323 where signals are allowed.
19324
19325 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19326 (Fcheck_coding_system): Add declarations.
19327
193282008-02-01 Kenichi Handa <handa@m17n.org>
19329
19330 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19331
193322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19333
19334 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19335 string as the second argument for x_new_fontset.
19336
193372008-02-01 Kenichi Handa <handa@m17n.org>
19338
19339 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19340 (encode_coding_object): Use safe_call instead of call2.
19341
193422008-02-01 Kenichi Handa <handa@m17n.org>
19343
19344 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19345
19346 * Makefile.in (lisp): Include charprop.el.
19347
193482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19349
19350 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19351 Not sure if it's unnecessary.
19352
193532008-02-01 Steven Tamm <steventamm@mac.com>
19354
19355 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19356 some possibly unnecessary fontset checking code that crashed
19357 when creating a new frame.
19358
193592008-02-01 Kenichi Handa <handa@m17n.org>
19360
19361 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19362 lookup_face.
19363
19364 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19365
19366 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19371 (coding_charset_list): New function.
19372
19373 * coding.h (coding_charset_list): Extern it.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19378 concatenation of family and registry.
19379
193802008-02-01 Kenichi Handa <handa@m17n.org>
19381
19382 * character.h (BYTE8_STRING): Fix typo.
19383
19384 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19385 string to multibyte (sync to HEAD).
19386
19387 * casefiddle.c (casify_region): Handle changes in byte-length
19388 using replace_range_2 (sync to HEAD).
19389
193902008-02-01 Andreas Schwab <schwab@suse.de>
19391
19392 * chartab.c (map_char_table): GCPRO table and arg.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19397 already at limit.
19398
193992008-02-01 Kenichi Handa <handa@m17n.org>
19400
19401 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19402 instead of fast_c_string_match_ignore_case.
19403 (find_font_encoding): Change argument to Lisp_Object. Use
19404 fast_string_match_ignore_case instead of
19405 fast_c_string_match_ignore_case. Change caller.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * xdisp.c (get_next_display_element): In unibyte case, decide to
19410 display in octal form by checking a character by
19411 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19412
19413 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19414
19415 * character.c (unibyte_has_multibyte_table): New variable.
19416
19417 * character.h (unibyte_has_multibyte_table): Extern it.
19418 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19419
194202008-02-01 Kenichi Handa <handa@m17n.org>
19421
19422 * coding.c (encode_coding_iso_2022): Fix handling of charset
19423 annotation.
19424
194252008-02-01 Kenichi Handa <handa@m17n.org>
19426
19427 * coding.c (setup_coding_system): If coding_system is nil, use
19428 Qundecided.
19429 (Fterminal_coding_system): Return nil if terminal coding system is
19430 `undecided'.
19431 (syms_of_coding): Define coding-system `undecided' here. Setup
19432 terminal_coding as `undecided'.
19433
194342008-02-01 Kenichi Handa <handa@m17n.org>
19435
19436 * xdisp.c (message_dolog, set_message_1): Call
19437 unibyte_char_to_multibyte with arg type int.
19438
19439 * lread.c (read1): Fix reading of a char-table.
19440
19441 * print.c (print_object): Include sub char-table in circularities
19442 detection.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19447 Append the found sequences in car of ARGS instead of prepending.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * fileio.c (report_file_error): Make a unibyte string from
19452 strerror (errorno).
19453 (Fsubstitute_in_file_name): Fix the arg to
19454 unibyte_char_to_multibyte. It is evaluated twice.
19455
194562008-02-01 Kenichi Handa <handa@m17n.org>
19457
19458 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19463 BOM is not found.
19464 (detect_coding, detect_coding_system): Optimization for ISO-2022
19465 when no 8-bit data is found.
19466
194672008-02-01 Jason Rumney <jasonr@gnu.org>
19468
19469 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19470
194712008-02-01 Kenichi Handa <handa@m17n.org>
19472
19473 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19474 CHARS.
19475
194762008-02-01 Steven Tamm <steventamm@mac.com>
19477
19478 * macterm.c (mac_encode_char): Add charset argument and update
19479 to use encoding_type.
19480 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19481 switch to pure fontset.
19482 (decode_mac_font_name): Temporarily remove decoding.
19483 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19484 (x_load_font): Temporarily remove encoding.
19485
194862008-02-01 Kenichi Handa <handa@m17n.org>
19487
19488 * xfaces.c (Fface_font): If frame is not on a window system,
19489 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19490 refer to face->font.
19491 (split_font_name_into_vector, build_font_name_from_vector)
19492 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19493 when HAVE_WINDOW_SYSTEM is defined.
19494
194952008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19498 (x_produce_glyphs): Fix setting of members of cmp in case
19499 cmp->glyph_len is zero.
19500
19501 * fontset.c (Fset_fontset_font): Fix docstring.
19502 (Ffontset_info): Make it backward compatible. New arg ALL.
19503
195042008-02-01 Kim F. Storm <storm@cua.dk>
19505
19506 * process.c (read_process_output): Grow decoding_buf when needed;
19507 this could cause a crash in allocate_string and compact_small_strings.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * coding.c (setup_coding_system): Set coding->common_flags
19516 correctly for raw-text.
19517 (consume_chars): On encoding unibyte text by raw-text, don't check
19518 multibyte form.
19519 (encode_coding): On encoding by raw-text, never use translation tables.
19520
19521 * fileio.c (e_write): Short cut for the case of no encoding.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * coding.c (detect_coding, detect_coding_system): Delete unused
19526 variables.
19527
195282008-02-01 Kenichi Handa <handa@m17n.org>
19529
19530 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19531 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19532
195332008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * coding.c (Ffind_coding_systems_region_internal): Include
19536 raw-text and no-conversion in the result.
19537
195382008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19541 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19542 FONT_DEF.
19543 (font_def_arg, add_arg, from_arg, to_arg): New args.
19544 (set_fontset_font): Change argument.
19545 (Fset_fontset_font): Fix for the case that TARGET is a script
19546 name and charset name.
19547 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * fontset.c (fontset_font): Rename from fontset_face. Change return
19552 value.
19553 (face_suitable_for_char_p, face_for_char): Adjust for the change
19554 of fontset_font.
19555 (make_fontset_for_ascii_face): Fix setting of the fontset element
19556 for ASCII.
19557 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19558 to get a font name.
19559 (Ffontset_info): Adjust for the change of fontset_font.
19560
19561 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19562
19563 * character.h (LEADING_CODE_LATIN_1_MIN)
19564 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * editfns.c (check_translation): New function.
19569 (Ftranslate_region_internal): Handle M:N mapping.
19570
195712008-02-01 Kenichi Handa <handa@m17n.org>
19572
19573 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19578 goto invalid_code.
19579 (decode_coding_iso_2022): Fix handling of invalid designation.
19580
19581 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19582 after calling code_conversion_save.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19587
19588 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19589
19590 * fontset.c: Include "intervals.h".
19591 (fontset_face): Fix comparing of Lisp_Objects.
19592 (free_face_fontset, new_fontset_from_font_name): Fix
19593 Lisp_Object/int mixup.
19594
19595 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19596
19597 * coding.c: Add many prototypes for static functions.
19598 (get_translation_table): Allow max_lookup to be NULL.
19599 (decode_coding, Ffind_coding_systems_region_internal)
19600 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19601 get_translation_table with max_lookup NULL.
19602
196032008-02-01 Kenichi Handa <handa@m17n.org>
19604
19605 * coding.c (get_translation_table): Declare it as Lisp_Object.
19606 (LOOKUP_TRANSLATION_TABLE): New macro.
19607 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19608 instead of CHAR_TABLE_REF.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19613 annotation data format.
19614 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19615 Change arguments FROM and TO to single argument NCHARS. Change caller.
19616 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19617 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19618 (decode_coding_ccl, decode_coding_charset): Pay attention to
19619 coding->charbuf_used.
19620 (get_translation): New function.
19621 (produce_chars): New arguments translation_table and last_block.
19622 Translate characters here. Return number of carryover chars.
19623 Change caller.
19624 (produce_composition): New argument pos. Change caller.
19625 Adjust for the change of annotation data format.
19626 (produce_charset, produce_annotation): Likewise.
19627 (decode_coding, encode_coding): Don't call translate_chars.
19628 (consume_chars): New arg translation_table. Change caller.
19629 (translate_chars): Delete.
19630 (syms_of_coding): Make translation-table's number of extra slots 2.
19631
196322008-02-01 Kenichi Handa <handa@m17n.org>
19633
19634 * search.c (simple_search): Fix setting this_pos_byte in backward
19635 search.
19636
19637 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19638 byte sequence.
19639 (detect_coding_ccl): Fix setting of the variable valids.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19644
19645 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19646
19647 * editfns.c (Ftranslate_region_internal): Rename from
19648 Ftranslate_region. Accept a char-table in TABLE.
19649 (syms_of_editfns): Defsubr Stranslate_region_internal.
19650
19651 * xfaces.c (set_lface_from_font_name): If a font is specified for
19652 a frame, generate a fontset from the font.
19653 (build_scalable_font_name): If the scalable font is requested for
19654 a specific size, don't change that size.
19655 (try_font_list): Try a scalable font also in the case that a
19656 pattern string is specified.
19657
196582008-02-01 Kenichi Handa <handa@m17n.org>
19659
19660 * xfaces.c (Fface_font): New optional arg CHARACTER.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * charset.h (CHARSET_OFFSET): New macro.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19669
19670 * fontset.c (fontset_face): Handle the case that repertory is a
19671 char-table.
19672 (find_font_encoding): Return nil for unknown encoding.
19673 (Fset_fontset_font): Ignore a font of unknown encoding.
19674
196752008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * keymap.c (describe_vector): Handle default value of a char table.
19678
19679 * fontset.c (fontset_face): Handle fallback fonts correctly.
19680 (Ffontset_info): Return infomation about fallback fonts.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * fontset.c (FONTSET_DEFAULT): New macro.
19685 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19686 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19687 the case that it is nil.
19688 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19689 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19690
19691 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19692 subset or superset.
19693
196942008-02-01 Kenichi Handa <handa@m17n.org>
19695
19696 * emacs.c (main): Call init_charset after syms_of_XXX.
19697
19698 * charset.c (Vcharset_map_directory): Delete.
19699 (Vcharset_map_path): New variable.
19700 (load_charset_map_from_file): Use Vcharset_map_path instead.
19701 (init_charset): Initialize Vcharset_map_path.
19702 (syms_of_charset): Delete declaration of "charset-map-directory",
19703 add declaration of "charset-map-path".
19704
197052008-02-01 Kenichi Handa <handa@m17n.org>
19706
19707 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19708 ASCII only string.
19709
19710 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19711
19712 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19713 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19718
19719 * coding.c (QCmnemonic, QCdefalut_char)
19720 (QCdecode_translation_table, QCencode_translation_table)
19721 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19722 (get_translation_table): Return a list of translation tables if
19723 necessary.
19724 (decode_coding): Call get_translation_table with ENCODEP 0.
19725 (char_encodable_p): If translation_table is non-nil, always call
19726 translate_char.
19727 (Fdefine_coding_system_internal): Accept list of translation
19728 tables as :encode-translation-table and :decode-translation-table.
19729 (Fcoding_system_put): New function.
19730 (syms_of_coding): Declare new symbols. Defsubr
19731 Scoding_system_put.
19732 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19733 typically JISX0212.
19734
19735 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19736 when the charset is superset type.
19737
19738 * character.c (translate_char): Accept list of translation tables.
19739
197402008-02-01 Kenichi Handa <handa@m17n.org>
19741
19742 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19743 (CODING_ATTR_TRANS_TBL): New macro.
19744
19745 * coding.c (get_translation_table): New function.
19746 (translate_chars): Fix the bug of skipping annotation data.
19747 (decode_coding, encode_coding): Utilize get_translation_table.
19748 (char_encodable_p, Funencodable_char_position): Translate char if
19749 necessary.
19750 (Ffind_coding_systems_region_internal)
19751 (Fcheck_coding_systems_region): Setup translation table for encode
19752 in a coding system attribute vector in advance.
19753 (Fdefine_coding_system_internal): Allow a symbol as translation
19754 table. For shift-jis type coding system, allow 4th charset.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19759
19760 * xdisp.c (get_next_display_element): Pass -1 as POS to
19761 FACE_FOR_CHAR if displaying a C-string.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * composite.c (get_composition_id): Handle xoff and yoff in a
19766 composition rule.
19767
19768 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19769 (struct composition): New member lbearing and rbearing.
19770
19771 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19772 (x_get_glyph_overhangs): Handle a composition glyph.
19773 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19774
19775 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19776 composition glyph.
19777
197782008-02-01 Kenichi Handa <handa@m17n.org>
19779
19780 * print.c: Include charset.h.
19781 (Vprint_charset_text_property): New variable.
19782 (Qdefault): Extern it.
19783 (PRINT_STRING_NON_CHARSET_FOUND)
19784 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19785 (print_check_string_result): New variable.
19786 (print_check_string_charset_prop): New function.
19787 (print_prune_charset_plist): New variable.
19788 (print_prune_string_charset): New function.
19789 (print_object): Call print_prune_string_charset if
19790 Vprint_charset_text_property is not t.
19791 (print_interval): Print nothing if interval->plist is nil.
19792 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19793 variable. Init and staticpro print_prune_charset_plist.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * fontset.c (new_fontset_from_font_name): Use the specified font
19798 for all characters in the new fontset.
19799
19800 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19801 OBJECT args.
19802
19803 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19804 OBJECT args for composition too.
19805
19806 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19807 OBJECT args.
19808
198092008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19812
19813 * fontset.c (reorder_font_vector): Adjust for the change of
19814 FONT_DEF format.
19815 (fontset_face): New arg id. Change caller.
19816 (face_for_char): New args pos and object.
19817 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19818 (fs_query_fontset): Check NAME by Fassoc too.
19819 (Fset_fontset_font): Allow non-XLFD font name.
19820 (Ffontset_info): Adjust for the change of FONT_DEF format.
19821
19822 * fontset.h (face_for_char): Adjust prototype.
19823
19824 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19825 (append_space, extend_face_to_end_of_line)
19826 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19827 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19828
19829 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19830 POS and OBJECT args.
19831
19832 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19833 POS and OBJECT args.
19834
198352008-02-01 Jason Rumney <jasonr@gnu.org>
19836
19837 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19838 of GlobalAlloc'ed memory.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19843
19844 * charset.h (charset_table_used): Delete extern.
19845
19846 * charset.c (charset_table_used): Make it static.
19847 (map_charset_chars): Fix args to c_function with.
19848
19849 * chartab.c (map_sub_char_table_for_charset): Fix args to
19850 c_function with.
19851
19852 * coding.h (enum coding_result_code): Delete
19853 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19854
19855 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19856 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19857 (Vlast_code_conversion_error): New variables.
19858 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19859 (ONE_MORE_BYTE): Record error if any instead of signaling an
19860 error. If non-ASCII multibyte char is found, return the negative
19861 value of the code. All callers changed to check it.
19862 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19863 (record_conversion_result): New function. Change all codes setting
19864 coding->result to call this function.
19865 (detect_coding_utf_8, decode_coding_utf_8)
19866 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19867 Don't use the local variable incomplete.
19868 (emacs_mule_char): Change the second arg to `const'.
19869 (decode_coding): Fix of flushing out unprocessed data.
19870 (make_conversion_work_buffer): Fix making of a work buffer.
19871 (decode_coding_object): Return coding->dst_object.
19872
19873 * fontset.c (set_fontset_font): Fix args.
19874
19875 * lisp.h (CHARACTERBITS): Define as 22.
19876
19877 * process.c (send_process): Be sure to set coding->src_multibyte.
19878
19879 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19880
198812008-02-01 Kenichi Handa <handa@m17n.org>
19882
19883 * xdisp.c (handle_auto_composed_prop): Give limit to
19884 Fnext_single_char_property_change.
19885
198862008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * composite.c (syms_of_composite): Don't make the composition hash
19889 table weak.
19890
19891 * fontset.c (Fset_fontset_font): Fix docstring.
19892
19893 * lisp.h (detect_coding_system): Adjust prototype.
19894
19895 * fileio.c (kill_workbuf_unwind): Delete this function.
19896 (Finsert_file_contents): Adjust the call of detect_coding_system.
19897 Get conversion_buffer by code_conversion_save. Use the macro
19898 CODING_MAY_REQUIRE_DECODING. After decoding, update
19899 coding_system.
19900
19901 * coding.h (make_conversion_work_buffer): Delete extern.
19902 (code_conversion_save): Extern it.
19903
19904 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19905 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19906 (decode_coding_utf_8): Don't do eol converion.
19907 (detect_coding_utf_16): Check coding->src_chars, not
19908 coding->src_bytes. Add heuristics for those that have no signature.
19909 (decode_coding_emacs_mule, decode_coding_iso_2022)
19910 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19911 Don't do eol converion.
19912 (adjust_coding_eol_type): Return a new coding system.
19913 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19914 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19915 each change.
19916 (decode_coding): Pay attention to undo_list. Do eol conversion for
19917 all types of coding-systems (if necessary).
19918 (Vcode_conversion_work_buf_list): Delete it.
19919 (Vcode_conversion_reused_workbuf): Rename from
19920 Vcode_conversion_reused_work_buf.
19921 (Vcode_conversion_workbuf_name): New variable.
19922 (reused_workbuf_in_use): New variable.
19923 (make_conversion_work_buffer): Delete the arg DEPTH.
19924 (code_conversion_restore): Change argument to cons.
19925 (code_conversion_save): Delete the argument BUFFER. Change callers.
19926 (detect_coding_system): New argument src_chars. Change callers.
19927 Fix for utf-16 detection.
19928 (init_coding_once): Don't use ISO_carriage_return.
19929 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19930 reused_workbuf_in_use.
19931
199322008-02-01 Kenichi Handa <handa@m17n.org>
19933
19934 * keymap.c (store_in_keymap): Pay attention to the case that idx
19935 is a cons specifying a character range.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19940 HANDLED_RECOMPUTE_PROPS.
19941
19942 * coding.c (Fdefine_coding_system_internal): Fix checking of
19943 ascii compatibility.
19944
199452008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * charset.c (find_charsets_in_text): Delete unused locale variable.
19948 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19949
19950 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19951 Resync charset_list to Vemacs_mule_charset_list.
19952
19953 * keymap.c (store_in_keymap): Pay attention to the case that idx
19954 is a cons specifying a character range.
19955
199562008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * composite.c (update_compositions): Bind inhibit-read-only, etc
19959 to t before calling remove-list-of-text-properties.
19960
19961 * print.c (print_object): Always print ASCII chars as is.
19962
199632008-02-01 Kenichi Handa <handa@m17n.org>
19964
19965 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19966
19967 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19968 is a char table.
19969
199702008-02-01 Kenichi Handa <handa@m17n.org>
19971
19972 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19973
199742008-02-01 Kenichi Handa <handa@m17n.org>
19975
19976 * xfaces.c (set_lface_from_font_name): Fix for the case that
19977 FONTNAME is not fontset name.
19978
199792008-02-01 Kenichi Handa <handa@m17n.org>
19980
19981 * fns.c (base64_encode_1): Fix previous change.
19982
199832008-02-01 Kenichi Handa <handa@m17n.org>
19984
19985 * fontset.c (set_fontset_font): New function.
19986 (Fset_fontset_font): If a font is specified for a charset, use
19987 map_charset_chars to store the font spec in a fontset.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * fontset.c (fontset_face): Create a fallback fontset on demand.
19992 (make_fontset): Don't create a fallback fontset here.
19993 (free_face_fontset): Free a fallback fontset (if any) too.
19994 (n_auto_fontsets): Delete this variable.
19995 (auto_fontset_alist): New variable.
19996 (new_fontset_from_font_name): Check auto_fontset_alist.
19997 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19998 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19999 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20000 Defsubr Sfontset_list_all.
20001
200022008-02-01 Kenichi Handa <handa@m17n.org>
20003
20004 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20005
200062008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * editfns.c (Fgoto_char): Fix docstring.
20013
200142008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * insdel.c (insert_from_gap): Adjust intervals correctly.
20017
200182008-02-01 Jason Rumney <jasonr@gnu.org>
20019
20020 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20021 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20022 (w32_initialize): Try to load it.
20023 (x_get_font_repertory): Use it if available.
20024 (w32_encode_char): Add shortcut for unicode output.
20025
20026 * w32fns.c (w32_load_system_font): Default charset to -1.
20027 (x_to_w32_charset): Match all fonts for unicode.
20028 (w32_to_x_charset): New parameter matching. Don't return partial
20029 or wildcard charsets.
20030 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20031 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20032 (w32_to_x_font): Match charset to real charset.
20033 (enum_font_cb2): Always list unicode versions.
20034
20035 * makefile.w32-in (temacs): Increase EMHEAP.
20036
200372008-02-01 Jason Rumney <jasonr@gnu.org>
20038
20039 * w32term.c (w32_encode_char): New charset parameter.
20040 font_info.encoding becomes encoding_type.
20041 (x_get_font_repertory): New function. Warning: stub only!
20042 (x_new_font): Return quickly if font already set.
20043 (x_new_fontset): fontsetname parameter is Lisp_Object.
20044 Use new fs_query_fontset. Try new_fontset_from_font_name.
20045 Use fontset_name for return value.
20046
20047 * w32term.h: Declare x_get_font_repertory.
20048
20049 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20050 place of find_charset_in_text. Use encode_coding_object in place
20051 of encode_coding.
20052 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20053 decode_coding.
20054
20055 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20056 of x_new_fontset.
20057 (w32_load_system_font): Initialize charset as unicode.
20058 font_info.encoding becomes encoding_type.
20059 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20060 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20061 (syms_of_w32fns): Set get_font_repertory_func.
20062
20063 * w32console.c: Include character.h. Use terminal_encode_buffer
20064 from term.c.
20065 (write_glyphs): Use new version of encode_terminal_code. Use
20066 encode_coding_object in place of encode_coding.
20067
20068 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20069 encoding becomes encoding_type.
20070
20071 * term.c (terminal_encode_buffer): Make externally visible.
20072
20073 * makefile.w32-in: Add character.h dependancies.
20074 (character.o, chartab.o): New targets.
20075
200762008-02-01 Kenichi Handa <handa@m17n.org>
20077
20078 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20079 CODING_ID_EOL_TYPE.
20080
200812008-02-01 Andreas Schwab <schwab@suse.de>
20082
20083 * coding.c (produce_chars): Revert last change.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * charset.h (charset_unicode): Extern it.
20088
20089 * charset.c (string_xstring_p): Check by (C >= 0x100).
20090 (find_charsets_in_text): Change format of the arc CHARSETS. New
20091 arg MULTIBYTE.
20092 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20093 change of find_charsets_in_text.
20094 (Fsplit_char): Fix doc. Never return unknown.
20095
20096 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20097
20098 * coding.c (Fdefine_coding_system_alias): Update
20099 Vcoding_system_list.
20100
20101 * fontset.c (load_font_get_repertory): Pay attention to the case
20102 that ENCODING of a font is specified by a char-table.
20103
20104 * xterm.c (x_get_font_repertory): Handle the case that the
20105 encoding of font is other than Unicode.
20106
201072008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20110 if a character is encodable by the terminal coding system. If
20111 not, produces proper number of `?'s. Update
20112 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20113 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20118 variables.
20119 (encode_terminal_code): Change argument. Encode multiple
20120 characters at once. Store the result of encoding in
20121 terminal_encode_buffer.
20122 (write_glyphs, insert_glyphs): Adjust for the change of
20123 encode_terminal_code.
20124 (term_init): Initialize terminal_encode_buffer and
20125 terminal_encode_buf_size.
20126
20127 * coding.c (consume_chars): If coding->src_object is nil, don't
20128 check annotation.
20129
201302008-02-01 Kenichi Handa <handa@m17n.org>
20131
20132 * character.c (char_string): Use ASCII_CHAR_P instead of
20133 SINGLE_BYTE_CHAR_P.
20134
201352008-02-01 Kenichi Handa <handa@m17n.org>
20136
20137 * xdisp.c (handle_auto_composed_prop): Check if the last
20138 characters of auto-composed region is newly composed with the
20139 following characters.
20140 (handle_composition_prop): Fix checking of point being inside
20141 composition.
20142
201432008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * fns.c (concat): Don't change multibyteness of the result by
20146 concatenating an 8-bit character.
20147
20148 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20149 multibyteness of the result when newelt is an 8-bit character.
20150
201512008-02-01 Dave Love <fx@gnu.org>
20152
20153 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20154 EMACS_INT.
20155
20156 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20157
20158 * xfaces.c (face_numeric_value): Declare dim size_t.
20159 (Finternal_lisp_face_equal_p): Remove unused f.
20160
20161 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20162 (MATRIX_ROW): Remove unused vars.
20163 (draw_glyphs, x_insert_glyphs, fast_find_position)
20164 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20165 byte/char counts.
20166
20167 * regex.c (regex_compile): Remove unused var.
20168
20169 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20170
20171 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20172 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20173
20174 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20175
20176 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20177
20178 * fileio.c (Fwrite_region): Remove unused var.
20179
20180 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20181 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20182
20183 * composite.c (Fremove_list_of_text_properties): Declare.
20184
20185 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20186 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20187 (coding_inherit_eol_type): Remove unused attrs.
20188 (detect_coding): Cast arg of detect_eol.
20189
20190 * charset.c (syms_of_charset): Remove unused var p.
20191 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20192 byte/char counts.
20193
20194 * casetab.c (set_case_table): Remove unused var.
20195
20196 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20197 unused vars.
20198
201992008-02-01 Dave Love <fx@gnu.org>
20200
20201 * xterm.c (x_bitmap_mask): Declare.
20202
202032008-02-01 Dave Love <fx@gnu.org>
20204
20205 * xterm.c (x_term_init): Fix type error.
20206
20207 * lisp.h: Add Funibyte_char_to_multibyte.
20208
20209 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20210 (Fset_coding_system_priority): Doc fix.
20211
20212 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20213
20214 * indent.c (check_composition): Make start and end EMACS_INT.
20215
20216 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20217
20218 * xdisp.c (handle_composition_prop, check_point_in_composition):
20219 Make buffer positions EMACS_INT.
20220
20221 * composite.c (find_composition, run_composition_function)
20222 (update_compositions, Ffind_composition_internal): Make buffer
20223 positions EMACS_INT.
20224
20225 * composite.h (find_composition, update_compositions): Make
20226 position args EMACS_INT.
20227
20228 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20229
20230 * intervals.c (get_property_and_range):
20231 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20232
20233 * unexalpha.c: Don't include varargs.h.
20234
202352008-02-01 Dave Love <fx@gnu.org>
20236
20237 * coding.h (ENCODE_UTF_8): New.
20238
20239 * Makefile.in (gtkutil.o): Depend on coding.h.
20240
20241 * coding.c (Fset_coding_system_priority): Doc fix.
20242
202432008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20246 the case of auto saving.
20247
202482008-02-01 Andreas Schwab <schwab@suse.de>
20249
20250 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20251 `range' from GC.
20252
202532008-02-01 Kenichi Handa <handa@m17n.org>
20254
20255 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * fileio.c (choose_write_coding_system): Return a decided coding system.
20260 (Fwrite_region): Set Vlast_coding_system_used to the return value
20261 of choose_write_coding_system.
20262
202632008-02-01 Kenichi Handa <handa@m17n.org>
20264
20265 * charset.c (Fset_charset_priority): Pay attention to duplicated
20266 arguments.
20267
20268 * coding.c (QCcategory): New variable.
20269 (syms_of_coding): Defsym it. Set all elements of
20270 Vcoding_category_table and their symbol values.
20271 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20272 coding-category-XXX, and coding-category-list.
20273 (Fdefine_coding_system_internal): Add category in the plist.
20274
202752008-02-01 Kenichi Handa <handa@m17n.org>
20276
20277 * callproc.c (Fcall_process): Handle carryover correctly.
20278
20279 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20280 (raw_text_coding_system): Check NILP (coding_system).
20281 (coding_inherit_eol_type): Check NILP (coding_system) and
20282 NILP (parent).
20283 (consume_chars): Fix for the case of raw-text.
20284
20285 * process.c (read_process_output): Handle carryover correctly.
20286
202872008-02-01 Dave Love <fx@gnu.org>
20288
20289 * regex.c (re_search_2): Fix last change.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20294 target_multibyte. Even in a unibyte case, return a converted
20295 multibyte char.
20296 (GET_CHAR_AFTER): New macro.
20297 (PATFETCH): Translate via multibyte char.
20298 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20299 (SETUP_MULTIBYTE_RANGE): New macro.
20300 (regex_compile): Setup compiled code so that its multibyteness
20301 matches that of a target. Fix the handling of "[X-YZ]" using
20302 SETUP_MULTIBYTE_RANGE.
20303 (analyse_first) <charset>: For filling fastmap for all multibyte
20304 characters, don't check by BASE_LEADING_CODE_P.
20305 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20306 the same as RE_MULTIBYTE_P (bufp) now.
20307 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20308 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20309 (TRANSLATE_VIA_MULTIBYTE): New macro.
20310 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20311 It is the same as RE_MULTIBYTE_P (bufp) now.
20312 <exactn>: Translate via multibyte.
20313 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20314 translate it.
20315 <charset, charset_not>: Fetch a character by
20316 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20317 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20318 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20319 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20320 by GET_CHAR_AFTER.
20321 (bcmp_translate): Likewise.
20322
20323 * search.c (compile_pattern): Check the member target_multibyte,
20324 not the member multibyte of buf.
20325
20326 * lread.c (read1): While reading a string, set force_singlebyte
20327 and force_multibyte correctly.
20328
20329 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20330 up of unibyte_to_multibyte_table.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * coding.c (setup_coding_system): If coding has
20335 post-read-conversion or pre-write-conversion, set
20336 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20337 respectively.
20338 (decode_coding_gap): Run post-read-conversion if any.
20339
20340 * fileio.c (Finsert_file_contents): Even if we read into a
20341 unibyte buffer, check if we must decode the result or not.
20342
203432008-02-01 Kenichi Handa <handa@m17n.org>
20344
20345 * coding.c (make_conversion_work_buffer): Change the work buffer
20346 name to the same one as that of Emacs 21.
20347
203482008-02-01 Kenichi Handa <handa@m17n.org>
20349
20350 * coding.h (make_conversion_work_buffer): Adjust prototype.
20351 (code_conversion_restore): Don't extern it.
20352
20353 * coding.c (detected_mask): Delete unused variable.
20354 (decode_coding_iso_2022): Pay attention to the byte sequence of
20355 CTEXT extended segment, and retain those bytes as is.
20356 (decode_coding_ccl): Delete unused variable `valids'.
20357 (setup_coding_system): Delete unused variable `category'.
20358 (consume_chars): Delete unused variable `category'. Make it work
20359 for non-multibyte case.
20360 (make_conversion_work_buffer): Change argument.
20361 (saved_coding): Delete unused variable.
20362 (code_conversion_restore): Don't check saved_coding->destination.
20363 (code_conversion_save): New function.
20364 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20365 instead of record_unwind_protect.
20366 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20367 (detect_coding_system): Delete unused variable `mask'.
20368 (Fdefine_coding_system_internal): Delete unused variable id.
20369
20370 * fileio.c (kill_workbuf_unwind): New function.
20371 (Finsert_file_contents): On replacing, call
20372 make_conversion_work_buffer with correct args, and call
20373 record_unwind_protect with the first arg kill_workbuf_unwind.
20374
20375 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20376
203772008-02-01 Kenichi Handa <handa@m17n.org>
20378
20379 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20380 (fontset_add): Fix for the case that TO is less than TO1.
20381 (Ffontset_info): Don't use fallback fontset on checking the
20382 default fontset.
20383 (dump_fontset): New function for debugging.
20384
20385 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20386 coding_type is Qcharset.
20387
203882008-02-01 Kenichi Handa <handa@m17n.org>
20389
20390 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20391 (map_char_table): Don't inherit the value from the parent on
20392 initializing VAL. Adjust for the above change.
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * coding.c (Qsignature, Qendian): Delete these variables.
20397 (syms_of_coding): Don't initialize them.
20398 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20399 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20400 detect_info->found.
20401 (decode_coding_utf_16): Don't detect BOM here.
20402 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20403 is NOT utf_16_without_bom.
20404 (setup_coding_system): For a coding system of type utf-16, check
20405 if the attribute :endian is Qbig or not (not nil or not), and set
20406 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20407 (detect_coding): If coding type is utf-16 and BOM detection is
20408 required, detect it.
20409 (Fdefine_coding_system_internal): For a coding system of type
20410 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20411
204122008-02-01 Kenichi Handa <handa@m17n.org>
20413
20414 * coding.c (coding_set_source): Fix for the case that the current
20415 buffer is different from coding->src_object.
20416 (decode_coding_object): Don't use the conversion work buffer if
20417 DST_OBJECT is a buffer.
20418
204192008-02-01 Dave Love <fx@gnu.org>
20420
20421 * lread.c (read_emacs_mule_char) [len==2]: Index
20422 emacs_mule_charset correctly.
20423
204242008-02-01 Dave Love <fx@gnu.org>
20425
20426 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20427 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20428 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20429 treated specially.)
20430 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20431 (detected_mask): Remove Big5 bits.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 The following changes are to make the font rescaling facility
20436 compatible with Emacs 21.
20437
20438 * xfaces.c (Vface_font_rescale_alist): Rename from
20439 Vface_resizing_fonts.
20440 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20441 (font_rescale_ratio): Rename from font_resizing_ratio.
20442 (split_font_name): Set font->rescale_ratio.
20443 (better_font_p): Pay attention to font->rescale_ratio.
20444 (build_scalable_font_name): Likewise. Change RESX, and RESY
20445 fields.
20446 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20447
204482008-02-01 Kenichi Handa <handa@m17n.org>
20449
20450 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20451 (Qutf_16_le): Remove these variables.
20452 (syms_of_coding): Don't DEFSYM them.
20453 (decode_coding_utf_16): Fix handling of BOM.
20454 (encode_coding_utf_16): Fix handling of BOM.
20455
204562008-02-01 Kenichi Handa <handa@m17n.org>
20457
20458 * fileio.c (Finsert_file_contents): On replacing, before decoding
20459 the file into the work buffer, set point of the work buffer to the end.
20460
204612008-02-01 Dave Love <fx@gnu.org>
20462
20463 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20464
204652008-02-01 Dave Love <fx@gnu.org>
20466
20467 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20468 and fix C types.
20469
204702008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * xdisp.c (SKIP_GLYPHS): New macro.
20473 (set_cursor_from_row): Pay attention to string display properties.
20474
20475 * category.c (copy_category_entry): Fix for the case that RANGE
20476 is an integer.
20477
20478 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20479
20480 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20481
204822008-02-01 Kenichi Handa <handa@m17n.org>
20483
20484 * charset.c (Fcharset_id_internal): New function.
20485 (syms_of_charset): Defsubr it.
20486
20487 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20488 with the last arg charset_list acquired from coding.
20489 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20490 the attribute coding_attr_ccl_valids.
20491
20492 * coding.h (enum define_coding_ccl_arg_index): Set the first
20493 member coding_arg_ccl_decoder to coding_arg_max.
20494
20495 * ccl.h (ccl_driver): Adjust prototype.
20496
20497 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20498 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20499 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20500 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20501 last arg Qnil.
20502
205032008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20506 call encode_char.
20507
20508 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20509
205102008-02-01 Dave Love <fx@gnu.org>
20511
20512 * composite.c (syms_of_composite): Make composition_hash_table weak.
20513
205142008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20517 (font_name_registry): Don't extern them.
20518 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20519
20520 * fontset.h (Qfontset): Don't extern it.
20521 (new_fontset_from_font_name): Extern it.
20522
20523 * fontset.c: Give 8 extra slots to fontset objects.
20524 (Qfontset_info): New variable.
20525 (syms_of_fontset): Defsym it.
20526 (FONTSET_FALLBACK): New macro.
20527 (fontset_face): Try also the default fontset.
20528 (make_fontset): Realize a fallback fontset from the default fontset.
20529 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20530 using split_font_name_into_vector and build_font_name_from_vector.
20531 (Fset_fontset_font): Access the elements of font_spec by enum
20532 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20533 name by using split_font_name_into_vector.
20534 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20535 generate a proper font name from the fontset name. Update
20536 Vfontset_alias_alist.
20537 (n_auto_fontsets): New variable.
20538 (new_fontset_from_font_name): New function.
20539 (Ffont_info): Store the information about fonts generated from the
20540 default fontset in the first extra slot of the returned char-table.
20541
20542 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20543 (font_name_registry): Delete function.
20544 (split_font_name_into_vector): New function.
20545 (build_font_name_from_vector): New function.
20546 (font_list): The argument REGISTRY is now a list of registry names.
20547 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20548 specifies an explicit font name, return the name as is. Make a
20549 list of registy names.
20550
20551 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20552 of x_new_fontset.
20553 (Fx_create_frame): Don't call x_new_fontset here. Just use
20554 x_list_fonts to check the existence of fonts.
20555
20556 * xterm.h (x_new_fontset): Adjust prototype.
20557
20558 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20559 string. Use new_fontset_from_font_name to create a fontset from a
20560 font name.
20561
205622008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * syntax.c (Vfind_word_boundary_function_table): New name for
20565 Vnext_word_boundary_function_table.
20566 (find-word-boundary-function-table): New name for
20567 next-word-boundary-function-table.
20568
205692008-02-01 Dave Love <fx@gnu.org>
20570
20571 * Makefile.in: Fix some dependencies.
20572
20573 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20574 set it to nil before returning.
20575
20576 * composite.c (update_compositions): Fix type error.
20577
20578 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20579
205802008-02-01 Kenichi Handa <handa@m17n.org>
20581
20582 * xterm.c (x_new_font): Optimize for the case that the font is
20583 already set for the frame.
20584
205852008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * chartab.c (char_table_ascii): Check if the char table contents
20588 is sub-char-table or not.
20589 (char_table_set, char_table_set_range): Fix argument to
20590 char_table_ascii.
20591
20592 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20593 (detect_coding_utf_8, detect_coding_utf_16)
20594 (detect_coding_emacs_mule, detect_coding_iso_2022)
20595 (detect_coding_sjis, detect_coding_big5)
20596 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20597 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20598 sequence is valid in this coding system. Change callers.
20599 (MAX_ANNOTATION_LENGTH): New macro.
20600 (ADD_ANNOTATION_DATA): New macro.
20601 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20602 ADD_ANNOTATION_DATA. Change the format of annotation data.
20603 (ADD_CHARSET_DATA): New macro.
20604 (emacs_mule_char): New argument ID. Change callers.
20605 (decode_coding_emacs_mule, decode_coding_iso_2022)
20606 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20607 Produce charset annotation data in coding->charbuf.
20608 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20609 to charset annotation data in coding->charbuf.
20610 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20611 coding->common_flags if the coding system is iso-2022 based and
20612 uses designation.
20613 (produce_composition): Adjust for the new annotation data format.
20614 (produce_charset): New function.
20615 (produce_annotation): Handle charset annotation.
20616 (handle_composition_annotation, handle_charset_annotation): New
20617 functions.
20618 (consume_chars): Handle charset annotation. Utilize the above two
20619 functions.
20620 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20621 buffer, get the deleted text as a string and set
20622 coding->src_object to that string.
20623 (detect_coding, detect_coding_system): Use the new struct
20624 coding_detection_info.
20625
20626 * coding.h (struct coding_detection_info): New structure.
20627 (struct coding_system): Adjust prototype of the member `detector'.
20628 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20633
206342008-02-01 Dave Love <fx@gnu.org>
20635
20636 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20637 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20638 to new local and nullify apropos_accumulate before returning.
20639 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20640
206412008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20644 correctly.
e3eea1fc 20645
aac0c6e3
MR
206462008-02-01 Dave Love <fx@gnu.org>
20647
20648 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20649
206502008-02-01 Kenichi Handa <handa@m17n.org>
20651
20652 The following changes are to make character composition happen
20653 automatically on displaying.
20654
20655 * Makefile.in (lisp, shortlisp): Add composite.elc.
20656
20657 * composite.h (Qauto_composed, Vauto_composition_function)
20658 (Qauto_composition_function): Extern them.
20659
20660 * composite.c (Vcomposition_function_table)
20661 (Qcomposition_function_table): Delete variables.
20662 (Qauto_composed, Vauto_composition_function)
20663 (Qauto_composition_function): New variables.
20664 (run_composition_function): Don't call
20665 compose-chars-after-function.
20666 (update_compositions): Clear `auto-composed' text property.
20667 (compose_chars_in_text): Delete this function.
20668 (syms_of_composite): Staticpro Qauto_composed and
20669 Qauto_composition_function. Declare Vauto_composition_function as
20670 a Lisp variable.
20671
20672 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20673
20674 * xdisp.c (it_props): Add an entry for Qauto_composed.
20675 (handle_auto_composed_prop): New function.
20676
20677 * xselect.c (selection_data_to_lisp_data): Don't call
20678 compose_chars_in_text.
20679
206802008-02-01 Dave Love <fx@gnu.org>
20681
20682 * keyboard.c (read_char): Modify checking around use of
20683 Vkeyboard_translate_table.
20684
20685 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20686 and fix C types.
20687
206882008-02-01 Kenichi Handa <handa@m17n.org>
20689
20690 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20691 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20692 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20693 the case that the last byte is '\r' correctly.
20694 (decode_coding): Flush out the unprocessed data correctly.
20695 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20696
206972008-02-01 Dave Love <fx@gnu.org>
20698
20699 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20700 Add XK_ISO... case.
20701 (xaw_scroll_callback): Revert last change.
20702
207032008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20706
207072008-02-01 Kenichi Handa <handa@m17n.org>
20708
20709 * xfaces.c (Vface_resizing_fonts): New variable.
20710 (struct font_name): New member `resizing_ratio'.
20711 (font_resizing_ratio): New function.
20712 (split_font_name): Set font->resizing_ratio.
20713 (better_font_p): Pay attention to font->resizing_ratio.
20714 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20715 RESX, and RESY fields.
20716 (try_alternative_families): Try scalable fonts if
20717 Vscalable_fonts_allowed is not Qt.
20718 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20719
207202008-02-01 Dave Love <fx@gnu.org>
20721
20722 * xterm.c (xaw_scroll_callback): Cast correctly.
20723
207242008-02-01 Dave Love <fx@gnu.org>
20725
20726 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20727 (lispy_kana_keys): Comment out.
20728 (make_lispy_event) [XK_kana_A]: Comment out.
20729
20730 * xterm.c (xaw_scroll_callback): Cast call_data.
20731 (XTread_socket): Deal with ASCII keysyms.
20732 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20733
207342008-02-01 Dave Love <fx@gnu.org>
20735
20736 * xterm.c (Vx_keysym_table): New.
20737 (syms_of_xterm): Initialize it.
20738 (XTread_socket): Use it.
20739 From head: Eliminate incorrect optimization that tried to avoid
20740 decoding the output of X*LookupString.
20741 (x_get_font_repertory): Delete charset declaration.
20742
207432008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20746 return 0.
20747 (Fdefine_coding_system_internal): Setup
20748 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20749
207502008-02-01 Dave Love <fx@gnu.org>
20751
20752 * coding.c (Fcheck_coding_system): Doc fix.
20753
20754 * editfns.c (Finsert_byte): Return a proper value.
20755
207562008-02-01 Kenichi Handa <handa@m17n.org>
20757
20758 * coding.c (decode_coding): Fix args to translate_chars. Pay
20759 attention to Vstandard_translation_table_for_decode.
20760 (encode_coding): Fix args to translate_chars. Pay attention to
20761 Vstandard_translation_table_for_encode.
20762
20763 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20764 SINGLE_BYTE_CHAR_P.
20765
20766 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20767 not by SINGLE_BYTE_CHAR_P.
20768
20769 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20770 SINGLE_BYTE_CHAR_P.
20771
20772 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20773 SINGLE_BYTE_CHAR_P.
20774
20775 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20776 by SINGLE_BYTE_CHAR_P.
20777
20778 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20779 SINGLE_BYTE_CHAR_P.
20780
207812008-02-01 Dave Love <fx@gnu.org>
20782
20783 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20784
207852008-02-01 Dave Love <fx@gnu.org>
20786
20787 * fns.c (Flanginfo): Fix typo.
20788
20789 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20790
207912008-02-01 Kenichi Handa <handa@m17n.org>
20792
20793 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20794 (detect_coding_emacs_mule, detect_coding_iso_2022)
20795 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20796 incomplete byte sequence. Don't update *mask when correctly detected.
20797 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20798 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20799 (detect_coding, detect_coding_system): Adjust for the changes above.
20800
208012008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * character.c (char_string): Rename from
20804 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20805 (string_char): Rename from string_char.
20806
20807 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20808 if C is greater than MAX_3_BYTE_CHAR.
20809 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20810 string_char instead of string_char_with_unification.
20811
208122008-02-01 Dave Love <fx@gnu.org>
20813
20814 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20815
208162008-02-01 Kenichi Handa <handa@m17n.org>
20817
20818 * keymap.c (push_key_description): Pay attention to force_multibyte.
20819
20820 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20821
208222008-02-01 Dave Love <fx@gnu.org>
20823
20824 * charset.c (define_charset_internal): Rename `supprementary'.
20825
20826 * Makefile.in (lisp, shortlisp): Remove latin-N.
20827
208282008-02-01 Dave Love <fx@gnu.org>
20829
20830 * xfns.c (x_window, x_window): Use use_xim.
20831
20832 * xterm.c (use_xim): Initialize.
20833 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20834 (x_term_init): Maybe set use_xim.
20835
20836 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * search.c (search_buffer): Fix case-fold-search of multibyte
20841 characters.
20842 (boyer_moore): Rename the last argument to char_high_bits.
20843
208442008-02-01 Kenichi Handa <handa@m17n.org>
20845
20846 * xdisp.c (display_string): Fix for the case of zero width glyph.
20847
20848 * xfns.c (x_set_font): Change the error message of the case that
20849 x_new_fontset returns Qt.
20850
20851 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20852 (Finternal_set_lisp_face_attribute): Use signal_error for the
20853 error of invalid fontset.
20854
20855 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20856 fontset, return Qt.
20857
208582008-02-01 Dave Love <fx@gnu.org>
20859
20860 * unexelf.c (unexec): Make .got handling not SGI-specific.
20861
20862 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20863
20864 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20865
20866 * keyboard.c (read_key_sequence): Fix type error.
20867
20868 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20869 type error.
20870
20871 * fontset.c (fontset_add): Return Lisp_Object.
20872
208732008-02-01 Dave Love <fx@gnu.org>
20874
20875 * charset.h (charset_ordered_list_tick): Declare extern.
20876
208772008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 The following changes (and some of 2008-02-01 changes of mine) are
20880 for handling syntax, category, and case conversion for unibyte
20881 characters by converting them to multibyte on the fly. With these
20882 changes, we don't have to setup syntax and case tables for unibyte
20883 characters in each language environment.
20884
20885 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20886 multibyte if necessary.
20887
20888 * bytecode.c (Fbyte_code): Likewise.
20889
20890 * character.h (LEADING_CODE_LATIN_1_MIN)
20891 (LEADING_CODE_LATIN_1_MAX): New macros.
20892 (unibyte_to_multibyte_table): Extern it.
20893 (unibyte_char_to_multibyte): New macro.
20894 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20895 (CHAR_LEADING_CODE): New macro.
20896 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20897
20898 * character.c (unibyte_to_multibyte_table): New variable.
20899 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20900 (multibyte_char_to_unibyte): If C is an eight-bit character,
20901 convert it to the corresponding byte value.
20902
20903 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20904 not 1, signals an error. Update the elements of
20905 unibyte_to_multibyte_table.
20906 (init_charset_once): Initialize unibyte_to_multibyte_table.
20907 (syms_of_charset): Define the charset `iso-8859-1'.
20908
20909 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20910 as is without converting it to unibyte. In a unibyte buffer,
20911 convert C to multibyte before checking the syntax.
20912
20913 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20914
20915 * minibuf.c (Fminibuffer_complete_word): Use the macro
20916 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20917
20918 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20919
20920 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20921 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20922 that is zero, convert an eight-bit char to multibyte.
20923 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20924 non-emacs case.
20925 (PATFETCH): Convert an eight-bit char to multibyte.
20926 (HANDLE_UNIBYTE_RANGE): New macro.
20927 (regex_compile): Setup the compiled pattern for multibyte chars
20928 even if the given regex string is unibyte. Use PATFETCH_RAW
20929 instead of PATFETCH in many places. To handle `charset'
20930 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20931 only for ASCII chars.
20932 (analyse_first) <exactn>: Simplify because the compiled pattern
20933 is multibyte.
20934 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20935 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20936 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20937 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20938 multibyte always 1.
20939 (re_search_2): In emacs, set the locale variable multibyte to 1,
20940 otherwise to 0. New local variable target_multibyte. Check it
20941 to decide the multibyteness of STR1 and STR2. If
20942 target_multibyte is zero, convert unibyte chars to multibyte
20943 before translating and checking fastmap.
20944 (TARGET_CHAR_AND_LENGTH): New macro.
20945 (re_match_2_internal): In emacs, set the locale variable multibyte
20946 to 1, otherwise to 0. New local variable target_multibyte. Check
20947 it to decide the multibyteness of STR1 and STR2. Use
20948 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20949 <charset, charset_not>: If multibyte is nonzero, check fastmap
20950 only for ASCII chars. Call bcmp_translate with
20951 target_multibyte, not with multibyte.
20952 <begline>: Declare the local variable C as `unsigned'.
20953 (bcmp_translate): Change the last arg name to target_multibyte.
20954
20955 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20956 the regexp pattern and the matching target. Set cp->buf.multibyte
20957 to the multibyteness of the regexp pattern. Set
20958 cp->but.target_multibyte to the multibyteness of the matching target.
20959 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20960 FETCH_STRING_CHAR_ADVANCE.
20961 (Freplace_match): Convert unibyte chars to multibyte.
20962
20963 * syntax.c (char_quoted, back_comment, scan_words)
20964 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20965 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20966 unibyte chars to multibyte.
20967 (skip_chars): Delete the arg syntaxp, and move the code for
20968 handling syntaxes to skip_syntaxes. Change callers.
20969 Fix the case that the multibyteness of STRING and the current
20970 buffer doesn't match.
20971 (skip_syntaxes): New function.
20972 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20973 SINGLE_BYTE_CHAR_P.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * xfaces.c (QCfontset): New variable.
20978 (LFACE_FONTSET): New macro.
20979 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20980 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20981 (Finternal_set_lisp_face_attribute)
20982 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20983 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20984 check also LFACE_FONTSET_INDEX.
20985 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20986 attrs[LFACE_FONT_INDEX].
20987 (syms_of_xfaces): Intern and staticpro QCfontset.
20988
20989 * dispextern.h (enum lface_attribute_index): New member
20990 LFACE_FONTSET_INDEX.
20991
20992 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20993
209942008-02-01 Kenichi Handa <handa@m17n.org>
20995
20996 * coding.c (coding_set_destination): Fix coding->destination for
20997 the case converting a region.
20998 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20999 (encode_coding_object): Fix coding->dst_pos and
21000 coding->dst_pos_byte for the case converting a region.
21001
21002 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21003
21004 * character.h (BYTE8_STRING): New macro.
21005
21006 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21011 characters by octal form.
21012
21013 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21014
21015 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21016 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21017 _fetch_multibyte_char_len.
21018 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21019
21020 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21021
21022 * casefiddle.c (casify_object): Simplify. Handle the case that
21023 the case conversion change the byte length.
21024 (casify_region): Likewise.
21025
21026 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21027
21028 * character.c (_fetch_multibyte_char_len): Delete this variable.
21029 (syms_of_character): Setup Vprintable_chars.
21030
21031 * editfns.c (Fchar_equal): Fix for the unibyte case.
21032 (Finsert_byte): New function.
21033 (syms_of_editfns): Defsubr it.
21034
21035 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21036 of direct code 0x3ffff.
21037
21038 * search.c (Freplace_match): Fix for the unibyte case.
21039
210402008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * lread.c (safe_to_load_p): Fix the logic.
21043
21044 * syntax.c (scan_words): Don't treat characters belonging to
21045 different scripts as constituting a word.
21046
21047 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21048
21049 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21050
21051 * emacs.c (main): In the case of --unibyte, instead of aborting on
21052 finding non-empty buffer, make it unibyte.
21053
210542008-02-01 Kenichi Handa <handa@m17n.org>
21055
21056 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21057 to create a fontset.
21058
210592008-02-01 Dave Love <fx@gnu.org>
21060
21061 * character.c (Funibyte_char_to_multibyte): Doc fix.
21062
21063 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21064
210652008-02-01 Kenichi Handa <handa@m17n.org>
21066
21067 * fontset.c (fontset_add): Make the type `int'.
21068 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21069
21070 * character.c (unibyte_char_to_multibyte)
21071 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21072 charset_unibyte, not charset_primary.
21073
21074 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21075
21076 * charset.c (charset_unibyte): Rename from charset_primary.
21077 (Funibyte_charset): Rename from Fprimary_charset.
21078 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21079 (syms_of_charset): Adjust for the above changes.
21080
21081 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21082 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21083 it->multibyte_p is zero.
21084
21085 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21086 Delete extern.
21087
210882008-02-01 Kenichi Handa <handa@m17n.org>
21089
21090 * coding.c (Fdefine_coding_system_internal): Fix category setting
21091 for a coding system of type iso-2022.
21092
210932008-02-01 Kenichi Handa <handa@m17n.org>
21094
21095 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21096
210972008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * syntax.c (Vnext_word_boundary_function_table): New variable.
21100 (next-word-boundary-function-table): Declare it as a Lisp variable
21101 in syms_of_syntax.
21102 (scan_words): Call functions in Vnext_word_boundary_function_table
21103 if any.
21104
21105 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21106
21107 * fontset.c (fs_load_font): If fontp->charset is not negative,
21108 return fontp without setting its members.
21109
211102008-02-01 Dave Love <fx@gnu.org>
21111
21112 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21113
21114 * m/sparc.h (HAVE_ALLOCA): Delete.
21115
21116 * s/irix6-5.h: Don't include strings.h.
21117 (bcopy, bzero, bcmp): Don't undef.
21118
21119 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21120
21121 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21122 (TIOCSIGSEND): Don't test IRIX6.
21123 (bcopy, bzero, bcmp): Define conditionally.
21124
211252008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * buffer.c (Qas, Qmake, Qto): New variables.
21128 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21129 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21130
21131 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21132 we are inserting a process output into a multibyte buffer.
21133
21134 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21135 multibyte_char_to_unibyte.
21136
21137 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21138 by the primary charset, make it eight-bit char.
21139 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21140
21141 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21142 (charset_8_bit__control, charset_8_bit_graphic)
21143 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21144 (define_charset_internal): New function.
21145 (syms_of_charset): Call define_charset_internal for pre-defined
21146 charsets.
21147
21148 * charset.h (charset_8_bit): Extern it.
21149
21150 * coding.c (make_conversion_work_buffer): Adjust for the change
21151 of Fset_buffer_multibyte.
21152 (encode_coding_raw_text): Increment p0 in the loop.
21153
21154 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21155
21156 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21157 for the change of Fset_buffer_multibyte.
21158
21159 * fns.c (Fstring_to_multibyte): New function.
21160 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21161
211622008-02-01 Dave Love <fx@gnu.org>
21163
21164 * xfns.c (x_put_x_image): Declare args.
21165
21166 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21167 (try_font_list): Declare an arg.
21168
21169 * xdisp.c (message2_nolog, set_message): Declare an arg.
21170
21171 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21172
21173 * syntax.c (scan_sexps_forward): Declare an arg.
21174
21175 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21176 Declare an arg.
21177
21178 * lisp.h (Fnew_fontset): Declare.
21179
21180 * keymap.c (push_key_description): Call CHARACTERP correctly.
21181
21182 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21183 (face_for_char): Delete unused vars.
21184 (Fset_fontset_font): Doc fix. Delete unused vars.
21185
21186 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21187
21188 * composite.c (update_compositions): Declare arg.
21189
21190 * cm.c (calccost, cmgoto): Declare args.
21191
21192 * charset.c: Remove `emacs' conditional. Doc fixes.
21193 (map_char_table_for_charset): Declare.
21194
21195 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21196
21197 * ccl.c: Remove `emacs' conditional.
21198
211992008-02-01 Kenichi Handa <handa@m17n.org>
21200
21201 The following changes are to allow specifying multiple font
21202 patterns for a character range (specified by script or charset).
21203
21204 * Makefile.in (abbrev.o): Depend on syntax.h.
21205 (xfaces.o): Depend on charset.h.
21206
21207 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21208 SINGLE_BYTE_CHAR_P.
21209
21210 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21211
21212 * character.h (Vchar_script_table): Extern it.
21213
21214 * character.c (Vscript_alist): Delete.
21215 (Vchar_script_table, Qchar_script_table): New variable.
21216 (syms_of_character): Declare Vchar_script_table as a lisp variable
21217 and initialize it.
21218
21219 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21220 have property char-table-extra-slots, make no extra slot.
21221
21222 * dispextern.h (struct face): Delete member `charset'.
21223 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21224 SINGLE_BYTE_CHAR_P.
21225 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21226 Add prototypes.
21227 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21228 (generate_ascii_font_name): Rename from generate_ascii_font.
21229
21230 * fontset.h (get_font_repertory_func): New prototype.
21231 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21232 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21233
21234 * fontset.c (Qprepend, Qappend): New variables.
21235 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21236 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21237 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21238 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21239 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21240 (load_font_get_repertory): New functions.
21241 (fontset_set): Delete.
21242 (fontset_face): New arg FACE. Return face ID, not face.
21243 Complete re-write to handle new fontset structure. Change caller.
21244 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21245 (face_for_char): Don't call lookup_face.
21246 (make_fontset_for_ascii_face): New arg FACE.
21247 (fs_load_font): New arg CHARSET_ID. Don't check
21248 Vfont_encoding_alist here.
21249 (find_font_encoding): New function.
21250 (list_fontsets): Use STRINGP, not ! NILP.
21251 (accumulate_script_ranges): New function.
21252 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21253 re-written to handle new fontset structure.
21254 (Ffontset_font): Return a copy of element.
21255 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21256 docstring of font-encoding-alist.
21257
21258 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21259 (Fset_fotset_font): Fix arguments to 5.
21260
21261 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21262
21263 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21264 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21265 (highlight_trailing_whitespace): Adjust for the change of
21266 lookup_named_face.
21267
21268 * xfaces.c: Include charset.h.
21269 (load_face_font): Delete argument C. Change caller.
21270 (generate_ascii_font_name): Rename from generate_ascii_font.
21271 (font_name_registry): New function.
21272 (cache_face): Store ascii faces before non-ascii faces in buckets.
21273 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21274 Lookup only ascii faces.
21275 (lookup_non_ascii_face): New function.
21276 (lookup_named_face): Delete argument C. Change caller.
21277 (lookup_derived_face): Delete argument C. Change caller.
21278 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21279 a string, just call font_list with it.
21280 (choose_face_font): Delete arguments FACE and C. New arg
21281 FONT_SPEC. Change caller.
21282 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21283 Change caller.
21284 (realize_non_ascii_face): New function.
21285 (realize_x_face): Call load_face_font here.
21286 (realize_tty_face): Delete argument C. Change caller.
21287 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21288 get a face ID.
21289 (dump_realized_face): Don't print charset of FACE.
21290
21291 * xfns.c (x_set_font): Always call x_new_fontset and
21292 store_frame_parameter.
21293 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21294 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21295
21296 * xterm.h (x_get_font_repertory): Extern it.
21297
21298 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21299 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21300 it->multibyte_p is zero.
21301 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21302 (x_new_fontset): If FONTSETNAME doesn't match any existing
21303 fontsets, create a new one.
21304 (x_get_font_repertory): New function.
21305
213062008-02-01 Kenichi Handa <handa@m17n.org>
21307
21308 * coding.c (Ffind_coding_systems_region_internal): Detect an
21309 ASCII only string correctly.
21310
21311 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21312 version is 0.
21313
213142008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * lread.c: Include "coding.h".
21317 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21318 (load_each_byte, unread_char): New variables.
21319 (readchar_backlog): Delete.
21320 (readchar): Return a character unless load_each_byte is nonzero.
21321 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21322 cons. If unread_char is not -1, simply return it.
21323 (unreadchar): Handle the case that readcharfun is
21324 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21325 (read_multibyte): Delete.
21326 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21327 (read_emacs_mule_char): New functions.
21328 (Fload): Even if the file doesn't have the extension ".elc", if
21329 safe_to_load_p returns a positive version number, assume that the
21330 file contains bytecompiled code. If the version is less than 22,
21331 load the file while decoding multibyte sequences by emacs-mule.
21332 (readevalloop): Don't use readchar_backlog.
21333 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21334 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21335 (read_escape): Delete the arg BYTEREP.
21336 (read1): Set load_each_byte to 1 temporarily while handling
21337 #@NUMBER. Don't call read_multibyte.
21338 (read_vector): Call Fread with a cons. If readcharfun is
21339 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21340 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21341 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21342 and Qload_force_doc_strings.
21343
213442008-02-01 Kenichi Handa <handa@m17n.org>
21345
21346 * xdisp.c (face_before_or_after_it_pos): Call
21347 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21348
213492008-02-01 Kenichi Handa <handa@m17n.org>
21350
21351 * character.h (TRAILING_CODE_P): New macro.
21352 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21353 (string_char_with_unification): Fix prototype.
21354 (Vscript_alist): Extern it.
21355
21356 * character.c (Vscript_alist): New variable.
21357 (string_char_with_unification, str_as_unibyte)
21358 (string_escape_byte8): Add `const' to local variables.
21359 (syms_of_character): Declare script-alist as a Lisp variable.
21360
21361 * charset.h (Vcharset_ordered_list): Extern it.
21362 (charset_ordered_list_tick): Extern it.
21363 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21364 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21365 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21366 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21367 (Funify_charset): Adjust for the change of Funify_charset.
21368
21369 * charset.c (charset_ordered_list_tick): New variable.
21370 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21371 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21372 deunify instead of unify a charset.
aac0c6e3
MR
21373 (string_xstring_p): Add `const' to local variables.
21374 (find_charsets_in_text): Add `const' to arguments and local variables.
21375 (encode_char): Adjust for the change of Funify_charset. Fix
21376 detecting of invalid code.
21377 (Fset_charset_priority): Increment charset_ordered_list_tick.
21378 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21379 and TO_CODE.
21380
21381 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21382 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21383 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21384 (decode_coding_ccl, consume_chars)
21385 (Ffind_coding_systems_region_internal)
21386 (Fcheck_coding_systems_region): Add `const' to local variables.
21387
21388 * print.c (print_object): Use octal form for printing the
21389 contents of a bool vector.
21390
213912008-02-01 Dave Love <fx@gnu.org>
21392
21393 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21394 <version == 20>: Refuse to load.
21395
213962008-02-01 Dave Love <fx@gnu.org>
21397
21398 * fns.c: Move coding.h.
21399 (Qcodeset, Qdays, Qmonths): New.
21400 (concat): Use CHARACTERP instead of INTEGERP.
21401 (Flocale_codeset): Delete.
21402 (Flanginfo): New function.
21403 (syms_of_fns): Change accordingly.
21404
21405 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21406
214072008-02-01 Dave Love <fx@gnu.org>
21408
21409 * casetab.c (init_casetab_once, init_casetab_once): Fix
21410 CHAR_TABLE_SET call.
21411
21412 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21413
21414 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21415
21416 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21417 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21418 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21419
21420 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21421
21422 * coding.c (ENCODE_DESIGNATION, decode_eol)
21423 (make_conversion_work_buffer, code_conversion_restore)
21424 (Fdefine_coding_system_internal): Convert Lisp types.
21425 (code_conversion_restore): Use EQ, not ==.
21426 (Fencode_coding_string): Fix code_convert_string call.
21427
21428 * coding.h (code_convert_region): Fix prototype.
21429
21430 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21431
21432 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21433 (Ffontset_info): Convert Lisp types.
21434
21435 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21436
21437 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21438
21439 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21440
21441 * chartab.c: Include "...h", not <...h> in some cases.
21442
21443 * callproc.c (Fcall_process): Remove unused variables.
21444
214452008-02-01 Dave Love <fx@gnu.org>
21446
21447 * coding.c (Fset_coding_system_priority): Allow null arg list.
21448
214492008-02-01 Dave Love <fx@gnu.org>
21450
21451 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21452 (Fself_insert_and_exit): Use CHARACTERP.
21453
21454 * callproc.c (Fcall_process): Remove unused vars.
21455
21456 * xterm.c (XTread_socket): Add extra dead keysyms.
21457
21458 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21459
21460 * dispextern.h: Remove prototypes for redraw_frame,
21461 redraw_garbaged_frames.
21462
21463 * cmds.c (Fself_insert_command): Use CHARACTERP.
21464
21465 * chartab.c (make_sub_char_table): Remove unused var.
21466 (Fset_char_table_default, Fmap_char_table): Doc fix.
21467
21468 * keymap.c (access_keymap): Remove generic char code.
21469 (push_key_description): Use CHARACTERP.
21470
214712008-02-01 Dave Love <fx@gnu.org>
21472
21473 * charset.c: Doc fixes.
21474 (Funify_charset): Extra checking.
21475
214762008-02-01 Dave Love <fx@gnu.org>
21477
21478 * lread.c: Remove some unused variables.
21479 (safe_to_load_p): If safe, return the magic number version byte.
21480 (Fload): Maybe use load-with-code-conversion.
21481
214822008-02-01 Kenichi Handa <handa@m17n.org>
21483
21484 * category.c (Fmodify_category_entry): Don't modify the contents
21485 of category_set for characters out of the range. Avoid
21486 unnecessary modification.
21487
21488 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21489 Vchar_unify_table. The default value of the table is now nil.
21490
21491 * character.c (syms_of_character): Setup Vchar_width_table for
21492 eight-bit-control and raw-byte chars.
21493
21494 * charset.h (enum define_charset_arg_index): Delete
21495 charset_arg_parents and add charset_arg_subset and
21496 charset_arg_superset.
21497 (enum charset_attr_index): Delete charset_parents and add
21498 charset_subset and charset_superset.
21499 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21500 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21501 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21502 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21503 (CHARSET_SUPERSET): New macros.
21504 (charset_work): Extern it.
21505 (ENCODE_CHAR): Use charset_work.
21506 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21507 (map_charset_chars): Extern it.
21508
21509 * charset.c (load_charset_map): Set the default value of encoder
21510 and deunifier char-tables to nil.
21511 (map_charset_chars): Change argument. Change callers. Use
21512 map_char_table_for_charset instead of map_char_table.
21513 (Fmap_charset_chars): New optional args from_code and to_code.
21514 (Fdefine_charset_internal): Adjust for the change of
21515 `define-charset' (:parents -> :subset or :superset).
21516 (charset_work): New variable.
21517 (encode_char, syms_of_charset): Adjust for the change of
21518 Fdefine_charset_internal.
21519 (Ffind_charset_string): Setup the vector `charsets' correctly.
21520
21521 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21522 the previous change.
21523 (char_table_ref_and_range): Adjust for the above change.
21524 (map_sub_char_table_for_charset): New function.
21525 (map_char_table_for_charset): New function.
21526
21527 * keymap.c (describe_vector): Handle a char-table directly here.
21528 (describe_char_table): Delete.
21529
21530 * lisp.h (map_charset_chars): Delete.
21531
215322008-02-01 Dave Love <fx@gnu.org>
21533
21534 * fns.c (count_combining): Comment out (unused).
21535 (Flocale_codeset): New.
21536 (syms_of_fns): Defsubr it.
21537
21538 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21539 (size_t): Remove.
21540
215412008-02-01 Dave Love <fx@gnu.org>
21542
21543 * Makefile.in (chartab.o): Depend on charset.h.
21544
215452008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * character.c (syms_of_character): Set the default value of
21548 Vprintable_chars to Qnil.
21549
215502008-02-01 Dave Love <fx@gnu.org>
21551
21552 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21553
215542008-02-01 Kenichi Handa <handa@m17n.org>
21555
21556 * charset.c (load_charset_map): Handle the case that from < to
21557 correctly.
21558
21559 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21560 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21561 Pay attention to raw-8-bit chars.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21566 It is not bytecompiled now.
21567
21568 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21569 (charset_jisx0208): New variables.
21570 (Fdefine_charset_internal): Setup them if appropriate.
21571 (init_charset_once): Initialize them to -1.
21572
21573 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21574 (charset_jisx0208): Extern them.
21575
21576 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21577 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21578 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21579 (setup_iso_safe_charsets): Fix arguments to Fassq.
21580 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21581 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21582 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21583 (encode_coding_iso_2022): Change the 1st arg to
21584 ENCODE_ISO_CHARACTER to a variable.
21585
215862008-02-01 Kenichi Handa <handa@m17n.org>
21587
21588 * charset.h (enum define_charset_arg_index): New enums
21589 charset_arg_min_code and charset_arg_max_code.
21590 (struct charset): New member char_index_offset.
21591
21592 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21593 Take charset->char_index_offset into account.
21594 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21595 args[charset_arg_max_code]. Setup charset.char_index_offset.
21596 (syms_of_charset): Fix args to Fdefine_charset_internal.
21597
215982008-02-01 Dave Love <fx@gnu.org>
21599
21600 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21601
216022008-02-01 Dave Love <fx@gnu.org>
21603
21604 * coding.c: Doc fixes.
21605 (Fcoding_system_aliases): Fix return value.
21606 (Qmac): Remove (duplicated) definition.
21607
216082008-02-01 Dave Love <fx@gnu.org>
21609
362654a6
JB
21610 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21611 New functions.
aac0c6e3
MR
21612
21613 * character.c (Fstring): Doc fix.
21614
21615 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21616
362654a6 21617 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21618 (font-encoding-alist): Doc fix.
21619
216202008-02-01 Dave Love <fx@gnu.org>
21621
21622 * term.c (costs_set): Declare static, non-initialized for pcc.
21623 (encode_terminal_code): Remove unused var.
21624
21625 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21626 for K&R.
21627
21628 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21629
21630 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21631 (suffixes): Move out of make_subsidiaries for K&R.
21632
21633 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21634
21635 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21636
216372008-02-01 Dave Love <fx@gnu.org>
21638
21639 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21640
21641 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21642
216432008-02-01 Yong Lu <lyongu@asia-infonet.com>
21644
21645 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21646
21647 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21648
216492008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21652 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21653
216542008-02-01 Kenichi Handa <handa@m17n.org>
21655
21656 * coding.c (decode_coding_charset): Adjust for the change of
21657 Fdefine_coding_system_internal.
21658 (Fdefine_coding_system_internal): For a coding system of
21659 `charset' type, store a list of charset IDs in
21660 `charset_attr_charset_valids' element of coding attributes.
21661
216622008-02-01 Kenichi Handa <handa@m17n.org>
21663
21664 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21665 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21666 caller. Handle 2-byte and 3-byte charsets correctly.
21667 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21668 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21669 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21670 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21671 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21672 sequence.
21673 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21674 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21675 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21676 and alt&rule composition.
21677 (decode_coding_iso_2022): Handle composition correctly.
21678 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21679
21680 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21681 re-defining a charset. If the charset has :emacs-mule-id, setup
21682 emacs_mule_bytes.
21683 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21684
216852008-02-01 Kenichi Handa <handa@m17n.org>
21686
21687 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21688 (encode_coding_big5, encode_coding_charset): If coding requires safe
21689 encoding, produce a character specified by
21690 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21691
216922008-02-01 Dave Love <fx@gnu.org>
21693
21694 * xterm.c (XSetIMValues): Declare.
21695
21696 * process.c: Conditionally include sys/wait.h, pty.h.
21697
21698 * print.c (print_object): Fix print format for 64-bit systems.
21699
21700 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21701
21702 * buffer.c (emacs_strerror): Declare.
21703
21704 * fontset.c (Fclear_face_cache): Declare.
21705 (accumulate_font_info): Comment-out (unused).
21706 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21707 variables.
21708
21709 * character.h (string_escape_byte8): Declare.
21710
21711 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21712 unused vars.
21713 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21714 (Fmap_charset_chars): Doc fix.
21715
21716 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21717 (Fset_coding_system_priority, Fset_coding_system_priority)
21718 (Fdefine_coding_system_internal): Doc fix.
21719
217202008-02-01 Dave Love <fx@gnu.org>
21721
21722 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21723
217242008-02-01 Kenichi Handa <handa@m17n.org>
21725
21726 * character.c (string_escape_byte8): Make multibyte string with
21727 correct size.
21728
21729 * charset.c (Fmake_char): Delete unnecessary code.
21730
217312008-02-01 Kenichi Handa <handa@m17n.org>
21732
21733 * xfns.c (x_encode_text): Allocate coding.destination here, and
21734 call encode_coding_object with dst_object Qnil.
21735
21736 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21737 multibyte form correctly.
21738
21739 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21740 against Vfont_encoding_alist.
21741
21742 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21743 handling of charset list.
21744 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21745 (decode_coding_object): Move point to coding->dst_pos before
21746 calling post-read-conversion function.
21747 (encode_coding_object): Give correct arguments to
21748 pre-write-conversion. Ignore the return value of
21749 pre-write-conversion function. Pay attention to the case that
21750 pre-write-conversion changes the current buffer. If dst_object is
21751 Qt, even if coding->src_bytes is zero, allocate at least one byte
21752 to coding->destination.
21753
21754 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21755
21756 * charset.c (Fmake_char): Make it more backward compatible.
21757 (Fmap_charset_chars): Fix docstring.
21758
217592008-02-01 Dave Love <fx@gnu.org>
21760
21761 * coding.c: Doc fixes.
21762 (Fdefine_coding_system_alias): Use names, not symbols, in
21763 coding-system-alist.
21764
217652008-02-01 Kenichi Handa <handa@m17n.org>
21766
21767 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21768 of calling free_realized_face.
21769
217702008-02-01 Yong Lu <lyongu@asia-infonet.com>
21771
21772 * charset.c (read_hex): Don't treat SPC as a comment starter.
21773 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21774 (Fdecode_char): Fix typo.
21775
217762008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * charset.h (struct charset): New member `code_space_mask'.
21779
21780 * coding.c (coding_set_source): Delete the local variable beg_byte.
21781 (encode_coding_charset, Fdefine_coding_system_internal):
21782 Delete the local variable charset.
21783 (Fdefine_coding_system_internal): Setup
21784 attrs[coding_attr_charset_valids] correctly.
21785
21786 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21787 member to check if CODE is valid or not.
21788 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21789 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21790 is within the range of charset->min_code and carset->max_code.
21791
217922008-02-01 Dave Love <fx@gnu.org>
21793
21794 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21795
21796 * dispextern.h (generate_ascii_font): Fix return type.
21797
21798 * xfaces.c (generate_ascii_font): Fix arg declaration.
21799
21800 * coding.c (coding_inherit_eol_type)
21801 (Fset_terminal_coding_system_internal)
21802 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21803
218042008-02-01 Kenichi Handa <handa@m17n.org>
21805
21806 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21807 multiple charsets correctly.
21808
218092008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 * search.c (boyer_moore): Fix handling of multibyte character
21812 translation.
21813
21814 * xdisp.c (display_mode_element): When the variable `elt' is
21815 changed, update `this' and `lisp_string'.
21816
218172008-02-01 Kenichi Handa <handa@m17n.org>
21818
21819 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21820
21821 * callproc.c (Fcall_process): Be sure to give the current buffer
21822 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21823
21824 * charset.c (struct charset_map_entries): New struct.
21825 (load_charset_map): Rename from parse_charset_map. New args
21826 entries and n_entries. Change caller.
21827 (load_charset_map_from_file): Rename from load_charset_map.
21828 Change caller. New arg control_flag. Call load_charset_map at
21829 the tail.
21830 (load_charset_map_from_vector): New function.
21831 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21832 (encode_char): If the charset is compact, change a character index
21833 to a code point.
21834
21835 * coding.c (coding_alloc_by_making_gap): Check the case that the
21836 source and destination are the same correctly.
21837 (decode_coding_raw_text): Set coding->consumed_char and
21838 coding->consumed to 0.
21839 (produce_chars): If coding->chars_at_source is nonzero, update
21840 coding->consumed_char and coding->consumed before calling
21841 alloc_destination.
21842 (Fdefine_coding_system_alias): Register ALIAS in
21843 Vcoding_system_alist.
21844 (syms_of_coding): Define `no-conversion' coding system at the tail.
21845
21846 * fileio.c (Finsert_file_contents): Set coding_system instead of
21847 val. If the current buffer is multibyte, always call
21848 decode_coding_gap.
21849
21850 * xfaces.c (try_font_list): Give higher priority to fontset's
21851 family than face's family.
21852
218532008-02-01 Kenichi Handa <handa@m17n.org>
21854
21855 * callproc.c (Fcall_process): Be sure to give the current buffer
21856 to decode_coding_c_string.
21857
21858 * xfaces.c (try_font_list): Give a family specified in a fontset
21859 higher priority than a family specified in a face.
21860
218612008-02-01 Kenichi Handa <handa@m17n.org>
21862
21863 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21864 Fix arguments to insert_from_buffer.
21865
21866 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21867
218682008-02-01 Kenichi Handa <handa@m17n.org>
21869
21870 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21871 (decode_coding_gap): Set coding->dst_multibyte correctly.
21872
218732008-02-01 Kenichi Handa <handa@m17n.org>
21874
21875 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21876 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21877 (encode_coding_utf_16): Substitute coding->default_char for
21878 non-Unicode characters.
21879 (decode_coding): Don't call record_insert here.
21880 (setup_coding_system): Initialize `surrogate' of
21881 coding->spec.utf_16 to 0.
21882 (EMIT_ONE_BYTE): Fix for multibyte case.
21883
21884 * insdel.c (insert_from_gap): Call record_insert.
21885
218862008-02-01 Kenichi Handa <handa@m17n.org>
21887
21888 * casefiddle.c (casify_region): Fix multibyte case.
21889
21890 * character.c (c_string_width): Add return type `int'.
21891 (char_string_with_unification): Delete arg ADVANCED.
21892
21893 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21894 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21895 (CHAR_STRING_ADVANCE): Make it do-while statement.
21896
21897 * chartab.c (sub_char_table_set_range): Optimize for the case
21898 DEPTH == 3. Add workaround code for a GCC optimization bug.
21899
21900 * charset.c (parse_charset_map): Remove an unused variable.
21901
21902 * coding.c: Delete unused variables.
21903
21904 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21905 earlier. If inserted is zero and the coding system doesn't
21906 require flushing, don't call decode_coding_gap.
21907
21908 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21909
219102008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 The following changes are for using Unicode as an internal
21913 character model, and use UTF-8 format for buffer/string
21914 representation.
21915
21916 * .gdbinit (xchartable): Adjust for the change of char table structure.
21917 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21918
21919 * Makefile.in (obj): Add character.o and chartab.o.
21920 (lisp, shortlisp): Remove utf-8.elc.
21921 (*.o): For many files, change dependency on charset.h to
21922 character.h, and add dependency on character.h.
21923 (character.o, chartab.o): New targets.
21924
21925 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21926 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21927 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21928 of "charset.h".
21929
21930 * dired.c, filelock.c: Include "character.h".
21931
21932 * alloc.c: Include "character.h" instead of "charset.h".
21933 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21934 (syms_of_alloc): Remove defsubr for Smake_char_table.
21935
21936 * buffer.c: Include "character.h" instead of "charset.h", don't
21937 include "coding.h".
21938 (Fset_buffer_multibyte): Adjust for UTF-8.
21939
21940 * buffer.h: EXFUN Fbuffer_live_p.
21941
21942 * callproc.c: Include "character.h" instead of "charset.h".
21943 (Fcall_process): Big change for the new code-conversion APIs.
21944
21945 * casetab.c: Include "character.h" instead of "charset.h".
21946 (set_canon, set_identity, shuffle): Adjust for the new
21947 map_char_table spec.
21948 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21949 accessing the char table structure.
21950
21951 * chartab.c: New file that implements char table.
21952
21953 * category.c: Include "character.h".
21954 (copy_category_entry): New function.
21955 (copy_category_table): Call map_char_table and copy_category_entry.
21956 (Fmake_category_table): Initialize all top-level slots.
21957 (char_category_set): New function.
21958 (modify_lower_category_set): Delete.
21959 (Fmodify_category_entry): Call char_table_ref_and_range.
21960
21961 * category.h (CATEGORY_SET): Just call char_category_set.
21962
21963 * ccl.c: Include "character.h".
21964 (Qccl, Qcclp): New variables.
21965 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21966 it's less than 256.
21967 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21968 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21969 and DST type.
21970 (ccl_driver): Change types of argument, adjust code accordingly.
21971 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21972 ccl_driver.
21973 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21974
21975 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21976 New members src_multibyte, dst_multibyte, consumed, and produced.
21977 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21978 (CODING_SPEC_CCL_PROGRAM): New macro.
21979 (ccl_driver): Update prototype.
21980 (Qccl, Qcclp, Fccl_program_p): Extern them.
21981 (CHECK_CCL_PROGRAM): New macro.
21982
21983 * character.c, character.h, chartab.c: New files.
21984
21985 * charset.c: Mostly re-written. Move character and multibyte sequence
21986 handling codes to character.c.
21987
21988 * charset.h: Mostly re-written. Move character and multibyte sequence
21989 handling codes to character.h.
21990
21991 * coding.c, coding.h: Mostly re-written.
21992
21993 * composite.c: Include "character.h" instead of "charset.h".
21994 (CHAR_WIDTH): Move to character.h.
21995 (HASH_KEY, HASH_VALUE): Delete.
21996
21997 * composite.h (enum composition_method): Change order of enumeration
21998 symbols.
21999
22000 * data.c: Include "character.h" instead of "charset.h".
22001 (Faref): Call CHAR_TABLE_REF for a char table.
22002 (Faset): Call CHAR_TABLE_SET for a char table.
22003
22004 * dispextern.h (free_realized_face, check_face_attribytes)
22005 (generate_ascii_font): Extern them.
22006 (free_realized_multibyte_face): Delete extern.
22007
22008 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22009 table structure.
22010
22011 * editfns.c: Include "character.h" instead of "charset.h".
22012 (Fchar_to_string): Always call CHAR_STRING.
22013
22014 * emacs.c (main): Call init_charset_once, init_charset,
22015 syms_of_chartab, and syms_of_character.
22016
22017 * fileio.c: Include "character.h" instead of "charset.h".
22018 (Finsert_file_contents): Big change for the new code-conversion API.
22019 (choose_write_coding_system, Fwrite_region): Likewise.
22020 (build_annotations_2): Delete.
22021 (e_write): Big change for the new code-conversion API.
22022
22023 * fns.c: Include "character.h" instead of "charset.h".
22024 (copy_sub_char_table): Move to chartab.c.
22025 (Fcopy_sequence): Call copy_char_table for a char table.
22026 (concat): Delete codes calling count_multibyte.
22027 (string_char_to_byte, string_byte_to_char): Adjust for the new
22028 multibyte form.
22029 (internal_equal): Adjust for the change of char table structure.
22030 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22031 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22032 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22033 (char_table_translate, optimize_sub_char_table)
22034 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22035 chartab.c.
22036 (char_table_ref_and_index): Delete.
22037 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22038 (Fmd5): Call preferred_coding_system instead of accessing
22039 Vcoding_category_list. Adjust for the new code-conversion API.
22040 (syms_of_fns): Move defsubr for char table related functions to
22041 chartab.c.
22042
22043 * fontset.c: Mostly re-written.
22044
22045 * fontset.h (struct font_info): Change type of the member encoding_type.
22046 (enum FONT_SPEC_INDEX): New enum.
22047 (fontset_font_pattern, fs_load_font): Update prototype.
22048 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22049
22050 * indent.c: Include "character.h" instead of "charset.h".
22051 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22052
22053 * insdel.c: Include "character.h" instead of "charset.h".
22054 (copy_text): Don't refer to Vnonascii_translation_table.
22055 (insert_from_gap): New function.
22056
22057 * keyboard.c: Include "character.h" instead of "charset.h".
22058 (command_loop_1): Never call direct_output_forward_char before
22059 a non-ASCII character.
22060 (read_char): If Vkeyboard_translate_table is a char table, always
22061 translate a character.
22062
22063 * keymap.c: Include "character.h".
22064 (store_in_keymap): Handle the case that IDX is a cons.
22065 (Fdefine_key): Handle the case that KEY is a cons and the car part
22066 is also a cons (range).
22067 (push_key_description): Adjust for the new character code.
22068 (describe_vector): Call describe_char_table for a char table.
22069 (describe_char_table): New function.
22070
22071 * keymap.h (describe_char_table): Extern it.
22072
22073 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22074 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22075 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22076 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22077 Delete.
22078 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22079 structure.
22080 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22081 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22082 (CHARTAB_SIZE_BITS_3): New macros.
22083 (chartab_size): Extern it.
22084 (struct Lisp_Char_Table): Re-design.
22085 (struct Lisp_Sub_Char_Table): New structure.
22086 (HASH_KEY, HASH_VALUE): Move from fns.c.
22087 (CHARACTERBITS): Define as 22.
22088 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22089 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22090 (GC_SUB_CHAR_TABLE_P): New macro.
22091 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22092 (code_convert_string_norecord): Deleted extern.
22093 (init_character_once, syms_of_character, init_charset)
22094 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22095
22096 * lread.c: Include "character.h".
22097 (read_multibyte): New arg NBYTES.
22098 (read_escape): Change the meaning of returned *BYTEREP.
22099 (to_multibyte): Delete.
22100 (read1): Adjust the handling of char table and string.
22101
22102 * print.c: Include "character.h" instead of "charset.h".
22103 (print_string): Convert 8-bit raw bytes to octal form by
22104 string_escape_byte8.
22105 (print_object): Adjust for the new multibyte form. Print 8-bit
22106 raw bytes always in octal form. Handle sub char table correctly.
22107
22108 * process.c: Include "character.h" instead of "charset.h".
22109 (read_process_output, send_process): Adjust for the new
22110 code-conversion API.
22111
22112 * puresize.h (BASE_PURESIZE): Increase.
22113
22114 * regex.c: Include "character.h" instead of "charset.h".
22115 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22116 (regex_compile): Accept a range whose starting and ending
22117 character have different leading bytes.
22118 (analyse_first): Adjust for the above change.
22119
22120 * search.c: Include "character.h" instead of "charset.h".
22121 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22122 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22123
22124 * syntax.c: Include "character.h" instead of "charset.h".
22125 (syntax_parent_lookup): Delete.
22126 (Fmodify_syntax_entry): Accept a cons as CHAR.
22127 (skip_chars): Adjust for the new multibyte form.
22128 (init_syntax_once): Call char_table_set_range instead of directly
22129 accessing the structure of a char table.
22130
22131 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22132 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22133 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22134 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22135
22136 * term.c: Include "buffer.h" and "character.h".
22137 (encode_terminal_code, write_glyphs): Adjust for the new
22138 code-conversion API.
22139 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22140
22141 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22142
22143 * xdisp.c: Include "character.h".
22144 (get_next_display_element): Adjust for the new multibyte form.
22145 (disp_char_vector): Adjust for the new char table structure.
22146 (decode_mode_spec_coding): Adjust for the new structure of
22147 coding system.
22148 (decode_mode_spec): Adjust for the new code-conversion API.
22149
22150 * xfaces.c: Include "character.h" instead of "charset.h".
22151 (load_face_font): Adjust for the change of choose_face_font and
22152 FS_LOAD_FONT.
22153 (generate_ascii_font): New function.
22154 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22155 (set_font_frame_param): Adjust for the change of choose_face_font.
22156 (free_realized_face): Make it public.
22157 (free_realized_faces_for_fontset): Rename from
22158 free_realized_multibyte_face. Free also faces realized for ASCII.
22159 (choose_face_font): Change arguments. Adjust for the change of
22160 fontset_font_pattern and FS_LOAD_FONT.
22161
22162 * xfns.c: Include "character.h".
22163 (x_encode_text): Adjust for the new code-conversion API.
22164
22165 * xselect.c: Don't include "charset.h".
22166 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22167
22168 * xterm.c: Include "character.h".
22169 (x_encode_char): New argument CHARSET. Change caller.
22170 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22171 Call ENCODE_CHAR instead of SPLIT_CHAR.
22172 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22173 CHAR_WIDTH instead of CHARSET_WIDTH.
22174 (XTread_socket): Adjust for the new code-conversion API.
22175 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22176 (x_load_font): Adjust for the change of struct font.
22177
221782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22179
22180 * xfaces.c (face_at_buffer_position): Remove unused vars.
22181
221822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22183
22184 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22185 Fix overflow checking.
22186
221872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22188
22189 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22190 Cancel previous change.
22191
221922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22193
22194 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22195 ccl->eight_bit_control. Fix check for buffer overflow.
22196 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22197 (ccl_driver): Initialize extra_bytes to 0.
22198
221992008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22200
22201 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22202 return it ORed with ctrl_modifier.
22203
222042008-01-29 Miles Bader <miles@gnu.org>
22205
22206 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22207
222082008-01-28 Jason Rumney <jasonr@gnu.org>
22209
22210 * w32.c (stat): Don't double check for networked drive.
22211
222122008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22213
22214 * window.c (run_window_configuration_change_hook): New function.
22215 Code extracted from set_window_buffer. Set the selected frame.
22216 (set_window_buffer): Use it.
22217 * window.h (run_window_configuration_change_hook): Declare.
22218 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22219
22220 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22221
222222008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22223
22224 * Makefile.in: Remove references to unused macros.
22225
222262008-01-26 Eli Zaretskii <eliz@gnu.org>
22227
22228 * w32.c (g_b_init_get_sid_sub_authority)
22229 (g_b_init_get_sid_sub_authority_count): New static variables.
22230 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22231 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22232 (init_user_info): Use them to retrieve uid and gid.
22233 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22234 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22235 st_uid and st_gid of the file.
22236
222372008-01-26 Jason Rumney <jasonr@gnu.org>
22238
22239 * w32.c (logon_network_drive): New function.
22240 (stat): Use it.
22241
222422008-01-26 Chong Yidong <cyd@stupidchicken.com>
22243
22244 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22245 invisible text covered with an ellipsis.
22246
222472008-01-25 Richard Stallman <rms@gnu.org>
22248
22249 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22250 jump back to beginning. Move some other initializations after that.
22251 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22252 New variables.
22253 (syms_of_xdisp): Init them.
22254
22255 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22256
22257 * buffer.c (reset_buffer_local_variables):
22258 Implement `permanent-local-hook'.
22259 (Qpermanent_local_hook): New variable.
22260 (syms_of_buffer): Init and staticpro it.
22261
222622008-01-25 Michael Albinus <michael.albinus@gmx.de>
22263
22264 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22265
222662008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22267
22268 * fns.c (Fclrhash): Return TABLE.
22269
222702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22271
22272 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22273 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22274 is set even without positional changes.
22275 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22276
22277 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22278
222792008-01-23 Jason Rumney <jasonr@gnu.org>
22280
22281 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22282
22283 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22284 the unicode range available in MULE by locale-coding-system.
22285 Improve dbcs lead byte detection. Set event timestamp and modifiers
22286 earlier.
22287
222882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22289
22290 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22291 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22292 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22293 when used on child processes.
22294
222952008-01-21 Michael Albinus <michael.albinus@gmx.de>
22296
22297 * dbusbind.c (Fdbus_method_return_internal): Rename from
22298 Fdbus_method_return.
22299 (Fdbus_unregister_object): Move to dbus.el.
22300 (Fdbus_call_method, Fdbus_method_return_internal)
22301 (Fdbus_send_signal): Improve debug messages.
22302
223032008-01-20 Martin Rudalics <rudalics@gmx.at>
22304
22305 * undo.c (undo_inhibit_record_point): New variable.
22306 (syms_of_undo): Initialize it.
22307 (record_point): Don't record point when undo_inhibit_record_point
22308 is set.
22309
223102008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22311
22312 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22313
22314 * xdisp.c (Qauto_hscroll_mode): New var.
22315 (syms_of_xdisp): Initialize it.
22316 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22317 window's buffer.
22318 (hscroll_windows): Don't check automatic_hscrolling_p here.
22319
22320 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22321 vscroll if we're setting window-buffer to the value it already has.
22322
223232008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22324
22325 * m/intel386.h: Remove references to XENIX.
22326
223272008-01-17 Andreas Schwab <schwab@suse.de>
22328
22329 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22330 instead of HAVE_X86_64_LIB64_DIR.
22331 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22332
223332008-01-17 Glenn Morris <rgm@gnu.org>
22334
22335 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22336 to HAVE_X86_64_LIB64_DIR.
22337
223382008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22339
22340 * s/irix3-3.h:
22341 * s/irix4-0.h:
22342 * s/386-ix.h:
22343 * s/domain.h:
22344 * s/hpux9-x11r4.h:
22345 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22346
22347 * sysdep.c: Remove code containing references to symbols defined
22348 by unsupported systems.
22349
223502008-01-16 Glenn Morris <rgm@gnu.org>
22351
22352 * coding.c (select-safe-coding-system-function): Doc fix.
22353
223542008-01-15 Glenn Morris <rgm@gnu.org>
22355
22356 * config.in: Revert 2008-01-13 change: this is a generated file.
22357
223582008-01-13 Tom Tromey <tromey@redhat.com>
22359
22360 * lisp.h: Fix typo.
22361
223622008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22363
22364 * m/sequent-ptx.h:
22365 * m/sequent.h:
22366 * s/ptx.h:
22367 * s/ptx4-2.h:
22368 * s/ptx4.h: Remove files for systems no longer supported.
22369
22370 * callproc.c (Fcall_process): Fix previous change.
22371
223722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22373
22374 * unexsunos4.c: Remove file, system not supported anymore.
22375
22376 * m/mips.h:
22377 * m/intel386.h:
22378 * callproc.c:
22379 * config.in:
22380 * ecrt0.c:
22381 * emacs.c:
22382 * fileio.c:
22383 * frame.c:
22384 * getpagesize.h:
22385 * keyboard.c:
22386 * lread.c:
22387 * process.c:
22388 * puresize.h:
22389 * sysdep.c:
22390 * systty.h:
22391 * syswait.h:
22392 * unexec.c:
22393 * xdisp.c:
22394 * alloc.c: Remove code containing references to symbols defined by
22395 unsupported systems.
22396
223972008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22398
22399 * coding.c (detect_coding_mask): Fix previous change.
22400
224012008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22402
22403 * coding.c (detect_coding_iso2022): New arg
22404 latin_extra_code_state. Allow Latin extra codes only
22405 when *latin_extra_code_state is nonzero.
22406 (detect_coding_mask): If there is a NULL byte, detect the encoding
22407 as UTF-16 or binary. If Latin extra codes exist, detect the
22408 encoding as ISO-2022 only when there's no other proper encoding is
22409 found.
22410
224112008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22412
22413 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22414 #ifdef MAC_OS.
22415
224162008-01-08 Richard Stallman <rms@gnu.org>
22417
22418 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22419
224202008-01-06 Nick Roberts <nickrob@snap.net.nz>
22421
22422 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22423 menu bar in parentheses.
22424
224252008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22426
22427 * m/7300.h:
22428 * m/acorn.h:
22429 * m/alliant-2800.h:
22430 * m/alliant.h:
22431 * m/alliant1.h:
22432 * m/alliant4.h:
22433 * m/altos.h:
22434 * m/amdahl.h:
22435 * m/apollo.h:
22436 * m/att3b.h:
22437 * m/aviion-intel.h:
22438 * m/aviion.h:
22439 * m/celerity.h:
22440 * m/clipper.h:
22441 * m/cnvrgnt.h:
22442 * m/convex.h:
22443 * m/cydra5.h:
22444 * m/delta88k.h:
22445 * m/dpx2.h:
22446 * m/dual.h:
22447 * m/elxsi.h:
22448 * m/f301.h:
22449 * m/gould-np1.h:
22450 * m/gould.h:
22451 * m/i860.h:
22452 * m/ibmps2-aix.h:
22453 * m/ibmrt-aix.h:
22454 * m/ibmrt.h:
22455 * m/irist.h:
22456 * m/is386.h:
22457 * m/isi-ov.h:
22458 * m/mega68.h:
22459 * m/mg1.h:
22460 * m/news-r6.h:
22461 * m/news-risc.h:
22462 * m/news.h:
22463 * m/nh3000.h:
22464 * m/nh4000.h:
22465 * m/ns16000.h:
22466 * m/ns32000.h:
22467 * m/nu.h:
22468 * m/orion.h:
22469 * m/orion105.h:
22470 * m/paragon.h:
22471 * m/pfa50.h:
22472 * m/plexus.h:
22473 * m/pyramid.h:
22474 * m/pyrmips.h:
22475 * m/sh3el.h:
22476 * m/sps7.h:
22477 * m/sr2k.h:
22478 * m/stride.h:
22479 * m/sun1.h:
22480 * m/sun2.h:
22481 * m/sun3-68881.h:
22482 * m/sun3-fpa.h:
22483 * m/sun3-soft.h:
22484 * m/sun3.h:
22485 * m/sun386.h:
22486 * m/symmetry.h:
22487 * m/tad68k.h:
22488 * m/tahoe.h:
22489 * m/targon31.h:
22490 * m/tek4300.h:
22491 * m/tekxd88.h:
22492 * m/tower32.h:
22493 * m/tower32v3.h:
22494 * m/ustation.h:
22495 * m/wicat.h:
22496 * m/xps100.h:
22497 * s/cxux.h:
22498 * s/cxux7.h:
22499 * s/dgux.h:
22500 * s/dgux4.h:
22501 * s/dgux5-4-3.h:
22502 * s/dgux5-4r2.h:
22503 * s/esix.h:
22504 * s/esix5r4.h:
22505 * s/hiuxmpp.h:
22506 * s/hiuxwe2.h:
22507 * s/iris3-5.h:
22508 * s/iris3-6.h:
22509 * s/isc2-2.h:
22510 * s/isc3-0.h:
22511 * s/isc4-0.h:
22512 * s/isc4-1.h:
22513 * s/newsos5.h:
22514 * s/newsos6.h:
22515 * s/osf1.h:
22516 * s/osf5-0.h:
22517 * s/riscix1-1.h:
22518 * s/riscix12.h:
22519 * s/sco4.h:
22520 * s/sco5.h:
22521 * s/sunos4-0.h:
22522 * s/sunos4-1.h:
22523 * s/sunos413.h:
22524 * s/sunos4shr.h:
22525 * s/umax.h:
22526 * s/unipl5-2.h:
22527 * s/xenix.h:
22528 * cxux-crt0.s:
22529 * unexapollo.c:
22530 * unexconvex.c:
22531 * unexenix.c:
22532 * unexsni.c: Remove files for systems no longer supported.
22533
22534 * m/intel386.h: Remove references to unsupported systems.
22535
22536 * w32.c (get_emacs_configuration): Remove reference to i860.
22537
22538 * sysdep.c: Remove dead code.
22539
225402008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22541
22542 * s/rtu.h:
22543 * m/masscomp.h: Remove files. Platform is obsolete.
22544
225452008-01-04 Michael Albinus <michael.albinus@gmx.de>
22546
22547 * dbusbind.c (Fdbus_method_return): New function.
22548 (xd_read_message): Add the serial number to the event.
22549 (Fdbus_register_method): Activate the function.
22550
225512008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22552
22553 * keyboard.c (read_key_sequence): Fix typo.
22554
225552008-01-03 Michael Albinus <michael.albinus@gmx.de>
22556
22557 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22558 (xd_signature, xd_append_arg): Handle element type detection for
22559 empty arrays.
22560 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22561 SDATA () calls; this must be solved more general.
22562 (Fdbus_register_signal): Use SBYTES instead of strlen.
22563
225642008-01-03 Magnus Henoch <magnus@zemdatav>
22565
22566 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22567 unsigned int for byte values (necessary for big-endian platform).
22568 (Fdbus_call_method): Handle the case of no returned arguments.
22569
225702007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22571
22572 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22573
225742007-12-31 Magnus Henoch <mange@freemail.hu>
22575
22576 * dbusbind.c (xd_signature): Signature of variant is just "v".
22577
225782007-12-30 Michael Albinus <michael.albinus@gmx.de>
22579
22580 * dbusbind.c: Fix several errors and compiler warnings.
22581 Reported by Tom Tromey <tromey@redhat.com>.
22582 (XD_ERROR, XD_DEBUG_MESSAGE)
22583 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22584 (xd_append_arg): Part for basic D-Bus types rewritten.
22585 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22586 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22587 appropriate.
22588 (xd_read_message): Return Qnil. Don't signal an error; it is not
22589 useful during event reading.
22590 (Fdbus_register_signal): Signal an error if the check for
22591 FUNCTIONP fails.
22592 (Fdbus_register_method): New function. The implementation is not
22593 complete, the call of the function signals an error therefore.
22594 (Fdbus_unregister_object): New function, renamed from
22595 Fdbus_unregister_signal. The initial check signals an error, if
22596 the object is not well formed.
22597
225982007-12-30 Richard Stallman <rms@gnu.org>
22599
22600 * textprop.c (get_char_property_and_overlay):
22601 Signal error if POSITION is out of range in a buffer.
22602
226032007-12-29 Martin Rudalics <rudalics@gmx.at>
22604
22605 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22606 because the original parameters are in pure storage now.
22607
226082007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22609
22610 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22611
226122007-12-22 Eli Zaretskii <eliz@gnu.org>
22613
22614 * callint.c (syms_of_callint) <command-history>: Add reference to
22615 history-length in the doc string.
22616
226172007-12-17 Jason Rumney <jasonr@gnu.org>
22618
22619 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22620 before passing as wParam.
22621
226222007-12-22 Michael Albinus <michael.albinus@gmx.de>
22623
22624 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22625 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22626 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22627 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22628 as number.
22629 (Fdbus_call_method): Fix docstring.
22630
226312007-12-21 Michael Albinus <michael.albinus@gmx.de>
22632
22633 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22634 New macros.
22635 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22636 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22637 Simplify.
22638 (xd_signature): New function.
22639 (xd_append_arg): Compute also signatures. Major rewrite.
22640 (xd_retrieve_arg): Make debug messages friendly.
22641 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22642 Check for signatures of arguments.
22643
226442007-12-19 Michael Albinus <michael.albinus@gmx.de>
22645
22646 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22647 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22648 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22649 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22650 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22651 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22652 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22653 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22654 (xd_retrieve_value): Remove. Functionality included in ...
22655 (xd_append_arg): New function.
22656 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22657
226582007-12-16 Michael Albinus <michael.albinus@gmx.de>
22659
22660 * dbusbind.c (top): Include <stdio.h>.
22661 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22662 dbus_message_new_method_call and dbus_message_new_signal.
22663 (Fdbus_register_signal): Rename unique_name to uname.
22664 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22665 non-existing unique name. Fix typos in matching rule. Return an
22666 object which is useful in Fdbus_unregister_signal.
22667 (Fdbus_unregister_signal): Reimplementation, in order to remove
22668 only the corresponding entry.
22669 (Vdbus_registered_functions_table): Change the order of entries.
22670 Apply these changes in xd_read_message and Fdbus_register_signal.
22671
226722007-12-16 Andreas Schwab <schwab@suse.de>
22673
22674 * fileio.c (Finsert_file_contents): Fix overflow check to not
22675 depend on undefined integer overflow.
22676
226772007-12-14 Jason Rumney <jasonr@gnu.org>
22678
22679 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22680 for characters above 127.
22681
226822007-12-13 Jason Rumney <jasonr@gnu.org>
22683
22684 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22685 before dereferencing array.
22686 (lookup_vk_code): Remove zero comparison.
22687
226882007-12-14 Michael Albinus <michael.albinus@gmx.de>
22689
22690 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22691 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22692 Use `unsigned int' instead of `uint'.
22693 (xd_read_message, Fdbus_register_signal): Split expressions into
22694 multiple lines before operators "&&" and "||", according to the
22695 GNU Coding Standards.
22696
226972007-12-14 Eli Zaretskii <eliz@gnu.org>
22698
22699 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22700
227012007-12-12 Juri Linkov <juri@jurta.org>
22702
22703 * buffer.c (Frename_buffer): In interactive spec replace
22704 `read-buffer' with `read-string' that uses `buffer-name-history'
22705 as history, and the current buffer's name as default.
22706
227072007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22708
22709 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22710 manipulating the backtrace manually.
22711 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22712 (struct backtrace, backtrace_list): Remove.
22713 (command_loop_1): Remove dead var `no_direct'.
22714
22715 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22716 preserve non-built-in buffer-local variables.
22717 (Fkill_all_local_variables): Don't re-create&re-set permanent
22718 buffer-local variables.
22719
227202007-12-09 Juri Linkov <juri@jurta.org>
22721
22722 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22723 Lisp code that uses `read-buffer' with current buffer as default.
22724
227252007-12-08 Michael Albinus <michael.albinus@gmx.de>
22726
22727 * dbusbind.c (xd_read_message): Generate an event for every
22728 registered handler. There might be several handlers registered
22729 for the same signal.
22730 (Fdbus_register_signal): Don't overwrite a registration for the
22731 same signal. Add a new registration if handlers are different.
22732 (Vdbus_registered_functions_table): Rework doc string.
22733
227342007-12-07 Michael Albinus <michael.albinus@gmx.de>
22735
22736 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22737 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22738 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22739 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22740 Unify argument lists.
22741 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22742 arguments and hash table keys. Use unique name for service.
22743 (Fdbus_unregister_signal): Remove checks.
22744 (Vdbus_registered_functions_table): Fix doc string.
22745
227462007-12-05 Magnus Henoch <mange@freemail.hu>
22747
22748 * process.c (make_process): Initialize pty_flag to 0.
22749
227502007-12-05 Jason Rumney <jasonr@gnu.org>
22751
22752 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22753 specified XBMs.
22754
227552007-12-05 Richard Stallman <rms@gnu.org>
22756
22757 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22758
227592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22760
22761 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22762 New variable.
22763 (mac_try_close_socket) [MAC_OSX]: New function.
22764 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22765 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22766
22767 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22768 Use mac_try_close_socket.
22769
227702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22771
22772 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22773 reloc_base.
22774 (copy_dysymtab): Compute relocation base here.
22775 (rebase_reloc_address) [__ppc64__]: New function.
22776 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22777 changed.
22778
227792007-12-05 Jason Rumney <jasonr@gnu.org>
22780
22781 * w32proc.c (sys_spawnve): Quote args with wildcards.
22782
227832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22784
22785 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22786 __objc_* sections.
22787 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22788
227892007-12-05 Michael Albinus <michael.albinus@gmx.de>
22790
22791 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22792 Move check for Vdbus_registered_functions_table to
22793 xd_read_queued_messages.
22794 (xd_read_queued_messages): Protect xd_read_message calls by
22795 internal_condition_case_1.
22796
227972007-12-04 Michael Albinus <michael.albinus@gmx.de>
22798
22799 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22800 Qdbus_system_bus and Qdbus_session_bus, respectively.
22801 (Vdbus_intern_symbols): Remove.
22802 (Vdbus_registered_functions_table): New hash table.
22803 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22804 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22805 Rewrite in order to manage registered functions by hash table
22806 Vdbus_registered_functions_table.
22807
228082007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22809
22810 * xterm.c: Update URL to Window Manager Specification in comment.
22811
228122007-12-02 Michael Albinus <michael.albinus@gmx.de>
22813
22814 * config.in (HAVE_DBUS): Add.
22815
22816 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22817 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22818 (obj): Add $(DBUS_OBJ).
22819 (LIBES): Add $(DBUS_LIBS).
22820 (dbusbind.o): New target.
22821
22822 * dbusbind.c: New file.
22823
22824 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22825
22826 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22827 (Qdbus_event): New Lisp symbol.
22828 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22829 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22830 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22831
22832 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22833
228342007-12-01 Richard Stallman <rms@gnu.org>
22835
22836 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22837
228382007-11-30 Jason Rumney <jasonr@gnu.org>
22839
22840 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22841 (w32con_reset_terminal_modes): Clear screen buffer.
22842 (w32_face_attributes): Don't use color indexes that are out of range.
22843 Only reverse the default colors.
22844
22845 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22846 WINDOWSNT.
22847
22848 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22849
228502007-11-29 Jason Rumney <jasonr@gnu.org>
22851
22852 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22853 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22854 if the terminal colors are initialized.
22855 (unspecified_fg, unspecified_bg): Remove unused declarations.
22856
228572007-11-29 Andreas Schwab <schwab@suse.de>
22858
22859 * keyboard.c (apply_modifiers): Fix typo.
22860
228612007-11-29 Richard Stallman <rms@gnu.org>
22862
22863 * keymap.c (Fcurrent_local_map): Doc fix.
22864
228652007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22866
22867 * s/gnu-kfreebsd.h: New file.
22868
228692007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22870
22871 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22872 Don't cast redundantly.
22873
22874 * keyboard.c (KEY_TO_CHAR): New macro.
22875 (parse_modifiers, apply_modifiers): Accept integer arguments.
22876 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22877 for chars and symbol keys.
22878 After doing such remapping, apply function-key-map again.
22879
228802007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22881
22882 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22883 compiled anymore.
22884
228852007-11-26 Andreas Schwab <schwab@suse.de>
22886
22887 * process.c (list_processes_1): Fix indentation level of the
22888 command column.
22889
228902007-11-23 Andreas Schwab <schwab@suse.de>
22891
22892 * editfns.c (Fformat): Handle %c specially since it requires the
22893 argument to be of type int.
22894
228952007-11-23 Markus Triska <markus.triska@gmx.at>
22896
22897 * emacs.c (main): Call init_editfns before init_process, since
22898 init_process sets Vprocess_connection_type depending on OS release.
22899
229002007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22901
22902 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22903 (find_symbol_value): Use do_symval_forwarding.
22904
22905 * data.c (set_internal): Set the value in the `cons-cell' (for
22906 Buffer_Local_values) not only for frame-local variables.
22907
229082007-11-22 Andreas Schwab <schwab@suse.de>
22909
22910 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22911 values to sprintf.
22912 * keymap.c (Fsingle_key_description): Likewise.
22913 * print.c (print_object): Likewise.
22914
229152007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22916
22917 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22918 file for image is nil.
22919
229202007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22921
22922 * term.c: Include stdarg.h.
22923 (fatal): Implement using varargs.
22924 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22925
229262007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22927
22928 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22929 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22930 Update call to buffer_slot_type_mismatch.
22931 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22932 (buffer_slot_type_mismatch): Update.
22933 * buffer.c (buffer_local_types): Remove.
22934 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22935 (defvar_per_buffer): Set the type in the buffer_objfwd.
22936
229372007-11-21 Jason Rumney <jasonr@gnu.org>
22938
22939 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22940 CreateFileMapping returns NULL on failure.
22941
229422007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22943
22944 * search.c (Fset_match_data): Remove the `evaporate' feature.
22945 (unwind_set_match_data): Don't use the `evaporate' feature.
22946
229472007-11-21 Jason Rumney <jasonr@gnu.org>
22948
22949 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22950
22951 * w32console.c (w32con_write_glyphs): Remove unused variables.
22952
229532007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22954
22955 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22956
22957 * s/darwin.h (MULTI_KBOARD): Remove.
22958
22959 * macfns.c (x_create_tip_frame, Fx_create_frame)
22960 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22961
229622007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22963
22964 * buffer.c (Fbuffer_local_value): Remove redundant test.
22965 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22966 than in `current-buffer' to match the comment.
22967 Do the swap using swap_in_global_binding.
22968
22969 * data.c (store_symval_forwarding, set_internal):
22970 * eval.c (specbind): Remove dead code.
22971
22972 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22973 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22974 Since we do not want to see internal Lisp_*fwd objects here.
22975
229762007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22977
22978 * sysdep.c (init_system_name): Use getaddrinfo if available.
22979
22980 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22981 (x_scroll_bar_note_movement): start, end, with, height in struct
22982 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22983
229842007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22985
22986 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22987
229882007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22989
22990 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22991 This undoes Richard's change of 14-Oct-2002.
22992
22993 * alloc.c (allocate_other_vector):
22994 * lisp.h (allocate_other_vector): Remove.
22995
22996 * window.c (struct save_window_data): Move non-lisp data to the end
22997 and make it `int' rather than Lisp_Object.
22998 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22999 Done wrap/unwrap integer values.
23000 (Fset_window_configuration, compare_window_configurations):
23001 Update use of fields to their new types.
23002
23003 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23004 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23005 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23006 (SET_SCROLL_BAR_X_WINDOW): Remove.
23007 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23008 Access the new x_window field directly.
23009 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23010 Don't wrap/unwrap integers into Lisp_Objects.
23011 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23012 (x_scroll_bar_report_motion):
23013 Don't wrap/unwrap integers into Lisp_Objects.
23014 (x_term_init): Use SDATA.
23015 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23016 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23017 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23018 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23019 * xfns.c (x_set_background_color):
23020 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23021 Access the new x_window field directly.
23022
23023 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23024 (allocate_pseudovector): Make non-static.
23025
23026 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23027 (allocate_pseudovector): Declare.
23028 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23029
230302007-11-15 Andreas Schwab <schwab@suse.de>
23031
23032 * editfns.c (Fformat): Correctly format EMACS_INT values.
23033 Also take precision into account when formatting an integer.
23034
23035 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23036
230372007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23038
23039 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23040 (syms_of_keyboard): Defsubr it.
23041
23042 * data.c (swap_in_global_binding): Fix longstanding bug where
23043 store_symval_forwarding was not called with the right second argument,
23044 thus causing objfwd-ing from being dropped.
23045
230462007-11-14 Juanma Barranquero <lekktu@gmail.com>
23047
23048 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23049 (Fx_display_pixel_height, Fx_display_planes)
23050 (Fx_display_color_cells, Fx_server_max_request_size)
23051 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23052 (Fx_display_visual_class, Fx_display_save_under):
23053 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23054 (Fx_display_pixel_height, Fx_display_planes)
23055 (Fx_display_color_cells, Fx_server_max_request_size)
23056 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23057 (Fx_display_mm_height, Fx_display_mm_width)
23058 (Fx_display_backing_store, Fx_display_visual_class)
23059 (Fw32_select_font, Fx_display_save_under):
23060 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23061 (Fx_display_pixel_height, Fx_display_planes)
23062 (Fx_display_color_cells, Fx_server_max_request_size)
23063 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23064 (Fx_display_save_under): Fix typos in docstrings.
23065
230662007-11-14 Juanma Barranquero <lekktu@gmail.com>
23067
23068 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23069 corresponding to deleted entries; they are an implementation detail.
23070 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23071 Remove variables.
23072 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23073 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23074 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23075 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23076 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23077 (Fw32_define_rgb_color, Fw32_load_color_file)
23078 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23079 Fix typos in docstrings.
23080 (Fx_server_version): Reflow docstring.
23081 (Fw32_shell_execute): Doc fixes.
23082
230832007-11-13 Juanma Barranquero <lekktu@gmail.com>
23084
23085 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23086 if w32_parse_hot_key returned nil.
23087
230882007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23089
23090 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23091
230922007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23093
aac0c6e3
MR
23094 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23095
23096 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23097
23098 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23099 Remove W32_SCROLL_BAR_CLICK_EVENT.
23100
23101 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23102 Add MULTIMEDIA_KEY_EVENT.
23103
23104 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23105 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23106 (make_lispy_event) [WINDOWSNT]: Use it to translate
23107 MULTIMEDIA_KEY_EVENT.
23108
23109 * w32term.h (WM_APPCOMMAND): Define if not already.
23110 (GET_APPCOMMAND_LPARAM): Likewise.
23111
23112 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23113 WM_APPCOMMAND.
23114
23115 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23116 (syms_of_w32fns): Export and initialize it.
23117 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23118
231192007-11-09 Chong Yidong <cyd@stupidchicken.com>
23120
23121 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23122 twice.
23123
23124 * xdisp.c (handle_face_prop): Fix last change.
23125
231262007-11-09 Richard Stallman <rms@gnu.org>
23127
23128 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23129 not just for after-strings and before-strings.
23130 Call face_for_overlay_string and pass the overlay to it.
23131 (handle_display_prop): Determine whether property came from an overlay.
23132 Pass OVERLAY arg to handle_single_display_spec.
23133 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23134 (load_overlay_strings): Fill in it->string_overlays.
23135 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23136
23137 * xfaces.c (face_for_overlay_string): Function renamed from
23138 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23139
23140 * dispextern.h (struct it): New elt string_overlays.
23141 New elt from_overlay, also in stack.
23142 Rearrange a few elements.
23143 (face_for_overlay_string): Decl renamed from
23144 face_at_buffer_position_no_overlays, and add argument.
23145
231462007-11-09 Richard Stallman <rms@gnu.org>
23147
23148 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23149 to get the base face for an overlay string.
23150
23151 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23152
23153 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23154
23155 * xdisp.c (handle_stop): Move some code out of loop.
23156
231572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23158
23159 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23160 Fix conversion from Lisp object to ATSUFontID.
23161
231622007-11-09 Jason Rumney <jasonr@gnu.org>
23163
23164 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23165
231662007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23167
23168 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23169 Don't assume regions are aligned to page boundary.
23170 (print_load_command_name): Add LC_UUID if defined.
23171
231722007-11-09 Richard Stallman <rms@gnu.org>
23173
23174 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23175
231762007-11-07 Jason Rumney <jasonr@gnu.org>
23177
23178 * s/windows95.h: Remove.
23179
231802007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23181
23182 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23183 abort with a message on unhandled store_type values.
23184
231852007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23186
23187 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23188 Remove HAVE_X11R5 and HAVE_X11R4.
23189
231902007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23191
23192 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23193
231942007-11-01 Johan Bockgård <bojohan@gnu.org>
23195
23196 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23197 Don't set s->stippled_p here, since it has already been set by
23198 x_set_glyph_string_gc from x_draw_glyph_string.
23199
232002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23201
23202 * sunfns.c: Remove file.
23203
23204 * m/sun386.h:
23205 * m/sun2.h:
23206 * m/sparc.h: Remove Sun windows code.
23207
232082007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23209
23210 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23211 (init_keyboard): Set current_kboard's window-system to nil.
23212 (tty_read_avail_input): Typo.
23213 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23214
232152007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23216
23217 * s/usg5-4.h:
23218 * s/usg5-3.h:
23219 * s/ptx.h:
23220 * m/is386.h:
23221 * m/ibmps2-aix.h:
23222 * Makefile.in: Remove all mentions of X10.
23223
23224 * dispnew.c (syms_of_display): Don't mention version 10.
23225
232262007-10-28 Juanma Barranquero <lekktu@gmail.com>
23227
23228 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23229 ($(BLD)/abbrev.$(O)): Remove.
23230
232312007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23232
23233 Rewrite abbrev.c in Elisp.
23234 * image.c (Qcount): Don't declare as extern.
23235 (syms_of_image): Initialize and staticpro `Qcount'.
23236 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23237 * emacs.c (main): Don't call syms_of_abbrev.
23238 * Makefile.in (obj): Remove abbrev.o.
23239 (abbrev.o): Remove.
23240 * abbrev.c: Remove.
23241
232422007-10-26 Martin Rudalics <rudalics@gmx.at>
23243
23244 * window.c (window_min_size_2): Don't count header-line.
23245
232462007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23247
23248 * frame.h (struct frame): Move all bit fields after the first bit
23249 field to take advantage of the available space. Group all the
23250 chars together to reduce wasted space due to padding.
23251
232522007-10-26 Juanma Barranquero <lekktu@gmail.com>
23253
23254 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23255
23256 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23257 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23258 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23259 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23260 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23261 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23262 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23263 (last_marked, mark_object_loop_halt): Make static.
23264
23265 * frame.c (syms_of_frame) <delete-frame-functions>:
23266 Fix typo in docstring.
23267
232682007-10-25 Juanma Barranquero <lekktu@gmail.com>
23269
23270 * w32.c (init_environment): Fix tiny memory leak.
23271 (w32_get_resource): Remove unused variable `ok'.
23272
232732007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 Make `window-system' into a keyboard-local variable (rather than
23276 frame-local as done originally by multi-tty).
23277
23278 * keyboard.h (struct kboard): Add Vwindow_system.
23279 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23280 (mark_kboards): Mark Vwindow_system.
23281
23282 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23283 (init_display): Don't set the obsolete `window-system' frame-param.
23284
23285 * xterm.c (x_term_init):
23286 * w32term.c (w32_create_terminal):
23287 * term.c (init_tty): Set Vwindow_system.
23288 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23289 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23290
23291 * xfns.c (Fx_create_frame, x_create_tip_frame):
23292 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23293 * macfns.c (Fx_create_frame):
23294 Don't set the obsolete `window-system' frame-param.
23295
23296 * frame.h (Qwindow_system): Remove.
23297 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23298 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23299
233002007-10-24 Richard Stallman <rms@gnu.org>
23301
23302 * frame.c (x_figure_window_size): For fullscreen case,
23303 set USPosition | PPosition without clobbering rest of window_prompting.
23304
23305 * keyboard.c (Fcurrent_idle_time): Doc fix.
23306
23307 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23308
233092007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23310
23311 * process.c (unwind_request_sigio): Only define if __ultrix__.
23312
23313 * callproc.c (child_setup): Remove spurious *.
23314
23315 * lisp.h (Fget_text_property): Declare.
23316 (have_menus_p): Declare it here rather than in sys-dep header files.
23317 * macterm.h (have_menus_p):
23318 * msdos.h (have_menus_p):
23319 * xterm.h (have_menus_p): Remove.
23320
23321 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23322 (Fmake_variable_frame_local): Just check the variable's const-ness
23323 rather than checking nil or t.
23324
233252007-10-22 Jason Rumney <jasonr@gnu.org>
23326
23327 * w32fns.c: Include math.h.
23328 (w32_abort): Declaration moved to nt/config.nt.
23329
23330 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23331 (abort): Redefinition moved to nt/config.nt.
23332
23333 * m/windowsnt.h: Remove.
23334
233352007-10-22 Juanma Barranquero <lekktu@gmail.com>
23336
23337 * emacs.c (Fdump_emacs): Fix typo in message.
23338 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23339 <installation-directory>: Reflow docstring.
23340
233412007-10-22 Juri Linkov <juri@jurta.org>
23342
23343 * minibuf.c: Allow minibuffer default to be a list of default values.
23344 With empty input use the first element of this list as returned default.
23345 (string_to_object)
23346 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23347 (read_minibuf): If defalt is cons, set histstring to its car.
23348 (Fread_string): If default_value is cons, set val to its car.
23349 (Fread_buffer): If def is cons, use its car.
23350 (Fcompleting_read): If defalt is cons, set val to its car.
23351
233522007-10-21 Michael Albinus <michael.albinus@gmx.de>
23353
23354 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23355
233562007-10-20 Juanma Barranquero <lekktu@gmail.com>
23357
23358 * doc.c (Fdocumentation): Check for advice in all cases.
23359
233602007-10-19 Chong Yidong <cyd@stupidchicken.com>
23361
23362 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23363
233642007-10-19 Richard Stallman <rms@gnu.org>
23365
23366 * doc.c (Fdocumentation): Check for and handle an advised function.
23367
233682007-10-19 Juanma Barranquero <lekktu@gmail.com>
23369
23370 * process.c (Fset_process_filter): Doc fix.
23371
233722007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23373
23374 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23375 which caused key-translation-map to applied repeatedly (thus breaking
23376 double-mode).
23377
233782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23379
23380 * xselect.c (x_own_selection, x_handle_selection_clear)
23381 (x_clear_frame_selections):
23382 * w32menu.c (list_of_panes, list_of_items):
23383 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23384 * textprop.c (validate_plist, interval_has_all_properties)
23385 (interval_has_some_properties, interval_has_some_properties_list)
23386 (add_properties, text_property_list):
23387 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23388 * minibuf.c (Fassoc_string):
23389 * macselect.c (x_own_selection, x_clear_frame_selections)
23390 (Fx_disown_selection_internal):
23391 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23392 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23393
233942007-10-17 Chong Yidong <cyd@stupidchicken.com>
23395
23396 * process.c: Link to libs for calling res_init() if available.
23397 (Fmake_network_process): Call res_init() before getaddrinfo or
23398 gethostbyname, if possible.
23399
234002007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23401
23402 * lread.c (read1): Set pvectype for char_tables.
23403
23404 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23405 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23406 Add type checks.
23407 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23408
23409 * alloc.c (free_misc): Use XMISCTYPE.
23410 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23411
234122007-10-17 Glenn Morris <rgm@gnu.org>
23413
23414 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23415 (syms_of_minibuf): Add Qcompletion_ignore_case.
23416 * dired.c (Qcompletion_ignore_case): Change to external.
23417 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23418 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23419 (Fread_file_name): Use it rather than intern'ing.
23420
23421 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23422 (Fread_coding_system): Ignore case of user input.
23423
234242007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23425
23426 * xdisp.c (handle_display_prop): Ignore display specs after
23427 replacing one when string text is being replaced.
23428 (handle_single_display_spec): Pretend as if characters with display
23429 property haven't been consumed only when buffer text is being replaced.
23430
234312007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23432
23433 * xfns.c (Fx_create_frame, Fx_display_list):
23434 * window.c (window_fixed_size_p, enlarge_window)
23435 (shrink_window_lowest_first):
23436 * macterm.c (init_font_name_table):
23437 * macfns.c (Fx_create_frame, Fx_display_list):
23438 * lread.c (close_load_descs):
23439 * keyboard.c (read_char_x_menu_prompt):
23440 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23441 * coding.c (code_convert_region_unwind): Test the type of an object
23442 rather than just !NILP before extracting data from it.
23443
23444 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23445
23446 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23447 (XMISCANY): New macro.
23448 (XMISCTYPE): Use it.
23449 (struct Lisp_Misc_Any): New type.
23450 (union Lisp_Misc): Use it.
23451 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23452 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23453 (find_symbol_value, set_internal, default_value, Fset_default)
23454 (Fmake_variable_buffer_local, Fmake_local_variable)
23455 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23456 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23457 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23458 * alloc.c (allocate_buffer): Set the size and tag.
23459 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23460 Use XMISCANY.
23461 (die): Follow the GNU convention for error messages.
23462 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23463 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23464 tag any more.
23465 (set_buffer_internal_1):
23466 * frame.c (store_frame_param):
23467 * eval.c (specbind):
23468 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23469
23470 * doc.c (Fsnarf_documentation): Simplify.
23471
234722007-10-14 Juanma Barranquero <lekktu@gmail.com>
23473
23474 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23475 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23476
234772007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23478
23479 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23480
234812007-10-14 Juanma Barranquero <lekktu@gmail.com>
23482
23483 * eval.c (do_autoload): Don't save autoloads.
23484
23485 * data.c (Ffset): Save autoload of the function being set.
23486
234872007-10-07 John Paul Wallington <jpw@pobox.com>
23488
23489 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23490 parameter before setting up faces.
23491
234922007-10-13 Eli Zaretskii <eliz@gnu.org>
23493
23494 * ccl.c (Fregister_code_conversion_map):
23495 * keyboard.c (append_tool_bar_item): Reformat last change.
23496
23497 * lisp.h (eabs): Rename from `abs'. All callers changed.
23498
234992007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23500
23501 * buffer.c (add_overlay_mod_hooklist):
23502 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23503 * fontset.c (make_fontset):
23504 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23505 (append_tool_bar_item):
23506 * macmenu.c (grow_menu_items):
23507 * w32menu.c (grow_menu_items):
23508 * xmenu.c (grow_menu_items): Use larger_vector.
23509
235102007-10-13 Eli Zaretskii <eliz@gnu.org>
23511
23512 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23513 selected frame'' on MSDOS).
23514
235152007-10-12 Martin Rudalics <rudalics@gmx.at>
23516
23517 * frame.c (Qexplicit_name): New variable.
23518 (x_report_frame_params): Report it in parameter alist.
23519 (syms_of_frame): Intern and staticpro it.
23520
235212007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23522
23523 * macfns.c (x_create_tip_frame): Set terminal for frame.
23524
235252007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23526
23527 * frame.c (Qenvironment): Remove.
23528 (syms_of_frame) <Qenvironment>: Don't initialize.
23529 (Fdelete_frame): Don't treat the `environment' param specially.
23530 * frame.h (Qenvironment): Don't declare.
23531 * callproc.c (set_initial_environment): Don't set unused frame param.
23532
23533 * frame.c (Fframe_with_environment): Remove.
23534 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23535
23536 * lisp.h (Fframe_with_environment): Don't declare.
23537
235382007-10-10 Juanma Barranquero <lekktu@gmail.com>
23539
23540 * indent.c (indent_tabs_mode, last_known_column)
23541 (last_known_column_modified): Make static.
23542 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23543
235442007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23545
23546 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23547
235482007-10-09 Jason Rumney <jasonr@gnu.org>
23549
23550 * w32term.c (x_set_window_size): Disable code that attempts to tell
23551 Lisp code about a size change before it actually happens.
23552
235532007-10-09 Richard Stallman <rms@gnu.org>
23554
23555 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23556 return HANDLED_RETURN.
23557
235582007-10-08 Martin Rudalics <rudalics@gmx.at>
23559
23560 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23561 when there's an unread command event.
23562
23563 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23564 window autoselection act appropriately when leaving selected frame.
23565 (syms_of_frame): Initialize focus_follows_mouse.
23566 * frame.h (focus_follows_mouse): Extern it.
23567 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23568 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23569 * msdos.c (dos_rawgetc): Likewise.
23570 * w32term.c (w32_read_socket): Likewise.
23571 * xterm.c (handle_one_xevent): Likewise.
23572 * xdisp.c (syms_of_xdisp): In doc-string of
23573 mouse-autoselect-window mention focus-follows-mouse.
23574
235752007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23576
23577 * macterm.c (mac_load_query_font): Fix missing return value.
23578 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23579 Add BLOCK_INPUT.
23580
235812007-10-08 Richard Stallman <rms@gnu.org>
23582
23583 * xdisp.c (get_window_cursor_type): Implement documented behavior
23584 for cursor-in-non-selected-windows = t.
23585
235862007-10-08 Jason Rumney <jasonr@gnu.org>
23587
23588 * w32.c (w32_get_resource): Always close registry keys.
23589
235902007-10-08 Jason Rumney <jasonr@gnu.org>
23591
23592 * makefile.w32-in (LIBS): Add COMCTL32.
23593
23594 * w32fns.c (globals_of_w32fns): Init common controls.
23595
235962007-10-08 Richard Stallman <rms@gnu.org>
23597
23598 * image.c (our_memory_buffer): Rename from omfib_buffer.
23599
236002007-10-08 Richard Stallman <rms@gnu.org>
23601
23602 * buffer.c (Foverlays_at): Doc fix.
23603
236042007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23605
23606 * fns.c (Fplist_put): Preserve uneven tail data.
23607
236082007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23609
23610 * termhooks.h (enum event_kind): Remove trailing comma.
23611
23612 * frame.h (enum): Remove trailing comma.
23613
236142007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23615
23616 * w32proc.c (delete_child): Don't terminate threads of zombies.
23617
236182007-10-08 Martin Rudalics <rudalics@gmx.at>
23619
23620 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23621
23622 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23623 last-repeatable-command.
23624 (init_kboard): Initialize Vlast_repeatable_command.
23625 (command_loop_1): Set it to real_this_command unless that was
23626 bound to an input event.
23627 (mark_kboards): Mark it.
23628
236292007-10-08 Richard Stallman <rms@gnu.org>
23630
23631 * eval.c (condition-case): Doc fix.
23632
236332007-10-08 Masatake YAMATO <jet@gyve.org>
23634
23635 * xfaces.c (tty_supports_face_attributes_p): Fix code
23636 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23637 was copied and not edited.
23638
236392007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23640
23641 Add new `input-decode-map' keymap and use it for terminal
23642 escape sequences.
23643 * keyboard.h (struct kboard): Add Vinput_decode_map.
23644 Remove Vlocal_key_translation_map.
23645 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23646 (init_kboard): Init input-decode-map.
23647 Replace local-key-translation-map back with key-translation-map.
23648 (syms_of_keyboard): Declare input-decode-map.
23649 Remove local-key-translation-map. Update docstrings.
23650 (mark_kboards): Mark Vinput_decode_map.
23651 Don't mark Vlocal_key_translation_map.
23652 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23653 Replace local-key-translation-map back with key-translation-map.
23654 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23655 Bind in input-decode-map rather than function-key-map.
23656
23657 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23658 This was made redundant by the previous introduction of XSETPVECTYPE.
23659
236602007-10-09 Richard Stallman <rms@gnu.org>
23661
23662 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23663
236642007-09-29 Richard Stallman <rms@gnu.org>
23665
23666 * eval.c (internal_condition_case_2, internal_condition_case_1)
23667 (internal_condition_case): Reenable abort if x_catching_errors ()
23668 to see if that really happens and why.
23669
236702007-10-06 Andreas Schwab <schwab@suse.de>
23671
23672 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23673
236742007-10-04 Juanma Barranquero <lekktu@gmail.com>
23675
23676 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23677
236782007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23679
23680 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23681
236822007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23683
23684 * window.h (struct window):
23685 * window.c (struct save_window_data, struct saved_window):
23686 * termhooks.h (struct terminal):
23687 * process.h (struct Lisp_Process):
23688 * frame.h (struct frame):
23689 * buffer.h (struct buffer):
23690 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23691 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23692 The size field of (pseudo)vectors is now unsigned.
23693 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23694
23695 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23696 Turn `count' into an integer.
23697
23698 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23699 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23700 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23701 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23702 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23703
23704 * alloc.c (allocate_pseudovector): New fun.
23705 (ALLOCATE_PSEUDOVECTOR): New macro.
23706 (allocate_window, allocate_terminal, allocate_frame)
23707 (allocate_process): Use it.
23708 (mark_vectorlike): New function.
23709 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23710 (mark_terminals): Use it.
23711 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23712 (Fmake_byte_code): Use XSETPVECTYPE.
23713
23714 * frame.c (Fframe_parameters): Minor simplification.
23715
23716 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23717
23718 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23719
23720 * buffer.c (Fget_buffer_create, init_buffer_once):
23721 * lread.c (defsubr):
23722 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23723
23724 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23725 defined differently in the m/*.h files.
23726 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23727 (XSETPVECTYPE): New macro.
23728 (XSETPSEUDOVECTOR): Use it.
23729
23730 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23731 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23732
23733 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23734 * lread.c (defvar_per_buffer):
23735 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23736
23737 * window.c (candidate_window_p): Only consider as visible frames that
23738 are on the same terminal.
23739
23740 * m/ibms390x.h (MARKBIT): Remove unused macro.
23741
237422007-10-01 Juanma Barranquero <lekktu@gmail.com>
23743
23744 * lread.c (Fload): Fix typo in docstring.
23745
237462007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23747
23748 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23749 of a non-zero value can't yield zero.
23750
237512007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23752
23753 * term.c (term_clear_mouse_face, term_mouse_highlight)
23754 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23755
23756 * print.c (safe_debug_print): Use XHASH.
23757
23758 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23759 Lisp elements such as tags.
23760 (XHASH): New macro.
23761 (EQ): Use it.
23762 (SREF, SSET, STRING_COPYIN): Use SDATA.
23763 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23764
23765 * alloc.c (mark_terminal): Remove left-over declaration.
23766 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23767 (allocate_vectorlike): Remove type argument. Adjust callers.
23768 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23769 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23770
23771 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23772 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23773 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23774 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23775 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23776 Use them.
23777
23778 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23779 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23780 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23781
237822007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23783
23784 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23785 loaded by default.
23786
237872007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23788
23789 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23790 on this tty.
23791 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23792
23793 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23794 Update all users.
23795 (handle_one_term_event): Use Gpm_DrawPointer.
23796 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23797 Signal errors instead of returning nil. Always return nil.
23798 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23799 Make it a noop if gpm-mouse was not activated.
23800 (syms_of_term): Update names.
23801
238022007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23803
23804 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23805 (init_sys_modes): Check that gpm_tty is the current tty.
23806
23807 * alloc.c (allocate_terminal): Set the vector size to only count the
23808 lisp fields. Initialize those to nil.
23809 (mark_object): Don't treat terminals specially.
23810 (mark_terminal): Remove.
23811 (mark_terminals): Use mark_object instead.
23812
23813 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23814 the GC to the beginning.
23815
23816 * indent.h:
23817 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23818
23819 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23820
238212007-09-25 Jason Rumney <jasonr@gnu.org>
23822
23823 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23824
23825 * w32console.c (create_w32cons_output): Remove.
23826
23827 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23828
23829 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23830 (reset_sys_modes): Use reset_terminal_modes_hook.
23831
238322007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23833
23834 * eval.c (do_autoload): Don't output any message.
23835
238362007-09-24 Juri Linkov <juri@jurta.org>
23837
23838 * emacs.c (standard_args): Change priority of "--no-splash"
23839 from 40 to 3. Add "--no-desktop" with the same priority.
23840
238412007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23842
23843 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23844 and optimize the case where they are all 1.
23845
238462007-09-23 Johannes Weiner <hannes@saeurebad.de>
23847
23848 * lisp.h (abs): Define if not defined.
23849 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23850 Don't define `abs', since it's defined in lisp.h.
23851
238522007-09-22 Eli Zaretskii <eliz@gnu.org>
23853
23854 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23855 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23856 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23857 (init_tty): Use DEV_TTY instead of "/dev/tty".
23858 [WINDOWSNT]: No need to protect from NAME arg being null.
23859
238602007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23861
23862 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23863 up the tty state.
23864
238652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23866
23867 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23868 (gpm_tty): Change its type.
23869 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23870 (gpm_tty): Change its type and initialize it.
23871 (Fterm_open_connection): Check the frame is indeed a tty.
23872 Use the new gpm_tty.
23873 (Fterm_close_connection): Use the new gpm_tty.
23874 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23875 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23876
238772007-09-21 Juanma Barranquero <lekktu@gmail.com>
23878
23879 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23880 underline_color, to draw strike-through.
23881
238822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23883
23884 * lisp.h (allocate_terminal): Declare.
23885
23886 * window.c (candidate_window_p): Consider frames that are being placed
23887 by the user as somewhere between visible and iconified.
23888 (window_loop): Prefer windows on the current frame.
23889 (Fselect_window): Move the use of select-frame to the beginning so we
23890 can just delegate all the work (it'll call us back anyway).
23891
23892 * frame.c (Qdisplay_environment_variable):
23893 * frame.h (Qdisplay_environment_variable): Delete.
23894
23895 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23896 of the first arg, since that value may be a union.
23897
23898 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23899 parameter rather than Qdisplay_environment_variable. If all else
23900 fails, look for DISPLAY in initial-environment.
23901
239022007-09-21 Glenn Morris <rgm@gnu.org>
23903
23904 * Makefile.in (emacstool): Remove target.
23905 (lisp, shortlisp): Remove termdev.elc.
23906
239072007-09-21 Markus Triska <markus.triska@gmx.at>
23908
23909 * xterm.c (x_delete_display): Compile session management conditionally.
23910
239112007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23912
23913 * callproc.c (getenv_internal_1): New function.
23914 (getenv_internal): Use it.
23915 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23916
23917 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23918 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23919 (Fset_terminal_parameter): Work with dead terminals as well.
23920 (Fmodify_terminal_parameters): Remove.
23921
23922 * terminal.c (get_terminal): Handle terminals.
23923 Make sure the terminal returned is live.
23924 (create_terminal): Use allocate_terminal.
23925 (mark_terminals): Move to alloc.c.
23926 (delete_terminal): Use terminal->name as liveness status.
23927 NULL out fields after freeing their contents.
23928 Don't deallocate the object.
23929 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23930 rather than an int.
23931 (Fterminal_live_p): Accept non-integer arguments.
23932 (Fterminal_list): Return terminal objects rather than an ints.
23933
23934 * alloc.c (enum mem_type): New member for `terminal' objects.
23935 (allocate_terminal): New function.
23936 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23937 Handle terminals.
23938 (mark_terminal): New fun.
23939 (mark_terminals): Move from terminal.c.
23940
23941 * term.c (get_tty_terminal): Don't treat output_initial specially.
23942 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23943 (delete_tty): Use terminal->name as liveness status.
23944
23945 * termhooks.h (struct terminal): Make it into a pseudovector.
23946 Remove `deleted' replaced by checking `name's nullness.
23947
23948 * print.c (print_object): Handle terminals.
23949
23950 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23951 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23952
23953 * frame.c (make_terminal_frame):
23954 * keyboard.c (tty_read_avail_input):
23955 * w32term.c (x_delete_terminal):
23956 * xfns.c (Fx_create_frame, x_create_tip_frame):
23957 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23958
239592007-09-20 Glenn Morris <rgm@gnu.org>
23960
23961 * process.c (Fmake_network_process): Doc fix.
23962
239632007-09-19 Jason Rumney <jasonr@gnu.org>
23964
23965 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23966
239672007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23968
23969 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23970 Fix a C warning regarding variable constness.
23971
23972 * xterm.c (handle_one_xevent): Fix a C warning.
23973
239742007-09-18 Jason Rumney <jasonr@gnu.org>
23975
23976 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23977
239782007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23979
23980 * gtkutil.c (gdpy_def): New variable.
23981 (xg_initialize): Initialize gdpy_def.
23982 (xg_display_close): If no other display exists, set gdpy_def to a
23983 new connection.
23984
239852007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23986
23987 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23988 when we have no file name for the icon.
23989 (xg_tool_bar_expose_callback): Remove.
23990 (xg_create_tool_bar): Don't connect expose signal to
23991 xg_tool_bar_expose_callback.
23992 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23993
239942007-09-16 Andreas Schwab <schwab@suse.de>
23995
23996 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23997 values instead of zapping them.
23998
239992007-09-14 Glenn Morris <rgm@gnu.org>
24000
24001 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24002 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24003 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24004 scope and rename to omfib_buffer for clarity.
24005 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24006
240072007-09-14 Kenichi Handa <handa@m17n.org>
24008
24009 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24010
240112007-09-13 Jason Rumney <jasonr@gnu.org>
24012
24013 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24014
24015 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24016
24017 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24018 (mac_term_init): Call here instead, passing rif.
24019
240202007-09-13 Glenn Morris <rgm@gnu.org>
24021
24022 * s/hpux.h: No longer define `static' as nothing.
24023
240242007-09-13 Johan Bockgård <bojohan@gnu.org>
24025
24026 * callint.c (Fcall_interactively): Remove unused var `fun'.
24027
240282007-09-12 Romain Francoise <romain@orebokech.com>
24029
24030 * window.c (prefer_window_split_horizontally, display_buffer):
24031 Revert 2007-09-08 change.
24032
240332007-09-12 Glenn Morris <rgm@gnu.org>
24034
24035 * alloca.c: Remove file.
24036 * Makefile.in (alloca): Do not undef.
24037 (allocaobj, alloca.o): Remove.
24038 (otherobj): Remove allocaobj.
24039 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24040 * regex.c (C_ALLOCA): Remove all references and code that was only
24041 used when this was defined.
24042 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24043 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24044 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24045
24046 * Makefile.in (SOURCES, unlock, relock): Delete.
24047
24048 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24049 (menu_grab_callback): All uses changed.
24050
24051 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24052 (x_reply_selection_request): All uses changed.
24053
240542007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24055
24056 * lread.c (load_warn_old_style_backquotes): Change message to look
24057 better when it appears in the middle of byte-compiler messages.
24058
240592007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24060
24061 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24062
24063 * xterm.c (x_create_terminal): Add comment.
24064
24065 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24066
240672007-09-10 Richard Stallman <rms@gnu.org>
24068
24069 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24070
240712007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24072
24073 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24074 (DEFUN): Document `intspec', use it instead of `prompt'.
24075
24076 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24077
24078 * data.c (Finteractive_form): If the interactive specification starts
24079 with a `(', use it as a Lisp form.
24080
24081 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24082 name and file modes.
24083
24084 * callint.c (Fcall_interactively): Comment fixes.
24085
240862007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24087
24088 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24089 and compiled functions.
24090
240912007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24092
24093 * window.c (prefer_window_split_horizontally): New variable.
24094 (display_buffer): Consider splitting window horizontally depending
24095 on prefer_window_split_horizontally.
24096
240972007-09-08 Eli Zaretskii <eliz@gnu.org>
24098
24099 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24100
241012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24102
24103 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24104
24105 * frame.c (x_set_frame_parameters): Check number is positive before
24106 using XFASTINT.
24107
24108 * window.c (freeze_window_start): Don't presume selected_window holds
24109 a window object.
24110 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24111
241122007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24113
24114 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24115
241162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24117
24118 * window.c (Vsplit_window_preferred_function): New var.
24119 (Fdisplay_buffer): Use it.
24120 (syms_of_window): Export, and initialize it.
24121
241222007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24123
24124 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24125
241262007-09-06 Glenn Morris <rgm@gnu.org>
24127
24128 * gtkutil.c (menu_grab_callback) <cnt>:
24129 * xselect.c (x_reply_selection_request) <cnt>: Move static
24130 variable to file scope.
24131
241322007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24133
24134 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24135 consistent values of selected_frame and selected_window.
24136
241372007-09-04 Jason Rumney <jasonr@gnu.org>
24138
24139 * w32console.c (initialize_w32_display): Zero unused hooks.
24140
241412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24142
24143 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24144 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24145
241462007-09-04 Jason Rumney <jasonr@gnu.org>
24147
24148 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24149 in w32console.c. Set up input. Remove XXX comments that have been
24150 confirmed as correct.
24151
24152 * s/ms-w32.h (MULTI_KBOARD): Define.
24153
24154 * w32console.c (one_and_only_w32cons): Remove.
24155 (initialize_w32_display): Take terminal argument.
24156
24157 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24158 initialize_w32_display.
24159 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24160
24161 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24162
24163 * keyboard.c (discard_mouse_events): Discard it.
24164 (make_lispy_event): Translate it to a lisp event.
24165 (lispy_wheel_names): Add wheel-left and right events.
24166 (syms_of_keyboard): Enlarge wheel_syms.
24167
24168 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24169 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24170
24171 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24172
24173 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24174 from WM_MOUSEHWHEEL.
24175 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24176
24177 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24178 terminal.
24179
24180 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24181 keyboard for the terminal.
24182
241832007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24184
24185 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24186 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24187 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24188 and resume-tty-function to resume-tty-hook.
24189 (Fsuspend_tty, Fresume_tty): Use new names.
24190
241912007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24192
24193 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24194 if it starts with "n:".
24195
241962007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24197
24198 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24199
242002007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24201
24202 * frame.h:
24203 * frame.c (Qterm_environment_variable): Remove.
24204 (syms_of_frame): Don't init and staticpro it.
24205
24206 * callproc.c (getenv_internal): Remove special case for $TERM.
24207
24208 * callproc.c (Vinitial_environment): New variable.
24209 (set_initial_environment): Initialize it.
24210 (syms_of_callproc): Declare it.
24211 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24212 TERM under which a process runs is never related to the TERM in which
24213 Emacs is running.
24214
242152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24216
24217 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24218 * s/darwin.h: ... do it here.
24219
242202007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24221
24222 * lisp.h (set_initial_environment): Rename from set_global_environment.
24223
24224 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24225 removed by mistake on the multi-tty branch.
24226
24227 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24228 (Fmodify_frame_parameters): Return a value.
24229
24230 * image.c (png_load): Comment-out var only used in commented-out code.
24231
24232 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24233 before passing it to mark_object.
24234
24235 * xfaces.c (internal_resolve_face_name): Return a value.
24236 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24237
24238 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24239 (x_icon): Comment-out var only used in commented-out code.
24240
242412007-08-29 Romain Francoise <romain@orebokech.com>
24242
24243 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24244 QUIT hasn't been provided.
24245
242462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24247
24248 * callproc.c (child_setup, getenv_internal): Use the
24249 display-environment-variable and term-environment-variable frame params.
24250 (set_initial_environment): Initialise Vprocess_environment.
24251
24252 * config.in: Disable multi-keyboard support on a mac.
24253
24254 * frame.c (Qterm_environment_variable)
24255 (Qdisplay_environment_variable): New variables.
24256 (syms_of_frame): Intern and staticpro them.
24257 (Fmake_terminal_frame): Disable output method test.
24258
24259 * frame.h: Declare them here.
24260
24261 * macfns.c (x_set_mouse_color): Get rif from the frame.
24262 (x_set_tool_bar_lines): Don't use updating_frame.
24263 (mac_window): Add 2 new parameters for consistency with other systems.
24264 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24265 frame parameters following what is done in X11 and w32. Don't use
24266 FRAME_MAC_DISPLAY_INFO.
24267 (Fx_open_connection, start_hourglass): Remove window-system check.
24268 (x_create_tip_frame): Get the keyboard from the terminal.
24269
24270 * macmenu.c: Reorder includes.
24271 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24272
24273 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24274 terminal parameter.
24275 (x_clear_frame): Add a frame parameter.
24276 (note_mouse_movement): Get rif from the frame.
24277 (mac_term_init): Initialize the terminal.
24278 (mac_initialize): Make static and move terminal initialization ...
24279 (mac_create_terminal): ... to this new function.
24280
24281 * macterm.h (struct mac_display_info): Add terminal.
24282 (mac_initialize): Delete declaration.
24283
24284 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24285
24286 * sysdep.c: Comment out text after #endif.
24287
24288 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24289 is defined. Better initialize ttys in windows. Use terminal
24290 specific mouse_position_hook.
24291
24292 * termhooks.h (union display_info): Add mac_display_info.
24293
24294 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24295 Set the default minibuffer frame, window_system and the rest of the
24296 frame parameters following what is done in X11.
24297
24298 * w32term.c (w32_initialize): Make static.
24299
24300 * xselect.c (x_handle_selection_clear): Only access
24301 terminal->kboard when MULTI_KBOARD is defined.
24302
24303 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24304 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24305
243062007-08-29 Jason Rumney <jasonr@gnu.org>
24307
24308 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24309 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24310
24311 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24312 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24313
24314 * keyboard.c (restore_kboard_configuration): Only define when
24315 MULTI_KBOARD defined.
24316
24317 * makefile.w32-in: Update dependancies from Makefile.in.
24318 (OBJ1): Add terminal.$(O)
24319
24320 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24321 Don't define function body.
24322 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24323
24324 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24325
24326 * w32.c (request_sigio, unrequest_sigio): Remove.
24327
24328 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24329 (w32con_clear_frame, w32con_clear_end_of_line)
24330 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24331 (w32con_delete_glyphs, w32con_set_terminal_window)
24332 (scroll_line, w32_sys_ring_bell): Add frame arg.
24333 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24334 Add terminal arg.
24335 (PICK_FRAME): Remove.
24336 (w32con_write_glyphs): Use frame specific terminal coding.
24337 (one_and_only_w32cons): New global variable.
24338 (initialize_w32_display): Use it for storing hooks.
24339 (create_w32cons_output): New function.
24340
24341 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24342 arg a frame.
24343
24344 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24345 Set window_system.
24346 (x_set_tool_bar_lines): Don't use updating_frame.
24347 (Fx_create_frame): Set terminal and ref count.
24348 (Fx_open_connection): Remove window-system check.
24349
24350 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24351
24352 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24353 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24354 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24355 Add frame arg.
24356 (x_delete_terminal, w32_create_terminal): New functions.
24357 (w32_term_init): Create a terminal.
24358 (w32_initialize): Move terminal specific initialization to
24359 w32_create_terminal.
24360
24361 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24362 (w32_clear_rect, w32_clear_area): Use background from frame.
24363 (w32_display_info): Add terminal.
24364 (w32_sys_ring_bell, x_delete_display): Declare here.
24365
24366 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24367
24368 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24369
243702007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24371
24372 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24373 Fix get_named_tty calls for the controlling tty.
24374
243752007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24376
194d44e7 24377 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24378
243792007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24380
24381 * term.c (tty_insert_glyphs): Add missing first parameter.
24382
243832007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24384
24385 * buffer.c (Fbuffer_list, Fbury_buffer):
24386 Take frame->buried_buffer_list into account.
24387
24388 * cm.c (current_tty): New variable, for cmputc().
24389 (cmputc): Use it.
24390 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24391 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24392 (cmgoto): Add tty parameter. Pass it on to calccost().
24393 Use emacs_tputs() instead of tputs().
24394
24395 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24396 tputs().
24397 (current_tty): New variable, for cmputc().
24398 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24399
24400 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24401 (internal_condition_case, internal_condition_case_1)
24402 (internal_condition_case_2): Don't abort when x_catching_errors.
24403
24404 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24405 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24406 prevent crashes caused by bogus longjmps in read_char.
24407
24408 * keymap.h (Fset_keymap_parent): Add EXFUN.
24409
24410 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24411 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24412 Remove redundant definition.
24413
24414 * macfns.c (x_set_mouse_color, x_make_gc):
24415 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24416
24417 * w32term.c (x_free_frame_resources):
24418 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24419 (w32_initialize): Use the accessor macros for terminal characteristics.
24420
24421 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24422 Use the accessor macros for terminal characteristics.
24423 * msdos.c (internal_terminal_init): Use the accessor macros for
24424 terminal characteristics.
24425 (ScreenVisualBell, internal_terminal_init):
24426 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24427
24428 * termopts.h (no_redraw_on_reenter): Declare.
24429
24430 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24431 (mark_terminals, mark_ttys): Declare.
24432 (Fgarbage_collect): Call them.
24433 (mark_object): Mark buried_buffer_list.
24434
24435 * prefix-args.c: Include stdlib.h for exit.
24436
24437 * syssignal.h: Add comment.
24438
24439 * indent.c: Include stdio.h.
24440
24441 * window.h (Vinitial_window_system): Declare.
24442 (Vwindow_system): Delete declaration.
24443
24444 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24445
24446 * image.c (lookup_image): Don't initialize `c' until the xasserts
24447 have been run.
24448
24449 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24450 FRAME_FOREGROUND_PIXEL.
24451
24452 * print.c (print_preprocess): Don't lose print_depth levels while
24453 iterating.
24454
24455 * widget.c (update_from_various_frame_slots):
24456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24457
24458 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24459 frames.
24460 (window_internal_height): Remove bogus make_number call.
24461 (init_window_once): Call make_terminal_frame with two zero parameters.
24462
24463 * fileio.c (Fread_file_name): Update comment.
24464
24465 * callint.c (Fcall_interactively):
24466 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24467 Make sure it is correctly unwound.
24468
24469 * xsmfns.c (x_session_close): New function.
24470
24471 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24472 Delete declarations.
24473
24474 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24475 (x_output): Remove background_pixel and foreground_pixel fields.
24476 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24477 (x_delete_device, x_session_close): Declare.
24478
24479 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24480 (read_filtered_event): Call `read_char' with a local
24481 `wrong_kboard_jmpbuf'.
24482
24483 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24484 Don't call single_kboard_state. Use FRAME_RIF.
24485
24486 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24487 systems.
24488
24489 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24490 (Fframe_with_environment, Fset_input_meta_mode)
24491 (Fset_quit_char): EXFUN.
24492 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24493 (init_sys_modes, reset_sys_modes): Update prototypes.
24494 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24495
24496 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24497 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24498 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24499 Delete declarations.
24500 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24501 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24502 New declarations.
24503
24504 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24505 already does that during init_display(). Call syms_of_keymap
24506 before syms_of_keyboard. Call `syms_of_terminal'.
24507 Call set_initial_environment, not set_process_environment.
24508 (shut_down_emacs): Call reset_all_sys_modes() instead of
24509 reset_sys_modes().
24510
24511 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24512 (internal_resolve_face_name, resolve_face_name_error): New functions.
24513 (resolve_face_name): Protect against loops and errors thrown by Fget.
24514 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24515 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24516
24517 * scroll.c: Replace CURTTY() with local variables throughout the
24518 file (where applicable).
24519 (calculate_scrolling, calculate_direct_scrolling)
24520 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24521 characteristics.
24522
24523 * keymap.c (Vfunction_key_map): Remove.
24524 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24525 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24526 (Vkey_translation_map): Remove.
24527 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24528 (Fdescribe_buffer_bindings)
24529 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24530 Update for terminal-local key-translation-map.
24531
24532 * Makefile.in (callproc.o): Update dependencies.
24533 (lisp, shortlisp): Add termdev.elc.
24534 (obj): Add terminal.o.
24535 (terminal.o): Add dependencies.
24536 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24537 (data.o, fns.o): Add termhooks.h dependency.
24538 (SOME_MACHINE_LISP): Add dnd.elc.
24539 (minibuf.o): Fix typo.
24540 Update dependencies.
24541
24542 * data.c (do_symval_forwarding, store_symval_forwarding)
24543 (find_symbol_value): Use the selected frame's keyboard, not
24544 current_kboard.
24545
24546 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24547 Vwindow_system.
24548
24549 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24550 Fmenu_bar_open.
24551 (syms_of_xmenu): Update defsubr.
24552 (mouse_position_for_popup, Fx_popup_menu)
24553 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24554 (set_frame_menubar, free_frame_menubar)
b97439ce 24555 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24556 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24557 an X frame.
24558
24559 * xselect.c (x_own_selection): Abort if not an X frame.
24560 (some_frame_on_display): Check if it is an X frame.
24561 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24562
24563 * coding.c: Include frame.h and termhooks.h.
24564 (terminal_coding, keyboard_coding): Delete.
24565 (Fset_terminal_coding_system_internal)
24566 (Fset_keyboard_coding_system_internal)
24567 (Fkeyboard_coding_system)
24568 (Fterminal_coding_system): Add a terminal parameter.
24569 Get terminal_coding from the terminal.
24570 (init_coding_once): Don't call setup_coding_system here.
24571
24572 * dispextern.h (set_scroll_region, turn_off_insert)
24573 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24574 (tty_clear_end_of_line, tty_setup_colors)
24575 (delete_tty, updating_frame)
24576 (produce_special_glyphs, produce_glyphs, write_glyphs)
24577 (insert_glyphs): Remove.
24578 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24579 (tty_turn_off_highlight, get_tty_size): Add declaration.
24580 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24581
24582 * frame.h (enum output_method): Add output_initial.
24583 (struct x_output): Delete.
24584 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24585 Access foreground_pixel and background_pixel directly from the frame.
24586 (tty_display): Delete.
24587 (struct frame): Add buried_buffer_list, foreground_pixel,
24588 background_pixel and terminal. Delete kboard.
24589 (union output_data): Add tty.
24590 (FRAME_KBOARD): Get the kboard from the terminal.
24591 (FRAME_INITIAL_P): New macro.
24592 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24593 (Qterm_environment_variable, Qdisplay_environment_variable)
24594 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24595 New declarations.
24596
24597 * termchar.h (tty_output, tty_display_info): New structures.
24598 (tty_list): Declare.
24599 (FRAME_TTY, CURTTY): New macros.
24600 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24601 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24602 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24603 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24604
24605 * callproc.c: Include frame.h and termhooks.h, for terminal
24606 parameters.
24607 (add_env): New function.
24608 (child_setup): Use it.
24609 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24610 (getenv_internal): Fix get_terminal_param call.
24611 (Fgetenv_internal, egetenv): Update doc.
24612 (syms_of_callproc): Initialize Vprocess_environment to nil.
24613 Register and initialize them. Remove obsolete defvars. Update doc
24614 strings.
24615 (child_setup): Handle Vlocal_environment_variables.
24616 (getenv_internal): Add terminal parameter.
24617 Handle Vlocal_environment_variables.
24618 (Fgetenv_internal): Add terminal parameter.
24619 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24620 environment in a frame (not terminal) parameter. Update doc strings.
24621 (set_initial_environment): Rename from set_global_environment.
24622 Store Emacs environment in initial frame parameter.
24623
24624 * xdisp.c (redisplay_internal): Update references to
24625 `previous_terminal_frame'.
24626 (display_mode_line, Fformat_mode_line): Replace calls to
24627 `push_frame_kboard' with `push_kboard'.
24628 (get_glyph_string_clip_rects): Add extra parentheses and
24629 braces to prevent compiler warnings.
24630 (calc_pixel_width_or_height): Add xassert to check that the
24631 frame is alive. Don't call `lookup_image' on a termcap frame.
24632 (message2_nolog, message3_nolog, redisplay_internal)
24633 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24634 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24635 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24636 (Fx_display_pixel_width, Fx_display_pixel_height)
24637 (Fx_display_planes, Fx_display_color_cells)
24638 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24639 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24640 (Fx_display_backing_store, Fx_display_visual_class)
24641 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24642 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24643
24644 * xfns.c (x_set_foreground_color x_set_background_color)
24645 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24646 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24647 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24648 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24649 terminal that is being deleted.
24650 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24651 frame parameter, and make sure it overrides any user-supplied setting.
24652 (Fx_close_connection, Fx_synchronize): Unify argument names with
24653 the rest of the DEFUNs.
24654
24655 * dispnew.c (Fsend_string_to_terminal): Update call to
24656 `get_tty_terminal'.
24657 (Fredraw_frame, Fsend_string_to_terminal)
24658 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24659 FRAME_TERMCAP_P and FRAME_TTY.
24660 (window_change_signal): Don't believe width/height values that are
24661 impossibly small.
24662 (Vinitial_window_system): Rename from Vwindow_system.
24663 (termscript, Wcm, rif): Delete.
24664
24665 * termhooks.h (struct terminal): New struct containing the
24666 previously global text display hooks and new members NAME,
24667 DELETED and PARAM_ALIST.
24668 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24669 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24670 (FRAME_RIF): New macros.
24671 (get_terminal_param, get_device): New declarations.
24672 (termscript): Delete declaration.
24673
24674 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24675 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24676 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24677 FRAME_FOREGROUND_PIXEL.
24678 (x_fully_uncatch_errors): Disable definition.
24679 (x_scroll_bar_expose): Fix reference to foreground pixel.
24680 (XTread_socket): Disable loop on all X displays.
24681 (x_delete_terminal): Don't set terminal->deleted and let
24682 delete_terminal delete the frames on the terminal.
24683 (x_delete_display): Doc update to reflect changes in
24684 delete_terminal.
24685 (x_display_info) <terminal>: Move member earlier in the struct.
24686 (deleting_tty): Remove old variable.
24687 (Fsuspend_tty): Call clear_tty_hooks.
24688 (Fresume_tty, init_tty): Call set_tty_hooks.
24689 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24690 errors on X frames.
24691 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24692 (handle_one_xevent): Initialize `f' to NULL.
24693 (x_delete_terminal, x_create_terminal): New functions.
24694 (XTset_terminal_modes, XTreset_terminal_modes)
24695 (XTread_socket, x_connection_closed, x_term_init)
24696 (x_term_init, x_delete_display): Add terminal parameter.
24697 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24698 X connections.
24699
24700 * frame.c: Include termchar.h.
24701 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24702 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24703 (Qdisplay_environment_variable): New vars.
24704 (Fframep): Deal with output_initial.
24705 (Fframe-live-p): Doc fix.
24706 (Fwindow-system): New function.
24707 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24708 (make_terminal_frame): Don't create frames on a terminal that is
24709 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24710 (store_frame_param): Check for found_for_frame before calling XFRAME.
24711 (Fmake_terminal_frame): Handle NULL tty names correctly.
24712 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24713 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24714 frames to refer to a deleted frame in their 'environment parameter.
24715 (Fframe_with_environment): New function.
24716 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24717 (get_future_frame_param): New function.
24718 (Fmake_terminal_frame): Use it.
24719 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24720
24721 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24722 * sysdep.c (reset_sys_modes): Update for renames.
24723
24724 * keyboard.c (tty_read_avail_input): New function.
24725 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24726 (syms_of_keyboard): Defsubr them.
24727 (Fset_input_meta_mode, Fset_quit_char): New functions.
24728 (Fset_input_mode): Split to above functions.
24729 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24730 parameter. Use it in call to `read_char'.
24731 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24732 Set wrong_kboard_jmpbuf correctly in recursive calls.
24733 Use current_kboard to access Vkeyboard_translate_table.
24734 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24735 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24736 Update longjmp invocations. Remember the original current_kboard,
24737 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24738 changes it. Comment out unnecessary calls to
24739 `record_single_kboard_state' and `any_kboard_state'.
24740 Update recursive calls.
24741 (wrong_kboard_jmpbuf): Remove global variable.
24742 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24743 Handle deleted interrupted_kboards correctly; that is a legal
24744 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24745 and read_char calls. Abort if interrupted_kboard died in read_char.
24746 (any_kboard_state, single_kboard_state)
24747 (push_frame_kboard): Remove function.
24748 (pop_kboard): Switch out of single_kboard mode if the kboard has
24749 been deleted. Remove unused variable. Help debugging by not
24750 changing current_kboard unnecessarily. Set current_kboard to the
24751 kboard of the selected frame when the stored kboard object has
24752 been deleted before pop_kboard.
24753 (temporarily_switch_to_single_kboard): Change first parameter to a
24754 frame pointer. Throw an error when caller wants to change kboards
24755 while in single_kboard mode. Don't push_kboard if we weren't in
24756 single kboard state. Don't pop_kboard if we popped into any
24757 kboard state.
24758 (restore_kboard_configuration): Abort if pop_kboard changed the
24759 kboard in single_kboard mode. Call pop_kboard only after setting
24760 up single_kboard mode.
24761 (Frecursive_edit): Switch to single_kboard mode only in nested
24762 command loops.
24763 (cmd_error, command_loop, command_loop_1, timer_check):
24764 Comment out unnecessary call to `any_kboard_state' and
24765 `record_single_kboard_state'.
24766 (delete_kboard): Exit single_kboard mode if we have just deleted
24767 that kboard. Use FRAME_KBOARD.
24768 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24769 `fatal_error_signal'.
24770 (record_single_kboard_state): Don't push_kboard if we weren't in
24771 single kboard state. Don't pop_kboard if we popped into any
24772 kboard state.
24773 (push_frame_kboard): Rename to push_kboard.
24774 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24775 (read_avail_input): Read input from all terminals.
24776 (mark_kboards): Also mark Vkeyboard_translate_table.
24777 (kbd_buffer_store_event_hold): Simplify condition.
24778 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24779 (Vkeyboard_translate_table): Move to struct kboard.
24780 (init_kboard): Initialize Vkeyboard_translate_table.
24781 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24782 Vkeyboard_translate_table. Update doc strings. Update docs of
24783 local-function-key-map and function-key-map.
24784
24785 * terminal.c: New file.
24786
24787 * term.c: Include errno.h.
24788 (Vring_bell_function, device_list, initial_device)
24789 (next_device_id, ring_bell, update_begin, update_end)
24790 (set_terminal_window, cursor_to, raw_cursor_to)
24791 (clear_to_end, clear_frame, clear_end_of_line)
24792 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24793 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24794 (syms_of_term): Move their initialization to terminal.c.
24795 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24796 (Ftty_display_color_cells)
24797 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24798 (clear_tty_hooks, set_tty_hooks)
24799 (init_tty, maybe_fatal): New functions.
24800 (Ftty_type): Return nil if terminal is not on a tty instead of
24801 throwing an error. Doc update.
24802 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24803 Doc update. Initialize new subrs and variables.
24804 (delete_tty): Use terminal->deleted.
24805 (tty_set_terminal_modes): Rename from set_terminal_modes.
24806 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24807 (set_scroll_region): Rename to `tty_set_scroll_region'.
24808 (turn_on_insert): Rename to `tty_turn_on_insert'.
24809 (turn_off_insert): Rename to `tty_turn_off_insert'.
24810 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24811 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24812 (toggle_highligh): Rename to `tty_toggle_highlight'.
24813 (background_highlight): Rename to `tty_background_highlight'.
24814 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24815 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24816 (tty_set_scroll_region, tty_background_highlight)
24817 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24818 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24819 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24820 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24821 Add static modifier.
24822 (tty_reset_terminal_modes, tty_set_terminal_window)
24823 (tty_set_scroll_region, tty_background_highlight)
24824 (tty_highlight_if_desired, tty_cursor_to)
24825 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24826 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24827 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24828 renames.
24829
248302007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24831
24832 * keyboard.c: Qrtl is new.
24833 (parse_tool_bar_item): Handle :rtl keyword.
24834 (syms_of_keyboard): Intern :rtl keyword.
24835
24836 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24837
24838 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24839 so no Lisp code is executed.
24840 (file_for_image, find_rtl_image): New functions.
24841 (xg_get_image_for_pixmap): Use file_for_image.
24842 (update_frame_tool_bar): If direction is RTL, use RTL image if
24843 defined. Use Gtk stock images if defined.
24844
248452007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24846
24847 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24848 for nonexistent or zero-width glyph in composition glyph.
24849
248502007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24851
24852 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24853
24854 * xdisp.c (Finvisible_p): New function.
24855 (syms_of_xdisp): defsubr it.
24856
248572007-08-24 Juanma Barranquero <lekktu@gmail.com>
24858
24859 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24860 Doc fixes.
24861
248622007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24863
24864 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24865
248662007-08-24 Martin Rudalics <rudalics@gmx.at>
24867
24868 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24869 whether decoding has modified buffer contents.
24870
248712007-08-24 Jason Rumney <jasonr@gnu.org>
24872
24873 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24874 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24875 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24876 (init_svg_functions) [HAVE_NTGUI]: New function.
24877 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24878 (svg_load_image): Use them.
24879 (svg_load_image) [HAVE_NTGUI]: Implement background.
24880
248812007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24882
24883 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24884 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24885 (LIBX): Remove @RSVG_LIBS@.
24886 (LIBES): Add $(RSVG_LIBS).
24887
24888 * image.c (svg_load_image): Blend with specified background if exists.
24889 Use IMAGE_BACKGROUND. Add Mac OS Support.
24890
24891 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24892 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24893 Remove macros.
24894 [MAC_OSX] (socket_callback): Do nothing.
24895 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24896 ReceiveNextEvent.
24897 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24898 socket_callback.
24899 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24900
249012007-08-22 Glenn Morris <rgm@gnu.org>
24902
24903 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24904
249052007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24906
24907 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24908
24909 * image.c: Add support for SVG images. Some additional comments
24910 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24911 (svg_image_p): New function to test for SVG image.
24912 (svg_load): New function to load SVG image.
24913 (svg_load_image): New function, helper for svg_load.
24914 (Qsvg): New Lisp_object.
24915 (svg_keyword_index): New enum.
24916 (svg_format): New static `image_keyword' struct.
24917 (svg_type): New static `image_type' struct.
24918 (librsvg/rsvg.h): Include it.
24919
249202007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24921
24922 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24923
249242007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24925
24926 * lread.c (Qold_style_backquotes): New var.
24927 (syms_of_lread): Init and staticpro it.
24928 (load_warn_old_style_backquotes): New fun.
24929 (Fload): Use them to warn about old style backquotes.
24930 (end_of_file_error, Fload): Remove unused vars.
24931
24932 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24933
24934 * lread.c (Vold_style_backquotes): New var.
24935 (syms_of_lread): Init and export it to Elisp.
24936 (read1): Set it when we find an old-style (back)quote.
24937
249382007-08-22 Jason Rumney <jasonr@gnu.org>
24939
24940 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24941
249422007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24943
24944 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24945
249462007-08-19 Richard Stallman <rms@gnu.org>
24947
24948 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24949
249502007-08-19 Andreas Schwab <schwab@suse.de>
24951
24952 * alloc.c (pure): Round PURESIZE up.
24953
249542007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24955
24956 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24957 active frame.
24958
249592007-08-16 Richard Stallman <rms@gnu.org>
24960
24961 * eval.c (Fcommandp): Add parens to clarify.
24962
24963 * minibuf.c (Fall_completions): Use enum for type of table.
24964
24965 * emacs.c (USAGE2): Improve text.
24966
249672007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24968
24969 * term.c (tty_default_color_capabilities): Declare static
24970 variables in file scope, to avoid HPUX compiler problem.
24971
249722007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24973
24974 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24975 to gtk_toolbar_insert.
24976
249772007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24978
24979 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24980
24981 * insdel.c (reset_var_on_error): New fun.
24982 (signal_before_change, signal_after_change):
24983 Use it to reset (after|before)-change-functions to nil in case of error.
24984 Bind inhibit-modification-hooks to t.
24985 Don't bind (after|before)-change-functions to nil while they run.
24986
249872007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24988
24989 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24990 filling pixmap with stippled background.
24991
249922007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24993
24994 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24995 Don't use invisible frame as parent window for repositioning.
24996
249972007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24998
24999 * print.c (new_backquote_output): Rename from old_backquote_output.
25000 (print): Inverse its logic (according to its name) so as to match the
25001 behavior of new_backquote_flag in lread.c.
25002
250032007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25004
25005 * gmalloc.c (posix_memalign): New function.
25006
25007 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25008 ActivateControl/DeactivateControl here.
25009 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25010 frame-notice-user-settings is non-nil.
25011 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25012 for kEventParamFMFontStyle.
25013 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25014 mac_pass_command_to_system and mac_pass_control_to_system here.
25015 (XTread_socket): Call ActivateControl/DeactivateControl here.
25016 (XTread_socket) [TARGET_API_MAC_CARBON]:
25017 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25018 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25019 for window repositioning.
25020
250212007-08-08 Glenn Morris <rgm@gnu.org>
25022
25023 * Replace `iff' in doc-strings and comments.
25024
250252007-08-07 Chong Yidong <cyd@stupidchicken.com>
25026
25027 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25028
250292007-08-07 Martin Rudalics <rudalics@gmx.at>
25030
25031 * fileio.c (Finsert_file_contents): Run format-decode and
25032 after_insert_file_functions on entire buffer when REPLACE is
25033 non-nil and inhibit modification_hooks and point_motion_hooks.
25034 For consistency, run after_insert_file_functions iff something
25035 got inserted. Move signal_after_change and update_compositions
25036 after code running after_insert_file_functions. Make sure that
25037 undo_list doesn't record intermediate steps of the decoding process.
25038
250392007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25040
25041 * emacs.c (main)
25042 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25043 Call malloc_enable_thread on interactive startup.
25044
25045 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25046 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25047 [USE_PTHREAD]: Conditionalize with it.
25048 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25049 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25050 New functions.
25051
250522007-08-06 Chong Yidong <cyd@stupidchicken.com>
25053
25054 * xdisp.c (redisplay_window): When restoring original buffer
25055 position, make sure it is still valid.
25056
25057 * image.c (png_load): Ignore png-supplied background color.
25058
250592007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25060
25061 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25062 Use kCFAbsoluteTimeIntervalSince1970.
25063
25064 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25065 New variable.
25066 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25067 event loop should be quit.
25068 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25069 Quit dialog event loop if quit_dialog_event_loop is set.
25070
25071 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25072 (Selection): New typedef. Use instead of ScrapRef.
25073 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25074 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25075 (mac_clear_selection): Rename from clear_scrap.
25076 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25077 scrap_has_target_type. All uses changed.
25078 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25079 (mac_selection_has_target_p): New functions.
25080 (mac_put_selection_value): Rename from put_scrap_string.
25081 (mac_get_selection_value): Rename from get_scrap_string.
25082 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25083 (put_scrap_private_timestamp, scrap_has_target_type)
25084 (get_scrap_private_timestamp): Remove functions.
25085 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25086 (x_own_selection, x_get_local_selection):
25087 Use mac_valid_selection_value_p.
25088 (x_own_selection): Don't use put_scrap_private_timestamp.
25089 Record OWNERSHIP-INFO into Vselection_alist instead.
25090 (x_get_local_selection): Don't check type if request is local.
25091 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25092 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25093
250942007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25095
25096 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25097 add comment explaining why.
25098
250992007-08-03 Richard Stallman <rms@gnu.org>
25100
25101 * fileio.c (Fvisited_file_modtime): Use make_time.
25102
251032007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25104
25105 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25106 build.
25107
251082007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25109
25110 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25111
251122007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25113
25114 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25115
251162007-07-30 Richard Stallman <rms@gnu.org>
25117
25118 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25119
251202007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25121
25122 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25123
251242007-07-28 Nick Roberts <nickrob@snap.net.nz>
25125
25126 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25127 remote default-directory.
25128
25129 * buffer.c (mode-line-format): Update doc string.
25130
251312007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25132
25133 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25134 scroll bar gap.
25135 (x_scroll_bar_create): Set bar->fringe_extended_p.
25136 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25137 on frame edge. Check fringe background extension. Don't clear
25138 extended fringe background area.
25139
25140 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25141 (w32_fill_area): Enclose multiple statements with do ... while (0).
25142
25143 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25144 Extend fringe background to scroll bar gap.
25145 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25146 Set bar->fringe_extended_p.
25147 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25148 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25149 background extension. Don't clear extended fringe background area.
25150
25151 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25152 New member fringe_extended_p.
25153
251542007-07-25 Glenn Morris <rgm@gnu.org>
25155
25156 * Relicense all FSF files to GPLv3 or later.
25157
25158 * COPYING: Switch to GPLv3.
25159
251602007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25161
25162 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25163
25164 * data.c (Finteractive_form): Check for the presence of an
25165 `interactive-form' symbol property more thoroughly.
25166
25167 * data.c (Finteractive_form): Use an `interactive-form' property if
25168 present, analogous to the function-documentation property.
25169
251702007-07-24 Jason Rumney <jasonr@gnu.org>
25171
25172 * w32fns.c (x_real_positions): Get real position from OS instead of
25173 calculating it.
25174
251752007-07-23 Jason Rumney <jasonr@gnu.org>
25176
25177 * filelock.c (current_lock_owner): Allow for @ sign in username.
25178
251792007-07-22 Nick Roberts <nickrob@snap.net.nz>
25180
25181 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25182 remote default-directory.
25183
25184 * buffer.c (mode-line-format): Describe above case in doc string.
25185
251862007-07-20 Eli Zaretskii <eliz@gnu.org>
25187
25188 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25189 Define if not defined.
25190
251912007-07-18 Jason Rumney <jasonr@gnu.org>
25192
25193 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25194
251952007-07-18 Richard Stallman <rms@gnu.org>
25196
25197 * data.c (Fsetq_default): Doc fix.
25198
25199 * eval.c (Fsetq): Doc fix.
25200
252012007-07-18 Juanma Barranquero <lekktu@gmail.com>
25202
25203 * coding.c (Ffind_operation_coding_system):
25204 * eval.c (For, Fand): Doc fixes.
25205 Reported by Johan Bockgård.
25206
252072007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25208
25209 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25210
25211 * xterm.h: Declare x_ewmh_activate_frame.
25212
25213 * xterm.c (x_ewmh_activate_frame): New function.
25214 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25215
252162007-07-17 Martin Rudalics <rudalics@gmx.at>
25217
25218 * window.c (Fdisplay_buffer): If largest or LRU window is the
25219 only window, split it even if it is not eligible for splitting.
25220 This restores the original behavior broken by the 2007-07-15
25221 change.
25222
252232007-07-17 Glenn Morris <rgm@gnu.org>
25224
25225 * abbrev.c (abbrev_check_chars): New function.
25226 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25227 Call abbrev_check_chars to check abbrev characters are word
25228 constituents. Doc fix.
25229
252302007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25231
25232 * process.c (Fstart_process, Fmake_network_process)
25233 (read_process_output): Fix up last changes.
25234
252352007-07-16 Eli Zaretskii <eliz@gnu.org>
25236
25237 * makefile.w32-in (clean): Don't delete *~.
25238
252392007-07-16 Andreas Schwab <schwab@suse.de>
25240
25241 * window.c (Fdisplay_buffer): Use NILP.
25242 (Fset_window_scroll_bars): Likewise.
25243
252442007-07-15 Martin Rudalics <rudalics@gmx.at>
25245
25246 * window.c (window_min_size_2): New function.
25247 (window_min_size_1, size_window, Fdisplay_buffer)
25248 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25249 windows without mode- or header-lines when window-min-height is
25250 too small.
25251 (size_window): Reset nodelete_p after testing it, following an
25252 earlier note by Kim F. Storm.
25253 (display_buffer): Do not set split_height_threshold to twice the
25254 value of window_min_height to avoid changing the value of a
25255 customizable variable. Rather explicitly check whether the
25256 height of the window that shall be splitted is at least as large
25257 as split_height_threshold.
25258 (Fwindow_full_width_p): New defun.
25259 (syms_of_window): Defsubr it.
25260
25261 * window.h: Add EXFUN for Fwindow_full_width_p.
25262
252632007-07-14 Jason Rumney <jasonr@gnu.org>
25264
25265 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25266
252672007-07-14 Richard Stallman <rms@gnu.org>
25268
25269 * eval.c (maybe_call_debugger): New function.
25270 (find_handler_clause): Use maybe_call_debugger.
25271 Call it when the handler says `debug'.
25272 Eliminate DEBUGGER_VALUE_PTR.
25273 (Fsignal): Eliminate debugger_value.
25274 (Qdebug): New variable.
25275 (syms_of_eval): Initialize it.
25276
252772007-07-14 Juanma Barranquero <lekktu@gmail.com>
25278
25279 * eval.c (Fprogn):
25280 * keyboard.c (Ftrack_mouse):
25281 * print.c (Fwith_output_to_temp_buffer):
25282 * window.c (Fsave_window_excursion): Doc fix.
25283
252842007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25285
25286 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25287
252882007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25289
25290 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25291 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25292 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25293 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25294 Remove unused encoding_carryover.
25295 * process.c: Adjust all functions accordingly.
25296
252972007-07-12 Richard Stallman <rms@gnu.org>
25298
25299 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25300
253012007-07-11 Jason Rumney <jasonr@gnu.org>
25302
25303 * makefile.w32-in (LIBS): Include OLE32.
25304
25305 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25306 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25307
253082007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25309
25310 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25311 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25312 from a Lisp_Object into a bare pointer.
25313 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25314 Adjust the code correspondingly.
25315
25316 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25317
25318 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25319 (term_show_mouse_face): Remove unused var `j'.
25320 (handle_one_term_event): Remove unused vars `i' and `j'.
25321 Don't cast return value of ttyname since it's not necessary.
25322
253232007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25324
25325 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25326 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25327
25328 * fns.c (map_char_table): Use an array of int for `indices' rather than
25329 an array of Lisp_Objects (which are only ever integers anyway).
25330 (Fmap_char_table): Update caller.
25331 * lisp.h: Update prototype.
25332 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25333 * fontset.c (Ffontset_info):
25334 * casetab.c (set_case_table): Update callers.
25335
25336 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25337
25338 * keymap.c (struct accessible_keymaps_data)
25339 (struct where_is_internal_data): New structures.
25340 (accessible_keymaps_1, where_is_internal_1): Use them to change
25341 interface to adhere to the one used by map_keymap.
25342 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25343 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25344
25345 * keymap.h (map_keymap_function_t): More informative prototype.
25346
253472007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25348
25349 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25350 (looking_at_1): Don't change search_regs and last_thing_searched
25351 if `inhibit-changing-match-data' is non-nil.
25352 (string_match_1, search_buffer, set_search_regs): Likewise.
25353 (syms_of_search): Add Lisp level definition for
25354 `inhibit-changing-match-data' and set it to nil.
25355 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25356 start and end of the match, instead of using values in search_regs.
25357
253582007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25359
25360 * minibuf.c (Fcompleting_read): New value `confirm-only'
25361 for `require-match'.
25362
253632007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25364
25365 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25366 part of the 2007-06-27 change to syms_of_fileio.
25367
253682007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25369
25370 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25371 Check WINDOWP before using XWINDOW. Consolidate return statements.
25372
253732007-06-27 Richard Stallman <rms@gnu.org>
25374
25375 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25376
253772007-06-27 Juanma Barranquero <lekktu@gmail.com>
25378
25379 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25380
253812007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25382
25383 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25384 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25385 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25386 (_free_internal, memalign): Use them.
25387 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25388 Initialize to PTHREAD_MUTEX_INITIALIZER.
25389 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25390 (morecore_nolock): Rename from morecore. All uses changed.
25391 Use only nolock versions of internal allocation functions.
25392 (_malloc_internal_nolock, _realloc_internal_nolock)
25393 (_free_internal_nolock): New functions created from
25394 _malloc_internal, _realloc_internal, and _free_internal.
25395 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25396 Copy hook value to automatic variable before its use.
25397 (memalign): Copy hook value to automatic variable before its use.
25398
253992007-06-26 Kenichi Handa <handa@m17n.org>
25400
25401 * coding.c (Ffind_operation_coding_system): Docstring improved.
25402 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25403
254042007-06-25 David Kastrup <dak@gnu.org>
25405
25406 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25407 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25408 cater for additional parameter.
25409
25410 * keymap.h: Adjust number of parameters to `current-active-maps'.
25411
25412 * doc.c (Fsubstitute_command_keys): Adjust call of
25413 `current-active-maps'.
25414
254152007-06-25 David Kastrup <dak@gnu.org>
25416
25417 * callint.c (Fcall_interactively): Make the parsing of interactive
25418 specs somewhat more readable.
25419
254202007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25421
25422 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25423 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25424 if extended background has already been filled.
25425
254262007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25427
25428 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25429 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25430
25431 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25432 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25433 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25434 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25435 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25436 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25437 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25438 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25439 Run timers during dialog popup.
25440 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25441
254422007-06-21 Jason Rumney <jasonr@gnu.org>
25443
25444 * image.c (convert_mono_to_color_image): Swap fore and background.
25445
254462007-06-20 Jason Rumney <jasonr@gnu.org>
25447
25448 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25449 (w32_free_bdf_font): Unmap memory not handle.
25450
254512007-06-20 Sam Steingold <sds@gnu.org>
25452
25453 * gmalloc.c (__morecore): Fix the declaration to comply with the
25454 definition.
25455
254562007-06-20 Juanma Barranquero <lekktu@gmail.com>
25457
25458 * w32term.c (w32_delete_display): Remove leftover declaration.
25459 (w32_define_cursor, w32_initialize): Make static.
25460
25461 * w32.c (_wsa_errlist): Fix typo in error message.
25462 (init_environment): Ignore any environment variable from the
25463 registry having a null value.
25464
254652007-06-20 Glenn Morris <rgm@gnu.org>
25466
25467 * Makefile.in (LIBGIF): Default to -lgif.
25468
254692007-06-17 Jason Rumney <jasonr@gnu.org>
25470
25471 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25472 unicode strings.
25473
254742007-06-16 Juanma Barranquero <lekktu@gmail.com>
25475
25476 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25477 Fix typo in docstring.
25478
254792007-06-16 Eli Zaretskii <eliz@gnu.org>
25480
25481 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25482 and their keybindings.
25483
254842007-06-15 Chong Yidong <cyd@stupidchicken.com>
25485
25486 * composite.c (update_compositions): Fix last fix.
25487
254882007-06-14 Jason Rumney <jasonr@gnu.org>
25489
25490 * w32.c (get_process_times_fn): New function pointer.
25491 (globals_of_w32): Intialize it if present in kernel32.dll.
25492 (w32_get_internal_run_time): New function.
25493
25494 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25495
254962007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25497
25498 * composite.c (update_compositions): Check the validness of
25499 compositions.
25500
255012007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25502
25503 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25504 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25505
25506 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25507 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25508
25509 * macgui.h (USE_MAC_TOOLBAR): New define.
25510
25511 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25512 Return immediately unless popup is activated.
25513
25514 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25515 background to scroll bar gap.
25516 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25517 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25518 scroll bars on frame edge. Check fringe background extension.
25519 Don't clear extended fringe background area.
25520 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25521 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25522 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25523 [USE_MAC_TOOLBAR]: New macros.
25524 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25525 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25526 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25527 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25528 [USE_MAC_TOOLBAR]: New functions.
25529 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25530 manually if previous repositioning has failed.
25531 (mac_handle_keyboard_event): Use precomputed event kind.
25532 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25533 as tool bar item click. Handle mouse movement over tool bar items.
25534
25535 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25536 toolbar_win_gravity.
25537 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25538 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25539 Add externs.
25540
25541 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25542 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25543
255442007-06-14 Chong Yidong <cyd@stupidchicken.com>
25545
25546 * image.c (search_image_cache): Remove unused variable.
25547
255482007-06-13 Chong Yidong <cyd@stupidchicken.com>
25549
25550 * xfns.c, xmenu.c: Link to xaw3d if available.
25551
255522007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25553
25554 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25555 frame_foreground and frame_background.
25556
25557 * image.c (lookup_image): Save frame foreground and background colors.
25558 (search_image_cache): Check if saved and current frame colors match.
25559
255602007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25561
25562 * regex.c (regex_compile): Remove the `regnum' counter.
25563 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25564
255652007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25566
25567 * term.c: Include intervals.h to declare Fget_text_property.
25568
255692007-06-10 Jason Rumney <jasonr@gnu.org>
25570
25571 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25572
255732007-06-08 Juanma Barranquero <lekktu@gmail.com>
25574
25575 * callint.c (Fcall_interactively):
25576 * editfns.c (Fdelete_and_extract_region):
25577 * fileio.c (Fread_file_name):
25578 * fns.c (Fmapconcat):
25579 * keyboard.c (cmd_error_internal):
25580 * keymap.c (Fkey_description):
25581 * lread.c (openp):
25582 * minibuf.c (read_minibuf):
25583 * search.c (wordify):
25584 * sunfns.c (sel_read):
25585 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25586 * xfns.c (x_default_scroll_bar_color_parameter):
25587 * xmenu.c (menu_help_callback):
25588 * xselect.c (Fx_get_atom_name):
25589 * xterm.c (x_term_init): Use empty_unibyte_string.
25590
255912007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25592
25593 * alloc.c (init_strings): Initialize canonical empty strings.
25594 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25595 canonical empty string when the requested size is 0.
25596
25597 * emacs.c (empty_unibyte_string): Rename from empty_string.
25598 (empty_multibyte_string): New canonical empty string.
25599 (syms_of_emacs): Don't initialize empty_string.
25600
25601 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25602 string, if appropriate.
25603 (empty_unibyte_string, empty_multibyte_string): New externs.
25604 (empty_string): Remove extern.
25605
25606 * lread.c (syms_of_lread): Use empty_unibyte_string.
25607
256082007-06-07 Jason Rumney <jasonr@gnu.org>
25609
25610 * s/ms-w32.h: Don't define HAVE_TZNAME.
25611
25612 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25613
256142007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25615
25616 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25617
25618 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25619 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25620
25621 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25622 Don't call next handler.
25623 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25624 Remove argument. Install handler to application.
25625 (set_frame_menubar): Don't change deep_p.
25626 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25627 FRAME_OUTER_TO_INNER_DIFF_Y.
25628 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25629 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25630 [HAVE_DIALOGS]: New macros.
25631 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25632 Use them.
25633 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25634
25635 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25636 init_service_handler. All callers changed. Return OSStatus value.
25637
25638 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25639 All callers changed so as not to call SetPortWindowPort.
25640 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25641 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25642 mac_draw_string_common.
25643 (mac_draw_image_string_qd): Likewise.
25644 (mac_draw_string_common): Use them. Add INLINE.
25645 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25646 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25647 GetGlobalMouse.
25648 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25649 and FRAME_OUTER_TO_INNER_DIFF_Y.
25650 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25651 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25652 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25653 repositioning window to mac_handle_window_event.
25654 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25655 saving window location to mac_handle_window_event
25656 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25657 (install_menu_target_item_handler): Remove argument in extern.
25658 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25659 Also accept command events.
25660 (do_keystroke): New function created from XTread_socket.
25661 (init_command_handler): Remove functions.
25662 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25663 and save window location by kEventWindowShowing and kEventWindowHiding
25664 handlers here. Don't call next handler for window state change and
25665 focus events.
25666 (mac_handle_application_event, mac_handle_keyboard_event)
25667 [TARGET_API_MAC_CARBON]: New functions.
25668 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25669 kEventWindowShowing and kEventWindowHiding events. Move installation
25670 of mouse, font, text input and menu target item handlers to
25671 install_application_handler.
25672 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25673 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25674 New function.
25675 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25676 Register it.
25677 (XTread_socket) [TARGET_API_MAC_CARBON]:
25678 Consolidate SendEventToEventTarget calls.
25679 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25680 Move application activation handler to mac_handle_application_event.
25681 Move keyboard handler to mac_handle_keyboard_event.
25682 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25683 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25684 init_command_handler. Call install_application_handler.
25685
25686 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25687 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25688
256892007-06-07 Glenn Morris <rgm@gnu.org>
25690
25691 * emacs.c (main): Use `emacs-copyright' in --version output.
25692
256932007-06-06 Chong Yidong <cyd@stupidchicken.com>
25694
25695 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25696
256972007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25698
25699 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25700
25701 * macgui.h: Replace WindowPtr with WindowRef.
25702
25703 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25704 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25705 Replace ControlHandle with ControlRef.
25706 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25707
25708 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25709 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25710 Replace ControlHandle with ControlRef.
25711 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25712 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25713
25714 * macterm.h (struct scroll_bar): Rename member control_handle_low
25715 and control_handle_high to control_ref_low and control_ref_high.
25716 All uses changed.
25717 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25718 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25719 respectively. All uses changed.
25720 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25721 (install_window_handler, remove_window_handler): Replace WindowPtr
25722 with WindowRef in externs.
25723
257242007-06-05 Juanma Barranquero <lekktu@gmail.com>
25725
25726 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25727
257282007-06-03 Nick Roberts <nickrob@snap.net.nz>
25729
25730 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25731
25732 * frame.c (Fmouse_position, Fmouse_pixel_position):
25733 Condition on HAVE_GPM too.
25734
25735 * term.c (term_mouse_highlight): Remove unused variables.
25736 (Fterm_open_connection): Set gpm_zerobased to 1.
25737 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25738 Use zero based co-ordinates.
25739 (handle_one_term_event): Report a drag as mouse movement too.
25740
25741 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25742
257432007-06-03 Chong Yidong <cyd@stupidchicken.com>
25744
25745 * image.c (search_image_cache): New function. Require background
25746 color match if background color is unspecified in the image spec.
25747 (uncache_image, lookup_image): Use it.
25748
257492007-06-01 Juanma Barranquero <lekktu@gmail.com>
25750
25751 * window.c (Fshrink_window): Reflow docstring.
25752
257532007-06-02 Chong Yidong <cyd@stupidchicken.com>
25754
25755 * Version 22.1 released.
25756
257572007-06-01 Richard Stallman <rms@gnu.org>
25758
25759 * xfns.c (x_encode_text): Add GCPRO.
25760
257612007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25762
25763 * xfns.c (x_set_name_internal): Save encoded name before
25764 x_encode_text in case string data is relocated.
25765
257662007-05-31 Richard Stallman <rms@gnu.org>
25767
25768 * buffer.c (syms_of_buffer): Doc fix.
25769
257702007-05-30 Nick Roberts <nickrob@snap.net.nz>
25771
25772 * sysdep.c (init_sys_modes): Add rather than replace with
25773 O_NONBLOCK.
25774
25775 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25776 term_mouse_moveto.
25777
25778 * termhooks.h (term_mouse_moveto): New extern.
25779
25780 * term.c (mouse_face_window): Rename...
25781 (Qmouse_face_window): ...to this.
25782 (term_show_mouse_face, term_clear_mouse_face)
25783 (term_mouse_highlight): Use Qmouse_face_window.
25784 (term_mouse_moveto): New function.
25785 (term_mouse_position): Make it work.
25786 (syms_of_term): Uncomment assignment to mouse_position_hook.
25787 Staticpro Qmouse_face_window.
25788
257892007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25790
25791 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25792 around current_column call.
25793
257942007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25795
25796 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25797 * xdisp.c (next_element_from_buffer):
25798 * window.c (delete_window):
25799 * term.c (term_mouse_highlight):
25800 * msdos.c (getdefdir):
25801 * macterm.c (mac_create_bitmap_from_bitmap_data)
25802 (init_font_name_table):
25803 * fns.c (Fsxhash):
25804 * data.c (Fmake_local_variable):
25805 * ccl.c (ccl_driver): Likewise.
25806
258072007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25808
25809 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25810 Call mac_wakeup_from_rne on window size change.
25811
258122007-05-25 Chong Yidong <cyd@stupidchicken.com>
25813
25814 * image.c (uncache_image): Fix typo.
25815
258162007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25817
25818 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25819
258202007-05-22 Richard Stallman <rms@gnu.org>
25821
25822 * xterm.c (x_connection_closed): Remove NO_RETURN.
25823
258242007-05-22 Martin Rudalics <rudalics@gmx.at>
25825
25826 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25827
258282007-05-21 Chong Yidong <cyd@stupidchicken.com>
25829
25830 * image.c (uncache_image): New function.
25831 (Fimage_refresh): New function.
25832
258332007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25834
25835 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25836
258372007-05-20 Nick Roberts <nickrob@snap.net.nz>
25838
25839 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25840 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25841
258422007-05-20 Nick Roberts <nickrob@snap.net.nz>
25843
25844 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25845 conditional on [HAVE_GPM_H].
25846
258472007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25848
25849 * syntax.c (skip_chars): Update syntax-table only after we checked that
25850 the new location is valid.
25851
258522007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25853
25854 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25855 mac_get_window_bounds.
25856
258572007-05-20 Nick Roberts <nickrob@snap.net.nz>
25858
25859 * Makefile.in (LIBGPM): Allow it to be set from configure.
25860 If set then link Emacs with it.
25861
25862 * config.in: Regenerate.
25863
25864 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25865 New externs.
25866
25867 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25868 Include gpm.h.
25869 (handle_one_term_event, term_gpm): New externs.
25870
25871 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25872 and allow it to be interrupted by SIGIO.
25873
25874 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25875 (wait_reading_process_output): Wait on gpm_fd too.
25876 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25877 (add_gpm_wait_descriptor_called_flag): New variable.
25878 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25879
25880 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25881 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25882 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25883 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25884 (make_lispy_event): Add case GPM_CLICK_EVENT.
25885 (read_avail_input): Handle mouse input.
25886
25887 * term.c (write_glyphs_with_face): New function.
25888 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25889 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25890 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25891 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25892 (last_mouse_x, last_mouse_y): New variables.
25893 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25894 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25895 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25896 (Fterm_close_connection): New functions.
25897 (term_init): Initialise mouse_face_window.
25898
258992007-05-19 Chong Yidong <cyd@stupidchicken.com>
25900
25901 * xdisp.c (redisplay_window): If first window line is a
25902 continuation line, recompute the new window start instead of
25903 recentering.
25904
259052007-05-18 Glenn Morris <rgm@gnu.org>
25906
25907 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25908 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25909
259102007-05-17 Glenn Morris <rgm@gnu.org>
25911
25912 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25913
259142007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25915
25916 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25917 dead key repeat and up events.
25918
259192007-05-14 Chong Yidong <cyd@stupidchicken.com>
25920
25921 * image.c (pbm_load): Check image size for monochrome pbm.
25922
259232007-05-13 Chong Yidong <cyd@stupidchicken.com>
25924
25925 * xterm.c (XTread_socket): Revert last change.
25926
259272007-05-12 Chong Yidong <cyd@stupidchicken.com>
25928
25929 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25930
25931 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25932
259332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25934
25935 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25936 mixup (YAILOM).
25937
259382007-05-07 Andreas Schwab <schwab@suse.de>
25939
25940 * keymap.c (Flookup_key): Fix typo in last change.
25941
259422007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25943
25944 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25945 mapping for unibyte strings.
25946
259472007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25948
25949 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25950 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25951
259522007-04-29 Richard Stallman <rms@gnu.org>
25953
25954 * insdel.c (replace_range): For undo, record insertion first.
25955
259562007-04-29 Andreas Schwab <schwab@suse.de>
25957
25958 * lisp.h (VECSIZE): Use OFFSETOF.
25959
259602007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25961
25962 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25963 disabled lines.
25964
259652007-04-28 Richard Stallman <rms@gnu.org>
25966
25967 * lread.c (read_escape): In a string, \s is always space.
25968
259692007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25970
25971 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25972
25973 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25974 submenu for menu bar items.
25975
25976See ChangeLog.10 for earlier changes.
25977
25978;; Local Variables:
25979;; coding: utf-8
25980;; add-log-time-zone-rule: t
aac0c6e3
MR
25981;; End:
25982
e3eb1dae 25983 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25984
25985 This file is part of GNU Emacs.
25986
25987 GNU Emacs is free software: you can redistribute it and/or modify
25988 it under the terms of the GNU General Public License as published by
25989 the Free Software Foundation, either version 3 of the License, or
25990 (at your option) any later version.
25991
25992 GNU Emacs is distributed in the hope that it will be useful,
25993 but WITHOUT ANY WARRANTY; without even the implied warranty of
25994 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25995 GNU General Public License for more details.
25996
25997 You should have received a copy of the GNU General Public License
25998 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25999
26000;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40