* tramp.texi (External packages): File attributes cache flushing
[bpt/emacs.git] / src / ChangeLog
CommitLineData
aaa0a19a
SM
12010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
4
8d1d9587
JB
52010-08-03 Johan Bockgård <bojohan@gnu.org>
6
7 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 8 (Bug#6744)
8d1d9587 9
9a747ba6
JD
102010-08-02 Jan Djärv <jan.h.d@swipnet.se>
11
4d464ae4
JD
12 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
13 to TRUE if depth of screen is < 16.
14
ac01763e
JD
15 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
16 USE_GTK_TOOLTIP.
e0d62a9b
JB
17 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
18 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 19 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
20 USE_GTK_TOOLTIP.
21 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
22
23 * xterm.h (USE_GTK_TOOLTIP): New define.
24 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
25
9a747ba6
JD
26 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
27 to Control-D (Bug#6771).
28
7b0815ba
JB
292010-08-02 Juanma Barranquero <lekktu@gmail.com>
30
31 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
32 Wording by Drew Adams <drew.adams@oracle.com>.
33
aa1859f5
J
342010-08-01 Jan Djärv <jan.h.d@swipnet.se>
35
36 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
37 ttip_lbl.
38
39 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
40 calling gtk_widget_queue_draw.
41 (x_free_frame_resources): Call xg_free_frame_widgets.
42
43 * xfns.c (x_gtk_use_system_tooltips): New variable.
44 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
45 new gtkutil tooltip functions to show the tooltip.
46 (Fx_hide_tip): Call xg_hide_tooltip.
47 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
48
49 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
50 (xg_show_tooltip, xg_hide_tooltip): Declare.
51
52 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
53 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
54 New functions.
aa1859f5
J
55 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
56 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
57 Remove code that is commented out.
58
76417ef4
SM
592010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
60
61 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
62
16041401
CY
632010-07-31 Chong Yidong <cyd@stupidchicken.com>
64
65 * xselect.c (x_own_selection): Use list4.
66
2c09a58f
DN
672010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
68
69 * buffer.c (Qwindow): Do not define, already defined in data.c.
70 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
71
59df9fdd 722010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 73
59df9fdd
JB
74 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
75 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
76 * config.in: Undef HAVE_DIRENT_H.
1c97e857 77 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 78 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 79
1b231651
DN
802010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
81
82 Rename s/usg5-4.h -> s/usg5-4-common.h.
83 * s/usg5-4.h: Rename file to ...
84 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
85 * s/unixware.h:
86 * s/sol2-6.h:
87 * s/irix6-5.h: Update includes accordingly.
88
bfeabdc3
JD
892010-07-29 Jan Djärv <jan.h.d@swipnet.se>
90
2ebf1083
J
91 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
92
bfeabdc3 93 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
94 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
95 Remove toolbar_height.
96 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
97 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
98 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
99 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
100
101 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
102
103 * xfns.c (x_set_tool_bar_position): New function.
104 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
105 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 106 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
107
108 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
109 and FRAME_TOOLBAR_LEFT_WIDTH.
110
111 * gtkutil.h (xg_change_toolbar_position): Declare.
112
113 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
114 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
115 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
116 (xg_create_frame_widgets): Create a hobox for placing widgets
117 vertically. Use gtk_box_pack_start.
118 (xg_height_or_width_changed): Renamed from xg_height_changed.
119 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
120 (xg_update_frame_menubar, free_frame_menubar): Change to
121 xg_height_or_width_changed.
122 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
123 size correctly. Remove hardcoded 4, instead use handlebox size -
124 toolbar size.
125 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 126 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
127 (xg_pack_tool_bar): POS is a new parameter.
128 Set orientation of tool bar based on pos.
129 Only make handlebox_widget if NULL.
130 Check if tool bar goes to vbox or hbox depending on pos.
131 (xg_update_tool_bar_sizes): New function.
132 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
133 height, call xg_update_tool_bar_sizes instead.
134 (free_frame_tool_bar): Remove from hbox or vbox depending on
135 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
136 (xg_change_toolbar_position): New function.
137
138 * frame.h (struct frame): Add tool_bar_position.
139 (Qbottom): Declare.
140
141 * frame.c (Qtool_bar_position): New variable.
142 (make_frame): Set tool_bar_position to Qtop.
143 (frame_parms): Add tool-bar-position.
144 (x_report_frame_params): Store tool_bar_position.
145 (x_set_fringe_width): Reset wm size hint after fringe changes.
146
26469a38
DN
1472010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
148
149 Make lisp_time_argument declaration work on all systems.
150 * lisp.h (lisp_time_argument): Move declaration ...
151 * systime.h (lisp_time_argument): ... here
152 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
153
8848b728
JD
1542010-07-29 Jan Djärv <jan.h.d@swipnet.se>
155
156 * vm-limit.c (POINTER): Add typedef for it.
157 (start_of_data): Change return type from POINTER to char *.
158
159 * frame.h (Qtty_color_mode): Move declaration out of ifdef
160 HAVE_WINDOW_SYSTEM.
161
76fd1ee9
DN
1622010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
163
0441987e
DN
164 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
165 Remove reference to __osf__, unused.
166
56a000c7
DN
167 * mem-limits.h: Remove duplicated includes.
168 (NULL): Remove definition, unused.
169 (POINTER): Remove definition.
170 (start_of_data): Use char* in prototype, as the function
171 definition does.
172
e6cba650
DN
173 Remove extern declarations from .c files, and them to .h files.
174 * keyboard.h (Qhelp_echo, waiting_for_input)
175 (input_available_clear_time, ignore_mouse_drag_p)
176 (Vdouble_click_time, real_this_command, Vthis_original_command):
177 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
178 (Voverriding_local_map_menu_flag):
179 * lisp.h (Qinteractive_form, use_file_dialog)
180 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
181 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
182 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
183 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
184 (Qfunction, debug_on_next_call, Qfield)
185 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
186 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
187 (Qfile_directory_p, Qinsert_file_contents)
188 (Qcompletion_ignore_case, Qcompletion_ignore_case)
189 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
190 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
191 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
192 (Qminibuffer_prompt)
193 (Vtemporary_file_directory,char_ins_del_vector, Qface):
194 * xterm.h (gray_bitmap_width, gray_bitmap_height)
195 (gray_bitmap_bits, xic_create_fontsetname):
196 * coding.h (Vtranslation_table_for_input): Add extern declarations.
197
198 * xsmfns.c (Vuser_login_name):
199 * xrdb.c (Vdouble_click_time):
200 * xfaces.c (xic_create_fontsetname):
201 * w32select.c (waiting_for_input):
202 * print.c (minibuffer_auto_raise):
203 * msdos.c (Qhelp_echo):
204 * macros.c (real_this_command):
205 * keymap.c (Voverriding_local_map):
206 * xterm.c (poll_for_input_1, gray_bitmap_width)
207 (gray_bitmap_height, gray_bitmap_bits;
208 * xmenu.c ( Voverriding_local_map)
209 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
210 (use_file_dialog, Xt_app_con):
211 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
212 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
213 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
214 (Qtool_bar_lines, ignore_mouse_drag_p):
215 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
216 (Qrear_nonsticky, nconc2):
217 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
218 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
219 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
220 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
221 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
222 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
223 (gc_in_progress):
224 * doc.c (Voverriding_local_map, Qremap):
225 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
226 (Vcompletion_regexp_list):
227 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
228 (Qcompletion_ignore_case):
229 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
230 (Vhistory_length, Vthis_original_command, real_this_command)
231 (Qface, Qminibuffer_prompt, history_delete_duplicates):
232 * image.c (Qrisky_local_variable):
233 * fontset.c (QCname):
234 * fns.c (minibuffer_auto_raise, QCname):
235 * dispnew.c (char_ins_del_cost):
236 * composite.c (font_fill_lglyph_metrics):
237 * cmds.c (Qface, Vtranslation_table_for_input):
238 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
239 * ccl.c (charset_unicode):
240 * callproc.c (Vtemporary_file_directory):
241 * buffer.c (emacs_strerror): Remove extern declarations.
242
243 * data.c (Qwindow): Make non-static, used from other files too.
244 * frame.c (validate_x_resource_name): Remove shadow definition for i.
245
76fd1ee9
DN
246 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
247 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
248 * s/usg5-4.h (COFF):
249 * s/template.h:
250 * s/msdos.h (COFF, NO_REMAP):
251 * s/ms-w32.h (NO_REMAP):
252 * s/hpux10-20.h (NO_REMAP):
253 * m/sparc.h (SEGMENT_MASK):
254 * m/m68k.h (NO_REMAP):
255 * m/intel386.h (SEGMENT_MASK):
256 * m/arm.h (NO_REMAP):
257 * m/alpha.h (COFF):
258 * m/template.h: Remove references to unused defines.
259
8a52f00a
JD
2602010-07-28 Jan Djärv <jan.h.d@swipnet.se>
261
262 * xsettings.c (Ftool_bar_get_system_style): Also check for
263 Qtext_image_horiz.
264
265 * xdisp.c (Qtext_image_horiz): Define.
266 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 267 to documentation of tool-bar-style.
8a52f00a
JD
268
269 * lisp.h (Qtext_image_horiz): Declare.
270
271 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
272 style text_image_horiz.
273
89dc303e
DN
2742010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
275
60799703
DN
276 * emacs.c (Fkill_emacs): Remove return statement.
277
37254dc1
DN
278 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
279 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
280 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
281 local extern declarations.
282
71c7345a
DN
283 * xmenu.c: Do not included lwlib.h, not needed.
284
6ba577cb
DN
285 * m/iris4d.h (XUINT, XSET): Remove, not needed.
286
fdb183d6
DN
287 * process.c: Move definitions earlier to minimize #ifdefs.
288
289 * xterm.h (x_get_customization_string, x_load_resources)
290 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
291 (x_check_errors, x_property_data_to_lisp, defined_color)
292 (xic_set_xfontset, x_defined_color): Use const.
293
294 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
295 (x_text_icon, x_check_errors, x_connection_closed): Use const.
296
297 * xselect.c (selection_data_to_lisp_data)
298 (x_property_data_to_lisp):
299 * xrdb.c (x_get_string_resource, file_p)
300 (x_get_customization_string, magic_file_p, search_magic_path)
301 (get_system_app, get_user_app, x_load_resources, x_get_resource)
302 (x_get_string_resource): Use const.
303
304 * xfns.c: Include xlwmenu.h when USE_LUCID.
305 (x_defined_color, xic_set_xfontset): Use const.
306 (Fx_hide_tip): Remove local extern declaration.
307
308 * xfaces.c (Qmouse_face): Remove declaration.
309 (face_color_gray_p, tty_defined_color, defined_color)
310 (face_color_gray_p, face_color_supported_p). Add const.
311
312 * xdisp.c (do_mouse_tracking): Remove declaration.
313 (add_to_log): Use const.
314
315 * minibuf.c (Qmouse_face): Remove declaration.
316
317 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
318
319 * keyboard.h (do_mouse_tracking): Add declaration.
320
321 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
322 (QCdata, QCtype, Qcenter): Remove declarations.
323
324 * frame.c (x_get_resource_string, x_get_string_resource)
325 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
326 (x_default_parameter): Use const.
327
328 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
329 (QCheight, QCsize, QCname): Remove declarations.
330
331 * emacs.c (main): Remove local extern declaration.
332
333 * editfns.c (region_limit, syms_of_editfns): Remove local extern
334 declarations.
335
336 * dispnew.c: Remove duplicate #include <unistd.h>.
337 (update_window, update_frame_1, init_display): Remove local extern
338 declarations.
339
340 * dispextern.h (add_to_log): Remove declaration.
341 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
342 (x_frame_get_and_record_arg, x_default_parameter): Add const.
343
344 * dired.c (scmp): Add const.
345 (directory_files_internal): Remove local extern declaration.
346
347 * data.c (Finteractive_form): Use const.
348
349 * composite.c (syms_of_composite): Remove local extern declarations.
350
351 * charset.c (add_to_log): Remove declaration.
352
353 * character.c (strwidth, parse_str_to_multibyte): Add const.
354
355 * character.h (strwidth, parse_str_to_multibyte): Likewise.
356
357 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
358
89dc303e 359 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
360 (Lisp_Subr): Make doc and intspec constant.
361 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
362 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
363 (QCheight, QCsize, QCname, QCwidth, QCforeground)
364 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
365 (display_arg): Add declarations.
89dc303e 366
0ed082fe 3672010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
368
369 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
370
0ed082fe
JB
371 * window.c (Fwindow_height): Doc fix (bug#6518).
372
3732010-07-27 Juanma Barranquero <lekktu@gmail.com>
374
375 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
376
ccaf0336
DN
3772010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
378
977105dc
DN
379 * keyboard.c (Ftop_level, Fexit_recursive_edit)
380 (Fabort_recursive_edit): Remove return statements in NO_RETURN
381 functions.
382
f5ada890
DN
383 * frame.h (Qtty_color_mode): Add declaration.
384
ccaf0336
DN
385 * lisp.h (Ftop_level, Fexit_recursive_edit)
386 (Fabort_recursive_edit): Mark as NO_RETURN.
387
dfe3c90f
KH
3882010-07-26 Kenichi Handa <handa@m17n.org>
389
390 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 391 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 392
7d383292
JB
3932010-07-26 Juanma Barranquero <lekktu@gmail.com>
394
395 * lread.c (unreadpure, mapatoms_1): Make static.
396
da31e629
JB
3972010-07-25 Juanma Barranquero <lekktu@gmail.com>
398
399 * terminfo.c (tparam): Fix prototype of tparm.
400
7bfa6d77
AS
4012010-07-25 Andreas Schwab <schwab@linux-m68k.org>
402
dcc19aac
AS
403 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
404 find start of text segment.
405 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
406 is defined.
407
7bfa6d77
AS
408 * callproc.c (set_initial_environment): Avoid unbalanced braces.
409
63f9a672
KB
4102010-07-25 Ken Brown <kbrown@cornell.edu>
411
412 * vm-limit.c (check_memory_limits): Fix previous change;
413 accidentally reverted an earlier change.
414
24933075
KB
4152010-07-25 Ken Brown <kbrown@cornell.edu>
416
417 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
418 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
419
361358ea
JB
4202010-07-25 Juanma Barranquero <lekktu@gmail.com>
421
422 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
423 * dired.c (opendir, readdir): Fix prototypes.
424 * editfns.c (w32_get_internal_run_time): Fix prototypes.
425 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
426 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
427 (telldir): Remove declaration.
428 * ralloc.c (real_morecore, __morecore): Fix prototypes.
429 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
430 * syssignal.h (strsignal): Fix prototype.
431 * term.c (tparam): Fix prototype.
432 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
433 (term_get_fkeys): Set inside "#ifndef DOS_NT".
434 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
435 and __morecore.
436 * w32gui.h (XParseGeometry): Fix prototype.
437 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
438 * w32term.c (my_set_focus): Declare inside #if 0.
439 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
440 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
441 (drain_message_queue, get_next_msg, post_msg, parse_button)
442 (ClipboardSequence_Proc): Fix prototypes.
443 (wait_for_sync): Remove declaration.
444
630b9592
JB
4452010-07-24 Juanma Barranquero <lekktu@gmail.com>
446
447 * w32fns.c (w32_to_x_color): Remove, unused.
448
6a0d6611
AS
4492010-07-24 Andreas Schwab <schwab@linux-m68k.org>
450
451 * lisp.h: Remove leftover P_.
452
4e8608ff
DN
4532010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
454
455 * ecrt0.c, unexalpha.c: Remove files, unused.
456
c8197983
AS
4572010-07-24 Andreas Schwab <schwab@linux-m68k.org>
458
459 * cmds.c (internal_self_insert): Make static.
460 * lisp.h (internal_self_insert): Remove declaration.
461
97b372d7
JB
4622010-07-23 Juanma Barranquero <lekktu@gmail.com>
463
33ac0414
JB
464 * alloc.c (free_float):
465 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
466 * frame.c (delete_frame_handler):
467 * ralloc.c (reorder_bloc):
468 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
469 Remove unused static functions.
470
94da8397
JB
471 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
472 it is called only from NS code.
473
2e6c8532
JB
474 * w32term.c (my_set_focus): #ifdef away; it is called only from
475 "#ifdef 0" code.
476
97b372d7
JB
477 * w32fns.c (x_edge_detection):
478 * xfaces.c (may_use_scalable_font_p):
479 Remove obsolete static declarations.
480
7c3320d8
JB
4812010-07-20 Juanma Barranquero <lekktu@gmail.com>
482
483 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
484 (emacs_blocked_realloc, uninterrupt_malloc):
485 * fringe.c (w32_reset_fringes):
486 * image.c (convert_mono_to_color_image, lookup_rgb_color)
487 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
488 * sound.c (be2hs, do_play_sound):
489 * vm-limit.c (get_lim_data, ret_lim_data):
490 * w32term.c (x_free_frame_resources):
491 * xfaces.c (x_create_gc, x_free_gc):
492 Convert definitions to standard C.
493
d5273788
SM
4942010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
495
496 * eval.c (Feval, Ffuncall): Use the new names.
497
498 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
499 (DEFUN): Add braces around the union initialisation and use ## to
500 specify the right union alternative and avoid a cast.
501
8d16a259
JB
5022010-07-18 Juanma Barranquero <lekktu@gmail.com>
503
504 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
505
3b8eff32
CY
5062010-07-17 Chong Yidong <cyd@stupidchicken.com>
507
508 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
509
499322ce
J
5102010-07-17 Jan Djärv <jan.h.d@swipnet.se>
511
512 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
513 is related to the menu bar (Bug#6499).
a628ad9d 514 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 515
f6003da5 5162010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
517
518 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
519
520 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
521
522 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
523 i.e. don't put back ButtonRelease (Bug#6608).
524
525 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
526 instead of Window. Call xg_event_is_for_menubar when
527 USE_GTK (Bug#6499).
528
529 * gtkutil.h (xg_event_is_for_menubar): Declare.
530
531 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
532
f6003da5 5332010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
534
535 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
536 when it's the same as the old foreground. (Bug#6609)
537
23243f29
J
5382010-07-16 Jan Djärv <jan.h.d@swipnet.se>
539
540 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
541 widget is non-null (Bug#6645).
542
2b23d2a6
AS
5432010-07-15 Andreas Schwab <schwab@linux-m68k.org>
544
01b564ff
AS
545 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
546 Convert old-style definition.
547
2b23d2a6
AS
548 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
549 timestamp argument.
550
c4affd2c
EZ
5512010-07-15 Eli Zaretskii <eliz@gnu.org>
552
553 * fringe.c (update_window_fringes): Restore mistakenly reverted
554 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
555
cf28cebc
J
5562010-07-14 Jan Djärv <jan.h.d@swipnet.se>
557
558 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
559 (SET_SAVED_KEY_EVENT): Remove (not used).
560 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
561 remove size parameter.
562 (handle_one_xevent): Check popup_activated () for menu for Xt also.
563 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
564 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
565 ButtonRelease.
6b2c4bd9
J
566 (x_set_window_size_1): scroll_bar_actual_width is always
567 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
568
569 * xdisp.c (pending_menu_activation): Remove extern declaration.
570 (prepare_menu_bars): Remove setting of pending_menu_activation.
571
572 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
573 (x_activate_menubar): Set popup_activated_flag for Xt also.
574 Remove setting of pending_menu_activation.
cf28cebc
J
575 (set_frame_menubar): Remove check of pending_menu_activation.
576 Declare menubar_size before code. Correct spelling in comment.
577
f6c1c771
KH
5782010-07-14 Kenichi Handa <handa@m17n.org>
579
580 * font.c (font_open_entity): Cancel previous change.
581 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
582
20477505
EZ
5832010-07-13 Eli Zaretskii <eliz@gnu.org>
584
77defa9a
EZ
585 Remove subprocesses #ifdefs.
586 * process.c <inhibit_sentinels>: Move to the common part.
587 (Fwaiting_for_user_input_p): Move to the common part; return nil
588 if async subprocesses aren't supported.
589 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
590 MS-DOS. Remove "#ifdef subprocesses".
591 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
592 (gettimeofday): Remove "#ifdef subprocesses".
593 (wait_without_blocking): Remove function.
594 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
595 Remove "#ifdef subprocesses".
596 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
597 compiled on MS-DOS.
598 * callproc.c (Fcall_process) [!MSDOS]: Don't call
599 wait_for_termination on MS-DOS.
600 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
601 initialization of inhibit_sentinels.
602 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
603 subprocesses" conditional.
604 * callproc.c (Fcall_process) [!subprocesses]: Don't call
605 wait_for_termination, since `buffer' cannot be an integer when
606 async subprocesses are not supported
607 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
608 for ifdefing away the call to Fprocess_status.
609
20477505
EZ
610 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
611 away the entire body of the function.
612
b3ffc17c
DN
6132010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
614
01faa934
DN
615 Remove subprocesses #ifdefs from term.c.
616 * process.c (add_keyboard_wait_descriptor)
617 (delete_keyboard_wait_descriptor): Move to common section, do
618 nothing when subprocesses is not defined.
a628ad9d
JB
619 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
620 Remove subprocesses #ifdefs.
01faa934 621
b3ffc17c
DN
622 Convert maybe_fatal to standard C.
623 * lisp.h (verror): Declare.
624 * eval.c (verror): New function containing the code from ...
625 (error): ... this. Call verror.
626 * term.c (vfatal): New function containing the code from ...
627 (fatal): ... this. Call vfatal.
628 (maybe_fatal): Convert to standard C, use variable number of
629 arguments. Declare as non-return.
630 (init_tty): Fix maybe_fatal call.
631
0521f580
DN
6322010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
633
634 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
635 (_scroll_bar_note_movement): Convert definitions to standard C.
636 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
637 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
638
ebd15611
DN
6392010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
640
641 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
642 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
643 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
644 (xaw_jump_callback, xaw_scroll_callback)
645 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
646 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
647 definitions to standard C.
648 * xmenu.c (menubar_id_to_frame, popup_get_selection)
649 (popup_activate_callback, popup_deactivate_callback)
650 (menu_highlight_callback, menubar_selection_callback)
651 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
652 (free_frame_menubar, popup_selection_callback, as)
653 (create_and_show_popup_menu, dialog_selection_callback)
654 (create_and_show_dialog):
655 * xfns.c (hack_wm_protocols, x_window):
656 * xfaces.c (x_update_menu_appearance):
657 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
658 (char_to_pixel_size, round_size_to_char, get_wm_shell)
659 (set_frame_size, update_wm_hints, setup_frame_gcs)
660 (update_various_frame_slots, update_from_various_frame_slots)
661 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
662 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
663 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
664
de06a2dd
AS
6652010-07-12 Andreas Schwab <schwab@linux-m68k.org>
666
a628ad9d 667 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 668
fc549af9
EZ
6692010-07-12 Eli Zaretskii <eliz@gnu.org>
670
671 * process.c (setup_process_coding_systems): Move to the part
672 shared by non-subprocesses systems, and make its body empty when
673 subprocesses is not defined.
674 (close_process_descs): Move to the part shared by non-subprocesses
675 systems.
1408902e
EZ
676 (wait_reading_process_output) [!subprocesses]: Convert arg list to
677 ANSI C.
fc549af9 678
d5a3eaaf
AS
6792010-07-12 Andreas Schwab <schwab@linux-m68k.org>
680
681 * editfns.c (transpose_markers): Convert old-style definition.
682 * emacs.c (abort, shut_down_emacs, fixup_locale)
683 (synchronize_system_time_locale)
684 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
685 * floatfns.c (extract_float, matherr, init_floatfns)
686 (syms_of_floatfns): Likewise.
687 * fns.c (make_hash_table): Likewise.
688 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
689 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
690 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
691 (ftfont_variation_glyphs): Likewise.
692 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
693 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
694 * lread.c (read_filtered_event): Likewise.
695 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
696 * process.c (wait_reading_process_output): Likewise.
697 * scroll.c (do_line_insertion_deletion_costs): Likewise.
698 * search.c (search_buffer, boyer_moore): Likewise.
699 * syntax.c (scan_sexps_forward): Likewise.
700 * xdisp.c (try_scrolling): Likewise.
701 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
702 (face_at_string_position): Likewise.
703 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
704 * xselect.c (x_get_window_property, receive_incremental_selection)
705 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
706 Likewise.
707 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
708
6f704c76
DN
7092010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
710
ded80a25
DN
711 * callproc.c (child_setup): Remove subprocesses conditional.
712 Remove code dealing with SET_EMACS_PRIORITY, unused.
713
49d937f4 714 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
715 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
716
717 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
718 (__do_global_dtors, __main): Use void in definition.
719 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
720 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
721 the only users from ...
722 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
723 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
724 (HAVE_VOLATILE): Remove, unused.
725
6f704c76
DN
726 Convert more function definitions to standard C.
727 * xdisp.c (window_box_edges, handle_single_display_spec)
728 (display_string): Convert definition to standard C.
729 * scroll.c (do_direct_scrolling, scrolling_1):
730 * dispnew.c (allocate_matrices_for_frame_redisplay)
731 (mirrored_line_dance):
732 * coding.c (code_convert_string):
733 * charset.c (map_charset_chars):
734 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
735 (Fregister_ccl_program, Fregister_code_conversion_map):
736 * keyboard.c (kbd_buffer_nr_stored): Likewise.
737 (head_table): Make static and const.
738
e6cfa7c3
AS
7392010-07-12 Andreas Schwab <schwab@linux-m68k.org>
740
741 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
742 (PROFILING_LDFLAGS): Set from substitution.
743 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
744 CFLAGS last.
745
892dd565
KH
7462010-07-12 Kenichi Handa <handa@m17n.org>
747
6f2cdcd1
KH
748 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
749 (shortlisp): Likewise.
750
892dd565
KH
751 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
752
753 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
754 of FONT_ENTITY_INDEX.
755 (Ffont_get): If KEY is :otf and the font-object doesn't have the
756 property, get the property value dynamically.
757 (Ffont_put): Accept font-entity and font-object too.
758 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
759 return value changed.
760 (syms_of_font): Adjusted for the above change.
761
ae96d47a
AS
7622010-07-11 Andreas Schwab <schwab@linux-m68k.org>
763
c8fc18ee
AS
764 * blockinput.h: Remove obsolete comment.
765
89887d67
AS
766 * lisp.h: Include <stddef.h>.
767 (OFFSETOF): Don't define.
768 (VECSIZE): Use offsetof instead of OFFSETOF.
769 (PSEUDOVECSIZE): Likewise.
770 * process.c (conv_sockaddr_to_lisp): Likewise.
771 * alloc.c: Don't include <stddef.h>.
772 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
773
ae96d47a
AS
774 * process.c: Remove obsolete comment.
775
635c0aa1
CY
7762010-07-11 Chong Yidong <cyd@stupidchicken.com>
777
778 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
779
a64df650
AS
7802010-07-11 Andreas Schwab <schwab@linux-m68k.org>
781
8966b757
AS
782 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
783 index, rindex.
784 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
785 * editfns.c (Fuser_full_name, Fformat): Likewise.
786 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
787 * fileio.c (Ffile_symlink_p): Likewise.
788 * filelock.c (current_lock_owner): Likewise.
789 * font.c (font_parse_name, font_parse_family_registry): Likewise.
790 * fontset.c (fontset_pattern_regexp): Likewise.
791 * lread.c (read1): Likewise.
792 * sysdep.c (init_system_name): Likewise.
793 * xfns.c (select_visual): Likewise.
794 * s/hpux10-20.h (index, rindex): Don't define.
795 * s/ms-w32.h (index): Likewise.
796 * s/usg5-4.h: Likewise.
797
cf237e27
AS
798 * callproc.c (relocate_fd): Use F_DUPFD if defined.
799
a8fe7202
AS
800 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
801 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
802 (egetenv): Likewise.
803 * doprnt.c (doprnt): Likewise.
804 * editfns.c (set_time_zone_rule, format2): Likewise.
805 * emacs.c (decode_env_path): Likewise.
806 * eval.c (signal_error, error): Likewise.
807 * insdel.c (replace_range_2): Likewise.
808 * keyboard.c (cmd_error_internal): Likewise.
809 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
810 * print.c (write_string, write_string_1, print_error_message):
811 Likewise.
812 * vm-limit.c (warn_function, memory_warnings): Likewise.
813 * xdisp.c (message1, message1_nolog, message_with_string)
814 (vmessage, message, message_nolog): Likewise.
815 * emacs.c: Remove duplicate declaration.
816 * keyboard.h: Likewise.
817 * lisp.h: Update prototypes.
818
bb8e180f
AS
819 * eval.c: Fix indentation problem.
820
83380e65
AS
821 * keyboard.c: Include "process.h"
822
a64df650
AS
823 * eval.c: Remove obsolete noinline declaration.
824 * fns.c: Likewise.
825
6a8033e1
KR
8262010-07-11 Ken Raeburn <raeburn@raeburn.org>
827
828 * doprnt.c (doprnt): Take a va_list argument instead of count and
829 pointer.
830 * eval.c (error): Change to a standard-C variadic function.
831 * xdisp.c (vmessage): Renamed from message, made static, and
832 changed to take a va_list argument.
833 (message): New variadic wrapper.
834 (message_nolog): Now a variadic function, calling vmessage.
835 * lisp.h: Include stdarg.h for va_list.
836 (doprnt, error, message, message_nolog): Decls updated.
837
462aa963
EZ
8382010-07-11 Eli Zaretskii <eliz@gnu.org>
839
840 * process.c (syms_of_process) <delete-exited-processes>: Define
841 even if !subprocesses.
842 (delete_exited_processes): Ditto.
843
844 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
845 (delete_exited_processes): Don't define.
846
48104462
CY
8472010-07-10 Chong Yidong <cyd@stupidchicken.com>
848
849 * frame.c (make_frame): Initialize menu_bar_lines and
850 tool_bar_lines members.
851 (make_initial_frame, make_terminal_frame): Initialize
852 menu_bar_lines using value of menu-bar-mode.
853
854 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
855
f388c88a
EZ
8562010-07-10 Eli Zaretskii <eliz@gnu.org>
857
858 * process.c: Reshuffle #include's. Condition some of the global
859 and static variables on `subprocesses'.
860 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
861 Leave only one implementation.
862 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
863 (kill_buffer_processes, Flist_system_processes)
864 (Fprocess_attributes, init_process, syms_of_process): Unify the
865 implementations for with subprocesses and without them.
866
723f5a07
J
8672010-07-09 Jan Djärv <jan.h.d@swipnet.se>
868
869 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
870 correct size for Motif.
871 (free_frame_menubar): Call x_set_window_size to update frame size.
872
873 * xfns.c (x_window): Set borderWidth to 0 for pane and
874 EmacsFrame. Frame size calculation is wrong otherwise.
875
2536a4b7
MA
8762010-07-09 Michael Albinus <michael.albinus@gmx.de>
877
878 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
879 allows to suppress errors when polling in Emacs' main loop.
880 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
881 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
882 (Fdbus_method_error_internal, Fdbus_send_signal)
883 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
884 (Fdbus_register_method): Use it. (Bug#6579)
885
5842a27b
DN
8862010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
887
888 * alloc.c: Convert DEFUNs to standard C.
889 * buffer.c:
890 * bytecode.c:
891 * callint.c:
892 * callproc.c:
893 * casefiddle.c:
894 * casetab.c:
895 * category.c:
896 * character.c:
897 * charset.c:
898 * chartab.c:
899 * cmds.c:
900 * coding.c:
901 * composite.c:
902 * data.c:
903 * dbusbind.c:
904 * dired.c:
905 * dispnew.c:
906 * doc.c:
907 * dosfns.c:
908 * editfns.c:
909 * emacs.c:
910 * eval.c:
911 * fileio.c:
912 * filelock.c:
913 * floatfns.c:
914 * fns.c:
915 * font.c:
916 * fontset.c:
917 * frame.c:
918 * fringe.c:
919 * image.c:
920 * indent.c:
921 * insdel.c:
922 * keyboard.c:
923 * keymap.c:
924 * lread.c:
925 * macros.c:
926 * marker.c:
927 * menu.c:
928 * minibuf.c:
929 * msdos.c:
930 * nsfns.m:
931 * nsmenu.m:
932 * nsselect.m:
933 * print.c:
934 * process.c:
935 * search.c:
936 * sound.c:
937 * syntax.c:
938 * term.c:
939 * terminal.c:
940 * textprop.c:
941 * undo.c:
942 * w16select.c:
943 * w32console.c:
944 * w32fns.c:
945 * w32font.c:
946 * w32menu.c:
947 * w32proc.c:
948 * w32select.c:
949 * window.c:
950 * xdisp.c:
951 * xfaces.c:
952 * xfns.c:
953 * xmenu.c:
954 * xselect.c:
955 * xsettings.c:
956 * xsmfns.c: Likewise.
957
d568829b
EZ
9582010-07-08 Eli Zaretskii <eliz@gnu.org>
959
960 * process.c (kbd_is_on_hold, hold_keyboard_input)
961 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
962
52214050
J
9632010-07-08 Jan Djärv <jan.h.d@swipnet.se>
964
965 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
966 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
967 unless USE_LUCID.
968
313d9eb2
DN
9692010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
970
a628ad9d
JB
971 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
972 declaration.
d8825aa3 973
295d0d8f
DN
974 Clean up include guards.
975 * tparam.c: Remove include guards for config.h, string.h and code
976 that assumes #ifndef emacs.
977 * termcap.c:
978 * unexalpha.c:
979 * sysdep.c:
980 * filemode.c:
981 * filelock.c:
982 * bidi.c: Likewise.
983
49d9e6b0
DN
984 Remove prefix-args.c
985 * prefix-args.c: Remove file.
986 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
987 * Makefile.in (temacs${EXEEXT}): Remove references to
988 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
989 (mostlyclean): Remove reference to prefix-args.
990 (prefix-args): Remove.
991
313d9eb2
DN
992 Simplify cstart_of_data, start_of_code and related code.
993 * mem-limits.h: Remove !emacs and _LIBC conditional code.
994 (start_of_data): Merge into start_of_data function.
995 * sysdep.c (start_of_text): Remove. Move simplified versions of
996 it in the only users: unexaix.c and unexec.c.
997 (read_input_waiting): Remove local declaration of quit_char.
998 (start, etext): Remove declarations.
999 (start_of_data): Merge with the version in mem-limits.h and move
1000 to vm-limits.c.
1001 * vm-limit.c (start_of_data): Merged and simplified version of the
1002 code formerly in mem-limits.h and sysdep.c.
1003 * unexec.c (start): New declaration, moved from sysdep.c.
1004 (start_of_text): Simplified version of the code formerly in sysdep.c.
1005 * unexaix.c (start_of_text): Simplified version of the code
1006 formerly in sysdep.c.
1007 * m/alpha.h (HAVE_TEXT_START): Remove.
1008 (TEXT_START): Move ...
1009 * unexalpha.c (TEXT_START): ... here.
1010 * s/hpux10-20.h (TEXT_START): Remove.
1011 * s/darwin.h (TEXT_START):
1012 * m/mips.h (TEXT_START):
1013 * m/macppc.h (HAVE_TEXT_START):
1014 * m/m68k.h (TEXT_START):
1015 * m/iris4d.h (TEXT_START):
1016 * m/intel386.h (TEXT_START):
1017 * m/ibmrs6000.h (TEXT_START):
1018 * m/ia64.h (HAVE_TEXT_START):
1019 * s/msdos.h (TEXT_START): Likewise.
1020
72af86bd
AS
10212010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1022
1023 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1024 (overrun_check_free, xstrdup, allocate_string)
1025 (allocate_string_data, compact_small_strings, Fmake_string)
1026 (make_unibyte_string, make_multibyte_string)
1027 (make_string_from_bytes, make_specified_string, make_float)
1028 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1029 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1030 memcpy, memmove, memset, memcmp.
1031 * atimer.c (start_atimer, set_alarm): Likewise.
1032 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1033 (mmap_realloc, init_buffer_once): Likewise.
1034 * callint.c (Fcall_interactively): Likewise.
1035 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1036 (getenv_internal_1): Likewise.
1037 * casefiddle.c (casify_object): Likewise.
1038 * ccl.c (ccl_driver): Likewise.
1039 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1040 * charset.c (load_charset_map_from_file)
1041 (load_charset_map_from_file, load_charset_map_from_vector)
1042 (Fdefine_charset_internal): Likewise.
1043 * cm.c (Wcm_clear): Likewise.
1044 * coding.c (decode_eol, decode_coding_object)
1045 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1046 * data.c (Faset): Likewise.
1047 * dired.c (directory_files_internal, file_name_completion_stat):
1048 Likewise.
1049 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1050 (clear_glyph_row, copy_row_except_pointers)
1051 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1052 (save_current_matrix, restore_current_matrix)
1053 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1054 (mirror_line_dance, scrolling_window): Likewise.
1055 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1056 Likewise.
1057 * doprnt.c (doprnt): Likewise.
1058 * editfns.c (Fuser_full_name, make_buffer_string_both)
1059 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1060 * emacs.c (sort_args): Likewise.
1061 * eval.c (Fapply, Ffuncall): Likewise.
1062 * fileio.c (Ffile_name_directory, make_temp_name)
1063 (Fexpand_file_name, search_embedded_absfilename)
1064 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1065 (auto_save_error): Likewise.
1066 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1067 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1068 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1069 (Fmake_hash_table): Likewise.
1070 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1071 * ftfont.c (ftfont_text_extents): Likewise.
1072 * getloadavg.c (getloadavg): Likewise.
1073 * image.c (define_image_type, make_image, make_image_cache)
1074 (x_create_x_image_and_pixmap, xbm_image_p)
1075 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1076 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1077 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1078 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1079 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1080 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1081 Likewise.
1082 * indent.c (scan_for_column, compute_motion): Likewise.
1083 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1084 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1085 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1086 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1087 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1088 (store_user_signal_events, menu_bar_items, tool_bar_items)
1089 (process_tool_bar_item, append_tool_bar_item)
1090 (read_char_minibuf_menu_prompt, read_key_sequence)
1091 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1092 Likewise.
1093 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1094 Likewise.
1095 * lisp.h (STRING_COPYIN): Likewise.
1096 * lread.c (Fload, read1, oblookup): Likewise.
1097 * msdos.c (Frecent_doskeys): Likewise.
1098 * nsfns.m (Fx_create_frame): Likewise.
1099 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1100 Likewise.
1101 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1102 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1103 Likewise.
1104 * nsmenu.m (ns_update_menubar): Likewise.
1105 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1106 * print.c (print_unwind, printchar, strout, print_string)
1107 (print_error_message): Likewise.
1108 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1109 (Fmake_network_process, Fnetwork_interface_list)
1110 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1111 (init_process): Likewise.
1112 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1113 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1114 Likewise.
1115 * scroll.c (do_scrolling, do_direct_scrolling)
1116 (scrolling_max_lines_saved): Likewise.
1117 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1118 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1119 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1120 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1121 (emacs_set_tty): Likewise.
1122 * term.c (encode_terminal_code, calculate_costs)
1123 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1124 Likewise.
1125 * termcap.c (tgetst1, gobble_line): Likewise.
1126 * termhooks.h (EVENT_INIT): Likewise.
1127 * tparam.c (tparam1): Likewise.
1128 * unexalpha.c (unexec): Likewise.
1129 * unexec.c (write_segment): Likewise.
1130 * unexmacosx.c (unexec_write_zero): Likewise.
1131 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1132 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1133 * w32font.c (w32font_list_family, w32font_text_extents)
1134 (w32font_list_internal, w32font_match_internal)
1135 (w32font_open_internal, compute_metrics, Fx_select_font):
1136 Likewise.
1137 * w32menu.c (set_frame_menubar, add_menu_item)
1138 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1139 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1140 * w32uniscribe.c (uniscribe_list_family): Likewise.
1141 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1142 * window.c (make_window, replace_window, set_window_buffer)
1143 (Fsplit_window): Likewise.
1144 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1145 (add_to_log, message3, x_consider_frame_title)
1146 (append_space_for_newline, extend_face_to_end_of_line)
1147 (decode_mode_spec_coding, init_glyph_string): Likewise.
1148 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1149 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1150 (face_attr_equal_p, make_realized_face, make_face_cache)
1151 (free_realized_faces, lookup_named_face, smaller_face)
1152 (face_with_height, lookup_derived_face)
1153 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1154 (Finternal_set_font_selection_order, realize_default_face)
1155 (compute_char_face, face_at_buffer_position)
1156 (face_for_overlay_string, face_at_string_position, merge_faces):
1157 Likewise.
1158 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1159 (Fx_window_property, x_create_tip_frame)
1160 (Fx_backspace_delete_keys_p): Likewise.
1161 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1162 (xfont_text_extents): Likewise.
1163 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1164 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1165 * xselect.c (x_queue_event, x_get_window_property)
1166 (receive_incremental_selection): Likewise.
1167 * xsmfns.c (x_session_check_input): Likewise.
1168 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1169 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1170 Likewise.
1171 * character.h (BCOPY_SHORT): Removed.
1172 * config.in: Regenerate.
1173 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1174 * emacs.c (main) [PROFILING]: Don't declare
1175 dump_opcode_frequencies.
1176 * lisp.h (safe_bcopy): Remove declaration.
1177 (memset) [!HAVE_MEMSET]: Declare.
1178 (memcpy) [!HAVE_MEMCPY]: Likewise.
1179 (memmove) [!HAVE_MEMMOVE]: Likewise.
1180 (memcmp) [!HAVE_MEMCMP]: Likewise.
1181 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1182 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1183 Don't define.
1184 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1185 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1186 (BCOPY_DOWNWARD_SAFE): Don't define.
1187 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1188 (memcpy) [!HAVE_MEMCPY]: Define.
1189 (memmove) [!HAVE_MEMMOVE]: Define.
1190 (memcmp) [!HAVE_MEMCMP]: Define.
1191
cb768704
J
11922010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1193
1194 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1195 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1196 New functions.
cb768704
J
1197 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1198 select on empty input mask.
1199 (init_process): Initialize kbd_is_on_hold to 0.
1200
1201 * process.h (hold_keyboard_input, unhold_keyboard_input)
1202 (kbd_on_hold_p): Declare.
1203
1204 * keyboard.c (input_available_signal): Declare.
1205 (kbd_buffer_nr_stored): New function.
1206 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1207 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1208 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1209 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1210 (tty_read_avail_input): If input is on hold, return.
1211 Don't read more that free slots in kbd_buffer (Bug#6571).
1212
3a8ce822
EZ
12132010-07-07 Eli Zaretskii <eliz@gnu.org>
1214
1215 * msdos.h:
1216 * msdos.c:
1217 * dosfns.c:
1218 * w16select.c: Convert function definitions to ANSI C.
1219
a628ad9d
JB
1220 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1221 Remove unused prototypes.
3a8ce822 1222
cf84bb53
JB
12232010-07-07 Juanma Barranquero <lekktu@gmail.com>
1224
1225 * coding.c, sysdep.c: Convert some more functions to standard C.
1226
1a4990fb
JB
12272010-07-07 Juanma Barranquero <lekktu@gmail.com>
1228
1229 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1230 (encode_coding_object): Use SPECPDL_INDEX.
1231 (syms_of_coding): Use DOS_NT.
1232
c0f2f16b
DN
12332010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1234
48fb6855
DN
1235 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1236
c0f2f16b
DN
1237 Make the function member of Lisp_Subr use standard C prototypes.
1238 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1239 (DECL_ALIGN): Add a cast for the function.
1240 * eval.c (Feval, Ffuncall): Use the proper type for each type
1241 function call.
1242
67aecef9
CY
12432010-07-06 Chong Yidong <cyd@stupidchicken.com>
1244
1245 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1246 fringe face id, so face-remapping-alist works (Bug#6091).
1247
b56ceb92
JB
12482010-07-06 Juanma Barranquero <lekktu@gmail.com>
1249
1250 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1251 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1252 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1253
7af07b96
AS
12542010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1255
1256 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1257 * lisp.h: Declare x_get_keysym_name.
1258 * keyboard.c (modify_event_symbol): Don't declare
1259 x_get_keysym_name here.
1260
69e24e34
DN
12612010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1262
1263 * ecrt0.c: Revert conversion to standard C.
1264
d3da34e0 12652010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1266
1267 * vm-limit.c (memory_warnings):
1268 * keyboard.c (modify_event_symbol):
1269 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1270 (round2, emacs_rint):
1271 * process.c (send_process, old_sigpipe): Convert function
1272 definitions and declarations to standard C.
1273
12742010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1275
1276 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1277 * xdisp.c: Convert function definitions to standard C.
1278
1279 * cm.c (cmputc): Arg C is now int, not char.
1280 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1281
00be444c
J
12822010-07-05 James Cloos <cloos@jhcloos.com>
1283
1284 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1285
1286 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1287 _NET_WM_ICON_NAME atoms.
1288
1289 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1290 and _NET_WM_ICON_NAME properties, too, matching what is
1291 done in the Gtk+ case.
1292
e4c8d29a
J
12932010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1294
ff919460
J
1295 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1296
e4c8d29a
J
1297 * xsmfns.c (SSDATA): New macro.
1298 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1299 passed to strlen/strcpy/strcat.
1300 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1301 7:th arg to XChangeProperty to (unsigned char *)
1302
1303 * xsettings.c (something_changedCB, parse_settings)
1304 (apply_xft_settings): Reformat prototype.
1305 (something_changedCB, init_gconf): Remove unused variable i.
1306 (read_settings): Remove unused variable long_len.
1307
1308 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1309 (xg_get_image_for_pixmap, create_dialog)
1310 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1311 (menuitem_highlight_callback, make_menu_item)
1312 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1313 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1314 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1315 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1316 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1317 (xg_tool_bar_item_expose_callback): Reformat prototype.
1318 (xg_update_menubar): GList *group => GSList *group.
1319 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1320 before use.
1321 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1322 to GTK_IMAGE (wimage).
1323
dd4c5104
DN
13242010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1325
898b4c5c
DN
1326 * atimer.c: Use "" instead of <> for local includes for
1327 consistency with the rest of the code.
1328
dd4c5104
DN
1329 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1330 * xrdb.c (get_system_name):
1331 * window.c (shrink_windows):
1332 * syntax.c (forw_comment):
1333 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1334 (ins_del_costs):
1335 * mem-limits.h (start_of_data):
1336 * lread.c (readevalloop):
1337 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1338 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1339 * frame.c (x_get_focus_frame):
1340 * floatfns.c (fmod_float):
1341 * fileio.c (choose_write_coding_system):
1342 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1343 (malloc_initialize_hook, sort_args, synchronize_locale):
1344 * doprnt.c (doprnt):
1345 * dired.c (compile_pattern):
1346 * data.c (fmod_float):
1347 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1348 (map_char_table_for_charset):
1349 * charset.c (define_charset_internal):
1350 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1351 to standard C.
1352
9a39b306 13532010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1354 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1355
1356 * lread.c (read1): Fix up last change to not mess up `c'.
1357
e6cb2cbb
JB
13582010-07-04 Juanma Barranquero <lekktu@gmail.com>
1359
1360 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1361
438105ed
JB
13622010-07-04 Juanma Barranquero <lekktu@gmail.com>
1363
1364 Fix prototypes.
1365
e5447b22 1366 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1367 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1368 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1369 arg, as required by internal_condition_case_1.
dcc7404b 1370 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1371 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1372 (analyse_first): Fix "const const".
e5447b22 1373 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1374 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1375 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1376
971de7fb
DN
13772010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1378
1379 * alloc.c: Convert function definitions to standard C.
1380 * atimer.c:
1381 * bidi.c:
1382 * bytecode.c:
1383 * callint.c:
1384 * callproc.c:
1385 * casefiddle.c:
1386 * casetab.c:
1387 * category.c:
1388 * ccl.c:
1389 * character.c:
1390 * charset.c:
1391 * chartab.c:
1392 * cmds.c:
1393 * coding.c:
1394 * composite.c:
1395 * data.c:
1396 * dbusbind.c:
1397 * dired.c:
1398 * dispnew.c:
1399 * doc.c:
1400 * doprnt.c:
1401 * ecrt0.c:
1402 * editfns.c:
1403 * fileio.c:
1404 * filelock.c:
1405 * filemode.c:
1406 * fns.c:
1407 * font.c:
1408 * fontset.c:
1409 * frame.c:
1410 * fringe.c:
1411 * ftfont.c:
1412 * ftxfont.c:
1413 * gtkutil.c:
1414 * indent.c:
1415 * insdel.c:
1416 * intervals.c:
1417 * keymap.c:
1418 * lread.c:
1419 * macros.c:
1420 * marker.c:
1421 * md5.c:
1422 * menu.c:
1423 * minibuf.c:
1424 * prefix-args.c:
1425 * print.c:
1426 * ralloc.c:
1427 * regex.c:
1428 * region-cache.c:
1429 * scroll.c:
1430 * search.c:
1431 * sound.c:
1432 * strftime.c:
1433 * syntax.c:
1434 * sysdep.c:
1435 * termcap.c:
1436 * terminal.c:
1437 * terminfo.c:
1438 * textprop.c:
1439 * tparam.c:
1440 * undo.c:
1441 * unexelf.c:
1442 * window.c:
1443 * xfaces.c:
1444 * xfns.c:
1445 * xfont.c:
1446 * xftfont.c:
1447 * xgselect.c:
1448 * xmenu.c:
1449 * xrdb.c:
1450 * xselect.c:
1451 * xsettings.c:
1452 * xsmfns.c:
1453 * xterm.c: Likewise.
1454
ae492bec
EZ
14552010-07-03 Eli Zaretskii <eliz@gnu.org>
1456
76ea4cc9
EZ
1457 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1458 frames other than the initial one. Fix reversal of colors when
1459 `reverse' is specified in the frame parameters. Call
1460 update_face_from_frame_parameter instead of
1461 internal-set-lisp-face-attribute. Initialize screen colors from
1462 initial_screen_colors[] when f->default_face_done_p is zero,
1463 instead of depending on being called with default-frame-alist as
1464 the alist argument.
1465
1466 * xfaces.c (update_face_from_frame_parameter): Move out of
1467 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1468 with HAVE_WINDOW_SYSTEM.
1469
1e6255ae
EZ
1470 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1471 to menu-bar-mode, if not set in the frame parameters or in
1472 default-frame-alist.
1473
ae492bec
EZ
1474 * w32console.c (sys_tputs): Adjust argument list to prototype in
1475 term.c.
1476
3a35a84c
JB
14772010-07-03 Juanma Barranquero <lekktu@gmail.com>
1478
1479 * lisp.h (memory_warnings): Fix prototype.
1480
1481 * cm.h (evalcost): Fix prototype.
1482
1483 * cm.c (evalcost): Fix arg type.
1484
c532d349
DN
14852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1486
1487 * term.c (term_clear_mouse_face, Fidentity):
1488 * syssignal.h (signal_handler_t):
1489 * lisp.h (memory_warnings):
1490 * coding.h (preferred_coding_system):
1491 * cm.h (evalcost):
1492 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1493
c0b36d46
EZ
14942010-07-02 Eli Zaretskii <eliz@gnu.org>
1495
1496 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1497 from prototypes.
1498
1499 * msdos.h (load_pixmap): Don't define away.
1500
383e0970
J
15012010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1502
f57e2426
J
1503 * lisp.h:
1504 * atimer.h: Remove define for P_.
1505
1506 * alloc.c: Remove __P and P_ from .c and .m files.
1507 * atimer.c:
1508 * buffer.c:
1509 * callint.c:
1510 * category.c:
1511 * charset.c:
1512 * chartab.c:
1513 * cm.c:
1514 * coding.c:
1515 * composite.c:
1516 * data.c:
1517 * dired.c:
1518 * dispnew.c:
1519 * doc.c:
1520 * editfns.c:
1521 * emacs.c:
1522 * eval.c:
1523 * fileio.c:
1524 * filelock.c:
1525 * fns.c:
1526 * font.c:
1527 * fontset.c:
1528 * frame.c:
1529 * ftfont.c:
1530 * ftxfont.c:
1531 * gmalloc.c:
1532 * gtkutil.c:
1533 * image.c:
1534 * indent.c:
1535 * intervals.c:
1536 * keyboard.c:
1537 * keymap.c:
1538 * lread.c:
1539 * marker.c:
1540 * menu.c:
1541 * minibuf.c:
1542 * print.c:
1543 * process.c:
1544 * scroll.c:
1545 * search.c:
1546 * sound.c:
1547 * strftime.c:
1548 * syntax.c:
1549 * sysdep.c:
1550 * term.c:
1551 * terminal.c:
1552 * textprop.c:
1553 * unexalpha.c:
1554 * w32console.c:
1555 * w32fns.c:
1556 * w32font.c:
1557 * w32menu.c:
1558 * w32term.c:
1559 * w32uniscribe.c:
1560 * window.c:
1561 * xdisp.c:
1562 * xfaces.c:
1563 * xfns.c:
1564 * xfont.c:
1565 * xftfont.c:
1566 * xmenu.c:
1567 * xselect.c:
1568 * xterm.c: Likewise.
1569
383e0970 1570 Remove P_ and __P macros.
f57e2426
J
1571 * atimer.h: Remove P_ and __P macros.
1572 * buffer.h:
383e0970
J
1573 * category.h:
1574 * ccl.h:
1575 * character.h:
1576 * charset.h:
1577 * cm.h:
1578 * coding.h:
1579 * composite.h:
1580 * dispextern.h:
1581 * disptab.h:
9e892c8d 1582 * dosfns.h:
383e0970
J
1583 * font.h:
1584 * fontset.h:
1585 * frame.h:
1586 * gtkutil.h:
1587 * indent.h:
1588 * intervals.h:
1589 * keyboard.h:
1590 * keymap.h:
1591 * lisp.h:
1592 * macros.h:
1593 * md5.h:
1594 * menu.h:
1595 * msdos.h:
1596 * nsterm.h:
1597 * puresize.h:
1598 * region-cache.h:
1599 * syntax.h:
1600 * syssignal.h:
1601 * systime.h:
1602 * termhooks.h:
9e892c8d 1603 * w32font.h:
383e0970
J
1604 * w32term.h:
1605 * widget.h:
1606 * window.h:
1607 * xgselect.h:
1608 * xsettings.h:
1609 * xterm.h: Likewise.
1610
98601119
DN
16112010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1612
d9170db5
DN
1613 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1614
98601119
DN
1615 Cleanup old code.
1616 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1617 * syssignal.h: Remove code for Lynx, not supported anymore.
1618 * vm-limit.c: Remove unused code the depends on emacs not being
1619 defined and NO_LIM_DATA being defined.
1620 * mem-limits.h: Remove dead code.
1621
1f984e12
J
16222010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1623
c49d071a
J
1624 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1625
9d5405ec
J
1626 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1627 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1628
7a18115b
J
1629 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1630 parameters, they are already absolute.
1631
a628ad9d
JB
1632 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1633 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1634
a628ad9d 1635 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1636
a628ad9d
JB
1637 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1638 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1639
a628ad9d
JB
1640 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1641 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1642
c1ef4455
CY
16432010-06-30 Chong Yidong <cyd@stupidchicken.com>
1644
1645 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1646 check default-frame-alist.
1647
ce8f5a9a
AS
16482010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1649
1650 * process.c (create_process): Avoid using invalid file descriptors.
1651
1652 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1653
bf935339
J
16542010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1655
1656 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1657 Improve documentation. Return font regardless of use_system_font.
1658 (syms_of_xsettings): Improve documentation for font-use-system-font.
1659
7c33a057
CY
16602010-07-10 Chong Yidong <cyd@stupidchicken.com>
1661
2ec1b5ee
CY
1662 * xfaces.c (realize_face): Garbage the frame if a face is removed
1663 (Bug#6593).
1664
16652010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1666
1667 * keyboard.c: Remove duplicate <setjmp.h>.
1668 (read_key_sequence): Remove volatile qualifiers.
1669
16702010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1671
1672 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1673 (struct glyph_row): New members left_fringe_offset and
1674 right_fringe_offset.
1675
1676 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1677 specially.
1678 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1679 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1680
1681 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1682 Take account of bitmap offset.
2ec1b5ee
CY
1683 (draw_window_fringes): Take account of window vscroll.
1684 (update_window_fringes): Likewise. Extend top-aligned top indicator
1685 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1686 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1687 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1688
16892010-07-04 Juanma Barranquero <lekktu@gmail.com>
1690
1691 * w32fns.c (Qtooltip): Declare.
1692 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1693
16942010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1695
1696 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1697 grab on just Press (Bug#6499).
1698
16992010-07-02 Chong Yidong <cyd@stupidchicken.com>
1700
1701 * frame.c (Qtooltip): New var.
1702 (delete_frame): Use it. Fix faulty if statement. Don't update
1703 mode line for tooltip frames. Suggested by Martin Rudalics.
1704
1705 * xfns.c (x_create_tip_frame):
1706 * w32fns.c (x_create_tip_frame): Use it.
1707
17082010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1709
1710 * xftfont.c (xftfont_open): Check font width one by one also when
1711 spacing is dual.
1712
1713 * ftfont.c (ftfont_open): Ditto.
1714
6259c2ec
GM
17152010-06-30 Glenn Morris <rgm@gnu.org>
1716
a46007e9
GM
1717 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1718
6259c2ec
GM
1719 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1720
1721 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1722 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1723 * s/darwin.h (SYSTEM_MALLOC):
1724 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1725
5d1d3d04
J
17262010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1727
1728 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1729 (ns_get_screen): Don't assign integer to f.
1730 (Fx_display_color_cells): Declarations before statements.
1731
e547b051
J
17322010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1733
5fc8e5bc
J
1734 * xfns.c (x_default_font_parameter): Remove got_from_system
1735 (Bug#6526).
1736
e547b051
J
1737 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1738 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1739 defines based on what configure finds.
1740
1741 * xterm.c (XTflash): Use gtk_widget_get_window.
1742 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1743 gtk_adjustment_get_page_size.
1744 (handle_one_xevent): Use gtk_widget_get_mapped.
1745 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1746 messages.
1747
1748 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1749
1750 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1751 HAVE_GTK_FILE_SELECTION_NEW.
1752
1753 * gtkutil.c (xg_display_open, xg_display_close): Remove
1754 HAVE_GTK_MULTIDISPLAY, it is always defined.
1755 (xg_display_open): Return type is void.
1756 (gtk_widget_set_has_window)
1757 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1758 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1759 (gtk_adjustment_set_page_increment)
1760 (gtk_adjustment_get_step_increment): #define these if not found
1761 by configure.
1762 (remove_submenu): New define based on Gtk+ version.
1763 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1764 gtk_widget_get_window.
1765 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1766 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1767 (create_dialog): Use gtk_dialog_get_action_area and
1768 gtk_dialog_get_content_area.
1769 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1770 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1771 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1772 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1773 g_object_ref and g_object_unref.
1774 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1775 gtk_widget_get_sensitive.
1776 (xg_update_submenu): Use remove_submenu.
1777 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1778 properties instead to get old x and y position.
1779 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1780 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1781 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1782 (xg_get_tool_bar_widgets): New function.
1783 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1784 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1785 (toolbar_set_orientation): New #define based on if configure
1786 finds gtk_orientable_set_orientation.
1787 (xg_create_tool_bar): Call toolbar_set_orientation.
1788 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1789 instead of gtk_box_pack_start_defaults.
1790
b9229673
CY
17912010-06-28 Chong Yidong <cyd@stupidchicken.com>
1792
1793 * cmds.c (Fdelete_backward_char): Move into Lisp.
1794
bbc803b0
DN
17952010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1796
1797 * s/freebsd.h (BSD4_2): Remove redundant definition.
1798 bsd-common.h defines it already.
1799
6431f2e6
CY
18002010-06-27 Chong Yidong <cyd@stupidchicken.com>
1801
1802 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1803 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1804 tool-bar-mode, which are now set using these X resources at
1805 startup, to determine the defaults (Bug#2249).
1806
1807 * w32fns.c (Fx_create_frame):
1808 * nsfns.m (Fx_create_frame): Likewise.
1809
1810 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1811
8c079ebb
JB
18122010-06-24 Juanma Barranquero <lekktu@gmail.com>
1813
1814 * gtkutil.c (xg_update_scrollbar_pos):
1815 Avoid C99 mid-block variable declaration.
1816
e9b7ab96
JD
18172010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1818
bc869eca
JD
1819 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1820
2b7e356a 1821 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1822
1823 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1824 if height is less than scroll bar min size.
1825 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1826
e9b7ab96
JD
1827 * xfns.c (x_default_font_parameter): Try to open font from system
1828 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1829
a628ad9d 18302010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1831
1832 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1833
70c4cfbb
EZ
18342010-06-20 Eli Zaretskii <eliz@gnu.org>
1835
1836 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1837 most-positive-fixnum, be extra accurate when scrolling window
1838 start, to avoid missing the cursor line.
1839
ad5a12b5
EZ
18402010-06-19 Eli Zaretskii <eliz@gnu.org>
1841
1842 * xdisp.c (try_scrolling): Compute the limit for searching point
1843 in forward scroll from scroll_max, instead of an arbitrary limit
1844 of 10 screen lines. See
1845 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1846 and
1847 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1848 for details.
1849
2a64315a 18502010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1851
1852 * editfns.c (Fbyte_to_string): Pacify compiler.
1853
288cf4e9
SM
18542010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1855
1856 * lread.c (read1): Phase out old-style backquotes a bit more.
1857
6e6e5760
EZ
18582010-06-12 Eli Zaretskii <eliz@gnu.org>
1859
cbc4fd20
EZ
1860 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1861 bidimirror.h.
1862
1863 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1864
317fbf33
EZ
1865 * bidi.c (bidi_initialize): Remove explicit initialization of
1866 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1867 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1868 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1869
1870 * biditype.h: New file.
1871
cbc4fd20
EZ
1872 * bidimirror.h: New file.
1873
6e6e5760
EZ
1874 * window.c (syms_of_window): Doc fix (bug#6409).
1875
4176cba2
RF
18762010-06-12 Romain Francoise <romain@orebokech.com>
1877
1878 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1879 ediff-hook.
1880
cb4bfcb5
GM
18812010-06-10 Glenn Morris <rgm@gnu.org>
1882
64c60c2f
GM
1883 * editfns.c (Fbyte_to_string): Pacify compiler.
1884
cb4bfcb5
GM
1885 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1886
2ec1b5ee
CY
18872010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1888
1889 * alloc.c (Fmake_byte_code): Don't access undefined argument
1890 (Bug#6517).
1891
18922010-06-25 Chong Yidong <cyd@stupidchicken.com>
1893
1894 * xdisp.c (next_element_from_image): Ensure that after-strings are
1895 read the next time we hit handle_stop (Bug#1336).
1896
18972010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1898
1899 * lread.c (read1): Signal error if #s is not followed by paren.
1900
19012010-06-19 Chong Yidong <cyd@stupidchicken.com>
1902
1903 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1904
1905 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1906
19072010-06-15 Glenn Morris <rgm@gnu.org>
1908
1909 * editfns.c (Fbyte_to_string): Pacify compiler.
1910
e454a4a3
SM
19112010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1912
1913 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1914 Check `object's type before accessing its guts.
1915
c1b1acc2
DN
19162010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1917
1918 * s/usg5-4.h: Fix previous change.
1919 Suggested by Lawrence Mitchell <wence@gmx.li>
1920
657d4c0b
AS
19212010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1922
1923 * minibuf.c (Fall_completions): Add more checks.
1924
9b27fd9f
JB
19252010-06-08 Juanma Barranquero <lekktu@gmail.com>
1926
1927 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1928
a99ebb40
DN
19292010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1930
d7c5d87d
DN
1931 * lread.c (X_OK): Remove, unused.
1932
0263a941
DN
1933 * dispnew.c: Remove obsolete comment.
1934
a99ebb40
DN
1935 Remove INCLUDED_FCNTL.
1936 * xterm.c (INCLUDED_FCNTL):
1937 * callproc.c (INCLUDED_FCNTL):
1938 * alloc.c (INCLUDED_FCNTL):
1939 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1940 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1941
13b5221f
MR
19422010-06-07 Martin Rudalics <rudalics@gmx.at>
1943
1944 * window.c (Fselect_window): Move `record_buffer' up to the
1945 beginning of this function, so the buffer gets recorded
1946 even if the selected window does not change.
1947 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1948
5220357f
JB
19492010-06-07 Juanma Barranquero <lekktu@gmail.com>
1950
1951 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1952 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1953
3085237c
DN
19542010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1955
1956 Remove BSTRING related code, all platforms define it.
1957 * s/usg5-4.h (BSTRING): Remove definition.
1958 * s/template.h (BSTRING):
1959 * s/msdos.h (BSTRING):
1960 * s/ms-w32.h (BSTRING):
1961 * s/hpux10-20.h (BSTRING):
1962 * s/gnu-linux.h (BSTRING):
1963 * s/darwin.h (BSTRING):
1964 * s/cygwin.h (BSTRING):
1965 * s/bsd-common.h (BSTRING):
1966 * s/aix4-2.h (BSTRING): Likewise.
1967 * sysdep.c: Remove code depending on BSTRING not being defined.
1968
409f2919
JB
19692010-06-05 Juanma Barranquero <lekktu@gmail.com>
1970
1971 Remove obsolete macro BASE_LEADING_CODE_P.
1972 * character.h (BASE_LEADING_CODE_P): Remove.
1973 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1974 * buffer.c (Fset_buffer_multibyte):
1975 * indent.c (scan_for_column, compute_motion):
1976 * insdel.c (count_combining_before, count_combining_after):
1977 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1978
087fc47a
JB
19792010-06-04 Juanma Barranquero <lekktu@gmail.com>
1980
1981 Turn `directory-sep-char' into a noop.
1982
1983 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1984 (DIRECTORY_SEP): Define unconditionally.
1985
1986 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1987
1988 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1989 call dostounix_filename directly.
1990
1991 * fileio.c (CORRECT_DIR_SEPS): Remove.
1992 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1993 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1994 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1995 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1996
1997 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1998 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1999
0eb7675e
AS
20002010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2001
a628ad9d
JB
2002 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2003 (Bug#6346)
0eb7675e 2004
78edd3b7
JB
20052010-06-03 Juanma Barranquero <lekktu@gmail.com>
2006
2007 * ccl.c (Fccl_program_p): Fix typo in docstring.
2008
eb697db5
DN
20092010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2010
2011 Move UNEXEC definition to autoconf.
2012 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2013 * s/sol2-10.h (UNEXEC):
2014 * s/irix6-5.h (UNEXEC):
2015 * s/hpux10-20.h (UNEXEC):
2016 * s/gnu-linux.h (UNEXEC):
2017 * s/darwin.h (UNEXEC):
2018 * s/cygwin.h (UNEXEC):
2019 * s/bsd-common.h (UNEXEC):
2020 * s/aix4-2.h (UNEXEC):
2021 * m/alpha.h (UNEXEC): Likewise.
2022 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2023
aa3830c4
JB
20242010-06-03 Juanma Barranquero <lekktu@gmail.com>
2025
2026 Remove obsolete pre-unicode2 macros.
2027 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2028 * composite.c (composition_reseat_it):
2029 * data.c (Faset):
2030 * fns.c (Ffillarray):
2031 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2032 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2033
d234d13e
JL
20342010-06-03 Juri Linkov <juri@jurta.org>
2035
2036 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2037 (Fswitch_to_buffer): Remove unused variable `err'.
2038
0d4bcf4d
GM
20392010-06-03 Glenn Morris <rgm@gnu.org>
2040
e23dc1e2
GM
2041 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2042
05b09564
GM
2043 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2044 now that AH_BOTTOM does it.
2045
824e2978
GM
2046 * m/hp800.h (HAVE_ALLOCA):
2047 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2048
0d4bcf4d
GM
2049 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2050 Remove NOT_C_CODE tests, it is always true now.
2051
c55d2abf
DN
20522010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2053
08a494a3
DN
2054 Fix config.h includes.
2055 * xsettings.c:
2056 * xgselect.c:
2057 * nsterm.m:
2058 * nsselect.m:
2059 * nsimage.m:
2060 * nsfont.m:
2061 * nsfns.m:
2062 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2063 other files do.
2064
75934b1d
DN
2065 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2066
9f32a766
DN
2067 * s/sol2-6.h: Remove obsolete comments.
2068
c55d2abf
DN
2069 Remove unnecessary alloca.h includes.
2070 * keymap.c: Do not include alloca.h, config.h does that.
2071 * sysdep.c: Likewise. Do not define fwrite, not used.
2072
06ac62b4
SM
20732010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2074
2075 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2076 the HAVE_TERMIO where it belongs (bug#6149).
2077
1ab8293c
SM
20782010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2079
2080 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2081 of bug#6305).
2082
6dcfd253
EZ
20832010-05-30 Eli Zaretskii <eliz@gnu.org>
2084
2085 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2086 state is always cached (bug#6306).
2087
6d26bbb2
EZ
20882010-05-29 Eli Zaretskii <eliz@gnu.org>
2089
06fa4a23
EZ
2090 Fix cursor motion in bidi-reordered continued lines.
2091 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2092 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2093 over continuation lines in bidi-reordered buffers. Return
2094 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2095 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2096
f5783df3
MA
20972010-05-28 Michael Albinus <michael.albinus@gmx.de>
2098
2099 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2100
7d56b2dd
KH
21012010-05-28 Kenichi Handa <handa@m17n.org>
2102
2103 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2104 Don't sheck SPEC if it is nil.
2105 (font_list_entities): Call font_delete_unmatched if
b925d231 2106 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2107
e58d4ff7
GM
21082010-05-28 Glenn Morris <rgm@gnu.org>
2109
2110 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2111
f1a5d776
CY
21122010-05-27 Chong Yidong <cyd@stupidchicken.com>
2113
2114 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2115 whether to trash.
2116 (internal_delete_file, Frename_file): Callers changed.
2117 (delete_by_moving_to_trash): Doc fix.
2118 (Fdelete_directory_internal): Don't move to trash.
2119
2120 * callproc.c (delete_temp_file):
2121 * buffer.c (Fkill_buffer): Callers changed.
2122
2123 * lisp.h: Update prototype.
2124
f44a59e6
CY
21252010-05-27 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * xdisp.c (redisplay_window): After redisplay, check if point is
2128 still valid before setting it (Bug#6177).
2129
81ac4f35
GM
21302010-05-27 Glenn Morris <rgm@gnu.org>
2131
2132 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2133 Convert comments to Makefile format.
2134
2135 * Makefile.in (bootstrap-clean): No more Makefile.c.
2136
ccd89fb3
GM
21372010-05-26 Glenn Morris <rgm@gnu.org>
2138
90278cb6
GM
2139 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2140 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2141
ccd89fb3
GM
2142 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2143 Remove.
2144 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2145
b7050583
KH
21462010-05-26 Kenichi Handa <handa@m17n.org>
2147
2148 * composite.c (composition_compute_stop_pos): Fix condition for
2149 backward scanning.
2150
e5458003
GM
21512010-05-25 Glenn Morris <rgm@gnu.org>
2152
c345fe90
GM
2153 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2154 Move before TEMACS_LDFLAGS.
2155 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2156 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2157
2e0689ab
GM
2158 * Makefile.in (NOT_C_CODE): No longer define.
2159 (config.h): No longer include.
2160
8009a5e8
GM
2161 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2162 variables it may reference.
2163
e5458003
GM
2164 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2165 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2166
10f72a37
KH
21672010-05-25 Kenichi Handa <handa@m17n.org>
2168
2169 * dispextern.h (struct composition_it): New members rule_idx and
2170 charpos.
2171
2172 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2173 that the character positions of IT point the last character of the
2174 current grapheme cluster.
2175 (next_element_from_composition): Don't change character positions
2176 of IT.
2177 (append_composite_glyph): Set glyph->charpos to
2178 it->cmp_it.charpos.
2179
2180 * composite.c (autocmp_chars): Change the first argument to RULE,
2181 and try composition with RULE only.
2182 (composition_compute_stop_pos): Record the index number of the
2183 composition rule in CMP_IT->rule_idx.
2184 (composition_reseat_it): Call autocmp_chars repeatedly until the
2185 correct rule of the composition is found.
2186 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2187 is at the last character of the current grapheme cluster when
2188 CMP_IT->reversed_p is nonzero.
2189
171eda53 21902010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2191
171eda53
SM
2192 * editfns.c (Fbyte_to_string): New function.
2193
66a9f7f4
SM
21942010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2197 Suggested by Masatake YAMATO <yamato@redhat.com>.
2198
d8c315d1
EZ
21992010-05-23 Eli Zaretskii <eliz@gnu.org>
2200
171eda53 2201 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2202
f5b416d2 22032010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2204
2205 * s/netbsd.h: If terminfo is found, use it in preference to
2206 termcap. (Bug#6190) [Backport from trunk]
2207
0416466c
EZ
22082010-05-19 Eli Zaretskii <eliz@gnu.org>
2209
11117830 2210 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2211
2212 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2213 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2214 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2215 and maxpos members instead of start.pos and end.pos, respectively.
2216
2217 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2218 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2219 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2220 (try_window_reusing_current_matrix, try_window_id):
2221 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2222 (init_from_display_pos, init_iterator): Use EMACS_INT for
2223 character and byte positions.
66a9f7f4 2224 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2225 arguments for minimum and maximum buffer positions seen by
2226 display_line for this row. Don't use iterator to find the
2227 position following the maximum one; instead, increment the
11117830
EZ
2228 position found by display_line directly. Fix logic; eol_pos
2229 should be tested before the rest. Handle the case of characters
2230 delivered from display vector (bug#6036). Fix tests related to
2231 it->method. Handle the truncated_on_right_p rows.
2232 (RECORD_MAX_MIN_POS): New macro.
2233 (display_line): Use it to record the minimum and maximum buffer
2234 positions for glyphs in the row being assembled. Record the
2235 position of the newline that terminates the line. If word wrap is
2236 in effect, restore minimum and maximum positions seen up to the
2237 wrap point, when iterator returns to it.
2238 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2239 row and cursor not already at point. Restore original pre-bidi
2240 code for unidirectional buffers.
d36fe237
EZ
2241
2242 * dispnew.c (increment_row_positions, check_matrix_invariants):
2243 Increment and check row->start.pos and row->end.pos, in addition
2244 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2245
11117830
EZ
2246 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2247 Display truncated_on_left_p and truncated_on_right_p flags.
2248 Formatting fixes.
2249 (pmtxrows): Display the ordinal number of each row. Don't display
2250 rows beyond the last one.
2251
2252 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2253 it is not copied by bidi_copy_it.
2254
6e83d800
EZ
22552010-05-22 Eli Zaretskii <eliz@gnu.org>
2256
2257 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2258 (Bug#6237)
2259
110683ad
CY
22602010-05-22 Chong Yidong <cyd@stupidchicken.com>
2261
2262 * image.c (Fimage_flush): Rename from image-refresh.
2263
98fe5161
CY
22642010-05-21 Chong Yidong <cyd@stupidchicken.com>
2265
2266 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2267 just one window.
2268
2269 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2270 (clear_image_cache): If the number of cached images is unusually
2271 large, decrease the cache eviction delay (Bug#6230).
2272
e8752c66
GM
22732010-05-21 Glenn Morris <rgm@gnu.org>
2274
66dbf213
GM
2275 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2276 Move these rules to ns.mk.
2277 * ns.mk: New file.
2278
04384b2d
GM
2279 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2280
e8752c66
GM
2281 * Makefile.in (CANNOT_DUMP): New, set by configure.
2282 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2283
2e2bbddb
JL
22842010-05-20 Juri Linkov <juri@jurta.org>
2285
2286 * fileio.c (Fdelete_file): Change interative spec to use
2287 `read-file-name' like in `find-file-read-args' where the default
2288 value is `default-directory' instead of `buffer-file-name'.
2289 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2290
31c4aaf6
KR
22912010-05-20 Kevin Ryde <user42@zip.com.au>
2292
2293 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2294 (Voverriding_terminal_local_map, Vsystem_key_alist)
2295 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2296
9d5cf9b6
GM
22972010-05-20 Glenn Morris <rgm@gnu.org>
2298
2299 * Makefile.in (DEPDIR): New constant.
2300 (DEPFLAGS): Set with configure, not cpp.
2301 (MKDEPDIR): New, set by configure.
2302 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2303 (clean): Use $DEPDIR.
2304 (deps_frag): Include from configure.
2305 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2306 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2307
ead6f8f5
EZ
2308 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2309 reallocation of the cache. (Bug#6210)
2310
7f34aec3
GM
23112010-05-19 Glenn Morris <rgm@gnu.org>
2312
d494e8f2
GM
2313 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2314
c1d0dcfd
GM
2315 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2316 (GNULIB_VAR): Remove.
2317 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2318
2319 * m/ibms390x.h (LINKER):
2320 * m/macppc.h (LINKER) [GNU_LINUX]:
2321 * s/aix4-2.h (ORDINARY_LINK):
2322 * s/cygwin.h (LINKER):
2323 * s/darwin.h (ORDINARY_LINK):
2324 * s/gnu.h (ORDINARY_LINK):
2325 * s/netbsd.h (LINKER):
2326 * s/usg5-4.h (ORDINARY_LINK):
2327 Move to configure.
2328
7f34aec3
GM
2329 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2330
754790b6
CY
23312010-05-18 Chong Yidong <cyd@stupidchicken.com>
2332
2333 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2334 prevent stack overflow if number of arguments is too large
2335 (Bug#6214).
2336
161e44d1
JB
23372010-05-18 Juanma Barranquero <lekktu@gmail.com>
2338
2339 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2340
be4ff9da
GM
23412010-05-18 Glenn Morris <rgm@gnu.org>
2342
9539dc5d
GM
2343 * s/gnu-linux.h: Combine two conditionals.
2344
2345 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2346 $(POST_ALLOC_OBJ).
2347
40dc6bf4
GM
2348 * Makefile.in (RALLOC_OBJ): New, set by configure.
2349 (rallocobj): Replace with the previous variable.
2350 (otherobj): Use $RALLOC_OBJ.
2351
2352 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2353 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2354
be4ff9da
GM
2355 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2356 (gmallocobj, vmlimitobj): Replace with previous two variables.
2357 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2358
16455a85
GM
23592010-05-17 Glenn Morris <rgm@gnu.org>
2360
2361 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2362 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2363
5fdb7468
GM
23642010-05-16 Glenn Morris <rgm@gnu.org>
2365
7ca1f3f9
GM
2366 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2367
7541dad5
GM
2368 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2369
da53fab9
GM
2370 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2371 trailing "/".
2372
b02a6645
GM
2373 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2374 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2375
8877ca0f
GM
2376 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2377 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2378 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2379 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2380 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2381
5fdb7468
GM
2382 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2383 Remove ${STARTFLAGS}, nothing ever sets it.
2384
95adb4b1
DN
23852010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2386
2387 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2388
676b6304
GM
23892010-05-16 Glenn Morris <rgm@gnu.org>
2390
9beab9ce
GM
2391 * Makefile.in (LIBX_BASE): Always define.
2392
8a95f0e7
GM
2393 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2394
676b6304
GM
2395 * Makefile.in (LIBXT): Always define.
2396
6e546d18
GM
23972010-05-15 Glenn Morris <rgm@gnu.org>
2398
4235ca47 2399 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2400
6e546d18
GM
2401 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2402 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2403
8c5ff6dd
KR
24042010-05-15 Ken Raeburn <raeburn@raeburn.org>
2405
560bb7ae 2406 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2407 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2408
8b4eb796
KR
2409 * emacs.c (main): Initialize initial-environment and
2410 process-environment before generating from env, not after.
2411
8c5ff6dd
KR
2412 Handle --version reasonably in CANNOT_DUMP configuration.
2413 * emacs.c (emacs_version, emacs_copyright): New string variables.
2414 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2415 (syms_of_emacs): Defvar them, and initialize them from the C
2416 string variables.
2417 (main): If initialization hasn't been done, print initial version
2418 info from the C strings, instead of starting an interactive session.
2419
dbd3f723
EZ
24202010-05-15 Eli Zaretskii <eliz@gnu.org>
2421
d20e1419
EZ
2422 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2423 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2424 (bidi_paragraph_init): Remove redundant assertion that we are at
2425 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2426
2427 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2428 (syms_of_xdisp): Defsubr it.
2429
d36fe237
EZ
2430 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2431
dbd3f723
EZ
2432 * Makefile.in: Fix MSDOS-related comments.
2433
02be533b
GM
24342010-05-15 Glenn Morris <rgm@gnu.org>
2435
1a82cca9
GM
2436 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2437 (really-lwlib, really-oldXMenu): Always define.
2438 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2439
3df7b338
GM
2440 * Makefile.in: Simplify cpp conditional.
2441
2b5f541b
GM
2442 * Makefile.in (${ns_appdir}): Simplify using umask.
2443
02be533b
GM
2444 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2445
4e2db1fe
SM
24462010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2447
2448 * eval.c (specbind): Remove left-over duplicate test.
2449 Disallow let-binding frame-local vars. Add comment.
2450
4b292a22
EZ
24512010-05-14 Eli Zaretskii <eliz@gnu.org>
2452
2fe72643 2453 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2454 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2455 (bidi_init_it): Call it.
2456 (bidi_cache_iterator_state): Enlarge the cache if needed.
2457
4e2db1fe 2458 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2459 bidi_get_next_char_visually. All callers changed.
2460
82ebc97b
KH
24612010-05-14 Kenichi Handa <handa@m17n.org>
2462
2463 * dispextern.h (struct composition_it): New member reversed_p.
2464
2465 * composite.c (composition_compute_stop_pos): Search backward if
2466 ENDPOS < CHARPOS.
2467 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2468 Set CMP_IT->reversed_p.
b4b6e17e 2469 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2470
4e2db1fe
SM
2471 * xdisp.c (set_iterator_to_next):
2472 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2473 scanning backward. Call composition_compute_stop_pos if scan
2474 direction is changed.
2475 (next_element_from_buffer): Call composition_compute_stop_pos with
2476 negative ENDPOS if we are scanning backward.
2477 (next_element_from_composition): Pay attention to
2478 IT->cmp_it.reversed_p.
2479
0e5d7800
KH
24802010-05-14 Kenichi Handa <handa@m17n.org>
2481
560bb7ae 2482 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2483
cb027b32
GM
24842010-05-14 Glenn Morris <rgm@gnu.org>
2485
177b0288
GM
2486 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2487
fbc00890
GM
2488 * Makefile.in (mktime, X11, register): Move undefs to configure.
2489
f14d1dfd
GM
2490 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2491 (MSDOS_X_OBJ): New variable.
2492 (MSDOS_SUPPORT_REAL): New constant.
2493 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2494 (obj): Use MSDOS_X_OBJ.
2495 (lisp): Use MSDOS_SUPPORT as a variable.
2496
11842bd8
GM
2497 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2498 (GPM_MOUSE_SUPPORT): Now it's a constant.
2499 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2500 not cpp.
2501
489d31a4 2502 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2503 (ns_appresdir): Remove, unused.
e20f1f07 2504
489d31a4
GM
2505 * Makefile.in (SHELL): Move outside cpp section.
2506
cb027b32
GM
2507 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2508
5a903aa9
GM
25092010-05-13 Glenn Morris <rgm@gnu.org>
2510
3369c79f
GM
2511 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2512 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2513
d5e982a6
GM
2514 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2515 HAVE_WINDOW_SYSTEM must be too.
2516
6192e163
GM
2517 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2518 (lisp): Remove WINNT_SUPPORT.
2519
472c5d6b
GM
2520 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2521 Let configure set these variables (to empty) in this case as well.
2522
0116466b
GM
2523 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2524 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2525
5a903aa9
GM
2526 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2527 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2528 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2529 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2530 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2531 the values output by configure.
5a903aa9
GM
2532 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2533
1a0d7c06
GM
25342010-05-12 Glenn Morris <rgm@gnu.org>
2535
b5457f14
GM
2536 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2537 (LINKER_WAS_SPECIFIED): Remove.
2538
1a0d7c06
GM
2539 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2540 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2541 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2542 * s/cygwin.h (LIB_GCC):
2543 * s/freebsd.h (LIB_GCC):
2544 * s/gnu-linux.h (LIB_GCC):
2545 * s/msdos.h (LIB_GCC):
2546 * s/netbsd.h (LIB_GCC):
2547 Move to configure.
2548
3ffd4615 25492010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2550
2551 * ftfont.c: Fix incorrect parentheses of #if condition for
2552 definining M17N_FLT_USE_NEW_FEATURE.
2553
acddf8ae
GM
25542010-05-11 Glenn Morris <rgm@gnu.org>
2555
2556 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2557 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2558
ae5e04fa
EZ
25592010-05-10 Eli Zaretskii <eliz@gnu.org>
2560
2561 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2562 unibyte buffers. See
2563 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2564
7490175b
GM
25652010-05-10 Glenn Morris <rgm@gnu.org>
2566
97efb629
GM
2567 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2568 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2569 (LIBES): Use LIBS_SYSTEM as a variable.
2570 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2571 * s/aix4-2.h (LIBS_SYSTEM):
2572 * s/freebsd.h (LIBS_SYSTEM):
2573 * s/hpux10-20.h (LIBS_SYSTEM):
2574 * s/sol2-6.h (LIBS_SYSTEM):
2575 * s/unixware.h (LIBS_SYSTEM):
2576 Move to configure.
2577
7490175b
GM
2578 * s/aix4-2.h (MAIL_USE_LOCKF):
2579 * s/bsd-common.h (MAIL_USE_FLOCK):
2580 * s/darwin.h (MAIL_USE_FLOCK):
2581 * s/gnu-linux.h (MAIL_USE_FLOCK):
2582 * s/irix6-5.h (MAIL_USE_FLOCK):
2583 * s/template.h (MAIL_USE_FLOCK):
2584 Move to configure.
2585
0235128c 25862010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2587
2588 * Version 23.2 released.
2589
0235128c 25902010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2591
2592 * composite.c (autocmp_chars): Save point as marker before calling
2593 auto-composition-function (Bug#5984).
2594
2595 * lisp.h (restore_point_unwind): Add prototype.
2596
2597 * fileio.c (restore_point_unwind): Remove static attribute.
2598
0235128c 25992010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2600
2601 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2602 new feature of libotf and m17n-flt.
0235128c
SM
2603 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2604 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2605 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2606 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2607 that OUT is NULL. Use OTF_drive_gsub_with_log and
2608 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2609 OTF_drive_gpos.
2610 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2611 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2612 Setup mflt_enable_new_feature and mflt_try_otf.
2613
4721152c
J
26142010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2615
2616 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2617
2618 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2619 box and toolbar (Bug #6139).
2620 (xg_create_tool_bar): Remove comment (Bug #6139).
2621 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2622 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2623
ee0a16cf
JB
26242010-05-08 Juanma Barranquero <lekktu@gmail.com>
2625
2626 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2627 Update dependencies.
2628
96d79611
EZ
26292010-05-08 Eli Zaretskii <eliz@gnu.org>
2630
2631 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2632 R2L lines.
2633
40c17879
GM
26342010-05-08 Glenn Morris <rgm@gnu.org>
2635
7b42b29f
GM
2636 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2637
40c17879
GM
2638 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2639 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2640 (termcapobj): Replace with TERMCAP_OBJ.
2641 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2642 (LIBES): Use LIBS_TERMCAP as a variable.
2643
2644 * s/freebsd.h (osreldate.h): No longer include, since this file
2645 does not use __FreeBSD_version any more.
2646
2647 * s/aix4-2.h (TERMINFO):
2648 * s/cygwin.h (TERMINFO):
2649 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2650 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2651 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2652 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2653 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2654 * s/irix6-5.h (TERMINFO):
2655 * s/netbsd.h (LIBS_TERMCAP):
2656 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2657 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2658 * s/usg5-4.h (TERMINFO):
2659 Move to configure.
2660
94b612ad
SM
26612010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2662
2663 * eval.c (unbind_to): Don't unbind a local binding into the global
2664 binding when the local binding disappeared. Inversely, don't unbind
2665 a global binding into a newly created local binding.
2666 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2667 can specify the frame to use, when applicable. Adjust callers.
2668
15e12598 26692010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2670 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2671
2672 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2673
f724825e
EZ
26742010-05-07 Eli Zaretskii <eliz@gnu.org>
2675
5cba3209
EZ
2676 * w32fns.c: Include w32.h.
2677 (Fw32_shell_execute): Decode the error message before passing it
2678 to `error'. (Bug#6126)
2679
d16bdfc3
EZ
2680 * msdos.c (dos_set_window_size):
2681 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2682 instead of `XSYMBOL (foo)->value'.
2683
59d93e87
EZ
26842010-05-07 Eli Zaretskii <eliz@gnu.org>
2685
9fdec8bc
EZ
2686 Fix the MS-DOS build, broken by autoconfiscation.
2687
2688 * Makefile.in: Don't use Make-style comments past the "start of
2689 cpp stuff" line.
2690 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2691
2692 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2693 edited directly by msdos/sed1v2.inp).
f724825e 2694
2f86b22b
GM
26952010-05-07 Glenn Morris <rgm@gnu.org>
2696
2697 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2698 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2699 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2700 move out of cpp section.
2701 * s/freebsd.h (LD_SWITCH_SYSTEM):
2702 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2703 * s/netbsd.h (LD_SWITCH_SYSTEM):
2704 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2705
49ebbd65
DN
27062010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2707
2708 Define LIB_STANDARD and START_FILES using autoconf.
2709 * s/usg5-4.h (LIB_STANDARD):
2710 * s/netbsd.h (START_FILES):
2711 * s/irix6-5.h (LIB_STANDARD):
2712 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2713 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2714 * s/freebsd.h (START_FILES):
2715 * s/darwin.h (START_FILES):
2716 * s/cygwin.h (START_FILES):
2717 * s/aix4-2.h (LIB_STANDARD):
2718 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2719 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2720 autoconf, not cpp.
2721
d43c06d6
DN
27222010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2723
28823648
DN
2724 Remove NEED_BSDTTY and NEED_UNISTD_H.
2725 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2726 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2727 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2728 <sys/ptyio.h> and <unistd.h>.
2729
aca00430
DN
2730 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2731
d43c06d6
DN
2732 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2733 * s/gnu.h (START_FILES): Remove empty definition.
2734
3e56b11d
JD
27352010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2736
2737 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2738
e3cf0cde
GM
27392010-05-06 Glenn Morris <rgm@gnu.org>
2740
2741 * Makefile.in (CPP, LN_S): Remove unused variables.
2742
774b9a60
SM
27432010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2744
2745 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2746
4ab92842
LM
27472010-05-05 Lawrence Mitchell <wence@gmx.li>
2748
2749 * m/sparc.h: Fix typo in earlier change.
2750
178f2507
SM
27512010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2752
2753 Misc tweaks.
2754 * eval.c (Fdefvaralias): Remove unintended nested if.
2755 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2756
80f00217 27572010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2758
2759 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2760
ef03a4e6
DN
27612010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2762
58eb6cf0
DN
2763 Remove BSD_PGRPS.
2764 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2765 * s/gnu-linux.h (BSD_PGRPS): Remove.
2766 * term.c (dissociate_if_controlling_tty):
2767 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2768 (init_sys_modes, reset_sys_modes):
2769 * emacs.c (main):
2770 * callproc.c (Fcall_process, child_setup): Remove code depending
2771 on BSD_PGRPS.
2772
ef03a4e6
DN
2773 Remove POSIX_SIGNALS.
2774 * s/usg5-4.h (POSIX_SIGNALS):
2775 * s/netbsd.h (POSIX_SIGNALS):
2776 * s/msdos.h (POSIX_SIGNALS):
2777 * s/ms-w32.h (POSIX_SIGNALS):
2778 * s/hpux11.h (POSIX_SIGNALS):
2779 * s/gnu.h (POSIX_SIGNALS):
2780 * s/gnu-linux.h (POSIX_SIGNALS):
2781 * s/freebsd.h (POSIX_SIGNALS):
2782 * s/darwin.h (POSIX_SIGNALS):
2783 * s/cygwin.h (POSIX_SIGNALS):
2784 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2785 * s/unixware.h:
2786 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2787 * process.c (create_process):
2788 * syssignal.h:
2789 * sysdep.c (wait_for_termination, init_signals):
2790 * process.c (create_process):
2791 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2792 remove all code that assumes the contrary.
2793
49628785
GM
27942010-05-04 Glenn Morris <rgm@gnu.org>
2795
27a2cdfc
GM
2796 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2797 variable.
2798 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2799 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2800 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2801 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2802 LD_SWITCH_SYSTEM_tmp.
2803 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2804 New variables, set by configure.
2805
eb21eab5
GM
2806 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2807 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2808 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2809 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2810 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2811
49628785
GM
2812 * s/aix4-2.h (C_SWITCH_SYSTEM):
2813 * m/alpha.h (C_SWITCH_MACHINE):
2814 Move to configure.in.
2815 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2816 New variables, set by configure.
2817 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2818 $c_switch_machine and $c_switch_system.
2819
7dff330b
DN
28202010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2821
2822 * s/hpux10-20.h (LIB_STANDARD): New definition.
2823 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2824 on it, not used anymore.
2825
53967e09
CY
28262010-05-03 Chong Yidong <cyd@stupidchicken.com>
2827
2828 * eval.c (internal_condition_case_n): Rename from
2829 internal_condition_case_2.
2830 (internal_condition_case_2): New function.
2831
2832 * xdisp.c (safe_call): Use internal_condition_case_n.
2833
2834 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2835 (internal_delete_file, Frename_file): Callers changed.
2836
2837 * buffer.c (Fkill_buffer):
2838 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2839
2840 * lisp.h: Update prototypes.
2841
3dee6fdb
GM
28422010-05-03 Glenn Morris <rgm@gnu.org>
2843
2844 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2845 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2846 (LIBXT): Set with configure, not cpp.
2847 (LIBX): Remove.
2848 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2849
a101e0fb
DN
28502010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2851
2852 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2853 The FreeBSD is not needed, the default works, Solaris version is
2854 not needed, and the remaining case is not supported by configure.
2855
f63d0028
JD
28562010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2857
2858 * xsmfns.c (CHDIR_OPT): New define.
2859 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2860 restarting emacs.
2861
2862 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2863 shut_down_emacs.
2864
2865 * emacs.c (USAGE1): Mention --chdir.
2866 (main): Handle --chdir.
2867 (standard_args): Add --chdir.
2868 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2869 #5552).
2870
e4814a9f
DN
28712010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2872
cd03c74a
DN
2873 Remove LD_SWITCH_MACHINE.
2874 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2875 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2876
c3a398a1
DN
2877 Clean up IRIX code.
2878 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2879 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2880
87e7285c
DN
2881 Clean up AIX code.
2882 * m/ibmrs6000.inp: Remove file, unused.
2883 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2884 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2885 definition ...
2886 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2887
80f00217
JB
2888 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2889 unused.
e4814a9f 2890
59ca28de
EZ
28912010-05-01 Eli Zaretskii <eliz@gnu.org>
2892
197daef4
EZ
2893 Emulate POSIX_SIGNALS on MS-Windows.
2894
2895 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2896 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2897
2898 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2899 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2900 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2901
80f00217
JB
2902 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2903 New stubs.
197daef4 2904
af7c7572
EZ
2905 Miscellaneous fixes of bidi display.
2906
59ca28de
EZ
2907 * xdisp.c (find_row_end): New function, refactored from display_line.
2908 (display_line): Use it.
017ea819
EZ
2909 (extend_face_to_end_of_line): In almost-filled rows, extend only
2910 if the row is R2L and not continued.
166e930d 2911 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2912 Preserve overlay and string info in row->end.
166e930d
EZ
2913 (insert_left_trunc_glyphs): Support addition of left truncation
2914 glyphs to R2L rows.
b47e0dcf 2915 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2916 glyph between adjacent windows. Fix a crash when a display string
2917 is continued to the next line. Don't return zero if cursor was
2918 found by `cursor' property of a display string.
b47e0dcf
EZ
2919 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2920 test for that explicitly.
59ca28de 2921
7acac9f4
GM
29222010-05-01 Glenn Morris <rgm@gnu.org>
2923
2924 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2925 for clarity.
2926 (OTHER_OBJ): Remove.
2927 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2928 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2929
45841e65
KK
29302010-05-01 Karel Klíč <kklic@redhat.com>
2931
2932 * fileio.c (Ffile_selinux_context): Context functions may return null.
2933
afc61943
DN
29342010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2935
80f00217 2936 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2937
5a1bb006
GM
29382010-04-30 Glenn Morris <rgm@gnu.org>
2939
2940 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2941 (OTHER_OBJ): Define as a separate variable, for clarity.
2942
210af043
J
29432010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2944
2945 * xsettings.c: include limits.h and update file comment.
2946
0a7df391
GM
29472010-04-30 Glenn Morris <rgm@gnu.org>
2948
d5096f16
GM
2949 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2950 Set with configure, not cpp.
2951 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2952
7eb1ac33
GM
2953 * Makefile.in (mallocobj): Remove.
2954 (otherobj): Simplify using @OTHER_OBJ@.
2955
517d086b
GM
2956 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2957 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2958 Don't bother making nsgui.h dependency platform-specific.
2959
0a7df391
GM
2960 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2961
d6d23852
SM
29622010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2963
d2630aef
SM
2964 * process.c (read_process_output, exec_sentinel): Don't burp if the
2965 sentinel/filter kills the current buffer (bug#6060).
2966
f9dddf52 2967 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2968 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2969 Remove unused var `args'.
2970 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2971 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2972 * doc.c (store_function_docstring): Use XSETCAR.
2973
f1e3642a
GM
29742010-04-28 Glenn Morris <rgm@gnu.org>
2975
faf535f8
GM
2976 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2977 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2978
c40f9449
GM
2979 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2980
658f86ca
GM
2981 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2982 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2983
bc0b5f61
GM
2984 * Makefile.in (FONT_OBJ): New, set by configure.
2985 (FONT_DRIVERS): Use $FONT_OBJ.
2986
294c50a0
GM
2987 * Makefile.in (LIBXMU): Set with configure, not cpp.
2988 * s/aix4-2.h (LIBXMU):
2989 * s/hpux10-20.h (LIBXMU):
2990 Remove definition, now set in configure.
2991
e6ec4e99
GM
2992 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2993
f1e3642a
GM
2994 * m/amdx86-64.h [i386]: Move this test to configure.in.
2995
c6ea2936
GM
29962010-04-27 Glenn Morris <rgm@gnu.org>
2997
8fdac2c3
GM
2998 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2999 * s/unixware.h (NEED_LIBW): Remove definition.
3000
986fb647
GM
3001 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3002 (TOOLKIT_LIBW): New, set by configure.
3003 (@X_TOOLKIT_TYPE@): No longer define it.
3004
c6ea2936
GM
3005 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3006 (MOTIF_LIBW): Set with configure, not cpp.
3007 * s/aix4-2.h (LIB_MOTIF):
3008 * s/gnu-linux.h (LIB_MOTIF):
3009 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3010
aaa36002
DN
30112010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3012
3013 Reduce CPP usage.
3014 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3015 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3016 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3017 definitions and undefs. Inline definitions in the only user.
3018 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3019
b678dd8b
GM
30202010-04-27 Glenn Morris <rgm@gnu.org>
3021
76cda504
GM
3022 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3023 since the defaults (set by the system file) are fine in most cases.
3024 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3025 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3026 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3027 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3028 Remove definitions, since they are set correctly in s/gnu-linux.h.
3029 * s/freebsd.h (START_FILES, LIB_STANDARD):
3030 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3031 * s/hpux10-20.h (START_FILES):
3032 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3033 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3034
b678dd8b
GM
3035 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3036 (MOTIF_LIBW): Use $LIBXP.
3037 (otherobj): Use $WIDGET_OBJ.
3038
9452ded1
DN
30392010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3040
7e10844c
DN
3041 * Makefile.in (LIBS_MACHINE): Remove, unused.
3042
9452ded1
DN
3043 Use autoconf instead of cpp for LIB_MATH.
3044 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3045 * s/cygwin.h (LIB_MATH): Likewise.
3046 * Makefile.in (LIB_MATH): Do not define with cpp.
3047 (LIBES): Use autoconf for LIB_MATH.
3048
fcebfc6a
KH
30492010-04-26 Kenichi Handa <handa@m17n.org>
3050
3051 * composite.c (Ffind_composition_internal): Fix the return value
3052 for an automatic composition.
3053
39e2ad1b
DN
30542010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3055
3056 Remove all NO_ARG_ARRAY uses.
3057 * fns.c (concat2, concat3, nconc2):
3058 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3059 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3060 * m/xtensa.h (NO_ARG_ARRAY):
3061 * m/template.h (NO_ARG_ARRAY):
3062 * m/sparc.h (NO_ARG_ARRAY):
3063 * m/sh3.h (NO_ARG_ARRAY):
3064 * m/mips.h (NO_ARG_ARRAY):
3065 * m/macppc.h (NO_ARG_ARRAY):
3066 * m/iris4d.h (NO_ARG_ARRAY):
3067 * m/intel386.h (NO_ARG_ARRAY):
3068 * m/ibms390x.h (NO_ARG_ARRAY):
3069 * m/ibms390.h (NO_ARG_ARRAY):
3070 * m/ibmrs6000.h (NO_ARG_ARRAY):
3071 * m/ia64.h (NO_ARG_ARRAY):
3072 * m/hp800.h (NO_ARG_ARRAY):
3073 * m/arm.h (NO_ARG_ARRAY):
3074 * m/amdx86-64.h (NO_ARG_ARRAY):
3075 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3076
adf4f59c
EZ
30772010-04-25 Eli Zaretskii <eliz@gnu.org>
3078
6bdf5d65
EZ
3079 * xdisp.c (display_line): Don't assume 2nd call to
3080 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3081 (iterate_out_of_display_property): New function, body from pop_it.
3082 (pop_it): Use it.
adf4f59c 3083
dfbbda83
GM
30842010-04-24 Glenn Morris <rgm@gnu.org>
3085
3086 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3087 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3088 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3089 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3090
2d4018aa
EZ
30912010-04-24 Eli Zaretskii <eliz@gnu.org>
3092
a49884a6
EZ
3093 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3094 use `get_next_display_element' and `set_iterator_to_next' to
3095 advance to the next character, when looking for the character that
3096 begins the next row.
3097
76db6fcc 3098 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3099 definition of "struct Lisp_Symbol".
3100
70eab5c1
GM
31012010-04-24 Glenn Morris <rgm@gnu.org>
3102
3103 * Makefile.in (CRT_DIR): New variable, set by configure.
3104 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3105 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3106
1ad4cc3d
DN
31072010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3108
e769f484
DN
3109 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3110
4196ff33
DN
3111 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3112
879b0ee4
DN
3113 Remove redundant flags.
3114 * s/freebsd.h (C_SWITCH_SYSTEM):
3115 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3116 * s/netbsd.h (C_SWITCH_SYSTEM):
3117 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3118 of these.
3119
03cbbcb8
DN
3120 Simplify m/intel386.h.
3121 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3122 user: ecrt0.c.
3123 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3124 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3125 the only user: s/unixware.h.
3126 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3127 from m/intel386.h.
3128 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3129 moved here from m/intel386.h.
3130
1ad4cc3d
DN
3131 * m/mips.h: Remove #if 0 code.
3132
8785b888
EZ
31332010-04-23 Eli Zaretskii <eliz@gnu.org>
3134
728588cc
EZ
3135 Fix display of composed characters from L2R scripts in bidi buffers.
3136 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3137 After advancing IT past the composition, resync the bidi iterator
3138 with IT's position. (Bug#5977)
3139
a63f80b4
DN
31402010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3141
3142 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3143 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3144
ff5dec5c
SM
31452010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3146
3147 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3148
8785b888
EZ
31492010-04-23 Eli Zaretskii <eliz@gnu.org>
3150
58ccf243 3151 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3152 * xdisp.c (pop_it): When the stack is popped after displaying
3153 from a string, bidi-iterate to exit from the text portion covered
3154 by the `display' property or overlay. (Bug#5988, bug#5920)
3155
feeb1604
DN
31562010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3157
8e324eb6
DN
3158 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3159 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3160
809fcaba
DN
3161 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3162 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3163
ed710380
DN
3164 Simplify STARTFILES definition.
3165 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3166 relying on Makefile.in to define it.
3167 * s/cygwin.h (START_FILES): Likewise.
3168 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3169
feeb1604
DN
3170 Clean up Solaris code.
3171 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3172 (LIB_MOTIF): Remove, configure takes care of this.
3173 (NOT_USING_MOTIF): Remove, unused.
3174 * xrdb.c: Remove #if 0-ed #include.
3175 (SYSV): Remove conditional for old SysV.
3176 * sysdep.c (closedir): Remove conditional code for Solaris,
3177 Solaris has closedir.
3178
a0d0b563
JD
31792010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3180
3181 * xsettings.c (read_and_apply_settings): Check if current_font is
3182 NULL before strcmp (Bug#6001).
3183
56bae7c7
DN
31842010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3185
3186 Clean up HP-UX files.
3187 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3188 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3189 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3190 * s/hpux10-20.h: ... to the only user, here.
3191
372b7a95
EZ
31922010-04-21 Eli Zaretskii <eliz@gnu.org>
3193
3194 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3195 use buffer-local values of paragraph-start and paragraph-separate.
3196 <paragraph_start_re, paragraph_separate_re>: Rename from
3197 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3198 (Bug#5992)
3199
f904c0f9
JD
32002010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3201
3202 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3203 current_tool_bar_style are new.
3204 (store_config_changed_event): Rename from store_font_changed_event.
3205 (XSETTINGS_TOOL_BAR_STYLE): New define.
3206 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3207 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3208 HAVE_XFT.
3209 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3210 store_config_changed_event.
f904c0f9
JD
3211 (parse_settings): Rename from parse_xft_settings. Read
3212 non-xft xsettings outside #ifdef HAVE_XFT.
3213 (read_settings): Renamed from read_xft_settings.
3214 (apply_xft_settings): Take current settings as parameter. Do not
3215 call read_(xft)_settings.
3216 (read_and_apply_settings): New function.
3217 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3218 read_and_apply_settings if there are settings to be read.
3219 (init_xsettings): Renamed from init_xfd_settings.
3220 Call read_and_apply_settings unconditionally.
3221 (xsettings_initialize): Call init_xsettings.
3222 (Ftool_bar_get_system_style): New function.
3223 (syms_of_xsettings): Define Qmonospace_font_name and
3224 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3225 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3226 dynamic-setting.
31a01b90 3227 Move misplaced HAVE_GCONF
f904c0f9
JD
3228
3229 * xsettings.h (Ftool_bar_get_system_style): Declare.
3230
3231 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3232 Qtext, Qboth, Qboth_horiz are new.
3233 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3234 Vtool_bar_style, tool_bar_max_label_size.
3235
3236 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3237
3238 * keyboard.c: QClabel is new.
3239 (parse_tool_bar_item): Take out QClabel from tool bar items.
3240 Try to construct a label if ther is no QClabel.
3241 (syms_of_keyboard): Intern :label as QClabel.
3242
3243 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3244 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3245 New.
3246
3247 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3248 dynamic-setting.el.
3249
3250 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3251 (xg_make_tool_item, xg_show_toolbar_item): New function.
3252 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3253 Call xg_make_tool_item to make a tool bar item.
3254 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3255
3256 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3257 into account for toolbars.
3258
c632dfda
JD
32592010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3260
3261 * data.c (make_blv): Declarations before code (Bug#5993).
3262
10efe302
GM
32632010-04-21 Glenn Morris <rgm@gnu.org>
3264
3265 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3266 Define using autoconf, not cpp.
3267 (LIBXSM): New variable, set by autoconf.
3268 (LIBXT): Use $LIBXSM.
3269
4285ac5a
DN
32702010-04-21 Dan Nicolaescu <local_user@dannlt>
3271
3ec759e7
DN
3272 Remove NOMULTIPLEJOBS, unused.
3273 * s/template.h (NOMULTIPLEJOBS):
3274 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3275
4285ac5a
DN
3276 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3277 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3278 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3279 detects -znocombreloc and passes it to the linker
3280 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3281
2807228d
GM
32822010-04-21 Glenn Morris <rgm@gnu.org>
3283
3284 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3285
574c05e2
KK
32862010-04-21 Karel Klíč <kklic@redhat.com>
3287
3288 * Makefile.in (LIBSELINUX_LIBS): New.
3289 (LIBES): Add $LIBSELINUX_LIBS.
3290 * eval.c, lisp.h (call7): New function.
3291 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3292 (Ffile_selinux_context, Fset_file_selinux_context):
3293 New functions.
3294 (Fcopy_file): New parameter preserve-selinux-context.
3295 (Frename_file): Preserve selinux context when renaming by copy-file.
3296
91eac4bb 32972010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3298 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3299
50426a04
JB
3300 Don't depend on cm.c or termcap.c on Windows, use stubs.
3301 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3302 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3303 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3304 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3305 (sys_tputs, sys_tgetstr): New stubs.
3306 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3307 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3308
938efb77
JB
33092010-04-20 Juanma Barranquero <lekktu@gmail.com>
3310
3311 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3312
b4bf28b7
SM
33132010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3314
8b1e1112
SM
3315 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3316 Just signal a warning rather than an error when inside a let.
3317 (Fmake_variable_frame_local): Add the same test.
3318
933ac235
SM
3319 * font.c (syms_of_font): Make the style table vars read-only.
3320
b4bf28b7
SM
3321 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3322 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3323
3324 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3325
93d68d0c
EZ
33262010-04-20 Eli Zaretskii <eliz@gnu.org>
3327
3328 Fix R2L paragraph display on TTY.
3329
3330 * xdisp.c (unproduce_glyphs): New function.
3331 (display_line): Use it when produced glyphs are discarded from R2L
3332 glyph rows.
3333 (append_composite_glyph): In R2L rows, prepend the glyph rather
3334 than appending it.
3335
3336 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3337 rather than append it. Set up the resolved_level and bidi_type
3338 attributes of the appended glyph.
283ccc18
EZ
3339 (produce_special_glyphs): Mirror the backslash continuation
3340 character in R2L lines.
93d68d0c 3341
283ccc18 3342 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3343
283ccc18
EZ
3344 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3345 append_stretch_glyph.
3346 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3347 off-by-one error in computing x at end of text in the row.
3348 (append_stretch_glyph): In reversed row, prepend the glyph rather
3349 than append it. Set resolved_level and bidi_type of the glyph.
3350 (extend_face_to_end_of_line): If the row is reversed, prepend a
3351 stretch glyph whose width is such that the rightmost glyph will be
3352 drawn at the right margin of the window. Fix off-by-one error on
3353 TTY frames in testing whether a line needs face extension. Fix
3354 face extension at ZV. If this is the last glyph row, use
3355 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3356 region face.
3357 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3358 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3359 row->continuation_lines_width.
283ccc18
EZ
3360 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3361 are at ZV. Fixes a crash when reseated to ZV by
3362 try_window_reusing_current_matrix.
45903529
EZ
3363 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3364 which happens with R2L glyph rows. Fixes a crash when inserting a
3365 character at end of an R2L line.
283ccc18
EZ
3366 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3367 treat them as having zero-width characters. Improve comments.
3368 Don't reverse pos_before and pos_after for reversed glyph rows.
3369 Set cursor.x to negative value when the cursor might be on the
3370 left fringe.
3371 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3372 left fringe, not the right one.
f951a506
EZ
3373 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3374 (erase_phys_cursor): For reversed cursor_row, support cursor on
3375 the left fringe.
3376
283ccc18
EZ
3377 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3378 of continuation indicators on the fringes.
3379 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3380 left fringe.
3381
f951a506
EZ
3382 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3383 draw cursor on the left fringe.
3384
3385 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3386 cursor on the left fringe.
3387
f951a506
EZ
3388 * dispnew.c (update_text_area): Handle reversed desired rows when
3389 the cursor is on the left fringe.
3390 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3391 below, not by 0, for when the cursor is on the left fringe.
3392
3bb49aaf
JD
33932010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3394
3395 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3396 widget is a scrollbar.
3397
c0be27fd
KH
33982010-04-20 Kenichi Handa <handa@m17n.org>
3399
3400 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3401 only when the arg CHARSET_LIST is nil.
3402
ce5b453a
SM
34032010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3404
3405 Make variable forwarding explicit rather the using special values.
3406 Basically, this makes the structure of buffer-local values and object
3407 forwarding explicit in the type of Lisp_Symbols rather than use
3408 special Lisp_Objects for that. This tends to lead to slightly more
3409 verbose code, but is more C-like, simpler, and makes it easier to make
3410 sure we handled all cases, among other things by letting the compiler
3411 help us check it.
3412 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3413 Removing forwarding objects.
3414 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3415 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3416 explicit rather than hiding them inside Lisp_Object "values".
3417 (XFWDTYPE): New macro.
3418 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3419 (XBUFFER_LOCAL_VALUE): Remove.
3420 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3421 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3422 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3423 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3424 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3425 Remove the Lisp_Misc_* header.
3426 (struct Lisp_Buffer_Local_Value): Redefine.
3427 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3428 (struct Lisp_Misc_Any): Add filler to get the right size.
3429 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3430 Lisp_Intfwd.
3431 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3432 (DEFVAR_KBOARD): Allocate a forwarding object.
3433 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3434 (let_shadows_global_binding_p): New function.
3435 (union Lisp_Val_Fwd): New type.
3436 (make_blv): New function.
3437 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3438 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3439 (swap_in_symval_forwarding, find_symbol_value, Fset)
3440 (let_shadows_buffer_binding_p, set_internal, default_value)
3441 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3442 (Fkill_local_variable, Fmake_variable_frame_local)
3443 (Flocal_variable_p, Flocal_variable_if_set_p)
3444 (Fvariable_binding_locus):
3445 * xdisp.c (select_frame_for_redisplay):
3446 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3447 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3448 * frame.c (store_frame_param):
3449 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3450 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3451 value structure.
3452 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3453 (clone_per_buffer_values): Only adjust markers into the current buffer.
3454 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3455 (Fbuffer_local_value, set_buffer_internal_1)
3456 (swap_out_buffer_local_variables):
3457 Adapt to the new symbol value structure.
3458 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3459 (defvar_per_buffer): Take a new arg for the fwd object.
3460 (buffer_lisp_local_variables): Return a proper alist (different fix
3461 for bug#4138).
3462 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3463 (Fgarbage_collect): Don't handle buffer_defaults specially.
3464 (mark_object): Handle new symbol value structure rather than the old
3465 special Lisp_Misc_* objects.
3466 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3467 * term.c (set_tty_color_mode):
3468 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3469 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3470 a buffer_local_flags.
3471 * print.c (print_object): Get rid of impossible forwarding objects.
3472
fd3998ff
EZ
34732010-04-19 Eli Zaretskii <eliz@gnu.org>
3474
3475 * bidi.c (bidi_get_type, bidi_get_category)
3476 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3477 (bidi_type_of_next_char, bidi_level_of_next_char):
3478 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3479
e42cd1a7
JB
34802010-04-19 Juanma Barranquero <lekktu@gmail.com>
3481
3482 * dired.c (Ffile_attributes): Fix typo in docstring.
3483
6e104790 34842010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3485
3486 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3487 NSInteger (Bug#5811).
3488
6e104790 34892010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3490
3491 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3492 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3493
6e104790 34942010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3495
3496 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3497
6e104790
SM
34982010-04-19 Chong Yidong <cyd@stupidchicken.com>
3499
3500 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3501 terminal frames (Bug#5837).
3502
37dcfea0
EZ
35032010-04-19 Eli Zaretskii <eliz@gnu.org>
3504
d1da276f
EZ
3505 * .gdbinit (xsubchartable): New command.
3506
37dcfea0
EZ
35072010-04-19 Eli Zaretskii <eliz@gnu.org>
3508
3509 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3510 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3511 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3512 and
3513 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3514
e9515805
SM
35152010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * alloc.c (Fpurecopy): Hash-cons if requested.
3518 (syms_of_alloc): Update purify-flag docstring.
3519
22aa44a8
JD
35202010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3521
3522 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3523 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3524
ebb5722e
EZ
35252010-04-17 Eli Zaretskii <eliz@gnu.org>
3526
3527 Fix a crash when an NSM character is inserted at BEGV.
3528
3529 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3530 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3531 NEUTRAL_B or UNKNOWN_BT.
3532
0f4442ef
EZ
35332010-04-16 Eli Zaretskii <eliz@gnu.org>
3534
3535 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3536 other rows with cursor unless they are different from this row and
3537 this row is part of a continued line. (Bug#5943)
3538
7d4e45f8
DN
35392010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3540
3541 * s/freebsd.h: Restore osreldate.h include.
3542 Suggested by Naohiro Aota.
3543
5ba5ec85
J
35442010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3545
3546 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3547
20af301d
CY
35482010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3549
3550 * s/cygwin.h: Avoid linking against static libgcc.
3551
a4b000fb
JL
35522010-04-15 Juri Linkov <juri@jurta.org>
3553
3554 * window.c: Add Qscroll_command.
3555 Remove Vscroll_preserve_screen_position_commands.
3556 (window_scroll_pixel_based, window_scroll_line_based): Check the
3557 `scroll-command' property on the last command instead of searching
3558 the last command in Vscroll_preserve_screen_position_commands.
3559 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3560 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3561 (scroll-preserve-screen-position): Doc fix.
3562 (Vscroll_preserve_screen_position_commands): Remove variable.
3563
bc319ba4
DN
35642010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3565
6bb24457
DN
3566 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3567
19d4c244
DN
35682010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3569
3570 Reduce cpp use in Makefile.in.
3571 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3572 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3573 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3574 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3575 (CRT0_COMPILE): Remove, inline it in the only user.
3576
32129746
JL
35772010-04-14 Juri Linkov <juri@jurta.org>
3578
3579 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3580 `scroll-up-command' and `M-v' from `scroll-down' to
3581 `scroll-down-command'.
3582
9013a7f8
JL
35832010-04-14 Juri Linkov <juri@jurta.org>
3584
3585 * window.c (Vscroll_preserve_screen_position_commands): New variable
3586 with the default value as the list of Qscroll_down and Qscroll_up.
3587 (window_scroll_pixel_based, window_scroll_line_based): Search the
3588 last command in the list Vscroll_preserve_screen_position_commands
3589 instead of comparing with Qscroll_up and Qscroll_down.
3590
4bef8d26
JD
35912010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3592
92848133
JD
3593 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3594 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3595 does that.
3596
4bef8d26
JD
3597 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3598 to zero.
3599
58b963f7
SM
36002010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3601
84164a0d
SM
3602 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3603
2b0a91e7
SM
3604 Try to solve the problem of spurious EOF chars in long lines of text
3605 sent to interactive subprocesses.
3606 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3607 (system_process_attributes): Remove unused var `ttotal'.
3608 * process.c (send_process): Don't bother breaking long line with EOF
3609 chars when talking to ttys any more.
3610 (wait_reading_process_output): Output a warning when called in such
3611 a way that it could block without being interruptible.
3612
58b963f7
SM
3613 Try to detect file modification within the same second.
3614 * buffer.h (struct buffer): New field modtime_size.
3615 * buffer.c (reset_buffer): Initialize it.
3616 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3617 (Fverify_visited_file_modtime): Check it.
3618 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3619 (Fset_visited_file_modtime): Set (or clear) it.
3620
01f5787b
SM
36212010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3622
3623 * process.c (status_notify): Remove unused var `ro'.
3624
83725342
JD
36252010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3626
3627 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3628 more than one visual (Bug#5938).
3629
b9465836
DN
36302010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3631
50426a04
JB
3632 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3633 Undefine.
b9465836 3634
8d9c8ece
DN
36352010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3636
b1f52161
DN
3637 Remove C_SWITCH_SYSTEM_TEMACS.
3638 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3639 (malloc, realloc, free): Use emacs, not temacs for conditional
3640 definition.
3641
3642 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3643 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3644
8d9c8ece
DN
3645 Use autoconf, not cpp for some variables.
3646 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3647 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3648 (ALL_CFLAGS): Use them as make variables.
3649 (really-lwlib, really-oldXMenu): Do not pass them.
3650
1ecb2d3f
JD
36512010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3652
3653 * xmenu.c (apply_systemfont_to_dialog): New.
3654 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3655
3a4fa2f2
SM
36562010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3657
97e53006
SM
3658 * process.c (exec_sentinel): Preserve current-buffer.
3659
3a4fa2f2
SM
3660 * process.c (read_process_output): Move the save-current-buffer to
3661 apply to both the filter and the non-filter branches.
3662
88df7221
DN
36632010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3664
3665 * s/msdos.h (UNEXEC): New definition.
3666
5634ff85
YM
36672010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3668
6eff5c3d
YM
3669 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3670 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3671
3672 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3673 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3674 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3675 TRY_WINDOW_CHECK_MARGINS.
3676
3677 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3678 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3679 width only when it is for padding.
5634ff85 3680
b13aef54
J
36812010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3682
3683 * xfns.c (Fx_show_tip): Call try_window in a loop until
3684 fonts_changed_p is zero (Bug#2423).
3685
21d28484
EZ
36862010-04-08 Eli Zaretskii <eliz@gnu.org>
3687
3688 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3689 the end of TEXT_AREA. (Bug#5856)
3690
0269ef77
JD
36912010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3692
3693 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3694 HAVE_GCONF.
3695
5930fe97
EZ
36962010-04-08 Eli Zaretskii <eliz@gnu.org>
3697
3698 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3699 prev.orig_type, for resolving type of NSM. (Bug#5858)
3700
99852628
JD
37012010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3702
3703 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3704 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3705 in current_font.
3706 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3707 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3708 New functions.
3709 (syms_of_xsettings): Initialize current_font.
3710 defsubr Sfont_get_system_normal_font.
99852628
JD
3711
3712 * xsettings.h (Ffont_get_system_normal_font,
3713 xsettings_get_system_normal_font): Declare.
3714
3715 * xfns.c (extern xlwmenu_default_font): Remove.
3716 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3717 to xlwmenu.c.
3718
3719 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3720 menu items in UTF-8.
3721
3722 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3723 (apply_systemfont_to_menu): New function.
3724 (set_frame_menubar, create_and_show_popup_menu): Call
3725 apply_systemfont_to_menu.
3726
7fc874c4
J
37272010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3728
3729 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3730 FRAME_LINE_TO_PIXEL_Y.
3731
3732 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3733 pixelwidth/height.
3734
863bf481
DN
37352010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3736
5e5a3b92
DN
3737 Simplify code for HP machines.
3738 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3739 for GNU_LINUX, not needed.
3740 (UNEXEC, NEED_BSDTTY): Move definitions...
3741 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3742
863bf481
DN
3743 * m/iris4d.h (UNEXEC): Move definition ...
3744 * s/irix6-5.h (UNEXEC): ... here.
3745
3e6bec3b
JD
37462010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3747
3748 * xfns.c (set_machine_and_pid_properties): New function.
3749 (Fx_create_frame): Call set_machine_and_pid_properties.
3750
2912322b
SM
37512010-04-03 Eli Zaretskii <eliz@gnu.org>
3752
1502b819
EZ
3753 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3754 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3755 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3756
2912322b
SM
3757 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3758 in this function. (Bug#5703)
3759
37602010-04-03 Chong Yidong <cyd@stupidchicken.com>
3761
3762 * nsterm.h: Fix last change.
3763
c435b432
DN
37642010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3765
a568f507
DN
3766 * m/intel386.h (NO_REMAP): Move definition ...
3767 * s/msdos.h (NO_REMAP): ... here.
3768
4cd9f6c2
DN
3769 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3770
c435b432
DN
3771 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3772 used on those platforms.
3773
42a2c622
DN
37742010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3775
3776 Remove extern errno declarations.
3777 * xterm.c:
3778 * xrdb.c:
3779 * w32term.c:
3780 * unexec.c:
3781 * unexaix.c:
3782 * sysdep.c:
3783 * process.c:
3784 * lread.c:
3785 * keyboard.c:
3786 * floatfns.c:
3787 * filelock.c:
3788 * fileio.c:
3789 * emacs.c (main):
3790 * ecrt0.c:
3791 * dispnew.c:
3792 * callproc.c:
3793 * buffer.c: Remove errno extern declarations.
3794 * s/netbsd.h (NEED_ERRNO): Remove.
3795
8224f93d
DN
37962010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3797
3798 Remove all uses of LIBX11_SYSTEM.
3799 * Makefile.in (LIBX11_SYSTEM): Remove.
3800 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3801 instead.
3802
814062c7
EZ
38032010-04-01 Eli Zaretskii <eliz@gnu.org>
3804
ed68db4d
EZ
3805 Remove support for DJGPP v1.x (bug#5813).
3806
3807 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3808 * s/msdos.h:
3809 * unexec.c (make_hdr, copy_text_and_data):
3810 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3811 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3812 (IT_set_terminal_modes, __write, _rename, gethostname)
3813 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3814 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3815 the value of __DJGPP__.
ed68db4d
EZ
3816 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3817 compatibility code.
8224f93d
DN
3818 * lread.c:
3819 * gmalloc.c (memalign):
3820 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3821 * emacs.c (main):
3822 * dosfns.c (init_dosfns):
ed68db4d
EZ
3823 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3824
52f4d8d5
EZ
38252010-04-01 Eli Zaretskii <eliz@gnu.org>
3826
814062c7
EZ
3827 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3828 string with `cursor' property comes from an `after-string'
3829 overlay. (Bug#5816)
3830
0dc2e11d
GM
38312010-04-01 Glenn Morris <rgm@gnu.org>
3832
3833 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3834 Define as Makefile variables.
3835 (LIBX): Use above variables rather than directly using autoconf.
3836
1d29df59
DN
38372010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3838
3839 Clean up BSD_SYSTEM use.
3840 * xterm.c:
3841 * process.c:
3842 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3843 for including <sys/ioctl.h>.
3844 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3845 code is only used for MSDOS.
3846
1546c559
JL
38472010-03-31 Juri Linkov <juri@jurta.org>
3848
3849 * image.c: Add `Qextension_data'.
3850 (syms_of_image): Initialize and staticpro `Qextension_data'.
3851 (Fimage_metadata): Rename from `Fimage_extension_data'.
3852 (gif_load): Put GIF extension data to the property
3853 `Qextension_data'.
3854
6521c534
CY
38552010-03-31 Chong Yidong <cyd@stupidchicken.com>
3856
3857 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3858 * nsterm.h: Fix prototype.
3859
52c30783
EZ
38602010-03-31 Eli Zaretskii <eliz@gnu.org>
3861
3862 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3863 trailing whitespace in right-to-left rows.
3864
855a0da7
SM
38652010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3866
3867 Get rid of the direct_output optimizations.
3868 * keyboard.c (nonundocount): Remove extern declaration.
3869 (command_loop_1): Remove brittle optimisation for cheap and
3870 common operations.
3871 * xdisp.c (redisplay_internal): Don't bother checking
3872 redisplay_performed_directly_p any more.
3873 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3874 any more.
3875 * dispnew.c (redisplay_performed_directly_p)
3876 (direct_output_for_insert, direct_output_forward_char):
3877 * dispextern.h (redisplay_performed_directly_p)
3878 (direct_output_for_insert, direct_output_forward_char): Remove.
3879 * cmds.c (nonundocount): Make it static.
3880
85738751 38812010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3882
3883 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3884
85738751 38852010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3886
3887 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3888 invisible (Bug#5766).
3889
85738751 38902010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3891
855a0da7
SM
3892 * xdisp.c (x_consider_frame_title, update_window_cursor):
3893 Remove HAVE_NS conditionals.
194d44e7 3894 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3895
3896 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3897 filename for the title.
3898 (ns_set_doc_edited): Do nothing if the selected window is a
3899 minibuffer window.
3900
3901 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3902 ns_set_doc_edited.
3903
3904 * nsterm.m: Remove unneeded prototype.
3905
85738751 39062010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3907
3908 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3909 in the DOC file. (Bug#5336)
3910
85738751 39112010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3912
3913 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3914
75d1428c
SM
39152010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3916
3917 * window.c (keys_of_window): Remove redundant/overridden bindings.
3918
82043cfb
EZ
39192010-03-30 Eli Zaretskii <eliz@gnu.org>
3920
3921 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3922 Restore original behavior when the iterator is not bidi_p.
3923
b5dd0ae7
DN
39242010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3925
3926 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3927
bd924a5d
EZ
39282010-03-30 Eli Zaretskii <eliz@gnu.org>
3929
3930 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3931 are outside the range of cached character positions.
3932
3580374b
JB
39332010-03-30 Juanma Barranquero <lekktu@gmail.com>
3934
3935 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3936
a7b02820
EZ
39372010-03-30 Eli Zaretskii <eliz@gnu.org>
3938
3939 Initial support for bidirectional editing.
3940
3941 * Makefile.in (obj): Include bidi.o.
3942 (bidi.o): New target.
3943
3944 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3945 ($(BLD)/bidi.$(O)): New target.
3946
3947 * bidi.c: New file.
3948
3949 * buffer.h (struct buffer): New members bidi_display_reordering
3950 and bidi_paragraph_direction.
3951
3952 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3953 and bidi_paragraph_direction.
3954 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3955 and bidi-paragraph-direction.
3956 (Fbuffer_swap_text): Swap the values of
3957 bidi_display_reordering and bidi_paragraph_direction.
3958
3959 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3960 (bidi_type_t, bidi_dir_t): New types.
3961 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3962 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3963 prev_stop, base_level_stop, and eol_pos.
3964 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3965 (IT_STACK_SIZE): Enlarge to 5.
3966 (struct glyph_row): New member reversed_p.
3967 <string_buffer_position>: Update prototype.
3968 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3969 glyph_row if bidi_it.paragraph_dir == R2L.
3970 (struct glyph): New members resolved_level and bidi_type.
3971
3972 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3973 processing or buffer's direction is right-to-left.
3974 (prepare_desired_row): Preserve the reversed_p flag.
3975 (row_equal_p): Compare the reversed_p attributes as well.
3976
3977 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3978 bidi_init_it and set it->paragraph_embedding from the current
3979 buffer's value of bidi_paragraph_direction.
3980 (reseat_1): Initialize bidi_it.first_elt.
3981 (set_iterator_to_next, next_element_from_buffer): Use the value of
3982 paragraph_embedding to determine the paragraph direction.
3983 (set_iterator_to_next): Under bidi reordering, call
3984 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3985 new_paragraph flag is set in the bidi iterator.
3986 (next_element_from_buffer): If bidi_it.first_elt is set,
3987 initialize paragraph direction and find the first character to
3988 display in the visual order. If reseated to a middle of a line,
3989 prime the bidi iterator starting at the line's beginning. Handle
3990 the situation where we overstepped stop_charpos due to
3991 non-linearity of the bidi iteration. Likewise for when we back up
3992 beyond the previous stop_charpos. When moving across stop_charpos,
3993 record it in prev_stop.
3994 (display_line): Set row->end and it->start for the next row to the
3995 next character in logical order. Always extend reversed_p rows to
3996 the end of line, even if they end at ZV. Copy the reversed_p flag
3997 to the next glyph row. Keep calling set_cursor_from_row for
3998 bidi-reordered rows even if we already have a possible candidate
3999 for cursor position. Set row_end after all the row's glyphs have
4000 been produced, by looping over the glyphs. Record the position
4001 after EOL in it->eol_pos, and use it to set end_pos of the last
4002 row produced for a continued line.
4003 <Qright_to_left, Qleft_to_right>: New variables.
4004 (syms_of_xdisp): Initialize and staticpro them.
4005 (string_buffer_position_lim): New function.
4006 (string_buffer_position): Most of code moved to
4007 string_buffer_position_lim. Last argument and return value are
4008 now EMACS_INT; all callers changed.
4009 (set_cursor_from_row): Rewritten to support bidirectional text and
4010 reversed glyph rows.
4011 (text_outside_line_unchanged_p, try_window_id): Disable
4012 optimizations if we are reordering bidirectional text and the
4013 paragraph direction can be affected by the change.
4014 (append_glyph, append_composite_glyph)
4015 (produce_image_glyph, append_stretch_glyph): Set the
4016 resolved_level and bidi_type members of each glyph.
4017 (append_glyph): If the glyph row is reversed, prepend the glyph
4018 rather than appending it.
4019 (handle_stop_backwards): New function.
4020 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4021 (reseat): call handle_stop_backwards to recompute prev_stop and
4022 base_level_stop for the new position.
4023 (handle_invisible_prop): Under bidi iteration, skip invisible text
4024 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4025 paragraph direction. Update IT->prev_stop after skipping
4026 invisible text.
4027 (move_it_in_display_line_to): New variables prev_method
4028 and prev_pos. Compare for strict equality in
4029 BUFFER_POS_REACHED_P.
4030 (try_cursor_movement): Examine all the candidate rows that occlude
4031 point, to return the best match. If rows are bidi-reordered
4032 and point moved backwards, back up to the row that is not a
4033 continuation line, and start looking for a suitable row from
4034 there.
4035
4036 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4037 rather than appending, if the glyph_row's reversed_p flag is set.
4038 Set the resolved_level and bidi_type members of each glyph.
4039
4040 * .gdbinit (pbiditype): New command.
4041 (pgx): Use it to display bidi level and type of the glyph.
4042 (pitx): Display some bidi information about the iterator.
4043 (prowlims, pmtxrows): New commands.
4044
32a8894e
DN
40452010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4046
4047 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4048 * s/usg5-4.h (LIBS_DEBUG):
4049 * s/irix6-5.h (C_DEBUG_SWITCH):
4050 * s/gnu-linux.h (LIBS_DEBUG):
4051 * s/darwin.h (LIBS_DEBUG):
4052 * s/bsd-common.h (LIBS_DEBUG):
4053 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4054 * m/iris4d.h (LIBS_DEBUG):
4055 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4056
4057 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4058 (LIBS_DEBUG): Remove definition.
4059
649dbf36
CY
40602010-03-27 Chong Yidong <cyd@stupidchicken.com>
4061
4062 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4063 Windows.
4064
cad4261f
YM
40652010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4066
4067 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4068 `connect' (Bug#5723).
4069
cd591dbc
HE
40702010-03-25 Helmut Eller <eller.helmut@gmail.com>
4071
4072 * process.c (Fmake_network_process): Call `select' for interrupted
4073 `connect' rather than creating new socket (Bug#5173).
4074
e867cb5d 40752010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4076
4077 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4078
4079 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4080
4081 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4082
e867cb5d 40832010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4084
4085 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4086 XLoadQueryFont.
4087
e867cb5d 40882010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4089
4090 * coding.c (decode_coding_ccl): Fix previous change for the
4091 multibyte case.
fb608df3
KH
4092 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4093 case that the output buffer is fullfilled.
4094 (encode_coding): Setup ccl program here.
fbdc1721 4095
5845f0ed
DN
40962010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4097
814fb708
DN
4098 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4099
5845f0ed
DN
4100 Simplify LIBS_MACHINE definitions.
4101 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4102 * m/iris4d.h (LIBS_MACHINE): Likewise.
4103 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4104 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4105 * s/netbsd.h: Remove commented out code.
5845f0ed 4106
b7064064
DN
41072010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4108
df7734b2
DN
4109 Remove dead code dealing with POSIX_SIGNALS.
4110 * atimer.c (set_alarm): Remove dead code, all USG systems define
4111 POSIX_SIGNALS.
4112 * data.c (arith_error): Likewise.
4113 * keyboard.c (input_available_signal, handle_user_signal)
4114 (interrupt_signal): Likewise.
4115 * process.c (sigchld_handler): Likewise.
4116 (create_process): Remove if 0 code. Remove HPUX conditional when
4117 !defined (POSIX_SIGNALS), it cannot be true.
4118 * syssignal.h: Remove USG5_4 and USG conditionals when
4119 !POSIX_SIGNALS, they cannot be true.
4120
b7064064
DN
4121 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4122 NO_SOCK_SIGIO, not used anymore.
4123
55da5ee3
DN
41242010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4125
0be96e3a
DN
4126 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4127 support vax on BSDs.
4128
55da5ee3
DN
4129 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4130 * s/aix4-2.h (ORDINARY_LINK): ... here.
4131
c0282183
AS
41322010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4133
82c3d67a
AS
4134 * Makefile.in (abs_builddir): Define.
4135 (bootstrap_exe): Use it.
4136 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4137
3613edce
SM
41382010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4139
4140 * Makefile.in (bootstrap_exe): Use an absolute name.
4141
7f110ddc
DN
41422010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4143
22e87574
DN
4144 Remove support for old GNU/Linux using libc version 5.
4145 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4146 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4147
05a670e6
DN
4148 Consolidate redundant definitions in s/bsd-common.h.
4149 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4150 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4151 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4152 doing it in all files that include this one.
4153 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4154 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4155 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4156 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4157 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4158 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4159 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4160 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4161 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4162
2968f561
DN
4163 Consolidate redundant definitions.
4164 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4165 it's undefined in all files that include this one.
4166 (POSIX_SIGNALS): Define here instead of doing it in all files that
4167 include this one.
4168 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4169 (POSIX_SIGNALS): Do not define.
4170 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4171 (POSIX_SIGNALS): Do not define.
4172 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4173 (POSIX_SIGNALS): Do not define.
4174
15d25dc0
DN
4175 Remove support for old UNIX System V systems.
4176 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4177 * s/usg-5-4-2.h: Remove.
4178
07e339e4
DN
4179 Remove support for Solaris on PPC and for old versions.
4180 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4181 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4182 that cancel each other.
4183 * s/sol2-3.h:
4184 * s/sol2-4.h:
4185 * s/sol2-5.h: Remove.
4186 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4187 (NO_REMAP): Remove, unused.
4188 (UNEXEC): Move definition ...
4189 * s/aix4-2.h (UNEXEC): ... here.
4190
7f110ddc
DN
4191 * s/openbsd.h: Remove support for non-ELF and for systems that do
4192 not support shared libraries.
4193 * s/netbsd.h:
4194 * s/freebsd.h: Likewise.
4195
605f35cd
DN
41962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4197
4198 Remove non-working support for lynxos 3.0.
4199 * s/lynxos.h: Remove file.
4200
4201 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4202 COFF_BSD_SYMBOLS, nothing defines it anymore.
4203
aed71cf4
DN
42042010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4205
4206 Remove obsolete uses of HAVE_SHM.
4207 * emacs.c (standard_args):
4208 (Fdump_emacs):
4209 (syms_of_emacs): Remove code depending on HAVE_SHM.
4210
4211 * alloc.c: Remove HAVE_SHM dependent definition.
4212
4213 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4214
aded53ff
GM
42152010-03-18 Glenn Morris <rgm@gnu.org>
4216
17284745
GM
4217 * emacs.c (USAGE4): Hard-code bug address.
4218 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4219 (bug_reporting_address): Remove.
4220 (main): Don't call bug_reporting_address.
4221
aded53ff
GM
4222 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4223 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4224
303500aa
CY
42252010-03-15 Chong Yidong <cyd@stupidchicken.com>
4226
4227 * xfns.c (Fx_create_frame):
4228 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4229 on left.
4230
cef3058f
CY
42312010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4232
4233 * editfns.c (Fformat): Account for string precision when computing
4234 field width (Bug#5710).
4235
a647d59d
CY
42362010-03-12 Chong Yidong <cyd@stupidchicken.com>
4237
4fa42018
CY
4238 * xfns.c (Fx_create_frame): Set default to Qright.
4239
a647d59d
CY
4240 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4241 all window systems.
4242
6da23aaa
EZ
42432010-03-12 Eli Zaretskii <eliz@gnu.org>
4244
a96f6398 4245 These changes remove termcap.c from the build on Posix platforms.
83d02def 4246 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4247 (MSDOS_OBJ): ...to here.
4248 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4249 now identical to when LIBS_TERMCAP is defined.
4250
4251 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4252
4253 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4254
a96f6398 4255 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4256
288f9fc0
CY
42572010-03-10 Chong Yidong <cyd@stupidchicken.com>
4258
4259 * Branch for 23.2.
4260
d48cd3f4
SM
42612010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4262
4263 Cleanup setup of gl_state in various parts of the code.
4264 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4265 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4266 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4267 (skip_chars):
4268 * regex.c (regex_compile): Use it.
4269 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4270 it's now set in regex_compile when/if we need it.
4271
618db430
SM
42722010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4273
c0335e02
SM
4274 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4275 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4276 (QUIT): Use it to consolidate code and remove redundancy.
4277 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4278
254c06a8
SM
4279 * regex.c (regex_compile): Setup gl_state as well.
4280
618db430
SM
4281 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4282 (in_classes): Use CONSP before XCAR/XCDR.
4283
233f0c9f
CY
42842010-03-03 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4287 definitions, so that keyboard macros are correctly handled
4288 (Bug#5481).
4289
75f80e63
EZ
42902010-03-02 Eli Zaretskii <eliz@gnu.org>
4291
4292 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4293 text that could be relocated inside the call to emacs_mule_char.
4294 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4295 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4296
dcfb9bc4
KH
42972010-03-02 Kenichi Handa <handa@m17n.org>
4298
fc9a17bc
KH
4299 * character.c (parse_str_as_multibyte): Fix handling of the
4300 multibyte form of raw-bytes.
4301 (str_as_multibyte): Likewise.
4302
dcfb9bc4
KH
4303 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4304 form of raw-bytes.
4305
412c01b6
CY
43062010-02-28 Chong Yidong <cyd@stupidchicken.com>
4307
4308 * charset.c (load_charset_map_from_file)
4309 (load_charset_map_from_vector): Zero out allocated
4310 charset_map_entries before using them.
4311
df7e1ea0
AS
43122010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4313
4314 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4315
fe69a722
CY
43162010-02-27 Chong Yidong <cyd@stupidchicken.com>
4317
4ed28cf4
CY
4318 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4319 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4320
7379cfce
KH
43212010-02-26 Kenichi Handa <handa@m17n.org>
4322
f88cc4d6
KH
4323 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4324
7379cfce
KH
4325 * xdisp.c (reseat_to_string): Fix previous change.
4326
cf2fdcfb
CY
43272010-02-26 David Reitter <david.reitter@gmail.com>
4328
4329 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4330 Lisp_Object (Bug#4736).
4331
cc6c7c75
KH
43322010-02-25 Kenichi Handa <handa@m17n.org>
4333
4334 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4335
32e737d7
JD
43362010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4337
4338 * xterm.c (XTflash): Move declarations before statements.
4339
4340 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4341 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4342 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4343 (xg_create_tool_bar): Remove unused variables.
4344 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4345 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4346
676cae9f
CY
43472010-02-21 Chong Yidong <cyd@stupidchicken.com>
4348
4349 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4350
886cc2b8
SM
43512010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4352
4353 * term.c (fatal): Add a final \n if needed (bug#5596).
4354
ddb2d8e2
CY
43552010-02-18 Chong Yidong <cyd@stupidchicken.com>
4356
4357 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4358
2a4f8d3d
GM
43592010-02-18 Glenn Morris <rgm@gnu.org>
4360
4361 * callint.c (Finteractive): Doc fix.
4362
ebaf11b6
KH
43632010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4364
886cc2b8
SM
4365 * coding.c (record_conversion_result):
4366 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4367 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4368 memory allocation error.
4369
d0396581
KH
43702010-02-17 Kenichi Handa <handa@m17n.org>
4371
886cc2b8
SM
4372 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4373 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4374 (decode_coding): Setup ccl program here. Keep looping when the
4375 decoder stopped because the output buffer is
4376 fullfilled (bug#5534).
4377
4378 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4379
98599f74
JD
43802010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4381
471e4f04 4382 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4383 bug #5571.
886cc2b8 4384 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4385 overdrawn.
98599f74 4386
182659ae
JD
43872010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4388
4389 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4390 doing_interact here.
4391 (ice_connection_closed): New function.
4392 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4393 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4394 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4395 returns I/O error.
4396 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4397 bug #5512.
4398
9be32c4e 43992010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4400
4401 * nsfont.m (nsfont_open): The system's value for the font descent
4402 is negative, so round it down to avoid clipping.
4403
a2f3eb19
CY
44042010-02-06 Chong Yidong <cyd@stupidchicken.com>
4405
4406 * charset.c (load_charset_map_from_file)
4407 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4408 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4409
3088147c
CY
44102010-02-05 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * charset.c (load_charset_map_from_file): Allocate large
4413 charset_map_entries structure on the heap rather than the stack.
4414 (Bug#5526).
4415
b57d9029
KH
44162010-01-31 Kenichi Handa <handa@m17n.org>
4417
4418 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4419 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4420
c67d885b
CY
44212010-01-31 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4424 <deactivated@gmail.com> (Bug#3605).
4425
8fab2362
CY
44262010-01-31 David De La Harpe Golden <david@harpegolden.net>
4427
4428 * fileio.c (Frename_file): Correctly rename symlinks to
4429 directories (Bug#5496).
4430
cb2a62f2
CY
44312010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4432
4433 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4434
944c7a26
AS
44352010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4436
4437 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4438
c024ac08
CY
44392010-01-29 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * frame.c (DEFAULT_ROWS): Change default to 35.
4442
4443 * xfns.c (x_default_font_parameter): Change default XFT font to
4444 monospace-10 (Bug#3643).
4445
af93af83
EZ
44462010-01-29 Eli Zaretskii <eliz@gnu.org>
4447
4448 * w32inevt.c (key_event): Remove unnecessary comparison of
4449 event->uChar.AsciiChar with 128.
4450
ca0eb708
CY
44512010-01-28 Chong Yidong <cyd@stupidchicken.com>
4452
b242dbfc
CY
4453 * fileio.c (Frename_file): Fix last change (Bug#5487).
4454
ca0eb708
CY
4455 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4456
4457 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4458
45d45af5
JD
44592010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4460
4461 * xfns.c (Fx_create_frame): Remove window size matching code from
4462 2010-01-15.
a73f9c9d 4463 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4464
7e233730
JR
44652010-01-27 Jason Rumney <jasonr@gnu.org>
4466
4467 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4468 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4469
86e893e3
KH
44702010-01-27 Kenichi Handa <handa@m17n.org>
4471
4472 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4473 pattern string (Bug#4209).
86e893e3 4474
8719abec
CY
44752010-01-27 David De La Harpe Golden <david@harpegolden.net>
4476
4477 * fileio.c (Frename_file): Call copy-directory and
4478 delete-directory for directories, in order to handle cross-device
4479 renaming (Bug#3353).
4480
844794c8
JD
44812010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4482
aa3e13b5 4483 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4484 sizes 24 and 10. Bug #3643.
844794c8 4485
bd4b5750
SM
44862010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4487
8dc1adf6 4488 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4489 * keymap.c (shadow_lookup): Add `remap' arg.
4490 (describe_map, describe_vector): Update calls to shadow_lookup.
4491 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4492 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4493 perform remapping during shadow_lookup check of remapped_sequences.
4494
285d07e2
CY
44952010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4496
4497 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4498 png_check_sig, which has been removed in libpng 1.4.
4499
c6d09b8d
CY
45002010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4501
4502 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4503 lacks this header file).
4504
3d782998
YM
45052010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4506
4507 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4508 as in Emacs 22.
4509
2aff7c53
YM
45102010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4511
4512 * lisp.h (make_pure_string): String pointer arg now points to const.
4513
4514 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4515 args now point to const.
4516
74327f7a
EZ
45172010-01-22 Eli Zaretskii <eliz@gnu.org>
4518
4519 * lread.c (Fload): Don't treat files without .elc extension as
4520 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4521 them. (bug#5303)
4522
4d1e6632
KH
45232010-01-20 Kenichi Handa <handa@m17n.org>
4524
4525 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4526 treat the source as actual byte sequence.
4527
1fdede8f
AM
45282010-01-19 Alan Mackenzie <acm@muc.de>
4529
4530 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4531 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4532 `signal_after_change_p' to `coherent_change_p', and make the
4533 invocation of `modify_region' conditional on it.
4534
67477f30
JD
45352010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4536
4537 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4538 for debug purpose.
4539 (syms_of_xsettings): Declare xft-settings.
4540
244b023e
CY
45412010-01-18 Chong Yidong <cyd@stupidchicken.com>
4542
4543 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4544
617364fe
CY
45452010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4546
4547 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4548
4fe22cdf
CY
45492010-01-16 Chong Yidong <cyd@stupidchicken.com>
4550
4551 * emacs.c (standard_args): Adjust arg priorities to reflect how
4552 they are processed in startup.el.
4553
e118d2be
AS
45542010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4555
4556 * Makefile.in (lisp, shortlisp): Update.
4557
523ae620
SM
45582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4559
4560 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4561 code, link the new kboard into all_kboard before running Lisp code,
4562 and protect the new terminal with GCPRO (Bug#5365).
4563 (x_term_init): Remove unused var `atom'.
4564 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4565
f0d13888
JD
45662010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4567
4568 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4569 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4570 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4571 this. Bug #3643.
f0d13888 4572
cc320f07
KH
45732010-01-15 Kenichi Handa <handa@m17n.org>
4574
4575 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4576
7ffdf101
CY
45772010-01-15 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * nsterm.m (Qnone): Define.
4580
4581 * nsfns.m (Qnone): Move definition to nsterm.m.
4582
d12bd917
KH
45832010-01-14 Kenichi Handa <handa@m17n.org>
4584
4585 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4586 systems.
4587
d9a7c140
KH
45882010-01-14 Kenichi Handa <handa@m17n.org>
4589
4590 Make auto-composition work on all buffers even if they are
4591 fundamental mode.
4592
4593 * composite.c (Vauto_composition_mode): New variable.
4594 (composition_compute_stop_pos): Check Vauto_composition_mode
4595 instead of Vauto_composition_function.
4596 (composition_adjust_point, Ffind_composition_internal): Likewise.
4597 (syms_of_composite): Declare Lisp variable
4598 "auto-composition-mode" here.
4599
63286bb2
CY
46002010-01-13 Chong Yidong <cyd@stupidchicken.com>
4601
4602 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4603 during call to vendor-specific-keysyms (Bug#5365).
4604
c2623ee7
YM
46052010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4606
4607 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4608 Call SIGNAL_THREAD_CHECK (Bug#5333).
4609
4610 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4611 Call SIGNAL_THREAD_CHECK.
4612
0b5397c2
SM
46132010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4614
4615 Try to fix bug#5314. This is probably not the final word, tho.
4616 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4617 recent-auto-save-p as a side-effect.
4618 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4619 * buffer.c (Fkill_buffer, reset_buffer):
4620 * editfns.c (Fsubst_char_in_region):
4621 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4622 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4623
dc954cb2
KH
46242010-01-13 Kenichi Handa <handa@m17n.org>
4625
4626 Display buffer name, etc. in mode line by composing correctly.
4627
4628 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4629 STRING is not nil.
0b5397c2 4630 (display_mode_element): Adjust for the change of
dc954cb2
KH
4631 decode_mode_spec and display_line.
4632 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4633 (display_string): Handle the case that STRING is non-null and
4634 LISP_STRING is not nil.
4635
0b5397c2
SM
4636 * xterm.c (x_draw_composite_glyph_string_foreground):
4637 Pay attention to s->face->overstrike.
dc954cb2
KH
4638
4639 * composite.c (composition_reseat_it): Don't check PT if STRING is
4640 non nil.
4641
4a00eaca
YM
46422010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4643
4644 * keyboard.c (read_char): Don't apply previous change when current
4645 buffer is unchanged by command execution.
4646
60abb287
JD
46472010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4648
4649 * keyboard.c (read_char): Return after executing from special map.
4650
893db5bc
GM
46512010-01-12 Glenn Morris <rgm@gnu.org>
4652
4653 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4654 bug-gnu-emacs rather than emacs-pretest-bug.
4655
4d03ece0
CY
46562010-01-11 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4659 initializing the Lisp variables that depend on them.
4660
1df47e38
YM
46612010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4662
4663 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4664 Clear areas that will not be updated after change of menu bar lines.
4665 Clear the menu bar window's current matrix when the window gets empty.
4666
2f1c6384
CY
46672010-01-09 Chong Yidong <cyd@stupidchicken.com>
4668
e398c61c
CY
4669 * intervals.h, textprop.c (extend_property_ranges): Return value
4670 and args changed. Discard properties that begin at or after the
4671 new end (Bug#5306).
4672
4673 * editfns.c (Fformat): Caller changed.
4674
e5a29a10
CY
4675 * nsterm.m (ns_set_default_prefs): Delete function.
4676 (syms_of_nsterm): Initialize ns_command_modifier,
4677 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4678 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4679
2f1c6384
CY
4680 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4681 position (Bug#4040).
4682
d427a9fa
EZ
46832010-01-09 Eli Zaretskii <eliz@gnu.org>
4684
4685 * editfns.c (Ffloat_time): Doc fix.
4686
21b9df2f
JD
46872010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4688
4689 * xfns.c (Fx_create_frame): Don't create frame larger than display
4690 by default bug#3643.
4691
4b00d3b1
YM
46922010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4693
4694 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4695 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4696 windows above internal border.
4697
4698 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4699 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4700 windows above internal border.
4701
4702 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4703 tool bar windows specially.
4704
4705 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4706
4707 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4708 specially.
4709 (XTflash): Take account of menu bar height.
4710
4711 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4712 specially.
4713
5075d853
JD
47142010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4715
ac146f82 4716 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4717 also be true before we can return early (bug #5339).
4718
474217c8
CY
47192010-01-06 David Reitter <david.reitter@gmail.com>
4720
4721 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4722 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4723 (Bug#3233).
4724
c0e6d47d
JD
47252010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4726
d0cf45b7
JD
4727 * font.c (font_open_entity): Enable chache and call cached_font_ok
4728 for the driver if defined.
4729 (QCuser_spec): New symbol.
4730 (font_spec_from_name): Save name as user-spec.
4731 (font_load_for_lface): Keep user-spec instead of name.
4732 (font_open_by_name): Save name as user-spec.
4733 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4734 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4735
4736 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4737 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4738 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4739
4740 * font.h (struct font_driver): Add cached_font_ok.
4741
c0e6d47d
JD
4742 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4743
7c583cd8
JD
47442010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4745
4746 * xterm.c (x_new_font): Move code for setting rows/cols before
4747 resizing ...
ac146f82 4748 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4749
4750 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4751 (xg_frame_resized, xg_frame_set_char_size):
4752 Call xg_clear_under_internal_border.
7c583cd8 4753 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4754
03f77f0a
CY
47552010-01-05 Chong Yidong <cyd@stupidchicken.com>
4756
4757 * keyboard.c (read_key_sequence): Catch keyboard switch after
4758 making a new tty frame (Bug#5095).
4759
2a1ef5be
KH
47602010-01-05 Kenichi Handa <handa@m17n.org>
4761
4762 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4763
e3eb1dae
SM
47642010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4765
4766 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4767 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4768 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4769
777013f2
MA
47702010-01-03 Michael Albinus <michael.albinus@gmx.de>
4771
4772 * dbusbind.c (xd_add_watch): Improve debug message.
4773 (xd_remove_watch): Improve debug message. If DATA is the session
4774 bus, unset D-Bus session environment.
4775 (Fdbus_init_bus): Pass the bus as argument to
4776 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4777
8932b1c2
CY
47782010-01-01 Chong Yidong <cyd@stupidchicken.com>
4779
87231e2c
CY
4780 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4781
4801c5fa
CY
4782 * lread.c (syms_of_lread): Make it clearer that these are the
4783 names of loaded files (Bug#5068).
4784
8932b1c2
CY
4785 * eval.c (run_hook_with_args): Handle the case where the global
4786 value has the obsolete single-function form (Bug#5026).
4787
11e3c684
CY
47882009-12-27 Chong Yidong <cyd@stupidchicken.com>
4789
4790 * minibuf.c (Fall_completions): Minor optimization.
4791
5b28ce35
EZ
47922009-12-26 Eli Zaretskii <eliz@gnu.org>
4793
5ce6e4f4
JB
4794 * .gdbinit (pgx): Fix display of composite glyphs.
4795 Display cmp.from and cmp.to as well.
4796 (pitx): Fix last change.
5b28ce35 4797
bcffff46
KH
47982009-12-25 Kenichi Handa <handa@m17n.org>
4799
4800 * composite.h (composition_adjust_point): Update prototype.
4801
4802 * composite.c (composition_reseat_it): Don't make a composition
4803 spanning over point.
4804 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4805 composable characters.
4806 (composition_adjust_point): New arg NEW_PT. Callers changed.
4807
4808 * keyboard.c (command_loop_1): Force redisplay if the last point
4809 was within a composition.
4810 (adjust_point_for_property): Don't adjust point for automatic
4811 composition when called after buffer modification.
4812
3f670e9a
EZ
48132009-12-19 Eli Zaretskii <eliz@gnu.org>
4814
5ce6e4f4
JB
4815 * .gdbinit (pitx): Don't use enum names, use their values.
4816 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4817 (pgx): Don't use enum names, use their values.
4818 (pitmethod): New helper command.
4819 (pitx): Use it to display iteration method.
4820 (pgrowit): New command.
4821
ad903955
EZ
4822 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4823
3f670e9a
EZ
4824 Update dependencies in Makefile.in.
4825
4826 * Makefile.in (alloc.o): Depend on termhooks.h.
4827 (atimer.o): Depend on blockinput.h.
4828 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4829 and frame.h.
4830 (callint.o): Depend on systime.h, coding.h, and composite.h.
4831 (callproc.o): Depend on buffer.h.
4832 (casefiddle.o): Don't depend on charset.h.
4833 (casetab.o): Depend on character.h.
4834 (ccl.o): Depend on composite.h.
4835 (chartab.o): Depend on ccl.h.
4836 (cm.o): Depend on dispextern.h.
4837 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4838 (coding.o): Don't depend on $(INTERVALS_H).
4839 (composite.o): Don't depend on dispextern.h explicitly (it's in
4840 $(INTERVALS_H)). Depend on ccl.h.
4841 (data.o): Depend on systime.h, coding.h, composite.h,
4842 dispextern.h, font.h, and ccl.h.
4843 (dired.o): Depend on composite.h.
4844 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4845 composite.h (it's in $(INTERVALS_H)).
4846 (doc.o): Depend on systime.h, coding.h, and composite.h.
4847 (editfns.o): Don't depend explicitly on dispextern.h.
4848 (emacs.o): Depend on frame.h and coding.h.
4849 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4850 (fileio.o): Depend on frame.h and commands.h. Don't depend
4851 explicitly on dispextern.h.
4852 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4853 composite.h.
4854 (fns.o): Don't depend on termhooks.h.
4855 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4856 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4857 coding.h, $(INTERVALS_H), window.h, xterm.h.
4858 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4859 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4860 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4861 fontset.h, ccl.h, and ftfont.h.
4862 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4863 (gtkutil.o): Depend on dispextern.h and composite.h.
4864 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4865 termhooks.h, and ccl.h.
4866 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4867 (intervals.o): Depend on systime.h and coding.h.
4868 (keyboard.o): Depend on composite.h and coding.h.
4869 (keymap.o): Depend on coding.h and frame.h.
4870 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4871 (macros.o): Depend on systime.h, coding.h, and composite.h.
4872 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4873 and atimer.h.
4874 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4875 dispextern.h explicitly.
0b5397c2
SM
4876 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4877 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4878 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4879 (regex.o): Don't depend on charset.h.
4880 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4881 (search.o): Don't depend explicitly on composite.h.
4882 (sound.o): Depend on atimer.h and systime.h.
4883 (syntax.o): Don't depend explicitly on composite.h.
4884 (sysdep.o): Depend on coding.h and composite.h.
4885 (term.o): Depend on xterm.h and buffer.h.
4886 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4887 (textprop.o): Don't depend on dispextern.h explicitly.
4888 (undo.o): Depend on dispextern.h.
4889 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4890 dispextern.h and composite.h explicitly.
4891 (xdisp.o): Depend on ccl.h.
4892 (xfaces.o): Depend on coding.h and ccl.h.
4893 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4894 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4895 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4896 ftfont.h.
4897 (xgselect.o): New dependency.
4898 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4899 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4900 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4901 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4902 (xsmfns.o): Depend on frame.h and dispextern.h.
4903 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4904 sysselect.h.
4905
7a6f7fea
AS
49062009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4907
4908 * font.c (Fclear_font_cache): Pass correct cache argument to
4909 font_clear_cache.
4910
f4c21026
AS
49112009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4912
4913 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4914 twice.
4915
f7ab0997
CY
49162009-12-15 Chong Yidong <cyd@stupidchicken.com>
4917
4918 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4919 calling file-remote-p. Reported by Jim Meyering.
4920
fa8e045a
MA
49212009-12-15 Michael Albinus <michael.albinus@gmx.de>
4922
4923 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4924 avoid compiler warnings. (Bug #5217)
fa8e045a 4925
a63dba42
KH
49262009-12-14 Kenichi Handa <handa@m17n.org>
4927
4928 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4929 in 8-bit encoding.
4930
5ce6e4f4 49312009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4932
4933 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4934 tooltip windows.
4935
223e5fc6
JD
49362009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4937
36acb2a7
JD
4938 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4939 Xatom_net_window_type.
4940
4941 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4942 Xatom_net_window_type.
4943
b8f00677
JD
4944 * xterm.c (my_log_handler): New function.
4945 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4946 so we can filter out buggy messages. (Bug #5120).
b8f00677 4947
e5f0bc9a
JD
4948 * xterm.c (xg_scroll_callback): Parameter list changed,
4949 use parameter GtkScrollType to determine scroll/line/page.
4950 Only allow dragging if a button < 4 is grabbed (bug #5177).
4951 (xg_end_scroll_callback): New function.
4952 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4953 xg_create_scroll_bar.
4954
4955 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4956 (scroll_end_callback): Remove.
4957 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4958 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4959 bug #5177.
e5f0bc9a
JD
4960 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4961 bug #5177.
4962
4963 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4964 (xg_create_scroll_bar): Add GCallback end_callback.
4965
223e5fc6
JD
4966 * xftfont.c (QClcdfilter): New variable.
4967 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4968 (syms_of_xftfont): Initialize QClcdfilter.
4969
3c055b77
JD
49702009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4971
4972 * xsettings.c (struct xsettings): Add member seen.
4973 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4974 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4975 (apply_xft_settings): Only update Xft settings with what member seen
4976 indicates as new.
4977
05fe33ff
EZ
49782009-12-12 Eli Zaretskii <eliz@gnu.org>
4979
c4cc8b9a 4980 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4981 (struct glyph): Use EMACS_INT for charpos.
4982 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4983 region_beg_charpos, region_end_charpos,
4984 redisplay_end_trigger_charpos, and also for
4985 iterator_stack_entry.end_charpos and
4986 iterator_stack_entry.stop_charpos.
4987
e8d7886a
JD
49882009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4989
5ce6e4f4 4990 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4991 (xg_create_scroll_bar): Call scroll_end_callback on button release
4992 event (bug #5177).
4993 (xg_event_is_for_scrollbar): != replaced with ==.
4994
d0db2ec8
KH
49952009-12-12 Kenichi Handa <handa@m17n.org>
4996
4997 * ftfont.c (struct ftfont_info): New member matrix.
4998 (ftfont_open): Setup xftfont_info->matrix.
4999 (MFLTFontFT): New member matrix.
5000 (FLOOR, CEIL, ROUND): New macros.
5001 (ftfont_get_metrics): Handle matrix transformation.
5002 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5003
5004 * xftfont.c (struct xftfont_info): New member matrix.
5005 (xftfont_open): Setup xftfont_info->matrix.
5006
50072009-12-10 Kenichi Handa <handa@m17n.org>
5008
5009 * xdisp.c (append_space_for_newline): Consider face-remapping.
5010
2cc7b62f
AS
50112009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5012
b87dd913
AS
5013 * xsettings.c: Include "keyboard.h".
5014
eba5eb94
AS
5015 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5016
2cc7b62f
AS
5017 Fix implicit function declarations.
5018 * cmds.c: Include "frame.h".
5019 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5020 * frame.h: Move declaration of delete_frame outside of
5021 HAVE_WINDOW_SYSTEM.
5022
a4ef73c8
CY
50232009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5024
5025 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5026
5027 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5028 GTK builds.
5029
944a300c
AS
50302009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5031
5032 * unexelf.c (unexec): Don't search for .data twice.
5033
022eef62
CY
50342009-12-05 Chong Yidong <cyd@stupidchicken.com>
5035
426ac949
CY
5036 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5037 if push failed.
5038 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5039 of push_display_prop (Bug#5000).
5040
022eef62
CY
5041 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5042 value of font_list_entities (Bug#5085).
5043
be95bee9
JB
50442009-12-04 Juanma Barranquero <lekktu@gmail.com>
5045
5046 Fix `string-to-number' to deal consistently with integers and floats.
5047 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5048 trailing characters, not just whitespace.
5049 (read1): Pass new arg 0 to keep old behavior.
5050 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5051 trailing chars, as it is already done for integers. Doc fixes.
5052 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5053
24c2d7ce
EZ
50542009-12-04 Eli Zaretskii <eliz@gnu.org>
5055
0b5397c2
SM
5056 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5057 Delete unused enumeration value.
24c2d7ce 5058
7e694795
EZ
50592009-12-03 Eli Zaretskii <eliz@gnu.org>
5060
5061 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5062
84b31826
SM
50632009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5064
5065 * process.c (Fmake_network_process): Fix up the tests for
5066 "connectionless socket", so they DTRT for seqpacket sockets as well.
5067
f00c449b
SM
50682009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5069
5070 * process.c (Qseqpacket): New symbol.
5071 (HAVE_SEQPACKET): New macro.
5072 (Fmake_network_process): Accept new :type `seqpacket'.
5073 (init_process): Add `seqpacket' feature when applicable.
5074 (syms_of_process): Initialize Qseqpacket.
5075
8096a0ff
YM
50762009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5077
5078 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5079 if entity is Qnil.
5080
3e0de07f
SM
50812009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5082
5083 * print.c (print_preprocess): Preprocess the key_and_value table of
5084 hashtables, even tho they're "hidden" (bug#5082).
5085
abeafb2a
JD
50862009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5087
5088 * frame.c (frame_make_pointer_invisible)
5089 (frame_make_pointer_visible): Declare f before statements.
5090
4bf47195
EZ
50912009-11-28 Eli Zaretskii <eliz@gnu.org>
5092
5093 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5094 omitted dependencies on lisp.h.
5095
c525b3f2
JD
50962009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5097
ece2d4ed
JD
5098 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5099 is NULL.
5100
5101 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5102
5103 * frame.c (frame_make_pointer_invisible)
3e0de07f 5104 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5105 frame.
5106
c525b3f2
JD
5107 * search.c (simple_search): Remove warning by making *p const.
5108
2f00e299
DN
51092009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5110
5111 * xdisp.c (power_letter): Remove duplicate const.
5112
084b049b
JD
51132009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5114
a1fadc6f
JD
5115 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5116
5ce6e4f4 5117 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5118 defaults (bug #5025).
5119
28259cac
SM
51202009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5121
5122 * insdel.c (adjust_markers_for_delete): Move it in the
5123 right direction! (bug#4803)
5124
e8e14166
YM
51252009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5126
5127 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5128
5129 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5130
86677b58
GM
51312009-11-24 Glenn Morris <rgm@gnu.org>
5132
5133 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5134
581e51e8
JD
51352009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5136
cfc86c7a
JD
5137 * Makefile.in: Must create deps for ecrt0.o in its rule.
5138
581e51e8
JD
5139 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5140 because that is what Gtk+ font dialog understands.
5141
5142 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5143 of Fcopy_sequence.
5144 (font_open_by_name): Put name given into QCname for font-object returned.
5145
5146 * frame.c (x_set_font): Save original font name as frame parameter
5147 font-parameter.
5148
5149 * xsettings.c (set_default_xft_settings): New function.
5150 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5151 is found.
5152
8b264ecb
AS
51532009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5154
5155 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5156 searching backwards through multibyte buffer.
5157
872870b2
JD
51582009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5159
5160 * xterm.c: #include xgselect.h.
5161 (x_initialize): Call xgselect_initialize.
5162
5163 * xsettings.c (something_changedCB): C++ comments => C comments.
5164 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5165 does that now.
5166
5167 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5168 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5169 (scroll_bar_button_cb): Remove.
5ce6e4f4 5170 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5171 event.
5172 (xg_create_scroll_bar): Don't bind button-press-event and
5173 button-release-event.
5174
5175 * process.c: Include xgselect.h if defined (USE_GTK) ||
5176 defined (HAVE_GCONF).
5177 (wait_reading_process_output): Call xg_select for the same condition.
5178
5179 * xgselect.c (xg_select): New function to better integrate with
5180 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5181
5182 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5183
5184 * Makefile.in (XOBJ): Add xgselect.o.
5185
62a6e103
AS
51862009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5187
0b5397c2
SM
5188 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5189 Remove ignored second argument. All callers changed.
62a6e103
AS
5190 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5191 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5192 * xdisp.c (string_char_and_length): Likewise.
5193
b0ca0f33
DN
51942009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5195
5196 * xterm.c (x_new_font):
5197 * print.c (print_object):
5198 * cmds.c (Fself_insert_command): Move declarations before statements.
5199
dd5a6279
CY
52002009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5201
5202 * s/cygwin.h: Remove unneeded linker flags.
5203
4a8e097d
JD
52042009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5205
0d1d0d26
JD
5206 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5207
5208 * xsettings.h: Declare xsettings_get_system_font.
5209
5210 * xsettings.c (xsettings_get_system_font): New function.
5211 (init_gconf): No use initiating gconf unless we have Xft also.
5212 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5213 HAVE_GCONF.
5214
4a8e097d
JD
5215 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5216 add a blank entry so it doesn't collapse into nothing.
5217
8ab1650e
SM
52182009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5219
5220 * lread.c (Funintern): Comment out last change.
5221
82c602f0
RS
52222009-11-19 Richard Stallman <rms@gnu.org>
5223
5224 * lread.c (Funintern): Error if symbol is t or nil.
5225
87e32266
SM
52262009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5227
5228 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5229 representation of Lisp integers.
5230 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5231
1b9ac145
AS
52322009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5233
5234 * lisp.h: Remove declaration of Ffont_get_system_font.
5235 * xfns.c: Move include of "xsettings.h".
5236 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5237
dfb3c4c6
JD
52382009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5239
87e32266
SM
5240 * xsettings.c (something_changedCB, Ffont_get_system_font):
5241 Check use_system_font.
dfb3c4c6
JD
5242 (syms_of_xsettings): DEFVAR font-use-system-font.
5243
9370c1d8
AS
52442009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5245
25fe851a
AS
5246 * xfns.c (x_default_font_parameter): Remove dead assignment.
5247
9370c1d8
AS
5248 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5249
637fa988
JD
52502009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5251
87e32266 5252 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5253 not have FC_LCD_*. #define them if not there.
a6eb20d8 5254
87e32266 5255 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5256
637fa988
JD
5257 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5258
5259 * xterm.c (handle_one_xevent): Call xft_settings_event for
5260 ClientMessage, PropertyNotify and DestroyNotify.
5261 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5262 Call xsettings_initialize.
5263
5264 * xftfont.c (xftfont_fix_match): New function.
5265 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5266 Call xftfont_fix_match after XftFontMatch.
5267
5268 * xfont.c (xfont_driver): Initialize all members.
5269
87e32266
SM
5270 * xfns.c (x_default_font_parameter):
5271 Try font from Ffont_get_system_font.
637fa988
JD
5272 Do not get font from x_default_parameter if we got one from
5273 Ffont_get_system_font.
87e32266 5274 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5275
5276 * w32font.c (w32font_driver): Initialize all members.
5277
5278 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5279
5280 * lisp.h: Declare syms_of_xsettings.
5281
87e32266
SM
5282 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5283 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5284
5285 * ftfont.c (ftfont_filter_properties): New function.
5286
5287 * frame.c (x_set_font): Remove unused variable lval.
5288
87e32266 5289 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5290
5291 * font.c (font_put_extra): Don't return if val is nil, it means
5292 boolean option is off.
5293 (font_parse_fcname): Collect all extra properties in extra_props
5294 and call filter_properties for all drivers with extra_props and
5295 font as parameter.
87e32266
SM
5296 (font_open_entity): Do not use cache, it does not pick up new
5297 fontconfig settings like hinting.
637fa988
JD
5298 (font_load_for_lface): If spec had a name in it, store it in entity.
5299
a73f9c9d 5300 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5301
5302 * config.in: HAVE_GCONF is new.
5303
5304 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5305 xsettings.o is new.
5306
5a942932
KH
53072009-11-17 Kenichi Handa <handa@m17n.org>
5308
5309 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5310 back to the default font in case that no suitable font is found.
5311
b7c7a4d1
SM
53122009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5313
5314 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5315 Suggested by Chad Brown <yandros@mit.edu>.
5316 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5317
072f1e39
JD
53182009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5319
5320 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5321
5d1e70a2
AS
53222009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5323
87e32266 5324 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5325
a53cfbe5
JD
53262009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5327
473a99b7
JD
5328 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5329 has a parent.
5330
a53cfbe5 5331 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5332 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5333
5334 * config.in: Generated (AUTO_DEPEND).
5335
f04bb9b2
MA
53362009-11-13 Michael Albinus <michael.albinus@gmx.de>
5337
b7c7a4d1 5338 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5339 Vdbus_registered_functions_table, because it contains also
5340 properties. Fix docstring.
b7c7a4d1 5341 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5342
8f11f7ec
SM
53432009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5344
5345 * alloc.c (mark_object): Don't reprocess marked strings.
5346 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5347 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5348
8a605fe8
KH
53492009-11-13 Kenichi Handa <handa@m17n.org>
5350
8f11f7ec 5351 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5352 semantics of Vword_combining_categories.
5353 (Vword_combining_categories): Describe the slight change of the
5354 semantics.
5355
241c4680
EZ
53562009-11-13 Eli Zaretskii <eliz@gnu.org>
5357
5358 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5359
5360 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5361
5d58e44c
SM
53622009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5363
5364 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5365
5e13f9d3
JB
53662009-11-12 Juanma Barranquero <lekktu@gmail.com>
5367
5368 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5369
cf54c754
DR
53702009-11-11 David Reitter <david.reitter@gmail.com>
5371
5372 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5373 variables to fix 2009-11-09 change.
5374
a4ada374
DN
53752009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5376
91433552
DN
5377 * process.c (ifflag_def): Make flag_sym constant.
5378 (Fnetwork_interface_info): Use a constant pointer.
5379 (ifflag_table):
5380 * xfns.c (cursor_bits):
5381 * xdisp.c (power_letter):
5382 * termcap.c (speeds, esctab):
5383 * sysdep.c (baud_convert):
5384 * keyboard.c (lispy_accent_codes, modifier_names):
5385 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5386 (jpeg_format, tiff_format, gif_format, svg_format)
5387 (interlace_start, interlace_increment, gs_format):
5388 * gtkutil.c (separator_names):
5389 * fringe.c (swap_nibble):
5390 * fns.c (base64_value_to_char, base64_char_to_value):
5391 * fileio.c (make_temp_name_tbl):
5392 * coding.c (suffixes): Make constant.
5393
f4265f6c
DN
5394 * frame.c (make_initial_frame):
5395 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5396 build_string.
5397 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5398
04420943
DN
5399 * s/freebsd.h:
5400 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5401
0a5d24ae
DN
5402 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5403 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5404
a4ada374
DN
5405 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5406 * xterm.c (syms_of_xterm):
5407 * xfaces.c (syms_of_xfaces):
5408 * xdisp.c (syms_of_xdisp):
5409 * lread.c (syms_of_lread):
5410 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5411 build_string.
91433552 5412
a4ada374
DN
5413 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5414
af98fc7f
SM
54152009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5416
8ab1650e 5417 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5418
e90292a9
JD
54192009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5420
5421 * keyboard.h: Declare timer_check.
5422
5423 * keyboard.c (timer_check_2): New function that does what the old
5424 timer_check did.
5425 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5426 returned, i.e. don't return -1 with timers pending.
5427
5428 * process.c: Remove extern declaration of timer_check.
5429
5430 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5431 even if timer_check returned -1.
5432
af98fc7f
SM
5433 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5434 xg_dialog_data.
e90292a9
JD
5435 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5436 the event loop.
5437 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5438 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5439 Destroy the dialog after xg_dialog_run.
5440
045b83c0
SM
54412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5442
5443 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5444
1fb99a3a
JD
54452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5446
5447 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5448
04e452cb
JB
54492009-11-09 Juanma Barranquero <lekktu@gmail.com>
5450
5451 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5452
ef7417fd
SM
54532009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5454
5455 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5456 w32menu.c, and nsmenu.m.
5457 Simplify the obsolete case where position is nil.
5458 (cleanup_popup_menu): New function, moved from nsmenu.m.
5459 (struct skp): Remove slot `notreal'.
5460 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5461 adjust callers.
5462 (single_menu_item): Adjust call to parse_menu_item.
5463 (syms_of_menu): Defsubr x-popup-menu.
5464 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5465 (keymap_panes): Don't export any more.
5466 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5467 (xmenu_show): Declare.
5468 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5469 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5470 * keyboard.h (parse_menu_item): Update declaration.
5471 * xmenu.c (Fx_popup_menu): Remove.
5472 (syms_of_xmenu): Don't defsubr x-popup-menu.
5473 * w32menu.c (Fx_popup_menu): Remove.
5474 (syms_of_w32menu): Don't defsubr x-popup-menu.
5475 * nsmenu.m (cleanup_popup_menu): Remove.
5476 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5477 moved to menu.c's Fx_popup_menu.
5478 (Fx_popup_menu): Remove.
5479 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5480 menu_items (it's done in menu.c already).
5481
424d6179
SM
54822009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5483
5484 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5485 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5486
c0df13a6 54872009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5488
5489 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5490 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5491 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5492 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5493
2de9f71c
SM
54942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5495
5496 Let integers use up 2 tags to give them one extra bit and thus double
5497 their range.
5498 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5499 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5500 New macros.
5501 (enum Lisp_Type): Use them. Give explicit values.
5502 (Lisp_Type_Limit): Remove.
5503 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5504 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5505 Pay attention to USE_2_TAGS_FOR_INTS.
5506 (INTEGERP): Use LISP_INT_TAG_P.
5507 * fns.c (internal_equal): Simplify the default case.
5508 (sxhash): Use case_Lisp_Int.
5509 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5510 any more.
5511 (Ftype_of): Use case_Lisp_Int.
5512 (store_symval_forwarding): Take into account the fact that Ints can
5513 now have more than one tag.
5514 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5515 buffer_slot_type_mismatch):
5516 * xfaces.c (face_attr_equal_p):
5517 * print.c (print_object):
5518 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5519 Use case_Lisp_Int.
5520
323637a2
EZ
55212009-11-06 Eli Zaretskii <eliz@gnu.org>
5522
7ac65b38
EZ
5523 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5524
323637a2
EZ
5525 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5526 warning.
5527
e511451f
JD
55282009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5529
5530 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5531
5532 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5533
5534 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5535 ButtonPressRelease and MotionNotify (bug#4870).
5536
5e2327cf
DN
55372009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5538
5adc433e
DN
5539 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5540
d67b4f80
DN
5541 * xterm.c (syms_of_xterm):
5542 * xselect.c (syms_of_xselect):
5543 * xmenu.c (syms_of_xmenu):
5544 * xfns.c (syms_of_xfns):
5545 * xfaces.c (syms_of_xfaces):
5546 * xdisp.c (syms_of_xdisp):
5547 * window.c (syms_of_window):
5548 * w32fns.c (syms_of_w32fns):
5549 * undo.c (syms_of_undo):
5550 * textprop.c (syms_of_textprop):
5551 * terminal.c (syms_of_terminal):
5552 * syntax.c (syms_of_syntax):
5553 * sound.c (syms_of_sound):
5554 * search.c (syms_of_search):
5555 * print.c (syms_of_print):
5556 * minibuf.c (syms_of_minibuf):
5557 * macros.c (syms_of_macros):
5558 * keymap.c (syms_of_keymap, initial_define_key)
5559 (initial_define_lispy_key):
5560 * keyboard.c (syms_of_keyboard):
5561 * insdel.c (syms_of_insdel):
5562 * image.c (syms_of_image):
5563 * fringe.c (syms_of_fringe):
5564 * frame.c (syms_of_frame):
5565 * fontset.c (syms_of_fontset):
5566 * fns.c (syms_of_fns):
5567 * fns.c (syms_of_fns):
5568 * fileio.c (syms_of_fileio):
5569 * fileio.c (syms_of_fileio):
5570 * eval.c (syms_of_eval):
5571 * doc.c (syms_of_doc):
5572 * dispnew.c (syms_of_display):
5573 * dired.c (syms_of_dired):
5574 * dbusbind.c (syms_of_dbusbind):
5575 * data.c (syms_of_data):
5576 * composite.c (syms_of_composite):
5577 * coding.c (syms_of_coding):
5578 * cmds.c (syms_of_cmds):
5579 * charset.c (define_charset_internal, syms_of_character):
5580 * ccl.c (syms_of_ccl):
5581 * category.c (syms_of_category, init_category_once):
5582 * casetab.c (syms_of_casetab):
5583 * casefiddle.c (syms_of_casefiddle):
5584 * callint.c (syms_of_callint):
5585 * bytecode.c (syms_of_bytecode):
5586 * buffer.c (keys_of_buffer, syms_of_buffer):
5587 * alloc.c (syms_of_alloc):
5588 * process.c (syms_of_process, init_process):
5589 * lread.c (syms_of_lread, init_obarray):
5590 * font.c (build_style_table):
5591 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5592 intern_c_string, calls to make_pure_string with
5593 make_pure_c_string. Use pure_cons instead of Fcons.
5594
5e2327cf
DN
5595 * process.c (socket_options): Make it const.
5596 (set_socket_option, init_process): Use a const pointer.
5597
5598 * lread.c (intern_c_string): New function.
5599 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5600 (defvar_int): Uset it. Make the name const char*.
5601
5602 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5603 (defvar_int): Update prototypes.
5604 (DEFUN, EXFUN): Support for prototypes is now required.
5605 (intern_c_string): New prototype.
5606 (struct Lisp_Subr): Make symbol_name constant.
5607
5608 * font.c (struct table_entry): Remove unused member. Make NAMES
5609 constant.
5610 (weight_table, slant_table, width_table): Make constant.
5611
5612 * emacs.c (struct standard_args): Make name and longname constant.
5613
5614 * character.h (DEFSYM): Use intern_c_string.
5615
a56eaaef
DN
56162009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5617
5618 * alloc.c (make_pure_c_string): New function.
5619
5620 * eval.c (Fautoload): Purecopy all arguments.
5621
f6a07420
KH
56222009-11-05 Kenichi Handa <handa@m17n.org>
5623
5624 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5625 the buffer in case of replace.
5626
5d28d4b1
DN
56272009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5628
5629 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5630
b349d111
SM
56312009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5632
d528b1ce
SM
5633 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5634 when applicable (bug#4851).
5635
b349d111
SM
5636 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5637 (P_): Support for prototypes is now required.
5638
c38eb027
CY
56392009-10-31 Chong Yidong <cyd@stupidchicken.com>
5640
5641 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5642 (Bug#4827).
5643
0405f8d9
EZ
56442009-10-30 Eli Zaretskii <eliz@gnu.org>
5645
d528b1ce 5646 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5647
ca0a881a
DN
56482009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5649
5650 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5651
d528b1ce
SM
5652 * lread.c (Fload): Purecopy the file name when building
5653 Vpreloaded_file_list.
ca0a881a 5654
47e0e0e4
JR
56552009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5656
5657 * w32fns.c (syms_of_w32fns): Change default value of
5658 w32-scroll-lock-modifier to nil. (Bug#2827)
5659
057bce6f
JB
56602009-10-26 Juanma Barranquero <lekktu@gmail.com>
5661
782a943e 5662 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5663
242bc74c
AS
56642009-10-26 Andreas Schwab <schwab@redhat.com>
5665
5666 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5667
522d013a
JB
56682009-10-26 Juanma Barranquero <lekktu@gmail.com>
5669
5670 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5671 For delta < 0, skip check that only makes sense when the mini-window
5672 is going to be enlarged. (Bug#4534)
5673
18060980
CY
56742009-10-25 Chong Yidong <cyd@stupidchicken.com>
5675
5676 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5677 string in menu maps (Bug#4471).
5678
fec8f0fe
CY
56792009-10-24 Chong Yidong <cyd@stupidchicken.com>
5680
5681 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5682 FRAME_NS_VIEW on terminal frames (Bug#4765).
5683
10d66ec0
AS
56842009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5685
1cae01f7
AS
5686 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5687 DBUS_TYPE_UINTnn separately to get proper sign extension.
5688
58a12889
AS
5689 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5690 can properly handle unsigned types.
d528b1ce 5691 (make_uid, make_gid): Remove.
58a12889 5692
987c9327
AS
5693 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5694 types again.
5695
522d013a 5696 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5697 (system_process_attributes): Likewise.
5698
905a9ed3
DN
56992009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5700
5701 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5702
5703 * eval.c (Fautoload): Purecopy the filename. Simplify.
5704
5705 * category.c (Fdefine_category): Purecopy docstring.
5706
a599b3e8
AS
57072009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5708
7b792fc9
AS
5709 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5710
a599b3e8
AS
5711 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5712
b35ac83e
CY
57132009-10-23 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5716 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5717 (Bug#4775).
5718
e8903e00
SM
57192009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5720
5721 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5722 (init_fileio_once):
5723 * lisp.h (init_fileio_once): Remove.
5724 * emacs.c (main): Don't call init_fileio_once.
5725
8f43cbf3
DN
57262009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5727
5728 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5729
26898943
AS
57302009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5731
5732 * doprnt.c (doprnt): Fix overflow check.
5733
5c646d5a
JD
57342009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5735
3132a7ea
JD
5736 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5737
5c646d5a
JD
5738 * xterm.h (x_wait_for_event): Declare it.
5739
5740 * xterm.c (pending_event_wait): New variable.
5741 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5742 see pending_event_wait.eventtype.
5743 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5744 (x_new_font): Call change_frame_size with new rows/columns before we
5745 try to resize the frame.
5c646d5a 5746 (x_wait_for_event): New function.
d528b1ce
SM
5747 (x_set_window_size_1): Don't change gravity unless change_gravity
5748 is set.
5c646d5a
JD
5749 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5750 don't change frame size, instead wait for the ConfigureNotify.
5751 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5752 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5753 (x_initialize): Initialize pending_event_wait.
5754
5755 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5756 size.
5757
5758 * widget.c (EmacsFrameSetValues): Add comment.
5759 (EmacsFrameSetCharSize): Just call x_set_window_size.
5760
5761 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5762 x_wait_for_event.
d528b1ce 5763 (flush_and_sync): Remove again.
5c646d5a
JD
5764 (xg_get_font_name): Suggest monospace if no previous font is known.
5765
e9c1637d
SM
57662009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5767
5768 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5769 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5770
5a72cccb
YM
57712009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5772
5773 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5774 processing pending events when event is filtered for input method.
ab04798f 5775 (Bug#3681)
5a72cccb 5776
2629aa37
JB
57772009-10-20 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * fns.c: Add #endif accidentally removed in previous change.
5780
c3417a74
DN
57812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5782
5783 * fns.c: Remove code for unsupported system: MAC_OS.
5784 * image.c: Likewise. Include setjmp.h.
5785
9685cef2
JD
57862009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5787
5788 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5789 pixel -1 (bug #4742).
5790
d7306fe6
DN
57912009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5792
019d2c4c
DN
5793 * process.c (create_pty): Remove conditionals for no longer
5794 supported systems: UNIPLUS and RTU.
5795
ee6bacd4
DN
5796 * xterm.c:
5797 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5798
d7306fe6
DN
5799 * alloc.c: Do not define struct catchtag.
5800 * eval.c: Move struct catchtag definition ...
5801 * lisp.h: ... here.
5802
5803 * image.c: Move png.h #include earlier to avoid warnings.
5804
5805 * xterm.c:
5806 * xsmfns.c:
5807 * xselect.c:
5808 * xrdb.c:
5809 * xmenu.c:
5810 * xftfont.c:
5811 * xfont.c:
5812 * xfns.c:
5813 * xfaces.c:
5814 * xdisp.c:
5815 * window.c:
5816 * widget.c:
5817 * w32xfns.c:
5818 * w32uniscribe.c:
5819 * w32term.c:
5820 * w32select.c:
5821 * w32reg.c:
5822 * w32proc.c:
5823 * w32menu.c:
5824 * w32inevt.c:
5825 * w32heap.c:
5826 * w32font.c:
5827 * w32fns.c:
5828 * w32console.c:
5829 * w32.c:
5830 * w16select.c:
5831 * vm-limit.c:
5832 * unexsol.c:
5833 * unexec.c:
5834 * unexcw.c:
5835 * unexaix.c:
5836 * undo.c:
5837 * tparam.c:
5838 * textprop.c:
5839 * terminfo.c:
5840 * terminal.c:
5841 * termcap.c:
5842 * term.c:
5843 * syntax.c:
5844 * sound.c:
5845 * sheap.c:
5846 * search.c:
5847 * scroll.c:
5848 * region-cache.c:
5849 * regex.c:
5850 * ralloc.c:
5851 * process.c:
5852 * print.c:
b024548b
DN
5853 * nsterm.m:
5854 * nsselect.m:
5855 * nsmenu.m:
5856 * nsimage.m:
5857 * nsfont.m:
5858 * nsfns.m:
d7306fe6
DN
5859 * msdos.c:
5860 * minibuf.c:
5861 * menu.c:
5862 * marker.c:
5863 * macros.c:
5864 * keymap.c:
5865 * keyboard.c:
5866 * intervals.c:
5867 * insdel.c:
5868 * indent.c:
5869 * gtkutil.c:
5870 * ftxfont.c:
5871 * ftfont.c:
5872 * fringe.c:
5873 * frame.c:
5874 * fontset.c:
5875 * font.c:
5876 * fns.c:
5877 * floatfns.c:
5878 * filelock.c:
5879 * fileio.c:
5880 * emacs.c:
5881 * editfns.c:
5882 * dosfns.c:
5883 * doprnt.c:
5884 * doc.c:
5885 * dispnew.c:
5886 * dired.c:
5887 * dbusbind.c:
5888 * data.c:
5889 * composite.c:
5890 * coding.c:
5891 * cmds.c:
5892 * cm.c:
5893 * chartab.c:
5894 * charset.c:
5895 * character.c:
5896 * ccl.c:
5897 * category.c:
5898 * casetab.c:
5899 * casefiddle.c:
5900 * callproc.c:
5901 * callint.c:
5902 * bytecode.c:
5903 * buffer.c:
5904 * atimer.c: Include setjmp.h. (Bug#4643)
5905
fd5f21e6
SM
59062009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5907
4c0354d7
SM
5908 Remove leftover table unibyte_to_multibyte_table.
5909 * character.c (unibyte_to_multibyte_table): Remove.
5910 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5911 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5912 * character.h (UNIBYTE_TO_CHAR): New macro.
5913 (MAKE_CHAR_MULTIBYTE): Use it.
5914 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5915 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5916 (message_dolog, set_message_1):
5917 * search.c (Freplace_match):
5918 * editfns.c (Fcompare_buffer_substrings):
5919 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5920 (concat):
5921 * insdel.c (copy_text, count_size_as_multibyte):
5922 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5923 * term.c (produce_glyphs):
5924 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5925 * regex.c (RE_CHAR_TO_MULTIBYTE):
5926 * cmds.c (internal_self_insert):
5927 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5928
fd5f21e6
SM
5929 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5930
4418646e
DN
59312009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5932
5933 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5934
35f5c1d2
JB
59352009-10-16 Juanma Barranquero <lekktu@gmail.com>
5936
5937 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5938
a0cd8f6b
AR
59392009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5940
5941 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5942 still needed under Tiger.
5943
5944 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5945
5946 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5947 __Apple__.
5948
5949 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5950
01a8d3fa
KH
59512009-10-15 Kenichi Handa <handa@m17n.org>
5952
5953 * print.c (print_object): Escape a symbol like "2E10" too.
5954
bf6c75c9 59552009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5956
5957 Cleanups and changes for 64-bit compile under Snow Leopard.
5958 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5959
5960 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5961
c5959062 5962 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5963 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5964 cast argument.
5965 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5966 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5967
5968 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5969
5970 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5971 where appropriate.
5972
5973 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5974 where appropriate.
6e4780c5
JB
5975 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5976 Use stringWithUTF8String.
bf6c75c9
AR
5977 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5978
6e4780c5
JB
5979 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5980 Add formal protocol mention to inheritance.
bf6c75c9
AR
5981 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5982
6e4780c5
JB
5983 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5984 Fix printf format.
bf6c75c9
AR
5985 (ns_query_color): Use CGFloat where appropriate.
5986 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5987 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5988 argument.
5989
3d87f118
AR
5990 * config.in (NS_HAVE_NSINTEGER): Drop.
5991
a95c8102
AR
5992 * dbusbind.c (dbus-method-return-internal)
5993 (dbus-method-error-internal): Use long format in printf, and cast
5994 argument.
5995
5996 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5997 in printf, and cast argument.
5998
6873acca 5999 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6000 cast argument.
6001
9ec6f100
GM
60022009-10-11 Glenn Morris <rgm@gnu.org>
6003
6004 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6005
5be883cd
JD
60062009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6007
6008 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6009 menu bar with a small width so it doesn't enlarge the frame.
6010
d7a39b51
JB
60112009-10-08 Juanma Barranquero <lekktu@gmail.com>
6012
6013 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6014
0c2b6f8e
GM
60152009-10-06 Glenn Morris <rgm@gnu.org>
6016
6017 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6018 SOME_MACHINE_LISP (this enters indirectly via DOC).
6019
e02131a2
EZ
60202009-10-05 Eli Zaretskii <eliz@gnu.org>
6021
6022 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6023
b4744254
EZ
60242009-10-04 Eli Zaretskii <eliz@gnu.org>
6025
6026 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6027 Doc fix.
6028
dbf64827
JB
60292009-10-03 Martin Rudalics <rudalics@gmx.at>
6030
6031 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6032
e9a0aef8
MA
60332009-10-02 Michael Albinus <michael.albinus@gmx.de>
6034
d528b1ce 6035 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6036 used anymore outside fileio.c.
6037
6038 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6039
64eb2b56
JB
60402009-10-01 Juanma Barranquero <lekktu@gmail.com>
6041
6042 * lisp.h (Qdelete_directory_internal):
6043 Declare, instead of Qdelete_directory.
6044
6045 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6046
9d28c33e
SM
60472009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6048
6049 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6050
9d8f3bd9
MA
60512009-10-01 Michael Albinus <michael.albinus@gmx.de>
6052
9d28c33e 6053 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6054 Fdelete_directory. It is not a command anymore. It has no file
6055 name handler.
6056
9694740b
SM
60572009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6058
6059 * xdisp.c (get_next_display_element): Use an enum in last change.
6060
748e162f
KH
60612009-09-28 Kenichi Handa <handa@m17n.org>
6062
9694740b 6063 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6064 unibyte_display_via_language_environment in handling
6065 Vnobreak_char_display.
6066
17efd58d
AR
60672009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6068
6069 * nsterm.h (ns_app_name): New extern variable.
6070
6071 * nsterm.m (ns_app_name): New variable.
6072 (ns_term_init): Set and use it.
6073 (ns_term_shutdown): Use it.
6074
6075 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6076 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6077
6078 * nsfns.m (ns_set_name_iconic, ns_set_name)
6079 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6080 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6081
9694740b
SM
6082 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6083 Remove double-casting in client_data comparison.
31c2d412 6084
3208cb35
YM
60852009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6086
6087 * keyboard.c (make_lispy_event): Remember last wheel direction.
6088 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6089
b7d552d6
GM
60902009-09-26 Glenn Morris <rgm@gnu.org>
6091
6092 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6093 internal.elc. Add term/pc-win.elc.
6094 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6095 term/x-win.elc.
6096 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6097 term/w32-win.elc.
6098 (NS_SUPPORT): New.
6099 (lisp): Add NS_SUPPORT.
6100 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6101
4ff670a8
DR
61022009-09-25 David Reitter <david.reitter@gmail.com>
6103
6104 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6105 on Mac OS X 10.6+ (bug#4513).
6106
feabfb6c
JB
61072009-09-24 Juanma Barranquero <lekktu@gmail.com>
6108
6109 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6110 some parts of Emacs code (like font selection) don't grok them.
6111 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6112
de59072a
AS
61132009-09-24 Andreas Schwab <schwab@redhat.com>
6114
6115 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6116
a489517b
JB
61172009-09-24 Juanma Barranquero <lekktu@gmail.com>
6118
6119 * dired.c (Fdirectory_files): Fix typo in docstring.
6120
0592970c
AR
61212009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6122
6123 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6124 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6125 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6126 under GNUstep.
6127 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6128
6129 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6130 glyph advancement.
6131
48e8a88b
AR
61322009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6133
6134 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6135 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6136
6137 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6138 deleted (bug #4492).
6139
e14f0a78
AR
6140 * nsfont.m (Vns_reg_to_script): New lisp variable.
6141 (syms_of_nsfont): Declare it.
6142 (ns_registry_to_script): New function.
6143 (ns_get_req_script): Call it.
6144 (ns_findfonts): Don't give up on non-unicode registry.
6145
6146 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6147
5b650faa
SM
61482009-09-20 Tom Tromey <tromey@redhat.com>
6149
6150 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6151 batch mode (bug#4228).
6152
a489517b 61532009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6154
6155 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6156 carefully. (Bug #4339)
0bae4e09 6157
fcfe06f3
CY
61582009-09-18 Chong Yidong <cyd@stupidchicken.com>
6159
d798ba87 6160 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6161
31642728
AR
61622009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6163
6164 * emacs.c (inhibit_x_resources): Update doc string for NS.
6165 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6166 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6167
6168 * nsterm.h (ns_no_defaults): Remove.
6169
6170 * nsterm.m (ns_no_defaults): Remove.
6171 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6172 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6173 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6174 don't update the NSWindow itself.
6175 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6176 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6177
6178 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6179 ns_use_qd_smoothing.
6180
6181 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6182 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6183 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6184 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6185
8686ac71
JB
61862009-09-17 Juanma Barranquero <lekktu@gmail.com>
6187
6188 * emacs.c (inhibit_x_resources): New variable.
6189 (main) [HAVE_NS]: Don't process --quick command line option.
6190 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6191
6192 * lisp.h (inhibit_x_resources): Declare it extern.
6193
6194 * w32reg.c (x_get_string_resource):
6195 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6196
e227ba05
EZ
61972009-09-17 Eli Zaretskii <eliz@gnu.org>
6198
362654a6
JB
6199 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6200 Add lisp/term/internal.elc.
e227ba05 6201
742d40e8
SM
62022009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6203
6204 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6205 (bug#4461).
6206
005bd5a2
DN
62072009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6208
6209 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6210
6211 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6212 (OBJECTS_MACHINE): Remove, unused.
6213
f9af9719
SM
62142009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6215
6216 * frame.c (x_get_resource_string): Remove unused.
6217
0307c7d2
JD
62182009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6219
6220 * xterm.c (x_new_font): Call change_frame_size before calling
6221 x_set_window_size, in case frame size won't change.
6222
6223 * frame.c (x_set_font): Remove dead code.
6224
428b13d6
SM
62252009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6228
5766c380
SM
62292009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6230
6231 * lread.c (Fload): Don't output a message after loading an obsolete
6232 package any more (done in Lisp now).
6233
2fd0161b
CY
62342009-09-12 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6237
bc5e75b6
SM
62382009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6239
6240 * keymap.c (Fwhere_is_internal): Use nconc2.
6241
c31c985e
AM
62422009-09-11 Alan Mackenzie <acm@muc.de>
6243
6244 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6245 batch mode.
6246
78012bd2
AS
62472009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6248
6249 * xdisp.c (display_mode_element): Detect cycles.
6250
9d889332
SM
62512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6252
6253 * keymap.c (where_is_internal): Don't erroneously return nil right after
6254 filling the cache.
6255 (where_is_internal_1): Fix up typo.
6256
7ab5d780
GM
62572009-09-11 Glenn Morris <rgm@gnu.org>
6258
6259 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6260 share a common doc-string.
6261
5238a749
SM
62622009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6263
66d77eda
SM
6264 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6265 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6266
5238a749
SM
6267 * keymap.c (QCadvertised_binding): New constant.
6268 (syms_of_keymap): Initialize it.
6269 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6270 if applicable.
6271
19f48442
SM
62722009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6273
50d4ba39
SM
6274 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6275 (parse_menu_item): Streamline since bindings are recomputed all the
6276 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6277 more and don't support lmenu's menu-alias any more either.
6278
a88a5372
SM
6279 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6280 (where_is_internal): Strip it down to only traverse the keymaps.
6281 Move the cache handling from Fwhere_is_internal to here.
6282 (Fwhere_is_internal): Move the handling of remapping and the choice of
6283 the best binding from where_is_internal to here.
6284 Unify the cached/noncached paths, so remapping is also handled
6285 correctly when the cache is used, and so the cache can be used to
6286 speed up remap-handling when applicable.
6287 Give preference to non-remapped bindings.
6288 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6289 non-remapped bindings.
6290 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6291 command remapping.
6292
19f48442
SM
6293 * xdisp.c (display_mode_element): Move list length limit from 50 to
6294 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6295
599498c3 62962009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6297
6298 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6299
f9b7b5ac
SM
63002009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6301
a53af587
JB
6302 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6303 (Bug#4334)
6304
f9b7b5ac
SM
6305 * keymap.c (where_is_internal): Filter out shadowed remappings.
6306 Assume that where_is_internal returns unshadowed bindings to simplify
6307 the code and get rid of the gotos. Use ASIZE.
6308
04f4b72d
JD
63092009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6310
4da146f2
JD
6311 * xterm.c (x_focus_changed): If we get a focusout and pointer
6312 is invisible, make it visible.
6313
04f4b72d
JD
6314 * xterm.h: Remove condition for declaration of
6315 x_*_window_to_frame.
6316
7cef7ce3
SM
63172009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6318
6319 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6320 initial terminal as well.
6321
a54fa5b7
JD
63222009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6323
6324 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6325 x_menubar_window_to_frame.
a54fa5b7 6326
50426a04 6327 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6328 (XTmouse_position): Do not return valid positions
6329 for clicks in the menubar and the toolbar for Gtk+.
6330
6331 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6332 if the widget for the event has the same top level as a frame,
6333 return the frame.
6334 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6335 internal windows, bug #4122.
6336 (x_non_menubar_window_to_frame): Remove.
6337
5a021dd0
GM
63382009-09-02 Glenn Morris <rgm@gnu.org>
6339
6340 * buffer.c (default-major-mode): Move most of the doc from here...
6341 (major-mode): ... to here.
6342
548fe2f3
NR
63432009-08-30 Nick Roberts <nickrob@snap.net.nz>
6344
6345 * process.c (wait_reading_process_output): Keep the descriptor
6346 when pty is used by a non-child process, e.g., in I/O buffer of
6347 GDB this allows inferior to be restarted.
6348
e0840eef
EZ
63492009-08-29 Eli Zaretskii <eliz@gnu.org>
6350
6351 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6352 both branches into one.
6353
82e98df4
SM
63542009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6355
6356 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6357 (main): Use enable-multibyte-characters rather than
6358 default-enable-multibyte-characters. Output a warning message when
6359 running a unibyte session.
6360
890617cb
YM
63612009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6362
6363 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6364 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6365 (copy_data_segment): Also copy __program_vars section.
6366 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6367 (dump_it) [LC_DYLD_INFO]: Use it.
6368
6369 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6370
e7adeadc
EZ
63712009-08-28 Eli Zaretskii <eliz@gnu.org>
6372
6373 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6374 $(SRC)/buildobj.h.
6375 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6376 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6377 $(SRC)/buildobj.h.
6378 (clean): Add buildobj.h.
6379
3ed8bbdc
TZ
63802009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6381
6382 * print.c (print_object): Set escapeflag to 1 when printing
6383 hashtable keys and values.
6384
155a6764
SM
63852009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6386
6387 * lread.c (read_integer): Use doubles (and potentially return a float
6388 number) as we do in string-to-number.
6389 (read1): Use strtol to read integers, signal errors on strtol's
6390 overflow and use floats if strtol's output is too large for
6391 Elisp integers.
6392
877610de
EZ
63932009-08-27 Eli Zaretskii <eliz@gnu.org>
6394
6395 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6396 (make-buildobj-SH): Fix last change.
6397 (SRC): Move to before where it's first used.
6398
ef73e7be
KH
63992009-08-27 Kenichi Handa <handa@m17n.org>
6400
550c8289
KH
6401 * process.c (send_process): Use encode_coding_object instead of
6402 encode_coding_string to perform eol-conversion even if the string
6403 is unibyte.
6404
60afa08d
KH
6405 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6406 character.
6407
ef73e7be 6408 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6409 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6410
7b3a82d7
DN
64112009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6412
5654bf63
DN
6413 * callproc.c (Fcall_process): Remove always true #if.
6414
7b3a82d7
DN
6415 * lisp.h: Replace #if 0 code for checking with text pointing to
6416 the --enable-checking configure flag.
6417
6418 * emacs.c (main): Mention the --enable-profiling configure flag
6419 instead of using CFLAGS.
6420
878bde49
KR
64212009-08-26 Ken Raeburn <raeburn@raeburn.org>
6422
6423 * Makefile.in (buildobj.h): New target.
6424 (doc.o): Depend on it.
6425 (temacs${EXEEXT}): Don't generate buildobj.lst.
6426 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6427 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6428 ($(BLD)/doc.$(O)): Depend on it.
6429 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6430 provided by Eli Zaretskii.)
6431 ($(TEMACS)): Don't generate buildobj.lst.
6432 * doc.c: Include buildobj.h.
6433 (buildobj): New static variable.
6434 (Fsnarf_documentation): Use it, instead of opening and reading
6435 buildobj.lst.
6436
1574224c
MA
64372009-08-25 Michael Albinus <michael.albinus@gmx.de>
6438
6439 * dbusbind.c (Fdbus_call_method)
6440 (Fdbus_call_method_asynchronously): Use English numeric format for
6441 timeout values in doc string.
6442
d9da2f45
KH
64432009-08-25 Kenichi Handa <handa@m17n.org>
6444
ef73e7be
KH
6445 * alloc.c (mark_char_table): New function.
6446 (mark_object): Use mark_char_table for a char-table.
6447
d9da2f45
KH
6448 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6449 (CHAR_TABLE_REF): Use it.
6450
c8edcc01
KR
64512009-08-23 Ken Raeburn <raeburn@raeburn.org>
6452
6453 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6454 before invoking the newly build emacs to check for load-path
6455 shadowing.
6456
7763401b
GM
64572009-08-22 Glenn Morris <rgm@gnu.org>
6458
6459 * Makefile.in (bootstrap_exe): New variable.
6460 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6461 Use ${bootstrap_exe}.
6462
729eadda
EZ
64632009-08-22 Eli Zaretskii <eliz@gnu.org>
6464
6465 * coding.h (encode_coding_string): Don't encode unibyte strings.
6466 (Bug#4047)
6467
eb4c6ace
MA
64682009-08-22 Michael Albinus <michael.albinus@gmx.de>
6469
6470 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6471
6472 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6473 intended as hotfix only.
6474 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6475
36e34d1b
AR
64762009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6477
6478 * nsterm.m (ns_get_color): Update documentation properly for last
6479 change, and clean up loose ends in the code left by it. Fix
6480 longstanding bug with 16-bit hex parsing, and add support for
6481 yet another X11 format (rgb:r/g/b) for compatibility.
6482 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6483 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6484
f983eb8a
SM
64852009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6486
6487 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6488
3f56d3c6
MA
64892009-08-20 Michael Albinus <michael.albinus@gmx.de>
6490
6491 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6492 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6493 (xd_initialize, xd_pending_messages): Check, whether
6494 $DBUS_SESSION_BUS_ADDRESS is set.
6495
fb641d68
YM
64962009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6497
6498 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6499
6500 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6501
cf59a374
GM
65022009-08-20 Glenn Morris <rgm@gnu.org>
6503
6504 * emacs.c (system-type): Doc fix.
6505
1373f3be
SM
65062009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6509 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6510
058ed861
MA
65112009-08-18 Michael Albinus <michael.albinus@gmx.de>
6512
1373f3be
SM
6513 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6514 New functions.
058ed861
MA
6515 (xd_initialize): Revert change from 2009-08-16.
6516
563a866e 65172009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6518
6519 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6520 font-group vector, return nil.
5fc05db0 6521
e42bdf01
CY
65222009-08-17 Chong Yidong <cyd@stupidchicken.com>
6523
6524 * process.c (status_notify): Don't perform redisplay.
6525 (Fdelete_process, list_processes_1, process_send_signal):
6526 Expliticly perform redisplay.
6527 (wait_reading_process_output): Always check process status, but
6528 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6529
4230ab74
KR
65302009-08-17 Ken Raeburn <raeburn@raeburn.org>
6531
1373f3be 6532 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6533 (XFLOAT_INIT): New macro for storing a float value.
6534 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6535 * fns.c (sxhash): Copy out the value of a float in order to
6536 examine its bytes.
6537 * dbusbind.c (xd_append_arg): Likewise.
6538
4230ab74
KR
6539 * emacs.c (main): Don't call syms_of_data twice.
6540
a0645cdd
MA
65412009-08-16 Michael Albinus <michael.albinus@gmx.de>
6542
6543 * dbusbind.c (xd_initialize): Add connection file descriptor to
6544 input_wait_mask, in order to let select() detect, whether a new
6545 message has been arrived.
ca4f31ea 6546 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6547
485db0ba
MA
65482009-08-15 Michael Albinus <michael.albinus@gmx.de>
6549
1373f3be
SM
6550 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6551 New functions.
485db0ba
MA
6552
6553 * lisp.h (xd_pending_messages): Declare.
6554
6555 * keyboard.c (readable_events): Call xd_pending_messages.
6556
b5b98ff4
CY
65572009-08-15 Chong Yidong <cyd@stupidchicken.com>
6558
1373f3be 6559 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6560
f8354c6e
CY
6561 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6562
b5b98ff4
CY
6563 * buffer.c (set_buffer_internal_1)
6564 (swap_out_buffer_local_variables): Check for unbound local
6565 variables (Bug#4138).
6566
8b9fc636
EZ
65672009-08-14 Eli Zaretskii <eliz@gnu.org>
6568
6569 * process.c (create_pty): Fix last change.
6570
ce959360
CY
65712009-08-13 Chong Yidong <cyd@stupidchicken.com>
6572
6573 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6574 (xbm_load_image): Caller changed.
64b807c9 6575 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6576
c7baf7e9
NR
65772009-08-13 Nick Roberts <nickrob@snap.net.nz>
6578
6579 * process.c (create_pty): New function.
6580 (Fstart_process): Use it to allow Emacs to just associate a pty
6581 with the buffer. See associated change in gdb-mi.el.
6582 (list_processes_1): Deal with no program name.
6583 (start_process_unwind): Use pid == -2 to mean no process.
6584
1ac9108a
SM
65852009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6586
6587 * cmds.c (nonundocount): New global variable.
6588 (keys_of_cmds): Initialize it.
6589 (Fself_insert_command): Use it to combine upto 20 sequential chars
6590 into a single undo entry, just like the Qself_insert_command code in
6591 keyboard.c does.
6592 Call frame_make_pointer_invisible, also like the Qself_insert_command
6593 code in keyboard.c does.
6594 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6595 than its own local replacement for it.
6596
e267324c
KR
65972009-08-10 Ken Raeburn <raeburn@raeburn.org>
6598
1ac9108a 6599 * fns.c (concat): Don't re-set string length to its current value.
77437343 6600
1ac9108a
SM
6601 * coding.h (decode_coding_string, encode_coding_string):
6602 Use SBYTES macro.
f0bed503 6603
1ac9108a 6604 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6605 (doprnt): Merge with doprnt1, discarding lispstrings code.
6606 * lisp.h (doprnt_lisp): Don't declare.
6607
416e006d
JL
66082009-08-07 Juri Linkov <juri@jurta.org>
6609
6610 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6611
6f7d5780
DN
66122009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6613
6614 * print.c (syms_of_print): Undo previous change.
6615
f19a0f5b
TZ
66162009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6617
6618 * lread.c (read1, syms_of_lread): Read hashtables back from the
6619 readable format.
6620
6621 * print.c (print_preprocess, print_object): Print hashtables fully
6622 and readably.
6623 (syms_of_print): Provide 'hashtable-print-readable.
6624
b9173dc2
AR
66252009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6626
6627 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6628 no family set.
6629 (nsfont_open): Handle case when entity has no family.
6630
1586503c
AR
66312009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6632
6633 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6634 element, not a list, for match case.
6635
087048cd
KH
66362009-07-28 Kenichi Handa <handa@m17n.org>
6637
6638 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6639 rigidly.
6640
6641 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6642 font_parse_xlfd. Check font properties more rigidly.
6643
780c2506
DN
66442009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6645
31fd7c5c
JB
6646 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6647 bsd-common.h.
780c2506 6648
a8c0cc18
KH
66492009-07-27 Kenichi Handa <handa@m17n.org>
6650
6651 * xfaces.c (face_with_height): Call font_clear_prop.
6652
4fbe2306
CY
66532009-07-26 Chong Yidong <cyd@stupidchicken.com>
6654
111d9af3
CY
6655 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6656
6657 * xterm.c (x_term_init): Use Qx.
6658
4fbe2306
CY
6659 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6660
1ac9108a 6661 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6662 (ns_get_color): Revert 2009-07-16 change.
6663
beb0b7f9
EZ
66642009-07-25 Eli Zaretskii <eliz@gnu.org>
6665
6666 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6667 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6668
2baf5e76
KR
66692009-07-25 Ken Raeburn <raeburn@raeburn.org>
6670
1ac9108a
SM
6671 * coding.h (decode_coding_string, encode_coding_string):
6672 Use SCHARS macro.
8890e5f5 6673
2baf5e76 6674 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6675 (load_depth): Delete.
2baf5e76
KR
6676 (Qload_in_progress): New variable.
6677 (load_unwind): Don't reference load_depth or load_in_progress.
6678 (Fload): Likewise; specbind Qload_in_progress instead.
6679 (init_lread): Don't initialize load_depth.
6680 (syms_of_lread): Initialize and protect Qload_in_progress.
6681
1395c6f5
AR
66822009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6683
6684 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6685
4e2f36cf
AR
66862009-07-23 Yavor Doganov <yavor@gnu.org>
6687
6688 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6689
5dd9a6f7
AR
66902009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6691
6692 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6693 Bugs 3792, 3720, 2402.
6694 (ns_lookup_indexed_color): Check for bad index.
6695 (ns_index_color): Init unused slot to 0.
6696 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6697 Bug 3714, possibly 3082.
5dd9a6f7 6698
c902b920
JR
66992009-07-22 Jason Rumney <jasonr@gnu.org>
6700
1ac9108a
SM
6701 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6702 Position IME window at cursor (Bug#2570).
c902b920
JR
6703 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6704 (globals_of_w32fns): Dynamically load functions required above.
6705
6706 * w32term.c (w32_draw_window_cursor): Send message to reposition
6707 any IME window.
6708
090101cf
CY
67092009-07-21 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * fileio.c: Revert 2009-07-16 changes.
6712 (Vauto_save_include_big_deletions): New variable.
6713 (Fdo_auto_save): Disable auto-save only if
6714 auto-save-include-big-deletions is nil.
6715
e6583e3d
CY
67162009-07-21 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6719 the overflowed pixels into account (Bug#3879).
6720
ece435a5
KR
67212009-07-21 Ken Raeburn <raeburn@raeburn.org>
6722
6723 * lread.c (load_depth): New variable.
6724 (Fload, load_unwind, init_lread): Set it to the load recursion
6725 depth; set load_in_progress as a simple boolean based on the
6726 current load_depth. (Bug#3892)
6727
40b2d973
AR
67282009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6729
6730 * nsfont.m (ns_has_attribute): Remove.
6731 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6732
10be7e0d
JL
67332009-07-18 Juri Linkov <juri@jurta.org>
6734
6735 * process.c (Fset_process_query_on_exit_flag): Mention killing
6736 a buffer in docstring.
6737
fa055055
KH
67382009-07-17 Kenichi Handa <handa@m17n.org>
6739
6740 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6741
042f7b69
YM
67422009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6743
6744 * nsfns.m (Fns_set_alpha): Remove function.
6745 (syms_of_nsfns): Don't defsubr it.
6746
6747 * nsterm.m (ns_get_color): Remove incompatible color formats.
6748 (ns_color_to_lisp): Generate #rrggbb color format string.
6749
4be941e3
RS
67502009-07-16 Richard Stallman <rms@gnu.org>
6751
6752 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6753 (Fset_buffer_auto_saved): Handle save_length = -2.
6754
4e6b227d
CY
67552009-07-16 Chong Yidong <cyd@stupidchicken.com>
6756
6757 * xterm.c (Qx_gtk_map_stock): New var.
6758
6759 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6760 of calling intern each time.
6761
a1856973
YM
67622009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6763
6764 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6765 does tiling.
6766
6767 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6768
497e54d8
KH
67692009-07-14 Kenichi Handa <handa@m17n.org>
6770
72d36834
KH
6771 * font.c (font_vconcat_entity_vectors): New function.
6772 (struct font_sort_data): New member font_driver_preference.
6773 (font_compare): Check font_driver_preference.
6774 (font_sort_entities): The format of the first argument changed.
6775 (font_delete_unmatched): Likewise.
6776 (font_list_entities): The return type changed.
6777 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6778 (font_find_for_lface): Adjuste for the above changes.
6779 Don't suppress the checking of C even if the repertory supports it.
6780 (Flist_fonts): Adjust for the above changes.
72d36834 6781
1ac9108a
SM
6782 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6783 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6784 Reject a font who has adstyle property that is different from a
6785 langname derived from registry property.
1ac9108a 6786 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6787
b6046155
EZ
67882009-07-13 Eli Zaretskii <eliz@gnu.org>
6789
6790 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6791 local copy of dirfilename.
6792
fb6b6049
KH
67932009-07-13 Kenichi Handa <handa@m17n.org>
6794
e2402a5e
KH
6795 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6796 against max_char.
6797
fb6b6049
KH
6798 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6799 calling XSYMBOL (sym).
6800
65156807
EZ
68012009-07-11 Eli Zaretskii <eliz@gnu.org>
6802
1ac9108a
SM
6803 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6804 New function.
6805 (directory_files_internal) [WINDOWSNT]:
6806 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6807 the filesystem of the directory is fast or slow.
6808
6809 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6810 file name.
6811 (is_slow_fs): New function.
6812 (stat): Use it to determine whether to issue more system calls to
6813 get accurate file attributes, when w32-get-true-file-attributes is
6814 `local'.
6815
e0ab5fcf
JD
68162009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6817
6818 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6819 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6820 parameter font-parameter as default to the font dialog.
6821
784ceded
KH
68222009-07-10 Kenichi Handa <handa@m17n.org>
6823
6824 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6825
fb8edc0b
EZ
68262009-07-09 Eli Zaretskii <eliz@gnu.org>
6827
1ac9108a 6828 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6829
fb8edc0b
EZ
6830 * w32.c (stat): Treat UNC file names as residing on remote
6831 drives. (Bug#3542)
6832
635c75b1
KH
68332009-07-09 Kenichi Handa <handa@m17n.org>
6834
6835 * fontset.c (fontset_find_font): Fix previous change.
6836
c1d5ce94
MA
68372009-07-08 Michael Albinus <michael.albinus@gmx.de>
6838
6839 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6840 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6841 error flag.
6842
edb61b39
KH
68432009-07-08 Kenichi Handa <handa@m17n.org>
6844
374bf7e4
KH
6845 * fontset.c (fontset_find_font): Fix the logic of handling
6846 charset_matched.
6847 (font_for_char): Delete unused var.
6848 (generate_ascii_font_name): Delete it.
6849
edb61b39
KH
6850 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6851
6852 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6853 (encode_coding_sjis): Fix the code range check.
6854
0f3f018c
CY
68552009-07-07 Chong Yidong <cyd@stupidchicken.com>
6856
6857 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6858 (Fexpand_file_name): Copy string data properly (Bug#3772).
6859
fcaf6f3a
JD
68602009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6861
6862 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6863 first MapNotify.
6864
6809ca75
KH
68652009-07-07 Kenichi Handa <handa@m17n.org>
6866
6867 * character.h (unibyte_has_multibyte_table): Delete extern.
6868 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6869
6870 * charset.c (Fset_charset_priority): Update charset_unibyte.
6871 (syms_of_charset): Initialize charset_unibyte.
6872
6873 * character.c (unibyte_has_multibyte_table): Delete it.
6874 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6875 charset_unibyte.
6876 (multibyte_char_to_unibyte_safe): Likewise.
6877 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6878
1ac9108a 6879 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6880 (x_produce_glyphs): Likewise.
6881
6882 * .gdbinit (xcharset): Fix the treating $arg0.
6883
ad9e2d54
EZ
68842009-07-04 Eli Zaretskii <eliz@gnu.org>
6885
6886 Emulation of `getloadavg' on MS-Windows.
50426a04 6887 * w32.c: Include float.h.
ad9e2d54
EZ
6888 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6889 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6890 (get_native_system_info, get_system_times): New functions.
6891 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6892 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6893 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6894 g_b_init_get_system_times, and num_of_processors.
6895
0a3472c7
JR
68962009-07-03 Jason Rumney <jasonr@gnu.org>
6897
6898 * w32term.c (w32_initialize): Use standard types.
6899
80904120
EZ
69002009-07-03 Eli Zaretskii <eliz@gnu.org>
6901
6902 * dired.c (Ffile_attributes): Decode user and group names by the
6903 locale's encoding. (Bug#3443)
6904
6978862d
DN
69052009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6906
f8d23104
DN
6907 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6908 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6909
6910 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6911
6912 * term.c (init_tty): Remove spurious #ifdef.
6913
6978862d
DN
6914 * m/mips.h: Mention this file is also used for netbsd.
6915 * m/pmax.h: Remove file.
6916
e044e4fc
JD
69172009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6918
6919 * xterm.h (struct x_display_info): Add invisible_cursor.
6920 (struct x_output): Add current_cursor.
6921
6922 * xterm.c (XTtoggle_invisible_pointer): New function.
6923 (x_define_frame_cursor): Don't define cursor if invisible or the
6924 same as before. Set current_cursor.
6925 (x_create_terminal): Set toggle_invisible_pointer_hook.
6926
6927 * xfns.c (make_invisible_cursor): New function.
6928 (x_set_mouse_color): Call make_invisible_cursor.
6929 Set current_cursor.
6930 (x_window): Set current_cursor.
6931
6932 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6933
6934 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6935 inserting a character.
6936 (read_avail_input): Call frame_make_pointer_visible.
6937
6938 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6939 (frame_make_pointer_invisible, frame_make_pointer_visible):
6940 New functions.
e044e4fc
JD
6941 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6942
6943 * frame.h: Declare frame_make_pointer_invisible and
6944 frame_make_pointer_visible.
6945 (struct frame): Add pointer_invisible.
6946
574c8efa
JD
69472009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6948
7b507248
JD
6949 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6950 frame isn't visible.
6951 (xg_frame_resized): If width/height is -1, get size of window
6952 from X server.
6953
6954 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6955 for MapNotify.
6956
835bdaa7 6957 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6958 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6959 (flush_and_sync): Reintroduce.
574c8efa 6960
3f1c6666 69612009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6962
31fd7c5c 6963 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6964
6965 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6966 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6967
6968 * frame.h: Declare Qsticky.
6969
cad9ef74
JD
6970 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6971
6972 * nsfns.m (ns_frame_parm_handlers): Ditto.
6973
6974 * frame.c: Declare Qsticky.
6975 (frame_parms): Add sticky.
6976
6977 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6978
6979 * xterm.h: Declare x_set_sticky.
6980
6981 * xterm.c (x_set_sticky): New function.
6982
69b16610
JD
6983 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6984 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6985 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6986
6987 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6988
6989 * frame.c: Qmaximized is new.
6990 (x_set_frame_parameters): Do not handle fullscreen specially.
6991 Only set width and height if explicitly set.
6992 (x_set_fullscreen): Handle Qmaximized.
6993 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6994 (syms_of_frame): Initialize Qmaximized.
6995
1ac9108a
SM
6996 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6997 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6998
6999 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7000 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7001 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7002 set gravity to NorthWestGravity when USE_GTK.
7003 (set_wm_state): New function.
31fd7c5c 7004 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7005 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7006 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7007 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7008 to x_real_positions and x_fullscreen_adjust.
7009
7010 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7011 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7012 flush_and_sync.
7013 (xg_height_changed): New function.
7014 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7015 and gtk_window_set_policy. Set frame gravity after parsing the
7016 geometry string.
3f1c6666
JD
7017 (xg_update_frame_menubar, free_frame_menubar)
7018 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7019 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7020 Remove calls to xg_frame_set_char_size.
7021
fd503d99
KH
70222009-07-01 Kenichi Handa <handa@m17n.org>
7023
7024 * keyboard.c (decode_keyboard_code): New function.
7025 (tty_read_avail_input): Decode the input bytes if necessary.
7026
1ac9108a
SM
7027 * coding.c (setup_coding_system):
7028 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7029 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7030 use Qno_conversion.
7031
24ed93fb
YM
70322009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7033
7034 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7035
99061dfc
CY
70362009-06-30 Chong Yidong <cyd@stupidchicken.com>
7037
1ac9108a 7038 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7039
ff90fbde
JR
70402009-06-30 Jason Rumney <jasonr@gnu.org>
7041
7042 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7043 is already loaded.
7044 Set user model ID if supported (bug#1849).
7045
5f445726
JM
70462009-06-29 Jim Meyering <meyering@redhat.com>
7047
7048 Remove useless if-before-xfree test.
7049 * nsfont.m (nsfont_close): Remove useless test.
7050 * term.c (delete_tty): Likewise.
7051 * w32.c (system_process_attributes): Likewise.
7052 * w32font.c (w32font_close): Likewise.
7053 * xfaces.c (x_free_gc): Likewise.
7054 * xselect.c (buffer): Likewise.
7055
b9607587
AS
70562009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7057
7058 * process.c (send_process): Keep decoded string in a local
7059 variable and protect it from GC. (Bug#3521)
7060
89ba96f4
EZ
70612009-06-28 Eli Zaretskii <eliz@gnu.org>
7062
7063 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7064 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7065
098a1589
CY
70662009-06-28 Chong Yidong <cyd@stupidchicken.com>
7067
485422be
CY
7068 * xdisp.c (start_display, handle_face_prop)
7069 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7070 (redisplay_window, try_window_id, produce_image_glyph):
7071 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7072
098a1589
CY
7073 * xterm.c (x_update_window_begin, x_new_focus_frame)
7074 (x_scroll_bar_handle_click, handle_one_xevent)
7075 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7076 (x_make_frame_visible, x_make_frame_invisible)
7077 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7078 code chunks that are now obsolete.
7079
78c38319
MA
70802009-06-28 Michael Albinus <michael.albinus@gmx.de>
7081
7082 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7083 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7084 for hours, when optimzation is enabled.
7085 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7086 (xd_read_message): Make them static.
7087
4189ed40
CY
70882009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7089
7090 * term.c (turn_on_face): Allow simultaneously bold and dim
7091 terminal faces (Bug#3530).
7092
cd9b5e16
CY
70932009-06-27 Chong Yidong <cyd@stupidchicken.com>
7094
4e23bedb
CY
7095 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7096
cd9b5e16
CY
7097 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7098 truncation glyphs (Bug#3686).
7099
07cc3c35
GM
71002009-06-27 Glenn Morris <rgm@gnu.org>
7101
7102 * m/pmax.h: Restore file, with only netbsd portions.
7103
31fd7c5c 71042009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7105
cd9b5e16 7106 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7107
42d4a64f
KH
71082009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7109
7110 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7111 the arg FORCE_SYMBOL.
7112
930fe55b 71132009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7114
7115 * fontset.c (fontset_find_font): When a usable rfont_def is found
7116 in a fallback font-group, make it the first element of the group.
7117
57ebc3fd
CY
71182009-06-24 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7121
f084f942
KH
71222009-06-24 Kenichi Handa <handa@m17n.org>
7123
7124 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7125 set for C.
7126 (fontset_font): Record the availability of a font for C both in
7127 the realized fontsets of the current one and the default one.
7128
2f686c87
DN
71292009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7130
7131 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7132 conditional, it is always defined on AIX.
7133
666e158e
MB
71342009-06-23 Miles Bader <miles@gnu.org>
7135
7136 * window.c (Vrecenter_redisplay): New variable.
7137 (syms_of_window): Initialize it.
7138 (Qtty): New extern declaration.
7139 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7140
c6da7cd2
JM
71412009-06-23 Jim Meyering <meyering@redhat.com>
7142
1ac9108a
SM
7143 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7144 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7145 pointer dereferences are guaranteed to be valid.
c6da7cd2 7146
678dca3d
KH
71472009-06-23 Kenichi Handa <handa@m17n.org>
7148
74d75424
KH
7149 * emacs.c (main): Call init_font ().
7150
7151 * font.h (Vfont_log): Extern it.
7152 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7153
7154 * font.c (font_sort_entities, font_list_entities)
7155 (font_matching_entity, font_open_entity)
7156 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7157 (Vfont_log): Delete static.
7158 (font_log_env_checked): Delete this variable.
7159 (font_add_log): Don't check font_log_env_checked.
7160 (font_deferred_log): Check Vfont_log.
7161 (init_font): New function.
7162
678dca3d
KH
7163 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7164
7165 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7166
7167 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7168
7169 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7170
7171 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7172 (face_for_char): Don't call font_deferred_log here.
7173 (font_for_char): Likewise.
7174
8a668709
CY
71752009-06-22 Chong Yidong <cyd@stupidchicken.com>
7176
9a01ee33
CY
7177 * w32term.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).
7180
7181 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7182 rather than its background_width for drawing the overline and
7183 underline (Bug#489).
ec7c9926
CY
7184 (xg_default_icon_file): New variable.
7185 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7186 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7187
8a668709
CY
7188 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7189 (load_overlay_strings): Remove externs.
7190 (fast_find_position): Function deleted.
7191 (mouse_face_from_buffer_pos): New function, based on
7192 fast_find_position. Correctly handle before-strings,
7193 display-strings, and after-strings (Bug#1220).
7194 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7195
4d4c02d8
CY
71962009-06-21 Chong Yidong <cyd@stupidchicken.com>
7197
1ac9108a 7198 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7199 (move_it_in_display_line_to, move_it_in_display_line_to)
7200 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7201
70243478
CY
72022009-06-21 Chong Yidong <cyd@stupidchicken.com>
7203
7204 * Branch for 23.1.
7205
13087e59
JR
72062009-06-21 Jason Rumney <jasonr@gnu.org>
7207
7208 * w32term.c (keyboard_codepage): New static variable.
7209 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7210 (w32_read_socket) [WM_CHAR]: Use it to decode character
7211 input (bug#3237).
7212 (w32_initialize): Initialize it.
7213 (codepage_for_locale): New function.
7214
4735b74e
KR
72152009-06-20 Ken Raeburn <raeburn@raeburn.org>
7216
7217 * process.c (status_message): Pass Faset index argument as a lisp
7218 object, so as to work with USE_LISP_UNION_TYPE.
7219
0e727afa
YM
72202009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7221
7222 * coding.c (Ffind_coding_systems_region_internal):
7223 Cache checked characters.
7224
cf299835
KH
72252009-06-18 Kenichi Handa <handa@m17n.org>
7226
1ac9108a 7227 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7228
90f20d94
AS
72292009-06-18 Andreas Schwab <aschwab@redhat.com>
7230
7231 * xdisp.c (redisplay_internal): Check that the frame is still
7232 live after redisplay of its windows.
7233 (redisplay_windows): Check that the window is still live.
7234
7f1faf1c
KH
72352009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7236
7237 * coding.c (detect_coding_utf_16): Fix previous change.
7238
cc13543e
KH
72392009-06-16 Kenichi Handa <handa@m17n.org>
7240
7241 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7242 UTF-16 by checking the dispersion of Eth and Oth bytes.
7243
977b85f4
AS
72442009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7245
7246 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7247
66bd43d1
KH
72482009-06-15 Kenichi Handa <handa@m17n.org>
7249
7250 * process.c (status_message): Fix previous change. Be sure to
7251 decode a localized string.
7252
cb5ca9c5
YM
72532009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7254
7255 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7256 add comment explaining why.
7257
ec7709ba 72582009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7259
ec7709ba 7260 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7261
4b7f335c
AR
72622009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7263
7264 * nsfont.m (ns_attribute_value): Remove.
7265 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7266 (ns_has_attribute): Shrink the normal range.
7267 (ns_findfonts): Don't worry about requested spec in determining
7268 need for synthItal.
e41820ee 7269 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7270
73b26103
SZ
72712009-06-14 Seiji Zenitani <zenitani@mac.com>
7272
7273 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7274
5753e4da
KH
72752009-06-11 Kenichi Handa <handa@m17n.org>
7276
7277 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7278 overhang for the static composition case.
7279
3561b671
KH
72802009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7281
5753e4da
KH
7282 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7283 overhang for the automatic composition case.
7284
3561b671
KH
7285 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7286 composition case.
7287
852bbd41
CY
72882009-06-10 Chong Yidong <cyd@stupidchicken.com>
7289
7290 * xdisp.c (get_next_display_element): When handling wrap-prefix
7291 and line-prefix, treat \n as a control character (bug#3502).
7292
9903d1e6
KH
72932009-06-10 Kenichi Handa <handa@m17n.org>
7294
7295 * font.c (font_parse_family_registry): Fix for one-char foundry.
7296 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7297
0bcbaaaa
CY
72982009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7299
7300 * process.c (status_message): Fix handling of multibyte signal
7301 string (Bug#3499).
7302
40aa3f13
JM
73032009-06-09 Jim Meyering <meyering@redhat.com>
7304
1f80c7e2
CY
7305 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7306 color name is missing.
40aa3f13 7307
72d51285
KH
73082009-06-09 Kenichi Handa <handa@m17n.org>
7309
7310 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7311 FROM-CODE and TO-CODE are codepoints of CHARSET.
7312
c1d04d84
AR
73132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7314
7315 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7316
73172009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7318
7319 Changes to support :script/:lang/:otf in NS font driver.
7320 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7321 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7322 indicate not part of font driver interface, and change callers.
7323 (ns_get_family): Remove pointless null check.
7324 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7325 ns_spec_to_descriptor, ns_descriptor_to_entity.
7326 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7327 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7328 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7329 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7330 (ns_get_req_script, ns_accumulate_script_ranges)
7331 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7332 New functions.
7333 (nsfont_list, nsfont_match): Use ns_findfonts.
7334 (nsfont_open): Use font descriptor instead of traits.
7335 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7336 (dump_glyphstring): Rename to ns_dump_glyphstring.
7337
c7eb9816
AR
7338 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7339
c1d04d84
AR
7340 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7341
7342 * fontset.c (fontset_from_font): Remove NS-specific code.
7343
ec7709ba 73442009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7345
7346 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7347 nonactive windows.
7348
31fd7c5c 73492009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7350
1ac9108a 7351 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7352
68852c13 73532009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7354
7355 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7356
6756cd1d
CY
73572009-06-07 Chong Yidong <cyd@stupidchicken.com>
7358
7359 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7360 account for the overflowing of newlines into the last glyph on the
7361 display line (Bug#3482).
7362
28bf482a
DR
73632009-06-05 David Reitter <david.reitter@gmail.com>
7364
ec7709ba
JB
7365 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7366 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7367 Fns_selection_exists_p, Fns_selection_owner_p.
7368
fdb55376
JR
73692009-06-03 Jason Rumney <jasonr@gnu.org>
7370
7371 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7372 available. (Bug#3379)
7373
05129fbe
KH
73742009-05-29 Kenichi Handa <handa@m17n.org>
7375
1ac9108a
SM
7376 * coding.c (get_translation_table):
7377 Check Venable_character_translation.
05129fbe 7378
ec7709ba 73792009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7380
ec7709ba
JB
7381 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7382 (x_make_frame_visible): Move frame to front rather than calling
15891144 7383 ns_raise_frame().
ec7709ba 7384 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7385 isn't key window.
ec7709ba 7386 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7387 drawRect may be called by NSView even if the frame is hidden.
7388
ec7709ba
JB
7389 * nsfns.m (Fx_create_frame): Follow other ports in
7390 determining visibility; default to t. Ensure async_visible is set.
15891144 7391
21f73755
EZ
73922009-05-23 Eli Zaretskii <eliz@gnu.org>
7393
7394 * dired.c (Ffile_attributes): Doc fix.
7395
34001e41
CY
73962009-05-22 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7399
46306a17
SM
74002009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7401
7402 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7403 and xfont_scratch_props.
7404 (syms_of_xfont): Do it here instead.
7405 (xfont_find_ccl_program): Delete, unused.
7406 (xfont_open): Delete unused var `i'.
7407
ef6e0694
KH
74082009-05-21 Kenichi Handa <handa@m17n.org>
7409
7410 * fontset.c (Qlatin): Don't make it static.
7411
46306a17
SM
7412 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7413 New functions.
ef6e0694
KH
7414 (xfont_scripts_cache, xfont_scratch_props): New variables.
7415 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7416 (xfont_list_pattern): Argument changed. Callers changed.
7417 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7418 (xfont_list): Don't reject a font spec with :script property.
7419 (xfont_has_char): Fix setting of encoding.
7420 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7421 xfont_scratch_props.
7422
74232009-05-19 Kenichi Handa <handa@m17n.org>
7424
46306a17 7425 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7426 Callers changed.
7427
74282009-05-18 Kenichi Handa <handa@m17n.org>
7429
7430 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7431
ac71ced7
SM
74322009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7433
7434 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7435 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7436
1c6d1051
YM
74372009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7438
7439 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7440 (x_delete_terminal): Dissociate resource database from display and
7441 then call XrmDestroyDatabase before closing display.
7442
9b9b779c
AR
74432009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7444
7445 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7446 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7447 whether selected frame is viable before raising it (based on patch
7448 by David Reitter), and improve commentary.
7449 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7450
cccd42d5
KH
74512009-05-15 Kenichi Handa <handa@m17n.org>
7452
7453 * font.c (Ffont_spec): Check arguments.
7454
337fbd17
CY
74552009-05-14 Chong Yidong <cyd@stupidchicken.com>
7456
7457 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7458 weight when testing attributes (Bug#3282).
7459
47a6002f
JD
74602009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7461
7462 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7463 what we expect to get in the next ConfigureNotify event.
7464
9cb363db
YM
7465 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7466 before Xft one (Bug#1696).
7467
b9126609
CY
74682009-05-07 David Reitter <david.reitter@gmail.com>
7469
7470 * nsfns.m (Fx_display_planes): Compute bitplanes using
7471 NSBitsPerPixelFromDepth (Bug#3207).
7472
27a69fd9
CY
74732009-05-10 Chong Yidong <cyd@stupidchicken.com>
7474
7475 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7476
00f37552
TTN
74772009-05-10 Ulrich Mueller <ulm@gentoo.org>
7478
7479 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7480
2d82a920
DR
74812009-05-07 David Reitter <david.reitter@gmail.com>
7482
ec7709ba
JB
7483 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7484 Respect mouse face background.
2d82a920 7485
46b0d52d
DR
74862009-05-07 David Reitter <david.reitter@gmail.com>
7487
ec7709ba
JB
7488 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7489 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7490 in ns_update_begin and ns_update_end.
7491
ce1b23bb
SM
74922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7493
5996e1b7
SM
7494 * nsfns.m (ns_get_screen): Rewrite.
7495 Don't presume selected-frame is of type `ns'.
7496
ba98e3a0
SM
7497 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7498 all drivers.
7499
ce1b23bb
SM
7500 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7501
bcda200f
YM
75022009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7503
7504 * keyboard.h (add_user_signal): Fix typo in extern.
7505
7506 * lisp.h (add_user_signal): Remove extern.
7507
7508 * unexelf.c (unexec): Consider a section to precede the .bss section
7509 if its addresses overlap that of .bss.
7510 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7511 instead of dumping process.
7512
864660a2
SM
75132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7514
7515 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7516
50da4e56
SM
75172009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7520
51520a1a
DN
75212009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7522
7523 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7524 any statements.
7525
409ea3a1
AS
75262009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7527
59c4c60f
AS
7528 * process.c (read_process_output): Make sure the current buffer is
7529 always restored.
7530
409ea3a1
AS
7531 * coding.c (record_conversion_result): Don't modify
7532 Vlast_code_conversion_error for successful result.
7533 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7534
56f00ed2
KH
75352009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7536
7537 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7538 (load_charset_map): Remove unnecessary code.
56f00ed2 7539
4491c9d2
DR
75402009-04-30 David Reitter <david.reitter@gmail.com>
7541
35f5b128 7542 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7543 through f24.
7544
6970f632
CY
75452009-04-30 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7548
7549 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7550 face_at_buffer_position.
7551 (face_before_or_after_it_pos, get_next_display_element)
7552 (note_mouse_highlight): Update face_at_buffer_position call.
7553
7554 * term.c (term_mouse_highlight):
7555 * msdos.c (IT_note_mouse_highlight):
7556 * fontset.c (Finternal_char_font):
35f5b128 7557 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7558
7559 * dispextern.h (face_at_buffer_position): Update prototype.
7560
0c616f63
KH
75612009-04-30 Kenichi Handa <handa@m17n.org>
7562
35f5b128 7563 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7564
ad3aaf33
AS
75652009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7566
7567 * callproc.c (Fcall_process): Fix GC protection. Make sure
7568 current buffer is always restored.
7569
c3c963a0
YM
75702009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7571
7572 * atimer.c (init_atimer): Also clear stopped_atimers.
7573
7574 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7575
7e3386cb
YM
7576 * process.c (create_process): Clean up merger residues of
7577 2008-07-17 change.
7578
91f68422
CY
75792009-04-29 Ulrich Mueller <ulm@gentoo.org>
7580
7581 * lread.c (Vread_circle): New variable.
7582 (read1): Disable recursive read if Vread_circle is nil.
7583
24b34550
KH
75842009-04-29 Kenichi Handa <handa@m17n.org>
7585
7586 * fontset.h (set_default_ascii_font): Delete extern.
7587
7588 * fontset.c (set_default_ascii_font): Delete this unused function.
7589
7590 * frame.c (x_set_font): When ARG is a font-object, check if the
7591 font-object matches with the ASCII font-spec of the frame's
9c358bda 7592 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7593
77bf07e1
AS
75942009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7595
7596 * fns.c (Flocale_info): Protect vector from GC during decoding.
7597
7598 * process.c (Fstart_process): Protect argv strings from GC during
7599 encoding.
7600
2c55aacf
AS
76012009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7602
7603 * sysdep.c: Include <ctype.h>.
7604
b892d3c9
DR
76052009-04-27 David Reitter <david.reitter@gmail.com>
7606
35f5b128 7607 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7608 Remove commented-out code.
7609
9d0644c4
JB
76102009-04-26 Johan Bockgård <bojohan@gnu.org>
7611
7612 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7613
b7053016
JR
76142009-04-25 Jason Rumney <jasonr@gnu.org>
7615
7616 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7617
4e8231f3
YM
76182009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7619
7620 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7621 Swap bytes in short integer if fringe bitmap width > 8.
7622
493dcf2c
KH
76232009-04-23 Kenichi Handa <handa@m17n.org>
7624
7625 * xfaces.c (Fx_list_fonts): If a font size is specified in
7626 PATTERN, set it in returned scalable fonts.
7627
401e9e57
CY
76282009-04-22 Chong Yidong <cyd@stupidchicken.com>
7629
708e05dc
CY
7630 * keyboard.c (Fset_input_meta_mode): Doc fix.
7631
7632 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7633
1ac9108a 7634 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7635
7636 * coding.c (Fterminal_coding_system): Doc fix.
7637
7638 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7639 (Fx_display_pixel_height, Fx_display_planes)
7640 (Fx_display_color_cells, Fx_server_max_request_size)
7641 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7642 (Fx_display_mm_height, Fx_display_mm_width)
7643 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7644 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7645 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7646 (check_x_display_info): Handle terminal objects instead of
7647 terminal ids.
7648
401e9e57
CY
7649 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7650 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7651 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7652 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7653
df80c7f0
KH
76542009-04-21 Kenichi Handa <handa@m17n.org>
7655
5a8f12af 7656 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7657 (font_score): Check AVGWIDTH too.
908567ef 7658
df80c7f0
KH
7659 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7660 worst case.
1ac9108a
SM
7661 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7662 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7663
705af33f
JR
76642009-04-19 Jason Rumney <jasonr@gnu.org>
7665
7666 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7667 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7668
7669 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7670 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7671 get_phys_cursor_geometry.
7672
b71ac3dd 7673 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7674 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7675 using get_phys_cursor_geometry.
7676
7677 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7678 correctly calculated.
7679
dc2933eb
JD
76802009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7681
1ac9108a
SM
7682 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7683 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7684 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7685 is deprecated.
7686
973e7849
AS
76872009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7688
7689 * font.c (font_put_frame_data): Use xfree instead of free.
7690
314d66f4
JB
76912009-04-17 Juanma Barranquero <lekktu@gmail.com>
7692
7693 * w32font.c (Qja, Qko): Remove declarations.
7694 (syms_of_w32font): Don't DEFSYM them.
7695
cf702558
CY
76962009-04-17 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7699
7700 * font.h (Qja, Qko): Extern them.
7701
7702 * ftfont.c (Qja, Qko): Remove declarations.
7703
7704 * xfont.c (Qja, Qko): Remove declarations.
7705
b50504f5
KH
77062009-04-17 Kenichi Handa <handa@m17n.org>
7707
bde25748
KH
7708 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7709 string from a vector to handle Latin-1 characters correctly.
7710
b50504f5
KH
7711 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7712 entity even if the cache hits.
7713
f4646fff
AS
77142009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7715
7716 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7717 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7718
e7deaab0
AS
7719 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7720 * lisp.h: Adjust prototypes.
7721
0a0e7d49
CY
77222009-04-16 Chong Yidong <cyd@stupidchicken.com>
7723
7724 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7725 change (Bug#3003).
7726
3c908a57
KH
77272009-04-16 Kenichi Handa <handa@m17n.org>
7728
1ac9108a 7729 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7730
7731 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7732 adstyle.
7733
7734 * ftfont.c (Qja, Qko): Don't make them static.
7735 (enum ftfont_cache_for): New enum.
7736 (fc_charset_table): Undo the previous change.
7737 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7738 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7739 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7740 non-scarable font, try to get AVERAGE_WIDTH.
7741 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7742 Change ft_face_cache from a list of a hash-table. Don't check
7743 `ja' and `ko' adstyle here.
7744 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7745 FTFONT_CACHE_FOR_CHARET.
7746 (ftfont_get_charset): Undo the previous change.
1ac9108a 7747 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7748 (ftfont_close): Likewise.
7749 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7750
7751 * font.c (font_sort_entites): Change the meaning of the arg
7752 BEST-ONLY. Don't optimize for VEC of lenght 1.
7753 (font_select_entity): Just return the value of font_sort_entites.
7754
7755 * xfaces.c (merge_face_vectors): Reflect font properties in
7756 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7757 font_clear_prop if a face attribute doesn't change.
7758
3c908a57
KH
7759 * charset.h (charset_ksc5601): Extern it.
7760
7761 * charset.c (charset_ksc5601): New variable.
7762 (Fdefine_charset_internal): Set charset_ksc5601.
7763 (init_charset_once): Initialize charset_ksc5601 to -1.
7764
d65859c3
DN
77652009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7766
7767 * fileio.c (history_delete_duplicates): Remove unused declaration.
7768
7769 * callint.c (history_delete_duplicates): New declaration.
7770 (Fcall_interactively): Remove command history duplicates when
7771 history_delete_duplicates is true.
7772
3ba010e5
EZ
77732009-04-14 Eli Zaretskii <eliz@gnu.org>
7774
7775 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7776
06f19b91
KH
77772009-04-14 Kenichi Handa <handa@m17n.org>
7778
7779 * font.c (Ffont_info): Fix docstring. Fix the second element of
7780 the returned value (bug#2949).
7781
2cce8bfc
CY
77822009-04-14 Chong Yidong <cyd@stupidchicken.com>
7783
7784 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7785
d156542d
KH
77862009-04-14 Kenichi Handa <handa@m17n.org>
7787
7788 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7789 encoding charset is ascii_compatible.
7790
7791 * charset.c (Fdefine_charset_internal): Make charset
7792 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7793 code_offset is 0, and covers all ASCII characters.
7794
86fa089e
SM
77952009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7796
7797 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7798 (ns_string_to_pasteboard_internal):
7799 * nsmenu.m (process_dialog):
7800 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7801 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7802 * lisp.h (Fx_load_color_file): Declare.
7803
a8a3728b
KH
78042009-04-13 Kenichi Handa <handa@m17n.org>
7805
1ac9108a 7806 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7807 (font_select_entity): Suppress the code to optimize for the same
7808 kind of fonts.
7809 (font_load_for_lface): Get a font that supports at least ASCII
7810 characters.
7811
7812 * ftfont.c (Qja, Qko): New variables.
7813 (fc_charset_table): Delete uniquifier data for iso8859-1.
7814 (ftfont_get_latin1_charset): New function.
7815 (get_adstyle_property): New function.
7816 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7817 bitmap fonts.
7818 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7819 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7820 `ko' or `ja'.
7821 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7822 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7823 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7824 property.
7825 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7826 (syms_of_ftfont): DEFSYM Qja and Qko.
7827
483670b5
KH
78282009-04-09 Kenichi Handa <handa@m17n.org>
7829
12b55765
KH
7830 * charset.c (map_charset_chars): For a charset of `superset'
7831 method, fix calculation of code range.
7832
483670b5
KH
7833 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7834 from the list of extra properties.
7835 (font_clear_prop): Be sure to delete `:name' font property.
7836
57d3b93b
KH
78372009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7838
b4b2c2ca
YM
7839 * dispnew.c (redraw_overlapping_rows): Fix detection of
7840 overlapping for topmost and bottommost rows.
7841
1ac9108a 7842 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7843
472c3609
JR
78442009-04-06 Jason Rumney <jasonr@gnu.org>
7845
7846 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7847
ab193662
KH
78482009-04-06 Kenichi Handa <handa@m17n.org>
7849
7850 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7851
7852 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7853
0c26f026
KH
78542009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7855
7856 * ftfont.c (ftfont_open): Fix checking of the return value of
7857 FT_Load_Char. Fix setting font->underline_thickness.
7858
e173bbce
CY
78592009-04-04 Chong Yidong <cyd@stupidchicken.com>
7860
7861 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7862 (Fterminal_parameters, Fterminal_parameter)
7863 (Fset_terminal_parameter): In doc string, refer to terminal
7864 objects rather than terminal ids.
7865
693a2698
EZ
78662009-04-04 Eli Zaretskii <eliz@gnu.org>
7867
7868 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7869 ret_lim_data. (Bug#2867)
7870
d5221487
CY
78712009-04-03 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7874 so they don't get wider than the window, matching 2006-01-23
7875 change to the partner function in xdisp.c (Bug#2800).
7876
223509a3
KH
78772009-04-03 Kenichi Handa <handa@m17n.org>
7878
7879 * print.c (print_object): Make each lowest sub_char_table start a
7880 new line (Bug#2866).
7881
74fcd0b1
KH
78822009-04-02 Kenichi Handa <handa@m17n.org>
7883
7884 * fontset.c (fontset_font): Record no-font when a fontset
7885 explicitly tells not to try another font-specs.
7886
c542407d
SM
78872009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7888
7889 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7890
e3869731
KH
78912009-03-30 Kenichi Handa <handa@m17n.org>
7892
d8d2f142
KH
7893 * fontset.c (fontset_from_font): Specify only registry in a
7894 font-spec for all characters supported by that registry.
7895
e3869731
KH
7896 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7897 even if HAVE_M17N_FLT is not defined.
7898
5da5f805
CY
78992009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7900
7901 * ftfont.c: Conditionalize prototyping and use of
7902 ftfont_variation_glyphs.
7903
ab226c50
SM
79042009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7905
9628fed7
SM
7906 * frame.c (delete_frame): Work around compiler bug.
7907
7908 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7909 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7910 Some more EMACS_INT.
7911 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7912
7913 * xdisp.c (dump_glyph): Fix typo.
7914
ae19ba7c
SM
7915 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7916 (adjust_markers_gap_motion, adjust_markers_for_delete)
7917 (adjust_markers_for_insert, adjust_point)
7918 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7919 (make_gap, copy_text, count_size_as_multibyte, insert)
7920 (insert_and_inherit, insert_before_markers)
7921 (insert_before_markers_and_inherit, insert_1)
7922 (count_combining_before, count_combining_after, insert_1_both)
7923 (insert_from_string, insert_from_string_before_markers)
7924 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7925 (insert_from_buffer_1, adjust_after_replace)
7926 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7927 (replace_range_2, del_range, del_range_1, del_range_byte)
7928 (del_range_both, del_range_2, modify_region)
7929 (prepare_to_modify_buffer, signal_before_change)
7930 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7931 for buffer positions and sizes.
7932 * lisp.h: Adjust prototypes accordingly.
7933
7934 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7935 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7936 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7937
ab226c50
SM
7938 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7939
46dfb8fb
JD
79402009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7941
7942 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7943 lines and columns so we keep the same pixel height and width.
7944
7945 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7946 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7947 (x_handle_net_wm_state): New function to update frame parameter
7948 fullscreen.
7949 (x_term_init): Initialize atoms for _NET_WM_STATE.
7950
7951 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7952
d347e494
SM
79532009-03-27 Kevin Ryde <user42@zip.com.au>
7954
7955 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7956 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7957 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7958 (Fgpm_mouse_stop): Pass that new parameter.
7959 * termhooks.h (close_gpm): Adjust prototype.
7960
84db11d6
SM
79612009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7962
c95a5008
SM
7963 * lisp.h (Fx_focus_frame): Declare.
7964
84db11d6
SM
7965 * callint.c (Fcall_interactively): For '^' just delegate the work to
7966 handle-shift-selection.
7967 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7968
0a1958d6
CY
79692009-03-24 Chong Yidong <cyd@stupidchicken.com>
7970
0bfdff23
CY
7971 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7972
0a1958d6
CY
7973 * data.c (Qinteractive_form): New variable.
7974 (Finteractive_form): Use it.
7975
7976 * eval.c (Fcommandp): Use Qinteractive_form.
7977
58aec0d6
JR
79782009-03-24 Jason Rumney <jasonr@gnu.org>
7979
7980 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7981 Calculate total size precisely. Decode environment variables
7982 before substituting. (Bug#38)
7983
553dd618
KH
79842009-03-24 Kenichi Handa <handa@m17n.org>
7985
7986 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7987 encoding (Bug#2722).
553dd618 7988
c39ea606
JD
79892009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7990
7991 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7992 that gdpy is set.
7993
bc9b2b5e
AM
79942009-03-22 Alan Mackenzie <acm@muc.de>
7995
7996 * callint.c (Finteractive): Clarify the doc string - even
7997 promptless elements need \n separators.
7998
9f995a76
JR
79992009-03-22 Jason Rumney <jasonr@gnu.org>
8000
8001 * w32term.c (syms_of_w32term): Doc fix for
8002 x-use-underline-position-properties.
8003
22749e9a
EZ
80042009-03-21 Eli Zaretskii <eliz@gnu.org>
8005
8006 * w32.c (getpwuid): Change argument type to unsigned.
8007 (struct w32_id): Change type of `rid' member to unsigned.
8008 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8009 argument ID to unsigned. All callers changed.
8010 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8011
e00553bf
EZ
80122009-03-20 Eli Zaretskii <eliz@gnu.org>
8013
8014 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8015 negative, produce a float value.
8016
8017 * dired.c (make_uid, make_gid): New functions.
8018 (Ffile_attributes): Use them to avoid negative UID and GID.
8019
f761d6b6
JB
80202009-03-20 Juanma Barranquero <lekktu@gmail.com>
8021
8022 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8023 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8024 Fix typos in docstrings.
8025
d507f8d7
KH
80262009-03-19 Kenichi Handa <handa@m17n.org>
8027
8028 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8029 changed, use font_load_for_lface to get a new font object.
8030 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8031
8032 * frame.c (x_set_font): Handle the case that ARG is a cons.
8033
c68845e0
GM
80342009-03-19 Glenn Morris <rgm@gnu.org>
8035
8036 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8037
bfa49dd1
CY
80382009-03-19 Chong Yidong <cyd@stupidchicken.com>
8039
8040 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8041
8458d4c1
KH
80422009-03-19 Kenichi Handa <handa@m17n.org>
8043
8044 * charset.c (load_charset_map_from_file): When a mapfile can't be
8045 loaded, signal an error.
8046
78e7d1fe
EZ
80472009-03-18 Eli Zaretskii <eliz@gnu.org>
8048
8049 * dired.c (Ffile_attributes): Make sure UID and GID are always
8050 positive, even if the value is too large for a positive EMACS_INT.
8051 Doc fix.
8052
8053 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8054
5da9fdfa
YM
80552009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8056
8057 * xmenu.c (xdialog_show): Move Fredisplay call ...
8058 (Fx_popup_dialog): ... here.
8059
7519c40d
SM
80602009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8061
8062 * dired.c (file_name_completion): Disable the first optimization just
8063 installed, since it is not implemented correctly.
8064
2cd298e2
SM
80652009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8066
8067 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8068 only if the entry can affect bestmatch.
2cd298e2
SM
8069 Stop the search early, as Ftry_completion already does.
8070
48d37adf
CY
80712009-03-17 Chong Yidong <cyd@stupidchicken.com>
8072
e10c9c93 8073 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8074
9286b16a
CY
80752009-03-15 Chong Yidong <cyd@stupidchicken.com>
8076
8077 * keyboard.c (parse_menu_item): Don't display remappings as menu
8078 equivalent bindings (Bug#788).
8079
f7b146dc
JR
80802009-03-15 Jason Rumney <jasonr@gnu.org>
8081
8082 * w32term.h (WM_EMACS_PAINT): New message.
8083 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8084 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8085 before passing to lisp thread. (Bug#950)
8086
f761d6b6 80872009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8088
d93f9575
CY
8089 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8090 variable as it was never reset.
8091 (ns_term_init): Remove initialization of Lisp-settable defaults
8092 and ns_expand_space.
8093 (-setPanelFromDefaultValues): Remove ns_expand_space.
8094 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8095 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8096 i.e. no additional spacing, similar to Carbon port.
8097
d93f9575
CY
8098 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8099 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8100
305018ec
JD
81012009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8102
8103 * sound.c (alsa_configure): Remove call to deprecated
8104 snd_pcm_sw_params_set_xfer_align.
8105
f761d6b6 81062009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8107
8108 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8109 after clicking in a detached tool bar.
8110 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8111
46e722a9
SM
81122009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8113
348db3dd
SM
8114 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8115 int/Lisp_Object mixup).
46e722a9 8116
a3d16f39
KH
81172009-03-13 Kenichi Handa <handa@m17n.org>
8118
8119 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8120 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8121 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8122 (set_fontset_font): Change ARG to a vector. Handle range_list in
8123 ARG correctly.
8124 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8125 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8126 the above change.
8127 (fontset_from_font): Fix previous change.
fe24f56a 8128 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8129 entry. If FONTSET is the default fontset, don't set the extra
8130 slot of the returning char-table.
8131
b066e6b6
JB
81322009-03-12 Juanma Barranquero <lekktu@gmail.com>
8133
8134 * nsfns.m (Fx_close_connection): Doc fix.
8135 (Fns_do_applescript): Reflow docstring.
8136 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8137 (Fx_display_pixel_width, Fx_display_pixel_height)
8138 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8139 Fix typos in docstrings.
8140 (Fns_set_alpha): Fix typos in error messages.
8141
d472514e 81422009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8143
d472514e 8144 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8145 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8146 were used for such events.
8147
d472514e
JB
8148 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8149 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8150
d472514e 8151 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8152 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8153
fb930676
KH
81542009-03-11 Kenichi Handa <handa@m17n.org>
8155
ff85581a
KH
8156 * font.h (font_open_by_spec): Extern it.
8157
c50b7e98
KH
8158 * font.c (font_open_by_spec): New function.
8159 (font_open_by_name): Use font_open_by_spec.
8160
fb930676
KH
8161 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8162 fontset of the frame.
8163
8164 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8165 modify the default font of frames that use this fontset.
8166 (num_auto_fontsets): New variable.
8167 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8168 name. Be sure to set FONTSET_ASCII to the correct font name.
8169 (update_auto_fontset_alist): New function.
8170
df4e8455
JB
81712009-03-11 Juanma Barranquero <lekktu@gmail.com>
8172
8173 * makefile.w32-in: Update dependencies.
8174
0a375797
AR
81752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8176
8177 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8178
61313fa3
SM
81792009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8180
8181 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8182
b55103fb
CY
81832009-03-10 Chong Yidong <cyd@stupidchicken.com>
8184
8185 * lread.c (Feval_buffer): Doc fix.
8186
dde2559c
KH
81872009-03-09 Kenichi Handa <handa@m17n.org>
8188
8189 * charset.c (Qfile_name_handler_alist): Extern it.
8190 (load_charset_map_from_file): Temporarily bind
8191 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8192
df4e8455 81932009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8194
47f588bb
GM
8195 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8196 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8197
4ddf94bd
AR
81982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8199
4c9bdfc2
AR
8200 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8201 (x_set_window_size): Change back to calculated method of setting
8202 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8203 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8204 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8205
fe41ae9e
AR
8206 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8207
4c9bdfc2
AR
8208 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8209 accelerator in parens under GNUstep.
8210
825d0875
KH
82112009-03-06 Kenichi Handa <handa@m17n.org>
8212
8213 These changes are to detect incorrect composition sequence without
f3b3be74 8214 looking ahead the source. (Bug#2370)
825d0875
KH
8215
8216 * coding.h: Include "composite.h".
8217 (enum compisition_state): New enum.
8218 (struct compisition_status): New struct.
8219 (struct iso_2022_spec): New member cmp_status.
8220 (struct emacs_mule_spec): New struct.
8221 (struct coding_system): New members ctext_extended_segment_len and
8222 embedded_utf_8. Change the union member
8223 spec.emacs_mule_full_support to spec.emacs_mule.
8224
8225 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8226 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8227 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8228 (ADD_COMPOSITION_DATA): New arg nbytes.
8229 (emacs_mule_char): New arg cmp_status.
8230 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8231 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8232 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8233 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8234 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8235 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8236 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8237 (EMACS_MULE_COMPOSITION_END): New macro.
8238 (emacs_mule_finish_composition): New function.
8239 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8240 (decode_coding_emacs_mule): Avoid long looking ahead while
8241 handling composition.
8242 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8243 (ENCODE_COMPOSITION_RULE): New macro.
8244 (finish_composition): New function.
8245 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8246 (DECODE_COMPOSITION_START): New implementation.
8247 (DECODE_COMPOSITION_END): Likewise.
8248 (STORE_COMPOSITION_RULE): New macro.
8249 (decode_coding_iso_2022): Avoid long looking ahead while handling
8250 composition, CTEXT extended segment, and embedded UTF-8.
8251 (setup_coding_system): For a coding of type iso-2022, reset
8252 CODING_ISO_EXTSEGMENT_LEN (coding) and
8253 CODING_ISO_EMBEDDED_UTF_8 (coding).
8254 (get_translation): Delete arguments last_block, from_nchars,
8255 to_nchars. Callers changed.
8256 (produce_chars): Don't modify charbuf. Adjusted for the change of
8257 get_translation.
98a326f7 8258 (produce_composition): Adjust for the new annotation sequence.
825d0875 8259 (handle_composition_annotation): Likewise.
98a326f7 8260 (consume_chars): Adjust for the change of get_translation.
825d0875 8261
ccbc4452
AR
82622009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8263
4ddf94bd 8264 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8265
988a7ddb
KH
82662009-03-05 Kenichi Handa <handa@m17n.org>
8267
8268 * font.c (font_select_entity): New function.
8269 (font_find_for_lface): Use font_select_entity to select a font.
8270
8271 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8272 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8273 font with C restriction.
8274
98a326f7 82752009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8276
be1bce46 8277 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8278
10ea2b82
JR
82792009-03-04 Jason Rumney <jasonr@gnu.org>
8280
2c93b248 8281 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8282 characters that have already been read. (Bug#2569)
2c93b248 8283
10ea2b82
JR
8284 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8285 Log an error message if check_image_size failed.
8286 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8287 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8288
71a0c011
EZ
82892009-03-02 Eli Zaretskii <eliz@gnu.org>
8290
8291 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8292 when decoding process output.
8293
2f63bba8
RS
82942009-03-01 Richard M Stallman <rms@gnu.org>
8295
8296 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8297
8298 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8299
0a9564cb
EZ
83002009-02-28 Eli Zaretskii <eliz@gnu.org>
8301
8302 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8303 (decode_coding_emacs_mule, decode_coding_iso_2022)
8304 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8305 (decode_coding_raw_text, decode_coding_charset)
8306 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8307 Honor inhibit-eol-conversion. (Bug #2186)
8308
449148b3
JR
83092009-02-28 Jason Rumney <jasonr@gnu.org>
8310
8311 * coding.c (detect_coding_charset): If not checking latin extra,
8312 fail on characters between 0x80 and 0xA0. (Bug#2354)
8313
a4aee864
EZ
83142009-02-28 Eli Zaretskii <eliz@gnu.org>
8315
8316 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8317 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8318
d88bee5a
GM
83192009-02-27 Glenn Morris <rgm@gnu.org>
8320
8321 * callint.c (Finteractive): Doc fix.
8322
a808f22d
KH
83232009-02-27 Kenichi Handa <handa@m17n.org>
8324
8325 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8326
caf8d60c
CY
83272009-02-27 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * font.c (font_style_to_value): Set value for unknown symbols to
8330 100 instead of 255.
b61137ea
CY
8331 (weight_table, slant_table, width_table): Treat "unspecified" as
8332 the default value.
caf8d60c 8333
1a0de25c
JB
83342009-02-26 Juanma Barranquero <lekktu@gmail.com>
8335
8336 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8337
8fc45744
JB
83382009-02-25 Juanma Barranquero <lekktu@gmail.com>
8339
107bd7d1
JB
8340 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8341 error as soon as a recursive load is detected.
8fc45744 8342
f097e223
AR
83432009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8344
8345 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8346 before caching.
8347
8810a12f
KH
83482009-02-24 Kenichi Handa <handa@m17n.org>
8349
8350 * fontset.c (fontset_find_font): Fix the condition for checking
8351 unavailable font.
8352
2c7d1565
GM
83532009-02-24 Glenn Morris <rgm@gnu.org>
8354
8355 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8356 whitespace that confuses documentation.
8357
a20878b6
MB
83582009-02-23 Miles Bader <miles@gnu.org>
8359
8360 * process.c (Flist_system_processes, Fprocess_attributes)
8361 (syms_of_process): Rename `system-process-attributes' to
8362 `process-attributes'.
8363
b3b58c01
AS
83642009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8365
1b3b981b
AS
8366 * coding.h (struct coding_system): Make safe_charsets a pointer to
8367 unsigned char.
8368 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8369 being 255.
8370 (SAFE_CHARSET_P): Likewise.
8371 (setup_iso_safe_charsets): Properly setup safe_charsets.
8372 (Fdefine_coding_system_internal): Likewise.
8373 (setup_coding_system): Likewise. Remove unneeded casts.
8374 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8375 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8376 unneeded casts.
8377
b3b58c01
AS
8378 * insdel.c (del_range_2): Don't modify gap contents when called
8379 from decode_coding_object. (Bug#1809)
8380
0b6f228c
CY
83812009-02-21 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8384 Qfont_object.
8385 (Ftype_of): Recognize font objects.
8386
8387 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8388
8389 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8390 moved to data.c.
8391
52f8870b
AR
83922009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8393
8394 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8395 async_iconified. Based on a patch by Christian Lynbech
8396 <christian.lynbech@tieto.com>.
8397 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8398
7087d5e9
GM
83992009-02-20 Glenn Morris <rgm@gnu.org>
8400
8401 * syntax.c (Fskip_chars_forward): Fix doc typo.
8402
41d2ceef
CY
84032009-02-20 Chong Yidong <cyd@stupidchicken.com>
8404
8405 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8406
1a3b7ca6
CY
84072009-02-19 Chong Yidong <cyd@stupidchicken.com>
8408
8409 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8410
73cce38d
KH
84112009-02-19 Kenichi Handa <handa@m17n.org>
8412
8413 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8414 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8415
a51092ee
DN
84162009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8417
8418 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8419
c423ecca
KH
84202009-02-18 Kenichi Handa <handa@m17n.org>
8421
8422 * font.c (font_check_otf_features): Fix handling of `nil' element.
8423 (Ffont_spec): Describe :lang and :otf in the docstring.
8424
4c1958f4
AS
84252009-02-16 Andreas Schwab <schwab@suse.de>
8426
8427 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8428 string.
8429
5704f39a
KH
84302009-02-16 Kenichi Handa <handa@m17n.org>
8431
8432 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8433 (Bug#1723)
5704f39a 8434
8f0085aa
CY
84352009-02-14 Chong Yidong <cyd@stupidchicken.com>
8436
a057d86a 8437 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8438
8439 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8440 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8441
aff01dd9
EZ
84422009-02-14 Eli Zaretskii <eliz@gnu.org>
8443
8444 * msdos.c (MAX_SCREEN_BUF): New macro.
8445 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8446 Encode the entire run of glyphs sharing the same face, instead of
8447 doing that one glyph at a time (fixes a bug with displaying
8448 double-size characters).
8449
ba301db3
AR
84502009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8451
8452 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8453
8454 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8455 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8456 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8457
8458 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8459 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8460
51d861de
SM
84612009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8462
ac146f82 8463 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8464 invisible areas.
8465
7fed8996
JR
84662009-02-12 Jason Rumney <jasonr@gnu.org>
8467
631ea4fb
JR
8468 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8469 (add_font_entity_to_list): Call check_face_name even when family
8470 is unspecified.
8471
cb4a3e42
JR
8472 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8473 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8474 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8475
7fed8996 8476 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8477 raster fonts. (Bug#2219)
7fed8996 8478
895416e3
KH
84792009-02-12 Kenichi Handa <handa@m17n.org>
8480
8481 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8482 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8483 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8484 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8485 (find_automatic_composition): While looking forward and backward,
8486 check static composition. Fix where to stop looking forward.
8487 (composition_adjust_point): Fix checking of static composition.
8488 (Fcomposition_get_gstring): Pay attention to
1dacf998 8489 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8490
8491 * lisp.h (fast_looking_at): Extern it.
8492
8493 * search.c (fast_looking_at): New function.
8494
51d861de 8495 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8496 <struct glyph>.u.cmp.to.
8497 (append_composite_glyph): Likewise.
8498
51d861de 8499 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8500 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8501 composition.
51d861de 8502 (append_composite_glyph): Adjust for the change of
895416e3
KH
8503 <strcut glyph>.u.cmp.to.
8504
8510724d
JB
85052009-02-11 Juanma Barranquero <lekktu@gmail.com>
8506
8507 * casetab.c (init_casetab_once):
8508 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8509 * font.c (font_update_lface):
8510 * fontset.c (Fnew_fontset):
8511 * ftfont.c (ftfont_drive_otf):
8512 * xfont.c (xfont_open):
8513 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8514
294fa707
SM
85152009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8516
8517 * fileio.c (Fwrite_region): !NILP -> CONSP.
8518
b5bfebec
AS
85192009-02-10 Andreas Schwab <schwab@suse.de>
8520
8521 * process.c (send_process): Properly relocate pointer into data
adab88bd 8522 when using encoded data. (Bug#2272)
b5bfebec 8523
cb84a2be
KH
85242009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8525
8526 * coding.c (detect_coding_charset): Fix previous change.
8527
89e09428
JR
85282009-02-08 Jason Rumney <jasonr@gnu.org>
8529
8530 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8531 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8532
4470a277
AS
85332009-02-07 Andreas Schwab <schwab@suse.de>
8534
8535 * unexelf.c (unexec): Fix error message.
8536
3175b12a
AR
85372009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8538
8539 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8540 when modal window is active. (Bug #2152)
3175b12a
AR
8541 (applicationShouldTerminate:): Remove now-unneeded while loop
8542 around NSRunAlertPanel.
8543
8544 * nsmenu.m (popupSession): New file-global variable.
8545 (pop_down_menu): End the popupSession before closing dialog.
8546 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8547 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8548 don't query NSApp for events (just sleep instead).
8549
8434d0b8
EZ
85502009-02-07 Eli Zaretskii <eliz@gnu.org>
8551
51d861de
SM
8552 * coding.c (syms_of_coding) <translation-table-for-input>:
8553 Modify doc string to discourage use for character code unification.
8434d0b8 8554
aa82edfd
CY
85552009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8556
8557 * atimer.c (run_timers): Update pending_atimers.
8558
2d283c7c
CY
85592009-02-06 Chong Yidong <cyd@stupidchicken.com>
8560
eb306cab
CY
8561 * image.c (svg_load_image): Fix last change.
8562
2d283c7c
CY
8563 * xfns.c (Fx_create_frame): Signal an error if no font is
8564 found (Bug#2147).
8565
4d8e170e
JB
85662009-02-05 Juanma Barranquero <lekktu@gmail.com>
8567
8568 * character.c (syms_of_character) <script-representative-chars>:
8569 Fix typo in docstring.
8570
c96169a0
AR
85712009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8572
8573 * nsmenu.m (pop_down_menu): New function.
8574 (ns_popup_dialog): Call it on unwind.
8575 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8576 call timer_check() (Bug#2154).
8577 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8578 handling_signal is set.
8579 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8580
31fd7c5c 8581 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8582
8583 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8584
8585 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8586
51d861de
SM
8587 * keyboard.c (poll_for_input_1, handle_async_input):
8588 Set handling_signal under HAVE_NS.
c96169a0 8589
aacd8ba1
GM
85902009-02-04 Glenn Morris <rgm@gnu.org>
8591
8592 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8593
4cb75c4b
KH
85942009-02-04 Kenichi Handa <handa@m17n.org>
8595
8596 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8597
8598 * charset.c (Fchar_charset): New optional arg restriction.
8599
8600 * coding.h (coding_system_charset_list): Extern it.
8601
8602 * coding.c (coding_system_charset_list): New function.
8603
8604 * composite.c: Include coding.h and termhooks.h.
8605 (composition_gstring_p): Fix for the terminal case.
8606 (composition_gstring_width): Likewise.
8607 (fill_gstring_body): Likewise.
8608 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8609 the frame.
8610 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8611 is within a composition.
867d4bb3 8612 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8613
8614 * term.c (encode_terminal_code): Fix handling of composition.
8615 (produce_composite_glyph): For static composition, get pixel_width
8616 from struct composition.
8617
826ba17e
AS
86182009-02-02 Andreas Schwab <schwab@suse.de>
8619
8620 * unexelf.c (unexec): Handle unaligned bss offset.
8621
8ad093db
AR
86222009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8623
8624 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8625 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8626
8ad093db
AR
8627 * keyboard.c (handle_interrupt): Don't call
8628 quit_throw_to_read_char() under NS.
d0a76a6e 8629
8ad093db
AR
8630 * blockinput.h: Remove NS-specific code.
8631
4d18a7a2
DN
86322009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8633
db878925
DN
8634 * dispnew.c (window_change_signal): Don't try to get the size of a
8635 suspended tty frame.
8636 * term.c (Fresume_tty): Resize if the size has changed while the
8637 tty was suspended.
8638
4d18a7a2
DN
8639 * alloc.c (mark_stack): Properly conditionalize previous change.
8640
8984df7c
JB
86412009-01-30 Juanma Barranquero <lekktu@gmail.com>
8642
8643 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8644 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8645 Remove; this code is not used on Windows.
8646
75f4f1ac
EZ
86472009-01-30 Eli Zaretskii <eliz@gnu.org>
8648
8649 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8650 EOLs that also has stray ^M characters.
8651
07a1e794
JB
86522009-01-30 Juanma Barranquero <lekktu@gmail.com>
8653
8654 * atimer.c (run_timers, alarm_signal_handler):
8655 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8656 * w32inevt.c (w32_console_read_socket):
8657 * w32term.c (w32_read_socket):
8658 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8659
a8b11cc9
CY
86602009-01-30 Chong Yidong <cyd@stupidchicken.com>
8661
8662 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8663 Initialize it as a relative filename pattern.
8664 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8665 (Fcall_process_region): Simplify temp file creation using
8666 temporary-file-directory.
8667
c279587b
EZ
86682009-01-29 Eli Zaretskii <eliz@gnu.org>
8669
8670 * msdos.c: Rename pending_signals to msdos_pending_signals.
8671 (sig_suspender, sigprocmask): Adjust.
8672
a8fe3242
CY
86732009-01-29 Chong Yidong <cyd@stupidchicken.com>
8674
8675 * keyboard.c (pending_signals): New var.
8676 (poll_for_input, input_available_signal, init_keyboard): Set it.
8677 (process_pending_signals): New function.
8678
8679 * lisp.h (QUIT): Check pending_signals instead of
8680 interrupt_input_pending. Use process_pending_signals.
8681
51d861de 8682 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8683
51d861de 8684 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8685
8686 * sysdep.c (emacs_write): Use process_pending_signals.
8687
8688 * xterm.c (XTread_socket): Update pending_signals.
8689
8690 * w32term.c (w32_read_socket): Update pending_signals.
8691
8692 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8693
6570a1c4
KH
86942009-01-29 Kenichi Handa <handa@m17n.org>
8695
8696 * xftfont.c (xftfont_has_char): New function.
8697 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8698
d72a4afa
AR
86992009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8700
8701 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8702 under GNUstep.
8703 (ns_query_color): New declaration.
8704
8705 * nsterm.m (ns_confirm_quit): New variable.
8706 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8707 (EmacsApp-applicationShouldTerminate:): Use it.
8708 (EmacsPrefsController): Let user set it.
8709 (ns_query_color): New function.
8710 (ns_defined_color): Use it.
8711 (ns_initialize): Drop.
8712 (ns_term_init): Add two lines from ns_initialize(), and set
8713 input_interrupt_mode to nil.
8714
8715 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8716 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8717
9fe78804
KH
87182009-01-28 Kenichi Handa <handa@m17n.org>
8719
8720 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8721 (fontset_get_font_group): Remember that no font-group is specified
8722 for C.
9fe78804 8723
fa57de36
CY
87242009-01-27 Chong Yidong <cyd@stupidchicken.com>
8725
930600e9
CY
8726 * fns.c (concat): Check for string overflow (bug#1787).
8727
fa57de36
CY
8728 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8729 Quadruple undo limits (bug#1501).
8730
7179ce7b
KH
87312009-01-27 Kenichi Handa <handa@m17n.org>
8732
8733 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8734 directly use GT_Get_Char_index.
8735
8736 * xftfont.c (struct xftfont_info): New member `index'.
8737
8738 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8739 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8740
5be8fcc0
CY
87412009-01-26 Kenichi Handa <handa@m17n.org>
8742
8743 * fontset.c (fontset_find_font): Fix handling of non-cons return
8744 value of fontset_get_font_group.
8745 (fontset_font): Revert last change.
8746
19ae3e61
JR
87472009-01-26 Jason Rumney <jasonr@gnu.org>
8748
8749 * w32font.c (w32font_list_internal): Return quickly if registry is
8750 unknown. Simplify final return.
8751 (add_font_entity_to_list): Break complex logic down into more
8752 manageable chunks. Move unknown registry check to
8753 w32font_list_internal.
8754
8612b71a
AR
87552009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8756
8757 Changes to remove Feval calls from GUI under NS.
8758
d8038940
JB
8759 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8760 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8761 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8762
8763 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8764 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8765 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8766 instead of NON_ASCII_KEYSTROKE_EVENT.
8767 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8768 (EmacsApp-applicationShouldTerminate:): Query user.
8769 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8770 instead of Feval.
8771
8772 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8773
8774 * keyboard.c (kbd_buffer_get_event): Check for it.
8775 (keys_of_keyboard): Define lispy keys for
8776 ns-put/unput-working-text.
8777
8778 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8779 versions.
8780 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8781
6288ae55
CY
87822009-01-25 Chong Yidong <cyd@stupidchicken.com>
8783
8784 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8785 setting current_buffer directly. (Bug#2044)
6288ae55 8786
289e7f8f
CY
87872009-01-24 Chong Yidong <cyd@stupidchicken.com>
8788
5ce87308 8789 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8790 any work. (Bug#1952, bug#1990).
5ce87308 8791
64cc3cf6 8792 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8793
b3243e6f
AR
87942009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8795
8796 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8797 (ns_no_defaults): New declaration.
8798 (main): Use it.
e0d2e69a 8799
d900b2af 8800 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8801
d900b2af 8802 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8803
d900b2af
AR
8804 * nsterm.m (ns_no_defaults): New variable.
8805 (ns_initialize): Don't read defaults when ns_no_defaults.
8806 (EmacsView-readSelectionFromPasteboard:)
8807 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8808 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8809 (ns_dumpglyphs_stretch): New function.
8810 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8811 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8812
e0d2e69a
AR
8813 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8814
3ac71f5d
CY
88152009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8816
8817 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8818 call for Sparc64.
8819
3fe53a83
AR
88202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8821
8822 * nsfns.m:
8823 * nsgui.h:
8824 * nsmenu.m:
8825 * nsselect.m:
8826 * nsterm.h:
8827 * nsterm.m: Remove '23' comments that indicated code added during
8828 update from emacs-20 -> emacs-23.
8829
10f87c6f 88302009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8831
8832 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8833 ns_alternate_modifier. (Bug#1217)
a3b53a85 8834
c7cef62d
AR
8835 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8836 Display all shortcuts, including those w/o super modifier.
8837
575fb8bd
AR
8838 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8839
918b848b
CY
88402009-01-22 Chong Yidong <cyd@stupidchicken.com>
8841
8842 * fileio.c (Vwrite_region_post_annotation_function)
8843 (Vwrite_region_annotation_buffers): New vars.
8844 (build_annotations_unwind): Just reset
8845 Vwrite_region_annotation_buffers.
8846 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8847 Call write-region-post-annotation-function.
8848 (build_annotations): Add to Vwrite_region_annotation_buffers if
8849 buffer changes.
8850
a39e2539
AR
88512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8852
8853 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8854 Tiger.
51d861de
SM
8855 * nsfns.m (ns_do_applescript):
8856 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8857
35ed44db
AR
88582009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8859
8860 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8861
cbe0b5bf
AR
88622009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8863
8864 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8865
6049d3a0
AR
8866 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8867
8868 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8869 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8870 handle Ctrl-tab. (Bug#1841)
8871 (ns_get_color): Use unsigned long long for scanned hex string value.
8872 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8873 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8874 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8875 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8876 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8877 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8878 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8879
d3810c21 8880 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8881 DPI. (Bug#1316)
d3810c21
AR
8882 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8883 values in onTiger section.
4c7077c3 8884
e301e634
CY
88852009-01-19 Chong Yidong <cyd@stupidchicken.com>
8886
7f82490b
CY
8887 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8888 Check return value of font_spec_from_name.
64cc3cf6 8889 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8890
8891 * font.c (font_spec_from_name): Return Qnil if font name could not
8892 be parsed.
8893 (font_parse_name): Treat a `?' character as part of an XLFD.
8894
e301e634
CY
8895 * fns.c (Fsubstring): Doc fix.
8896
1c0db158
KH
88972009-01-19 Kenichi Handa <handa@m17n.org>
8898
51d861de 8899 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8900 (ftfont_list): Likewise.
8901
acf20901
JB
89022009-01-18 Juanma Barranquero <lekktu@gmail.com>
8903
fff4e459
JB
8904 * dbusbind.c (Fdbus_register_signal):
8905 * process.c (conv_sockaddr_to_lisp):
8906 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8907
acf20901
JB
8908 * callproc.c (Fgetenv_internal): Doc fix.
8909
e7abcdfb
CY
89102009-01-16 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8913 it is not even used.
8914
b60861e6
GM
89152009-01-16 Glenn Morris <rgm@gnu.org>
8916
8917 * font.c (Ffont_variation_glyphs): Silence compiler.
8918
8db52afe
JB
89192009-01-15 Juanma Barranquero <lekktu@gmail.com>
8920
8921 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8922 Reported by David Robinow <drobinow@gmail.com>.
8923
4cddb209
KH
89242009-01-15 Kenichi Handa <handa@m17n.org>
8925
51d861de 8926 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8927
f247f67b
JR
89282009-01-14 Jason Rumney <jasonr@gnu.org>
8929
8930 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8931 never a fontset. (Bug#1562)
f247f67b 8932
f56a4450
KH
89332009-01-14 Kenichi Handa <handa@m17n.org>
8934
8935 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8936 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8937
4e99855e
CY
89382009-01-13 Chong Yidong <cyd@stupidchicken.com>
8939
8940 * font.c (font_clear_prop): If clearing the family, clear the font
8941 width index too.
8942
fff4e459 8943 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8944
24f01470
JB
89452009-01-12 Juanma Barranquero <lekktu@gmail.com>
8946
8947 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8948 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8949 functions, use sizeof.
8950
a41240a3
MR
89512009-01-12 Martin Rudalics <rudalics@gmx.at>
8952
8953 * keyboard.c (read_char): Fix case where last_nonmenu_event
8954 returned a bad value with submenus. (Bug#447)
8955
944636b8
CY
89562009-01-12 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8959 family, clear the font width index too.
8960
0dad7c6f
JR
89612009-01-11 Jason Rumney <jasonr@gnu.org>
8962
8963 * keyboard.c (cmd_error_internal): Exit when errors occur before
8964 frame creation and not in daemon mode. (Bug#1836)
8965
7c2363af
CY
89662009-01-10 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8969 of a display vector, backtrack.
8970 (try_window_reusing_current_matrix): Check glyph type before
8971 referencing charpos member.
8972
97b1b294
EZ
89732009-01-10 Eli Zaretskii <eliz@gnu.org>
8974
8975 Fix Bug #876:
8976
8977 * coding.c (inhibit_null_byte_detection): New variable.
8978 (detect_coding, detect_coding_system): Don't pay attention to null
8979 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8980 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8981 <inhibit-iso-escape-detection>: Doc fix.
8982
4624b6e3
JR
89832009-01-09 Jason Rumney <jasonr@gnu.org>
8984
8985 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8986 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8987 Only report Unicode Plane 2 fonts as unicode-sip.
8988
323b840c
CY
89892009-01-09 Chong Yidong <cyd@stupidchicken.com>
8990
51d861de
SM
8991 * xfaces.c (Fx_font_family_list): Delete function.
8992 Move compatibility version to faces.el.
323b840c 8993
51d861de 8994 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8995
eba7400d
MR
89962009-01-09 Martin Rudalics <rudalics@gmx.at>
8997
8998 * frame.c (x_set_frame_parameters): Remember requested value for
8999 fullscreen before it's reset by the parameter handler.
9000
4b09796d
GM
90012009-01-09 Glenn Morris <rgm@gnu.org>
9002
9003 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9004 (last_command_event): ... and update all users.
4b09796d
GM
9005 (last_input_char): For clarity, rename to...
9006 (last_input_event): ... and update all users.
9007 (last-command-char, last-input-char): Move to subr.el as aliases.
9008 * cmds.c, commands.h: Update for last_command_char rename.
9009
14ccea62
CY
90102009-01-08 Chong Yidong <cyd@stupidchicken.com>
9011
51d861de 9012 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9013
5f004711
JR
90142009-01-08 Jason Rumney <jasonr@gnu.org>
9015
9016 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9017 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9018 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9019 Don't declare.
fff4e459 9020 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9021 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9022
b71f6f73
KH
90232009-01-07 Kenichi Handa <handa@m17n.org>
9024
50b06221 9025 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9026 remember the coding system used for decoding in
50b06221
KH
9027 coding_system (Bug#1039).
9028
b71f6f73 9029 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9030 breaking the loop. (Bug#870)
b71f6f73
KH
9031 (decode_coding_utf_16, decode_coding_emacs_mule)
9032 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9033 (decode_coding_charset): Likewise.
9034
56f668f7
MR
90352009-01-05 Martin Rudalics <rudalics@gmx.at>
9036
9037 * frame.c (x_set_frame_parameters): Make sure height (width) get
9038 applied when fullwidth (fullheight) is set. (Bug#1522)
9039
5da9424d
JB
90402009-01-04 Juanma Barranquero <lekktu@gmail.com>
9041
9042 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9043 (utc_base): Declare as ULONGLONG, not long double.
9044 (convert_time_raw): Delete.
9045 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9046 (initialize_utc_base): New function.
9047 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9048 (convert_from_time_t): Use initialize_utc_base; compute result with
9049 64-bit arithmetic.
9050 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9051
c4605e09
EZ
90522009-01-03 Eli Zaretskii <eliz@gnu.org>
9053
9acef61c 9054 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9055 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9056 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9057 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9058 [!subprocesses]: Define.
9059 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9060 (Flist_system_processes, Fsystem_process_attributes)
9061 [!subprocesses]: Call list_system_processes and
9062 system_process_attributes instead of returning Qnil.
9063
9acef61c
JB
9064 * dosfns.c (system_process_attributes, list_system_processes):
9065 New functions.
c4605e09
EZ
9066
9067 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9068
9069 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9070 Don't use the default (no-op) implementation.
9071
8b7d0a16
JR
90722009-01-03 Jason Rumney <jasonr@gnu.org>
9073
a6d46bc1
JR
9074 * keyboard.c (parse_modifiers_uncached): Wheel events are
9075 clicks (bug#687).
9076
8b7d0a16
JR
9077 * w32term.c (x_query_colors, x_query_color): New functions.
9078
9079 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9080 (svg_load_image): Cast returned pointers from dynamically loaded
9081 functions. Eliminate W32 specific code.
9082
bfe11752
DN
90832009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9084
89e2438a
DN
9085 * nsfns.m (x_set_foreground_color, x_set_background_color)
9086 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9087 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9088 x_ prefix instead of ns_. Update references.
9089 (syms_of_nsfns): Add a FIXME comment.
9090
9091 * nsterm.m (x_set_cursor_type): New prototype.
9092 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9093
bfe11752
DN
9094 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9095 for Solaris instead of incorrectly providing Qutime and Qcutime.
9096
031da700
EZ
90972009-01-02 Eli Zaretskii <eliz@gnu.org>
9098
9099 * w32.c (process_times): Compute sum of utime and stime.
9100 (system_process_attributes): Add Qtime to the alist.
9101
9102 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9103 and add them to the alist.
9104
9105 * process.c (top level) <Qtime, Qctime>: New variables.
9106 (syms_of_process): staticpro them.
9107 (Fsystem_process_attributes): Add their documentation to the doc
9108 string.
9109
9110 * process.h: Declare Qtime and Qctime.
9111
df23bf08
JR
91122009-01-02 Jason Rumney <jasonr@gnu.org>
9113
9acef61c 9114 * image.c (Qgobject): New symbol.
df23bf08
JR
9115 (syms_of_image): Initialize it.
9116 (init_svg_functions): Load some functions from gobject library.
9117
5bbdf7aa
DN
91182009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9119
9120 * frame.c (make_terminal_frame): Remove redundant code and useless
9121 block.
9122
63136da6
AS
91232009-01-01 Andreas Schwab <schwab@suse.de>
9124
9125 * process.c (conv_sockaddr_to_lisp): Add workaround for
9126 getsockname bug on BSD.
9127
9ef69046
CY
91282009-01-01 Chong Yidong <cyd@stupidchicken.com>
9129
d6fafbe0
CY
9130 * xfns.c (x_create_tip_frame): Set border width of the X window.
9131
51d861de 9132 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9133
f9c34147
JR
91342009-01-01 Jason Rumney <jasonr@gnu.org>
9135
9acef61c 9136 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9137 Don't block input, as per earlier xterm.c changes.
9138
f5497e45
AR
91392008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9140
9141 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9142 (ns_appkit_version_int): New function.
9143 (x-server-version): Use ns_appkit_version_int and follow 21+
9144 convention of returning 3 integers.
9145
c19cab20
KH
91462008-12-30 Kenichi Handa <handa@m17n.org>
9147
9148 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9149 (CHAR_SURROGATE_PAIR_P): New macro.
9150
9151 * font.h (struct font_driver): New member get_variation_glyphs.
9152
9acef61c 9153 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9154 (Ffont_variation_glyphs): New function.
9155 (syms_of_font): Defsubr it.
9156
9157 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9158 ftfont_variation_glyphs.
9159 (setup_otf_gstring): New function.
9160 (ftfont_drive_otf): Use it.
9161 (ftfont_shape_by_flt): Handle variation selector.
9162 (ftfont_variation_glyphs): New function.
9163
28cd591f
MR
91642008-12-30 Martin Rudalics <rudalics@gmx.at>
9165
9166 * frame.c (Vemacs_iconified): Remove.
9167
7f714baf
JR
91682008-12-30 Jason Rumney <jasonr@gnu.org>
9169
9170 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9171 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9172
9d2d22ab
CY
91732008-12-30 Chong Yidong <cyd@stupidchicken.com>
9174
9175 * indent.c (Fvertical_motion): Don't advance iterator if we have
9176 reseated to the desired position.
9177
9178 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9179 checking for pos match.
9180
545312c2
KH
91812008-12-30 Kenichi Handa <handa@m17n.org>
9182
1ede3eb6
KH
9183 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9184 just get the low 8-bit of the code.
9185
545312c2
KH
9186 * font.c (font_intern_prop): Validate str as multibyte.
9187
bd7bbf29
DN
91882008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9189
31e0750e
DN
9190 * dispextern.h (struct face): Move lface and hash from the middle
9191 of bitfields.
9192
bd7bbf29
DN
9193 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9194
b5672e7c
DN
91952008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9196
9197 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9198 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9199 instead of intervals.h.
9200
d704470f
AS
92012008-12-26 Andreas Schwab <schwab@suse.de>
9202
9203 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9204 cons.
9205
54b33868
MR
92062008-12-26 Martin Rudalics <rudalics@gmx.at>
9207
9208 * textprop.c (Qminibuffer_prompt): New variable.
9209 (syms_of_textprop): Initialize it.
9210 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9211 in minibuffer-prompt face. (Bug#1662)
9212
40b615d6
JR
92132008-12-25 Jason Rumney <jasonr@gnu.org>
9214
9215 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9216
baae5c2d
JR
92172008-12-24 Jason Rumney <jasonr@gnu.org>
9218
9219 * ralloc.c (r_alloc_reset_variable): New function.
9220
9221 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9222 record of what points where. (Bug#716)
baae5c2d 9223
a9051c88
DN
92242008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9225
9226 * minibuf.c (read_minibuf): Follow the non-interactive case when
9227 running as a daemon, before detaching.
9228
8b146312
AS
92292008-12-22 Andreas Schwab <schwab@suse.de>
9230
9231 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9232 * gtkutil.c (free_widget_value): Use xfree instead of free.
9233
56f2de10
MR
92342008-12-22 Martin Rudalics <rudalics@gmx.at>
9235
9236 * frame.c (delete_frame): New function derived from
9237 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9238 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9239 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9240 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9241 * frame.h: Extern delete_frame.
9242 * window.c (window_loop):
9243 * terminal.c (delete_terminal):
9244 * xterm.c (x_connection_closed):
9245 * xfns.c (Fx_hide_tip):
9acef61c 9246 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9247
1fc200d6
JR
92482008-12-21 Jason Rumney <jasonr@gnu.org>
9249
9250 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9251 when character maps to .notdef character.
9252
5e252df2
SM
92532008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9254
9255 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9256
99b72cc4
JR
92572008-12-20 Jason Rumney <jasonr@gnu.org>
9258
9259 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9260 a graphical frame on Windows. (Bug#1325)
99b72cc4 9261
acc49a52
JD
92622008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9263
9264 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9265
6ea15123
CY
92662008-12-20 Chong Yidong <cyd@stupidchicken.com>
9267
9268 * minibuf.c (Fread_buffer): Doc fix.
9269
b2dab6c8
JR
92702008-12-20 Jason Rumney <jasonr@gnu.org>
9271
54ea0c87 9272 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9273 server name in UNC paths. (Bug#719)
54ea0c87 9274
b2dab6c8 9275 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9276 charbuf. (Bug#1035)
b2dab6c8 9277
6d1921be
DN
92782008-12-19 Daniel Engeler <engeler@gmail.com>
9279
9280 * sysdep.c (serial_configure): Fix typo.
9281
53934c98
DN
92822008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9283
9284 * sysdep.c: Include alloca.h.
f4f634e8
DN
9285 (system_process_attributes): Add implementation for Solaris.
9286
9287 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9288
06e111a6
DN
92892008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 Reorganize implementation of Flist_system_processes and
9292 Fsystem_process_attributes. No functional changes.
9293 * process.c: Don't #include pwd.h, grp.h and limits.h.
9294 (Flist_system_processes): Just call list_system_processes.
9295 (Fsystem_process_attributes): Just call system_process_attributes.
9296 (procfs_list_system_processes, time_from_jiffies)
9297 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9298 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9299
9300 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9301 (list_system_processes): Rename from
9302 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9303 Provide a do nothing implementation.
9304 (system_process_attributes): Rename from
9305 procfs_list_system_processes.
9306 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9307 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9308
9309 * w32.c (list_system_processes): Rename from
9310 w32_list_system_processes.
9311 (system_process_attributes): Rename from
9312 w32_system_process_attributes.
9313
9314 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9315
9316 * process.h (w32_list_system_processes)
9317 (w32_system_process_attributes): Remove.
362654a6
JB
9318 (list_system_processes, system_process_attributes):
9319 New prototypes.
06e111a6 9320
6a705b23
KH
93212008-12-19 Kenichi Handa <handa@m17n.org>
9322
9323 * xfont.c (xfont_decode_coding_xlfd): New function.
9324 (xfont_encode_coding_xlfd): New function.
9325 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9326 (xfont_list): Decode and encode XLFD by iso-8859-1.
9327 (xfont_match): Likewise.
9328 (xfont_list_family): Likewise.
9329 (xfont_open): Likewise.
9330
d66c0241 9331 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9332 names are utf-8.
9333
d66c0241 9334 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9335 names are utf-8.
9336
5a130941
JD
93372008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9338
9339 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9340 changed.
bfd20325
JD
9341 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9342 clicked on a detached tool bar button.
5a130941 9343
fd95644b
DN
93442008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * emacs.c (main): Print and error and exit when no data is read
9347 from the pipe.
9348
e6eee6ae
JR
93492008-12-17 Jason Rumney <jasonr@gnu.org>
9350
9351 * w32font.c (w32font_has_char): Always return -1.
9352
a35dd56b
KH
93532008-12-16 Kenichi Handa <handa@m17n.org>
9354
9355 * font.c (font_open_entity): Fix previous change.
9356
0e3635c2
DN
93572008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9358
9359 * process.c: Include <limits.h>.
9360
d4835507 93612008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9362
9363 * font.c (font_update_drivers): Fix mistake in reconstructing the
9364 driver list.
9365
93662008-12-16 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * font.c (font_clear_cache): Fix format of font cache data.
9369
e2cbc401
CY
93702008-12-15 Chong Yidong <cyd@stupidchicken.com>
9371
9372 * xftfont.c (xftfont_open): Free Xft font pattern if
9373 XftFontOpenPattern fails.
9374
9375 * xterm.c (x_free_frame_resources): Remove extraneous call to
9376 free_frame_faces.
9377
b131d535
CY
93782008-12-13 Chong Yidong <cyd@stupidchicken.com>
9379
9380 * xterm.c (x_delete_display): Move xim_close_dpy call to
9381 x_delete_terminal.
9382 (x_delete_terminal): Call xim_close_dpy.
9383
e6df5336
JR
93842008-12-13 Jason Rumney <jasonr@gnu.org>
9385
9386 * w32font.c (intern_font_name): New function.
9387 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9388 (w32font_open_internal, Fx_select_font): Decode font name.
9389 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9390
9391 * w32font.h (intern_font_name): Declare new function.
9392
9393 * w32uniscribe.c (add_opentype_font_name_to_list):
9394 Use intern_font_name.
9395
20d68145
CY
93962008-12-13 Chong Yidong <cyd@stupidchicken.com>
9397
9f2554de
CY
9398 * frame.c (Fdelete_frame): Call free_font_driver_list.
9399
3d9bec9a
CY
9400 * font.c (free_font_driver_list): Implement missing function.
9401
20d68145
CY
9402 * w32term.c (w32_term_init): Don't initialize the image cache
9403 here; it will be done in init_frame_faces.
9404
9405 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9406 (struct x_display_info): Remove unused member null_pixel. New
9407 member xim_callback_data.
9408
9409 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9410 (xim_initialize): Save pointer to callback function data.
9411 (xim_close_dpy): Free callback function data. Call XCloseIM,
9412 reverting 2008-11-04 change by David Smith.
9413 (x_term_init): Don't initialize the image cache here; it will be
9414 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9415 (x_delete_display): Free x_dnd_atoms member.
9416
96f9306b
KH
94172008-12-13 Kenichi Handa <handa@m17n.org>
9418
6dec9044
JB
9419 * font.c (font_rescale_ratio): Moved from xfaces.c.
9420 Argument type changed. Handle a font-spec too.
96f9306b 9421 (font_score): Check Vface_font_rescale_alist.
6dec9044 9422 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9423
9424 * xfaces.c (font_rescale_ratio): Moved to font.c.
9425
8d5b4964
CY
94262008-12-13 Chong Yidong <cyd@stupidchicken.com>
9427
9428 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9429
e6df5336
JR
94302008-12-12 Jason Rumney <jasonr@gnu.org>
9431
9432 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9433 Vwindow_system_version to the real w32 major version.
9434
97c6058a
DN
94352008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9436
9437 * term.c (init_tty): Move setting the terminal name before the
9438 potential user: maybe_fatal.
9439
ec4e88d7
CY
94402008-12-11 Chong Yidong <cyd@stupidchicken.com>
9441
d4835507
JB
9442 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9443 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9444
b4233ec9
JR
94452008-12-11 Jason Rumney <jasonr@gnu.org>
9446
8ec71e23 9447 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9448 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9449
b4233ec9 9450 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9451 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9452
011a0143
JB
94532008-12-11 Juanma Barranquero <lekktu@gmail.com>
9454
9455 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9456
3c309f34
JB
94572008-12-11 Juanma Barranquero <lekktu@gmail.com>
9458
9459 * process.c (Fsystem_process_attributes, syms_of_process):
9460 Fix typo in name of Ssystem_process_attributes.
9461 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9462
fedc6ab5
JB
94632008-12-11 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * syntax.c (Fmodify_syntax_entry): Doc fix.
9466
ba3de0e8
JB
94672008-12-10 Juanma Barranquero <lekktu@gmail.com>
9468
9469 * font.c (Ffont_spec): Move usage to end of docstring.
9470
174f1c74
JR
94712008-12-10 Jason Rumney <jasonr@gnu.org>
9472
9473 * w32font.c (Qcham): New symbol.
9474 (font_supported_scripts): Add cham, and comments for other new
9475 scripts in bitfield from OpenType spec.
9d32f818
JR
9476 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9477 contain characters beyond the bmp.
174f1c74 9478
7b649478
KH
94792008-12-10 Kenichi Handa <handa@m17n.org>
9480
9481 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9482 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9483 Qunicode_sip.
9484
2133e2d1
JB
94852008-12-10 Juanma Barranquero <lekktu@gmail.com>
9486
9487 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9488 (Fcoding_system_put): Use QCdefault_char.
9489 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9490
9af886ee
CY
94912008-12-09 Chong Yidong <cyd@stupidchicken.com>
9492
74d819eb
CY
9493 * xftfont.c (syms_of_xftfont): Fix typo.
9494
4ccfa1c0 9495 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9496
7c19d3ae
DN
94972008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9498
9499 * emacs.c (main): Close daemon_pipe on exec.
9500
567826bb
CY
95012008-12-08 Chong Yidong <cyd@stupidchicken.com>
9502
9503 * termchar.h (struct tty): New members termcap_term_buffer and
9504 termcap_strings_buffer.
9505
9506 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9507 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9508 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9509 All callers changed.
9510 (init_tty): Store termcap data and string buffers in new struct
9511 tty members termcap_term_buffer and termcap_strings_buffer.
9512 (delete_tty): Free them.
4ccfa1c0 9513 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9514
aa96c42b
SZ
95152008-12-07 Seiji Zenitani <zenitani@mac.com>
9516
9517 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9518 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9519
b7e1d896
CY
95202008-12-06 Chong Yidong <cyd@stupidchicken.com>
9521
9522 * coding.c (make_conversion_work_buffer): Disable buffer
9523 modification hooks in the work buffer.
9524
b5ec91a5
EZ
95252008-12-05 Eli Zaretskii <eliz@gnu.org>
9526
9527 * process.c (procfs_system_process_attributes): If `nread' has a
9528 negative value, assign zero to it.
9529
a5d2a52b
CY
95302008-12-05 Chong Yidong <cyd@stupidchicken.com>
9531
68c5540b 9532 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9533
7bf1bb21
KH
95342008-12-05 Kenichi Handa <handa@m17n.org>
9535
9536 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9537 second character is a combining character.
9538
2fdc7d00
EZ
95392008-12-05 Eli Zaretskii <eliz@gnu.org>
9540
9541 * process.c (procfs_system_process_attributes): Don't use cmd,
9542 cmdsize, and q without initializing them first.
9543
bf6bfba8
JR
95442008-12-04 Jason Rumney <jasonr@gnu.org>
9545
9546 * w32font.c (w32font_draw): Initialize orig_clip before getting
9547 it, and delete it when finished.
9548
a3b1a468
DN
95492008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9550
9551 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9552 case when running as a daemon before detaching.
9553
8b8be8eb
JB
95542008-12-03 Juanma Barranquero <lekktu@gmail.com>
9555
805f2638 9556 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9557
b1bde622
KH
95582008-12-03 Kenichi Handa <handa@m17n.org>
9559
e500c47d
KH
9560 * font.c (font_at): Set `multibyte' at first.
9561
ca516334
KH
9562 * coding.c (decode_coding_charset): Check type of an element of
9563 vector VALIDS.
7bf1bb21 9564 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9565
4ccfa1c0 9566 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9567 (font_for_char): Likewise.
9568
1e5ecd37
CY
95692008-12-03 Chong Yidong <cyd@stupidchicken.com>
9570
d5b01609 9571 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9572 (font_update_lface): Handle fonts with corrupted size specs,
9573 i.e. non-int and non-float.
d5b01609 9574
11e3a6e4 9575 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9576 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9577 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9578
ab06788b
CY
9579 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9580
1e5ecd37 9581 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9582 underline_minimum_offset for underline position.
1e5ecd37 9583
63c125ab
DN
95842008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9585
9586 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9587
9588 * character.c (c_string_width): Specify the type for LEN.
9589
3a8406e1
KH
95902008-12-03 Kenichi Handa <handa@m17n.org>
9591
4ccfa1c0 9592 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9593 (decode_coding_utf_8): Likewise.
4ccfa1c0 9594 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9595 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9596
651df7d9
CY
95972008-12-02 Chong Yidong <cyd@stupidchicken.com>
9598
9599 * keyboard.c (make_lispy_position): Only use PT if the selected
9600 window is current.
9601
1f625c6c
AS
96022008-12-02 Andreas Schwab <schwab@suse.de>
9603
f7741ce9
AS
9604 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9605
1f625c6c
AS
9606 * doprnt.c (doprnt1): Fix size of charbuf.
9607
92bc2678
CY
96082008-12-02 Chong Yidong <cyd@stupidchicken.com>
9609
9610 * keyboard.c (timer_check): Revert last change.
9611
93b9e8cc
JB
96122008-12-02 Juanma Barranquero <lekktu@gmail.com>
9613
9614 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9615
fd7a37d5
JB
96162008-12-01 Juanma Barranquero <lekktu@gmail.com>
9617
9618 * makefile.w32-in: Update dependencies.
9619 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9620
c115043b
AS
96212008-12-01 Andreas Schwab <schwab@suse.de>
9622
9623 * font.c (register_font_driver): Use xmalloc.
9624 (font_put_frame_data): Likewise.
9625
f5668d2a
CY
96262008-12-01 Chong Yidong <cyd@stupidchicken.com>
9627
860d96be
CY
9628 * xfaces.c (realize_x_face): Make abort condition clearer.
9629
f5668d2a
CY
9630 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9631
379c17e7
CY
96322008-11-30 Chong Yidong <cyd@stupidchicken.com>
9633
9634 * keyboard.c (timer_check): After a timer runs, ensure that the
9635 selected window's buffer is current.
9636
35f36d65
JB
96372008-11-30 Juanma Barranquero <lekktu@gmail.com>
9638
f952c61c
JB
9639 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9640 It was accidentally restored by the Unicode merge.
9641
35f36d65
JB
9642 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9643
b23077df
JB
96442008-11-29 Juanma Barranquero <lekktu@gmail.com>
9645
9646 * w32proc.c: Include "coding.h".
9647 (Fw32_short_file_name): Encode filename passed to Windows API.
9648 (Fw32_long_file_name): Encode filename passed to Windows API and
9649 decode back the result. (Bug#1433)
9650
b8ebe9dd
KH
96512008-11-29 Kenichi Handa <handa@m17n.org>
9652
8cc53f96
KH
9653 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9654 not before accessing it.
9655
b8ebe9dd
KH
9656 * charset.c (Fdefine_charset_internal): After calculating
9657 min_char, max_char, and fastmap, copy the charset structure again.
9658 (encode_char): Fix the previous change.
9659
59bc82c0
SZ
96602008-11-28 Seiji Zenitani <zenitani@mac.com>
9661
9662 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9663
9664 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9665
9666 * nsterm.m (x_set_frame_alpha): New function.
9667
32247e3d
EZ
96682008-11-27 Eli Zaretskii <eliz@gnu.org>
9669
9670 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9671
b003e5ff
JB
96722008-11-27 Juanma Barranquero <lekktu@gmail.com>
9673
9674 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9675 pointer to check_face_name.
9676
708550f5
KH
96772008-11-27 Kenichi Handa <handa@m17n.org>
9678
9679 * category.h (SET_CATEGORY_SET): Call set_category_set.
9680 (set_category_set): Extern it.
9681
9682 * category.c (hash_get_category_set): New function.
9683 (Fmodify_category_entry): Adjusted for the change of
9684 char_table_ref_and_range. Call hash_get_category_set to get a
9685 category set to store in the table.
9686
9687 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9688 Funify_charset.
9689
2ae37cf0 9690 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9691 (DECODE_CHAR): Check if the decoder vector is ready.
9692 (ENCODE_CHAR): Check if the encoder char-table is ready.
9693 (maybe_unify_char): Extern it.
9694
9695 * charset.c (Vchar_unified_charset_table): Delete it.
9696 (inhibit_load_charset_map): New variable.
9697 (temp_charset_work): New variable.
9698 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9699 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9700 New macros.
9701 (load_charset_map): Meaning of control_flag changed. If
9702 inhibit_load_charset_map is nonzero, setup a table in
9703 temp_charset_work.
9704 (load_charset): New argument control_flag.
9705 (map_charset_for_dump): New function.
9706 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9707 map_charset_for_dump.
9708 (Fdefine_charset_internal): If the charset method is MAP, load
9709 mapping tables by calling load_charset.
9710 (Funify_charset): Don't load a mapping table but directly set
9711 Vchar_unify_table.
9712 (maybe_unify_char): New function.
9713 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9714 Handle the case of inhibit_load_charset_map being nonzero.
9715 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9716 Handle the case of inhibit_load_charset_map being nonzero.
9717 (Fclear_charset_maps): Just free temp_charset_work.
9718 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9719 variable.
9720
9721 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9722 change of char_table_ref_and_range.
9723 (char_table_ref_and_range): Change the meaning of argument FROM
9724 and TO. Now the caller must provide initial values for *FROM
9725 and *TO.
9726
9727 * fontset.c (fontset_add): Adjusted for the change of
9728 char_table_ref_and_range.
9729 (fontset_get_font_group): Likewise.
9730 (Ffontset_info): Likewise.
9731
9732 * keymap.c (describe_vector): Adjusted for the change of
9733 char_table_ref_and_range. For char-table, put boundary between
9734 non-ASCII and 8-bit characters.
9735
9736 * print.c (print_object): For bool-vector, delete unnecessary
9737 check of ASCII_BYTE_P.
9738
9196133b
JR
97392008-11-26 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9742 leading in font height. (Bug#879)
9196133b 9743
9f688acf
GM
97442008-11-26 Glenn Morris <rgm@gnu.org>
9745
9746 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9747 redefinition with ifdef. (Bug#1383)
9748
90d19aff
AR
97492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9750
9751 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9752
4ccfa1c0 97532008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9754
9755 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9756 New EmacsView methods.
9757 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9758 Fixes bug #1048,1357,1414.
9759
97602008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9761
9762 Fix bug #1362.
9763 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9764 is not an indexed color.
9765 * nsterm.m (free_indexed_color): Add argument checking.
9766 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9767
e7d5ecb3
CY
97682008-11-24 Chong Yidong <cyd@stupidchicken.com>
9769
9770 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9771 Document confirm-after-completion value for
9772 minibuffer-completion-confirm.
9773
c285743c
JR
97742008-11-24 Jason Rumney <jasonr@gnu.org>
9775
9776 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9777 warning.
9778
b0857706
JR
97792008-11-23 Jason Rumney <jasonr@gnu.org>
9780
9781 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9782 restored before returning.
9783
9784 * w32font.c (check_face_name): New function.
9785 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9786 fonts. (Bug#642)
b0857706 9787
ee50ff07
MR
97882008-11-22 Martin Rudalics <rudalics@gmx.at>
9789
9790 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9791 confirm-nonexistent-file-or-buffer in doc-string.
9792
b8ff72fa
SM
97932008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9794
9795 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9796 Fix copy/paste typo. Add checks.
9797
cee53ed4
KH
97982008-11-21 Kenichi Handa <handa@m17n.org>
9799
9800 * coding.c (detect_coding_iso_2022): Reject invalid composition
9801 sequence.
9802 (DECODE_COMPOSITION_START): If the current source is the last
9803 block, and the current composition doesn't end, regard this
9804 sequence as invalid.
9805 (decode_coding_iso_2022): Handle invalid composition sequence.
9806
f6ef1e65
MR
98072008-11-20 Martin Rudalics <rudalics@gmx.at>
9808
9809 * window.c (coordinates_in_window): Don't return
9810 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9811 line when the window is not the rightmost one. (Bug#1372)
9812
e08b1705
MR
98132008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9814
9815 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9816
ad98e89f
EZ
98172008-11-15 Eli Zaretskii <eliz@gnu.org>
9818
9819 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9820 and bright_bg if noninteractive is non-zero.
9821
fb098a4b
CY
98222008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9823
9824 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9825 x_draw_glyph_string_background.
9826
9827 * w32term.c (x_draw_glyph_string): Likewise.
9828
ce952b6e
CY
98292008-11-15 Chong Yidong <cyd@stupidchicken.com>
9830
9831 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9832 the next glyph string once past the overhang width.
9833
9834 * nsterm.m (ns_draw_glyph_string): Likewise.
9835
9836 * w32term.c (x_draw_glyph_string): Likewise.
9837
26ea7079
CY
98382008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9839
9840 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9841 double file close.
9842
1c33c906
MR
98432008-11-14 Martin Rudalics <rudalics@gmx.at>
9844
9845 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9846 dedicated status of window before attempting to display another
9847 buffer in it.
9848
8fc29035
JB
98492008-11-14 Juanma Barranquero <lekktu@gmail.com>
9850
9851 * msdos.c (Fmsdos_long_file_names):
9852 (syms_of_msdos) <dos-unsupported-char-glyph>:
9853 * dosfns.c (Fint86): Fix typos in docstrings.
9854
55fb4286
EZ
98552008-11-14 Eli Zaretskii <eliz@gnu.org>
9856
9857 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9858
3fda0315
KY
98592008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9860
9861 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9862
7e849c17
CY
98632008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9864
9865 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9866
9867 * frame.h: Negative alpha means "don't touch".
9868
9869 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9870
9871 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9872
b9fd67bd
DN
98732008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9874
9875 * hftctl.c:
9876 * chpdef.h:
9877 * acldef.h: Remove files used only for systems no longer supported.
9878
9879 * Makefile.in: Fix .o alphabetical ordering.
9880 (hftctl.o): Remove dependency, file removed.
9881 (keymap.o, print.o): Depend on charset.h.
9882
d5998e03
KH
98832008-11-10 Kenichi Handa <handa@m17n.org>
9884
2ae37cf0 9885 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9886
be70e183
CY
98872008-11-08 Chong Yidong <cyd@stupidchicken.com>
9888
9889 * dired.c (file_name_completion): If completion_ignore_case is
9890 enabled, ignore case when checking completion-regexp-list.
9891
7cf94eac
EZ
98922008-11-08 Eli Zaretskii <eliz@gnu.org>
9893
9894 * vm-limit.c (get_lim_data): Fix last change.
9895
ee107a89
KH
98962008-11-08 Kenichi Handa <handa@m17n.org>
9897
9898 * character.c (Fget_byte): New function.
9899 (syms_of_character): Defsubr Fget_byte.
9900
5fd15622
CY
99012008-11-07 Chong Yidong <cyd@stupidchicken.com>
9902
9903 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9904 cursor position is valid after scrolling.
9905
13d62fad
JB
99062008-11-06 Juanma Barranquero <lekktu@gmail.com>
9907
9908 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9909
a1dd2936
GM
99102008-11-06 Glenn Morris <rgm@gnu.org>
9911
9912 * xterm.c (handle_one_xevent): Don't let popup menus cause
9913 mouse-autoselect-window related window switching. (Bug#1261)
9914
860cd236
CY
99152008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9916
9917 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9918
653a3150
AS
99192008-11-04 Andreas Schwab <schwab@suse.de>
9920
9921 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9922
870f5cac
CY
99232008-11-03 Chong Yidong <cyd@stupidchicken.com>
9924
9925 * xfns.c (Fx_wm_set_size_hint): New function.
9926
1e02f3cb
MR
99272008-11-03 Martin Rudalics <rudalics@gmx.at>
9928
9929 * textprop.c (Fprevious_single_char_property_change): Return 0
9930 when there's no change in a string. (Bug#1301)
9931
e630dfc6
MR
99322008-11-02 Martin Rudalics <rudalics@gmx.at>
9933
9934 * frame.c (do_switch_frame): New argument NORECORD passed to
9935 Fselect_window.
9936 (Fselect_frame): New argument NORECORD passed to
9937 do_switch_frame.
9938 (Fset_frame_selected_window): New argument NORECORD passed to
9939 Fselect_frame.
9940 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9941 in call of do_switch_frame.
9942 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9943 Handle NORECORD argument in call of Fselect_frame.
9944 * lisp.h (do_switch_frame, Fselect_frame)
9945 (Fset_frame_selected_window): Adjust declarations.
9946 * window.c (select_frame_norecord): New function.
9947 (run_window_configuration_change_hook): Use it and call
9948 Fselect_frame with NORECORD set.
9949 (Fselect_window): Pass NORECORD to Fselect_frame.
9950 (Fset_window_configuration): Handle NORECORD argument in call of
9951 do_switch_frame.
9952 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9953 Fset_frame_selected_window.
9954 * keyboard.c (command_loop_1): Handle NORECORD in call of
9955 Fselect_frame (currently ifdefd).
9956
9020b223
GM
99572008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9958
9959 * emacs.c (USAGE2): Untabify.
9960
793ffee8
SM
99612008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * composite.c (fill_gstring_header): Fix copy/paste typo.
9964
ab6d1131
MR
99652008-10-31 Martin Rudalics <rudalics@gmx.at>
9966
9967 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9968 (Fother_window): Rename argument and rewrite doc-string.
9969 (select_window_norecord): Fix return value. (Bug#1276)
9970
601a9cf1
JB
99712008-10-30 Juanma Barranquero <lekktu@gmail.com>
9972
9973 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9974 new frames overriding foreground for tooltips. Based on similar patch
9975 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9976
813b0652
CY
99772008-10-29 Chong Yidong <cyd@stupidchicken.com>
9978
9979 * emacs.c (Fdaemon_initialized): Initialize nfd.
9980
4414f58f
MR
99812008-10-29 Martin Rudalics <rudalics@gmx.at>
9982
9983 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9984 (Fwindow_text_height): Clarify doc-strings.
9985 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9986 doc-string of window-scroll-functions.
9987
ecdcaa09
RS
99882008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9989
9990 * category.c (syms_of_category): Fix typo in docstring.
9991
23fe745a
JB
99922008-10-28 Juanma Barranquero <lekktu@gmail.com>
9993
9994 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9995 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9996 Fix typos in docstrings.
9997
ff808935
DN
99982008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9999
10000 * emacs.c (daemon_pipe): Make non-static.
10001 (IS_DAEMON): Move definition ...
10002 * lisp.h (IS_DAEMON): ... here.
10003 (daemon_pipe): Declare.
10004 (is_daemon): Remove.
10005 * dispnew.c (init_display): Use IS_DAEMON.
10006
fc012771
SM
100072008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10008
10009 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10010 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10011
10012 * emacs.c (is_daemon): Remove.
10013 (main): Don't set is_daemon.
10014 (IS_DAEMON): New macro.
10015 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10016 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10017 parent exits.
10018 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10019
d8bdbe6f
CY
100202008-10-27 Chong Yidong <cyd@stupidchicken.com>
10021
d1a072bf
CY
10022 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10023 over-sized glyph, draw it with the default glyph width.
10024
e2e325aa
CY
10025 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10026 glyph, draw it with the default glyph width.
10027
10028 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10029 glyph, draw it with the default glyph width.
10030
d8bdbe6f
CY
10031 * xdisp.c (try_scrolling): When computing the distance from the
10032 scroll margin to PT, try moving some distance past the window
10033 bottom before giving up.
10034
7bfac547
MR
100352008-10-27 Martin Rudalics <rudalics@gmx.at>
10036
10037 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10038 (Fset_window_buffer): Explain in doc-string that a window can be
10039 "strongly" dedicated to its buffer.
10040
4ff029f6
DN
100412008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10042
10043 * emacs.c (daemon_name): New variable.
10044 (main): Deal with --daemon=SERVER_NAME.
10045 (Fdaemonp): Return a name if one was passed to --daemon.
10046
5790ef40
DN
100472008-10-26 Romain Francoise <romain@orebokech.com>
10048
f9bd0df9 10049 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10050 (main): Create a pipe before forking, make the parent exit only after
10051 the child has closed its end of the pipe. Move closing the
10052 descriptors ...
10053 (Fdaemon_initialized): ... here. New function.
10054
f5385255
SM
100552008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10056
4d632321
SM
10057 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10058 the previous unoptimized table.
10059
f5385255
SM
10060 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10061 the distinction between non-nil and non-t value of `dedicated'.
10062
6c56a0f3
CY
100632008-10-25 Chong Yidong <cyd@stupidchicken.com>
10064
10065 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10066 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10067
fec89261
MR
100682008-10-25 Martin Rudalics <rudalics@gmx.at>
10069
10070 * window.c (Fget_buffer_window, Fdelete_windows_on)
10071 (Freplace_buffer_in_windows): Make buffer argument optional and
10072 rename to buffer_or_name.
10073
34fcddd0
CY
100742008-10-24 Chong Yidong <cyd@stupidchicken.com>
10075
f5385255
SM
10076 * xdisp.c (handle_single_display_spec, handle_display_prop):
10077 Undo 2005-05-16 change.
34fcddd0
CY
10078 (handle_stop): Pop iterator if it's loaded with an empty string.
10079 (get_overlay_strings_1): Don't save iterator if it's loaded with
10080 an empty string (bug#1201).
10081
064766f2
KH
100822008-10-24 Kenichi Handa <handa@m17n.org>
10083
10084 * ftfont.c (ftfont_otf_features): Fix previous change.
10085 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10086 calling ftfont_otf_features.
10087
f9bd0df9 100882008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10089
10090 * font.c (font_match_p): Fix for the case that a vector of
10091 characters is in script-representative-chars.
10092
1dae9197
MA
100932008-10-24 Michael Albinus <michael.albinus@gmx.de>
10094
10095 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10096 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10097 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10098 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10099 macro. (Bug#1186)
1dae9197 10100
f9bd0df9 101012008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10102
10103 * s/sol2-10.h: New file.
10104
878a4584
JB
101052008-10-23 Juanma Barranquero <lekktu@gmail.com>
10106
10107 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10108 poor beast has survived 9+ years and the jump from xterm.c!).
10109
cd265ca6
MR
101102008-10-23 Martin Rudalics <rudalics@gmx.at>
10111
10112 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10113 Reword doc-string.
f5385255 10114 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10115
472a4dc9
JB
101162008-10-23 Juanma Barranquero <lekktu@gmail.com>
10117
10118 * character.c (syms_of_character) <script-representative-chars>:
10119 <unicode-category-table>: Doc fixes.
10120
159bd5a2
NF
101212008-10-23 Noah Friedman <friedman@splode.com>
10122
10123 * coding.c (make_conversion_work_buffer): Check that
10124 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10125 Fget_buffer_create.
10126
49f9c344
KH
101272008-10-23 Kenichi Handa <handa@m17n.org>
10128
10129 * font.c (font_add_log): Check the values of extra properties.
10130
12bb3111
MR
101312008-10-22 Martin Rudalics <rudalics@gmx.at>
10132
10133 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10134 Reword doc-string.
10135 (Fset_window_parameter): Use NILP.
10136 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10137 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10138
bbeb4e99
JB
101392008-10-22 Juanma Barranquero <lekktu@gmail.com>
10140
10141 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10142
101432008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10144
10145 * nsfns.m (ns_appkit_version): New function.
10146 (x-server-version): Use it.
10147 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10148 (x-server-vendor): Don't check_ns().
10149
10150 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10151
a9b555d3
JB
101522008-10-22 Juanma Barranquero <lekktu@gmail.com>
10153
10154 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10155 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10156
4626499f
KH
101572008-10-22 Kenichi Handa <handa@m17n.org>
10158
e3681952
KH
10159 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10160 scripts.
10161
4626499f
KH
10162 * category.c (word_boundary_p): Check scripts instead of charset.
10163 Handle nil value in word-separating-categories and
10164 word-combining-categories.
10165 (syms_of_category): Fix docstrings of word-separating-categories
10166 and word-combining-categories.
10167
1560f91a
EZ
101682008-10-21 Eli Zaretskii <eliz@gnu.org>
10169
10170 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10171 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10172
f4668441
MR
101732008-10-21 Martin Rudalics <rudalics@gmx.at>
10174
10175 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10176 Rename arg "buffer" to "buffer_or_name".
10177 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10178 it optional.
10179 (no_switch_window): Remove since the return value is not used.
a9b555d3 10180 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10181 Consider window as dedicated when Fwindow_dedicated_p returns a
10182 non-nil value.
10183 * lisp.h: Remove prototype for no_switch_window.
10184
fd75ddb2
JD
101852008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10186
10187 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10188 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10189
07295713
KH
101902008-10-21 Kenichi Handa <handa@m17n.org>
10191
10192 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10193 check Vlatin_extra_code_table.
10194
712adc82
EZ
101952008-10-20 Eli Zaretskii <eliz@gnu.org>
10196
10197 * fileio.c (Fset_file_modes): Doc fix.
10198
f549eb0b
MA
101992008-10-19 Michael Albinus <michael.albinus@gmx.de>
10200
10201 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10202 in arrays.
10203
aac0c6e3
MR
102042008-10-19 Martin Rudalics <rudalics@gmx.at>
10205
10206 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10207 Mention kill-buffer in doc-string.
10208 (Fset_window_buffer): Reinsert tem check removed in last commit.
10209 (Fenlarge_window, Fshrink_window): Have argument names and
10210 doc-string follow Elisp manual more closely.
10211
102122008-10-18 Eli Zaretskii <eliz@gnu.org>
10213
10214 * fileio.c (Fset_file_modes): Doc fix.
10215
102162008-10-18 Martin Rudalics <rudalics@gmx.at>
10217
10218 * window.c (Fwindow_width, Fset_window_start)
10219 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10220 (Fdelete_windows_on, Freplace_buffer_in_windows):
10221 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10222 (Fwindow_dedicated_p): Make window argument optional.
10223 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10224 (Fset_window_buffer): Respect any non-nil dedicated value for
10225 window. Rename "buffer" argument to "buffer_or_name".
10226
102272008-10-18 Ulrich Mueller <ulm@gentoo.org>
10228
10229 * m/sh3.h: New file, machine description for SuperH.
10230
102312008-10-17 Martin Rudalics <rudalics@gmx.at>
10232
10233 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10234
102352008-10-17 Kenichi Handa <handa@m17n.org>
10236
10237 * ftfont.c (ftfont_otf_features): Fix indexing
10238 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10239
102402008-10-16 Magnus Henoch <mange@freemail.hu>
10241
10242 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10243 (Fdbus_call_method_asynchronously): Ditto.
10244 This change makes C-h f display the argument list.
10245
102462008-10-16 Chong Yidong <cyd@stupidchicken.com>
10247
10248 * fileio.c (Fexpand_file_name): Doc fix.
10249
10250 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10251 of :foreground and :background equivalent to unspecified (20.x
10252 compatibility).
10253
102542008-10-15 Eli Zaretskii <eliz@gnu.org>
10255
10256 * buffer.c (syms_of_buffer): Doc fix.
10257
102582008-10-14 Kenichi Handa <handa@m17n.org>
10259
10260 * font.c (font_clear_prop): When clearing font width, clear the
10261 average width field too.
10262
102632008-10-12 Andreas Schwab <schwab@suse.de>
10264
10265 * ftfont.c (ftfont_shape_by_flt): Make static.
10266 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10267
10268 * font.c: Don't include <m17n-flt.h>.
10269
102702008-10-10 Eli Zaretskii <eliz@gnu.org>
10271
10272 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10273
102742008-10-09 Eli Zaretskii <eliz@gnu.org>
10275
10276 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10277 away code.
10278
102792008-10-09 Chong Yidong <cyd@stupidchicken.com>
10280
10281 * dispnew.c (update_text_area): Avoid looping due to large glyph
10282 overhangs (bug#1070).
10283
102842008-10-09 Kenichi Handa <handa@m17n.org>
10285
10286 * fontset.c (face_for_char): If face->fontset is negative, just
10287 return ascii_face.
10288
f5385255
SM
10289 * font.c (font_delete_unmatched): Fix previous change.
10290 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10291
102922008-10-09 Martin Rudalics <rudalics@gmx.at>
10293
10294 * frame.c (Fraise_frame): On text-only terminals select frame in
10295 order to make it visible. (Bug#1061)
10296
102972008-10-08 Chong Yidong <cyd@stupidchicken.com>
10298
10299 * fontset.c (fontset_find_font): Check frame validity.
10300
103012008-10-07 Chong Yidong <cyd@stupidchicken.com>
10302
a9b555d3 10303 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10304 (xg_display_close): Allow Emacs to close all displays (bug#985).
10305
103062008-10-06 Andreas Schwab <schwab@suse.de>
10307
f5385255 10308 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10309
103102008-10-06 Chong Yidong <cyd@stupidchicken.com>
10311
f5385255 10312 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10313
a9b555d3 10314 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10315
10316 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10317 during initialization.
10318
103192008-10-04 Eli Zaretskii <eliz@gnu.org>
10320
10321 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10322 whole thing on MSDOS frames as well as on a TTY.
10323
10324 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10325 well as for TTY.
10326 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10327 well as on a TTY.
10328
10329 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10330 as well as for TTY.
10331
10332 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10333
10334 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10335 MSDOS frames as well.
10336
103372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10338
10339 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10340 correct arguments.
b71ac3dd 10341 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10342
103432008-10-03 Glenn Morris <rgm@gnu.org>
10344
10345 * emacs.c (USAGE1): Add --daemon.
10346
103472008-10-02 Eli Zaretskii <eliz@gnu.org>
10348
10349 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10350 100, so it's in percents as advertised.
10351
103522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10353
10354 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10355 (ns_output.current_cursor, ns_output.desired_cursor)
10356 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10357 (FRAME_NEW_CURSOR_COLOR): Remove.
10358
10359 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10360 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10361 enumeration (HOLLOW_BOX_CURSOR, etc.).
10362
10363 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10364 (draw_window_cursor): Simplify code.
f5385255
SM
10365 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10366 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10367 updates manually.
a9b555d3
JB
10368 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10369 Use core Emacs cursor types.
aac0c6e3 10370
b8ff72fa 10371 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10372
103732008-10-02 Martin Rudalics <rudalics@gmx.at>
10374
10375 * process.c (Faccept_process_output): Fix doc-string.
10376
103772008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10378
10379 * gmalloc.c (__sbrk): Also define for uClibc.
10380
10381 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10382 for uClibc.
10383
103842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10385
10386 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10387 styles.
10388 (nsfont_open): Reenable the cache.
10389
103902008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10391
10392 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10393 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10394
103952008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10396
10397 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10398 a suspended terminal.
10399
104002008-09-30 Michael Albinus <michael.albinus@gmx.de>
10401
10402 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10403
104042008-09-30 Eli Zaretskii <eliz@gnu.org>
10405
10406 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10407
104082008-09-30 Chong Yidong <cyd@stupidchicken.com>
10409
10410 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10411 in a continued line coincides with a line beginning.
10412
104132008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10414
10415 * nsfont.m (nsfont_trait_distance): Fix bug.
10416 (nsfont_list): Return a list rather than a vector (syncs with Handa
10417 changes of 2008-05-14).
10418 (nsfont_open): Improve logging.
10419
104202008-09-29 Andreas Schwab <schwab@suse.de>
10421
10422 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10423
104242008-09-28 Martin Rudalics <rudalics@gmx.at>
10425
10426 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10427 name as char-resolve-modifiers.
10428 Reported by: Markus Triska <markus.triska@gmx.at>
10429
104302008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * dispnew.c (init_display): Return earlier when running as a daemon.
10433
104342008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10435
10436 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10437
104382008-09-27 Eli Zaretskii <eliz@gnu.org>
10439
10440 * composite.c (Fcomposition_get_gstring)
10441 (Fcompose_region_internal, Fcompose_string_internal)
10442 (Ffind_composition_internal): Doc fix.
10443 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10444 (syms_of_composite) <auto-composition-function>: Doc fix.
10445 (syms_of_composite) <composition-function-table>: Doc fix.
10446
104472008-09-25 Chong Yidong <cyd@stupidchicken.com>
10448
10449 * search.c (wordify): New argument for lax word-ends.
10450 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10451
104522008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10453
10454 * lisp.h (is_daemon): Declare.
10455 * dispnew.c (init_display): Do not try to initialize the terminal
10456 when running as a daemon.
10457
104582008-09-22 Chong Yidong <cyd@stupidchicken.com>
10459
10460 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10461 x_display_pixel_height.
10462
104632008-09-22 Martin Rudalics <rudalics@gmx.at>
10464
10465 * undo.c (record_point): Don't call Fundo_boundary for first
10466 change. (Bug#731)
10467
104682008-09-22 Juanma Barranquero <lekktu@gmail.com>
10469
10470 * emacs.c (Fdaemonp): Doc fix.
10471
104722008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10473
10474 * emacs.c (main): Place #ifdef in the proper place.
10475
104762008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10477
10478 * emacs.c (standard_args): Add --daemon.
10479 (main): Disconnect from the terminal when --daemon is passed.
10480 (is_daemon): New variable.
10481 (Fdaemonp): New function.
10482 (syms_of_emacs): Defsubr it.
10483
104842008-09-20 Chong Yidong <cyd@stupidchicken.com>
10485
10486 * xdisp.c (get_next_display_element): Handle string display
10487 correctly when checking for the end of a box run.
10488
104892008-09-20 Glenn Morris <rgm@gnu.org>
10490
10491 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10492 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10493 (Frename_file): Avoid copying to trash if a rename involves
10494 a delete. (Bug#964).
10495
104962008-09-20 Eli Zaretskii <eliz@gnu.org>
10497
10498 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10499 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10500 frames as well as termcap frames.
10501 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10502 get_named_tty.
10503
105042008-09-19 Eli Zaretskii <eliz@gnu.org>
10505
10506 * process.c (procfs_system_process_attributes): Fix cmdline in
10507 case /proc/PID/cmdline is empty.
10508
10509 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10510 x_display_pixel_height.
10511
105122008-09-19 Juanma Barranquero <lekktu@gmail.com>
10513
10514 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10515
10516 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10517 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10518
105192008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10520
10521 * dispextern.h (struct it): Move line_wrap away from the middle of
10522 bitfields. Move voffset in struct iterator_stack_entry after the
10523 bitfields. Move tab_width near after another short.
10524
105252008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10526
10527 * frame.h (struct frame): Move alpha from the middle of bitfields.
10528
10529 * window.h (struct window): Move frozen_window_start_p after the
10530 rest of the bitfields to reduce padding.
10531
105322008-09-18 Chong Yidong <cyd@stupidchicken.com>
10533
10534 * xterm.h (x_display_info): Remove `height' and `width' members.
10535
10536 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10537
10538 * w32term.h (w32_display_info): Remove `height', `width',
10539 `height_in', and `width_in' members.
10540
b8ff72fa
SM
10541 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10542 New functions.
aac0c6e3
MR
10543 (x_calc_absolute_position): Use them.
10544 (x_term_init): Omit removed `height' and `width' members.
10545
b8ff72fa
SM
10546 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10547 New functions.
aac0c6e3
MR
10548 (w32_read_socket, x_calc_absolute_position): Use them.
10549 (w32_initialize_display_info, w32_term_init): Omit removed members
10550 of w32_display_info.
10551
b8ff72fa
SM
10552 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10553 New functions.
10554 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10555
b8ff72fa
SM
10556 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10557 New functions.
aac0c6e3
MR
10558 (x_calc_absolute_position): Use them.
10559 (x_term_init): Omit removed `height' and `width' members.
10560
10561 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10562 (compute_tip_xy):
10563 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10564 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10565 x_display_pixel_width.
10566
105672008-09-18 Kenichi Handa <handa@m17n.org>
10568
10569 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10570 (composition_compute_stop_pos): Fix handling of static composition.
10571 (Fcomposition_get_gstring): Check FROM and TO at first.
10572
105732008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10574
46e722a9 10575 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10576 mixup (YAILOM).
10577
105782008-09-17 Chong Yidong <cyd@stupidchicken.com>
10579
10580 * indent.c (Fvertical_motion): Use position reported by iterator
10581 instead of PT for determining screen motion (bug#943).
10582
105832008-09-17 Romain Francoise <romain@orebokech.com>
10584
10585 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10586
105872008-09-17 Kenichi Handa <handa@m17n.org>
10588
10589 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10590
10591 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10592 if necessary.
10593
105942008-09-16 Kenichi Handa <handa@m17n.org>
10595
10596 * coding.c (make_conversion_work_buffer): Avoid calling
10597 Fget_buffer_create if it is not necessary.
10598
105992008-09-15 Martin Rudalics <rudalics@gmx.at>
10600
10601 * window.c (Fselect_window): Don't update window_select_count and
10602 use_time when norecord is not nil.
10603
106042008-09-14 Kenichi Handa <handa@m17n.org>
10605
10606 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10607 specpdl_ptr.
10608
106092008-09-12 Kenichi Handa <handa@m17n.org>
10610
10611 * indent.c (scan_for_column): Don't handle automatic composition
10612 if the current buffer is not associated with a window.
10613
10614 * composite.c (composition_reseat_it): If the current buffer is
10615 not associated with a window, ignore the automatic composition.
10616 (find_automatic_composition): Likewise.
10617
106182008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10619
10620 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10621 (Fgpm_mouse_stop): Use it.
10622 * termhooks.h (close_gpm): Declare.
10623 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10624 connection if Gpm_GetEvent fails.
10625
10626 * window.c (set_window_buffer): Always preserve current-buffer.
10627
106282008-09-12 Glenn Morris <rgm@gnu.org>
10629
10630 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10631
106322008-09-11 Glenn Morris <rgm@gnu.org>
10633
10634 * charset.c (charset-map-path): Doc fix.
10635
106362008-09-10 Kenichi Handa <handa@m17n.org>
10637
10638 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10639
10640 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10641 compose a grapheme cluster with the preceding base glyph.
10642
10643 * composite.c (composition_compute_stop_pos): Fix previous change.
10644 Reset cmp_it->id to -1 at first.
10645
106462008-09-10 Glenn Morris <rgm@gnu.org>
10647
10648 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10649
106502008-09-09 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * keyboard.c (read_key_sequence): Reapply translation maps when
10653 switching keyboards.
10654
106552008-09-09 Kenichi Handa <handa@m17n.org>
10656
10657 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10658 characters.
10659
10660 * composite.c (FORWARD_CHAR): Fix calculation
10661 of (POSITION).pos_byte.
10662 (composition_compute_stop_pos): Limit the search of composition to
10663 at most 500 characters ahead. If we reach the limit or find a
10664 newline, set cmp_it->ch to -2 and return 0.
10665 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10666
106672008-09-08 Kenichi Handa <handa@m17n.org>
10668
10669 * indent.c (Fvertical_motion): Be sure to set
10670 it_overshoot_expected if it.cmp_it.id is non-negative.
10671
106722008-09-07 Andreas Schwab <schwab@suse.de>
10673
10674 * callproc.c (Fcall_process): Don't hold references to string data
10675 across garbage collection. Move initialisation of new_argv down
10676 to avoid compiler bug.
10677
106782008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10679
10680 * process.c (Fsystem_process_attributes): Doc fix.
10681
106822008-09-07 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * callproc.c (Fcall_process): Canonicalize current directory name.
10685
10686 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10687 iterator advances to the next line if the current line ends in a
10688 continued tab.
10689
106902008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10691
10692 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10693 member to point to cmp_from.
10694
10695 * xdisp.c: Doc fix for references to gidx data member.
10696
106972008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10698
10699 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10700
107012008-09-07 Kenichi Handa <handa@m17n.org>
10702
10703 * composite.c (FORWARD_CHAR): Check STOP after
10704 incrementing (POSITION).pos.
10705
107062008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10707
10708 * process.c (Fsystem_process_attributes): Doc fix.
10709
107102008-09-06 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * keyboard.c (Ftop_level): Doc fix.
10713
107142008-09-06 Eli Zaretskii <eliz@gnu.org>
10715
10716 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10717 minibuffer, don't let lower part of menu invade the echo area.
10718
10719 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10720 "char *q" to access menu text and advance through it. Revert the
10721 change that displayed ">" instead of ASCII character 0x10.
10722
107232008-09-05 Eli Zaretskii <eliz@gnu.org>
10724
10725 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10726 toggle boxes and radio buttons on MS-DOS as well.
10727
107282008-09-05 Kenichi Handa <handa@m17n.org>
10729
10730 * composite.c (autocmp_chars): Check lookback count.
10731 (composition_compute_stop_pos): Set cmp_it->lookback.
10732 (composition_reseat_it): Check lookback count.
10733 (struct position_record): New struct.
10734 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10735 (find_automatic_composition): New function.
10736 (composition_adjust_point): Use find_automatic_composition.
10737
10738 * dispextern.h (struct composition_it): New member lookback.
10739
107402008-09-02 Chong Yidong <cyd@stupidchicken.com>
10741
10742 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10743 if moving by a single line.
10744
107452008-09-02 Andreas Schwab <schwab@suse.de>
10746
10747 * xterm.c (x_delete_display): Fix merge error.
10748
10749 * fileio.c (Fexpand_file_name): Remove unused variables.
10750
107512008-09-02 Eli Zaretskii <eliz@gnu.org>
10752
10753 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10754 storage on all platforms, not just on DOS_NT.
10755
107562008-09-02 Jason Rumney <jasonr@gnu.org>
10757
b8ff72fa
SM
10758 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10759 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10760
107612008-09-01 Chong Yidong <cyd@stupidchicken.com>
10762
10763 * xfaces.c (Finternal_set_alternative_font_family_alist)
10764 (Finternal_set_alternative_font_registry_alist): Properly copy
10765 entire alist structure.
10766
107672008-09-01 Kenichi Handa <handa@m17n.org>
10768
d66c0241 10769 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10770 representative chars of the script is a vector.
d66c0241
JB
10771 (ftfont_list): Handle the case where the representative chars of
10772 the script is a vector.
aac0c6e3
MR
10773
10774 * character.c (syms_of_character): Docstring of
10775 script-representative-chars fixed.
10776
107772008-08-31 Eli Zaretskii <eliz@gnu.org>
10778
10779 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10780 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10781 the menu. Allocate larger buffer for `text', to account for
10782 possible ^C characters.
10783
107842008-08-31 Martin Rudalics <rudalics@gmx.at>
10785
10786 * xdisp.c (prepare_menu_bars): Don't call
10787 Vwindow_size_change_functions with arg Qt.
10788
107892008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10790
10791 * font.h (font_range):
10792 * fileio.c (report_file_error):
46e722a9
SM
10793 * composite.c (composition_update_it): Yet another int/Lisp_Object
10794 mixup (YAILOM).
aac0c6e3
MR
10795
107962008-08-30 Glenn Morris <rgm@gnu.org>
10797
10798 * data.c (Fmake_variable_frame_local): Doc fix.
10799
10800 * frame.c (Fmodify_frame_parameters): Doc fix.
10801
108022008-08-30 Eli Zaretskii <eliz@gnu.org>
10803
10804 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10805 needed by GetTokenInformation.
10806 (w32_system_process_attributes): Check return values of all system
10807 APIs.
10808
10809 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10810 only when the state changes.
10811 (IT_update_begin, IT_update_end): Add termscript trace.
10812
10813 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10814 clipboard is unavailable. Set dst to NULL if it doesn't point to
10815 malloc'ed data.
10816 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10817 passing random values to xfree.
10818
10819 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10820 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10821
108222008-08-29 Jason Rumney <jasonr@gnu.org>
10823
10824 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10825
108262008-08-29 Eli Zaretskii <eliz@gnu.org>
10827
10828 * composite.c (fill_gstring_body): Avoid compiler warnings.
10829
10830 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10831 LGLYPH_SET_CODE to avoid compiler warnings.
10832
2ae37cf0 10833 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10834
10835 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10836
10837 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10838 LGLYPH_SET_CODE.
10839
108402008-08-29 Kenichi Handa <handa@m17n.org>
10841
10842 * fileio.c (report_file_error): Don't downcase the first character
10843 of errstring if it is still unibyte.
10844
108452008-08-29 Kenichi Handa <handa@m17n.org>
10846
10847 These changes are to re-implement the automatic composition so
10848 that it doesn't use text properties.
10849
10850 * Makefile.in (ftfont.o): Depend on composite.h.
10851 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10852
10853 * character.h (Vunicode_category_table): Extern it.
10854
10855 * character.c (Vunicode_category_table): New variable.
10856 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10857
10858 * chartab.c (optimize_sub_char_table): Perform more greedy
10859 optimization.
10860
b8ff72fa
SM
10861 * composite.h (enum composition_method):
10862 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10863 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10864 (Vcomposition_function_table): Extern it.
10865 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10866 (composition_gstring_put_cache, composition_gstring_from_id)
10867 (composition_gstring_p, composition_gstring_width)
10868 (composition_compute_stop_pos, composition_reseat_it)
10869 (composition_update_it, composition_adjust_point): Extern them.
10870 (Fcomposition_get_gstring): EXFUN it.
10871
d66c0241 10872 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10873 (Vcomposition_function_table)
10874 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10875 (gstring_hash_table, gstring_work, gstring_work_headers):
10876 New variables.
aac0c6e3
MR
10877 (gstring_lookup_cache, composition_gstring_put_cache)
10878 (composition_gstring_from_id, composition_gstring_p)
10879 (composition_gstring_width, fill_gstring_header)
10880 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10881 (composition_reseat_it, composition_update_it)
b8ff72fa 10882 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10883 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10884 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10885 Defsubr composition_get_gstring.
aac0c6e3
MR
10886
10887 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10888 cmp_id.
10889 (struct glyph_string): Delete the member gidx. New members
10890 cmp_id, cmp_from, and cmp_to.
10891 (enum it_method): Delete GET_FROM_COMPOSITION.
10892 (struct composition_it): New struct.
10893 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10894 Delete c, len, cmp_id, cmp_len in u.comp.
10895
10896 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10897 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10898 (enum lglyph_indices): Likewise.
b8ff72fa 10899 (font_range): Adjust extern.
aac0c6e3
MR
10900 (font_fill_lglyph_metrics): Extern it.
10901
10902 * font.c (QCf): New variable.
10903 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10904 (font_prepare_composition): Delete this function.
10905 (font_range): Type and arguments changed.
10906 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10907 (font_fill_lglyph_metrics): New function.
b8ff72fa 10908 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10909 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10910 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10911 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10912
10913 * fontset.h (font_for_char): Extern it.
10914
10915 * fontset.c (font_for_char): New function.
10916
10917 * ftfont.c: Include composite.h.
10918 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10919 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10920
10921 * indent.c: Include composite.h and dispextern.h.
10922 (check_composition): Delete this function.
10923 (scan_for_column): Handle composition by
10924 composition_compute_stop_pos, composition_reseat_it, and
10925 composition_update_it.
10926 (compute_motion): Likewise.
10927 (Fvertical_motion): Fix checking of composition.
10928
10929 * keyboard.c (adjust_point_for_property): Check composition by
10930 composition_adjust_point.
10931
b8ff72fa 10932 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10933 struct glyph_string.
10934
b8ff72fa
SM
10935 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10936 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10937 struct glyph.
10938 (produce_composite_glyph): Likewise.
10939
b8ff72fa
SM
10940 * w32term.c (x_draw_composite_glyph_string_foreground):
10941 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10942 (x_draw_glyph_string): Likewise.
10943
10944 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10945 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10946
10947 * xdisp.c: Include font.h.
10948 (it_props): Delete the entry for Qauto_composed.
10949 (init_iterator): Initialize it->cmp_it.id to -1.
10950 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10951 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10952 (handle_auto_composed_prop): Delete it.
10953 (handle_composition_prop): Handle only static composition.
10954 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10955 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10956 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10957 (pop_it): Likewise.
10958 (get_next_element): Delete next_element_from_composition.
10959 (CHAR_COMPOSED_P): New macro.
10960 (get_next_display_element): For automatic composition, get a face
10961 from the font in the glyph-string.
10962 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10963 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10964 (next_element_from_string): Check if the character at the current
10965 position is composed by CHAR_COMPOSED_P.
10966 (next_element_from_buffer): Likewise.
d66c0241
JB
10967 (next_element_from_composition): Adjust for the change of struct it.
10968 Update it->cmp_it.
b8ff72fa
SM
10969 (dump_glyph): Adjust for the change of struct glyph.
10970 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10971 it and struct glyph. Don't handle automatic composition here.
10972 (fill_gstring_glyph_string): New function.
10973 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10974 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10975 (BUILD_GSTRING_GLYPH_STRING): New macro.
10976 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10977 automatic composition.
b8ff72fa 10978 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10979 struct glyph.
b8ff72fa 10980 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10981
b8ff72fa 10982 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10983 the change of struct glyph_string.
10984 (x_draw_glyph_string): Likewise.
10985
109862008-08-29 Glenn Morris <rgm@gnu.org>
10987
10988 * buffer.c (word-wrap): Doc fix.
10989 * xdisp.c (truncate-partial-width-windows): Doc fix.
10990 Increase default to 50.
10991
109922008-08-29 Chong Yidong <cyd@stupidchicken.com>
10993
10994 * xdisp.c (update_tool_bar_unwind): New function.
10995 (update_tool_bar): Temporarily set selected frame before building
10996 tool-bar items.
10997
109982008-08-28 Michael Albinus <michael.albinus@gmx.de>
10999
11000 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11001 snprintf, respectively.
11002 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11003
110042008-08-28 Chong Yidong <cyd@stupidchicken.com>
11005
11006 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11007 LDFLAGS to GNUstep CC invocation.
11008
110092008-08-27 Chong Yidong <cyd@stupidchicken.com>
11010
11011 * indent.c (Fvertical_motion): Revert last change. Handle the
11012 general case where we are moving forward, and PT spans multiple
11013 screen lines.
11014
11015 * eval.c (find_handler_clause): Temporarily increase
11016 max-lisp-eval-depth while printing the backtrace buffer, to
11017 guarantee that help-mode code can run.
11018
110192008-08-27 Eli Zaretskii <eliz@gnu.org>
11020
11021 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11022 colors under -rv.
11023 (IT_set_frame_parameters): Don't swap foreground and background
11024 colors if `(reverse . t)' is present in the frame properties.
11025 (internal_terminal_init): Call init_frame_faces only for the
11026 initial frame.
11027
110282008-08-27 Andreas Schwab <schwab@suse.de>
11029
11030 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11031
110322008-08-27 Andreas Schwab <schwab@suse.de>
11033
11034 * search.c (search_buffer): Set char_base to zero only at the end.
11035
110362008-08-27 Kenichi Handa <handa@m17n.org>
11037
b8ff72fa 11038 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11039
110402008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11041
11042 * xterm.c (x_term_init): Temporarily hide the partially
11043 initialized terminal while calling vendor-specific-keysyms.
11044
110452008-08-26 Eli Zaretskii <eliz@gnu.org>
11046
11047 * msdos.c (internal_terminal_init): Most initializations done only
11048 once, especially initial_screen_colors[] and termscript open.
11049
110502008-08-26 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * eval.c (Fcondition_case): Doc fix.
11053
11054 * widgetprv.h (EmacsFramePart): Change font member to the new font
11055 struct.
11056
11057 * widget.c: Include character.h and font.h for XSETFONT.
11058 (setup_frame_gcs): Compute X font id from font struct, just once.
11059
110602008-08-26 Eli Zaretskii <eliz@gnu.org>
11061
11062 * term.c (get_named_tty): Fix last change.
11063
110642008-08-26 Chong Yidong <cyd@stupidchicken.com>
11065
11066 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11067 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11068
110692008-08-25 Eli Zaretskii <eliz@gnu.org>
11070
11071 * frame.c (do_switch_frame): Mark previously displayed frame as
11072 obscured for FRAME_MSDOS_P frames as well.
11073
110742008-08-24 Eli Zaretskii <eliz@gnu.org>
11075
11076 * frame.c (make_terminal_frame): Initialize f->terminal,
11077 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11078 Set the top frame to newly created frame.
11079 (Fmake_terminal_frame): Reuse the_only_display_info.
11080
11081 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11082 estimating available memory.
11083
b97439ce 110842008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11085
11086 * nsterm.m (ns_draw_window_cursor): Don't call
11087 NSDisableScreenUpdates and NSEnableScreenUpdates on
11088 non-NS_IMPL_COCOA systems.
11089
110902008-08-23 Andreas Schwab <schwab@suse.de>
11091
11092 * process.c (procfs_system_process_attributes): Fix use of
11093 uninitialized variables.
11094
110952008-08-23 Eli Zaretskii <eliz@gnu.org>
11096
11097 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11098
11099 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11100 calling tty-set-up-initial-frame-faces.
11101
b8ff72fa
SM
11102 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11103 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11104
11105 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11106 addition to output_termcap.
11107
11108 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11109
11110 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11111 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11112 highlight.
11113
11114 * process.c [!subprocesses]: Define QCname.
11115 (syms_of_process): Intern and staticpro it.
11116
11117 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11118 Adjust for changes in encoding/decoding routines.
11119 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11120 encode_coding and decode_coding.
11121
b8ff72fa 11122 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11123
11124 * dosfns.c: Include frame.h before termhooks.h.
11125 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11126 variable termscript.
11127
11128 * s/msdos.h (USER_FULL_NAME): Define.
11129 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11130
11131 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11132 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11133 pw->pw_gecos.
11134
11135 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11136 SELECTED_FRAME as additional (1st) argument.
11137 (tty_read_avail_input): Handle output_msdos_raw in
11138 addition to output_termcap.
11139
11140 * msdos.c: Include frame.h before termhooks.h.
11141 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11142 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11143 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11144 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11145 (IT_set_terminal_modes, IT_reset_terminal_modes)
11146 (IT_set_frame_parameters): Use tty->termscript instead of a global
11147 variable termscript.
11148 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11149 global variable terminal_coding. Don't refer to
11150 Vnonascii_translation_table.
11151 (internal_terminal_init): Set Vwindow_system in current_kboard.
11152 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11153 Announce date and time of session start, if termscript is open.
11154 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11155 term.c:init_tty). Open termscript only of not already open.
11156 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11157 here instead of dos_ttraw. Don't initialize display if this is an
11158 initial tty. Don't set FRAME_FONT.
11159 (Vwindow_system_version): Bump to 23.
11160 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11161 is available, set up mouse_position_hook.
11162 (dos_ttraw, IT_set_terminal_modes): If called with initial
11163 terminal, do nothing.
11164 (IT_set_frame_parameters): Handle the Qtty_type frame
11165 parameter by calling internal_terminal_init.
11166 (dos_set_window_size, show_mouse_face)
11167 (clear_mouse_face, IT_note_mode_line_highlight)
11168 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11169 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11170 (initialize_msdos_display): New function.
11171 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11172 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11173 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11174 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11175 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11176 (request_sigio, unrequest_sigio): Don't define, now defined on
11177 sysdep.c.
11178 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11179
11180 * term.c [MSDOS]: Include msdos.h.
11181 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11182 conditional to DOS_NT. Allow only one call to this function in a
11183 session. Don't allocate a new struct tty_display_info; instead,
11184 reuse the_only_display_info. Call get_tty_size to get screen
11185 dimensions. Call init_baud_rate to set bad_rate.
11186 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11187 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11188 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11189 (get_tty_terminal, get_named_tty, Ftty_type)
11190 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11191 output_termcap.
b8ff72fa
SM
11192 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11193 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11194 only when subprocesses are supported.
aac0c6e3
MR
11195
11196 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11197 f->output_data.x.
11198 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11199 terminal devices.
11200
5582fbc7 11201 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11202 x_output.
11203 (FRAME_FONT): Use output_data.tty.
11204 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11205 (struct x_display_info): Rename from display_info. Update all users in
11206 msdos.c.
aac0c6e3 11207 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11208 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11209 (dos_ttraw): Update prototype.
11210
11211 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11212 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11213
112142008-08-23 Jason Rumney <jasonr@gnu.org>
11215
11216 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11217 (fn_TIFFSetDirectory): New library function used.
11218 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11219 (tiff_load): Use :index to select among multiple images. Set count
11220 property when multiple images exist.
11221 (gif_format): Use :index, not :image.
11222
112232008-08-23 Chong Yidong <cyd@stupidchicken.com>
11224
11225 * xdisp.c (try_scrolling): Check INT_MAX instead of
11226 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11227 to obtain INT_MAX.
11228
112292008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11230
11231 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11232
112332008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11234
11235 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11236 GNUstep library location.
11237
112382008-08-21 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11241 before using it.
11242
11243 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11244
112452008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11246
11247 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11248 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11249 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11250 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11251 (EmacsApp-cursor_blink_handler): Remove declaration.
11252 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11253 match 01 Feb 2008 changes in xterm.c.
11254 (ns_read_socket): Add cast to avoid warning.
11255 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11256 GNUstep.
11257
112582008-08-20 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * xselect.c (x_get_foreign_selection): Return nil if desired
11261 selection could not be obtained, instead of signalling an error.
11262
112632008-08-20 David Reitter <david.reitter@gmail.com>
11264
11265 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11266 * nsterm.m: Remove ns-specific code for cursor blinking.
11267 (ns_draw_window_cursor): Clear cursor properly rather than
11268 redrawing the area. Respect width of bar cursors.
11269 These changes enable the use of generic blink-cursor-mode and
11270 generic cursor types in NS and support smooth cursor movements (do
11271 not blink off after command).
11272 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11273 Nextstep, too.
11274
112752008-08-19 Kenichi Handa <handa@m17n.org>
11276
11277 * font.c (Vfont_log_deferred): New variable.
11278 (font_add_log): Check Vfont_log_deferred.
11279 (font_deferred_log): New function.
11280
11281 * font.h (font_deferred_log): Extern it.
11282
11283 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11284 for sorting.
11285 (face_for_char): Use deferred log.
11286
112872008-08-18 Kenichi Handa <handa@m17n.org>
11288
11289 * fontset.c (face_for_char): Add font log.
11290
11291 * font.c (font_add_log): Add the font properties :script, :lang,
11292 and :otf in the log.
11293
112942008-08-17 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * xdisp.c: Remove dead code.
11297 (handle_invisible_prop, next_overlay_string): Defer call to
11298 setup_for_ellipsis.
11299 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11300
113012008-08-15 Chong Yidong <cyd@stupidchicken.com>
11302
11303 * xfaces.c (lookup_derived_face): Properly handle possible zero
11304 return value of get_lface_attributes.
11305 (merge_faces): Don't tell lookup_derived_face to signal an error
11306 if face is not found.
11307
11308 * dired.c (Fdirectory_files): Doc fix.
11309
11310 * process.c (make_process): Initialize kill_without_query struct
11311 member.
11312
113132008-08-15 Eli Zaretskii <eliz@gnu.org>
11314
11315 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11316 Alternative calculation of totphys for Visual Studio 6.
11317
11318 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11319
11320 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11321 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11322 All users changed.
11323 (stat): Only root directory passed to GetDriveType. Allow RAM
11324 disk as well as local fixed disk when w32-get-true-file-attributes
11325 is set to `local'.
11326 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11327 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11328 (w32_cached_id, w32_add_to_cache): New functions.
11329 (get_name_and_id): Look account names in the cache before calling
11330 lookup_account_sid.
11331 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11332 New initialization flags.
11333 (globals_of_w32): Initialize them to zero.
11334 (w32_system_process_attributes): Use w32_cached_id and
11335 w32_add_to_cache.
11336
113372008-08-14 Lawrence Mitchell <wence@gmx.li>
11338
11339 * lread.c (Fread_char, Fread_char_exclusive): If no character
11340 event is read before timeout is reached, return nil, rather than
11341 converting to a number.
11342
113432008-08-14 Chong Yidong <cyd@stupidchicken.com>
11344
11345 * fns.c (use_dialog_box): Doc fix.
11346
11347 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11348 on OS X.
11349
113502008-08-13 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * frame.c (Qns_parse_geometry): New var.
11353 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11354
113552008-08-11 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11358 space character in calculating tabs.
11359
113602008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11361
11362 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11363
113642008-08-10 Glenn Morris <rgm@gnu.org>
11365
11366 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11367 silence gcc "limited range of data type" warnings in some
11368 make_fixnum_or_float calls.
11369
113702008-08-09 Eli Zaretskii <eliz@gnu.org>
11371
11372 * w32.c (w32_system_process_attributes): If the process does not
11373 exist, return nil.
11374
11375 * w32.c: Include thelp32.h, psapi.h and coding.h.
11376 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11377 declarations.
11378 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11379 (Process32Next_Proc): New typedefs.
11380 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11381 (g_b_init_process32_next, g_b_init_open_thread_token)
11382 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11383 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11384 (g_b_init_get_process_working_set_size)
11385 (g_b_init_global_memory_status_ex): New static variables.
11386 (globals_of_w32): Initialize them.
11387 (create_toolhelp32_snapshot, process32_first, process32_next)
11388 (open_thread_token, impersonate_self, revert_to_self)
11389 (get_process_memory_info, get_process_working_set_size)
11390 (global_memory_status, global_memory_status_ex): New wrapper
11391 functions.
11392 (w32_list_system_processes, w32_system_process_attributes)
11393 (enable_privilege, restore_privilege, ltime, process_times):
11394 New functions.
11395 (convert_time_raw): New function.
11396 (convert_time): Remove conversion of FILETIME into time in 100
11397 nsec units, call convert_time_raw instead.
11398
11399 * process.h (w32_list_system_processes, w32_system_process_attributes):
11400 Add prototypes.
11401 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11402 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11403 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11404 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11405
11406 * process.c (Fsystem_process_attributes): Doc fix.
11407
114082008-08-08 Chong Yidong <cyd@stupidchicken.com>
11409
11410 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11411 a continued multi-char glyph; if so, advance to the actual glyph.
11412
114132008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11414
11415 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11416
11417 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11418 (.m.o): Use it.
11419 * config.in: Regenerate.
11420
114212008-08-07 Chong Yidong <cyd@stupidchicken.com>
11422
11423 * xdisp.c (redisplay_window): Revert last change.
11424 (try_window): Check bottom scroll margin too.
11425
114262008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11427
11428 * config.in: Regenerate.
11429
11430 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11431 -list-load-path-shadows'.
11432 (nsgui.h): Reduce number of things depending on it.
11433
114342008-08-06 Chong Yidong <cyd@stupidchicken.com>
11435
11436 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11437 instead of window-end which does the wrong thing at eob.
11438 (try_cursor_movement): Minor optimization.
11439 (redisplay_window): If scroll margin is defined, don't assume
11440 window doesn't need scrolling.
11441
114422008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11443
11444 * config.in: Regenerate.
11445
11446 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11447 (mostlyclean): Don't delete *.d under NS.
11448
11449 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11450
114512008-08-06 Kenichi Handa <handa@m17n.org>
11452
11453 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11454
114552008-08-06 Andreas Schwab <schwab@suse.de>
11456
11457 * config.in: Regenerate.
11458
114592008-08-05 Chong Yidong <cyd@stupidchicken.com>
11460
11461 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11462 forcing a window start.
11463
11464 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11465 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11466
114672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11468
11469 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11470 argument.
11471
114722008-08-05 Juanma Barranquero <lekktu@gmail.com>
11473
11474 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11475 <scroll-down-aggressively, before-change-functions>:
11476 <after-change-functions>: Reflow docstrings.
11477
114782008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11479 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11480
11481 Dock menu customization, based on a patch by Ken Raeburn, plus some
11482 other fixes.
11483 * nsmenu.m (dockMenu): New variable.
11484 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11485
11486 * nsterm.h (dockMenu): Declare.
11487
11488 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11489 (ns_term_init): Initialize dockMenu.
11490 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11491 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11492 left.
11493
11494 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11495
114962008-08-04 Chong Yidong <cyd@stupidchicken.com>
11497
11498 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11499
11500 * config.in: Regenerate.
11501
115022008-08-04 Seiji Zenitani <zenitani@mac.com>
11503
11504 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11505
115062008-08-04 Chong Yidong <cyd@stupidchicken.com>
11507
11508 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11509
115102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11511
11512 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11513
11514 * keyboard.h: Comment an #endif.
11515
11516 * lisp.h (have_menus_p): Adjust comment.
11517
11518 * menu.c (find_and_return_menu_selection): Fix comparison with
11519 client_data.
11520
11521 * nsmenu.m (popup_activated_flag): New variable.
11522 (popup_activated): New function.
11523 (menu-or-popup-active-p): New exported lisp definition.
11524 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11525 when popup done.
11526 (ns_popup_dialog): Set popup_activated_flag.
11527
11528 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11529 version for GNUstep (handled by conditional typedef in nsterm.m).
11530 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11531 in rgb.txt).
11532
11533 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11534
11535 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11536
11537 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11538
11539 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11540 shortcircuit if popup_activated like GTK and X toolkit.
11541
11542 * m/inter386.h: Change DARWIN to DARWIN_OS.
11543
11544 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11545 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11546 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11547 comment on NO_SOCK_SIGIO.
11548
115492008-08-03 Chong Yidong <cyd@stupidchicken.com>
11550
11551 * nsterm.m (windowDidResize): Remove stopModal call.
11552
115532008-08-03 Andreas Schwab <schwab@suse.de>
11554
11555 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11556 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11557
115582008-08-02 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11561 Don't use uninitialized pointer variable when using getrlimit.
11562
115632008-08-02 Jason Rumney <jasonr@gnu.org>
11564
11565 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11566
115672008-08-02 Eli Zaretskii <eliz@gnu.org>
11568
11569 * alloc.c (NSTATICS): Bump to 0x640.
11570
11571 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11572
11573 * lisp.h: Add prototype for directory_files_internal.
11574
11575 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11576 New functions.
11577 (syms_of_process): Defsubr them. Add initializations for various
11578 Q* symbols used in procfs_system_process_attributes.
11579 (procfs_list_system_processes, procfs_system_process_attributes)
11580 [HAVE_PROCFS]: New functions.
11581 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11582 (procfs_get_total_memory): New functions.
11583
115842008-08-01 Juanma Barranquero <lekktu@gmail.com>
11585
11586 * xfaces.c (Fx_load_color_file): Fix previous change;
11587 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11588
115892008-08-01 Michael Albinus <michael.albinus@gmx.de>
11590
11591 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11592
115932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11594
11595 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11596
115972008-08-01 Chong Yidong <cyd@stupidchicken.com>
11598
11599 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11600
11601 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11602 define NSApplicationDelegateReplySuccess.
11603 (EmacsView -converstationIdentifier): Use long instead of
11604 NSInteger for GNUstep, since it doesn't have NSInteger.
11605
11606 * xmenu.c: Revert last change.
11607
11608 * keyboard.h: Fix last change.
11609
116102008-08-01 Juanma Barranquero <lekktu@gmail.com>
11611
11612 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11613 on Windows.
11614
116152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11616
11617 Warning clearing and clean-up in NS port.
11618 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11619 Add prototypes.
11620 * nsgui.h (FACE_DEFAULT): Remove, unused.
11621 (XGCValues): Change colors to unsigned long.
11622 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11623 nsterm.m.
11624 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11625 (ns_list_fonts): Remove, unused.
11626 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11627 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11628 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11629 (nsfont_draw): Compare face colors to 0, not nil.
11630 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11631 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11632 (-addSubmenuWithTitle:): Use NSMenuItem class.
11633 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11634 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11635 (ns_clip_to_row): Make gc arg a BOOL.
11636 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11637 ns_clip_to_row() call.
11638 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11639 used). Cast FRAME_FONT assignments.
11640 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11641 (ns_string_to_lispmod): Change arg to const char.
11642 (ns_term_init): Use NSMenuItem class.
11643 (EmacsApp -openFile:): Move to different section of file.
11644 (EmacsApp -application:openFiles:): Don't return a value, call
11645 -replyToOpenOrPrint:.
11646 (EmacsView -keyDown:): Fix up cast.
11647 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11648 (EmacsView -menuDown:): Cast tag in call to
11649 find_and_call_menu_selection().
11650 (ns_list_fonts): Remove, unused.
11651 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11652 (ns_fontname_to_xlfd): Make static.
11653 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11654 Remove prototypes (now in keyboard.h).
11655 (next_menubar_widget_id): Remove, unused.
11656 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11657 Remove prototypes (now in keyboard.h).
11658 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11659
116602008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11661
11662 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11663 (floatfns.o): Depend on syssignal.h.
11664 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11665
11666 * systty.h: Fix previous change that removed BSD_TERMIOS.
11667 Add comments to #ifdefs.
11668
116692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11670
11671 * w32fns.c (w32-load-color-file): Remove.
11672 (x-open-connection): Use renamed Fx_load_color_file.
11673 * xfaces.c (x-load-color-file): Add.
11674 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11675 Emacs.clr.
11676 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11677
116782008-07-31 Michael Albinus <michael.albinus@gmx.de>
11679
11680 * dbusbind.c (Fdbus_call_method_asynchronously)
11681 (Fdbus_method_error_internal): New defuns.
11682 (xd_read_message): Handle also reply messages.
11683 (Vdbus_registered_functions_table): Extend docstring.
11684
116852008-07-31 Juanma Barranquero <lekktu@gmail.com>
11686
11687 * keyboard.c (gobble_input): Fix previous change.
11688
116892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11690
11691 * bitmaps/README:
11692 * xfns.c:
11693 * termcap.c:
11694 * term.c:
11695 * syswait.h:
11696 * systty.h:
11697 * systime.h:
11698 * syssignal.h:
11699 * sysdep.c:
11700 * process.h:
11701 * process.c:
11702 * print.c:
11703 * ndir.h:
11704 * lread.c:
11705 * keyboard.c:
11706 * getpagesize.h:
11707 * floatfns.c:
11708 * fileio.c:
11709 * emacs.c:
11710 * doc.c:
11711 * dispnew.c:
11712 * dired.c:
11713 * data.c:
11714 * callproc.c:
11715 * buffer.c:
11716 * README:
11717 * Makefile.in:
11718 * s/template.h:
11719 * s/msdos.h:
11720 * m/vax.h: Remove VMS support.
11721 * s/vms.h:
11722 * vlimit.h:
11723 * uaf.h:
11724 * temacs.opt:
11725 * param.h:
11726 * ioctl.h: Remove file.
11727
117282008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11729
11730 * s/ms-w32.h (MULTI_KBOARD): Remove.
11731 * xterm.c:
11732 * xselect.c:
11733 * xfns.c:
11734 * window.c:
11735 * w32term.c:
11736 * w32fns.c:
11737 * terminal.c:
11738 * termhooks.h:
11739 * term.c:
11740 * sysdep.c:
11741 * keyboard.h:
11742 * keyboard.c:
11743 * frame.h:
11744 * frame.c:
11745 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11746 * config.in: Regenerate.
11747
117482008-07-30 Jason Rumney <jasonr@gnu.org>
11749
11750 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11751
11752 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11753 (w32font_open_internal): Get unicode version of textmetrics.
11754 Don't enable or disable glyph indices here.
11755 (w32font_open): Disable use of glyph indices.
11756
11757 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11758
117592008-07-30 Chong Yidong <cyd@stupidchicken.com>
11760
11761 * minibuf.c (Vread_buffer_function): Doc fix.
11762
117632008-07-30 John Paul Wallington <jpw@pobox.com>
11764
11765 * minibuf.c (read_buffer_completion_ignore_case): New var.
11766 (Fread_buffer): Use it.
11767
117682008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11769
11770 * systty.h (sensemode): Remove empty #if. Remove reference to
11771 BSD_TERMIOS, unused.
11772
11773 * sysdep.c: Remove reference to DGUX.
11774 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11775
11776 * config.in: Regenerate.
11777
117782008-07-30 Jason Rumney <jasonr@gnu.org>
11779
11780 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11781
117822008-07-29 Jason Rumney <jasonr@gnu.org>
11783
11784 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11785 is populated.
11786 (uniscribe_encode_char): Always use uniscribe.
11787 Avoid using context if cache is populated.
11788
117892008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11790
11791 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11792 open menu.
11793
11794 * gtkutil.c (menu_nav_ended): Remove.
11795 (create_menus): Remove signal connect for menu_nav_ended.
11796
117972008-07-28 Chong Yidong <cyd@stupidchicken.com>
11798
11799 * xdisp.c (redisplay_window): Check return value of
11800 compute_window_start_on_continuation_line before forcing a window
11801 start.
11802
118032008-07-28 Jason Rumney <jasonr@gnu.org>
11804
11805 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11806
11807 * w32term.c (w32_enable_unicode_output, cleartype_active):
11808 Remove obsolete display options.
11809 (x_draw_glyph_string_background): Don't use old cleartype_active
11810 workaround.
11811 (w32_initialize): Remove cleartype_active initialization.
11812 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11813
118142008-07-28 Andreas Schwab <schwab@suse.de>
11815
11816 * lisp.h (init_weak_hash_tables, syms_of_font)
11817 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11818 (remove_hash_entry): Don't declare.
11819 * eval.c (maybe_call_debugger): Make static and move before use.
11820 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11821 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11822 * xterm.h (x_set_frame_alpha): Declare.
11823
118242008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11825
11826 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11827 (create_menus): Connect selection-done to menu_nav_ended.
11828
118292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11830
11831 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11832 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11833 parameter with read of 'alpha' one.
11834 (Qns_frame_parameter): Remove.
5582fbc7 11835 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11836 (next-selection-coding-system, Vselection_coding_system)
11837 (Vnext_selection_coding_system): Drop.
11838
118392008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11840
11841 * nsfns.m (do-applescript, do_applescript): Rename to
11842 ns-do-applescript, ns_do_applescript, and move within file.
11843
118442008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11845
11846 Remove support for Mac Carbon.
11847 * mactoolbox.c:
11848 * macterm.h:
11849 * macterm.c:
11850 * macselect.c:
11851 * macmenu.c:
11852 * macgui.h:
11853 * macfns.c:
11854 * mac.c: Remove file.
11855 * s/darwin.h:
11856 * m/intel386.h:
11857 * xfaces.c:
11858 * xdisp.c:
11859 * window.c:
11860 * tparam.c:
11861 * termhooks.h:
11862 * termcap.c:
11863 * term.c:
11864 * syssignal.h:
11865 * sysselect.h:
11866 * sysdep.c:
11867 * process.c:
11868 * lread.c:
11869 * lisp.h:
11870 * keyboard.c:
11871 * image.c:
11872 * fringe.c:
11873 * frame.h:
11874 * frame.c:
11875 * fontset.c:
11876 * font.h:
11877 * font.c:
11878 * fns.c:
11879 * fileio.c:
11880 * emacs.c:
11881 * dispnew.c:
11882 * dispextern.h:
11883 * config.in:
11884 * atimer.c:
2ae37cf0 11885 * Makefile.in: Remove code for Carbon.
aac0c6e3 11886
f0131492 118872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11888
11889 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11890
118912008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11892
11893 * macterm.h (kCGBitmapByteOrder32Host): New define for
11894 non-universal SDKs.
11895
11896 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11897 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11898
11899 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11900 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11901
119022008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11903
11904 * w32inevt.c: Include dispextern.h.
11905
119062008-07-26 Andreas Schwab <schwab@suse.de>
11907
11908 * print.c (print_object): Fix off-by-one in last change.
11909
119102008-07-25 Juanma Barranquero <lekktu@gmail.com>
11911
11912 * term.c (syms_of_term): Don't initialize default_orig_pair,
11913 default_set_foreground and default_set_background on Windows.
11914
119152008-07-25 Jason Rumney <jasonr@gnu.org>
11916
11917 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11918 ScriptItemize. Clean up return value checking. Remove unused
11919 variables.
11920 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11921 shaping engine.
11922
11923 * w32font.c (w32font_has_char): Handle the case where we can't
11924 determine the script for a character.
11925
119262008-07-25 Chong Yidong <cyd@stupidchicken.com>
11927
11928 * term.c (syms_of_term): Initialize default_orig_pair,
11929 default_set_foreground, and default_set_background.
11930
11931 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11932 clash (bug#86).
11933 (getloadavg): Callers changed.
11934
11935 * image.c (svg_load_image): Fix last change.
11936 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11937 image size is valid. Use g_object_unref instead of deprecated
11938 rsvg_handle_free to free rsvg handle.
11939 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11940
119412008-07-25 Jason Rumney <jasonr@gnu.org>
11942
11943 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11944 surrogates before looking up glyph index.
11945 (w32font_text_extents): Encode as surrogates if falling back to
11946 functions that need UTF-16 wide chars.
11947
11948 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11949 BMP as surrogates before looking up glyph index.
11950
119512008-07-25 Chong Yidong <cyd@stupidchicken.com>
11952
11953 * image.c (svg_load_image): Check for failure in return value of
11954 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11955
119562008-07-25 Jason Rumney <jasonr@gnu.org>
11957
11958 * w32font.c (Fx_select_font): Reverse sense of second arg.
11959
119602008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11961
11962 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11963 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11964
11965 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11966 (PURESIZE): Use it.
11967
119682008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11969
11970 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11971 * m/alpha.h (TEXT_END):
11972 * m/ibmrs6000.h (TEXT_END):
11973 * m/macppc.h (TEXT_END):
11974 * s/darwin.h (TEXT_END):
11975 * s/msdos.h (TEXT_END): Remove, unused.
11976 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11977 * s/cygwin.h: Remove comment.
11978
11979 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11980 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11981 * m/intel386.h (DOT_GLOBAL_START):
11982 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11983 (USG): Remove, file not used on USG platforms.
11984
11985 * Makefile.in (HAVE_X11): Remove empty #else.
11986
119872008-07-24 Andreas Schwab <schwab@suse.de>
11988
11989 * fileio.c (Finsert_file_contents): Properly adjust undo list
11990 after format conversion.
11991
119922008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11993
11994 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11995 (menu_nav_ended): Remove.
11996 (create_menus): Remove signal connect for menu_nav_ended.
11997 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11998 create_menus.
11999 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12000
120012008-07-23 Jason Rumney <jasonr@gnu.org>
12002
12003 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12004 with opened font.
12005 (w32font_open): Set font type to gdi.
12006
12007 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12008
120092008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12010
12011 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12012 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12013 defines it.
12014 * unexec.c (ADDR_CORRECT): Define unconditionally.
12015
12016 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12017
12018 * unexec.c: Remove code depending on !COFF and USG, the file is
12019 not used for such systems.
12020
12021 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12022 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12023 (LD_SWITCH_SYSTEM_1): Remove, update users.
12024
12025 * s/darwin.h (DATA_END):
12026 * m/intel386.h (DATA_END):
12027 * m/ibmrs6000.h (DATA_END):
12028 * m/alpha.h (DATA_END): Remove, unused.
12029
12030 * config.in: Regenerate.
12031 * s/ms-w32.h (subprocesses): Define unconditionally.
12032 * s/template.h (subprocesses): Update comment.
12033 * s/vms.h (subprocesses):
12034 * s/usg5-4.h (subprocesses):
12035 * s/hpux10-20.h (subprocesses):
12036 * s/gnu-linux.h (subprocesses):
12037 * s/cygwin.h (subprocesses):
12038 * s/bsd-common.h (subprocesses):
12039 * s/aix4-2.h (subprocesses):
12040 * s/darwin.h (subprocesses): Do not define, defined by default now.
12041
12042 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12043 Remove all references.
12044 (temacs): Add GNUstep specific ld flags.
12045
12046 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12047 similarly to what X does.
12048
120492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12050
12051 * nsfns.m (x-list-fonts): Remove.
12052 (syms_of_nsfns): Drop the x-list-fonts declaration.
12053 * nsterm.m: Get rid of remaining "//" comments.
12054
120552008-07-22 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12058
12059 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12060 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12061 (Fns_own_selection_internal, Fx_disown_selection_internal)
12062 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12063
12064 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12065 ... */' style of docstrings. Doc fixes.
12066
120672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12068
12069 * terminfo.c (UP, BC, PC): Undo previous change.
12070
12071 * nsfns.m: Rename ns prefixed functions/variables to the
12072 corresponding x versions. Update references.
12073
120742008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12077
120782008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12079
12080 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12081 Remove forwarding functions.
12082 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12083 non-static.
12084 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12085 non-static.
12086 (ns_frame_parm_handlers): Use the new names.
12087 (syms_of_nsfns): Move to the end of file.
12088
12089 * nsterm.m (syms_of_nsterm): Move to the end of file.
12090
12091 * dispnew.c (init_display): Remove code for X10.
12092
120932008-07-22 Jason Rumney <jasonr@gnu.org>
12094
12095 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12096 bare drive.
12097
120982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12099
12100 * nsterm.m (syms_of_nsterm): Remove debugging println.
12101
121022008-07-22 David Reitter <david.reitter@gmail.com>
12103
12104 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12105 Carbon implementation of the same functionality: execute arbitrary
12106 AppleScript code.
12107
121082008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12109
12110 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12111 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12112 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12113 (Fx_display_mm_height, Fx_display_mm_width)
12114 (Fx_display_backing_store, Fx_display_visual_class)
12115 (Fx_display_save_under, Fx_open_connection)
12116 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12117 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12118 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12119 (Fx_display_pixel_width, Fx_display_pixel_height)
12120 (Fx_display_usable_bounds, Fx_display_planes)
12121 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12122 ... */' style of docstrings.
12123
121242008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12125
12126 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12127 on this platform.
12128 (mips):
12129 * m/iris4d.h (mips): Do not define.
12130 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12131
12132 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12133
12134 * image.c:
12135 * nsfns.m:
12136 * nsselect.m:
12137 * nsterm.h:
12138 * nsterm.m: Rename ns prefixed functions/variables to the
12139 corresponding x versions. Update references.
12140
12141 * m/ibms390x.h (NO_REMAP): Do not undefine.
12142
12143 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12144
121452008-07-21 Chong Yidong <cyd@stupidchicken.com>
12146
12147 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12148 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12149 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12150 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12151 (Fns_display_mm_height, Fns_display_mm_width)
12152 (Fns_display_backing_store, Fns_display_visual_class)
12153 (Fns_display_save_under, Fns_open_connection)
12154 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12155 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12156 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12157 (Fns_display_pixel_width, Fns_display_pixel_height)
12158 (Fns_display_usable_bounds, Fx_display_planes)
12159 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12160
121612008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12162
12163 * print.c (print_object): Check print_depth before searching for
12164 circularities.
12165
121662008-07-21 Michael Albinus <michael.albinus@gmx.de>
12167
12168 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12169 only sprintf.
12170
121712008-07-21 Kenichi Handa <handa@m17n.org>
12172
12173 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12174
121752008-07-20 Andreas Schwab <schwab@suse.de>
12176
12177 * syntax.c (find_start_pos, find_start_value)
12178 (find_start_value_byte, find_start_begv, find_defun_start)
12179 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12180
121812008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12182
12183 * s/sol2-3.h: Insert contents of s/sol2.h.
12184 (LD_SWITCH_SYSTEM): Remove redundant definition.
12185 * s/sol2.h: Remove, unused.
12186
121872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12188
12189 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12190
121912008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12192
12193 * Makefile.in (ns_appdir): Fix typo in find command.
12194
121952008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12196
12197 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12198
12199 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12200 added not supported anymore.
12201
12202 * s/usg5-4-2.h (LIBS_SYSTEM):
12203 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12204
12205 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12206 * s/lynxos.h (GETPGRP_NO_ARG):
12207 * s/hpux10-20.h (NO_SIOCTL_H):
12208 * s/gnu.h (GETPGRP_NO_ARG):
12209 * s/gnu-linux.h (NO_SIOCTL_H):
12210 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12211 * s/cygwin.h (GETPGRP_NO_ARG):
12212 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12213 (C_DEBUG_SWITCH): Remove duplicate definition.
12214
12215 * m/ibms390.h: Remove boilerplate comments.
12216
12217 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12218
12219 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12220 (wait_reading_process_output): Remove code for SunOS, platform not
12221 supported anymore. Use SOLARIS2 instead of sun.
12222
122232008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12224
12225 * font.c (font_open_by_name): Under NS, default lface height to zero.
12226 (font_open_for_lface): Under NS, set size based on frame fontsize.
12227 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12228 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12229
122302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12231
12232 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12233 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12234 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12235 YES/NO.
12236 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12237 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12238 * Makefile.in (clean): Clear out build destination dir.
12239
122402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12241
12242 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12243 xterm, xselect.
12244 * lisp.h: Remove declaration of hash_remove.
12245 * nsgui.h: Remove redefinitions of hash_remove.
12246 * fns.c (hash_remove): Rename to hash_remove_from_table.
12247
122482008-07-19 Seiji Zenitani <zenitani@mac.com>
12249
12250 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12251 strdup() the family UTF8String before modifying it.
12252
122532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12254
12255 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12256 NS_FACE_BACKGROUND with 0 instead of nil.
12257 * nsfont.m (nsfont_draw): Same.
12258
122592008-07-19 Chong Yidong <cyd@stupidchicken.com>
12260
12261 * nsfns.m (ns_set_background_color): Fix crash.
12262
122632008-07-18 Chong Yidong <cyd@stupidchicken.com>
12264
12265 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12266
122672008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12268
12269 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12270
122712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12272
12273 * gtkutil.c: Include <config.h> instead of "config.h".
12274
12275 * lisp.h (Foverlay_buffer): Add EXFUN.
12276
12277 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12278 child process to complete child_setup. Undo 2005-09-21 change.
12279
12280 * s/darwin.h: Mention setsid after vfork.
12281
122822008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12283
12284 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12285 Depend on macgui.h.
12286
12287 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12288 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12289
12290 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12291 and f19.
12292 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12293
12294 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12295 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12296 Remove enumerators.
12297
12298 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12299 Check if FACE_FROM_ID returns NULL.
12300
123012008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12302
12303 * w32inevt.c (change_frame_size): Remove extern declaration.
12304 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12305 change_frame_size.
12306
123072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12308
12309 * getloadavg.c: Revert last change (2008-07-15).
12310
123112008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12312
12313 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12314 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12315 from configure.
12316
123172008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12318
12319 * s/sol2.h:
12320 * s/sol2-4.h: Reorganize conditionals.
12321
12322 * ecrt0.c: Remove code depending on m68000, not used anymore.
12323
12324 * fns.c (hash_remove): Make static.
12325 * lisp.h (hash_remove): Don't prototype.
12326
12327 * m/ibmrs6000.h:
12328 * m/ibms390x.h:
12329 * m/macppc.h: Remove boilerplate comments.
12330
12331 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12332 Solaris, which does not need them.
12333
12334 * m/vax.h: Remove comments about unsupported systems.
12335
12336 * s/darwin.h: Reorganize ifdefs.
12337
123382008-07-17 Andreas Schwab <schwab@suse.de>
12339
12340 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12341
123422008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 Use SDATA. Follow coding convention of placing operators at
12345 beginning of next line rather than end of previous line, and placing
12346 spaces around infix operators.
12347
12348 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12349 in case it was defined already.
12350 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12351 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12352 ns_default.
12353 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12354 Lisp_Objects.
12355 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12356 (ns_defined_color, ns_color_to_lisp): Declare.
12357 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12358 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12359 it's accepted even with USE_LISP_UNION_TYPE.
12360 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12361 (update_frame_tool_bar): Remove apparently obsolete tests for
12362 non-integerness of f->tool_bar_lines.
12363 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12364 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12365 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12366 (nsfont_open): Don't confuse NULL for Qnil.
12367 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12368 * menu.h (find_and_call_menu_selection):
12369 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12370 (find_and_return_menu_selection): Always return something.
12371 * frame.h: Include dispextern.h for Display_Info.
12372 (display_x_get_resource): Declare.
12373
123742008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12375
12376 * syntax.c: Remove stdio.h include accidentally introduced in
12377 Emacs.app commit.
12378 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12379 NS_IMPL_COCOA.
12380 * keyboard.c (handle_async_input, input_available_signal): Remove
12381 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12382
123832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12386 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12387 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12388 Use SDATA.
12389
12390 * keymap.c: Remove all NS-specific code.
12391 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12392 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12393 where_is_preferred_modifier, return a different value depending on how
12394 preferred is the binding.
12395 (where_is_internal): Adjust accordingly.
12396 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12397 Adjust to new preferred_sequence_p.
12398 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12399 * keyboard.c (parse_solitary_modifier): Not static any more.
12400 * keyboard.h (parse_solitary_modifier): Declare.
12401
124022008-07-16 Andreas Schwab <schwab@suse.de>
12403
12404 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12405 of easymenu.
12406
124072008-07-16 Chong Yidong <cyd@stupidchicken.com>
12408
12409 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12410 that we don't move off the line.
12411
124122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12413
12414 * keyboard.c (Qsuper): Remove.
12415 (parse_menu_item): Don't call where_is_internal specially for NS.
12416
124172008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12418
12419 * s/gnu-linux.h: Remove boilerplate comments.
12420
12421 * m/alpha.h (__ELF__): Consolidate conditions.
12422
12423 * m/m68k.h (linux): Use GNU_LINUX instead.
12424 Remove boilerplate comments.
12425
12426 * m/intel386.h: Undo refactoring from previous change.
12427 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12428 too, remove dead code.
12429 (linux): Use GNU_LINUX instead.
12430
124312008-07-16 Jason Rumney <jasonr@gnu.org>
12432
12433 * w32gui.h: Repeat 26 June changes lost by last change.
12434
124352008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12436
12437 * systty.h: Remove code for Aix on 386, unsupported platform.
12438
12439 * s/ms-w32.h: Remove boilerplate comments.
12440 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12441
12442 * s/gnu-linux.h (TERM): Remove support.
12443 (HAVE_SYSVIPC): Remove, unused.
12444 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12445 for this system.
12446
12447 * process.c: Remove support for IRIS, unused.
12448 Remove support for TERM, not relevant anymore.
12449
12450 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12451 used with the definition.
12452
12453 * s/aix4-2.h (static): Do not undef.
12454
12455 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12456 only used on Aix.
12457 (HAVE_SYSVIPC): Remove, unused.
12458
12459 * m/hp800.h (CANNOT_DUMP): Do not undef.
12460
12461 * m/alpha.h: Fix comment.
12462
12463 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12464 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12465 used by this configuration.
12466 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12467 * unexec.c: Remove code depending on HPUX and
12468 USG_SHARED_LIBRARIES, not used with this file. Remove code
12469 depending on IRIS, unused. Remove if 0-ed code.
12470
12471 * s/template.h: Remove comments about static.
12472
12473 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12474 Remove if 0-ed code.
12475 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12476 were the same as the default.
12477 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12478 Remove boilerplate comments.
12479 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12480 (HAVE_SYSVIPC): Remove, unused.
12481 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12482
12483 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12484 Remove boilerplate comments.
12485 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12486 Remove boilerplate comments.
12487 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12488 Remove boilerplate comments.
12489 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12490
12491 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12492 USG systems which do not use DATA_SEG_BITS.
12493 Refactor code. Remove boilerplate comments.
12494
12495 * m/ibms390.h:
12496 * m/m68k.h:
12497 * s/bsd-common.h:
12498 * s/cygwin.h:
12499 * s/darwin.h:
12500 * s/freebsd.h:
12501 * s/gnu.h:
12502 * s/msdos.h: Remove boilerplate comments.
12503
12504 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12505 do not use this file.
aac0c6e3
MR
12506 (IRIS_4D): Remove, unused.
12507
12508 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12509 do not use this file.
aac0c6e3
MR
12510 (SIGN_EXTEND_CHAR):
12511 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12512 * unexmips.c: Remove file, unused.
12513
12514 * editfns.c (Fuser_full_name): Replace the only use of
12515 USER_FULL_NAME with its value.
12516 * config.in: Regenerate.
12517
125182008-07-16 David Reitter <david.reitter@gmail.com>
12519
12520 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12521 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12522
125232008-07-16 Glenn Morris <rgm@gnu.org>
12524
12525 * emacs.c (system-type): Doc fix.
12526
125272008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12528
12529 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12530 If the cache doesn't work, let's fix it, rather than work around it.
12531
125322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12533
12534 * Makefile.in: Correct additions for nsfont.o in last commit.
12535 * nsfont.m: New file (forgot last commit).
12536
125372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12538
12539 * callproc.c (set_initial_environment): Initialize
12540 Vprocess_environment under CANNOT_DUMP (fixes crash when
12541 batch-compiling for bootstrap).
12542
125432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12544 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12545
c4cc8b9a
JB
12546 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12547 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12548
125492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12550
12551 Changes and additions for NeXTstep windowing system (Cocoa and
12552 GNUstep) support.
12553
12554 * Makefile.in:
12555 * config.in: Support defines and build commands for NS port.
12556 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12557 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12558 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12559 windowing.
12560 (struct face): Add synth_ital field.
12561 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12562 (init_display): Initialize Vinitial_window_system to "ns" when so
12563 compiled.
12564 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12565 (display_arg): Use under NS.
12566 (main): Under NS, allocate autorelease pool and handle command line
12567 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12568 (standard_args): Add NS-specific args.
12569 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12570 * font.c (DEFAULT_ENCODING): New variable.
12571 (font_find_for_lface): Use it.
12572 (syms_of_font): Load syms_of_nsfont under NS.
12573 * font.h: Declare nsfont_driver when compiled under NS.
12574 * fontset.c: When compiling under NS, include nsterm.h.
12575 (fontset_from_font): Autoconstruct fontset under NS.
12576 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12577 symbol, document and use it.
12578 (do_switch_frame): When for_deletion under Cocoa, add
12579 Fraise_frame(Qnil).
12580 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12581 (x_get_arg): Allow "yes" and "no" as boolean values.
12582 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12583 Qright under Cocoa.
12584 (focus-follows-mouse): Default to 0 under NS.
12585 * frame.h (enum output_method): Add output_ns.
12586 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12587 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12588 (FRAME_WINDOW_P): NS-specific definition.
12589 * fringe.c (max_used_fringe_bitmap): Make public.
12590 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12591 (getloadavg): Use NeXT code under descendant OS's.
12592 * image.c (includes and header section, x_create_bitmap_from_data)
12593 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12594 (image_background_transparent, x_clear_image_1)
12595 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12596 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12597 (x_to_xcolors, x_from_xcolors, x_disable_image)
12598 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12599 other GUIs, including XPM support using code originally written for
12600 Carbon GUI.
12601 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12602 using NS API.
12603 (image_ascent): Use font metrics macros instead of direct struct field
12604 access.
12605 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12606 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12607 Also, handle NS as GTK for menu bar purposes.
12608 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12609 toolkit where they differ.
12610 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12611 use cachelist, still needed under NS.
12612 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12613 (struct widget_value): Define it here for menu.c.
12614 * keymap.c (includes): Include modifier internals.
12615 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12616 NS.
12617 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12618 support for preferring sequences using certain modifiers, specified by
12619 the FIRSTONLY argument.
12620 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12621 under NS GNUstep implementation.
12622 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12623 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12624 * menu.c: Include nsterm.h under NS.
12625 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12626 (free_menubar_widget_tree_value, update_submenu_strings)
12627 (find_and_call_menu_selection): Treat NS as X and NT.
12628 (find_and_return_menu_selection): New function, used for popup menus.
12629 * nsgui.h:
12630 * nsterm.h:
12631 * nsfns.m:
12632 * nsimage.m:
12633 * nsmenu.m:
12634 * nsselect.m:
12635 * nsterm.m: New files.
12636 * process.c (wait_reading_process_output): Under NS, call ns_select()
12637 instead of plain select().
12638 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12639 beginning of buffer.
12640 * sysselect.h (init_process): Rename when compiling under Cocoa to
12641 avoid name conflict.
12642 * termhooks.h (display_info): Add ns_display_info to union.
12643 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12644 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12645 COCOA environment.
12646 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12647 unexec() signature. (Note, this will dump, but the resulting file
12648 crashes; unexosx is used instead; keeping around for reference and
12649 possible aid in getting dump working under GNUstep.)
12650 * w32gui.h (button_type, widget_value): Remove definitions (now in
12651 keyboard.h).
12652 * window.c: Include nsterm.h when compiling under NS.
12653 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12654 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12655 other GUI windowing systems.
12656 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12657 GTK.
12658 (x_consider_frame_title): Under NS, set icon type and frame
12659 modified-state indicator; use ns_set_name_as_filename() when using
12660 formatted title.
12661 (update_window_cursor): Make public when compiling under NS.
12662 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12663 (hourglass_atimer, Vhourglass_delay
12664 * xfaces.c (header section, init_frame_faces, clear_font_table)
12665 (defined_color, unload_color, x_face_list_fonts)
12666 (prepare_face_for_display): Add NS support parallel to other GUIs.
12667 Emulate GCs like other non-X GUIs.
12668 (split_font_name): Don't lowercase font name under NS.
12669 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12670 under NS.
12671 * s/darwin.h: Add support for compilation under NS.
12672
126732008-07-15 Jason Rumney <jasonr@gnu.org>
12674
12675 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12676 (w32_show_hourglass): Rename from show_hourglass.
12677 (w32_hide_hourglass): Rename from hide_hourglass.
12678 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12679 (Vhourglass_delay): Declare extern.
12680 (hourglass_started): Remove.
12681
12682 * xdisp.c (Vhourglass_delay): Remove static.
12683 (hourglass_started, start_hourglass, cancel_hourglass):
12684 Don't include these versions on WINDOWSNT.
12685
126862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12687
12688 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12689 variables (formerly in xfns.c).
12690 (show_hourglass, hide_hourglass): New prototypes (same).
12691 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12692 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12693 in xfns.c).
12694 (syms_of_xdisp): Declare/initialize display-hourglass,
12695 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12696 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12697 formerly in xfns.c.
12698 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12699 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12700 (start_hourglass, cancel_hourglass): Remove.
12701 (show_hourglass, hide_hourglass): Remove prototypes and static
12702 modifiers.
12703 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12704 hourglass_atimer, hourglass_shown_p declaration/initialization.
12705 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12706 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12707 (start_hourglass, cancel_hourglass): Remove.
12708 (show_hourglass, hide_hourglass): Remove prototypes and static
12709 modifiers.
12710 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12711 hourglass_atimer, hourglass_shown_p declaration/initialization.
12712 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12713 (DEFAULT_HOURGLASS_DELAY): Remove.
12714 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12715 hourglass_shown_p declaration/initialization.
12716
127172008-07-14 Jason Rumney <jasonr@gnu.org>
12718
12719 * w32fns.c (w32_get_arg): Remove wrapper function.
12720 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12721 directly.
12722 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12723
127242008-07-14 Kenichi Handa <handa@m17n.org>
12725
12726 * xfont.c (xfont_open): Add workaround for X's bug.
12727
127282008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12729
12730 * fontset.c: Include <stdio.h> unconditionally.
12731
127322008-07-13 Michael Albinus <michael.albinus@gmx.de>
12733
12734 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12735 for filtering.
12736
127372008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12738
12739 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12740
12741 * m/macppc.h:
12742 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12743
c4cc8b9a 12744 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12745 (SPECIAL_EMACS_INT):
12746 * m/ia64.h (SPECIAL_EMACS_INT):
12747 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12748 * s/gnu.h (NLIST_STRUCT):
12749 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12750 * s/gnu-linux.h (LINUX):
12751 * s/msdos.h (HAVE_FACES):
12752 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12753
12754 * systty.h:
12755 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12756 anymore.
12757
127582008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12759
12760 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12761 always defined as int.
12762
12763 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12764 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12765 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12766 * s/freebsd.h (HAVE_WAIT_HEADER):
12767 * s/bsd-common.h (HAVE_UNION_WAIT):
12768 * s/aix4-2.h (HAVE_WAIT_HEADER):
12769 * m/mips.h (HAVE_UNION_WAIT):
12770 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12771 (COFF, static): Do not define, they are undefined later in the file.
12772
12773 * process.c (update_status): Don't use a union.
12774 (status_convert):
12775 (sigchld_handler): Use int instead of WAITTYPE.
12776
127772008-07-12 Chong Yidong <cyd@stupidchicken.com>
12778
12779 * indent.c (Fvertical_motion): Restore hscroll before moving to
12780 goal column.
12781
127822008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12783
12784 * lisp.h: Remove left over code.
12785
127862008-07-11 Andreas Schwab <schwab@suse.de>
12787
12788 * lisp.h: Fix logic in last change.
12789
12790 * menu.h: New file.
12791 * menu.c: Include it.
12792 * xmenu.c: Likewise.
12793 * Makefile.in: Update dependencies.
12794
127952008-07-11 Kenichi Handa <handa@m17n.org>
12796
12797 * fontset.c (fontset_from_font): Cancel the previous change.
12798
127992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12800
12801 * lisp.h:
12802 * w32heap.c:
12803 * emacs.c:
12804 * alloc.c: Replace all references of NO_UNION_TYPE with
12805 USE_LISP_UNION_TYPE.
12806
12807 * m/xtensa.h (NO_UNION_TYPE):
12808 * m/vax.h (NO_UNION_TYPE):
12809 * m/template.h (NO_UNION_TYPE):
12810 * m/sparc.h (NO_UNION_TYPE):
12811 * m/mips.h (NO_UNION_TYPE):
12812 * m/macppc.h (NO_UNION_TYPE):
12813 * m/m68k.h (NO_UNION_TYPE):
12814 * m/iris4d.h (NO_UNION_TYPE):
12815 * m/intel386.h (NO_UNION_TYPE):
12816 * m/ibms390x.h (NO_UNION_TYPE):
12817 * m/ibms390.h (NO_UNION_TYPE):
12818 * m/ibmrs6000.h (NO_UNION_TYPE):
12819 * m/ia64.h (NO_UNION_TYPE):
12820 * m/hp800.h (NO_UNION_TYPE):
12821 * m/arm.h (NO_UNION_TYPE):
12822 * m/amdx86-64.h (NO_UNION_TYPE):
12823 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12824 defining it the same.
12825
128262008-07-10 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12829
128302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12831
12832 * fileio.c:
50426a04 12833 * sysdep.c:
aac0c6e3
MR
12834 * systty.h:
12835 * m/ibmrs6000.h:
12836 * m/iris4d.h:
12837 * s/aix4-2.h:
12838 * s/freebsd.h:
12839 * s/gnu-linux.h:
12840 * s/hpux10-20.h:
12841 * s/hpux11.h:
12842 * s/netbsd.h:
12843 * s/sol2-3.h:
12844 * s/sol2-4.h:
12845 * s/sol2.h:
12846 * s/usg5-4.h:
12847 * s/vms.h: Remove references to unused variables.
12848
128492008-07-10 Andreas Schwab <schwab@suse.de>
12850
12851 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12852 pattern before matching the generic family.
12853
128542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12855
12856 * unexec.c:
12857 * s/vms.h:
12858 * s/usg5-4-2.h:
12859 * s/sol2-5.h:
12860 * s/freebsd.h:
12861 * s/darwin.h: Remove dead code.
12862
12863 * m/template.h:
12864 * m/sparc.h:
12865 * m/mips.h:
12866 * m/m68k.h:
12867 * m/iris4d.h:
12868 * m/intel386.h:
12869 * m/ibms390x.h:
12870 * m/ibms390.h:
12871 * m/ia64.h:
12872 * m/hp800.h:
12873 * m/arm.h:
12874 * m/amdx86-64.h: Remove dead code and references to unused
12875 and compiler defined symbols.
12876
12877 * unexmips.c:
12878 * unexelf.c: Remove references to desupported systems.
12879
12880 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12881
12882 * m/powermac.h: Remove boilerplate comments.
12883 (NO_REMAP): Remove unused definition.
12884
12885 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12886 define them.
12887
128882008-07-10 Kenichi Handa <handa@m17n.org>
12889
12890 * xfont.c (xfont_open): Log the reason of failure.
12891
128922008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12893
12894 * fontset.c (fontset_get_font_group):
12895 * font.c (font_check_otf): Specify argument types.
12896
128972008-07-09 Kenichi Handa <handa@m17n.org>
12898
12899 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12900 non-ASCII char is found.
12901
12902 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12903 (reorder_font_vector): Change the arg preferred_family to font.
12904 Prefer the spec matching with font.
12905 (fontset_get_font_group): New function.
12906 (fontset_find_font): Change the format of an element of a realized
12907 fontset. Use fontset_get_font_group.
12908 (fontset_font): Try the current fontset, the default fontset, the
12909 fallbacks of the current fontset, and the fallbacks of the default
12910 fontset in this order.
12911 (face_for_char): Delete the shortcut to use the current font.
12912 (fontset_from_font): Don't set fonts for Latin in the fontset.
12913
12914 * font.h (font_make_object, font_match_p): Adjust prototypes.
12915
12916 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12917
12918 * font.c (font_make_object): New arg entity and pixelsize.
12919 (font_check_otf_features, font_check_otf): New functions.
12920 (font_match_p): Check :lang, :script, and :otf properties.
12921
12922 * xfont.c (xfont_open): Adjust it for the change of
12923 font_make_object.
12924 (xfont_text_extents): Fix initial setting of metrics.
12925
12926 * ftfont.c (struct ftfont_info): New member index, delete member
12927 fc_charset_idx. Make the member order compatible with struct
12928 xftfont_info.
12929 (fc_charset_table): Change charset names to registry names.
12930 (ftfont_pattern_entity): Delete the args registry and
12931 fc_charset_idx. Change the value of :font-entity property
12932 to (FONTNAME . INDEX). Always set :registry property to
12933 `iso10646-1'.
12934 (struct ftfont_cache_data): New struct.
12935 (ftfont_lookup_cache): New arg for_face.
12936 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12937 (ftfont_driver): Set the member otf_capability.
12938 (ftfont_get_charset): Adjust it for the change of
12939 fc_charset_table.
12940 (OTF_TAG_SYM): New macro.
12941 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12942 for the change of fc_charset_table.
12943 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12944 ftfont_pattern_entity. Add FC_INDEX to objset.
12945 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12946 and ftfont_pattern_entity.
12947 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12948 font_make_object, struct ftfont_info.
12949 (ftfont_has_char): Use ftfont_get_fc_charset.
12950 (ftfont_otf_features, ftfont_otf_capability): New functions.
12951 (ftfont_shape): Use ftfont_get_otf.
12952 (ftfont_text_extents): Fix initial setting of metrics.
12953
12954 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12955 member order compatible with struct ftfont_info.
12956 (xftfont_open): Add FC_CHARSET to the pattern. Set
12957 xftfont_info->ft_size. Don't unlock the face. Check BDF
12958 properties if appropriate.
12959 (xftfont_close): Unlock the face.
12960 (xftfont_anchor_point, xftfont_shape): Deleted.
12961 (syms_of_xftfont): Don't set members anchor_point and shape of
12962 xftfont_driver.
12963
12964 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12965 font_make_object.
12966
12967 * w32font.c (w32font_open): Adjust it for the change of
12968 font_make_object.
12969 (w32font_open_internal): Don't set properties of font_object here.
12970
129712008-07-08 Chong Yidong <cyd@stupidchicken.com>
12972
12973 * macfns.c (x_create_tip_frame):
12974 * w32fns.c (x_create_tip_frame):
12975 * xfns.c (x_create_tip_frame): Pass parameter argument to
12976 face-set-after-frame-default.
12977
12978 * xfaces.c (Finternal_merge_in_global_face): Save merged
12979 attributes for the default face back into the face vector.
12980
129812008-07-08 Andreas Schwab <schwab@suse.de>
12982
12983 * fontset.h: Declare fontset_from_font. Don't declare
12984 new_fontset_from_font and fontset_from_font_name.
12985 * xterm.c: Include "fontset.h".
12986 * Makefile.in (xterm.o): Update dependencies.
12987
129882008-07-08 Glenn Morris <rgm@gnu.org>
12989
12990 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12991 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12992
129932008-07-07 Chong Yidong <cyd@stupidchicken.com>
12994
12995 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12996 (x_set_frame_parameters): Don't bind it.
12997
129982008-07-07 Juanma Barranquero <lekktu@gmail.com>
12999
13000 * w32fns.c (map_w32_filename): Declare extern.
13001
130022008-07-07 Jason Rumney <jasonr@gnu.org>
13003
13004 * w32term.c (WS_EX_LAYERED): Define if not already.
13005
130062008-07-06 Chong Yidong <cyd@stupidchicken.com>
13007
13008 * xfaces.c (set_font_frame_param): Don't try to set the font
13009 parameter if it is still unspecified in the lface.
13010
130112008-07-05 Chong Yidong <cyd@stupidchicken.com>
13012
13013 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13014 face if it didn't already exist.
13015
13016 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13017
130182008-07-05 Andreas Schwab <schwab@suse.de>
13019
13020 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13021
130222008-07-05 Chong Yidong <cyd@stupidchicken.com>
13023
13024 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13025 word-wrapping.
13026 (IT_DISPLAYING_WHITESPACE): New macro.
13027 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13028 when word-wrapping. Simplify word-wrapping logic. Use correct
13029 pixel positions when saving copies of the iterator.
13030 (display_line): Use proper wrap point if the last character on a
13031 line was preceded by whitespace.
13032
130332008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13034
13035 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13036
130372008-07-04 Kenichi Handa <handa@m17n.org>
13038
13039 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13040
13041 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13042
130432008-07-02 Jason Rumney <jasonr@gnu.org>
13044
13045 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13046 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13047
13048 * xdisp.c (next_element_from_display_vector): Move assignment out
13049 of if statement.
13050
130512008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13052
13053 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13054
13055 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13056 (syms_of_fileio): Initialize and export them.
13057 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13058
13059 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13060 (Fsystem_move_file_to_trash): New function.
13061 (syms_of_w32fns): Export it to lisp.
13062
130632008-07-01 Jason Rumney <jasonr@gnu.org>
13064
13065 * w32font.c (w32font_text_extents): Don't count overhang as part
13066 of width.
13067
130682008-06-30 Miles Bader <miles@gnu.org>
13069
13070 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13071 Add `avoid_cursor_p' field.
13072
13073 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13074 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13075 (append_glyph, append_composite_glyph, produce_image_glyph)
13076 (append_stretch_glyph): Initialize avoid_cursor_p.
13077 (get_it_property): Rename from `get_line_height_property'.
13078 (x_produce_glyphs): Use get_it_property.
13079 (handle_line_prefix, push_display_prop): New functions.
13080 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13081 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13082 New variables.
13083 (syms_of_xdisp): Initialize them.
13084
130852008-06-30 Kenichi Handa <handa@m17n.org>
13086
13087 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13088 XftDefaultSubstitute (they are called in XftFontMatch).
13089 (xftfont_open): Fix args to ftfont_font_format.
13090
13091 * ftfont.c (fc_charset_table): New member lang.
13092 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13093 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13094 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13095 (ftfont_open): Fix args to ftfont_font_format.
13096 (ftfont_font_format): New arg filename.
13097
130982008-06-30 Chong Yidong <cyd@stupidchicken.com>
13099
13100 * xfaces.c (Finternal_merge_in_global_face): If default face was
13101 modified, realize it again. Update the font face attribute.
13102
131032008-06-29 Jason Rumney <jasonr@gnu.org>
13104
13105 * w32term.c (x_set_frame_alpha): Fix logic.
13106
131072008-06-29 Kenichi Handa <handa@m17n.org>
13108
13109 * fontset.c (Finternal_char_font): Return font-object instead of
13110 font-name.
13111
13112 * composite.c (get_composition_id): Fix the width calculation for TAB.
13113
131142008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13115
13116 * indent.c (Fvertical_motion): Properly handle float column arg.
13117
131182008-06-28 Jason Rumney <jasonr@gnu.org>
13119
13120 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13121 (pfnSetLayeredWindowAttributes): New function pointer.
13122 (w32_initialize): Initialize it when supported.
13123 (x_set_frame_alpha): New function.
13124
13125 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13126 (w32_frame_parm_handlers): Set alpha handler.
13127
13128 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13129
131302008-06-27 Jason Rumney <jasonr@gnu.org>
13131
13132 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13133 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13134 (w32_to_x_charset, x_to_w32_charset)
13135 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13136 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13137 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13138 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13139 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13140 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13141 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13142 (Qw32_charset_unicode): Remove.
13143 (syms_of_w32fns): Update for above changes.
13144
13145 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13146 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13147 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13148 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13149 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13150 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13151 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13152 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13153 (syms_of_w32font): Update for above changes.
13154
131552008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13156
13157 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13158 removed #if.
13159 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13160
131612008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13162 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13163
13164 * makefile.w32-in (LOCAL_FLAGS):
13165 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13166
13167 * sysdep.c (_spawnlp, _getpid):
13168 Declare with explicit _cdecl instead of _CRTAPI1.
13169
13170 * editfns.c (Fget_internal_run_time):
13171 Check for WINDOWSNT with #ifdef, not #if.
13172
131732008-06-26 Jason Rumney <jasonr@gnu.org>
13174
13175 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13176
13177 * w32term.c (x_draw_glyph_string_foreground)
13178 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13179 Use FONT_HANDLE macro.
13180 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13181
13182 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13183 (uniscribe_encode_char): Use FONT_HANDLE macro.
13184
13185 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13186 (w32font_text_extents): Use precast w32_font.
13187 (w32font_close): Free cached metrics.
13188 (w32font_open_internal): Allocate space for name on stack.
13189
131902008-06-26 Chong Yidong <cyd@stupidchicken.com>
13191
13192 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13193
131942008-06-26 Jason Rumney <jasonr@gnu.org>
13195
13196 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13197 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13198
131992008-06-26 Juanma Barranquero <lekktu@gmail.com>
13200
13201 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13202
132032008-06-26 Jason Rumney <jasonr@gnu.org>
13204
13205 * w32bdf.c, w32bdf.h: Remove obsolete files.
13206
13207 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13208
13209 * w32gui.h: Don't include w32bdf.h.
13210 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13211 Remove obsolete font support.
13212
13213 * w32font.h (struct w32font_info): Remove compat_w32_font.
13214 Add hfont member.
13215 (FONT_COMPAT): Remove obsolete macro.
13216
13217 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13218 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13219 (w32font_open_internal): Remove compat code. Set new hfont member.
13220 (Fx_select_font): Use new hfont member.
13221
13222 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13223 (uniscribe_encode_char): Use new hfont member.
13224
13225 * w32term.c (x_draw_glyph_string_foreground)
13226 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13227 (x_draw_glyph_string): Use metrics in w32font_info.
13228
132292008-06-26 Kenichi Handa <handa@m17n.org>
13230
13231 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13232
132332008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13234
13235 * unexnext.c:
13236 * m/ews4800.h:
13237 * m/hp9000s300.h:
13238 * m/ibm370aix.h:
13239 * m/mips-siemens.h:
13240 * m/ncr386.h:
13241 * m/next.h:
13242 * m/pmax.h:
13243 * m/powerpcle.h:
13244 * m/tandem-s2.h:
13245 * s/386bsd.h:
13246 * s/bsd386.h:
13247 * s/bsd4-1.h:
13248 * s/bsd4-2.h:
13249 * s/bsdos2-1.h:
13250 * s/bsdos2.h:
13251 * s/bsdos3.h:
13252 * s/bsdos4.h:
13253 * s/nextstep.h:
13254 * s/ultrix4-3.h:
13255 * s/usg5-0.h:
13256 * s/usg5-2-2.h:
13257 * s/usg5-2.h:
13258 * s/usg5-4-3.h:
13259 * s/ux4800.h:
13260 * s/uxpds.h:
13261 * s/uxpv.h: Remove support for obsolete systems.
13262 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13263 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13264 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13265 Remove, insert contents in s/aix4-2.h.
13266 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13267 * s/bsd4-3.h: Rename to ...
13268 * s/bsd-common.h: ... this.
13269 * data.c:
13270 * doc.c:
13271 * ecrt0.c:
13272 * emacs.c:
13273 * fileio.c:
13274 * floatfns.c:
13275 * keyboard.c:
13276 * mem-limits.h:
13277 * print.c:
13278 * process.c:
13279 * sysdep.c:
13280 * syssignal.h:
13281 * systty.h:
13282 * syswait.h:
13283 * term.c:
13284 * unexec.c:
13285 * unexelf.c:
13286 * unexhp9k800.c:
13287 * m/hp800.h:
13288 * m/ibmrs6000.h:
13289 * m/mips.h:
13290 * m/vax.h:
13291 * s/darwin.h:
13292 * s/freebsd.h:
13293 * s/gnu.h:
13294 * s/ms-w32.h:
13295 * s/msdos.h:
13296 * s/netbsd.h:
13297 * s/template.h: Remove references to obsolete variables.
13298
13299 * Makefile.in: Add dependencies for all unexec files.
13300 (admindir): Remove unused variable.
13301 (UNEXEC_SRC): Remove references.
13302
133032008-06-25 Chong Yidong <cyd@stupidchicken.com>
13304
13305 * xfns.c (x_default_font_parameter): If Xft is available, first
13306 try Monospace-12 for the default font.
13307
133082008-06-25 Jason Rumney <jasonr@gnu.org>
13309
13310 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13311
133122008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13313
13314 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13315
13316 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13317
133182008-06-25 Juanma Barranquero <lekktu@gmail.com>
13319
13320 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13321 <scroll-conservatively>: Fix typo in docstring.
13322
13323 * xselect.c (Fx_send_client_event): Doc fix.
13324
133252008-06-25 Kenichi Handa <handa@m17n.org>
13326
13327 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13328
13329 * font.c (font_parse_fcname): Remove unused variables.
13330 (font_sort_entites): Delete the arg SPEC. Caller changed.
13331 Fix for the case of ! best_only.
13332 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13333
13334 * lisp.h (Fstring_to_unibyte): EXFUN it.
13335
13336 * character.h (str_to_unibyte): Extern it.
13337
13338 * character.c (str_to_unibyte): New function.
13339
13340 * fns.c (Fstring_to_unibyte): New function.
13341 (syms_of_fns): Defsubr it.
13342
133432008-06-24 Kenichi Handa <handa@m17n.org>
13344
13345 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13346 DPI too.
13347 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13348
133492008-06-24 Andreas Schwab <schwab@suse.de>
13350
13351 * Makefile.in (${lispsource}loaddefs.el): Rename from
13352 ../lisp/loaddefs.el.
13353 (bootstrap-clean): Do what distclean does but don't remove
13354 Makefile.
13355 (distclean): Depend on bootstrap-clean and remove Makefile.
13356
133572008-06-24 Chong Yidong <cyd@stupidchicken.com>
13358
13359 * buffer.h (struct buffer): New member word_wrap.
13360
13361 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13362 word-wrap.
13363 (init_buffer_once): Initialize them.
13364
13365 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13366 line_wrap enum possessing three possible values.
13367
13368 * termopts.h: Replace truncate_partial_width_windows with
13369 Vtruncate_partial_width_windows.
13370
13371 * dispnew.c (direct_output_for_insert): Avoid direct output when
13372 inserting a space with word wrap on.
13373
13374 * indent.c (compute_motion): Obey integer values of
13375 truncate-partial-width-windows.
13376
13377 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13378 replacing truncate_partial_width_windows.
13379 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13380 truncate only if the window width is below that integer.
13381 (start_display, resize_mini_window, produce_stretch_glyph)
13382 (display_string, move_it_in_display_line_to): Use line_wrap.
13383 (back_to_previous_visible_line_start, reseat_1): Reset
13384 string_from_display_prop_p.
13385 (display_line): Extend default face to end of line when wrapping.
13386
133872008-06-24 Kim F. Storm <storm@cua.dk>
13388
13389 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13390 to wrap continued lines at word boundaries.
13391
133922008-06-24 Jason Rumney <jasonr@gnu.org>
13393
13394 * font.c (Ffont_face_attributes): Multiply pixel size before point
13395 conversion to avoid multiplying rounding error.
13396
133972008-06-23 Jason Rumney <jasonr@gnu.org>
13398
13399 * w32term.c (x_draw_glyph_string_background)
13400 (x_draw_glyph_string): Remove old bdf font code.
13401
13402 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13403
134042008-06-22 Kenichi Handa <handa@m17n.org>
13405
13406 * font.c (font_find_for_lface): Try the adstyle specified in
13407 the property of LFACE_FONT of LFACE (if any).
13408
134092008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13410 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13411
13412 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13413
134142008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13415
13416 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13417 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13418 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13419 (witness-emacs): Remove.
13420 (lisp, shortlisp): Move loaddefs.el earlier.
13421 (mostlyclean): Forget about witness-emacs.
13422
134232008-06-22 Glenn Morris <rgm@gnu.org>
13424
13425 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13426 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13427
134282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13429
13430 * Makefile.in (PRECOMP): Remove.
13431 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13432 (witness-emacs): Run `compile-first'.
13433 (.el.elc): Use the new compile-onefile target.
13434
134352008-06-21 Kenichi Handa <handa@m17n.org>
13436
13437 * xftfont.c (xftfont_open): Handle QCembolden only when
13438 FC_EMBOLDEN is defined.
13439
134402008-06-21 Andreas Schwab <schwab@suse.de>
13441
13442 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13443 (.el.elc): Likewise.
13444
134452008-06-21 Miles Bader <miles@gnu.org>
13446
13447 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13448 build dir, not the lisp source dir.
13449
134502008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13451
13452 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13453 (bootstrapclean): Remove.
13454 (.el.elc): New rule.
13455 (PRECOMP): New var.
13456 (../lisp/subdirs.el): Remove.
13457 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13458 (witness-emacs): New target.
13459 (mostlyclean): Remove witness-emacs as well.
13460 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13461 Add witness-emacs dependency.
13462
134632008-06-20 Chong Yidong <cyd@stupidchicken.com>
13464
13465 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13466 defined by the font.
13467
134682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13471 (bootstrap-clean): New target that keeps TAGS around.
13472 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13473 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13474
134752008-06-20 Jason Rumney <jasonr@gnu.org>
13476
13477 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13478 Remove obsolete font code.
13479
13480 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13481 to determine language support.
13482
134832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13484
13485 * sysdep.c (cfsetspeed): New fun extracted from the code.
13486 (cfmakeraw): Move before first use.
13487
134882008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13489
13490 * sysdep.c (cfmakeraw): Provide fallback implementation.
13491 (serial_configure): Provide fallback implementation of cfsetspeed.
13492
134932008-06-20 Kenichi Handa <handa@m17n.org>
13494
13495 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13496 the pattern.
13497
13498 * fontset.c (fontset_from_font): Copy font_spec before changing
13499 the elements.
13500
13501 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13502
135032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13504
13505 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13506 for explicit `font' parameters.
13507
13508 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13509
135102008-06-19 Kenichi Handa <handa@m17n.org>
13511
13512 * frame.c: Include <ctype.h>.
13513 (x_set_font_backend): Allow spacing characters in the X resource
13514 for FontBackend.
13515
135162008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13517
13518 * w32fns.c, xfns.c (Qfont_param): New var.
13519 (syms_of_w32fns): Initialize it.
13520 (x_default_font_parameter): Record explicit `font' into
13521 `font-parameter'.
13522
135232008-06-18 Kenichi Handa <handa@m17n.org>
13524
13525 * font.c (font_parse_xlfd): Fix previous change.
13526 (font_parse_fcname): Don't use :fc-unknown-spec.
13527 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13528 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13529 (font_add_log): Prepend the driver name to the resulting fonts.
13530
13531 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13532 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13533 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13534
13535 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13536 (QCembolden): New variables.
13537 (syms_of_xftfont): DEFSYM them.
13538 (xftfont_open): Call XftFontMatch. Don't trust the result of
13539 XftTextExtents8 if the pixel_size is less than 5.
13540
135412008-06-18 Andreas Schwab <schwab@suse.de>
13542
13543 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13544 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13545
135462008-06-18 Jason Rumney <jasonr@gnu.org>
13547
13548 * w32font.c (w32font_list, w32font_match): Add logging.
13549
13550 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13551
135522008-06-17 Chong Yidong <cyd@stupidchicken.com>
13553
13554 * font.c (font_parse_fcname): Store divider characters for
13555 unknown-spec list. For known key symbols, intern using correct
13556 symbol name.
13557
135582008-06-17 Kenichi Handa <handa@m17n.org>
13559
13560 * xfaces.c (realize_default_face): If the frame is not on window
13561 system, set the fontset of face to nil.
13562
135632008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13564
13565 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13566
135672008-06-16 Juanma Barranquero <lekktu@gmail.com>
13568
13569 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13570 (build_font_name_from_vector): Delete externs.
13571
13572 * xfaces.c (struct font_name): Don't declare.
13573
135742008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13575
13576 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13577
135782008-06-16 Chong Yidong <cyd@stupidchicken.com>
13579
13580 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13581
135822008-06-16 Juanma Barranquero <lekktu@gmail.com>
13583
13584 * font.c (Ffont_spec): Fix usage in docstring.
13585 (Ffont_face_attributes): Doc fix.
13586
135872008-06-16 Andreas Schwab <schwab@suse.de>
13588
13589 * font.c (Ffont_face_attributes): Fix definition.
13590
135912008-06-16 Jason Rumney <jasonr@gnu.org>
13592
13593 * font.h (font_style_symbolic_from_value): Remove.
13594
13595 * font.c (font_style_symbolic_from_value): Remove.
13596 (font_style_symbolic): Revert to pre 2008-06-13 version.
13597
13598 * w32font.c (w32_to_fc_weight): New function.
13599 (w32font_full_name, logfont_to_fcname): Use it.
13600
136012008-06-16 Kenichi Handa <handa@m17n.org>
13602
13603 * font.c (font_check_object): Delete it.
13604 (font_clear_cache): Check if a font-object is alive.
13605 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13606 font-object to nil.
13607 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13608 (font_at): Don't call font_check_object.
13609 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13610
136112008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13612
13613 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13614
136152008-06-16 Chong Yidong <cyd@stupidchicken.com>
13616
13617 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13618
136192008-06-15 Chong Yidong <cyd@stupidchicken.com>
13620
13621 * font.c (font_parse_fcname): Only one decimal point.
13622 (font_unparse_fcname): Handle data in family and foundry indices
13623 as symbols, not strings.
13624 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13625
13626 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13627
13628 * font.h (font_unparse_gtkname): Add prototype.
13629
136302008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13631
13632 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13633
136342008-06-15 Andreas Schwab <schwab@suse.de>
13635
13636 * font.c (font_update_drivers): Fix crash when no drivers match.
13637
136382008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13639
13640 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13641 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13642
136432008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13644
13645 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13646
136472008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13648
13649 * process.c (Fserial_process_configure, Fprocess_send_eof):
13650 Use EQ to compare Lisp_Objects.
13651
136522008-06-13 Jason Rumney <jasonr@gnu.org>
13653
13654 * w32fns.c (Fw32_select_font): Remove old font API function.
13655
13656 * w32font.c (logfont_to_fcname): New function.
13657 (Fx_select_font): New font dialog function compatible with
13658 GTK/fontconfig version.
13659
13660 * font.c (font_style_symbolic_from_value): New function.
13661 (font_style_symbolic): Use it.
13662
13663 * font.h (font_style_symbolic_from_value): Declare new function.
13664
136652008-06-13 Juanma Barranquero <lekktu@gmail.com>
13666
13667 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13668 <font-width-table>: Fix typos in docstrings.
13669
136702008-06-13 Daniel Engeler <engeler@gmail.com>
13671
13672 These changes add serial port access.
13673 * process.c: Add HAVE_SERIAL.
13674 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13675 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13676 (list_processes_1, select_wrapper, Fstop_process)
13677 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13678 (status_notify): Modify to handle serial processes.
13679 [HAVE_SERIAL] (Fserial_process_configure)
13680 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13681 New functions.
13682 * process.h (struct Lisp_Process): Add `type'.
13683 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13684 New functions.
13685 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13686 serial ports.
b71ac3dd 13687 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13688 * w32.h: Add FILE_SERIAL.
13689 (struct _child_process): Add ovl_read, ovl_write.
13690
136912008-06-13 Kenichi Handa <handa@m17n.org>
13692
13693 * dispextern.h (enum lface_attribute_index): New member
13694 LFACE_FOUNDRY_INDEX.
13695
13696 * font.c (font_score): Delete arg alternate_families. Check only
13697 weight, slant, width, and size. Ignore the difference of alias
13698 style symbols.
13699 (font_sort_entites): Adjust for the above change. Reflect the
13700 order of font-driver to scores.
13701 (font_list_entities): Don't check alternate_familes here.
13702 (font_clear_prop): Handle foundry.
13703 (font_update_lface): Don't parse "foundry-family" form here.
13704 Handle FONT_FOUNDRY_INDEX.
13705 (font_find_for_lface): Likewise. Handle alternate families here.
13706 If registry is nil, try iso8859-1 and ascii-0.
13707 (font_open_for_lface): Pay attention to size in ENTITY.
13708 (font_open_by_name): Simplify by calling font_load_for_lface.
13709 (free_font_driver_list): Delete it.
13710 (font_update_drivers): Preserve the order of backends.
13711 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13712 of font_score and font_sort_entites.
13713 (font_update_sort_order): Likewise.
13714
13715 * xfaces.c (LFACE_FOUNDRY): New macro.
13716 (check_lface_attrs): Check foundry.
13717 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13718 (merge_face_vectors): Check foundry.
13719 (merge_face_ref): Likewise.
13720 (Finternal_set_lisp_face_attribute): Likewise.
13721 (x_update_menu_appearance): Likewise.
13722 (Finternal_get_lisp_face_attribute): Likewise.
13723 (lface_hash): Likewise.
13724 (lface_same_font_attributes_p): Likewise.
13725 (x_supports_face_attributes_p): Likewise.
13726 (tty_supports_face_attributes_p): Likewise.
13727 (Finternal_set_alternative_font_family_alist): Intern strings.
13728 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13729 (realize_default_face): Set LFACE_FOUNDRY (lface).
13730
13731 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13732 font-driver at first.
13733
13734 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13735
137362008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13737
13738 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13739
137402008-06-12 Jim Meyering <meyering@redhat.com>
13741
13742 Make unexec_free handle NULL the same way free does.
13743 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13744
137452008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13748 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13749 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13750 (WEAK_ALIAS): Simplify.
13751 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13752 when searching a unibyte buffer.
13753
137542008-06-12 Chong Yidong <cyd@stupidchicken.com>
13755
13756 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13757
137582008-06-12 Juanma Barranquero <lekktu@gmail.com>
13759
13760 * w32font.c: Include ctype.h.
13761
137622008-06-11 Jason Rumney <jasonr@gnu.org>
13763
13764 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13765 misreported as space.
13766 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13767 as aliases for registry iso10646-1.
13768
137692008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13770
13771 * buffer.c (clone_per_buffer_values): Skip `name'.
13772
137732008-06-11 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * font.c (font_parse_fcname): Fix last change; accept decimal
13776 points in font size.
13777
137782008-06-10 Jason Rumney <jasonr@gnu.org>
13779
13780 * w32uniscribe.c (add_opentype_font_name_to_list):
13781 Skip non unicode fonts.
13782
137832008-06-10 Chong Yidong <cyd@stupidchicken.com>
13784
13785 * xfns.c (Fx_font_dialog): New function.
13786
13787 * gtkutil.c (xg_dialog_response_cb): Rename from
13788 xg_file_response_callback.
13789 (pop_down_dialog): Rename from pop_down_file_dialog.
13790 (xg_get_file_name): Callers changed.
13791 (xg_get_font_name): New function.
13792
13793 * gtkutil.h (xg_get_font_name): Insert prototype.
13794
137952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13796
13797 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13798 x_underline_minimum_display_offset.
13799 (syms_of_xdisp): Declare it here rather than in xterm.c.
13800 * dispextern.h (underline_minimum_offset): Declare it.
13801 * w32term.c (x_draw_glyph_string): Use it.
13802 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13803 (syms_of_xterm): Don't declare it any more.
13804 (x_draw_glyph_string): Adjust to the new name.
13805
8719abec 138062008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13807
13808 * xterm.c (x_underline_minimum_display_offset): New var.
13809 (x_draw_glyph_string): Use it.
13810 (syms_of_xterm): Declare it.
13811
138122008-06-10 Chong Yidong <cyd@stupidchicken.com>
13813
13814 * font.c (font_parse_fcname): Accept GTK-style font names too.
13815
138162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * dired.c (file_name_completion): Don't return t if the match is exact
13819 but with different capitalization.
13820 * minibuf.c (Ftry_completion): Simplify.
13821
13822 * window.c (Vwindow_point_insertion_type): New var.
13823 (set_window_buffer): Use it.
13824 (syms_of_window): Init and export it to Lisp.
13825
138262008-06-10 Kenichi Handa <handa@m17n.org>
13827
13828 * font.h (font_intern_prop): Prototype adjusted.
13829
13830 * font.c (font_intern_prop): New arg force_symbol.
13831 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13832 Adjust for the change of font_intern_prop.
13833
13834 * ftfont.c (ftfont_pattern_entity):
13835 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13836 (w32_registry):
13837 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13838 the change of font_intern_prop.
13839
138402008-06-09 Juanma Barranquero <lekktu@gmail.com>
13841
13842 * w32menu.c (digest_single_submenu): Declare extern.
13843
138442008-06-09 Jason Rumney <jasonr@gnu.org>
13845
13846 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13847
13848 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13849 (parse_single_submenu): Remove.
13850 (digest_single_submenu): Remove.
13851 (syms_of_w32menu): Don't initialise variables that have moved
13852 to menu.c.
13853 (set_frame_menubar): Sync with version in xmenu.c.
13854 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13855
13856 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13857 Make static again.
13858
138592008-06-09 Jason Rumney <jasonr@gnu.org>
13860
13861 Changes to w32 files related to the move of common menu code
13862 to menu.c on 2008-06-08 by Chong Yidong.
13863
13864 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13865 defs to w32gui.h.
13866 (single_keymap_panes, push_menu_item, push_menu_pane):
13867 Make globally visible.
13868
13869 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13870 (local_free, malloc_widget_value, free_widget_value)
13871 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13872 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13873 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13874 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13875 (menu_items, menu_items_allocated, menu_items_used)
13876 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13877 (init_menu_items, finish_menu_items, discard_menu_items)
13878 (grow_menu_items, push_submenu_start, push_submenu_end)
13879 (push_left_right_boundary, push_menu_pane, push_menu_item)
13880 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13881 (free_menubar_widget_tree_value, parse_single_submenu)
13882 (update_submenu_strings): Remove functions.
13883 (xmalloc_widget_value): Remove and declare extern.
13884
13885 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13886 (OBJ1): Build it.
13887
13888 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13889 (local_heap, local_alloc, local_free, malloc_widget_value)
13890 (free_widget_value): Define here.
13891
138922008-06-09 Kenichi Handa <handa@m17n.org>
13893
13894 * font.h (Qascii_0): Extern it.
13895
13896 * font.c (Qascii_0): New variable.
13897 (syms_of_font): DEFSYM it.
13898 (font_open_by_name): If the registry "iso8859-1" fails, try also
13899 "ascii-0".
13900
13901 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13902
139032008-06-08 Kenichi Handa <handa@m17n.org>
13904
13905 * .gdbinit (xfont): New command.
13906
139072008-06-08 Andreas Schwab <schwab@suse.de>
13908
13909 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13910 * Makefile.in (menu.o): Update dependencies.
13911
13912 * Makefile.in (obj): Always add menu.o.
13913 * emacs.c (main): Always call syms_of_menu.
13914 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13915
139162008-06-08 Chong Yidong <cyd@stupidchicken.com>
13917
13918 * Makefile.in: Compile menu.c.
13919
13920 * lisp.h: Declare syms_of_menu.
13921
13922 * emacs.c (main): Call syms_of_menu.
13923
13924 * keyboard.h: Relocate platform-independent menu definitions from
13925 xmenu.c.
13926
13927 * menu.c: New file. Relocate platform-independent menu
13928 definitions from xmenu.c. Suggested by Adrian Robert.
13929
13930 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13931 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13932 (menu_items_used, menu_items_n_panes)
13933 (menu_items_submenu_depth): Move to keyboard.h.
13934 (init_menu_items, finish_menu_items, unuse_menu_items)
13935 (discard_menu_items, restore_menu_items, save_menu_items)
13936 (grow_menu_items, push_submenu_start, push_submenu_end)
13937 (push_left_right_boundary, push_menu_pane, push_menu_item)
13938 (keymap_panes, single_keymap_panes, single_menu_item)
13939 (list_of_panes, list_of_items, find_and_call_menu_selection)
13940 (xmalloc_widget_value, free_menubar_widget_value_tree)
13941 (parse_single_submenu, digest_single_submenu)
13942 (update_submenu_strings): Move to menu.c.
13943
139442008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13945
13946 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13947
139482008-06-06 Miles Bader <miles@gnu.org>
13949
13950 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13951 face, not frame default.
13952
139532008-06-05 Martin Rudalics <rudalics@gmx.at>
13954
13955 * window.c (pop_up_windows, pop_up_frames)
13956 (display_buffer_reuse_frames, Vpop_up_frame_function)
13957 (Vdisplay_buffer_function, Veven_window_heights)
13958 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13959 (Vspecial_display_function, Vsame_window_buffer_names)
13960 (Vsame_window_regexps, split_height_threshold)
13961 (Vsplit_window_preferred_function): Move those vars to window.el.
13962 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13963 (Fdisplay_buffer): Move those functions to window.el.
13964 (syms_of_window): Remove corresponding declarations.
13965 (display_buffer): New function.
13966 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13967 * dispnew.c (Flast_nonminibuf_frame): New function.
13968 * buffer.c (Fpop_to_buffer): Move to window.el.
13969
139702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13971
13972 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13973
139742008-06-05 Kenichi Handa <handa@m17n.org>
13975
13976 * coding.c (detect_coding): Fix previous change.
13977 (detect_coding_system): Likewise.
13978
139792008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13980
13981 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13982
13983 * keymap.c (Vminibuffer_local_filename_must_match_map):
13984 Rename from Vminibuffer_local_must_match_filename_map.
13985 (syms_of_keymap):
13986 * minibuf.c (Fcompleting_read): Adjust accordingly.
13987 * commands.h: Rename declaration as well.
13988
139892008-06-05 Kenichi Handa <handa@m17n.org>
13990
13991 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13992 family name.
13993 (Ffont_put): Likewise.
13994
13995 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13996 current font-spec.
13997
13998 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13999 is unspecified.
14000
14001 * xfaces.c (realize_x_face): If the font-related face attributes
14002 are the same as those of default face, realize a new fontset from
14003 default->fontset.
14004 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14005
140062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14007
14008 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14009 (move_it_in_display_line): New wrapper.
14010
14011 * window.c (window_scroll_pixel_based_preserve_x)
14012 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14013 (window_scroll_pixel_based, window_scroll_line_based):
14014 Use them to preserve column positions.
14015 (syms_of_window): Initialize them.
14016
14017 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14018 (HPOS . VPOS) pair.
14019
14020 * dispextern.h (move_it_in_display_line): Declare.
14021
140222008-06-05 Juanma Barranquero <lekktu@gmail.com>
14023
14024 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14025 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14026 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14027
140282008-06-04 Juanma Barranquero <lekktu@gmail.com>
14029
14030 * window.c (Fset_window_parameter): Doc fix.
14031 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14032
140332008-06-04 Joakim Verona <joakim@verona.se>
14034
14035 * window.h (struct window): Add new member window_parameters.
14036
14037 * window.c (Fwindow_parameters, Fwindow_parameter)
14038 (Fset_window_parameter): New defuns.
14039 (syms_of_window): Defsubr the new defuns.
14040 (make_window): Initialize window_parameters to nil.
14041
140422008-06-04 John Paul Wallington <jpw@pobox.com>
14043
14044 * eval.c (Fdefmacro): Doc fix.
14045
140462008-06-04 Kenichi Handa <handa@m17n.org>
14047
14048 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14049 Be sure to call setup_coding_system when we find a proper coding system.
14050 (detect_coding_system): Fix handling of coding->head_ascii.
14051
140522008-06-03 Andreas Schwab <schwab@suse.de>
14053
14054 * font.c (font_prop_validate_spacing): Fix last change.
14055
140562008-06-03 Kenichi Handa <handa@m17n.org>
14057
14058 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14059 (font_parse_fcname): Fix handling of unknown key.
14060
14061 * xfont.c (xfont_list): Try an alias.
14062
14063 * charset.c (char_charset): Return NULL if the arg charset_list is
14064 specified and C doesn't belong to any of them.
14065
140662008-06-02 Chip Coldwell <coldwell@redhat.com>
14067
14068 * font.c (font_pixel_size): Don't take cdr of an integer.
14069
140702008-06-02 Jim Meyering <meyering@redhat.com>
14071
14072 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14073 * alloc.c (xfree): Return right away for a NULL arg.
14074 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14075 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14076 * mac.c (create_apple_event_from_event_ref): Likewise.
14077 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14078 Likewise.
14079 * doprnt.c (doprnt1): Likewise.
14080 * frame.c (frame): Likewise.
14081 * keyboard.c (wipe_kboard): Likewise.
14082 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14083 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14084 * term.c (tty_default_color_capabilities, maybe_fatal)
14085 (delete_tty): Likewise.
14086 * w16select.c (string): Likewise.
14087 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14088 * w32bdf.c (w32_free_bdf_font): Likewise.
14089 * w32fns.c (w32_unload_font): Likewise.
14090 * w32font.c (w32font_close): Likewise.
14091 * window.c (size_window): Likewise.
14092 * xselect.c (receive_incremental_selection): Likewise.
14093 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14094 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14095 * w32.c (stat): Likewise.
14096
14097 Remove useless if-before-free tests.
14098 * editfns.c (Fset_time_zone_rule): Likewise.
14099 * lread.c (nosuffix): Likewise.
14100 * ralloc.c (get_bloc): Likewise.
14101 * regex.c (reg_free): Likewise.
14102 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14103 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14104 * xsmfns.c (smc_save_yourself_CB): Likewise.
14105
141062008-06-02 Kenichi Handa <handa@m17n.org>
14107
14108 * font.c (font_find_for_lface): Handle float font size.
14109 (font_open_for_lface): Likewise.
14110
14111 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14112 comparing the properties.
14113
141142008-06-01 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14117 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14118 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14119 Don't add empty script list.
14120 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14121
141222008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14123
14124 * Makefile.in (dot, dotdot): Remove, update users.
14125 ".." has been used elsewhere in the file for a long time.
14126 (LIBXT_STATIC): Remove conditional based on unused variable.
14127
141282008-06-01 Miles Bader <miles@gnu.org>
14129
14130 * xfaces.c (Vface_remapping_alist): New variable.
14131 (syms_of_xfaces): Initialize it.
14132 (enum named_merge_point_kind): New type.
14133 (struct named_merge_point): Add `named_merge_point_kind' field.
14134 (push_named_merge_point): Make cycle detection respect different
14135 named-merge-point kinds.
14136 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14137 Remove face-name alias resolution.
14138 (lface_from_face_name): New definition using
14139 `lface_from_face_name_no_resolve'.
14140 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14141 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14142 (get_lface_attributes): New definition that layers face-remapping on
14143 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14144 (lookup_basic_face): New function.
14145 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14146 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14147 `get_lface_attributes'.
14148 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14149 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14150 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14151
14152 * xdisp.c (init_iterator): Pass base_face_id through
14153 `lookup_basic_face' when we actually use it as a face-id.
14154 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14155 DEFAULT_FACE_ID.
14156
14157 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14158 lookup the initial face-id.
14159
14160 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14161
141622008-06-01 Juanma Barranquero <lekktu@gmail.com>
14163
14164 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14165 (Fremove_text_properties): Fix typos in docstrings.
14166
141672008-05-31 Kenichi Handa <handa@m17n.org>
14168
14169 * font.c (font_list_entities): Fix the car part of data to be
14170 stored in the cache.
14171
14172 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14173
141742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14175
14176 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14177 Add a `test' argument so another predicate than `equal' can be used.
14178 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14179 (map_char_table): Remove unused vars `c' and `i'.
14180 * lisp.h (Foptimize_char_table): Adjust declaration.
14181 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14182
141832008-05-30 Kenichi Handa <handa@m17n.org>
14184
14185 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14186 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14187 defined.
14188
141892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14190
14191 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14192 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14193 frame-local settings for the same variable.
14194
141952008-05-30 Kenichi Handa <handa@m17n.org>
14196
14197 * fontset.c (Ffont_info): Move to font.c.
14198 (syms_of_fontset): Delete defsubr of Sfont_info.
14199
14200 * font.c (font_style_to_value, font_score): Delete casting of the
14201 args to xstcasecmp.
14202 (register_font_driver): Increment num_font_drivers only when
14203 registering the driver globally.
14204 (Ffont_info): Move from fontset.c. Handle a font object too.
14205 (syms_of_font): Defsubr Sfont_info.
14206
142072008-05-29 Kenichi Handa <handa@m17n.org>
14208
14209 * coding.h (enum define_coding_utf8_arg_index): New enum.
14210 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14211 coding_attr_utf_bom.
14212 (enum utf_bom_type): Rename from utf_16_bom_type.
14213 (struct utf_16_spec): Adjust for the above change.
14214 (struct coding_system): Add utf_8_bom in `spec' union.
14215
14216 * coding.c (CODING_UTF_8_BOM): New macro.
14217 (enum coding_category): Delete coding_category_utf_8, add
14218 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14219 coding_category_utf_8_sig.
14220 (CATEGORY_MASK_UTF_8): Delete it.
14221 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14222 (CATEGORY_MASK_UTF_8_SIG): New macros.
14223 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14224 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14225 CATEGORY_MASK_UTF_8_SIG.
14226 (CATEGORY_MASK_UTF_8): New macro.
14227 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14228 (detect_coding_utf_8): Check BOM.
14229 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14230 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14231 (encode_coding_utf_16): Likewise.
14232 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14233 (detect_coding, detect_coding_system): Handle utf-8-auto.
14234 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14235 (syms_of_coding): Fix setting up of Vcoding_category_table.
14236
142372008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14238
14239 * process.c (Faccept_process_output): If `millisec' is non-nil,
14240 `seconds' default to 0.
14241 (wait_reading_process_output): Also return non-nil if we read output
14242 from a non-running process.
14243
142442008-05-29 Jason Rumney <jasonr@gnu.org>
14245
14246 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14247 `raster' specified.
14248 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14249 in the uniscribe backend, but disallow any font that has no
14250 unicode subrange support.
14251
142522008-05-29 Juanma Barranquero <lekktu@gmail.com>
14253
14254 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14255 Fix typos in docstrings.
14256
142572008-05-29 Kenichi Handa <handa@m17n.org>
14258
14259 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14260 (Fx_family_fonts): Set frame correctly.
14261
142622008-05-28 Jason Rumney <jasonr@gnu.org>
14263
14264 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14265
142662008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14267
14268 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14269 calling build_annotations.
14270
142712008-05-28 Juanma Barranquero <lekktu@gmail.com>
14272
14273 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14274 (Fencode_coding_string):
14275 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14276 <latin-extra-code-table>: Fix typos in docstrings.
14277 (syms_of_coding) <coding-system-alist>: Doc fix.
14278 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14279
142802008-05-28 Kenichi Handa <handa@m17n.org>
14281
14282 * fontset.c (Ffont_info): Don't call font_close_object.
14283
14284 * font.c (font_parse_family_registry): Use Ffont_put to validate
14285 foundry and family.
14286 (font_delete_unmatched): Don't check spacing.
14287 (font_list_entities): Add spacing to the spec to list fonts.
14288
14289 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14290 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14291
14292 * coding.c (encode_coding_raw_text): Fix previous change.
14293 (encode_coding_object): When the dst_object is a buffer and is
14294 different from src_object, move gap to PT.
14295
142962008-05-27 Chong Yidong <cyd@stupidchicken.com>
14297
14298 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14299
143002008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14301
14302 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14303 all branches. Compute it differently.
14304
14305 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14306
143072008-05-27 Juanma Barranquero <lekktu@gmail.com>
14308
14309 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14310 into "else if () ... else ...".
14311
143122008-05-27 Jason Rumney <jasonr@gnu.org>
14313
14314 * w32font.c (w32font_open_internal): Determine if glyph indices
14315 are likely to work here.
14316
143172008-05-27 Chong Yidong <cyd@stupidchicken.com>
14318
14319 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14320 draw overlap glyphs with appropriate highlighting.
14321
143222008-05-27 Kenichi Handa <handa@m17n.org>
14323
14324 * xfont.c (xfont_open): Fix calculation of font->average_width.
14325
143262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14327
14328 * casefiddle.c (casify_object): Try to guess better whether the
14329 argument is a byte or a char.
14330
143312008-05-26 Andreas Schwab <schwab@suse.de>
14332
14333 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14334 Always send multiples of format size.
14335
14336 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14337
143382008-05-26 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14341 (compute_metrics): Don't set failure if we just cleared the cache.
14342 (w32_weight_table): Remove unused variable.
14343 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14344 backwards compatibility.
14345
143462008-05-25 Kenichi Handa <handa@m17n.org>
14347
14348 * w32term.c (x_draw_glyph_string):
14349 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14350
14351 * xfaces.c: Delete unused function prototypes.
14352 (xstrlwr, font_frame): Delete them.
14353 (clear_face_cache): Delete unused variable.
14354
14355 * xftfont.c (xftfont_open): Delete unused variable.
14356 If underline_thickness is not 1, adjust underline_position.
14357
14358 * ftxfont.c (ftxfont_open): Delete unused variable.
14359
14360 * fontset.c (face_for_char): Optimize for the case of no charset
14361 property.
14362
14363 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14364 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14365 (otf_open, font_otf_capability, generate_otf_features)
14366 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14367 Comment out by surrounding "#if 0" and "#endif" for the moment.
14368 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14369 (syms_of_font): Codes for accessing above commented out.
14370
143712008-05-24 Eli Zaretskii <eliz@gnu.org>
14372
14373 * w32proc.c: Include dispextern.h.
14374
14375 * w32.c: Include dispextern.h.
14376
143772008-05-23 Juanma Barranquero <lekktu@gmail.com>
14378
14379 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14380 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14381 Fix typos in docstrings.
14382
143832008-05-23 Jason Rumney <jasonr@gnu.org>
14384
14385 * xsmfns.c: Remove includes that are already included by config.h.
14386
143872008-05-23 Kenichi Handa <handa@m17n.org>
14388
14389 * charset.c (Qemacs, charset_emacs): New variables.
14390 (char_charset): Fix for non-Unicode characters.
14391 (syms_of_charset): Define charset_emacs.
14392
14393 * w32term.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 * xterm.c (x_draw_glyph_string): Be sure to update
14398 s->underline_thickness and s->underline_position. Be sure to draw
14399 underline within the current line area.
14400
14401 * fontset.c: Delete unused variables and add casting for char *
14402 throughout the file.
14403 (fontset_font): Try the fallback fonts of the current fontset
14404 before consulting the default fontset.
14405
14406 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14407
14408 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14409
144102008-05-22 Jason Rumney <jasonr@gnu.org>
14411
14412 * font.c: Don't include strings.h.
14413
14414 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14415
14416 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14417 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14418 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14419 to call xstrcasecmp.
14420
14421 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14422
14423 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14424
14425 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14426
14427 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14428
144292008-05-22 Kenichi Handa <handa@m17n.org>
14430
14431 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14432
14433 * font.c (font_prop_validate_style): Adjust for the format
14434 change of font_style_table.
14435
14436 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14437 two args.
14438
14439 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14440 two args.
14441
144422008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14443
14444 * minibuf.c (keys_of_minibuf): Delete.
14445 * lisp.h (keys_of_minibuf): Delete.
14446 * emacs.c (main): Don't call keys_of_minibuf.
14447
144482008-05-22 Kenichi Handa <handa@m17n.org>
14449
14450 * ftfont.c (ftfont_resolve_generic_family): Rename from
14451 ftfont_list_generic_family. Return a single family for each
14452 generic family.
14453 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14454 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14455 Call font_add_log.
14456 (ftfont_match): Call font_add_log.
14457
14458 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14459 (FONT_DEBUG): Define it.
14460 (font_add_log): Extern it.
14461 (font_assert): Rename from xassert.
14462
14463 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14464 (xfont_list_family): Call font_add_log.
14465 (xfont_match): Likewise.
14466 (memq_no_quit): Delete.
14467
14468 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14469 call of Ffont_xlfd_name.
14470
14471 * xfaces.c (struct table_entry, slant_table, weight_table)
14472 (swidth_table): Move to font.c.
14473
14474 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14475 xassert are changed to font_assert. Delete many unused variables.
14476 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14477 New variables.
14478 (struct table_entry): Move from xfaces.c and modified.
14479 (weight_table, slant_table, width_table): Move from xfaces.c and
14480 contents adjusted for the change of struct table_entry.
14481 (font_style_to_value, font_style_symbolic): Adjust for the
14482 format change of font_style_table.
14483 (font_parse_family_registry): Don't overwrite existing foundry and
14484 family of font_spec.
14485 (font_score): Fix calculation of diff for sizes.
14486 (font_sort_entites): Call font_add_log.
14487 (font_delete_unmatched): Return a newly created list.
14488 (font_list_entities): Fix previous change. Call font_add_log.
14489 (font_matching_entity, font_open_entity, font_close_entity):
14490 Call font_add_log.
14491 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14492 (Finternal_set_font_style_table): Delete.
14493 (BUILD_STYLE_TABLE): New macro.
14494 (build_style_table): New function.
14495 (Vfont_log, font_log_env_checked): New variables.
14496 (font_add_log): New function.
14497 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14498 Declare Lisp variables "font-weight-table", "font-slant-table",
14499 "font-width-table", and "font-log". Initialize font_style_table.
14500
145012008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14502
14503 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14504
145052008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14506 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14507
14508 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14509 (Vframe_alpha_lower_limit): New variable.
14510 (x_set_alpha): New function.
14511
14512 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14513
14514 * xfns.c (x-create-frame, Qalpha):
14515 Initialize the frame parameter `alpha'.
14516 * xterm.c (OPAQUE, OPACITY): New.
14517 (x_set_frame_alpha): New function.
14518 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14519
14520 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14521 * w32fns.c (w32_frame_parm_handlers): Likewise.
14522
145232008-05-20 Jason Rumney <jasonr@gnu.org>
14524
14525 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14526 truetype fonts to opentype list.
14527
145282008-05-20 Juanma Barranquero <lekktu@gmail.com>
14529
14530 * fontset.c (Ffontset_info): Doc fix.
14531 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14532 <ignore-relative-composition>: Fix typos in docstrings.
14533
14534 * font.c (syms-of-font) <font-encoding-alist>:
14535 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14536 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14537 (Ffont_otf_alternates): Doc fixes.
14538
145392008-05-20 Kenichi Handa <handa@m17n.org>
14540
14541 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14542 font.h through out the file.
14543 (FONT_DRIVERS): Rename from FONTOBJ.
14544 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14545 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14546
14547 * emacs.c (main): Call syms_of_font unconditionally.
14548
14549 * font.h (find_font_encoding): Extern it.
14550
14551 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14552 fontset.c.
194d44e7 14553 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14554 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14555 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14556 only when HAVE_WINDOW_SYSTEM is defined.
14557 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14558 when HAVE_WINDOW_SYSTEM is defined.
14559
14560 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14561 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14562
14563 * xfaces.c: Include font.h unconditionally.
14564 (merge_face_ref, merge_face_vectors)
14565 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14566
145672008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14568
14569 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14570 indirect_variable.
14571 * eval.c (lisp_indirect_variable): New fun.
14572 (Fuser_variable_p): Use it.
14573
145742008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14575
14576 * lisp.h (indirect_variable):
14577 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14578 Use Lisp_Symbol pointers rather than Lisp_Object.
14579 Adjust callers.
14580 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14581 To this end, change calling-convention.
14582
14583 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14584 if some non-hidden buffers are selected by string&pred.
14585
145862008-05-19 Chong Yidong <cyd@stupidchicken.com>
14587
14588 * process.c (wait_reading_process_output): Always check status
14589 when in batch mode.
14590
145912008-05-19 Kenichi Handa <handa@m17n.org>
14592
14593 * font.c (font_list_entities): Fix handling of cache.
14594 (font_matching_entity): Likewise.
14595
14596 * ftfont.c (cs_iso8859_1): Delete.
14597 (ft_face_cache): New variable.
14598 (struct ftfont_info): New member fc_charset_idx.
14599 (ftfont_build_basic_charsets): Delete.
14600 (fc_charset_table): New variable.
14601 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14602 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14603 Callers changed.
14604 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14605 (ftfont_spec_pattern): New argument fc_charset_idx.
14606 Check registry more rigidly. Change callers.
14607 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14608 change of :font-entity property of the font.
14609
14610 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14611 property of the font.
14612
146132008-05-18 Juanma Barranquero <lekktu@gmail.com>
14614
14615 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14616 (Funencodable_char_position, Fcheck_coding_systems_region)
14617 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14618 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14619 (Ffind_operation_coding_system, Fset_coding_system_priority)
14620 (Fcoding_system_eol_type): Doc fixes.
14621
146222008-05-17 Glenn Morris <rgm@gnu.org>
14623
14624 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14625
146262008-05-16 Eli Zaretskii <eliz@gnu.org>
14627
14628 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14629 and st_gid.
14630
14631 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14632 HAVE_WINDOW_SYSTEM is not defined.
14633
14634 * xfaces.c (merge_face_ref, merge_face_vectors)
14635 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14636 HAVE_WINDOW_SYSTEM is defined.
14637 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14638
146392008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14640
14641 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14642
146432008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14644
14645 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14646
146472008-05-15 Kenichi Handa <handa@m17n.org>
14648
14649 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14650 preference.
14651
146522008-05-15 Glenn Morris <rgm@gnu.org>
14653
14654 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14655
146562008-05-15 Chong Yidong <cyd@stupidchicken.com>
14657
14658 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14659 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14660
14661 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14662
146632008-05-15 Kenichi Handa <handa@m17n.org>
14664
14665 * ftfont.c (ftfont_list): Downcase family name to check generic
14666 families.
14667
14668 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14669 font-spec for QCfont value.
14670
14671 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14672 buffer. Check the return value of it.
14673
146742008-05-14 Jason Rumney <jasonr@gnu.org>
14675
14676 * w32term.c (w32_get_glyph_overhangs): Remove.
14677 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14678
146792008-05-14 Kenichi Handa <handa@m17n.org>
14680
14681 * font.c (font_prop_validate): Make nil a valid value.
14682 (font_clear_cache): Check if the cached vector of entities is nil
14683 or not.
14684
146852008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14686
14687 * emacs.c (main_thread): Conditionalize on
14688 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14689 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14690
14691 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14692 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14693 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14694
146952008-05-14 Kenichi Handa <handa@m17n.org>
14696
14697 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14698 has no corresponding coding system.
14699
147002008-05-14 Jason Rumney <jasonr@gnu.org>
14701
14702 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14703
14704 * w32font.h (w32font_open_internal): Update declaration.
14705
14706 * w32font.c (w32font_open_internal): Change last argument from
14707 w32font_info struct to font object. Fill in font object from
14708 font_entity. Get Outline metrics if possible. Use them to
14709 calculate underline position and thickness. Use xlfd name as name
14710 property. Don't set codepage.
14711 (w32font_open): Pass font_object to w32font_open_internal. Don't
14712 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14713 (w32font_draw): Use s->font.
14714 (clear_cached_metrics): Don't clear non-existent blocks.
14715
14716 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14717 font was not found.
14718 (x_draw_glyph_string): Use underline position and thickness from font.
14719
14720 * w32uniscribe.c (uniscribe_open): Pass font_object to
14721 w32font_open_internal.
14722
147232008-05-14 Kenichi Handa <handa@m17n.org>
14724
14725 These changes are to delete all legacy font-handling codes, and
14726 make Emacs use only font-backends.
14727
14728 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14729 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14730
14731 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14732
14733 * charset.h (Vcharset_non_preferred_head)
14734 (Vcurrent_iso639_language): Extern them.
14735
14736 * charset.c (Vcharset_non_preferred_head): New variable.
14737 (Vcurrent_iso639_language): New variable.
14738 (syms_of_charset): Declare it as a Lisp variable.
14739 (char_charset): Don't check non preferred charsets. As a last
14740 resort, return charset_unicode.
14741 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14742
14743 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14744 conditionals. Don't check enable_font_backend. Delete all codes
14745 used only when USE_FONT_BACKEND is not defined.
14746
14747 * dispextern.h (struct glyph_string): Change type of `font' to
14748 `struct font *'.
14749 (struct glyph_string): New member underline_position and
14750 underline_thickness.
14751 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14752 (struct face): Change type of `font' to `struct font *'. Remove
14753 members `font_name', `font_info_id'.
14754 (per_char_metric, encode_char): Delete externs.
14755 (calc_pixel_width_or_height): Adjust the prototype.
14756
14757 * emacs.c (enable_font_backend): Delete extern.
14758 (main): Don't set enable_font_backend. Don't check the command
14759 line argument "-disable-font-backend".
14760
14761 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14762 (enum font_property_index): New members FONT_DPI_INDEX,
14763 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14764 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14765 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14766 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14767 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14768 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14769 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14770 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14771 (struct font_spec, struct font_entity): New structs.
14772 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14773 (struct font): Many members from old "struct font_info" moved to
14774 here. Members font and entity deleted.
14775 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14776 the new font-related objects.
14777 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14778 (CHECK_FONT_GET_OBJECT): Likewise.
14779 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14780 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14781 (struct font_driver): New members case_sensitive anc check. Type
14782 of the member list and open changed.
14783 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14784 (font_symbolic_width, font_find_object, font_get_spec)
14785 (font_set_lface_from_name): Delete extern.
14786 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14787
14788 * font.c: Include <strings.h>.
14789 (enable_font_backend): Delete it.
14790 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14791 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14792 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14793 (null_string): Delete it.
14794 (null_vector): Make it static.
14795 (font_family_alist): Delete it.
14796 (Qnormal): Extern it.
14797 (QCextra, QClanguage): Delete it.
14798 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14799 (font_make_spec, font_make_entity, font_make_object)
14800 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14801 the string. Callers changed.
14802 (font_pixel_size): Adjusted for the format change of font-related
14803 objects.
14804 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14805 (font_style_to_value, font_style_symbolic): New function.
14806 (build_font_family_alist): Delete it.
14807 (font_registry_charsets): Use Fassoc_string instead of
14808 assq_no_quit.
14809 (font_prop_validate_symbol): Don't return null_string.
14810 (font_prop_validate_style): Adjusted for the change of
14811 style-related values in a font vector.
14812 (font_property_table): Delete entries for QClanguage and
14813 QCantialias, add entries for QCavgwidth.
14814 (get_font_prop_index): Delete the 2nd argument FROM.
14815 (font_prop_validate): Arguments changed.
14816 (font_put_extra): Adjusted for the change of font-related objects.
14817 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14818 (font_parse_fcname, font_unparse_fcname)
14819 (font_prepare_composition): Likewise.
14820 (font_parse_family_registry): Renamed from font_merge_old_spec.
14821 (otf_open): Delete the 1st arg entity.
14822 (font_otf_capability): Adjusted for the above change.
14823 (font_score): New arg alternate_families. Adjusted for the change
14824 of font-related objects.
14825 (font_sort_entites): New arg best_only.
14826 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14827 Delete them.
14828 (font_match_p): Check alternate families.
14829 (font_find_object): Delete it.
14830 (font_check_object): New function.
14831 (font_clear_cache): Adjusted for the change of font-related objects.
14832 (font_delete_unmatched): New arg.
14833 (font_list_entities): Call font_driver->list with a spec that
14834 doesn't specify style-related properties.
14835 (font_matching_entity): Arguments changed. Caller changed.
14836 (font_open_entity): Adjusted for the change of font-related objects.
14837 (font_close_object, font_has_char, font_encode_char)
14838 (font_get_name, font_get_spec): Likewise.
14839 (font_spec_from_name, font_clear_prop, font_update_lface):
14840 New functions.
14841 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14842 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14843 (font_at): Adjusted for the change of font-related objects.
14844 (font_range): New function.
14845 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14846 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14847 (Fcopy_font_spec, Fmerge_font_spec): New function.
14848 (Ffont_family_list): Renamed from list-families.
14849 (Finternal_set_font_style_table): Arguments changed.
14850 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14851 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14852 change of font-related objects.
14853 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14854
14855 * fontset.h (struct font_info): Delete it. Most members go to
14856 struct font.
14857 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14858 (enum FONT_SPEC_INDEX): Delete it.
14859 (font_info, list_fonts_func, load_font_func, query_font_func)
14860 (set_frame_fontset_func, find_ccl_program_func)
14861 (get_font_repertory_func, new_fontset_from_font_name): Delete
14862 externs.
14863 (fontset_from_font_name): Extern it.
14864 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14865 (FONT_INFO_FROM_FACE): Deleted.
14866 (face_for_font): Adjust prototype.
14867
14868 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14869 conditionals. Don't check enable_font_backend. Delete all codes
14870 used only when USE_FONT_BACKEND is not defined.
14871 (get_font_info_func, list_font_func, load_font_func)
14872 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14873 (get_font_repertory_func): Delete them.
14874 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14875 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14876 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14877 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14878 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14879 (fontset_compare_rfontdef): New function.
14880 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14881 rfont-defs by qsort. Adjusted for the change of font-group vector.
14882 (load_font_get_repertory): Deleted.
14883 (fontset_find_font): Use new macros to ref/set elements of
14884 font-def and rfont-def.
14885 (fontset_font): Fix the timing of remembering that no font for C.
14886 (free_face_fontset): Do nothing if the face has no fontset.
14887 (face_suitable_for_char_p): Use new macros to ref/set elements of
14888 rfont-def.
14889 (face_for_char): Likewise. Call face_for_char with font_object.
14890 (fs_load_font): Delete. Delete #pragma surrounding it.
14891 (fs_query_fontset): Use strcasecmp instead of strcmp.
14892 (generate_ascii_font_name): Adjusted for the format change of
14893 font-spec.
14894 (Fset_fontset_font): Likewise. Use new macros to set elements of
14895 font-def.
14896 (Fnew_fontset): Use font_unparse_xlfd to generate
14897 FONTSET_ASCII (fontset).
14898 (new_fontset_from_font_name): Deleted.
14899 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14900 a fontset is already created for the font. FIx updating of
14901 Vfontset_alias_alist.
14902 (fontset_ascii_font): Deleted.
14903 (Ffont_info): Adjusted for the format change of font-spec.
14904 (Finternal_char_font): Likewise.
14905 (Ffontset_info): Likewise.
14906 (syms_of_fontset): Don't check load_font_func.
14907
14908 * fns.c (internal_equal): Handle PREV_FONT.
14909
14910 * frame.h: Delete USE_FONT_BACKEND conditional.
14911
14912 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14913 conditionals. Don't check enable_font_backend. Delete all codes
14914 used only when USE_FONT_BACKEND is not defined.
14915 (x_set_font): Call x_new_font, not x_new_fontset2.
14916 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14917 already set for the frame.
14918
14919 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14920 a font-entity by font_make_entity. Use font_intern_prop instead
14921 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14922 font property. If a font is scalable, set avgwidth property to 0.
14923 Set font-entity property by font_put_extra.
14924 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14925 (ffont_driver): Adjusted for the change of struct font_driver.
14926 (ftfont_spec_pattern): New function.
14927 (ftfont_list): Return a list, not vector.
14928 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14929 (ftfont_list_family): Don't downcase names.
14930 (ftfont_free_entity): Deleted.
14931 (ftfont_open): Return a font-object. Adjusted for the change of
14932 struct font. Get underline_thickness and underline_position from
14933 font property. Don't update dpyinfo->smallest_font_height and
14934 dpyinfo->smallest_char_width.
14935 (ftfont_close): Don't free `struct font'.
14936 (ftfont_has_char): Adjusted for the format change of font-entity.
14937 (ftfont_encode_char, ftfont_text_extents): Likewise.
14938
14939 * ftxfont.c (ftxfont_list): Return a list, not vector.
14940 (ftxfont_open): Return a font-object. Adjusted for the change of
14941 struct font. Get underline_thickness and underline_position from
14942 font property. Don't update dpyinfo->smallest_font_height and
14943 dpyinfo->smallest_char_width.
14944 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14945 (ftxfont_draw): Adjusted for the change of struct font.
14946
14947 * image.c (image_ascent): Don't include "charset.h". Include
14948 "character.h" and "font.h".
14949
14950 * lisp.h (enum pvec_type): New member PREV_FONT.
14951 (Fassoc_string): EXFUN it.
14952
14953 * print.c: Include font.h.
14954 (print_object): Handle font-related objects.
14955
14956 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14957 conditionals. Don't check enable_font_backend. Delete all codes
14958 used only when USE_FONT_BACKEND is not defined.
14959 (handle_auto_composed_prop): Do nothing if it->f is not on a
14960 window system. Check how many following characters can be
14961 displayed by the same font.
14962 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14963 'struct font *'.
14964 (get_char_face_and_encoding): Assign the whole encoding task to
14965 the `encode-char' method of a font driver.
14966 (fill_composite_glyph_string): Adjusted for the change of `struct
14967 face' and `struct glyph_string'.
14968 (fill_glyph_string): Likewise.
14969 (get_per_char_metric): Arguments changed.
14970 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14971 and `struct glyph_string'.
14972 (produce_stretch_glyph, calc_line_height_property)
14973 (x_produce_glyphs): Likewise.
14974
14975 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14976 conditionals. Don't check enable_font_backend. Delete all codes
14977 used only when USE_FONT_BACKEND is not defined. Use
14978 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14979 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14980 (Qp): Extern them.
14981 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14982 Deleted.
14983 (struct font_name): Deleted.
14984 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14985 (compare_fonts_by_sort_order): New function.
14986 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14987 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14988 Deleted.
14989 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14990 compare_fonts_by_sort_order.
14991 (Fx_font_family_list): Call Ffont_family_list.
14992 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14993 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14994 (face_symbolic_slant, face_symbolic_swidth)
14995 (split_font_name_into_vector, build_font_name_from_vector)
14996 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14997 (font_rescale_ratio, split_font_name, build_font_name)
14998 (free_font_names, sort_fonts, x_face_list_fonts)
14999 (face_font_available_p, sorted_font_list, cmp_font_names)
15000 (font_list_1, concat_font_list, font_list, remove_duplicates):
15001 Deleted.
15002 (Fx_list_fonts): Use Ffont_list.
15003 (LFACE_AVGWIDTH): Deleted.
15004 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15005 by FONTP.
15006 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15007 (set_lface_from_font_name): Delete it.
15008 (set_lface_from_font): Renamed from
15009 set_lface_from_font_and_fontset. Caller changed. Don't set
15010 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15011 for face.
15012 (merge_face_vectors): Copy font-spec if necessary.
15013 Clear properties of the font-spec if necessary.
15014 (merge_face_ref): Clear properties of the font-spec if necessary.
15015 (Finternal_set_lisp_face_attribute): Likewise.
15016 (set_font_frame_param): Use font_load_for_lface to load a
15017 font-object, and call Fmodify_frame_parameters with it.
15018 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15019 font name by Ffont_xlfd_name.
15020 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15021 QCslant, and QCwidth.
15022 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15023 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15024 Compare fonts by EQ.
15025 (lookup_non_ascii_face): Deleted.
15026 (face_for_font): The 2nd argument changed.
15027 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15028 Check atomic font properties by case insensitive.
15029 (realize_non_ascii_face): Set face->overstrike correctly.
15030 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15031 (dump_realized_face): Get font name from
15032 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15033
15034 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15035 conditionals. Don't check enable_font_backend. Delete all codes
15036 used only when USE_FONT_BACKEND is not defined.
15037 (xic_create_xfontset): Original code deleted and renamed from
15038 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15039 (x_make_gc): Don't set GCFont in GCs.
15040 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15041 opened by "fixed".
15042 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15043 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15044 get_font_repertory_func.
15045
15046 * xfont.c: Include <stdlib.h> and "ccl.h".
15047 (struct xfont_info): New structure.
15048 (xfont_query_font): Deleted.
15049 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15050 moved from xterm.c.
15051 (xfont_driver): Adjusted for the change of struct font_driver.
15052 (compare_font_names): New function.
15053 (xfont_list_pattern): Sort font names case insensitively. Make
15054 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15055 (xfont_list): Return a list, not vector.
15056 (xfont_match): If the font doesn't have QCname property, generate
15057 a name from the other font properties.
15058 (xfont_open): Return a font-object. Adjusted for the change of
15059 struct font. Get underline_thickness and underline_position from
15060 font property. Don't update dpyinfo->smallest_font_height and
15061 dpyinfo->smallest_char_width.
15062 (xfont_close): Don't free struct font.
15063 (xfont_prepare_face): Adjusted for the change of struct font.
15064 (xfont_done_face): Deleted.
15065 (xfont_has_char): Adjusted for the change of struct font.
15066 (xfont_encode_char, xfont_draw): Likewise.
15067 (xfont_check): New function.
15068
15069 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15070 callback function.
15071 (xftfont_match): Adjusted for the format change of font-entity.
15072 (xftfont_open): Adjusted for the format change of font-entity and
15073 font-object. Adjusted for the change of struct font. Return a
15074 font-object. Don't update dpyinfo->smallest_font_height and
15075 dpyinfo->smallest_char_width.
15076 (xftfont_close): Block input while calling XftFontClose.
15077 (xftfont_prepare_face): Don't block input while calling
15078 xftfont_get_colors. Adjusted for the change of struct font.
15079 (xftfont_shape): Return value of error case fixed.
15080
15081 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15082
15083 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15084 conditionals.
15085 (FONT_WIDTH): Return (f)->max_width.
15086 (struct x_display_info): Delete member `font'.
15087 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15088 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15089 (struct x_output): Change type of `font' to `struct font *'.
15090
15091 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15092 conditionals. Don't check enable_font_backend. Delete all codes
15093 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15094 (x_per_char_metric, x_encode_char): Deleted.
15095 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15096 (x_compute_glyph_string_overhangs): Adjusted for the change of
15097 `struct face'.
15098 (x_draw_glyph_string_foreground)
15099 (x_draw_composite_glyph_string_foreground): Likewise.
15100 (x_draw_glyph_string): Likewise. Use font->underline_position and
15101 font->underline_thickness.
15102 (x_new_font): Renamed from x_new_fontset2.
15103 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15104 (x_check_font): Call `check' method of a font driver.
15105 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15106 (x_query_font, x_get_font_repertory): Deleted.
15107 (x_find_ccl_program): Renamed and moved to xfont.c.
15108 (x_redisplay_interface): Adjusted for the change of `struct
15109 redisplay_interface'.
15110
15111 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15112 conditionals. Don't check enable_font_backend. Delete all codes
15113 used only when USE_FONT_BACKEND is not defined. Surround non-used
15114 code by "#ifdef OLD_FONT" and "endif".
15115 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15116
15117 * w32font.h (struct w32font_info): New member.
15118 (FONT_COMPAT): New macro.
15119 (w32font_open_internal): Prototype adjusted.
15120
15121 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15122 OLD_FONT" and "endif".
15123
15124 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15125 conditionals. Don't check enable_font_backend. Delete all codes
15126 used only when USE_FONT_BACKEND is not defined.
15127 (w32font_open): Return a font-object. Make a font-object by
15128 font_make_object. Adjusted for the change of struct w32font_info.
15129 (w32font_close): Don't free struct font. Adjusted for the change
15130 of struct w32font_info.
15131 (w32font_encode_char, w32font_text_extents, w32font_draw):
15132 Adjusted for the change of struct w32font_info.
15133 (w32font_draw): Likewise.
15134 (w32font_list_internal): Return a list, not vector.
15135 (w32font_open_internal): Change the 4th arg to font-object.
15136 Adjusted for the change of struct w32font_info and font-object format.
15137 (add_font_name_to_list): Don't downcase names.
15138 (w32_enumfont_pattern_entity): Make a font-entity by
15139 font_make_entity. Adjusted for the format change of font-entity.
15140 Use FONT_SET_STYLE to set a style-related font property. If a
15141 font is scalable, set avgwidth property to 0. Set font-entity
15142 property by font_put_extra.
15143 (font_matches_spec): Adjusted for the format change of font-entity.
15144 (w32_weight_table, w32_decode_weight): New variables.
15145 (w32_encode_weight): New function.
15146 (fill_in_logfont): Adjusted for the format change of font-spec.
15147 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15148 weight value.
15149 (w32font_driver): Adjusted for the change of struct font_driver.
15150
15151 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15152 conditionals. Don't check enable_font_backend. Surround non-used
15153 code by "#ifdef OLD_FONT" and "endif".
15154 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15155 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15156
15157 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15158 conditionals. Don't check enable_font_backend. Delete all codes
15159 used only when USE_FONT_BACKEND is not defined. Surround non-used
15160 code by "#ifdef OLD_FONT" and "endif".
15161
15162 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15163 (uniscribe_open): Return value changed to font-object.
15164 Adjusted for the format change of font-object.
15165 (uniscribe_otf_capability): Adjusted for the change of struct font.
15166 (add_opentype_font_name_to_list): Don't downcase names.
15167 (uniscribe_font_driver): Adjusted for the change of struct
15168 font_driver.
15169
151702008-05-13 Chong Yidong <cyd@stupidchicken.com>
15171
15172 * dispnew.c (update_frame_1): Check if tty output is still valid
15173 before flushing it.
15174
151752008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15176
15177 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15178 to Gtk+ menus.
15179
151802008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15181
15182 * dired.c (file_name_completion): Tweak the code so as to always do it
15183 in a single pass. Tighten the scope of some variables.
15184
15185 * dired.c (Qdefault_directory): New var.
15186 (file_name_completion): Use it instead of Fexpand_file_name.
15187 (syms_of_dired): Initialize it.
15188
151892008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15190
15191 * fileio.c (double_dollars): Remove dead code.
15192
151932008-05-10 Eli Zaretskii <eliz@gnu.org>
15194
15195 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15196 Mention w32-get-true-file-attributes in doc string.
15197
15198 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15199
152002008-05-09 Glenn Morris <rgm@gnu.org>
15201
15202 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15203 2008-04-23.
15204
152052008-05-09 Eli Zaretskii <eliz@gnu.org>
15206
15207 Support for reporting owner and group of each file on MS-Windows:
15208 * dired.c (stat_uname, stat_gname): New functions, with special
15209 implementation for w32.
15210 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15211
15212 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15213 (dflt_group_name): New static variable.
15214 (dflt_group): Rename from the_group.
15215 (init_user_info): Init dflt_group fields. Get user's group name
15216 from LookupAccountSid.
15217 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15218 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15219 New initialization states.
15220 (globals_of_w32): Initialize them to zero. Initialize the default
15221 group name to "None".
15222 (GetFileSecurity_Name): New global var, the name of the function
15223 to call for GetFileSecurity.
15224 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15225 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15226 (get_file_security, get_security_descriptor_owner)
15227 (get_security_descriptor_group, is_valid_sid)
15228 (get_file_security_desc, get_rid, get_name_and_id)
15229 (get_file_owner_and_group): New functions.
15230 (stat): Use get_file_security_desc and get_file_owner_and_group to
15231 report the owner and primary group of each file. Don't ignore the
15232 high 32 bits of file's size, now that st_size is 64-bit wide.
15233 Fix test when to get true file attributes.
15234 (init_user_info): Use get_rid instead of equivalent inline code.
15235 (fstat): Don't ignore the high 32 bits of file's size.
15236
152372008-05-09 Chong Yidong <cyd@stupidchicken.com>
15238
15239 * image.c (png_load): Use correct bit-depth for setting background
15240 color.
15241
152422008-05-08 Eli Zaretskii <eliz@gnu.org>
15243
15244 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15245 epa-hook.elc.
15246
152472008-05-08 Juanma Barranquero <lekktu@gmail.com>
15248
15249 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15250
152512008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15252
15253 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15254 because the original parameters are in pure storage now.
15255 (mac_window): Remove unused params. Update callers.
15256
152572008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15258
15259 * lread.c (substitute_object_recurse): Use lower-level primitives.
15260 Don't signal errors when traversing sub-char-tables.
15261 Don't loop over all the possible characters when traversing char-tables.
15262
15263 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15264 just like we do in print.c.
15265
152662008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15267
15268 * minibuf.c (Ftry_completion): Remove code left over from when we used
15269 scmp instead of Fcompare_strings.
15270
152712008-05-04 Juanma Barranquero <lekktu@gmail.com>
15272
15273 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15274
152752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15276
15277 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15278 Create bitmap context in native byte order.
15279
15280 * macterm.c (XDrawLine)
15281 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15282 context in native byte order.
15283
152842008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15285
15286 * config.in: Regenerate.
15287
15288 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15289 New definitions for Image I/O support.
15290 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15291 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15292 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15293 (mac_data_provider_release_data, image_load_image_io)
15294 [USE_MAC_IMAGE_IO]: New functions.
15295 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15296 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15297 (init_image_func_pointer) [MAC_OSX]: Remove function.
15298 (image_load_quartz2d) [MAC_OSX]: Check availability of
15299 CGImageCreateWithPNGDataProvider at compile time.
15300 Use lowercase `false' for boolean constant.
15301 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15302 Use image_load_image_io.
15303 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15304 Don't check MyCGImageCreateWithPNGDataProvider.
15305 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15306 Don't call init_image_func_pointer.
15307
15308 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15309
15310 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15311 Make variable non-static.
15312 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15313 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15314
15315 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15316 (RED_FROM_ULONG): Mask off higher bits.
15317 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15318
15319 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15320 Include AvailabilityMacros.h.
15321 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15322 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15323
153242008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15325
15326 * chartab.c (Fset_char_table_range): If range is t, really set all
15327 chars to that value.
15328
153292008-05-03 Eli Zaretskii <eliz@gnu.org>
15330
15331 * dired.c (Ffile_attributes): Don't allow the device number become
15332 negative.
15333
153342008-05-02 Daiki Ueno <ueno@unixuser.org>
15335
15336 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15337
153382008-05-02 Juri Linkov <juri@jurta.org>
15339
15340 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15341 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15342 DEFAULT argument as a list of default values in docstrings.
15343
153442008-05-01 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15347
153482008-05-01 Martin Rudalics <rudalics@gmx.at>
15349
15350 * dispnew.c (change_frame_size_1): Preserve small windows when
15351 shrinking frames by calling set_window_height|width with third
15352 arg 2.
15353
15354 * window.h (struct window): Replace field too_small_ok by field
15355 resize_proportionally.
15356
15357 * window.c (make_window): Initialize resize_proportionally.
15358 (enlarge_window): Temporarily set resize_proportionally to make
15359 sure that shrink_windows does scale the window proportionally.
15360 (shrink_windows): When window has resize_proportionally set try
15361 to shrink it proportionally by stealing from other windows.
15362 (struct saved_window, Fset_window_configuration)
15363 (compare_window_configurations): Handle resize_proportionally.
15364 (WINDOW_TOTAL_SIZE): New macro.
15365 (window_min_size, shrink_windows, size_window): Use it.
15366 (check_min_window_sizes): Remove. Invalid values of
15367 window-min-height|width are handled by window_min_size_2 now.
15368 (size_window, Fsplit_window, enlarge_window)
15369 (adjust_window_trailing_edge, grow_mini_window): Don't call
15370 check_min_window_sizes.
15371 (window_min_size_2, window_min_size_1, window_min_size):
15372 New argument safe_p for retrieving "safe" minimum sizes.
15373 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15374 (adjust_window_trailing_edge, grow_mini_window):
15375 Adjust arguments of window_min_size... functions.
15376 (shrink_windows): Argument min_size removed. New argument
15377 safe_p allows shrinking windows to their safe minimum sizes.
15378 Calculate minimum size and decide whether a window shall be
15379 deleted for each window individually.
15380 (size_window): When nodelete_p equals 2, tell shrink_windows to
15381 delete windows only if their new minimum size is no more safe.
15382 (shrink_window_lowest_first): Call window_min_size_1 to make
15383 sure to preserve modeline of bottom-most window when resizing
15384 the minibuffer.
15385 (Fset_window_configuration, Fcurrent_window_configuration)
15386 (compare_window_configurations): Do not handle
15387 window-min-height|width any more.
15388 (syms_of_window): Clarify window-min-height|width doc-strings.
15389
153902008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15391
15392 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15393 some more. Copy some of the code from Ftry_completions.
15394 Remove special case code that dates back to initial revision when the
15395 slash was only added when necessary and that can't trigger nowadays.
15396
153972008-04-27 Kenichi Handa <handa@m17n.org>
15398
15399 * font.c (font_prop_validate): Signal `error' instead of `font'.
15400
154012008-04-29 Jason Rumney <jasonr@gnu.org>
15402
15403 * w32fns.c (Fw32_battery_status): New defun.
15404 (syms_of_w32fns): Defsubr it.
15405
154062008-04-28 Andreas Schwab <schwab@suse.de>
15407
15408 * dired.c (file_name_completion): Fix another mixing of encoded
15409 and decoded names.
15410
154112008-04-28 Juanma Barranquero <lekktu@gmail.com>
15412
15413 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15414
154152008-04-27 Juanma Barranquero <lekktu@gmail.com>
15416
15417 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15418
154192008-04-27 Andreas Schwab <schwab@suse.de>
15420
15421 * dired.c (file_name_completion): Fix inappropriate mixing of
15422 encoded and decoded names.
15423
15424 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15425
15426 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15427
154282008-04-26 Eli Zaretskii <eliz@gnu.org>
15429
15430 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15431 2008-03-31, it's not needed anymore with `struct stat' definition
15432 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15433 for the same reasons.
15434
154352008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15436
15437 * m/sparc.h: Additional redefinitions for GNU/Linux.
15438
154392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15440
15441 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15442 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15443 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15444 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15445 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15446 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15447 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15448 Likewise.
15449
15450 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15451 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15452 (mac_ax_number_of_characters): Add externs.
15453 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15454 [USE_MAC_TSM]: Likewise.
15455 (mac_handle_text_input_event) [MAC_OSX]:
15456 Handle kEventTextInputOffsetToPos for no active input area case.
15457 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15458 (mac_handle_document_access_event)
15459 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15460 (install_application_handler) [MAC_OSX]: Register handlers for
15461 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15462 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15463 Register mac_handle_document_access_event.
15464
15465 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15466 Make functions non-static.
15467
154682008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15469
15470 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15471 (read_file_name_completion_ignore_case, insert_default_directory)
15472 (Qdefault_directory): Move to minibuffer.el.
15473 (Fread_file_name): Call the new `read-file-name' instead.
15474
154752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15476
15477 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15478 Make function non-static.
15479 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15480 Remove function.
15481 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15482 Move to mactoolbox.c.
15483 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15484
15485 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15486 (mac_rect_make): New macro.
15487
15488 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15489 instead of float.
15490 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15491 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15492 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15493 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15494 CGRectMake.
15495 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15496 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15497 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15498 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15499 instead of WindowRef in argument type.
15500 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15501 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15502 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15503 instead of DISPLAY. All uses changed.
15504 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15505 (x_calc_absolute_position): Simplify so as not to use
15506 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15507
15508 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15509 instead of WindowRef in argument type.
15510 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15511 [TARGET_API_MAC_CARBON]: Remove externs.
15512 (create_apple_event, mac_event_parameters_to_lisp)
15513 [TARGET_API_MAC_CARBON]: Add externs.
15514
15515 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15516 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15517 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15518 is clicked.
15519 (x_activate_menubar): Remove extern for saved_menu_event_location.
15520 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15521 Move from mac.c.
15522
155232008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15524
15525 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15526 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15527
155282008-04-23 Jason Rumney <jasonr@gnu.org>
15529
15530 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15531 attributes only for local files.
15532
15533 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15534 default to Qlocal.
15535
155362008-04-22 Juri Linkov <juri@jurta.org>
15537
15538 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15539 read-buffer-to-switch instead of using the letter "B".
15540
155412008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15542
15543 * fileio.c (Qdefault_directory): New variable.
15544 (Fread_file_name): Use it to pass `dir' to the completion functions.
15545
155462008-04-20 Chong Yidong <cyd@stupidchicken.com>
15547
15548 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15549
155502008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15551
15552 * keyboard.c (Vpre_help_message): Remove.
15553 (show_help_echo): Remove default C code.
15554
15555 * dired.c (directory_files_internal, file_name_completion):
15556 Only call ENCODE_FILE if the string is indeed decoded.
15557
155582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15559
15560 * Makefile.in (TOOLKIT_DEFINES): Remove.
15561 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15562
155632008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15564
15565 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15566 (mactoolbox.o): New target.
15567
15568 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15569 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15570
15571 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15572 Use mac_set_frame_window_background instead of XSetWindowBackground.
15573 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15574 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15575 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15576 instead of SetWindowTitleWithCFString.
15577 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15578 Move function to mactoolbox.c.
15579 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15580 Use mac_set_window_modified instead of SetWindowModified.
15581 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15582 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15583 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15584 FrontNonFloatingWindow. Use mac_activate_window instead of
15585 ActivateWindow. Use mac_active_non_floating_window instead of
15586 ActiveNonFloatingWindow.
15587 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15588 Use mac_show_hourglass and mac_hide_hourglass.
15589 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15590 instead of GetGlobalMouse.
15591 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15592 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15593 Use mac_bring_window_to_front instead of BringToFront.
15594 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15595 mactoolbox.c.
15596 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15597 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15598 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15599 mactoolbox.c.
15600
15601 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15602 (XtPointer): Move typedef from macmenu.c.
15603 (enum button_type): Move enum from macmenu.c.
15604 (widget_value): Move typedef from macmenu.c.
15605 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15606 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15607 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15608 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15609 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15610 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15611 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15612 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15613 (Selection): Move typedef from macselect.c.
15614 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15615 macterm.c.
15616 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15617 (mac_is_window_collapsed, mac_bring_window_to_front)
15618 (mac_send_window_behind, mac_hide_window, mac_show_window)
15619 (mac_collapse_window, mac_front_non_floating_window)
15620 (mac_active_non_floating_window, mac_activate_window)
15621 (mac_move_window_structure, mac_move_window, mac_size_window)
15622 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15623
15624 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15625 (enum mac_menu_kind): Move enum to mactoolbox.c.
15626 (min_menu_id): Move variable to mactoolbox.c.
15627 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15628 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15629 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15630 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15631 [TARGET_API_MAC_CARBON]: Likewise.
15632 (XtPointer): Move typedef to macgui.h.
15633 (enum button_type): Move enum to macgui.h.
15634 (widget_value): Move typedef to macgui.h.
15635 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15636 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15637 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15638 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15639 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15640 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15641 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15642 (popup_activated_flag): Make variable non-static.
15643 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15644 (add_menu_item, fill_menu, dispose_menus):
15645 Move functions to mactoolbox.c.
15646 (restore_show_help_function, menu_target_item_handler)
15647 (install_menu_target_item_handler, mac_handle_dialog_event)
15648 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15649 [TARGET_API_MAC_CARBON]: Likewise.
15650 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15651 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15652 (find_and_call_menu_selection, name_is_separator): Make function
15653 non-static.
15654 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15655 to mactoolbox.c.
15656 (set_frame_menubar): Don't call install_menu_quit_handler.
15657 (menu_item_selection): New variable.
15658 (mac_menu_show): Use create_and_show_popup_menu.
15659 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15660 selection but set variable menu_item_selection. All uses changed.
15661 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15662 Call install_menu_quit_handler. Move to mactoolbox.c.
15663
15664 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15665 (Selection): Move typedef to macgui.h.
15666 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15667 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15668 Make variables non-static.
15669 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15670 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15671 Make functions non-static.
15672 (Vmac_service_selection) [MAC_OSX]: Likewise.
15673 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15674 (mac_valid_selection_target_p, mac_clear_selection)
15675 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15676 (mac_put_selection_value, mac_selection_has_target_p)
15677 (mac_get_selection_value, mac_get_selection_target_list)
15678 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15679 Move functions to mactoolbox.c.
15680 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15681 Likewise.
15682 (copy_scrap_flavor_data, mac_handle_service_event)
15683 (install_service_handler) [MAC_OSX]: Likewise.
15684 (syms_of_macselect) <Vmac_dnd_known_types>:
15685 Use mac_dnd_default_known_types.
15686
15687 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15688 Move to mactoolbox.c.
15689 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15690 (Fx_selection_owner_p): Add EXFUN.
15691 (install_window_handler, remove_window_handler, XSetWindowBackground):
15692 Remove externs.
15693 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15694 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15695 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15696 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15697 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15698 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15699 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15700 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15701 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15702 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15703 (mac_valid_selection_target_p, mac_clear_selection)
15704 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15705 (mac_put_selection_value, mac_selection_has_target_p)
15706 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15707 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15708 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15709 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15710 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15711 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15712 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15713 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15714 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15715
15716 * mactoolbox.c: New file.
15717
157182008-04-18 Jason Rumney <jasonr@gnu.org>
15719
15720 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15721
157222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15723
15724 * character.c (Fmultibyte_char_to_unibyte):
15725 Return latin1 chars unchanged.
15726
15727 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15728 relocated if it points to `name'.
15729
157302008-04-17 Kenichi Handa <handa@m17n.org>
15731
15732 * data.c (Faset): Allow setting a multibyte character in an
15733 ASCII-only unibyte string.
15734
15735 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15736
157372008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15738
15739 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15740 done in config.h.
15741
157422008-04-16 Juanma Barranquero <lekktu@gmail.com>
15743
15744 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15745 (Fchar_direction): Add usage in the docstring.
15746
157472008-04-15 Chong Yidong <cyd@stupidchicken.com>
15748
15749 * keyboard.c (read_key_sequence): Remove always-true checks.
15750
157512008-04-14 Jason Rumney <jasonr@gnu.org>
15752
15753 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15754 compatibility struct, for better underline positioning.
15755
157562008-04-13 David Hansen <david.hansen@gmx.net>
15757
15758 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15759 string.
15760
157612008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15762
15763 * m/hp800.h (XUINT, XSET): Remove.
15764
157652008-04-12 Juanma Barranquero <lekktu@gmail.com>
15766
15767 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15768 previous change.
15769
157702008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15771
15772 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15773 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15774
157752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15776
15777 * keymap.h (map_keymap_canonical): Declare.
15778 * xmenu.c (single_keymap_panes): Use it.
15779
157802008-04-11 Glenn Morris <rgm@gnu.org>
15781
15782 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15783 set the target's value to that of the alias.
15784
157852008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15786
15787 * term.c (set_tty_color_mode): Left over typo.
15788
157892008-04-10 Michael Albinus <michael.albinus@gmx.de>
15790
15791 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15792 only after check for file name handler functions. Signal, when
15793 native functionality is not supported.
15794 (syms_of_fileio): Declare it unconditionally.
15795
157962008-04-10 Jason Rumney <jasonr@gnu.org>
15797
15798 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15799 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15800
15801 * w32.c (logon_network_drive): Also logon to remote drives that
15802 are mapped to drive letters.
15803
158042008-04-10 Glenn Morris <rgm@gnu.org>
15805
15806 * xdisp.c (truncate-partial-width-windows): Doc fix.
15807
158082008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15809
15810 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15811 Move functions to minibuffer.el.
15812 (syms_of_fileio): Don't declare them.
15813
158142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15815
15816 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15817 (syms_of_minibuf): Remove its initialization.
15818
15819 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15820
158212008-04-09 Juanma Barranquero <lekktu@gmail.com>
15822
15823 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15824
158252008-04-09 Jason Rumney <jasonr@gnu.org>
15826
15827 * makefile.w32-in (distclean): Delete makefile too.
15828 (maintainer-clean): New target.
15829
15830 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15831
15832 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15833 for new font backend and composite cases.
15834
158352008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15836
15837 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15838 Most of the code moved to run_timers.
15839 (do_pending_atimers): Call run_timers.
15840 (run_timers): New function.
15841
15842 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15843 run atimers.
15844
15845 * process.c (wait_reading_process_output): The same as above.
15846
158472008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15848
15849 * minibuf.c (last_exact_completion): Remove variable.
15850 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15851 (complete_and_exit_1, complete_and_exit_2)
15852 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15853 (Fdisplay_completion_list, display_completion_list_1)
15854 (Fminibuffer_completion_help, Fself_insert_and_exit)
15855 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15856 minibuffer.el.
15857 (syms_of_minibuf): Remove corresponding initializations.
15858
15859 * keyboard.c (Qdeactivate_mark): New var.
15860 (command_loop_1): Use it to call `deactivate-mark'.
15861 (syms_of_keyboard): Initialize it.
15862
15863 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15864 to another frame.
15865 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15866 Don't call set_tty_color_mode.
15867 (store_frame_param): Reset previous_frame rather than call
15868 set_tty_color_mode.
15869 * term.c (set_tty_color_mode): Rewrite.
15870 * dispextern.h (set_tty_color_mode): New type.
15871 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15872
158732008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15874
15875 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15876 for generic chars, which do not exist any more in emacs-unicode.
15877
158782008-04-08 Michael Albinus <michael.albinus@gmx.de>
15879
15880 * coding.c (detect_coding_emacs_mule)
15881 (Ffind_operation_coding_system): Fix typo.
15882
158832008-04-08 Jason Rumney <jasonr@gnu.org>
15884
15885 * w32uniscribe.c (SNAME): Extract only symbol name.
15886
15887 * w32font.h (struct w32_metric_cache): New struct.
15888 (w32font_info): Use it.
15889 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15890 (CACHE_BLOCKSIZE): New constants.
15891
15892 * w32font.c (Qja, Qko, Qzh): New symbols.
15893 (syms_of_w32font): Initialise them.
15894 (font_matches_spec): Use them to filter by language.
15895 (recompute_cached_metrics): Remove function.
15896 (compute_metrics, clear_cached_metrics): New functions.
15897 (w32font_encode_char): Use them to manage metric cache.
15898 (w32font_text_extents): Cache metrics for all glyphs on demand.
15899 Delay converting glyph indices to WORD until needed.
15900 (w32font_open_internal): Initialize metric cache to empty.
15901 (registry_to_w32_charset): Charset should always be a symbol.
15902 (fill_in_logfont, list_all_matching_fonts): Family should
15903 always be a symbol.
15904
159052008-04-06 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15908 Give up if glyph indices not supported. Use uniscribe obtained
15909 ABC widths for individual metrics. Map glyph clusters back to
15910 characters using fClusterStart flag. Return number of glyphs
15911 produced, not chars processed.
15912 (uniscribe_shape): Map char at FROM to current glyph.
15913
159142008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15915
15916 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15917 Use SetMenuItemHierarchicalMenu.
15918
159192008-04-05 Jason Rumney <jasonr@gnu.org>
15920
15921 * image.c (pbm_load): Allow color values up to 65535.
15922 Throw an error if max_color_idx is outside the supported range.
15923 Report an error when image size is invalid.
15924 Read two bytes at a time when raw images have max_color_idx above 255.
15925
aac0c6e3
MR
159262008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15927
15928 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15929 append "CCL: Quitted" when the CCL program is quitted.
15930 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15931
15932 * ccl.h (struct ccl_program): New member quit_silently.
15933
159342008-04-05 Chong Yidong <cyd@stupidchicken.com>
15935
15936 * search.c (compile_pattern_1): Treat non-nil and non-string of
15937 search-spaces-regexp as nil.
15938
15939 * minibuf.c (Fassoc_string): Tweak docstring.
15940
159412008-04-05 Eli Zaretskii <eliz@gnu.org>
15942
15943 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15944 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15945 2008-03-14 to force inode be positive.
15946
15947 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15948 _S_* ones, since we now use our own sys/stat.h.
15949 (stat, fstat): Don't mangle the inode number.
15950 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15951
159522008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15953
15954 * frame.h (struct frame): Give one more bit to `visible' since we use
15955 values larger than 1 to indicate obscured frames on ttys.
15956
15957 * keymap.c (Qkeymap_canonicalize): New var.
15958 (Fmap_keymap_internal): New fun.
15959 (describe_map): Use keymap-canonicalize.
15960
15961 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15962 (Fundo_boundary): Set them.
15963 (syms_of_undo): Initialize them.
15964 (record_point): Use them instead of last_point_position*.
15965 (last_undo_buffer): Change type.
15966
159672008-04-04 Jason Rumney <jasonr@gnu.org>
15968
15969 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15970 (recompute_cached_metrics): Don't set ascent and descent per char.
15971
15972 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15973 (uniscribe_check_otf): Add GC protection before consing.
15974 Rearrange loop for counting features.
15975
159762008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15977
15978 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15979 buffer with byte-size of source buffer.
15980
159812008-04-03 Chong Yidong <cyd@stupidchicken.com>
15982
15983 * callint.c (Fcall_interactively): Handle temporary region even
15984 when shift-select-mode is off.
15985
159862008-04-03 Jason Rumney <jasonr@gnu.org>
15987
15988 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15989
159902008-04-03 Kenichi Handa <handa@m17n.org>
15991
15992 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15993 (CATEGORY_MASK_UTF_16): Likewise.
15994 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15995 binary file.
15996 (detect_coding): Add null-byte detection for a binary file.
15997 (detect_coding_system): Likewise.
15998
159992008-04-03 Jason Rumney <jasonr@gnu.org>
16000
16001 * w32uniscribe.c: New file.
16002
16003 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16004
16005 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16006
16007 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16008 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16009 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16010 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16011 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16012 (Qphonetic): New symbols.
16013 (syms_of_w32font): Initialize them.
16014 (font_supported_scripts): Use them.
16015 (w32font_list_family): List all charsets.
16016 (w32font_text_extents, recompute_cached_metrics): Fix metric
16017 calculations.
16018 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16019 Give opentype fonts their own format.
16020 (font_matches_spec): New arguments backend and logfont.
16021 Handle :otf spec for uniscribe backend.
16022 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16023 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16024
16025 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16026 font backend.
16027 (globals_of_w32fns): Initialize uniscribe font backend.
16028
16029 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16030 dependencies.
16031 (w32uniscribe.$(O)): New file to build.
16032 (FONT_OBJ): Include w32uniscribe.$(O).
16033 (LIBS): Add uniscribe libraries.
16034
16035 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16036
160372008-04-02 Chong Yidong <cyd@stupidchicken.com>
16038
16039 * callint.c (Vshift_select_mode): New var.
16040 (Finteractive): Document new ^ spec.
16041 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16042 is present.
16043
16044 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16045 (command_loop_1): Avoid running the direct display versions of
16046 forward-char and backward-char if shift-selection may occur.
16047 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16048 shift-translation takes place.
16049
16050 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16051 avoid clobbering by define-minor-mode.
16052
16053 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16054 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16055
16056 * syntax.c (Fforward_word): Add ^ interactive spec.
16057
16058 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16059 (Fscroll_right): Add ^ interactive spec.
16060
160612008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16062
16063 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16064
16065 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16066
16067 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16068
160692008-03-31 Juri Linkov <juri@jurta.org>
16070
16071 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16072
160732008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16074
16075 * gtkutil.c (xg_set_geometry): Fix indentation.
16076 (xg_resize_outer_widget): Remove.
16077 (x_wm_size_hint_off): Fix indentation.
16078 (xg_frame_set_char_size): Call flush_and_sync after
16079 gtk_window_resize.
16080 (x_wm_set_size_hint): Pass NULL as geometry window to
16081 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16082 Add menu bar and tool bar height to base height.
16083 (xg_update_frame_menubar, free_frame_menubar)
16084 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16085 (update_frame_tool_bar, free_frame_tool_bar):
16086 Change xg_resize_outer_widget to xg_frame_set_char_size.
16087
160882008-03-30 Michael Albinus <michael.albinus@gmx.de>
16089
16090 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16091 (Fdbus_call_method): New parameter TIMEOUT.
16092 (dbus-send-signal): Optimize UNGCPRO call.
16093
160942008-03-29 Juri Linkov <juri@jurta.org>
16095
16096 * window.c (Fdisplay_buffer): Move call to
16097 Vsplit_window_preferred_function out of conditions that check
16098 if window is eligible for vertical splitting.
16099 When Vsplit_window_preferred_function is non-nil, call it and use
16100 its non-nil return value as window. Otherwise, continue doing
16101 vertical splitting using Fsplit_window with arg horflag=nil.
16102 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16103 default value from `split-window' to nil.
16104
161052008-03-29 Juri Linkov <juri@jurta.org>
16106
16107 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16108 for interactive code letters 'b' and 'B'.
16109
161102008-03-29 Eli Zaretskii <eliz@gnu.org>
16111
16112 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16113 multibyte string.
16114
161152008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16116
16117 * keyboard.c (pending_funcalls): New var.
16118 (timer_check): Run it.
16119 (syms_of_keyboard): Initialize it.
16120 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16121 (Vdelete_terminal_functions): New vars.
16122 (syms_of_terminal): Initialize them.
16123 (Fdelete_terminal): Run delete-terminal-functions.
16124 * xdisp.c (safe_eval): Rewrite.
16125 (safe_call2): New fun.
16126 * frame.c (Qdelete_frame_functions): New var.
16127 (syms_of_frame): Initialize it.
16128 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16129 * lisp.h (safe_call2, pending_funcalls): Declare.
16130
161312008-03-28 Andreas Schwab <schwab@suse.de>
16132
16133 * indent.c (Fmove_to_column): Move declaration before statements.
16134
161352008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16136
16137 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16138 (struct frame): Use bit fields for boolean vars.
16139
16140 * process.c (server_accept_connection): Simplify naming.
16141 (emacs_get_tty_pgrp): Use SDATA.
16142
16143 * coding.c (decode_coding_object): Fix last change.
16144
161452008-03-27 Jason Rumney <jasonr@gnu.org>
16146
16147 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16148
161492008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16150
16151 * charset.c (Fdefine_charset_internal): Change the way of
16152 registering charsets in Vcharset_order_list.
16153 (syms_of_charset): Make the charset `eight-bit' supplementary.
16154
161552008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16156
16157 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16158 operations, to avoid having the difference between pointers
16159 overflow.
16160
161612008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16162
16163 * indent.c (check_display_width): New fun.
16164 (scan_for_column): Use it.
16165
16166 * data.c (syms_of_data): Mark most-positive-fixnum and
16167 most-negative-fixnum as constants.
16168
16169 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16170
16171 * indent.c (scan_for_column): Extract from current_column_1.
16172 Merge with the same code from Fmove_to_column.
16173 (current_column_1, Fmove_to_column): Use it.
16174
161752008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16176
16177 * keymap.c (map_keymap_internal): New fun.
16178 (map_keymap): Use it.
16179 (Fmap_keymap_internal): New fun.
16180 (Fmap_keymap): Remove left-out test from before make_save_value.
16181
16182 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16183
16184 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16185 Use XCAR/XCDR.
16186
16187 * process.h (struct Lisp_Process): Remove filter_multibyte.
16188 * process.c (QCfilter_multibyte): Remove.
16189 (setup_process_coding_systems): Don't use filter_multibyte.
16190 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16191 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16192 (Fset_process_filter_multibyte): Change the coding-system to
16193 approximate the previous behavior.
16194 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16195 coding-system.
16196
16197 * coding.c (decode_coding_object): When not decoding into a buffer,
16198 obey the coding system's preference of (uni|multi)byte.
16199
162002008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16201
16202 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16203 every char is changed and has a different byte-length.
16204 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16205 Fix int -> EMACS_INT.
16206
162072008-03-23 David Hansen <david.hansen@gmx.net>
16208
16209 * dbusbind.c (xd_read_message): Remove extra copying of message
16210 strings. Check for NULL `interface' or `member'.
16211
162122008-03-22 Eli Zaretskii <eliz@gnu.org>
16213
16214 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16215 cFileName a file name that includes `?' characters, use the 8+3
16216 alias in cAlternateFileName instead.
16217
162182008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16219
16220 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16221
162222008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16223
16224 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16225 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16226 work on current_buffer only instead (that was already the case
16227 for some of the code anyway).
16228 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16229 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16230 (SET_PT, SET_PT_BOTH): Adjust.
16231 * intervals.h (set_point, temp_set_point, set_point_both)
16232 (temp_set_point_both): Remove redundant declarations.
16233
162342008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16235
16236 * fileio.c (Finsert_file_contents):
16237 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16238 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16239 when buffer != current_buffer anyway.
16240
162412008-03-20 Andreas Schwab <schwab@suse.de>
16242
16243 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16244 as default.
16245
162462008-03-19 Jason Rumney <jasonr@gnu.org>
16247
16248 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16249 (syms_of_w32fns): Initialize them.
16250 (HOURGLASS_ID): New constant.
16251 (x_window_to_frame): Don't check hourglass_window.
16252 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16253 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16254 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16255 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16256 Only change the cursor if hourglass is not active.
16257 (Fx_create_frame): Initialize frame's current_cursor.
16258 (hourglass_atimer): Remove.
16259 (hourglass_started): New function.
16260 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16261 (show_hourglass): Adapt to w32, changing argument to frame.
16262
16263 * w32term.h (struct w32_output): Remove hourglass_window.
16264 Add current_cursor.
16265
16266 * eval.c (call_debugger, Fsignal):
16267 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16268 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16269 (Fexecute_extended_command, cancel_hourglass_unwind):
16270 * minibuf.c (read_minibuf):
16271 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16272
162732008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16274
16275 * window.c (run_funs): New fun.
16276 (run_window_configuration_change_hook): Use it to run the buffer-local
16277 and the global part of the hook.
16278
16279 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16280 (unwind_format_mode_line): Restore selected window.
16281 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16282
162832008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16284
16285 * editfns.c (Fchar_equal): Check they are valid characters.
16286
16287 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16288
162892008-03-17 Andreas Schwab <schwab@suse.de>
16290
16291 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16292 against a charset.
16293
16294 * lisp.h (Fbuffer_list): Declare.
16295
162962008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16297
aac0c6e3
MR
16298 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16299 handlebox_widget is != 0.
16300
163012008-03-16 Juri Linkov <juri@jurta.org>
16302
16303 * callint.c (Fcall_interactively): For interactive code letters
16304 'b' and 'B' put the buffer list into the list of default "future"
16305 values of the minibuffer.
16306
163072008-03-16 Andreas Schwab <schwab@suse.de>
16308
16309 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16310 modifiers.
16311
16312 * regex.c (re_match_2_internal): Correct matching of a charset
16313 against latin-1 characters.
16314
163152008-03-16 Kenichi Handa <handa@m17n.org>
16316
16317 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16318 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16319 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16320 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16321 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16322 CHAR_STRING_ADVANCE.
16323 (produce_chars): Fix for the case that the source and the
16324 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16325 instead of CHAR_STRING_ADVANCE.
16326 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16327 STRING_CHAR_ADVANCE.
16328
163292008-03-15 Andreas Schwab <schwab@suse.de>
16330
16331 * regex.c (re_match_2_internal): Correct matching of eight bit
16332 characters in unibyte strings.
16333
163342008-03-15 Martin Rudalics <rudalics@gmx.at>
16335
16336 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16337 at end of range when it coincides with the end of the buffer.
16338
163392008-03-14 Eli Zaretskii <eliz@gnu.org>
16340
16341 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16342
16343 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16344
163452008-03-14 Jason Rumney <jasonr@gnu.org>
16346
16347 * editfns.c (initial_tz): New variable.
16348 (syms_of_editfns): Initialize it.
16349 (Fset_time_zone_rule): Set it when first called.
16350 Use it when TZSTRING is nil.
16351
16352 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16353 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16354 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16355 (globals_of_w32fns): Initialize them.
16356 (compute_tip_xy): Use them to position tooltips.
16357
163582008-03-14 Glenn Morris <rgm@gnu.org>
16359
16360 * emacs.c (main): Revert previous change.
16361 (standard_args): Revert -internal-script back to -scriptload,
16362 and remove the long-option form.
16363
163642008-03-13 Glenn Morris <rgm@gnu.org>
16365
16366 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16367 Remove option -enable-font-backend.
16368
163692008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16370
16371 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16372
163732008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16374
16375 * xterm.c (x_connection_closed): For GTK: If this is the last
16376 terminal just exit without closing the display.
16377
163782008-03-11 Jason Rumney <jasonr@gnu.org>
16379
16380 * w32font.c (w32font_full_name): Use floor to round.
16381
f0131492 163822008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16383
16384 * sound.c (alsa_configure): Declare vol at beginning of block.
16385
16386 * fontset.c (Ffontset_info): Remove extra semicolon.
16387
163882008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16389
16390 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16391 size of resulting string.
16392
163932008-03-10 Jason Rumney <jasonr@gnu.org>
16394
16395 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16396
163972008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16398
16399 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16400 Don't pretend as if characters with display property haven't been
16401 consumed for string-replacing-string case.
16402
164032008-03-08 Kim F. Storm <storm@cua.dk>
16404
16405 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16406 (get_next_display_element, next_element_from_string)
16407 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16408
164092008-03-08 Andreas Schwab <schwab@suse.de>
16410
16411 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16412
164132008-03-06 Jason Rumney <jasonr@gnu.org>
16414
16415 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16416 when charset not specified. Only translate ANSI to unicode when
16417 font_type is truetype.
16418 (w32font_coverage_ok): New function.
16419 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16420
164212008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16422
16423 * lread.c (Fread_char): Resolve modifiers.
16424 (Fread_char_exclusive): Likewise.
16425
16426 * character.c (char_resolve_modifier_mask): New function.
16427 (char_string): Use char_resolve_modifier_mask.
16428 (Fchar_resolve_modifiers): New function.
16429 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16430 function.
16431
164322008-03-04 Jason Rumney <jasonr@gnu.org>
16433
16434 * makefile.w32-in: Always include w32font.c in the build.
16435 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16436
164372008-03-04 Andreas Schwab <schwab@suse.de>
16438
16439 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16440 (versionclean): Likewise.
16441
164422008-03-04 Juanma Barranquero <lekktu@gmail.com>
16443
16444 * .cvsignore: Add oo.
16445
164462008-03-03 Andreas Schwab <schwab@suse.de>
16447
16448 * coding.c (decode_coding_object): Inhibit gap shrinking while
16449 decoding in place.
16450
164512008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16452
16453 * w32term.c: Remove unused include "gnu.h".
16454 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16455
16456 * gnu.h: Rename to ...
16457 * emacs-icon.h: ... this.
16458 * xterm.c: Use emacs-icon.h instead of gnu.h.
16459 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16460
164612008-03-03 Juanma Barranquero <lekktu@gmail.com>
16462
16463 * w32font.c: Include math.h.
16464
164652008-03-03 Jason Rumney <jasonr@gnu.org>
16466
16467 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16468 Compute options separately.
16469 (w32font_open_internal): Set glyph_idx before caching metrics.
16470
16471 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16472 Define if system headers don't.
16473 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16474 (w32font_encode_char): Don't declare here.
16475
16476 * w32font.c (Quniscribe, QCformat): New symbols.
16477 (syms_of_w32font): Define them.
16478 (w32font_has_char): Indicate uncertainty.
16479 (w32font_encode_char): Encode as glyph point. Make static.
16480 (recompute_cached_metrics): New function.
16481 (w32font_open_internal): Use it. Set font to use glyph points
16482 initially. Set format based on type of font.
16483 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16484 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16485 on it. Set format based on information available here.
16486 (add_font_entity_to_list): Identify backend based on opentype_only.
16487
164882008-03-02 Andreas Schwab <schwab@suse.de>
16489
16490 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16491
16492 * coding.c (decode_coding_big5, produce_chars):
16493 Fix typos in last change.
16494
164952008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16496
16497 * gnu.h: New icon.
16498
164992008-03-02 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16502 `dos', don't decode '\r' if that is the last in the source.
16503 (decode_coding_utf_16, decode_coding_emacs_mule)
16504 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16505 (decode_coding_raw_text, decode_coding_charset): Likewise.
16506 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16507
165082008-03-01 Jason Rumney <jasonr@gnu.org>
16509
16510 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16511
165122008-03-01 Kim F. Storm <storm@cua.dk>
16513
16514 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16515
165162008-03-01 Jason Rumney <jasonr@gnu.org>
16517
16518 * w32font.c (w32font_full_name): New function.
16519 (w32font_open_internal): Use it.
16520
165212008-03-01 Kim F. Storm <storm@cua.dk>
16522
16523 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16524
165252008-03-01 Jason Rumney <jasonr@gnu.org>
16526
16527 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16528
165292008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16530
16531 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16532 xg_frame_resized when the event is for the edit widget.
16533
16534 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16535
16536 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16537 set_char_size.
16538 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16539 operations on widgets here. Just set frame size if needed.
16540 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16541 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16542 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16543 the whole frame.
16544 (xg_create_tool_bar): Move attachment of the tool bar to
16545 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16546 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16547
165482008-03-01 Jason Rumney <jasonr@gnu.org>
16549
16550 * w32fns.c (w32_msg_pump): Disable debug code.
16551
165522008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16553
16554 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16555
165562008-02-29 Chong Yidong <cyd@stupidchicken.com>
16557
16558 * xdisp.c (next_overlay_string): Don't set
16559 overlay_strings_at_end_processed_p if we're currently reading from
16560 a display string.
16561
165622008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16563
16564 * xdisp.c (get_overlay_strings_1): Fix typo.
16565
165662008-02-29 Chong Yidong <cyd@stupidchicken.com>
16567
16568 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16569
165702008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16571
16572 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16573
16574 * xdisp.c (display_mode_element): Cancel the previous change.
16575 (decode_mode_spec): Likewise.
16576 (handle_auto_composed_prop): Don't make composition if it->string
16577 is a string.
16578
165792008-02-27 Kim F. Storm <storm@cua.dk>
16580
16581 * lisp.h (GLYPH): Change type from int to struct with separate char
16582 and face_id members.
16583 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16584 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16585 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16586 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16587 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16588 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16589 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16590 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16591 handle new Lisp glyph code encoding, either an integer or a cons.
16592
16593 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16594 (GLYPH_ALIAS): Delete.
16595 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16596 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16597 (GLYPH_FROM_CHAR): Replace macro by ...
16598 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16599
16600 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16601 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16602 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16603 (GLYPH_INVALID_P): New macro.
16604 (spec_glyph_lookup_face): Update prototype.
16605
16606 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16607 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16608 new glyph code encoding.
16609 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16610 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16611
16612 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16613 Adapt to new glyph type and new glyph code encoding.
16614
16615 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16616
16617 * indent.c (current_column, current_column_1, Fmove_to_column)
16618 (compute_motion): Adapt to new glyph code encoding.
16619
16620 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16621
166222008-02-27 Chong Yidong <cyd@stupidchicken.com>
16623
16624 * process.c (wait_reading_process_output): Check for window
16625 changes caused by timers.
16626 Suggested by Johan Bockgård.
16627
166282008-02-27 Glenn Morris <rgm@gnu.org>
16629
16630 * emacs.c (USAGE1): Add `--disable-font-backend'.
16631
166322008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16633
16634 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16635 is made to the buffer.
16636
166372008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16638
16639 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16640 (face_at_string_position):
16641 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16642 (face_at_string_position):
16643 * xdisp.c (display_string, next_overlay_change):
16644 * buffer.h (overlays_at):
16645 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16646 Update callers.
16647
166482008-02-26 Chong Yidong <cyd@stupidchicken.com>
16649
16650 * editfns.c (Fformat): Doc fix.
16651
166522008-02-26 Juanma Barranquero <lekktu@gmail.com>
16653
16654 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16655 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16656 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16657
166582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16659
16660 * buffer.c (Fbuffer_swap_text): New function.
16661 (syms_of_buffer): Defsubr it.
16662
166632008-02-25 Chong Yidong <cyd@stupidchicken.com>
16664
16665 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16666
166672008-02-25 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32font.c (w32font_draw): Draw one character at a time when padding.
16670
166712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16672
16673 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16674 Handle a nil arg. Use run_window_configuration_change_hook.
16675 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16676 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16677 Use run_window_configuration_change_hook.
16678
166792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16680
16681 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16682 1-pixel width.
16683
166842008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16685
16686 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16687 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16688 if the glyph in the font is zero pixel with.
16689
16690 * dispextern.h (struct glyph_string): New member padding_p.
16691
16692 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16693
16694 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16695
16696 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16697
16698 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16699
16700 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16701
167022008-02-25 Jason Rumney <jasonr@gnu.org>
16703
16704 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16705
167062008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16707
16708 Allow fine-grained image-cache flushing.
16709 * dispextern.h (struct image): Add `dependencies' field.
16710 (clear_image_caches): Change arg to Lisp_Object.
16711 * image.c (make_image): Initialize `dependencies' field.
16712 (clear_image_cache): Change arg to allow fine-grained flushing.
16713 Perform the flush even if image-cache-eviction-delay is nil.
16714 (clear_image_caches): Change arg to Lisp_Object.
16715 (Fclear_image_cache): Expand meaning of the argument.
16716 (mark_image): Mark `dependencies' field.
16717 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16718 (lface_hash): Use XHASH rather than XFASTINT.
16719 (face_at_buffer_position): Fix int -> EMACS_INT position.
16720 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16721 (select_frame_for_redisplay): Remove code duplication.
16722 (redisplay_internal): Adapt arg to call to clear_image_caches.
16723
167242008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16725
16726 * s/vms4-0.h:
16727 * s/vms4-2.h:
16728 * s/vms4-4.h:
16729 * s/vms5-5.h: Remove, unused.
16730
16731 * s/irix5-2.h:
16732 * s/irix6-0.h:
16733 * s/riscos5.h:
16734 * s/mach-bsd4-3.h:
16735 * m/mips4.h: Remove files for obsolete systems.
16736
16737 * Makefile.in:
16738 * filelock.c:
16739 * unexmips.c:
16740 * m/hp9000s300.h:
16741 * m/iris4d.h:
16742 * s/aix3-1.h:
16743 * s/hpux.h:
16744 * s/msdos.h:
16745 * s/usg5-0.h:
16746 * s/usg5-2-2.h:
16747 * s/usg5-2.h:
16748 * s/usg5-3.h: Remove references to obsolete variables.
16749
16750 * s/irix5-0.h: Remove, move all the contents ...
16751 * s/irix6-5.h: ... here. Simplify.
16752 * config.in: Regenerate.
16753
167542008-02-24 Jason Rumney <jasonr@gnu.org>
16755
16756 * w32term.c (x_draw_glyph_string_background): Clear the background
16757 manually when cleartype is in use.
16758 (x_draw_glyph_string_foreground): Draw text transparently when
16759 cleartype is in use.
16760
16761 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16762 a font into it unless we have to.
16763
167642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16765
16766 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16767 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16768
aac0c6e3
MR
167692008-02-18 Jason Rumney <jasonr@gnu.org>
16770
16771 * w32fns.c (Fw32_shell_execute): Encode parameters.
16772
167732008-02-09 Eli Zaretskii <eliz@gnu.org>
16774
16775 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16776
167772008-02-05 Juanma Barranquero <lekktu@gmail.com>
16778
16779 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16780
167812008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16782
16783 * xterm.c (x_set_offset): Don't change the gravity if
16784 CHANGE_GRAVITY is -1.
16785
167862008-02-23 Chong Yidong <cyd@stupidchicken.com>
16787
16788 * fileio.c (auto_save_error_occurred): New var.
16789 (auto_save_error): Set it.
16790 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16791 error occurred.
16792
167932008-02-23 Eli Zaretskii <eliz@gnu.org>
16794
16795 * w32.c (globals_of_w32): Add initializations for
16796 g_b_init_get_sid_sub_authority and
16797 g_b_init_get_sid_sub_authority_count.
16798
167992008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16800
16801 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16802 (font_parse_xlfd): Use them for sanity check.
16803 (Finternal_set_font_style_table): Make sure the table is bijective.
16804
16805 Consolidate the image_cache to the terminal struct.
16806 * termhooks.h (P_): Remove redundant def.
16807 (struct terminal): New field `image_cache'.
16808 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16809 of FRAME_X_IMAGE_CACHE.
16810 * xterm.h (struct x_display_info): Remove image_cache field.
16811 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16812 * w32term.h (struct w32_display_info): Remove image_cache field.
16813 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16814 * macterm.h (struct mac_display_info): Remove image_cache field.
16815 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16816 * xterm.c (x_term_init):
16817 * w32term.c (w32_term_init):
16818 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16819 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16820 Remove declarations.
16821 (clear_image_caches, mark_image_cache): New declarations.
16822 * xfaces.c (clear_face_cache):
16823 * xdisp.c (redisplay_internal): Use clear_image_caches.
16824 * image.c (clear_image_cache): Don't check that a frame is on
16825 a window-system before checking if it shares the same cache.
16826 (clear_image_caches): New function.
16827 (Fclear_image_cache): Use it.
16828 (mark_image): Move from allo.c.
16829 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16830 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16831 (mark_object): Don't call mark_image_cache for frames.
16832 (mark_terminals): Call mark_image_cache.
16833
16834 * lisp.h (Fdelete_terminal): Declare.
16835
16836 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16837 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16838 wrong_type_argument.
16839
168402008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16841
16842 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16843 malayalam.el, and tamil.el. Add sinhala.el.
16844
168452008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16846
16847 * xterm.c (x_connection_closed): Consolidate identical tests.
16848 (x_delete_terminal): Don't crash if called via x_connection_closed.
16849
168502008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16851
16852 * xdisp.c (decode_mode_spec): New arg string.
16853 (display_mode_element): Adjust for the above change.
16854
168552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * callint.c (Fcall_interactively): Use AREF.
16858
168592008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16860
16861 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16862
168632008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16864
16865 * xfns.c (Fx_show_tip): Set string to " " if empty.
16866
168672008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16868
16869 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16870 with Qt.
16871
168722008-02-17 Kenichi Handa <handa@m17n.org>
16873
16874 * ftfont.c (ftfont_shape): Return Lispy number.
16875
16876 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16877 for GCs.
16878 (Finternal_set_font_selection_order): Call font_update_sort_order
16879 only when enable_font_backend is set.
16880 (realize_x_face): Set face->font_info to that of default face only
16881 when enable_font_backend is set.
16882
16883 * xdisp.c (handle_composition_prop): Set it->c to the fist
16884 character of the composed region.
16885 (fill_composite_glyph_string): Set base_face->font_info to
16886 s->font_info. Get a face for ascii from base_face->ascii_face.
16887 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16888 with a face already decided.
16889 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16890 non-negative.
16891 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16892 call font_prepare_composition unconditionally.
16893
16894 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16895
16896 * xterm.h (struct x_display_info): New member font.
16897
16898 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16899 (x_set_mouse_face_gc, x_new_font): Likewise.
16900 (x_term_init): Setup display_info->font.
16901 (x_delete_terminal): Free display_info->font.
16902
16903 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16904
16905 * ftxfont.c (ftxfont_default_fid): Delete it.
16906 (ftxfont_open): Set xfont->fid to 0.
16907 (ftxfont_end_for_frame): Clear data specific to the frame and the
16908 font-driver.
16909
16910 * xftfont.c (xftfont_default_fid): Delete it.
16911 (xftfont_open): Set xfont->fid to 0.
16912
16913 * fontset.c (FONTSET_OBJLIST): New macro.
16914 (fontset_find_font): Update font-object list of the fontset.
16915 (free_realized_fontset): New function.
16916 (free_face_fontset): Call free_realized_fontset.
16917 (Ffont_info): Call font_close_object only when enable_font_backend
16918 is set.
16919
16920 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16921 [HAVE_NTGUI]: Include w32term.h.
16922 [MAC_OS]: Include macterm.ch.
16923 (font_otf_ValueRecord): Use make_number.
16924 (font_finish_cache): Fix handling of reference count.
16925 (font_clear_cache): Update num_fonts.
16926 (font_open_entity): Update smallest_char_width and
16927 smallest_font_height of the frame.
16928 (font_close_object): Update num_fonts.
16929 (Fclear_font_cache): Fix finding the target cache data.
16930
169312008-02-16 Glenn Morris <rgm@gnu.org>
16932
16933 * fontset.c (Finternal_char_font): Fix compilation warning.
16934
169352008-02-16 Eli Zaretskii <eliz@gnu.org>
16936
16937 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16938 instead of char arrays. Enlarge the size of array passed to
16939 get_token_information.
16940
16941 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16942 warnings.
16943
169442008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16945
16946 * .gdbinit: Don't set `args', it breaks gdb --args.
16947
169482008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16949
16950 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16951 within a narrowed buffer.
16952
169532008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16954
16955 * coding.c (decode_coding_object, encode_coding_object):
16956 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16957
169582008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16959
16960 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16961 hardcoding 1.
16962 (detect_coding_system):
16963 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16964 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16965 * insdel.c (insert_from_gap):
16966 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16967 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16968 (string_to_multibyte):
16969 * character.c (chars_in_text, multibyte_chars_in_text):
16970 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16971
16972 * character.h (FETCH_STRING_CHAR_ADVANCE)
16973 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16974 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16975 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16976
16977 * casefiddle.c (casify_region): Only call after-change and composition
16978 functions on the part of the region that was changed.
16979
16980 * keyboard.c (read_avail_input):
16981 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16982
169832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16984
16985 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16986 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16987
169882008-02-11 Juanma Barranquero <lekktu@gmail.com>
16989
16990 * w32menu.c (push_submenu_start, push_submenu_end)
16991 (push_left_right_boundary, push_menu_pane, push_menu_item):
16992 * keyboard.c (read_key_sequence): Don't pass args with side effects
16993 to AREF, it fails when compiling with -DENABLE_CHECKING.
16994
169952008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16996
16997 * Makefile.in (${lispsource}international/charprop.el):
16998 Delete this target.
16999
17000 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17001 emacs-unicode-2.
17002
170032008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17004
17005 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17006
170072008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17008
17009 * frame.c (Qnoelisp): New symbol.
17010 (syms_of_frame): Initialize it.
17011 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17012 harmless Elisp code, from a strong `force' from x_connection_closed.
17013 * frame.h (Qnoelisp): Declare.
17014 * xterm.c (x_connection_closed): Pass `noelisp'.
17015
17016 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17017 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17018 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17019 rather than `int' for the type of `type'.
17020
170212008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17022
17023 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17024
17025 * Makefile.in (GNUC): Remove support for gcc-1.x.
17026
170272008-02-10 Richard Stallman <rms@gnu.org>
17028
17029 * lisp.h (ASET): Use AREF, not ASLOT.
17030
170312008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17032
17033 * lisp.h (ASET): Check bounds.
17034
170352008-02-10 Glenn Morris <rgm@gnu.org>
17036
17037 * buffer.c (mode-name): Doc fix.
17038
170392008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17040
17041 * Makefile.in:
17042 * emacs.c:
17043 * gmalloc.c:
17044 * keyboard.c:
17045 * lisp.h:
17046 * m/ibm370aix.h:
17047 * process.c:
17048 * regex.c:
17049 * s/hpux.h:
17050 * sysdep.c:
17051 * sysselect.h:
17052 * systty.h:
17053 * unexec.c:
17054 * w32term.c:
17055 * xsmfns.c:
17056 * xterm.c: Remove code that deals with obsolete variables.
17057
17058 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17059
17060 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17061 nothing else needs it anymore.
17062
170632008-02-09 Eli Zaretskii <eliz@gnu.org>
17064
17065 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17066 instead of unibyte_char_to_multibyte.
17067
170682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17069
17070 * s/gnu-linux.h: Remove commented out code.
17071
17072 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17073
17074 * Makefile.in: Update what RMS says about using autoconf.
17075 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17076 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17077 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17078 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17079
170802008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17081
17082 * keymap.c (Fkey_description): Move side effect outside of macro call.
17083
17084 * xfaces.c (Finternal_make_lisp_face):
17085 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17086
17087 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17088 (syms_of_fontset): Use ASET.
17089
17090 * fns.c (concat): Move side effect outside of macro call.
17091 (hash_clear): Use ASET.
17092
170932008-02-08 Richard Stallman <rms@gnu.org>
17094
17095 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17096 If FORCE, and frame has a surrogate minibuffer for another frame,
17097 delete the other frame first.
17098
170992008-02-07 Timo Savola <timo.savola@iki.fi>
17100
17101 * xterm.c (x_detect_focus_change): Handle embed client message.
17102 (handle_one_xevent): Ditto.
17103 (handle_one_xevent): If embedded and we get a button press/release,
17104 request focus.
17105 (xembed_set_info, xembed_send_message): New functions.
17106 (x_make_frame_visible): Call xembed_set_info if embedded.
17107 (x_make_frame_invisible): Call xembed_set_info if embedded.
17108 (x_term_init): Initialize Xatom_XEMBED.
17109 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17110 (x_iconify_frame): Ditto.
17111
17112 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17113 (enum xembed_info, enum xembed_message, enum xembed_focus)
17114 (enum xembed_modifier, enum xembed_accelerator): New.
17115 (xembed_set_info, xembed_send_message): Declare.
17116 (FRAME_X_EMBEDDED_P): New.
17117
17118 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17119 gtk_plug_new.
17120
17121 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17122 window ID of a frame.
17123 (x_window): Reparent frame if embedded.
17124 (Fx_create_frame): Don't set border width if embedded.
17125
17126 * emacs.c (USAGE3): Add --parent-id.
17127 (standard_args): Ditto.
17128
171292008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17130
17131 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17132
171332008-02-07 Jim Meyering <meyering@redhat.com>
17134
17135 Use "do...while (0)", not "if (1)...else" in macro definitions.
17136 The latter provokes a warning from gcc about the empty else, when
17137 followed by ";". Also, without that trailing semicolon, it would
17138 silently swallow up any following statement.
17139 * syntax.h (SETUP_SYNTAX_TABLE)
17140 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17141 * buffer.h (DECODE_POSITION): Likewise.
17142 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17143 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17144 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17145 (FETCH_CHAR_ADVANCE): Likewise.
17146 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17147
171482008-02-07 Jim Meyering <meyering@redhat.com>
17149
17150 * lread.c [lint]: Don't include <sys/inode.h>.
17151
171522008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17153
17154 * xselect.c (x_handle_dnd_message):
17155 * xmenu.c (digest_single_submenu, xmenu_show):
17156 * xdisp.c (with_echo_area_buffer_unwind_data)
17157 (format_mode_line_unwind_data, unwind_format_mode_line)
17158 (display_menu_bar):
17159 * eval.c (Ffetch_bytecode):
17160 * doc.c (store_function_docstring):
17161 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17162 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17163 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17164
171652008-02-07 Kenichi Handa <handa@m17n.org>
17166
17167 * ftxfont.c (ftxfont_open): Don't set
17168 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17169
17170 * ftfont.c (ftfont_open): Fix previous change.
17171
171722008-02-06 Jason Rumney <jasonr@gnu.org>
17173
17174 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17175 Use cached metrics for ASCII characters.
17176 (w32font_open_internal): Don't set font's owning_frame.
17177 Cache metrics for ASCII characters.
17178
17179 * w32font.h (struct w32font_info): Add ascii_metrics.
17180 Remove owning_frame.
17181
171822008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17183
17184 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17185 to negative value.
17186
17187 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17188
17189 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17190
17191 * charset.c (syms_of_charset): Set QCtest and Qeq.
17192
171932008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17194
17195 * process.c (Fstart_process):
17196 * callproc.c (Fcall_process): Handle the case where
17197 Funhandled_file_name_directory returns nil.
17198
17199 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17200 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17201 * font.c (check_gstring): Use them and AREF to access the vector before
17202 we know it's really a gstring.
17203 (Ffont_shape_text): Fix typo.
46e722a9 17204 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17205
17206 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17207 Declare.
17208
17209 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17210
172112008-02-05 Jason Rumney <jasonr@gnu.org>
17212
17213 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17214 Set smallest_font_height and smallest_char_width in display info.
17215
172162008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17217
17218 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17219
172202008-02-05 Miles Bader <miles@gnu.org>
17221
17222 * xfaces.c (get_lface_attributes, merge_named_face)
17223 (lookup_named_face, lookup_derived_face, realize_named_face):
17224 Revert 2008-02-01 change by cyd@stupidchicken.com.
17225
172262008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17227
17228 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17229 fallback fonts.
17230 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17231
172322008-02-04 Jason Rumney <jasonr@gnu.org>
17233
17234 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17235 set full_name.
17236 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17237
172382008-02-03 Jason Rumney <jasonr@gnu.org>
17239
17240 * makefile.w32-in (OBJ1): Include font.o here.
17241 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17242
172432008-02-02 Jason Rumney <jasonr@gnu.org>
17244
17245 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17246
172472008-02-01 Jason Rumney <jasonr@gnu.org>
17248
17249 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17250
17251 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17252
172532008-02-01 Andreas Schwab <schwab@suse.de>
17254
17255 * Makefile.in (shortlisp, lisp): Update for rename of
17256 ../lisp/language/myanmar.el.
17257
172582008-02-01 Chong Yidong <cyd@stupidchicken.com>
17259
17260 * xfaces.c (get_lface_attributes): Delete function.
17261 (merge_named_face, lookup_named_face, lookup_derived_face)
17262 (realize_named_face): Call lface_from_face_name directly, and use
17263 the fact that merge_face_vectors does not alter its FROM argument.
17264
172652008-02-01 Jason Rumney <jasonr@gnu.org>
17266
17267 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17268 input in the default locale. Handle non-Unicode multibyte input.
17269
172702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17271
17272 * fontset.c (reorder_font_vector): Exclude nil elements from the
17273 font group. Don't try multiple fonts.
17274 (fontset_font): Adjust for the above change.
17275 (Finternal_char_font): Return nil if the found font doesn't
17276 contain the character ch.
17277
17278 * Makefile.in (lisp, shortlisp): Add cham.el.
17279
172802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17281
17282 * font.h (FONTP): Make it return 1 also for a font-object.
17283
17284 * .gdbinit (xfontset): New function.
17285
17286 * font.c (font_find_for_lface): Check if the character C is
17287 supported or not only for the first font.
17288
17289 * fontset.c (reorder_font_vector): Fix typo.
17290 (fontset_find_font): Don't add a font-spec specifying a script.
17291 Use 0 (not Qt) for the indication of empty font-group. Change the
17292 format of RFONT-DEF. Return Qt if no font in the font-group
17293 support the character.
17294 (fontset_font): Adjust for the above change. If no font was
17295 found the character, remember that.
17296 (face_for_char): Adjust for the change of RFONT-DEF.
17297 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17298 no font for the target.
17299 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17300
173012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17302
17303 * font.c (font_load_for_face): Handle the case that the font in
17304 face->lface is a string.
17305
173062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17307
17308 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17309
173102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17311
17312 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17313 Fix previous change. If the frame is not on a window system,
17314 signal an error.
17315
173162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17317
17318 * coding.c (decode_coding_object, encode_coding_object): Adjust
17319 marker positions after conversion.
17320
17321 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17322
173232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17324
17325 * font.c (font_find_for_lface): Fix the handling of the return
17326 value of font_has_char.
17327 (Ffont_shape_text): Fix previous change.
17328
17329 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17330 (fontset_ref_and_range): Delete it.
17331 (fontset_find_font): Call char_table_ref_and_range instead of
17332 FONTSET_REF_AND_RANGE.
17333 (make_fontset): Don't setup font groups of Latin here.
17334 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17335 (new_fontset_from_font): Make the specified font the default for
17336 all Latin characters.
17337
173382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17339
17340 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17341 is on a window system before accessing the fontset of the frame.
17342
173432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17344
17345 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17346
17347 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17348 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17349
17350 * font.c (Ffont_shape_text): If the font driver doesn't have a
17351 shaper function, make zero-width glyphs to have at least one-pixel
17352 width. Fix setting of `to' field of glyphs.
17353
173542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17355
17356 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17357 glyphs.
17358
17359 * font.h (struct font_driver): Improve docstring of member `shape'.
17360
173612008-02-01 Kenichi Handa <handa@m17n.org>
17362
17363 * composite.c (syms_of_composite): Fix docstring of
17364 auto-composition-function.
17365
17366 * font.h (LGLYPH_SIZE): New macro.
17367
17368 * font.c (Ffont_fill_gstring): Stop filling when a character not
17369 supported by the font is found.
17370 (Ffont_shape_text): When a shape callback function returns nil,
17371 try at most two more times with larger gstring.
17372 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17373
17374 * xdisp.c (handle_auto_composed_prop): Change the argument to
17375 auto-composition-function.
17376
17377 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17378 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17379 Lispy glyph and store it in the lgstring.
17380
17381 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17382
17383 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17384
173852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17386
17387 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17388
17389 * fontset.c (Vfont_encoding_charset_alist): New variable.
17390 (syms_of_fontset): DEFVAR it.
17391 (reorder_font_vector, fontset_find_font): Optimize for the case of
17392 no need of reordering.
17393 (face_for_char): Map the charset property by
17394 Vfont_encoding_charset_alist.
17395
173962008-02-01 Jason Rumney <jasonr@gnu.org>
17397
17398 * w32font.c (logfonts_match): Don't check adstyle here.
17399 (font_matches_spec): Check here against physical font instead.
17400 (add_font_entity_to_list): Avoid some substitutions.
17401
17402 * font.c (font_parse_fcname): Default weight and slant to normal.
17403 (font_score): Prefer normal fonts if weight or slant unspecified.
17404 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17405 match freetype scores.
17406
174072008-02-01 Jason Rumney <jasonr@gnu.org>
17408
17409 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17410 font, as it may have been deleted.
17411 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17412 most common hyphenless variation.
17413 (logfonts_match): Check generic family.
17414 (font_matches_spec): Don't check generic family here.
17415 (fill_in_logfont): Set generic family based on adstyle.
17416
17417 * w32font.h (w32font_get_cache): Update declaration.
17418
174192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17420
17421 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17422
17423 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17424 If none of the new drivers are available, call font_update_drivers
17425 with the old drivers.
17426
17427 * w32font.c (w32font_get_cache): Adjust the argument type.
17428
17429 * xfont.c (xfont_get_cache): Adjust the argument type.
17430
17431 * font.h (struct font_driver): Change argument type of get_cache.
17432
17433 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17434
17435 * font.c (Ffont_get): Fix arguments to Fassoc.
17436 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17437 (font_clear_cache): New function.
17438 (font_list_entities, font_matching_entity): Use font_get_cache.
17439 (font_update_drivers): Call font_clear_cache when finishing a driver.
17440
17441 * fontset.c (fontset_find_font): Fix previous change.
17442
174432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17444
17445 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17446 dpyinfo->font_table.
17447 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17448 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17449
17450 * font.c (font_at): Handle the case that the arg C is negative.
17451 Handle the unibyte case.
17452 (Ffont_at): Call font_at with the arg C -1.
17453
17454 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17455 the position here, and call font_at with the arg C -1.
17456 Don't check the range of the existing composition at the point.
17457
174582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17459
17460 * fontset.c (fontset_add): New args charset_id and family.
17461 Change caller.
17462 (load_font_get_repertory, fontset_find_font): Assume that
17463 font_spec is always a font-spec object.
17464 (Fset_fontset_font): Always store a font-spec object in a fontset.
17465
17466 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17467 instead of get_property_and_range.
17468
174692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17470
17471 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17472 (xftfont_open): Don't keep locking face.
17473 (xftfont_close): Don't unlock face.
17474 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17475
17476 * fontset.c (fontset_find_font): Don't prefer a font of
17477 supplementary charset.
17478
174792008-02-01 Kenichi Handa <handa@m17n.org>
17480
17481 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17482 script, langsys_tag to langsys, new member script.
17483 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17484 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17485 listing to the script specified in that property. Fix arg to
17486 OTF_check_features.
17487
174882008-02-01 Jason Rumney <jasonr@gnu.org>
17489
17490 * w32font.h: New file.
17491
17492 * w32font.c: Include it.
17493 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17494 (w32font_open): Set owning_frame.
17495 (w32font_text_extents): Use owning_frame.
17496 (struct font_callback_data): Add opentype_only field.
17497 (add_font_entity_to_list): Use it to filter fonts.
17498 Don't check against full name.
17499 (w32font_list_internal): New function.
17500 (w32font_list): Use it.
17501 (w32font_match_internal): New function.
17502 (w32font_match): Use it.
17503 (w32font_open_internal): New function.
17504 (w32font_open): Use it.
17505 (w32font_get_cache, w32font_close, w32font_has_char)
17506 (w32font_encode_char, w32font_text_extents, w32font_draw):
17507 Make non-static.
17508
17509 * makefile.w32-in (w32font.o): Depend on w32font.h.
17510
175112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17512
17513 * charset.c (Fdefine_charset_internal): Record a supplementary
17514 charset at the tail of Vcharset_order_list.
17515
17516 * font.c (Ffont_shape_text): Fix the return value.
17517
17518 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17519
17520 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17521
175222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17523
17524 * ftfont.c (struct OpenTypeSpec): New struct.
17525 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17526 (ftfont_get_open_type_spec): New function.
17527 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17528
17529 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17530
175312008-02-01 Jason Rumney <jasonr@gnu.org>
17532
17533 * w32font.c (add_font_entity_to_list): Compare only the beginning
17534 of full name.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17539 Never return HANDLED_RECOMPUTE_PROPS.
17540
175412008-02-01 Kenichi Handa <handa@m17n.org>
17542
17543 * font.c (font_gstring_produce): Delete it.
17544
17545 * composite.h (COMPOSITION_METHOD):
17546 Handle COMPOSITION_WITH_GLYPH_STRING.
17547
175482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17549
17550 * xfont.c (Qx): Delete.
17551 (syms_of_xfont): Don't initialize Qx.
17552
17553 * composite.h (enum composition_method):
17554 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17555
175562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17557
17558 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17559 (choose_face_font): Accept new form of font-spec.
17560
17561 * frame.h (font_driver_list): Declare it unconditionally.
17562 (struct frame): Define members font_driver_list and font_data_list
17563 unconditionally.
17564
17565 * fontset.c: Include "font.h" unconditionally.
17566 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17567 (Fset_fontset_font): Accept a font-spec object.
17568
17569 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17570 PIXEL_SIZE part a wild card.
17571
17572 * dispextern.h (struct glyph_string): Define members clip and
17573 num_clips unconditionally.
17574 (struct face): Define members font_info and extra unconditionally.
17575
17576 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17577 ftfont_info only when HAVE_LIBOTF is defined.
17578
175792008-02-01 Andreas Schwab <schwab@suse.de>
17580
17581 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17582 and end.
17583
175842008-02-01 Jason Rumney <jasonr@gnu.org>
17585
17586 * w32font.c (w32font_driver): Add new fields.
17587
175882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17589
17590 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17591 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17592 (LIBES): Add @M17N_FLT_CFLAGS@.
17593
17594 * composite.c (compose_text): Don't treat the new style
17595 composition specially.
17596
17597 * emacs.c (main): Call syms_of_font unconditionally.
17598
17599 * font.h (FONT_ENTITY_NOT_LOADABLE)
17600 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17601 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17602 (struct font_driver): New member shape.
17603 (font_registry_charsets): Extern it.
17604 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17605 (font_otf_capability, font_drive_otf): Delete their externs.
17606
17607 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17608 (font_charset_alist, font_registry_charsets): Move from xfont.c
17609 and rename.
17610 (font_prop_validate_otf): New function.
17611 (font_property_table): Register it for QCotf.
17612 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17613 (font_drive_otf): Delete.
17614 (font_prepare_composition): New arg F. Adjust for the change of
17615 lispy gstring.
17616 (font_find_for_lface): New arg C.
17617 (font_load_for_face): Adjust for the change of font_find_for_lface.
17618 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17619 lispy gstring.
17620 (Ffont_shape_text): New function.
17621 (Fopen_font): If the font size is not given, use 12-pixel.
17622 (Ffont_at): New arg STRING.
17623 (syms_of_font): Initalize font_charset_alist.
17624 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17625 conditionally.
17626
17627 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17628 fonts of the same font-spec. Change the format of RFONT-DEF.
17629 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17630 Adjust for the change of RFONT-DEF.
17631 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17632
17633 * ftfont.h: New file.
17634
17635 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17636 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17637 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17638 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17639 font_otf_capability and font_drive_otf, set ftfont_shape.
17640 (ftfont_list): Adjust for the change of :otf property value.
17641 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17642 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17643 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17644 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17645 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17646 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17647
17648 * w32term.c (x_draw_composite_glyph_string_foreground):
17649 Adjust for the change of lispy gstring.
17650
17651 * xdisp.c (handle_composition_prop): Adjust for the change of
17652 lispy gstring. Call a function for auto-composition with the
17653 third arg it->window.
17654 (fill_composite_glyph_string): Adjust for the change of lispy string.
17655 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17656
17657 * xfaces.c (set_font_frame_param): Adjust for the change of
17658 font_find_for_lface.
17659
17660 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17661 (xfont_registry_charsets): Likewise. Change caller.
17662 (syms_of_xfont): Don't handle x_font_charset_alist.
17663
17664 * xftfont.c: Include "ftfont.h".
17665 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17666 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17667 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17668 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17669 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17670 Set xftfont_driver.shape to xftfont_shape.
17671
17672 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17673 the change of lispy gstring.
17674
176752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17676
17677 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17678
176792008-02-01 Jason Rumney <jasonr@gnu.org>
17680
17681 * w32font.c (w32font_draw): Fill background manually.
17682
176832008-02-01 Jason Rumney <jasonr@gnu.org>
17684
17685 * font.c (Qfontp): Remove unused symbol.
17686 (QCantialias): New symbol.
17687 (syms_of_font): Define it.
17688 (font_property_table): Set a validator for QCantialias.
17689
17690 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17691 Define if not already.
17692 (QCfamily): Share with xfaces.c.
17693 (Qstandard, Qsubpixel, Qnatural): New symbols.
17694 (syms_of_w32font): Define them. Don't define QCfamily here.
17695 (w32_antialias_type, lispy_antialias_type): New functions.
17696 (w32_enumfont_pattern_entity): New arg requested_font.
17697 Set antialias parameter if non-default was requested.
17698 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17699
177002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17701
17702 * lread.c (read1): Undo the previous change.
17703
177042008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17705
17706 * frame.c (Fdelete_frame): Call font_update_drivers only when
17707 USE_FONT_BACKEND is defined.
17708
177092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17710
17711 * font.h (struct font_bitmap): New member bits_per_pixel.
17712 (struct font_driver): New members start_for_frame and end_for_frame.
17713 (struct font_data_list): New struct.
17714 (font_put_frame_data, font_get_frame_data): Extern them.
17715
17716 * frame.h (struct frame): New member font_data_list.
17717
17718 * font.c (font_update_drivers): Call driver->start_for_frame and
17719 driver->end_for_frame at proper timings.
17720 (font_put_frame_data, font_get_frame_data): New functions.
17721 (Ffont_spec): Add usage in the docstring.
17722
17723 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17724 (Fdelete_frame): Call font_update_drivers.
17725
17726 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17727 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17728 (xftfont_get_xft_draw): New function.
17729 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17730 (xftfont_end_for_frame): New function.
17731 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17732
17733 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17734 Change argument. Cache GCs in the per-frame data.
17735 (struct ftxfont_frame_data): New struct.
17736 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17737 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17738 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17739 (ftxfont_end_for_frame): New function.
17740 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17741
17742 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * xselect.c (Vselection_coding_system)
17747 (Vnext_selection_coding_system): Delete them.
17748 (syms_of_xselect): Don't declare selection-coding-system and
17749 next-selection-coding-system. They are declared in select.el.
17750
177512008-02-01 Jason Rumney <jasonr@gnu.org>
17752
17753 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17754
17755 * w32fns.c: Include imm.h.
17756 (get_composition_string_fn, get_ime_context_fn): New optional
17757 system functions.
17758 (globals_of_w32fns): Load them from imm32.dll.
17759 (ignore_ime_char): New flag.
17760 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17761 WM_IME_ENDCOMPOSITION messages.
17762
17763 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17764 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17765
177662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17767
17768 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17769 (READCHAR_REPORT_MULTIBYTE): New macro.
17770 (readchar): New 2nd arg MULTIBYTE.
17771 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17772 Make symbol's name multibyte according to the multibyteness of the
17773 source.
17774
177752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17776
17777 * xfaces.c (face_for_overlay_string): Call lookup_face with
17778 correct arguments (fix of synching with the trunk).
17779
177802008-02-01 Kenichi Handa <handa@m17n.org>
17781
17782 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17783 (font_prop_validate_non_neg, font_prop_validate_spacing):
17784 Delete argument prop_index.
17785 (font_property_table): Change arguments to validater. Change Callers.
17786 (font_lispy_object): Delete.
17787 (font_at): Use font_find_object instead fo font_lispy_object.
17788
177892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17790
17791 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17792 and file names.
17793
177942008-02-01 Jason Rumney <jasonr@gnu.org>
17795
17796 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17797 (font_matches_spec): Remove debug output.
17798 (add_font_entity_to_list): Avoid using substituted fonts.
17799
178002008-02-01 Jason Rumney <jasonr@gnu.org>
17801
17802 * doc.c (Fsnarf_documentation):
17803 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17804
178052008-02-01 Miles Bader <miles@gnu.org>
17806
17807 * dispextern.h (struct glyph_row): Only define "clip" field if
17808 HAVE_WINDOW_SYSTEM is defined.
17809
178102008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17811
17812 Fix up multi-tty merge.
17813
17814 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17815 and indentation.
17816
17817 * xfaces.c (free_realized_face, clear_face_gcs):
17818 Include font_done_for_face in the input_blocked section, just in case.
17819
17820 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17821 (get_char_face_and_encoding): Undo last change and remove the *other*
17822 duplicate definition (i.e. keep the one that's better scoped and that
17823 includes code for the font-backend).
17824
17825 * terminal.c (create_terminal): Default keyboard_coding to
17826 `no-conversion' and terminal_coding to `undecided'.
17827
17828 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17829
17830 * fontset.c (free_realized_fontsets): Check that the table entry does
17831 contain a fontset before trying to compare it to `base'.
17832
17833 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17834 syms_of_charset, and syms_of_coding earlier because init_window_once
17835 now needs Vcoding_system_hash_table to be setup.
17836
17837 * coding.h (default_buffer_file_coding): Remove.
17838
17839 * coding.c (default_buffer_file_coding): Remove.
17840 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17841 than ->symbol, and use the terminal-local coding system.
17842 (syms_of_coding): Don't setup the coding-systems that are not
17843 terminal-local.
17844 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17845
17846 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17847 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17848
17849 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17850 in chartab.c and were re-added here by mistake.
17851 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17852
17853 * doc.c (Fsnarf_documentation):
17854 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17855 src to etc.
17856
17857 * ChangeLog.10: Add mistakenly removed entry.
17858
178592008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17860
17861 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17862
178632008-02-01 Miles Bader <miles@gnu.org>
17864
17865 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17866 Add extra args to FACE_FOR_CHAR.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17871 in sequence.
17872
17873 * chartab.c (map_sub_char_table, map_char_table): If the range
17874 contains just one character, call the function with that character
17875 even if the depth is not 3.
17876
178772008-02-01 Jason Rumney <jasonr@gnu.org>
17878
17879 * w32font.c (w32font_text_extents): Calculate metrics for the
17880 whole string.
17881
178822008-02-01 Jason Rumney <jasonr@gnu.org>
17883
17884 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17885
178862008-02-01 Jason Rumney <jasonr@gnu.org>
17887
17888 * w32term.c (x_set_glyph_string_clipping): Use
17889 get_glyph_string_clip_rects.
17890 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17891 Adjust for the change of struct glyph_string.
17892
17893 * w32font.c (w32font_draw): Do clipping here.
17894
178952008-02-01 Kenichi Handa <handa@m17n.org>
17896
17897 * xftfont.c (xftfont_draw): Adjust for the change of struct
17898 glyph_string.
17899
17900 * xterm.c (x_set_glyph_string_clipping): Use
17901 get_glyph_string_clip_rects.
17902 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17903 Adjust for the change of struct glyph_string.
17904
17905 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17906 the resulting clip(s}.
17907 (expose_overlaps): Add arg r. Change callers. Set it to
17908 row->clip temporarily.
17909 (expose_window): Redraw rows overlapping the exposed area.
17910
17911 * dispextern.h (struct glyph_row): New member clip.
17912 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17913 clip_height, new member clip, and num_clips.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * data.c (Fchar_or_string_p): Fix docstring.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17922 create a temporary XftDraw object.
17923
179242008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 * font.c (Ffontp): Fix docstring.
17927
17928 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17929 strong evidence of ISO-2022.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17934 SYNTAX_ENTRY_FOLLOW_PARENT.
17935
179362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17937
17938 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17939 its type.
17940 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17941 Update to the new type of weak_hash_tables and next_weak.
17942
17943 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17944 a plain C pointer to Lisp_Hash_Table.
17945
17946 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17947 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17948 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17949 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17950 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17951 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17952 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17953 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17954 (GC_EQ): Remove since they've been identical to their non-GC_
17955 alter-egos ever since the markbit was eradicated.
17956
17957 * alloc.c:
17958 * buffer.c:
17959 * buffer.h:
17960 * data.c:
17961 * fileio.c:
17962 * filelock.c:
17963 * fns.c:
17964 * frame.h:
17965 * lisp.h:
17966 * macterm.c:
17967 * print.c:
17968 * process.c:
17969 * w32fns.c:
17970 * w32menu.c:
17971 * w32term.c:
17972 * xfns.c:
17973 * xmenu.c:
17974 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * chartab.c (map_sub_char_table): Make it work for the top-level
17979 char-table. Fix handling of parent char-table.
17980 (map_char_table): Adjust for the above change.
17981
179822008-02-01 Jason Rumney <jasonr@gnu.org>
17983
17984 * w32font.c (Qgdi): Rename from Qw32.
17985
179862008-02-01 Jason Rumney <jasonr@gnu.org>
17987
17988 * w32bdf.c (get_quoted_string): Make function static.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17993 bigger ascent and descent than those of the font, use them as
17994 font's ascent and descent.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * Makefile.in (${lispsource}international/charprop.el): Move this
17999 target within "#ifdef HAVE_UNIDATA" and "#endif".
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18004 (shortlisp): Add ../lisp/language/tai-viet.el.
18005
180062008-02-01 Ulrich Mueller <ulm@gentoo.org>
18007
18008 * Makefile.in (${lispsource}international/charprop.el): Depend on
18009 temacs${EXEEXT}.
18010
180112008-02-01 Jason Rumney <jasonr@gnu.org>
18012
18013 * w32font.c (w32font_close): Delete the GDI font object.
18014
18015 * w32menu.c: Include character.h.
18016
18017 * w32proc.c: Likewise.
18018
18019 * w32select.c: Likewise.
18020
18021 * makefile.w32-in (w32proc.o): Depend on character.h.
18022
180232008-02-01 Jason Rumney <jasonr@gnu.org>
18024
18025 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18026
18027 * w32menu.c (syms_of_w32menu): Likewise.
18028
18029 * w32proc.c (syms_of_ntproc): Likewise.
18030
18031 * w32select.c (syms_of_w32select): Likewise.
18032
18033 * w32term.c (syms_of_w32term): Likewise.
18034
180352008-02-01 Jason Rumney <jasonr@gnu.org>
18036
18037 * w32font.c (w32font_draw): Delete brush after using it.
18038
180392008-02-01 Jason Rumney <jasonr@gnu.org>
18040
18041 * w32font.c (w32font_open): Don't set font_idx.
18042 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18043 to font settings.
18044 (w32font_draw): Fill background explicitly.
18045
180462008-02-01 Jason Rumney <jasonr@gnu.org>
18047
18048 * w32term.c (w32_initialize): Don't call w32font_initialize.
18049
18050 * w32font.c (w32font_info): Remove subranges.
18051 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18052 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18053 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18054 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18055 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18056 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18057 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18058 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18059 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18060 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18061 New symbols.
18062 (font_callback_data): New struct.
18063 (w32font_list, w32font_match): Use it.
18064 (w32font_open): Don't populate subranges.
18065 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18066 (w32font_encode_char): Always return unicode code-point as-is.
18067 (w32font_text_extents): Supply a transformation matrix to
18068 GetGlyphOutline. Never look up by glyph index. Avoid looping
18069 twice. Use unicode version of GetTexExtentPoint32 instead of
18070 glyph index version.
18071 (set_fonts_frame): Remove.
18072 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18073 set frame parameter. Use backward compatible fake foundries.
18074 Save generic family in extra slot under QCfamily. Make width slot
18075 constant. Save QCspacing value. Save list of scripts instead of
18076 binary subranges.
18077 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18078 (add_font_entity_to_list): Use font_callback_data struct. Filter
18079 unwanted fonts.
18080 (add_one_font_entity_to_list): Use font_callback_data struct.
18081 (w32_registry): Default to iso10646_1.
18082 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18083 string font registries. Don't fill in font name if it is a generic
18084 family name, fill family instead. Use spacing, family and script
18085 extra info to fill pitch, family and charset fields.
18086 (list_all_matching_fonts): Use font_callback_data struct.
18087 (unicode_range_for_char): Remove.
18088 (font_supported_scripts): New function.
18089 (w32font_initialize): Remove.
18090 (syms_of_w32font): Update which symbols are defined.
18091
180922008-02-01 Jason Rumney <jasonr@gnu.org>
18093
18094 * font.c (font_pixel_size): Reverse assq_no_quit args.
18095
18096 * w32term.h (FONT_WIDTH): Report max width, not average.
18097 (FONT_MAX_WIDTH): Remove.
18098 (FONT_AVG_WIDTH): New macro.
18099
18100 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18101 redefinition of FONT_WIDTH.
18102
18103 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18104 (w32_cache_char_metrics): Use FONT_WIDTH.
18105
18106 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18107
181082008-02-01 Jason Rumney <jasonr@gnu.org>
18109
18110 * w32font.c (w32font_open): Make lfHeight negative.
18111
18112 * w32fns.c (x_default_font_parameter): Use new style font name.
18113 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18114
181152008-02-01 Jason Rumney <jasonr@gnu.org>
18116
18117 * w32font.c (QCsubranges): New symbol.
18118 (w32font_open, w32font_has_char): Get subranges from subproperty
18119 of extra.
18120 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18121 (syms_of_w32font): Define :subranges symbol.
18122
18123 * font.c (font_put_extra): Expose externally.
18124
18125 * font.h (font_put_extra): Move declaration from font.c.
18126
18127 * font.c (Ffont_get): Use font driver to determine otf capability.
18128 (adjust_anchor): Check if driver defines anchor_point before using.
18129
18130 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18131 (w32font_draw): Use options.
18132 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18133 Fix detection of truetype fonts.
18134 (registry_to_w32_charset): Handle charsets other than iso8859-1
18135 expressed as lisp symbols.
18136 (w32_registry): Express charset as lisp symbol.
18137 (fill_in_logfont): Reverse pixel and point height logic.
18138 Don't set width here. Set quality to default.
18139
18140 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18141 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18142
18143 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18144 Remove redundant loop and allocation.
18145
18146 * makefile.w32-in (font.o, w32font.o): New objects.
18147 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18148 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18149
18150 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18151 STORE_XCHARB a valid l-value.
18152
18153 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18154 calculations for non-Truetype fonts.
18155 (x_draw_glyph_string): Sync with xterm.c.
18156 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18157 Remove redundant code.
18158 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18159
18160 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18161 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18162
18163 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18164 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18165
18166 * w32font.c: New file for w32 font backend.
18167
181682008-02-01 Kenichi Handa <handa@m17n.org>
18169
18170 * term.c: Don't include "buffer.h" twice.
18171
181722008-02-01 Kenichi Handa <handa@m17n.org>
18173
18174 * character.c (Funibyte_string): New function.
18175 (syms_of_character): Defsubr it.
18176
181772008-02-01 Jason Rumney <jasonr@gnu.org>
18178
18179 * w32term.c [USE_FONT_BACKEND]:
18180 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18181 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18182 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18183 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18184 (x_free_frame_resources): Sync with xterm.c.
18185
181862008-02-01 Andreas Schwab <schwab@suse.de>
18187
18188 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18189 char-table size.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18194
181952008-02-01 Kenichi Handa <handa@m17n.org>
18196
18197 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18198 font_otf_gpos, add font_drive_otf.
18199
18200 * fontset.c (fontset_find_font): Pay attention to font size
18201 specified for a font.
18202 (reorder_font_vector): Check contents of font_def.
18203
18204 * font.c (struct otf_list): Delete it.
18205 (otf_list): Make it a lisp variable.
18206 (otf_open): Use lispy otf_list.
18207 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18208 (check_otf_features): New function.
18209 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18210 New functions.
18211 (font_drive_otf): New function merging font_otf_gsub and
18212 font_otf_gpos.
18213 (font_open_for_lface): New arg spec. Change argument order.
18214 (font_load_for_face): Adjust for the change of font_open_for_lface.
18215 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18216 Ffont_otf_gpos.
18217 (syms_of_font): Staticpro otf_list. Delete defsubr of
18218 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18219
18220 * xfaces.c (set_font_frame_param): Adjust for the change of
18221 font_open_for_lface.
18222
18223 * font.h (font_open_for_lface): Adjust prototype.
18224 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18225 member otf_drive.
18226 (font_otf_gsub, font_otf_gpos): Delete externs.
18227 (font_drive_otf): Extern it.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * font.c (font_at): If the window W is not on a window system,
18232 return Qnil.
18233
18234 * coding.c (produce_chars, encode_coding): Don't call
18235 insert_from_gap if no characters to produce.
18236
182372008-02-01 Kenichi Handa <handa@m17n.org>
18238
18239 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18240 Fclear_face_cache.
18241
18242 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18243
182442008-02-01 Miles Bader <miles@gnu.org>
18245
18246 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18247 Parse "--disable-font-backend" option.
18248 (standard_args): Add "--disable-font-backend" option.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * fontset.c (fontset_find_font): New function.
18253 (fontset_font): Use fontset_find_font.
18254 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18255 Register the specified font for all Latin characters.
18256 (new_fontset_from_font): Register the specified font for all Latin
18257 characters.
18258 (dump_fontset): For a realized fontset, include the base fontset
18259 name in the returned vector.
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * character.h (CHAR_STRING): Cast C to unsigned on calling
18264 char_string.
18265
18266 * character.c (char_string): Type of arg C changed to unsigned.
18267 Signal an error if C is an invalid character code.
18268
18269 * editfns.c (general_insert_function, Fchar_to_string):
18270 Use CHARACTERP, not INTEGERP.
18271
182722008-02-01 Kenichi Handa <handa@m17n.org>
18273
18274 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18275 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18276
18277 * regex.c (analyse_first): Fix for multibyte characters in "case
18278 charset:" and "case categoryspec:".
18279
182802008-02-01 Andreas Schwab <schwab@suse.de>
18281
18282 * Makefile.in (LIBES): Move standard libraries to the end.
18283
182842008-02-01 Kenichi Handa <handa@m17n.org>
18285
18286 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18287 nonzero, don't shrink the buffer nextb.
18288
18289 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18290
18291 * coding.c (coding_alloc_by_making_gap): New arg offset.
18292 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18293 offset.
18294 (decode_coding_iso_2022): Update coding->safe_charsets.
18295 (decode_coding_gap): Temporarily set
18296 current_buffer->text->inhibit_shrinking to 1.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18301 indexing into elements of s->cmp and s->char2b.
18302
183032008-02-01 Juanma Barranquero <lekktu@gmail.com>
18304
18305 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18310 target_multibyte instead of multibyte.
18311 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18312 (bcmp_translate): Change the argument name from multibyte to
18313 target_multibyte.
18314
183152008-02-01 Kenichi Handa <handa@m17n.org>
18316
18317 These changes are to compile a regexp into a pattern that can be
18318 used both for multibyte and unibyte targets.
18319
18320 * Makefile.in (search.o): Depend on charset.h.
18321
18322 * character.c (multibyte_char_to_unibyte_safe): New function.
18323
18324 * search.c: Include "charset.h".
18325 (compile_pattern_1): Delete argument multibyte. Don't set
18326 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18327 (compile_pattern): Don't compare cp->buf.target_multibyte.
18328 Compare cp->buf.charset_unibyte.
18329 (compile_pattern): Set cp->buf.target_multibyte.
18330
18331 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18332
18333 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18334
18335 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18336 multibyte. Change callers.
18337 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18338 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18339 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18340 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18341 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18342 (regex_compile): Make the compiled pattern usable both for
18343 multibyte and unibyte targets.
18344 (analyse_first): Make the fastmap usable both for multibyte and
18345 unibyte targets.
18346 (TRANSLATE_VIA_MULTIBYTE): Delete.
18347 (re_match_2_internal): Pay attention to the case that the
18348 multibyteness of bufp and target may be different.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18353 empty box occupy at least one column width.
18354
183552008-02-01 Miles Bader <miles@gnu.org>
18356
18357 * Makefile.in: Remove redundant HAVE_XFT clause.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18366 being nil.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18371
183722008-02-01 Kenichi Handa <handa@m17n.org>
18373
18374 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * search.c (simple_search): Fix previous change.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * xftfont.c (ftfont_font_format): Extern declaration.
18383
18384 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18385
18386 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18387 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18388
18389 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18390 (ftfont_font_format): Fix previous change.
18391
18392 * font.h (Ffont_xlfd_name): EXFUN it.
18393
18394 * font.c (font_parse_xlfd): Fix the array size of `f'.
18395 (register_font_driver): Use EQ to compare driver->type.
18396
18397 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18398 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18399 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18400
184012008-02-01 Kenichi Handa <handa@m17n.org>
18402
18403 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18404 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18405
184062008-02-01 Kenichi Handa <handa@m17n.org>
18407
18408 * xfont.c (xfont_open): Set font->format.
18409
18410 * xftfont.c (xftfont_open): Set font->format.
18411
18412 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18413 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18414 (ftfont_open): Set font->format.
18415 (ftfont_font_format): New function.
18416
18417 * font.h (struct font): New member format.
18418
18419 * font.c (Qopentype): New variable.
18420 (syms_of_font): Defsym it.
18421 (Fquery_font): Change the format of the last element of the return
18422 value.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18427 last resort.
18428
184292008-02-01 Kenichi Handa <handa@m17n.org>
18430
18431 * coding.c (detect_coding_charset): Fix detection of multi-byte
18432 charset.
18433
184342008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18435
18436 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18437
184382008-02-01 Kenichi Handa <handa@m17n.org>
18439
18440 * xdisp.c (get_next_display_element): Set it->face_id for the
18441 first component of a composition.
18442 (x_produce_glyphs): Check if the font is changed or not for composition.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * fontset.c (Qlatin): New variable.
18447 (syms_of_fontset): Define it as a lisp symbol.
18448 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * font.c (font_unparse_fcname): Pay attention to the case that
18453 some of font property is a null string.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * term.c: Include "composite.h".
18458 (encode_terminal_code): Output all components of composition.
18459 Check the size of encode_terminal_src.
18460 (produce_glyphs): For composition, call produce_composite_glyph.
18461 (append_composite_glyph, produce_composite_glyph): New functions.
18462
18463 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18464 is not found, get font_info from the current ascii face.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18469 buffer-file-name to Qnil before calling insert_from_buffer.
18470
18471 * font.c (font_unparse_fcname): Pay attention to the case that
18472 foundry is a null string.
18473
184742008-02-01 Kenichi Handa <handa@m17n.org>
18475
18476 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18477
18478 * font.c (Qunicode_sip): New variable.
18479 (syms_of_font): Declare it as a Lisp symbol.
18480
18481 * font.h (Qunicode_sip): Extern it.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * composite.c (get_composition_id): Pay attention to TAB component.
18486
18487 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18488 TAB. Adjust for the change of s->char2b which always points to
18489 the first element of allocated memory.
18490
18491 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18492
18493 * xdisp.c (handle_composition_prop): Set it->c to the first
18494 non-TAB component.
18495 (fill_composite_glyph_string): Change argument.
18496 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18497 (x_produce_glyphs): Fix handling of left/right padding.
18498
184992008-02-01 Kenichi Handa <handa@m17n.org>
18500
18501 * coding.c (detect_coding_system): Fix for handling off
18502 inhibit_iso_escape_detection. Fix for the case that no coding
18503 system is defined for a specific coding category.
18504
185052008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 * font.c (font_matching_entity): Delete unused local var.
18508
18509 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18510 opening a font.
18511
18512 * fileio.c (Finsert_file_contents): On recovering a file, assume
18513 Unix-like eol.
18514 (choose_write_coding_system): On auto-saving a file, force
18515 Unix-like eol.
18516
18517 * coding.c (setup_coding_system): Fix setting of
18518 coding->common_flags based on eol_type.
18519 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18520 inherit from it.
18521
185222008-02-01 Kenichi Handa <handa@m17n.org>
18523
18524 * alloc.c (NSTATICS): Increas to 0x600.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18529 (ftfont_list): Don't check :name property.
18530 (ftfont_match): New function.
18531 (ftfont_pattern_entity): If the pattern doesn't contain
18532 FC_SPACING, don't assume FC_MONO.
18533
18534 * font.h (struct font_driver): New member `match'.
18535 (font_update_drivers): Adjust prototype.
18536
18537 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18538 property of FONT.
18539 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18540 them unconditionally.
18541 (font_matching_entity): New function.
18542 (font_open_by_name): Try font_matching_entity if exact match is
18543 not found.
18544 (font_update_drivers): Delete the arg FONT. Return a list of
18545 actually used backends. Don't free faces, font caches here.
18546 Don't store data in frame parameters. Don't call x_set_font.
18547 (Ffont_spec): Store :name property as is.
18548 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18549 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18550 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18551 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18552 Call font->driver->otf_gsub instead of font_otf_gsub.
18553
18554 * frame.c (x_set_font_backend): Do more works that were done in
18555 font_update_drivers before.
18556
18557 * xfont.c (xfont_match): New function.
18558 (xfont_driver): Set xfont_driver.match to xfont_match.
18559 (xfont_draw): Set font in GC if necessary.
18560
18561 * ftxfont.c (ftxfont_match): New function.
18562 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18563
18564 * xftfont.c (xftfont_match): New function.
18565 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18566
185672008-02-01 Kenichi Handa <handa@m17n.org>
18568
18569 * font.h (struct font): New member scalable.
18570 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18571 (font_otf_gsub): Adjust prototype.
18572
18573 * font.c (font_otf_capability): Fix handling of the default langsys.
18574 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18575 Check the contents of SPEC.
18576 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18577 (check_gstring): New function.
18578 (REPLACEMENT_CHARACTER): New macro.
18579 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18580 glyph codes of GSTRING.
18581 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18582 (font_prepare_composition): Set cmp->glyph_len.
18583 (font_open_entity): Set font->scalable.
18584 (Ffont_get): Handle :otf property.
18585 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18586 functions.
18587 (Fquery_font): Use font->font.full_name.
18588 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18589 Sfont_otf_alternates.
18590
18591 * ftfont.c (ftfont_open): Set font->font.full_name and
18592 font->font.name properly. Fix calculation of font->font.height
18593 and font->min_width.
18594
18595 * ftxfont.c (ftxfont_create_gcs): New function.
18596 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18597 (ftxfont_draw_backgrond): Fix filling region.
18598 (ftxfont_default_fid): New function.
18599 (ftxfont_open): Set xfont->fid to the return value of
18600 ftxfont_default_fid.
18601 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18602 (ftxfont_done_face): Free only GCs that are created by
18603 ftxfont_create_gcs.
18604 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18605
18606 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18607 Clip to src->width, etc (not src->clip_XXX).
18608
18609 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18610 FontBackend frame parameter.
18611
186122008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * font.h (struct font_driver_list): New member `on'.
18615 (Fclear_font_cache): EXFUN it.
18616 (font_update_drivers): Extern it.
18617
18618 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18619 (font_list_entities): Check driver_list->on.
18620 (register_font_driver): Initalize `on' member to 0.
18621 (font_update_drivers): New function.
18622 (Fclear_font_cache): Check driver_list->on.
18623
18624 * frame.h (Qfont_backend): Extern it.
18625 (x_set_font_backend): Extern it.
18626
18627 * frame.c (Qfont_backend): New variable.
18628 (frame_parms): New element for font-backend.
18629 (x_set_font_backend): New function.
18630
18631 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18632 FontBackend frame parameter.
18633 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18634 x_set_font_backend.
18635
18636 * xfont.c (xfont_list): Don't try listing by :name property if the
18637 name is not for XLFD.
18638
186392008-02-01 Kenichi Handa <handa@m17n.org>
18640
18641 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18642 (LGLYPH_SET_TO): New macros.
18643 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18644 element of G is vector or not.
18645 (font_at): Extern it.
18646
18647 * font.c: Include window.h.
18648 (font_lispy_object): New function.
18649 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18650 end of valid glyph.
18651 (font_close_object): Fix getting (struct font *).
18652 (font_at): New function.
18653 (Ffont_get): If FONT is a font-object, get entity from it.
18654 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18655 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18656 range check.
18657 (Ffont_at): New function.
18658 (syms_of_font): Defsubr Sfont_at.
18659
18660 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18661 before the entry for Qcomposition.
18662 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18663 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18664 the font in gstring.
18665 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18666 LGLYPH_FORM (g) to detect the end of valid glyph.
18667 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18668 we are composing with gstring.
18669
18670 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18671 Check if adjustment is vector or not.
18672
18673 * Makefile.in (font.o): Make it depends on window.h.
18674
186752008-02-01 Kenichi Handa <handa@m17n.org>
18676
18677 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18678 adjustment is vector or not.
18679
186802008-02-01 Miles Bader <miles@gnu.org>
18681
18682 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18683
186842008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18687 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18688 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18689
18690 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18691 (DEVICE_DELTA): Fix typo.
18692 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18693 LGLYPH format.
18694
18695 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18696 the change of LGLYPH format.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * ftfont.c (ftfont_list): Fix typo.
18701 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18702
187032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18704
18705 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18706
18707 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18708 xftface_info is non-NULL.
18709
187102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18711
18712 * ftfont.c (ftfont_list): Move misplaced #endif.
18713
187142008-02-01 Kenichi Handa <handa@m17n.org>
18715
18716 * ftfont.c (ftfont_list): Pay attention to the case that
18717 FC_CAPABILITY is not defined.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * xftfont.c (xftfont_open): Set charset related members to -1.
18722
18723 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18724 QCname.
18725 (ftfont_open): Set charset related members to -1.
18726
18727 * fontset.c (Votf_script_alist): New variable.
18728 (syms_of_fontset): Initialize it.
18729 (fontset_font): Delete unused variable.
18730
18731 * fontset.h (Votf_script_alist): Extern it.
18732
18733 * font.c (font_find_for_lface): Optimize code.
18734
18735 * font.h (font_close_object, font_merge_old_spec): Extern them.
18736
187372008-02-01 Kenichi Handa <handa@m17n.org>
18738
18739 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18740 (syms_of_font): Initialize them.
18741 (font_pixel_size): Allow float value in dpi.
18742 (font_prop_validate_type): Delete.
18743 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18744 Change caller.
18745 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18746 (font_prop_validate_extra): Delete.
18747 (font_prop_validate_spacing): New function.
18748 (font_property_table): Add elements for all known properties.
18749 (get_font_prop_index): Rename from check_font_prop_name. New
18750 argument FROM. Change caller.
18751 (font_prop_validate): Validate all known properties.
18752 (font_put_extra): Delete argument force. Change caller.
18753 (font_expand_wildcards): Make it static. Fix the way of shrinking
18754 the possible range.
18755 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18756 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18757 Change caller.
18758 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18759 (font_parse_fcname): Delete argument merge. Fix parsing of point
18760 size. Don't validate properties values here. Change caller.
18761 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18762 (font_open_by_name): Delete unused variable.
18763 (Ffont_spec): Likewise. Validate property values.
18764 (Ffont_match_p): New function.
18765
18766 * font.h (QCscalable): Extern it.
18767 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18768
18769 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18770
18771 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18772 (xfont_list_pattern): New function.
18773 (xfont_list): Use xfont_list_pattern.
18774
187752008-02-01 Kenichi Handa <handa@m17n.org>
18776
18777 * font.h (Flist_fonts): EXFUN it.
18778
187792008-02-01 Jason Rumney <jasonr@gnu.org>
18780
18781 * w32term.c (w32_initialize): Add back smoothing_type and
18782 smoothing_enabled definitions.
18783
187842008-02-01 Kenichi Handa <handa@m17n.org>
18785
18786 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18787 s->face->font on determining underline position.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18792 (font_has_char): Accept font-object too.
18793 (font_find_for_lface): Try at first with a size specified in face.
18794
187952008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18798 font_open_by_name.
18799
188002008-02-01 Kenichi Handa <handa@m17n.org>
18801
18802 * font.h (QCspacing, QCdpi): Extern them.
18803 (enum font_spacing): New enum.
18804 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18805
18806 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18807 (QCspacing, QCdpi): New variables.
18808 (syms_of_font): Initialize them.
18809 (font_pixel_size): New function.
18810 (font_put_extra): New function.
18811 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18812 in FONT_EXTRA.
18813 (font_parse_fcname): Handle enumerated values (e.g. bold).
18814 Fix handling font size. Add QCname property that contains only
18815 unknown properties.
18816 (font_score): Change argument. Change caller. Pay attention to
18817 FONT_PIXEL_SIZE_QUANTUM.
18818 (font_sort_entites, font_list_entities, font_find_for_lface)
18819 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18820 (Ffont_spec): Add QCname property that contains only unknown properties.
18821
18822 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18823 include weight in listing pattern, instead check weight of each
18824 listed font. Don't include scalable in pattern. Pay attention to
18825 FONT_PIXEL_SIZE_QUANTUM.
18826
188272008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * font.c (font_parse_fcname): Fix parsing of point-size.
18830 (font_unparse_fcname): Produce symbolic names for style properties.
18831 (font_list_entities): Handle float size correctly.
18832 (font_open_by_name): Prefer `normal' property values if the name
18833 doesn't specify them.
18834
18835 * fontset.c (Finternal_char_font): Use font_get_name, not
18836 Ffont_xlfd_name.
18837
18838 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18839 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18840 pattern. Don't force scalable.
18841
18842 * xftfont.c (xftfont_open): For generating a name, start from
18843 96-byte buffer.
18844
188452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18846
18847 * frame.h (x_new_fontset2): Fix prototype.
18848
188492008-02-01 Kenichi Handa <handa@m17n.org>
18850
18851 * font.h (struct font_driver): Delete member parse_name.
18852 (font_match_p, font_get_spec, font_parse_fcname)
18853 (font_unparse_fcname): Extern them.
18854 (font_get_name): Adjust prototype.
18855
18856 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18857 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18858 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18859 unnecessary checks for weight, slant, and swidth.
18860 (font_parse_fcname): New function.
18861 (font_unparse_fcname): New function.
18862 (font_parse_name): New function.
18863 (font_match_p): New function.
18864 (font_get_name): Change return value to Lisp string.
18865 (font_get_spec): New function.
18866 (Qunspecified, Qignore_defface): Don't extern them.
18867 (font_find_for_lface): Assume that LFACE is fully specified.
18868 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18869 object, use it for FACE.
18870 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18871 driver->parse_name.
18872 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18873
18874 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18875 prototype.
18876
18877 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18878 argument F. Don't call Fnew_fontset. Instead, directly call
18879 make_fontset.
18880
18881 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18882
18883 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18884 of x_new_fontset2.
18885
18886 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18887 (Qsans__serif): New variables.
18888 (ftfont_generic_family_list): New variable.
18889 (syms_of_ftfont): Initialize the above variables.
18890 (ftfont_pattern_entity): Delete argument NAME.
18891 (ftfont_list_generic_family): New function.
18892 (ftfont_parse_name): Delete this function.
18893 (ftfont_list): Try generic family only when FcFontList found no font.
18894 (ftfont_list_family): Fix args to FcObjectSetBuild.
18895
18896 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18897 object in attrs[LFACE_FONT_INDEX].
18898 (set_lface_from_font_name): Cancel all changes for font-backend.
18899 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18900 function.
18901 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18902 font object in QCfont attribute.
18903 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18904 (realize_default_face) [USE_FONT_BACKEND]: Call
18905 set_lface_from_font_and_fontset.
18906
18907 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18908 "fixed", and signal error here if no suitable font was found.
18909
18910 * xfont.c (xfont_parse_name): Delete this function.
18911
18912 * xftfont.c (xftfont_open): Change coding style of error
18913 handling. Generate fontconfig's fontname pattern.
18914
18915 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18916 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18917
18918 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18919 Both args FONTSET and FONT_OBJECT must be existing ones.
18920
189212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18922
18923 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18928
18929 * font.h (struct font): Fix typo.
18930
18931 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18932 XLFD_XXX_INDEX.
18933 (enum xlfd_field_mask): New enum.
18934 (intern_font_field): Changed argument. Change caller. If digits
18935 are followed by non-digits, return a symbol.
18936 (font_expand_wildcards): New function.
18937 (font_parse_xlfd): Fix wildcard handling.
18938 (Ffont_spec): If :name is specified, reflect the info in the other
18939 properties.
18940
18941 * ftfont.c (ftfont_pattern_entity): Fix typo.
18942 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18943 locale.
18944
189452008-02-01 Kenichi Handa <handa@m17n.org>
18946
18947 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18948
18949 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18950 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18951 registry doesn't specify encoding part.
18952 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18953 (font_open_by_name): At first try parsing the name.
18954 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18955 as Lisp symbols.
18956
18957 * fontset.c (reorder_font_vector): Pay attention to the case that
18958 the 3rd element of font_def is nil.
18959 (fontset_font): For the default fontset, append one more fontset
18960 elements for a script-based font specification. Don't add script
18961 attribute on finding a font.
18962 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18963 font name.
18964 (fontset_ascii_font): If a font can't be opened, return nil.
18965
18966 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18967 (ftfont_pattern_entity): New function.
18968 (ftfont_get_cache): Assume that freetype_font_cache is already
18969 initialized.
18970 (ftfont_list): Handle the case that a file is specified in font
18971 name. Use ftfont_pattern_entity to generate entities.
18972 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18973 (syms_of_ftfont): Initialize freetype_font_cache.
18974
18975 * xftfont.c (xftfont_open): Make the font name fontconfig's
18976 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18977 (xftfont_close): Free font->font.name if not NULL.
18978
18979 * xfont.c (xfont_list): If script is specified for a font, return
18980 null_vector.
18981 (xfont_list_family): Declare argument type.
18982
18983 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18984 name, set LFACE_FONT (lface) to nil.
18985
18986 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18987 return Qnil.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18992 (standard_args): Add "-enable-font-backend".
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18997 (struct xftdraw_list, xftdraw_list): Delete them.
18998 (register_xftdraw, check_xftdraw): Delete them.
18999 (xftfont_prepare_face): Don't call register_xftdraw.
19000 (xftfont_done_face): Don't call check_xftdraw.
19001 (xftfont_draw): Get background color only when with_background is
19002 nonzero.
19003
19004 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19005
190062008-02-01 Kenichi Handa <handa@m17n.org>
19007
19008 These changes are for the new font handling codes.
19009
19010 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19011 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19012 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19013 (FONTSRC, FONTOBJ): New variables.
19014 (obj): Add $(FONTOBJ).
19015 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19016 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19017 @LIBOTF_LIBS@.
19018 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19019 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19020
19021 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19022
19023 * character.h (Vscript_representative_chars): Extern it.
19024
19025 * character.c (Vscript_representative_chars): New variable.
19026 (syms_of_character): Declare it as a Lisp variable.
19027
19028 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19029 enable_font_backend is nonzero, accept the composition method
19030 COMPOSITION_WITH_GLYPH_STRING.
19031
19032 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19033 enumeration COMPOSITION_WITH_GLYPH_STRING.
19034
19035 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19036 members clip_x, clip_y, clip_width, and clip_height.
19037 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19038
19039 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19040 --enable-font-backend. Call syms_of_font.
19041
19042 * fns.c (assoc_no_quit): New function.
19043
19044 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19045 (face_for_font, new_fontset_from_font)
19046 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19047
19048 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19049 (fontset_font, fontset_ascii, face_for_char)
19050 (make_fontset_for_ascii_face, Ffont_info)
19051 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19052 is nonzero, use font-backend mechanism.
19053 (find_font_encoding): Make it non-static.
19054 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19055 New functions.
19056
19057 * frame.h (struct frame): New members resx and resy.
19058 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19059 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19060
19061 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19062 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19063
19064 * lisp.h (assoc_no_quit): Extern it.
19065
19066 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19067 Through out the file, use FONT_INFO_FROM_FACE instead of
19068 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19069 rif->per_char_metric.
19070 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19071 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19072 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19073 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19074 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19075 nonzero, use font-backend mechanism.
19076 (get_per_char_metric): New function.
19077
19078 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19079 (set_lface_from_font_name)
19080 (set_font_frame_param, free_realized_face)
19081 (prepare_face_for_display, clear_face_gcs)
19082 (Finternal_set_font_selection_order, realize_x_face)
19083 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19084 font-backend mechanism.
19085 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19086 (load_face_font) [USE_FONT_BACKEND]: Abort.
19087 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19088 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19089
19090 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19091 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19092 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19093 nonzero, register all available font drivers. Call
19094 x_default_font_parameter for deciding a font.
19095 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19096
19097 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19098 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19099 (x_set_glyph_string_clipping_exactly)
19100 (x_compute_glyph_string_overhangs)
19101 (x_draw_glyph_string_foreground)
19102 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19103 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19104 enable_font_backend is nonzero, use font-backend mechanism.
19105 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19106
191072008-02-01 Kenichi Handa <handa@m17n.org>
19108
19109 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19110 system_eol_type.
19111 (syms_of_coding): Initialize system_eol_type.
19112
19113 * process.c (Fset_process_coding_system): Inherit system's eol
19114 format if necessary.
19115
191162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19117
19118 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19119
191202008-02-01 Kenichi Handa <handa@m17n.org>
19121
19122 * coding.c (decode_eol): Pay attention to buffer relocation in
19123 del_range_2.
19124 (decode_coding): Call decode_eol before restoring undo_list.
19125
191262008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * charset.c (Fdefine_charset_internal): Fix setting of
19129 emacs_mule_bytes.
19130
191312008-02-01 Kenichi Handa <handa@m17n.org>
19132
19133 * keyboard.c (read_char): Check if C is a character or not before
19134 looking up Vkeyboard_translate_table.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19139 condition to terminate the loop.
19140
191412008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * coding.c (produce_composition): Compare charbuf[i] instead of
19144 args[i] against 0.
19145 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19150 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19151 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19152 detect_coding.
19153 (emacs_mule_char): Handle old style (Emacs 20) component character
19154 of a composition.
19155 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19156 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19157 composition rule.
19158 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * coding.c (encode_coding_ccl): Allocate destination dynamically
19163 when necessary.
19164
191652008-02-01 Kenichi Handa <handa@m17n.org>
19166
19167 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19168 the loop. When quitted, show a proper error message.
19169
191702008-02-01 Kenichi Handa <handa@m17n.org>
19171
19172 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19173 src->clip_head and src->clip_tail temporarily instead of src->hl.
19174
19175 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19176 character sequence.
19177 (Fccl_execute_on_string): Use ASET, not XSET.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * coding.c (decode_coding): Fix the condition of terminating the
19186 decoding loop.
19187
191882008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * data.c (Faset): On setting a character bigger than 255 in a
19191 unibyte string, signal an error instead of make the string multibyte.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19196 made by a mapping table.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19201 not.
19202 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19203 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19204
19205 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19206 s->face is NULL or not.
19207
192082008-02-01 Kenichi Handa <handa@m17n.org>
19209
19210 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19211 (x_draw_glyph_string): Fix drawing of right_overhang and
19212 left_overhang around/on cursor.
19213
19214 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19215
192162008-02-01 Kenichi Handa <handa@m17n.org>
19217
19218 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19219
192202008-02-01 Kenichi Handa <handa@m17n.org>
19221
19222 * coding.c (Fdefine_coding_system_internal)
19223 (Fdefine_coding_system_alias): Avoid a duplicated element in
19224 Vcoding_system_alist.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19229
19230 * coding.c (Qcoding_system_define_form): New variable.
19231 (syms_of_coding): Intern and staticpro it.
19232 (Fcoding_system_p): Check Qcoding_system_define_form.
19233 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19234
19235 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19236 Fcoding_system_p.
19237 (CHECK_CODING_SYSTEM): If ID is not available, call
19238 Fcheck_coding_system.
19239 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19240 Try also Fcheck_coding_system.
19241
192422008-02-01 Kenichi Handa <handa@m17n.org>
19243
19244 * coding.c (code_conversion_restore): GCPRO arg.
19245
192462008-02-01 Kenichi Handa <handa@m17n.org>
19247
19248 * character.c (lisp_string_width): Check multibyteness of STRING.
19249
192502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19251
19252 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19253 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19254 (decode_mac_font_name): Use decode_coding_c_string instead of
19255 decode_coding.
19256 (x_load_font): Initialize fontp->fontset to -1. Set
19257 fontp->encoding_type.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * search.c (search_buffer): Give up BM search on case-fold-search
19262 if one of a target character has a case-equivalence of different
19263 byte length even if that target charcter is an ASCII.
19264 (simple_search): Fix calculation of byte length of matched text.
19265 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19266
192672008-02-01 Kenichi Handa <handa@m17n.org>
19268
19269 * coding.c (decode_coding): Fix handling of invalid bytes.
19270
192712008-02-01 Kenichi Handa <handa@m17n.org>
19272
19273 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19274 Unicode characters.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * coding.c (encode_coding_object): If a pre-write-conversion
19279 function makes a new buffer, kill it.
19280
192812008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * coding.c (QCascii_compatible_p): New variable.
19284 (syms_of_coding): Initialize it.
19285 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19286 calling string_char.
19287 (record_conversion_result): Add `default:' case.
19288 (coding_charset_list): Delete unused variable `coding_type'.
19289 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19290 property in the plist of the coding system.
19291 (Fcoding_system_put): Check QCascii_compatible_p.
19292
192932008-02-01 Miles Bader <miles@gnu.org>
19294
19295 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19296 removed calculation of frame `f', as it's now used.
19297
192982008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19301 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19302 (UNIDATA): New variable.
19303 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19304 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19305 $(RUN_TEMACS) unconditionally.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19310 (admindir): New variable.
19311 ($(lispsource)international/charprop.el): New target.
19312
193132008-02-01 Miles Bader <miles@gnu.org>
19314
19315 * character.c (chars-in-region): Remove obsolete function.
19316 (syms_of_character): Remove its initialization.
19317
193182008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19319
19320 * w32select.c (validate_coding_system)
19321 (setup_windows_coding_system): New functions.
19322 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19323 setup_windows_coding_system.
19324 (setup_config, Fw32_get_clipboard_data): Use
19325 validate_coding_system.
19326 (Fx_selection_exists): Move call to setup_config to a place
19327 where signals are allowed.
19328
19329 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19330 (Fcheck_coding_system): Add declarations.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19335
193362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19337
19338 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19339 string as the second argument for x_new_fontset.
19340
193412008-02-01 Kenichi Handa <handa@m17n.org>
19342
19343 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19344 (encode_coding_object): Use safe_call instead of call2.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19349
19350 * Makefile.in (lisp): Include charprop.el.
19351
193522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19353
19354 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19355 Not sure if it's unnecessary.
19356
193572008-02-01 Steven Tamm <steventamm@mac.com>
19358
19359 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19360 some possibly unnecessary fontset checking code that crashed
19361 when creating a new frame.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19366 lookup_face.
19367
19368 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19369
19370 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19375 (coding_charset_list): New function.
19376
19377 * coding.h (coding_charset_list): Extern it.
19378
193792008-02-01 Kenichi Handa <handa@m17n.org>
19380
19381 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19382 concatenation of family and registry.
19383
193842008-02-01 Kenichi Handa <handa@m17n.org>
19385
19386 * character.h (BYTE8_STRING): Fix typo.
19387
19388 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19389 string to multibyte (sync to HEAD).
19390
19391 * casefiddle.c (casify_region): Handle changes in byte-length
19392 using replace_range_2 (sync to HEAD).
19393
193942008-02-01 Andreas Schwab <schwab@suse.de>
19395
19396 * chartab.c (map_char_table): GCPRO table and arg.
19397
193982008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19401 already at limit.
19402
194032008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19406 instead of fast_c_string_match_ignore_case.
19407 (find_font_encoding): Change argument to Lisp_Object. Use
19408 fast_string_match_ignore_case instead of
19409 fast_c_string_match_ignore_case. Change caller.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * xdisp.c (get_next_display_element): In unibyte case, decide to
19414 display in octal form by checking a character by
19415 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19416
19417 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19418
19419 * character.c (unibyte_has_multibyte_table): New variable.
19420
19421 * character.h (unibyte_has_multibyte_table): Extern it.
19422 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * coding.c (encode_coding_iso_2022): Fix handling of charset
19427 annotation.
19428
194292008-02-01 Kenichi Handa <handa@m17n.org>
19430
19431 * coding.c (setup_coding_system): If coding_system is nil, use
19432 Qundecided.
19433 (Fterminal_coding_system): Return nil if terminal coding system is
19434 `undecided'.
19435 (syms_of_coding): Define coding-system `undecided' here. Setup
19436 terminal_coding as `undecided'.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * xdisp.c (message_dolog, set_message_1): Call
19441 unibyte_char_to_multibyte with arg type int.
19442
19443 * lread.c (read1): Fix reading of a char-table.
19444
19445 * print.c (print_object): Include sub char-table in circularities
19446 detection.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19451 Append the found sequences in car of ARGS instead of prepending.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * fileio.c (report_file_error): Make a unibyte string from
19456 strerror (errorno).
19457 (Fsubstitute_in_file_name): Fix the arg to
19458 unibyte_char_to_multibyte. It is evaluated twice.
19459
194602008-02-01 Kenichi Handa <handa@m17n.org>
19461
19462 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19463
194642008-02-01 Kenichi Handa <handa@m17n.org>
19465
19466 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19467 BOM is not found.
19468 (detect_coding, detect_coding_system): Optimization for ISO-2022
19469 when no 8-bit data is found.
19470
194712008-02-01 Jason Rumney <jasonr@gnu.org>
19472
19473 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19474
194752008-02-01 Kenichi Handa <handa@m17n.org>
19476
19477 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19478 CHARS.
19479
194802008-02-01 Steven Tamm <steventamm@mac.com>
19481
19482 * macterm.c (mac_encode_char): Add charset argument and update
19483 to use encoding_type.
19484 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19485 switch to pure fontset.
19486 (decode_mac_font_name): Temporarily remove decoding.
19487 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19488 (x_load_font): Temporarily remove encoding.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * xfaces.c (Fface_font): If frame is not on a window system,
19493 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19494 refer to face->font.
19495 (split_font_name_into_vector, build_font_name_from_vector)
19496 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19497 when HAVE_WINDOW_SYSTEM is defined.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19502 (x_produce_glyphs): Fix setting of members of cmp in case
19503 cmp->glyph_len is zero.
19504
19505 * fontset.c (Fset_fontset_font): Fix docstring.
19506 (Ffontset_info): Make it backward compatible. New arg ALL.
19507
195082008-02-01 Kim F. Storm <storm@cua.dk>
19509
19510 * process.c (read_process_output): Grow decoding_buf when needed;
19511 this could cause a crash in allocate_string and compact_small_strings.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * coding.c (setup_coding_system): Set coding->common_flags
19520 correctly for raw-text.
19521 (consume_chars): On encoding unibyte text by raw-text, don't check
19522 multibyte form.
19523 (encode_coding): On encoding by raw-text, never use translation tables.
19524
19525 * fileio.c (e_write): Short cut for the case of no encoding.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * coding.c (detect_coding, detect_coding_system): Delete unused
19530 variables.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19535 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * coding.c (Ffind_coding_systems_region_internal): Include
19540 raw-text and no-conversion in the result.
19541
195422008-02-01 Kenichi Handa <handa@m17n.org>
19543
19544 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19545 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19546 FONT_DEF.
19547 (font_def_arg, add_arg, from_arg, to_arg): New args.
19548 (set_fontset_font): Change argument.
19549 (Fset_fontset_font): Fix for the case that TARGET is a script
19550 name and charset name.
19551 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19552
195532008-02-01 Kenichi Handa <handa@m17n.org>
19554
19555 * fontset.c (fontset_font): Rename from fontset_face. Change return
19556 value.
19557 (face_suitable_for_char_p, face_for_char): Adjust for the change
19558 of fontset_font.
19559 (make_fontset_for_ascii_face): Fix setting of the fontset element
19560 for ASCII.
19561 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19562 to get a font name.
19563 (Ffontset_info): Adjust for the change of fontset_font.
19564
19565 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19566
19567 * character.h (LEADING_CODE_LATIN_1_MIN)
19568 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19569
195702008-02-01 Kenichi Handa <handa@m17n.org>
19571
19572 * editfns.c (check_translation): New function.
19573 (Ftranslate_region_internal): Handle M:N mapping.
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19578
195792008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19582 goto invalid_code.
19583 (decode_coding_iso_2022): Fix handling of invalid designation.
19584
19585 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19586 after calling code_conversion_save.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19591
19592 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19593
19594 * fontset.c: Include "intervals.h".
19595 (fontset_face): Fix comparing of Lisp_Objects.
19596 (free_face_fontset, new_fontset_from_font_name): Fix
19597 Lisp_Object/int mixup.
19598
19599 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19600
19601 * coding.c: Add many prototypes for static functions.
19602 (get_translation_table): Allow max_lookup to be NULL.
19603 (decode_coding, Ffind_coding_systems_region_internal)
19604 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19605 get_translation_table with max_lookup NULL.
19606
196072008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * coding.c (get_translation_table): Declare it as Lisp_Object.
19610 (LOOKUP_TRANSLATION_TABLE): New macro.
19611 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19612 instead of CHAR_TABLE_REF.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19617 annotation data format.
19618 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19619 Change arguments FROM and TO to single argument NCHARS. Change caller.
19620 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19621 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19622 (decode_coding_ccl, decode_coding_charset): Pay attention to
19623 coding->charbuf_used.
19624 (get_translation): New function.
19625 (produce_chars): New arguments translation_table and last_block.
19626 Translate characters here. Return number of carryover chars.
19627 Change caller.
19628 (produce_composition): New argument pos. Change caller.
19629 Adjust for the change of annotation data format.
19630 (produce_charset, produce_annotation): Likewise.
19631 (decode_coding, encode_coding): Don't call translate_chars.
19632 (consume_chars): New arg translation_table. Change caller.
19633 (translate_chars): Delete.
19634 (syms_of_coding): Make translation-table's number of extra slots 2.
19635
196362008-02-01 Kenichi Handa <handa@m17n.org>
19637
19638 * search.c (simple_search): Fix setting this_pos_byte in backward
19639 search.
19640
19641 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19642 byte sequence.
19643 (detect_coding_ccl): Fix setting of the variable valids.
19644
196452008-02-01 Kenichi Handa <handa@m17n.org>
19646
19647 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19648
19649 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19650
19651 * editfns.c (Ftranslate_region_internal): Rename from
19652 Ftranslate_region. Accept a char-table in TABLE.
19653 (syms_of_editfns): Defsubr Stranslate_region_internal.
19654
19655 * xfaces.c (set_lface_from_font_name): If a font is specified for
19656 a frame, generate a fontset from the font.
19657 (build_scalable_font_name): If the scalable font is requested for
19658 a specific size, don't change that size.
19659 (try_font_list): Try a scalable font also in the case that a
19660 pattern string is specified.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * xfaces.c (Fface_font): New optional arg CHARACTER.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * charset.h (CHARSET_OFFSET): New macro.
19669
196702008-02-01 Kenichi Handa <handa@m17n.org>
19671
19672 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19673
19674 * fontset.c (fontset_face): Handle the case that repertory is a
19675 char-table.
19676 (find_font_encoding): Return nil for unknown encoding.
19677 (Fset_fontset_font): Ignore a font of unknown encoding.
19678
196792008-02-01 Kenichi Handa <handa@m17n.org>
19680
19681 * keymap.c (describe_vector): Handle default value of a char table.
19682
19683 * fontset.c (fontset_face): Handle fallback fonts correctly.
19684 (Ffontset_info): Return infomation about fallback fonts.
19685
196862008-02-01 Kenichi Handa <handa@m17n.org>
19687
19688 * fontset.c (FONTSET_DEFAULT): New macro.
19689 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19690 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19691 the case that it is nil.
19692 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19693 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19694
19695 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19696 subset or superset.
19697
196982008-02-01 Kenichi Handa <handa@m17n.org>
19699
19700 * emacs.c (main): Call init_charset after syms_of_XXX.
19701
19702 * charset.c (Vcharset_map_directory): Delete.
19703 (Vcharset_map_path): New variable.
19704 (load_charset_map_from_file): Use Vcharset_map_path instead.
19705 (init_charset): Initialize Vcharset_map_path.
19706 (syms_of_charset): Delete declaration of "charset-map-directory",
19707 add declaration of "charset-map-path".
19708
197092008-02-01 Kenichi Handa <handa@m17n.org>
19710
19711 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19712 ASCII only string.
19713
19714 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19715
19716 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19717 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19722
19723 * coding.c (QCmnemonic, QCdefalut_char)
19724 (QCdecode_translation_table, QCencode_translation_table)
19725 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19726 (get_translation_table): Return a list of translation tables if
19727 necessary.
19728 (decode_coding): Call get_translation_table with ENCODEP 0.
19729 (char_encodable_p): If translation_table is non-nil, always call
19730 translate_char.
19731 (Fdefine_coding_system_internal): Accept list of translation
19732 tables as :encode-translation-table and :decode-translation-table.
19733 (Fcoding_system_put): New function.
19734 (syms_of_coding): Declare new symbols. Defsubr
19735 Scoding_system_put.
19736 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19737 typically JISX0212.
19738
19739 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19740 when the charset is superset type.
19741
19742 * character.c (translate_char): Accept list of translation tables.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19747 (CODING_ATTR_TRANS_TBL): New macro.
19748
19749 * coding.c (get_translation_table): New function.
19750 (translate_chars): Fix the bug of skipping annotation data.
19751 (decode_coding, encode_coding): Utilize get_translation_table.
19752 (char_encodable_p, Funencodable_char_position): Translate char if
19753 necessary.
19754 (Ffind_coding_systems_region_internal)
19755 (Fcheck_coding_systems_region): Setup translation table for encode
19756 in a coding system attribute vector in advance.
19757 (Fdefine_coding_system_internal): Allow a symbol as translation
19758 table. For shift-jis type coding system, allow 4th charset.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19763
19764 * xdisp.c (get_next_display_element): Pass -1 as POS to
19765 FACE_FOR_CHAR if displaying a C-string.
19766
197672008-02-01 Kenichi Handa <handa@m17n.org>
19768
19769 * composite.c (get_composition_id): Handle xoff and yoff in a
19770 composition rule.
19771
19772 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19773 (struct composition): New member lbearing and rbearing.
19774
19775 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19776 (x_get_glyph_overhangs): Handle a composition glyph.
19777 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19778
19779 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19780 composition glyph.
19781
197822008-02-01 Kenichi Handa <handa@m17n.org>
19783
19784 * print.c: Include charset.h.
19785 (Vprint_charset_text_property): New variable.
19786 (Qdefault): Extern it.
19787 (PRINT_STRING_NON_CHARSET_FOUND)
19788 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19789 (print_check_string_result): New variable.
19790 (print_check_string_charset_prop): New function.
19791 (print_prune_charset_plist): New variable.
19792 (print_prune_string_charset): New function.
19793 (print_object): Call print_prune_string_charset if
19794 Vprint_charset_text_property is not t.
19795 (print_interval): Print nothing if interval->plist is nil.
19796 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19797 variable. Init and staticpro print_prune_charset_plist.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * fontset.c (new_fontset_from_font_name): Use the specified font
19802 for all characters in the new fontset.
19803
19804 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19805 OBJECT args.
19806
19807 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19808 OBJECT args for composition too.
19809
19810 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19811 OBJECT args.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19816
19817 * fontset.c (reorder_font_vector): Adjust for the change of
19818 FONT_DEF format.
19819 (fontset_face): New arg id. Change caller.
19820 (face_for_char): New args pos and object.
19821 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19822 (fs_query_fontset): Check NAME by Fassoc too.
19823 (Fset_fontset_font): Allow non-XLFD font name.
19824 (Ffontset_info): Adjust for the change of FONT_DEF format.
19825
19826 * fontset.h (face_for_char): Adjust prototype.
19827
19828 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19829 (append_space, extend_face_to_end_of_line)
19830 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19831 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19832
19833 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19834 POS and OBJECT args.
19835
19836 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19837 POS and OBJECT args.
19838
198392008-02-01 Jason Rumney <jasonr@gnu.org>
19840
19841 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19842 of GlobalAlloc'ed memory.
19843
198442008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19847
19848 * charset.h (charset_table_used): Delete extern.
19849
19850 * charset.c (charset_table_used): Make it static.
19851 (map_charset_chars): Fix args to c_function with.
19852
19853 * chartab.c (map_sub_char_table_for_charset): Fix args to
19854 c_function with.
19855
19856 * coding.h (enum coding_result_code): Delete
19857 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19858
19859 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19860 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19861 (Vlast_code_conversion_error): New variables.
19862 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19863 (ONE_MORE_BYTE): Record error if any instead of signaling an
19864 error. If non-ASCII multibyte char is found, return the negative
19865 value of the code. All callers changed to check it.
19866 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19867 (record_conversion_result): New function. Change all codes setting
19868 coding->result to call this function.
19869 (detect_coding_utf_8, decode_coding_utf_8)
19870 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19871 Don't use the local variable incomplete.
19872 (emacs_mule_char): Change the second arg to `const'.
19873 (decode_coding): Fix of flushing out unprocessed data.
19874 (make_conversion_work_buffer): Fix making of a work buffer.
19875 (decode_coding_object): Return coding->dst_object.
19876
19877 * fontset.c (set_fontset_font): Fix args.
19878
19879 * lisp.h (CHARACTERBITS): Define as 22.
19880
19881 * process.c (send_process): Be sure to set coding->src_multibyte.
19882
19883 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * xdisp.c (handle_auto_composed_prop): Give limit to
19888 Fnext_single_char_property_change.
19889
198902008-02-01 Kenichi Handa <handa@m17n.org>
19891
19892 * composite.c (syms_of_composite): Don't make the composition hash
19893 table weak.
19894
19895 * fontset.c (Fset_fontset_font): Fix docstring.
19896
19897 * lisp.h (detect_coding_system): Adjust prototype.
19898
19899 * fileio.c (kill_workbuf_unwind): Delete this function.
19900 (Finsert_file_contents): Adjust the call of detect_coding_system.
19901 Get conversion_buffer by code_conversion_save. Use the macro
19902 CODING_MAY_REQUIRE_DECODING. After decoding, update
19903 coding_system.
19904
19905 * coding.h (make_conversion_work_buffer): Delete extern.
19906 (code_conversion_save): Extern it.
19907
19908 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19909 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19910 (decode_coding_utf_8): Don't do eol converion.
19911 (detect_coding_utf_16): Check coding->src_chars, not
19912 coding->src_bytes. Add heuristics for those that have no signature.
19913 (decode_coding_emacs_mule, decode_coding_iso_2022)
19914 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19915 Don't do eol converion.
19916 (adjust_coding_eol_type): Return a new coding system.
19917 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19918 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19919 each change.
19920 (decode_coding): Pay attention to undo_list. Do eol conversion for
19921 all types of coding-systems (if necessary).
19922 (Vcode_conversion_work_buf_list): Delete it.
19923 (Vcode_conversion_reused_workbuf): Rename from
19924 Vcode_conversion_reused_work_buf.
19925 (Vcode_conversion_workbuf_name): New variable.
19926 (reused_workbuf_in_use): New variable.
19927 (make_conversion_work_buffer): Delete the arg DEPTH.
19928 (code_conversion_restore): Change argument to cons.
19929 (code_conversion_save): Delete the argument BUFFER. Change callers.
19930 (detect_coding_system): New argument src_chars. Change callers.
19931 Fix for utf-16 detection.
19932 (init_coding_once): Don't use ISO_carriage_return.
19933 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19934 reused_workbuf_in_use.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * keymap.c (store_in_keymap): Pay attention to the case that idx
19939 is a cons specifying a character range.
19940
199412008-02-01 Kenichi Handa <handa@m17n.org>
19942
19943 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19944 HANDLED_RECOMPUTE_PROPS.
19945
19946 * coding.c (Fdefine_coding_system_internal): Fix checking of
19947 ascii compatibility.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * charset.c (find_charsets_in_text): Delete unused locale variable.
19952 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19953
19954 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19955 Resync charset_list to Vemacs_mule_charset_list.
19956
19957 * keymap.c (store_in_keymap): Pay attention to the case that idx
19958 is a cons specifying a character range.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * composite.c (update_compositions): Bind inhibit-read-only, etc
19963 to t before calling remove-list-of-text-properties.
19964
19965 * print.c (print_object): Always print ASCII chars as is.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19970
19971 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19972 is a char table.
19973
199742008-02-01 Kenichi Handa <handa@m17n.org>
19975
19976 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19977
199782008-02-01 Kenichi Handa <handa@m17n.org>
19979
19980 * xfaces.c (set_lface_from_font_name): Fix for the case that
19981 FONTNAME is not fontset name.
19982
199832008-02-01 Kenichi Handa <handa@m17n.org>
19984
19985 * fns.c (base64_encode_1): Fix previous change.
19986
199872008-02-01 Kenichi Handa <handa@m17n.org>
19988
19989 * fontset.c (set_fontset_font): New function.
19990 (Fset_fontset_font): If a font is specified for a charset, use
19991 map_charset_chars to store the font spec in a fontset.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * fontset.c (fontset_face): Create a fallback fontset on demand.
19996 (make_fontset): Don't create a fallback fontset here.
19997 (free_face_fontset): Free a fallback fontset (if any) too.
19998 (n_auto_fontsets): Delete this variable.
19999 (auto_fontset_alist): New variable.
20000 (new_fontset_from_font_name): Check auto_fontset_alist.
20001 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20002 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20003 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20004 Defsubr Sfontset_list_all.
20005
200062008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20013
200142008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * editfns.c (Fgoto_char): Fix docstring.
20017
200182008-02-01 Kenichi Handa <handa@m17n.org>
20019
20020 * insdel.c (insert_from_gap): Adjust intervals correctly.
20021
200222008-02-01 Jason Rumney <jasonr@gnu.org>
20023
20024 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20025 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20026 (w32_initialize): Try to load it.
20027 (x_get_font_repertory): Use it if available.
20028 (w32_encode_char): Add shortcut for unicode output.
20029
20030 * w32fns.c (w32_load_system_font): Default charset to -1.
20031 (x_to_w32_charset): Match all fonts for unicode.
20032 (w32_to_x_charset): New parameter matching. Don't return partial
20033 or wildcard charsets.
20034 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20035 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20036 (w32_to_x_font): Match charset to real charset.
20037 (enum_font_cb2): Always list unicode versions.
20038
20039 * makefile.w32-in (temacs): Increase EMHEAP.
20040
200412008-02-01 Jason Rumney <jasonr@gnu.org>
20042
20043 * w32term.c (w32_encode_char): New charset parameter.
20044 font_info.encoding becomes encoding_type.
20045 (x_get_font_repertory): New function. Warning: stub only!
20046 (x_new_font): Return quickly if font already set.
20047 (x_new_fontset): fontsetname parameter is Lisp_Object.
20048 Use new fs_query_fontset. Try new_fontset_from_font_name.
20049 Use fontset_name for return value.
20050
20051 * w32term.h: Declare x_get_font_repertory.
20052
20053 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20054 place of find_charset_in_text. Use encode_coding_object in place
20055 of encode_coding.
20056 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20057 decode_coding.
20058
20059 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20060 of x_new_fontset.
20061 (w32_load_system_font): Initialize charset as unicode.
20062 font_info.encoding becomes encoding_type.
20063 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20064 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20065 (syms_of_w32fns): Set get_font_repertory_func.
20066
20067 * w32console.c: Include character.h. Use terminal_encode_buffer
20068 from term.c.
20069 (write_glyphs): Use new version of encode_terminal_code. Use
20070 encode_coding_object in place of encode_coding.
20071
20072 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20073 encoding becomes encoding_type.
20074
20075 * term.c (terminal_encode_buffer): Make externally visible.
20076
20077 * makefile.w32-in: Add character.h dependancies.
20078 (character.o, chartab.o): New targets.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20083 CODING_ID_EOL_TYPE.
20084
200852008-02-01 Andreas Schwab <schwab@suse.de>
20086
20087 * coding.c (produce_chars): Revert last change.
20088
200892008-02-01 Kenichi Handa <handa@m17n.org>
20090
20091 * charset.h (charset_unicode): Extern it.
20092
20093 * charset.c (string_xstring_p): Check by (C >= 0x100).
20094 (find_charsets_in_text): Change format of the arc CHARSETS. New
20095 arg MULTIBYTE.
20096 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20097 change of find_charsets_in_text.
20098 (Fsplit_char): Fix doc. Never return unknown.
20099
20100 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20101
20102 * coding.c (Fdefine_coding_system_alias): Update
20103 Vcoding_system_list.
20104
20105 * fontset.c (load_font_get_repertory): Pay attention to the case
20106 that ENCODING of a font is specified by a char-table.
20107
20108 * xterm.c (x_get_font_repertory): Handle the case that the
20109 encoding of font is other than Unicode.
20110
201112008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20114 if a character is encodable by the terminal coding system. If
20115 not, produces proper number of `?'s. Update
20116 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20117 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20122 variables.
20123 (encode_terminal_code): Change argument. Encode multiple
20124 characters at once. Store the result of encoding in
20125 terminal_encode_buffer.
20126 (write_glyphs, insert_glyphs): Adjust for the change of
20127 encode_terminal_code.
20128 (term_init): Initialize terminal_encode_buffer and
20129 terminal_encode_buf_size.
20130
20131 * coding.c (consume_chars): If coding->src_object is nil, don't
20132 check annotation.
20133
201342008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * character.c (char_string): Use ASCII_CHAR_P instead of
20137 SINGLE_BYTE_CHAR_P.
20138
201392008-02-01 Kenichi Handa <handa@m17n.org>
20140
20141 * xdisp.c (handle_auto_composed_prop): Check if the last
20142 characters of auto-composed region is newly composed with the
20143 following characters.
20144 (handle_composition_prop): Fix checking of point being inside
20145 composition.
20146
201472008-02-01 Kenichi Handa <handa@m17n.org>
20148
20149 * fns.c (concat): Don't change multibyteness of the result by
20150 concatenating an 8-bit character.
20151
20152 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20153 multibyteness of the result when newelt is an 8-bit character.
20154
201552008-02-01 Dave Love <fx@gnu.org>
20156
20157 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20158 EMACS_INT.
20159
20160 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20161
20162 * xfaces.c (face_numeric_value): Declare dim size_t.
20163 (Finternal_lisp_face_equal_p): Remove unused f.
20164
20165 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20166 (MATRIX_ROW): Remove unused vars.
20167 (draw_glyphs, x_insert_glyphs, fast_find_position)
20168 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20169 byte/char counts.
20170
20171 * regex.c (regex_compile): Remove unused var.
20172
20173 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20174
20175 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20176 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20177
20178 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20179
20180 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20181
20182 * fileio.c (Fwrite_region): Remove unused var.
20183
20184 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20185 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20186
20187 * composite.c (Fremove_list_of_text_properties): Declare.
20188
20189 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20190 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20191 (coding_inherit_eol_type): Remove unused attrs.
20192 (detect_coding): Cast arg of detect_eol.
20193
20194 * charset.c (syms_of_charset): Remove unused var p.
20195 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20196 byte/char counts.
20197
20198 * casetab.c (set_case_table): Remove unused var.
20199
20200 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20201 unused vars.
20202
202032008-02-01 Dave Love <fx@gnu.org>
20204
20205 * xterm.c (x_bitmap_mask): Declare.
20206
202072008-02-01 Dave Love <fx@gnu.org>
20208
20209 * xterm.c (x_term_init): Fix type error.
20210
20211 * lisp.h: Add Funibyte_char_to_multibyte.
20212
20213 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20214 (Fset_coding_system_priority): Doc fix.
20215
20216 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20217
20218 * indent.c (check_composition): Make start and end EMACS_INT.
20219
20220 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20221
20222 * xdisp.c (handle_composition_prop, check_point_in_composition):
20223 Make buffer positions EMACS_INT.
20224
20225 * composite.c (find_composition, run_composition_function)
20226 (update_compositions, Ffind_composition_internal): Make buffer
20227 positions EMACS_INT.
20228
20229 * composite.h (find_composition, update_compositions): Make
20230 position args EMACS_INT.
20231
20232 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20233
20234 * intervals.c (get_property_and_range):
20235 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20236
20237 * unexalpha.c: Don't include varargs.h.
20238
202392008-02-01 Dave Love <fx@gnu.org>
20240
20241 * coding.h (ENCODE_UTF_8): New.
20242
20243 * Makefile.in (gtkutil.o): Depend on coding.h.
20244
20245 * coding.c (Fset_coding_system_priority): Doc fix.
20246
202472008-02-01 Kenichi Handa <handa@m17n.org>
20248
20249 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20250 the case of auto saving.
20251
202522008-02-01 Andreas Schwab <schwab@suse.de>
20253
20254 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20255 `range' from GC.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * fileio.c (choose_write_coding_system): Return a decided coding system.
20264 (Fwrite_region): Set Vlast_coding_system_used to the return value
20265 of choose_write_coding_system.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * charset.c (Fset_charset_priority): Pay attention to duplicated
20270 arguments.
20271
20272 * coding.c (QCcategory): New variable.
20273 (syms_of_coding): Defsym it. Set all elements of
20274 Vcoding_category_table and their symbol values.
20275 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20276 coding-category-XXX, and coding-category-list.
20277 (Fdefine_coding_system_internal): Add category in the plist.
20278
202792008-02-01 Kenichi Handa <handa@m17n.org>
20280
20281 * callproc.c (Fcall_process): Handle carryover correctly.
20282
20283 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20284 (raw_text_coding_system): Check NILP (coding_system).
20285 (coding_inherit_eol_type): Check NILP (coding_system) and
20286 NILP (parent).
20287 (consume_chars): Fix for the case of raw-text.
20288
20289 * process.c (read_process_output): Handle carryover correctly.
20290
202912008-02-01 Dave Love <fx@gnu.org>
20292
20293 * regex.c (re_search_2): Fix last change.
20294
202952008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20298 target_multibyte. Even in a unibyte case, return a converted
20299 multibyte char.
20300 (GET_CHAR_AFTER): New macro.
20301 (PATFETCH): Translate via multibyte char.
20302 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20303 (SETUP_MULTIBYTE_RANGE): New macro.
20304 (regex_compile): Setup compiled code so that its multibyteness
20305 matches that of a target. Fix the handling of "[X-YZ]" using
20306 SETUP_MULTIBYTE_RANGE.
20307 (analyse_first) <charset>: For filling fastmap for all multibyte
20308 characters, don't check by BASE_LEADING_CODE_P.
20309 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20310 the same as RE_MULTIBYTE_P (bufp) now.
20311 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20312 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20313 (TRANSLATE_VIA_MULTIBYTE): New macro.
20314 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20315 It is the same as RE_MULTIBYTE_P (bufp) now.
20316 <exactn>: Translate via multibyte.
20317 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20318 translate it.
20319 <charset, charset_not>: Fetch a character by
20320 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20321 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20322 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20323 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20324 by GET_CHAR_AFTER.
20325 (bcmp_translate): Likewise.
20326
20327 * search.c (compile_pattern): Check the member target_multibyte,
20328 not the member multibyte of buf.
20329
20330 * lread.c (read1): While reading a string, set force_singlebyte
20331 and force_multibyte correctly.
20332
20333 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20334 up of unibyte_to_multibyte_table.
20335
203362008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * coding.c (setup_coding_system): If coding has
20339 post-read-conversion or pre-write-conversion, set
20340 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20341 respectively.
20342 (decode_coding_gap): Run post-read-conversion if any.
20343
20344 * fileio.c (Finsert_file_contents): Even if we read into a
20345 unibyte buffer, check if we must decode the result or not.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * coding.c (make_conversion_work_buffer): Change the work buffer
20350 name to the same one as that of Emacs 21.
20351
203522008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * coding.h (make_conversion_work_buffer): Adjust prototype.
20355 (code_conversion_restore): Don't extern it.
20356
20357 * coding.c (detected_mask): Delete unused variable.
20358 (decode_coding_iso_2022): Pay attention to the byte sequence of
20359 CTEXT extended segment, and retain those bytes as is.
20360 (decode_coding_ccl): Delete unused variable `valids'.
20361 (setup_coding_system): Delete unused variable `category'.
20362 (consume_chars): Delete unused variable `category'. Make it work
20363 for non-multibyte case.
20364 (make_conversion_work_buffer): Change argument.
20365 (saved_coding): Delete unused variable.
20366 (code_conversion_restore): Don't check saved_coding->destination.
20367 (code_conversion_save): New function.
20368 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20369 instead of record_unwind_protect.
20370 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20371 (detect_coding_system): Delete unused variable `mask'.
20372 (Fdefine_coding_system_internal): Delete unused variable id.
20373
20374 * fileio.c (kill_workbuf_unwind): New function.
20375 (Finsert_file_contents): On replacing, call
20376 make_conversion_work_buffer with correct args, and call
20377 record_unwind_protect with the first arg kill_workbuf_unwind.
20378
20379 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20380
203812008-02-01 Kenichi Handa <handa@m17n.org>
20382
20383 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20384 (fontset_add): Fix for the case that TO is less than TO1.
20385 (Ffontset_info): Don't use fallback fontset on checking the
20386 default fontset.
20387 (dump_fontset): New function for debugging.
20388
20389 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20390 coding_type is Qcharset.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20395 (map_char_table): Don't inherit the value from the parent on
20396 initializing VAL. Adjust for the above change.
20397
203982008-02-01 Kenichi Handa <handa@m17n.org>
20399
20400 * coding.c (Qsignature, Qendian): Delete these variables.
20401 (syms_of_coding): Don't initialize them.
20402 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20403 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20404 detect_info->found.
20405 (decode_coding_utf_16): Don't detect BOM here.
20406 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20407 is NOT utf_16_without_bom.
20408 (setup_coding_system): For a coding system of type utf-16, check
20409 if the attribute :endian is Qbig or not (not nil or not), and set
20410 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20411 (detect_coding): If coding type is utf-16 and BOM detection is
20412 required, detect it.
20413 (Fdefine_coding_system_internal): For a coding system of type
20414 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20415
204162008-02-01 Kenichi Handa <handa@m17n.org>
20417
20418 * coding.c (coding_set_source): Fix for the case that the current
20419 buffer is different from coding->src_object.
20420 (decode_coding_object): Don't use the conversion work buffer if
20421 DST_OBJECT is a buffer.
20422
204232008-02-01 Dave Love <fx@gnu.org>
20424
20425 * lread.c (read_emacs_mule_char) [len==2]: Index
20426 emacs_mule_charset correctly.
20427
204282008-02-01 Dave Love <fx@gnu.org>
20429
20430 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20431 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20432 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20433 treated specially.)
20434 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20435 (detected_mask): Remove Big5 bits.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 The following changes are to make the font rescaling facility
20440 compatible with Emacs 21.
20441
20442 * xfaces.c (Vface_font_rescale_alist): Rename from
20443 Vface_resizing_fonts.
20444 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20445 (font_rescale_ratio): Rename from font_resizing_ratio.
20446 (split_font_name): Set font->rescale_ratio.
20447 (better_font_p): Pay attention to font->rescale_ratio.
20448 (build_scalable_font_name): Likewise. Change RESX, and RESY
20449 fields.
20450 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20455 (Qutf_16_le): Remove these variables.
20456 (syms_of_coding): Don't DEFSYM them.
20457 (decode_coding_utf_16): Fix handling of BOM.
20458 (encode_coding_utf_16): Fix handling of BOM.
20459
204602008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * fileio.c (Finsert_file_contents): On replacing, before decoding
20463 the file into the work buffer, set point of the work buffer to the end.
20464
204652008-02-01 Dave Love <fx@gnu.org>
20466
20467 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20468
204692008-02-01 Dave Love <fx@gnu.org>
20470
20471 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20472 and fix C types.
20473
204742008-02-01 Kenichi Handa <handa@m17n.org>
20475
20476 * xdisp.c (SKIP_GLYPHS): New macro.
20477 (set_cursor_from_row): Pay attention to string display properties.
20478
20479 * category.c (copy_category_entry): Fix for the case that RANGE
20480 is an integer.
20481
20482 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20483
20484 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20485
204862008-02-01 Kenichi Handa <handa@m17n.org>
20487
20488 * charset.c (Fcharset_id_internal): New function.
20489 (syms_of_charset): Defsubr it.
20490
20491 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20492 with the last arg charset_list acquired from coding.
20493 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20494 the attribute coding_attr_ccl_valids.
20495
20496 * coding.h (enum define_coding_ccl_arg_index): Set the first
20497 member coding_arg_ccl_decoder to coding_arg_max.
20498
20499 * ccl.h (ccl_driver): Adjust prototype.
20500
20501 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20502 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20503 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20504 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20505 last arg Qnil.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20510 call encode_char.
20511
20512 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20513
205142008-02-01 Dave Love <fx@gnu.org>
20515
20516 * composite.c (syms_of_composite): Make composition_hash_table weak.
20517
205182008-02-01 Kenichi Handa <handa@m17n.org>
20519
20520 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20521 (font_name_registry): Don't extern them.
20522 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20523
20524 * fontset.h (Qfontset): Don't extern it.
20525 (new_fontset_from_font_name): Extern it.
20526
20527 * fontset.c: Give 8 extra slots to fontset objects.
20528 (Qfontset_info): New variable.
20529 (syms_of_fontset): Defsym it.
20530 (FONTSET_FALLBACK): New macro.
20531 (fontset_face): Try also the default fontset.
20532 (make_fontset): Realize a fallback fontset from the default fontset.
20533 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20534 using split_font_name_into_vector and build_font_name_from_vector.
20535 (Fset_fontset_font): Access the elements of font_spec by enum
20536 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20537 name by using split_font_name_into_vector.
20538 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20539 generate a proper font name from the fontset name. Update
20540 Vfontset_alias_alist.
20541 (n_auto_fontsets): New variable.
20542 (new_fontset_from_font_name): New function.
20543 (Ffont_info): Store the information about fonts generated from the
20544 default fontset in the first extra slot of the returned char-table.
20545
20546 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20547 (font_name_registry): Delete function.
20548 (split_font_name_into_vector): New function.
20549 (build_font_name_from_vector): New function.
20550 (font_list): The argument REGISTRY is now a list of registry names.
20551 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20552 specifies an explicit font name, return the name as is. Make a
20553 list of registy names.
20554
20555 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20556 of x_new_fontset.
20557 (Fx_create_frame): Don't call x_new_fontset here. Just use
20558 x_list_fonts to check the existence of fonts.
20559
20560 * xterm.h (x_new_fontset): Adjust prototype.
20561
20562 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20563 string. Use new_fontset_from_font_name to create a fontset from a
20564 font name.
20565
205662008-02-01 Kenichi Handa <handa@m17n.org>
20567
20568 * syntax.c (Vfind_word_boundary_function_table): New name for
20569 Vnext_word_boundary_function_table.
20570 (find-word-boundary-function-table): New name for
20571 next-word-boundary-function-table.
20572
205732008-02-01 Dave Love <fx@gnu.org>
20574
20575 * Makefile.in: Fix some dependencies.
20576
20577 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20578 set it to nil before returning.
20579
20580 * composite.c (update_compositions): Fix type error.
20581
20582 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * xterm.c (x_new_font): Optimize for the case that the font is
20587 already set for the frame.
20588
205892008-02-01 Kenichi Handa <handa@m17n.org>
20590
20591 * chartab.c (char_table_ascii): Check if the char table contents
20592 is sub-char-table or not.
20593 (char_table_set, char_table_set_range): Fix argument to
20594 char_table_ascii.
20595
20596 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20597 (detect_coding_utf_8, detect_coding_utf_16)
20598 (detect_coding_emacs_mule, detect_coding_iso_2022)
20599 (detect_coding_sjis, detect_coding_big5)
20600 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20601 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20602 sequence is valid in this coding system. Change callers.
20603 (MAX_ANNOTATION_LENGTH): New macro.
20604 (ADD_ANNOTATION_DATA): New macro.
20605 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20606 ADD_ANNOTATION_DATA. Change the format of annotation data.
20607 (ADD_CHARSET_DATA): New macro.
20608 (emacs_mule_char): New argument ID. Change callers.
20609 (decode_coding_emacs_mule, decode_coding_iso_2022)
20610 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20611 Produce charset annotation data in coding->charbuf.
20612 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20613 to charset annotation data in coding->charbuf.
20614 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20615 coding->common_flags if the coding system is iso-2022 based and
20616 uses designation.
20617 (produce_composition): Adjust for the new annotation data format.
20618 (produce_charset): New function.
20619 (produce_annotation): Handle charset annotation.
20620 (handle_composition_annotation, handle_charset_annotation): New
20621 functions.
20622 (consume_chars): Handle charset annotation. Utilize the above two
20623 functions.
20624 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20625 buffer, get the deleted text as a string and set
20626 coding->src_object to that string.
20627 (detect_coding, detect_coding_system): Use the new struct
20628 coding_detection_info.
20629
20630 * coding.h (struct coding_detection_info): New structure.
20631 (struct coding_system): Adjust prototype of the member `detector'.
20632 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20633
206342008-02-01 Kenichi Handa <handa@m17n.org>
20635
20636 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20637
206382008-02-01 Dave Love <fx@gnu.org>
20639
20640 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20641 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20642 to new local and nullify apropos_accumulate before returning.
20643 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20644
206452008-02-01 Kenichi Handa <handa@m17n.org>
20646
20647 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20648 correctly.
e3eea1fc 20649
aac0c6e3
MR
206502008-02-01 Dave Love <fx@gnu.org>
20651
20652 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20653
206542008-02-01 Kenichi Handa <handa@m17n.org>
20655
20656 The following changes are to make character composition happen
20657 automatically on displaying.
20658
20659 * Makefile.in (lisp, shortlisp): Add composite.elc.
20660
20661 * composite.h (Qauto_composed, Vauto_composition_function)
20662 (Qauto_composition_function): Extern them.
20663
20664 * composite.c (Vcomposition_function_table)
20665 (Qcomposition_function_table): Delete variables.
20666 (Qauto_composed, Vauto_composition_function)
20667 (Qauto_composition_function): New variables.
20668 (run_composition_function): Don't call
20669 compose-chars-after-function.
20670 (update_compositions): Clear `auto-composed' text property.
20671 (compose_chars_in_text): Delete this function.
20672 (syms_of_composite): Staticpro Qauto_composed and
20673 Qauto_composition_function. Declare Vauto_composition_function as
20674 a Lisp variable.
20675
20676 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20677
20678 * xdisp.c (it_props): Add an entry for Qauto_composed.
20679 (handle_auto_composed_prop): New function.
20680
20681 * xselect.c (selection_data_to_lisp_data): Don't call
20682 compose_chars_in_text.
20683
206842008-02-01 Dave Love <fx@gnu.org>
20685
20686 * keyboard.c (read_char): Modify checking around use of
20687 Vkeyboard_translate_table.
20688
20689 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20690 and fix C types.
20691
206922008-02-01 Kenichi Handa <handa@m17n.org>
20693
20694 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20695 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20696 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20697 the case that the last byte is '\r' correctly.
20698 (decode_coding): Flush out the unprocessed data correctly.
20699 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20700
207012008-02-01 Dave Love <fx@gnu.org>
20702
20703 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20704 Add XK_ISO... case.
20705 (xaw_scroll_callback): Revert last change.
20706
207072008-02-01 Kenichi Handa <handa@m17n.org>
20708
20709 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20710
207112008-02-01 Kenichi Handa <handa@m17n.org>
20712
20713 * xfaces.c (Vface_resizing_fonts): New variable.
20714 (struct font_name): New member `resizing_ratio'.
20715 (font_resizing_ratio): New function.
20716 (split_font_name): Set font->resizing_ratio.
20717 (better_font_p): Pay attention to font->resizing_ratio.
20718 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20719 RESX, and RESY fields.
20720 (try_alternative_families): Try scalable fonts if
20721 Vscalable_fonts_allowed is not Qt.
20722 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20723
207242008-02-01 Dave Love <fx@gnu.org>
20725
20726 * xterm.c (xaw_scroll_callback): Cast correctly.
20727
207282008-02-01 Dave Love <fx@gnu.org>
20729
20730 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20731 (lispy_kana_keys): Comment out.
20732 (make_lispy_event) [XK_kana_A]: Comment out.
20733
20734 * xterm.c (xaw_scroll_callback): Cast call_data.
20735 (XTread_socket): Deal with ASCII keysyms.
20736 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20737
207382008-02-01 Dave Love <fx@gnu.org>
20739
20740 * xterm.c (Vx_keysym_table): New.
20741 (syms_of_xterm): Initialize it.
20742 (XTread_socket): Use it.
20743 From head: Eliminate incorrect optimization that tried to avoid
20744 decoding the output of X*LookupString.
20745 (x_get_font_repertory): Delete charset declaration.
20746
207472008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20750 return 0.
20751 (Fdefine_coding_system_internal): Setup
20752 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20753
207542008-02-01 Dave Love <fx@gnu.org>
20755
20756 * coding.c (Fcheck_coding_system): Doc fix.
20757
20758 * editfns.c (Finsert_byte): Return a proper value.
20759
207602008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * coding.c (decode_coding): Fix args to translate_chars. Pay
20763 attention to Vstandard_translation_table_for_decode.
20764 (encode_coding): Fix args to translate_chars. Pay attention to
20765 Vstandard_translation_table_for_encode.
20766
20767 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20768 SINGLE_BYTE_CHAR_P.
20769
20770 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20771 not by SINGLE_BYTE_CHAR_P.
20772
20773 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20774 SINGLE_BYTE_CHAR_P.
20775
20776 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20777 SINGLE_BYTE_CHAR_P.
20778
20779 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20780 by SINGLE_BYTE_CHAR_P.
20781
20782 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20783 SINGLE_BYTE_CHAR_P.
20784
207852008-02-01 Dave Love <fx@gnu.org>
20786
20787 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20788
207892008-02-01 Dave Love <fx@gnu.org>
20790
20791 * fns.c (Flanginfo): Fix typo.
20792
20793 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20794
207952008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20798 (detect_coding_emacs_mule, detect_coding_iso_2022)
20799 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20800 incomplete byte sequence. Don't update *mask when correctly detected.
20801 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20802 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20803 (detect_coding, detect_coding_system): Adjust for the changes above.
20804
208052008-02-01 Kenichi Handa <handa@m17n.org>
20806
20807 * character.c (char_string): Rename from
20808 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20809 (string_char): Rename from string_char.
20810
20811 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20812 if C is greater than MAX_3_BYTE_CHAR.
20813 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20814 string_char instead of string_char_with_unification.
20815
208162008-02-01 Dave Love <fx@gnu.org>
20817
20818 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20819
208202008-02-01 Kenichi Handa <handa@m17n.org>
20821
20822 * keymap.c (push_key_description): Pay attention to force_multibyte.
20823
20824 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20825
208262008-02-01 Dave Love <fx@gnu.org>
20827
20828 * charset.c (define_charset_internal): Rename `supprementary'.
20829
20830 * Makefile.in (lisp, shortlisp): Remove latin-N.
20831
208322008-02-01 Dave Love <fx@gnu.org>
20833
20834 * xfns.c (x_window, x_window): Use use_xim.
20835
20836 * xterm.c (use_xim): Initialize.
20837 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20838 (x_term_init): Maybe set use_xim.
20839
20840 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * search.c (search_buffer): Fix case-fold-search of multibyte
20845 characters.
20846 (boyer_moore): Rename the last argument to char_high_bits.
20847
208482008-02-01 Kenichi Handa <handa@m17n.org>
20849
20850 * xdisp.c (display_string): Fix for the case of zero width glyph.
20851
20852 * xfns.c (x_set_font): Change the error message of the case that
20853 x_new_fontset returns Qt.
20854
20855 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20856 (Finternal_set_lisp_face_attribute): Use signal_error for the
20857 error of invalid fontset.
20858
20859 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20860 fontset, return Qt.
20861
208622008-02-01 Dave Love <fx@gnu.org>
20863
20864 * unexelf.c (unexec): Make .got handling not SGI-specific.
20865
20866 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20867
20868 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20869
20870 * keyboard.c (read_key_sequence): Fix type error.
20871
20872 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20873 type error.
20874
20875 * fontset.c (fontset_add): Return Lisp_Object.
20876
208772008-02-01 Dave Love <fx@gnu.org>
20878
20879 * charset.h (charset_ordered_list_tick): Declare extern.
20880
208812008-02-01 Kenichi Handa <handa@m17n.org>
20882
20883 The following changes (and some of 2008-02-01 changes of mine) are
20884 for handling syntax, category, and case conversion for unibyte
20885 characters by converting them to multibyte on the fly. With these
20886 changes, we don't have to setup syntax and case tables for unibyte
20887 characters in each language environment.
20888
20889 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20890 multibyte if necessary.
20891
20892 * bytecode.c (Fbyte_code): Likewise.
20893
20894 * character.h (LEADING_CODE_LATIN_1_MIN)
20895 (LEADING_CODE_LATIN_1_MAX): New macros.
20896 (unibyte_to_multibyte_table): Extern it.
20897 (unibyte_char_to_multibyte): New macro.
20898 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20899 (CHAR_LEADING_CODE): New macro.
20900 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20901
20902 * character.c (unibyte_to_multibyte_table): New variable.
20903 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20904 (multibyte_char_to_unibyte): If C is an eight-bit character,
20905 convert it to the corresponding byte value.
20906
20907 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20908 not 1, signals an error. Update the elements of
20909 unibyte_to_multibyte_table.
20910 (init_charset_once): Initialize unibyte_to_multibyte_table.
20911 (syms_of_charset): Define the charset `iso-8859-1'.
20912
20913 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20914 as is without converting it to unibyte. In a unibyte buffer,
20915 convert C to multibyte before checking the syntax.
20916
20917 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20918
20919 * minibuf.c (Fminibuffer_complete_word): Use the macro
20920 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20921
20922 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20923
20924 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20925 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20926 that is zero, convert an eight-bit char to multibyte.
20927 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20928 non-emacs case.
20929 (PATFETCH): Convert an eight-bit char to multibyte.
20930 (HANDLE_UNIBYTE_RANGE): New macro.
20931 (regex_compile): Setup the compiled pattern for multibyte chars
20932 even if the given regex string is unibyte. Use PATFETCH_RAW
20933 instead of PATFETCH in many places. To handle `charset'
20934 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20935 only for ASCII chars.
20936 (analyse_first) <exactn>: Simplify because the compiled pattern
20937 is multibyte.
20938 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20939 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20940 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20941 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20942 multibyte always 1.
20943 (re_search_2): In emacs, set the locale variable multibyte to 1,
20944 otherwise to 0. New local variable target_multibyte. Check it
20945 to decide the multibyteness of STR1 and STR2. If
20946 target_multibyte is zero, convert unibyte chars to multibyte
20947 before translating and checking fastmap.
20948 (TARGET_CHAR_AND_LENGTH): New macro.
20949 (re_match_2_internal): In emacs, set the locale variable multibyte
20950 to 1, otherwise to 0. New local variable target_multibyte. Check
20951 it to decide the multibyteness of STR1 and STR2. Use
20952 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20953 <charset, charset_not>: If multibyte is nonzero, check fastmap
20954 only for ASCII chars. Call bcmp_translate with
20955 target_multibyte, not with multibyte.
20956 <begline>: Declare the local variable C as `unsigned'.
20957 (bcmp_translate): Change the last arg name to target_multibyte.
20958
20959 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20960 the regexp pattern and the matching target. Set cp->buf.multibyte
20961 to the multibyteness of the regexp pattern. Set
20962 cp->but.target_multibyte to the multibyteness of the matching target.
20963 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20964 FETCH_STRING_CHAR_ADVANCE.
20965 (Freplace_match): Convert unibyte chars to multibyte.
20966
20967 * syntax.c (char_quoted, back_comment, scan_words)
20968 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20969 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20970 unibyte chars to multibyte.
20971 (skip_chars): Delete the arg syntaxp, and move the code for
20972 handling syntaxes to skip_syntaxes. Change callers.
20973 Fix the case that the multibyteness of STRING and the current
20974 buffer doesn't match.
20975 (skip_syntaxes): New function.
20976 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20977 SINGLE_BYTE_CHAR_P.
20978
209792008-02-01 Kenichi Handa <handa@m17n.org>
20980
20981 * xfaces.c (QCfontset): New variable.
20982 (LFACE_FONTSET): New macro.
20983 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20984 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20985 (Finternal_set_lisp_face_attribute)
20986 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20987 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20988 check also LFACE_FONTSET_INDEX.
20989 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20990 attrs[LFACE_FONT_INDEX].
20991 (syms_of_xfaces): Intern and staticpro QCfontset.
20992
20993 * dispextern.h (enum lface_attribute_index): New member
20994 LFACE_FONTSET_INDEX.
20995
20996 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20997
209982008-02-01 Kenichi Handa <handa@m17n.org>
20999
21000 * coding.c (coding_set_destination): Fix coding->destination for
21001 the case converting a region.
21002 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21003 (encode_coding_object): Fix coding->dst_pos and
21004 coding->dst_pos_byte for the case converting a region.
21005
21006 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21007
21008 * character.h (BYTE8_STRING): New macro.
21009
21010 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21011
210122008-02-01 Kenichi Handa <handa@m17n.org>
21013
21014 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21015 characters by octal form.
21016
21017 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21018
21019 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21020 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21021 _fetch_multibyte_char_len.
21022 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21023
21024 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21025
21026 * casefiddle.c (casify_object): Simplify. Handle the case that
21027 the case conversion change the byte length.
21028 (casify_region): Likewise.
21029
21030 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21031
21032 * character.c (_fetch_multibyte_char_len): Delete this variable.
21033 (syms_of_character): Setup Vprintable_chars.
21034
21035 * editfns.c (Fchar_equal): Fix for the unibyte case.
21036 (Finsert_byte): New function.
21037 (syms_of_editfns): Defsubr it.
21038
21039 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21040 of direct code 0x3ffff.
21041
21042 * search.c (Freplace_match): Fix for the unibyte case.
21043
210442008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * lread.c (safe_to_load_p): Fix the logic.
21047
21048 * syntax.c (scan_words): Don't treat characters belonging to
21049 different scripts as constituting a word.
21050
21051 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21052
21053 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21054
21055 * emacs.c (main): In the case of --unibyte, instead of aborting on
21056 finding non-empty buffer, make it unibyte.
21057
210582008-02-01 Kenichi Handa <handa@m17n.org>
21059
21060 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21061 to create a fontset.
21062
210632008-02-01 Dave Love <fx@gnu.org>
21064
21065 * character.c (Funibyte_char_to_multibyte): Doc fix.
21066
21067 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21068
210692008-02-01 Kenichi Handa <handa@m17n.org>
21070
21071 * fontset.c (fontset_add): Make the type `int'.
21072 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21073
21074 * character.c (unibyte_char_to_multibyte)
21075 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21076 charset_unibyte, not charset_primary.
21077
21078 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21079
21080 * charset.c (charset_unibyte): Rename from charset_primary.
21081 (Funibyte_charset): Rename from Fprimary_charset.
21082 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21083 (syms_of_charset): Adjust for the above changes.
21084
21085 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21086 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21087 it->multibyte_p is zero.
21088
21089 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21090 Delete extern.
21091
210922008-02-01 Kenichi Handa <handa@m17n.org>
21093
21094 * coding.c (Fdefine_coding_system_internal): Fix category setting
21095 for a coding system of type iso-2022.
21096
210972008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21100
211012008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * syntax.c (Vnext_word_boundary_function_table): New variable.
21104 (next-word-boundary-function-table): Declare it as a Lisp variable
21105 in syms_of_syntax.
21106 (scan_words): Call functions in Vnext_word_boundary_function_table
21107 if any.
21108
21109 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21110
21111 * fontset.c (fs_load_font): If fontp->charset is not negative,
21112 return fontp without setting its members.
21113
211142008-02-01 Dave Love <fx@gnu.org>
21115
21116 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21117
21118 * m/sparc.h (HAVE_ALLOCA): Delete.
21119
21120 * s/irix6-5.h: Don't include strings.h.
21121 (bcopy, bzero, bcmp): Don't undef.
21122
21123 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21124
21125 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21126 (TIOCSIGSEND): Don't test IRIX6.
21127 (bcopy, bzero, bcmp): Define conditionally.
21128
211292008-02-01 Kenichi Handa <handa@m17n.org>
21130
21131 * buffer.c (Qas, Qmake, Qto): New variables.
21132 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21133 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21134
21135 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21136 we are inserting a process output into a multibyte buffer.
21137
21138 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21139 multibyte_char_to_unibyte.
21140
21141 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21142 by the primary charset, make it eight-bit char.
21143 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21144
21145 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21146 (charset_8_bit__control, charset_8_bit_graphic)
21147 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21148 (define_charset_internal): New function.
21149 (syms_of_charset): Call define_charset_internal for pre-defined
21150 charsets.
21151
21152 * charset.h (charset_8_bit): Extern it.
21153
21154 * coding.c (make_conversion_work_buffer): Adjust for the change
21155 of Fset_buffer_multibyte.
21156 (encode_coding_raw_text): Increment p0 in the loop.
21157
21158 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21159
21160 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21161 for the change of Fset_buffer_multibyte.
21162
21163 * fns.c (Fstring_to_multibyte): New function.
21164 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21165
211662008-02-01 Dave Love <fx@gnu.org>
21167
21168 * xfns.c (x_put_x_image): Declare args.
21169
21170 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21171 (try_font_list): Declare an arg.
21172
21173 * xdisp.c (message2_nolog, set_message): Declare an arg.
21174
21175 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21176
21177 * syntax.c (scan_sexps_forward): Declare an arg.
21178
21179 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21180 Declare an arg.
21181
21182 * lisp.h (Fnew_fontset): Declare.
21183
21184 * keymap.c (push_key_description): Call CHARACTERP correctly.
21185
21186 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21187 (face_for_char): Delete unused vars.
21188 (Fset_fontset_font): Doc fix. Delete unused vars.
21189
21190 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21191
21192 * composite.c (update_compositions): Declare arg.
21193
21194 * cm.c (calccost, cmgoto): Declare args.
21195
21196 * charset.c: Remove `emacs' conditional. Doc fixes.
21197 (map_char_table_for_charset): Declare.
21198
21199 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21200
21201 * ccl.c: Remove `emacs' conditional.
21202
212032008-02-01 Kenichi Handa <handa@m17n.org>
21204
21205 The following changes are to allow specifying multiple font
21206 patterns for a character range (specified by script or charset).
21207
21208 * Makefile.in (abbrev.o): Depend on syntax.h.
21209 (xfaces.o): Depend on charset.h.
21210
21211 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21212 SINGLE_BYTE_CHAR_P.
21213
21214 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21215
21216 * character.h (Vchar_script_table): Extern it.
21217
21218 * character.c (Vscript_alist): Delete.
21219 (Vchar_script_table, Qchar_script_table): New variable.
21220 (syms_of_character): Declare Vchar_script_table as a lisp variable
21221 and initialize it.
21222
21223 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21224 have property char-table-extra-slots, make no extra slot.
21225
21226 * dispextern.h (struct face): Delete member `charset'.
21227 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21228 SINGLE_BYTE_CHAR_P.
21229 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21230 Add prototypes.
21231 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21232 (generate_ascii_font_name): Rename from generate_ascii_font.
21233
21234 * fontset.h (get_font_repertory_func): New prototype.
21235 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21236 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21237
21238 * fontset.c (Qprepend, Qappend): New variables.
21239 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21240 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21241 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21242 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21243 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21244 (load_font_get_repertory): New functions.
21245 (fontset_set): Delete.
21246 (fontset_face): New arg FACE. Return face ID, not face.
21247 Complete re-write to handle new fontset structure. Change caller.
21248 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21249 (face_for_char): Don't call lookup_face.
21250 (make_fontset_for_ascii_face): New arg FACE.
21251 (fs_load_font): New arg CHARSET_ID. Don't check
21252 Vfont_encoding_alist here.
21253 (find_font_encoding): New function.
21254 (list_fontsets): Use STRINGP, not ! NILP.
21255 (accumulate_script_ranges): New function.
21256 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21257 re-written to handle new fontset structure.
21258 (Ffontset_font): Return a copy of element.
21259 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21260 docstring of font-encoding-alist.
21261
21262 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21263 (Fset_fotset_font): Fix arguments to 5.
21264
21265 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21266
21267 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21268 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21269 (highlight_trailing_whitespace): Adjust for the change of
21270 lookup_named_face.
21271
21272 * xfaces.c: Include charset.h.
21273 (load_face_font): Delete argument C. Change caller.
21274 (generate_ascii_font_name): Rename from generate_ascii_font.
21275 (font_name_registry): New function.
21276 (cache_face): Store ascii faces before non-ascii faces in buckets.
21277 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21278 Lookup only ascii faces.
21279 (lookup_non_ascii_face): New function.
21280 (lookup_named_face): Delete argument C. Change caller.
21281 (lookup_derived_face): Delete argument C. Change caller.
21282 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21283 a string, just call font_list with it.
21284 (choose_face_font): Delete arguments FACE and C. New arg
21285 FONT_SPEC. Change caller.
21286 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21287 Change caller.
21288 (realize_non_ascii_face): New function.
21289 (realize_x_face): Call load_face_font here.
21290 (realize_tty_face): Delete argument C. Change caller.
21291 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21292 get a face ID.
21293 (dump_realized_face): Don't print charset of FACE.
21294
21295 * xfns.c (x_set_font): Always call x_new_fontset and
21296 store_frame_parameter.
21297 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21298 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21299
21300 * xterm.h (x_get_font_repertory): Extern it.
21301
21302 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21303 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21304 it->multibyte_p is zero.
21305 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21306 (x_new_fontset): If FONTSETNAME doesn't match any existing
21307 fontsets, create a new one.
21308 (x_get_font_repertory): New function.
21309
213102008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 * coding.c (Ffind_coding_systems_region_internal): Detect an
21313 ASCII only string correctly.
21314
21315 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21316 version is 0.
21317
213182008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * lread.c: Include "coding.h".
21321 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21322 (load_each_byte, unread_char): New variables.
21323 (readchar_backlog): Delete.
21324 (readchar): Return a character unless load_each_byte is nonzero.
21325 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21326 cons. If unread_char is not -1, simply return it.
21327 (unreadchar): Handle the case that readcharfun is
21328 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21329 (read_multibyte): Delete.
21330 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21331 (read_emacs_mule_char): New functions.
21332 (Fload): Even if the file doesn't have the extension ".elc", if
21333 safe_to_load_p returns a positive version number, assume that the
21334 file contains bytecompiled code. If the version is less than 22,
21335 load the file while decoding multibyte sequences by emacs-mule.
21336 (readevalloop): Don't use readchar_backlog.
21337 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21338 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21339 (read_escape): Delete the arg BYTEREP.
21340 (read1): Set load_each_byte to 1 temporarily while handling
21341 #@NUMBER. Don't call read_multibyte.
21342 (read_vector): Call Fread with a cons. If readcharfun is
21343 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21344 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21345 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21346 and Qload_force_doc_strings.
21347
213482008-02-01 Kenichi Handa <handa@m17n.org>
21349
21350 * xdisp.c (face_before_or_after_it_pos): Call
21351 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21352
213532008-02-01 Kenichi Handa <handa@m17n.org>
21354
21355 * character.h (TRAILING_CODE_P): New macro.
21356 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21357 (string_char_with_unification): Fix prototype.
21358 (Vscript_alist): Extern it.
21359
21360 * character.c (Vscript_alist): New variable.
21361 (string_char_with_unification, str_as_unibyte)
21362 (string_escape_byte8): Add `const' to local variables.
21363 (syms_of_character): Declare script-alist as a Lisp variable.
21364
21365 * charset.h (Vcharset_ordered_list): Extern it.
21366 (charset_ordered_list_tick): Extern it.
21367 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21368 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21369 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21370 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21371 (Funify_charset): Adjust for the change of Funify_charset.
21372
21373 * charset.c (charset_ordered_list_tick): New variable.
21374 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21375 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21376 deunify instead of unify a charset.
aac0c6e3
MR
21377 (string_xstring_p): Add `const' to local variables.
21378 (find_charsets_in_text): Add `const' to arguments and local variables.
21379 (encode_char): Adjust for the change of Funify_charset. Fix
21380 detecting of invalid code.
21381 (Fset_charset_priority): Increment charset_ordered_list_tick.
21382 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21383 and TO_CODE.
21384
21385 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21386 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21387 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21388 (decode_coding_ccl, consume_chars)
21389 (Ffind_coding_systems_region_internal)
21390 (Fcheck_coding_systems_region): Add `const' to local variables.
21391
21392 * print.c (print_object): Use octal form for printing the
21393 contents of a bool vector.
21394
213952008-02-01 Dave Love <fx@gnu.org>
21396
21397 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21398 <version == 20>: Refuse to load.
21399
214002008-02-01 Dave Love <fx@gnu.org>
21401
21402 * fns.c: Move coding.h.
21403 (Qcodeset, Qdays, Qmonths): New.
21404 (concat): Use CHARACTERP instead of INTEGERP.
21405 (Flocale_codeset): Delete.
21406 (Flanginfo): New function.
21407 (syms_of_fns): Change accordingly.
21408
21409 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21410
214112008-02-01 Dave Love <fx@gnu.org>
21412
21413 * casetab.c (init_casetab_once, init_casetab_once): Fix
21414 CHAR_TABLE_SET call.
21415
21416 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21417
21418 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21419
21420 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21421 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21422 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21423
21424 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21425
21426 * coding.c (ENCODE_DESIGNATION, decode_eol)
21427 (make_conversion_work_buffer, code_conversion_restore)
21428 (Fdefine_coding_system_internal): Convert Lisp types.
21429 (code_conversion_restore): Use EQ, not ==.
21430 (Fencode_coding_string): Fix code_convert_string call.
21431
21432 * coding.h (code_convert_region): Fix prototype.
21433
21434 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21435
21436 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21437 (Ffontset_info): Convert Lisp types.
21438
21439 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21440
21441 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21442
21443 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21444
21445 * chartab.c: Include "...h", not <...h> in some cases.
21446
21447 * callproc.c (Fcall_process): Remove unused variables.
21448
214492008-02-01 Dave Love <fx@gnu.org>
21450
21451 * coding.c (Fset_coding_system_priority): Allow null arg list.
21452
214532008-02-01 Dave Love <fx@gnu.org>
21454
21455 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21456 (Fself_insert_and_exit): Use CHARACTERP.
21457
21458 * callproc.c (Fcall_process): Remove unused vars.
21459
21460 * xterm.c (XTread_socket): Add extra dead keysyms.
21461
21462 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21463
21464 * dispextern.h: Remove prototypes for redraw_frame,
21465 redraw_garbaged_frames.
21466
21467 * cmds.c (Fself_insert_command): Use CHARACTERP.
21468
21469 * chartab.c (make_sub_char_table): Remove unused var.
21470 (Fset_char_table_default, Fmap_char_table): Doc fix.
21471
21472 * keymap.c (access_keymap): Remove generic char code.
21473 (push_key_description): Use CHARACTERP.
21474
214752008-02-01 Dave Love <fx@gnu.org>
21476
21477 * charset.c: Doc fixes.
21478 (Funify_charset): Extra checking.
21479
214802008-02-01 Dave Love <fx@gnu.org>
21481
21482 * lread.c: Remove some unused variables.
21483 (safe_to_load_p): If safe, return the magic number version byte.
21484 (Fload): Maybe use load-with-code-conversion.
21485
214862008-02-01 Kenichi Handa <handa@m17n.org>
21487
21488 * category.c (Fmodify_category_entry): Don't modify the contents
21489 of category_set for characters out of the range. Avoid
21490 unnecessary modification.
21491
21492 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21493 Vchar_unify_table. The default value of the table is now nil.
21494
21495 * character.c (syms_of_character): Setup Vchar_width_table for
21496 eight-bit-control and raw-byte chars.
21497
21498 * charset.h (enum define_charset_arg_index): Delete
21499 charset_arg_parents and add charset_arg_subset and
21500 charset_arg_superset.
21501 (enum charset_attr_index): Delete charset_parents and add
21502 charset_subset and charset_superset.
21503 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21504 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21505 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21506 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21507 (CHARSET_SUPERSET): New macros.
21508 (charset_work): Extern it.
21509 (ENCODE_CHAR): Use charset_work.
21510 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21511 (map_charset_chars): Extern it.
21512
21513 * charset.c (load_charset_map): Set the default value of encoder
21514 and deunifier char-tables to nil.
21515 (map_charset_chars): Change argument. Change callers. Use
21516 map_char_table_for_charset instead of map_char_table.
21517 (Fmap_charset_chars): New optional args from_code and to_code.
21518 (Fdefine_charset_internal): Adjust for the change of
21519 `define-charset' (:parents -> :subset or :superset).
21520 (charset_work): New variable.
21521 (encode_char, syms_of_charset): Adjust for the change of
21522 Fdefine_charset_internal.
21523 (Ffind_charset_string): Setup the vector `charsets' correctly.
21524
21525 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21526 the previous change.
21527 (char_table_ref_and_range): Adjust for the above change.
21528 (map_sub_char_table_for_charset): New function.
21529 (map_char_table_for_charset): New function.
21530
21531 * keymap.c (describe_vector): Handle a char-table directly here.
21532 (describe_char_table): Delete.
21533
21534 * lisp.h (map_charset_chars): Delete.
21535
215362008-02-01 Dave Love <fx@gnu.org>
21537
21538 * fns.c (count_combining): Comment out (unused).
21539 (Flocale_codeset): New.
21540 (syms_of_fns): Defsubr it.
21541
21542 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21543 (size_t): Remove.
21544
215452008-02-01 Dave Love <fx@gnu.org>
21546
21547 * Makefile.in (chartab.o): Depend on charset.h.
21548
215492008-02-01 Kenichi Handa <handa@m17n.org>
21550
21551 * character.c (syms_of_character): Set the default value of
21552 Vprintable_chars to Qnil.
21553
215542008-02-01 Dave Love <fx@gnu.org>
21555
21556 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21557
215582008-02-01 Kenichi Handa <handa@m17n.org>
21559
21560 * charset.c (load_charset_map): Handle the case that from < to
21561 correctly.
21562
21563 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21564 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21565 Pay attention to raw-8-bit chars.
21566
215672008-02-01 Kenichi Handa <handa@m17n.org>
21568
21569 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21570 It is not bytecompiled now.
21571
21572 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21573 (charset_jisx0208): New variables.
21574 (Fdefine_charset_internal): Setup them if appropriate.
21575 (init_charset_once): Initialize them to -1.
21576
21577 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21578 (charset_jisx0208): Extern them.
21579
21580 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21581 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21582 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21583 (setup_iso_safe_charsets): Fix arguments to Fassq.
21584 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21585 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21586 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21587 (encode_coding_iso_2022): Change the 1st arg to
21588 ENCODE_ISO_CHARACTER to a variable.
21589
215902008-02-01 Kenichi Handa <handa@m17n.org>
21591
21592 * charset.h (enum define_charset_arg_index): New enums
21593 charset_arg_min_code and charset_arg_max_code.
21594 (struct charset): New member char_index_offset.
21595
21596 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21597 Take charset->char_index_offset into account.
21598 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21599 args[charset_arg_max_code]. Setup charset.char_index_offset.
21600 (syms_of_charset): Fix args to Fdefine_charset_internal.
21601
216022008-02-01 Dave Love <fx@gnu.org>
21603
21604 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21605
216062008-02-01 Dave Love <fx@gnu.org>
21607
21608 * coding.c: Doc fixes.
21609 (Fcoding_system_aliases): Fix return value.
21610 (Qmac): Remove (duplicated) definition.
21611
216122008-02-01 Dave Love <fx@gnu.org>
21613
362654a6
JB
21614 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21615 New functions.
aac0c6e3
MR
21616
21617 * character.c (Fstring): Doc fix.
21618
21619 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21620
362654a6 21621 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21622 (font-encoding-alist): Doc fix.
21623
216242008-02-01 Dave Love <fx@gnu.org>
21625
21626 * term.c (costs_set): Declare static, non-initialized for pcc.
21627 (encode_terminal_code): Remove unused var.
21628
21629 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21630 for K&R.
21631
21632 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21633
21634 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21635 (suffixes): Move out of make_subsidiaries for K&R.
21636
21637 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21638
21639 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21640
216412008-02-01 Dave Love <fx@gnu.org>
21642
21643 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21644
21645 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21646
216472008-02-01 Yong Lu <lyongu@asia-infonet.com>
21648
21649 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21650
21651 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21652
216532008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21656 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21657
216582008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * coding.c (decode_coding_charset): Adjust for the change of
21661 Fdefine_coding_system_internal.
21662 (Fdefine_coding_system_internal): For a coding system of
21663 `charset' type, store a list of charset IDs in
21664 `charset_attr_charset_valids' element of coding attributes.
21665
216662008-02-01 Kenichi Handa <handa@m17n.org>
21667
21668 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21669 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21670 caller. Handle 2-byte and 3-byte charsets correctly.
21671 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21672 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21673 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21674 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21675 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21676 sequence.
21677 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21678 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21679 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21680 and alt&rule composition.
21681 (decode_coding_iso_2022): Handle composition correctly.
21682 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21683
21684 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21685 re-defining a charset. If the charset has :emacs-mule-id, setup
21686 emacs_mule_bytes.
21687 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21688
216892008-02-01 Kenichi Handa <handa@m17n.org>
21690
21691 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21692 (encode_coding_big5, encode_coding_charset): If coding requires safe
21693 encoding, produce a character specified by
21694 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21695
216962008-02-01 Dave Love <fx@gnu.org>
21697
21698 * xterm.c (XSetIMValues): Declare.
21699
21700 * process.c: Conditionally include sys/wait.h, pty.h.
21701
21702 * print.c (print_object): Fix print format for 64-bit systems.
21703
21704 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21705
21706 * buffer.c (emacs_strerror): Declare.
21707
21708 * fontset.c (Fclear_face_cache): Declare.
21709 (accumulate_font_info): Comment-out (unused).
21710 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21711 variables.
21712
21713 * character.h (string_escape_byte8): Declare.
21714
21715 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21716 unused vars.
21717 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21718 (Fmap_charset_chars): Doc fix.
21719
21720 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21721 (Fset_coding_system_priority, Fset_coding_system_priority)
21722 (Fdefine_coding_system_internal): Doc fix.
21723
217242008-02-01 Dave Love <fx@gnu.org>
21725
21726 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21727
217282008-02-01 Kenichi Handa <handa@m17n.org>
21729
21730 * character.c (string_escape_byte8): Make multibyte string with
21731 correct size.
21732
21733 * charset.c (Fmake_char): Delete unnecessary code.
21734
217352008-02-01 Kenichi Handa <handa@m17n.org>
21736
21737 * xfns.c (x_encode_text): Allocate coding.destination here, and
21738 call encode_coding_object with dst_object Qnil.
21739
21740 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21741 multibyte form correctly.
21742
21743 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21744 against Vfont_encoding_alist.
21745
21746 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21747 handling of charset list.
21748 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21749 (decode_coding_object): Move point to coding->dst_pos before
21750 calling post-read-conversion function.
21751 (encode_coding_object): Give correct arguments to
21752 pre-write-conversion. Ignore the return value of
21753 pre-write-conversion function. Pay attention to the case that
21754 pre-write-conversion changes the current buffer. If dst_object is
21755 Qt, even if coding->src_bytes is zero, allocate at least one byte
21756 to coding->destination.
21757
21758 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21759
21760 * charset.c (Fmake_char): Make it more backward compatible.
21761 (Fmap_charset_chars): Fix docstring.
21762
217632008-02-01 Dave Love <fx@gnu.org>
21764
21765 * coding.c: Doc fixes.
21766 (Fdefine_coding_system_alias): Use names, not symbols, in
21767 coding-system-alist.
21768
217692008-02-01 Kenichi Handa <handa@m17n.org>
21770
21771 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21772 of calling free_realized_face.
21773
217742008-02-01 Yong Lu <lyongu@asia-infonet.com>
21775
21776 * charset.c (read_hex): Don't treat SPC as a comment starter.
21777 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21778 (Fdecode_char): Fix typo.
21779
217802008-02-01 Kenichi Handa <handa@m17n.org>
21781
21782 * charset.h (struct charset): New member `code_space_mask'.
21783
21784 * coding.c (coding_set_source): Delete the local variable beg_byte.
21785 (encode_coding_charset, Fdefine_coding_system_internal):
21786 Delete the local variable charset.
21787 (Fdefine_coding_system_internal): Setup
21788 attrs[coding_attr_charset_valids] correctly.
21789
21790 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21791 member to check if CODE is valid or not.
21792 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21793 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21794 is within the range of charset->min_code and carset->max_code.
21795
217962008-02-01 Dave Love <fx@gnu.org>
21797
21798 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21799
21800 * dispextern.h (generate_ascii_font): Fix return type.
21801
21802 * xfaces.c (generate_ascii_font): Fix arg declaration.
21803
21804 * coding.c (coding_inherit_eol_type)
21805 (Fset_terminal_coding_system_internal)
21806 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21807
218082008-02-01 Kenichi Handa <handa@m17n.org>
21809
21810 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21811 multiple charsets correctly.
21812
218132008-02-01 Kenichi Handa <handa@m17n.org>
21814
21815 * search.c (boyer_moore): Fix handling of multibyte character
21816 translation.
21817
21818 * xdisp.c (display_mode_element): When the variable `elt' is
21819 changed, update `this' and `lisp_string'.
21820
218212008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21824
21825 * callproc.c (Fcall_process): Be sure to give the current buffer
21826 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21827
21828 * charset.c (struct charset_map_entries): New struct.
21829 (load_charset_map): Rename from parse_charset_map. New args
21830 entries and n_entries. Change caller.
21831 (load_charset_map_from_file): Rename from load_charset_map.
21832 Change caller. New arg control_flag. Call load_charset_map at
21833 the tail.
21834 (load_charset_map_from_vector): New function.
21835 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21836 (encode_char): If the charset is compact, change a character index
21837 to a code point.
21838
21839 * coding.c (coding_alloc_by_making_gap): Check the case that the
21840 source and destination are the same correctly.
21841 (decode_coding_raw_text): Set coding->consumed_char and
21842 coding->consumed to 0.
21843 (produce_chars): If coding->chars_at_source is nonzero, update
21844 coding->consumed_char and coding->consumed before calling
21845 alloc_destination.
21846 (Fdefine_coding_system_alias): Register ALIAS in
21847 Vcoding_system_alist.
21848 (syms_of_coding): Define `no-conversion' coding system at the tail.
21849
21850 * fileio.c (Finsert_file_contents): Set coding_system instead of
21851 val. If the current buffer is multibyte, always call
21852 decode_coding_gap.
21853
21854 * xfaces.c (try_font_list): Give higher priority to fontset's
21855 family than face's family.
21856
218572008-02-01 Kenichi Handa <handa@m17n.org>
21858
21859 * callproc.c (Fcall_process): Be sure to give the current buffer
21860 to decode_coding_c_string.
21861
21862 * xfaces.c (try_font_list): Give a family specified in a fontset
21863 higher priority than a family specified in a face.
21864
218652008-02-01 Kenichi Handa <handa@m17n.org>
21866
21867 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21868 Fix arguments to insert_from_buffer.
21869
21870 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21871
218722008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21875 (decode_coding_gap): Set coding->dst_multibyte correctly.
21876
218772008-02-01 Kenichi Handa <handa@m17n.org>
21878
21879 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21880 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21881 (encode_coding_utf_16): Substitute coding->default_char for
21882 non-Unicode characters.
21883 (decode_coding): Don't call record_insert here.
21884 (setup_coding_system): Initialize `surrogate' of
21885 coding->spec.utf_16 to 0.
21886 (EMIT_ONE_BYTE): Fix for multibyte case.
21887
21888 * insdel.c (insert_from_gap): Call record_insert.
21889
218902008-02-01 Kenichi Handa <handa@m17n.org>
21891
21892 * casefiddle.c (casify_region): Fix multibyte case.
21893
21894 * character.c (c_string_width): Add return type `int'.
21895 (char_string_with_unification): Delete arg ADVANCED.
21896
21897 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21898 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21899 (CHAR_STRING_ADVANCE): Make it do-while statement.
21900
21901 * chartab.c (sub_char_table_set_range): Optimize for the case
21902 DEPTH == 3. Add workaround code for a GCC optimization bug.
21903
21904 * charset.c (parse_charset_map): Remove an unused variable.
21905
21906 * coding.c: Delete unused variables.
21907
21908 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21909 earlier. If inserted is zero and the coding system doesn't
21910 require flushing, don't call decode_coding_gap.
21911
21912 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21913
219142008-02-01 Kenichi Handa <handa@m17n.org>
21915
21916 The following changes are for using Unicode as an internal
21917 character model, and use UTF-8 format for buffer/string
21918 representation.
21919
21920 * .gdbinit (xchartable): Adjust for the change of char table structure.
21921 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21922
21923 * Makefile.in (obj): Add character.o and chartab.o.
21924 (lisp, shortlisp): Remove utf-8.elc.
21925 (*.o): For many files, change dependency on charset.h to
21926 character.h, and add dependency on character.h.
21927 (character.o, chartab.o): New targets.
21928
21929 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21930 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21931 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21932 of "charset.h".
21933
21934 * dired.c, filelock.c: Include "character.h".
21935
21936 * alloc.c: Include "character.h" instead of "charset.h".
21937 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21938 (syms_of_alloc): Remove defsubr for Smake_char_table.
21939
21940 * buffer.c: Include "character.h" instead of "charset.h", don't
21941 include "coding.h".
21942 (Fset_buffer_multibyte): Adjust for UTF-8.
21943
21944 * buffer.h: EXFUN Fbuffer_live_p.
21945
21946 * callproc.c: Include "character.h" instead of "charset.h".
21947 (Fcall_process): Big change for the new code-conversion APIs.
21948
21949 * casetab.c: Include "character.h" instead of "charset.h".
21950 (set_canon, set_identity, shuffle): Adjust for the new
21951 map_char_table spec.
21952 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21953 accessing the char table structure.
21954
21955 * chartab.c: New file that implements char table.
21956
21957 * category.c: Include "character.h".
21958 (copy_category_entry): New function.
21959 (copy_category_table): Call map_char_table and copy_category_entry.
21960 (Fmake_category_table): Initialize all top-level slots.
21961 (char_category_set): New function.
21962 (modify_lower_category_set): Delete.
21963 (Fmodify_category_entry): Call char_table_ref_and_range.
21964
21965 * category.h (CATEGORY_SET): Just call char_category_set.
21966
21967 * ccl.c: Include "character.h".
21968 (Qccl, Qcclp): New variables.
21969 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21970 it's less than 256.
21971 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21972 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21973 and DST type.
21974 (ccl_driver): Change types of argument, adjust code accordingly.
21975 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21976 ccl_driver.
21977 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21978
21979 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21980 New members src_multibyte, dst_multibyte, consumed, and produced.
21981 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21982 (CODING_SPEC_CCL_PROGRAM): New macro.
21983 (ccl_driver): Update prototype.
21984 (Qccl, Qcclp, Fccl_program_p): Extern them.
21985 (CHECK_CCL_PROGRAM): New macro.
21986
21987 * character.c, character.h, chartab.c: New files.
21988
21989 * charset.c: Mostly re-written. Move character and multibyte sequence
21990 handling codes to character.c.
21991
21992 * charset.h: Mostly re-written. Move character and multibyte sequence
21993 handling codes to character.h.
21994
21995 * coding.c, coding.h: Mostly re-written.
21996
21997 * composite.c: Include "character.h" instead of "charset.h".
21998 (CHAR_WIDTH): Move to character.h.
21999 (HASH_KEY, HASH_VALUE): Delete.
22000
22001 * composite.h (enum composition_method): Change order of enumeration
22002 symbols.
22003
22004 * data.c: Include "character.h" instead of "charset.h".
22005 (Faref): Call CHAR_TABLE_REF for a char table.
22006 (Faset): Call CHAR_TABLE_SET for a char table.
22007
22008 * dispextern.h (free_realized_face, check_face_attribytes)
22009 (generate_ascii_font): Extern them.
22010 (free_realized_multibyte_face): Delete extern.
22011
22012 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22013 table structure.
22014
22015 * editfns.c: Include "character.h" instead of "charset.h".
22016 (Fchar_to_string): Always call CHAR_STRING.
22017
22018 * emacs.c (main): Call init_charset_once, init_charset,
22019 syms_of_chartab, and syms_of_character.
22020
22021 * fileio.c: Include "character.h" instead of "charset.h".
22022 (Finsert_file_contents): Big change for the new code-conversion API.
22023 (choose_write_coding_system, Fwrite_region): Likewise.
22024 (build_annotations_2): Delete.
22025 (e_write): Big change for the new code-conversion API.
22026
22027 * fns.c: Include "character.h" instead of "charset.h".
22028 (copy_sub_char_table): Move to chartab.c.
22029 (Fcopy_sequence): Call copy_char_table for a char table.
22030 (concat): Delete codes calling count_multibyte.
22031 (string_char_to_byte, string_byte_to_char): Adjust for the new
22032 multibyte form.
22033 (internal_equal): Adjust for the change of char table structure.
22034 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22035 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22036 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22037 (char_table_translate, optimize_sub_char_table)
22038 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22039 chartab.c.
22040 (char_table_ref_and_index): Delete.
22041 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22042 (Fmd5): Call preferred_coding_system instead of accessing
22043 Vcoding_category_list. Adjust for the new code-conversion API.
22044 (syms_of_fns): Move defsubr for char table related functions to
22045 chartab.c.
22046
22047 * fontset.c: Mostly re-written.
22048
22049 * fontset.h (struct font_info): Change type of the member encoding_type.
22050 (enum FONT_SPEC_INDEX): New enum.
22051 (fontset_font_pattern, fs_load_font): Update prototype.
22052 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22053
22054 * indent.c: Include "character.h" instead of "charset.h".
22055 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22056
22057 * insdel.c: Include "character.h" instead of "charset.h".
22058 (copy_text): Don't refer to Vnonascii_translation_table.
22059 (insert_from_gap): New function.
22060
22061 * keyboard.c: Include "character.h" instead of "charset.h".
22062 (command_loop_1): Never call direct_output_forward_char before
22063 a non-ASCII character.
22064 (read_char): If Vkeyboard_translate_table is a char table, always
22065 translate a character.
22066
22067 * keymap.c: Include "character.h".
22068 (store_in_keymap): Handle the case that IDX is a cons.
22069 (Fdefine_key): Handle the case that KEY is a cons and the car part
22070 is also a cons (range).
22071 (push_key_description): Adjust for the new character code.
22072 (describe_vector): Call describe_char_table for a char table.
22073 (describe_char_table): New function.
22074
22075 * keymap.h (describe_char_table): Extern it.
22076
22077 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22078 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22079 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22080 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22081 Delete.
22082 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22083 structure.
22084 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22085 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22086 (CHARTAB_SIZE_BITS_3): New macros.
22087 (chartab_size): Extern it.
22088 (struct Lisp_Char_Table): Re-design.
22089 (struct Lisp_Sub_Char_Table): New structure.
22090 (HASH_KEY, HASH_VALUE): Move from fns.c.
22091 (CHARACTERBITS): Define as 22.
22092 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22093 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22094 (GC_SUB_CHAR_TABLE_P): New macro.
22095 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22096 (code_convert_string_norecord): Deleted extern.
22097 (init_character_once, syms_of_character, init_charset)
22098 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22099
22100 * lread.c: Include "character.h".
22101 (read_multibyte): New arg NBYTES.
22102 (read_escape): Change the meaning of returned *BYTEREP.
22103 (to_multibyte): Delete.
22104 (read1): Adjust the handling of char table and string.
22105
22106 * print.c: Include "character.h" instead of "charset.h".
22107 (print_string): Convert 8-bit raw bytes to octal form by
22108 string_escape_byte8.
22109 (print_object): Adjust for the new multibyte form. Print 8-bit
22110 raw bytes always in octal form. Handle sub char table correctly.
22111
22112 * process.c: Include "character.h" instead of "charset.h".
22113 (read_process_output, send_process): Adjust for the new
22114 code-conversion API.
22115
22116 * puresize.h (BASE_PURESIZE): Increase.
22117
22118 * regex.c: Include "character.h" instead of "charset.h".
22119 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22120 (regex_compile): Accept a range whose starting and ending
22121 character have different leading bytes.
22122 (analyse_first): Adjust for the above change.
22123
22124 * search.c: Include "character.h" instead of "charset.h".
22125 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22126 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22127
22128 * syntax.c: Include "character.h" instead of "charset.h".
22129 (syntax_parent_lookup): Delete.
22130 (Fmodify_syntax_entry): Accept a cons as CHAR.
22131 (skip_chars): Adjust for the new multibyte form.
22132 (init_syntax_once): Call char_table_set_range instead of directly
22133 accessing the structure of a char table.
22134
22135 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22136 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22137 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22138 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22139
22140 * term.c: Include "buffer.h" and "character.h".
22141 (encode_terminal_code, write_glyphs): Adjust for the new
22142 code-conversion API.
22143 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22144
22145 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22146
22147 * xdisp.c: Include "character.h".
22148 (get_next_display_element): Adjust for the new multibyte form.
22149 (disp_char_vector): Adjust for the new char table structure.
22150 (decode_mode_spec_coding): Adjust for the new structure of
22151 coding system.
22152 (decode_mode_spec): Adjust for the new code-conversion API.
22153
22154 * xfaces.c: Include "character.h" instead of "charset.h".
22155 (load_face_font): Adjust for the change of choose_face_font and
22156 FS_LOAD_FONT.
22157 (generate_ascii_font): New function.
22158 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22159 (set_font_frame_param): Adjust for the change of choose_face_font.
22160 (free_realized_face): Make it public.
22161 (free_realized_faces_for_fontset): Rename from
22162 free_realized_multibyte_face. Free also faces realized for ASCII.
22163 (choose_face_font): Change arguments. Adjust for the change of
22164 fontset_font_pattern and FS_LOAD_FONT.
22165
22166 * xfns.c: Include "character.h".
22167 (x_encode_text): Adjust for the new code-conversion API.
22168
22169 * xselect.c: Don't include "charset.h".
22170 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22171
22172 * xterm.c: Include "character.h".
22173 (x_encode_char): New argument CHARSET. Change caller.
22174 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22175 Call ENCODE_CHAR instead of SPLIT_CHAR.
22176 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22177 CHAR_WIDTH instead of CHARSET_WIDTH.
22178 (XTread_socket): Adjust for the new code-conversion API.
22179 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22180 (x_load_font): Adjust for the change of struct font.
22181
221822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22183
22184 * xfaces.c (face_at_buffer_position): Remove unused vars.
22185
221862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22187
22188 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22189 Fix overflow checking.
22190
221912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22192
22193 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22194 Cancel previous change.
22195
221962008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22197
22198 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22199 ccl->eight_bit_control. Fix check for buffer overflow.
22200 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22201 (ccl_driver): Initialize extra_bytes to 0.
22202
222032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22204
22205 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22206 return it ORed with ctrl_modifier.
22207
222082008-01-29 Miles Bader <miles@gnu.org>
22209
22210 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22211
222122008-01-28 Jason Rumney <jasonr@gnu.org>
22213
22214 * w32.c (stat): Don't double check for networked drive.
22215
222162008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22217
22218 * window.c (run_window_configuration_change_hook): New function.
22219 Code extracted from set_window_buffer. Set the selected frame.
22220 (set_window_buffer): Use it.
22221 * window.h (run_window_configuration_change_hook): Declare.
22222 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22223
22224 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22225
222262008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22227
22228 * Makefile.in: Remove references to unused macros.
22229
222302008-01-26 Eli Zaretskii <eliz@gnu.org>
22231
22232 * w32.c (g_b_init_get_sid_sub_authority)
22233 (g_b_init_get_sid_sub_authority_count): New static variables.
22234 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22235 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22236 (init_user_info): Use them to retrieve uid and gid.
22237 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22238 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22239 st_uid and st_gid of the file.
22240
222412008-01-26 Jason Rumney <jasonr@gnu.org>
22242
22243 * w32.c (logon_network_drive): New function.
22244 (stat): Use it.
22245
222462008-01-26 Chong Yidong <cyd@stupidchicken.com>
22247
22248 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22249 invisible text covered with an ellipsis.
22250
222512008-01-25 Richard Stallman <rms@gnu.org>
22252
22253 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22254 jump back to beginning. Move some other initializations after that.
22255 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22256 New variables.
22257 (syms_of_xdisp): Init them.
22258
22259 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22260
22261 * buffer.c (reset_buffer_local_variables):
22262 Implement `permanent-local-hook'.
22263 (Qpermanent_local_hook): New variable.
22264 (syms_of_buffer): Init and staticpro it.
22265
222662008-01-25 Michael Albinus <michael.albinus@gmx.de>
22267
22268 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22269
222702008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22271
22272 * fns.c (Fclrhash): Return TABLE.
22273
222742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22275
22276 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22277 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22278 is set even without positional changes.
22279 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22280
22281 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22282
222832008-01-23 Jason Rumney <jasonr@gnu.org>
22284
22285 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22286
22287 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22288 the unicode range available in MULE by locale-coding-system.
22289 Improve dbcs lead byte detection. Set event timestamp and modifiers
22290 earlier.
22291
222922008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22293
22294 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22295 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22296 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22297 when used on child processes.
22298
222992008-01-21 Michael Albinus <michael.albinus@gmx.de>
22300
22301 * dbusbind.c (Fdbus_method_return_internal): Rename from
22302 Fdbus_method_return.
22303 (Fdbus_unregister_object): Move to dbus.el.
22304 (Fdbus_call_method, Fdbus_method_return_internal)
22305 (Fdbus_send_signal): Improve debug messages.
22306
223072008-01-20 Martin Rudalics <rudalics@gmx.at>
22308
22309 * undo.c (undo_inhibit_record_point): New variable.
22310 (syms_of_undo): Initialize it.
22311 (record_point): Don't record point when undo_inhibit_record_point
22312 is set.
22313
223142008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22315
22316 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22317
22318 * xdisp.c (Qauto_hscroll_mode): New var.
22319 (syms_of_xdisp): Initialize it.
22320 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22321 window's buffer.
22322 (hscroll_windows): Don't check automatic_hscrolling_p here.
22323
22324 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22325 vscroll if we're setting window-buffer to the value it already has.
22326
223272008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22328
22329 * m/intel386.h: Remove references to XENIX.
22330
223312008-01-17 Andreas Schwab <schwab@suse.de>
22332
22333 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22334 instead of HAVE_X86_64_LIB64_DIR.
22335 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22336
223372008-01-17 Glenn Morris <rgm@gnu.org>
22338
22339 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22340 to HAVE_X86_64_LIB64_DIR.
22341
223422008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22343
22344 * s/irix3-3.h:
22345 * s/irix4-0.h:
22346 * s/386-ix.h:
22347 * s/domain.h:
22348 * s/hpux9-x11r4.h:
22349 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22350
22351 * sysdep.c: Remove code containing references to symbols defined
22352 by unsupported systems.
22353
223542008-01-16 Glenn Morris <rgm@gnu.org>
22355
22356 * coding.c (select-safe-coding-system-function): Doc fix.
22357
223582008-01-15 Glenn Morris <rgm@gnu.org>
22359
22360 * config.in: Revert 2008-01-13 change: this is a generated file.
22361
223622008-01-13 Tom Tromey <tromey@redhat.com>
22363
22364 * lisp.h: Fix typo.
22365
223662008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22367
22368 * m/sequent-ptx.h:
22369 * m/sequent.h:
22370 * s/ptx.h:
22371 * s/ptx4-2.h:
22372 * s/ptx4.h: Remove files for systems no longer supported.
22373
22374 * callproc.c (Fcall_process): Fix previous change.
22375
223762008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22377
22378 * unexsunos4.c: Remove file, system not supported anymore.
22379
22380 * m/mips.h:
22381 * m/intel386.h:
22382 * callproc.c:
22383 * config.in:
22384 * ecrt0.c:
22385 * emacs.c:
22386 * fileio.c:
22387 * frame.c:
22388 * getpagesize.h:
22389 * keyboard.c:
22390 * lread.c:
22391 * process.c:
22392 * puresize.h:
22393 * sysdep.c:
22394 * systty.h:
22395 * syswait.h:
22396 * unexec.c:
22397 * xdisp.c:
22398 * alloc.c: Remove code containing references to symbols defined by
22399 unsupported systems.
22400
224012008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22402
22403 * coding.c (detect_coding_mask): Fix previous change.
22404
224052008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22406
22407 * coding.c (detect_coding_iso2022): New arg
22408 latin_extra_code_state. Allow Latin extra codes only
22409 when *latin_extra_code_state is nonzero.
22410 (detect_coding_mask): If there is a NULL byte, detect the encoding
22411 as UTF-16 or binary. If Latin extra codes exist, detect the
22412 encoding as ISO-2022 only when there's no other proper encoding is
22413 found.
22414
224152008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22416
22417 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22418 #ifdef MAC_OS.
22419
224202008-01-08 Richard Stallman <rms@gnu.org>
22421
22422 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22423
224242008-01-06 Nick Roberts <nickrob@snap.net.nz>
22425
22426 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22427 menu bar in parentheses.
22428
224292008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22430
22431 * m/7300.h:
22432 * m/acorn.h:
22433 * m/alliant-2800.h:
22434 * m/alliant.h:
22435 * m/alliant1.h:
22436 * m/alliant4.h:
22437 * m/altos.h:
22438 * m/amdahl.h:
22439 * m/apollo.h:
22440 * m/att3b.h:
22441 * m/aviion-intel.h:
22442 * m/aviion.h:
22443 * m/celerity.h:
22444 * m/clipper.h:
22445 * m/cnvrgnt.h:
22446 * m/convex.h:
22447 * m/cydra5.h:
22448 * m/delta88k.h:
22449 * m/dpx2.h:
22450 * m/dual.h:
22451 * m/elxsi.h:
22452 * m/f301.h:
22453 * m/gould-np1.h:
22454 * m/gould.h:
22455 * m/i860.h:
22456 * m/ibmps2-aix.h:
22457 * m/ibmrt-aix.h:
22458 * m/ibmrt.h:
22459 * m/irist.h:
22460 * m/is386.h:
22461 * m/isi-ov.h:
22462 * m/mega68.h:
22463 * m/mg1.h:
22464 * m/news-r6.h:
22465 * m/news-risc.h:
22466 * m/news.h:
22467 * m/nh3000.h:
22468 * m/nh4000.h:
22469 * m/ns16000.h:
22470 * m/ns32000.h:
22471 * m/nu.h:
22472 * m/orion.h:
22473 * m/orion105.h:
22474 * m/paragon.h:
22475 * m/pfa50.h:
22476 * m/plexus.h:
22477 * m/pyramid.h:
22478 * m/pyrmips.h:
22479 * m/sh3el.h:
22480 * m/sps7.h:
22481 * m/sr2k.h:
22482 * m/stride.h:
22483 * m/sun1.h:
22484 * m/sun2.h:
22485 * m/sun3-68881.h:
22486 * m/sun3-fpa.h:
22487 * m/sun3-soft.h:
22488 * m/sun3.h:
22489 * m/sun386.h:
22490 * m/symmetry.h:
22491 * m/tad68k.h:
22492 * m/tahoe.h:
22493 * m/targon31.h:
22494 * m/tek4300.h:
22495 * m/tekxd88.h:
22496 * m/tower32.h:
22497 * m/tower32v3.h:
22498 * m/ustation.h:
22499 * m/wicat.h:
22500 * m/xps100.h:
22501 * s/cxux.h:
22502 * s/cxux7.h:
22503 * s/dgux.h:
22504 * s/dgux4.h:
22505 * s/dgux5-4-3.h:
22506 * s/dgux5-4r2.h:
22507 * s/esix.h:
22508 * s/esix5r4.h:
22509 * s/hiuxmpp.h:
22510 * s/hiuxwe2.h:
22511 * s/iris3-5.h:
22512 * s/iris3-6.h:
22513 * s/isc2-2.h:
22514 * s/isc3-0.h:
22515 * s/isc4-0.h:
22516 * s/isc4-1.h:
22517 * s/newsos5.h:
22518 * s/newsos6.h:
22519 * s/osf1.h:
22520 * s/osf5-0.h:
22521 * s/riscix1-1.h:
22522 * s/riscix12.h:
22523 * s/sco4.h:
22524 * s/sco5.h:
22525 * s/sunos4-0.h:
22526 * s/sunos4-1.h:
22527 * s/sunos413.h:
22528 * s/sunos4shr.h:
22529 * s/umax.h:
22530 * s/unipl5-2.h:
22531 * s/xenix.h:
22532 * cxux-crt0.s:
22533 * unexapollo.c:
22534 * unexconvex.c:
22535 * unexenix.c:
22536 * unexsni.c: Remove files for systems no longer supported.
22537
22538 * m/intel386.h: Remove references to unsupported systems.
22539
22540 * w32.c (get_emacs_configuration): Remove reference to i860.
22541
22542 * sysdep.c: Remove dead code.
22543
225442008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22545
22546 * s/rtu.h:
22547 * m/masscomp.h: Remove files. Platform is obsolete.
22548
225492008-01-04 Michael Albinus <michael.albinus@gmx.de>
22550
22551 * dbusbind.c (Fdbus_method_return): New function.
22552 (xd_read_message): Add the serial number to the event.
22553 (Fdbus_register_method): Activate the function.
22554
225552008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22556
22557 * keyboard.c (read_key_sequence): Fix typo.
22558
225592008-01-03 Michael Albinus <michael.albinus@gmx.de>
22560
22561 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22562 (xd_signature, xd_append_arg): Handle element type detection for
22563 empty arrays.
22564 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22565 SDATA () calls; this must be solved more general.
22566 (Fdbus_register_signal): Use SBYTES instead of strlen.
22567
225682008-01-03 Magnus Henoch <magnus@zemdatav>
22569
22570 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22571 unsigned int for byte values (necessary for big-endian platform).
22572 (Fdbus_call_method): Handle the case of no returned arguments.
22573
225742007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22575
22576 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22577
225782007-12-31 Magnus Henoch <mange@freemail.hu>
22579
22580 * dbusbind.c (xd_signature): Signature of variant is just "v".
22581
225822007-12-30 Michael Albinus <michael.albinus@gmx.de>
22583
22584 * dbusbind.c: Fix several errors and compiler warnings.
22585 Reported by Tom Tromey <tromey@redhat.com>.
22586 (XD_ERROR, XD_DEBUG_MESSAGE)
22587 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22588 (xd_append_arg): Part for basic D-Bus types rewritten.
22589 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22590 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22591 appropriate.
22592 (xd_read_message): Return Qnil. Don't signal an error; it is not
22593 useful during event reading.
22594 (Fdbus_register_signal): Signal an error if the check for
22595 FUNCTIONP fails.
22596 (Fdbus_register_method): New function. The implementation is not
22597 complete, the call of the function signals an error therefore.
22598 (Fdbus_unregister_object): New function, renamed from
22599 Fdbus_unregister_signal. The initial check signals an error, if
22600 the object is not well formed.
22601
226022007-12-30 Richard Stallman <rms@gnu.org>
22603
22604 * textprop.c (get_char_property_and_overlay):
22605 Signal error if POSITION is out of range in a buffer.
22606
226072007-12-29 Martin Rudalics <rudalics@gmx.at>
22608
22609 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22610 because the original parameters are in pure storage now.
22611
226122007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22613
22614 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22615
226162007-12-22 Eli Zaretskii <eliz@gnu.org>
22617
22618 * callint.c (syms_of_callint) <command-history>: Add reference to
22619 history-length in the doc string.
22620
226212007-12-17 Jason Rumney <jasonr@gnu.org>
22622
22623 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22624 before passing as wParam.
22625
226262007-12-22 Michael Albinus <michael.albinus@gmx.de>
22627
22628 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22629 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22630 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22631 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22632 as number.
22633 (Fdbus_call_method): Fix docstring.
22634
226352007-12-21 Michael Albinus <michael.albinus@gmx.de>
22636
22637 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22638 New macros.
22639 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22640 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22641 Simplify.
22642 (xd_signature): New function.
22643 (xd_append_arg): Compute also signatures. Major rewrite.
22644 (xd_retrieve_arg): Make debug messages friendly.
22645 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22646 Check for signatures of arguments.
22647
226482007-12-19 Michael Albinus <michael.albinus@gmx.de>
22649
22650 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22651 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22652 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22653 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22654 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22655 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22656 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22657 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22658 (xd_retrieve_value): Remove. Functionality included in ...
22659 (xd_append_arg): New function.
22660 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22661
226622007-12-16 Michael Albinus <michael.albinus@gmx.de>
22663
22664 * dbusbind.c (top): Include <stdio.h>.
22665 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22666 dbus_message_new_method_call and dbus_message_new_signal.
22667 (Fdbus_register_signal): Rename unique_name to uname.
22668 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22669 non-existing unique name. Fix typos in matching rule. Return an
22670 object which is useful in Fdbus_unregister_signal.
22671 (Fdbus_unregister_signal): Reimplementation, in order to remove
22672 only the corresponding entry.
22673 (Vdbus_registered_functions_table): Change the order of entries.
22674 Apply these changes in xd_read_message and Fdbus_register_signal.
22675
226762007-12-16 Andreas Schwab <schwab@suse.de>
22677
22678 * fileio.c (Finsert_file_contents): Fix overflow check to not
22679 depend on undefined integer overflow.
22680
226812007-12-14 Jason Rumney <jasonr@gnu.org>
22682
22683 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22684 for characters above 127.
22685
226862007-12-13 Jason Rumney <jasonr@gnu.org>
22687
22688 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22689 before dereferencing array.
22690 (lookup_vk_code): Remove zero comparison.
22691
226922007-12-14 Michael Albinus <michael.albinus@gmx.de>
22693
22694 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22695 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22696 Use `unsigned int' instead of `uint'.
22697 (xd_read_message, Fdbus_register_signal): Split expressions into
22698 multiple lines before operators "&&" and "||", according to the
22699 GNU Coding Standards.
22700
227012007-12-14 Eli Zaretskii <eliz@gnu.org>
22702
22703 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22704
227052007-12-12 Juri Linkov <juri@jurta.org>
22706
22707 * buffer.c (Frename_buffer): In interactive spec replace
22708 `read-buffer' with `read-string' that uses `buffer-name-history'
22709 as history, and the current buffer's name as default.
22710
227112007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22712
22713 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22714 manipulating the backtrace manually.
22715 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22716 (struct backtrace, backtrace_list): Remove.
22717 (command_loop_1): Remove dead var `no_direct'.
22718
22719 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22720 preserve non-built-in buffer-local variables.
22721 (Fkill_all_local_variables): Don't re-create&re-set permanent
22722 buffer-local variables.
22723
227242007-12-09 Juri Linkov <juri@jurta.org>
22725
22726 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22727 Lisp code that uses `read-buffer' with current buffer as default.
22728
227292007-12-08 Michael Albinus <michael.albinus@gmx.de>
22730
22731 * dbusbind.c (xd_read_message): Generate an event for every
22732 registered handler. There might be several handlers registered
22733 for the same signal.
22734 (Fdbus_register_signal): Don't overwrite a registration for the
22735 same signal. Add a new registration if handlers are different.
22736 (Vdbus_registered_functions_table): Rework doc string.
22737
227382007-12-07 Michael Albinus <michael.albinus@gmx.de>
22739
22740 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22741 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22742 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22743 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22744 Unify argument lists.
22745 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22746 arguments and hash table keys. Use unique name for service.
22747 (Fdbus_unregister_signal): Remove checks.
22748 (Vdbus_registered_functions_table): Fix doc string.
22749
227502007-12-05 Magnus Henoch <mange@freemail.hu>
22751
22752 * process.c (make_process): Initialize pty_flag to 0.
22753
227542007-12-05 Jason Rumney <jasonr@gnu.org>
22755
22756 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22757 specified XBMs.
22758
227592007-12-05 Richard Stallman <rms@gnu.org>
22760
22761 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22762
227632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22764
22765 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22766 New variable.
22767 (mac_try_close_socket) [MAC_OSX]: New function.
22768 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22769 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22770
22771 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22772 Use mac_try_close_socket.
22773
227742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22775
22776 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22777 reloc_base.
22778 (copy_dysymtab): Compute relocation base here.
22779 (rebase_reloc_address) [__ppc64__]: New function.
22780 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22781 changed.
22782
227832007-12-05 Jason Rumney <jasonr@gnu.org>
22784
22785 * w32proc.c (sys_spawnve): Quote args with wildcards.
22786
227872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22788
22789 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22790 __objc_* sections.
22791 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22792
227932007-12-05 Michael Albinus <michael.albinus@gmx.de>
22794
22795 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22796 Move check for Vdbus_registered_functions_table to
22797 xd_read_queued_messages.
22798 (xd_read_queued_messages): Protect xd_read_message calls by
22799 internal_condition_case_1.
22800
228012007-12-04 Michael Albinus <michael.albinus@gmx.de>
22802
22803 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22804 Qdbus_system_bus and Qdbus_session_bus, respectively.
22805 (Vdbus_intern_symbols): Remove.
22806 (Vdbus_registered_functions_table): New hash table.
22807 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22808 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22809 Rewrite in order to manage registered functions by hash table
22810 Vdbus_registered_functions_table.
22811
228122007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22813
22814 * xterm.c: Update URL to Window Manager Specification in comment.
22815
228162007-12-02 Michael Albinus <michael.albinus@gmx.de>
22817
22818 * config.in (HAVE_DBUS): Add.
22819
22820 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22821 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22822 (obj): Add $(DBUS_OBJ).
22823 (LIBES): Add $(DBUS_LIBS).
22824 (dbusbind.o): New target.
22825
22826 * dbusbind.c: New file.
22827
22828 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22829
22830 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22831 (Qdbus_event): New Lisp symbol.
22832 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22833 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22834 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22835
22836 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22837
228382007-12-01 Richard Stallman <rms@gnu.org>
22839
22840 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22841
228422007-11-30 Jason Rumney <jasonr@gnu.org>
22843
22844 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22845 (w32con_reset_terminal_modes): Clear screen buffer.
22846 (w32_face_attributes): Don't use color indexes that are out of range.
22847 Only reverse the default colors.
22848
22849 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22850 WINDOWSNT.
22851
22852 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22853
228542007-11-29 Jason Rumney <jasonr@gnu.org>
22855
22856 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22857 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22858 if the terminal colors are initialized.
22859 (unspecified_fg, unspecified_bg): Remove unused declarations.
22860
228612007-11-29 Andreas Schwab <schwab@suse.de>
22862
22863 * keyboard.c (apply_modifiers): Fix typo.
22864
228652007-11-29 Richard Stallman <rms@gnu.org>
22866
22867 * keymap.c (Fcurrent_local_map): Doc fix.
22868
228692007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22870
22871 * s/gnu-kfreebsd.h: New file.
22872
228732007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22874
22875 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22876 Don't cast redundantly.
22877
22878 * keyboard.c (KEY_TO_CHAR): New macro.
22879 (parse_modifiers, apply_modifiers): Accept integer arguments.
22880 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22881 for chars and symbol keys.
22882 After doing such remapping, apply function-key-map again.
22883
228842007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22885
22886 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22887 compiled anymore.
22888
228892007-11-26 Andreas Schwab <schwab@suse.de>
22890
22891 * process.c (list_processes_1): Fix indentation level of the
22892 command column.
22893
228942007-11-23 Andreas Schwab <schwab@suse.de>
22895
22896 * editfns.c (Fformat): Handle %c specially since it requires the
22897 argument to be of type int.
22898
228992007-11-23 Markus Triska <markus.triska@gmx.at>
22900
22901 * emacs.c (main): Call init_editfns before init_process, since
22902 init_process sets Vprocess_connection_type depending on OS release.
22903
229042007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22905
22906 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22907 (find_symbol_value): Use do_symval_forwarding.
22908
22909 * data.c (set_internal): Set the value in the `cons-cell' (for
22910 Buffer_Local_values) not only for frame-local variables.
22911
229122007-11-22 Andreas Schwab <schwab@suse.de>
22913
22914 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22915 values to sprintf.
22916 * keymap.c (Fsingle_key_description): Likewise.
22917 * print.c (print_object): Likewise.
22918
229192007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22920
22921 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22922 file for image is nil.
22923
229242007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22925
22926 * term.c: Include stdarg.h.
22927 (fatal): Implement using varargs.
22928 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22929
229302007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22931
22932 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22933 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22934 Update call to buffer_slot_type_mismatch.
22935 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22936 (buffer_slot_type_mismatch): Update.
22937 * buffer.c (buffer_local_types): Remove.
22938 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22939 (defvar_per_buffer): Set the type in the buffer_objfwd.
22940
229412007-11-21 Jason Rumney <jasonr@gnu.org>
22942
22943 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22944 CreateFileMapping returns NULL on failure.
22945
229462007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22947
22948 * search.c (Fset_match_data): Remove the `evaporate' feature.
22949 (unwind_set_match_data): Don't use the `evaporate' feature.
22950
229512007-11-21 Jason Rumney <jasonr@gnu.org>
22952
22953 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22954
22955 * w32console.c (w32con_write_glyphs): Remove unused variables.
22956
229572007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22958
22959 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22960
22961 * s/darwin.h (MULTI_KBOARD): Remove.
22962
22963 * macfns.c (x_create_tip_frame, Fx_create_frame)
22964 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22965
229662007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22967
22968 * buffer.c (Fbuffer_local_value): Remove redundant test.
22969 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22970 than in `current-buffer' to match the comment.
22971 Do the swap using swap_in_global_binding.
22972
22973 * data.c (store_symval_forwarding, set_internal):
22974 * eval.c (specbind): Remove dead code.
22975
22976 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22977 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22978 Since we do not want to see internal Lisp_*fwd objects here.
22979
229802007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22981
22982 * sysdep.c (init_system_name): Use getaddrinfo if available.
22983
22984 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22985 (x_scroll_bar_note_movement): start, end, with, height in struct
22986 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22987
229882007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22989
22990 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22991
229922007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22993
22994 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22995 This undoes Richard's change of 14-Oct-2002.
22996
22997 * alloc.c (allocate_other_vector):
22998 * lisp.h (allocate_other_vector): Remove.
22999
23000 * window.c (struct save_window_data): Move non-lisp data to the end
23001 and make it `int' rather than Lisp_Object.
23002 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23003 Done wrap/unwrap integer values.
23004 (Fset_window_configuration, compare_window_configurations):
23005 Update use of fields to their new types.
23006
23007 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23008 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23009 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23010 (SET_SCROLL_BAR_X_WINDOW): Remove.
23011 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23012 Access the new x_window field directly.
23013 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23014 Don't wrap/unwrap integers into Lisp_Objects.
23015 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23016 (x_scroll_bar_report_motion):
23017 Don't wrap/unwrap integers into Lisp_Objects.
23018 (x_term_init): Use SDATA.
23019 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23020 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23021 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23022 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23023 * xfns.c (x_set_background_color):
23024 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23025 Access the new x_window field directly.
23026
23027 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23028 (allocate_pseudovector): Make non-static.
23029
23030 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23031 (allocate_pseudovector): Declare.
23032 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23033
230342007-11-15 Andreas Schwab <schwab@suse.de>
23035
23036 * editfns.c (Fformat): Correctly format EMACS_INT values.
23037 Also take precision into account when formatting an integer.
23038
23039 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23040
230412007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23042
23043 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23044 (syms_of_keyboard): Defsubr it.
23045
23046 * data.c (swap_in_global_binding): Fix longstanding bug where
23047 store_symval_forwarding was not called with the right second argument,
23048 thus causing objfwd-ing from being dropped.
23049
230502007-11-14 Juanma Barranquero <lekktu@gmail.com>
23051
23052 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23053 (Fx_display_pixel_height, Fx_display_planes)
23054 (Fx_display_color_cells, Fx_server_max_request_size)
23055 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23056 (Fx_display_visual_class, Fx_display_save_under):
23057 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23058 (Fx_display_pixel_height, Fx_display_planes)
23059 (Fx_display_color_cells, Fx_server_max_request_size)
23060 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23061 (Fx_display_mm_height, Fx_display_mm_width)
23062 (Fx_display_backing_store, Fx_display_visual_class)
23063 (Fw32_select_font, Fx_display_save_under):
23064 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23065 (Fx_display_pixel_height, Fx_display_planes)
23066 (Fx_display_color_cells, Fx_server_max_request_size)
23067 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23068 (Fx_display_save_under): Fix typos in docstrings.
23069
230702007-11-14 Juanma Barranquero <lekktu@gmail.com>
23071
23072 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23073 corresponding to deleted entries; they are an implementation detail.
23074 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23075 Remove variables.
23076 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23077 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23078 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23079 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23080 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23081 (Fw32_define_rgb_color, Fw32_load_color_file)
23082 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23083 Fix typos in docstrings.
23084 (Fx_server_version): Reflow docstring.
23085 (Fw32_shell_execute): Doc fixes.
23086
230872007-11-13 Juanma Barranquero <lekktu@gmail.com>
23088
23089 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23090 if w32_parse_hot_key returned nil.
23091
230922007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23093
23094 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23095
230962007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23097
aac0c6e3
MR
23098 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23099
23100 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23101
23102 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23103 Remove W32_SCROLL_BAR_CLICK_EVENT.
23104
23105 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23106 Add MULTIMEDIA_KEY_EVENT.
23107
23108 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23109 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23110 (make_lispy_event) [WINDOWSNT]: Use it to translate
23111 MULTIMEDIA_KEY_EVENT.
23112
23113 * w32term.h (WM_APPCOMMAND): Define if not already.
23114 (GET_APPCOMMAND_LPARAM): Likewise.
23115
23116 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23117 WM_APPCOMMAND.
23118
23119 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23120 (syms_of_w32fns): Export and initialize it.
23121 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23122
231232007-11-09 Chong Yidong <cyd@stupidchicken.com>
23124
23125 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23126 twice.
23127
23128 * xdisp.c (handle_face_prop): Fix last change.
23129
231302007-11-09 Richard Stallman <rms@gnu.org>
23131
23132 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23133 not just for after-strings and before-strings.
23134 Call face_for_overlay_string and pass the overlay to it.
23135 (handle_display_prop): Determine whether property came from an overlay.
23136 Pass OVERLAY arg to handle_single_display_spec.
23137 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23138 (load_overlay_strings): Fill in it->string_overlays.
23139 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23140
23141 * xfaces.c (face_for_overlay_string): Function renamed from
23142 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23143
23144 * dispextern.h (struct it): New elt string_overlays.
23145 New elt from_overlay, also in stack.
23146 Rearrange a few elements.
23147 (face_for_overlay_string): Decl renamed from
23148 face_at_buffer_position_no_overlays, and add argument.
23149
231502007-11-09 Richard Stallman <rms@gnu.org>
23151
23152 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23153 to get the base face for an overlay string.
23154
23155 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23156
23157 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23158
23159 * xdisp.c (handle_stop): Move some code out of loop.
23160
231612007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23162
23163 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23164 Fix conversion from Lisp object to ATSUFontID.
23165
231662007-11-09 Jason Rumney <jasonr@gnu.org>
23167
23168 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23169
231702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23171
23172 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23173 Don't assume regions are aligned to page boundary.
23174 (print_load_command_name): Add LC_UUID if defined.
23175
231762007-11-09 Richard Stallman <rms@gnu.org>
23177
23178 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23179
231802007-11-07 Jason Rumney <jasonr@gnu.org>
23181
23182 * s/windows95.h: Remove.
23183
231842007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23185
23186 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23187 abort with a message on unhandled store_type values.
23188
231892007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23190
23191 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23192 Remove HAVE_X11R5 and HAVE_X11R4.
23193
231942007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23195
23196 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23197
231982007-11-01 Johan Bockgård <bojohan@gnu.org>
23199
23200 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23201 Don't set s->stippled_p here, since it has already been set by
23202 x_set_glyph_string_gc from x_draw_glyph_string.
23203
232042007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23205
23206 * sunfns.c: Remove file.
23207
23208 * m/sun386.h:
23209 * m/sun2.h:
23210 * m/sparc.h: Remove Sun windows code.
23211
232122007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23213
23214 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23215 (init_keyboard): Set current_kboard's window-system to nil.
23216 (tty_read_avail_input): Typo.
23217 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23218
232192007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23220
23221 * s/usg5-4.h:
23222 * s/usg5-3.h:
23223 * s/ptx.h:
23224 * m/is386.h:
23225 * m/ibmps2-aix.h:
23226 * Makefile.in: Remove all mentions of X10.
23227
23228 * dispnew.c (syms_of_display): Don't mention version 10.
23229
232302007-10-28 Juanma Barranquero <lekktu@gmail.com>
23231
23232 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23233 ($(BLD)/abbrev.$(O)): Remove.
23234
232352007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23236
23237 Rewrite abbrev.c in Elisp.
23238 * image.c (Qcount): Don't declare as extern.
23239 (syms_of_image): Initialize and staticpro `Qcount'.
23240 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23241 * emacs.c (main): Don't call syms_of_abbrev.
23242 * Makefile.in (obj): Remove abbrev.o.
23243 (abbrev.o): Remove.
23244 * abbrev.c: Remove.
23245
232462007-10-26 Martin Rudalics <rudalics@gmx.at>
23247
23248 * window.c (window_min_size_2): Don't count header-line.
23249
232502007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23251
23252 * frame.h (struct frame): Move all bit fields after the first bit
23253 field to take advantage of the available space. Group all the
23254 chars together to reduce wasted space due to padding.
23255
232562007-10-26 Juanma Barranquero <lekktu@gmail.com>
23257
23258 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23259
23260 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23261 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23262 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23263 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23264 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23265 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23266 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23267 (last_marked, mark_object_loop_halt): Make static.
23268
23269 * frame.c (syms_of_frame) <delete-frame-functions>:
23270 Fix typo in docstring.
23271
232722007-10-25 Juanma Barranquero <lekktu@gmail.com>
23273
23274 * w32.c (init_environment): Fix tiny memory leak.
23275 (w32_get_resource): Remove unused variable `ok'.
23276
232772007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23278
23279 Make `window-system' into a keyboard-local variable (rather than
23280 frame-local as done originally by multi-tty).
23281
23282 * keyboard.h (struct kboard): Add Vwindow_system.
23283 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23284 (mark_kboards): Mark Vwindow_system.
23285
23286 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23287 (init_display): Don't set the obsolete `window-system' frame-param.
23288
23289 * xterm.c (x_term_init):
23290 * w32term.c (w32_create_terminal):
23291 * term.c (init_tty): Set Vwindow_system.
23292 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23293 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23294
23295 * xfns.c (Fx_create_frame, x_create_tip_frame):
23296 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23297 * macfns.c (Fx_create_frame):
23298 Don't set the obsolete `window-system' frame-param.
23299
23300 * frame.h (Qwindow_system): Remove.
23301 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23302 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23303
233042007-10-24 Richard Stallman <rms@gnu.org>
23305
23306 * frame.c (x_figure_window_size): For fullscreen case,
23307 set USPosition | PPosition without clobbering rest of window_prompting.
23308
23309 * keyboard.c (Fcurrent_idle_time): Doc fix.
23310
23311 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23312
233132007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23314
23315 * process.c (unwind_request_sigio): Only define if __ultrix__.
23316
23317 * callproc.c (child_setup): Remove spurious *.
23318
23319 * lisp.h (Fget_text_property): Declare.
23320 (have_menus_p): Declare it here rather than in sys-dep header files.
23321 * macterm.h (have_menus_p):
23322 * msdos.h (have_menus_p):
23323 * xterm.h (have_menus_p): Remove.
23324
23325 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23326 (Fmake_variable_frame_local): Just check the variable's const-ness
23327 rather than checking nil or t.
23328
233292007-10-22 Jason Rumney <jasonr@gnu.org>
23330
23331 * w32fns.c: Include math.h.
23332 (w32_abort): Declaration moved to nt/config.nt.
23333
23334 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23335 (abort): Redefinition moved to nt/config.nt.
23336
23337 * m/windowsnt.h: Remove.
23338
233392007-10-22 Juanma Barranquero <lekktu@gmail.com>
23340
23341 * emacs.c (Fdump_emacs): Fix typo in message.
23342 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23343 <installation-directory>: Reflow docstring.
23344
233452007-10-22 Juri Linkov <juri@jurta.org>
23346
23347 * minibuf.c: Allow minibuffer default to be a list of default values.
23348 With empty input use the first element of this list as returned default.
23349 (string_to_object)
23350 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23351 (read_minibuf): If defalt is cons, set histstring to its car.
23352 (Fread_string): If default_value is cons, set val to its car.
23353 (Fread_buffer): If def is cons, use its car.
23354 (Fcompleting_read): If defalt is cons, set val to its car.
23355
233562007-10-21 Michael Albinus <michael.albinus@gmx.de>
23357
23358 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23359
233602007-10-20 Juanma Barranquero <lekktu@gmail.com>
23361
23362 * doc.c (Fdocumentation): Check for advice in all cases.
23363
233642007-10-19 Chong Yidong <cyd@stupidchicken.com>
23365
23366 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23367
233682007-10-19 Richard Stallman <rms@gnu.org>
23369
23370 * doc.c (Fdocumentation): Check for and handle an advised function.
23371
233722007-10-19 Juanma Barranquero <lekktu@gmail.com>
23373
23374 * process.c (Fset_process_filter): Doc fix.
23375
233762007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23377
23378 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23379 which caused key-translation-map to applied repeatedly (thus breaking
23380 double-mode).
23381
233822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * xselect.c (x_own_selection, x_handle_selection_clear)
23385 (x_clear_frame_selections):
23386 * w32menu.c (list_of_panes, list_of_items):
23387 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23388 * textprop.c (validate_plist, interval_has_all_properties)
23389 (interval_has_some_properties, interval_has_some_properties_list)
23390 (add_properties, text_property_list):
23391 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23392 * minibuf.c (Fassoc_string):
23393 * macselect.c (x_own_selection, x_clear_frame_selections)
23394 (Fx_disown_selection_internal):
23395 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23396 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23397
233982007-10-17 Chong Yidong <cyd@stupidchicken.com>
23399
23400 * process.c: Link to libs for calling res_init() if available.
23401 (Fmake_network_process): Call res_init() before getaddrinfo or
23402 gethostbyname, if possible.
23403
234042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23405
23406 * lread.c (read1): Set pvectype for char_tables.
23407
23408 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23409 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23410 Add type checks.
23411 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23412
23413 * alloc.c (free_misc): Use XMISCTYPE.
23414 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23415
234162007-10-17 Glenn Morris <rgm@gnu.org>
23417
23418 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23419 (syms_of_minibuf): Add Qcompletion_ignore_case.
23420 * dired.c (Qcompletion_ignore_case): Change to external.
23421 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23422 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23423 (Fread_file_name): Use it rather than intern'ing.
23424
23425 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23426 (Fread_coding_system): Ignore case of user input.
23427
234282007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23429
23430 * xdisp.c (handle_display_prop): Ignore display specs after
23431 replacing one when string text is being replaced.
23432 (handle_single_display_spec): Pretend as if characters with display
23433 property haven't been consumed only when buffer text is being replaced.
23434
234352007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * xfns.c (Fx_create_frame, Fx_display_list):
23438 * window.c (window_fixed_size_p, enlarge_window)
23439 (shrink_window_lowest_first):
23440 * macterm.c (init_font_name_table):
23441 * macfns.c (Fx_create_frame, Fx_display_list):
23442 * lread.c (close_load_descs):
23443 * keyboard.c (read_char_x_menu_prompt):
23444 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23445 * coding.c (code_convert_region_unwind): Test the type of an object
23446 rather than just !NILP before extracting data from it.
23447
23448 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23449
23450 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23451 (XMISCANY): New macro.
23452 (XMISCTYPE): Use it.
23453 (struct Lisp_Misc_Any): New type.
23454 (union Lisp_Misc): Use it.
23455 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23456 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23457 (find_symbol_value, set_internal, default_value, Fset_default)
23458 (Fmake_variable_buffer_local, Fmake_local_variable)
23459 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23460 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23461 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23462 * alloc.c (allocate_buffer): Set the size and tag.
23463 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23464 Use XMISCANY.
23465 (die): Follow the GNU convention for error messages.
23466 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23467 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23468 tag any more.
23469 (set_buffer_internal_1):
23470 * frame.c (store_frame_param):
23471 * eval.c (specbind):
23472 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23473
23474 * doc.c (Fsnarf_documentation): Simplify.
23475
234762007-10-14 Juanma Barranquero <lekktu@gmail.com>
23477
23478 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23479 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23480
234812007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23482
23483 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23484
234852007-10-14 Juanma Barranquero <lekktu@gmail.com>
23486
23487 * eval.c (do_autoload): Don't save autoloads.
23488
23489 * data.c (Ffset): Save autoload of the function being set.
23490
234912007-10-07 John Paul Wallington <jpw@pobox.com>
23492
23493 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23494 parameter before setting up faces.
23495
234962007-10-13 Eli Zaretskii <eliz@gnu.org>
23497
23498 * ccl.c (Fregister_code_conversion_map):
23499 * keyboard.c (append_tool_bar_item): Reformat last change.
23500
23501 * lisp.h (eabs): Rename from `abs'. All callers changed.
23502
235032007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23504
23505 * buffer.c (add_overlay_mod_hooklist):
23506 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23507 * fontset.c (make_fontset):
23508 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23509 (append_tool_bar_item):
23510 * macmenu.c (grow_menu_items):
23511 * w32menu.c (grow_menu_items):
23512 * xmenu.c (grow_menu_items): Use larger_vector.
23513
235142007-10-13 Eli Zaretskii <eliz@gnu.org>
23515
23516 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23517 selected frame'' on MSDOS).
23518
235192007-10-12 Martin Rudalics <rudalics@gmx.at>
23520
23521 * frame.c (Qexplicit_name): New variable.
23522 (x_report_frame_params): Report it in parameter alist.
23523 (syms_of_frame): Intern and staticpro it.
23524
235252007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23526
23527 * macfns.c (x_create_tip_frame): Set terminal for frame.
23528
235292007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23530
23531 * frame.c (Qenvironment): Remove.
23532 (syms_of_frame) <Qenvironment>: Don't initialize.
23533 (Fdelete_frame): Don't treat the `environment' param specially.
23534 * frame.h (Qenvironment): Don't declare.
23535 * callproc.c (set_initial_environment): Don't set unused frame param.
23536
23537 * frame.c (Fframe_with_environment): Remove.
23538 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23539
23540 * lisp.h (Fframe_with_environment): Don't declare.
23541
235422007-10-10 Juanma Barranquero <lekktu@gmail.com>
23543
23544 * indent.c (indent_tabs_mode, last_known_column)
23545 (last_known_column_modified): Make static.
23546 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23547
235482007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23549
23550 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23551
235522007-10-09 Jason Rumney <jasonr@gnu.org>
23553
23554 * w32term.c (x_set_window_size): Disable code that attempts to tell
23555 Lisp code about a size change before it actually happens.
23556
235572007-10-09 Richard Stallman <rms@gnu.org>
23558
23559 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23560 return HANDLED_RETURN.
23561
235622007-10-08 Martin Rudalics <rudalics@gmx.at>
23563
23564 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23565 when there's an unread command event.
23566
23567 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23568 window autoselection act appropriately when leaving selected frame.
23569 (syms_of_frame): Initialize focus_follows_mouse.
23570 * frame.h (focus_follows_mouse): Extern it.
23571 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23572 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23573 * msdos.c (dos_rawgetc): Likewise.
23574 * w32term.c (w32_read_socket): Likewise.
23575 * xterm.c (handle_one_xevent): Likewise.
23576 * xdisp.c (syms_of_xdisp): In doc-string of
23577 mouse-autoselect-window mention focus-follows-mouse.
23578
235792007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23580
23581 * macterm.c (mac_load_query_font): Fix missing return value.
23582 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23583 Add BLOCK_INPUT.
23584
235852007-10-08 Richard Stallman <rms@gnu.org>
23586
23587 * xdisp.c (get_window_cursor_type): Implement documented behavior
23588 for cursor-in-non-selected-windows = t.
23589
235902007-10-08 Jason Rumney <jasonr@gnu.org>
23591
23592 * w32.c (w32_get_resource): Always close registry keys.
23593
235942007-10-08 Jason Rumney <jasonr@gnu.org>
23595
23596 * makefile.w32-in (LIBS): Add COMCTL32.
23597
23598 * w32fns.c (globals_of_w32fns): Init common controls.
23599
236002007-10-08 Richard Stallman <rms@gnu.org>
23601
23602 * image.c (our_memory_buffer): Rename from omfib_buffer.
23603
236042007-10-08 Richard Stallman <rms@gnu.org>
23605
23606 * buffer.c (Foverlays_at): Doc fix.
23607
236082007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23609
23610 * fns.c (Fplist_put): Preserve uneven tail data.
23611
236122007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23613
23614 * termhooks.h (enum event_kind): Remove trailing comma.
23615
23616 * frame.h (enum): Remove trailing comma.
23617
236182007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23619
23620 * w32proc.c (delete_child): Don't terminate threads of zombies.
23621
236222007-10-08 Martin Rudalics <rudalics@gmx.at>
23623
23624 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23625
23626 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23627 last-repeatable-command.
23628 (init_kboard): Initialize Vlast_repeatable_command.
23629 (command_loop_1): Set it to real_this_command unless that was
23630 bound to an input event.
23631 (mark_kboards): Mark it.
23632
236332007-10-08 Richard Stallman <rms@gnu.org>
23634
23635 * eval.c (condition-case): Doc fix.
23636
236372007-10-08 Masatake YAMATO <jet@gyve.org>
23638
23639 * xfaces.c (tty_supports_face_attributes_p): Fix code
23640 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23641 was copied and not edited.
23642
236432007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23644
23645 Add new `input-decode-map' keymap and use it for terminal
23646 escape sequences.
23647 * keyboard.h (struct kboard): Add Vinput_decode_map.
23648 Remove Vlocal_key_translation_map.
23649 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23650 (init_kboard): Init input-decode-map.
23651 Replace local-key-translation-map back with key-translation-map.
23652 (syms_of_keyboard): Declare input-decode-map.
23653 Remove local-key-translation-map. Update docstrings.
23654 (mark_kboards): Mark Vinput_decode_map.
23655 Don't mark Vlocal_key_translation_map.
23656 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23657 Replace local-key-translation-map back with key-translation-map.
23658 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23659 Bind in input-decode-map rather than function-key-map.
23660
23661 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23662 This was made redundant by the previous introduction of XSETPVECTYPE.
23663
236642007-10-09 Richard Stallman <rms@gnu.org>
23665
23666 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23667
236682007-09-29 Richard Stallman <rms@gnu.org>
23669
23670 * eval.c (internal_condition_case_2, internal_condition_case_1)
23671 (internal_condition_case): Reenable abort if x_catching_errors ()
23672 to see if that really happens and why.
23673
236742007-10-06 Andreas Schwab <schwab@suse.de>
23675
23676 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23677
236782007-10-04 Juanma Barranquero <lekktu@gmail.com>
23679
23680 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23681
236822007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23683
23684 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23685
236862007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23687
23688 * window.h (struct window):
23689 * window.c (struct save_window_data, struct saved_window):
23690 * termhooks.h (struct terminal):
23691 * process.h (struct Lisp_Process):
23692 * frame.h (struct frame):
23693 * buffer.h (struct buffer):
23694 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23695 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23696 The size field of (pseudo)vectors is now unsigned.
23697 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23698
23699 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23700 Turn `count' into an integer.
23701
23702 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23703 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23704 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23705 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23706 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23707
23708 * alloc.c (allocate_pseudovector): New fun.
23709 (ALLOCATE_PSEUDOVECTOR): New macro.
23710 (allocate_window, allocate_terminal, allocate_frame)
23711 (allocate_process): Use it.
23712 (mark_vectorlike): New function.
23713 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23714 (mark_terminals): Use it.
23715 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23716 (Fmake_byte_code): Use XSETPVECTYPE.
23717
23718 * frame.c (Fframe_parameters): Minor simplification.
23719
23720 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23721
23722 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23723
23724 * buffer.c (Fget_buffer_create, init_buffer_once):
23725 * lread.c (defsubr):
23726 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23727
23728 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23729 defined differently in the m/*.h files.
23730 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23731 (XSETPVECTYPE): New macro.
23732 (XSETPSEUDOVECTOR): Use it.
23733
23734 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23735 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23736
23737 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23738 * lread.c (defvar_per_buffer):
23739 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23740
23741 * window.c (candidate_window_p): Only consider as visible frames that
23742 are on the same terminal.
23743
23744 * m/ibms390x.h (MARKBIT): Remove unused macro.
23745
237462007-10-01 Juanma Barranquero <lekktu@gmail.com>
23747
23748 * lread.c (Fload): Fix typo in docstring.
23749
237502007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23751
23752 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23753 of a non-zero value can't yield zero.
23754
237552007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23756
23757 * term.c (term_clear_mouse_face, term_mouse_highlight)
23758 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23759
23760 * print.c (safe_debug_print): Use XHASH.
23761
23762 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23763 Lisp elements such as tags.
23764 (XHASH): New macro.
23765 (EQ): Use it.
23766 (SREF, SSET, STRING_COPYIN): Use SDATA.
23767 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23768
23769 * alloc.c (mark_terminal): Remove left-over declaration.
23770 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23771 (allocate_vectorlike): Remove type argument. Adjust callers.
23772 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23773 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23774
23775 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23776 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23777 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23778 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23779 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23780 Use them.
23781
23782 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23783 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23784 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23785
237862007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23787
23788 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23789 loaded by default.
23790
237912007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23792
23793 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23794 on this tty.
23795 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23796
23797 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23798 Update all users.
23799 (handle_one_term_event): Use Gpm_DrawPointer.
23800 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23801 Signal errors instead of returning nil. Always return nil.
23802 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23803 Make it a noop if gpm-mouse was not activated.
23804 (syms_of_term): Update names.
23805
238062007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23807
23808 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23809 (init_sys_modes): Check that gpm_tty is the current tty.
23810
23811 * alloc.c (allocate_terminal): Set the vector size to only count the
23812 lisp fields. Initialize those to nil.
23813 (mark_object): Don't treat terminals specially.
23814 (mark_terminal): Remove.
23815 (mark_terminals): Use mark_object instead.
23816
23817 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23818 the GC to the beginning.
23819
23820 * indent.h:
23821 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23822
23823 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23824
238252007-09-25 Jason Rumney <jasonr@gnu.org>
23826
23827 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23828
23829 * w32console.c (create_w32cons_output): Remove.
23830
23831 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23832
23833 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23834 (reset_sys_modes): Use reset_terminal_modes_hook.
23835
238362007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23837
23838 * eval.c (do_autoload): Don't output any message.
23839
238402007-09-24 Juri Linkov <juri@jurta.org>
23841
23842 * emacs.c (standard_args): Change priority of "--no-splash"
23843 from 40 to 3. Add "--no-desktop" with the same priority.
23844
238452007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23846
23847 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23848 and optimize the case where they are all 1.
23849
238502007-09-23 Johannes Weiner <hannes@saeurebad.de>
23851
23852 * lisp.h (abs): Define if not defined.
23853 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23854 Don't define `abs', since it's defined in lisp.h.
23855
238562007-09-22 Eli Zaretskii <eliz@gnu.org>
23857
23858 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23859 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23860 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23861 (init_tty): Use DEV_TTY instead of "/dev/tty".
23862 [WINDOWSNT]: No need to protect from NAME arg being null.
23863
238642007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23865
23866 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23867 up the tty state.
23868
238692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23870
23871 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23872 (gpm_tty): Change its type.
23873 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23874 (gpm_tty): Change its type and initialize it.
23875 (Fterm_open_connection): Check the frame is indeed a tty.
23876 Use the new gpm_tty.
23877 (Fterm_close_connection): Use the new gpm_tty.
23878 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23879 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23880
238812007-09-21 Juanma Barranquero <lekktu@gmail.com>
23882
23883 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23884 underline_color, to draw strike-through.
23885
238862007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23887
23888 * lisp.h (allocate_terminal): Declare.
23889
23890 * window.c (candidate_window_p): Consider frames that are being placed
23891 by the user as somewhere between visible and iconified.
23892 (window_loop): Prefer windows on the current frame.
23893 (Fselect_window): Move the use of select-frame to the beginning so we
23894 can just delegate all the work (it'll call us back anyway).
23895
23896 * frame.c (Qdisplay_environment_variable):
23897 * frame.h (Qdisplay_environment_variable): Delete.
23898
23899 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23900 of the first arg, since that value may be a union.
23901
23902 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23903 parameter rather than Qdisplay_environment_variable. If all else
23904 fails, look for DISPLAY in initial-environment.
23905
239062007-09-21 Glenn Morris <rgm@gnu.org>
23907
23908 * Makefile.in (emacstool): Remove target.
23909 (lisp, shortlisp): Remove termdev.elc.
23910
239112007-09-21 Markus Triska <markus.triska@gmx.at>
23912
23913 * xterm.c (x_delete_display): Compile session management conditionally.
23914
239152007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23916
23917 * callproc.c (getenv_internal_1): New function.
23918 (getenv_internal): Use it.
23919 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23920
23921 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23922 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23923 (Fset_terminal_parameter): Work with dead terminals as well.
23924 (Fmodify_terminal_parameters): Remove.
23925
23926 * terminal.c (get_terminal): Handle terminals.
23927 Make sure the terminal returned is live.
23928 (create_terminal): Use allocate_terminal.
23929 (mark_terminals): Move to alloc.c.
23930 (delete_terminal): Use terminal->name as liveness status.
23931 NULL out fields after freeing their contents.
23932 Don't deallocate the object.
23933 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23934 rather than an int.
23935 (Fterminal_live_p): Accept non-integer arguments.
23936 (Fterminal_list): Return terminal objects rather than an ints.
23937
23938 * alloc.c (enum mem_type): New member for `terminal' objects.
23939 (allocate_terminal): New function.
23940 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23941 Handle terminals.
23942 (mark_terminal): New fun.
23943 (mark_terminals): Move from terminal.c.
23944
23945 * term.c (get_tty_terminal): Don't treat output_initial specially.
23946 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23947 (delete_tty): Use terminal->name as liveness status.
23948
23949 * termhooks.h (struct terminal): Make it into a pseudovector.
23950 Remove `deleted' replaced by checking `name's nullness.
23951
23952 * print.c (print_object): Handle terminals.
23953
23954 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23955 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23956
23957 * frame.c (make_terminal_frame):
23958 * keyboard.c (tty_read_avail_input):
23959 * w32term.c (x_delete_terminal):
23960 * xfns.c (Fx_create_frame, x_create_tip_frame):
23961 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23962
239632007-09-20 Glenn Morris <rgm@gnu.org>
23964
23965 * process.c (Fmake_network_process): Doc fix.
23966
239672007-09-19 Jason Rumney <jasonr@gnu.org>
23968
23969 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23970
239712007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23972
23973 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23974 Fix a C warning regarding variable constness.
23975
23976 * xterm.c (handle_one_xevent): Fix a C warning.
23977
239782007-09-18 Jason Rumney <jasonr@gnu.org>
23979
23980 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23981
239822007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23983
23984 * gtkutil.c (gdpy_def): New variable.
23985 (xg_initialize): Initialize gdpy_def.
23986 (xg_display_close): If no other display exists, set gdpy_def to a
23987 new connection.
23988
239892007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23990
23991 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23992 when we have no file name for the icon.
23993 (xg_tool_bar_expose_callback): Remove.
23994 (xg_create_tool_bar): Don't connect expose signal to
23995 xg_tool_bar_expose_callback.
23996 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23997
239982007-09-16 Andreas Schwab <schwab@suse.de>
23999
24000 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24001 values instead of zapping them.
24002
240032007-09-14 Glenn Morris <rgm@gnu.org>
24004
24005 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24006 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24007 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24008 scope and rename to omfib_buffer for clarity.
24009 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24010
240112007-09-14 Kenichi Handa <handa@m17n.org>
24012
24013 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24014
240152007-09-13 Jason Rumney <jasonr@gnu.org>
24016
24017 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24018
24019 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24020
24021 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24022 (mac_term_init): Call here instead, passing rif.
24023
240242007-09-13 Glenn Morris <rgm@gnu.org>
24025
24026 * s/hpux.h: No longer define `static' as nothing.
24027
240282007-09-13 Johan Bockgård <bojohan@gnu.org>
24029
24030 * callint.c (Fcall_interactively): Remove unused var `fun'.
24031
240322007-09-12 Romain Francoise <romain@orebokech.com>
24033
24034 * window.c (prefer_window_split_horizontally, display_buffer):
24035 Revert 2007-09-08 change.
24036
240372007-09-12 Glenn Morris <rgm@gnu.org>
24038
24039 * alloca.c: Remove file.
24040 * Makefile.in (alloca): Do not undef.
24041 (allocaobj, alloca.o): Remove.
24042 (otherobj): Remove allocaobj.
24043 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24044 * regex.c (C_ALLOCA): Remove all references and code that was only
24045 used when this was defined.
24046 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24047 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24048 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24049
24050 * Makefile.in (SOURCES, unlock, relock): Delete.
24051
24052 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24053 (menu_grab_callback): All uses changed.
24054
24055 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24056 (x_reply_selection_request): All uses changed.
24057
240582007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24059
24060 * lread.c (load_warn_old_style_backquotes): Change message to look
24061 better when it appears in the middle of byte-compiler messages.
24062
240632007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24064
24065 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24066
24067 * xterm.c (x_create_terminal): Add comment.
24068
24069 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24070
240712007-09-10 Richard Stallman <rms@gnu.org>
24072
24073 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24074
240752007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24076
24077 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24078 (DEFUN): Document `intspec', use it instead of `prompt'.
24079
24080 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24081
24082 * data.c (Finteractive_form): If the interactive specification starts
24083 with a `(', use it as a Lisp form.
24084
24085 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24086 name and file modes.
24087
24088 * callint.c (Fcall_interactively): Comment fixes.
24089
240902007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24091
24092 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24093 and compiled functions.
24094
240952007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24096
24097 * window.c (prefer_window_split_horizontally): New variable.
24098 (display_buffer): Consider splitting window horizontally depending
24099 on prefer_window_split_horizontally.
24100
241012007-09-08 Eli Zaretskii <eliz@gnu.org>
24102
24103 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24104
241052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24106
24107 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24108
24109 * frame.c (x_set_frame_parameters): Check number is positive before
24110 using XFASTINT.
24111
24112 * window.c (freeze_window_start): Don't presume selected_window holds
24113 a window object.
24114 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24115
241162007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24117
24118 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24119
241202007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24121
24122 * window.c (Vsplit_window_preferred_function): New var.
24123 (Fdisplay_buffer): Use it.
24124 (syms_of_window): Export, and initialize it.
24125
241262007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24127
24128 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24129
241302007-09-06 Glenn Morris <rgm@gnu.org>
24131
24132 * gtkutil.c (menu_grab_callback) <cnt>:
24133 * xselect.c (x_reply_selection_request) <cnt>: Move static
24134 variable to file scope.
24135
241362007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24137
24138 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24139 consistent values of selected_frame and selected_window.
24140
241412007-09-04 Jason Rumney <jasonr@gnu.org>
24142
24143 * w32console.c (initialize_w32_display): Zero unused hooks.
24144
241452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24146
24147 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24148 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24149
241502007-09-04 Jason Rumney <jasonr@gnu.org>
24151
24152 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24153 in w32console.c. Set up input. Remove XXX comments that have been
24154 confirmed as correct.
24155
24156 * s/ms-w32.h (MULTI_KBOARD): Define.
24157
24158 * w32console.c (one_and_only_w32cons): Remove.
24159 (initialize_w32_display): Take terminal argument.
24160
24161 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24162 initialize_w32_display.
24163 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24164
24165 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24166
24167 * keyboard.c (discard_mouse_events): Discard it.
24168 (make_lispy_event): Translate it to a lisp event.
24169 (lispy_wheel_names): Add wheel-left and right events.
24170 (syms_of_keyboard): Enlarge wheel_syms.
24171
24172 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24173 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24174
24175 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24176
24177 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24178 from WM_MOUSEHWHEEL.
24179 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24180
24181 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24182 terminal.
24183
24184 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24185 keyboard for the terminal.
24186
241872007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24188
24189 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24190 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24191 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24192 and resume-tty-function to resume-tty-hook.
24193 (Fsuspend_tty, Fresume_tty): Use new names.
24194
241952007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24196
24197 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24198 if it starts with "n:".
24199
242002007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24201
24202 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24203
242042007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24205
24206 * frame.h:
24207 * frame.c (Qterm_environment_variable): Remove.
24208 (syms_of_frame): Don't init and staticpro it.
24209
24210 * callproc.c (getenv_internal): Remove special case for $TERM.
24211
24212 * callproc.c (Vinitial_environment): New variable.
24213 (set_initial_environment): Initialize it.
24214 (syms_of_callproc): Declare it.
24215 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24216 TERM under which a process runs is never related to the TERM in which
24217 Emacs is running.
24218
242192007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24220
24221 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24222 * s/darwin.h: ... do it here.
24223
242242007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24225
24226 * lisp.h (set_initial_environment): Rename from set_global_environment.
24227
24228 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24229 removed by mistake on the multi-tty branch.
24230
24231 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24232 (Fmodify_frame_parameters): Return a value.
24233
24234 * image.c (png_load): Comment-out var only used in commented-out code.
24235
24236 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24237 before passing it to mark_object.
24238
24239 * xfaces.c (internal_resolve_face_name): Return a value.
24240 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24241
24242 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24243 (x_icon): Comment-out var only used in commented-out code.
24244
242452007-08-29 Romain Francoise <romain@orebokech.com>
24246
24247 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24248 QUIT hasn't been provided.
24249
242502007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24251
24252 * callproc.c (child_setup, getenv_internal): Use the
24253 display-environment-variable and term-environment-variable frame params.
24254 (set_initial_environment): Initialise Vprocess_environment.
24255
24256 * config.in: Disable multi-keyboard support on a mac.
24257
24258 * frame.c (Qterm_environment_variable)
24259 (Qdisplay_environment_variable): New variables.
24260 (syms_of_frame): Intern and staticpro them.
24261 (Fmake_terminal_frame): Disable output method test.
24262
24263 * frame.h: Declare them here.
24264
24265 * macfns.c (x_set_mouse_color): Get rif from the frame.
24266 (x_set_tool_bar_lines): Don't use updating_frame.
24267 (mac_window): Add 2 new parameters for consistency with other systems.
24268 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24269 frame parameters following what is done in X11 and w32. Don't use
24270 FRAME_MAC_DISPLAY_INFO.
24271 (Fx_open_connection, start_hourglass): Remove window-system check.
24272 (x_create_tip_frame): Get the keyboard from the terminal.
24273
24274 * macmenu.c: Reorder includes.
24275 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24276
24277 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24278 terminal parameter.
24279 (x_clear_frame): Add a frame parameter.
24280 (note_mouse_movement): Get rif from the frame.
24281 (mac_term_init): Initialize the terminal.
24282 (mac_initialize): Make static and move terminal initialization ...
24283 (mac_create_terminal): ... to this new function.
24284
24285 * macterm.h (struct mac_display_info): Add terminal.
24286 (mac_initialize): Delete declaration.
24287
24288 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24289
24290 * sysdep.c: Comment out text after #endif.
24291
24292 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24293 is defined. Better initialize ttys in windows. Use terminal
24294 specific mouse_position_hook.
24295
24296 * termhooks.h (union display_info): Add mac_display_info.
24297
24298 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24299 Set the default minibuffer frame, window_system and the rest of the
24300 frame parameters following what is done in X11.
24301
24302 * w32term.c (w32_initialize): Make static.
24303
24304 * xselect.c (x_handle_selection_clear): Only access
24305 terminal->kboard when MULTI_KBOARD is defined.
24306
24307 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24308 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24309
243102007-08-29 Jason Rumney <jasonr@gnu.org>
24311
24312 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24313 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24314
24315 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24316 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24317
24318 * keyboard.c (restore_kboard_configuration): Only define when
24319 MULTI_KBOARD defined.
24320
24321 * makefile.w32-in: Update dependancies from Makefile.in.
24322 (OBJ1): Add terminal.$(O)
24323
24324 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24325 Don't define function body.
24326 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24327
24328 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24329
24330 * w32.c (request_sigio, unrequest_sigio): Remove.
24331
24332 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24333 (w32con_clear_frame, w32con_clear_end_of_line)
24334 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24335 (w32con_delete_glyphs, w32con_set_terminal_window)
24336 (scroll_line, w32_sys_ring_bell): Add frame arg.
24337 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24338 Add terminal arg.
24339 (PICK_FRAME): Remove.
24340 (w32con_write_glyphs): Use frame specific terminal coding.
24341 (one_and_only_w32cons): New global variable.
24342 (initialize_w32_display): Use it for storing hooks.
24343 (create_w32cons_output): New function.
24344
24345 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24346 arg a frame.
24347
24348 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24349 Set window_system.
24350 (x_set_tool_bar_lines): Don't use updating_frame.
24351 (Fx_create_frame): Set terminal and ref count.
24352 (Fx_open_connection): Remove window-system check.
24353
24354 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24355
24356 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24357 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24358 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24359 Add frame arg.
24360 (x_delete_terminal, w32_create_terminal): New functions.
24361 (w32_term_init): Create a terminal.
24362 (w32_initialize): Move terminal specific initialization to
24363 w32_create_terminal.
24364
24365 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24366 (w32_clear_rect, w32_clear_area): Use background from frame.
24367 (w32_display_info): Add terminal.
24368 (w32_sys_ring_bell, x_delete_display): Declare here.
24369
24370 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24371
24372 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24373
243742007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24375
24376 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24377 Fix get_named_tty calls for the controlling tty.
24378
243792007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24380
194d44e7 24381 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24382
243832007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24384
24385 * term.c (tty_insert_glyphs): Add missing first parameter.
24386
243872007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24388
24389 * buffer.c (Fbuffer_list, Fbury_buffer):
24390 Take frame->buried_buffer_list into account.
24391
24392 * cm.c (current_tty): New variable, for cmputc().
24393 (cmputc): Use it.
24394 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24395 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24396 (cmgoto): Add tty parameter. Pass it on to calccost().
24397 Use emacs_tputs() instead of tputs().
24398
24399 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24400 tputs().
24401 (current_tty): New variable, for cmputc().
24402 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24403
24404 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24405 (internal_condition_case, internal_condition_case_1)
24406 (internal_condition_case_2): Don't abort when x_catching_errors.
24407
24408 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24409 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24410 prevent crashes caused by bogus longjmps in read_char.
24411
24412 * keymap.h (Fset_keymap_parent): Add EXFUN.
24413
24414 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24415 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24416 Remove redundant definition.
24417
24418 * macfns.c (x_set_mouse_color, x_make_gc):
24419 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24420
24421 * w32term.c (x_free_frame_resources):
24422 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24423 (w32_initialize): Use the accessor macros for terminal characteristics.
24424
24425 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24426 Use the accessor macros for terminal characteristics.
24427 * msdos.c (internal_terminal_init): Use the accessor macros for
24428 terminal characteristics.
24429 (ScreenVisualBell, internal_terminal_init):
24430 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24431
24432 * termopts.h (no_redraw_on_reenter): Declare.
24433
24434 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24435 (mark_terminals, mark_ttys): Declare.
24436 (Fgarbage_collect): Call them.
24437 (mark_object): Mark buried_buffer_list.
24438
24439 * prefix-args.c: Include stdlib.h for exit.
24440
24441 * syssignal.h: Add comment.
24442
24443 * indent.c: Include stdio.h.
24444
24445 * window.h (Vinitial_window_system): Declare.
24446 (Vwindow_system): Delete declaration.
24447
24448 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24449
24450 * image.c (lookup_image): Don't initialize `c' until the xasserts
24451 have been run.
24452
24453 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24454 FRAME_FOREGROUND_PIXEL.
24455
24456 * print.c (print_preprocess): Don't lose print_depth levels while
24457 iterating.
24458
24459 * widget.c (update_from_various_frame_slots):
24460 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24461
24462 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24463 frames.
24464 (window_internal_height): Remove bogus make_number call.
24465 (init_window_once): Call make_terminal_frame with two zero parameters.
24466
24467 * fileio.c (Fread_file_name): Update comment.
24468
24469 * callint.c (Fcall_interactively):
24470 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24471 Make sure it is correctly unwound.
24472
24473 * xsmfns.c (x_session_close): New function.
24474
24475 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24476 Delete declarations.
24477
24478 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24479 (x_output): Remove background_pixel and foreground_pixel fields.
24480 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24481 (x_delete_device, x_session_close): Declare.
24482
24483 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24484 (read_filtered_event): Call `read_char' with a local
24485 `wrong_kboard_jmpbuf'.
24486
24487 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24488 Don't call single_kboard_state. Use FRAME_RIF.
24489
24490 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24491 systems.
24492
24493 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24494 (Fframe_with_environment, Fset_input_meta_mode)
24495 (Fset_quit_char): EXFUN.
24496 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24497 (init_sys_modes, reset_sys_modes): Update prototypes.
24498 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24499
24500 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24501 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24502 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24503 Delete declarations.
24504 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24505 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24506 New declarations.
24507
24508 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24509 already does that during init_display(). Call syms_of_keymap
24510 before syms_of_keyboard. Call `syms_of_terminal'.
24511 Call set_initial_environment, not set_process_environment.
24512 (shut_down_emacs): Call reset_all_sys_modes() instead of
24513 reset_sys_modes().
24514
24515 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24516 (internal_resolve_face_name, resolve_face_name_error): New functions.
24517 (resolve_face_name): Protect against loops and errors thrown by Fget.
24518 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24519 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24520
24521 * scroll.c: Replace CURTTY() with local variables throughout the
24522 file (where applicable).
24523 (calculate_scrolling, calculate_direct_scrolling)
24524 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24525 characteristics.
24526
24527 * keymap.c (Vfunction_key_map): Remove.
24528 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24529 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24530 (Vkey_translation_map): Remove.
24531 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24532 (Fdescribe_buffer_bindings)
24533 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24534 Update for terminal-local key-translation-map.
24535
24536 * Makefile.in (callproc.o): Update dependencies.
24537 (lisp, shortlisp): Add termdev.elc.
24538 (obj): Add terminal.o.
24539 (terminal.o): Add dependencies.
24540 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24541 (data.o, fns.o): Add termhooks.h dependency.
24542 (SOME_MACHINE_LISP): Add dnd.elc.
24543 (minibuf.o): Fix typo.
24544 Update dependencies.
24545
24546 * data.c (do_symval_forwarding, store_symval_forwarding)
24547 (find_symbol_value): Use the selected frame's keyboard, not
24548 current_kboard.
24549
24550 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24551 Vwindow_system.
24552
24553 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24554 Fmenu_bar_open.
24555 (syms_of_xmenu): Update defsubr.
24556 (mouse_position_for_popup, Fx_popup_menu)
24557 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24558 (set_frame_menubar, free_frame_menubar)
b97439ce 24559 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24560 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24561 an X frame.
24562
24563 * xselect.c (x_own_selection): Abort if not an X frame.
24564 (some_frame_on_display): Check if it is an X frame.
24565 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24566
24567 * coding.c: Include frame.h and termhooks.h.
24568 (terminal_coding, keyboard_coding): Delete.
24569 (Fset_terminal_coding_system_internal)
24570 (Fset_keyboard_coding_system_internal)
24571 (Fkeyboard_coding_system)
24572 (Fterminal_coding_system): Add a terminal parameter.
24573 Get terminal_coding from the terminal.
24574 (init_coding_once): Don't call setup_coding_system here.
24575
24576 * dispextern.h (set_scroll_region, turn_off_insert)
24577 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24578 (tty_clear_end_of_line, tty_setup_colors)
24579 (delete_tty, updating_frame)
24580 (produce_special_glyphs, produce_glyphs, write_glyphs)
24581 (insert_glyphs): Remove.
24582 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24583 (tty_turn_off_highlight, get_tty_size): Add declaration.
24584 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24585
24586 * frame.h (enum output_method): Add output_initial.
24587 (struct x_output): Delete.
24588 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24589 Access foreground_pixel and background_pixel directly from the frame.
24590 (tty_display): Delete.
24591 (struct frame): Add buried_buffer_list, foreground_pixel,
24592 background_pixel and terminal. Delete kboard.
24593 (union output_data): Add tty.
24594 (FRAME_KBOARD): Get the kboard from the terminal.
24595 (FRAME_INITIAL_P): New macro.
24596 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24597 (Qterm_environment_variable, Qdisplay_environment_variable)
24598 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24599 New declarations.
24600
24601 * termchar.h (tty_output, tty_display_info): New structures.
24602 (tty_list): Declare.
24603 (FRAME_TTY, CURTTY): New macros.
24604 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24605 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24606 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24607 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24608
24609 * callproc.c: Include frame.h and termhooks.h, for terminal
24610 parameters.
24611 (add_env): New function.
24612 (child_setup): Use it.
24613 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24614 (getenv_internal): Fix get_terminal_param call.
24615 (Fgetenv_internal, egetenv): Update doc.
24616 (syms_of_callproc): Initialize Vprocess_environment to nil.
24617 Register and initialize them. Remove obsolete defvars. Update doc
24618 strings.
24619 (child_setup): Handle Vlocal_environment_variables.
24620 (getenv_internal): Add terminal parameter.
24621 Handle Vlocal_environment_variables.
24622 (Fgetenv_internal): Add terminal parameter.
24623 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24624 environment in a frame (not terminal) parameter. Update doc strings.
24625 (set_initial_environment): Rename from set_global_environment.
24626 Store Emacs environment in initial frame parameter.
24627
24628 * xdisp.c (redisplay_internal): Update references to
24629 `previous_terminal_frame'.
24630 (display_mode_line, Fformat_mode_line): Replace calls to
24631 `push_frame_kboard' with `push_kboard'.
24632 (get_glyph_string_clip_rects): Add extra parentheses and
24633 braces to prevent compiler warnings.
24634 (calc_pixel_width_or_height): Add xassert to check that the
24635 frame is alive. Don't call `lookup_image' on a termcap frame.
24636 (message2_nolog, message3_nolog, redisplay_internal)
24637 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24638 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24639 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24640 (Fx_display_pixel_width, Fx_display_pixel_height)
24641 (Fx_display_planes, Fx_display_color_cells)
24642 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24643 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24644 (Fx_display_backing_store, Fx_display_visual_class)
24645 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24646 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24647
24648 * xfns.c (x_set_foreground_color x_set_background_color)
24649 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24650 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24651 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24652 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24653 terminal that is being deleted.
24654 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24655 frame parameter, and make sure it overrides any user-supplied setting.
24656 (Fx_close_connection, Fx_synchronize): Unify argument names with
24657 the rest of the DEFUNs.
24658
24659 * dispnew.c (Fsend_string_to_terminal): Update call to
24660 `get_tty_terminal'.
24661 (Fredraw_frame, Fsend_string_to_terminal)
24662 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24663 FRAME_TERMCAP_P and FRAME_TTY.
24664 (window_change_signal): Don't believe width/height values that are
24665 impossibly small.
24666 (Vinitial_window_system): Rename from Vwindow_system.
24667 (termscript, Wcm, rif): Delete.
24668
24669 * termhooks.h (struct terminal): New struct containing the
24670 previously global text display hooks and new members NAME,
24671 DELETED and PARAM_ALIST.
24672 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24673 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24674 (FRAME_RIF): New macros.
24675 (get_terminal_param, get_device): New declarations.
24676 (termscript): Delete declaration.
24677
24678 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24679 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24680 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24681 FRAME_FOREGROUND_PIXEL.
24682 (x_fully_uncatch_errors): Disable definition.
24683 (x_scroll_bar_expose): Fix reference to foreground pixel.
24684 (XTread_socket): Disable loop on all X displays.
24685 (x_delete_terminal): Don't set terminal->deleted and let
24686 delete_terminal delete the frames on the terminal.
24687 (x_delete_display): Doc update to reflect changes in
24688 delete_terminal.
24689 (x_display_info) <terminal>: Move member earlier in the struct.
24690 (deleting_tty): Remove old variable.
24691 (Fsuspend_tty): Call clear_tty_hooks.
24692 (Fresume_tty, init_tty): Call set_tty_hooks.
24693 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24694 errors on X frames.
24695 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24696 (handle_one_xevent): Initialize `f' to NULL.
24697 (x_delete_terminal, x_create_terminal): New functions.
24698 (XTset_terminal_modes, XTreset_terminal_modes)
24699 (XTread_socket, x_connection_closed, x_term_init)
24700 (x_term_init, x_delete_display): Add terminal parameter.
24701 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24702 X connections.
24703
24704 * frame.c: Include termchar.h.
24705 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24706 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24707 (Qdisplay_environment_variable): New vars.
24708 (Fframep): Deal with output_initial.
24709 (Fframe-live-p): Doc fix.
24710 (Fwindow-system): New function.
24711 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24712 (make_terminal_frame): Don't create frames on a terminal that is
24713 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24714 (store_frame_param): Check for found_for_frame before calling XFRAME.
24715 (Fmake_terminal_frame): Handle NULL tty names correctly.
24716 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24717 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24718 frames to refer to a deleted frame in their 'environment parameter.
24719 (Fframe_with_environment): New function.
24720 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24721 (get_future_frame_param): New function.
24722 (Fmake_terminal_frame): Use it.
24723 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24724
24725 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24726 * sysdep.c (reset_sys_modes): Update for renames.
24727
24728 * keyboard.c (tty_read_avail_input): New function.
24729 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24730 (syms_of_keyboard): Defsubr them.
24731 (Fset_input_meta_mode, Fset_quit_char): New functions.
24732 (Fset_input_mode): Split to above functions.
24733 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24734 parameter. Use it in call to `read_char'.
24735 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24736 Set wrong_kboard_jmpbuf correctly in recursive calls.
24737 Use current_kboard to access Vkeyboard_translate_table.
24738 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24739 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24740 Update longjmp invocations. Remember the original current_kboard,
24741 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24742 changes it. Comment out unnecessary calls to
24743 `record_single_kboard_state' and `any_kboard_state'.
24744 Update recursive calls.
24745 (wrong_kboard_jmpbuf): Remove global variable.
24746 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24747 Handle deleted interrupted_kboards correctly; that is a legal
24748 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24749 and read_char calls. Abort if interrupted_kboard died in read_char.
24750 (any_kboard_state, single_kboard_state)
24751 (push_frame_kboard): Remove function.
24752 (pop_kboard): Switch out of single_kboard mode if the kboard has
24753 been deleted. Remove unused variable. Help debugging by not
24754 changing current_kboard unnecessarily. Set current_kboard to the
24755 kboard of the selected frame when the stored kboard object has
24756 been deleted before pop_kboard.
24757 (temporarily_switch_to_single_kboard): Change first parameter to a
24758 frame pointer. Throw an error when caller wants to change kboards
24759 while in single_kboard mode. Don't push_kboard if we weren't in
24760 single kboard state. Don't pop_kboard if we popped into any
24761 kboard state.
24762 (restore_kboard_configuration): Abort if pop_kboard changed the
24763 kboard in single_kboard mode. Call pop_kboard only after setting
24764 up single_kboard mode.
24765 (Frecursive_edit): Switch to single_kboard mode only in nested
24766 command loops.
24767 (cmd_error, command_loop, command_loop_1, timer_check):
24768 Comment out unnecessary call to `any_kboard_state' and
24769 `record_single_kboard_state'.
24770 (delete_kboard): Exit single_kboard mode if we have just deleted
24771 that kboard. Use FRAME_KBOARD.
24772 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24773 `fatal_error_signal'.
24774 (record_single_kboard_state): Don't push_kboard if we weren't in
24775 single kboard state. Don't pop_kboard if we popped into any
24776 kboard state.
24777 (push_frame_kboard): Rename to push_kboard.
24778 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24779 (read_avail_input): Read input from all terminals.
24780 (mark_kboards): Also mark Vkeyboard_translate_table.
24781 (kbd_buffer_store_event_hold): Simplify condition.
24782 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24783 (Vkeyboard_translate_table): Move to struct kboard.
24784 (init_kboard): Initialize Vkeyboard_translate_table.
24785 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24786 Vkeyboard_translate_table. Update doc strings. Update docs of
24787 local-function-key-map and function-key-map.
24788
24789 * terminal.c: New file.
24790
24791 * term.c: Include errno.h.
24792 (Vring_bell_function, device_list, initial_device)
24793 (next_device_id, ring_bell, update_begin, update_end)
24794 (set_terminal_window, cursor_to, raw_cursor_to)
24795 (clear_to_end, clear_frame, clear_end_of_line)
24796 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24797 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24798 (syms_of_term): Move their initialization to terminal.c.
24799 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24800 (Ftty_display_color_cells)
24801 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24802 (clear_tty_hooks, set_tty_hooks)
24803 (init_tty, maybe_fatal): New functions.
24804 (Ftty_type): Return nil if terminal is not on a tty instead of
24805 throwing an error. Doc update.
24806 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24807 Doc update. Initialize new subrs and variables.
24808 (delete_tty): Use terminal->deleted.
24809 (tty_set_terminal_modes): Rename from set_terminal_modes.
24810 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24811 (set_scroll_region): Rename to `tty_set_scroll_region'.
24812 (turn_on_insert): Rename to `tty_turn_on_insert'.
24813 (turn_off_insert): Rename to `tty_turn_off_insert'.
24814 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24815 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24816 (toggle_highligh): Rename to `tty_toggle_highlight'.
24817 (background_highlight): Rename to `tty_background_highlight'.
24818 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24819 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24820 (tty_set_scroll_region, tty_background_highlight)
24821 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24822 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24823 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24824 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24825 Add static modifier.
24826 (tty_reset_terminal_modes, tty_set_terminal_window)
24827 (tty_set_scroll_region, tty_background_highlight)
24828 (tty_highlight_if_desired, tty_cursor_to)
24829 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24830 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24831 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24832 renames.
24833
248342007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24835
24836 * keyboard.c: Qrtl is new.
24837 (parse_tool_bar_item): Handle :rtl keyword.
24838 (syms_of_keyboard): Intern :rtl keyword.
24839
24840 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24841
24842 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24843 so no Lisp code is executed.
24844 (file_for_image, find_rtl_image): New functions.
24845 (xg_get_image_for_pixmap): Use file_for_image.
24846 (update_frame_tool_bar): If direction is RTL, use RTL image if
24847 defined. Use Gtk stock images if defined.
24848
248492007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24850
24851 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24852 for nonexistent or zero-width glyph in composition glyph.
24853
248542007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24855
24856 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24857
24858 * xdisp.c (Finvisible_p): New function.
24859 (syms_of_xdisp): defsubr it.
24860
248612007-08-24 Juanma Barranquero <lekktu@gmail.com>
24862
24863 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24864 Doc fixes.
24865
248662007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24867
24868 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24869
248702007-08-24 Martin Rudalics <rudalics@gmx.at>
24871
24872 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24873 whether decoding has modified buffer contents.
24874
248752007-08-24 Jason Rumney <jasonr@gnu.org>
24876
24877 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24878 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24879 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24880 (init_svg_functions) [HAVE_NTGUI]: New function.
24881 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24882 (svg_load_image): Use them.
24883 (svg_load_image) [HAVE_NTGUI]: Implement background.
24884
248852007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24886
24887 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24888 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24889 (LIBX): Remove @RSVG_LIBS@.
24890 (LIBES): Add $(RSVG_LIBS).
24891
24892 * image.c (svg_load_image): Blend with specified background if exists.
24893 Use IMAGE_BACKGROUND. Add Mac OS Support.
24894
24895 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24896 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24897 Remove macros.
24898 [MAC_OSX] (socket_callback): Do nothing.
24899 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24900 ReceiveNextEvent.
24901 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24902 socket_callback.
24903 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24904
249052007-08-22 Glenn Morris <rgm@gnu.org>
24906
24907 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24908
249092007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24910
24911 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24912
24913 * image.c: Add support for SVG images. Some additional comments
24914 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24915 (svg_image_p): New function to test for SVG image.
24916 (svg_load): New function to load SVG image.
24917 (svg_load_image): New function, helper for svg_load.
24918 (Qsvg): New Lisp_object.
24919 (svg_keyword_index): New enum.
24920 (svg_format): New static `image_keyword' struct.
24921 (svg_type): New static `image_type' struct.
24922 (librsvg/rsvg.h): Include it.
24923
249242007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24925
24926 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24927
249282007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24929
24930 * lread.c (Qold_style_backquotes): New var.
24931 (syms_of_lread): Init and staticpro it.
24932 (load_warn_old_style_backquotes): New fun.
24933 (Fload): Use them to warn about old style backquotes.
24934 (end_of_file_error, Fload): Remove unused vars.
24935
24936 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24937
24938 * lread.c (Vold_style_backquotes): New var.
24939 (syms_of_lread): Init and export it to Elisp.
24940 (read1): Set it when we find an old-style (back)quote.
24941
249422007-08-22 Jason Rumney <jasonr@gnu.org>
24943
24944 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24945
249462007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24947
24948 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24949
249502007-08-19 Richard Stallman <rms@gnu.org>
24951
24952 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24953
249542007-08-19 Andreas Schwab <schwab@suse.de>
24955
24956 * alloc.c (pure): Round PURESIZE up.
24957
249582007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24959
24960 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24961 active frame.
24962
249632007-08-16 Richard Stallman <rms@gnu.org>
24964
24965 * eval.c (Fcommandp): Add parens to clarify.
24966
24967 * minibuf.c (Fall_completions): Use enum for type of table.
24968
24969 * emacs.c (USAGE2): Improve text.
24970
249712007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24972
24973 * term.c (tty_default_color_capabilities): Declare static
24974 variables in file scope, to avoid HPUX compiler problem.
24975
249762007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24977
24978 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24979 to gtk_toolbar_insert.
24980
249812007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24982
24983 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24984
24985 * insdel.c (reset_var_on_error): New fun.
24986 (signal_before_change, signal_after_change):
24987 Use it to reset (after|before)-change-functions to nil in case of error.
24988 Bind inhibit-modification-hooks to t.
24989 Don't bind (after|before)-change-functions to nil while they run.
24990
249912007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24992
24993 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24994 filling pixmap with stippled background.
24995
249962007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24997
24998 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24999 Don't use invisible frame as parent window for repositioning.
25000
250012007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25002
25003 * print.c (new_backquote_output): Rename from old_backquote_output.
25004 (print): Inverse its logic (according to its name) so as to match the
25005 behavior of new_backquote_flag in lread.c.
25006
250072007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25008
25009 * gmalloc.c (posix_memalign): New function.
25010
25011 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25012 ActivateControl/DeactivateControl here.
25013 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25014 frame-notice-user-settings is non-nil.
25015 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25016 for kEventParamFMFontStyle.
25017 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25018 mac_pass_command_to_system and mac_pass_control_to_system here.
25019 (XTread_socket): Call ActivateControl/DeactivateControl here.
25020 (XTread_socket) [TARGET_API_MAC_CARBON]:
25021 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25022 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25023 for window repositioning.
25024
250252007-08-08 Glenn Morris <rgm@gnu.org>
25026
25027 * Replace `iff' in doc-strings and comments.
25028
250292007-08-07 Chong Yidong <cyd@stupidchicken.com>
25030
25031 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25032
250332007-08-07 Martin Rudalics <rudalics@gmx.at>
25034
25035 * fileio.c (Finsert_file_contents): Run format-decode and
25036 after_insert_file_functions on entire buffer when REPLACE is
25037 non-nil and inhibit modification_hooks and point_motion_hooks.
25038 For consistency, run after_insert_file_functions iff something
25039 got inserted. Move signal_after_change and update_compositions
25040 after code running after_insert_file_functions. Make sure that
25041 undo_list doesn't record intermediate steps of the decoding process.
25042
250432007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25044
25045 * emacs.c (main)
25046 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25047 Call malloc_enable_thread on interactive startup.
25048
25049 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25050 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25051 [USE_PTHREAD]: Conditionalize with it.
25052 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25053 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25054 New functions.
25055
250562007-08-06 Chong Yidong <cyd@stupidchicken.com>
25057
25058 * xdisp.c (redisplay_window): When restoring original buffer
25059 position, make sure it is still valid.
25060
25061 * image.c (png_load): Ignore png-supplied background color.
25062
250632007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25064
25065 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25066 Use kCFAbsoluteTimeIntervalSince1970.
25067
25068 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25069 New variable.
25070 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25071 event loop should be quit.
25072 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25073 Quit dialog event loop if quit_dialog_event_loop is set.
25074
25075 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25076 (Selection): New typedef. Use instead of ScrapRef.
25077 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25078 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25079 (mac_clear_selection): Rename from clear_scrap.
25080 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25081 scrap_has_target_type. All uses changed.
25082 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25083 (mac_selection_has_target_p): New functions.
25084 (mac_put_selection_value): Rename from put_scrap_string.
25085 (mac_get_selection_value): Rename from get_scrap_string.
25086 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25087 (put_scrap_private_timestamp, scrap_has_target_type)
25088 (get_scrap_private_timestamp): Remove functions.
25089 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25090 (x_own_selection, x_get_local_selection):
25091 Use mac_valid_selection_value_p.
25092 (x_own_selection): Don't use put_scrap_private_timestamp.
25093 Record OWNERSHIP-INFO into Vselection_alist instead.
25094 (x_get_local_selection): Don't check type if request is local.
25095 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25096 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25097
250982007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25099
25100 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25101 add comment explaining why.
25102
251032007-08-03 Richard Stallman <rms@gnu.org>
25104
25105 * fileio.c (Fvisited_file_modtime): Use make_time.
25106
251072007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25108
25109 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25110 build.
25111
251122007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25113
25114 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25115
251162007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25117
25118 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25119
251202007-07-30 Richard Stallman <rms@gnu.org>
25121
25122 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25123
251242007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25125
25126 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25127
251282007-07-28 Nick Roberts <nickrob@snap.net.nz>
25129
25130 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25131 remote default-directory.
25132
25133 * buffer.c (mode-line-format): Update doc string.
25134
251352007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25136
25137 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25138 scroll bar gap.
25139 (x_scroll_bar_create): Set bar->fringe_extended_p.
25140 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25141 on frame edge. Check fringe background extension. Don't clear
25142 extended fringe background area.
25143
25144 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25145 (w32_fill_area): Enclose multiple statements with do ... while (0).
25146
25147 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25148 Extend fringe background to scroll bar gap.
25149 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25150 Set bar->fringe_extended_p.
25151 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25152 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25153 background extension. Don't clear extended fringe background area.
25154
25155 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25156 New member fringe_extended_p.
25157
251582007-07-25 Glenn Morris <rgm@gnu.org>
25159
25160 * Relicense all FSF files to GPLv3 or later.
25161
25162 * COPYING: Switch to GPLv3.
25163
251642007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25165
25166 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25167
25168 * data.c (Finteractive_form): Check for the presence of an
25169 `interactive-form' symbol property more thoroughly.
25170
25171 * data.c (Finteractive_form): Use an `interactive-form' property if
25172 present, analogous to the function-documentation property.
25173
251742007-07-24 Jason Rumney <jasonr@gnu.org>
25175
25176 * w32fns.c (x_real_positions): Get real position from OS instead of
25177 calculating it.
25178
251792007-07-23 Jason Rumney <jasonr@gnu.org>
25180
25181 * filelock.c (current_lock_owner): Allow for @ sign in username.
25182
251832007-07-22 Nick Roberts <nickrob@snap.net.nz>
25184
25185 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25186 remote default-directory.
25187
25188 * buffer.c (mode-line-format): Describe above case in doc string.
25189
251902007-07-20 Eli Zaretskii <eliz@gnu.org>
25191
25192 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25193 Define if not defined.
25194
251952007-07-18 Jason Rumney <jasonr@gnu.org>
25196
25197 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25198
251992007-07-18 Richard Stallman <rms@gnu.org>
25200
25201 * data.c (Fsetq_default): Doc fix.
25202
25203 * eval.c (Fsetq): Doc fix.
25204
252052007-07-18 Juanma Barranquero <lekktu@gmail.com>
25206
25207 * coding.c (Ffind_operation_coding_system):
25208 * eval.c (For, Fand): Doc fixes.
25209 Reported by Johan Bockgård.
25210
252112007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25212
25213 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25214
25215 * xterm.h: Declare x_ewmh_activate_frame.
25216
25217 * xterm.c (x_ewmh_activate_frame): New function.
25218 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25219
252202007-07-17 Martin Rudalics <rudalics@gmx.at>
25221
25222 * window.c (Fdisplay_buffer): If largest or LRU window is the
25223 only window, split it even if it is not eligible for splitting.
25224 This restores the original behavior broken by the 2007-07-15
25225 change.
25226
252272007-07-17 Glenn Morris <rgm@gnu.org>
25228
25229 * abbrev.c (abbrev_check_chars): New function.
25230 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25231 Call abbrev_check_chars to check abbrev characters are word
25232 constituents. Doc fix.
25233
252342007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25235
25236 * process.c (Fstart_process, Fmake_network_process)
25237 (read_process_output): Fix up last changes.
25238
252392007-07-16 Eli Zaretskii <eliz@gnu.org>
25240
25241 * makefile.w32-in (clean): Don't delete *~.
25242
252432007-07-16 Andreas Schwab <schwab@suse.de>
25244
25245 * window.c (Fdisplay_buffer): Use NILP.
25246 (Fset_window_scroll_bars): Likewise.
25247
252482007-07-15 Martin Rudalics <rudalics@gmx.at>
25249
25250 * window.c (window_min_size_2): New function.
25251 (window_min_size_1, size_window, Fdisplay_buffer)
25252 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25253 windows without mode- or header-lines when window-min-height is
25254 too small.
25255 (size_window): Reset nodelete_p after testing it, following an
25256 earlier note by Kim F. Storm.
25257 (display_buffer): Do not set split_height_threshold to twice the
25258 value of window_min_height to avoid changing the value of a
25259 customizable variable. Rather explicitly check whether the
25260 height of the window that shall be splitted is at least as large
25261 as split_height_threshold.
25262 (Fwindow_full_width_p): New defun.
25263 (syms_of_window): Defsubr it.
25264
25265 * window.h: Add EXFUN for Fwindow_full_width_p.
25266
252672007-07-14 Jason Rumney <jasonr@gnu.org>
25268
25269 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25270
252712007-07-14 Richard Stallman <rms@gnu.org>
25272
25273 * eval.c (maybe_call_debugger): New function.
25274 (find_handler_clause): Use maybe_call_debugger.
25275 Call it when the handler says `debug'.
25276 Eliminate DEBUGGER_VALUE_PTR.
25277 (Fsignal): Eliminate debugger_value.
25278 (Qdebug): New variable.
25279 (syms_of_eval): Initialize it.
25280
252812007-07-14 Juanma Barranquero <lekktu@gmail.com>
25282
25283 * eval.c (Fprogn):
25284 * keyboard.c (Ftrack_mouse):
25285 * print.c (Fwith_output_to_temp_buffer):
25286 * window.c (Fsave_window_excursion): Doc fix.
25287
252882007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25289
25290 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25291
252922007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25293
25294 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25295 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25296 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25297 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25298 Remove unused encoding_carryover.
25299 * process.c: Adjust all functions accordingly.
25300
253012007-07-12 Richard Stallman <rms@gnu.org>
25302
25303 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25304
253052007-07-11 Jason Rumney <jasonr@gnu.org>
25306
25307 * makefile.w32-in (LIBS): Include OLE32.
25308
25309 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25310 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25311
253122007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25313
25314 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25315 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25316 from a Lisp_Object into a bare pointer.
25317 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25318 Adjust the code correspondingly.
25319
25320 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25321
25322 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25323 (term_show_mouse_face): Remove unused var `j'.
25324 (handle_one_term_event): Remove unused vars `i' and `j'.
25325 Don't cast return value of ttyname since it's not necessary.
25326
253272007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25328
25329 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25330 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25331
25332 * fns.c (map_char_table): Use an array of int for `indices' rather than
25333 an array of Lisp_Objects (which are only ever integers anyway).
25334 (Fmap_char_table): Update caller.
25335 * lisp.h: Update prototype.
25336 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25337 * fontset.c (Ffontset_info):
25338 * casetab.c (set_case_table): Update callers.
25339
25340 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25341
25342 * keymap.c (struct accessible_keymaps_data)
25343 (struct where_is_internal_data): New structures.
25344 (accessible_keymaps_1, where_is_internal_1): Use them to change
25345 interface to adhere to the one used by map_keymap.
25346 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25347 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25348
25349 * keymap.h (map_keymap_function_t): More informative prototype.
25350
253512007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25352
25353 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25354 (looking_at_1): Don't change search_regs and last_thing_searched
25355 if `inhibit-changing-match-data' is non-nil.
25356 (string_match_1, search_buffer, set_search_regs): Likewise.
25357 (syms_of_search): Add Lisp level definition for
25358 `inhibit-changing-match-data' and set it to nil.
25359 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25360 start and end of the match, instead of using values in search_regs.
25361
253622007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25363
25364 * minibuf.c (Fcompleting_read): New value `confirm-only'
25365 for `require-match'.
25366
253672007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25368
25369 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25370 part of the 2007-06-27 change to syms_of_fileio.
25371
253722007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25373
25374 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25375 Check WINDOWP before using XWINDOW. Consolidate return statements.
25376
253772007-06-27 Richard Stallman <rms@gnu.org>
25378
25379 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25380
253812007-06-27 Juanma Barranquero <lekktu@gmail.com>
25382
25383 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25384
253852007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25386
25387 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25388 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25389 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25390 (_free_internal, memalign): Use them.
25391 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25392 Initialize to PTHREAD_MUTEX_INITIALIZER.
25393 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25394 (morecore_nolock): Rename from morecore. All uses changed.
25395 Use only nolock versions of internal allocation functions.
25396 (_malloc_internal_nolock, _realloc_internal_nolock)
25397 (_free_internal_nolock): New functions created from
25398 _malloc_internal, _realloc_internal, and _free_internal.
25399 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25400 Copy hook value to automatic variable before its use.
25401 (memalign): Copy hook value to automatic variable before its use.
25402
254032007-06-26 Kenichi Handa <handa@m17n.org>
25404
25405 * coding.c (Ffind_operation_coding_system): Docstring improved.
25406 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25407
254082007-06-25 David Kastrup <dak@gnu.org>
25409
25410 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25411 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25412 cater for additional parameter.
25413
25414 * keymap.h: Adjust number of parameters to `current-active-maps'.
25415
25416 * doc.c (Fsubstitute_command_keys): Adjust call of
25417 `current-active-maps'.
25418
254192007-06-25 David Kastrup <dak@gnu.org>
25420
25421 * callint.c (Fcall_interactively): Make the parsing of interactive
25422 specs somewhat more readable.
25423
254242007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25425
25426 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25427 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25428 if extended background has already been filled.
25429
254302007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25431
25432 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25433 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25434
25435 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25436 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25437 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25438 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25439 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25440 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25441 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25442 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25443 Run timers during dialog popup.
25444 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25445
254462007-06-21 Jason Rumney <jasonr@gnu.org>
25447
25448 * image.c (convert_mono_to_color_image): Swap fore and background.
25449
254502007-06-20 Jason Rumney <jasonr@gnu.org>
25451
25452 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25453 (w32_free_bdf_font): Unmap memory not handle.
25454
254552007-06-20 Sam Steingold <sds@gnu.org>
25456
25457 * gmalloc.c (__morecore): Fix the declaration to comply with the
25458 definition.
25459
254602007-06-20 Juanma Barranquero <lekktu@gmail.com>
25461
25462 * w32term.c (w32_delete_display): Remove leftover declaration.
25463 (w32_define_cursor, w32_initialize): Make static.
25464
25465 * w32.c (_wsa_errlist): Fix typo in error message.
25466 (init_environment): Ignore any environment variable from the
25467 registry having a null value.
25468
254692007-06-20 Glenn Morris <rgm@gnu.org>
25470
25471 * Makefile.in (LIBGIF): Default to -lgif.
25472
254732007-06-17 Jason Rumney <jasonr@gnu.org>
25474
25475 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25476 unicode strings.
25477
254782007-06-16 Juanma Barranquero <lekktu@gmail.com>
25479
25480 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25481 Fix typo in docstring.
25482
254832007-06-16 Eli Zaretskii <eliz@gnu.org>
25484
25485 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25486 and their keybindings.
25487
254882007-06-15 Chong Yidong <cyd@stupidchicken.com>
25489
25490 * composite.c (update_compositions): Fix last fix.
25491
254922007-06-14 Jason Rumney <jasonr@gnu.org>
25493
25494 * w32.c (get_process_times_fn): New function pointer.
25495 (globals_of_w32): Intialize it if present in kernel32.dll.
25496 (w32_get_internal_run_time): New function.
25497
25498 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25499
255002007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25501
25502 * composite.c (update_compositions): Check the validness of
25503 compositions.
25504
255052007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25506
25507 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25508 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25509
25510 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25511 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25512
25513 * macgui.h (USE_MAC_TOOLBAR): New define.
25514
25515 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25516 Return immediately unless popup is activated.
25517
25518 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25519 background to scroll bar gap.
25520 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25521 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25522 scroll bars on frame edge. Check fringe background extension.
25523 Don't clear extended fringe background area.
25524 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25525 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25526 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25527 [USE_MAC_TOOLBAR]: New macros.
25528 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25529 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25530 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25531 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25532 [USE_MAC_TOOLBAR]: New functions.
25533 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25534 manually if previous repositioning has failed.
25535 (mac_handle_keyboard_event): Use precomputed event kind.
25536 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25537 as tool bar item click. Handle mouse movement over tool bar items.
25538
25539 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25540 toolbar_win_gravity.
25541 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25542 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25543 Add externs.
25544
25545 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25546 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25547
255482007-06-14 Chong Yidong <cyd@stupidchicken.com>
25549
25550 * image.c (search_image_cache): Remove unused variable.
25551
255522007-06-13 Chong Yidong <cyd@stupidchicken.com>
25553
25554 * xfns.c, xmenu.c: Link to xaw3d if available.
25555
255562007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25557
25558 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25559 frame_foreground and frame_background.
25560
25561 * image.c (lookup_image): Save frame foreground and background colors.
25562 (search_image_cache): Check if saved and current frame colors match.
25563
255642007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25565
25566 * regex.c (regex_compile): Remove the `regnum' counter.
25567 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25568
255692007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25570
25571 * term.c: Include intervals.h to declare Fget_text_property.
25572
255732007-06-10 Jason Rumney <jasonr@gnu.org>
25574
25575 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25576
255772007-06-08 Juanma Barranquero <lekktu@gmail.com>
25578
25579 * callint.c (Fcall_interactively):
25580 * editfns.c (Fdelete_and_extract_region):
25581 * fileio.c (Fread_file_name):
25582 * fns.c (Fmapconcat):
25583 * keyboard.c (cmd_error_internal):
25584 * keymap.c (Fkey_description):
25585 * lread.c (openp):
25586 * minibuf.c (read_minibuf):
25587 * search.c (wordify):
25588 * sunfns.c (sel_read):
25589 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25590 * xfns.c (x_default_scroll_bar_color_parameter):
25591 * xmenu.c (menu_help_callback):
25592 * xselect.c (Fx_get_atom_name):
25593 * xterm.c (x_term_init): Use empty_unibyte_string.
25594
255952007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25596
25597 * alloc.c (init_strings): Initialize canonical empty strings.
25598 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25599 canonical empty string when the requested size is 0.
25600
25601 * emacs.c (empty_unibyte_string): Rename from empty_string.
25602 (empty_multibyte_string): New canonical empty string.
25603 (syms_of_emacs): Don't initialize empty_string.
25604
25605 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25606 string, if appropriate.
25607 (empty_unibyte_string, empty_multibyte_string): New externs.
25608 (empty_string): Remove extern.
25609
25610 * lread.c (syms_of_lread): Use empty_unibyte_string.
25611
256122007-06-07 Jason Rumney <jasonr@gnu.org>
25613
25614 * s/ms-w32.h: Don't define HAVE_TZNAME.
25615
25616 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25617
256182007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25619
25620 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25621
25622 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25623 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25624
25625 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25626 Don't call next handler.
25627 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25628 Remove argument. Install handler to application.
25629 (set_frame_menubar): Don't change deep_p.
25630 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25631 FRAME_OUTER_TO_INNER_DIFF_Y.
25632 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25633 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25634 [HAVE_DIALOGS]: New macros.
25635 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25636 Use them.
25637 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25638
25639 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25640 init_service_handler. All callers changed. Return OSStatus value.
25641
25642 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25643 All callers changed so as not to call SetPortWindowPort.
25644 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25645 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25646 mac_draw_string_common.
25647 (mac_draw_image_string_qd): Likewise.
25648 (mac_draw_string_common): Use them. Add INLINE.
25649 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25650 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25651 GetGlobalMouse.
25652 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25653 and FRAME_OUTER_TO_INNER_DIFF_Y.
25654 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25655 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25656 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25657 repositioning window to mac_handle_window_event.
25658 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25659 saving window location to mac_handle_window_event
25660 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25661 (install_menu_target_item_handler): Remove argument in extern.
25662 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25663 Also accept command events.
25664 (do_keystroke): New function created from XTread_socket.
25665 (init_command_handler): Remove functions.
25666 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25667 and save window location by kEventWindowShowing and kEventWindowHiding
25668 handlers here. Don't call next handler for window state change and
25669 focus events.
25670 (mac_handle_application_event, mac_handle_keyboard_event)
25671 [TARGET_API_MAC_CARBON]: New functions.
25672 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25673 kEventWindowShowing and kEventWindowHiding events. Move installation
25674 of mouse, font, text input and menu target item handlers to
25675 install_application_handler.
25676 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25677 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25678 New function.
25679 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25680 Register it.
25681 (XTread_socket) [TARGET_API_MAC_CARBON]:
25682 Consolidate SendEventToEventTarget calls.
25683 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25684 Move application activation handler to mac_handle_application_event.
25685 Move keyboard handler to mac_handle_keyboard_event.
25686 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25687 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25688 init_command_handler. Call install_application_handler.
25689
25690 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25691 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25692
256932007-06-07 Glenn Morris <rgm@gnu.org>
25694
25695 * emacs.c (main): Use `emacs-copyright' in --version output.
25696
256972007-06-06 Chong Yidong <cyd@stupidchicken.com>
25698
25699 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25700
257012007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25702
25703 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25704
25705 * macgui.h: Replace WindowPtr with WindowRef.
25706
25707 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25708 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25709 Replace ControlHandle with ControlRef.
25710 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25711
25712 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25713 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25714 Replace ControlHandle with ControlRef.
25715 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25716 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25717
25718 * macterm.h (struct scroll_bar): Rename member control_handle_low
25719 and control_handle_high to control_ref_low and control_ref_high.
25720 All uses changed.
25721 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25722 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25723 respectively. All uses changed.
25724 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25725 (install_window_handler, remove_window_handler): Replace WindowPtr
25726 with WindowRef in externs.
25727
257282007-06-05 Juanma Barranquero <lekktu@gmail.com>
25729
25730 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25731
257322007-06-03 Nick Roberts <nickrob@snap.net.nz>
25733
25734 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25735
25736 * frame.c (Fmouse_position, Fmouse_pixel_position):
25737 Condition on HAVE_GPM too.
25738
25739 * term.c (term_mouse_highlight): Remove unused variables.
25740 (Fterm_open_connection): Set gpm_zerobased to 1.
25741 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25742 Use zero based co-ordinates.
25743 (handle_one_term_event): Report a drag as mouse movement too.
25744
25745 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25746
257472007-06-03 Chong Yidong <cyd@stupidchicken.com>
25748
25749 * image.c (search_image_cache): New function. Require background
25750 color match if background color is unspecified in the image spec.
25751 (uncache_image, lookup_image): Use it.
25752
257532007-06-01 Juanma Barranquero <lekktu@gmail.com>
25754
25755 * window.c (Fshrink_window): Reflow docstring.
25756
257572007-06-02 Chong Yidong <cyd@stupidchicken.com>
25758
25759 * Version 22.1 released.
25760
257612007-06-01 Richard Stallman <rms@gnu.org>
25762
25763 * xfns.c (x_encode_text): Add GCPRO.
25764
257652007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25766
25767 * xfns.c (x_set_name_internal): Save encoded name before
25768 x_encode_text in case string data is relocated.
25769
257702007-05-31 Richard Stallman <rms@gnu.org>
25771
25772 * buffer.c (syms_of_buffer): Doc fix.
25773
257742007-05-30 Nick Roberts <nickrob@snap.net.nz>
25775
25776 * sysdep.c (init_sys_modes): Add rather than replace with
25777 O_NONBLOCK.
25778
25779 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25780 term_mouse_moveto.
25781
25782 * termhooks.h (term_mouse_moveto): New extern.
25783
25784 * term.c (mouse_face_window): Rename...
25785 (Qmouse_face_window): ...to this.
25786 (term_show_mouse_face, term_clear_mouse_face)
25787 (term_mouse_highlight): Use Qmouse_face_window.
25788 (term_mouse_moveto): New function.
25789 (term_mouse_position): Make it work.
25790 (syms_of_term): Uncomment assignment to mouse_position_hook.
25791 Staticpro Qmouse_face_window.
25792
257932007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25794
25795 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25796 around current_column call.
25797
257982007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25799
25800 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25801 * xdisp.c (next_element_from_buffer):
25802 * window.c (delete_window):
25803 * term.c (term_mouse_highlight):
25804 * msdos.c (getdefdir):
25805 * macterm.c (mac_create_bitmap_from_bitmap_data)
25806 (init_font_name_table):
25807 * fns.c (Fsxhash):
25808 * data.c (Fmake_local_variable):
25809 * ccl.c (ccl_driver): Likewise.
25810
258112007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25812
25813 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25814 Call mac_wakeup_from_rne on window size change.
25815
258162007-05-25 Chong Yidong <cyd@stupidchicken.com>
25817
25818 * image.c (uncache_image): Fix typo.
25819
258202007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25821
25822 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25823
258242007-05-22 Richard Stallman <rms@gnu.org>
25825
25826 * xterm.c (x_connection_closed): Remove NO_RETURN.
25827
258282007-05-22 Martin Rudalics <rudalics@gmx.at>
25829
25830 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25831
258322007-05-21 Chong Yidong <cyd@stupidchicken.com>
25833
25834 * image.c (uncache_image): New function.
25835 (Fimage_refresh): New function.
25836
258372007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25838
25839 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25840
258412007-05-20 Nick Roberts <nickrob@snap.net.nz>
25842
25843 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25844 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25845
258462007-05-20 Nick Roberts <nickrob@snap.net.nz>
25847
25848 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25849 conditional on [HAVE_GPM_H].
25850
258512007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25852
25853 * syntax.c (skip_chars): Update syntax-table only after we checked that
25854 the new location is valid.
25855
258562007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25857
25858 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25859 mac_get_window_bounds.
25860
258612007-05-20 Nick Roberts <nickrob@snap.net.nz>
25862
25863 * Makefile.in (LIBGPM): Allow it to be set from configure.
25864 If set then link Emacs with it.
25865
25866 * config.in: Regenerate.
25867
25868 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25869 New externs.
25870
25871 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25872 Include gpm.h.
25873 (handle_one_term_event, term_gpm): New externs.
25874
25875 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25876 and allow it to be interrupted by SIGIO.
25877
25878 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25879 (wait_reading_process_output): Wait on gpm_fd too.
25880 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25881 (add_gpm_wait_descriptor_called_flag): New variable.
25882 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25883
25884 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25885 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25886 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25887 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25888 (make_lispy_event): Add case GPM_CLICK_EVENT.
25889 (read_avail_input): Handle mouse input.
25890
25891 * term.c (write_glyphs_with_face): New function.
25892 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25893 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25894 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25895 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25896 (last_mouse_x, last_mouse_y): New variables.
25897 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25898 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25899 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25900 (Fterm_close_connection): New functions.
25901 (term_init): Initialise mouse_face_window.
25902
259032007-05-19 Chong Yidong <cyd@stupidchicken.com>
25904
25905 * xdisp.c (redisplay_window): If first window line is a
25906 continuation line, recompute the new window start instead of
25907 recentering.
25908
259092007-05-18 Glenn Morris <rgm@gnu.org>
25910
25911 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25912 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25913
259142007-05-17 Glenn Morris <rgm@gnu.org>
25915
25916 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25917
259182007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25919
25920 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25921 dead key repeat and up events.
25922
259232007-05-14 Chong Yidong <cyd@stupidchicken.com>
25924
25925 * image.c (pbm_load): Check image size for monochrome pbm.
25926
259272007-05-13 Chong Yidong <cyd@stupidchicken.com>
25928
25929 * xterm.c (XTread_socket): Revert last change.
25930
259312007-05-12 Chong Yidong <cyd@stupidchicken.com>
25932
25933 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25934
25935 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25936
259372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25938
25939 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25940 mixup (YAILOM).
25941
259422007-05-07 Andreas Schwab <schwab@suse.de>
25943
25944 * keymap.c (Flookup_key): Fix typo in last change.
25945
259462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25947
25948 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25949 mapping for unibyte strings.
25950
259512007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25952
25953 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25954 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25955
259562007-04-29 Richard Stallman <rms@gnu.org>
25957
25958 * insdel.c (replace_range): For undo, record insertion first.
25959
259602007-04-29 Andreas Schwab <schwab@suse.de>
25961
25962 * lisp.h (VECSIZE): Use OFFSETOF.
25963
259642007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25965
25966 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25967 disabled lines.
25968
259692007-04-28 Richard Stallman <rms@gnu.org>
25970
25971 * lread.c (read_escape): In a string, \s is always space.
25972
259732007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25974
25975 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25976
25977 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25978 submenu for menu bar items.
25979
25980See ChangeLog.10 for earlier changes.
25981
25982;; Local Variables:
25983;; coding: utf-8
25984;; add-log-time-zone-rule: t
aac0c6e3
MR
25985;; End:
25986
e3eb1dae 25987 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25988
25989 This file is part of GNU Emacs.
25990
25991 GNU Emacs is free software: you can redistribute it and/or modify
25992 it under the terms of the GNU General Public License as published by
25993 the Free Software Foundation, either version 3 of the License, or
25994 (at your option) any later version.
25995
25996 GNU Emacs is distributed in the hope that it will be useful,
25997 but WITHOUT ANY WARRANTY; without even the implied warranty of
25998 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25999 GNU General Public License for more details.
26000
26001 You should have received a copy of the GNU General Public License
26002 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26003
26004;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40