Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6254cdda
DN
12010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
4 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
5 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6 which is what was there before BSD_PGRPS was removed.
7
29cf3e20
EZ
82010-08-05 Eli Zaretskii <eliz@gnu.org>
9
10 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
11
12 * unexcoff.c: Renamed from unexec.c.
13
aaa0a19a
SM
142010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
17
8d1d9587
JB
182010-08-03 Johan Bockgård <bojohan@gnu.org>
19
20 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 21 (Bug#6744)
8d1d9587 22
9a747ba6
JD
232010-08-02 Jan Djärv <jan.h.d@swipnet.se>
24
4d464ae4
JD
25 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
26 to TRUE if depth of screen is < 16.
27
ac01763e
JD
28 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
29 USE_GTK_TOOLTIP.
e0d62a9b
JB
30 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
31 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 32 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
33 USE_GTK_TOOLTIP.
34 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
35
36 * xterm.h (USE_GTK_TOOLTIP): New define.
37 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
38
9a747ba6
JD
39 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
40 to Control-D (Bug#6771).
41
7b0815ba
JB
422010-08-02 Juanma Barranquero <lekktu@gmail.com>
43
44 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
45 Wording by Drew Adams <drew.adams@oracle.com>.
46
aa1859f5
J
472010-08-01 Jan Djärv <jan.h.d@swipnet.se>
48
49 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
50 ttip_lbl.
51
52 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
53 calling gtk_widget_queue_draw.
54 (x_free_frame_resources): Call xg_free_frame_widgets.
55
56 * xfns.c (x_gtk_use_system_tooltips): New variable.
57 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
58 new gtkutil tooltip functions to show the tooltip.
59 (Fx_hide_tip): Call xg_hide_tooltip.
60 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
61
62 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
63 (xg_show_tooltip, xg_hide_tooltip): Declare.
64
65 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
66 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
67 New functions.
aa1859f5
J
68 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
69 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
70 Remove code that is commented out.
71
76417ef4
SM
722010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
73
74 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
75
16041401
CY
762010-07-31 Chong Yidong <cyd@stupidchicken.com>
77
78 * xselect.c (x_own_selection): Use list4.
79
2c09a58f
DN
802010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
81
82 * buffer.c (Qwindow): Do not define, already defined in data.c.
83 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
84
59df9fdd 852010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 86
59df9fdd
JB
87 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
88 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
89 * config.in: Undef HAVE_DIRENT_H.
1c97e857 90 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 91 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 92
1b231651
DN
932010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
94
95 Rename s/usg5-4.h -> s/usg5-4-common.h.
96 * s/usg5-4.h: Rename file to ...
97 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
98 * s/unixware.h:
99 * s/sol2-6.h:
100 * s/irix6-5.h: Update includes accordingly.
101
bfeabdc3
JD
1022010-07-29 Jan Djärv <jan.h.d@swipnet.se>
103
2ebf1083
J
104 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
105
bfeabdc3 106 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
107 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
108 Remove toolbar_height.
109 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
110 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
111 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
112 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
113
114 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
115
116 * xfns.c (x_set_tool_bar_position): New function.
117 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
118 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 119 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
120
121 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
122 and FRAME_TOOLBAR_LEFT_WIDTH.
123
124 * gtkutil.h (xg_change_toolbar_position): Declare.
125
126 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
127 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
128 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
129 (xg_create_frame_widgets): Create a hobox for placing widgets
130 vertically. Use gtk_box_pack_start.
131 (xg_height_or_width_changed): Renamed from xg_height_changed.
132 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
133 (xg_update_frame_menubar, free_frame_menubar): Change to
134 xg_height_or_width_changed.
135 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
136 size correctly. Remove hardcoded 4, instead use handlebox size -
137 toolbar size.
138 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 139 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
140 (xg_pack_tool_bar): POS is a new parameter.
141 Set orientation of tool bar based on pos.
142 Only make handlebox_widget if NULL.
143 Check if tool bar goes to vbox or hbox depending on pos.
144 (xg_update_tool_bar_sizes): New function.
145 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
146 height, call xg_update_tool_bar_sizes instead.
147 (free_frame_tool_bar): Remove from hbox or vbox depending on
148 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
149 (xg_change_toolbar_position): New function.
150
151 * frame.h (struct frame): Add tool_bar_position.
152 (Qbottom): Declare.
153
154 * frame.c (Qtool_bar_position): New variable.
155 (make_frame): Set tool_bar_position to Qtop.
156 (frame_parms): Add tool-bar-position.
157 (x_report_frame_params): Store tool_bar_position.
158 (x_set_fringe_width): Reset wm size hint after fringe changes.
159
26469a38
DN
1602010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
161
162 Make lisp_time_argument declaration work on all systems.
163 * lisp.h (lisp_time_argument): Move declaration ...
164 * systime.h (lisp_time_argument): ... here
165 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
166
8848b728
JD
1672010-07-29 Jan Djärv <jan.h.d@swipnet.se>
168
169 * vm-limit.c (POINTER): Add typedef for it.
170 (start_of_data): Change return type from POINTER to char *.
171
172 * frame.h (Qtty_color_mode): Move declaration out of ifdef
173 HAVE_WINDOW_SYSTEM.
174
76fd1ee9
DN
1752010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
176
0441987e
DN
177 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
178 Remove reference to __osf__, unused.
179
56a000c7
DN
180 * mem-limits.h: Remove duplicated includes.
181 (NULL): Remove definition, unused.
182 (POINTER): Remove definition.
183 (start_of_data): Use char* in prototype, as the function
184 definition does.
185
e6cba650
DN
186 Remove extern declarations from .c files, and them to .h files.
187 * keyboard.h (Qhelp_echo, waiting_for_input)
188 (input_available_clear_time, ignore_mouse_drag_p)
189 (Vdouble_click_time, real_this_command, Vthis_original_command):
190 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
191 (Voverriding_local_map_menu_flag):
192 * lisp.h (Qinteractive_form, use_file_dialog)
193 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
194 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
195 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
196 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
197 (Qfunction, debug_on_next_call, Qfield)
198 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
199 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
200 (Qfile_directory_p, Qinsert_file_contents)
201 (Qcompletion_ignore_case, Qcompletion_ignore_case)
202 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
203 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
204 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
205 (Qminibuffer_prompt)
206 (Vtemporary_file_directory,char_ins_del_vector, Qface):
207 * xterm.h (gray_bitmap_width, gray_bitmap_height)
208 (gray_bitmap_bits, xic_create_fontsetname):
209 * coding.h (Vtranslation_table_for_input): Add extern declarations.
210
211 * xsmfns.c (Vuser_login_name):
212 * xrdb.c (Vdouble_click_time):
213 * xfaces.c (xic_create_fontsetname):
214 * w32select.c (waiting_for_input):
215 * print.c (minibuffer_auto_raise):
216 * msdos.c (Qhelp_echo):
217 * macros.c (real_this_command):
218 * keymap.c (Voverriding_local_map):
219 * xterm.c (poll_for_input_1, gray_bitmap_width)
220 (gray_bitmap_height, gray_bitmap_bits;
221 * xmenu.c ( Voverriding_local_map)
222 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
223 (use_file_dialog, Xt_app_con):
224 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
225 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
226 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
227 (Qtool_bar_lines, ignore_mouse_drag_p):
228 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
229 (Qrear_nonsticky, nconc2):
230 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
231 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
232 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
233 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
234 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
235 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
236 (gc_in_progress):
237 * doc.c (Voverriding_local_map, Qremap):
238 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
239 (Vcompletion_regexp_list):
240 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
241 (Qcompletion_ignore_case):
242 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
243 (Vhistory_length, Vthis_original_command, real_this_command)
244 (Qface, Qminibuffer_prompt, history_delete_duplicates):
245 * image.c (Qrisky_local_variable):
246 * fontset.c (QCname):
247 * fns.c (minibuffer_auto_raise, QCname):
248 * dispnew.c (char_ins_del_cost):
249 * composite.c (font_fill_lglyph_metrics):
250 * cmds.c (Qface, Vtranslation_table_for_input):
251 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
252 * ccl.c (charset_unicode):
253 * callproc.c (Vtemporary_file_directory):
254 * buffer.c (emacs_strerror): Remove extern declarations.
255
256 * data.c (Qwindow): Make non-static, used from other files too.
257 * frame.c (validate_x_resource_name): Remove shadow definition for i.
258
76fd1ee9
DN
259 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
260 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
261 * s/usg5-4.h (COFF):
262 * s/template.h:
263 * s/msdos.h (COFF, NO_REMAP):
264 * s/ms-w32.h (NO_REMAP):
265 * s/hpux10-20.h (NO_REMAP):
266 * m/sparc.h (SEGMENT_MASK):
267 * m/m68k.h (NO_REMAP):
268 * m/intel386.h (SEGMENT_MASK):
269 * m/arm.h (NO_REMAP):
270 * m/alpha.h (COFF):
271 * m/template.h: Remove references to unused defines.
272
8a52f00a
JD
2732010-07-28 Jan Djärv <jan.h.d@swipnet.se>
274
275 * xsettings.c (Ftool_bar_get_system_style): Also check for
276 Qtext_image_horiz.
277
278 * xdisp.c (Qtext_image_horiz): Define.
279 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 280 to documentation of tool-bar-style.
8a52f00a
JD
281
282 * lisp.h (Qtext_image_horiz): Declare.
283
284 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
285 style text_image_horiz.
286
89dc303e
DN
2872010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
288
60799703
DN
289 * emacs.c (Fkill_emacs): Remove return statement.
290
37254dc1
DN
291 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
292 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
293 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
294 local extern declarations.
295
71c7345a
DN
296 * xmenu.c: Do not included lwlib.h, not needed.
297
6ba577cb
DN
298 * m/iris4d.h (XUINT, XSET): Remove, not needed.
299
fdb183d6
DN
300 * process.c: Move definitions earlier to minimize #ifdefs.
301
302 * xterm.h (x_get_customization_string, x_load_resources)
303 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
304 (x_check_errors, x_property_data_to_lisp, defined_color)
305 (xic_set_xfontset, x_defined_color): Use const.
306
307 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
308 (x_text_icon, x_check_errors, x_connection_closed): Use const.
309
310 * xselect.c (selection_data_to_lisp_data)
311 (x_property_data_to_lisp):
312 * xrdb.c (x_get_string_resource, file_p)
313 (x_get_customization_string, magic_file_p, search_magic_path)
314 (get_system_app, get_user_app, x_load_resources, x_get_resource)
315 (x_get_string_resource): Use const.
316
317 * xfns.c: Include xlwmenu.h when USE_LUCID.
318 (x_defined_color, xic_set_xfontset): Use const.
319 (Fx_hide_tip): Remove local extern declaration.
320
321 * xfaces.c (Qmouse_face): Remove declaration.
322 (face_color_gray_p, tty_defined_color, defined_color)
323 (face_color_gray_p, face_color_supported_p). Add const.
324
325 * xdisp.c (do_mouse_tracking): Remove declaration.
326 (add_to_log): Use const.
327
328 * minibuf.c (Qmouse_face): Remove declaration.
329
330 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
331
332 * keyboard.h (do_mouse_tracking): Add declaration.
333
334 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
335 (QCdata, QCtype, Qcenter): Remove declarations.
336
337 * frame.c (x_get_resource_string, x_get_string_resource)
338 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
339 (x_default_parameter): Use const.
340
341 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
342 (QCheight, QCsize, QCname): Remove declarations.
343
344 * emacs.c (main): Remove local extern declaration.
345
346 * editfns.c (region_limit, syms_of_editfns): Remove local extern
347 declarations.
348
349 * dispnew.c: Remove duplicate #include <unistd.h>.
350 (update_window, update_frame_1, init_display): Remove local extern
351 declarations.
352
353 * dispextern.h (add_to_log): Remove declaration.
354 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
355 (x_frame_get_and_record_arg, x_default_parameter): Add const.
356
357 * dired.c (scmp): Add const.
358 (directory_files_internal): Remove local extern declaration.
359
360 * data.c (Finteractive_form): Use const.
361
362 * composite.c (syms_of_composite): Remove local extern declarations.
363
364 * charset.c (add_to_log): Remove declaration.
365
366 * character.c (strwidth, parse_str_to_multibyte): Add const.
367
368 * character.h (strwidth, parse_str_to_multibyte): Likewise.
369
370 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
371
89dc303e 372 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
373 (Lisp_Subr): Make doc and intspec constant.
374 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
375 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
376 (QCheight, QCsize, QCname, QCwidth, QCforeground)
377 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
378 (display_arg): Add declarations.
89dc303e 379
0ed082fe 3802010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
381
382 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
383
0ed082fe
JB
384 * window.c (Fwindow_height): Doc fix (bug#6518).
385
3862010-07-27 Juanma Barranquero <lekktu@gmail.com>
387
388 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
389
ccaf0336
DN
3902010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
391
977105dc
DN
392 * keyboard.c (Ftop_level, Fexit_recursive_edit)
393 (Fabort_recursive_edit): Remove return statements in NO_RETURN
394 functions.
395
f5ada890
DN
396 * frame.h (Qtty_color_mode): Add declaration.
397
ccaf0336
DN
398 * lisp.h (Ftop_level, Fexit_recursive_edit)
399 (Fabort_recursive_edit): Mark as NO_RETURN.
400
dfe3c90f
KH
4012010-07-26 Kenichi Handa <handa@m17n.org>
402
403 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 404 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 405
7d383292
JB
4062010-07-26 Juanma Barranquero <lekktu@gmail.com>
407
408 * lread.c (unreadpure, mapatoms_1): Make static.
409
da31e629
JB
4102010-07-25 Juanma Barranquero <lekktu@gmail.com>
411
412 * terminfo.c (tparam): Fix prototype of tparm.
413
7bfa6d77
AS
4142010-07-25 Andreas Schwab <schwab@linux-m68k.org>
415
dcc19aac
AS
416 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
417 find start of text segment.
418 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
419 is defined.
420
7bfa6d77
AS
421 * callproc.c (set_initial_environment): Avoid unbalanced braces.
422
63f9a672
KB
4232010-07-25 Ken Brown <kbrown@cornell.edu>
424
425 * vm-limit.c (check_memory_limits): Fix previous change;
426 accidentally reverted an earlier change.
427
24933075
KB
4282010-07-25 Ken Brown <kbrown@cornell.edu>
429
430 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
431 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
432
361358ea
JB
4332010-07-25 Juanma Barranquero <lekktu@gmail.com>
434
435 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
436 * dired.c (opendir, readdir): Fix prototypes.
437 * editfns.c (w32_get_internal_run_time): Fix prototypes.
438 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
439 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
440 (telldir): Remove declaration.
441 * ralloc.c (real_morecore, __morecore): Fix prototypes.
442 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
443 * syssignal.h (strsignal): Fix prototype.
444 * term.c (tparam): Fix prototype.
445 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
446 (term_get_fkeys): Set inside "#ifndef DOS_NT".
447 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
448 and __morecore.
449 * w32gui.h (XParseGeometry): Fix prototype.
450 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
451 * w32term.c (my_set_focus): Declare inside #if 0.
452 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
453 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
454 (drain_message_queue, get_next_msg, post_msg, parse_button)
455 (ClipboardSequence_Proc): Fix prototypes.
456 (wait_for_sync): Remove declaration.
457
630b9592
JB
4582010-07-24 Juanma Barranquero <lekktu@gmail.com>
459
460 * w32fns.c (w32_to_x_color): Remove, unused.
461
6a0d6611
AS
4622010-07-24 Andreas Schwab <schwab@linux-m68k.org>
463
464 * lisp.h: Remove leftover P_.
465
4e8608ff
DN
4662010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
467
468 * ecrt0.c, unexalpha.c: Remove files, unused.
469
c8197983
AS
4702010-07-24 Andreas Schwab <schwab@linux-m68k.org>
471
472 * cmds.c (internal_self_insert): Make static.
473 * lisp.h (internal_self_insert): Remove declaration.
474
97b372d7
JB
4752010-07-23 Juanma Barranquero <lekktu@gmail.com>
476
33ac0414
JB
477 * alloc.c (free_float):
478 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
479 * frame.c (delete_frame_handler):
480 * ralloc.c (reorder_bloc):
481 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
482 Remove unused static functions.
483
94da8397
JB
484 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
485 it is called only from NS code.
486
2e6c8532
JB
487 * w32term.c (my_set_focus): #ifdef away; it is called only from
488 "#ifdef 0" code.
489
97b372d7
JB
490 * w32fns.c (x_edge_detection):
491 * xfaces.c (may_use_scalable_font_p):
492 Remove obsolete static declarations.
493
7c3320d8
JB
4942010-07-20 Juanma Barranquero <lekktu@gmail.com>
495
496 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
497 (emacs_blocked_realloc, uninterrupt_malloc):
498 * fringe.c (w32_reset_fringes):
499 * image.c (convert_mono_to_color_image, lookup_rgb_color)
500 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
501 * sound.c (be2hs, do_play_sound):
502 * vm-limit.c (get_lim_data, ret_lim_data):
503 * w32term.c (x_free_frame_resources):
504 * xfaces.c (x_create_gc, x_free_gc):
505 Convert definitions to standard C.
506
d5273788
SM
5072010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
508
509 * eval.c (Feval, Ffuncall): Use the new names.
510
511 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
512 (DEFUN): Add braces around the union initialisation and use ## to
513 specify the right union alternative and avoid a cast.
514
8d16a259
JB
5152010-07-18 Juanma Barranquero <lekktu@gmail.com>
516
517 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
518
3b8eff32
CY
5192010-07-17 Chong Yidong <cyd@stupidchicken.com>
520
521 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
522
499322ce
J
5232010-07-17 Jan Djärv <jan.h.d@swipnet.se>
524
525 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
526 is related to the menu bar (Bug#6499).
a628ad9d 527 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 528
f6003da5 5292010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
530
531 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
532
533 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
534
535 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
536 i.e. don't put back ButtonRelease (Bug#6608).
537
538 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
539 instead of Window. Call xg_event_is_for_menubar when
540 USE_GTK (Bug#6499).
541
542 * gtkutil.h (xg_event_is_for_menubar): Declare.
543
544 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
545
f6003da5 5462010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
547
548 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
549 when it's the same as the old foreground. (Bug#6609)
550
23243f29
J
5512010-07-16 Jan Djärv <jan.h.d@swipnet.se>
552
553 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
554 widget is non-null (Bug#6645).
555
2b23d2a6
AS
5562010-07-15 Andreas Schwab <schwab@linux-m68k.org>
557
01b564ff
AS
558 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
559 Convert old-style definition.
560
2b23d2a6
AS
561 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
562 timestamp argument.
563
c4affd2c
EZ
5642010-07-15 Eli Zaretskii <eliz@gnu.org>
565
566 * fringe.c (update_window_fringes): Restore mistakenly reverted
567 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
568
cf28cebc
J
5692010-07-14 Jan Djärv <jan.h.d@swipnet.se>
570
571 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
572 (SET_SAVED_KEY_EVENT): Remove (not used).
573 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
574 remove size parameter.
575 (handle_one_xevent): Check popup_activated () for menu for Xt also.
576 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
577 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
578 ButtonRelease.
6b2c4bd9
J
579 (x_set_window_size_1): scroll_bar_actual_width is always
580 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
581
582 * xdisp.c (pending_menu_activation): Remove extern declaration.
583 (prepare_menu_bars): Remove setting of pending_menu_activation.
584
585 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
586 (x_activate_menubar): Set popup_activated_flag for Xt also.
587 Remove setting of pending_menu_activation.
cf28cebc
J
588 (set_frame_menubar): Remove check of pending_menu_activation.
589 Declare menubar_size before code. Correct spelling in comment.
590
f6c1c771
KH
5912010-07-14 Kenichi Handa <handa@m17n.org>
592
593 * font.c (font_open_entity): Cancel previous change.
594 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
595
20477505
EZ
5962010-07-13 Eli Zaretskii <eliz@gnu.org>
597
77defa9a
EZ
598 Remove subprocesses #ifdefs.
599 * process.c <inhibit_sentinels>: Move to the common part.
600 (Fwaiting_for_user_input_p): Move to the common part; return nil
601 if async subprocesses aren't supported.
602 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
603 MS-DOS. Remove "#ifdef subprocesses".
604 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
605 (gettimeofday): Remove "#ifdef subprocesses".
606 (wait_without_blocking): Remove function.
607 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
608 Remove "#ifdef subprocesses".
609 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
610 compiled on MS-DOS.
611 * callproc.c (Fcall_process) [!MSDOS]: Don't call
612 wait_for_termination on MS-DOS.
613 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
614 initialization of inhibit_sentinels.
615 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
616 subprocesses" conditional.
617 * callproc.c (Fcall_process) [!subprocesses]: Don't call
618 wait_for_termination, since `buffer' cannot be an integer when
619 async subprocesses are not supported
620 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
621 for ifdefing away the call to Fprocess_status.
622
20477505
EZ
623 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
624 away the entire body of the function.
625
b3ffc17c
DN
6262010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
627
01faa934
DN
628 Remove subprocesses #ifdefs from term.c.
629 * process.c (add_keyboard_wait_descriptor)
630 (delete_keyboard_wait_descriptor): Move to common section, do
631 nothing when subprocesses is not defined.
a628ad9d
JB
632 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
633 Remove subprocesses #ifdefs.
01faa934 634
b3ffc17c
DN
635 Convert maybe_fatal to standard C.
636 * lisp.h (verror): Declare.
637 * eval.c (verror): New function containing the code from ...
638 (error): ... this. Call verror.
639 * term.c (vfatal): New function containing the code from ...
640 (fatal): ... this. Call vfatal.
641 (maybe_fatal): Convert to standard C, use variable number of
642 arguments. Declare as non-return.
643 (init_tty): Fix maybe_fatal call.
644
0521f580
DN
6452010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
646
647 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
648 (_scroll_bar_note_movement): Convert definitions to standard C.
649 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
650 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
651
ebd15611
DN
6522010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
653
654 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
655 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
656 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
657 (xaw_jump_callback, xaw_scroll_callback)
658 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
659 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
660 definitions to standard C.
661 * xmenu.c (menubar_id_to_frame, popup_get_selection)
662 (popup_activate_callback, popup_deactivate_callback)
663 (menu_highlight_callback, menubar_selection_callback)
664 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
665 (free_frame_menubar, popup_selection_callback, as)
666 (create_and_show_popup_menu, dialog_selection_callback)
667 (create_and_show_dialog):
668 * xfns.c (hack_wm_protocols, x_window):
669 * xfaces.c (x_update_menu_appearance):
670 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
671 (char_to_pixel_size, round_size_to_char, get_wm_shell)
672 (set_frame_size, update_wm_hints, setup_frame_gcs)
673 (update_various_frame_slots, update_from_various_frame_slots)
674 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
675 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
676 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
677
de06a2dd
AS
6782010-07-12 Andreas Schwab <schwab@linux-m68k.org>
679
a628ad9d 680 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 681
fc549af9
EZ
6822010-07-12 Eli Zaretskii <eliz@gnu.org>
683
684 * process.c (setup_process_coding_systems): Move to the part
685 shared by non-subprocesses systems, and make its body empty when
686 subprocesses is not defined.
687 (close_process_descs): Move to the part shared by non-subprocesses
688 systems.
1408902e
EZ
689 (wait_reading_process_output) [!subprocesses]: Convert arg list to
690 ANSI C.
fc549af9 691
d5a3eaaf
AS
6922010-07-12 Andreas Schwab <schwab@linux-m68k.org>
693
694 * editfns.c (transpose_markers): Convert old-style definition.
695 * emacs.c (abort, shut_down_emacs, fixup_locale)
696 (synchronize_system_time_locale)
697 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
698 * floatfns.c (extract_float, matherr, init_floatfns)
699 (syms_of_floatfns): Likewise.
700 * fns.c (make_hash_table): Likewise.
701 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
702 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
703 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
704 (ftfont_variation_glyphs): Likewise.
705 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
706 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
707 * lread.c (read_filtered_event): Likewise.
708 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
709 * process.c (wait_reading_process_output): Likewise.
710 * scroll.c (do_line_insertion_deletion_costs): Likewise.
711 * search.c (search_buffer, boyer_moore): Likewise.
712 * syntax.c (scan_sexps_forward): Likewise.
713 * xdisp.c (try_scrolling): Likewise.
714 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
715 (face_at_string_position): Likewise.
716 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
717 * xselect.c (x_get_window_property, receive_incremental_selection)
718 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
719 Likewise.
720 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
721
6f704c76
DN
7222010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
723
ded80a25
DN
724 * callproc.c (child_setup): Remove subprocesses conditional.
725 Remove code dealing with SET_EMACS_PRIORITY, unused.
726
49d937f4 727 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
728 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
729
730 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
731 (__do_global_dtors, __main): Use void in definition.
732 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
733 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
734 the only users from ...
735 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
736 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
737 (HAVE_VOLATILE): Remove, unused.
738
6f704c76
DN
739 Convert more function definitions to standard C.
740 * xdisp.c (window_box_edges, handle_single_display_spec)
741 (display_string): Convert definition to standard C.
742 * scroll.c (do_direct_scrolling, scrolling_1):
743 * dispnew.c (allocate_matrices_for_frame_redisplay)
744 (mirrored_line_dance):
745 * coding.c (code_convert_string):
746 * charset.c (map_charset_chars):
747 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
748 (Fregister_ccl_program, Fregister_code_conversion_map):
749 * keyboard.c (kbd_buffer_nr_stored): Likewise.
750 (head_table): Make static and const.
751
e6cfa7c3
AS
7522010-07-12 Andreas Schwab <schwab@linux-m68k.org>
753
754 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
755 (PROFILING_LDFLAGS): Set from substitution.
756 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
757 CFLAGS last.
758
892dd565
KH
7592010-07-12 Kenichi Handa <handa@m17n.org>
760
6f2cdcd1
KH
761 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
762 (shortlisp): Likewise.
763
892dd565
KH
764 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
765
766 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
767 of FONT_ENTITY_INDEX.
768 (Ffont_get): If KEY is :otf and the font-object doesn't have the
769 property, get the property value dynamically.
770 (Ffont_put): Accept font-entity and font-object too.
771 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
772 return value changed.
773 (syms_of_font): Adjusted for the above change.
774
ae96d47a
AS
7752010-07-11 Andreas Schwab <schwab@linux-m68k.org>
776
c8fc18ee
AS
777 * blockinput.h: Remove obsolete comment.
778
89887d67
AS
779 * lisp.h: Include <stddef.h>.
780 (OFFSETOF): Don't define.
781 (VECSIZE): Use offsetof instead of OFFSETOF.
782 (PSEUDOVECSIZE): Likewise.
783 * process.c (conv_sockaddr_to_lisp): Likewise.
784 * alloc.c: Don't include <stddef.h>.
785 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
786
ae96d47a
AS
787 * process.c: Remove obsolete comment.
788
635c0aa1
CY
7892010-07-11 Chong Yidong <cyd@stupidchicken.com>
790
791 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
792
a64df650
AS
7932010-07-11 Andreas Schwab <schwab@linux-m68k.org>
794
8966b757
AS
795 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
796 index, rindex.
797 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
798 * editfns.c (Fuser_full_name, Fformat): Likewise.
799 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
800 * fileio.c (Ffile_symlink_p): Likewise.
801 * filelock.c (current_lock_owner): Likewise.
802 * font.c (font_parse_name, font_parse_family_registry): Likewise.
803 * fontset.c (fontset_pattern_regexp): Likewise.
804 * lread.c (read1): Likewise.
805 * sysdep.c (init_system_name): Likewise.
806 * xfns.c (select_visual): Likewise.
807 * s/hpux10-20.h (index, rindex): Don't define.
808 * s/ms-w32.h (index): Likewise.
809 * s/usg5-4.h: Likewise.
810
cf237e27
AS
811 * callproc.c (relocate_fd): Use F_DUPFD if defined.
812
a8fe7202
AS
813 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
814 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
815 (egetenv): Likewise.
816 * doprnt.c (doprnt): Likewise.
817 * editfns.c (set_time_zone_rule, format2): Likewise.
818 * emacs.c (decode_env_path): Likewise.
819 * eval.c (signal_error, error): Likewise.
820 * insdel.c (replace_range_2): Likewise.
821 * keyboard.c (cmd_error_internal): Likewise.
822 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
823 * print.c (write_string, write_string_1, print_error_message):
824 Likewise.
825 * vm-limit.c (warn_function, memory_warnings): Likewise.
826 * xdisp.c (message1, message1_nolog, message_with_string)
827 (vmessage, message, message_nolog): Likewise.
828 * emacs.c: Remove duplicate declaration.
829 * keyboard.h: Likewise.
830 * lisp.h: Update prototypes.
831
bb8e180f
AS
832 * eval.c: Fix indentation problem.
833
83380e65
AS
834 * keyboard.c: Include "process.h"
835
a64df650
AS
836 * eval.c: Remove obsolete noinline declaration.
837 * fns.c: Likewise.
838
6a8033e1
KR
8392010-07-11 Ken Raeburn <raeburn@raeburn.org>
840
841 * doprnt.c (doprnt): Take a va_list argument instead of count and
842 pointer.
843 * eval.c (error): Change to a standard-C variadic function.
844 * xdisp.c (vmessage): Renamed from message, made static, and
845 changed to take a va_list argument.
846 (message): New variadic wrapper.
847 (message_nolog): Now a variadic function, calling vmessage.
848 * lisp.h: Include stdarg.h for va_list.
849 (doprnt, error, message, message_nolog): Decls updated.
850
462aa963
EZ
8512010-07-11 Eli Zaretskii <eliz@gnu.org>
852
853 * process.c (syms_of_process) <delete-exited-processes>: Define
854 even if !subprocesses.
855 (delete_exited_processes): Ditto.
856
857 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
858 (delete_exited_processes): Don't define.
859
48104462
CY
8602010-07-10 Chong Yidong <cyd@stupidchicken.com>
861
862 * frame.c (make_frame): Initialize menu_bar_lines and
863 tool_bar_lines members.
864 (make_initial_frame, make_terminal_frame): Initialize
865 menu_bar_lines using value of menu-bar-mode.
866
867 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
868
f388c88a
EZ
8692010-07-10 Eli Zaretskii <eliz@gnu.org>
870
871 * process.c: Reshuffle #include's. Condition some of the global
872 and static variables on `subprocesses'.
873 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
874 Leave only one implementation.
875 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
876 (kill_buffer_processes, Flist_system_processes)
877 (Fprocess_attributes, init_process, syms_of_process): Unify the
878 implementations for with subprocesses and without them.
879
723f5a07
J
8802010-07-09 Jan Djärv <jan.h.d@swipnet.se>
881
882 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
883 correct size for Motif.
884 (free_frame_menubar): Call x_set_window_size to update frame size.
885
886 * xfns.c (x_window): Set borderWidth to 0 for pane and
887 EmacsFrame. Frame size calculation is wrong otherwise.
888
2536a4b7
MA
8892010-07-09 Michael Albinus <michael.albinus@gmx.de>
890
891 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
892 allows to suppress errors when polling in Emacs' main loop.
893 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
894 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
895 (Fdbus_method_error_internal, Fdbus_send_signal)
896 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
897 (Fdbus_register_method): Use it. (Bug#6579)
898
5842a27b
DN
8992010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
900
901 * alloc.c: Convert DEFUNs to standard C.
902 * buffer.c:
903 * bytecode.c:
904 * callint.c:
905 * callproc.c:
906 * casefiddle.c:
907 * casetab.c:
908 * category.c:
909 * character.c:
910 * charset.c:
911 * chartab.c:
912 * cmds.c:
913 * coding.c:
914 * composite.c:
915 * data.c:
916 * dbusbind.c:
917 * dired.c:
918 * dispnew.c:
919 * doc.c:
920 * dosfns.c:
921 * editfns.c:
922 * emacs.c:
923 * eval.c:
924 * fileio.c:
925 * filelock.c:
926 * floatfns.c:
927 * fns.c:
928 * font.c:
929 * fontset.c:
930 * frame.c:
931 * fringe.c:
932 * image.c:
933 * indent.c:
934 * insdel.c:
935 * keyboard.c:
936 * keymap.c:
937 * lread.c:
938 * macros.c:
939 * marker.c:
940 * menu.c:
941 * minibuf.c:
942 * msdos.c:
943 * nsfns.m:
944 * nsmenu.m:
945 * nsselect.m:
946 * print.c:
947 * process.c:
948 * search.c:
949 * sound.c:
950 * syntax.c:
951 * term.c:
952 * terminal.c:
953 * textprop.c:
954 * undo.c:
955 * w16select.c:
956 * w32console.c:
957 * w32fns.c:
958 * w32font.c:
959 * w32menu.c:
960 * w32proc.c:
961 * w32select.c:
962 * window.c:
963 * xdisp.c:
964 * xfaces.c:
965 * xfns.c:
966 * xmenu.c:
967 * xselect.c:
968 * xsettings.c:
969 * xsmfns.c: Likewise.
970
d568829b
EZ
9712010-07-08 Eli Zaretskii <eliz@gnu.org>
972
973 * process.c (kbd_is_on_hold, hold_keyboard_input)
974 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
975
52214050
J
9762010-07-08 Jan Djärv <jan.h.d@swipnet.se>
977
978 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
979 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
980 unless USE_LUCID.
981
313d9eb2
DN
9822010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
983
a628ad9d
JB
984 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
985 declaration.
d8825aa3 986
295d0d8f
DN
987 Clean up include guards.
988 * tparam.c: Remove include guards for config.h, string.h and code
989 that assumes #ifndef emacs.
990 * termcap.c:
991 * unexalpha.c:
992 * sysdep.c:
993 * filemode.c:
994 * filelock.c:
995 * bidi.c: Likewise.
996
49d9e6b0
DN
997 Remove prefix-args.c
998 * prefix-args.c: Remove file.
999 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1000 * Makefile.in (temacs${EXEEXT}): Remove references to
1001 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1002 (mostlyclean): Remove reference to prefix-args.
1003 (prefix-args): Remove.
1004
313d9eb2
DN
1005 Simplify cstart_of_data, start_of_code and related code.
1006 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1007 (start_of_data): Merge into start_of_data function.
1008 * sysdep.c (start_of_text): Remove. Move simplified versions of
1009 it in the only users: unexaix.c and unexec.c.
1010 (read_input_waiting): Remove local declaration of quit_char.
1011 (start, etext): Remove declarations.
1012 (start_of_data): Merge with the version in mem-limits.h and move
1013 to vm-limits.c.
1014 * vm-limit.c (start_of_data): Merged and simplified version of the
1015 code formerly in mem-limits.h and sysdep.c.
1016 * unexec.c (start): New declaration, moved from sysdep.c.
1017 (start_of_text): Simplified version of the code formerly in sysdep.c.
1018 * unexaix.c (start_of_text): Simplified version of the code
1019 formerly in sysdep.c.
1020 * m/alpha.h (HAVE_TEXT_START): Remove.
1021 (TEXT_START): Move ...
1022 * unexalpha.c (TEXT_START): ... here.
1023 * s/hpux10-20.h (TEXT_START): Remove.
1024 * s/darwin.h (TEXT_START):
1025 * m/mips.h (TEXT_START):
1026 * m/macppc.h (HAVE_TEXT_START):
1027 * m/m68k.h (TEXT_START):
1028 * m/iris4d.h (TEXT_START):
1029 * m/intel386.h (TEXT_START):
1030 * m/ibmrs6000.h (TEXT_START):
1031 * m/ia64.h (HAVE_TEXT_START):
1032 * s/msdos.h (TEXT_START): Likewise.
1033
72af86bd
AS
10342010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1035
1036 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1037 (overrun_check_free, xstrdup, allocate_string)
1038 (allocate_string_data, compact_small_strings, Fmake_string)
1039 (make_unibyte_string, make_multibyte_string)
1040 (make_string_from_bytes, make_specified_string, make_float)
1041 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1042 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1043 memcpy, memmove, memset, memcmp.
1044 * atimer.c (start_atimer, set_alarm): Likewise.
1045 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1046 (mmap_realloc, init_buffer_once): Likewise.
1047 * callint.c (Fcall_interactively): Likewise.
1048 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1049 (getenv_internal_1): Likewise.
1050 * casefiddle.c (casify_object): Likewise.
1051 * ccl.c (ccl_driver): Likewise.
1052 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1053 * charset.c (load_charset_map_from_file)
1054 (load_charset_map_from_file, load_charset_map_from_vector)
1055 (Fdefine_charset_internal): Likewise.
1056 * cm.c (Wcm_clear): Likewise.
1057 * coding.c (decode_eol, decode_coding_object)
1058 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1059 * data.c (Faset): Likewise.
1060 * dired.c (directory_files_internal, file_name_completion_stat):
1061 Likewise.
1062 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1063 (clear_glyph_row, copy_row_except_pointers)
1064 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1065 (save_current_matrix, restore_current_matrix)
1066 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1067 (mirror_line_dance, scrolling_window): Likewise.
1068 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1069 Likewise.
1070 * doprnt.c (doprnt): Likewise.
1071 * editfns.c (Fuser_full_name, make_buffer_string_both)
1072 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1073 * emacs.c (sort_args): Likewise.
1074 * eval.c (Fapply, Ffuncall): Likewise.
1075 * fileio.c (Ffile_name_directory, make_temp_name)
1076 (Fexpand_file_name, search_embedded_absfilename)
1077 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1078 (auto_save_error): Likewise.
1079 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1080 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1081 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1082 (Fmake_hash_table): Likewise.
1083 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1084 * ftfont.c (ftfont_text_extents): Likewise.
1085 * getloadavg.c (getloadavg): Likewise.
1086 * image.c (define_image_type, make_image, make_image_cache)
1087 (x_create_x_image_and_pixmap, xbm_image_p)
1088 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1089 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1090 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1091 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1092 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1093 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1094 Likewise.
1095 * indent.c (scan_for_column, compute_motion): Likewise.
1096 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1097 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1098 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1099 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1100 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1101 (store_user_signal_events, menu_bar_items, tool_bar_items)
1102 (process_tool_bar_item, append_tool_bar_item)
1103 (read_char_minibuf_menu_prompt, read_key_sequence)
1104 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1105 Likewise.
1106 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1107 Likewise.
1108 * lisp.h (STRING_COPYIN): Likewise.
1109 * lread.c (Fload, read1, oblookup): Likewise.
1110 * msdos.c (Frecent_doskeys): Likewise.
1111 * nsfns.m (Fx_create_frame): Likewise.
1112 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1113 Likewise.
1114 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1115 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1116 Likewise.
1117 * nsmenu.m (ns_update_menubar): Likewise.
1118 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1119 * print.c (print_unwind, printchar, strout, print_string)
1120 (print_error_message): Likewise.
1121 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1122 (Fmake_network_process, Fnetwork_interface_list)
1123 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1124 (init_process): Likewise.
1125 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1126 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1127 Likewise.
1128 * scroll.c (do_scrolling, do_direct_scrolling)
1129 (scrolling_max_lines_saved): Likewise.
1130 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1131 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1132 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1133 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1134 (emacs_set_tty): Likewise.
1135 * term.c (encode_terminal_code, calculate_costs)
1136 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1137 Likewise.
1138 * termcap.c (tgetst1, gobble_line): Likewise.
1139 * termhooks.h (EVENT_INIT): Likewise.
1140 * tparam.c (tparam1): Likewise.
1141 * unexalpha.c (unexec): Likewise.
1142 * unexec.c (write_segment): Likewise.
1143 * unexmacosx.c (unexec_write_zero): Likewise.
1144 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1145 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1146 * w32font.c (w32font_list_family, w32font_text_extents)
1147 (w32font_list_internal, w32font_match_internal)
1148 (w32font_open_internal, compute_metrics, Fx_select_font):
1149 Likewise.
1150 * w32menu.c (set_frame_menubar, add_menu_item)
1151 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1152 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1153 * w32uniscribe.c (uniscribe_list_family): Likewise.
1154 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1155 * window.c (make_window, replace_window, set_window_buffer)
1156 (Fsplit_window): Likewise.
1157 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1158 (add_to_log, message3, x_consider_frame_title)
1159 (append_space_for_newline, extend_face_to_end_of_line)
1160 (decode_mode_spec_coding, init_glyph_string): Likewise.
1161 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1162 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1163 (face_attr_equal_p, make_realized_face, make_face_cache)
1164 (free_realized_faces, lookup_named_face, smaller_face)
1165 (face_with_height, lookup_derived_face)
1166 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1167 (Finternal_set_font_selection_order, realize_default_face)
1168 (compute_char_face, face_at_buffer_position)
1169 (face_for_overlay_string, face_at_string_position, merge_faces):
1170 Likewise.
1171 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1172 (Fx_window_property, x_create_tip_frame)
1173 (Fx_backspace_delete_keys_p): Likewise.
1174 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1175 (xfont_text_extents): Likewise.
1176 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1177 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1178 * xselect.c (x_queue_event, x_get_window_property)
1179 (receive_incremental_selection): Likewise.
1180 * xsmfns.c (x_session_check_input): Likewise.
1181 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1182 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1183 Likewise.
1184 * character.h (BCOPY_SHORT): Removed.
1185 * config.in: Regenerate.
1186 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1187 * emacs.c (main) [PROFILING]: Don't declare
1188 dump_opcode_frequencies.
1189 * lisp.h (safe_bcopy): Remove declaration.
1190 (memset) [!HAVE_MEMSET]: Declare.
1191 (memcpy) [!HAVE_MEMCPY]: Likewise.
1192 (memmove) [!HAVE_MEMMOVE]: Likewise.
1193 (memcmp) [!HAVE_MEMCMP]: Likewise.
1194 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1195 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1196 Don't define.
1197 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1198 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1199 (BCOPY_DOWNWARD_SAFE): Don't define.
1200 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1201 (memcpy) [!HAVE_MEMCPY]: Define.
1202 (memmove) [!HAVE_MEMMOVE]: Define.
1203 (memcmp) [!HAVE_MEMCMP]: Define.
1204
cb768704
J
12052010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1206
1207 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1208 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1209 New functions.
cb768704
J
1210 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1211 select on empty input mask.
1212 (init_process): Initialize kbd_is_on_hold to 0.
1213
1214 * process.h (hold_keyboard_input, unhold_keyboard_input)
1215 (kbd_on_hold_p): Declare.
1216
1217 * keyboard.c (input_available_signal): Declare.
1218 (kbd_buffer_nr_stored): New function.
1219 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1220 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1221 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1222 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1223 (tty_read_avail_input): If input is on hold, return.
1224 Don't read more that free slots in kbd_buffer (Bug#6571).
1225
3a8ce822
EZ
12262010-07-07 Eli Zaretskii <eliz@gnu.org>
1227
1228 * msdos.h:
1229 * msdos.c:
1230 * dosfns.c:
1231 * w16select.c: Convert function definitions to ANSI C.
1232
a628ad9d
JB
1233 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1234 Remove unused prototypes.
3a8ce822 1235
cf84bb53
JB
12362010-07-07 Juanma Barranquero <lekktu@gmail.com>
1237
1238 * coding.c, sysdep.c: Convert some more functions to standard C.
1239
1a4990fb
JB
12402010-07-07 Juanma Barranquero <lekktu@gmail.com>
1241
1242 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1243 (encode_coding_object): Use SPECPDL_INDEX.
1244 (syms_of_coding): Use DOS_NT.
1245
c0f2f16b
DN
12462010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1247
48fb6855
DN
1248 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1249
c0f2f16b
DN
1250 Make the function member of Lisp_Subr use standard C prototypes.
1251 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1252 (DECL_ALIGN): Add a cast for the function.
1253 * eval.c (Feval, Ffuncall): Use the proper type for each type
1254 function call.
1255
67aecef9
CY
12562010-07-06 Chong Yidong <cyd@stupidchicken.com>
1257
1258 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1259 fringe face id, so face-remapping-alist works (Bug#6091).
1260
b56ceb92
JB
12612010-07-06 Juanma Barranquero <lekktu@gmail.com>
1262
1263 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1264 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1265 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1266
7af07b96
AS
12672010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1268
1269 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1270 * lisp.h: Declare x_get_keysym_name.
1271 * keyboard.c (modify_event_symbol): Don't declare
1272 x_get_keysym_name here.
1273
69e24e34
DN
12742010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1275
1276 * ecrt0.c: Revert conversion to standard C.
1277
d3da34e0 12782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1279
1280 * vm-limit.c (memory_warnings):
1281 * keyboard.c (modify_event_symbol):
1282 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1283 (round2, emacs_rint):
1284 * process.c (send_process, old_sigpipe): Convert function
1285 definitions and declarations to standard C.
1286
12872010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1288
1289 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1290 * xdisp.c: Convert function definitions to standard C.
1291
1292 * cm.c (cmputc): Arg C is now int, not char.
1293 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1294
00be444c
J
12952010-07-05 James Cloos <cloos@jhcloos.com>
1296
1297 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1298
1299 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1300 _NET_WM_ICON_NAME atoms.
1301
1302 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1303 and _NET_WM_ICON_NAME properties, too, matching what is
1304 done in the Gtk+ case.
1305
e4c8d29a
J
13062010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1307
ff919460
J
1308 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1309
e4c8d29a
J
1310 * xsmfns.c (SSDATA): New macro.
1311 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1312 passed to strlen/strcpy/strcat.
1313 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1314 7:th arg to XChangeProperty to (unsigned char *)
1315
1316 * xsettings.c (something_changedCB, parse_settings)
1317 (apply_xft_settings): Reformat prototype.
1318 (something_changedCB, init_gconf): Remove unused variable i.
1319 (read_settings): Remove unused variable long_len.
1320
1321 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1322 (xg_get_image_for_pixmap, create_dialog)
1323 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1324 (menuitem_highlight_callback, make_menu_item)
1325 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1326 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1327 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1328 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1329 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1330 (xg_tool_bar_item_expose_callback): Reformat prototype.
1331 (xg_update_menubar): GList *group => GSList *group.
1332 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1333 before use.
1334 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1335 to GTK_IMAGE (wimage).
1336
dd4c5104
DN
13372010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1338
898b4c5c
DN
1339 * atimer.c: Use "" instead of <> for local includes for
1340 consistency with the rest of the code.
1341
dd4c5104
DN
1342 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1343 * xrdb.c (get_system_name):
1344 * window.c (shrink_windows):
1345 * syntax.c (forw_comment):
1346 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1347 (ins_del_costs):
1348 * mem-limits.h (start_of_data):
1349 * lread.c (readevalloop):
1350 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1351 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1352 * frame.c (x_get_focus_frame):
1353 * floatfns.c (fmod_float):
1354 * fileio.c (choose_write_coding_system):
1355 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1356 (malloc_initialize_hook, sort_args, synchronize_locale):
1357 * doprnt.c (doprnt):
1358 * dired.c (compile_pattern):
1359 * data.c (fmod_float):
1360 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1361 (map_char_table_for_charset):
1362 * charset.c (define_charset_internal):
1363 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1364 to standard C.
1365
9a39b306 13662010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1367 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1368
1369 * lread.c (read1): Fix up last change to not mess up `c'.
1370
e6cb2cbb
JB
13712010-07-04 Juanma Barranquero <lekktu@gmail.com>
1372
1373 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1374
438105ed
JB
13752010-07-04 Juanma Barranquero <lekktu@gmail.com>
1376
1377 Fix prototypes.
1378
e5447b22 1379 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1380 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1381 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1382 arg, as required by internal_condition_case_1.
dcc7404b 1383 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1384 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1385 (analyse_first): Fix "const const".
e5447b22 1386 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1387 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1388 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1389
971de7fb
DN
13902010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1391
1392 * alloc.c: Convert function definitions to standard C.
1393 * atimer.c:
1394 * bidi.c:
1395 * bytecode.c:
1396 * callint.c:
1397 * callproc.c:
1398 * casefiddle.c:
1399 * casetab.c:
1400 * category.c:
1401 * ccl.c:
1402 * character.c:
1403 * charset.c:
1404 * chartab.c:
1405 * cmds.c:
1406 * coding.c:
1407 * composite.c:
1408 * data.c:
1409 * dbusbind.c:
1410 * dired.c:
1411 * dispnew.c:
1412 * doc.c:
1413 * doprnt.c:
1414 * ecrt0.c:
1415 * editfns.c:
1416 * fileio.c:
1417 * filelock.c:
1418 * filemode.c:
1419 * fns.c:
1420 * font.c:
1421 * fontset.c:
1422 * frame.c:
1423 * fringe.c:
1424 * ftfont.c:
1425 * ftxfont.c:
1426 * gtkutil.c:
1427 * indent.c:
1428 * insdel.c:
1429 * intervals.c:
1430 * keymap.c:
1431 * lread.c:
1432 * macros.c:
1433 * marker.c:
1434 * md5.c:
1435 * menu.c:
1436 * minibuf.c:
1437 * prefix-args.c:
1438 * print.c:
1439 * ralloc.c:
1440 * regex.c:
1441 * region-cache.c:
1442 * scroll.c:
1443 * search.c:
1444 * sound.c:
1445 * strftime.c:
1446 * syntax.c:
1447 * sysdep.c:
1448 * termcap.c:
1449 * terminal.c:
1450 * terminfo.c:
1451 * textprop.c:
1452 * tparam.c:
1453 * undo.c:
1454 * unexelf.c:
1455 * window.c:
1456 * xfaces.c:
1457 * xfns.c:
1458 * xfont.c:
1459 * xftfont.c:
1460 * xgselect.c:
1461 * xmenu.c:
1462 * xrdb.c:
1463 * xselect.c:
1464 * xsettings.c:
1465 * xsmfns.c:
1466 * xterm.c: Likewise.
1467
ae492bec
EZ
14682010-07-03 Eli Zaretskii <eliz@gnu.org>
1469
76ea4cc9
EZ
1470 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1471 frames other than the initial one. Fix reversal of colors when
1472 `reverse' is specified in the frame parameters. Call
1473 update_face_from_frame_parameter instead of
1474 internal-set-lisp-face-attribute. Initialize screen colors from
1475 initial_screen_colors[] when f->default_face_done_p is zero,
1476 instead of depending on being called with default-frame-alist as
1477 the alist argument.
1478
1479 * xfaces.c (update_face_from_frame_parameter): Move out of
1480 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1481 with HAVE_WINDOW_SYSTEM.
1482
1e6255ae
EZ
1483 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1484 to menu-bar-mode, if not set in the frame parameters or in
1485 default-frame-alist.
1486
ae492bec
EZ
1487 * w32console.c (sys_tputs): Adjust argument list to prototype in
1488 term.c.
1489
3a35a84c
JB
14902010-07-03 Juanma Barranquero <lekktu@gmail.com>
1491
1492 * lisp.h (memory_warnings): Fix prototype.
1493
1494 * cm.h (evalcost): Fix prototype.
1495
1496 * cm.c (evalcost): Fix arg type.
1497
c532d349
DN
14982010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1499
1500 * term.c (term_clear_mouse_face, Fidentity):
1501 * syssignal.h (signal_handler_t):
1502 * lisp.h (memory_warnings):
1503 * coding.h (preferred_coding_system):
1504 * cm.h (evalcost):
1505 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1506
c0b36d46
EZ
15072010-07-02 Eli Zaretskii <eliz@gnu.org>
1508
1509 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1510 from prototypes.
1511
1512 * msdos.h (load_pixmap): Don't define away.
1513
383e0970
J
15142010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1515
f57e2426
J
1516 * lisp.h:
1517 * atimer.h: Remove define for P_.
1518
1519 * alloc.c: Remove __P and P_ from .c and .m files.
1520 * atimer.c:
1521 * buffer.c:
1522 * callint.c:
1523 * category.c:
1524 * charset.c:
1525 * chartab.c:
1526 * cm.c:
1527 * coding.c:
1528 * composite.c:
1529 * data.c:
1530 * dired.c:
1531 * dispnew.c:
1532 * doc.c:
1533 * editfns.c:
1534 * emacs.c:
1535 * eval.c:
1536 * fileio.c:
1537 * filelock.c:
1538 * fns.c:
1539 * font.c:
1540 * fontset.c:
1541 * frame.c:
1542 * ftfont.c:
1543 * ftxfont.c:
1544 * gmalloc.c:
1545 * gtkutil.c:
1546 * image.c:
1547 * indent.c:
1548 * intervals.c:
1549 * keyboard.c:
1550 * keymap.c:
1551 * lread.c:
1552 * marker.c:
1553 * menu.c:
1554 * minibuf.c:
1555 * print.c:
1556 * process.c:
1557 * scroll.c:
1558 * search.c:
1559 * sound.c:
1560 * strftime.c:
1561 * syntax.c:
1562 * sysdep.c:
1563 * term.c:
1564 * terminal.c:
1565 * textprop.c:
1566 * unexalpha.c:
1567 * w32console.c:
1568 * w32fns.c:
1569 * w32font.c:
1570 * w32menu.c:
1571 * w32term.c:
1572 * w32uniscribe.c:
1573 * window.c:
1574 * xdisp.c:
1575 * xfaces.c:
1576 * xfns.c:
1577 * xfont.c:
1578 * xftfont.c:
1579 * xmenu.c:
1580 * xselect.c:
1581 * xterm.c: Likewise.
1582
383e0970 1583 Remove P_ and __P macros.
f57e2426
J
1584 * atimer.h: Remove P_ and __P macros.
1585 * buffer.h:
383e0970
J
1586 * category.h:
1587 * ccl.h:
1588 * character.h:
1589 * charset.h:
1590 * cm.h:
1591 * coding.h:
1592 * composite.h:
1593 * dispextern.h:
1594 * disptab.h:
9e892c8d 1595 * dosfns.h:
383e0970
J
1596 * font.h:
1597 * fontset.h:
1598 * frame.h:
1599 * gtkutil.h:
1600 * indent.h:
1601 * intervals.h:
1602 * keyboard.h:
1603 * keymap.h:
1604 * lisp.h:
1605 * macros.h:
1606 * md5.h:
1607 * menu.h:
1608 * msdos.h:
1609 * nsterm.h:
1610 * puresize.h:
1611 * region-cache.h:
1612 * syntax.h:
1613 * syssignal.h:
1614 * systime.h:
1615 * termhooks.h:
9e892c8d 1616 * w32font.h:
383e0970
J
1617 * w32term.h:
1618 * widget.h:
1619 * window.h:
1620 * xgselect.h:
1621 * xsettings.h:
1622 * xterm.h: Likewise.
1623
98601119
DN
16242010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1625
d9170db5
DN
1626 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1627
98601119
DN
1628 Cleanup old code.
1629 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1630 * syssignal.h: Remove code for Lynx, not supported anymore.
1631 * vm-limit.c: Remove unused code the depends on emacs not being
1632 defined and NO_LIM_DATA being defined.
1633 * mem-limits.h: Remove dead code.
1634
1f984e12
J
16352010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1636
c49d071a
J
1637 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1638
9d5405ec
J
1639 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1640 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1641
7a18115b
J
1642 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1643 parameters, they are already absolute.
1644
a628ad9d
JB
1645 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1646 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1647
a628ad9d 1648 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1649
a628ad9d
JB
1650 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1651 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1652
a628ad9d
JB
1653 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1654 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1655
c1ef4455
CY
16562010-06-30 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1659 check default-frame-alist.
1660
ce8f5a9a
AS
16612010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1662
1663 * process.c (create_process): Avoid using invalid file descriptors.
1664
1665 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1666
bf935339
J
16672010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1668
1669 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1670 Improve documentation. Return font regardless of use_system_font.
1671 (syms_of_xsettings): Improve documentation for font-use-system-font.
1672
7c33a057
CY
16732010-07-10 Chong Yidong <cyd@stupidchicken.com>
1674
2ec1b5ee
CY
1675 * xfaces.c (realize_face): Garbage the frame if a face is removed
1676 (Bug#6593).
1677
16782010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1679
1680 * keyboard.c: Remove duplicate <setjmp.h>.
1681 (read_key_sequence): Remove volatile qualifiers.
1682
16832010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1684
1685 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1686 (struct glyph_row): New members left_fringe_offset and
1687 right_fringe_offset.
1688
1689 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1690 specially.
1691 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1692 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1693
1694 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1695 Take account of bitmap offset.
2ec1b5ee
CY
1696 (draw_window_fringes): Take account of window vscroll.
1697 (update_window_fringes): Likewise. Extend top-aligned top indicator
1698 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1699 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1700 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1701
17022010-07-04 Juanma Barranquero <lekktu@gmail.com>
1703
1704 * w32fns.c (Qtooltip): Declare.
1705 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1706
17072010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1708
1709 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1710 grab on just Press (Bug#6499).
1711
17122010-07-02 Chong Yidong <cyd@stupidchicken.com>
1713
1714 * frame.c (Qtooltip): New var.
1715 (delete_frame): Use it. Fix faulty if statement. Don't update
1716 mode line for tooltip frames. Suggested by Martin Rudalics.
1717
1718 * xfns.c (x_create_tip_frame):
1719 * w32fns.c (x_create_tip_frame): Use it.
1720
17212010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1722
1723 * xftfont.c (xftfont_open): Check font width one by one also when
1724 spacing is dual.
1725
1726 * ftfont.c (ftfont_open): Ditto.
1727
6259c2ec
GM
17282010-06-30 Glenn Morris <rgm@gnu.org>
1729
a46007e9
GM
1730 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1731
6259c2ec
GM
1732 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1733
1734 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1735 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1736 * s/darwin.h (SYSTEM_MALLOC):
1737 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1738
5d1d3d04
J
17392010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1742 (ns_get_screen): Don't assign integer to f.
1743 (Fx_display_color_cells): Declarations before statements.
1744
e547b051
J
17452010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1746
5fc8e5bc
J
1747 * xfns.c (x_default_font_parameter): Remove got_from_system
1748 (Bug#6526).
1749
e547b051
J
1750 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1751 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1752 defines based on what configure finds.
1753
1754 * xterm.c (XTflash): Use gtk_widget_get_window.
1755 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1756 gtk_adjustment_get_page_size.
1757 (handle_one_xevent): Use gtk_widget_get_mapped.
1758 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1759 messages.
1760
1761 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1762
1763 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1764 HAVE_GTK_FILE_SELECTION_NEW.
1765
1766 * gtkutil.c (xg_display_open, xg_display_close): Remove
1767 HAVE_GTK_MULTIDISPLAY, it is always defined.
1768 (xg_display_open): Return type is void.
1769 (gtk_widget_set_has_window)
1770 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1771 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1772 (gtk_adjustment_set_page_increment)
1773 (gtk_adjustment_get_step_increment): #define these if not found
1774 by configure.
1775 (remove_submenu): New define based on Gtk+ version.
1776 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1777 gtk_widget_get_window.
1778 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1779 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1780 (create_dialog): Use gtk_dialog_get_action_area and
1781 gtk_dialog_get_content_area.
1782 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1783 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1784 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1785 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1786 g_object_ref and g_object_unref.
1787 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1788 gtk_widget_get_sensitive.
1789 (xg_update_submenu): Use remove_submenu.
1790 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1791 properties instead to get old x and y position.
1792 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1793 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1794 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1795 (xg_get_tool_bar_widgets): New function.
1796 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1797 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1798 (toolbar_set_orientation): New #define based on if configure
1799 finds gtk_orientable_set_orientation.
1800 (xg_create_tool_bar): Call toolbar_set_orientation.
1801 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1802 instead of gtk_box_pack_start_defaults.
1803
b9229673
CY
18042010-06-28 Chong Yidong <cyd@stupidchicken.com>
1805
1806 * cmds.c (Fdelete_backward_char): Move into Lisp.
1807
bbc803b0
DN
18082010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1809
1810 * s/freebsd.h (BSD4_2): Remove redundant definition.
1811 bsd-common.h defines it already.
1812
6431f2e6
CY
18132010-06-27 Chong Yidong <cyd@stupidchicken.com>
1814
1815 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1816 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1817 tool-bar-mode, which are now set using these X resources at
1818 startup, to determine the defaults (Bug#2249).
1819
1820 * w32fns.c (Fx_create_frame):
1821 * nsfns.m (Fx_create_frame): Likewise.
1822
1823 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1824
8c079ebb
JB
18252010-06-24 Juanma Barranquero <lekktu@gmail.com>
1826
1827 * gtkutil.c (xg_update_scrollbar_pos):
1828 Avoid C99 mid-block variable declaration.
1829
e9b7ab96
JD
18302010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1831
bc869eca
JD
1832 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1833
2b7e356a 1834 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1835
1836 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1837 if height is less than scroll bar min size.
1838 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1839
e9b7ab96
JD
1840 * xfns.c (x_default_font_parameter): Try to open font from system
1841 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1842
a628ad9d 18432010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1844
1845 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1846
70c4cfbb
EZ
18472010-06-20 Eli Zaretskii <eliz@gnu.org>
1848
1849 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1850 most-positive-fixnum, be extra accurate when scrolling window
1851 start, to avoid missing the cursor line.
1852
ad5a12b5
EZ
18532010-06-19 Eli Zaretskii <eliz@gnu.org>
1854
1855 * xdisp.c (try_scrolling): Compute the limit for searching point
1856 in forward scroll from scroll_max, instead of an arbitrary limit
1857 of 10 screen lines. See
1858 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1859 and
1860 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1861 for details.
1862
2a64315a 18632010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1864
1865 * editfns.c (Fbyte_to_string): Pacify compiler.
1866
288cf4e9
SM
18672010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1868
1869 * lread.c (read1): Phase out old-style backquotes a bit more.
1870
6e6e5760
EZ
18712010-06-12 Eli Zaretskii <eliz@gnu.org>
1872
cbc4fd20
EZ
1873 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1874 bidimirror.h.
1875
1876 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1877
317fbf33
EZ
1878 * bidi.c (bidi_initialize): Remove explicit initialization of
1879 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1880 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1881 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1882
1883 * biditype.h: New file.
1884
cbc4fd20
EZ
1885 * bidimirror.h: New file.
1886
6e6e5760
EZ
1887 * window.c (syms_of_window): Doc fix (bug#6409).
1888
4176cba2
RF
18892010-06-12 Romain Francoise <romain@orebokech.com>
1890
1891 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1892 ediff-hook.
1893
cb4bfcb5
GM
18942010-06-10 Glenn Morris <rgm@gnu.org>
1895
64c60c2f
GM
1896 * editfns.c (Fbyte_to_string): Pacify compiler.
1897
cb4bfcb5
GM
1898 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1899
2ec1b5ee
CY
19002010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1901
1902 * alloc.c (Fmake_byte_code): Don't access undefined argument
1903 (Bug#6517).
1904
19052010-06-25 Chong Yidong <cyd@stupidchicken.com>
1906
1907 * xdisp.c (next_element_from_image): Ensure that after-strings are
1908 read the next time we hit handle_stop (Bug#1336).
1909
19102010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1911
1912 * lread.c (read1): Signal error if #s is not followed by paren.
1913
19142010-06-19 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1917
1918 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1919
19202010-06-15 Glenn Morris <rgm@gnu.org>
1921
1922 * editfns.c (Fbyte_to_string): Pacify compiler.
1923
e454a4a3
SM
19242010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1925
1926 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1927 Check `object's type before accessing its guts.
1928
c1b1acc2
DN
19292010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1930
1931 * s/usg5-4.h: Fix previous change.
1932 Suggested by Lawrence Mitchell <wence@gmx.li>
1933
657d4c0b
AS
19342010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1935
1936 * minibuf.c (Fall_completions): Add more checks.
1937
9b27fd9f
JB
19382010-06-08 Juanma Barranquero <lekktu@gmail.com>
1939
1940 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1941
a99ebb40
DN
19422010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1943
d7c5d87d
DN
1944 * lread.c (X_OK): Remove, unused.
1945
0263a941
DN
1946 * dispnew.c: Remove obsolete comment.
1947
a99ebb40
DN
1948 Remove INCLUDED_FCNTL.
1949 * xterm.c (INCLUDED_FCNTL):
1950 * callproc.c (INCLUDED_FCNTL):
1951 * alloc.c (INCLUDED_FCNTL):
1952 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1953 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1954
13b5221f
MR
19552010-06-07 Martin Rudalics <rudalics@gmx.at>
1956
1957 * window.c (Fselect_window): Move `record_buffer' up to the
1958 beginning of this function, so the buffer gets recorded
1959 even if the selected window does not change.
1960 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1961
5220357f
JB
19622010-06-07 Juanma Barranquero <lekktu@gmail.com>
1963
1964 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1965 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1966
3085237c
DN
19672010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1968
1969 Remove BSTRING related code, all platforms define it.
1970 * s/usg5-4.h (BSTRING): Remove definition.
1971 * s/template.h (BSTRING):
1972 * s/msdos.h (BSTRING):
1973 * s/ms-w32.h (BSTRING):
1974 * s/hpux10-20.h (BSTRING):
1975 * s/gnu-linux.h (BSTRING):
1976 * s/darwin.h (BSTRING):
1977 * s/cygwin.h (BSTRING):
1978 * s/bsd-common.h (BSTRING):
1979 * s/aix4-2.h (BSTRING): Likewise.
1980 * sysdep.c: Remove code depending on BSTRING not being defined.
1981
409f2919
JB
19822010-06-05 Juanma Barranquero <lekktu@gmail.com>
1983
1984 Remove obsolete macro BASE_LEADING_CODE_P.
1985 * character.h (BASE_LEADING_CODE_P): Remove.
1986 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1987 * buffer.c (Fset_buffer_multibyte):
1988 * indent.c (scan_for_column, compute_motion):
1989 * insdel.c (count_combining_before, count_combining_after):
1990 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1991
087fc47a
JB
19922010-06-04 Juanma Barranquero <lekktu@gmail.com>
1993
1994 Turn `directory-sep-char' into a noop.
1995
1996 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1997 (DIRECTORY_SEP): Define unconditionally.
1998
1999 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2000
2001 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2002 call dostounix_filename directly.
2003
2004 * fileio.c (CORRECT_DIR_SEPS): Remove.
2005 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2006 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2007 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2008 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2009
2010 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2011 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2012
0eb7675e
AS
20132010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2014
a628ad9d
JB
2015 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2016 (Bug#6346)
0eb7675e 2017
78edd3b7
JB
20182010-06-03 Juanma Barranquero <lekktu@gmail.com>
2019
2020 * ccl.c (Fccl_program_p): Fix typo in docstring.
2021
eb697db5
DN
20222010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2023
2024 Move UNEXEC definition to autoconf.
2025 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2026 * s/sol2-10.h (UNEXEC):
2027 * s/irix6-5.h (UNEXEC):
2028 * s/hpux10-20.h (UNEXEC):
2029 * s/gnu-linux.h (UNEXEC):
2030 * s/darwin.h (UNEXEC):
2031 * s/cygwin.h (UNEXEC):
2032 * s/bsd-common.h (UNEXEC):
2033 * s/aix4-2.h (UNEXEC):
2034 * m/alpha.h (UNEXEC): Likewise.
2035 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2036
aa3830c4
JB
20372010-06-03 Juanma Barranquero <lekktu@gmail.com>
2038
2039 Remove obsolete pre-unicode2 macros.
2040 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2041 * composite.c (composition_reseat_it):
2042 * data.c (Faset):
2043 * fns.c (Ffillarray):
2044 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2045 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2046
d234d13e
JL
20472010-06-03 Juri Linkov <juri@jurta.org>
2048
2049 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2050 (Fswitch_to_buffer): Remove unused variable `err'.
2051
0d4bcf4d
GM
20522010-06-03 Glenn Morris <rgm@gnu.org>
2053
e23dc1e2
GM
2054 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2055
05b09564
GM
2056 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2057 now that AH_BOTTOM does it.
2058
824e2978
GM
2059 * m/hp800.h (HAVE_ALLOCA):
2060 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2061
0d4bcf4d
GM
2062 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2063 Remove NOT_C_CODE tests, it is always true now.
2064
c55d2abf
DN
20652010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2066
08a494a3
DN
2067 Fix config.h includes.
2068 * xsettings.c:
2069 * xgselect.c:
2070 * nsterm.m:
2071 * nsselect.m:
2072 * nsimage.m:
2073 * nsfont.m:
2074 * nsfns.m:
2075 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2076 other files do.
2077
75934b1d
DN
2078 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2079
9f32a766
DN
2080 * s/sol2-6.h: Remove obsolete comments.
2081
c55d2abf
DN
2082 Remove unnecessary alloca.h includes.
2083 * keymap.c: Do not include alloca.h, config.h does that.
2084 * sysdep.c: Likewise. Do not define fwrite, not used.
2085
06ac62b4
SM
20862010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2087
2088 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2089 the HAVE_TERMIO where it belongs (bug#6149).
2090
1ab8293c
SM
20912010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2092
2093 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2094 of bug#6305).
2095
6dcfd253
EZ
20962010-05-30 Eli Zaretskii <eliz@gnu.org>
2097
2098 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2099 state is always cached (bug#6306).
2100
6d26bbb2
EZ
21012010-05-29 Eli Zaretskii <eliz@gnu.org>
2102
06fa4a23
EZ
2103 Fix cursor motion in bidi-reordered continued lines.
2104 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2105 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2106 over continuation lines in bidi-reordered buffers. Return
2107 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2108 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2109
f5783df3
MA
21102010-05-28 Michael Albinus <michael.albinus@gmx.de>
2111
2112 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2113
7d56b2dd
KH
21142010-05-28 Kenichi Handa <handa@m17n.org>
2115
2116 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2117 Don't sheck SPEC if it is nil.
2118 (font_list_entities): Call font_delete_unmatched if
b925d231 2119 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2120
e58d4ff7
GM
21212010-05-28 Glenn Morris <rgm@gnu.org>
2122
2123 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2124
f1a5d776
CY
21252010-05-27 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2128 whether to trash.
2129 (internal_delete_file, Frename_file): Callers changed.
2130 (delete_by_moving_to_trash): Doc fix.
2131 (Fdelete_directory_internal): Don't move to trash.
2132
2133 * callproc.c (delete_temp_file):
2134 * buffer.c (Fkill_buffer): Callers changed.
2135
2136 * lisp.h: Update prototype.
2137
f44a59e6
CY
21382010-05-27 Chong Yidong <cyd@stupidchicken.com>
2139
2140 * xdisp.c (redisplay_window): After redisplay, check if point is
2141 still valid before setting it (Bug#6177).
2142
81ac4f35
GM
21432010-05-27 Glenn Morris <rgm@gnu.org>
2144
2145 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2146 Convert comments to Makefile format.
2147
2148 * Makefile.in (bootstrap-clean): No more Makefile.c.
2149
ccd89fb3
GM
21502010-05-26 Glenn Morris <rgm@gnu.org>
2151
90278cb6
GM
2152 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2153 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2154
ccd89fb3
GM
2155 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2156 Remove.
2157 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2158
b7050583
KH
21592010-05-26 Kenichi Handa <handa@m17n.org>
2160
2161 * composite.c (composition_compute_stop_pos): Fix condition for
2162 backward scanning.
2163
e5458003
GM
21642010-05-25 Glenn Morris <rgm@gnu.org>
2165
c345fe90
GM
2166 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2167 Move before TEMACS_LDFLAGS.
2168 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2169 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2170
2e0689ab
GM
2171 * Makefile.in (NOT_C_CODE): No longer define.
2172 (config.h): No longer include.
2173
8009a5e8
GM
2174 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2175 variables it may reference.
2176
e5458003
GM
2177 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2178 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2179
10f72a37
KH
21802010-05-25 Kenichi Handa <handa@m17n.org>
2181
2182 * dispextern.h (struct composition_it): New members rule_idx and
2183 charpos.
2184
2185 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2186 that the character positions of IT point the last character of the
2187 current grapheme cluster.
2188 (next_element_from_composition): Don't change character positions
2189 of IT.
2190 (append_composite_glyph): Set glyph->charpos to
2191 it->cmp_it.charpos.
2192
2193 * composite.c (autocmp_chars): Change the first argument to RULE,
2194 and try composition with RULE only.
2195 (composition_compute_stop_pos): Record the index number of the
2196 composition rule in CMP_IT->rule_idx.
2197 (composition_reseat_it): Call autocmp_chars repeatedly until the
2198 correct rule of the composition is found.
2199 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2200 is at the last character of the current grapheme cluster when
2201 CMP_IT->reversed_p is nonzero.
2202
171eda53 22032010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2204
171eda53
SM
2205 * editfns.c (Fbyte_to_string): New function.
2206
66a9f7f4
SM
22072010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2208
2209 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2210 Suggested by Masatake YAMATO <yamato@redhat.com>.
2211
d8c315d1
EZ
22122010-05-23 Eli Zaretskii <eliz@gnu.org>
2213
171eda53 2214 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2215
f5b416d2 22162010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2217
2218 * s/netbsd.h: If terminfo is found, use it in preference to
2219 termcap. (Bug#6190) [Backport from trunk]
2220
0416466c
EZ
22212010-05-19 Eli Zaretskii <eliz@gnu.org>
2222
11117830 2223 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2224
2225 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2226 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2227 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2228 and maxpos members instead of start.pos and end.pos, respectively.
2229
2230 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2231 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2232 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2233 (try_window_reusing_current_matrix, try_window_id):
2234 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2235 (init_from_display_pos, init_iterator): Use EMACS_INT for
2236 character and byte positions.
66a9f7f4 2237 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2238 arguments for minimum and maximum buffer positions seen by
2239 display_line for this row. Don't use iterator to find the
2240 position following the maximum one; instead, increment the
11117830
EZ
2241 position found by display_line directly. Fix logic; eol_pos
2242 should be tested before the rest. Handle the case of characters
2243 delivered from display vector (bug#6036). Fix tests related to
2244 it->method. Handle the truncated_on_right_p rows.
2245 (RECORD_MAX_MIN_POS): New macro.
2246 (display_line): Use it to record the minimum and maximum buffer
2247 positions for glyphs in the row being assembled. Record the
2248 position of the newline that terminates the line. If word wrap is
2249 in effect, restore minimum and maximum positions seen up to the
2250 wrap point, when iterator returns to it.
2251 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2252 row and cursor not already at point. Restore original pre-bidi
2253 code for unidirectional buffers.
d36fe237
EZ
2254
2255 * dispnew.c (increment_row_positions, check_matrix_invariants):
2256 Increment and check row->start.pos and row->end.pos, in addition
2257 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2258
11117830
EZ
2259 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2260 Display truncated_on_left_p and truncated_on_right_p flags.
2261 Formatting fixes.
2262 (pmtxrows): Display the ordinal number of each row. Don't display
2263 rows beyond the last one.
2264
2265 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2266 it is not copied by bidi_copy_it.
2267
6e83d800
EZ
22682010-05-22 Eli Zaretskii <eliz@gnu.org>
2269
2270 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2271 (Bug#6237)
2272
110683ad
CY
22732010-05-22 Chong Yidong <cyd@stupidchicken.com>
2274
2275 * image.c (Fimage_flush): Rename from image-refresh.
2276
98fe5161
CY
22772010-05-21 Chong Yidong <cyd@stupidchicken.com>
2278
2279 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2280 just one window.
2281
2282 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2283 (clear_image_cache): If the number of cached images is unusually
2284 large, decrease the cache eviction delay (Bug#6230).
2285
e8752c66
GM
22862010-05-21 Glenn Morris <rgm@gnu.org>
2287
66dbf213
GM
2288 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2289 Move these rules to ns.mk.
2290 * ns.mk: New file.
2291
04384b2d
GM
2292 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2293
e8752c66
GM
2294 * Makefile.in (CANNOT_DUMP): New, set by configure.
2295 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2296
2e2bbddb
JL
22972010-05-20 Juri Linkov <juri@jurta.org>
2298
2299 * fileio.c (Fdelete_file): Change interative spec to use
2300 `read-file-name' like in `find-file-read-args' where the default
2301 value is `default-directory' instead of `buffer-file-name'.
2302 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2303
31c4aaf6
KR
23042010-05-20 Kevin Ryde <user42@zip.com.au>
2305
2306 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2307 (Voverriding_terminal_local_map, Vsystem_key_alist)
2308 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2309
9d5cf9b6
GM
23102010-05-20 Glenn Morris <rgm@gnu.org>
2311
2312 * Makefile.in (DEPDIR): New constant.
2313 (DEPFLAGS): Set with configure, not cpp.
2314 (MKDEPDIR): New, set by configure.
2315 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2316 (clean): Use $DEPDIR.
2317 (deps_frag): Include from configure.
2318 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2319 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2320
ead6f8f5
EZ
2321 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2322 reallocation of the cache. (Bug#6210)
2323
7f34aec3
GM
23242010-05-19 Glenn Morris <rgm@gnu.org>
2325
d494e8f2
GM
2326 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2327
c1d0dcfd
GM
2328 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2329 (GNULIB_VAR): Remove.
2330 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2331
2332 * m/ibms390x.h (LINKER):
2333 * m/macppc.h (LINKER) [GNU_LINUX]:
2334 * s/aix4-2.h (ORDINARY_LINK):
2335 * s/cygwin.h (LINKER):
2336 * s/darwin.h (ORDINARY_LINK):
2337 * s/gnu.h (ORDINARY_LINK):
2338 * s/netbsd.h (LINKER):
2339 * s/usg5-4.h (ORDINARY_LINK):
2340 Move to configure.
2341
7f34aec3
GM
2342 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2343
754790b6
CY
23442010-05-18 Chong Yidong <cyd@stupidchicken.com>
2345
2346 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2347 prevent stack overflow if number of arguments is too large
2348 (Bug#6214).
2349
161e44d1
JB
23502010-05-18 Juanma Barranquero <lekktu@gmail.com>
2351
2352 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2353
be4ff9da
GM
23542010-05-18 Glenn Morris <rgm@gnu.org>
2355
9539dc5d
GM
2356 * s/gnu-linux.h: Combine two conditionals.
2357
2358 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2359 $(POST_ALLOC_OBJ).
2360
40dc6bf4
GM
2361 * Makefile.in (RALLOC_OBJ): New, set by configure.
2362 (rallocobj): Replace with the previous variable.
2363 (otherobj): Use $RALLOC_OBJ.
2364
2365 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2366 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2367
be4ff9da
GM
2368 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2369 (gmallocobj, vmlimitobj): Replace with previous two variables.
2370 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2371
16455a85
GM
23722010-05-17 Glenn Morris <rgm@gnu.org>
2373
2374 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2375 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2376
5fdb7468
GM
23772010-05-16 Glenn Morris <rgm@gnu.org>
2378
7ca1f3f9
GM
2379 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2380
7541dad5
GM
2381 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2382
da53fab9
GM
2383 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2384 trailing "/".
2385
b02a6645
GM
2386 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2387 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2388
8877ca0f
GM
2389 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2390 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2391 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2392 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2393 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2394
5fdb7468
GM
2395 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2396 Remove ${STARTFLAGS}, nothing ever sets it.
2397
95adb4b1
DN
23982010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2399
2400 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2401
676b6304
GM
24022010-05-16 Glenn Morris <rgm@gnu.org>
2403
9beab9ce
GM
2404 * Makefile.in (LIBX_BASE): Always define.
2405
8a95f0e7
GM
2406 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2407
676b6304
GM
2408 * Makefile.in (LIBXT): Always define.
2409
6e546d18
GM
24102010-05-15 Glenn Morris <rgm@gnu.org>
2411
4235ca47 2412 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2413
6e546d18
GM
2414 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2415 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2416
8c5ff6dd
KR
24172010-05-15 Ken Raeburn <raeburn@raeburn.org>
2418
560bb7ae 2419 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2420 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2421
8b4eb796
KR
2422 * emacs.c (main): Initialize initial-environment and
2423 process-environment before generating from env, not after.
2424
8c5ff6dd
KR
2425 Handle --version reasonably in CANNOT_DUMP configuration.
2426 * emacs.c (emacs_version, emacs_copyright): New string variables.
2427 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2428 (syms_of_emacs): Defvar them, and initialize them from the C
2429 string variables.
2430 (main): If initialization hasn't been done, print initial version
2431 info from the C strings, instead of starting an interactive session.
2432
dbd3f723
EZ
24332010-05-15 Eli Zaretskii <eliz@gnu.org>
2434
d20e1419
EZ
2435 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2436 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2437 (bidi_paragraph_init): Remove redundant assertion that we are at
2438 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2439
2440 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2441 (syms_of_xdisp): Defsubr it.
2442
d36fe237
EZ
2443 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2444
dbd3f723
EZ
2445 * Makefile.in: Fix MSDOS-related comments.
2446
02be533b
GM
24472010-05-15 Glenn Morris <rgm@gnu.org>
2448
1a82cca9
GM
2449 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2450 (really-lwlib, really-oldXMenu): Always define.
2451 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2452
3df7b338
GM
2453 * Makefile.in: Simplify cpp conditional.
2454
2b5f541b
GM
2455 * Makefile.in (${ns_appdir}): Simplify using umask.
2456
02be533b
GM
2457 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2458
4e2db1fe
SM
24592010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * eval.c (specbind): Remove left-over duplicate test.
2462 Disallow let-binding frame-local vars. Add comment.
2463
4b292a22
EZ
24642010-05-14 Eli Zaretskii <eliz@gnu.org>
2465
2fe72643 2466 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2467 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2468 (bidi_init_it): Call it.
2469 (bidi_cache_iterator_state): Enlarge the cache if needed.
2470
4e2db1fe 2471 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2472 bidi_get_next_char_visually. All callers changed.
2473
82ebc97b
KH
24742010-05-14 Kenichi Handa <handa@m17n.org>
2475
2476 * dispextern.h (struct composition_it): New member reversed_p.
2477
2478 * composite.c (composition_compute_stop_pos): Search backward if
2479 ENDPOS < CHARPOS.
2480 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2481 Set CMP_IT->reversed_p.
b4b6e17e 2482 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2483
4e2db1fe
SM
2484 * xdisp.c (set_iterator_to_next):
2485 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2486 scanning backward. Call composition_compute_stop_pos if scan
2487 direction is changed.
2488 (next_element_from_buffer): Call composition_compute_stop_pos with
2489 negative ENDPOS if we are scanning backward.
2490 (next_element_from_composition): Pay attention to
2491 IT->cmp_it.reversed_p.
2492
0e5d7800
KH
24932010-05-14 Kenichi Handa <handa@m17n.org>
2494
560bb7ae 2495 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2496
cb027b32
GM
24972010-05-14 Glenn Morris <rgm@gnu.org>
2498
177b0288
GM
2499 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2500
fbc00890
GM
2501 * Makefile.in (mktime, X11, register): Move undefs to configure.
2502
f14d1dfd
GM
2503 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2504 (MSDOS_X_OBJ): New variable.
2505 (MSDOS_SUPPORT_REAL): New constant.
2506 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2507 (obj): Use MSDOS_X_OBJ.
2508 (lisp): Use MSDOS_SUPPORT as a variable.
2509
11842bd8
GM
2510 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2511 (GPM_MOUSE_SUPPORT): Now it's a constant.
2512 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2513 not cpp.
2514
489d31a4 2515 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2516 (ns_appresdir): Remove, unused.
e20f1f07 2517
489d31a4
GM
2518 * Makefile.in (SHELL): Move outside cpp section.
2519
cb027b32
GM
2520 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2521
5a903aa9
GM
25222010-05-13 Glenn Morris <rgm@gnu.org>
2523
3369c79f
GM
2524 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2525 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2526
d5e982a6
GM
2527 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2528 HAVE_WINDOW_SYSTEM must be too.
2529
6192e163
GM
2530 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2531 (lisp): Remove WINNT_SUPPORT.
2532
472c5d6b
GM
2533 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2534 Let configure set these variables (to empty) in this case as well.
2535
0116466b
GM
2536 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2537 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2538
5a903aa9
GM
2539 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2540 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2541 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2542 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2543 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2544 the values output by configure.
5a903aa9
GM
2545 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2546
1a0d7c06
GM
25472010-05-12 Glenn Morris <rgm@gnu.org>
2548
b5457f14
GM
2549 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2550 (LINKER_WAS_SPECIFIED): Remove.
2551
1a0d7c06
GM
2552 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2553 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2554 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2555 * s/cygwin.h (LIB_GCC):
2556 * s/freebsd.h (LIB_GCC):
2557 * s/gnu-linux.h (LIB_GCC):
2558 * s/msdos.h (LIB_GCC):
2559 * s/netbsd.h (LIB_GCC):
2560 Move to configure.
2561
3ffd4615 25622010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2563
2564 * ftfont.c: Fix incorrect parentheses of #if condition for
2565 definining M17N_FLT_USE_NEW_FEATURE.
2566
acddf8ae
GM
25672010-05-11 Glenn Morris <rgm@gnu.org>
2568
2569 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2570 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2571
ae5e04fa
EZ
25722010-05-10 Eli Zaretskii <eliz@gnu.org>
2573
2574 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2575 unibyte buffers. See
2576 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2577
7490175b
GM
25782010-05-10 Glenn Morris <rgm@gnu.org>
2579
97efb629
GM
2580 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2581 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2582 (LIBES): Use LIBS_SYSTEM as a variable.
2583 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2584 * s/aix4-2.h (LIBS_SYSTEM):
2585 * s/freebsd.h (LIBS_SYSTEM):
2586 * s/hpux10-20.h (LIBS_SYSTEM):
2587 * s/sol2-6.h (LIBS_SYSTEM):
2588 * s/unixware.h (LIBS_SYSTEM):
2589 Move to configure.
2590
7490175b
GM
2591 * s/aix4-2.h (MAIL_USE_LOCKF):
2592 * s/bsd-common.h (MAIL_USE_FLOCK):
2593 * s/darwin.h (MAIL_USE_FLOCK):
2594 * s/gnu-linux.h (MAIL_USE_FLOCK):
2595 * s/irix6-5.h (MAIL_USE_FLOCK):
2596 * s/template.h (MAIL_USE_FLOCK):
2597 Move to configure.
2598
0235128c 25992010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2600
2601 * Version 23.2 released.
2602
0235128c 26032010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2604
2605 * composite.c (autocmp_chars): Save point as marker before calling
2606 auto-composition-function (Bug#5984).
2607
2608 * lisp.h (restore_point_unwind): Add prototype.
2609
2610 * fileio.c (restore_point_unwind): Remove static attribute.
2611
0235128c 26122010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2613
2614 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2615 new feature of libotf and m17n-flt.
0235128c
SM
2616 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2617 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2618 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2619 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2620 that OUT is NULL. Use OTF_drive_gsub_with_log and
2621 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2622 OTF_drive_gpos.
2623 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2624 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2625 Setup mflt_enable_new_feature and mflt_try_otf.
2626
4721152c
J
26272010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2628
2629 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2630
2631 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2632 box and toolbar (Bug #6139).
2633 (xg_create_tool_bar): Remove comment (Bug #6139).
2634 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2635 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2636
ee0a16cf
JB
26372010-05-08 Juanma Barranquero <lekktu@gmail.com>
2638
2639 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2640 Update dependencies.
2641
96d79611
EZ
26422010-05-08 Eli Zaretskii <eliz@gnu.org>
2643
2644 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2645 R2L lines.
2646
40c17879
GM
26472010-05-08 Glenn Morris <rgm@gnu.org>
2648
7b42b29f
GM
2649 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2650
40c17879
GM
2651 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2652 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2653 (termcapobj): Replace with TERMCAP_OBJ.
2654 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2655 (LIBES): Use LIBS_TERMCAP as a variable.
2656
2657 * s/freebsd.h (osreldate.h): No longer include, since this file
2658 does not use __FreeBSD_version any more.
2659
2660 * s/aix4-2.h (TERMINFO):
2661 * s/cygwin.h (TERMINFO):
2662 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2663 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2664 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2665 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2666 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2667 * s/irix6-5.h (TERMINFO):
2668 * s/netbsd.h (LIBS_TERMCAP):
2669 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2670 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2671 * s/usg5-4.h (TERMINFO):
2672 Move to configure.
2673
94b612ad
SM
26742010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2675
2676 * eval.c (unbind_to): Don't unbind a local binding into the global
2677 binding when the local binding disappeared. Inversely, don't unbind
2678 a global binding into a newly created local binding.
2679 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2680 can specify the frame to use, when applicable. Adjust callers.
2681
15e12598 26822010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2683 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2684
2685 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2686
f724825e
EZ
26872010-05-07 Eli Zaretskii <eliz@gnu.org>
2688
5cba3209
EZ
2689 * w32fns.c: Include w32.h.
2690 (Fw32_shell_execute): Decode the error message before passing it
2691 to `error'. (Bug#6126)
2692
d16bdfc3
EZ
2693 * msdos.c (dos_set_window_size):
2694 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2695 instead of `XSYMBOL (foo)->value'.
2696
59d93e87
EZ
26972010-05-07 Eli Zaretskii <eliz@gnu.org>
2698
9fdec8bc
EZ
2699 Fix the MS-DOS build, broken by autoconfiscation.
2700
2701 * Makefile.in: Don't use Make-style comments past the "start of
2702 cpp stuff" line.
2703 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2704
2705 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2706 edited directly by msdos/sed1v2.inp).
f724825e 2707
2f86b22b
GM
27082010-05-07 Glenn Morris <rgm@gnu.org>
2709
2710 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2711 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2712 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2713 move out of cpp section.
2714 * s/freebsd.h (LD_SWITCH_SYSTEM):
2715 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2716 * s/netbsd.h (LD_SWITCH_SYSTEM):
2717 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2718
49ebbd65
DN
27192010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2720
2721 Define LIB_STANDARD and START_FILES using autoconf.
2722 * s/usg5-4.h (LIB_STANDARD):
2723 * s/netbsd.h (START_FILES):
2724 * s/irix6-5.h (LIB_STANDARD):
2725 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2726 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2727 * s/freebsd.h (START_FILES):
2728 * s/darwin.h (START_FILES):
2729 * s/cygwin.h (START_FILES):
2730 * s/aix4-2.h (LIB_STANDARD):
2731 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2732 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2733 autoconf, not cpp.
2734
d43c06d6
DN
27352010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2736
28823648
DN
2737 Remove NEED_BSDTTY and NEED_UNISTD_H.
2738 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2739 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2740 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2741 <sys/ptyio.h> and <unistd.h>.
2742
aca00430
DN
2743 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2744
d43c06d6
DN
2745 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2746 * s/gnu.h (START_FILES): Remove empty definition.
2747
3e56b11d
JD
27482010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2749
2750 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2751
e3cf0cde
GM
27522010-05-06 Glenn Morris <rgm@gnu.org>
2753
2754 * Makefile.in (CPP, LN_S): Remove unused variables.
2755
774b9a60
SM
27562010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2757
2758 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2759
4ab92842
LM
27602010-05-05 Lawrence Mitchell <wence@gmx.li>
2761
2762 * m/sparc.h: Fix typo in earlier change.
2763
178f2507
SM
27642010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2765
2766 Misc tweaks.
2767 * eval.c (Fdefvaralias): Remove unintended nested if.
2768 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2769
80f00217 27702010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2771
2772 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2773
ef03a4e6
DN
27742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2775
58eb6cf0
DN
2776 Remove BSD_PGRPS.
2777 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2778 * s/gnu-linux.h (BSD_PGRPS): Remove.
2779 * term.c (dissociate_if_controlling_tty):
2780 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2781 (init_sys_modes, reset_sys_modes):
2782 * emacs.c (main):
2783 * callproc.c (Fcall_process, child_setup): Remove code depending
2784 on BSD_PGRPS.
2785
ef03a4e6
DN
2786 Remove POSIX_SIGNALS.
2787 * s/usg5-4.h (POSIX_SIGNALS):
2788 * s/netbsd.h (POSIX_SIGNALS):
2789 * s/msdos.h (POSIX_SIGNALS):
2790 * s/ms-w32.h (POSIX_SIGNALS):
2791 * s/hpux11.h (POSIX_SIGNALS):
2792 * s/gnu.h (POSIX_SIGNALS):
2793 * s/gnu-linux.h (POSIX_SIGNALS):
2794 * s/freebsd.h (POSIX_SIGNALS):
2795 * s/darwin.h (POSIX_SIGNALS):
2796 * s/cygwin.h (POSIX_SIGNALS):
2797 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2798 * s/unixware.h:
2799 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2800 * process.c (create_process):
2801 * syssignal.h:
2802 * sysdep.c (wait_for_termination, init_signals):
2803 * process.c (create_process):
2804 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2805 remove all code that assumes the contrary.
2806
49628785
GM
28072010-05-04 Glenn Morris <rgm@gnu.org>
2808
27a2cdfc
GM
2809 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2810 variable.
2811 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2812 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2813 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2814 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2815 LD_SWITCH_SYSTEM_tmp.
2816 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2817 New variables, set by configure.
2818
eb21eab5
GM
2819 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2820 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2821 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2822 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2823 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2824
49628785
GM
2825 * s/aix4-2.h (C_SWITCH_SYSTEM):
2826 * m/alpha.h (C_SWITCH_MACHINE):
2827 Move to configure.in.
2828 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2829 New variables, set by configure.
2830 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2831 $c_switch_machine and $c_switch_system.
2832
7dff330b
DN
28332010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2834
2835 * s/hpux10-20.h (LIB_STANDARD): New definition.
2836 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2837 on it, not used anymore.
2838
53967e09
CY
28392010-05-03 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * eval.c (internal_condition_case_n): Rename from
2842 internal_condition_case_2.
2843 (internal_condition_case_2): New function.
2844
2845 * xdisp.c (safe_call): Use internal_condition_case_n.
2846
2847 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2848 (internal_delete_file, Frename_file): Callers changed.
2849
2850 * buffer.c (Fkill_buffer):
2851 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2852
2853 * lisp.h: Update prototypes.
2854
3dee6fdb
GM
28552010-05-03 Glenn Morris <rgm@gnu.org>
2856
2857 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2858 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2859 (LIBXT): Set with configure, not cpp.
2860 (LIBX): Remove.
2861 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2862
a101e0fb
DN
28632010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2864
2865 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2866 The FreeBSD is not needed, the default works, Solaris version is
2867 not needed, and the remaining case is not supported by configure.
2868
f63d0028
JD
28692010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2870
2871 * xsmfns.c (CHDIR_OPT): New define.
2872 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2873 restarting emacs.
2874
2875 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2876 shut_down_emacs.
2877
2878 * emacs.c (USAGE1): Mention --chdir.
2879 (main): Handle --chdir.
2880 (standard_args): Add --chdir.
2881 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2882 #5552).
2883
e4814a9f
DN
28842010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2885
cd03c74a
DN
2886 Remove LD_SWITCH_MACHINE.
2887 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2888 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2889
c3a398a1
DN
2890 Clean up IRIX code.
2891 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2892 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2893
87e7285c
DN
2894 Clean up AIX code.
2895 * m/ibmrs6000.inp: Remove file, unused.
2896 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2897 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2898 definition ...
2899 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2900
80f00217
JB
2901 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2902 unused.
e4814a9f 2903
59ca28de
EZ
29042010-05-01 Eli Zaretskii <eliz@gnu.org>
2905
197daef4
EZ
2906 Emulate POSIX_SIGNALS on MS-Windows.
2907
2908 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2909 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2910
2911 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2912 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2913 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2914
80f00217
JB
2915 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2916 New stubs.
197daef4 2917
af7c7572
EZ
2918 Miscellaneous fixes of bidi display.
2919
59ca28de
EZ
2920 * xdisp.c (find_row_end): New function, refactored from display_line.
2921 (display_line): Use it.
017ea819
EZ
2922 (extend_face_to_end_of_line): In almost-filled rows, extend only
2923 if the row is R2L and not continued.
166e930d 2924 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2925 Preserve overlay and string info in row->end.
166e930d
EZ
2926 (insert_left_trunc_glyphs): Support addition of left truncation
2927 glyphs to R2L rows.
b47e0dcf 2928 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2929 glyph between adjacent windows. Fix a crash when a display string
2930 is continued to the next line. Don't return zero if cursor was
2931 found by `cursor' property of a display string.
b47e0dcf
EZ
2932 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2933 test for that explicitly.
59ca28de 2934
7acac9f4
GM
29352010-05-01 Glenn Morris <rgm@gnu.org>
2936
2937 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2938 for clarity.
2939 (OTHER_OBJ): Remove.
2940 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2941 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2942
45841e65
KK
29432010-05-01 Karel Klíč <kklic@redhat.com>
2944
2945 * fileio.c (Ffile_selinux_context): Context functions may return null.
2946
afc61943
DN
29472010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2948
80f00217 2949 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2950
5a1bb006
GM
29512010-04-30 Glenn Morris <rgm@gnu.org>
2952
2953 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2954 (OTHER_OBJ): Define as a separate variable, for clarity.
2955
210af043
J
29562010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2957
2958 * xsettings.c: include limits.h and update file comment.
2959
0a7df391
GM
29602010-04-30 Glenn Morris <rgm@gnu.org>
2961
d5096f16
GM
2962 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2963 Set with configure, not cpp.
2964 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2965
7eb1ac33
GM
2966 * Makefile.in (mallocobj): Remove.
2967 (otherobj): Simplify using @OTHER_OBJ@.
2968
517d086b
GM
2969 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2970 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2971 Don't bother making nsgui.h dependency platform-specific.
2972
0a7df391
GM
2973 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2974
d6d23852
SM
29752010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2976
d2630aef
SM
2977 * process.c (read_process_output, exec_sentinel): Don't burp if the
2978 sentinel/filter kills the current buffer (bug#6060).
2979
f9dddf52 2980 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2981 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2982 Remove unused var `args'.
2983 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2984 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2985 * doc.c (store_function_docstring): Use XSETCAR.
2986
f1e3642a
GM
29872010-04-28 Glenn Morris <rgm@gnu.org>
2988
faf535f8
GM
2989 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2990 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2991
c40f9449
GM
2992 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2993
658f86ca
GM
2994 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2995 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2996
bc0b5f61
GM
2997 * Makefile.in (FONT_OBJ): New, set by configure.
2998 (FONT_DRIVERS): Use $FONT_OBJ.
2999
294c50a0
GM
3000 * Makefile.in (LIBXMU): Set with configure, not cpp.
3001 * s/aix4-2.h (LIBXMU):
3002 * s/hpux10-20.h (LIBXMU):
3003 Remove definition, now set in configure.
3004
e6ec4e99
GM
3005 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3006
f1e3642a
GM
3007 * m/amdx86-64.h [i386]: Move this test to configure.in.
3008
c6ea2936
GM
30092010-04-27 Glenn Morris <rgm@gnu.org>
3010
8fdac2c3
GM
3011 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3012 * s/unixware.h (NEED_LIBW): Remove definition.
3013
986fb647
GM
3014 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3015 (TOOLKIT_LIBW): New, set by configure.
3016 (@X_TOOLKIT_TYPE@): No longer define it.
3017
c6ea2936
GM
3018 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3019 (MOTIF_LIBW): Set with configure, not cpp.
3020 * s/aix4-2.h (LIB_MOTIF):
3021 * s/gnu-linux.h (LIB_MOTIF):
3022 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3023
aaa36002
DN
30242010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3025
3026 Reduce CPP usage.
3027 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3028 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3029 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3030 definitions and undefs. Inline definitions in the only user.
3031 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3032
b678dd8b
GM
30332010-04-27 Glenn Morris <rgm@gnu.org>
3034
76cda504
GM
3035 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3036 since the defaults (set by the system file) are fine in most cases.
3037 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3038 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3039 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3040 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3041 Remove definitions, since they are set correctly in s/gnu-linux.h.
3042 * s/freebsd.h (START_FILES, LIB_STANDARD):
3043 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3044 * s/hpux10-20.h (START_FILES):
3045 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3046 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3047
b678dd8b
GM
3048 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3049 (MOTIF_LIBW): Use $LIBXP.
3050 (otherobj): Use $WIDGET_OBJ.
3051
9452ded1
DN
30522010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3053
7e10844c
DN
3054 * Makefile.in (LIBS_MACHINE): Remove, unused.
3055
9452ded1
DN
3056 Use autoconf instead of cpp for LIB_MATH.
3057 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3058 * s/cygwin.h (LIB_MATH): Likewise.
3059 * Makefile.in (LIB_MATH): Do not define with cpp.
3060 (LIBES): Use autoconf for LIB_MATH.
3061
fcebfc6a
KH
30622010-04-26 Kenichi Handa <handa@m17n.org>
3063
3064 * composite.c (Ffind_composition_internal): Fix the return value
3065 for an automatic composition.
3066
39e2ad1b
DN
30672010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3068
3069 Remove all NO_ARG_ARRAY uses.
3070 * fns.c (concat2, concat3, nconc2):
3071 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3072 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3073 * m/xtensa.h (NO_ARG_ARRAY):
3074 * m/template.h (NO_ARG_ARRAY):
3075 * m/sparc.h (NO_ARG_ARRAY):
3076 * m/sh3.h (NO_ARG_ARRAY):
3077 * m/mips.h (NO_ARG_ARRAY):
3078 * m/macppc.h (NO_ARG_ARRAY):
3079 * m/iris4d.h (NO_ARG_ARRAY):
3080 * m/intel386.h (NO_ARG_ARRAY):
3081 * m/ibms390x.h (NO_ARG_ARRAY):
3082 * m/ibms390.h (NO_ARG_ARRAY):
3083 * m/ibmrs6000.h (NO_ARG_ARRAY):
3084 * m/ia64.h (NO_ARG_ARRAY):
3085 * m/hp800.h (NO_ARG_ARRAY):
3086 * m/arm.h (NO_ARG_ARRAY):
3087 * m/amdx86-64.h (NO_ARG_ARRAY):
3088 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3089
adf4f59c
EZ
30902010-04-25 Eli Zaretskii <eliz@gnu.org>
3091
6bdf5d65
EZ
3092 * xdisp.c (display_line): Don't assume 2nd call to
3093 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3094 (iterate_out_of_display_property): New function, body from pop_it.
3095 (pop_it): Use it.
adf4f59c 3096
dfbbda83
GM
30972010-04-24 Glenn Morris <rgm@gnu.org>
3098
3099 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3100 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3101 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3102 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3103
2d4018aa
EZ
31042010-04-24 Eli Zaretskii <eliz@gnu.org>
3105
a49884a6
EZ
3106 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3107 use `get_next_display_element' and `set_iterator_to_next' to
3108 advance to the next character, when looking for the character that
3109 begins the next row.
3110
76db6fcc 3111 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3112 definition of "struct Lisp_Symbol".
3113
70eab5c1
GM
31142010-04-24 Glenn Morris <rgm@gnu.org>
3115
3116 * Makefile.in (CRT_DIR): New variable, set by configure.
3117 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3118 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3119
1ad4cc3d
DN
31202010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3121
e769f484
DN
3122 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3123
4196ff33
DN
3124 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3125
879b0ee4
DN
3126 Remove redundant flags.
3127 * s/freebsd.h (C_SWITCH_SYSTEM):
3128 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3129 * s/netbsd.h (C_SWITCH_SYSTEM):
3130 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3131 of these.
3132
03cbbcb8
DN
3133 Simplify m/intel386.h.
3134 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3135 user: ecrt0.c.
3136 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3137 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3138 the only user: s/unixware.h.
3139 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3140 from m/intel386.h.
3141 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3142 moved here from m/intel386.h.
3143
1ad4cc3d
DN
3144 * m/mips.h: Remove #if 0 code.
3145
8785b888
EZ
31462010-04-23 Eli Zaretskii <eliz@gnu.org>
3147
728588cc
EZ
3148 Fix display of composed characters from L2R scripts in bidi buffers.
3149 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3150 After advancing IT past the composition, resync the bidi iterator
3151 with IT's position. (Bug#5977)
3152
a63f80b4
DN
31532010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3154
3155 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3156 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3157
ff5dec5c
SM
31582010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3159
3160 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3161
8785b888
EZ
31622010-04-23 Eli Zaretskii <eliz@gnu.org>
3163
58ccf243 3164 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3165 * xdisp.c (pop_it): When the stack is popped after displaying
3166 from a string, bidi-iterate to exit from the text portion covered
3167 by the `display' property or overlay. (Bug#5988, bug#5920)
3168
feeb1604
DN
31692010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3170
8e324eb6
DN
3171 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3172 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3173
809fcaba
DN
3174 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3175 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3176
ed710380
DN
3177 Simplify STARTFILES definition.
3178 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3179 relying on Makefile.in to define it.
3180 * s/cygwin.h (START_FILES): Likewise.
3181 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3182
feeb1604
DN
3183 Clean up Solaris code.
3184 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3185 (LIB_MOTIF): Remove, configure takes care of this.
3186 (NOT_USING_MOTIF): Remove, unused.
3187 * xrdb.c: Remove #if 0-ed #include.
3188 (SYSV): Remove conditional for old SysV.
3189 * sysdep.c (closedir): Remove conditional code for Solaris,
3190 Solaris has closedir.
3191
a0d0b563
JD
31922010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3193
3194 * xsettings.c (read_and_apply_settings): Check if current_font is
3195 NULL before strcmp (Bug#6001).
3196
56bae7c7
DN
31972010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3198
3199 Clean up HP-UX files.
3200 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3201 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3202 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3203 * s/hpux10-20.h: ... to the only user, here.
3204
372b7a95
EZ
32052010-04-21 Eli Zaretskii <eliz@gnu.org>
3206
3207 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3208 use buffer-local values of paragraph-start and paragraph-separate.
3209 <paragraph_start_re, paragraph_separate_re>: Rename from
3210 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3211 (Bug#5992)
3212
f904c0f9
JD
32132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3214
3215 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3216 current_tool_bar_style are new.
3217 (store_config_changed_event): Rename from store_font_changed_event.
3218 (XSETTINGS_TOOL_BAR_STYLE): New define.
3219 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3220 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3221 HAVE_XFT.
3222 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3223 store_config_changed_event.
f904c0f9
JD
3224 (parse_settings): Rename from parse_xft_settings. Read
3225 non-xft xsettings outside #ifdef HAVE_XFT.
3226 (read_settings): Renamed from read_xft_settings.
3227 (apply_xft_settings): Take current settings as parameter. Do not
3228 call read_(xft)_settings.
3229 (read_and_apply_settings): New function.
3230 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3231 read_and_apply_settings if there are settings to be read.
3232 (init_xsettings): Renamed from init_xfd_settings.
3233 Call read_and_apply_settings unconditionally.
3234 (xsettings_initialize): Call init_xsettings.
3235 (Ftool_bar_get_system_style): New function.
3236 (syms_of_xsettings): Define Qmonospace_font_name and
3237 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3238 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3239 dynamic-setting.
31a01b90 3240 Move misplaced HAVE_GCONF
f904c0f9
JD
3241
3242 * xsettings.h (Ftool_bar_get_system_style): Declare.
3243
3244 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3245 Qtext, Qboth, Qboth_horiz are new.
3246 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3247 Vtool_bar_style, tool_bar_max_label_size.
3248
3249 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3250
3251 * keyboard.c: QClabel is new.
3252 (parse_tool_bar_item): Take out QClabel from tool bar items.
3253 Try to construct a label if ther is no QClabel.
3254 (syms_of_keyboard): Intern :label as QClabel.
3255
3256 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3257 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3258 New.
3259
3260 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3261 dynamic-setting.el.
3262
3263 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3264 (xg_make_tool_item, xg_show_toolbar_item): New function.
3265 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3266 Call xg_make_tool_item to make a tool bar item.
3267 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3268
3269 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3270 into account for toolbars.
3271
c632dfda
JD
32722010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3273
3274 * data.c (make_blv): Declarations before code (Bug#5993).
3275
10efe302
GM
32762010-04-21 Glenn Morris <rgm@gnu.org>
3277
3278 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3279 Define using autoconf, not cpp.
3280 (LIBXSM): New variable, set by autoconf.
3281 (LIBXT): Use $LIBXSM.
3282
4285ac5a
DN
32832010-04-21 Dan Nicolaescu <local_user@dannlt>
3284
3ec759e7
DN
3285 Remove NOMULTIPLEJOBS, unused.
3286 * s/template.h (NOMULTIPLEJOBS):
3287 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3288
4285ac5a
DN
3289 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3290 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3291 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3292 detects -znocombreloc and passes it to the linker
3293 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3294
2807228d
GM
32952010-04-21 Glenn Morris <rgm@gnu.org>
3296
3297 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3298
574c05e2
KK
32992010-04-21 Karel Klíč <kklic@redhat.com>
3300
3301 * Makefile.in (LIBSELINUX_LIBS): New.
3302 (LIBES): Add $LIBSELINUX_LIBS.
3303 * eval.c, lisp.h (call7): New function.
3304 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3305 (Ffile_selinux_context, Fset_file_selinux_context):
3306 New functions.
3307 (Fcopy_file): New parameter preserve-selinux-context.
3308 (Frename_file): Preserve selinux context when renaming by copy-file.
3309
91eac4bb 33102010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3311 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3312
50426a04
JB
3313 Don't depend on cm.c or termcap.c on Windows, use stubs.
3314 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3315 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3316 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3317 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3318 (sys_tputs, sys_tgetstr): New stubs.
3319 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3320 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3321
938efb77
JB
33222010-04-20 Juanma Barranquero <lekktu@gmail.com>
3323
3324 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3325
b4bf28b7
SM
33262010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3327
8b1e1112
SM
3328 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3329 Just signal a warning rather than an error when inside a let.
3330 (Fmake_variable_frame_local): Add the same test.
3331
933ac235
SM
3332 * font.c (syms_of_font): Make the style table vars read-only.
3333
b4bf28b7
SM
3334 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3335 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3336
3337 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3338
93d68d0c
EZ
33392010-04-20 Eli Zaretskii <eliz@gnu.org>
3340
3341 Fix R2L paragraph display on TTY.
3342
3343 * xdisp.c (unproduce_glyphs): New function.
3344 (display_line): Use it when produced glyphs are discarded from R2L
3345 glyph rows.
3346 (append_composite_glyph): In R2L rows, prepend the glyph rather
3347 than appending it.
3348
3349 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3350 rather than append it. Set up the resolved_level and bidi_type
3351 attributes of the appended glyph.
283ccc18
EZ
3352 (produce_special_glyphs): Mirror the backslash continuation
3353 character in R2L lines.
93d68d0c 3354
283ccc18 3355 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3356
283ccc18
EZ
3357 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3358 append_stretch_glyph.
3359 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3360 off-by-one error in computing x at end of text in the row.
3361 (append_stretch_glyph): In reversed row, prepend the glyph rather
3362 than append it. Set resolved_level and bidi_type of the glyph.
3363 (extend_face_to_end_of_line): If the row is reversed, prepend a
3364 stretch glyph whose width is such that the rightmost glyph will be
3365 drawn at the right margin of the window. Fix off-by-one error on
3366 TTY frames in testing whether a line needs face extension. Fix
3367 face extension at ZV. If this is the last glyph row, use
3368 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3369 region face.
3370 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3371 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3372 row->continuation_lines_width.
283ccc18
EZ
3373 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3374 are at ZV. Fixes a crash when reseated to ZV by
3375 try_window_reusing_current_matrix.
45903529
EZ
3376 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3377 which happens with R2L glyph rows. Fixes a crash when inserting a
3378 character at end of an R2L line.
283ccc18
EZ
3379 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3380 treat them as having zero-width characters. Improve comments.
3381 Don't reverse pos_before and pos_after for reversed glyph rows.
3382 Set cursor.x to negative value when the cursor might be on the
3383 left fringe.
3384 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3385 left fringe, not the right one.
f951a506
EZ
3386 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3387 (erase_phys_cursor): For reversed cursor_row, support cursor on
3388 the left fringe.
3389
283ccc18
EZ
3390 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3391 of continuation indicators on the fringes.
3392 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3393 left fringe.
3394
f951a506
EZ
3395 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3396 draw cursor on the left fringe.
3397
3398 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3399 cursor on the left fringe.
3400
f951a506
EZ
3401 * dispnew.c (update_text_area): Handle reversed desired rows when
3402 the cursor is on the left fringe.
3403 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3404 below, not by 0, for when the cursor is on the left fringe.
3405
3bb49aaf
JD
34062010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3407
3408 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3409 widget is a scrollbar.
3410
c0be27fd
KH
34112010-04-20 Kenichi Handa <handa@m17n.org>
3412
3413 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3414 only when the arg CHARSET_LIST is nil.
3415
ce5b453a
SM
34162010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3417
3418 Make variable forwarding explicit rather the using special values.
3419 Basically, this makes the structure of buffer-local values and object
3420 forwarding explicit in the type of Lisp_Symbols rather than use
3421 special Lisp_Objects for that. This tends to lead to slightly more
3422 verbose code, but is more C-like, simpler, and makes it easier to make
3423 sure we handled all cases, among other things by letting the compiler
3424 help us check it.
3425 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3426 Removing forwarding objects.
3427 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3428 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3429 explicit rather than hiding them inside Lisp_Object "values".
3430 (XFWDTYPE): New macro.
3431 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3432 (XBUFFER_LOCAL_VALUE): Remove.
3433 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3434 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3435 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3436 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3437 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3438 Remove the Lisp_Misc_* header.
3439 (struct Lisp_Buffer_Local_Value): Redefine.
3440 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3441 (struct Lisp_Misc_Any): Add filler to get the right size.
3442 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3443 Lisp_Intfwd.
3444 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3445 (DEFVAR_KBOARD): Allocate a forwarding object.
3446 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3447 (let_shadows_global_binding_p): New function.
3448 (union Lisp_Val_Fwd): New type.
3449 (make_blv): New function.
3450 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3451 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3452 (swap_in_symval_forwarding, find_symbol_value, Fset)
3453 (let_shadows_buffer_binding_p, set_internal, default_value)
3454 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3455 (Fkill_local_variable, Fmake_variable_frame_local)
3456 (Flocal_variable_p, Flocal_variable_if_set_p)
3457 (Fvariable_binding_locus):
3458 * xdisp.c (select_frame_for_redisplay):
3459 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3460 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3461 * frame.c (store_frame_param):
3462 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3463 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3464 value structure.
3465 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3466 (clone_per_buffer_values): Only adjust markers into the current buffer.
3467 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3468 (Fbuffer_local_value, set_buffer_internal_1)
3469 (swap_out_buffer_local_variables):
3470 Adapt to the new symbol value structure.
3471 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3472 (defvar_per_buffer): Take a new arg for the fwd object.
3473 (buffer_lisp_local_variables): Return a proper alist (different fix
3474 for bug#4138).
3475 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3476 (Fgarbage_collect): Don't handle buffer_defaults specially.
3477 (mark_object): Handle new symbol value structure rather than the old
3478 special Lisp_Misc_* objects.
3479 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3480 * term.c (set_tty_color_mode):
3481 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3482 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3483 a buffer_local_flags.
3484 * print.c (print_object): Get rid of impossible forwarding objects.
3485
fd3998ff
EZ
34862010-04-19 Eli Zaretskii <eliz@gnu.org>
3487
3488 * bidi.c (bidi_get_type, bidi_get_category)
3489 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3490 (bidi_type_of_next_char, bidi_level_of_next_char):
3491 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3492
e42cd1a7
JB
34932010-04-19 Juanma Barranquero <lekktu@gmail.com>
3494
3495 * dired.c (Ffile_attributes): Fix typo in docstring.
3496
6e104790 34972010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3498
3499 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3500 NSInteger (Bug#5811).
3501
6e104790 35022010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3503
3504 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3505 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3506
6e104790 35072010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3508
3509 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3510
6e104790
SM
35112010-04-19 Chong Yidong <cyd@stupidchicken.com>
3512
3513 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3514 terminal frames (Bug#5837).
3515
37dcfea0
EZ
35162010-04-19 Eli Zaretskii <eliz@gnu.org>
3517
d1da276f
EZ
3518 * .gdbinit (xsubchartable): New command.
3519
37dcfea0
EZ
35202010-04-19 Eli Zaretskii <eliz@gnu.org>
3521
3522 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3523 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3524 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3525 and
3526 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3527
e9515805
SM
35282010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3529
3530 * alloc.c (Fpurecopy): Hash-cons if requested.
3531 (syms_of_alloc): Update purify-flag docstring.
3532
22aa44a8
JD
35332010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3534
3535 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3536 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3537
ebb5722e
EZ
35382010-04-17 Eli Zaretskii <eliz@gnu.org>
3539
3540 Fix a crash when an NSM character is inserted at BEGV.
3541
3542 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3543 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3544 NEUTRAL_B or UNKNOWN_BT.
3545
0f4442ef
EZ
35462010-04-16 Eli Zaretskii <eliz@gnu.org>
3547
3548 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3549 other rows with cursor unless they are different from this row and
3550 this row is part of a continued line. (Bug#5943)
3551
7d4e45f8
DN
35522010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3553
3554 * s/freebsd.h: Restore osreldate.h include.
3555 Suggested by Naohiro Aota.
3556
5ba5ec85
J
35572010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3558
3559 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3560
20af301d
CY
35612010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3562
3563 * s/cygwin.h: Avoid linking against static libgcc.
3564
a4b000fb
JL
35652010-04-15 Juri Linkov <juri@jurta.org>
3566
3567 * window.c: Add Qscroll_command.
3568 Remove Vscroll_preserve_screen_position_commands.
3569 (window_scroll_pixel_based, window_scroll_line_based): Check the
3570 `scroll-command' property on the last command instead of searching
3571 the last command in Vscroll_preserve_screen_position_commands.
3572 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3573 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3574 (scroll-preserve-screen-position): Doc fix.
3575 (Vscroll_preserve_screen_position_commands): Remove variable.
3576
bc319ba4
DN
35772010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3578
6bb24457
DN
3579 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3580
19d4c244
DN
35812010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3582
3583 Reduce cpp use in Makefile.in.
3584 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3585 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3586 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3587 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3588 (CRT0_COMPILE): Remove, inline it in the only user.
3589
32129746
JL
35902010-04-14 Juri Linkov <juri@jurta.org>
3591
3592 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3593 `scroll-up-command' and `M-v' from `scroll-down' to
3594 `scroll-down-command'.
3595
9013a7f8
JL
35962010-04-14 Juri Linkov <juri@jurta.org>
3597
3598 * window.c (Vscroll_preserve_screen_position_commands): New variable
3599 with the default value as the list of Qscroll_down and Qscroll_up.
3600 (window_scroll_pixel_based, window_scroll_line_based): Search the
3601 last command in the list Vscroll_preserve_screen_position_commands
3602 instead of comparing with Qscroll_up and Qscroll_down.
3603
4bef8d26
JD
36042010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3605
92848133
JD
3606 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3607 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3608 does that.
3609
4bef8d26
JD
3610 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3611 to zero.
3612
58b963f7
SM
36132010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3614
84164a0d
SM
3615 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3616
2b0a91e7
SM
3617 Try to solve the problem of spurious EOF chars in long lines of text
3618 sent to interactive subprocesses.
3619 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3620 (system_process_attributes): Remove unused var `ttotal'.
3621 * process.c (send_process): Don't bother breaking long line with EOF
3622 chars when talking to ttys any more.
3623 (wait_reading_process_output): Output a warning when called in such
3624 a way that it could block without being interruptible.
3625
58b963f7
SM
3626 Try to detect file modification within the same second.
3627 * buffer.h (struct buffer): New field modtime_size.
3628 * buffer.c (reset_buffer): Initialize it.
3629 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3630 (Fverify_visited_file_modtime): Check it.
3631 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3632 (Fset_visited_file_modtime): Set (or clear) it.
3633
01f5787b
SM
36342010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3635
3636 * process.c (status_notify): Remove unused var `ro'.
3637
83725342
JD
36382010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3639
3640 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3641 more than one visual (Bug#5938).
3642
b9465836
DN
36432010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3644
50426a04
JB
3645 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3646 Undefine.
b9465836 3647
8d9c8ece
DN
36482010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3649
b1f52161
DN
3650 Remove C_SWITCH_SYSTEM_TEMACS.
3651 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3652 (malloc, realloc, free): Use emacs, not temacs for conditional
3653 definition.
3654
3655 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3656 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3657
8d9c8ece
DN
3658 Use autoconf, not cpp for some variables.
3659 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3660 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3661 (ALL_CFLAGS): Use them as make variables.
3662 (really-lwlib, really-oldXMenu): Do not pass them.
3663
1ecb2d3f
JD
36642010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3665
3666 * xmenu.c (apply_systemfont_to_dialog): New.
3667 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3668
3a4fa2f2
SM
36692010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3670
97e53006
SM
3671 * process.c (exec_sentinel): Preserve current-buffer.
3672
3a4fa2f2
SM
3673 * process.c (read_process_output): Move the save-current-buffer to
3674 apply to both the filter and the non-filter branches.
3675
88df7221
DN
36762010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3677
3678 * s/msdos.h (UNEXEC): New definition.
3679
5634ff85
YM
36802010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3681
6eff5c3d
YM
3682 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3683 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3684
3685 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3686 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3687 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3688 TRY_WINDOW_CHECK_MARGINS.
3689
3690 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3691 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3692 width only when it is for padding.
5634ff85 3693
b13aef54
J
36942010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3695
3696 * xfns.c (Fx_show_tip): Call try_window in a loop until
3697 fonts_changed_p is zero (Bug#2423).
3698
21d28484
EZ
36992010-04-08 Eli Zaretskii <eliz@gnu.org>
3700
3701 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3702 the end of TEXT_AREA. (Bug#5856)
3703
0269ef77
JD
37042010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3705
3706 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3707 HAVE_GCONF.
3708
5930fe97
EZ
37092010-04-08 Eli Zaretskii <eliz@gnu.org>
3710
3711 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3712 prev.orig_type, for resolving type of NSM. (Bug#5858)
3713
99852628
JD
37142010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3715
3716 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3717 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3718 in current_font.
3719 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3720 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3721 New functions.
3722 (syms_of_xsettings): Initialize current_font.
3723 defsubr Sfont_get_system_normal_font.
99852628
JD
3724
3725 * xsettings.h (Ffont_get_system_normal_font,
3726 xsettings_get_system_normal_font): Declare.
3727
3728 * xfns.c (extern xlwmenu_default_font): Remove.
3729 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3730 to xlwmenu.c.
3731
3732 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3733 menu items in UTF-8.
3734
3735 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3736 (apply_systemfont_to_menu): New function.
3737 (set_frame_menubar, create_and_show_popup_menu): Call
3738 apply_systemfont_to_menu.
3739
7fc874c4
J
37402010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3741
3742 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3743 FRAME_LINE_TO_PIXEL_Y.
3744
3745 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3746 pixelwidth/height.
3747
863bf481
DN
37482010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3749
5e5a3b92
DN
3750 Simplify code for HP machines.
3751 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3752 for GNU_LINUX, not needed.
3753 (UNEXEC, NEED_BSDTTY): Move definitions...
3754 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3755
863bf481
DN
3756 * m/iris4d.h (UNEXEC): Move definition ...
3757 * s/irix6-5.h (UNEXEC): ... here.
3758
3e6bec3b
JD
37592010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3760
3761 * xfns.c (set_machine_and_pid_properties): New function.
3762 (Fx_create_frame): Call set_machine_and_pid_properties.
3763
2912322b
SM
37642010-04-03 Eli Zaretskii <eliz@gnu.org>
3765
1502b819
EZ
3766 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3767 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3768 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3769
2912322b
SM
3770 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3771 in this function. (Bug#5703)
3772
37732010-04-03 Chong Yidong <cyd@stupidchicken.com>
3774
3775 * nsterm.h: Fix last change.
3776
c435b432
DN
37772010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3778
a568f507
DN
3779 * m/intel386.h (NO_REMAP): Move definition ...
3780 * s/msdos.h (NO_REMAP): ... here.
3781
4cd9f6c2
DN
3782 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3783
c435b432
DN
3784 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3785 used on those platforms.
3786
42a2c622
DN
37872010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3788
3789 Remove extern errno declarations.
3790 * xterm.c:
3791 * xrdb.c:
3792 * w32term.c:
3793 * unexec.c:
3794 * unexaix.c:
3795 * sysdep.c:
3796 * process.c:
3797 * lread.c:
3798 * keyboard.c:
3799 * floatfns.c:
3800 * filelock.c:
3801 * fileio.c:
3802 * emacs.c (main):
3803 * ecrt0.c:
3804 * dispnew.c:
3805 * callproc.c:
3806 * buffer.c: Remove errno extern declarations.
3807 * s/netbsd.h (NEED_ERRNO): Remove.
3808
8224f93d
DN
38092010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3810
3811 Remove all uses of LIBX11_SYSTEM.
3812 * Makefile.in (LIBX11_SYSTEM): Remove.
3813 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3814 instead.
3815
814062c7
EZ
38162010-04-01 Eli Zaretskii <eliz@gnu.org>
3817
ed68db4d
EZ
3818 Remove support for DJGPP v1.x (bug#5813).
3819
3820 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3821 * s/msdos.h:
3822 * unexec.c (make_hdr, copy_text_and_data):
3823 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3824 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3825 (IT_set_terminal_modes, __write, _rename, gethostname)
3826 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3827 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3828 the value of __DJGPP__.
ed68db4d
EZ
3829 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3830 compatibility code.
8224f93d
DN
3831 * lread.c:
3832 * gmalloc.c (memalign):
3833 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3834 * emacs.c (main):
3835 * dosfns.c (init_dosfns):
ed68db4d
EZ
3836 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3837
52f4d8d5
EZ
38382010-04-01 Eli Zaretskii <eliz@gnu.org>
3839
814062c7
EZ
3840 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3841 string with `cursor' property comes from an `after-string'
3842 overlay. (Bug#5816)
3843
0dc2e11d
GM
38442010-04-01 Glenn Morris <rgm@gnu.org>
3845
3846 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3847 Define as Makefile variables.
3848 (LIBX): Use above variables rather than directly using autoconf.
3849
1d29df59
DN
38502010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 Clean up BSD_SYSTEM use.
3853 * xterm.c:
3854 * process.c:
3855 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3856 for including <sys/ioctl.h>.
3857 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3858 code is only used for MSDOS.
3859
1546c559
JL
38602010-03-31 Juri Linkov <juri@jurta.org>
3861
3862 * image.c: Add `Qextension_data'.
3863 (syms_of_image): Initialize and staticpro `Qextension_data'.
3864 (Fimage_metadata): Rename from `Fimage_extension_data'.
3865 (gif_load): Put GIF extension data to the property
3866 `Qextension_data'.
3867
6521c534
CY
38682010-03-31 Chong Yidong <cyd@stupidchicken.com>
3869
3870 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3871 * nsterm.h: Fix prototype.
3872
52c30783
EZ
38732010-03-31 Eli Zaretskii <eliz@gnu.org>
3874
3875 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3876 trailing whitespace in right-to-left rows.
3877
855a0da7
SM
38782010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3879
3880 Get rid of the direct_output optimizations.
3881 * keyboard.c (nonundocount): Remove extern declaration.
3882 (command_loop_1): Remove brittle optimisation for cheap and
3883 common operations.
3884 * xdisp.c (redisplay_internal): Don't bother checking
3885 redisplay_performed_directly_p any more.
3886 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3887 any more.
3888 * dispnew.c (redisplay_performed_directly_p)
3889 (direct_output_for_insert, direct_output_forward_char):
3890 * dispextern.h (redisplay_performed_directly_p)
3891 (direct_output_for_insert, direct_output_forward_char): Remove.
3892 * cmds.c (nonundocount): Make it static.
3893
85738751 38942010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3895
3896 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3897
85738751 38982010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3899
3900 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3901 invisible (Bug#5766).
3902
85738751 39032010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3904
855a0da7
SM
3905 * xdisp.c (x_consider_frame_title, update_window_cursor):
3906 Remove HAVE_NS conditionals.
194d44e7 3907 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3908
3909 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3910 filename for the title.
3911 (ns_set_doc_edited): Do nothing if the selected window is a
3912 minibuffer window.
3913
3914 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3915 ns_set_doc_edited.
3916
3917 * nsterm.m: Remove unneeded prototype.
3918
85738751 39192010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3920
3921 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3922 in the DOC file. (Bug#5336)
3923
85738751 39242010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3925
3926 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3927
75d1428c
SM
39282010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3929
3930 * window.c (keys_of_window): Remove redundant/overridden bindings.
3931
82043cfb
EZ
39322010-03-30 Eli Zaretskii <eliz@gnu.org>
3933
3934 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3935 Restore original behavior when the iterator is not bidi_p.
3936
b5dd0ae7
DN
39372010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3938
3939 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3940
bd924a5d
EZ
39412010-03-30 Eli Zaretskii <eliz@gnu.org>
3942
3943 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3944 are outside the range of cached character positions.
3945
3580374b
JB
39462010-03-30 Juanma Barranquero <lekktu@gmail.com>
3947
3948 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3949
a7b02820
EZ
39502010-03-30 Eli Zaretskii <eliz@gnu.org>
3951
3952 Initial support for bidirectional editing.
3953
3954 * Makefile.in (obj): Include bidi.o.
3955 (bidi.o): New target.
3956
3957 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3958 ($(BLD)/bidi.$(O)): New target.
3959
3960 * bidi.c: New file.
3961
3962 * buffer.h (struct buffer): New members bidi_display_reordering
3963 and bidi_paragraph_direction.
3964
3965 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3966 and bidi_paragraph_direction.
3967 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3968 and bidi-paragraph-direction.
3969 (Fbuffer_swap_text): Swap the values of
3970 bidi_display_reordering and bidi_paragraph_direction.
3971
3972 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3973 (bidi_type_t, bidi_dir_t): New types.
3974 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3975 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3976 prev_stop, base_level_stop, and eol_pos.
3977 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3978 (IT_STACK_SIZE): Enlarge to 5.
3979 (struct glyph_row): New member reversed_p.
3980 <string_buffer_position>: Update prototype.
3981 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3982 glyph_row if bidi_it.paragraph_dir == R2L.
3983 (struct glyph): New members resolved_level and bidi_type.
3984
3985 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3986 processing or buffer's direction is right-to-left.
3987 (prepare_desired_row): Preserve the reversed_p flag.
3988 (row_equal_p): Compare the reversed_p attributes as well.
3989
3990 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3991 bidi_init_it and set it->paragraph_embedding from the current
3992 buffer's value of bidi_paragraph_direction.
3993 (reseat_1): Initialize bidi_it.first_elt.
3994 (set_iterator_to_next, next_element_from_buffer): Use the value of
3995 paragraph_embedding to determine the paragraph direction.
3996 (set_iterator_to_next): Under bidi reordering, call
3997 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3998 new_paragraph flag is set in the bidi iterator.
3999 (next_element_from_buffer): If bidi_it.first_elt is set,
4000 initialize paragraph direction and find the first character to
4001 display in the visual order. If reseated to a middle of a line,
4002 prime the bidi iterator starting at the line's beginning. Handle
4003 the situation where we overstepped stop_charpos due to
4004 non-linearity of the bidi iteration. Likewise for when we back up
4005 beyond the previous stop_charpos. When moving across stop_charpos,
4006 record it in prev_stop.
4007 (display_line): Set row->end and it->start for the next row to the
4008 next character in logical order. Always extend reversed_p rows to
4009 the end of line, even if they end at ZV. Copy the reversed_p flag
4010 to the next glyph row. Keep calling set_cursor_from_row for
4011 bidi-reordered rows even if we already have a possible candidate
4012 for cursor position. Set row_end after all the row's glyphs have
4013 been produced, by looping over the glyphs. Record the position
4014 after EOL in it->eol_pos, and use it to set end_pos of the last
4015 row produced for a continued line.
4016 <Qright_to_left, Qleft_to_right>: New variables.
4017 (syms_of_xdisp): Initialize and staticpro them.
4018 (string_buffer_position_lim): New function.
4019 (string_buffer_position): Most of code moved to
4020 string_buffer_position_lim. Last argument and return value are
4021 now EMACS_INT; all callers changed.
4022 (set_cursor_from_row): Rewritten to support bidirectional text and
4023 reversed glyph rows.
4024 (text_outside_line_unchanged_p, try_window_id): Disable
4025 optimizations if we are reordering bidirectional text and the
4026 paragraph direction can be affected by the change.
4027 (append_glyph, append_composite_glyph)
4028 (produce_image_glyph, append_stretch_glyph): Set the
4029 resolved_level and bidi_type members of each glyph.
4030 (append_glyph): If the glyph row is reversed, prepend the glyph
4031 rather than appending it.
4032 (handle_stop_backwards): New function.
4033 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4034 (reseat): call handle_stop_backwards to recompute prev_stop and
4035 base_level_stop for the new position.
4036 (handle_invisible_prop): Under bidi iteration, skip invisible text
4037 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4038 paragraph direction. Update IT->prev_stop after skipping
4039 invisible text.
4040 (move_it_in_display_line_to): New variables prev_method
4041 and prev_pos. Compare for strict equality in
4042 BUFFER_POS_REACHED_P.
4043 (try_cursor_movement): Examine all the candidate rows that occlude
4044 point, to return the best match. If rows are bidi-reordered
4045 and point moved backwards, back up to the row that is not a
4046 continuation line, and start looking for a suitable row from
4047 there.
4048
4049 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4050 rather than appending, if the glyph_row's reversed_p flag is set.
4051 Set the resolved_level and bidi_type members of each glyph.
4052
4053 * .gdbinit (pbiditype): New command.
4054 (pgx): Use it to display bidi level and type of the glyph.
4055 (pitx): Display some bidi information about the iterator.
4056 (prowlims, pmtxrows): New commands.
4057
32a8894e
DN
40582010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4059
4060 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4061 * s/usg5-4.h (LIBS_DEBUG):
4062 * s/irix6-5.h (C_DEBUG_SWITCH):
4063 * s/gnu-linux.h (LIBS_DEBUG):
4064 * s/darwin.h (LIBS_DEBUG):
4065 * s/bsd-common.h (LIBS_DEBUG):
4066 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4067 * m/iris4d.h (LIBS_DEBUG):
4068 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4069
4070 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4071 (LIBS_DEBUG): Remove definition.
4072
649dbf36
CY
40732010-03-27 Chong Yidong <cyd@stupidchicken.com>
4074
4075 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4076 Windows.
4077
cad4261f
YM
40782010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4079
4080 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4081 `connect' (Bug#5723).
4082
cd591dbc
HE
40832010-03-25 Helmut Eller <eller.helmut@gmail.com>
4084
4085 * process.c (Fmake_network_process): Call `select' for interrupted
4086 `connect' rather than creating new socket (Bug#5173).
4087
e867cb5d 40882010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4089
4090 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4091
4092 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4093
4094 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4095
e867cb5d 40962010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4097
4098 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4099 XLoadQueryFont.
4100
e867cb5d 41012010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4102
4103 * coding.c (decode_coding_ccl): Fix previous change for the
4104 multibyte case.
fb608df3
KH
4105 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4106 case that the output buffer is fullfilled.
4107 (encode_coding): Setup ccl program here.
fbdc1721 4108
5845f0ed
DN
41092010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4110
814fb708
DN
4111 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4112
5845f0ed
DN
4113 Simplify LIBS_MACHINE definitions.
4114 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4115 * m/iris4d.h (LIBS_MACHINE): Likewise.
4116 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4117 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4118 * s/netbsd.h: Remove commented out code.
5845f0ed 4119
b7064064
DN
41202010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4121
df7734b2
DN
4122 Remove dead code dealing with POSIX_SIGNALS.
4123 * atimer.c (set_alarm): Remove dead code, all USG systems define
4124 POSIX_SIGNALS.
4125 * data.c (arith_error): Likewise.
4126 * keyboard.c (input_available_signal, handle_user_signal)
4127 (interrupt_signal): Likewise.
4128 * process.c (sigchld_handler): Likewise.
4129 (create_process): Remove if 0 code. Remove HPUX conditional when
4130 !defined (POSIX_SIGNALS), it cannot be true.
4131 * syssignal.h: Remove USG5_4 and USG conditionals when
4132 !POSIX_SIGNALS, they cannot be true.
4133
b7064064
DN
4134 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4135 NO_SOCK_SIGIO, not used anymore.
4136
55da5ee3
DN
41372010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4138
0be96e3a
DN
4139 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4140 support vax on BSDs.
4141
55da5ee3
DN
4142 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4143 * s/aix4-2.h (ORDINARY_LINK): ... here.
4144
c0282183
AS
41452010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4146
82c3d67a
AS
4147 * Makefile.in (abs_builddir): Define.
4148 (bootstrap_exe): Use it.
4149 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4150
3613edce
SM
41512010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4152
4153 * Makefile.in (bootstrap_exe): Use an absolute name.
4154
7f110ddc
DN
41552010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4156
22e87574
DN
4157 Remove support for old GNU/Linux using libc version 5.
4158 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4159 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4160
05a670e6
DN
4161 Consolidate redundant definitions in s/bsd-common.h.
4162 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4163 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4164 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4165 doing it in all files that include this one.
4166 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4167 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4168 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4169 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4170 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4171 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4172 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4173 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4174 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4175
2968f561
DN
4176 Consolidate redundant definitions.
4177 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4178 it's undefined in all files that include this one.
4179 (POSIX_SIGNALS): Define here instead of doing it in all files that
4180 include this one.
4181 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4182 (POSIX_SIGNALS): Do not define.
4183 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4184 (POSIX_SIGNALS): Do not define.
4185 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4186 (POSIX_SIGNALS): Do not define.
4187
15d25dc0
DN
4188 Remove support for old UNIX System V systems.
4189 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4190 * s/usg-5-4-2.h: Remove.
4191
07e339e4
DN
4192 Remove support for Solaris on PPC and for old versions.
4193 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4194 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4195 that cancel each other.
4196 * s/sol2-3.h:
4197 * s/sol2-4.h:
4198 * s/sol2-5.h: Remove.
4199 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4200 (NO_REMAP): Remove, unused.
4201 (UNEXEC): Move definition ...
4202 * s/aix4-2.h (UNEXEC): ... here.
4203
7f110ddc
DN
4204 * s/openbsd.h: Remove support for non-ELF and for systems that do
4205 not support shared libraries.
4206 * s/netbsd.h:
4207 * s/freebsd.h: Likewise.
4208
605f35cd
DN
42092010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4210
4211 Remove non-working support for lynxos 3.0.
4212 * s/lynxos.h: Remove file.
4213
4214 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4215 COFF_BSD_SYMBOLS, nothing defines it anymore.
4216
aed71cf4
DN
42172010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4218
4219 Remove obsolete uses of HAVE_SHM.
4220 * emacs.c (standard_args):
4221 (Fdump_emacs):
4222 (syms_of_emacs): Remove code depending on HAVE_SHM.
4223
4224 * alloc.c: Remove HAVE_SHM dependent definition.
4225
4226 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4227
aded53ff
GM
42282010-03-18 Glenn Morris <rgm@gnu.org>
4229
17284745
GM
4230 * emacs.c (USAGE4): Hard-code bug address.
4231 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4232 (bug_reporting_address): Remove.
4233 (main): Don't call bug_reporting_address.
4234
aded53ff
GM
4235 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4236 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4237
303500aa
CY
42382010-03-15 Chong Yidong <cyd@stupidchicken.com>
4239
4240 * xfns.c (Fx_create_frame):
4241 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4242 on left.
4243
cef3058f
CY
42442010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4245
4246 * editfns.c (Fformat): Account for string precision when computing
4247 field width (Bug#5710).
4248
a647d59d
CY
42492010-03-12 Chong Yidong <cyd@stupidchicken.com>
4250
4fa42018
CY
4251 * xfns.c (Fx_create_frame): Set default to Qright.
4252
a647d59d
CY
4253 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4254 all window systems.
4255
6da23aaa
EZ
42562010-03-12 Eli Zaretskii <eliz@gnu.org>
4257
a96f6398 4258 These changes remove termcap.c from the build on Posix platforms.
83d02def 4259 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4260 (MSDOS_OBJ): ...to here.
4261 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4262 now identical to when LIBS_TERMCAP is defined.
4263
4264 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4265
4266 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4267
a96f6398 4268 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4269
288f9fc0
CY
42702010-03-10 Chong Yidong <cyd@stupidchicken.com>
4271
4272 * Branch for 23.2.
4273
d48cd3f4
SM
42742010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 Cleanup setup of gl_state in various parts of the code.
4277 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4278 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4279 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4280 (skip_chars):
4281 * regex.c (regex_compile): Use it.
4282 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4283 it's now set in regex_compile when/if we need it.
4284
618db430
SM
42852010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4286
c0335e02
SM
4287 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4288 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4289 (QUIT): Use it to consolidate code and remove redundancy.
4290 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4291
254c06a8
SM
4292 * regex.c (regex_compile): Setup gl_state as well.
4293
618db430
SM
4294 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4295 (in_classes): Use CONSP before XCAR/XCDR.
4296
233f0c9f
CY
42972010-03-03 Chong Yidong <cyd@stupidchicken.com>
4298
4299 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4300 definitions, so that keyboard macros are correctly handled
4301 (Bug#5481).
4302
75f80e63
EZ
43032010-03-02 Eli Zaretskii <eliz@gnu.org>
4304
4305 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4306 text that could be relocated inside the call to emacs_mule_char.
4307 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4308 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4309
dcfb9bc4
KH
43102010-03-02 Kenichi Handa <handa@m17n.org>
4311
fc9a17bc
KH
4312 * character.c (parse_str_as_multibyte): Fix handling of the
4313 multibyte form of raw-bytes.
4314 (str_as_multibyte): Likewise.
4315
dcfb9bc4
KH
4316 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4317 form of raw-bytes.
4318
412c01b6
CY
43192010-02-28 Chong Yidong <cyd@stupidchicken.com>
4320
4321 * charset.c (load_charset_map_from_file)
4322 (load_charset_map_from_vector): Zero out allocated
4323 charset_map_entries before using them.
4324
df7e1ea0
AS
43252010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4326
4327 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4328
fe69a722
CY
43292010-02-27 Chong Yidong <cyd@stupidchicken.com>
4330
4ed28cf4
CY
4331 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4332 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4333
7379cfce
KH
43342010-02-26 Kenichi Handa <handa@m17n.org>
4335
f88cc4d6
KH
4336 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4337
7379cfce
KH
4338 * xdisp.c (reseat_to_string): Fix previous change.
4339
cf2fdcfb
CY
43402010-02-26 David Reitter <david.reitter@gmail.com>
4341
4342 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4343 Lisp_Object (Bug#4736).
4344
cc6c7c75
KH
43452010-02-25 Kenichi Handa <handa@m17n.org>
4346
4347 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4348
32e737d7
JD
43492010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4350
4351 * xterm.c (XTflash): Move declarations before statements.
4352
4353 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4354 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4355 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4356 (xg_create_tool_bar): Remove unused variables.
4357 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4358 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4359
676cae9f
CY
43602010-02-21 Chong Yidong <cyd@stupidchicken.com>
4361
4362 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4363
886cc2b8
SM
43642010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4365
4366 * term.c (fatal): Add a final \n if needed (bug#5596).
4367
ddb2d8e2
CY
43682010-02-18 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4371
2a4f8d3d
GM
43722010-02-18 Glenn Morris <rgm@gnu.org>
4373
4374 * callint.c (Finteractive): Doc fix.
4375
ebaf11b6
KH
43762010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4377
886cc2b8
SM
4378 * coding.c (record_conversion_result):
4379 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4380 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4381 memory allocation error.
4382
d0396581
KH
43832010-02-17 Kenichi Handa <handa@m17n.org>
4384
886cc2b8
SM
4385 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4386 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4387 (decode_coding): Setup ccl program here. Keep looping when the
4388 decoder stopped because the output buffer is
4389 fullfilled (bug#5534).
4390
4391 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4392
98599f74
JD
43932010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4394
471e4f04 4395 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4396 bug #5571.
886cc2b8 4397 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4398 overdrawn.
98599f74 4399
182659ae
JD
44002010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4401
4402 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4403 doing_interact here.
4404 (ice_connection_closed): New function.
4405 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4406 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4407 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4408 returns I/O error.
4409 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4410 bug #5512.
4411
9be32c4e 44122010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4413
4414 * nsfont.m (nsfont_open): The system's value for the font descent
4415 is negative, so round it down to avoid clipping.
4416
a2f3eb19
CY
44172010-02-06 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * charset.c (load_charset_map_from_file)
4420 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4421 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4422
3088147c
CY
44232010-02-05 Chong Yidong <cyd@stupidchicken.com>
4424
4425 * charset.c (load_charset_map_from_file): Allocate large
4426 charset_map_entries structure on the heap rather than the stack.
4427 (Bug#5526).
4428
b57d9029
KH
44292010-01-31 Kenichi Handa <handa@m17n.org>
4430
4431 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4432 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4433
c67d885b
CY
44342010-01-31 Chong Yidong <cyd@stupidchicken.com>
4435
4436 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4437 <deactivated@gmail.com> (Bug#3605).
4438
8fab2362
CY
44392010-01-31 David De La Harpe Golden <david@harpegolden.net>
4440
4441 * fileio.c (Frename_file): Correctly rename symlinks to
4442 directories (Bug#5496).
4443
cb2a62f2
CY
44442010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4445
4446 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4447
944c7a26
AS
44482010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4449
4450 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4451
c024ac08
CY
44522010-01-29 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * frame.c (DEFAULT_ROWS): Change default to 35.
4455
4456 * xfns.c (x_default_font_parameter): Change default XFT font to
4457 monospace-10 (Bug#3643).
4458
af93af83
EZ
44592010-01-29 Eli Zaretskii <eliz@gnu.org>
4460
4461 * w32inevt.c (key_event): Remove unnecessary comparison of
4462 event->uChar.AsciiChar with 128.
4463
ca0eb708
CY
44642010-01-28 Chong Yidong <cyd@stupidchicken.com>
4465
b242dbfc
CY
4466 * fileio.c (Frename_file): Fix last change (Bug#5487).
4467
ca0eb708
CY
4468 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4469
4470 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4471
45d45af5
JD
44722010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4473
4474 * xfns.c (Fx_create_frame): Remove window size matching code from
4475 2010-01-15.
a73f9c9d 4476 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4477
7e233730
JR
44782010-01-27 Jason Rumney <jasonr@gnu.org>
4479
4480 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4481 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4482
86e893e3
KH
44832010-01-27 Kenichi Handa <handa@m17n.org>
4484
4485 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4486 pattern string (Bug#4209).
86e893e3 4487
8719abec
CY
44882010-01-27 David De La Harpe Golden <david@harpegolden.net>
4489
4490 * fileio.c (Frename_file): Call copy-directory and
4491 delete-directory for directories, in order to handle cross-device
4492 renaming (Bug#3353).
4493
844794c8
JD
44942010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4495
aa3e13b5 4496 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4497 sizes 24 and 10. Bug #3643.
844794c8 4498
bd4b5750
SM
44992010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4500
8dc1adf6 4501 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4502 * keymap.c (shadow_lookup): Add `remap' arg.
4503 (describe_map, describe_vector): Update calls to shadow_lookup.
4504 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4505 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4506 perform remapping during shadow_lookup check of remapped_sequences.
4507
285d07e2
CY
45082010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4509
4510 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4511 png_check_sig, which has been removed in libpng 1.4.
4512
c6d09b8d
CY
45132010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4514
4515 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4516 lacks this header file).
4517
3d782998
YM
45182010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4519
4520 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4521 as in Emacs 22.
4522
2aff7c53
YM
45232010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4524
4525 * lisp.h (make_pure_string): String pointer arg now points to const.
4526
4527 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4528 args now point to const.
4529
74327f7a
EZ
45302010-01-22 Eli Zaretskii <eliz@gnu.org>
4531
4532 * lread.c (Fload): Don't treat files without .elc extension as
4533 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4534 them. (bug#5303)
4535
4d1e6632
KH
45362010-01-20 Kenichi Handa <handa@m17n.org>
4537
4538 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4539 treat the source as actual byte sequence.
4540
1fdede8f
AM
45412010-01-19 Alan Mackenzie <acm@muc.de>
4542
4543 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4544 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4545 `signal_after_change_p' to `coherent_change_p', and make the
4546 invocation of `modify_region' conditional on it.
4547
67477f30
JD
45482010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4549
4550 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4551 for debug purpose.
4552 (syms_of_xsettings): Declare xft-settings.
4553
244b023e
CY
45542010-01-18 Chong Yidong <cyd@stupidchicken.com>
4555
4556 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4557
617364fe
CY
45582010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4559
4560 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4561
4fe22cdf
CY
45622010-01-16 Chong Yidong <cyd@stupidchicken.com>
4563
4564 * emacs.c (standard_args): Adjust arg priorities to reflect how
4565 they are processed in startup.el.
4566
e118d2be
AS
45672010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4568
4569 * Makefile.in (lisp, shortlisp): Update.
4570
523ae620
SM
45712010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4572
4573 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4574 code, link the new kboard into all_kboard before running Lisp code,
4575 and protect the new terminal with GCPRO (Bug#5365).
4576 (x_term_init): Remove unused var `atom'.
4577 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4578
f0d13888
JD
45792010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4580
4581 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4582 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4583 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4584 this. Bug #3643.
f0d13888 4585
cc320f07
KH
45862010-01-15 Kenichi Handa <handa@m17n.org>
4587
4588 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4589
7ffdf101
CY
45902010-01-15 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * nsterm.m (Qnone): Define.
4593
4594 * nsfns.m (Qnone): Move definition to nsterm.m.
4595
d12bd917
KH
45962010-01-14 Kenichi Handa <handa@m17n.org>
4597
4598 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4599 systems.
4600
d9a7c140
KH
46012010-01-14 Kenichi Handa <handa@m17n.org>
4602
4603 Make auto-composition work on all buffers even if they are
4604 fundamental mode.
4605
4606 * composite.c (Vauto_composition_mode): New variable.
4607 (composition_compute_stop_pos): Check Vauto_composition_mode
4608 instead of Vauto_composition_function.
4609 (composition_adjust_point, Ffind_composition_internal): Likewise.
4610 (syms_of_composite): Declare Lisp variable
4611 "auto-composition-mode" here.
4612
63286bb2
CY
46132010-01-13 Chong Yidong <cyd@stupidchicken.com>
4614
4615 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4616 during call to vendor-specific-keysyms (Bug#5365).
4617
c2623ee7
YM
46182010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4619
4620 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4621 Call SIGNAL_THREAD_CHECK (Bug#5333).
4622
4623 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4624 Call SIGNAL_THREAD_CHECK.
4625
0b5397c2
SM
46262010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4627
4628 Try to fix bug#5314. This is probably not the final word, tho.
4629 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4630 recent-auto-save-p as a side-effect.
4631 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4632 * buffer.c (Fkill_buffer, reset_buffer):
4633 * editfns.c (Fsubst_char_in_region):
4634 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4635 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4636
dc954cb2
KH
46372010-01-13 Kenichi Handa <handa@m17n.org>
4638
4639 Display buffer name, etc. in mode line by composing correctly.
4640
4641 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4642 STRING is not nil.
0b5397c2 4643 (display_mode_element): Adjust for the change of
dc954cb2
KH
4644 decode_mode_spec and display_line.
4645 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4646 (display_string): Handle the case that STRING is non-null and
4647 LISP_STRING is not nil.
4648
0b5397c2
SM
4649 * xterm.c (x_draw_composite_glyph_string_foreground):
4650 Pay attention to s->face->overstrike.
dc954cb2
KH
4651
4652 * composite.c (composition_reseat_it): Don't check PT if STRING is
4653 non nil.
4654
4a00eaca
YM
46552010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4656
4657 * keyboard.c (read_char): Don't apply previous change when current
4658 buffer is unchanged by command execution.
4659
60abb287
JD
46602010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4661
4662 * keyboard.c (read_char): Return after executing from special map.
4663
893db5bc
GM
46642010-01-12 Glenn Morris <rgm@gnu.org>
4665
4666 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4667 bug-gnu-emacs rather than emacs-pretest-bug.
4668
4d03ece0
CY
46692010-01-11 Chong Yidong <cyd@stupidchicken.com>
4670
4671 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4672 initializing the Lisp variables that depend on them.
4673
1df47e38
YM
46742010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4675
4676 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4677 Clear areas that will not be updated after change of menu bar lines.
4678 Clear the menu bar window's current matrix when the window gets empty.
4679
2f1c6384
CY
46802010-01-09 Chong Yidong <cyd@stupidchicken.com>
4681
e398c61c
CY
4682 * intervals.h, textprop.c (extend_property_ranges): Return value
4683 and args changed. Discard properties that begin at or after the
4684 new end (Bug#5306).
4685
4686 * editfns.c (Fformat): Caller changed.
4687
e5a29a10
CY
4688 * nsterm.m (ns_set_default_prefs): Delete function.
4689 (syms_of_nsterm): Initialize ns_command_modifier,
4690 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4691 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4692
2f1c6384
CY
4693 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4694 position (Bug#4040).
4695
d427a9fa
EZ
46962010-01-09 Eli Zaretskii <eliz@gnu.org>
4697
4698 * editfns.c (Ffloat_time): Doc fix.
4699
21b9df2f
JD
47002010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4701
4702 * xfns.c (Fx_create_frame): Don't create frame larger than display
4703 by default bug#3643.
4704
4b00d3b1
YM
47052010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4706
4707 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4708 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4709 windows above internal border.
4710
4711 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4712 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4713 windows above internal border.
4714
4715 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4716 tool bar windows specially.
4717
4718 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4719
4720 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4721 specially.
4722 (XTflash): Take account of menu bar height.
4723
4724 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4725 specially.
4726
5075d853
JD
47272010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4728
ac146f82 4729 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4730 also be true before we can return early (bug #5339).
4731
474217c8
CY
47322010-01-06 David Reitter <david.reitter@gmail.com>
4733
4734 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4735 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4736 (Bug#3233).
4737
c0e6d47d
JD
47382010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4739
d0cf45b7
JD
4740 * font.c (font_open_entity): Enable chache and call cached_font_ok
4741 for the driver if defined.
4742 (QCuser_spec): New symbol.
4743 (font_spec_from_name): Save name as user-spec.
4744 (font_load_for_lface): Keep user-spec instead of name.
4745 (font_open_by_name): Save name as user-spec.
4746 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4747 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4748
4749 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4750 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4751 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4752
4753 * font.h (struct font_driver): Add cached_font_ok.
4754
c0e6d47d
JD
4755 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4756
7c583cd8
JD
47572010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4758
4759 * xterm.c (x_new_font): Move code for setting rows/cols before
4760 resizing ...
ac146f82 4761 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4762
4763 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4764 (xg_frame_resized, xg_frame_set_char_size):
4765 Call xg_clear_under_internal_border.
7c583cd8 4766 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4767
03f77f0a
CY
47682010-01-05 Chong Yidong <cyd@stupidchicken.com>
4769
4770 * keyboard.c (read_key_sequence): Catch keyboard switch after
4771 making a new tty frame (Bug#5095).
4772
2a1ef5be
KH
47732010-01-05 Kenichi Handa <handa@m17n.org>
4774
4775 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4776
e3eb1dae
SM
47772010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4778
4779 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4780 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4781 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4782
777013f2
MA
47832010-01-03 Michael Albinus <michael.albinus@gmx.de>
4784
4785 * dbusbind.c (xd_add_watch): Improve debug message.
4786 (xd_remove_watch): Improve debug message. If DATA is the session
4787 bus, unset D-Bus session environment.
4788 (Fdbus_init_bus): Pass the bus as argument to
4789 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4790
8932b1c2
CY
47912010-01-01 Chong Yidong <cyd@stupidchicken.com>
4792
87231e2c
CY
4793 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4794
4801c5fa
CY
4795 * lread.c (syms_of_lread): Make it clearer that these are the
4796 names of loaded files (Bug#5068).
4797
8932b1c2
CY
4798 * eval.c (run_hook_with_args): Handle the case where the global
4799 value has the obsolete single-function form (Bug#5026).
4800
11e3c684
CY
48012009-12-27 Chong Yidong <cyd@stupidchicken.com>
4802
4803 * minibuf.c (Fall_completions): Minor optimization.
4804
5b28ce35
EZ
48052009-12-26 Eli Zaretskii <eliz@gnu.org>
4806
5ce6e4f4
JB
4807 * .gdbinit (pgx): Fix display of composite glyphs.
4808 Display cmp.from and cmp.to as well.
4809 (pitx): Fix last change.
5b28ce35 4810
bcffff46
KH
48112009-12-25 Kenichi Handa <handa@m17n.org>
4812
4813 * composite.h (composition_adjust_point): Update prototype.
4814
4815 * composite.c (composition_reseat_it): Don't make a composition
4816 spanning over point.
4817 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4818 composable characters.
4819 (composition_adjust_point): New arg NEW_PT. Callers changed.
4820
4821 * keyboard.c (command_loop_1): Force redisplay if the last point
4822 was within a composition.
4823 (adjust_point_for_property): Don't adjust point for automatic
4824 composition when called after buffer modification.
4825
3f670e9a
EZ
48262009-12-19 Eli Zaretskii <eliz@gnu.org>
4827
5ce6e4f4
JB
4828 * .gdbinit (pitx): Don't use enum names, use their values.
4829 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4830 (pgx): Don't use enum names, use their values.
4831 (pitmethod): New helper command.
4832 (pitx): Use it to display iteration method.
4833 (pgrowit): New command.
4834
ad903955
EZ
4835 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4836
3f670e9a
EZ
4837 Update dependencies in Makefile.in.
4838
4839 * Makefile.in (alloc.o): Depend on termhooks.h.
4840 (atimer.o): Depend on blockinput.h.
4841 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4842 and frame.h.
4843 (callint.o): Depend on systime.h, coding.h, and composite.h.
4844 (callproc.o): Depend on buffer.h.
4845 (casefiddle.o): Don't depend on charset.h.
4846 (casetab.o): Depend on character.h.
4847 (ccl.o): Depend on composite.h.
4848 (chartab.o): Depend on ccl.h.
4849 (cm.o): Depend on dispextern.h.
4850 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4851 (coding.o): Don't depend on $(INTERVALS_H).
4852 (composite.o): Don't depend on dispextern.h explicitly (it's in
4853 $(INTERVALS_H)). Depend on ccl.h.
4854 (data.o): Depend on systime.h, coding.h, composite.h,
4855 dispextern.h, font.h, and ccl.h.
4856 (dired.o): Depend on composite.h.
4857 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4858 composite.h (it's in $(INTERVALS_H)).
4859 (doc.o): Depend on systime.h, coding.h, and composite.h.
4860 (editfns.o): Don't depend explicitly on dispextern.h.
4861 (emacs.o): Depend on frame.h and coding.h.
4862 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4863 (fileio.o): Depend on frame.h and commands.h. Don't depend
4864 explicitly on dispextern.h.
4865 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4866 composite.h.
4867 (fns.o): Don't depend on termhooks.h.
4868 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4869 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4870 coding.h, $(INTERVALS_H), window.h, xterm.h.
4871 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4872 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4873 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4874 fontset.h, ccl.h, and ftfont.h.
4875 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4876 (gtkutil.o): Depend on dispextern.h and composite.h.
4877 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4878 termhooks.h, and ccl.h.
4879 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4880 (intervals.o): Depend on systime.h and coding.h.
4881 (keyboard.o): Depend on composite.h and coding.h.
4882 (keymap.o): Depend on coding.h and frame.h.
4883 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4884 (macros.o): Depend on systime.h, coding.h, and composite.h.
4885 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4886 and atimer.h.
4887 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4888 dispextern.h explicitly.
0b5397c2
SM
4889 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4890 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4891 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4892 (regex.o): Don't depend on charset.h.
4893 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4894 (search.o): Don't depend explicitly on composite.h.
4895 (sound.o): Depend on atimer.h and systime.h.
4896 (syntax.o): Don't depend explicitly on composite.h.
4897 (sysdep.o): Depend on coding.h and composite.h.
4898 (term.o): Depend on xterm.h and buffer.h.
4899 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4900 (textprop.o): Don't depend on dispextern.h explicitly.
4901 (undo.o): Depend on dispextern.h.
4902 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4903 dispextern.h and composite.h explicitly.
4904 (xdisp.o): Depend on ccl.h.
4905 (xfaces.o): Depend on coding.h and ccl.h.
4906 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4907 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4908 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4909 ftfont.h.
4910 (xgselect.o): New dependency.
4911 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4912 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4913 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4914 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4915 (xsmfns.o): Depend on frame.h and dispextern.h.
4916 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4917 sysselect.h.
4918
7a6f7fea
AS
49192009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4920
4921 * font.c (Fclear_font_cache): Pass correct cache argument to
4922 font_clear_cache.
4923
f4c21026
AS
49242009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4925
4926 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4927 twice.
4928
f7ab0997
CY
49292009-12-15 Chong Yidong <cyd@stupidchicken.com>
4930
4931 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4932 calling file-remote-p. Reported by Jim Meyering.
4933
fa8e045a
MA
49342009-12-15 Michael Albinus <michael.albinus@gmx.de>
4935
4936 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4937 avoid compiler warnings. (Bug #5217)
fa8e045a 4938
a63dba42
KH
49392009-12-14 Kenichi Handa <handa@m17n.org>
4940
4941 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4942 in 8-bit encoding.
4943
5ce6e4f4 49442009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4945
4946 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4947 tooltip windows.
4948
223e5fc6
JD
49492009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4950
36acb2a7
JD
4951 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4952 Xatom_net_window_type.
4953
4954 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4955 Xatom_net_window_type.
4956
b8f00677
JD
4957 * xterm.c (my_log_handler): New function.
4958 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4959 so we can filter out buggy messages. (Bug #5120).
b8f00677 4960
e5f0bc9a
JD
4961 * xterm.c (xg_scroll_callback): Parameter list changed,
4962 use parameter GtkScrollType to determine scroll/line/page.
4963 Only allow dragging if a button < 4 is grabbed (bug #5177).
4964 (xg_end_scroll_callback): New function.
4965 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4966 xg_create_scroll_bar.
4967
4968 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4969 (scroll_end_callback): Remove.
4970 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4971 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4972 bug #5177.
e5f0bc9a
JD
4973 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4974 bug #5177.
4975
4976 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4977 (xg_create_scroll_bar): Add GCallback end_callback.
4978
223e5fc6
JD
4979 * xftfont.c (QClcdfilter): New variable.
4980 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4981 (syms_of_xftfont): Initialize QClcdfilter.
4982
3c055b77
JD
49832009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4984
4985 * xsettings.c (struct xsettings): Add member seen.
4986 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4987 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4988 (apply_xft_settings): Only update Xft settings with what member seen
4989 indicates as new.
4990
05fe33ff
EZ
49912009-12-12 Eli Zaretskii <eliz@gnu.org>
4992
c4cc8b9a 4993 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4994 (struct glyph): Use EMACS_INT for charpos.
4995 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4996 region_beg_charpos, region_end_charpos,
4997 redisplay_end_trigger_charpos, and also for
4998 iterator_stack_entry.end_charpos and
4999 iterator_stack_entry.stop_charpos.
5000
e8d7886a
JD
50012009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5002
5ce6e4f4 5003 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5004 (xg_create_scroll_bar): Call scroll_end_callback on button release
5005 event (bug #5177).
5006 (xg_event_is_for_scrollbar): != replaced with ==.
5007
d0db2ec8
KH
50082009-12-12 Kenichi Handa <handa@m17n.org>
5009
5010 * ftfont.c (struct ftfont_info): New member matrix.
5011 (ftfont_open): Setup xftfont_info->matrix.
5012 (MFLTFontFT): New member matrix.
5013 (FLOOR, CEIL, ROUND): New macros.
5014 (ftfont_get_metrics): Handle matrix transformation.
5015 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5016
5017 * xftfont.c (struct xftfont_info): New member matrix.
5018 (xftfont_open): Setup xftfont_info->matrix.
5019
50202009-12-10 Kenichi Handa <handa@m17n.org>
5021
5022 * xdisp.c (append_space_for_newline): Consider face-remapping.
5023
2cc7b62f
AS
50242009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5025
b87dd913
AS
5026 * xsettings.c: Include "keyboard.h".
5027
eba5eb94
AS
5028 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5029
2cc7b62f
AS
5030 Fix implicit function declarations.
5031 * cmds.c: Include "frame.h".
5032 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5033 * frame.h: Move declaration of delete_frame outside of
5034 HAVE_WINDOW_SYSTEM.
5035
a4ef73c8
CY
50362009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5037
5038 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5039
5040 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5041 GTK builds.
5042
944a300c
AS
50432009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5044
5045 * unexelf.c (unexec): Don't search for .data twice.
5046
022eef62
CY
50472009-12-05 Chong Yidong <cyd@stupidchicken.com>
5048
426ac949
CY
5049 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5050 if push failed.
5051 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5052 of push_display_prop (Bug#5000).
5053
022eef62
CY
5054 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5055 value of font_list_entities (Bug#5085).
5056
be95bee9
JB
50572009-12-04 Juanma Barranquero <lekktu@gmail.com>
5058
5059 Fix `string-to-number' to deal consistently with integers and floats.
5060 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5061 trailing characters, not just whitespace.
5062 (read1): Pass new arg 0 to keep old behavior.
5063 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5064 trailing chars, as it is already done for integers. Doc fixes.
5065 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5066
24c2d7ce
EZ
50672009-12-04 Eli Zaretskii <eliz@gnu.org>
5068
0b5397c2
SM
5069 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5070 Delete unused enumeration value.
24c2d7ce 5071
7e694795
EZ
50722009-12-03 Eli Zaretskii <eliz@gnu.org>
5073
5074 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5075
84b31826
SM
50762009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5077
5078 * process.c (Fmake_network_process): Fix up the tests for
5079 "connectionless socket", so they DTRT for seqpacket sockets as well.
5080
f00c449b
SM
50812009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5082
5083 * process.c (Qseqpacket): New symbol.
5084 (HAVE_SEQPACKET): New macro.
5085 (Fmake_network_process): Accept new :type `seqpacket'.
5086 (init_process): Add `seqpacket' feature when applicable.
5087 (syms_of_process): Initialize Qseqpacket.
5088
8096a0ff
YM
50892009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5090
5091 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5092 if entity is Qnil.
5093
3e0de07f
SM
50942009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5095
5096 * print.c (print_preprocess): Preprocess the key_and_value table of
5097 hashtables, even tho they're "hidden" (bug#5082).
5098
abeafb2a
JD
50992009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5100
5101 * frame.c (frame_make_pointer_invisible)
5102 (frame_make_pointer_visible): Declare f before statements.
5103
4bf47195
EZ
51042009-11-28 Eli Zaretskii <eliz@gnu.org>
5105
5106 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5107 omitted dependencies on lisp.h.
5108
c525b3f2
JD
51092009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5110
ece2d4ed
JD
5111 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5112 is NULL.
5113
5114 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5115
5116 * frame.c (frame_make_pointer_invisible)
3e0de07f 5117 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5118 frame.
5119
c525b3f2
JD
5120 * search.c (simple_search): Remove warning by making *p const.
5121
2f00e299
DN
51222009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5123
5124 * xdisp.c (power_letter): Remove duplicate const.
5125
084b049b
JD
51262009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5127
a1fadc6f
JD
5128 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5129
5ce6e4f4 5130 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5131 defaults (bug #5025).
5132
28259cac
SM
51332009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5134
5135 * insdel.c (adjust_markers_for_delete): Move it in the
5136 right direction! (bug#4803)
5137
e8e14166
YM
51382009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5139
5140 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5141
5142 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5143
86677b58
GM
51442009-11-24 Glenn Morris <rgm@gnu.org>
5145
5146 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5147
581e51e8
JD
51482009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5149
cfc86c7a
JD
5150 * Makefile.in: Must create deps for ecrt0.o in its rule.
5151
581e51e8
JD
5152 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5153 because that is what Gtk+ font dialog understands.
5154
5155 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5156 of Fcopy_sequence.
5157 (font_open_by_name): Put name given into QCname for font-object returned.
5158
5159 * frame.c (x_set_font): Save original font name as frame parameter
5160 font-parameter.
5161
5162 * xsettings.c (set_default_xft_settings): New function.
5163 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5164 is found.
5165
8b264ecb
AS
51662009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5167
5168 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5169 searching backwards through multibyte buffer.
5170
872870b2
JD
51712009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5172
5173 * xterm.c: #include xgselect.h.
5174 (x_initialize): Call xgselect_initialize.
5175
5176 * xsettings.c (something_changedCB): C++ comments => C comments.
5177 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5178 does that now.
5179
5180 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5181 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5182 (scroll_bar_button_cb): Remove.
5ce6e4f4 5183 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5184 event.
5185 (xg_create_scroll_bar): Don't bind button-press-event and
5186 button-release-event.
5187
5188 * process.c: Include xgselect.h if defined (USE_GTK) ||
5189 defined (HAVE_GCONF).
5190 (wait_reading_process_output): Call xg_select for the same condition.
5191
5192 * xgselect.c (xg_select): New function to better integrate with
5193 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5194
5195 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5196
5197 * Makefile.in (XOBJ): Add xgselect.o.
5198
62a6e103
AS
51992009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5200
0b5397c2
SM
5201 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5202 Remove ignored second argument. All callers changed.
62a6e103
AS
5203 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5204 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5205 * xdisp.c (string_char_and_length): Likewise.
5206
b0ca0f33
DN
52072009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5208
5209 * xterm.c (x_new_font):
5210 * print.c (print_object):
5211 * cmds.c (Fself_insert_command): Move declarations before statements.
5212
dd5a6279
CY
52132009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5214
5215 * s/cygwin.h: Remove unneeded linker flags.
5216
4a8e097d
JD
52172009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5218
0d1d0d26
JD
5219 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5220
5221 * xsettings.h: Declare xsettings_get_system_font.
5222
5223 * xsettings.c (xsettings_get_system_font): New function.
5224 (init_gconf): No use initiating gconf unless we have Xft also.
5225 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5226 HAVE_GCONF.
5227
4a8e097d
JD
5228 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5229 add a blank entry so it doesn't collapse into nothing.
5230
8ab1650e
SM
52312009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5232
5233 * lread.c (Funintern): Comment out last change.
5234
82c602f0
RS
52352009-11-19 Richard Stallman <rms@gnu.org>
5236
5237 * lread.c (Funintern): Error if symbol is t or nil.
5238
87e32266
SM
52392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5240
5241 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5242 representation of Lisp integers.
5243 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5244
1b9ac145
AS
52452009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5246
5247 * lisp.h: Remove declaration of Ffont_get_system_font.
5248 * xfns.c: Move include of "xsettings.h".
5249 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5250
dfb3c4c6
JD
52512009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5252
87e32266
SM
5253 * xsettings.c (something_changedCB, Ffont_get_system_font):
5254 Check use_system_font.
dfb3c4c6
JD
5255 (syms_of_xsettings): DEFVAR font-use-system-font.
5256
9370c1d8
AS
52572009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5258
25fe851a
AS
5259 * xfns.c (x_default_font_parameter): Remove dead assignment.
5260
9370c1d8
AS
5261 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5262
637fa988
JD
52632009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5264
87e32266 5265 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5266 not have FC_LCD_*. #define them if not there.
a6eb20d8 5267
87e32266 5268 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5269
637fa988
JD
5270 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5271
5272 * xterm.c (handle_one_xevent): Call xft_settings_event for
5273 ClientMessage, PropertyNotify and DestroyNotify.
5274 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5275 Call xsettings_initialize.
5276
5277 * xftfont.c (xftfont_fix_match): New function.
5278 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5279 Call xftfont_fix_match after XftFontMatch.
5280
5281 * xfont.c (xfont_driver): Initialize all members.
5282
87e32266
SM
5283 * xfns.c (x_default_font_parameter):
5284 Try font from Ffont_get_system_font.
637fa988
JD
5285 Do not get font from x_default_parameter if we got one from
5286 Ffont_get_system_font.
87e32266 5287 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5288
5289 * w32font.c (w32font_driver): Initialize all members.
5290
5291 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5292
5293 * lisp.h: Declare syms_of_xsettings.
5294
87e32266
SM
5295 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5296 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5297
5298 * ftfont.c (ftfont_filter_properties): New function.
5299
5300 * frame.c (x_set_font): Remove unused variable lval.
5301
87e32266 5302 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5303
5304 * font.c (font_put_extra): Don't return if val is nil, it means
5305 boolean option is off.
5306 (font_parse_fcname): Collect all extra properties in extra_props
5307 and call filter_properties for all drivers with extra_props and
5308 font as parameter.
87e32266
SM
5309 (font_open_entity): Do not use cache, it does not pick up new
5310 fontconfig settings like hinting.
637fa988
JD
5311 (font_load_for_lface): If spec had a name in it, store it in entity.
5312
a73f9c9d 5313 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5314
5315 * config.in: HAVE_GCONF is new.
5316
5317 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5318 xsettings.o is new.
5319
5a942932
KH
53202009-11-17 Kenichi Handa <handa@m17n.org>
5321
5322 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5323 back to the default font in case that no suitable font is found.
5324
b7c7a4d1
SM
53252009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5326
5327 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5328 Suggested by Chad Brown <yandros@mit.edu>.
5329 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5330
072f1e39
JD
53312009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5332
5333 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5334
5d1e70a2
AS
53352009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5336
87e32266 5337 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5338
a53cfbe5
JD
53392009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5340
473a99b7
JD
5341 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5342 has a parent.
5343
a53cfbe5 5344 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5345 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5346
5347 * config.in: Generated (AUTO_DEPEND).
5348
f04bb9b2
MA
53492009-11-13 Michael Albinus <michael.albinus@gmx.de>
5350
b7c7a4d1 5351 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5352 Vdbus_registered_functions_table, because it contains also
5353 properties. Fix docstring.
b7c7a4d1 5354 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5355
8f11f7ec
SM
53562009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5357
5358 * alloc.c (mark_object): Don't reprocess marked strings.
5359 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5360 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5361
8a605fe8
KH
53622009-11-13 Kenichi Handa <handa@m17n.org>
5363
8f11f7ec 5364 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5365 semantics of Vword_combining_categories.
5366 (Vword_combining_categories): Describe the slight change of the
5367 semantics.
5368
241c4680
EZ
53692009-11-13 Eli Zaretskii <eliz@gnu.org>
5370
5371 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5372
5373 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5374
5d58e44c
SM
53752009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5376
5377 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5378
5e13f9d3
JB
53792009-11-12 Juanma Barranquero <lekktu@gmail.com>
5380
5381 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5382
cf54c754
DR
53832009-11-11 David Reitter <david.reitter@gmail.com>
5384
5385 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5386 variables to fix 2009-11-09 change.
5387
a4ada374
DN
53882009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5389
91433552
DN
5390 * process.c (ifflag_def): Make flag_sym constant.
5391 (Fnetwork_interface_info): Use a constant pointer.
5392 (ifflag_table):
5393 * xfns.c (cursor_bits):
5394 * xdisp.c (power_letter):
5395 * termcap.c (speeds, esctab):
5396 * sysdep.c (baud_convert):
5397 * keyboard.c (lispy_accent_codes, modifier_names):
5398 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5399 (jpeg_format, tiff_format, gif_format, svg_format)
5400 (interlace_start, interlace_increment, gs_format):
5401 * gtkutil.c (separator_names):
5402 * fringe.c (swap_nibble):
5403 * fns.c (base64_value_to_char, base64_char_to_value):
5404 * fileio.c (make_temp_name_tbl):
5405 * coding.c (suffixes): Make constant.
5406
f4265f6c
DN
5407 * frame.c (make_initial_frame):
5408 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5409 build_string.
5410 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5411
04420943
DN
5412 * s/freebsd.h:
5413 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5414
0a5d24ae
DN
5415 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5416 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5417
a4ada374
DN
5418 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5419 * xterm.c (syms_of_xterm):
5420 * xfaces.c (syms_of_xfaces):
5421 * xdisp.c (syms_of_xdisp):
5422 * lread.c (syms_of_lread):
5423 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5424 build_string.
91433552 5425
a4ada374
DN
5426 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5427
af98fc7f
SM
54282009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5429
8ab1650e 5430 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5431
e90292a9
JD
54322009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5433
5434 * keyboard.h: Declare timer_check.
5435
5436 * keyboard.c (timer_check_2): New function that does what the old
5437 timer_check did.
5438 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5439 returned, i.e. don't return -1 with timers pending.
5440
5441 * process.c: Remove extern declaration of timer_check.
5442
5443 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5444 even if timer_check returned -1.
5445
af98fc7f
SM
5446 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5447 xg_dialog_data.
e90292a9
JD
5448 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5449 the event loop.
5450 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5451 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5452 Destroy the dialog after xg_dialog_run.
5453
045b83c0
SM
54542009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5455
5456 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5457
1fb99a3a
JD
54582009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5459
5460 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5461
04e452cb
JB
54622009-11-09 Juanma Barranquero <lekktu@gmail.com>
5463
5464 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5465
ef7417fd
SM
54662009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5467
5468 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5469 w32menu.c, and nsmenu.m.
5470 Simplify the obsolete case where position is nil.
5471 (cleanup_popup_menu): New function, moved from nsmenu.m.
5472 (struct skp): Remove slot `notreal'.
5473 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5474 adjust callers.
5475 (single_menu_item): Adjust call to parse_menu_item.
5476 (syms_of_menu): Defsubr x-popup-menu.
5477 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5478 (keymap_panes): Don't export any more.
5479 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5480 (xmenu_show): Declare.
5481 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5482 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5483 * keyboard.h (parse_menu_item): Update declaration.
5484 * xmenu.c (Fx_popup_menu): Remove.
5485 (syms_of_xmenu): Don't defsubr x-popup-menu.
5486 * w32menu.c (Fx_popup_menu): Remove.
5487 (syms_of_w32menu): Don't defsubr x-popup-menu.
5488 * nsmenu.m (cleanup_popup_menu): Remove.
5489 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5490 moved to menu.c's Fx_popup_menu.
5491 (Fx_popup_menu): Remove.
5492 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5493 menu_items (it's done in menu.c already).
5494
424d6179
SM
54952009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5496
5497 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5498 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5499
c0df13a6 55002009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5501
5502 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5503 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5504 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5505 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5506
2de9f71c
SM
55072009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5508
5509 Let integers use up 2 tags to give them one extra bit and thus double
5510 their range.
5511 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5512 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5513 New macros.
5514 (enum Lisp_Type): Use them. Give explicit values.
5515 (Lisp_Type_Limit): Remove.
5516 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5517 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5518 Pay attention to USE_2_TAGS_FOR_INTS.
5519 (INTEGERP): Use LISP_INT_TAG_P.
5520 * fns.c (internal_equal): Simplify the default case.
5521 (sxhash): Use case_Lisp_Int.
5522 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5523 any more.
5524 (Ftype_of): Use case_Lisp_Int.
5525 (store_symval_forwarding): Take into account the fact that Ints can
5526 now have more than one tag.
5527 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5528 buffer_slot_type_mismatch):
5529 * xfaces.c (face_attr_equal_p):
5530 * print.c (print_object):
5531 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5532 Use case_Lisp_Int.
5533
323637a2
EZ
55342009-11-06 Eli Zaretskii <eliz@gnu.org>
5535
7ac65b38
EZ
5536 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5537
323637a2
EZ
5538 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5539 warning.
5540
e511451f
JD
55412009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5542
5543 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5544
5545 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5546
5547 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5548 ButtonPressRelease and MotionNotify (bug#4870).
5549
5e2327cf
DN
55502009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5551
5adc433e
DN
5552 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5553
d67b4f80
DN
5554 * xterm.c (syms_of_xterm):
5555 * xselect.c (syms_of_xselect):
5556 * xmenu.c (syms_of_xmenu):
5557 * xfns.c (syms_of_xfns):
5558 * xfaces.c (syms_of_xfaces):
5559 * xdisp.c (syms_of_xdisp):
5560 * window.c (syms_of_window):
5561 * w32fns.c (syms_of_w32fns):
5562 * undo.c (syms_of_undo):
5563 * textprop.c (syms_of_textprop):
5564 * terminal.c (syms_of_terminal):
5565 * syntax.c (syms_of_syntax):
5566 * sound.c (syms_of_sound):
5567 * search.c (syms_of_search):
5568 * print.c (syms_of_print):
5569 * minibuf.c (syms_of_minibuf):
5570 * macros.c (syms_of_macros):
5571 * keymap.c (syms_of_keymap, initial_define_key)
5572 (initial_define_lispy_key):
5573 * keyboard.c (syms_of_keyboard):
5574 * insdel.c (syms_of_insdel):
5575 * image.c (syms_of_image):
5576 * fringe.c (syms_of_fringe):
5577 * frame.c (syms_of_frame):
5578 * fontset.c (syms_of_fontset):
5579 * fns.c (syms_of_fns):
5580 * fns.c (syms_of_fns):
5581 * fileio.c (syms_of_fileio):
5582 * fileio.c (syms_of_fileio):
5583 * eval.c (syms_of_eval):
5584 * doc.c (syms_of_doc):
5585 * dispnew.c (syms_of_display):
5586 * dired.c (syms_of_dired):
5587 * dbusbind.c (syms_of_dbusbind):
5588 * data.c (syms_of_data):
5589 * composite.c (syms_of_composite):
5590 * coding.c (syms_of_coding):
5591 * cmds.c (syms_of_cmds):
5592 * charset.c (define_charset_internal, syms_of_character):
5593 * ccl.c (syms_of_ccl):
5594 * category.c (syms_of_category, init_category_once):
5595 * casetab.c (syms_of_casetab):
5596 * casefiddle.c (syms_of_casefiddle):
5597 * callint.c (syms_of_callint):
5598 * bytecode.c (syms_of_bytecode):
5599 * buffer.c (keys_of_buffer, syms_of_buffer):
5600 * alloc.c (syms_of_alloc):
5601 * process.c (syms_of_process, init_process):
5602 * lread.c (syms_of_lread, init_obarray):
5603 * font.c (build_style_table):
5604 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5605 intern_c_string, calls to make_pure_string with
5606 make_pure_c_string. Use pure_cons instead of Fcons.
5607
5e2327cf
DN
5608 * process.c (socket_options): Make it const.
5609 (set_socket_option, init_process): Use a const pointer.
5610
5611 * lread.c (intern_c_string): New function.
5612 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5613 (defvar_int): Uset it. Make the name const char*.
5614
5615 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5616 (defvar_int): Update prototypes.
5617 (DEFUN, EXFUN): Support for prototypes is now required.
5618 (intern_c_string): New prototype.
5619 (struct Lisp_Subr): Make symbol_name constant.
5620
5621 * font.c (struct table_entry): Remove unused member. Make NAMES
5622 constant.
5623 (weight_table, slant_table, width_table): Make constant.
5624
5625 * emacs.c (struct standard_args): Make name and longname constant.
5626
5627 * character.h (DEFSYM): Use intern_c_string.
5628
a56eaaef
DN
56292009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5630
5631 * alloc.c (make_pure_c_string): New function.
5632
5633 * eval.c (Fautoload): Purecopy all arguments.
5634
f6a07420
KH
56352009-11-05 Kenichi Handa <handa@m17n.org>
5636
5637 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5638 the buffer in case of replace.
5639
5d28d4b1
DN
56402009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5641
5642 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5643
b349d111
SM
56442009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5645
d528b1ce
SM
5646 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5647 when applicable (bug#4851).
5648
b349d111
SM
5649 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5650 (P_): Support for prototypes is now required.
5651
c38eb027
CY
56522009-10-31 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5655 (Bug#4827).
5656
0405f8d9
EZ
56572009-10-30 Eli Zaretskii <eliz@gnu.org>
5658
d528b1ce 5659 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5660
ca0a881a
DN
56612009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5662
5663 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5664
d528b1ce
SM
5665 * lread.c (Fload): Purecopy the file name when building
5666 Vpreloaded_file_list.
ca0a881a 5667
47e0e0e4
JR
56682009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5669
5670 * w32fns.c (syms_of_w32fns): Change default value of
5671 w32-scroll-lock-modifier to nil. (Bug#2827)
5672
057bce6f
JB
56732009-10-26 Juanma Barranquero <lekktu@gmail.com>
5674
782a943e 5675 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5676
242bc74c
AS
56772009-10-26 Andreas Schwab <schwab@redhat.com>
5678
5679 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5680
522d013a
JB
56812009-10-26 Juanma Barranquero <lekktu@gmail.com>
5682
5683 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5684 For delta < 0, skip check that only makes sense when the mini-window
5685 is going to be enlarged. (Bug#4534)
5686
18060980
CY
56872009-10-25 Chong Yidong <cyd@stupidchicken.com>
5688
5689 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5690 string in menu maps (Bug#4471).
5691
fec8f0fe
CY
56922009-10-24 Chong Yidong <cyd@stupidchicken.com>
5693
5694 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5695 FRAME_NS_VIEW on terminal frames (Bug#4765).
5696
10d66ec0
AS
56972009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5698
1cae01f7
AS
5699 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5700 DBUS_TYPE_UINTnn separately to get proper sign extension.
5701
58a12889
AS
5702 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5703 can properly handle unsigned types.
d528b1ce 5704 (make_uid, make_gid): Remove.
58a12889 5705
987c9327
AS
5706 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5707 types again.
5708
522d013a 5709 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5710 (system_process_attributes): Likewise.
5711
905a9ed3
DN
57122009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5713
5714 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5715
5716 * eval.c (Fautoload): Purecopy the filename. Simplify.
5717
5718 * category.c (Fdefine_category): Purecopy docstring.
5719
a599b3e8
AS
57202009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5721
7b792fc9
AS
5722 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5723
a599b3e8
AS
5724 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5725
b35ac83e
CY
57262009-10-23 Chong Yidong <cyd@stupidchicken.com>
5727
5728 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5729 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5730 (Bug#4775).
5731
e8903e00
SM
57322009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5733
5734 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5735 (init_fileio_once):
5736 * lisp.h (init_fileio_once): Remove.
5737 * emacs.c (main): Don't call init_fileio_once.
5738
8f43cbf3
DN
57392009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5740
5741 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5742
26898943
AS
57432009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5744
5745 * doprnt.c (doprnt): Fix overflow check.
5746
5c646d5a
JD
57472009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5748
3132a7ea
JD
5749 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5750
5c646d5a
JD
5751 * xterm.h (x_wait_for_event): Declare it.
5752
5753 * xterm.c (pending_event_wait): New variable.
5754 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5755 see pending_event_wait.eventtype.
5756 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5757 (x_new_font): Call change_frame_size with new rows/columns before we
5758 try to resize the frame.
5c646d5a 5759 (x_wait_for_event): New function.
d528b1ce
SM
5760 (x_set_window_size_1): Don't change gravity unless change_gravity
5761 is set.
5c646d5a
JD
5762 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5763 don't change frame size, instead wait for the ConfigureNotify.
5764 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5765 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5766 (x_initialize): Initialize pending_event_wait.
5767
5768 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5769 size.
5770
5771 * widget.c (EmacsFrameSetValues): Add comment.
5772 (EmacsFrameSetCharSize): Just call x_set_window_size.
5773
5774 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5775 x_wait_for_event.
d528b1ce 5776 (flush_and_sync): Remove again.
5c646d5a
JD
5777 (xg_get_font_name): Suggest monospace if no previous font is known.
5778
e9c1637d
SM
57792009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5780
5781 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5782 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5783
5a72cccb
YM
57842009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5785
5786 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5787 processing pending events when event is filtered for input method.
ab04798f 5788 (Bug#3681)
5a72cccb 5789
2629aa37
JB
57902009-10-20 Juanma Barranquero <lekktu@gmail.com>
5791
5792 * fns.c: Add #endif accidentally removed in previous change.
5793
c3417a74
DN
57942009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5795
5796 * fns.c: Remove code for unsupported system: MAC_OS.
5797 * image.c: Likewise. Include setjmp.h.
5798
9685cef2
JD
57992009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5800
5801 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5802 pixel -1 (bug #4742).
5803
d7306fe6
DN
58042009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5805
019d2c4c
DN
5806 * process.c (create_pty): Remove conditionals for no longer
5807 supported systems: UNIPLUS and RTU.
5808
ee6bacd4
DN
5809 * xterm.c:
5810 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5811
d7306fe6
DN
5812 * alloc.c: Do not define struct catchtag.
5813 * eval.c: Move struct catchtag definition ...
5814 * lisp.h: ... here.
5815
5816 * image.c: Move png.h #include earlier to avoid warnings.
5817
5818 * xterm.c:
5819 * xsmfns.c:
5820 * xselect.c:
5821 * xrdb.c:
5822 * xmenu.c:
5823 * xftfont.c:
5824 * xfont.c:
5825 * xfns.c:
5826 * xfaces.c:
5827 * xdisp.c:
5828 * window.c:
5829 * widget.c:
5830 * w32xfns.c:
5831 * w32uniscribe.c:
5832 * w32term.c:
5833 * w32select.c:
5834 * w32reg.c:
5835 * w32proc.c:
5836 * w32menu.c:
5837 * w32inevt.c:
5838 * w32heap.c:
5839 * w32font.c:
5840 * w32fns.c:
5841 * w32console.c:
5842 * w32.c:
5843 * w16select.c:
5844 * vm-limit.c:
5845 * unexsol.c:
5846 * unexec.c:
5847 * unexcw.c:
5848 * unexaix.c:
5849 * undo.c:
5850 * tparam.c:
5851 * textprop.c:
5852 * terminfo.c:
5853 * terminal.c:
5854 * termcap.c:
5855 * term.c:
5856 * syntax.c:
5857 * sound.c:
5858 * sheap.c:
5859 * search.c:
5860 * scroll.c:
5861 * region-cache.c:
5862 * regex.c:
5863 * ralloc.c:
5864 * process.c:
5865 * print.c:
b024548b
DN
5866 * nsterm.m:
5867 * nsselect.m:
5868 * nsmenu.m:
5869 * nsimage.m:
5870 * nsfont.m:
5871 * nsfns.m:
d7306fe6
DN
5872 * msdos.c:
5873 * minibuf.c:
5874 * menu.c:
5875 * marker.c:
5876 * macros.c:
5877 * keymap.c:
5878 * keyboard.c:
5879 * intervals.c:
5880 * insdel.c:
5881 * indent.c:
5882 * gtkutil.c:
5883 * ftxfont.c:
5884 * ftfont.c:
5885 * fringe.c:
5886 * frame.c:
5887 * fontset.c:
5888 * font.c:
5889 * fns.c:
5890 * floatfns.c:
5891 * filelock.c:
5892 * fileio.c:
5893 * emacs.c:
5894 * editfns.c:
5895 * dosfns.c:
5896 * doprnt.c:
5897 * doc.c:
5898 * dispnew.c:
5899 * dired.c:
5900 * dbusbind.c:
5901 * data.c:
5902 * composite.c:
5903 * coding.c:
5904 * cmds.c:
5905 * cm.c:
5906 * chartab.c:
5907 * charset.c:
5908 * character.c:
5909 * ccl.c:
5910 * category.c:
5911 * casetab.c:
5912 * casefiddle.c:
5913 * callproc.c:
5914 * callint.c:
5915 * bytecode.c:
5916 * buffer.c:
5917 * atimer.c: Include setjmp.h. (Bug#4643)
5918
fd5f21e6
SM
59192009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5920
4c0354d7
SM
5921 Remove leftover table unibyte_to_multibyte_table.
5922 * character.c (unibyte_to_multibyte_table): Remove.
5923 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5924 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5925 * character.h (UNIBYTE_TO_CHAR): New macro.
5926 (MAKE_CHAR_MULTIBYTE): Use it.
5927 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5928 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5929 (message_dolog, set_message_1):
5930 * search.c (Freplace_match):
5931 * editfns.c (Fcompare_buffer_substrings):
5932 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5933 (concat):
5934 * insdel.c (copy_text, count_size_as_multibyte):
5935 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5936 * term.c (produce_glyphs):
5937 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5938 * regex.c (RE_CHAR_TO_MULTIBYTE):
5939 * cmds.c (internal_self_insert):
5940 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5941
fd5f21e6
SM
5942 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5943
4418646e
DN
59442009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5945
5946 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5947
35f5c1d2
JB
59482009-10-16 Juanma Barranquero <lekktu@gmail.com>
5949
5950 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5951
a0cd8f6b
AR
59522009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5953
5954 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5955 still needed under Tiger.
5956
5957 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5958
5959 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5960 __Apple__.
5961
5962 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5963
01a8d3fa
KH
59642009-10-15 Kenichi Handa <handa@m17n.org>
5965
5966 * print.c (print_object): Escape a symbol like "2E10" too.
5967
bf6c75c9 59682009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5969
5970 Cleanups and changes for 64-bit compile under Snow Leopard.
5971 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5972
5973 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5974
c5959062 5975 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5976 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5977 cast argument.
5978 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5979 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5980
5981 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5982
5983 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5984 where appropriate.
5985
5986 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5987 where appropriate.
6e4780c5
JB
5988 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5989 Use stringWithUTF8String.
bf6c75c9
AR
5990 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5991
6e4780c5
JB
5992 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5993 Add formal protocol mention to inheritance.
bf6c75c9
AR
5994 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5995
6e4780c5
JB
5996 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5997 Fix printf format.
bf6c75c9
AR
5998 (ns_query_color): Use CGFloat where appropriate.
5999 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6000 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6001 argument.
6002
3d87f118
AR
6003 * config.in (NS_HAVE_NSINTEGER): Drop.
6004
a95c8102
AR
6005 * dbusbind.c (dbus-method-return-internal)
6006 (dbus-method-error-internal): Use long format in printf, and cast
6007 argument.
6008
6009 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6010 in printf, and cast argument.
6011
6873acca 6012 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6013 cast argument.
6014
9ec6f100
GM
60152009-10-11 Glenn Morris <rgm@gnu.org>
6016
6017 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6018
5be883cd
JD
60192009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6020
6021 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6022 menu bar with a small width so it doesn't enlarge the frame.
6023
d7a39b51
JB
60242009-10-08 Juanma Barranquero <lekktu@gmail.com>
6025
6026 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6027
0c2b6f8e
GM
60282009-10-06 Glenn Morris <rgm@gnu.org>
6029
6030 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6031 SOME_MACHINE_LISP (this enters indirectly via DOC).
6032
e02131a2
EZ
60332009-10-05 Eli Zaretskii <eliz@gnu.org>
6034
6035 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6036
b4744254
EZ
60372009-10-04 Eli Zaretskii <eliz@gnu.org>
6038
6039 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6040 Doc fix.
6041
dbf64827
JB
60422009-10-03 Martin Rudalics <rudalics@gmx.at>
6043
6044 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6045
e9a0aef8
MA
60462009-10-02 Michael Albinus <michael.albinus@gmx.de>
6047
d528b1ce 6048 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6049 used anymore outside fileio.c.
6050
6051 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6052
64eb2b56
JB
60532009-10-01 Juanma Barranquero <lekktu@gmail.com>
6054
6055 * lisp.h (Qdelete_directory_internal):
6056 Declare, instead of Qdelete_directory.
6057
6058 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6059
9d28c33e
SM
60602009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6061
6062 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6063
9d8f3bd9
MA
60642009-10-01 Michael Albinus <michael.albinus@gmx.de>
6065
9d28c33e 6066 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6067 Fdelete_directory. It is not a command anymore. It has no file
6068 name handler.
6069
9694740b
SM
60702009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6071
6072 * xdisp.c (get_next_display_element): Use an enum in last change.
6073
748e162f
KH
60742009-09-28 Kenichi Handa <handa@m17n.org>
6075
9694740b 6076 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6077 unibyte_display_via_language_environment in handling
6078 Vnobreak_char_display.
6079
17efd58d
AR
60802009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6081
6082 * nsterm.h (ns_app_name): New extern variable.
6083
6084 * nsterm.m (ns_app_name): New variable.
6085 (ns_term_init): Set and use it.
6086 (ns_term_shutdown): Use it.
6087
6088 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6089 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6090
6091 * nsfns.m (ns_set_name_iconic, ns_set_name)
6092 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6093 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6094
9694740b
SM
6095 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6096 Remove double-casting in client_data comparison.
31c2d412 6097
3208cb35
YM
60982009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6099
6100 * keyboard.c (make_lispy_event): Remember last wheel direction.
6101 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6102
b7d552d6
GM
61032009-09-26 Glenn Morris <rgm@gnu.org>
6104
6105 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6106 internal.elc. Add term/pc-win.elc.
6107 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6108 term/x-win.elc.
6109 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6110 term/w32-win.elc.
6111 (NS_SUPPORT): New.
6112 (lisp): Add NS_SUPPORT.
6113 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6114
4ff670a8
DR
61152009-09-25 David Reitter <david.reitter@gmail.com>
6116
6117 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6118 on Mac OS X 10.6+ (bug#4513).
6119
feabfb6c
JB
61202009-09-24 Juanma Barranquero <lekktu@gmail.com>
6121
6122 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6123 some parts of Emacs code (like font selection) don't grok them.
6124 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6125
de59072a
AS
61262009-09-24 Andreas Schwab <schwab@redhat.com>
6127
6128 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6129
a489517b
JB
61302009-09-24 Juanma Barranquero <lekktu@gmail.com>
6131
6132 * dired.c (Fdirectory_files): Fix typo in docstring.
6133
0592970c
AR
61342009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6135
6136 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6137 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6138 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6139 under GNUstep.
6140 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6141
6142 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6143 glyph advancement.
6144
48e8a88b
AR
61452009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6146
6147 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6148 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6149
6150 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6151 deleted (bug #4492).
6152
e14f0a78
AR
6153 * nsfont.m (Vns_reg_to_script): New lisp variable.
6154 (syms_of_nsfont): Declare it.
6155 (ns_registry_to_script): New function.
6156 (ns_get_req_script): Call it.
6157 (ns_findfonts): Don't give up on non-unicode registry.
6158
6159 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6160
5b650faa
SM
61612009-09-20 Tom Tromey <tromey@redhat.com>
6162
6163 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6164 batch mode (bug#4228).
6165
a489517b 61662009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6167
6168 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6169 carefully. (Bug #4339)
0bae4e09 6170
fcfe06f3
CY
61712009-09-18 Chong Yidong <cyd@stupidchicken.com>
6172
d798ba87 6173 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6174
31642728
AR
61752009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6176
6177 * emacs.c (inhibit_x_resources): Update doc string for NS.
6178 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6179 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6180
6181 * nsterm.h (ns_no_defaults): Remove.
6182
6183 * nsterm.m (ns_no_defaults): Remove.
6184 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6185 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6186 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6187 don't update the NSWindow itself.
6188 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6189 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6190
6191 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6192 ns_use_qd_smoothing.
6193
6194 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6195 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6196 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6197 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6198
8686ac71
JB
61992009-09-17 Juanma Barranquero <lekktu@gmail.com>
6200
6201 * emacs.c (inhibit_x_resources): New variable.
6202 (main) [HAVE_NS]: Don't process --quick command line option.
6203 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6204
6205 * lisp.h (inhibit_x_resources): Declare it extern.
6206
6207 * w32reg.c (x_get_string_resource):
6208 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6209
e227ba05
EZ
62102009-09-17 Eli Zaretskii <eliz@gnu.org>
6211
362654a6
JB
6212 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6213 Add lisp/term/internal.elc.
e227ba05 6214
742d40e8
SM
62152009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6218 (bug#4461).
6219
005bd5a2
DN
62202009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6221
6222 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6223
6224 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6225 (OBJECTS_MACHINE): Remove, unused.
6226
f9af9719
SM
62272009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6228
6229 * frame.c (x_get_resource_string): Remove unused.
6230
0307c7d2
JD
62312009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6232
6233 * xterm.c (x_new_font): Call change_frame_size before calling
6234 x_set_window_size, in case frame size won't change.
6235
6236 * frame.c (x_set_font): Remove dead code.
6237
428b13d6
SM
62382009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6239
6240 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6241
5766c380
SM
62422009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6243
6244 * lread.c (Fload): Don't output a message after loading an obsolete
6245 package any more (done in Lisp now).
6246
2fd0161b
CY
62472009-09-12 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6250
bc5e75b6
SM
62512009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6252
6253 * keymap.c (Fwhere_is_internal): Use nconc2.
6254
c31c985e
AM
62552009-09-11 Alan Mackenzie <acm@muc.de>
6256
6257 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6258 batch mode.
6259
78012bd2
AS
62602009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6261
6262 * xdisp.c (display_mode_element): Detect cycles.
6263
9d889332
SM
62642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6265
6266 * keymap.c (where_is_internal): Don't erroneously return nil right after
6267 filling the cache.
6268 (where_is_internal_1): Fix up typo.
6269
7ab5d780
GM
62702009-09-11 Glenn Morris <rgm@gnu.org>
6271
6272 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6273 share a common doc-string.
6274
5238a749
SM
62752009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6276
66d77eda
SM
6277 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6278 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6279
5238a749
SM
6280 * keymap.c (QCadvertised_binding): New constant.
6281 (syms_of_keymap): Initialize it.
6282 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6283 if applicable.
6284
19f48442
SM
62852009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6286
50d4ba39
SM
6287 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6288 (parse_menu_item): Streamline since bindings are recomputed all the
6289 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6290 more and don't support lmenu's menu-alias any more either.
6291
a88a5372
SM
6292 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6293 (where_is_internal): Strip it down to only traverse the keymaps.
6294 Move the cache handling from Fwhere_is_internal to here.
6295 (Fwhere_is_internal): Move the handling of remapping and the choice of
6296 the best binding from where_is_internal to here.
6297 Unify the cached/noncached paths, so remapping is also handled
6298 correctly when the cache is used, and so the cache can be used to
6299 speed up remap-handling when applicable.
6300 Give preference to non-remapped bindings.
6301 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6302 non-remapped bindings.
6303 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6304 command remapping.
6305
19f48442
SM
6306 * xdisp.c (display_mode_element): Move list length limit from 50 to
6307 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6308
599498c3 63092009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6310
6311 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6312
f9b7b5ac
SM
63132009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6314
a53af587
JB
6315 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6316 (Bug#4334)
6317
f9b7b5ac
SM
6318 * keymap.c (where_is_internal): Filter out shadowed remappings.
6319 Assume that where_is_internal returns unshadowed bindings to simplify
6320 the code and get rid of the gotos. Use ASIZE.
6321
04f4b72d
JD
63222009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6323
4da146f2
JD
6324 * xterm.c (x_focus_changed): If we get a focusout and pointer
6325 is invisible, make it visible.
6326
04f4b72d
JD
6327 * xterm.h: Remove condition for declaration of
6328 x_*_window_to_frame.
6329
7cef7ce3
SM
63302009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6331
6332 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6333 initial terminal as well.
6334
a54fa5b7
JD
63352009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6336
6337 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6338 x_menubar_window_to_frame.
a54fa5b7 6339
50426a04 6340 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6341 (XTmouse_position): Do not return valid positions
6342 for clicks in the menubar and the toolbar for Gtk+.
6343
6344 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6345 if the widget for the event has the same top level as a frame,
6346 return the frame.
6347 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6348 internal windows, bug #4122.
6349 (x_non_menubar_window_to_frame): Remove.
6350
5a021dd0
GM
63512009-09-02 Glenn Morris <rgm@gnu.org>
6352
6353 * buffer.c (default-major-mode): Move most of the doc from here...
6354 (major-mode): ... to here.
6355
548fe2f3
NR
63562009-08-30 Nick Roberts <nickrob@snap.net.nz>
6357
6358 * process.c (wait_reading_process_output): Keep the descriptor
6359 when pty is used by a non-child process, e.g., in I/O buffer of
6360 GDB this allows inferior to be restarted.
6361
e0840eef
EZ
63622009-08-29 Eli Zaretskii <eliz@gnu.org>
6363
6364 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6365 both branches into one.
6366
82e98df4
SM
63672009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6368
6369 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6370 (main): Use enable-multibyte-characters rather than
6371 default-enable-multibyte-characters. Output a warning message when
6372 running a unibyte session.
6373
890617cb
YM
63742009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6375
6376 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6377 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6378 (copy_data_segment): Also copy __program_vars section.
6379 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6380 (dump_it) [LC_DYLD_INFO]: Use it.
6381
6382 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6383
e7adeadc
EZ
63842009-08-28 Eli Zaretskii <eliz@gnu.org>
6385
6386 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6387 $(SRC)/buildobj.h.
6388 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6389 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6390 $(SRC)/buildobj.h.
6391 (clean): Add buildobj.h.
6392
3ed8bbdc
TZ
63932009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6394
6395 * print.c (print_object): Set escapeflag to 1 when printing
6396 hashtable keys and values.
6397
155a6764
SM
63982009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6399
6400 * lread.c (read_integer): Use doubles (and potentially return a float
6401 number) as we do in string-to-number.
6402 (read1): Use strtol to read integers, signal errors on strtol's
6403 overflow and use floats if strtol's output is too large for
6404 Elisp integers.
6405
877610de
EZ
64062009-08-27 Eli Zaretskii <eliz@gnu.org>
6407
6408 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6409 (make-buildobj-SH): Fix last change.
6410 (SRC): Move to before where it's first used.
6411
ef73e7be
KH
64122009-08-27 Kenichi Handa <handa@m17n.org>
6413
550c8289
KH
6414 * process.c (send_process): Use encode_coding_object instead of
6415 encode_coding_string to perform eol-conversion even if the string
6416 is unibyte.
6417
60afa08d
KH
6418 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6419 character.
6420
ef73e7be 6421 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6422 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6423
7b3a82d7
DN
64242009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6425
5654bf63
DN
6426 * callproc.c (Fcall_process): Remove always true #if.
6427
7b3a82d7
DN
6428 * lisp.h: Replace #if 0 code for checking with text pointing to
6429 the --enable-checking configure flag.
6430
6431 * emacs.c (main): Mention the --enable-profiling configure flag
6432 instead of using CFLAGS.
6433
878bde49
KR
64342009-08-26 Ken Raeburn <raeburn@raeburn.org>
6435
6436 * Makefile.in (buildobj.h): New target.
6437 (doc.o): Depend on it.
6438 (temacs${EXEEXT}): Don't generate buildobj.lst.
6439 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6440 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6441 ($(BLD)/doc.$(O)): Depend on it.
6442 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6443 provided by Eli Zaretskii.)
6444 ($(TEMACS)): Don't generate buildobj.lst.
6445 * doc.c: Include buildobj.h.
6446 (buildobj): New static variable.
6447 (Fsnarf_documentation): Use it, instead of opening and reading
6448 buildobj.lst.
6449
1574224c
MA
64502009-08-25 Michael Albinus <michael.albinus@gmx.de>
6451
6452 * dbusbind.c (Fdbus_call_method)
6453 (Fdbus_call_method_asynchronously): Use English numeric format for
6454 timeout values in doc string.
6455
d9da2f45
KH
64562009-08-25 Kenichi Handa <handa@m17n.org>
6457
ef73e7be
KH
6458 * alloc.c (mark_char_table): New function.
6459 (mark_object): Use mark_char_table for a char-table.
6460
d9da2f45
KH
6461 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6462 (CHAR_TABLE_REF): Use it.
6463
c8edcc01
KR
64642009-08-23 Ken Raeburn <raeburn@raeburn.org>
6465
6466 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6467 before invoking the newly build emacs to check for load-path
6468 shadowing.
6469
7763401b
GM
64702009-08-22 Glenn Morris <rgm@gnu.org>
6471
6472 * Makefile.in (bootstrap_exe): New variable.
6473 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6474 Use ${bootstrap_exe}.
6475
729eadda
EZ
64762009-08-22 Eli Zaretskii <eliz@gnu.org>
6477
6478 * coding.h (encode_coding_string): Don't encode unibyte strings.
6479 (Bug#4047)
6480
eb4c6ace
MA
64812009-08-22 Michael Albinus <michael.albinus@gmx.de>
6482
6483 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6484
6485 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6486 intended as hotfix only.
6487 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6488
36e34d1b
AR
64892009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6490
6491 * nsterm.m (ns_get_color): Update documentation properly for last
6492 change, and clean up loose ends in the code left by it. Fix
6493 longstanding bug with 16-bit hex parsing, and add support for
6494 yet another X11 format (rgb:r/g/b) for compatibility.
6495 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6496 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6497
f983eb8a
SM
64982009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6499
6500 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6501
3f56d3c6
MA
65022009-08-20 Michael Albinus <michael.albinus@gmx.de>
6503
6504 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6505 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6506 (xd_initialize, xd_pending_messages): Check, whether
6507 $DBUS_SESSION_BUS_ADDRESS is set.
6508
fb641d68
YM
65092009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6510
6511 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6512
6513 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6514
cf59a374
GM
65152009-08-20 Glenn Morris <rgm@gnu.org>
6516
6517 * emacs.c (system-type): Doc fix.
6518
1373f3be
SM
65192009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6522 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6523
058ed861
MA
65242009-08-18 Michael Albinus <michael.albinus@gmx.de>
6525
1373f3be
SM
6526 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6527 New functions.
058ed861
MA
6528 (xd_initialize): Revert change from 2009-08-16.
6529
563a866e 65302009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6531
6532 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6533 font-group vector, return nil.
5fc05db0 6534
e42bdf01
CY
65352009-08-17 Chong Yidong <cyd@stupidchicken.com>
6536
6537 * process.c (status_notify): Don't perform redisplay.
6538 (Fdelete_process, list_processes_1, process_send_signal):
6539 Expliticly perform redisplay.
6540 (wait_reading_process_output): Always check process status, but
6541 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6542
4230ab74
KR
65432009-08-17 Ken Raeburn <raeburn@raeburn.org>
6544
1373f3be 6545 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6546 (XFLOAT_INIT): New macro for storing a float value.
6547 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6548 * fns.c (sxhash): Copy out the value of a float in order to
6549 examine its bytes.
6550 * dbusbind.c (xd_append_arg): Likewise.
6551
4230ab74
KR
6552 * emacs.c (main): Don't call syms_of_data twice.
6553
a0645cdd
MA
65542009-08-16 Michael Albinus <michael.albinus@gmx.de>
6555
6556 * dbusbind.c (xd_initialize): Add connection file descriptor to
6557 input_wait_mask, in order to let select() detect, whether a new
6558 message has been arrived.
ca4f31ea 6559 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6560
485db0ba
MA
65612009-08-15 Michael Albinus <michael.albinus@gmx.de>
6562
1373f3be
SM
6563 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6564 New functions.
485db0ba
MA
6565
6566 * lisp.h (xd_pending_messages): Declare.
6567
6568 * keyboard.c (readable_events): Call xd_pending_messages.
6569
b5b98ff4
CY
65702009-08-15 Chong Yidong <cyd@stupidchicken.com>
6571
1373f3be 6572 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6573
f8354c6e
CY
6574 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6575
b5b98ff4
CY
6576 * buffer.c (set_buffer_internal_1)
6577 (swap_out_buffer_local_variables): Check for unbound local
6578 variables (Bug#4138).
6579
8b9fc636
EZ
65802009-08-14 Eli Zaretskii <eliz@gnu.org>
6581
6582 * process.c (create_pty): Fix last change.
6583
ce959360
CY
65842009-08-13 Chong Yidong <cyd@stupidchicken.com>
6585
6586 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6587 (xbm_load_image): Caller changed.
64b807c9 6588 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6589
c7baf7e9
NR
65902009-08-13 Nick Roberts <nickrob@snap.net.nz>
6591
6592 * process.c (create_pty): New function.
6593 (Fstart_process): Use it to allow Emacs to just associate a pty
6594 with the buffer. See associated change in gdb-mi.el.
6595 (list_processes_1): Deal with no program name.
6596 (start_process_unwind): Use pid == -2 to mean no process.
6597
1ac9108a
SM
65982009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6599
6600 * cmds.c (nonundocount): New global variable.
6601 (keys_of_cmds): Initialize it.
6602 (Fself_insert_command): Use it to combine upto 20 sequential chars
6603 into a single undo entry, just like the Qself_insert_command code in
6604 keyboard.c does.
6605 Call frame_make_pointer_invisible, also like the Qself_insert_command
6606 code in keyboard.c does.
6607 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6608 than its own local replacement for it.
6609
e267324c
KR
66102009-08-10 Ken Raeburn <raeburn@raeburn.org>
6611
1ac9108a 6612 * fns.c (concat): Don't re-set string length to its current value.
77437343 6613
1ac9108a
SM
6614 * coding.h (decode_coding_string, encode_coding_string):
6615 Use SBYTES macro.
f0bed503 6616
1ac9108a 6617 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6618 (doprnt): Merge with doprnt1, discarding lispstrings code.
6619 * lisp.h (doprnt_lisp): Don't declare.
6620
416e006d
JL
66212009-08-07 Juri Linkov <juri@jurta.org>
6622
6623 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6624
6f7d5780
DN
66252009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6626
6627 * print.c (syms_of_print): Undo previous change.
6628
f19a0f5b
TZ
66292009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6630
6631 * lread.c (read1, syms_of_lread): Read hashtables back from the
6632 readable format.
6633
6634 * print.c (print_preprocess, print_object): Print hashtables fully
6635 and readably.
6636 (syms_of_print): Provide 'hashtable-print-readable.
6637
b9173dc2
AR
66382009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6639
6640 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6641 no family set.
6642 (nsfont_open): Handle case when entity has no family.
6643
1586503c
AR
66442009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6645
6646 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6647 element, not a list, for match case.
6648
087048cd
KH
66492009-07-28 Kenichi Handa <handa@m17n.org>
6650
6651 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6652 rigidly.
6653
6654 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6655 font_parse_xlfd. Check font properties more rigidly.
6656
780c2506
DN
66572009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6658
31fd7c5c
JB
6659 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6660 bsd-common.h.
780c2506 6661
a8c0cc18
KH
66622009-07-27 Kenichi Handa <handa@m17n.org>
6663
6664 * xfaces.c (face_with_height): Call font_clear_prop.
6665
4fbe2306
CY
66662009-07-26 Chong Yidong <cyd@stupidchicken.com>
6667
111d9af3
CY
6668 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6669
6670 * xterm.c (x_term_init): Use Qx.
6671
4fbe2306
CY
6672 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6673
1ac9108a 6674 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6675 (ns_get_color): Revert 2009-07-16 change.
6676
beb0b7f9
EZ
66772009-07-25 Eli Zaretskii <eliz@gnu.org>
6678
6679 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6680 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6681
2baf5e76
KR
66822009-07-25 Ken Raeburn <raeburn@raeburn.org>
6683
1ac9108a
SM
6684 * coding.h (decode_coding_string, encode_coding_string):
6685 Use SCHARS macro.
8890e5f5 6686
2baf5e76 6687 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6688 (load_depth): Delete.
2baf5e76
KR
6689 (Qload_in_progress): New variable.
6690 (load_unwind): Don't reference load_depth or load_in_progress.
6691 (Fload): Likewise; specbind Qload_in_progress instead.
6692 (init_lread): Don't initialize load_depth.
6693 (syms_of_lread): Initialize and protect Qload_in_progress.
6694
1395c6f5
AR
66952009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6696
6697 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6698
4e2f36cf
AR
66992009-07-23 Yavor Doganov <yavor@gnu.org>
6700
6701 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6702
5dd9a6f7
AR
67032009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6704
6705 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6706 Bugs 3792, 3720, 2402.
6707 (ns_lookup_indexed_color): Check for bad index.
6708 (ns_index_color): Init unused slot to 0.
6709 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6710 Bug 3714, possibly 3082.
5dd9a6f7 6711
c902b920
JR
67122009-07-22 Jason Rumney <jasonr@gnu.org>
6713
1ac9108a
SM
6714 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6715 Position IME window at cursor (Bug#2570).
c902b920
JR
6716 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6717 (globals_of_w32fns): Dynamically load functions required above.
6718
6719 * w32term.c (w32_draw_window_cursor): Send message to reposition
6720 any IME window.
6721
090101cf
CY
67222009-07-21 Chong Yidong <cyd@stupidchicken.com>
6723
6724 * fileio.c: Revert 2009-07-16 changes.
6725 (Vauto_save_include_big_deletions): New variable.
6726 (Fdo_auto_save): Disable auto-save only if
6727 auto-save-include-big-deletions is nil.
6728
e6583e3d
CY
67292009-07-21 Chong Yidong <cyd@stupidchicken.com>
6730
6731 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6732 the overflowed pixels into account (Bug#3879).
6733
ece435a5
KR
67342009-07-21 Ken Raeburn <raeburn@raeburn.org>
6735
6736 * lread.c (load_depth): New variable.
6737 (Fload, load_unwind, init_lread): Set it to the load recursion
6738 depth; set load_in_progress as a simple boolean based on the
6739 current load_depth. (Bug#3892)
6740
40b2d973
AR
67412009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6742
6743 * nsfont.m (ns_has_attribute): Remove.
6744 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6745
10be7e0d
JL
67462009-07-18 Juri Linkov <juri@jurta.org>
6747
6748 * process.c (Fset_process_query_on_exit_flag): Mention killing
6749 a buffer in docstring.
6750
fa055055
KH
67512009-07-17 Kenichi Handa <handa@m17n.org>
6752
6753 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6754
042f7b69
YM
67552009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6756
6757 * nsfns.m (Fns_set_alpha): Remove function.
6758 (syms_of_nsfns): Don't defsubr it.
6759
6760 * nsterm.m (ns_get_color): Remove incompatible color formats.
6761 (ns_color_to_lisp): Generate #rrggbb color format string.
6762
4be941e3
RS
67632009-07-16 Richard Stallman <rms@gnu.org>
6764
6765 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6766 (Fset_buffer_auto_saved): Handle save_length = -2.
6767
4e6b227d
CY
67682009-07-16 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xterm.c (Qx_gtk_map_stock): New var.
6771
6772 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6773 of calling intern each time.
6774
a1856973
YM
67752009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6776
6777 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6778 does tiling.
6779
6780 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6781
497e54d8
KH
67822009-07-14 Kenichi Handa <handa@m17n.org>
6783
72d36834
KH
6784 * font.c (font_vconcat_entity_vectors): New function.
6785 (struct font_sort_data): New member font_driver_preference.
6786 (font_compare): Check font_driver_preference.
6787 (font_sort_entities): The format of the first argument changed.
6788 (font_delete_unmatched): Likewise.
6789 (font_list_entities): The return type changed.
6790 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6791 (font_find_for_lface): Adjuste for the above changes.
6792 Don't suppress the checking of C even if the repertory supports it.
6793 (Flist_fonts): Adjust for the above changes.
72d36834 6794
1ac9108a
SM
6795 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6796 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6797 Reject a font who has adstyle property that is different from a
6798 langname derived from registry property.
1ac9108a 6799 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6800
b6046155
EZ
68012009-07-13 Eli Zaretskii <eliz@gnu.org>
6802
6803 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6804 local copy of dirfilename.
6805
fb6b6049
KH
68062009-07-13 Kenichi Handa <handa@m17n.org>
6807
e2402a5e
KH
6808 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6809 against max_char.
6810
fb6b6049
KH
6811 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6812 calling XSYMBOL (sym).
6813
65156807
EZ
68142009-07-11 Eli Zaretskii <eliz@gnu.org>
6815
1ac9108a
SM
6816 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6817 New function.
6818 (directory_files_internal) [WINDOWSNT]:
6819 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6820 the filesystem of the directory is fast or slow.
6821
6822 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6823 file name.
6824 (is_slow_fs): New function.
6825 (stat): Use it to determine whether to issue more system calls to
6826 get accurate file attributes, when w32-get-true-file-attributes is
6827 `local'.
6828
e0ab5fcf
JD
68292009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6830
6831 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6832 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6833 parameter font-parameter as default to the font dialog.
6834
784ceded
KH
68352009-07-10 Kenichi Handa <handa@m17n.org>
6836
6837 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6838
fb8edc0b
EZ
68392009-07-09 Eli Zaretskii <eliz@gnu.org>
6840
1ac9108a 6841 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6842
fb8edc0b
EZ
6843 * w32.c (stat): Treat UNC file names as residing on remote
6844 drives. (Bug#3542)
6845
635c75b1
KH
68462009-07-09 Kenichi Handa <handa@m17n.org>
6847
6848 * fontset.c (fontset_find_font): Fix previous change.
6849
c1d5ce94
MA
68502009-07-08 Michael Albinus <michael.albinus@gmx.de>
6851
6852 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6853 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6854 error flag.
6855
edb61b39
KH
68562009-07-08 Kenichi Handa <handa@m17n.org>
6857
374bf7e4
KH
6858 * fontset.c (fontset_find_font): Fix the logic of handling
6859 charset_matched.
6860 (font_for_char): Delete unused var.
6861 (generate_ascii_font_name): Delete it.
6862
edb61b39
KH
6863 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6864
6865 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6866 (encode_coding_sjis): Fix the code range check.
6867
0f3f018c
CY
68682009-07-07 Chong Yidong <cyd@stupidchicken.com>
6869
6870 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6871 (Fexpand_file_name): Copy string data properly (Bug#3772).
6872
fcaf6f3a
JD
68732009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6874
6875 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6876 first MapNotify.
6877
6809ca75
KH
68782009-07-07 Kenichi Handa <handa@m17n.org>
6879
6880 * character.h (unibyte_has_multibyte_table): Delete extern.
6881 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6882
6883 * charset.c (Fset_charset_priority): Update charset_unibyte.
6884 (syms_of_charset): Initialize charset_unibyte.
6885
6886 * character.c (unibyte_has_multibyte_table): Delete it.
6887 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6888 charset_unibyte.
6889 (multibyte_char_to_unibyte_safe): Likewise.
6890 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6891
1ac9108a 6892 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6893 (x_produce_glyphs): Likewise.
6894
6895 * .gdbinit (xcharset): Fix the treating $arg0.
6896
ad9e2d54
EZ
68972009-07-04 Eli Zaretskii <eliz@gnu.org>
6898
6899 Emulation of `getloadavg' on MS-Windows.
50426a04 6900 * w32.c: Include float.h.
ad9e2d54
EZ
6901 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6902 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6903 (get_native_system_info, get_system_times): New functions.
6904 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6905 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6906 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6907 g_b_init_get_system_times, and num_of_processors.
6908
0a3472c7
JR
69092009-07-03 Jason Rumney <jasonr@gnu.org>
6910
6911 * w32term.c (w32_initialize): Use standard types.
6912
80904120
EZ
69132009-07-03 Eli Zaretskii <eliz@gnu.org>
6914
6915 * dired.c (Ffile_attributes): Decode user and group names by the
6916 locale's encoding. (Bug#3443)
6917
6978862d
DN
69182009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6919
f8d23104
DN
6920 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6921 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6922
6923 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6924
6925 * term.c (init_tty): Remove spurious #ifdef.
6926
6978862d
DN
6927 * m/mips.h: Mention this file is also used for netbsd.
6928 * m/pmax.h: Remove file.
6929
e044e4fc
JD
69302009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6931
6932 * xterm.h (struct x_display_info): Add invisible_cursor.
6933 (struct x_output): Add current_cursor.
6934
6935 * xterm.c (XTtoggle_invisible_pointer): New function.
6936 (x_define_frame_cursor): Don't define cursor if invisible or the
6937 same as before. Set current_cursor.
6938 (x_create_terminal): Set toggle_invisible_pointer_hook.
6939
6940 * xfns.c (make_invisible_cursor): New function.
6941 (x_set_mouse_color): Call make_invisible_cursor.
6942 Set current_cursor.
6943 (x_window): Set current_cursor.
6944
6945 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6946
6947 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6948 inserting a character.
6949 (read_avail_input): Call frame_make_pointer_visible.
6950
6951 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6952 (frame_make_pointer_invisible, frame_make_pointer_visible):
6953 New functions.
e044e4fc
JD
6954 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6955
6956 * frame.h: Declare frame_make_pointer_invisible and
6957 frame_make_pointer_visible.
6958 (struct frame): Add pointer_invisible.
6959
574c8efa
JD
69602009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6961
7b507248
JD
6962 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6963 frame isn't visible.
6964 (xg_frame_resized): If width/height is -1, get size of window
6965 from X server.
6966
6967 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6968 for MapNotify.
6969
835bdaa7 6970 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6971 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6972 (flush_and_sync): Reintroduce.
574c8efa 6973
3f1c6666 69742009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6975
31fd7c5c 6976 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6977
6978 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6979 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6980
6981 * frame.h: Declare Qsticky.
6982
cad9ef74
JD
6983 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6984
6985 * nsfns.m (ns_frame_parm_handlers): Ditto.
6986
6987 * frame.c: Declare Qsticky.
6988 (frame_parms): Add sticky.
6989
6990 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6991
6992 * xterm.h: Declare x_set_sticky.
6993
6994 * xterm.c (x_set_sticky): New function.
6995
69b16610
JD
6996 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6997 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6998 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6999
7000 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7001
7002 * frame.c: Qmaximized is new.
7003 (x_set_frame_parameters): Do not handle fullscreen specially.
7004 Only set width and height if explicitly set.
7005 (x_set_fullscreen): Handle Qmaximized.
7006 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7007 (syms_of_frame): Initialize Qmaximized.
7008
1ac9108a
SM
7009 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7010 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7011
7012 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7013 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7014 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7015 set gravity to NorthWestGravity when USE_GTK.
7016 (set_wm_state): New function.
31fd7c5c 7017 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7018 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7019 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7020 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7021 to x_real_positions and x_fullscreen_adjust.
7022
7023 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7024 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7025 flush_and_sync.
7026 (xg_height_changed): New function.
7027 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7028 and gtk_window_set_policy. Set frame gravity after parsing the
7029 geometry string.
3f1c6666
JD
7030 (xg_update_frame_menubar, free_frame_menubar)
7031 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7032 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7033 Remove calls to xg_frame_set_char_size.
7034
fd503d99
KH
70352009-07-01 Kenichi Handa <handa@m17n.org>
7036
7037 * keyboard.c (decode_keyboard_code): New function.
7038 (tty_read_avail_input): Decode the input bytes if necessary.
7039
1ac9108a
SM
7040 * coding.c (setup_coding_system):
7041 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7042 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7043 use Qno_conversion.
7044
24ed93fb
YM
70452009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7046
7047 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7048
99061dfc
CY
70492009-06-30 Chong Yidong <cyd@stupidchicken.com>
7050
1ac9108a 7051 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7052
ff90fbde
JR
70532009-06-30 Jason Rumney <jasonr@gnu.org>
7054
7055 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7056 is already loaded.
7057 Set user model ID if supported (bug#1849).
7058
5f445726
JM
70592009-06-29 Jim Meyering <meyering@redhat.com>
7060
7061 Remove useless if-before-xfree test.
7062 * nsfont.m (nsfont_close): Remove useless test.
7063 * term.c (delete_tty): Likewise.
7064 * w32.c (system_process_attributes): Likewise.
7065 * w32font.c (w32font_close): Likewise.
7066 * xfaces.c (x_free_gc): Likewise.
7067 * xselect.c (buffer): Likewise.
7068
b9607587
AS
70692009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7070
7071 * process.c (send_process): Keep decoded string in a local
7072 variable and protect it from GC. (Bug#3521)
7073
89ba96f4
EZ
70742009-06-28 Eli Zaretskii <eliz@gnu.org>
7075
7076 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7077 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7078
098a1589
CY
70792009-06-28 Chong Yidong <cyd@stupidchicken.com>
7080
485422be
CY
7081 * xdisp.c (start_display, handle_face_prop)
7082 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7083 (redisplay_window, try_window_id, produce_image_glyph):
7084 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7085
098a1589
CY
7086 * xterm.c (x_update_window_begin, x_new_focus_frame)
7087 (x_scroll_bar_handle_click, handle_one_xevent)
7088 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7089 (x_make_frame_visible, x_make_frame_invisible)
7090 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7091 code chunks that are now obsolete.
7092
78c38319
MA
70932009-06-28 Michael Albinus <michael.albinus@gmx.de>
7094
7095 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7096 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7097 for hours, when optimzation is enabled.
7098 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7099 (xd_read_message): Make them static.
7100
4189ed40
CY
71012009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7102
7103 * term.c (turn_on_face): Allow simultaneously bold and dim
7104 terminal faces (Bug#3530).
7105
cd9b5e16
CY
71062009-06-27 Chong Yidong <cyd@stupidchicken.com>
7107
4e23bedb
CY
7108 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7109
cd9b5e16
CY
7110 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7111 truncation glyphs (Bug#3686).
7112
07cc3c35
GM
71132009-06-27 Glenn Morris <rgm@gnu.org>
7114
7115 * m/pmax.h: Restore file, with only netbsd portions.
7116
31fd7c5c 71172009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7118
cd9b5e16 7119 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7120
42d4a64f
KH
71212009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7122
7123 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7124 the arg FORCE_SYMBOL.
7125
930fe55b 71262009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7127
7128 * fontset.c (fontset_find_font): When a usable rfont_def is found
7129 in a fallback font-group, make it the first element of the group.
7130
57ebc3fd
CY
71312009-06-24 Chong Yidong <cyd@stupidchicken.com>
7132
7133 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7134
f084f942
KH
71352009-06-24 Kenichi Handa <handa@m17n.org>
7136
7137 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7138 set for C.
7139 (fontset_font): Record the availability of a font for C both in
7140 the realized fontsets of the current one and the default one.
7141
2f686c87
DN
71422009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7143
7144 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7145 conditional, it is always defined on AIX.
7146
666e158e
MB
71472009-06-23 Miles Bader <miles@gnu.org>
7148
7149 * window.c (Vrecenter_redisplay): New variable.
7150 (syms_of_window): Initialize it.
7151 (Qtty): New extern declaration.
7152 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7153
c6da7cd2
JM
71542009-06-23 Jim Meyering <meyering@redhat.com>
7155
1ac9108a
SM
7156 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7157 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7158 pointer dereferences are guaranteed to be valid.
c6da7cd2 7159
678dca3d
KH
71602009-06-23 Kenichi Handa <handa@m17n.org>
7161
74d75424
KH
7162 * emacs.c (main): Call init_font ().
7163
7164 * font.h (Vfont_log): Extern it.
7165 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7166
7167 * font.c (font_sort_entities, font_list_entities)
7168 (font_matching_entity, font_open_entity)
7169 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7170 (Vfont_log): Delete static.
7171 (font_log_env_checked): Delete this variable.
7172 (font_add_log): Don't check font_log_env_checked.
7173 (font_deferred_log): Check Vfont_log.
7174 (init_font): New function.
7175
678dca3d
KH
7176 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7177
7178 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7179
7180 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7181
7182 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7183
7184 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7185 (face_for_char): Don't call font_deferred_log here.
7186 (font_for_char): Likewise.
7187
8a668709
CY
71882009-06-22 Chong Yidong <cyd@stupidchicken.com>
7189
9a01ee33
CY
7190 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7191 rather than its background_width for drawing the overline and
7192 underline (Bug#489).
7193
7194 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7195 rather than its background_width for drawing the overline and
7196 underline (Bug#489).
ec7c9926
CY
7197 (xg_default_icon_file): New variable.
7198 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7199 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7200
8a668709
CY
7201 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7202 (load_overlay_strings): Remove externs.
7203 (fast_find_position): Function deleted.
7204 (mouse_face_from_buffer_pos): New function, based on
7205 fast_find_position. Correctly handle before-strings,
7206 display-strings, and after-strings (Bug#1220).
7207 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7208
4d4c02d8
CY
72092009-06-21 Chong Yidong <cyd@stupidchicken.com>
7210
1ac9108a 7211 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7212 (move_it_in_display_line_to, move_it_in_display_line_to)
7213 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7214
70243478
CY
72152009-06-21 Chong Yidong <cyd@stupidchicken.com>
7216
7217 * Branch for 23.1.
7218
13087e59
JR
72192009-06-21 Jason Rumney <jasonr@gnu.org>
7220
7221 * w32term.c (keyboard_codepage): New static variable.
7222 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7223 (w32_read_socket) [WM_CHAR]: Use it to decode character
7224 input (bug#3237).
7225 (w32_initialize): Initialize it.
7226 (codepage_for_locale): New function.
7227
4735b74e
KR
72282009-06-20 Ken Raeburn <raeburn@raeburn.org>
7229
7230 * process.c (status_message): Pass Faset index argument as a lisp
7231 object, so as to work with USE_LISP_UNION_TYPE.
7232
0e727afa
YM
72332009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7234
7235 * coding.c (Ffind_coding_systems_region_internal):
7236 Cache checked characters.
7237
cf299835
KH
72382009-06-18 Kenichi Handa <handa@m17n.org>
7239
1ac9108a 7240 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7241
90f20d94
AS
72422009-06-18 Andreas Schwab <aschwab@redhat.com>
7243
7244 * xdisp.c (redisplay_internal): Check that the frame is still
7245 live after redisplay of its windows.
7246 (redisplay_windows): Check that the window is still live.
7247
7f1faf1c
KH
72482009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7249
7250 * coding.c (detect_coding_utf_16): Fix previous change.
7251
cc13543e
KH
72522009-06-16 Kenichi Handa <handa@m17n.org>
7253
7254 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7255 UTF-16 by checking the dispersion of Eth and Oth bytes.
7256
977b85f4
AS
72572009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7258
7259 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7260
66bd43d1
KH
72612009-06-15 Kenichi Handa <handa@m17n.org>
7262
7263 * process.c (status_message): Fix previous change. Be sure to
7264 decode a localized string.
7265
cb5ca9c5
YM
72662009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7267
7268 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7269 add comment explaining why.
7270
ec7709ba 72712009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7272
ec7709ba 7273 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7274
4b7f335c
AR
72752009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7276
7277 * nsfont.m (ns_attribute_value): Remove.
7278 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7279 (ns_has_attribute): Shrink the normal range.
7280 (ns_findfonts): Don't worry about requested spec in determining
7281 need for synthItal.
e41820ee 7282 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7283
73b26103
SZ
72842009-06-14 Seiji Zenitani <zenitani@mac.com>
7285
7286 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7287
5753e4da
KH
72882009-06-11 Kenichi Handa <handa@m17n.org>
7289
7290 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7291 overhang for the static composition case.
7292
3561b671
KH
72932009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7294
5753e4da
KH
7295 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7296 overhang for the automatic composition case.
7297
3561b671
KH
7298 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7299 composition case.
7300
852bbd41
CY
73012009-06-10 Chong Yidong <cyd@stupidchicken.com>
7302
7303 * xdisp.c (get_next_display_element): When handling wrap-prefix
7304 and line-prefix, treat \n as a control character (bug#3502).
7305
9903d1e6
KH
73062009-06-10 Kenichi Handa <handa@m17n.org>
7307
7308 * font.c (font_parse_family_registry): Fix for one-char foundry.
7309 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7310
0bcbaaaa
CY
73112009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7312
7313 * process.c (status_message): Fix handling of multibyte signal
7314 string (Bug#3499).
7315
40aa3f13
JM
73162009-06-09 Jim Meyering <meyering@redhat.com>
7317
1f80c7e2
CY
7318 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7319 color name is missing.
40aa3f13 7320
72d51285
KH
73212009-06-09 Kenichi Handa <handa@m17n.org>
7322
7323 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7324 FROM-CODE and TO-CODE are codepoints of CHARSET.
7325
c1d04d84
AR
73262009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7327
7328 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7329
73302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7331
7332 Changes to support :script/:lang/:otf in NS font driver.
7333 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7334 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7335 indicate not part of font driver interface, and change callers.
7336 (ns_get_family): Remove pointless null check.
7337 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7338 ns_spec_to_descriptor, ns_descriptor_to_entity.
7339 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7340 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7341 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7342 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7343 (ns_get_req_script, ns_accumulate_script_ranges)
7344 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7345 New functions.
7346 (nsfont_list, nsfont_match): Use ns_findfonts.
7347 (nsfont_open): Use font descriptor instead of traits.
7348 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7349 (dump_glyphstring): Rename to ns_dump_glyphstring.
7350
c7eb9816
AR
7351 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7352
c1d04d84
AR
7353 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7354
7355 * fontset.c (fontset_from_font): Remove NS-specific code.
7356
ec7709ba 73572009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7358
7359 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7360 nonactive windows.
7361
31fd7c5c 73622009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7363
1ac9108a 7364 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7365
68852c13 73662009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7367
7368 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7369
6756cd1d
CY
73702009-06-07 Chong Yidong <cyd@stupidchicken.com>
7371
7372 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7373 account for the overflowing of newlines into the last glyph on the
7374 display line (Bug#3482).
7375
28bf482a
DR
73762009-06-05 David Reitter <david.reitter@gmail.com>
7377
ec7709ba
JB
7378 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7379 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7380 Fns_selection_exists_p, Fns_selection_owner_p.
7381
fdb55376
JR
73822009-06-03 Jason Rumney <jasonr@gnu.org>
7383
7384 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7385 available. (Bug#3379)
7386
05129fbe
KH
73872009-05-29 Kenichi Handa <handa@m17n.org>
7388
1ac9108a
SM
7389 * coding.c (get_translation_table):
7390 Check Venable_character_translation.
05129fbe 7391
ec7709ba 73922009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7393
ec7709ba
JB
7394 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7395 (x_make_frame_visible): Move frame to front rather than calling
15891144 7396 ns_raise_frame().
ec7709ba 7397 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7398 isn't key window.
ec7709ba 7399 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7400 drawRect may be called by NSView even if the frame is hidden.
7401
ec7709ba
JB
7402 * nsfns.m (Fx_create_frame): Follow other ports in
7403 determining visibility; default to t. Ensure async_visible is set.
15891144 7404
21f73755
EZ
74052009-05-23 Eli Zaretskii <eliz@gnu.org>
7406
7407 * dired.c (Ffile_attributes): Doc fix.
7408
34001e41
CY
74092009-05-22 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7412
46306a17
SM
74132009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7414
7415 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7416 and xfont_scratch_props.
7417 (syms_of_xfont): Do it here instead.
7418 (xfont_find_ccl_program): Delete, unused.
7419 (xfont_open): Delete unused var `i'.
7420
ef6e0694
KH
74212009-05-21 Kenichi Handa <handa@m17n.org>
7422
7423 * fontset.c (Qlatin): Don't make it static.
7424
46306a17
SM
7425 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7426 New functions.
ef6e0694
KH
7427 (xfont_scripts_cache, xfont_scratch_props): New variables.
7428 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7429 (xfont_list_pattern): Argument changed. Callers changed.
7430 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7431 (xfont_list): Don't reject a font spec with :script property.
7432 (xfont_has_char): Fix setting of encoding.
7433 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7434 xfont_scratch_props.
7435
74362009-05-19 Kenichi Handa <handa@m17n.org>
7437
46306a17 7438 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7439 Callers changed.
7440
74412009-05-18 Kenichi Handa <handa@m17n.org>
7442
7443 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7444
ac71ced7
SM
74452009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7446
7447 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7448 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7449
1c6d1051
YM
74502009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7451
7452 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7453 (x_delete_terminal): Dissociate resource database from display and
7454 then call XrmDestroyDatabase before closing display.
7455
9b9b779c
AR
74562009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7457
7458 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7459 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7460 whether selected frame is viable before raising it (based on patch
7461 by David Reitter), and improve commentary.
7462 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7463
cccd42d5
KH
74642009-05-15 Kenichi Handa <handa@m17n.org>
7465
7466 * font.c (Ffont_spec): Check arguments.
7467
337fbd17
CY
74682009-05-14 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7471 weight when testing attributes (Bug#3282).
7472
47a6002f
JD
74732009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7474
7475 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7476 what we expect to get in the next ConfigureNotify event.
7477
9cb363db
YM
7478 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7479 before Xft one (Bug#1696).
7480
b9126609
CY
74812009-05-07 David Reitter <david.reitter@gmail.com>
7482
7483 * nsfns.m (Fx_display_planes): Compute bitplanes using
7484 NSBitsPerPixelFromDepth (Bug#3207).
7485
27a69fd9
CY
74862009-05-10 Chong Yidong <cyd@stupidchicken.com>
7487
7488 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7489
00f37552
TTN
74902009-05-10 Ulrich Mueller <ulm@gentoo.org>
7491
7492 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7493
2d82a920
DR
74942009-05-07 David Reitter <david.reitter@gmail.com>
7495
ec7709ba
JB
7496 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7497 Respect mouse face background.
2d82a920 7498
46b0d52d
DR
74992009-05-07 David Reitter <david.reitter@gmail.com>
7500
ec7709ba
JB
7501 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7502 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7503 in ns_update_begin and ns_update_end.
7504
ce1b23bb
SM
75052009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7506
5996e1b7
SM
7507 * nsfns.m (ns_get_screen): Rewrite.
7508 Don't presume selected-frame is of type `ns'.
7509
ba98e3a0
SM
7510 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7511 all drivers.
7512
ce1b23bb
SM
7513 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7514
bcda200f
YM
75152009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7516
7517 * keyboard.h (add_user_signal): Fix typo in extern.
7518
7519 * lisp.h (add_user_signal): Remove extern.
7520
7521 * unexelf.c (unexec): Consider a section to precede the .bss section
7522 if its addresses overlap that of .bss.
7523 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7524 instead of dumping process.
7525
864660a2
SM
75262009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7527
7528 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7529
50da4e56
SM
75302009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7531
7532 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7533
51520a1a
DN
75342009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7535
7536 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7537 any statements.
7538
409ea3a1
AS
75392009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7540
59c4c60f
AS
7541 * process.c (read_process_output): Make sure the current buffer is
7542 always restored.
7543
409ea3a1
AS
7544 * coding.c (record_conversion_result): Don't modify
7545 Vlast_code_conversion_error for successful result.
7546 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7547
56f00ed2
KH
75482009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7549
7550 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7551 (load_charset_map): Remove unnecessary code.
56f00ed2 7552
4491c9d2
DR
75532009-04-30 David Reitter <david.reitter@gmail.com>
7554
35f5b128 7555 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7556 through f24.
7557
6970f632
CY
75582009-04-30 Chong Yidong <cyd@stupidchicken.com>
7559
7560 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7561
7562 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7563 face_at_buffer_position.
7564 (face_before_or_after_it_pos, get_next_display_element)
7565 (note_mouse_highlight): Update face_at_buffer_position call.
7566
7567 * term.c (term_mouse_highlight):
7568 * msdos.c (IT_note_mouse_highlight):
7569 * fontset.c (Finternal_char_font):
35f5b128 7570 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7571
7572 * dispextern.h (face_at_buffer_position): Update prototype.
7573
0c616f63
KH
75742009-04-30 Kenichi Handa <handa@m17n.org>
7575
35f5b128 7576 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7577
ad3aaf33
AS
75782009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7579
7580 * callproc.c (Fcall_process): Fix GC protection. Make sure
7581 current buffer is always restored.
7582
c3c963a0
YM
75832009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7584
7585 * atimer.c (init_atimer): Also clear stopped_atimers.
7586
7587 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7588
7e3386cb
YM
7589 * process.c (create_process): Clean up merger residues of
7590 2008-07-17 change.
7591
91f68422
CY
75922009-04-29 Ulrich Mueller <ulm@gentoo.org>
7593
7594 * lread.c (Vread_circle): New variable.
7595 (read1): Disable recursive read if Vread_circle is nil.
7596
24b34550
KH
75972009-04-29 Kenichi Handa <handa@m17n.org>
7598
7599 * fontset.h (set_default_ascii_font): Delete extern.
7600
7601 * fontset.c (set_default_ascii_font): Delete this unused function.
7602
7603 * frame.c (x_set_font): When ARG is a font-object, check if the
7604 font-object matches with the ASCII font-spec of the frame's
9c358bda 7605 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7606
77bf07e1
AS
76072009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7608
7609 * fns.c (Flocale_info): Protect vector from GC during decoding.
7610
7611 * process.c (Fstart_process): Protect argv strings from GC during
7612 encoding.
7613
2c55aacf
AS
76142009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7615
7616 * sysdep.c: Include <ctype.h>.
7617
b892d3c9
DR
76182009-04-27 David Reitter <david.reitter@gmail.com>
7619
35f5b128 7620 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7621 Remove commented-out code.
7622
9d0644c4
JB
76232009-04-26 Johan Bockgård <bojohan@gnu.org>
7624
7625 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7626
b7053016
JR
76272009-04-25 Jason Rumney <jasonr@gnu.org>
7628
7629 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7630
4e8231f3
YM
76312009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7632
7633 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7634 Swap bytes in short integer if fringe bitmap width > 8.
7635
493dcf2c
KH
76362009-04-23 Kenichi Handa <handa@m17n.org>
7637
7638 * xfaces.c (Fx_list_fonts): If a font size is specified in
7639 PATTERN, set it in returned scalable fonts.
7640
401e9e57
CY
76412009-04-22 Chong Yidong <cyd@stupidchicken.com>
7642
708e05dc
CY
7643 * keyboard.c (Fset_input_meta_mode): Doc fix.
7644
7645 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7646
1ac9108a 7647 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7648
7649 * coding.c (Fterminal_coding_system): Doc fix.
7650
7651 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7652 (Fx_display_pixel_height, Fx_display_planes)
7653 (Fx_display_color_cells, Fx_server_max_request_size)
7654 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7655 (Fx_display_mm_height, Fx_display_mm_width)
7656 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7657 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7658 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7659 (check_x_display_info): Handle terminal objects instead of
7660 terminal ids.
7661
401e9e57
CY
7662 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7663 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7664 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7665 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7666
df80c7f0
KH
76672009-04-21 Kenichi Handa <handa@m17n.org>
7668
5a8f12af 7669 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7670 (font_score): Check AVGWIDTH too.
908567ef 7671
df80c7f0
KH
7672 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7673 worst case.
1ac9108a
SM
7674 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7675 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7676
705af33f
JR
76772009-04-19 Jason Rumney <jasonr@gnu.org>
7678
7679 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7680 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7681
7682 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7683 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7684 get_phys_cursor_geometry.
7685
b71ac3dd 7686 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7687 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7688 using get_phys_cursor_geometry.
7689
7690 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7691 correctly calculated.
7692
dc2933eb
JD
76932009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7694
1ac9108a
SM
7695 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7696 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7697 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7698 is deprecated.
7699
973e7849
AS
77002009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7701
7702 * font.c (font_put_frame_data): Use xfree instead of free.
7703
314d66f4
JB
77042009-04-17 Juanma Barranquero <lekktu@gmail.com>
7705
7706 * w32font.c (Qja, Qko): Remove declarations.
7707 (syms_of_w32font): Don't DEFSYM them.
7708
cf702558
CY
77092009-04-17 Chong Yidong <cyd@stupidchicken.com>
7710
7711 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7712
7713 * font.h (Qja, Qko): Extern them.
7714
7715 * ftfont.c (Qja, Qko): Remove declarations.
7716
7717 * xfont.c (Qja, Qko): Remove declarations.
7718
b50504f5
KH
77192009-04-17 Kenichi Handa <handa@m17n.org>
7720
bde25748
KH
7721 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7722 string from a vector to handle Latin-1 characters correctly.
7723
b50504f5
KH
7724 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7725 entity even if the cache hits.
7726
f4646fff
AS
77272009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7728
7729 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7730 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7731
e7deaab0
AS
7732 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7733 * lisp.h: Adjust prototypes.
7734
0a0e7d49
CY
77352009-04-16 Chong Yidong <cyd@stupidchicken.com>
7736
7737 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7738 change (Bug#3003).
7739
3c908a57
KH
77402009-04-16 Kenichi Handa <handa@m17n.org>
7741
1ac9108a 7742 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7743
7744 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7745 adstyle.
7746
7747 * ftfont.c (Qja, Qko): Don't make them static.
7748 (enum ftfont_cache_for): New enum.
7749 (fc_charset_table): Undo the previous change.
7750 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7751 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7752 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7753 non-scarable font, try to get AVERAGE_WIDTH.
7754 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7755 Change ft_face_cache from a list of a hash-table. Don't check
7756 `ja' and `ko' adstyle here.
7757 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7758 FTFONT_CACHE_FOR_CHARET.
7759 (ftfont_get_charset): Undo the previous change.
1ac9108a 7760 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7761 (ftfont_close): Likewise.
7762 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7763
7764 * font.c (font_sort_entites): Change the meaning of the arg
7765 BEST-ONLY. Don't optimize for VEC of lenght 1.
7766 (font_select_entity): Just return the value of font_sort_entites.
7767
7768 * xfaces.c (merge_face_vectors): Reflect font properties in
7769 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7770 font_clear_prop if a face attribute doesn't change.
7771
3c908a57
KH
7772 * charset.h (charset_ksc5601): Extern it.
7773
7774 * charset.c (charset_ksc5601): New variable.
7775 (Fdefine_charset_internal): Set charset_ksc5601.
7776 (init_charset_once): Initialize charset_ksc5601 to -1.
7777
d65859c3
DN
77782009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7779
7780 * fileio.c (history_delete_duplicates): Remove unused declaration.
7781
7782 * callint.c (history_delete_duplicates): New declaration.
7783 (Fcall_interactively): Remove command history duplicates when
7784 history_delete_duplicates is true.
7785
3ba010e5
EZ
77862009-04-14 Eli Zaretskii <eliz@gnu.org>
7787
7788 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7789
06f19b91
KH
77902009-04-14 Kenichi Handa <handa@m17n.org>
7791
7792 * font.c (Ffont_info): Fix docstring. Fix the second element of
7793 the returned value (bug#2949).
7794
2cce8bfc
CY
77952009-04-14 Chong Yidong <cyd@stupidchicken.com>
7796
7797 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7798
d156542d
KH
77992009-04-14 Kenichi Handa <handa@m17n.org>
7800
7801 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7802 encoding charset is ascii_compatible.
7803
7804 * charset.c (Fdefine_charset_internal): Make charset
7805 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7806 code_offset is 0, and covers all ASCII characters.
7807
86fa089e
SM
78082009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7809
7810 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7811 (ns_string_to_pasteboard_internal):
7812 * nsmenu.m (process_dialog):
7813 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7814 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7815 * lisp.h (Fx_load_color_file): Declare.
7816
a8a3728b
KH
78172009-04-13 Kenichi Handa <handa@m17n.org>
7818
1ac9108a 7819 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7820 (font_select_entity): Suppress the code to optimize for the same
7821 kind of fonts.
7822 (font_load_for_lface): Get a font that supports at least ASCII
7823 characters.
7824
7825 * ftfont.c (Qja, Qko): New variables.
7826 (fc_charset_table): Delete uniquifier data for iso8859-1.
7827 (ftfont_get_latin1_charset): New function.
7828 (get_adstyle_property): New function.
7829 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7830 bitmap fonts.
7831 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7832 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7833 `ko' or `ja'.
7834 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7835 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7836 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7837 property.
7838 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7839 (syms_of_ftfont): DEFSYM Qja and Qko.
7840
483670b5
KH
78412009-04-09 Kenichi Handa <handa@m17n.org>
7842
12b55765
KH
7843 * charset.c (map_charset_chars): For a charset of `superset'
7844 method, fix calculation of code range.
7845
483670b5
KH
7846 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7847 from the list of extra properties.
7848 (font_clear_prop): Be sure to delete `:name' font property.
7849
57d3b93b
KH
78502009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7851
b4b2c2ca
YM
7852 * dispnew.c (redraw_overlapping_rows): Fix detection of
7853 overlapping for topmost and bottommost rows.
7854
1ac9108a 7855 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7856
472c3609
JR
78572009-04-06 Jason Rumney <jasonr@gnu.org>
7858
7859 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7860
ab193662
KH
78612009-04-06 Kenichi Handa <handa@m17n.org>
7862
7863 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7864
7865 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7866
0c26f026
KH
78672009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7868
7869 * ftfont.c (ftfont_open): Fix checking of the return value of
7870 FT_Load_Char. Fix setting font->underline_thickness.
7871
e173bbce
CY
78722009-04-04 Chong Yidong <cyd@stupidchicken.com>
7873
7874 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7875 (Fterminal_parameters, Fterminal_parameter)
7876 (Fset_terminal_parameter): In doc string, refer to terminal
7877 objects rather than terminal ids.
7878
693a2698
EZ
78792009-04-04 Eli Zaretskii <eliz@gnu.org>
7880
7881 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7882 ret_lim_data. (Bug#2867)
7883
d5221487
CY
78842009-04-03 Chong Yidong <cyd@stupidchicken.com>
7885
7886 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7887 so they don't get wider than the window, matching 2006-01-23
7888 change to the partner function in xdisp.c (Bug#2800).
7889
223509a3
KH
78902009-04-03 Kenichi Handa <handa@m17n.org>
7891
7892 * print.c (print_object): Make each lowest sub_char_table start a
7893 new line (Bug#2866).
7894
74fcd0b1
KH
78952009-04-02 Kenichi Handa <handa@m17n.org>
7896
7897 * fontset.c (fontset_font): Record no-font when a fontset
7898 explicitly tells not to try another font-specs.
7899
c542407d
SM
79002009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7901
7902 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7903
e3869731
KH
79042009-03-30 Kenichi Handa <handa@m17n.org>
7905
d8d2f142
KH
7906 * fontset.c (fontset_from_font): Specify only registry in a
7907 font-spec for all characters supported by that registry.
7908
e3869731
KH
7909 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7910 even if HAVE_M17N_FLT is not defined.
7911
5da5f805
CY
79122009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7913
7914 * ftfont.c: Conditionalize prototyping and use of
7915 ftfont_variation_glyphs.
7916
ab226c50
SM
79172009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7918
9628fed7
SM
7919 * frame.c (delete_frame): Work around compiler bug.
7920
7921 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7922 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7923 Some more EMACS_INT.
7924 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7925
7926 * xdisp.c (dump_glyph): Fix typo.
7927
ae19ba7c
SM
7928 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7929 (adjust_markers_gap_motion, adjust_markers_for_delete)
7930 (adjust_markers_for_insert, adjust_point)
7931 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7932 (make_gap, copy_text, count_size_as_multibyte, insert)
7933 (insert_and_inherit, insert_before_markers)
7934 (insert_before_markers_and_inherit, insert_1)
7935 (count_combining_before, count_combining_after, insert_1_both)
7936 (insert_from_string, insert_from_string_before_markers)
7937 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7938 (insert_from_buffer_1, adjust_after_replace)
7939 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7940 (replace_range_2, del_range, del_range_1, del_range_byte)
7941 (del_range_both, del_range_2, modify_region)
7942 (prepare_to_modify_buffer, signal_before_change)
7943 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7944 for buffer positions and sizes.
7945 * lisp.h: Adjust prototypes accordingly.
7946
7947 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7948 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7949 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7950
ab226c50
SM
7951 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7952
46dfb8fb
JD
79532009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7954
7955 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7956 lines and columns so we keep the same pixel height and width.
7957
7958 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7959 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7960 (x_handle_net_wm_state): New function to update frame parameter
7961 fullscreen.
7962 (x_term_init): Initialize atoms for _NET_WM_STATE.
7963
7964 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7965
d347e494
SM
79662009-03-27 Kevin Ryde <user42@zip.com.au>
7967
7968 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7969 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7970 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7971 (Fgpm_mouse_stop): Pass that new parameter.
7972 * termhooks.h (close_gpm): Adjust prototype.
7973
84db11d6
SM
79742009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7975
c95a5008
SM
7976 * lisp.h (Fx_focus_frame): Declare.
7977
84db11d6
SM
7978 * callint.c (Fcall_interactively): For '^' just delegate the work to
7979 handle-shift-selection.
7980 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7981
0a1958d6
CY
79822009-03-24 Chong Yidong <cyd@stupidchicken.com>
7983
0bfdff23
CY
7984 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7985
0a1958d6
CY
7986 * data.c (Qinteractive_form): New variable.
7987 (Finteractive_form): Use it.
7988
7989 * eval.c (Fcommandp): Use Qinteractive_form.
7990
58aec0d6
JR
79912009-03-24 Jason Rumney <jasonr@gnu.org>
7992
7993 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7994 Calculate total size precisely. Decode environment variables
7995 before substituting. (Bug#38)
7996
553dd618
KH
79972009-03-24 Kenichi Handa <handa@m17n.org>
7998
7999 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8000 encoding (Bug#2722).
553dd618 8001
c39ea606
JD
80022009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8003
8004 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8005 that gdpy is set.
8006
bc9b2b5e
AM
80072009-03-22 Alan Mackenzie <acm@muc.de>
8008
8009 * callint.c (Finteractive): Clarify the doc string - even
8010 promptless elements need \n separators.
8011
9f995a76
JR
80122009-03-22 Jason Rumney <jasonr@gnu.org>
8013
8014 * w32term.c (syms_of_w32term): Doc fix for
8015 x-use-underline-position-properties.
8016
22749e9a
EZ
80172009-03-21 Eli Zaretskii <eliz@gnu.org>
8018
8019 * w32.c (getpwuid): Change argument type to unsigned.
8020 (struct w32_id): Change type of `rid' member to unsigned.
8021 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8022 argument ID to unsigned. All callers changed.
8023 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8024
e00553bf
EZ
80252009-03-20 Eli Zaretskii <eliz@gnu.org>
8026
8027 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8028 negative, produce a float value.
8029
8030 * dired.c (make_uid, make_gid): New functions.
8031 (Ffile_attributes): Use them to avoid negative UID and GID.
8032
f761d6b6
JB
80332009-03-20 Juanma Barranquero <lekktu@gmail.com>
8034
8035 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8036 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8037 Fix typos in docstrings.
8038
d507f8d7
KH
80392009-03-19 Kenichi Handa <handa@m17n.org>
8040
8041 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8042 changed, use font_load_for_lface to get a new font object.
8043 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8044
8045 * frame.c (x_set_font): Handle the case that ARG is a cons.
8046
c68845e0
GM
80472009-03-19 Glenn Morris <rgm@gnu.org>
8048
8049 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8050
bfa49dd1
CY
80512009-03-19 Chong Yidong <cyd@stupidchicken.com>
8052
8053 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8054
8458d4c1
KH
80552009-03-19 Kenichi Handa <handa@m17n.org>
8056
8057 * charset.c (load_charset_map_from_file): When a mapfile can't be
8058 loaded, signal an error.
8059
78e7d1fe
EZ
80602009-03-18 Eli Zaretskii <eliz@gnu.org>
8061
8062 * dired.c (Ffile_attributes): Make sure UID and GID are always
8063 positive, even if the value is too large for a positive EMACS_INT.
8064 Doc fix.
8065
8066 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8067
5da9fdfa
YM
80682009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8069
8070 * xmenu.c (xdialog_show): Move Fredisplay call ...
8071 (Fx_popup_dialog): ... here.
8072
7519c40d
SM
80732009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * dired.c (file_name_completion): Disable the first optimization just
8076 installed, since it is not implemented correctly.
8077
2cd298e2
SM
80782009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8079
8080 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8081 only if the entry can affect bestmatch.
2cd298e2
SM
8082 Stop the search early, as Ftry_completion already does.
8083
48d37adf
CY
80842009-03-17 Chong Yidong <cyd@stupidchicken.com>
8085
e10c9c93 8086 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8087
9286b16a
CY
80882009-03-15 Chong Yidong <cyd@stupidchicken.com>
8089
8090 * keyboard.c (parse_menu_item): Don't display remappings as menu
8091 equivalent bindings (Bug#788).
8092
f7b146dc
JR
80932009-03-15 Jason Rumney <jasonr@gnu.org>
8094
8095 * w32term.h (WM_EMACS_PAINT): New message.
8096 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8097 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8098 before passing to lisp thread. (Bug#950)
8099
f761d6b6 81002009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8101
d93f9575
CY
8102 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8103 variable as it was never reset.
8104 (ns_term_init): Remove initialization of Lisp-settable defaults
8105 and ns_expand_space.
8106 (-setPanelFromDefaultValues): Remove ns_expand_space.
8107 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8108 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8109 i.e. no additional spacing, similar to Carbon port.
8110
d93f9575
CY
8111 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8112 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8113
305018ec
JD
81142009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8115
8116 * sound.c (alsa_configure): Remove call to deprecated
8117 snd_pcm_sw_params_set_xfer_align.
8118
f761d6b6 81192009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8120
8121 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8122 after clicking in a detached tool bar.
8123 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8124
46e722a9
SM
81252009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8126
348db3dd
SM
8127 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8128 int/Lisp_Object mixup).
46e722a9 8129
a3d16f39
KH
81302009-03-13 Kenichi Handa <handa@m17n.org>
8131
8132 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8133 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8134 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8135 (set_fontset_font): Change ARG to a vector. Handle range_list in
8136 ARG correctly.
8137 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8138 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8139 the above change.
8140 (fontset_from_font): Fix previous change.
fe24f56a 8141 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8142 entry. If FONTSET is the default fontset, don't set the extra
8143 slot of the returning char-table.
8144
b066e6b6
JB
81452009-03-12 Juanma Barranquero <lekktu@gmail.com>
8146
8147 * nsfns.m (Fx_close_connection): Doc fix.
8148 (Fns_do_applescript): Reflow docstring.
8149 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8150 (Fx_display_pixel_width, Fx_display_pixel_height)
8151 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8152 Fix typos in docstrings.
8153 (Fns_set_alpha): Fix typos in error messages.
8154
d472514e 81552009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8156
d472514e 8157 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8158 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8159 were used for such events.
8160
d472514e
JB
8161 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8162 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8163
d472514e 8164 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8165 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8166
fb930676
KH
81672009-03-11 Kenichi Handa <handa@m17n.org>
8168
ff85581a
KH
8169 * font.h (font_open_by_spec): Extern it.
8170
c50b7e98
KH
8171 * font.c (font_open_by_spec): New function.
8172 (font_open_by_name): Use font_open_by_spec.
8173
fb930676
KH
8174 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8175 fontset of the frame.
8176
8177 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8178 modify the default font of frames that use this fontset.
8179 (num_auto_fontsets): New variable.
8180 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8181 name. Be sure to set FONTSET_ASCII to the correct font name.
8182 (update_auto_fontset_alist): New function.
8183
df4e8455
JB
81842009-03-11 Juanma Barranquero <lekktu@gmail.com>
8185
8186 * makefile.w32-in: Update dependencies.
8187
0a375797
AR
81882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8189
8190 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8191
61313fa3
SM
81922009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8193
8194 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8195
b55103fb
CY
81962009-03-10 Chong Yidong <cyd@stupidchicken.com>
8197
8198 * lread.c (Feval_buffer): Doc fix.
8199
dde2559c
KH
82002009-03-09 Kenichi Handa <handa@m17n.org>
8201
8202 * charset.c (Qfile_name_handler_alist): Extern it.
8203 (load_charset_map_from_file): Temporarily bind
8204 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8205
df4e8455 82062009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8207
47f588bb
GM
8208 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8209 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8210
4ddf94bd
AR
82112009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8212
4c9bdfc2
AR
8213 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8214 (x_set_window_size): Change back to calculated method of setting
8215 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8216 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8217 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8218
fe41ae9e
AR
8219 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8220
4c9bdfc2
AR
8221 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8222 accelerator in parens under GNUstep.
8223
825d0875
KH
82242009-03-06 Kenichi Handa <handa@m17n.org>
8225
8226 These changes are to detect incorrect composition sequence without
f3b3be74 8227 looking ahead the source. (Bug#2370)
825d0875
KH
8228
8229 * coding.h: Include "composite.h".
8230 (enum compisition_state): New enum.
8231 (struct compisition_status): New struct.
8232 (struct iso_2022_spec): New member cmp_status.
8233 (struct emacs_mule_spec): New struct.
8234 (struct coding_system): New members ctext_extended_segment_len and
8235 embedded_utf_8. Change the union member
8236 spec.emacs_mule_full_support to spec.emacs_mule.
8237
8238 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8239 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8240 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8241 (ADD_COMPOSITION_DATA): New arg nbytes.
8242 (emacs_mule_char): New arg cmp_status.
8243 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8244 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8245 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8246 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8247 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8248 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8249 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8250 (EMACS_MULE_COMPOSITION_END): New macro.
8251 (emacs_mule_finish_composition): New function.
8252 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8253 (decode_coding_emacs_mule): Avoid long looking ahead while
8254 handling composition.
8255 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8256 (ENCODE_COMPOSITION_RULE): New macro.
8257 (finish_composition): New function.
8258 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8259 (DECODE_COMPOSITION_START): New implementation.
8260 (DECODE_COMPOSITION_END): Likewise.
8261 (STORE_COMPOSITION_RULE): New macro.
8262 (decode_coding_iso_2022): Avoid long looking ahead while handling
8263 composition, CTEXT extended segment, and embedded UTF-8.
8264 (setup_coding_system): For a coding of type iso-2022, reset
8265 CODING_ISO_EXTSEGMENT_LEN (coding) and
8266 CODING_ISO_EMBEDDED_UTF_8 (coding).
8267 (get_translation): Delete arguments last_block, from_nchars,
8268 to_nchars. Callers changed.
8269 (produce_chars): Don't modify charbuf. Adjusted for the change of
8270 get_translation.
98a326f7 8271 (produce_composition): Adjust for the new annotation sequence.
825d0875 8272 (handle_composition_annotation): Likewise.
98a326f7 8273 (consume_chars): Adjust for the change of get_translation.
825d0875 8274
ccbc4452
AR
82752009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
4ddf94bd 8277 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8278
988a7ddb
KH
82792009-03-05 Kenichi Handa <handa@m17n.org>
8280
8281 * font.c (font_select_entity): New function.
8282 (font_find_for_lface): Use font_select_entity to select a font.
8283
8284 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8285 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8286 font with C restriction.
8287
98a326f7 82882009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8289
be1bce46 8290 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8291
10ea2b82
JR
82922009-03-04 Jason Rumney <jasonr@gnu.org>
8293
2c93b248 8294 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8295 characters that have already been read. (Bug#2569)
2c93b248 8296
10ea2b82
JR
8297 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8298 Log an error message if check_image_size failed.
8299 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8300 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8301
71a0c011
EZ
83022009-03-02 Eli Zaretskii <eliz@gnu.org>
8303
8304 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8305 when decoding process output.
8306
2f63bba8
RS
83072009-03-01 Richard M Stallman <rms@gnu.org>
8308
8309 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8310
8311 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8312
0a9564cb
EZ
83132009-02-28 Eli Zaretskii <eliz@gnu.org>
8314
8315 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8316 (decode_coding_emacs_mule, decode_coding_iso_2022)
8317 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8318 (decode_coding_raw_text, decode_coding_charset)
8319 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8320 Honor inhibit-eol-conversion. (Bug #2186)
8321
449148b3
JR
83222009-02-28 Jason Rumney <jasonr@gnu.org>
8323
8324 * coding.c (detect_coding_charset): If not checking latin extra,
8325 fail on characters between 0x80 and 0xA0. (Bug#2354)
8326
a4aee864
EZ
83272009-02-28 Eli Zaretskii <eliz@gnu.org>
8328
8329 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8330 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8331
d88bee5a
GM
83322009-02-27 Glenn Morris <rgm@gnu.org>
8333
8334 * callint.c (Finteractive): Doc fix.
8335
a808f22d
KH
83362009-02-27 Kenichi Handa <handa@m17n.org>
8337
8338 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8339
caf8d60c
CY
83402009-02-27 Chong Yidong <cyd@stupidchicken.com>
8341
8342 * font.c (font_style_to_value): Set value for unknown symbols to
8343 100 instead of 255.
b61137ea
CY
8344 (weight_table, slant_table, width_table): Treat "unspecified" as
8345 the default value.
caf8d60c 8346
1a0de25c
JB
83472009-02-26 Juanma Barranquero <lekktu@gmail.com>
8348
8349 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8350
8fc45744
JB
83512009-02-25 Juanma Barranquero <lekktu@gmail.com>
8352
107bd7d1
JB
8353 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8354 error as soon as a recursive load is detected.
8fc45744 8355
f097e223
AR
83562009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8357
8358 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8359 before caching.
8360
8810a12f
KH
83612009-02-24 Kenichi Handa <handa@m17n.org>
8362
8363 * fontset.c (fontset_find_font): Fix the condition for checking
8364 unavailable font.
8365
2c7d1565
GM
83662009-02-24 Glenn Morris <rgm@gnu.org>
8367
8368 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8369 whitespace that confuses documentation.
8370
a20878b6
MB
83712009-02-23 Miles Bader <miles@gnu.org>
8372
8373 * process.c (Flist_system_processes, Fprocess_attributes)
8374 (syms_of_process): Rename `system-process-attributes' to
8375 `process-attributes'.
8376
b3b58c01
AS
83772009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8378
1b3b981b
AS
8379 * coding.h (struct coding_system): Make safe_charsets a pointer to
8380 unsigned char.
8381 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8382 being 255.
8383 (SAFE_CHARSET_P): Likewise.
8384 (setup_iso_safe_charsets): Properly setup safe_charsets.
8385 (Fdefine_coding_system_internal): Likewise.
8386 (setup_coding_system): Likewise. Remove unneeded casts.
8387 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8388 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8389 unneeded casts.
8390
b3b58c01
AS
8391 * insdel.c (del_range_2): Don't modify gap contents when called
8392 from decode_coding_object. (Bug#1809)
8393
0b6f228c
CY
83942009-02-21 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8397 Qfont_object.
8398 (Ftype_of): Recognize font objects.
8399
8400 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8401
8402 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8403 moved to data.c.
8404
52f8870b
AR
84052009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8406
8407 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8408 async_iconified. Based on a patch by Christian Lynbech
8409 <christian.lynbech@tieto.com>.
8410 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8411
7087d5e9
GM
84122009-02-20 Glenn Morris <rgm@gnu.org>
8413
8414 * syntax.c (Fskip_chars_forward): Fix doc typo.
8415
41d2ceef
CY
84162009-02-20 Chong Yidong <cyd@stupidchicken.com>
8417
8418 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8419
1a3b7ca6
CY
84202009-02-19 Chong Yidong <cyd@stupidchicken.com>
8421
8422 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8423
73cce38d
KH
84242009-02-19 Kenichi Handa <handa@m17n.org>
8425
8426 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8427 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8428
a51092ee
DN
84292009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8430
8431 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8432
c423ecca
KH
84332009-02-18 Kenichi Handa <handa@m17n.org>
8434
8435 * font.c (font_check_otf_features): Fix handling of `nil' element.
8436 (Ffont_spec): Describe :lang and :otf in the docstring.
8437
4c1958f4
AS
84382009-02-16 Andreas Schwab <schwab@suse.de>
8439
8440 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8441 string.
8442
5704f39a
KH
84432009-02-16 Kenichi Handa <handa@m17n.org>
8444
8445 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8446 (Bug#1723)
5704f39a 8447
8f0085aa
CY
84482009-02-14 Chong Yidong <cyd@stupidchicken.com>
8449
a057d86a 8450 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8451
8452 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8453 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8454
aff01dd9
EZ
84552009-02-14 Eli Zaretskii <eliz@gnu.org>
8456
8457 * msdos.c (MAX_SCREEN_BUF): New macro.
8458 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8459 Encode the entire run of glyphs sharing the same face, instead of
8460 doing that one glyph at a time (fixes a bug with displaying
8461 double-size characters).
8462
ba301db3
AR
84632009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8464
8465 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8466
8467 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8468 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8469 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8470
8471 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8472 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8473
51d861de
SM
84742009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8475
ac146f82 8476 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8477 invisible areas.
8478
7fed8996
JR
84792009-02-12 Jason Rumney <jasonr@gnu.org>
8480
631ea4fb
JR
8481 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8482 (add_font_entity_to_list): Call check_face_name even when family
8483 is unspecified.
8484
cb4a3e42
JR
8485 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8486 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8487 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8488
7fed8996 8489 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8490 raster fonts. (Bug#2219)
7fed8996 8491
895416e3
KH
84922009-02-12 Kenichi Handa <handa@m17n.org>
8493
8494 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8495 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8496 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8497 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8498 (find_automatic_composition): While looking forward and backward,
8499 check static composition. Fix where to stop looking forward.
8500 (composition_adjust_point): Fix checking of static composition.
8501 (Fcomposition_get_gstring): Pay attention to
1dacf998 8502 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8503
8504 * lisp.h (fast_looking_at): Extern it.
8505
8506 * search.c (fast_looking_at): New function.
8507
51d861de 8508 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8509 <struct glyph>.u.cmp.to.
8510 (append_composite_glyph): Likewise.
8511
51d861de 8512 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8513 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8514 composition.
51d861de 8515 (append_composite_glyph): Adjust for the change of
895416e3
KH
8516 <strcut glyph>.u.cmp.to.
8517
8510724d
JB
85182009-02-11 Juanma Barranquero <lekktu@gmail.com>
8519
8520 * casetab.c (init_casetab_once):
8521 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8522 * font.c (font_update_lface):
8523 * fontset.c (Fnew_fontset):
8524 * ftfont.c (ftfont_drive_otf):
8525 * xfont.c (xfont_open):
8526 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8527
294fa707
SM
85282009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8529
8530 * fileio.c (Fwrite_region): !NILP -> CONSP.
8531
b5bfebec
AS
85322009-02-10 Andreas Schwab <schwab@suse.de>
8533
8534 * process.c (send_process): Properly relocate pointer into data
adab88bd 8535 when using encoded data. (Bug#2272)
b5bfebec 8536
cb84a2be
KH
85372009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8538
8539 * coding.c (detect_coding_charset): Fix previous change.
8540
89e09428
JR
85412009-02-08 Jason Rumney <jasonr@gnu.org>
8542
8543 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8544 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8545
4470a277
AS
85462009-02-07 Andreas Schwab <schwab@suse.de>
8547
8548 * unexelf.c (unexec): Fix error message.
8549
3175b12a
AR
85502009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8551
8552 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8553 when modal window is active. (Bug #2152)
3175b12a
AR
8554 (applicationShouldTerminate:): Remove now-unneeded while loop
8555 around NSRunAlertPanel.
8556
8557 * nsmenu.m (popupSession): New file-global variable.
8558 (pop_down_menu): End the popupSession before closing dialog.
8559 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8560 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8561 don't query NSApp for events (just sleep instead).
8562
8434d0b8
EZ
85632009-02-07 Eli Zaretskii <eliz@gnu.org>
8564
51d861de
SM
8565 * coding.c (syms_of_coding) <translation-table-for-input>:
8566 Modify doc string to discourage use for character code unification.
8434d0b8 8567
aa82edfd
CY
85682009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8569
8570 * atimer.c (run_timers): Update pending_atimers.
8571
2d283c7c
CY
85722009-02-06 Chong Yidong <cyd@stupidchicken.com>
8573
eb306cab
CY
8574 * image.c (svg_load_image): Fix last change.
8575
2d283c7c
CY
8576 * xfns.c (Fx_create_frame): Signal an error if no font is
8577 found (Bug#2147).
8578
4d8e170e
JB
85792009-02-05 Juanma Barranquero <lekktu@gmail.com>
8580
8581 * character.c (syms_of_character) <script-representative-chars>:
8582 Fix typo in docstring.
8583
c96169a0
AR
85842009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8585
8586 * nsmenu.m (pop_down_menu): New function.
8587 (ns_popup_dialog): Call it on unwind.
8588 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8589 call timer_check() (Bug#2154).
8590 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8591 handling_signal is set.
8592 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8593
31fd7c5c 8594 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8595
8596 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8597
8598 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8599
51d861de
SM
8600 * keyboard.c (poll_for_input_1, handle_async_input):
8601 Set handling_signal under HAVE_NS.
c96169a0 8602
aacd8ba1
GM
86032009-02-04 Glenn Morris <rgm@gnu.org>
8604
8605 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8606
4cb75c4b
KH
86072009-02-04 Kenichi Handa <handa@m17n.org>
8608
8609 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8610
8611 * charset.c (Fchar_charset): New optional arg restriction.
8612
8613 * coding.h (coding_system_charset_list): Extern it.
8614
8615 * coding.c (coding_system_charset_list): New function.
8616
8617 * composite.c: Include coding.h and termhooks.h.
8618 (composition_gstring_p): Fix for the terminal case.
8619 (composition_gstring_width): Likewise.
8620 (fill_gstring_body): Likewise.
8621 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8622 the frame.
8623 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8624 is within a composition.
867d4bb3 8625 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8626
8627 * term.c (encode_terminal_code): Fix handling of composition.
8628 (produce_composite_glyph): For static composition, get pixel_width
8629 from struct composition.
8630
826ba17e
AS
86312009-02-02 Andreas Schwab <schwab@suse.de>
8632
8633 * unexelf.c (unexec): Handle unaligned bss offset.
8634
8ad093db
AR
86352009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8636
8637 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8638 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8639
8ad093db
AR
8640 * keyboard.c (handle_interrupt): Don't call
8641 quit_throw_to_read_char() under NS.
d0a76a6e 8642
8ad093db
AR
8643 * blockinput.h: Remove NS-specific code.
8644
4d18a7a2
DN
86452009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8646
db878925
DN
8647 * dispnew.c (window_change_signal): Don't try to get the size of a
8648 suspended tty frame.
8649 * term.c (Fresume_tty): Resize if the size has changed while the
8650 tty was suspended.
8651
4d18a7a2
DN
8652 * alloc.c (mark_stack): Properly conditionalize previous change.
8653
8984df7c
JB
86542009-01-30 Juanma Barranquero <lekktu@gmail.com>
8655
8656 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8657 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8658 Remove; this code is not used on Windows.
8659
75f4f1ac
EZ
86602009-01-30 Eli Zaretskii <eliz@gnu.org>
8661
8662 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8663 EOLs that also has stray ^M characters.
8664
07a1e794
JB
86652009-01-30 Juanma Barranquero <lekktu@gmail.com>
8666
8667 * atimer.c (run_timers, alarm_signal_handler):
8668 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8669 * w32inevt.c (w32_console_read_socket):
8670 * w32term.c (w32_read_socket):
8671 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8672
a8b11cc9
CY
86732009-01-30 Chong Yidong <cyd@stupidchicken.com>
8674
8675 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8676 Initialize it as a relative filename pattern.
8677 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8678 (Fcall_process_region): Simplify temp file creation using
8679 temporary-file-directory.
8680
c279587b
EZ
86812009-01-29 Eli Zaretskii <eliz@gnu.org>
8682
8683 * msdos.c: Rename pending_signals to msdos_pending_signals.
8684 (sig_suspender, sigprocmask): Adjust.
8685
a8fe3242
CY
86862009-01-29 Chong Yidong <cyd@stupidchicken.com>
8687
8688 * keyboard.c (pending_signals): New var.
8689 (poll_for_input, input_available_signal, init_keyboard): Set it.
8690 (process_pending_signals): New function.
8691
8692 * lisp.h (QUIT): Check pending_signals instead of
8693 interrupt_input_pending. Use process_pending_signals.
8694
51d861de 8695 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8696
51d861de 8697 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8698
8699 * sysdep.c (emacs_write): Use process_pending_signals.
8700
8701 * xterm.c (XTread_socket): Update pending_signals.
8702
8703 * w32term.c (w32_read_socket): Update pending_signals.
8704
8705 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8706
6570a1c4
KH
87072009-01-29 Kenichi Handa <handa@m17n.org>
8708
8709 * xftfont.c (xftfont_has_char): New function.
8710 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8711
d72a4afa
AR
87122009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8713
8714 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8715 under GNUstep.
8716 (ns_query_color): New declaration.
8717
8718 * nsterm.m (ns_confirm_quit): New variable.
8719 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8720 (EmacsApp-applicationShouldTerminate:): Use it.
8721 (EmacsPrefsController): Let user set it.
8722 (ns_query_color): New function.
8723 (ns_defined_color): Use it.
8724 (ns_initialize): Drop.
8725 (ns_term_init): Add two lines from ns_initialize(), and set
8726 input_interrupt_mode to nil.
8727
8728 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8729 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8730
9fe78804
KH
87312009-01-28 Kenichi Handa <handa@m17n.org>
8732
8733 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8734 (fontset_get_font_group): Remember that no font-group is specified
8735 for C.
9fe78804 8736
fa57de36
CY
87372009-01-27 Chong Yidong <cyd@stupidchicken.com>
8738
930600e9
CY
8739 * fns.c (concat): Check for string overflow (bug#1787).
8740
fa57de36
CY
8741 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8742 Quadruple undo limits (bug#1501).
8743
7179ce7b
KH
87442009-01-27 Kenichi Handa <handa@m17n.org>
8745
8746 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8747 directly use GT_Get_Char_index.
8748
8749 * xftfont.c (struct xftfont_info): New member `index'.
8750
8751 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8752 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8753
5be8fcc0
CY
87542009-01-26 Kenichi Handa <handa@m17n.org>
8755
8756 * fontset.c (fontset_find_font): Fix handling of non-cons return
8757 value of fontset_get_font_group.
8758 (fontset_font): Revert last change.
8759
19ae3e61
JR
87602009-01-26 Jason Rumney <jasonr@gnu.org>
8761
8762 * w32font.c (w32font_list_internal): Return quickly if registry is
8763 unknown. Simplify final return.
8764 (add_font_entity_to_list): Break complex logic down into more
8765 manageable chunks. Move unknown registry check to
8766 w32font_list_internal.
8767
8612b71a
AR
87682009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8769
8770 Changes to remove Feval calls from GUI under NS.
8771
d8038940
JB
8772 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8773 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8774 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8775
8776 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8777 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8778 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8779 instead of NON_ASCII_KEYSTROKE_EVENT.
8780 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8781 (EmacsApp-applicationShouldTerminate:): Query user.
8782 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8783 instead of Feval.
8784
8785 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8786
8787 * keyboard.c (kbd_buffer_get_event): Check for it.
8788 (keys_of_keyboard): Define lispy keys for
8789 ns-put/unput-working-text.
8790
8791 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8792 versions.
8793 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8794
6288ae55
CY
87952009-01-25 Chong Yidong <cyd@stupidchicken.com>
8796
8797 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8798 setting current_buffer directly. (Bug#2044)
6288ae55 8799
289e7f8f
CY
88002009-01-24 Chong Yidong <cyd@stupidchicken.com>
8801
5ce87308 8802 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8803 any work. (Bug#1952, bug#1990).
5ce87308 8804
64cc3cf6 8805 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8806
b3243e6f
AR
88072009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8808
8809 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8810 (ns_no_defaults): New declaration.
8811 (main): Use it.
e0d2e69a 8812
d900b2af 8813 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8814
d900b2af 8815 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8816
d900b2af
AR
8817 * nsterm.m (ns_no_defaults): New variable.
8818 (ns_initialize): Don't read defaults when ns_no_defaults.
8819 (EmacsView-readSelectionFromPasteboard:)
8820 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8821 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8822 (ns_dumpglyphs_stretch): New function.
8823 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8824 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8825
e0d2e69a
AR
8826 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8827
3ac71f5d
CY
88282009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8829
8830 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8831 call for Sparc64.
8832
3fe53a83
AR
88332009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8834
8835 * nsfns.m:
8836 * nsgui.h:
8837 * nsmenu.m:
8838 * nsselect.m:
8839 * nsterm.h:
8840 * nsterm.m: Remove '23' comments that indicated code added during
8841 update from emacs-20 -> emacs-23.
8842
10f87c6f 88432009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8844
8845 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8846 ns_alternate_modifier. (Bug#1217)
a3b53a85 8847
c7cef62d
AR
8848 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8849 Display all shortcuts, including those w/o super modifier.
8850
575fb8bd
AR
8851 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8852
918b848b
CY
88532009-01-22 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * fileio.c (Vwrite_region_post_annotation_function)
8856 (Vwrite_region_annotation_buffers): New vars.
8857 (build_annotations_unwind): Just reset
8858 Vwrite_region_annotation_buffers.
8859 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8860 Call write-region-post-annotation-function.
8861 (build_annotations): Add to Vwrite_region_annotation_buffers if
8862 buffer changes.
8863
a39e2539
AR
88642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8865
8866 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8867 Tiger.
51d861de
SM
8868 * nsfns.m (ns_do_applescript):
8869 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8870
35ed44db
AR
88712009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8872
8873 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8874
cbe0b5bf
AR
88752009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8876
8877 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8878
6049d3a0
AR
8879 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8880
8881 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8882 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8883 handle Ctrl-tab. (Bug#1841)
8884 (ns_get_color): Use unsigned long long for scanned hex string value.
8885 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8886 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8887 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8888 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8889 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8890 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8891 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8892
d3810c21 8893 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8894 DPI. (Bug#1316)
d3810c21
AR
8895 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8896 values in onTiger section.
4c7077c3 8897
e301e634
CY
88982009-01-19 Chong Yidong <cyd@stupidchicken.com>
8899
7f82490b
CY
8900 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8901 Check return value of font_spec_from_name.
64cc3cf6 8902 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8903
8904 * font.c (font_spec_from_name): Return Qnil if font name could not
8905 be parsed.
8906 (font_parse_name): Treat a `?' character as part of an XLFD.
8907
e301e634
CY
8908 * fns.c (Fsubstring): Doc fix.
8909
1c0db158
KH
89102009-01-19 Kenichi Handa <handa@m17n.org>
8911
51d861de 8912 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8913 (ftfont_list): Likewise.
8914
acf20901
JB
89152009-01-18 Juanma Barranquero <lekktu@gmail.com>
8916
fff4e459
JB
8917 * dbusbind.c (Fdbus_register_signal):
8918 * process.c (conv_sockaddr_to_lisp):
8919 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8920
acf20901
JB
8921 * callproc.c (Fgetenv_internal): Doc fix.
8922
e7abcdfb
CY
89232009-01-16 Chong Yidong <cyd@stupidchicken.com>
8924
8925 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8926 it is not even used.
8927
b60861e6
GM
89282009-01-16 Glenn Morris <rgm@gnu.org>
8929
8930 * font.c (Ffont_variation_glyphs): Silence compiler.
8931
8db52afe
JB
89322009-01-15 Juanma Barranquero <lekktu@gmail.com>
8933
8934 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8935 Reported by David Robinow <drobinow@gmail.com>.
8936
4cddb209
KH
89372009-01-15 Kenichi Handa <handa@m17n.org>
8938
51d861de 8939 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8940
f247f67b
JR
89412009-01-14 Jason Rumney <jasonr@gnu.org>
8942
8943 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8944 never a fontset. (Bug#1562)
f247f67b 8945
f56a4450
KH
89462009-01-14 Kenichi Handa <handa@m17n.org>
8947
8948 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8949 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8950
4e99855e
CY
89512009-01-13 Chong Yidong <cyd@stupidchicken.com>
8952
8953 * font.c (font_clear_prop): If clearing the family, clear the font
8954 width index too.
8955
fff4e459 8956 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8957
24f01470
JB
89582009-01-12 Juanma Barranquero <lekktu@gmail.com>
8959
8960 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8961 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8962 functions, use sizeof.
8963
a41240a3
MR
89642009-01-12 Martin Rudalics <rudalics@gmx.at>
8965
8966 * keyboard.c (read_char): Fix case where last_nonmenu_event
8967 returned a bad value with submenus. (Bug#447)
8968
944636b8
CY
89692009-01-12 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8972 family, clear the font width index too.
8973
0dad7c6f
JR
89742009-01-11 Jason Rumney <jasonr@gnu.org>
8975
8976 * keyboard.c (cmd_error_internal): Exit when errors occur before
8977 frame creation and not in daemon mode. (Bug#1836)
8978
7c2363af
CY
89792009-01-10 Chong Yidong <cyd@stupidchicken.com>
8980
8981 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8982 of a display vector, backtrack.
8983 (try_window_reusing_current_matrix): Check glyph type before
8984 referencing charpos member.
8985
97b1b294
EZ
89862009-01-10 Eli Zaretskii <eliz@gnu.org>
8987
8988 Fix Bug #876:
8989
8990 * coding.c (inhibit_null_byte_detection): New variable.
8991 (detect_coding, detect_coding_system): Don't pay attention to null
8992 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8993 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8994 <inhibit-iso-escape-detection>: Doc fix.
8995
4624b6e3
JR
89962009-01-09 Jason Rumney <jasonr@gnu.org>
8997
8998 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8999 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9000 Only report Unicode Plane 2 fonts as unicode-sip.
9001
323b840c
CY
90022009-01-09 Chong Yidong <cyd@stupidchicken.com>
9003
51d861de
SM
9004 * xfaces.c (Fx_font_family_list): Delete function.
9005 Move compatibility version to faces.el.
323b840c 9006
51d861de 9007 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9008
eba7400d
MR
90092009-01-09 Martin Rudalics <rudalics@gmx.at>
9010
9011 * frame.c (x_set_frame_parameters): Remember requested value for
9012 fullscreen before it's reset by the parameter handler.
9013
4b09796d
GM
90142009-01-09 Glenn Morris <rgm@gnu.org>
9015
9016 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9017 (last_command_event): ... and update all users.
4b09796d
GM
9018 (last_input_char): For clarity, rename to...
9019 (last_input_event): ... and update all users.
9020 (last-command-char, last-input-char): Move to subr.el as aliases.
9021 * cmds.c, commands.h: Update for last_command_char rename.
9022
14ccea62
CY
90232009-01-08 Chong Yidong <cyd@stupidchicken.com>
9024
51d861de 9025 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9026
5f004711
JR
90272009-01-08 Jason Rumney <jasonr@gnu.org>
9028
9029 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9030 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9031 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9032 Don't declare.
fff4e459 9033 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9034 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9035
b71f6f73
KH
90362009-01-07 Kenichi Handa <handa@m17n.org>
9037
50b06221 9038 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9039 remember the coding system used for decoding in
50b06221
KH
9040 coding_system (Bug#1039).
9041
b71f6f73 9042 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9043 breaking the loop. (Bug#870)
b71f6f73
KH
9044 (decode_coding_utf_16, decode_coding_emacs_mule)
9045 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9046 (decode_coding_charset): Likewise.
9047
56f668f7
MR
90482009-01-05 Martin Rudalics <rudalics@gmx.at>
9049
9050 * frame.c (x_set_frame_parameters): Make sure height (width) get
9051 applied when fullwidth (fullheight) is set. (Bug#1522)
9052
5da9424d
JB
90532009-01-04 Juanma Barranquero <lekktu@gmail.com>
9054
9055 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9056 (utc_base): Declare as ULONGLONG, not long double.
9057 (convert_time_raw): Delete.
9058 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9059 (initialize_utc_base): New function.
9060 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9061 (convert_from_time_t): Use initialize_utc_base; compute result with
9062 64-bit arithmetic.
9063 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9064
c4605e09
EZ
90652009-01-03 Eli Zaretskii <eliz@gnu.org>
9066
9acef61c 9067 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9068 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9069 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9070 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9071 [!subprocesses]: Define.
9072 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9073 (Flist_system_processes, Fsystem_process_attributes)
9074 [!subprocesses]: Call list_system_processes and
9075 system_process_attributes instead of returning Qnil.
9076
9acef61c
JB
9077 * dosfns.c (system_process_attributes, list_system_processes):
9078 New functions.
c4605e09
EZ
9079
9080 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9081
9082 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9083 Don't use the default (no-op) implementation.
9084
8b7d0a16
JR
90852009-01-03 Jason Rumney <jasonr@gnu.org>
9086
a6d46bc1
JR
9087 * keyboard.c (parse_modifiers_uncached): Wheel events are
9088 clicks (bug#687).
9089
8b7d0a16
JR
9090 * w32term.c (x_query_colors, x_query_color): New functions.
9091
9092 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9093 (svg_load_image): Cast returned pointers from dynamically loaded
9094 functions. Eliminate W32 specific code.
9095
bfe11752
DN
90962009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9097
89e2438a
DN
9098 * nsfns.m (x_set_foreground_color, x_set_background_color)
9099 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9100 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9101 x_ prefix instead of ns_. Update references.
9102 (syms_of_nsfns): Add a FIXME comment.
9103
9104 * nsterm.m (x_set_cursor_type): New prototype.
9105 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9106
bfe11752
DN
9107 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9108 for Solaris instead of incorrectly providing Qutime and Qcutime.
9109
031da700
EZ
91102009-01-02 Eli Zaretskii <eliz@gnu.org>
9111
9112 * w32.c (process_times): Compute sum of utime and stime.
9113 (system_process_attributes): Add Qtime to the alist.
9114
9115 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9116 and add them to the alist.
9117
9118 * process.c (top level) <Qtime, Qctime>: New variables.
9119 (syms_of_process): staticpro them.
9120 (Fsystem_process_attributes): Add their documentation to the doc
9121 string.
9122
9123 * process.h: Declare Qtime and Qctime.
9124
df23bf08
JR
91252009-01-02 Jason Rumney <jasonr@gnu.org>
9126
9acef61c 9127 * image.c (Qgobject): New symbol.
df23bf08
JR
9128 (syms_of_image): Initialize it.
9129 (init_svg_functions): Load some functions from gobject library.
9130
5bbdf7aa
DN
91312009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9132
9133 * frame.c (make_terminal_frame): Remove redundant code and useless
9134 block.
9135
63136da6
AS
91362009-01-01 Andreas Schwab <schwab@suse.de>
9137
9138 * process.c (conv_sockaddr_to_lisp): Add workaround for
9139 getsockname bug on BSD.
9140
9ef69046
CY
91412009-01-01 Chong Yidong <cyd@stupidchicken.com>
9142
d6fafbe0
CY
9143 * xfns.c (x_create_tip_frame): Set border width of the X window.
9144
51d861de 9145 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9146
f9c34147
JR
91472009-01-01 Jason Rumney <jasonr@gnu.org>
9148
9acef61c 9149 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9150 Don't block input, as per earlier xterm.c changes.
9151
f5497e45
AR
91522008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9153
9154 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9155 (ns_appkit_version_int): New function.
9156 (x-server-version): Use ns_appkit_version_int and follow 21+
9157 convention of returning 3 integers.
9158
c19cab20
KH
91592008-12-30 Kenichi Handa <handa@m17n.org>
9160
9161 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9162 (CHAR_SURROGATE_PAIR_P): New macro.
9163
9164 * font.h (struct font_driver): New member get_variation_glyphs.
9165
9acef61c 9166 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9167 (Ffont_variation_glyphs): New function.
9168 (syms_of_font): Defsubr it.
9169
9170 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9171 ftfont_variation_glyphs.
9172 (setup_otf_gstring): New function.
9173 (ftfont_drive_otf): Use it.
9174 (ftfont_shape_by_flt): Handle variation selector.
9175 (ftfont_variation_glyphs): New function.
9176
28cd591f
MR
91772008-12-30 Martin Rudalics <rudalics@gmx.at>
9178
9179 * frame.c (Vemacs_iconified): Remove.
9180
7f714baf
JR
91812008-12-30 Jason Rumney <jasonr@gnu.org>
9182
9183 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9184 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9185
9d2d22ab
CY
91862008-12-30 Chong Yidong <cyd@stupidchicken.com>
9187
9188 * indent.c (Fvertical_motion): Don't advance iterator if we have
9189 reseated to the desired position.
9190
9191 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9192 checking for pos match.
9193
545312c2
KH
91942008-12-30 Kenichi Handa <handa@m17n.org>
9195
1ede3eb6
KH
9196 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9197 just get the low 8-bit of the code.
9198
545312c2
KH
9199 * font.c (font_intern_prop): Validate str as multibyte.
9200
bd7bbf29
DN
92012008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9202
31e0750e
DN
9203 * dispextern.h (struct face): Move lface and hash from the middle
9204 of bitfields.
9205
bd7bbf29
DN
9206 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9207
b5672e7c
DN
92082008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9209
9210 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9211 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9212 instead of intervals.h.
9213
d704470f
AS
92142008-12-26 Andreas Schwab <schwab@suse.de>
9215
9216 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9217 cons.
9218
54b33868
MR
92192008-12-26 Martin Rudalics <rudalics@gmx.at>
9220
9221 * textprop.c (Qminibuffer_prompt): New variable.
9222 (syms_of_textprop): Initialize it.
9223 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9224 in minibuffer-prompt face. (Bug#1662)
9225
40b615d6
JR
92262008-12-25 Jason Rumney <jasonr@gnu.org>
9227
9228 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9229
baae5c2d
JR
92302008-12-24 Jason Rumney <jasonr@gnu.org>
9231
9232 * ralloc.c (r_alloc_reset_variable): New function.
9233
9234 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9235 record of what points where. (Bug#716)
baae5c2d 9236
a9051c88
DN
92372008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9238
9239 * minibuf.c (read_minibuf): Follow the non-interactive case when
9240 running as a daemon, before detaching.
9241
8b146312
AS
92422008-12-22 Andreas Schwab <schwab@suse.de>
9243
9244 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9245 * gtkutil.c (free_widget_value): Use xfree instead of free.
9246
56f2de10
MR
92472008-12-22 Martin Rudalics <rudalics@gmx.at>
9248
9249 * frame.c (delete_frame): New function derived from
9250 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9251 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9252 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9253 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9254 * frame.h: Extern delete_frame.
9255 * window.c (window_loop):
9256 * terminal.c (delete_terminal):
9257 * xterm.c (x_connection_closed):
9258 * xfns.c (Fx_hide_tip):
9acef61c 9259 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9260
1fc200d6
JR
92612008-12-21 Jason Rumney <jasonr@gnu.org>
9262
9263 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9264 when character maps to .notdef character.
9265
5e252df2
SM
92662008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9267
9268 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9269
99b72cc4
JR
92702008-12-20 Jason Rumney <jasonr@gnu.org>
9271
9272 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9273 a graphical frame on Windows. (Bug#1325)
99b72cc4 9274
acc49a52
JD
92752008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9276
9277 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9278
6ea15123
CY
92792008-12-20 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * minibuf.c (Fread_buffer): Doc fix.
9282
b2dab6c8
JR
92832008-12-20 Jason Rumney <jasonr@gnu.org>
9284
54ea0c87 9285 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9286 server name in UNC paths. (Bug#719)
54ea0c87 9287
b2dab6c8 9288 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9289 charbuf. (Bug#1035)
b2dab6c8 9290
6d1921be
DN
92912008-12-19 Daniel Engeler <engeler@gmail.com>
9292
9293 * sysdep.c (serial_configure): Fix typo.
9294
53934c98
DN
92952008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9296
9297 * sysdep.c: Include alloca.h.
f4f634e8
DN
9298 (system_process_attributes): Add implementation for Solaris.
9299
9300 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9301
06e111a6
DN
93022008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 Reorganize implementation of Flist_system_processes and
9305 Fsystem_process_attributes. No functional changes.
9306 * process.c: Don't #include pwd.h, grp.h and limits.h.
9307 (Flist_system_processes): Just call list_system_processes.
9308 (Fsystem_process_attributes): Just call system_process_attributes.
9309 (procfs_list_system_processes, time_from_jiffies)
9310 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9311 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9312
9313 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9314 (list_system_processes): Rename from
9315 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9316 Provide a do nothing implementation.
9317 (system_process_attributes): Rename from
9318 procfs_list_system_processes.
9319 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9320 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9321
9322 * w32.c (list_system_processes): Rename from
9323 w32_list_system_processes.
9324 (system_process_attributes): Rename from
9325 w32_system_process_attributes.
9326
9327 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9328
9329 * process.h (w32_list_system_processes)
9330 (w32_system_process_attributes): Remove.
362654a6
JB
9331 (list_system_processes, system_process_attributes):
9332 New prototypes.
06e111a6 9333
6a705b23
KH
93342008-12-19 Kenichi Handa <handa@m17n.org>
9335
9336 * xfont.c (xfont_decode_coding_xlfd): New function.
9337 (xfont_encode_coding_xlfd): New function.
9338 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9339 (xfont_list): Decode and encode XLFD by iso-8859-1.
9340 (xfont_match): Likewise.
9341 (xfont_list_family): Likewise.
9342 (xfont_open): Likewise.
9343
d66c0241 9344 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9345 names are utf-8.
9346
d66c0241 9347 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9348 names are utf-8.
9349
5a130941
JD
93502008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9351
9352 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9353 changed.
bfd20325
JD
9354 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9355 clicked on a detached tool bar button.
5a130941 9356
fd95644b
DN
93572008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9358
9359 * emacs.c (main): Print and error and exit when no data is read
9360 from the pipe.
9361
e6eee6ae
JR
93622008-12-17 Jason Rumney <jasonr@gnu.org>
9363
9364 * w32font.c (w32font_has_char): Always return -1.
9365
a35dd56b
KH
93662008-12-16 Kenichi Handa <handa@m17n.org>
9367
9368 * font.c (font_open_entity): Fix previous change.
9369
0e3635c2
DN
93702008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9371
9372 * process.c: Include <limits.h>.
9373
d4835507 93742008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9375
9376 * font.c (font_update_drivers): Fix mistake in reconstructing the
9377 driver list.
9378
93792008-12-16 Chong Yidong <cyd@stupidchicken.com>
9380
9381 * font.c (font_clear_cache): Fix format of font cache data.
9382
e2cbc401
CY
93832008-12-15 Chong Yidong <cyd@stupidchicken.com>
9384
9385 * xftfont.c (xftfont_open): Free Xft font pattern if
9386 XftFontOpenPattern fails.
9387
9388 * xterm.c (x_free_frame_resources): Remove extraneous call to
9389 free_frame_faces.
9390
b131d535
CY
93912008-12-13 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * xterm.c (x_delete_display): Move xim_close_dpy call to
9394 x_delete_terminal.
9395 (x_delete_terminal): Call xim_close_dpy.
9396
e6df5336
JR
93972008-12-13 Jason Rumney <jasonr@gnu.org>
9398
9399 * w32font.c (intern_font_name): New function.
9400 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9401 (w32font_open_internal, Fx_select_font): Decode font name.
9402 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9403
9404 * w32font.h (intern_font_name): Declare new function.
9405
9406 * w32uniscribe.c (add_opentype_font_name_to_list):
9407 Use intern_font_name.
9408
20d68145
CY
94092008-12-13 Chong Yidong <cyd@stupidchicken.com>
9410
9f2554de
CY
9411 * frame.c (Fdelete_frame): Call free_font_driver_list.
9412
3d9bec9a
CY
9413 * font.c (free_font_driver_list): Implement missing function.
9414
20d68145
CY
9415 * w32term.c (w32_term_init): Don't initialize the image cache
9416 here; it will be done in init_frame_faces.
9417
9418 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9419 (struct x_display_info): Remove unused member null_pixel. New
9420 member xim_callback_data.
9421
9422 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9423 (xim_initialize): Save pointer to callback function data.
9424 (xim_close_dpy): Free callback function data. Call XCloseIM,
9425 reverting 2008-11-04 change by David Smith.
9426 (x_term_init): Don't initialize the image cache here; it will be
9427 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9428 (x_delete_display): Free x_dnd_atoms member.
9429
96f9306b
KH
94302008-12-13 Kenichi Handa <handa@m17n.org>
9431
6dec9044
JB
9432 * font.c (font_rescale_ratio): Moved from xfaces.c.
9433 Argument type changed. Handle a font-spec too.
96f9306b 9434 (font_score): Check Vface_font_rescale_alist.
6dec9044 9435 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9436
9437 * xfaces.c (font_rescale_ratio): Moved to font.c.
9438
8d5b4964
CY
94392008-12-13 Chong Yidong <cyd@stupidchicken.com>
9440
9441 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9442
e6df5336
JR
94432008-12-12 Jason Rumney <jasonr@gnu.org>
9444
9445 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9446 Vwindow_system_version to the real w32 major version.
9447
97c6058a
DN
94482008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9449
9450 * term.c (init_tty): Move setting the terminal name before the
9451 potential user: maybe_fatal.
9452
ec4e88d7
CY
94532008-12-11 Chong Yidong <cyd@stupidchicken.com>
9454
d4835507
JB
9455 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9456 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9457
b4233ec9
JR
94582008-12-11 Jason Rumney <jasonr@gnu.org>
9459
8ec71e23 9460 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9461 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9462
b4233ec9 9463 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9464 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9465
011a0143
JB
94662008-12-11 Juanma Barranquero <lekktu@gmail.com>
9467
9468 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9469
3c309f34
JB
94702008-12-11 Juanma Barranquero <lekktu@gmail.com>
9471
9472 * process.c (Fsystem_process_attributes, syms_of_process):
9473 Fix typo in name of Ssystem_process_attributes.
9474 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9475
fedc6ab5
JB
94762008-12-11 Juanma Barranquero <lekktu@gmail.com>
9477
9478 * syntax.c (Fmodify_syntax_entry): Doc fix.
9479
ba3de0e8
JB
94802008-12-10 Juanma Barranquero <lekktu@gmail.com>
9481
9482 * font.c (Ffont_spec): Move usage to end of docstring.
9483
174f1c74
JR
94842008-12-10 Jason Rumney <jasonr@gnu.org>
9485
9486 * w32font.c (Qcham): New symbol.
9487 (font_supported_scripts): Add cham, and comments for other new
9488 scripts in bitfield from OpenType spec.
9d32f818
JR
9489 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9490 contain characters beyond the bmp.
174f1c74 9491
7b649478
KH
94922008-12-10 Kenichi Handa <handa@m17n.org>
9493
9494 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9495 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9496 Qunicode_sip.
9497
2133e2d1
JB
94982008-12-10 Juanma Barranquero <lekktu@gmail.com>
9499
9500 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9501 (Fcoding_system_put): Use QCdefault_char.
9502 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9503
9af886ee
CY
95042008-12-09 Chong Yidong <cyd@stupidchicken.com>
9505
74d819eb
CY
9506 * xftfont.c (syms_of_xftfont): Fix typo.
9507
4ccfa1c0 9508 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9509
7c19d3ae
DN
95102008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9511
9512 * emacs.c (main): Close daemon_pipe on exec.
9513
567826bb
CY
95142008-12-08 Chong Yidong <cyd@stupidchicken.com>
9515
9516 * termchar.h (struct tty): New members termcap_term_buffer and
9517 termcap_strings_buffer.
9518
9519 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9520 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9521 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9522 All callers changed.
9523 (init_tty): Store termcap data and string buffers in new struct
9524 tty members termcap_term_buffer and termcap_strings_buffer.
9525 (delete_tty): Free them.
4ccfa1c0 9526 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9527
aa96c42b
SZ
95282008-12-07 Seiji Zenitani <zenitani@mac.com>
9529
9530 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9531 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9532
b7e1d896
CY
95332008-12-06 Chong Yidong <cyd@stupidchicken.com>
9534
9535 * coding.c (make_conversion_work_buffer): Disable buffer
9536 modification hooks in the work buffer.
9537
b5ec91a5
EZ
95382008-12-05 Eli Zaretskii <eliz@gnu.org>
9539
9540 * process.c (procfs_system_process_attributes): If `nread' has a
9541 negative value, assign zero to it.
9542
a5d2a52b
CY
95432008-12-05 Chong Yidong <cyd@stupidchicken.com>
9544
68c5540b 9545 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9546
7bf1bb21
KH
95472008-12-05 Kenichi Handa <handa@m17n.org>
9548
9549 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9550 second character is a combining character.
9551
2fdc7d00
EZ
95522008-12-05 Eli Zaretskii <eliz@gnu.org>
9553
9554 * process.c (procfs_system_process_attributes): Don't use cmd,
9555 cmdsize, and q without initializing them first.
9556
bf6bfba8
JR
95572008-12-04 Jason Rumney <jasonr@gnu.org>
9558
9559 * w32font.c (w32font_draw): Initialize orig_clip before getting
9560 it, and delete it when finished.
9561
a3b1a468
DN
95622008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9563
9564 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9565 case when running as a daemon before detaching.
9566
8b8be8eb
JB
95672008-12-03 Juanma Barranquero <lekktu@gmail.com>
9568
805f2638 9569 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9570
b1bde622
KH
95712008-12-03 Kenichi Handa <handa@m17n.org>
9572
e500c47d
KH
9573 * font.c (font_at): Set `multibyte' at first.
9574
ca516334
KH
9575 * coding.c (decode_coding_charset): Check type of an element of
9576 vector VALIDS.
7bf1bb21 9577 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9578
4ccfa1c0 9579 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9580 (font_for_char): Likewise.
9581
1e5ecd37
CY
95822008-12-03 Chong Yidong <cyd@stupidchicken.com>
9583
d5b01609 9584 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9585 (font_update_lface): Handle fonts with corrupted size specs,
9586 i.e. non-int and non-float.
d5b01609 9587
11e3a6e4 9588 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9589 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9590 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9591
ab06788b
CY
9592 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9593
1e5ecd37 9594 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9595 underline_minimum_offset for underline position.
1e5ecd37 9596
63c125ab
DN
95972008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9598
9599 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9600
9601 * character.c (c_string_width): Specify the type for LEN.
9602
3a8406e1
KH
96032008-12-03 Kenichi Handa <handa@m17n.org>
9604
4ccfa1c0 9605 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9606 (decode_coding_utf_8): Likewise.
4ccfa1c0 9607 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9608 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9609
651df7d9
CY
96102008-12-02 Chong Yidong <cyd@stupidchicken.com>
9611
9612 * keyboard.c (make_lispy_position): Only use PT if the selected
9613 window is current.
9614
1f625c6c
AS
96152008-12-02 Andreas Schwab <schwab@suse.de>
9616
f7741ce9
AS
9617 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9618
1f625c6c
AS
9619 * doprnt.c (doprnt1): Fix size of charbuf.
9620
92bc2678
CY
96212008-12-02 Chong Yidong <cyd@stupidchicken.com>
9622
9623 * keyboard.c (timer_check): Revert last change.
9624
93b9e8cc
JB
96252008-12-02 Juanma Barranquero <lekktu@gmail.com>
9626
9627 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9628
fd7a37d5
JB
96292008-12-01 Juanma Barranquero <lekktu@gmail.com>
9630
9631 * makefile.w32-in: Update dependencies.
9632 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9633
c115043b
AS
96342008-12-01 Andreas Schwab <schwab@suse.de>
9635
9636 * font.c (register_font_driver): Use xmalloc.
9637 (font_put_frame_data): Likewise.
9638
f5668d2a
CY
96392008-12-01 Chong Yidong <cyd@stupidchicken.com>
9640
860d96be
CY
9641 * xfaces.c (realize_x_face): Make abort condition clearer.
9642
f5668d2a
CY
9643 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9644
379c17e7
CY
96452008-11-30 Chong Yidong <cyd@stupidchicken.com>
9646
9647 * keyboard.c (timer_check): After a timer runs, ensure that the
9648 selected window's buffer is current.
9649
35f36d65
JB
96502008-11-30 Juanma Barranquero <lekktu@gmail.com>
9651
f952c61c
JB
9652 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9653 It was accidentally restored by the Unicode merge.
9654
35f36d65
JB
9655 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9656
b23077df
JB
96572008-11-29 Juanma Barranquero <lekktu@gmail.com>
9658
9659 * w32proc.c: Include "coding.h".
9660 (Fw32_short_file_name): Encode filename passed to Windows API.
9661 (Fw32_long_file_name): Encode filename passed to Windows API and
9662 decode back the result. (Bug#1433)
9663
b8ebe9dd
KH
96642008-11-29 Kenichi Handa <handa@m17n.org>
9665
8cc53f96
KH
9666 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9667 not before accessing it.
9668
b8ebe9dd
KH
9669 * charset.c (Fdefine_charset_internal): After calculating
9670 min_char, max_char, and fastmap, copy the charset structure again.
9671 (encode_char): Fix the previous change.
9672
59bc82c0
SZ
96732008-11-28 Seiji Zenitani <zenitani@mac.com>
9674
9675 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9676
9677 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9678
9679 * nsterm.m (x_set_frame_alpha): New function.
9680
32247e3d
EZ
96812008-11-27 Eli Zaretskii <eliz@gnu.org>
9682
9683 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9684
b003e5ff
JB
96852008-11-27 Juanma Barranquero <lekktu@gmail.com>
9686
9687 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9688 pointer to check_face_name.
9689
708550f5
KH
96902008-11-27 Kenichi Handa <handa@m17n.org>
9691
9692 * category.h (SET_CATEGORY_SET): Call set_category_set.
9693 (set_category_set): Extern it.
9694
9695 * category.c (hash_get_category_set): New function.
9696 (Fmodify_category_entry): Adjusted for the change of
9697 char_table_ref_and_range. Call hash_get_category_set to get a
9698 category set to store in the table.
9699
9700 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9701 Funify_charset.
9702
2ae37cf0 9703 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9704 (DECODE_CHAR): Check if the decoder vector is ready.
9705 (ENCODE_CHAR): Check if the encoder char-table is ready.
9706 (maybe_unify_char): Extern it.
9707
9708 * charset.c (Vchar_unified_charset_table): Delete it.
9709 (inhibit_load_charset_map): New variable.
9710 (temp_charset_work): New variable.
9711 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9712 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9713 New macros.
9714 (load_charset_map): Meaning of control_flag changed. If
9715 inhibit_load_charset_map is nonzero, setup a table in
9716 temp_charset_work.
9717 (load_charset): New argument control_flag.
9718 (map_charset_for_dump): New function.
9719 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9720 map_charset_for_dump.
9721 (Fdefine_charset_internal): If the charset method is MAP, load
9722 mapping tables by calling load_charset.
9723 (Funify_charset): Don't load a mapping table but directly set
9724 Vchar_unify_table.
9725 (maybe_unify_char): New function.
9726 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9727 Handle the case of inhibit_load_charset_map being nonzero.
9728 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9729 Handle the case of inhibit_load_charset_map being nonzero.
9730 (Fclear_charset_maps): Just free temp_charset_work.
9731 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9732 variable.
9733
9734 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9735 change of char_table_ref_and_range.
9736 (char_table_ref_and_range): Change the meaning of argument FROM
9737 and TO. Now the caller must provide initial values for *FROM
9738 and *TO.
9739
9740 * fontset.c (fontset_add): Adjusted for the change of
9741 char_table_ref_and_range.
9742 (fontset_get_font_group): Likewise.
9743 (Ffontset_info): Likewise.
9744
9745 * keymap.c (describe_vector): Adjusted for the change of
9746 char_table_ref_and_range. For char-table, put boundary between
9747 non-ASCII and 8-bit characters.
9748
9749 * print.c (print_object): For bool-vector, delete unnecessary
9750 check of ASCII_BYTE_P.
9751
9196133b
JR
97522008-11-26 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9755 leading in font height. (Bug#879)
9196133b 9756
9f688acf
GM
97572008-11-26 Glenn Morris <rgm@gnu.org>
9758
9759 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9760 redefinition with ifdef. (Bug#1383)
9761
90d19aff
AR
97622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9763
9764 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9765
4ccfa1c0 97662008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9767
9768 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9769 New EmacsView methods.
9770 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9771 Fixes bug #1048,1357,1414.
9772
97732008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9774
9775 Fix bug #1362.
9776 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9777 is not an indexed color.
9778 * nsterm.m (free_indexed_color): Add argument checking.
9779 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9780
e7d5ecb3
CY
97812008-11-24 Chong Yidong <cyd@stupidchicken.com>
9782
9783 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9784 Document confirm-after-completion value for
9785 minibuffer-completion-confirm.
9786
c285743c
JR
97872008-11-24 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9790 warning.
9791
b0857706
JR
97922008-11-23 Jason Rumney <jasonr@gnu.org>
9793
9794 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9795 restored before returning.
9796
9797 * w32font.c (check_face_name): New function.
9798 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9799 fonts. (Bug#642)
b0857706 9800
ee50ff07
MR
98012008-11-22 Martin Rudalics <rudalics@gmx.at>
9802
9803 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9804 confirm-nonexistent-file-or-buffer in doc-string.
9805
b8ff72fa
SM
98062008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9807
9808 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9809 Fix copy/paste typo. Add checks.
9810
cee53ed4
KH
98112008-11-21 Kenichi Handa <handa@m17n.org>
9812
9813 * coding.c (detect_coding_iso_2022): Reject invalid composition
9814 sequence.
9815 (DECODE_COMPOSITION_START): If the current source is the last
9816 block, and the current composition doesn't end, regard this
9817 sequence as invalid.
9818 (decode_coding_iso_2022): Handle invalid composition sequence.
9819
f6ef1e65
MR
98202008-11-20 Martin Rudalics <rudalics@gmx.at>
9821
9822 * window.c (coordinates_in_window): Don't return
9823 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9824 line when the window is not the rightmost one. (Bug#1372)
9825
e08b1705
MR
98262008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9827
9828 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9829
ad98e89f
EZ
98302008-11-15 Eli Zaretskii <eliz@gnu.org>
9831
9832 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9833 and bright_bg if noninteractive is non-zero.
9834
fb098a4b
CY
98352008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9836
9837 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9838 x_draw_glyph_string_background.
9839
9840 * w32term.c (x_draw_glyph_string): Likewise.
9841
ce952b6e
CY
98422008-11-15 Chong Yidong <cyd@stupidchicken.com>
9843
9844 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9845 the next glyph string once past the overhang width.
9846
9847 * nsterm.m (ns_draw_glyph_string): Likewise.
9848
9849 * w32term.c (x_draw_glyph_string): Likewise.
9850
26ea7079
CY
98512008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9852
9853 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9854 double file close.
9855
1c33c906
MR
98562008-11-14 Martin Rudalics <rudalics@gmx.at>
9857
9858 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9859 dedicated status of window before attempting to display another
9860 buffer in it.
9861
8fc29035
JB
98622008-11-14 Juanma Barranquero <lekktu@gmail.com>
9863
9864 * msdos.c (Fmsdos_long_file_names):
9865 (syms_of_msdos) <dos-unsupported-char-glyph>:
9866 * dosfns.c (Fint86): Fix typos in docstrings.
9867
55fb4286
EZ
98682008-11-14 Eli Zaretskii <eliz@gnu.org>
9869
9870 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9871
3fda0315
KY
98722008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9873
9874 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9875
7e849c17
CY
98762008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9877
9878 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9879
9880 * frame.h: Negative alpha means "don't touch".
9881
9882 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9883
9884 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9885
b9fd67bd
DN
98862008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9887
9888 * hftctl.c:
9889 * chpdef.h:
9890 * acldef.h: Remove files used only for systems no longer supported.
9891
9892 * Makefile.in: Fix .o alphabetical ordering.
9893 (hftctl.o): Remove dependency, file removed.
9894 (keymap.o, print.o): Depend on charset.h.
9895
d5998e03
KH
98962008-11-10 Kenichi Handa <handa@m17n.org>
9897
2ae37cf0 9898 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9899
be70e183
CY
99002008-11-08 Chong Yidong <cyd@stupidchicken.com>
9901
9902 * dired.c (file_name_completion): If completion_ignore_case is
9903 enabled, ignore case when checking completion-regexp-list.
9904
7cf94eac
EZ
99052008-11-08 Eli Zaretskii <eliz@gnu.org>
9906
9907 * vm-limit.c (get_lim_data): Fix last change.
9908
ee107a89
KH
99092008-11-08 Kenichi Handa <handa@m17n.org>
9910
9911 * character.c (Fget_byte): New function.
9912 (syms_of_character): Defsubr Fget_byte.
9913
5fd15622
CY
99142008-11-07 Chong Yidong <cyd@stupidchicken.com>
9915
9916 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9917 cursor position is valid after scrolling.
9918
13d62fad
JB
99192008-11-06 Juanma Barranquero <lekktu@gmail.com>
9920
9921 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9922
a1dd2936
GM
99232008-11-06 Glenn Morris <rgm@gnu.org>
9924
9925 * xterm.c (handle_one_xevent): Don't let popup menus cause
9926 mouse-autoselect-window related window switching. (Bug#1261)
9927
860cd236
CY
99282008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9929
9930 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9931
653a3150
AS
99322008-11-04 Andreas Schwab <schwab@suse.de>
9933
9934 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9935
870f5cac
CY
99362008-11-03 Chong Yidong <cyd@stupidchicken.com>
9937
9938 * xfns.c (Fx_wm_set_size_hint): New function.
9939
1e02f3cb
MR
99402008-11-03 Martin Rudalics <rudalics@gmx.at>
9941
9942 * textprop.c (Fprevious_single_char_property_change): Return 0
9943 when there's no change in a string. (Bug#1301)
9944
e630dfc6
MR
99452008-11-02 Martin Rudalics <rudalics@gmx.at>
9946
9947 * frame.c (do_switch_frame): New argument NORECORD passed to
9948 Fselect_window.
9949 (Fselect_frame): New argument NORECORD passed to
9950 do_switch_frame.
9951 (Fset_frame_selected_window): New argument NORECORD passed to
9952 Fselect_frame.
9953 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9954 in call of do_switch_frame.
9955 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9956 Handle NORECORD argument in call of Fselect_frame.
9957 * lisp.h (do_switch_frame, Fselect_frame)
9958 (Fset_frame_selected_window): Adjust declarations.
9959 * window.c (select_frame_norecord): New function.
9960 (run_window_configuration_change_hook): Use it and call
9961 Fselect_frame with NORECORD set.
9962 (Fselect_window): Pass NORECORD to Fselect_frame.
9963 (Fset_window_configuration): Handle NORECORD argument in call of
9964 do_switch_frame.
9965 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9966 Fset_frame_selected_window.
9967 * keyboard.c (command_loop_1): Handle NORECORD in call of
9968 Fselect_frame (currently ifdefd).
9969
9020b223
GM
99702008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9971
9972 * emacs.c (USAGE2): Untabify.
9973
793ffee8
SM
99742008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9975
9976 * composite.c (fill_gstring_header): Fix copy/paste typo.
9977
ab6d1131
MR
99782008-10-31 Martin Rudalics <rudalics@gmx.at>
9979
9980 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9981 (Fother_window): Rename argument and rewrite doc-string.
9982 (select_window_norecord): Fix return value. (Bug#1276)
9983
601a9cf1
JB
99842008-10-30 Juanma Barranquero <lekktu@gmail.com>
9985
9986 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9987 new frames overriding foreground for tooltips. Based on similar patch
9988 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9989
813b0652
CY
99902008-10-29 Chong Yidong <cyd@stupidchicken.com>
9991
9992 * emacs.c (Fdaemon_initialized): Initialize nfd.
9993
4414f58f
MR
99942008-10-29 Martin Rudalics <rudalics@gmx.at>
9995
9996 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9997 (Fwindow_text_height): Clarify doc-strings.
9998 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9999 doc-string of window-scroll-functions.
10000
ecdcaa09
RS
100012008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10002
10003 * category.c (syms_of_category): Fix typo in docstring.
10004
23fe745a
JB
100052008-10-28 Juanma Barranquero <lekktu@gmail.com>
10006
10007 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10008 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10009 Fix typos in docstrings.
10010
ff808935
DN
100112008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10012
10013 * emacs.c (daemon_pipe): Make non-static.
10014 (IS_DAEMON): Move definition ...
10015 * lisp.h (IS_DAEMON): ... here.
10016 (daemon_pipe): Declare.
10017 (is_daemon): Remove.
10018 * dispnew.c (init_display): Use IS_DAEMON.
10019
fc012771
SM
100202008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10021
10022 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10023 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10024
10025 * emacs.c (is_daemon): Remove.
10026 (main): Don't set is_daemon.
10027 (IS_DAEMON): New macro.
10028 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10029 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10030 parent exits.
10031 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10032
d8bdbe6f
CY
100332008-10-27 Chong Yidong <cyd@stupidchicken.com>
10034
d1a072bf
CY
10035 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10036 over-sized glyph, draw it with the default glyph width.
10037
e2e325aa
CY
10038 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10039 glyph, draw it with the default glyph width.
10040
10041 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10042 glyph, draw it with the default glyph width.
10043
d8bdbe6f
CY
10044 * xdisp.c (try_scrolling): When computing the distance from the
10045 scroll margin to PT, try moving some distance past the window
10046 bottom before giving up.
10047
7bfac547
MR
100482008-10-27 Martin Rudalics <rudalics@gmx.at>
10049
10050 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10051 (Fset_window_buffer): Explain in doc-string that a window can be
10052 "strongly" dedicated to its buffer.
10053
4ff029f6
DN
100542008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * emacs.c (daemon_name): New variable.
10057 (main): Deal with --daemon=SERVER_NAME.
10058 (Fdaemonp): Return a name if one was passed to --daemon.
10059
5790ef40
DN
100602008-10-26 Romain Francoise <romain@orebokech.com>
10061
f9bd0df9 10062 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10063 (main): Create a pipe before forking, make the parent exit only after
10064 the child has closed its end of the pipe. Move closing the
10065 descriptors ...
10066 (Fdaemon_initialized): ... here. New function.
10067
f5385255
SM
100682008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10069
4d632321
SM
10070 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10071 the previous unoptimized table.
10072
f5385255
SM
10073 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10074 the distinction between non-nil and non-t value of `dedicated'.
10075
6c56a0f3
CY
100762008-10-25 Chong Yidong <cyd@stupidchicken.com>
10077
10078 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10079 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10080
fec89261
MR
100812008-10-25 Martin Rudalics <rudalics@gmx.at>
10082
10083 * window.c (Fget_buffer_window, Fdelete_windows_on)
10084 (Freplace_buffer_in_windows): Make buffer argument optional and
10085 rename to buffer_or_name.
10086
34fcddd0
CY
100872008-10-24 Chong Yidong <cyd@stupidchicken.com>
10088
f5385255
SM
10089 * xdisp.c (handle_single_display_spec, handle_display_prop):
10090 Undo 2005-05-16 change.
34fcddd0
CY
10091 (handle_stop): Pop iterator if it's loaded with an empty string.
10092 (get_overlay_strings_1): Don't save iterator if it's loaded with
10093 an empty string (bug#1201).
10094
064766f2
KH
100952008-10-24 Kenichi Handa <handa@m17n.org>
10096
10097 * ftfont.c (ftfont_otf_features): Fix previous change.
10098 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10099 calling ftfont_otf_features.
10100
f9bd0df9 101012008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10102
10103 * font.c (font_match_p): Fix for the case that a vector of
10104 characters is in script-representative-chars.
10105
1dae9197
MA
101062008-10-24 Michael Albinus <michael.albinus@gmx.de>
10107
10108 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10109 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10110 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10111 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10112 macro. (Bug#1186)
1dae9197 10113
f9bd0df9 101142008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10115
10116 * s/sol2-10.h: New file.
10117
878a4584
JB
101182008-10-23 Juanma Barranquero <lekktu@gmail.com>
10119
10120 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10121 poor beast has survived 9+ years and the jump from xterm.c!).
10122
cd265ca6
MR
101232008-10-23 Martin Rudalics <rudalics@gmx.at>
10124
10125 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10126 Reword doc-string.
f5385255 10127 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10128
472a4dc9
JB
101292008-10-23 Juanma Barranquero <lekktu@gmail.com>
10130
10131 * character.c (syms_of_character) <script-representative-chars>:
10132 <unicode-category-table>: Doc fixes.
10133
159bd5a2
NF
101342008-10-23 Noah Friedman <friedman@splode.com>
10135
10136 * coding.c (make_conversion_work_buffer): Check that
10137 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10138 Fget_buffer_create.
10139
49f9c344
KH
101402008-10-23 Kenichi Handa <handa@m17n.org>
10141
10142 * font.c (font_add_log): Check the values of extra properties.
10143
12bb3111
MR
101442008-10-22 Martin Rudalics <rudalics@gmx.at>
10145
10146 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10147 Reword doc-string.
10148 (Fset_window_parameter): Use NILP.
10149 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10150 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10151
bbeb4e99
JB
101522008-10-22 Juanma Barranquero <lekktu@gmail.com>
10153
10154 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10155
101562008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10157
10158 * nsfns.m (ns_appkit_version): New function.
10159 (x-server-version): Use it.
10160 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10161 (x-server-vendor): Don't check_ns().
10162
10163 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10164
a9b555d3
JB
101652008-10-22 Juanma Barranquero <lekktu@gmail.com>
10166
10167 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10168 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10169
4626499f
KH
101702008-10-22 Kenichi Handa <handa@m17n.org>
10171
e3681952
KH
10172 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10173 scripts.
10174
4626499f
KH
10175 * category.c (word_boundary_p): Check scripts instead of charset.
10176 Handle nil value in word-separating-categories and
10177 word-combining-categories.
10178 (syms_of_category): Fix docstrings of word-separating-categories
10179 and word-combining-categories.
10180
1560f91a
EZ
101812008-10-21 Eli Zaretskii <eliz@gnu.org>
10182
10183 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10184 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10185
f4668441
MR
101862008-10-21 Martin Rudalics <rudalics@gmx.at>
10187
10188 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10189 Rename arg "buffer" to "buffer_or_name".
10190 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10191 it optional.
10192 (no_switch_window): Remove since the return value is not used.
a9b555d3 10193 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10194 Consider window as dedicated when Fwindow_dedicated_p returns a
10195 non-nil value.
10196 * lisp.h: Remove prototype for no_switch_window.
10197
fd75ddb2
JD
101982008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10199
10200 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10201 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10202
07295713
KH
102032008-10-21 Kenichi Handa <handa@m17n.org>
10204
10205 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10206 check Vlatin_extra_code_table.
10207
712adc82
EZ
102082008-10-20 Eli Zaretskii <eliz@gnu.org>
10209
10210 * fileio.c (Fset_file_modes): Doc fix.
10211
f549eb0b
MA
102122008-10-19 Michael Albinus <michael.albinus@gmx.de>
10213
10214 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10215 in arrays.
10216
aac0c6e3
MR
102172008-10-19 Martin Rudalics <rudalics@gmx.at>
10218
10219 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10220 Mention kill-buffer in doc-string.
10221 (Fset_window_buffer): Reinsert tem check removed in last commit.
10222 (Fenlarge_window, Fshrink_window): Have argument names and
10223 doc-string follow Elisp manual more closely.
10224
102252008-10-18 Eli Zaretskii <eliz@gnu.org>
10226
10227 * fileio.c (Fset_file_modes): Doc fix.
10228
102292008-10-18 Martin Rudalics <rudalics@gmx.at>
10230
10231 * window.c (Fwindow_width, Fset_window_start)
10232 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10233 (Fdelete_windows_on, Freplace_buffer_in_windows):
10234 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10235 (Fwindow_dedicated_p): Make window argument optional.
10236 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10237 (Fset_window_buffer): Respect any non-nil dedicated value for
10238 window. Rename "buffer" argument to "buffer_or_name".
10239
102402008-10-18 Ulrich Mueller <ulm@gentoo.org>
10241
10242 * m/sh3.h: New file, machine description for SuperH.
10243
102442008-10-17 Martin Rudalics <rudalics@gmx.at>
10245
10246 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10247
102482008-10-17 Kenichi Handa <handa@m17n.org>
10249
10250 * ftfont.c (ftfont_otf_features): Fix indexing
10251 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10252
102532008-10-16 Magnus Henoch <mange@freemail.hu>
10254
10255 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10256 (Fdbus_call_method_asynchronously): Ditto.
10257 This change makes C-h f display the argument list.
10258
102592008-10-16 Chong Yidong <cyd@stupidchicken.com>
10260
10261 * fileio.c (Fexpand_file_name): Doc fix.
10262
10263 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10264 of :foreground and :background equivalent to unspecified (20.x
10265 compatibility).
10266
102672008-10-15 Eli Zaretskii <eliz@gnu.org>
10268
10269 * buffer.c (syms_of_buffer): Doc fix.
10270
102712008-10-14 Kenichi Handa <handa@m17n.org>
10272
10273 * font.c (font_clear_prop): When clearing font width, clear the
10274 average width field too.
10275
102762008-10-12 Andreas Schwab <schwab@suse.de>
10277
10278 * ftfont.c (ftfont_shape_by_flt): Make static.
10279 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10280
10281 * font.c: Don't include <m17n-flt.h>.
10282
102832008-10-10 Eli Zaretskii <eliz@gnu.org>
10284
10285 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10286
102872008-10-09 Eli Zaretskii <eliz@gnu.org>
10288
10289 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10290 away code.
10291
102922008-10-09 Chong Yidong <cyd@stupidchicken.com>
10293
10294 * dispnew.c (update_text_area): Avoid looping due to large glyph
10295 overhangs (bug#1070).
10296
102972008-10-09 Kenichi Handa <handa@m17n.org>
10298
10299 * fontset.c (face_for_char): If face->fontset is negative, just
10300 return ascii_face.
10301
f5385255
SM
10302 * font.c (font_delete_unmatched): Fix previous change.
10303 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10304
103052008-10-09 Martin Rudalics <rudalics@gmx.at>
10306
10307 * frame.c (Fraise_frame): On text-only terminals select frame in
10308 order to make it visible. (Bug#1061)
10309
103102008-10-08 Chong Yidong <cyd@stupidchicken.com>
10311
10312 * fontset.c (fontset_find_font): Check frame validity.
10313
103142008-10-07 Chong Yidong <cyd@stupidchicken.com>
10315
a9b555d3 10316 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10317 (xg_display_close): Allow Emacs to close all displays (bug#985).
10318
103192008-10-06 Andreas Schwab <schwab@suse.de>
10320
f5385255 10321 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10322
103232008-10-06 Chong Yidong <cyd@stupidchicken.com>
10324
f5385255 10325 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10326
a9b555d3 10327 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10328
10329 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10330 during initialization.
10331
103322008-10-04 Eli Zaretskii <eliz@gnu.org>
10333
10334 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10335 whole thing on MSDOS frames as well as on a TTY.
10336
10337 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10338 well as for TTY.
10339 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10340 well as on a TTY.
10341
10342 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10343 as well as for TTY.
10344
10345 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10346
10347 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10348 MSDOS frames as well.
10349
103502008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10351
10352 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10353 correct arguments.
b71ac3dd 10354 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10355
103562008-10-03 Glenn Morris <rgm@gnu.org>
10357
10358 * emacs.c (USAGE1): Add --daemon.
10359
103602008-10-02 Eli Zaretskii <eliz@gnu.org>
10361
10362 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10363 100, so it's in percents as advertised.
10364
103652008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10366
10367 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10368 (ns_output.current_cursor, ns_output.desired_cursor)
10369 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10370 (FRAME_NEW_CURSOR_COLOR): Remove.
10371
10372 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10373 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10374 enumeration (HOLLOW_BOX_CURSOR, etc.).
10375
10376 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10377 (draw_window_cursor): Simplify code.
f5385255
SM
10378 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10379 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10380 updates manually.
a9b555d3
JB
10381 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10382 Use core Emacs cursor types.
aac0c6e3 10383
b8ff72fa 10384 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10385
103862008-10-02 Martin Rudalics <rudalics@gmx.at>
10387
10388 * process.c (Faccept_process_output): Fix doc-string.
10389
103902008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10391
10392 * gmalloc.c (__sbrk): Also define for uClibc.
10393
10394 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10395 for uClibc.
10396
103972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10398
10399 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10400 styles.
10401 (nsfont_open): Reenable the cache.
10402
104032008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10404
10405 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10406 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10407
104082008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10409
10410 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10411 a suspended terminal.
10412
104132008-09-30 Michael Albinus <michael.albinus@gmx.de>
10414
10415 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10416
104172008-09-30 Eli Zaretskii <eliz@gnu.org>
10418
10419 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10420
104212008-09-30 Chong Yidong <cyd@stupidchicken.com>
10422
10423 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10424 in a continued line coincides with a line beginning.
10425
104262008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10427
10428 * nsfont.m (nsfont_trait_distance): Fix bug.
10429 (nsfont_list): Return a list rather than a vector (syncs with Handa
10430 changes of 2008-05-14).
10431 (nsfont_open): Improve logging.
10432
104332008-09-29 Andreas Schwab <schwab@suse.de>
10434
10435 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10436
104372008-09-28 Martin Rudalics <rudalics@gmx.at>
10438
10439 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10440 name as char-resolve-modifiers.
10441 Reported by: Markus Triska <markus.triska@gmx.at>
10442
104432008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10444
10445 * dispnew.c (init_display): Return earlier when running as a daemon.
10446
104472008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10448
10449 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10450
104512008-09-27 Eli Zaretskii <eliz@gnu.org>
10452
10453 * composite.c (Fcomposition_get_gstring)
10454 (Fcompose_region_internal, Fcompose_string_internal)
10455 (Ffind_composition_internal): Doc fix.
10456 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10457 (syms_of_composite) <auto-composition-function>: Doc fix.
10458 (syms_of_composite) <composition-function-table>: Doc fix.
10459
104602008-09-25 Chong Yidong <cyd@stupidchicken.com>
10461
10462 * search.c (wordify): New argument for lax word-ends.
10463 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10464
104652008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10466
10467 * lisp.h (is_daemon): Declare.
10468 * dispnew.c (init_display): Do not try to initialize the terminal
10469 when running as a daemon.
10470
104712008-09-22 Chong Yidong <cyd@stupidchicken.com>
10472
10473 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10474 x_display_pixel_height.
10475
104762008-09-22 Martin Rudalics <rudalics@gmx.at>
10477
10478 * undo.c (record_point): Don't call Fundo_boundary for first
10479 change. (Bug#731)
10480
104812008-09-22 Juanma Barranquero <lekktu@gmail.com>
10482
10483 * emacs.c (Fdaemonp): Doc fix.
10484
104852008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10486
10487 * emacs.c (main): Place #ifdef in the proper place.
10488
104892008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10490
10491 * emacs.c (standard_args): Add --daemon.
10492 (main): Disconnect from the terminal when --daemon is passed.
10493 (is_daemon): New variable.
10494 (Fdaemonp): New function.
10495 (syms_of_emacs): Defsubr it.
10496
104972008-09-20 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * xdisp.c (get_next_display_element): Handle string display
10500 correctly when checking for the end of a box run.
10501
105022008-09-20 Glenn Morris <rgm@gnu.org>
10503
10504 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10505 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10506 (Frename_file): Avoid copying to trash if a rename involves
10507 a delete. (Bug#964).
10508
105092008-09-20 Eli Zaretskii <eliz@gnu.org>
10510
10511 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10512 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10513 frames as well as termcap frames.
10514 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10515 get_named_tty.
10516
105172008-09-19 Eli Zaretskii <eliz@gnu.org>
10518
10519 * process.c (procfs_system_process_attributes): Fix cmdline in
10520 case /proc/PID/cmdline is empty.
10521
10522 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10523 x_display_pixel_height.
10524
105252008-09-19 Juanma Barranquero <lekktu@gmail.com>
10526
10527 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10528
10529 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10530 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10531
105322008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10533
10534 * dispextern.h (struct it): Move line_wrap away from the middle of
10535 bitfields. Move voffset in struct iterator_stack_entry after the
10536 bitfields. Move tab_width near after another short.
10537
105382008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10539
10540 * frame.h (struct frame): Move alpha from the middle of bitfields.
10541
10542 * window.h (struct window): Move frozen_window_start_p after the
10543 rest of the bitfields to reduce padding.
10544
105452008-09-18 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * xterm.h (x_display_info): Remove `height' and `width' members.
10548
10549 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10550
10551 * w32term.h (w32_display_info): Remove `height', `width',
10552 `height_in', and `width_in' members.
10553
b8ff72fa
SM
10554 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10555 New functions.
aac0c6e3
MR
10556 (x_calc_absolute_position): Use them.
10557 (x_term_init): Omit removed `height' and `width' members.
10558
b8ff72fa
SM
10559 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10560 New functions.
aac0c6e3
MR
10561 (w32_read_socket, x_calc_absolute_position): Use them.
10562 (w32_initialize_display_info, w32_term_init): Omit removed members
10563 of w32_display_info.
10564
b8ff72fa
SM
10565 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10566 New functions.
10567 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10568
b8ff72fa
SM
10569 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10570 New functions.
aac0c6e3
MR
10571 (x_calc_absolute_position): Use them.
10572 (x_term_init): Omit removed `height' and `width' members.
10573
10574 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10575 (compute_tip_xy):
10576 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10577 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10578 x_display_pixel_width.
10579
105802008-09-18 Kenichi Handa <handa@m17n.org>
10581
10582 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10583 (composition_compute_stop_pos): Fix handling of static composition.
10584 (Fcomposition_get_gstring): Check FROM and TO at first.
10585
105862008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10587
46e722a9 10588 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10589 mixup (YAILOM).
10590
105912008-09-17 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * indent.c (Fvertical_motion): Use position reported by iterator
10594 instead of PT for determining screen motion (bug#943).
10595
105962008-09-17 Romain Francoise <romain@orebokech.com>
10597
10598 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10599
106002008-09-17 Kenichi Handa <handa@m17n.org>
10601
10602 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10603
10604 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10605 if necessary.
10606
106072008-09-16 Kenichi Handa <handa@m17n.org>
10608
10609 * coding.c (make_conversion_work_buffer): Avoid calling
10610 Fget_buffer_create if it is not necessary.
10611
106122008-09-15 Martin Rudalics <rudalics@gmx.at>
10613
10614 * window.c (Fselect_window): Don't update window_select_count and
10615 use_time when norecord is not nil.
10616
106172008-09-14 Kenichi Handa <handa@m17n.org>
10618
10619 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10620 specpdl_ptr.
10621
106222008-09-12 Kenichi Handa <handa@m17n.org>
10623
10624 * indent.c (scan_for_column): Don't handle automatic composition
10625 if the current buffer is not associated with a window.
10626
10627 * composite.c (composition_reseat_it): If the current buffer is
10628 not associated with a window, ignore the automatic composition.
10629 (find_automatic_composition): Likewise.
10630
106312008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10632
10633 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10634 (Fgpm_mouse_stop): Use it.
10635 * termhooks.h (close_gpm): Declare.
10636 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10637 connection if Gpm_GetEvent fails.
10638
10639 * window.c (set_window_buffer): Always preserve current-buffer.
10640
106412008-09-12 Glenn Morris <rgm@gnu.org>
10642
10643 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10644
106452008-09-11 Glenn Morris <rgm@gnu.org>
10646
10647 * charset.c (charset-map-path): Doc fix.
10648
106492008-09-10 Kenichi Handa <handa@m17n.org>
10650
10651 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10652
10653 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10654 compose a grapheme cluster with the preceding base glyph.
10655
10656 * composite.c (composition_compute_stop_pos): Fix previous change.
10657 Reset cmp_it->id to -1 at first.
10658
106592008-09-10 Glenn Morris <rgm@gnu.org>
10660
10661 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10662
106632008-09-09 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * keyboard.c (read_key_sequence): Reapply translation maps when
10666 switching keyboards.
10667
106682008-09-09 Kenichi Handa <handa@m17n.org>
10669
10670 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10671 characters.
10672
10673 * composite.c (FORWARD_CHAR): Fix calculation
10674 of (POSITION).pos_byte.
10675 (composition_compute_stop_pos): Limit the search of composition to
10676 at most 500 characters ahead. If we reach the limit or find a
10677 newline, set cmp_it->ch to -2 and return 0.
10678 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10679
106802008-09-08 Kenichi Handa <handa@m17n.org>
10681
10682 * indent.c (Fvertical_motion): Be sure to set
10683 it_overshoot_expected if it.cmp_it.id is non-negative.
10684
106852008-09-07 Andreas Schwab <schwab@suse.de>
10686
10687 * callproc.c (Fcall_process): Don't hold references to string data
10688 across garbage collection. Move initialisation of new_argv down
10689 to avoid compiler bug.
10690
106912008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10692
10693 * process.c (Fsystem_process_attributes): Doc fix.
10694
106952008-09-07 Chong Yidong <cyd@stupidchicken.com>
10696
10697 * callproc.c (Fcall_process): Canonicalize current directory name.
10698
10699 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10700 iterator advances to the next line if the current line ends in a
10701 continued tab.
10702
107032008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10704
10705 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10706 member to point to cmp_from.
10707
10708 * xdisp.c: Doc fix for references to gidx data member.
10709
107102008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10711
10712 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10713
107142008-09-07 Kenichi Handa <handa@m17n.org>
10715
10716 * composite.c (FORWARD_CHAR): Check STOP after
10717 incrementing (POSITION).pos.
10718
107192008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10720
10721 * process.c (Fsystem_process_attributes): Doc fix.
10722
107232008-09-06 Chong Yidong <cyd@stupidchicken.com>
10724
10725 * keyboard.c (Ftop_level): Doc fix.
10726
107272008-09-06 Eli Zaretskii <eliz@gnu.org>
10728
10729 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10730 minibuffer, don't let lower part of menu invade the echo area.
10731
10732 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10733 "char *q" to access menu text and advance through it. Revert the
10734 change that displayed ">" instead of ASCII character 0x10.
10735
107362008-09-05 Eli Zaretskii <eliz@gnu.org>
10737
10738 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10739 toggle boxes and radio buttons on MS-DOS as well.
10740
107412008-09-05 Kenichi Handa <handa@m17n.org>
10742
10743 * composite.c (autocmp_chars): Check lookback count.
10744 (composition_compute_stop_pos): Set cmp_it->lookback.
10745 (composition_reseat_it): Check lookback count.
10746 (struct position_record): New struct.
10747 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10748 (find_automatic_composition): New function.
10749 (composition_adjust_point): Use find_automatic_composition.
10750
10751 * dispextern.h (struct composition_it): New member lookback.
10752
107532008-09-02 Chong Yidong <cyd@stupidchicken.com>
10754
10755 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10756 if moving by a single line.
10757
107582008-09-02 Andreas Schwab <schwab@suse.de>
10759
10760 * xterm.c (x_delete_display): Fix merge error.
10761
10762 * fileio.c (Fexpand_file_name): Remove unused variables.
10763
107642008-09-02 Eli Zaretskii <eliz@gnu.org>
10765
10766 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10767 storage on all platforms, not just on DOS_NT.
10768
107692008-09-02 Jason Rumney <jasonr@gnu.org>
10770
b8ff72fa
SM
10771 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10772 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10773
107742008-09-01 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * xfaces.c (Finternal_set_alternative_font_family_alist)
10777 (Finternal_set_alternative_font_registry_alist): Properly copy
10778 entire alist structure.
10779
107802008-09-01 Kenichi Handa <handa@m17n.org>
10781
d66c0241 10782 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10783 representative chars of the script is a vector.
d66c0241
JB
10784 (ftfont_list): Handle the case where the representative chars of
10785 the script is a vector.
aac0c6e3
MR
10786
10787 * character.c (syms_of_character): Docstring of
10788 script-representative-chars fixed.
10789
107902008-08-31 Eli Zaretskii <eliz@gnu.org>
10791
10792 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10793 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10794 the menu. Allocate larger buffer for `text', to account for
10795 possible ^C characters.
10796
107972008-08-31 Martin Rudalics <rudalics@gmx.at>
10798
10799 * xdisp.c (prepare_menu_bars): Don't call
10800 Vwindow_size_change_functions with arg Qt.
10801
108022008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10803
10804 * font.h (font_range):
10805 * fileio.c (report_file_error):
46e722a9
SM
10806 * composite.c (composition_update_it): Yet another int/Lisp_Object
10807 mixup (YAILOM).
aac0c6e3
MR
10808
108092008-08-30 Glenn Morris <rgm@gnu.org>
10810
10811 * data.c (Fmake_variable_frame_local): Doc fix.
10812
10813 * frame.c (Fmodify_frame_parameters): Doc fix.
10814
108152008-08-30 Eli Zaretskii <eliz@gnu.org>
10816
10817 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10818 needed by GetTokenInformation.
10819 (w32_system_process_attributes): Check return values of all system
10820 APIs.
10821
10822 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10823 only when the state changes.
10824 (IT_update_begin, IT_update_end): Add termscript trace.
10825
10826 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10827 clipboard is unavailable. Set dst to NULL if it doesn't point to
10828 malloc'ed data.
10829 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10830 passing random values to xfree.
10831
10832 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10833 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10834
108352008-08-29 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10838
108392008-08-29 Eli Zaretskii <eliz@gnu.org>
10840
10841 * composite.c (fill_gstring_body): Avoid compiler warnings.
10842
10843 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10844 LGLYPH_SET_CODE to avoid compiler warnings.
10845
2ae37cf0 10846 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10847
10848 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10849
10850 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10851 LGLYPH_SET_CODE.
10852
108532008-08-29 Kenichi Handa <handa@m17n.org>
10854
10855 * fileio.c (report_file_error): Don't downcase the first character
10856 of errstring if it is still unibyte.
10857
108582008-08-29 Kenichi Handa <handa@m17n.org>
10859
10860 These changes are to re-implement the automatic composition so
10861 that it doesn't use text properties.
10862
10863 * Makefile.in (ftfont.o): Depend on composite.h.
10864 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10865
10866 * character.h (Vunicode_category_table): Extern it.
10867
10868 * character.c (Vunicode_category_table): New variable.
10869 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10870
10871 * chartab.c (optimize_sub_char_table): Perform more greedy
10872 optimization.
10873
b8ff72fa
SM
10874 * composite.h (enum composition_method):
10875 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10876 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10877 (Vcomposition_function_table): Extern it.
10878 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10879 (composition_gstring_put_cache, composition_gstring_from_id)
10880 (composition_gstring_p, composition_gstring_width)
10881 (composition_compute_stop_pos, composition_reseat_it)
10882 (composition_update_it, composition_adjust_point): Extern them.
10883 (Fcomposition_get_gstring): EXFUN it.
10884
d66c0241 10885 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10886 (Vcomposition_function_table)
10887 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10888 (gstring_hash_table, gstring_work, gstring_work_headers):
10889 New variables.
aac0c6e3
MR
10890 (gstring_lookup_cache, composition_gstring_put_cache)
10891 (composition_gstring_from_id, composition_gstring_p)
10892 (composition_gstring_width, fill_gstring_header)
10893 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10894 (composition_reseat_it, composition_update_it)
b8ff72fa 10895 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10896 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10897 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10898 Defsubr composition_get_gstring.
aac0c6e3
MR
10899
10900 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10901 cmp_id.
10902 (struct glyph_string): Delete the member gidx. New members
10903 cmp_id, cmp_from, and cmp_to.
10904 (enum it_method): Delete GET_FROM_COMPOSITION.
10905 (struct composition_it): New struct.
10906 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10907 Delete c, len, cmp_id, cmp_len in u.comp.
10908
10909 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10910 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10911 (enum lglyph_indices): Likewise.
b8ff72fa 10912 (font_range): Adjust extern.
aac0c6e3
MR
10913 (font_fill_lglyph_metrics): Extern it.
10914
10915 * font.c (QCf): New variable.
10916 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10917 (font_prepare_composition): Delete this function.
10918 (font_range): Type and arguments changed.
10919 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10920 (font_fill_lglyph_metrics): New function.
b8ff72fa 10921 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10922 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10923 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10924 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10925
10926 * fontset.h (font_for_char): Extern it.
10927
10928 * fontset.c (font_for_char): New function.
10929
10930 * ftfont.c: Include composite.h.
10931 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10932 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10933
10934 * indent.c: Include composite.h and dispextern.h.
10935 (check_composition): Delete this function.
10936 (scan_for_column): Handle composition by
10937 composition_compute_stop_pos, composition_reseat_it, and
10938 composition_update_it.
10939 (compute_motion): Likewise.
10940 (Fvertical_motion): Fix checking of composition.
10941
10942 * keyboard.c (adjust_point_for_property): Check composition by
10943 composition_adjust_point.
10944
b8ff72fa 10945 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10946 struct glyph_string.
10947
b8ff72fa
SM
10948 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10949 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10950 struct glyph.
10951 (produce_composite_glyph): Likewise.
10952
b8ff72fa
SM
10953 * w32term.c (x_draw_composite_glyph_string_foreground):
10954 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10955 (x_draw_glyph_string): Likewise.
10956
10957 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10958 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10959
10960 * xdisp.c: Include font.h.
10961 (it_props): Delete the entry for Qauto_composed.
10962 (init_iterator): Initialize it->cmp_it.id to -1.
10963 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10964 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10965 (handle_auto_composed_prop): Delete it.
10966 (handle_composition_prop): Handle only static composition.
10967 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10968 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10969 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10970 (pop_it): Likewise.
10971 (get_next_element): Delete next_element_from_composition.
10972 (CHAR_COMPOSED_P): New macro.
10973 (get_next_display_element): For automatic composition, get a face
10974 from the font in the glyph-string.
10975 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10976 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10977 (next_element_from_string): Check if the character at the current
10978 position is composed by CHAR_COMPOSED_P.
10979 (next_element_from_buffer): Likewise.
d66c0241
JB
10980 (next_element_from_composition): Adjust for the change of struct it.
10981 Update it->cmp_it.
b8ff72fa
SM
10982 (dump_glyph): Adjust for the change of struct glyph.
10983 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10984 it and struct glyph. Don't handle automatic composition here.
10985 (fill_gstring_glyph_string): New function.
10986 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10987 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10988 (BUILD_GSTRING_GLYPH_STRING): New macro.
10989 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10990 automatic composition.
b8ff72fa 10991 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10992 struct glyph.
b8ff72fa 10993 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10994
b8ff72fa 10995 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10996 the change of struct glyph_string.
10997 (x_draw_glyph_string): Likewise.
10998
109992008-08-29 Glenn Morris <rgm@gnu.org>
11000
11001 * buffer.c (word-wrap): Doc fix.
11002 * xdisp.c (truncate-partial-width-windows): Doc fix.
11003 Increase default to 50.
11004
110052008-08-29 Chong Yidong <cyd@stupidchicken.com>
11006
11007 * xdisp.c (update_tool_bar_unwind): New function.
11008 (update_tool_bar): Temporarily set selected frame before building
11009 tool-bar items.
11010
110112008-08-28 Michael Albinus <michael.albinus@gmx.de>
11012
11013 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11014 snprintf, respectively.
11015 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11016
110172008-08-28 Chong Yidong <cyd@stupidchicken.com>
11018
11019 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11020 LDFLAGS to GNUstep CC invocation.
11021
110222008-08-27 Chong Yidong <cyd@stupidchicken.com>
11023
11024 * indent.c (Fvertical_motion): Revert last change. Handle the
11025 general case where we are moving forward, and PT spans multiple
11026 screen lines.
11027
11028 * eval.c (find_handler_clause): Temporarily increase
11029 max-lisp-eval-depth while printing the backtrace buffer, to
11030 guarantee that help-mode code can run.
11031
110322008-08-27 Eli Zaretskii <eliz@gnu.org>
11033
11034 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11035 colors under -rv.
11036 (IT_set_frame_parameters): Don't swap foreground and background
11037 colors if `(reverse . t)' is present in the frame properties.
11038 (internal_terminal_init): Call init_frame_faces only for the
11039 initial frame.
11040
110412008-08-27 Andreas Schwab <schwab@suse.de>
11042
11043 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11044
110452008-08-27 Andreas Schwab <schwab@suse.de>
11046
11047 * search.c (search_buffer): Set char_base to zero only at the end.
11048
110492008-08-27 Kenichi Handa <handa@m17n.org>
11050
b8ff72fa 11051 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11052
110532008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11054
11055 * xterm.c (x_term_init): Temporarily hide the partially
11056 initialized terminal while calling vendor-specific-keysyms.
11057
110582008-08-26 Eli Zaretskii <eliz@gnu.org>
11059
11060 * msdos.c (internal_terminal_init): Most initializations done only
11061 once, especially initial_screen_colors[] and termscript open.
11062
110632008-08-26 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * eval.c (Fcondition_case): Doc fix.
11066
11067 * widgetprv.h (EmacsFramePart): Change font member to the new font
11068 struct.
11069
11070 * widget.c: Include character.h and font.h for XSETFONT.
11071 (setup_frame_gcs): Compute X font id from font struct, just once.
11072
110732008-08-26 Eli Zaretskii <eliz@gnu.org>
11074
11075 * term.c (get_named_tty): Fix last change.
11076
110772008-08-26 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11080 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11081
110822008-08-25 Eli Zaretskii <eliz@gnu.org>
11083
11084 * frame.c (do_switch_frame): Mark previously displayed frame as
11085 obscured for FRAME_MSDOS_P frames as well.
11086
110872008-08-24 Eli Zaretskii <eliz@gnu.org>
11088
11089 * frame.c (make_terminal_frame): Initialize f->terminal,
11090 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11091 Set the top frame to newly created frame.
11092 (Fmake_terminal_frame): Reuse the_only_display_info.
11093
11094 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11095 estimating available memory.
11096
b97439ce 110972008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11098
11099 * nsterm.m (ns_draw_window_cursor): Don't call
11100 NSDisableScreenUpdates and NSEnableScreenUpdates on
11101 non-NS_IMPL_COCOA systems.
11102
111032008-08-23 Andreas Schwab <schwab@suse.de>
11104
11105 * process.c (procfs_system_process_attributes): Fix use of
11106 uninitialized variables.
11107
111082008-08-23 Eli Zaretskii <eliz@gnu.org>
11109
11110 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11111
11112 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11113 calling tty-set-up-initial-frame-faces.
11114
b8ff72fa
SM
11115 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11116 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11117
11118 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11119 addition to output_termcap.
11120
11121 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11122
11123 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11124 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11125 highlight.
11126
11127 * process.c [!subprocesses]: Define QCname.
11128 (syms_of_process): Intern and staticpro it.
11129
11130 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11131 Adjust for changes in encoding/decoding routines.
11132 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11133 encode_coding and decode_coding.
11134
b8ff72fa 11135 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11136
11137 * dosfns.c: Include frame.h before termhooks.h.
11138 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11139 variable termscript.
11140
11141 * s/msdos.h (USER_FULL_NAME): Define.
11142 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11143
11144 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11145 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11146 pw->pw_gecos.
11147
11148 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11149 SELECTED_FRAME as additional (1st) argument.
11150 (tty_read_avail_input): Handle output_msdos_raw in
11151 addition to output_termcap.
11152
11153 * msdos.c: Include frame.h before termhooks.h.
11154 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11155 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11156 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11157 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11158 (IT_set_terminal_modes, IT_reset_terminal_modes)
11159 (IT_set_frame_parameters): Use tty->termscript instead of a global
11160 variable termscript.
11161 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11162 global variable terminal_coding. Don't refer to
11163 Vnonascii_translation_table.
11164 (internal_terminal_init): Set Vwindow_system in current_kboard.
11165 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11166 Announce date and time of session start, if termscript is open.
11167 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11168 term.c:init_tty). Open termscript only of not already open.
11169 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11170 here instead of dos_ttraw. Don't initialize display if this is an
11171 initial tty. Don't set FRAME_FONT.
11172 (Vwindow_system_version): Bump to 23.
11173 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11174 is available, set up mouse_position_hook.
11175 (dos_ttraw, IT_set_terminal_modes): If called with initial
11176 terminal, do nothing.
11177 (IT_set_frame_parameters): Handle the Qtty_type frame
11178 parameter by calling internal_terminal_init.
11179 (dos_set_window_size, show_mouse_face)
11180 (clear_mouse_face, IT_note_mode_line_highlight)
11181 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11182 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11183 (initialize_msdos_display): New function.
11184 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11185 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11186 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11187 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11188 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11189 (request_sigio, unrequest_sigio): Don't define, now defined on
11190 sysdep.c.
11191 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11192
11193 * term.c [MSDOS]: Include msdos.h.
11194 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11195 conditional to DOS_NT. Allow only one call to this function in a
11196 session. Don't allocate a new struct tty_display_info; instead,
11197 reuse the_only_display_info. Call get_tty_size to get screen
11198 dimensions. Call init_baud_rate to set bad_rate.
11199 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11200 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11201 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11202 (get_tty_terminal, get_named_tty, Ftty_type)
11203 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11204 output_termcap.
b8ff72fa
SM
11205 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11206 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11207 only when subprocesses are supported.
aac0c6e3
MR
11208
11209 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11210 f->output_data.x.
11211 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11212 terminal devices.
11213
5582fbc7 11214 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11215 x_output.
11216 (FRAME_FONT): Use output_data.tty.
11217 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11218 (struct x_display_info): Rename from display_info. Update all users in
11219 msdos.c.
aac0c6e3 11220 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11221 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11222 (dos_ttraw): Update prototype.
11223
11224 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11225 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11226
112272008-08-23 Jason Rumney <jasonr@gnu.org>
11228
11229 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11230 (fn_TIFFSetDirectory): New library function used.
11231 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11232 (tiff_load): Use :index to select among multiple images. Set count
11233 property when multiple images exist.
11234 (gif_format): Use :index, not :image.
11235
112362008-08-23 Chong Yidong <cyd@stupidchicken.com>
11237
11238 * xdisp.c (try_scrolling): Check INT_MAX instead of
11239 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11240 to obtain INT_MAX.
11241
112422008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11243
11244 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11245
112462008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11247
11248 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11249 GNUstep library location.
11250
112512008-08-21 Chong Yidong <cyd@stupidchicken.com>
11252
11253 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11254 before using it.
11255
11256 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11257
112582008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11259
11260 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11261 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11262 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11263 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11264 (EmacsApp-cursor_blink_handler): Remove declaration.
11265 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11266 match 01 Feb 2008 changes in xterm.c.
11267 (ns_read_socket): Add cast to avoid warning.
11268 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11269 GNUstep.
11270
112712008-08-20 Chong Yidong <cyd@stupidchicken.com>
11272
11273 * xselect.c (x_get_foreign_selection): Return nil if desired
11274 selection could not be obtained, instead of signalling an error.
11275
112762008-08-20 David Reitter <david.reitter@gmail.com>
11277
11278 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11279 * nsterm.m: Remove ns-specific code for cursor blinking.
11280 (ns_draw_window_cursor): Clear cursor properly rather than
11281 redrawing the area. Respect width of bar cursors.
11282 These changes enable the use of generic blink-cursor-mode and
11283 generic cursor types in NS and support smooth cursor movements (do
11284 not blink off after command).
11285 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11286 Nextstep, too.
11287
112882008-08-19 Kenichi Handa <handa@m17n.org>
11289
11290 * font.c (Vfont_log_deferred): New variable.
11291 (font_add_log): Check Vfont_log_deferred.
11292 (font_deferred_log): New function.
11293
11294 * font.h (font_deferred_log): Extern it.
11295
11296 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11297 for sorting.
11298 (face_for_char): Use deferred log.
11299
113002008-08-18 Kenichi Handa <handa@m17n.org>
11301
11302 * fontset.c (face_for_char): Add font log.
11303
11304 * font.c (font_add_log): Add the font properties :script, :lang,
11305 and :otf in the log.
11306
113072008-08-17 Chong Yidong <cyd@stupidchicken.com>
11308
11309 * xdisp.c: Remove dead code.
11310 (handle_invisible_prop, next_overlay_string): Defer call to
11311 setup_for_ellipsis.
11312 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11313
113142008-08-15 Chong Yidong <cyd@stupidchicken.com>
11315
11316 * xfaces.c (lookup_derived_face): Properly handle possible zero
11317 return value of get_lface_attributes.
11318 (merge_faces): Don't tell lookup_derived_face to signal an error
11319 if face is not found.
11320
11321 * dired.c (Fdirectory_files): Doc fix.
11322
11323 * process.c (make_process): Initialize kill_without_query struct
11324 member.
11325
113262008-08-15 Eli Zaretskii <eliz@gnu.org>
11327
11328 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11329 Alternative calculation of totphys for Visual Studio 6.
11330
11331 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11332
11333 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11334 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11335 All users changed.
11336 (stat): Only root directory passed to GetDriveType. Allow RAM
11337 disk as well as local fixed disk when w32-get-true-file-attributes
11338 is set to `local'.
11339 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11340 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11341 (w32_cached_id, w32_add_to_cache): New functions.
11342 (get_name_and_id): Look account names in the cache before calling
11343 lookup_account_sid.
11344 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11345 New initialization flags.
11346 (globals_of_w32): Initialize them to zero.
11347 (w32_system_process_attributes): Use w32_cached_id and
11348 w32_add_to_cache.
11349
113502008-08-14 Lawrence Mitchell <wence@gmx.li>
11351
11352 * lread.c (Fread_char, Fread_char_exclusive): If no character
11353 event is read before timeout is reached, return nil, rather than
11354 converting to a number.
11355
113562008-08-14 Chong Yidong <cyd@stupidchicken.com>
11357
11358 * fns.c (use_dialog_box): Doc fix.
11359
11360 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11361 on OS X.
11362
113632008-08-13 Chong Yidong <cyd@stupidchicken.com>
11364
11365 * frame.c (Qns_parse_geometry): New var.
11366 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11367
113682008-08-11 Chong Yidong <cyd@stupidchicken.com>
11369
11370 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11371 space character in calculating tabs.
11372
113732008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11374
11375 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11376
113772008-08-10 Glenn Morris <rgm@gnu.org>
11378
11379 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11380 silence gcc "limited range of data type" warnings in some
11381 make_fixnum_or_float calls.
11382
113832008-08-09 Eli Zaretskii <eliz@gnu.org>
11384
11385 * w32.c (w32_system_process_attributes): If the process does not
11386 exist, return nil.
11387
11388 * w32.c: Include thelp32.h, psapi.h and coding.h.
11389 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11390 declarations.
11391 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11392 (Process32Next_Proc): New typedefs.
11393 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11394 (g_b_init_process32_next, g_b_init_open_thread_token)
11395 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11396 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11397 (g_b_init_get_process_working_set_size)
11398 (g_b_init_global_memory_status_ex): New static variables.
11399 (globals_of_w32): Initialize them.
11400 (create_toolhelp32_snapshot, process32_first, process32_next)
11401 (open_thread_token, impersonate_self, revert_to_self)
11402 (get_process_memory_info, get_process_working_set_size)
11403 (global_memory_status, global_memory_status_ex): New wrapper
11404 functions.
11405 (w32_list_system_processes, w32_system_process_attributes)
11406 (enable_privilege, restore_privilege, ltime, process_times):
11407 New functions.
11408 (convert_time_raw): New function.
11409 (convert_time): Remove conversion of FILETIME into time in 100
11410 nsec units, call convert_time_raw instead.
11411
11412 * process.h (w32_list_system_processes, w32_system_process_attributes):
11413 Add prototypes.
11414 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11415 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11416 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11417 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11418
11419 * process.c (Fsystem_process_attributes): Doc fix.
11420
114212008-08-08 Chong Yidong <cyd@stupidchicken.com>
11422
11423 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11424 a continued multi-char glyph; if so, advance to the actual glyph.
11425
114262008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11427
11428 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11429
11430 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11431 (.m.o): Use it.
11432 * config.in: Regenerate.
11433
114342008-08-07 Chong Yidong <cyd@stupidchicken.com>
11435
11436 * xdisp.c (redisplay_window): Revert last change.
11437 (try_window): Check bottom scroll margin too.
11438
114392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11440
11441 * config.in: Regenerate.
11442
11443 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11444 -list-load-path-shadows'.
11445 (nsgui.h): Reduce number of things depending on it.
11446
114472008-08-06 Chong Yidong <cyd@stupidchicken.com>
11448
11449 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11450 instead of window-end which does the wrong thing at eob.
11451 (try_cursor_movement): Minor optimization.
11452 (redisplay_window): If scroll margin is defined, don't assume
11453 window doesn't need scrolling.
11454
114552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11456
11457 * config.in: Regenerate.
11458
11459 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11460 (mostlyclean): Don't delete *.d under NS.
11461
11462 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11463
114642008-08-06 Kenichi Handa <handa@m17n.org>
11465
11466 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11467
114682008-08-06 Andreas Schwab <schwab@suse.de>
11469
11470 * config.in: Regenerate.
11471
114722008-08-05 Chong Yidong <cyd@stupidchicken.com>
11473
11474 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11475 forcing a window start.
11476
11477 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11478 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11479
114802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11481
11482 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11483 argument.
11484
114852008-08-05 Juanma Barranquero <lekktu@gmail.com>
11486
11487 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11488 <scroll-down-aggressively, before-change-functions>:
11489 <after-change-functions>: Reflow docstrings.
11490
114912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11492 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11493
11494 Dock menu customization, based on a patch by Ken Raeburn, plus some
11495 other fixes.
11496 * nsmenu.m (dockMenu): New variable.
11497 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11498
11499 * nsterm.h (dockMenu): Declare.
11500
11501 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11502 (ns_term_init): Initialize dockMenu.
11503 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11504 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11505 left.
11506
11507 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11508
115092008-08-04 Chong Yidong <cyd@stupidchicken.com>
11510
11511 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11512
11513 * config.in: Regenerate.
11514
115152008-08-04 Seiji Zenitani <zenitani@mac.com>
11516
11517 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11518
115192008-08-04 Chong Yidong <cyd@stupidchicken.com>
11520
11521 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11522
115232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11524
11525 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11526
11527 * keyboard.h: Comment an #endif.
11528
11529 * lisp.h (have_menus_p): Adjust comment.
11530
11531 * menu.c (find_and_return_menu_selection): Fix comparison with
11532 client_data.
11533
11534 * nsmenu.m (popup_activated_flag): New variable.
11535 (popup_activated): New function.
11536 (menu-or-popup-active-p): New exported lisp definition.
11537 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11538 when popup done.
11539 (ns_popup_dialog): Set popup_activated_flag.
11540
11541 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11542 version for GNUstep (handled by conditional typedef in nsterm.m).
11543 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11544 in rgb.txt).
11545
11546 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11547
11548 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11549
11550 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11551
11552 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11553 shortcircuit if popup_activated like GTK and X toolkit.
11554
11555 * m/inter386.h: Change DARWIN to DARWIN_OS.
11556
11557 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11558 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11559 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11560 comment on NO_SOCK_SIGIO.
11561
115622008-08-03 Chong Yidong <cyd@stupidchicken.com>
11563
11564 * nsterm.m (windowDidResize): Remove stopModal call.
11565
115662008-08-03 Andreas Schwab <schwab@suse.de>
11567
11568 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11569 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11570
115712008-08-02 Chong Yidong <cyd@stupidchicken.com>
11572
11573 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11574 Don't use uninitialized pointer variable when using getrlimit.
11575
115762008-08-02 Jason Rumney <jasonr@gnu.org>
11577
11578 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11579
115802008-08-02 Eli Zaretskii <eliz@gnu.org>
11581
11582 * alloc.c (NSTATICS): Bump to 0x640.
11583
11584 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11585
11586 * lisp.h: Add prototype for directory_files_internal.
11587
11588 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11589 New functions.
11590 (syms_of_process): Defsubr them. Add initializations for various
11591 Q* symbols used in procfs_system_process_attributes.
11592 (procfs_list_system_processes, procfs_system_process_attributes)
11593 [HAVE_PROCFS]: New functions.
11594 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11595 (procfs_get_total_memory): New functions.
11596
115972008-08-01 Juanma Barranquero <lekktu@gmail.com>
11598
11599 * xfaces.c (Fx_load_color_file): Fix previous change;
11600 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11601
116022008-08-01 Michael Albinus <michael.albinus@gmx.de>
11603
11604 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11605
116062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11607
11608 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11609
116102008-08-01 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11613
11614 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11615 define NSApplicationDelegateReplySuccess.
11616 (EmacsView -converstationIdentifier): Use long instead of
11617 NSInteger for GNUstep, since it doesn't have NSInteger.
11618
11619 * xmenu.c: Revert last change.
11620
11621 * keyboard.h: Fix last change.
11622
116232008-08-01 Juanma Barranquero <lekktu@gmail.com>
11624
11625 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11626 on Windows.
11627
116282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11629
11630 Warning clearing and clean-up in NS port.
11631 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11632 Add prototypes.
11633 * nsgui.h (FACE_DEFAULT): Remove, unused.
11634 (XGCValues): Change colors to unsigned long.
11635 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11636 nsterm.m.
11637 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11638 (ns_list_fonts): Remove, unused.
11639 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11640 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11641 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11642 (nsfont_draw): Compare face colors to 0, not nil.
11643 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11644 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11645 (-addSubmenuWithTitle:): Use NSMenuItem class.
11646 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11647 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11648 (ns_clip_to_row): Make gc arg a BOOL.
11649 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11650 ns_clip_to_row() call.
11651 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11652 used). Cast FRAME_FONT assignments.
11653 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11654 (ns_string_to_lispmod): Change arg to const char.
11655 (ns_term_init): Use NSMenuItem class.
11656 (EmacsApp -openFile:): Move to different section of file.
11657 (EmacsApp -application:openFiles:): Don't return a value, call
11658 -replyToOpenOrPrint:.
11659 (EmacsView -keyDown:): Fix up cast.
11660 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11661 (EmacsView -menuDown:): Cast tag in call to
11662 find_and_call_menu_selection().
11663 (ns_list_fonts): Remove, unused.
11664 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11665 (ns_fontname_to_xlfd): Make static.
11666 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11667 Remove prototypes (now in keyboard.h).
11668 (next_menubar_widget_id): Remove, unused.
11669 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11670 Remove prototypes (now in keyboard.h).
11671 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11672
116732008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11674
11675 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11676 (floatfns.o): Depend on syssignal.h.
11677 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11678
11679 * systty.h: Fix previous change that removed BSD_TERMIOS.
11680 Add comments to #ifdefs.
11681
116822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11683
11684 * w32fns.c (w32-load-color-file): Remove.
11685 (x-open-connection): Use renamed Fx_load_color_file.
11686 * xfaces.c (x-load-color-file): Add.
11687 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11688 Emacs.clr.
11689 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11690
116912008-07-31 Michael Albinus <michael.albinus@gmx.de>
11692
11693 * dbusbind.c (Fdbus_call_method_asynchronously)
11694 (Fdbus_method_error_internal): New defuns.
11695 (xd_read_message): Handle also reply messages.
11696 (Vdbus_registered_functions_table): Extend docstring.
11697
116982008-07-31 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * keyboard.c (gobble_input): Fix previous change.
11701
117022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11703
11704 * bitmaps/README:
11705 * xfns.c:
11706 * termcap.c:
11707 * term.c:
11708 * syswait.h:
11709 * systty.h:
11710 * systime.h:
11711 * syssignal.h:
11712 * sysdep.c:
11713 * process.h:
11714 * process.c:
11715 * print.c:
11716 * ndir.h:
11717 * lread.c:
11718 * keyboard.c:
11719 * getpagesize.h:
11720 * floatfns.c:
11721 * fileio.c:
11722 * emacs.c:
11723 * doc.c:
11724 * dispnew.c:
11725 * dired.c:
11726 * data.c:
11727 * callproc.c:
11728 * buffer.c:
11729 * README:
11730 * Makefile.in:
11731 * s/template.h:
11732 * s/msdos.h:
11733 * m/vax.h: Remove VMS support.
11734 * s/vms.h:
11735 * vlimit.h:
11736 * uaf.h:
11737 * temacs.opt:
11738 * param.h:
11739 * ioctl.h: Remove file.
11740
117412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11742
11743 * s/ms-w32.h (MULTI_KBOARD): Remove.
11744 * xterm.c:
11745 * xselect.c:
11746 * xfns.c:
11747 * window.c:
11748 * w32term.c:
11749 * w32fns.c:
11750 * terminal.c:
11751 * termhooks.h:
11752 * term.c:
11753 * sysdep.c:
11754 * keyboard.h:
11755 * keyboard.c:
11756 * frame.h:
11757 * frame.c:
11758 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11759 * config.in: Regenerate.
11760
117612008-07-30 Jason Rumney <jasonr@gnu.org>
11762
11763 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11764
11765 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11766 (w32font_open_internal): Get unicode version of textmetrics.
11767 Don't enable or disable glyph indices here.
11768 (w32font_open): Disable use of glyph indices.
11769
11770 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11771
117722008-07-30 Chong Yidong <cyd@stupidchicken.com>
11773
11774 * minibuf.c (Vread_buffer_function): Doc fix.
11775
117762008-07-30 John Paul Wallington <jpw@pobox.com>
11777
11778 * minibuf.c (read_buffer_completion_ignore_case): New var.
11779 (Fread_buffer): Use it.
11780
117812008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11782
11783 * systty.h (sensemode): Remove empty #if. Remove reference to
11784 BSD_TERMIOS, unused.
11785
11786 * sysdep.c: Remove reference to DGUX.
11787 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11788
11789 * config.in: Regenerate.
11790
117912008-07-30 Jason Rumney <jasonr@gnu.org>
11792
11793 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11794
117952008-07-29 Jason Rumney <jasonr@gnu.org>
11796
11797 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11798 is populated.
11799 (uniscribe_encode_char): Always use uniscribe.
11800 Avoid using context if cache is populated.
11801
118022008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11803
11804 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11805 open menu.
11806
11807 * gtkutil.c (menu_nav_ended): Remove.
11808 (create_menus): Remove signal connect for menu_nav_ended.
11809
118102008-07-28 Chong Yidong <cyd@stupidchicken.com>
11811
11812 * xdisp.c (redisplay_window): Check return value of
11813 compute_window_start_on_continuation_line before forcing a window
11814 start.
11815
118162008-07-28 Jason Rumney <jasonr@gnu.org>
11817
11818 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11819
11820 * w32term.c (w32_enable_unicode_output, cleartype_active):
11821 Remove obsolete display options.
11822 (x_draw_glyph_string_background): Don't use old cleartype_active
11823 workaround.
11824 (w32_initialize): Remove cleartype_active initialization.
11825 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11826
118272008-07-28 Andreas Schwab <schwab@suse.de>
11828
11829 * lisp.h (init_weak_hash_tables, syms_of_font)
11830 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11831 (remove_hash_entry): Don't declare.
11832 * eval.c (maybe_call_debugger): Make static and move before use.
11833 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11834 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11835 * xterm.h (x_set_frame_alpha): Declare.
11836
118372008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11838
11839 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11840 (create_menus): Connect selection-done to menu_nav_ended.
11841
118422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11843
11844 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11845 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11846 parameter with read of 'alpha' one.
11847 (Qns_frame_parameter): Remove.
5582fbc7 11848 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11849 (next-selection-coding-system, Vselection_coding_system)
11850 (Vnext_selection_coding_system): Drop.
11851
118522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11853
11854 * nsfns.m (do-applescript, do_applescript): Rename to
11855 ns-do-applescript, ns_do_applescript, and move within file.
11856
118572008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11858
11859 Remove support for Mac Carbon.
11860 * mactoolbox.c:
11861 * macterm.h:
11862 * macterm.c:
11863 * macselect.c:
11864 * macmenu.c:
11865 * macgui.h:
11866 * macfns.c:
11867 * mac.c: Remove file.
11868 * s/darwin.h:
11869 * m/intel386.h:
11870 * xfaces.c:
11871 * xdisp.c:
11872 * window.c:
11873 * tparam.c:
11874 * termhooks.h:
11875 * termcap.c:
11876 * term.c:
11877 * syssignal.h:
11878 * sysselect.h:
11879 * sysdep.c:
11880 * process.c:
11881 * lread.c:
11882 * lisp.h:
11883 * keyboard.c:
11884 * image.c:
11885 * fringe.c:
11886 * frame.h:
11887 * frame.c:
11888 * fontset.c:
11889 * font.h:
11890 * font.c:
11891 * fns.c:
11892 * fileio.c:
11893 * emacs.c:
11894 * dispnew.c:
11895 * dispextern.h:
11896 * config.in:
11897 * atimer.c:
2ae37cf0 11898 * Makefile.in: Remove code for Carbon.
aac0c6e3 11899
f0131492 119002008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11901
11902 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11903
119042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11905
11906 * macterm.h (kCGBitmapByteOrder32Host): New define for
11907 non-universal SDKs.
11908
11909 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11910 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11911
11912 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11913 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11914
119152008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11916
11917 * w32inevt.c: Include dispextern.h.
11918
119192008-07-26 Andreas Schwab <schwab@suse.de>
11920
11921 * print.c (print_object): Fix off-by-one in last change.
11922
119232008-07-25 Juanma Barranquero <lekktu@gmail.com>
11924
11925 * term.c (syms_of_term): Don't initialize default_orig_pair,
11926 default_set_foreground and default_set_background on Windows.
11927
119282008-07-25 Jason Rumney <jasonr@gnu.org>
11929
11930 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11931 ScriptItemize. Clean up return value checking. Remove unused
11932 variables.
11933 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11934 shaping engine.
11935
11936 * w32font.c (w32font_has_char): Handle the case where we can't
11937 determine the script for a character.
11938
119392008-07-25 Chong Yidong <cyd@stupidchicken.com>
11940
11941 * term.c (syms_of_term): Initialize default_orig_pair,
11942 default_set_foreground, and default_set_background.
11943
11944 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11945 clash (bug#86).
11946 (getloadavg): Callers changed.
11947
11948 * image.c (svg_load_image): Fix last change.
11949 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11950 image size is valid. Use g_object_unref instead of deprecated
11951 rsvg_handle_free to free rsvg handle.
11952 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11953
119542008-07-25 Jason Rumney <jasonr@gnu.org>
11955
11956 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11957 surrogates before looking up glyph index.
11958 (w32font_text_extents): Encode as surrogates if falling back to
11959 functions that need UTF-16 wide chars.
11960
11961 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11962 BMP as surrogates before looking up glyph index.
11963
119642008-07-25 Chong Yidong <cyd@stupidchicken.com>
11965
11966 * image.c (svg_load_image): Check for failure in return value of
11967 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11968
119692008-07-25 Jason Rumney <jasonr@gnu.org>
11970
11971 * w32font.c (Fx_select_font): Reverse sense of second arg.
11972
119732008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11974
11975 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11976 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11977
11978 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11979 (PURESIZE): Use it.
11980
119812008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11982
11983 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11984 * m/alpha.h (TEXT_END):
11985 * m/ibmrs6000.h (TEXT_END):
11986 * m/macppc.h (TEXT_END):
11987 * s/darwin.h (TEXT_END):
11988 * s/msdos.h (TEXT_END): Remove, unused.
11989 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11990 * s/cygwin.h: Remove comment.
11991
11992 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11993 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11994 * m/intel386.h (DOT_GLOBAL_START):
11995 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11996 (USG): Remove, file not used on USG platforms.
11997
11998 * Makefile.in (HAVE_X11): Remove empty #else.
11999
120002008-07-24 Andreas Schwab <schwab@suse.de>
12001
12002 * fileio.c (Finsert_file_contents): Properly adjust undo list
12003 after format conversion.
12004
120052008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12006
12007 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12008 (menu_nav_ended): Remove.
12009 (create_menus): Remove signal connect for menu_nav_ended.
12010 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12011 create_menus.
12012 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12013
120142008-07-23 Jason Rumney <jasonr@gnu.org>
12015
12016 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12017 with opened font.
12018 (w32font_open): Set font type to gdi.
12019
12020 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12021
120222008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12023
12024 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12025 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12026 defines it.
12027 * unexec.c (ADDR_CORRECT): Define unconditionally.
12028
12029 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12030
12031 * unexec.c: Remove code depending on !COFF and USG, the file is
12032 not used for such systems.
12033
12034 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12035 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12036 (LD_SWITCH_SYSTEM_1): Remove, update users.
12037
12038 * s/darwin.h (DATA_END):
12039 * m/intel386.h (DATA_END):
12040 * m/ibmrs6000.h (DATA_END):
12041 * m/alpha.h (DATA_END): Remove, unused.
12042
12043 * config.in: Regenerate.
12044 * s/ms-w32.h (subprocesses): Define unconditionally.
12045 * s/template.h (subprocesses): Update comment.
12046 * s/vms.h (subprocesses):
12047 * s/usg5-4.h (subprocesses):
12048 * s/hpux10-20.h (subprocesses):
12049 * s/gnu-linux.h (subprocesses):
12050 * s/cygwin.h (subprocesses):
12051 * s/bsd-common.h (subprocesses):
12052 * s/aix4-2.h (subprocesses):
12053 * s/darwin.h (subprocesses): Do not define, defined by default now.
12054
12055 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12056 Remove all references.
12057 (temacs): Add GNUstep specific ld flags.
12058
12059 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12060 similarly to what X does.
12061
120622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12063
12064 * nsfns.m (x-list-fonts): Remove.
12065 (syms_of_nsfns): Drop the x-list-fonts declaration.
12066 * nsterm.m: Get rid of remaining "//" comments.
12067
120682008-07-22 Chong Yidong <cyd@stupidchicken.com>
12069
12070 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12071
12072 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12073 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12074 (Fns_own_selection_internal, Fx_disown_selection_internal)
12075 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12076
12077 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12078 ... */' style of docstrings. Doc fixes.
12079
120802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12081
12082 * terminfo.c (UP, BC, PC): Undo previous change.
12083
12084 * nsfns.m: Rename ns prefixed functions/variables to the
12085 corresponding x versions. Update references.
12086
120872008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12090
120912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12092
12093 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12094 Remove forwarding functions.
12095 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12096 non-static.
12097 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12098 non-static.
12099 (ns_frame_parm_handlers): Use the new names.
12100 (syms_of_nsfns): Move to the end of file.
12101
12102 * nsterm.m (syms_of_nsterm): Move to the end of file.
12103
12104 * dispnew.c (init_display): Remove code for X10.
12105
121062008-07-22 Jason Rumney <jasonr@gnu.org>
12107
12108 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12109 bare drive.
12110
121112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12112
12113 * nsterm.m (syms_of_nsterm): Remove debugging println.
12114
121152008-07-22 David Reitter <david.reitter@gmail.com>
12116
12117 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12118 Carbon implementation of the same functionality: execute arbitrary
12119 AppleScript code.
12120
121212008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12122
12123 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12124 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12125 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12126 (Fx_display_mm_height, Fx_display_mm_width)
12127 (Fx_display_backing_store, Fx_display_visual_class)
12128 (Fx_display_save_under, Fx_open_connection)
12129 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12130 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12131 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12132 (Fx_display_pixel_width, Fx_display_pixel_height)
12133 (Fx_display_usable_bounds, Fx_display_planes)
12134 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12135 ... */' style of docstrings.
12136
121372008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12138
12139 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12140 on this platform.
12141 (mips):
12142 * m/iris4d.h (mips): Do not define.
12143 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12144
12145 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12146
12147 * image.c:
12148 * nsfns.m:
12149 * nsselect.m:
12150 * nsterm.h:
12151 * nsterm.m: Rename ns prefixed functions/variables to the
12152 corresponding x versions. Update references.
12153
12154 * m/ibms390x.h (NO_REMAP): Do not undefine.
12155
12156 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12157
121582008-07-21 Chong Yidong <cyd@stupidchicken.com>
12159
12160 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12161 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12162 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12163 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12164 (Fns_display_mm_height, Fns_display_mm_width)
12165 (Fns_display_backing_store, Fns_display_visual_class)
12166 (Fns_display_save_under, Fns_open_connection)
12167 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12168 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12169 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12170 (Fns_display_pixel_width, Fns_display_pixel_height)
12171 (Fns_display_usable_bounds, Fx_display_planes)
12172 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12173
121742008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12175
12176 * print.c (print_object): Check print_depth before searching for
12177 circularities.
12178
121792008-07-21 Michael Albinus <michael.albinus@gmx.de>
12180
12181 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12182 only sprintf.
12183
121842008-07-21 Kenichi Handa <handa@m17n.org>
12185
12186 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12187
121882008-07-20 Andreas Schwab <schwab@suse.de>
12189
12190 * syntax.c (find_start_pos, find_start_value)
12191 (find_start_value_byte, find_start_begv, find_defun_start)
12192 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12193
121942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12195
12196 * s/sol2-3.h: Insert contents of s/sol2.h.
12197 (LD_SWITCH_SYSTEM): Remove redundant definition.
12198 * s/sol2.h: Remove, unused.
12199
122002008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12201
12202 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12203
122042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12205
12206 * Makefile.in (ns_appdir): Fix typo in find command.
12207
122082008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12209
12210 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12211
12212 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12213 added not supported anymore.
12214
12215 * s/usg5-4-2.h (LIBS_SYSTEM):
12216 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12217
12218 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12219 * s/lynxos.h (GETPGRP_NO_ARG):
12220 * s/hpux10-20.h (NO_SIOCTL_H):
12221 * s/gnu.h (GETPGRP_NO_ARG):
12222 * s/gnu-linux.h (NO_SIOCTL_H):
12223 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12224 * s/cygwin.h (GETPGRP_NO_ARG):
12225 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12226 (C_DEBUG_SWITCH): Remove duplicate definition.
12227
12228 * m/ibms390.h: Remove boilerplate comments.
12229
12230 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12231
12232 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12233 (wait_reading_process_output): Remove code for SunOS, platform not
12234 supported anymore. Use SOLARIS2 instead of sun.
12235
122362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12237
12238 * font.c (font_open_by_name): Under NS, default lface height to zero.
12239 (font_open_for_lface): Under NS, set size based on frame fontsize.
12240 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12241 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12242
122432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12244
12245 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12246 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12247 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12248 YES/NO.
12249 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12250 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12251 * Makefile.in (clean): Clear out build destination dir.
12252
122532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12254
12255 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12256 xterm, xselect.
12257 * lisp.h: Remove declaration of hash_remove.
12258 * nsgui.h: Remove redefinitions of hash_remove.
12259 * fns.c (hash_remove): Rename to hash_remove_from_table.
12260
122612008-07-19 Seiji Zenitani <zenitani@mac.com>
12262
12263 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12264 strdup() the family UTF8String before modifying it.
12265
122662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12267
12268 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12269 NS_FACE_BACKGROUND with 0 instead of nil.
12270 * nsfont.m (nsfont_draw): Same.
12271
122722008-07-19 Chong Yidong <cyd@stupidchicken.com>
12273
12274 * nsfns.m (ns_set_background_color): Fix crash.
12275
122762008-07-18 Chong Yidong <cyd@stupidchicken.com>
12277
12278 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12279
122802008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12281
12282 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12283
122842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12285
12286 * gtkutil.c: Include <config.h> instead of "config.h".
12287
12288 * lisp.h (Foverlay_buffer): Add EXFUN.
12289
12290 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12291 child process to complete child_setup. Undo 2005-09-21 change.
12292
12293 * s/darwin.h: Mention setsid after vfork.
12294
122952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12296
12297 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12298 Depend on macgui.h.
12299
12300 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12301 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12302
12303 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12304 and f19.
12305 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12306
12307 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12308 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12309 Remove enumerators.
12310
12311 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12312 Check if FACE_FROM_ID returns NULL.
12313
123142008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12315
12316 * w32inevt.c (change_frame_size): Remove extern declaration.
12317 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12318 change_frame_size.
12319
123202008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12321
12322 * getloadavg.c: Revert last change (2008-07-15).
12323
123242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12325
12326 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12327 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12328 from configure.
12329
123302008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12331
12332 * s/sol2.h:
12333 * s/sol2-4.h: Reorganize conditionals.
12334
12335 * ecrt0.c: Remove code depending on m68000, not used anymore.
12336
12337 * fns.c (hash_remove): Make static.
12338 * lisp.h (hash_remove): Don't prototype.
12339
12340 * m/ibmrs6000.h:
12341 * m/ibms390x.h:
12342 * m/macppc.h: Remove boilerplate comments.
12343
12344 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12345 Solaris, which does not need them.
12346
12347 * m/vax.h: Remove comments about unsupported systems.
12348
12349 * s/darwin.h: Reorganize ifdefs.
12350
123512008-07-17 Andreas Schwab <schwab@suse.de>
12352
12353 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12354
123552008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12356
12357 Use SDATA. Follow coding convention of placing operators at
12358 beginning of next line rather than end of previous line, and placing
12359 spaces around infix operators.
12360
12361 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12362 in case it was defined already.
12363 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12364 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12365 ns_default.
12366 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12367 Lisp_Objects.
12368 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12369 (ns_defined_color, ns_color_to_lisp): Declare.
12370 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12371 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12372 it's accepted even with USE_LISP_UNION_TYPE.
12373 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12374 (update_frame_tool_bar): Remove apparently obsolete tests for
12375 non-integerness of f->tool_bar_lines.
12376 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12377 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12378 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12379 (nsfont_open): Don't confuse NULL for Qnil.
12380 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12381 * menu.h (find_and_call_menu_selection):
12382 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12383 (find_and_return_menu_selection): Always return something.
12384 * frame.h: Include dispextern.h for Display_Info.
12385 (display_x_get_resource): Declare.
12386
123872008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12388
12389 * syntax.c: Remove stdio.h include accidentally introduced in
12390 Emacs.app commit.
12391 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12392 NS_IMPL_COCOA.
12393 * keyboard.c (handle_async_input, input_available_signal): Remove
12394 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12395
123962008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12397
12398 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12399 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12400 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12401 Use SDATA.
12402
12403 * keymap.c: Remove all NS-specific code.
12404 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12405 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12406 where_is_preferred_modifier, return a different value depending on how
12407 preferred is the binding.
12408 (where_is_internal): Adjust accordingly.
12409 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12410 Adjust to new preferred_sequence_p.
12411 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12412 * keyboard.c (parse_solitary_modifier): Not static any more.
12413 * keyboard.h (parse_solitary_modifier): Declare.
12414
124152008-07-16 Andreas Schwab <schwab@suse.de>
12416
12417 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12418 of easymenu.
12419
124202008-07-16 Chong Yidong <cyd@stupidchicken.com>
12421
12422 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12423 that we don't move off the line.
12424
124252008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12426
12427 * keyboard.c (Qsuper): Remove.
12428 (parse_menu_item): Don't call where_is_internal specially for NS.
12429
124302008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12431
12432 * s/gnu-linux.h: Remove boilerplate comments.
12433
12434 * m/alpha.h (__ELF__): Consolidate conditions.
12435
12436 * m/m68k.h (linux): Use GNU_LINUX instead.
12437 Remove boilerplate comments.
12438
12439 * m/intel386.h: Undo refactoring from previous change.
12440 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12441 too, remove dead code.
12442 (linux): Use GNU_LINUX instead.
12443
124442008-07-16 Jason Rumney <jasonr@gnu.org>
12445
12446 * w32gui.h: Repeat 26 June changes lost by last change.
12447
124482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12449
12450 * systty.h: Remove code for Aix on 386, unsupported platform.
12451
12452 * s/ms-w32.h: Remove boilerplate comments.
12453 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12454
12455 * s/gnu-linux.h (TERM): Remove support.
12456 (HAVE_SYSVIPC): Remove, unused.
12457 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12458 for this system.
12459
12460 * process.c: Remove support for IRIS, unused.
12461 Remove support for TERM, not relevant anymore.
12462
12463 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12464 used with the definition.
12465
12466 * s/aix4-2.h (static): Do not undef.
12467
12468 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12469 only used on Aix.
12470 (HAVE_SYSVIPC): Remove, unused.
12471
12472 * m/hp800.h (CANNOT_DUMP): Do not undef.
12473
12474 * m/alpha.h: Fix comment.
12475
12476 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12477 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12478 used by this configuration.
12479 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12480 * unexec.c: Remove code depending on HPUX and
12481 USG_SHARED_LIBRARIES, not used with this file. Remove code
12482 depending on IRIS, unused. Remove if 0-ed code.
12483
12484 * s/template.h: Remove comments about static.
12485
12486 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12487 Remove if 0-ed code.
12488 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12489 were the same as the default.
12490 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12491 Remove boilerplate comments.
12492 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12493 (HAVE_SYSVIPC): Remove, unused.
12494 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12495
12496 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12497 Remove boilerplate comments.
12498 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12499 Remove boilerplate comments.
12500 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12501 Remove boilerplate comments.
12502 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12503
12504 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12505 USG systems which do not use DATA_SEG_BITS.
12506 Refactor code. Remove boilerplate comments.
12507
12508 * m/ibms390.h:
12509 * m/m68k.h:
12510 * s/bsd-common.h:
12511 * s/cygwin.h:
12512 * s/darwin.h:
12513 * s/freebsd.h:
12514 * s/gnu.h:
12515 * s/msdos.h: Remove boilerplate comments.
12516
12517 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12518 do not use this file.
aac0c6e3
MR
12519 (IRIS_4D): Remove, unused.
12520
12521 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12522 do not use this file.
aac0c6e3
MR
12523 (SIGN_EXTEND_CHAR):
12524 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12525 * unexmips.c: Remove file, unused.
12526
12527 * editfns.c (Fuser_full_name): Replace the only use of
12528 USER_FULL_NAME with its value.
12529 * config.in: Regenerate.
12530
125312008-07-16 David Reitter <david.reitter@gmail.com>
12532
12533 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12534 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12535
125362008-07-16 Glenn Morris <rgm@gnu.org>
12537
12538 * emacs.c (system-type): Doc fix.
12539
125402008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12541
12542 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12543 If the cache doesn't work, let's fix it, rather than work around it.
12544
125452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12546
12547 * Makefile.in: Correct additions for nsfont.o in last commit.
12548 * nsfont.m: New file (forgot last commit).
12549
125502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12551
12552 * callproc.c (set_initial_environment): Initialize
12553 Vprocess_environment under CANNOT_DUMP (fixes crash when
12554 batch-compiling for bootstrap).
12555
125562008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12557 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12558
c4cc8b9a
JB
12559 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12560 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12561
125622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12563
12564 Changes and additions for NeXTstep windowing system (Cocoa and
12565 GNUstep) support.
12566
12567 * Makefile.in:
12568 * config.in: Support defines and build commands for NS port.
12569 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12570 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12571 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12572 windowing.
12573 (struct face): Add synth_ital field.
12574 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12575 (init_display): Initialize Vinitial_window_system to "ns" when so
12576 compiled.
12577 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12578 (display_arg): Use under NS.
12579 (main): Under NS, allocate autorelease pool and handle command line
12580 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12581 (standard_args): Add NS-specific args.
12582 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12583 * font.c (DEFAULT_ENCODING): New variable.
12584 (font_find_for_lface): Use it.
12585 (syms_of_font): Load syms_of_nsfont under NS.
12586 * font.h: Declare nsfont_driver when compiled under NS.
12587 * fontset.c: When compiling under NS, include nsterm.h.
12588 (fontset_from_font): Autoconstruct fontset under NS.
12589 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12590 symbol, document and use it.
12591 (do_switch_frame): When for_deletion under Cocoa, add
12592 Fraise_frame(Qnil).
12593 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12594 (x_get_arg): Allow "yes" and "no" as boolean values.
12595 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12596 Qright under Cocoa.
12597 (focus-follows-mouse): Default to 0 under NS.
12598 * frame.h (enum output_method): Add output_ns.
12599 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12600 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12601 (FRAME_WINDOW_P): NS-specific definition.
12602 * fringe.c (max_used_fringe_bitmap): Make public.
12603 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12604 (getloadavg): Use NeXT code under descendant OS's.
12605 * image.c (includes and header section, x_create_bitmap_from_data)
12606 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12607 (image_background_transparent, x_clear_image_1)
12608 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12609 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12610 (x_to_xcolors, x_from_xcolors, x_disable_image)
12611 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12612 other GUIs, including XPM support using code originally written for
12613 Carbon GUI.
12614 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12615 using NS API.
12616 (image_ascent): Use font metrics macros instead of direct struct field
12617 access.
12618 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12619 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12620 Also, handle NS as GTK for menu bar purposes.
12621 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12622 toolkit where they differ.
12623 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12624 use cachelist, still needed under NS.
12625 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12626 (struct widget_value): Define it here for menu.c.
12627 * keymap.c (includes): Include modifier internals.
12628 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12629 NS.
12630 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12631 support for preferring sequences using certain modifiers, specified by
12632 the FIRSTONLY argument.
12633 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12634 under NS GNUstep implementation.
12635 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12636 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12637 * menu.c: Include nsterm.h under NS.
12638 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12639 (free_menubar_widget_tree_value, update_submenu_strings)
12640 (find_and_call_menu_selection): Treat NS as X and NT.
12641 (find_and_return_menu_selection): New function, used for popup menus.
12642 * nsgui.h:
12643 * nsterm.h:
12644 * nsfns.m:
12645 * nsimage.m:
12646 * nsmenu.m:
12647 * nsselect.m:
12648 * nsterm.m: New files.
12649 * process.c (wait_reading_process_output): Under NS, call ns_select()
12650 instead of plain select().
12651 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12652 beginning of buffer.
12653 * sysselect.h (init_process): Rename when compiling under Cocoa to
12654 avoid name conflict.
12655 * termhooks.h (display_info): Add ns_display_info to union.
12656 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12657 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12658 COCOA environment.
12659 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12660 unexec() signature. (Note, this will dump, but the resulting file
12661 crashes; unexosx is used instead; keeping around for reference and
12662 possible aid in getting dump working under GNUstep.)
12663 * w32gui.h (button_type, widget_value): Remove definitions (now in
12664 keyboard.h).
12665 * window.c: Include nsterm.h when compiling under NS.
12666 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12667 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12668 other GUI windowing systems.
12669 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12670 GTK.
12671 (x_consider_frame_title): Under NS, set icon type and frame
12672 modified-state indicator; use ns_set_name_as_filename() when using
12673 formatted title.
12674 (update_window_cursor): Make public when compiling under NS.
12675 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12676 (hourglass_atimer, Vhourglass_delay
12677 * xfaces.c (header section, init_frame_faces, clear_font_table)
12678 (defined_color, unload_color, x_face_list_fonts)
12679 (prepare_face_for_display): Add NS support parallel to other GUIs.
12680 Emulate GCs like other non-X GUIs.
12681 (split_font_name): Don't lowercase font name under NS.
12682 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12683 under NS.
12684 * s/darwin.h: Add support for compilation under NS.
12685
126862008-07-15 Jason Rumney <jasonr@gnu.org>
12687
12688 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12689 (w32_show_hourglass): Rename from show_hourglass.
12690 (w32_hide_hourglass): Rename from hide_hourglass.
12691 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12692 (Vhourglass_delay): Declare extern.
12693 (hourglass_started): Remove.
12694
12695 * xdisp.c (Vhourglass_delay): Remove static.
12696 (hourglass_started, start_hourglass, cancel_hourglass):
12697 Don't include these versions on WINDOWSNT.
12698
126992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12700
12701 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12702 variables (formerly in xfns.c).
12703 (show_hourglass, hide_hourglass): New prototypes (same).
12704 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12705 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12706 in xfns.c).
12707 (syms_of_xdisp): Declare/initialize display-hourglass,
12708 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12709 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12710 formerly in xfns.c.
12711 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12712 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12713 (start_hourglass, cancel_hourglass): Remove.
12714 (show_hourglass, hide_hourglass): Remove prototypes and static
12715 modifiers.
12716 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12717 hourglass_atimer, hourglass_shown_p declaration/initialization.
12718 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12719 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12720 (start_hourglass, cancel_hourglass): Remove.
12721 (show_hourglass, hide_hourglass): Remove prototypes and static
12722 modifiers.
12723 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12724 hourglass_atimer, hourglass_shown_p declaration/initialization.
12725 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12726 (DEFAULT_HOURGLASS_DELAY): Remove.
12727 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12728 hourglass_shown_p declaration/initialization.
12729
127302008-07-14 Jason Rumney <jasonr@gnu.org>
12731
12732 * w32fns.c (w32_get_arg): Remove wrapper function.
12733 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12734 directly.
12735 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12736
127372008-07-14 Kenichi Handa <handa@m17n.org>
12738
12739 * xfont.c (xfont_open): Add workaround for X's bug.
12740
127412008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12742
12743 * fontset.c: Include <stdio.h> unconditionally.
12744
127452008-07-13 Michael Albinus <michael.albinus@gmx.de>
12746
12747 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12748 for filtering.
12749
127502008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12751
12752 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12753
12754 * m/macppc.h:
12755 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12756
c4cc8b9a 12757 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12758 (SPECIAL_EMACS_INT):
12759 * m/ia64.h (SPECIAL_EMACS_INT):
12760 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12761 * s/gnu.h (NLIST_STRUCT):
12762 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12763 * s/gnu-linux.h (LINUX):
12764 * s/msdos.h (HAVE_FACES):
12765 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12766
12767 * systty.h:
12768 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12769 anymore.
12770
127712008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12772
12773 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12774 always defined as int.
12775
12776 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12777 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12778 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12779 * s/freebsd.h (HAVE_WAIT_HEADER):
12780 * s/bsd-common.h (HAVE_UNION_WAIT):
12781 * s/aix4-2.h (HAVE_WAIT_HEADER):
12782 * m/mips.h (HAVE_UNION_WAIT):
12783 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12784 (COFF, static): Do not define, they are undefined later in the file.
12785
12786 * process.c (update_status): Don't use a union.
12787 (status_convert):
12788 (sigchld_handler): Use int instead of WAITTYPE.
12789
127902008-07-12 Chong Yidong <cyd@stupidchicken.com>
12791
12792 * indent.c (Fvertical_motion): Restore hscroll before moving to
12793 goal column.
12794
127952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12796
12797 * lisp.h: Remove left over code.
12798
127992008-07-11 Andreas Schwab <schwab@suse.de>
12800
12801 * lisp.h: Fix logic in last change.
12802
12803 * menu.h: New file.
12804 * menu.c: Include it.
12805 * xmenu.c: Likewise.
12806 * Makefile.in: Update dependencies.
12807
128082008-07-11 Kenichi Handa <handa@m17n.org>
12809
12810 * fontset.c (fontset_from_font): Cancel the previous change.
12811
128122008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12813
12814 * lisp.h:
12815 * w32heap.c:
12816 * emacs.c:
12817 * alloc.c: Replace all references of NO_UNION_TYPE with
12818 USE_LISP_UNION_TYPE.
12819
12820 * m/xtensa.h (NO_UNION_TYPE):
12821 * m/vax.h (NO_UNION_TYPE):
12822 * m/template.h (NO_UNION_TYPE):
12823 * m/sparc.h (NO_UNION_TYPE):
12824 * m/mips.h (NO_UNION_TYPE):
12825 * m/macppc.h (NO_UNION_TYPE):
12826 * m/m68k.h (NO_UNION_TYPE):
12827 * m/iris4d.h (NO_UNION_TYPE):
12828 * m/intel386.h (NO_UNION_TYPE):
12829 * m/ibms390x.h (NO_UNION_TYPE):
12830 * m/ibms390.h (NO_UNION_TYPE):
12831 * m/ibmrs6000.h (NO_UNION_TYPE):
12832 * m/ia64.h (NO_UNION_TYPE):
12833 * m/hp800.h (NO_UNION_TYPE):
12834 * m/arm.h (NO_UNION_TYPE):
12835 * m/amdx86-64.h (NO_UNION_TYPE):
12836 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12837 defining it the same.
12838
128392008-07-10 Chong Yidong <cyd@stupidchicken.com>
12840
12841 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12842
128432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12844
12845 * fileio.c:
50426a04 12846 * sysdep.c:
aac0c6e3
MR
12847 * systty.h:
12848 * m/ibmrs6000.h:
12849 * m/iris4d.h:
12850 * s/aix4-2.h:
12851 * s/freebsd.h:
12852 * s/gnu-linux.h:
12853 * s/hpux10-20.h:
12854 * s/hpux11.h:
12855 * s/netbsd.h:
12856 * s/sol2-3.h:
12857 * s/sol2-4.h:
12858 * s/sol2.h:
12859 * s/usg5-4.h:
12860 * s/vms.h: Remove references to unused variables.
12861
128622008-07-10 Andreas Schwab <schwab@suse.de>
12863
12864 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12865 pattern before matching the generic family.
12866
128672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12868
12869 * unexec.c:
12870 * s/vms.h:
12871 * s/usg5-4-2.h:
12872 * s/sol2-5.h:
12873 * s/freebsd.h:
12874 * s/darwin.h: Remove dead code.
12875
12876 * m/template.h:
12877 * m/sparc.h:
12878 * m/mips.h:
12879 * m/m68k.h:
12880 * m/iris4d.h:
12881 * m/intel386.h:
12882 * m/ibms390x.h:
12883 * m/ibms390.h:
12884 * m/ia64.h:
12885 * m/hp800.h:
12886 * m/arm.h:
12887 * m/amdx86-64.h: Remove dead code and references to unused
12888 and compiler defined symbols.
12889
12890 * unexmips.c:
12891 * unexelf.c: Remove references to desupported systems.
12892
12893 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12894
12895 * m/powermac.h: Remove boilerplate comments.
12896 (NO_REMAP): Remove unused definition.
12897
12898 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12899 define them.
12900
129012008-07-10 Kenichi Handa <handa@m17n.org>
12902
12903 * xfont.c (xfont_open): Log the reason of failure.
12904
129052008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12906
12907 * fontset.c (fontset_get_font_group):
12908 * font.c (font_check_otf): Specify argument types.
12909
129102008-07-09 Kenichi Handa <handa@m17n.org>
12911
12912 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12913 non-ASCII char is found.
12914
12915 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12916 (reorder_font_vector): Change the arg preferred_family to font.
12917 Prefer the spec matching with font.
12918 (fontset_get_font_group): New function.
12919 (fontset_find_font): Change the format of an element of a realized
12920 fontset. Use fontset_get_font_group.
12921 (fontset_font): Try the current fontset, the default fontset, the
12922 fallbacks of the current fontset, and the fallbacks of the default
12923 fontset in this order.
12924 (face_for_char): Delete the shortcut to use the current font.
12925 (fontset_from_font): Don't set fonts for Latin in the fontset.
12926
12927 * font.h (font_make_object, font_match_p): Adjust prototypes.
12928
12929 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12930
12931 * font.c (font_make_object): New arg entity and pixelsize.
12932 (font_check_otf_features, font_check_otf): New functions.
12933 (font_match_p): Check :lang, :script, and :otf properties.
12934
12935 * xfont.c (xfont_open): Adjust it for the change of
12936 font_make_object.
12937 (xfont_text_extents): Fix initial setting of metrics.
12938
12939 * ftfont.c (struct ftfont_info): New member index, delete member
12940 fc_charset_idx. Make the member order compatible with struct
12941 xftfont_info.
12942 (fc_charset_table): Change charset names to registry names.
12943 (ftfont_pattern_entity): Delete the args registry and
12944 fc_charset_idx. Change the value of :font-entity property
12945 to (FONTNAME . INDEX). Always set :registry property to
12946 `iso10646-1'.
12947 (struct ftfont_cache_data): New struct.
12948 (ftfont_lookup_cache): New arg for_face.
12949 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12950 (ftfont_driver): Set the member otf_capability.
12951 (ftfont_get_charset): Adjust it for the change of
12952 fc_charset_table.
12953 (OTF_TAG_SYM): New macro.
12954 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12955 for the change of fc_charset_table.
12956 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12957 ftfont_pattern_entity. Add FC_INDEX to objset.
12958 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12959 and ftfont_pattern_entity.
12960 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12961 font_make_object, struct ftfont_info.
12962 (ftfont_has_char): Use ftfont_get_fc_charset.
12963 (ftfont_otf_features, ftfont_otf_capability): New functions.
12964 (ftfont_shape): Use ftfont_get_otf.
12965 (ftfont_text_extents): Fix initial setting of metrics.
12966
12967 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12968 member order compatible with struct ftfont_info.
12969 (xftfont_open): Add FC_CHARSET to the pattern. Set
12970 xftfont_info->ft_size. Don't unlock the face. Check BDF
12971 properties if appropriate.
12972 (xftfont_close): Unlock the face.
12973 (xftfont_anchor_point, xftfont_shape): Deleted.
12974 (syms_of_xftfont): Don't set members anchor_point and shape of
12975 xftfont_driver.
12976
12977 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12978 font_make_object.
12979
12980 * w32font.c (w32font_open): Adjust it for the change of
12981 font_make_object.
12982 (w32font_open_internal): Don't set properties of font_object here.
12983
129842008-07-08 Chong Yidong <cyd@stupidchicken.com>
12985
12986 * macfns.c (x_create_tip_frame):
12987 * w32fns.c (x_create_tip_frame):
12988 * xfns.c (x_create_tip_frame): Pass parameter argument to
12989 face-set-after-frame-default.
12990
12991 * xfaces.c (Finternal_merge_in_global_face): Save merged
12992 attributes for the default face back into the face vector.
12993
129942008-07-08 Andreas Schwab <schwab@suse.de>
12995
12996 * fontset.h: Declare fontset_from_font. Don't declare
12997 new_fontset_from_font and fontset_from_font_name.
12998 * xterm.c: Include "fontset.h".
12999 * Makefile.in (xterm.o): Update dependencies.
13000
130012008-07-08 Glenn Morris <rgm@gnu.org>
13002
13003 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13004 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13005
130062008-07-07 Chong Yidong <cyd@stupidchicken.com>
13007
13008 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13009 (x_set_frame_parameters): Don't bind it.
13010
130112008-07-07 Juanma Barranquero <lekktu@gmail.com>
13012
13013 * w32fns.c (map_w32_filename): Declare extern.
13014
130152008-07-07 Jason Rumney <jasonr@gnu.org>
13016
13017 * w32term.c (WS_EX_LAYERED): Define if not already.
13018
130192008-07-06 Chong Yidong <cyd@stupidchicken.com>
13020
13021 * xfaces.c (set_font_frame_param): Don't try to set the font
13022 parameter if it is still unspecified in the lface.
13023
130242008-07-05 Chong Yidong <cyd@stupidchicken.com>
13025
13026 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13027 face if it didn't already exist.
13028
13029 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13030
130312008-07-05 Andreas Schwab <schwab@suse.de>
13032
13033 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13034
130352008-07-05 Chong Yidong <cyd@stupidchicken.com>
13036
13037 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13038 word-wrapping.
13039 (IT_DISPLAYING_WHITESPACE): New macro.
13040 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13041 when word-wrapping. Simplify word-wrapping logic. Use correct
13042 pixel positions when saving copies of the iterator.
13043 (display_line): Use proper wrap point if the last character on a
13044 line was preceded by whitespace.
13045
130462008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13049
130502008-07-04 Kenichi Handa <handa@m17n.org>
13051
13052 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13053
13054 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13055
130562008-07-02 Jason Rumney <jasonr@gnu.org>
13057
13058 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13059 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13060
13061 * xdisp.c (next_element_from_display_vector): Move assignment out
13062 of if statement.
13063
130642008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13065
13066 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13067
13068 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13069 (syms_of_fileio): Initialize and export them.
13070 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13071
13072 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13073 (Fsystem_move_file_to_trash): New function.
13074 (syms_of_w32fns): Export it to lisp.
13075
130762008-07-01 Jason Rumney <jasonr@gnu.org>
13077
13078 * w32font.c (w32font_text_extents): Don't count overhang as part
13079 of width.
13080
130812008-06-30 Miles Bader <miles@gnu.org>
13082
13083 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13084 Add `avoid_cursor_p' field.
13085
13086 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13087 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13088 (append_glyph, append_composite_glyph, produce_image_glyph)
13089 (append_stretch_glyph): Initialize avoid_cursor_p.
13090 (get_it_property): Rename from `get_line_height_property'.
13091 (x_produce_glyphs): Use get_it_property.
13092 (handle_line_prefix, push_display_prop): New functions.
13093 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13094 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13095 New variables.
13096 (syms_of_xdisp): Initialize them.
13097
130982008-06-30 Kenichi Handa <handa@m17n.org>
13099
13100 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13101 XftDefaultSubstitute (they are called in XftFontMatch).
13102 (xftfont_open): Fix args to ftfont_font_format.
13103
13104 * ftfont.c (fc_charset_table): New member lang.
13105 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13106 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13107 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13108 (ftfont_open): Fix args to ftfont_font_format.
13109 (ftfont_font_format): New arg filename.
13110
131112008-06-30 Chong Yidong <cyd@stupidchicken.com>
13112
13113 * xfaces.c (Finternal_merge_in_global_face): If default face was
13114 modified, realize it again. Update the font face attribute.
13115
131162008-06-29 Jason Rumney <jasonr@gnu.org>
13117
13118 * w32term.c (x_set_frame_alpha): Fix logic.
13119
131202008-06-29 Kenichi Handa <handa@m17n.org>
13121
13122 * fontset.c (Finternal_char_font): Return font-object instead of
13123 font-name.
13124
13125 * composite.c (get_composition_id): Fix the width calculation for TAB.
13126
131272008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * indent.c (Fvertical_motion): Properly handle float column arg.
13130
131312008-06-28 Jason Rumney <jasonr@gnu.org>
13132
13133 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13134 (pfnSetLayeredWindowAttributes): New function pointer.
13135 (w32_initialize): Initialize it when supported.
13136 (x_set_frame_alpha): New function.
13137
13138 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13139 (w32_frame_parm_handlers): Set alpha handler.
13140
13141 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13142
131432008-06-27 Jason Rumney <jasonr@gnu.org>
13144
13145 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13146 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13147 (w32_to_x_charset, x_to_w32_charset)
13148 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13149 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13150 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13151 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13152 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13153 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13154 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13155 (Qw32_charset_unicode): Remove.
13156 (syms_of_w32fns): Update for above changes.
13157
13158 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13159 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13160 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13161 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13162 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13163 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13164 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13165 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13166 (syms_of_w32font): Update for above changes.
13167
131682008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13169
13170 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13171 removed #if.
13172 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13173
131742008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13175 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13176
13177 * makefile.w32-in (LOCAL_FLAGS):
13178 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13179
13180 * sysdep.c (_spawnlp, _getpid):
13181 Declare with explicit _cdecl instead of _CRTAPI1.
13182
13183 * editfns.c (Fget_internal_run_time):
13184 Check for WINDOWSNT with #ifdef, not #if.
13185
131862008-06-26 Jason Rumney <jasonr@gnu.org>
13187
13188 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13189
13190 * w32term.c (x_draw_glyph_string_foreground)
13191 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13192 Use FONT_HANDLE macro.
13193 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13194
13195 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13196 (uniscribe_encode_char): Use FONT_HANDLE macro.
13197
13198 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13199 (w32font_text_extents): Use precast w32_font.
13200 (w32font_close): Free cached metrics.
13201 (w32font_open_internal): Allocate space for name on stack.
13202
132032008-06-26 Chong Yidong <cyd@stupidchicken.com>
13204
13205 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13206
132072008-06-26 Jason Rumney <jasonr@gnu.org>
13208
13209 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13210 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13211
132122008-06-26 Juanma Barranquero <lekktu@gmail.com>
13213
13214 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13215
132162008-06-26 Jason Rumney <jasonr@gnu.org>
13217
13218 * w32bdf.c, w32bdf.h: Remove obsolete files.
13219
13220 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13221
13222 * w32gui.h: Don't include w32bdf.h.
13223 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13224 Remove obsolete font support.
13225
13226 * w32font.h (struct w32font_info): Remove compat_w32_font.
13227 Add hfont member.
13228 (FONT_COMPAT): Remove obsolete macro.
13229
13230 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13231 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13232 (w32font_open_internal): Remove compat code. Set new hfont member.
13233 (Fx_select_font): Use new hfont member.
13234
13235 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13236 (uniscribe_encode_char): Use new hfont member.
13237
13238 * w32term.c (x_draw_glyph_string_foreground)
13239 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13240 (x_draw_glyph_string): Use metrics in w32font_info.
13241
132422008-06-26 Kenichi Handa <handa@m17n.org>
13243
13244 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13245
132462008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13247
13248 * unexnext.c:
13249 * m/ews4800.h:
13250 * m/hp9000s300.h:
13251 * m/ibm370aix.h:
13252 * m/mips-siemens.h:
13253 * m/ncr386.h:
13254 * m/next.h:
13255 * m/pmax.h:
13256 * m/powerpcle.h:
13257 * m/tandem-s2.h:
13258 * s/386bsd.h:
13259 * s/bsd386.h:
13260 * s/bsd4-1.h:
13261 * s/bsd4-2.h:
13262 * s/bsdos2-1.h:
13263 * s/bsdos2.h:
13264 * s/bsdos3.h:
13265 * s/bsdos4.h:
13266 * s/nextstep.h:
13267 * s/ultrix4-3.h:
13268 * s/usg5-0.h:
13269 * s/usg5-2-2.h:
13270 * s/usg5-2.h:
13271 * s/usg5-4-3.h:
13272 * s/ux4800.h:
13273 * s/uxpds.h:
13274 * s/uxpv.h: Remove support for obsolete systems.
13275 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13276 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13277 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13278 Remove, insert contents in s/aix4-2.h.
13279 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13280 * s/bsd4-3.h: Rename to ...
13281 * s/bsd-common.h: ... this.
13282 * data.c:
13283 * doc.c:
13284 * ecrt0.c:
13285 * emacs.c:
13286 * fileio.c:
13287 * floatfns.c:
13288 * keyboard.c:
13289 * mem-limits.h:
13290 * print.c:
13291 * process.c:
13292 * sysdep.c:
13293 * syssignal.h:
13294 * systty.h:
13295 * syswait.h:
13296 * term.c:
13297 * unexec.c:
13298 * unexelf.c:
13299 * unexhp9k800.c:
13300 * m/hp800.h:
13301 * m/ibmrs6000.h:
13302 * m/mips.h:
13303 * m/vax.h:
13304 * s/darwin.h:
13305 * s/freebsd.h:
13306 * s/gnu.h:
13307 * s/ms-w32.h:
13308 * s/msdos.h:
13309 * s/netbsd.h:
13310 * s/template.h: Remove references to obsolete variables.
13311
13312 * Makefile.in: Add dependencies for all unexec files.
13313 (admindir): Remove unused variable.
13314 (UNEXEC_SRC): Remove references.
13315
133162008-06-25 Chong Yidong <cyd@stupidchicken.com>
13317
13318 * xfns.c (x_default_font_parameter): If Xft is available, first
13319 try Monospace-12 for the default font.
13320
133212008-06-25 Jason Rumney <jasonr@gnu.org>
13322
13323 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13324
133252008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13326
13327 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13328
13329 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13330
133312008-06-25 Juanma Barranquero <lekktu@gmail.com>
13332
13333 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13334 <scroll-conservatively>: Fix typo in docstring.
13335
13336 * xselect.c (Fx_send_client_event): Doc fix.
13337
133382008-06-25 Kenichi Handa <handa@m17n.org>
13339
13340 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13341
13342 * font.c (font_parse_fcname): Remove unused variables.
13343 (font_sort_entites): Delete the arg SPEC. Caller changed.
13344 Fix for the case of ! best_only.
13345 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13346
13347 * lisp.h (Fstring_to_unibyte): EXFUN it.
13348
13349 * character.h (str_to_unibyte): Extern it.
13350
13351 * character.c (str_to_unibyte): New function.
13352
13353 * fns.c (Fstring_to_unibyte): New function.
13354 (syms_of_fns): Defsubr it.
13355
133562008-06-24 Kenichi Handa <handa@m17n.org>
13357
13358 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13359 DPI too.
13360 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13361
133622008-06-24 Andreas Schwab <schwab@suse.de>
13363
13364 * Makefile.in (${lispsource}loaddefs.el): Rename from
13365 ../lisp/loaddefs.el.
13366 (bootstrap-clean): Do what distclean does but don't remove
13367 Makefile.
13368 (distclean): Depend on bootstrap-clean and remove Makefile.
13369
133702008-06-24 Chong Yidong <cyd@stupidchicken.com>
13371
13372 * buffer.h (struct buffer): New member word_wrap.
13373
13374 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13375 word-wrap.
13376 (init_buffer_once): Initialize them.
13377
13378 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13379 line_wrap enum possessing three possible values.
13380
13381 * termopts.h: Replace truncate_partial_width_windows with
13382 Vtruncate_partial_width_windows.
13383
13384 * dispnew.c (direct_output_for_insert): Avoid direct output when
13385 inserting a space with word wrap on.
13386
13387 * indent.c (compute_motion): Obey integer values of
13388 truncate-partial-width-windows.
13389
13390 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13391 replacing truncate_partial_width_windows.
13392 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13393 truncate only if the window width is below that integer.
13394 (start_display, resize_mini_window, produce_stretch_glyph)
13395 (display_string, move_it_in_display_line_to): Use line_wrap.
13396 (back_to_previous_visible_line_start, reseat_1): Reset
13397 string_from_display_prop_p.
13398 (display_line): Extend default face to end of line when wrapping.
13399
134002008-06-24 Kim F. Storm <storm@cua.dk>
13401
13402 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13403 to wrap continued lines at word boundaries.
13404
134052008-06-24 Jason Rumney <jasonr@gnu.org>
13406
13407 * font.c (Ffont_face_attributes): Multiply pixel size before point
13408 conversion to avoid multiplying rounding error.
13409
134102008-06-23 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32term.c (x_draw_glyph_string_background)
13413 (x_draw_glyph_string): Remove old bdf font code.
13414
13415 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13416
134172008-06-22 Kenichi Handa <handa@m17n.org>
13418
13419 * font.c (font_find_for_lface): Try the adstyle specified in
13420 the property of LFACE_FONT of LFACE (if any).
13421
134222008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13423 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13424
13425 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13426
134272008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13428
13429 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13430 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13431 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13432 (witness-emacs): Remove.
13433 (lisp, shortlisp): Move loaddefs.el earlier.
13434 (mostlyclean): Forget about witness-emacs.
13435
134362008-06-22 Glenn Morris <rgm@gnu.org>
13437
13438 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13439 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13440
134412008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13442
13443 * Makefile.in (PRECOMP): Remove.
13444 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13445 (witness-emacs): Run `compile-first'.
13446 (.el.elc): Use the new compile-onefile target.
13447
134482008-06-21 Kenichi Handa <handa@m17n.org>
13449
13450 * xftfont.c (xftfont_open): Handle QCembolden only when
13451 FC_EMBOLDEN is defined.
13452
134532008-06-21 Andreas Schwab <schwab@suse.de>
13454
13455 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13456 (.el.elc): Likewise.
13457
134582008-06-21 Miles Bader <miles@gnu.org>
13459
13460 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13461 build dir, not the lisp source dir.
13462
134632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13464
13465 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13466 (bootstrapclean): Remove.
13467 (.el.elc): New rule.
13468 (PRECOMP): New var.
13469 (../lisp/subdirs.el): Remove.
13470 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13471 (witness-emacs): New target.
13472 (mostlyclean): Remove witness-emacs as well.
13473 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13474 Add witness-emacs dependency.
13475
134762008-06-20 Chong Yidong <cyd@stupidchicken.com>
13477
13478 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13479 defined by the font.
13480
134812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13484 (bootstrap-clean): New target that keeps TAGS around.
13485 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13486 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13487
134882008-06-20 Jason Rumney <jasonr@gnu.org>
13489
13490 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13491 Remove obsolete font code.
13492
13493 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13494 to determine language support.
13495
134962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13497
13498 * sysdep.c (cfsetspeed): New fun extracted from the code.
13499 (cfmakeraw): Move before first use.
13500
135012008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13502
13503 * sysdep.c (cfmakeraw): Provide fallback implementation.
13504 (serial_configure): Provide fallback implementation of cfsetspeed.
13505
135062008-06-20 Kenichi Handa <handa@m17n.org>
13507
13508 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13509 the pattern.
13510
13511 * fontset.c (fontset_from_font): Copy font_spec before changing
13512 the elements.
13513
13514 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13515
135162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13517
13518 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13519 for explicit `font' parameters.
13520
13521 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13522
135232008-06-19 Kenichi Handa <handa@m17n.org>
13524
13525 * frame.c: Include <ctype.h>.
13526 (x_set_font_backend): Allow spacing characters in the X resource
13527 for FontBackend.
13528
135292008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13530
13531 * w32fns.c, xfns.c (Qfont_param): New var.
13532 (syms_of_w32fns): Initialize it.
13533 (x_default_font_parameter): Record explicit `font' into
13534 `font-parameter'.
13535
135362008-06-18 Kenichi Handa <handa@m17n.org>
13537
13538 * font.c (font_parse_xlfd): Fix previous change.
13539 (font_parse_fcname): Don't use :fc-unknown-spec.
13540 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13541 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13542 (font_add_log): Prepend the driver name to the resulting fonts.
13543
13544 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13545 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13546 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13547
13548 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13549 (QCembolden): New variables.
13550 (syms_of_xftfont): DEFSYM them.
13551 (xftfont_open): Call XftFontMatch. Don't trust the result of
13552 XftTextExtents8 if the pixel_size is less than 5.
13553
135542008-06-18 Andreas Schwab <schwab@suse.de>
13555
13556 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13557 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13558
135592008-06-18 Jason Rumney <jasonr@gnu.org>
13560
13561 * w32font.c (w32font_list, w32font_match): Add logging.
13562
13563 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13564
135652008-06-17 Chong Yidong <cyd@stupidchicken.com>
13566
13567 * font.c (font_parse_fcname): Store divider characters for
13568 unknown-spec list. For known key symbols, intern using correct
13569 symbol name.
13570
135712008-06-17 Kenichi Handa <handa@m17n.org>
13572
13573 * xfaces.c (realize_default_face): If the frame is not on window
13574 system, set the fontset of face to nil.
13575
135762008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13577
13578 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13579
135802008-06-16 Juanma Barranquero <lekktu@gmail.com>
13581
13582 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13583 (build_font_name_from_vector): Delete externs.
13584
13585 * xfaces.c (struct font_name): Don't declare.
13586
135872008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13588
13589 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13590
135912008-06-16 Chong Yidong <cyd@stupidchicken.com>
13592
13593 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13594
135952008-06-16 Juanma Barranquero <lekktu@gmail.com>
13596
13597 * font.c (Ffont_spec): Fix usage in docstring.
13598 (Ffont_face_attributes): Doc fix.
13599
136002008-06-16 Andreas Schwab <schwab@suse.de>
13601
13602 * font.c (Ffont_face_attributes): Fix definition.
13603
136042008-06-16 Jason Rumney <jasonr@gnu.org>
13605
13606 * font.h (font_style_symbolic_from_value): Remove.
13607
13608 * font.c (font_style_symbolic_from_value): Remove.
13609 (font_style_symbolic): Revert to pre 2008-06-13 version.
13610
13611 * w32font.c (w32_to_fc_weight): New function.
13612 (w32font_full_name, logfont_to_fcname): Use it.
13613
136142008-06-16 Kenichi Handa <handa@m17n.org>
13615
13616 * font.c (font_check_object): Delete it.
13617 (font_clear_cache): Check if a font-object is alive.
13618 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13619 font-object to nil.
13620 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13621 (font_at): Don't call font_check_object.
13622 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13623
136242008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13625
13626 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13627
136282008-06-16 Chong Yidong <cyd@stupidchicken.com>
13629
13630 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13631
136322008-06-15 Chong Yidong <cyd@stupidchicken.com>
13633
13634 * font.c (font_parse_fcname): Only one decimal point.
13635 (font_unparse_fcname): Handle data in family and foundry indices
13636 as symbols, not strings.
13637 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13638
13639 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13640
13641 * font.h (font_unparse_gtkname): Add prototype.
13642
136432008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13644
13645 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13646
136472008-06-15 Andreas Schwab <schwab@suse.de>
13648
13649 * font.c (font_update_drivers): Fix crash when no drivers match.
13650
136512008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13652
13653 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13654 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13655
136562008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13657
13658 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13659
136602008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13661
13662 * process.c (Fserial_process_configure, Fprocess_send_eof):
13663 Use EQ to compare Lisp_Objects.
13664
136652008-06-13 Jason Rumney <jasonr@gnu.org>
13666
13667 * w32fns.c (Fw32_select_font): Remove old font API function.
13668
13669 * w32font.c (logfont_to_fcname): New function.
13670 (Fx_select_font): New font dialog function compatible with
13671 GTK/fontconfig version.
13672
13673 * font.c (font_style_symbolic_from_value): New function.
13674 (font_style_symbolic): Use it.
13675
13676 * font.h (font_style_symbolic_from_value): Declare new function.
13677
136782008-06-13 Juanma Barranquero <lekktu@gmail.com>
13679
13680 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13681 <font-width-table>: Fix typos in docstrings.
13682
136832008-06-13 Daniel Engeler <engeler@gmail.com>
13684
13685 These changes add serial port access.
13686 * process.c: Add HAVE_SERIAL.
13687 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13688 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13689 (list_processes_1, select_wrapper, Fstop_process)
13690 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13691 (status_notify): Modify to handle serial processes.
13692 [HAVE_SERIAL] (Fserial_process_configure)
13693 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13694 New functions.
13695 * process.h (struct Lisp_Process): Add `type'.
13696 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13697 New functions.
13698 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13699 serial ports.
b71ac3dd 13700 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13701 * w32.h: Add FILE_SERIAL.
13702 (struct _child_process): Add ovl_read, ovl_write.
13703
137042008-06-13 Kenichi Handa <handa@m17n.org>
13705
13706 * dispextern.h (enum lface_attribute_index): New member
13707 LFACE_FOUNDRY_INDEX.
13708
13709 * font.c (font_score): Delete arg alternate_families. Check only
13710 weight, slant, width, and size. Ignore the difference of alias
13711 style symbols.
13712 (font_sort_entites): Adjust for the above change. Reflect the
13713 order of font-driver to scores.
13714 (font_list_entities): Don't check alternate_familes here.
13715 (font_clear_prop): Handle foundry.
13716 (font_update_lface): Don't parse "foundry-family" form here.
13717 Handle FONT_FOUNDRY_INDEX.
13718 (font_find_for_lface): Likewise. Handle alternate families here.
13719 If registry is nil, try iso8859-1 and ascii-0.
13720 (font_open_for_lface): Pay attention to size in ENTITY.
13721 (font_open_by_name): Simplify by calling font_load_for_lface.
13722 (free_font_driver_list): Delete it.
13723 (font_update_drivers): Preserve the order of backends.
13724 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13725 of font_score and font_sort_entites.
13726 (font_update_sort_order): Likewise.
13727
13728 * xfaces.c (LFACE_FOUNDRY): New macro.
13729 (check_lface_attrs): Check foundry.
13730 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13731 (merge_face_vectors): Check foundry.
13732 (merge_face_ref): Likewise.
13733 (Finternal_set_lisp_face_attribute): Likewise.
13734 (x_update_menu_appearance): Likewise.
13735 (Finternal_get_lisp_face_attribute): Likewise.
13736 (lface_hash): Likewise.
13737 (lface_same_font_attributes_p): Likewise.
13738 (x_supports_face_attributes_p): Likewise.
13739 (tty_supports_face_attributes_p): Likewise.
13740 (Finternal_set_alternative_font_family_alist): Intern strings.
13741 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13742 (realize_default_face): Set LFACE_FOUNDRY (lface).
13743
13744 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13745 font-driver at first.
13746
13747 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13748
137492008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13750
13751 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13752
137532008-06-12 Jim Meyering <meyering@redhat.com>
13754
13755 Make unexec_free handle NULL the same way free does.
13756 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13757
137582008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13759
13760 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13761 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13762 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13763 (WEAK_ALIAS): Simplify.
13764 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13765 when searching a unibyte buffer.
13766
137672008-06-12 Chong Yidong <cyd@stupidchicken.com>
13768
13769 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13770
137712008-06-12 Juanma Barranquero <lekktu@gmail.com>
13772
13773 * w32font.c: Include ctype.h.
13774
137752008-06-11 Jason Rumney <jasonr@gnu.org>
13776
13777 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13778 misreported as space.
13779 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13780 as aliases for registry iso10646-1.
13781
137822008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13783
13784 * buffer.c (clone_per_buffer_values): Skip `name'.
13785
137862008-06-11 Chong Yidong <cyd@stupidchicken.com>
13787
13788 * font.c (font_parse_fcname): Fix last change; accept decimal
13789 points in font size.
13790
137912008-06-10 Jason Rumney <jasonr@gnu.org>
13792
13793 * w32uniscribe.c (add_opentype_font_name_to_list):
13794 Skip non unicode fonts.
13795
137962008-06-10 Chong Yidong <cyd@stupidchicken.com>
13797
13798 * xfns.c (Fx_font_dialog): New function.
13799
13800 * gtkutil.c (xg_dialog_response_cb): Rename from
13801 xg_file_response_callback.
13802 (pop_down_dialog): Rename from pop_down_file_dialog.
13803 (xg_get_file_name): Callers changed.
13804 (xg_get_font_name): New function.
13805
13806 * gtkutil.h (xg_get_font_name): Insert prototype.
13807
138082008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13809
13810 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13811 x_underline_minimum_display_offset.
13812 (syms_of_xdisp): Declare it here rather than in xterm.c.
13813 * dispextern.h (underline_minimum_offset): Declare it.
13814 * w32term.c (x_draw_glyph_string): Use it.
13815 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13816 (syms_of_xterm): Don't declare it any more.
13817 (x_draw_glyph_string): Adjust to the new name.
13818
8719abec 138192008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13820
13821 * xterm.c (x_underline_minimum_display_offset): New var.
13822 (x_draw_glyph_string): Use it.
13823 (syms_of_xterm): Declare it.
13824
138252008-06-10 Chong Yidong <cyd@stupidchicken.com>
13826
13827 * font.c (font_parse_fcname): Accept GTK-style font names too.
13828
138292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13830
13831 * dired.c (file_name_completion): Don't return t if the match is exact
13832 but with different capitalization.
13833 * minibuf.c (Ftry_completion): Simplify.
13834
13835 * window.c (Vwindow_point_insertion_type): New var.
13836 (set_window_buffer): Use it.
13837 (syms_of_window): Init and export it to Lisp.
13838
138392008-06-10 Kenichi Handa <handa@m17n.org>
13840
13841 * font.h (font_intern_prop): Prototype adjusted.
13842
13843 * font.c (font_intern_prop): New arg force_symbol.
13844 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13845 Adjust for the change of font_intern_prop.
13846
13847 * ftfont.c (ftfont_pattern_entity):
13848 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13849 (w32_registry):
13850 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13851 the change of font_intern_prop.
13852
138532008-06-09 Juanma Barranquero <lekktu@gmail.com>
13854
13855 * w32menu.c (digest_single_submenu): Declare extern.
13856
138572008-06-09 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13860
13861 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13862 (parse_single_submenu): Remove.
13863 (digest_single_submenu): Remove.
13864 (syms_of_w32menu): Don't initialise variables that have moved
13865 to menu.c.
13866 (set_frame_menubar): Sync with version in xmenu.c.
13867 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13868
13869 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13870 Make static again.
13871
138722008-06-09 Jason Rumney <jasonr@gnu.org>
13873
13874 Changes to w32 files related to the move of common menu code
13875 to menu.c on 2008-06-08 by Chong Yidong.
13876
13877 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13878 defs to w32gui.h.
13879 (single_keymap_panes, push_menu_item, push_menu_pane):
13880 Make globally visible.
13881
13882 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13883 (local_free, malloc_widget_value, free_widget_value)
13884 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13885 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13886 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13887 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13888 (menu_items, menu_items_allocated, menu_items_used)
13889 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13890 (init_menu_items, finish_menu_items, discard_menu_items)
13891 (grow_menu_items, push_submenu_start, push_submenu_end)
13892 (push_left_right_boundary, push_menu_pane, push_menu_item)
13893 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13894 (free_menubar_widget_tree_value, parse_single_submenu)
13895 (update_submenu_strings): Remove functions.
13896 (xmalloc_widget_value): Remove and declare extern.
13897
13898 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13899 (OBJ1): Build it.
13900
13901 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13902 (local_heap, local_alloc, local_free, malloc_widget_value)
13903 (free_widget_value): Define here.
13904
139052008-06-09 Kenichi Handa <handa@m17n.org>
13906
13907 * font.h (Qascii_0): Extern it.
13908
13909 * font.c (Qascii_0): New variable.
13910 (syms_of_font): DEFSYM it.
13911 (font_open_by_name): If the registry "iso8859-1" fails, try also
13912 "ascii-0".
13913
13914 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13915
139162008-06-08 Kenichi Handa <handa@m17n.org>
13917
13918 * .gdbinit (xfont): New command.
13919
139202008-06-08 Andreas Schwab <schwab@suse.de>
13921
13922 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13923 * Makefile.in (menu.o): Update dependencies.
13924
13925 * Makefile.in (obj): Always add menu.o.
13926 * emacs.c (main): Always call syms_of_menu.
13927 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13928
139292008-06-08 Chong Yidong <cyd@stupidchicken.com>
13930
13931 * Makefile.in: Compile menu.c.
13932
13933 * lisp.h: Declare syms_of_menu.
13934
13935 * emacs.c (main): Call syms_of_menu.
13936
13937 * keyboard.h: Relocate platform-independent menu definitions from
13938 xmenu.c.
13939
13940 * menu.c: New file. Relocate platform-independent menu
13941 definitions from xmenu.c. Suggested by Adrian Robert.
13942
13943 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13944 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13945 (menu_items_used, menu_items_n_panes)
13946 (menu_items_submenu_depth): Move to keyboard.h.
13947 (init_menu_items, finish_menu_items, unuse_menu_items)
13948 (discard_menu_items, restore_menu_items, save_menu_items)
13949 (grow_menu_items, push_submenu_start, push_submenu_end)
13950 (push_left_right_boundary, push_menu_pane, push_menu_item)
13951 (keymap_panes, single_keymap_panes, single_menu_item)
13952 (list_of_panes, list_of_items, find_and_call_menu_selection)
13953 (xmalloc_widget_value, free_menubar_widget_value_tree)
13954 (parse_single_submenu, digest_single_submenu)
13955 (update_submenu_strings): Move to menu.c.
13956
139572008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13958
13959 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13960
139612008-06-06 Miles Bader <miles@gnu.org>
13962
13963 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13964 face, not frame default.
13965
139662008-06-05 Martin Rudalics <rudalics@gmx.at>
13967
13968 * window.c (pop_up_windows, pop_up_frames)
13969 (display_buffer_reuse_frames, Vpop_up_frame_function)
13970 (Vdisplay_buffer_function, Veven_window_heights)
13971 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13972 (Vspecial_display_function, Vsame_window_buffer_names)
13973 (Vsame_window_regexps, split_height_threshold)
13974 (Vsplit_window_preferred_function): Move those vars to window.el.
13975 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13976 (Fdisplay_buffer): Move those functions to window.el.
13977 (syms_of_window): Remove corresponding declarations.
13978 (display_buffer): New function.
13979 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13980 * dispnew.c (Flast_nonminibuf_frame): New function.
13981 * buffer.c (Fpop_to_buffer): Move to window.el.
13982
139832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13984
13985 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13986
139872008-06-05 Kenichi Handa <handa@m17n.org>
13988
13989 * coding.c (detect_coding): Fix previous change.
13990 (detect_coding_system): Likewise.
13991
139922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13993
13994 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13995
13996 * keymap.c (Vminibuffer_local_filename_must_match_map):
13997 Rename from Vminibuffer_local_must_match_filename_map.
13998 (syms_of_keymap):
13999 * minibuf.c (Fcompleting_read): Adjust accordingly.
14000 * commands.h: Rename declaration as well.
14001
140022008-06-05 Kenichi Handa <handa@m17n.org>
14003
14004 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14005 family name.
14006 (Ffont_put): Likewise.
14007
14008 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14009 current font-spec.
14010
14011 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14012 is unspecified.
14013
14014 * xfaces.c (realize_x_face): If the font-related face attributes
14015 are the same as those of default face, realize a new fontset from
14016 default->fontset.
14017 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14018
140192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14020
14021 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14022 (move_it_in_display_line): New wrapper.
14023
14024 * window.c (window_scroll_pixel_based_preserve_x)
14025 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14026 (window_scroll_pixel_based, window_scroll_line_based):
14027 Use them to preserve column positions.
14028 (syms_of_window): Initialize them.
14029
14030 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14031 (HPOS . VPOS) pair.
14032
14033 * dispextern.h (move_it_in_display_line): Declare.
14034
140352008-06-05 Juanma Barranquero <lekktu@gmail.com>
14036
14037 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14038 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14039 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14040
140412008-06-04 Juanma Barranquero <lekktu@gmail.com>
14042
14043 * window.c (Fset_window_parameter): Doc fix.
14044 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14045
140462008-06-04 Joakim Verona <joakim@verona.se>
14047
14048 * window.h (struct window): Add new member window_parameters.
14049
14050 * window.c (Fwindow_parameters, Fwindow_parameter)
14051 (Fset_window_parameter): New defuns.
14052 (syms_of_window): Defsubr the new defuns.
14053 (make_window): Initialize window_parameters to nil.
14054
140552008-06-04 John Paul Wallington <jpw@pobox.com>
14056
14057 * eval.c (Fdefmacro): Doc fix.
14058
140592008-06-04 Kenichi Handa <handa@m17n.org>
14060
14061 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14062 Be sure to call setup_coding_system when we find a proper coding system.
14063 (detect_coding_system): Fix handling of coding->head_ascii.
14064
140652008-06-03 Andreas Schwab <schwab@suse.de>
14066
14067 * font.c (font_prop_validate_spacing): Fix last change.
14068
140692008-06-03 Kenichi Handa <handa@m17n.org>
14070
14071 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14072 (font_parse_fcname): Fix handling of unknown key.
14073
14074 * xfont.c (xfont_list): Try an alias.
14075
14076 * charset.c (char_charset): Return NULL if the arg charset_list is
14077 specified and C doesn't belong to any of them.
14078
140792008-06-02 Chip Coldwell <coldwell@redhat.com>
14080
14081 * font.c (font_pixel_size): Don't take cdr of an integer.
14082
140832008-06-02 Jim Meyering <meyering@redhat.com>
14084
14085 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14086 * alloc.c (xfree): Return right away for a NULL arg.
14087 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14088 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14089 * mac.c (create_apple_event_from_event_ref): Likewise.
14090 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14091 Likewise.
14092 * doprnt.c (doprnt1): Likewise.
14093 * frame.c (frame): Likewise.
14094 * keyboard.c (wipe_kboard): Likewise.
14095 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14096 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14097 * term.c (tty_default_color_capabilities, maybe_fatal)
14098 (delete_tty): Likewise.
14099 * w16select.c (string): Likewise.
14100 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14101 * w32bdf.c (w32_free_bdf_font): Likewise.
14102 * w32fns.c (w32_unload_font): Likewise.
14103 * w32font.c (w32font_close): Likewise.
14104 * window.c (size_window): Likewise.
14105 * xselect.c (receive_incremental_selection): Likewise.
14106 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14107 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14108 * w32.c (stat): Likewise.
14109
14110 Remove useless if-before-free tests.
14111 * editfns.c (Fset_time_zone_rule): Likewise.
14112 * lread.c (nosuffix): Likewise.
14113 * ralloc.c (get_bloc): Likewise.
14114 * regex.c (reg_free): Likewise.
14115 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14116 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14117 * xsmfns.c (smc_save_yourself_CB): Likewise.
14118
141192008-06-02 Kenichi Handa <handa@m17n.org>
14120
14121 * font.c (font_find_for_lface): Handle float font size.
14122 (font_open_for_lface): Likewise.
14123
14124 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14125 comparing the properties.
14126
141272008-06-01 Jason Rumney <jasonr@gnu.org>
14128
14129 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14130 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14131 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14132 Don't add empty script list.
14133 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14134
141352008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14136
14137 * Makefile.in (dot, dotdot): Remove, update users.
14138 ".." has been used elsewhere in the file for a long time.
14139 (LIBXT_STATIC): Remove conditional based on unused variable.
14140
141412008-06-01 Miles Bader <miles@gnu.org>
14142
14143 * xfaces.c (Vface_remapping_alist): New variable.
14144 (syms_of_xfaces): Initialize it.
14145 (enum named_merge_point_kind): New type.
14146 (struct named_merge_point): Add `named_merge_point_kind' field.
14147 (push_named_merge_point): Make cycle detection respect different
14148 named-merge-point kinds.
14149 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14150 Remove face-name alias resolution.
14151 (lface_from_face_name): New definition using
14152 `lface_from_face_name_no_resolve'.
14153 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14154 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14155 (get_lface_attributes): New definition that layers face-remapping on
14156 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14157 (lookup_basic_face): New function.
14158 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14159 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14160 `get_lface_attributes'.
14161 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14162 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14163 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14164
14165 * xdisp.c (init_iterator): Pass base_face_id through
14166 `lookup_basic_face' when we actually use it as a face-id.
14167 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14168 DEFAULT_FACE_ID.
14169
14170 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14171 lookup the initial face-id.
14172
14173 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14174
141752008-06-01 Juanma Barranquero <lekktu@gmail.com>
14176
14177 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14178 (Fremove_text_properties): Fix typos in docstrings.
14179
141802008-05-31 Kenichi Handa <handa@m17n.org>
14181
14182 * font.c (font_list_entities): Fix the car part of data to be
14183 stored in the cache.
14184
14185 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14186
141872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14188
14189 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14190 Add a `test' argument so another predicate than `equal' can be used.
14191 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14192 (map_char_table): Remove unused vars `c' and `i'.
14193 * lisp.h (Foptimize_char_table): Adjust declaration.
14194 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14195
141962008-05-30 Kenichi Handa <handa@m17n.org>
14197
14198 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14199 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14200 defined.
14201
142022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14203
14204 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14205 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14206 frame-local settings for the same variable.
14207
142082008-05-30 Kenichi Handa <handa@m17n.org>
14209
14210 * fontset.c (Ffont_info): Move to font.c.
14211 (syms_of_fontset): Delete defsubr of Sfont_info.
14212
14213 * font.c (font_style_to_value, font_score): Delete casting of the
14214 args to xstcasecmp.
14215 (register_font_driver): Increment num_font_drivers only when
14216 registering the driver globally.
14217 (Ffont_info): Move from fontset.c. Handle a font object too.
14218 (syms_of_font): Defsubr Sfont_info.
14219
142202008-05-29 Kenichi Handa <handa@m17n.org>
14221
14222 * coding.h (enum define_coding_utf8_arg_index): New enum.
14223 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14224 coding_attr_utf_bom.
14225 (enum utf_bom_type): Rename from utf_16_bom_type.
14226 (struct utf_16_spec): Adjust for the above change.
14227 (struct coding_system): Add utf_8_bom in `spec' union.
14228
14229 * coding.c (CODING_UTF_8_BOM): New macro.
14230 (enum coding_category): Delete coding_category_utf_8, add
14231 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14232 coding_category_utf_8_sig.
14233 (CATEGORY_MASK_UTF_8): Delete it.
14234 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14235 (CATEGORY_MASK_UTF_8_SIG): New macros.
14236 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14237 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14238 CATEGORY_MASK_UTF_8_SIG.
14239 (CATEGORY_MASK_UTF_8): New macro.
14240 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14241 (detect_coding_utf_8): Check BOM.
14242 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14243 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14244 (encode_coding_utf_16): Likewise.
14245 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14246 (detect_coding, detect_coding_system): Handle utf-8-auto.
14247 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14248 (syms_of_coding): Fix setting up of Vcoding_category_table.
14249
142502008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14251
14252 * process.c (Faccept_process_output): If `millisec' is non-nil,
14253 `seconds' default to 0.
14254 (wait_reading_process_output): Also return non-nil if we read output
14255 from a non-running process.
14256
142572008-05-29 Jason Rumney <jasonr@gnu.org>
14258
14259 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14260 `raster' specified.
14261 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14262 in the uniscribe backend, but disallow any font that has no
14263 unicode subrange support.
14264
142652008-05-29 Juanma Barranquero <lekktu@gmail.com>
14266
14267 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14268 Fix typos in docstrings.
14269
142702008-05-29 Kenichi Handa <handa@m17n.org>
14271
14272 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14273 (Fx_family_fonts): Set frame correctly.
14274
142752008-05-28 Jason Rumney <jasonr@gnu.org>
14276
14277 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14278
142792008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14280
14281 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14282 calling build_annotations.
14283
142842008-05-28 Juanma Barranquero <lekktu@gmail.com>
14285
14286 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14287 (Fencode_coding_string):
14288 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14289 <latin-extra-code-table>: Fix typos in docstrings.
14290 (syms_of_coding) <coding-system-alist>: Doc fix.
14291 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14292
142932008-05-28 Kenichi Handa <handa@m17n.org>
14294
14295 * fontset.c (Ffont_info): Don't call font_close_object.
14296
14297 * font.c (font_parse_family_registry): Use Ffont_put to validate
14298 foundry and family.
14299 (font_delete_unmatched): Don't check spacing.
14300 (font_list_entities): Add spacing to the spec to list fonts.
14301
14302 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14303 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14304
14305 * coding.c (encode_coding_raw_text): Fix previous change.
14306 (encode_coding_object): When the dst_object is a buffer and is
14307 different from src_object, move gap to PT.
14308
143092008-05-27 Chong Yidong <cyd@stupidchicken.com>
14310
14311 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14312
143132008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14316 all branches. Compute it differently.
14317
14318 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14319
143202008-05-27 Juanma Barranquero <lekktu@gmail.com>
14321
14322 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14323 into "else if () ... else ...".
14324
143252008-05-27 Jason Rumney <jasonr@gnu.org>
14326
14327 * w32font.c (w32font_open_internal): Determine if glyph indices
14328 are likely to work here.
14329
143302008-05-27 Chong Yidong <cyd@stupidchicken.com>
14331
14332 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14333 draw overlap glyphs with appropriate highlighting.
14334
143352008-05-27 Kenichi Handa <handa@m17n.org>
14336
14337 * xfont.c (xfont_open): Fix calculation of font->average_width.
14338
143392008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14340
14341 * casefiddle.c (casify_object): Try to guess better whether the
14342 argument is a byte or a char.
14343
143442008-05-26 Andreas Schwab <schwab@suse.de>
14345
14346 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14347 Always send multiples of format size.
14348
14349 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14350
143512008-05-26 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14354 (compute_metrics): Don't set failure if we just cleared the cache.
14355 (w32_weight_table): Remove unused variable.
14356 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14357 backwards compatibility.
14358
143592008-05-25 Kenichi Handa <handa@m17n.org>
14360
14361 * w32term.c (x_draw_glyph_string):
14362 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14363
14364 * xfaces.c: Delete unused function prototypes.
14365 (xstrlwr, font_frame): Delete them.
14366 (clear_face_cache): Delete unused variable.
14367
14368 * xftfont.c (xftfont_open): Delete unused variable.
14369 If underline_thickness is not 1, adjust underline_position.
14370
14371 * ftxfont.c (ftxfont_open): Delete unused variable.
14372
14373 * fontset.c (face_for_char): Optimize for the case of no charset
14374 property.
14375
14376 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14377 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14378 (otf_open, font_otf_capability, generate_otf_features)
14379 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14380 Comment out by surrounding "#if 0" and "#endif" for the moment.
14381 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14382 (syms_of_font): Codes for accessing above commented out.
14383
143842008-05-24 Eli Zaretskii <eliz@gnu.org>
14385
14386 * w32proc.c: Include dispextern.h.
14387
14388 * w32.c: Include dispextern.h.
14389
143902008-05-23 Juanma Barranquero <lekktu@gmail.com>
14391
14392 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14393 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14394 Fix typos in docstrings.
14395
143962008-05-23 Jason Rumney <jasonr@gnu.org>
14397
14398 * xsmfns.c: Remove includes that are already included by config.h.
14399
144002008-05-23 Kenichi Handa <handa@m17n.org>
14401
14402 * charset.c (Qemacs, charset_emacs): New variables.
14403 (char_charset): Fix for non-Unicode characters.
14404 (syms_of_charset): Define charset_emacs.
14405
14406 * w32term.c (x_draw_glyph_string): Be sure to update
14407 s->underline_thickness and s->underline_position. Be sure to draw
14408 underline within the current line area.
14409
14410 * xterm.c (x_draw_glyph_string): Be sure to update
14411 s->underline_thickness and s->underline_position. Be sure to draw
14412 underline within the current line area.
14413
14414 * fontset.c: Delete unused variables and add casting for char *
14415 throughout the file.
14416 (fontset_font): Try the fallback fonts of the current fontset
14417 before consulting the default fontset.
14418
14419 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14420
14421 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14422
144232008-05-22 Jason Rumney <jasonr@gnu.org>
14424
14425 * font.c: Don't include strings.h.
14426
14427 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14428
14429 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14430 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14431 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14432 to call xstrcasecmp.
14433
14434 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14435
14436 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14437
14438 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14439
14440 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14441
144422008-05-22 Kenichi Handa <handa@m17n.org>
14443
14444 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14445
14446 * font.c (font_prop_validate_style): Adjust for the format
14447 change of font_style_table.
14448
14449 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14450 two args.
14451
14452 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14453 two args.
14454
144552008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14456
14457 * minibuf.c (keys_of_minibuf): Delete.
14458 * lisp.h (keys_of_minibuf): Delete.
14459 * emacs.c (main): Don't call keys_of_minibuf.
14460
144612008-05-22 Kenichi Handa <handa@m17n.org>
14462
14463 * ftfont.c (ftfont_resolve_generic_family): Rename from
14464 ftfont_list_generic_family. Return a single family for each
14465 generic family.
14466 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14467 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14468 Call font_add_log.
14469 (ftfont_match): Call font_add_log.
14470
14471 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14472 (FONT_DEBUG): Define it.
14473 (font_add_log): Extern it.
14474 (font_assert): Rename from xassert.
14475
14476 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14477 (xfont_list_family): Call font_add_log.
14478 (xfont_match): Likewise.
14479 (memq_no_quit): Delete.
14480
14481 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14482 call of Ffont_xlfd_name.
14483
14484 * xfaces.c (struct table_entry, slant_table, weight_table)
14485 (swidth_table): Move to font.c.
14486
14487 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14488 xassert are changed to font_assert. Delete many unused variables.
14489 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14490 New variables.
14491 (struct table_entry): Move from xfaces.c and modified.
14492 (weight_table, slant_table, width_table): Move from xfaces.c and
14493 contents adjusted for the change of struct table_entry.
14494 (font_style_to_value, font_style_symbolic): Adjust for the
14495 format change of font_style_table.
14496 (font_parse_family_registry): Don't overwrite existing foundry and
14497 family of font_spec.
14498 (font_score): Fix calculation of diff for sizes.
14499 (font_sort_entites): Call font_add_log.
14500 (font_delete_unmatched): Return a newly created list.
14501 (font_list_entities): Fix previous change. Call font_add_log.
14502 (font_matching_entity, font_open_entity, font_close_entity):
14503 Call font_add_log.
14504 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14505 (Finternal_set_font_style_table): Delete.
14506 (BUILD_STYLE_TABLE): New macro.
14507 (build_style_table): New function.
14508 (Vfont_log, font_log_env_checked): New variables.
14509 (font_add_log): New function.
14510 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14511 Declare Lisp variables "font-weight-table", "font-slant-table",
14512 "font-width-table", and "font-log". Initialize font_style_table.
14513
145142008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14515
14516 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14517
145182008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14519 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14520
14521 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14522 (Vframe_alpha_lower_limit): New variable.
14523 (x_set_alpha): New function.
14524
14525 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14526
14527 * xfns.c (x-create-frame, Qalpha):
14528 Initialize the frame parameter `alpha'.
14529 * xterm.c (OPAQUE, OPACITY): New.
14530 (x_set_frame_alpha): New function.
14531 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14532
14533 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14534 * w32fns.c (w32_frame_parm_handlers): Likewise.
14535
145362008-05-20 Jason Rumney <jasonr@gnu.org>
14537
14538 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14539 truetype fonts to opentype list.
14540
145412008-05-20 Juanma Barranquero <lekktu@gmail.com>
14542
14543 * fontset.c (Ffontset_info): Doc fix.
14544 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14545 <ignore-relative-composition>: Fix typos in docstrings.
14546
14547 * font.c (syms-of-font) <font-encoding-alist>:
14548 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14549 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14550 (Ffont_otf_alternates): Doc fixes.
14551
145522008-05-20 Kenichi Handa <handa@m17n.org>
14553
14554 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14555 font.h through out the file.
14556 (FONT_DRIVERS): Rename from FONTOBJ.
14557 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14558 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14559
14560 * emacs.c (main): Call syms_of_font unconditionally.
14561
14562 * font.h (find_font_encoding): Extern it.
14563
14564 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14565 fontset.c.
194d44e7 14566 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14567 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14568 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14569 only when HAVE_WINDOW_SYSTEM is defined.
14570 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14571 when HAVE_WINDOW_SYSTEM is defined.
14572
14573 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14574 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14575
14576 * xfaces.c: Include font.h unconditionally.
14577 (merge_face_ref, merge_face_vectors)
14578 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14579
145802008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14581
14582 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14583 indirect_variable.
14584 * eval.c (lisp_indirect_variable): New fun.
14585 (Fuser_variable_p): Use it.
14586
145872008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14588
14589 * lisp.h (indirect_variable):
14590 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14591 Use Lisp_Symbol pointers rather than Lisp_Object.
14592 Adjust callers.
14593 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14594 To this end, change calling-convention.
14595
14596 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14597 if some non-hidden buffers are selected by string&pred.
14598
145992008-05-19 Chong Yidong <cyd@stupidchicken.com>
14600
14601 * process.c (wait_reading_process_output): Always check status
14602 when in batch mode.
14603
146042008-05-19 Kenichi Handa <handa@m17n.org>
14605
14606 * font.c (font_list_entities): Fix handling of cache.
14607 (font_matching_entity): Likewise.
14608
14609 * ftfont.c (cs_iso8859_1): Delete.
14610 (ft_face_cache): New variable.
14611 (struct ftfont_info): New member fc_charset_idx.
14612 (ftfont_build_basic_charsets): Delete.
14613 (fc_charset_table): New variable.
14614 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14615 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14616 Callers changed.
14617 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14618 (ftfont_spec_pattern): New argument fc_charset_idx.
14619 Check registry more rigidly. Change callers.
14620 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14621 change of :font-entity property of the font.
14622
14623 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14624 property of the font.
14625
146262008-05-18 Juanma Barranquero <lekktu@gmail.com>
14627
14628 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14629 (Funencodable_char_position, Fcheck_coding_systems_region)
14630 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14631 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14632 (Ffind_operation_coding_system, Fset_coding_system_priority)
14633 (Fcoding_system_eol_type): Doc fixes.
14634
146352008-05-17 Glenn Morris <rgm@gnu.org>
14636
14637 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14638
146392008-05-16 Eli Zaretskii <eliz@gnu.org>
14640
14641 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14642 and st_gid.
14643
14644 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14645 HAVE_WINDOW_SYSTEM is not defined.
14646
14647 * xfaces.c (merge_face_ref, merge_face_vectors)
14648 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14649 HAVE_WINDOW_SYSTEM is defined.
14650 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14651
146522008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14653
14654 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14655
146562008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14657
14658 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14659
146602008-05-15 Kenichi Handa <handa@m17n.org>
14661
14662 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14663 preference.
14664
146652008-05-15 Glenn Morris <rgm@gnu.org>
14666
14667 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14668
146692008-05-15 Chong Yidong <cyd@stupidchicken.com>
14670
14671 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14672 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14673
14674 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14675
146762008-05-15 Kenichi Handa <handa@m17n.org>
14677
14678 * ftfont.c (ftfont_list): Downcase family name to check generic
14679 families.
14680
14681 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14682 font-spec for QCfont value.
14683
14684 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14685 buffer. Check the return value of it.
14686
146872008-05-14 Jason Rumney <jasonr@gnu.org>
14688
14689 * w32term.c (w32_get_glyph_overhangs): Remove.
14690 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14691
146922008-05-14 Kenichi Handa <handa@m17n.org>
14693
14694 * font.c (font_prop_validate): Make nil a valid value.
14695 (font_clear_cache): Check if the cached vector of entities is nil
14696 or not.
14697
146982008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14699
14700 * emacs.c (main_thread): Conditionalize on
14701 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14702 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14703
14704 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14705 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14706 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14707
147082008-05-14 Kenichi Handa <handa@m17n.org>
14709
14710 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14711 has no corresponding coding system.
14712
147132008-05-14 Jason Rumney <jasonr@gnu.org>
14714
14715 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14716
14717 * w32font.h (w32font_open_internal): Update declaration.
14718
14719 * w32font.c (w32font_open_internal): Change last argument from
14720 w32font_info struct to font object. Fill in font object from
14721 font_entity. Get Outline metrics if possible. Use them to
14722 calculate underline position and thickness. Use xlfd name as name
14723 property. Don't set codepage.
14724 (w32font_open): Pass font_object to w32font_open_internal. Don't
14725 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14726 (w32font_draw): Use s->font.
14727 (clear_cached_metrics): Don't clear non-existent blocks.
14728
14729 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14730 font was not found.
14731 (x_draw_glyph_string): Use underline position and thickness from font.
14732
14733 * w32uniscribe.c (uniscribe_open): Pass font_object to
14734 w32font_open_internal.
14735
147362008-05-14 Kenichi Handa <handa@m17n.org>
14737
14738 These changes are to delete all legacy font-handling codes, and
14739 make Emacs use only font-backends.
14740
14741 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14742 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14743
14744 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14745
14746 * charset.h (Vcharset_non_preferred_head)
14747 (Vcurrent_iso639_language): Extern them.
14748
14749 * charset.c (Vcharset_non_preferred_head): New variable.
14750 (Vcurrent_iso639_language): New variable.
14751 (syms_of_charset): Declare it as a Lisp variable.
14752 (char_charset): Don't check non preferred charsets. As a last
14753 resort, return charset_unicode.
14754 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14755
14756 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14757 conditionals. Don't check enable_font_backend. Delete all codes
14758 used only when USE_FONT_BACKEND is not defined.
14759
14760 * dispextern.h (struct glyph_string): Change type of `font' to
14761 `struct font *'.
14762 (struct glyph_string): New member underline_position and
14763 underline_thickness.
14764 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14765 (struct face): Change type of `font' to `struct font *'. Remove
14766 members `font_name', `font_info_id'.
14767 (per_char_metric, encode_char): Delete externs.
14768 (calc_pixel_width_or_height): Adjust the prototype.
14769
14770 * emacs.c (enable_font_backend): Delete extern.
14771 (main): Don't set enable_font_backend. Don't check the command
14772 line argument "-disable-font-backend".
14773
14774 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14775 (enum font_property_index): New members FONT_DPI_INDEX,
14776 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14777 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14778 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14779 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14780 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14781 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14782 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14783 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14784 (struct font_spec, struct font_entity): New structs.
14785 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14786 (struct font): Many members from old "struct font_info" moved to
14787 here. Members font and entity deleted.
14788 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14789 the new font-related objects.
14790 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14791 (CHECK_FONT_GET_OBJECT): Likewise.
14792 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14793 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14794 (struct font_driver): New members case_sensitive anc check. Type
14795 of the member list and open changed.
14796 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14797 (font_symbolic_width, font_find_object, font_get_spec)
14798 (font_set_lface_from_name): Delete extern.
14799 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14800
14801 * font.c: Include <strings.h>.
14802 (enable_font_backend): Delete it.
14803 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14804 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14805 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14806 (null_string): Delete it.
14807 (null_vector): Make it static.
14808 (font_family_alist): Delete it.
14809 (Qnormal): Extern it.
14810 (QCextra, QClanguage): Delete it.
14811 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14812 (font_make_spec, font_make_entity, font_make_object)
14813 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14814 the string. Callers changed.
14815 (font_pixel_size): Adjusted for the format change of font-related
14816 objects.
14817 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14818 (font_style_to_value, font_style_symbolic): New function.
14819 (build_font_family_alist): Delete it.
14820 (font_registry_charsets): Use Fassoc_string instead of
14821 assq_no_quit.
14822 (font_prop_validate_symbol): Don't return null_string.
14823 (font_prop_validate_style): Adjusted for the change of
14824 style-related values in a font vector.
14825 (font_property_table): Delete entries for QClanguage and
14826 QCantialias, add entries for QCavgwidth.
14827 (get_font_prop_index): Delete the 2nd argument FROM.
14828 (font_prop_validate): Arguments changed.
14829 (font_put_extra): Adjusted for the change of font-related objects.
14830 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14831 (font_parse_fcname, font_unparse_fcname)
14832 (font_prepare_composition): Likewise.
14833 (font_parse_family_registry): Renamed from font_merge_old_spec.
14834 (otf_open): Delete the 1st arg entity.
14835 (font_otf_capability): Adjusted for the above change.
14836 (font_score): New arg alternate_families. Adjusted for the change
14837 of font-related objects.
14838 (font_sort_entites): New arg best_only.
14839 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14840 Delete them.
14841 (font_match_p): Check alternate families.
14842 (font_find_object): Delete it.
14843 (font_check_object): New function.
14844 (font_clear_cache): Adjusted for the change of font-related objects.
14845 (font_delete_unmatched): New arg.
14846 (font_list_entities): Call font_driver->list with a spec that
14847 doesn't specify style-related properties.
14848 (font_matching_entity): Arguments changed. Caller changed.
14849 (font_open_entity): Adjusted for the change of font-related objects.
14850 (font_close_object, font_has_char, font_encode_char)
14851 (font_get_name, font_get_spec): Likewise.
14852 (font_spec_from_name, font_clear_prop, font_update_lface):
14853 New functions.
14854 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14855 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14856 (font_at): Adjusted for the change of font-related objects.
14857 (font_range): New function.
14858 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14859 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14860 (Fcopy_font_spec, Fmerge_font_spec): New function.
14861 (Ffont_family_list): Renamed from list-families.
14862 (Finternal_set_font_style_table): Arguments changed.
14863 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14864 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14865 change of font-related objects.
14866 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14867
14868 * fontset.h (struct font_info): Delete it. Most members go to
14869 struct font.
14870 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14871 (enum FONT_SPEC_INDEX): Delete it.
14872 (font_info, list_fonts_func, load_font_func, query_font_func)
14873 (set_frame_fontset_func, find_ccl_program_func)
14874 (get_font_repertory_func, new_fontset_from_font_name): Delete
14875 externs.
14876 (fontset_from_font_name): Extern it.
14877 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14878 (FONT_INFO_FROM_FACE): Deleted.
14879 (face_for_font): Adjust prototype.
14880
14881 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14882 conditionals. Don't check enable_font_backend. Delete all codes
14883 used only when USE_FONT_BACKEND is not defined.
14884 (get_font_info_func, list_font_func, load_font_func)
14885 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14886 (get_font_repertory_func): Delete them.
14887 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14888 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14889 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14890 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14891 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14892 (fontset_compare_rfontdef): New function.
14893 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14894 rfont-defs by qsort. Adjusted for the change of font-group vector.
14895 (load_font_get_repertory): Deleted.
14896 (fontset_find_font): Use new macros to ref/set elements of
14897 font-def and rfont-def.
14898 (fontset_font): Fix the timing of remembering that no font for C.
14899 (free_face_fontset): Do nothing if the face has no fontset.
14900 (face_suitable_for_char_p): Use new macros to ref/set elements of
14901 rfont-def.
14902 (face_for_char): Likewise. Call face_for_char with font_object.
14903 (fs_load_font): Delete. Delete #pragma surrounding it.
14904 (fs_query_fontset): Use strcasecmp instead of strcmp.
14905 (generate_ascii_font_name): Adjusted for the format change of
14906 font-spec.
14907 (Fset_fontset_font): Likewise. Use new macros to set elements of
14908 font-def.
14909 (Fnew_fontset): Use font_unparse_xlfd to generate
14910 FONTSET_ASCII (fontset).
14911 (new_fontset_from_font_name): Deleted.
14912 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14913 a fontset is already created for the font. FIx updating of
14914 Vfontset_alias_alist.
14915 (fontset_ascii_font): Deleted.
14916 (Ffont_info): Adjusted for the format change of font-spec.
14917 (Finternal_char_font): Likewise.
14918 (Ffontset_info): Likewise.
14919 (syms_of_fontset): Don't check load_font_func.
14920
14921 * fns.c (internal_equal): Handle PREV_FONT.
14922
14923 * frame.h: Delete USE_FONT_BACKEND conditional.
14924
14925 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14926 conditionals. Don't check enable_font_backend. Delete all codes
14927 used only when USE_FONT_BACKEND is not defined.
14928 (x_set_font): Call x_new_font, not x_new_fontset2.
14929 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14930 already set for the frame.
14931
14932 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14933 a font-entity by font_make_entity. Use font_intern_prop instead
14934 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14935 font property. If a font is scalable, set avgwidth property to 0.
14936 Set font-entity property by font_put_extra.
14937 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14938 (ffont_driver): Adjusted for the change of struct font_driver.
14939 (ftfont_spec_pattern): New function.
14940 (ftfont_list): Return a list, not vector.
14941 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14942 (ftfont_list_family): Don't downcase names.
14943 (ftfont_free_entity): Deleted.
14944 (ftfont_open): Return a font-object. Adjusted for the change of
14945 struct font. Get underline_thickness and underline_position from
14946 font property. Don't update dpyinfo->smallest_font_height and
14947 dpyinfo->smallest_char_width.
14948 (ftfont_close): Don't free `struct font'.
14949 (ftfont_has_char): Adjusted for the format change of font-entity.
14950 (ftfont_encode_char, ftfont_text_extents): Likewise.
14951
14952 * ftxfont.c (ftxfont_list): Return a list, not vector.
14953 (ftxfont_open): Return a font-object. Adjusted for the change of
14954 struct font. Get underline_thickness and underline_position from
14955 font property. Don't update dpyinfo->smallest_font_height and
14956 dpyinfo->smallest_char_width.
14957 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14958 (ftxfont_draw): Adjusted for the change of struct font.
14959
14960 * image.c (image_ascent): Don't include "charset.h". Include
14961 "character.h" and "font.h".
14962
14963 * lisp.h (enum pvec_type): New member PREV_FONT.
14964 (Fassoc_string): EXFUN it.
14965
14966 * print.c: Include font.h.
14967 (print_object): Handle font-related objects.
14968
14969 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14970 conditionals. Don't check enable_font_backend. Delete all codes
14971 used only when USE_FONT_BACKEND is not defined.
14972 (handle_auto_composed_prop): Do nothing if it->f is not on a
14973 window system. Check how many following characters can be
14974 displayed by the same font.
14975 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14976 'struct font *'.
14977 (get_char_face_and_encoding): Assign the whole encoding task to
14978 the `encode-char' method of a font driver.
14979 (fill_composite_glyph_string): Adjusted for the change of `struct
14980 face' and `struct glyph_string'.
14981 (fill_glyph_string): Likewise.
14982 (get_per_char_metric): Arguments changed.
14983 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14984 and `struct glyph_string'.
14985 (produce_stretch_glyph, calc_line_height_property)
14986 (x_produce_glyphs): Likewise.
14987
14988 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14989 conditionals. Don't check enable_font_backend. Delete all codes
14990 used only when USE_FONT_BACKEND is not defined. Use
14991 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14992 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14993 (Qp): Extern them.
14994 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14995 Deleted.
14996 (struct font_name): Deleted.
14997 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14998 (compare_fonts_by_sort_order): New function.
14999 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15000 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15001 Deleted.
15002 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15003 compare_fonts_by_sort_order.
15004 (Fx_font_family_list): Call Ffont_family_list.
15005 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15006 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15007 (face_symbolic_slant, face_symbolic_swidth)
15008 (split_font_name_into_vector, build_font_name_from_vector)
15009 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15010 (font_rescale_ratio, split_font_name, build_font_name)
15011 (free_font_names, sort_fonts, x_face_list_fonts)
15012 (face_font_available_p, sorted_font_list, cmp_font_names)
15013 (font_list_1, concat_font_list, font_list, remove_duplicates):
15014 Deleted.
15015 (Fx_list_fonts): Use Ffont_list.
15016 (LFACE_AVGWIDTH): Deleted.
15017 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15018 by FONTP.
15019 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15020 (set_lface_from_font_name): Delete it.
15021 (set_lface_from_font): Renamed from
15022 set_lface_from_font_and_fontset. Caller changed. Don't set
15023 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15024 for face.
15025 (merge_face_vectors): Copy font-spec if necessary.
15026 Clear properties of the font-spec if necessary.
15027 (merge_face_ref): Clear properties of the font-spec if necessary.
15028 (Finternal_set_lisp_face_attribute): Likewise.
15029 (set_font_frame_param): Use font_load_for_lface to load a
15030 font-object, and call Fmodify_frame_parameters with it.
15031 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15032 font name by Ffont_xlfd_name.
15033 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15034 QCslant, and QCwidth.
15035 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15036 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15037 Compare fonts by EQ.
15038 (lookup_non_ascii_face): Deleted.
15039 (face_for_font): The 2nd argument changed.
15040 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15041 Check atomic font properties by case insensitive.
15042 (realize_non_ascii_face): Set face->overstrike correctly.
15043 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15044 (dump_realized_face): Get font name from
15045 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15046
15047 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15048 conditionals. Don't check enable_font_backend. Delete all codes
15049 used only when USE_FONT_BACKEND is not defined.
15050 (xic_create_xfontset): Original code deleted and renamed from
15051 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15052 (x_make_gc): Don't set GCFont in GCs.
15053 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15054 opened by "fixed".
15055 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15056 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15057 get_font_repertory_func.
15058
15059 * xfont.c: Include <stdlib.h> and "ccl.h".
15060 (struct xfont_info): New structure.
15061 (xfont_query_font): Deleted.
15062 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15063 moved from xterm.c.
15064 (xfont_driver): Adjusted for the change of struct font_driver.
15065 (compare_font_names): New function.
15066 (xfont_list_pattern): Sort font names case insensitively. Make
15067 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15068 (xfont_list): Return a list, not vector.
15069 (xfont_match): If the font doesn't have QCname property, generate
15070 a name from the other font properties.
15071 (xfont_open): Return a font-object. Adjusted for the change of
15072 struct font. Get underline_thickness and underline_position from
15073 font property. Don't update dpyinfo->smallest_font_height and
15074 dpyinfo->smallest_char_width.
15075 (xfont_close): Don't free struct font.
15076 (xfont_prepare_face): Adjusted for the change of struct font.
15077 (xfont_done_face): Deleted.
15078 (xfont_has_char): Adjusted for the change of struct font.
15079 (xfont_encode_char, xfont_draw): Likewise.
15080 (xfont_check): New function.
15081
15082 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15083 callback function.
15084 (xftfont_match): Adjusted for the format change of font-entity.
15085 (xftfont_open): Adjusted for the format change of font-entity and
15086 font-object. Adjusted for the change of struct font. Return a
15087 font-object. Don't update dpyinfo->smallest_font_height and
15088 dpyinfo->smallest_char_width.
15089 (xftfont_close): Block input while calling XftFontClose.
15090 (xftfont_prepare_face): Don't block input while calling
15091 xftfont_get_colors. Adjusted for the change of struct font.
15092 (xftfont_shape): Return value of error case fixed.
15093
15094 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15095
15096 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15097 conditionals.
15098 (FONT_WIDTH): Return (f)->max_width.
15099 (struct x_display_info): Delete member `font'.
15100 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15101 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15102 (struct x_output): Change type of `font' to `struct font *'.
15103
15104 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15105 conditionals. Don't check enable_font_backend. Delete all codes
15106 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15107 (x_per_char_metric, x_encode_char): Deleted.
15108 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15109 (x_compute_glyph_string_overhangs): Adjusted for the change of
15110 `struct face'.
15111 (x_draw_glyph_string_foreground)
15112 (x_draw_composite_glyph_string_foreground): Likewise.
15113 (x_draw_glyph_string): Likewise. Use font->underline_position and
15114 font->underline_thickness.
15115 (x_new_font): Renamed from x_new_fontset2.
15116 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15117 (x_check_font): Call `check' method of a font driver.
15118 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15119 (x_query_font, x_get_font_repertory): Deleted.
15120 (x_find_ccl_program): Renamed and moved to xfont.c.
15121 (x_redisplay_interface): Adjusted for the change of `struct
15122 redisplay_interface'.
15123
15124 * w32fns.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. Surround non-used
15127 code by "#ifdef OLD_FONT" and "endif".
15128 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15129
15130 * w32font.h (struct w32font_info): New member.
15131 (FONT_COMPAT): New macro.
15132 (w32font_open_internal): Prototype adjusted.
15133
15134 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15135 OLD_FONT" and "endif".
15136
15137 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15138 conditionals. Don't check enable_font_backend. Delete all codes
15139 used only when USE_FONT_BACKEND is not defined.
15140 (w32font_open): Return a font-object. Make a font-object by
15141 font_make_object. Adjusted for the change of struct w32font_info.
15142 (w32font_close): Don't free struct font. Adjusted for the change
15143 of struct w32font_info.
15144 (w32font_encode_char, w32font_text_extents, w32font_draw):
15145 Adjusted for the change of struct w32font_info.
15146 (w32font_draw): Likewise.
15147 (w32font_list_internal): Return a list, not vector.
15148 (w32font_open_internal): Change the 4th arg to font-object.
15149 Adjusted for the change of struct w32font_info and font-object format.
15150 (add_font_name_to_list): Don't downcase names.
15151 (w32_enumfont_pattern_entity): Make a font-entity by
15152 font_make_entity. Adjusted for the format change of font-entity.
15153 Use FONT_SET_STYLE to set a style-related font property. If a
15154 font is scalable, set avgwidth property to 0. Set font-entity
15155 property by font_put_extra.
15156 (font_matches_spec): Adjusted for the format change of font-entity.
15157 (w32_weight_table, w32_decode_weight): New variables.
15158 (w32_encode_weight): New function.
15159 (fill_in_logfont): Adjusted for the format change of font-spec.
15160 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15161 weight value.
15162 (w32font_driver): Adjusted for the change of struct font_driver.
15163
15164 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15165 conditionals. Don't check enable_font_backend. Surround non-used
15166 code by "#ifdef OLD_FONT" and "endif".
15167 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15168 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15169
15170 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15171 conditionals. Don't check enable_font_backend. Delete all codes
15172 used only when USE_FONT_BACKEND is not defined. Surround non-used
15173 code by "#ifdef OLD_FONT" and "endif".
15174
15175 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15176 (uniscribe_open): Return value changed to font-object.
15177 Adjusted for the format change of font-object.
15178 (uniscribe_otf_capability): Adjusted for the change of struct font.
15179 (add_opentype_font_name_to_list): Don't downcase names.
15180 (uniscribe_font_driver): Adjusted for the change of struct
15181 font_driver.
15182
151832008-05-13 Chong Yidong <cyd@stupidchicken.com>
15184
15185 * dispnew.c (update_frame_1): Check if tty output is still valid
15186 before flushing it.
15187
151882008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15189
15190 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15191 to Gtk+ menus.
15192
151932008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15194
15195 * dired.c (file_name_completion): Tweak the code so as to always do it
15196 in a single pass. Tighten the scope of some variables.
15197
15198 * dired.c (Qdefault_directory): New var.
15199 (file_name_completion): Use it instead of Fexpand_file_name.
15200 (syms_of_dired): Initialize it.
15201
152022008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15203
15204 * fileio.c (double_dollars): Remove dead code.
15205
152062008-05-10 Eli Zaretskii <eliz@gnu.org>
15207
15208 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15209 Mention w32-get-true-file-attributes in doc string.
15210
15211 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15212
152132008-05-09 Glenn Morris <rgm@gnu.org>
15214
15215 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15216 2008-04-23.
15217
152182008-05-09 Eli Zaretskii <eliz@gnu.org>
15219
15220 Support for reporting owner and group of each file on MS-Windows:
15221 * dired.c (stat_uname, stat_gname): New functions, with special
15222 implementation for w32.
15223 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15224
15225 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15226 (dflt_group_name): New static variable.
15227 (dflt_group): Rename from the_group.
15228 (init_user_info): Init dflt_group fields. Get user's group name
15229 from LookupAccountSid.
15230 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15231 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15232 New initialization states.
15233 (globals_of_w32): Initialize them to zero. Initialize the default
15234 group name to "None".
15235 (GetFileSecurity_Name): New global var, the name of the function
15236 to call for GetFileSecurity.
15237 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15238 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15239 (get_file_security, get_security_descriptor_owner)
15240 (get_security_descriptor_group, is_valid_sid)
15241 (get_file_security_desc, get_rid, get_name_and_id)
15242 (get_file_owner_and_group): New functions.
15243 (stat): Use get_file_security_desc and get_file_owner_and_group to
15244 report the owner and primary group of each file. Don't ignore the
15245 high 32 bits of file's size, now that st_size is 64-bit wide.
15246 Fix test when to get true file attributes.
15247 (init_user_info): Use get_rid instead of equivalent inline code.
15248 (fstat): Don't ignore the high 32 bits of file's size.
15249
152502008-05-09 Chong Yidong <cyd@stupidchicken.com>
15251
15252 * image.c (png_load): Use correct bit-depth for setting background
15253 color.
15254
152552008-05-08 Eli Zaretskii <eliz@gnu.org>
15256
15257 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15258 epa-hook.elc.
15259
152602008-05-08 Juanma Barranquero <lekktu@gmail.com>
15261
15262 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15263
152642008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15265
15266 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15267 because the original parameters are in pure storage now.
15268 (mac_window): Remove unused params. Update callers.
15269
152702008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15271
15272 * lread.c (substitute_object_recurse): Use lower-level primitives.
15273 Don't signal errors when traversing sub-char-tables.
15274 Don't loop over all the possible characters when traversing char-tables.
15275
15276 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15277 just like we do in print.c.
15278
152792008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15280
15281 * minibuf.c (Ftry_completion): Remove code left over from when we used
15282 scmp instead of Fcompare_strings.
15283
152842008-05-04 Juanma Barranquero <lekktu@gmail.com>
15285
15286 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15287
152882008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15289
15290 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15291 Create bitmap context in native byte order.
15292
15293 * macterm.c (XDrawLine)
15294 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15295 context in native byte order.
15296
152972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15298
15299 * config.in: Regenerate.
15300
15301 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15302 New definitions for Image I/O support.
15303 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15304 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15305 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15306 (mac_data_provider_release_data, image_load_image_io)
15307 [USE_MAC_IMAGE_IO]: New functions.
15308 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15309 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15310 (init_image_func_pointer) [MAC_OSX]: Remove function.
15311 (image_load_quartz2d) [MAC_OSX]: Check availability of
15312 CGImageCreateWithPNGDataProvider at compile time.
15313 Use lowercase `false' for boolean constant.
15314 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15315 Use image_load_image_io.
15316 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15317 Don't check MyCGImageCreateWithPNGDataProvider.
15318 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15319 Don't call init_image_func_pointer.
15320
15321 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15322
15323 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15324 Make variable non-static.
15325 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15326 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15327
15328 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15329 (RED_FROM_ULONG): Mask off higher bits.
15330 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15331
15332 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15333 Include AvailabilityMacros.h.
15334 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15335 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15336
153372008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15338
15339 * chartab.c (Fset_char_table_range): If range is t, really set all
15340 chars to that value.
15341
153422008-05-03 Eli Zaretskii <eliz@gnu.org>
15343
15344 * dired.c (Ffile_attributes): Don't allow the device number become
15345 negative.
15346
153472008-05-02 Daiki Ueno <ueno@unixuser.org>
15348
15349 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15350
153512008-05-02 Juri Linkov <juri@jurta.org>
15352
15353 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15354 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15355 DEFAULT argument as a list of default values in docstrings.
15356
153572008-05-01 Chong Yidong <cyd@stupidchicken.com>
15358
15359 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15360
153612008-05-01 Martin Rudalics <rudalics@gmx.at>
15362
15363 * dispnew.c (change_frame_size_1): Preserve small windows when
15364 shrinking frames by calling set_window_height|width with third
15365 arg 2.
15366
15367 * window.h (struct window): Replace field too_small_ok by field
15368 resize_proportionally.
15369
15370 * window.c (make_window): Initialize resize_proportionally.
15371 (enlarge_window): Temporarily set resize_proportionally to make
15372 sure that shrink_windows does scale the window proportionally.
15373 (shrink_windows): When window has resize_proportionally set try
15374 to shrink it proportionally by stealing from other windows.
15375 (struct saved_window, Fset_window_configuration)
15376 (compare_window_configurations): Handle resize_proportionally.
15377 (WINDOW_TOTAL_SIZE): New macro.
15378 (window_min_size, shrink_windows, size_window): Use it.
15379 (check_min_window_sizes): Remove. Invalid values of
15380 window-min-height|width are handled by window_min_size_2 now.
15381 (size_window, Fsplit_window, enlarge_window)
15382 (adjust_window_trailing_edge, grow_mini_window): Don't call
15383 check_min_window_sizes.
15384 (window_min_size_2, window_min_size_1, window_min_size):
15385 New argument safe_p for retrieving "safe" minimum sizes.
15386 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15387 (adjust_window_trailing_edge, grow_mini_window):
15388 Adjust arguments of window_min_size... functions.
15389 (shrink_windows): Argument min_size removed. New argument
15390 safe_p allows shrinking windows to their safe minimum sizes.
15391 Calculate minimum size and decide whether a window shall be
15392 deleted for each window individually.
15393 (size_window): When nodelete_p equals 2, tell shrink_windows to
15394 delete windows only if their new minimum size is no more safe.
15395 (shrink_window_lowest_first): Call window_min_size_1 to make
15396 sure to preserve modeline of bottom-most window when resizing
15397 the minibuffer.
15398 (Fset_window_configuration, Fcurrent_window_configuration)
15399 (compare_window_configurations): Do not handle
15400 window-min-height|width any more.
15401 (syms_of_window): Clarify window-min-height|width doc-strings.
15402
154032008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15404
15405 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15406 some more. Copy some of the code from Ftry_completions.
15407 Remove special case code that dates back to initial revision when the
15408 slash was only added when necessary and that can't trigger nowadays.
15409
154102008-04-27 Kenichi Handa <handa@m17n.org>
15411
15412 * font.c (font_prop_validate): Signal `error' instead of `font'.
15413
154142008-04-29 Jason Rumney <jasonr@gnu.org>
15415
15416 * w32fns.c (Fw32_battery_status): New defun.
15417 (syms_of_w32fns): Defsubr it.
15418
154192008-04-28 Andreas Schwab <schwab@suse.de>
15420
15421 * dired.c (file_name_completion): Fix another mixing of encoded
15422 and decoded names.
15423
154242008-04-28 Juanma Barranquero <lekktu@gmail.com>
15425
15426 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15427
154282008-04-27 Juanma Barranquero <lekktu@gmail.com>
15429
15430 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15431
154322008-04-27 Andreas Schwab <schwab@suse.de>
15433
15434 * dired.c (file_name_completion): Fix inappropriate mixing of
15435 encoded and decoded names.
15436
15437 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15438
15439 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15440
154412008-04-26 Eli Zaretskii <eliz@gnu.org>
15442
15443 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15444 2008-03-31, it's not needed anymore with `struct stat' definition
15445 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15446 for the same reasons.
15447
154482008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15449
15450 * m/sparc.h: Additional redefinitions for GNU/Linux.
15451
154522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15453
15454 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15455 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15456 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15457 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15458 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15459 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15460 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15461 Likewise.
15462
15463 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15464 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15465 (mac_ax_number_of_characters): Add externs.
15466 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15467 [USE_MAC_TSM]: Likewise.
15468 (mac_handle_text_input_event) [MAC_OSX]:
15469 Handle kEventTextInputOffsetToPos for no active input area case.
15470 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15471 (mac_handle_document_access_event)
15472 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15473 (install_application_handler) [MAC_OSX]: Register handlers for
15474 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15475 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15476 Register mac_handle_document_access_event.
15477
15478 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15479 Make functions non-static.
15480
154812008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15482
15483 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15484 (read_file_name_completion_ignore_case, insert_default_directory)
15485 (Qdefault_directory): Move to minibuffer.el.
15486 (Fread_file_name): Call the new `read-file-name' instead.
15487
154882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15489
15490 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15491 Make function non-static.
15492 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15493 Remove function.
15494 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15495 Move to mactoolbox.c.
15496 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15497
15498 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15499 (mac_rect_make): New macro.
15500
15501 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15502 instead of float.
15503 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15504 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15505 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15506 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15507 CGRectMake.
15508 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15509 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15510 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15511 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15512 instead of WindowRef in argument type.
15513 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15514 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15515 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15516 instead of DISPLAY. All uses changed.
15517 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15518 (x_calc_absolute_position): Simplify so as not to use
15519 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15520
15521 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15522 instead of WindowRef in argument type.
15523 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15524 [TARGET_API_MAC_CARBON]: Remove externs.
15525 (create_apple_event, mac_event_parameters_to_lisp)
15526 [TARGET_API_MAC_CARBON]: Add externs.
15527
15528 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15529 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15530 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15531 is clicked.
15532 (x_activate_menubar): Remove extern for saved_menu_event_location.
15533 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15534 Move from mac.c.
15535
155362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15537
15538 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15539 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15540
155412008-04-23 Jason Rumney <jasonr@gnu.org>
15542
15543 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15544 attributes only for local files.
15545
15546 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15547 default to Qlocal.
15548
155492008-04-22 Juri Linkov <juri@jurta.org>
15550
15551 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15552 read-buffer-to-switch instead of using the letter "B".
15553
155542008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15555
15556 * fileio.c (Qdefault_directory): New variable.
15557 (Fread_file_name): Use it to pass `dir' to the completion functions.
15558
155592008-04-20 Chong Yidong <cyd@stupidchicken.com>
15560
15561 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15562
155632008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15564
15565 * keyboard.c (Vpre_help_message): Remove.
15566 (show_help_echo): Remove default C code.
15567
15568 * dired.c (directory_files_internal, file_name_completion):
15569 Only call ENCODE_FILE if the string is indeed decoded.
15570
155712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15572
15573 * Makefile.in (TOOLKIT_DEFINES): Remove.
15574 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15575
155762008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15577
15578 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15579 (mactoolbox.o): New target.
15580
15581 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15582 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15583
15584 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15585 Use mac_set_frame_window_background instead of XSetWindowBackground.
15586 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15587 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15588 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15589 instead of SetWindowTitleWithCFString.
15590 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15591 Move function to mactoolbox.c.
15592 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15593 Use mac_set_window_modified instead of SetWindowModified.
15594 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15595 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15596 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15597 FrontNonFloatingWindow. Use mac_activate_window instead of
15598 ActivateWindow. Use mac_active_non_floating_window instead of
15599 ActiveNonFloatingWindow.
15600 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15601 Use mac_show_hourglass and mac_hide_hourglass.
15602 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15603 instead of GetGlobalMouse.
15604 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15605 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15606 Use mac_bring_window_to_front instead of BringToFront.
15607 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15608 mactoolbox.c.
15609 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15610 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15611 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15612 mactoolbox.c.
15613
15614 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15615 (XtPointer): Move typedef from macmenu.c.
15616 (enum button_type): Move enum from macmenu.c.
15617 (widget_value): Move typedef from macmenu.c.
15618 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15619 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15620 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15621 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15622 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15623 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15624 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15625 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15626 (Selection): Move typedef from macselect.c.
15627 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15628 macterm.c.
15629 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15630 (mac_is_window_collapsed, mac_bring_window_to_front)
15631 (mac_send_window_behind, mac_hide_window, mac_show_window)
15632 (mac_collapse_window, mac_front_non_floating_window)
15633 (mac_active_non_floating_window, mac_activate_window)
15634 (mac_move_window_structure, mac_move_window, mac_size_window)
15635 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15636
15637 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15638 (enum mac_menu_kind): Move enum to mactoolbox.c.
15639 (min_menu_id): Move variable to mactoolbox.c.
15640 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15641 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15642 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15643 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15644 [TARGET_API_MAC_CARBON]: Likewise.
15645 (XtPointer): Move typedef to macgui.h.
15646 (enum button_type): Move enum to macgui.h.
15647 (widget_value): Move typedef to macgui.h.
15648 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15649 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15650 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15651 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15652 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15653 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15654 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15655 (popup_activated_flag): Make variable non-static.
15656 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15657 (add_menu_item, fill_menu, dispose_menus):
15658 Move functions to mactoolbox.c.
15659 (restore_show_help_function, menu_target_item_handler)
15660 (install_menu_target_item_handler, mac_handle_dialog_event)
15661 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15662 [TARGET_API_MAC_CARBON]: Likewise.
15663 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15664 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15665 (find_and_call_menu_selection, name_is_separator): Make function
15666 non-static.
15667 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15668 to mactoolbox.c.
15669 (set_frame_menubar): Don't call install_menu_quit_handler.
15670 (menu_item_selection): New variable.
15671 (mac_menu_show): Use create_and_show_popup_menu.
15672 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15673 selection but set variable menu_item_selection. All uses changed.
15674 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15675 Call install_menu_quit_handler. Move to mactoolbox.c.
15676
15677 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15678 (Selection): Move typedef to macgui.h.
15679 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15680 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15681 Make variables non-static.
15682 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15683 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15684 Make functions non-static.
15685 (Vmac_service_selection) [MAC_OSX]: Likewise.
15686 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15687 (mac_valid_selection_target_p, mac_clear_selection)
15688 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15689 (mac_put_selection_value, mac_selection_has_target_p)
15690 (mac_get_selection_value, mac_get_selection_target_list)
15691 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15692 Move functions to mactoolbox.c.
15693 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15694 Likewise.
15695 (copy_scrap_flavor_data, mac_handle_service_event)
15696 (install_service_handler) [MAC_OSX]: Likewise.
15697 (syms_of_macselect) <Vmac_dnd_known_types>:
15698 Use mac_dnd_default_known_types.
15699
15700 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15701 Move to mactoolbox.c.
15702 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15703 (Fx_selection_owner_p): Add EXFUN.
15704 (install_window_handler, remove_window_handler, XSetWindowBackground):
15705 Remove externs.
15706 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15707 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15708 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15709 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15710 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15711 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15712 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15713 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15714 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15715 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15716 (mac_valid_selection_target_p, mac_clear_selection)
15717 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15718 (mac_put_selection_value, mac_selection_has_target_p)
15719 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15720 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15721 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15722 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15723 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15724 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15725 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15726 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15727 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15728
15729 * mactoolbox.c: New file.
15730
157312008-04-18 Jason Rumney <jasonr@gnu.org>
15732
15733 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15734
157352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15736
15737 * character.c (Fmultibyte_char_to_unibyte):
15738 Return latin1 chars unchanged.
15739
15740 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15741 relocated if it points to `name'.
15742
157432008-04-17 Kenichi Handa <handa@m17n.org>
15744
15745 * data.c (Faset): Allow setting a multibyte character in an
15746 ASCII-only unibyte string.
15747
15748 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15749
157502008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15751
15752 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15753 done in config.h.
15754
157552008-04-16 Juanma Barranquero <lekktu@gmail.com>
15756
15757 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15758 (Fchar_direction): Add usage in the docstring.
15759
157602008-04-15 Chong Yidong <cyd@stupidchicken.com>
15761
15762 * keyboard.c (read_key_sequence): Remove always-true checks.
15763
157642008-04-14 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15767 compatibility struct, for better underline positioning.
15768
157692008-04-13 David Hansen <david.hansen@gmx.net>
15770
15771 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15772 string.
15773
157742008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15775
15776 * m/hp800.h (XUINT, XSET): Remove.
15777
157782008-04-12 Juanma Barranquero <lekktu@gmail.com>
15779
15780 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15781 previous change.
15782
157832008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15784
15785 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15786 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15787
157882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15789
15790 * keymap.h (map_keymap_canonical): Declare.
15791 * xmenu.c (single_keymap_panes): Use it.
15792
157932008-04-11 Glenn Morris <rgm@gnu.org>
15794
15795 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15796 set the target's value to that of the alias.
15797
157982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15799
15800 * term.c (set_tty_color_mode): Left over typo.
15801
158022008-04-10 Michael Albinus <michael.albinus@gmx.de>
15803
15804 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15805 only after check for file name handler functions. Signal, when
15806 native functionality is not supported.
15807 (syms_of_fileio): Declare it unconditionally.
15808
158092008-04-10 Jason Rumney <jasonr@gnu.org>
15810
15811 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15812 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15813
15814 * w32.c (logon_network_drive): Also logon to remote drives that
15815 are mapped to drive letters.
15816
158172008-04-10 Glenn Morris <rgm@gnu.org>
15818
15819 * xdisp.c (truncate-partial-width-windows): Doc fix.
15820
158212008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15822
15823 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15824 Move functions to minibuffer.el.
15825 (syms_of_fileio): Don't declare them.
15826
158272008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15830 (syms_of_minibuf): Remove its initialization.
15831
15832 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15833
158342008-04-09 Juanma Barranquero <lekktu@gmail.com>
15835
15836 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15837
158382008-04-09 Jason Rumney <jasonr@gnu.org>
15839
15840 * makefile.w32-in (distclean): Delete makefile too.
15841 (maintainer-clean): New target.
15842
15843 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15844
15845 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15846 for new font backend and composite cases.
15847
158482008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15849
15850 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15851 Most of the code moved to run_timers.
15852 (do_pending_atimers): Call run_timers.
15853 (run_timers): New function.
15854
15855 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15856 run atimers.
15857
15858 * process.c (wait_reading_process_output): The same as above.
15859
158602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15861
15862 * minibuf.c (last_exact_completion): Remove variable.
15863 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15864 (complete_and_exit_1, complete_and_exit_2)
15865 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15866 (Fdisplay_completion_list, display_completion_list_1)
15867 (Fminibuffer_completion_help, Fself_insert_and_exit)
15868 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15869 minibuffer.el.
15870 (syms_of_minibuf): Remove corresponding initializations.
15871
15872 * keyboard.c (Qdeactivate_mark): New var.
15873 (command_loop_1): Use it to call `deactivate-mark'.
15874 (syms_of_keyboard): Initialize it.
15875
15876 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15877 to another frame.
15878 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15879 Don't call set_tty_color_mode.
15880 (store_frame_param): Reset previous_frame rather than call
15881 set_tty_color_mode.
15882 * term.c (set_tty_color_mode): Rewrite.
15883 * dispextern.h (set_tty_color_mode): New type.
15884 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15885
158862008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15887
15888 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15889 for generic chars, which do not exist any more in emacs-unicode.
15890
158912008-04-08 Michael Albinus <michael.albinus@gmx.de>
15892
15893 * coding.c (detect_coding_emacs_mule)
15894 (Ffind_operation_coding_system): Fix typo.
15895
158962008-04-08 Jason Rumney <jasonr@gnu.org>
15897
15898 * w32uniscribe.c (SNAME): Extract only symbol name.
15899
15900 * w32font.h (struct w32_metric_cache): New struct.
15901 (w32font_info): Use it.
15902 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15903 (CACHE_BLOCKSIZE): New constants.
15904
15905 * w32font.c (Qja, Qko, Qzh): New symbols.
15906 (syms_of_w32font): Initialise them.
15907 (font_matches_spec): Use them to filter by language.
15908 (recompute_cached_metrics): Remove function.
15909 (compute_metrics, clear_cached_metrics): New functions.
15910 (w32font_encode_char): Use them to manage metric cache.
15911 (w32font_text_extents): Cache metrics for all glyphs on demand.
15912 Delay converting glyph indices to WORD until needed.
15913 (w32font_open_internal): Initialize metric cache to empty.
15914 (registry_to_w32_charset): Charset should always be a symbol.
15915 (fill_in_logfont, list_all_matching_fonts): Family should
15916 always be a symbol.
15917
159182008-04-06 Jason Rumney <jasonr@gnu.org>
15919
15920 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15921 Give up if glyph indices not supported. Use uniscribe obtained
15922 ABC widths for individual metrics. Map glyph clusters back to
15923 characters using fClusterStart flag. Return number of glyphs
15924 produced, not chars processed.
15925 (uniscribe_shape): Map char at FROM to current glyph.
15926
159272008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15928
15929 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15930 Use SetMenuItemHierarchicalMenu.
15931
159322008-04-05 Jason Rumney <jasonr@gnu.org>
15933
15934 * image.c (pbm_load): Allow color values up to 65535.
15935 Throw an error if max_color_idx is outside the supported range.
15936 Report an error when image size is invalid.
15937 Read two bytes at a time when raw images have max_color_idx above 255.
15938
aac0c6e3
MR
159392008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15940
15941 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15942 append "CCL: Quitted" when the CCL program is quitted.
15943 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15944
15945 * ccl.h (struct ccl_program): New member quit_silently.
15946
159472008-04-05 Chong Yidong <cyd@stupidchicken.com>
15948
15949 * search.c (compile_pattern_1): Treat non-nil and non-string of
15950 search-spaces-regexp as nil.
15951
15952 * minibuf.c (Fassoc_string): Tweak docstring.
15953
159542008-04-05 Eli Zaretskii <eliz@gnu.org>
15955
15956 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15957 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15958 2008-03-14 to force inode be positive.
15959
15960 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15961 _S_* ones, since we now use our own sys/stat.h.
15962 (stat, fstat): Don't mangle the inode number.
15963 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15964
159652008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15966
15967 * frame.h (struct frame): Give one more bit to `visible' since we use
15968 values larger than 1 to indicate obscured frames on ttys.
15969
15970 * keymap.c (Qkeymap_canonicalize): New var.
15971 (Fmap_keymap_internal): New fun.
15972 (describe_map): Use keymap-canonicalize.
15973
15974 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15975 (Fundo_boundary): Set them.
15976 (syms_of_undo): Initialize them.
15977 (record_point): Use them instead of last_point_position*.
15978 (last_undo_buffer): Change type.
15979
159802008-04-04 Jason Rumney <jasonr@gnu.org>
15981
15982 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15983 (recompute_cached_metrics): Don't set ascent and descent per char.
15984
15985 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15986 (uniscribe_check_otf): Add GC protection before consing.
15987 Rearrange loop for counting features.
15988
159892008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15990
15991 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15992 buffer with byte-size of source buffer.
15993
159942008-04-03 Chong Yidong <cyd@stupidchicken.com>
15995
15996 * callint.c (Fcall_interactively): Handle temporary region even
15997 when shift-select-mode is off.
15998
159992008-04-03 Jason Rumney <jasonr@gnu.org>
16000
16001 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16002
160032008-04-03 Kenichi Handa <handa@m17n.org>
16004
16005 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16006 (CATEGORY_MASK_UTF_16): Likewise.
16007 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16008 binary file.
16009 (detect_coding): Add null-byte detection for a binary file.
16010 (detect_coding_system): Likewise.
16011
160122008-04-03 Jason Rumney <jasonr@gnu.org>
16013
16014 * w32uniscribe.c: New file.
16015
16016 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16017
16018 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16019
16020 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16021 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16022 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16023 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16024 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16025 (Qphonetic): New symbols.
16026 (syms_of_w32font): Initialize them.
16027 (font_supported_scripts): Use them.
16028 (w32font_list_family): List all charsets.
16029 (w32font_text_extents, recompute_cached_metrics): Fix metric
16030 calculations.
16031 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16032 Give opentype fonts their own format.
16033 (font_matches_spec): New arguments backend and logfont.
16034 Handle :otf spec for uniscribe backend.
16035 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16036 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16037
16038 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16039 font backend.
16040 (globals_of_w32fns): Initialize uniscribe font backend.
16041
16042 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16043 dependencies.
16044 (w32uniscribe.$(O)): New file to build.
16045 (FONT_OBJ): Include w32uniscribe.$(O).
16046 (LIBS): Add uniscribe libraries.
16047
16048 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16049
160502008-04-02 Chong Yidong <cyd@stupidchicken.com>
16051
16052 * callint.c (Vshift_select_mode): New var.
16053 (Finteractive): Document new ^ spec.
16054 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16055 is present.
16056
16057 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16058 (command_loop_1): Avoid running the direct display versions of
16059 forward-char and backward-char if shift-selection may occur.
16060 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16061 shift-translation takes place.
16062
16063 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16064 avoid clobbering by define-minor-mode.
16065
16066 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16067 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16068
16069 * syntax.c (Fforward_word): Add ^ interactive spec.
16070
16071 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16072 (Fscroll_right): Add ^ interactive spec.
16073
160742008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16075
16076 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16077
16078 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16079
16080 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16081
160822008-03-31 Juri Linkov <juri@jurta.org>
16083
16084 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16085
160862008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16087
16088 * gtkutil.c (xg_set_geometry): Fix indentation.
16089 (xg_resize_outer_widget): Remove.
16090 (x_wm_size_hint_off): Fix indentation.
16091 (xg_frame_set_char_size): Call flush_and_sync after
16092 gtk_window_resize.
16093 (x_wm_set_size_hint): Pass NULL as geometry window to
16094 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16095 Add menu bar and tool bar height to base height.
16096 (xg_update_frame_menubar, free_frame_menubar)
16097 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16098 (update_frame_tool_bar, free_frame_tool_bar):
16099 Change xg_resize_outer_widget to xg_frame_set_char_size.
16100
161012008-03-30 Michael Albinus <michael.albinus@gmx.de>
16102
16103 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16104 (Fdbus_call_method): New parameter TIMEOUT.
16105 (dbus-send-signal): Optimize UNGCPRO call.
16106
161072008-03-29 Juri Linkov <juri@jurta.org>
16108
16109 * window.c (Fdisplay_buffer): Move call to
16110 Vsplit_window_preferred_function out of conditions that check
16111 if window is eligible for vertical splitting.
16112 When Vsplit_window_preferred_function is non-nil, call it and use
16113 its non-nil return value as window. Otherwise, continue doing
16114 vertical splitting using Fsplit_window with arg horflag=nil.
16115 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16116 default value from `split-window' to nil.
16117
161182008-03-29 Juri Linkov <juri@jurta.org>
16119
16120 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16121 for interactive code letters 'b' and 'B'.
16122
161232008-03-29 Eli Zaretskii <eliz@gnu.org>
16124
16125 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16126 multibyte string.
16127
161282008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16129
16130 * keyboard.c (pending_funcalls): New var.
16131 (timer_check): Run it.
16132 (syms_of_keyboard): Initialize it.
16133 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16134 (Vdelete_terminal_functions): New vars.
16135 (syms_of_terminal): Initialize them.
16136 (Fdelete_terminal): Run delete-terminal-functions.
16137 * xdisp.c (safe_eval): Rewrite.
16138 (safe_call2): New fun.
16139 * frame.c (Qdelete_frame_functions): New var.
16140 (syms_of_frame): Initialize it.
16141 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16142 * lisp.h (safe_call2, pending_funcalls): Declare.
16143
161442008-03-28 Andreas Schwab <schwab@suse.de>
16145
16146 * indent.c (Fmove_to_column): Move declaration before statements.
16147
161482008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16149
16150 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16151 (struct frame): Use bit fields for boolean vars.
16152
16153 * process.c (server_accept_connection): Simplify naming.
16154 (emacs_get_tty_pgrp): Use SDATA.
16155
16156 * coding.c (decode_coding_object): Fix last change.
16157
161582008-03-27 Jason Rumney <jasonr@gnu.org>
16159
16160 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16161
161622008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16163
16164 * charset.c (Fdefine_charset_internal): Change the way of
16165 registering charsets in Vcharset_order_list.
16166 (syms_of_charset): Make the charset `eight-bit' supplementary.
16167
161682008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16169
16170 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16171 operations, to avoid having the difference between pointers
16172 overflow.
16173
161742008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16175
16176 * indent.c (check_display_width): New fun.
16177 (scan_for_column): Use it.
16178
16179 * data.c (syms_of_data): Mark most-positive-fixnum and
16180 most-negative-fixnum as constants.
16181
16182 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16183
16184 * indent.c (scan_for_column): Extract from current_column_1.
16185 Merge with the same code from Fmove_to_column.
16186 (current_column_1, Fmove_to_column): Use it.
16187
161882008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16189
16190 * keymap.c (map_keymap_internal): New fun.
16191 (map_keymap): Use it.
16192 (Fmap_keymap_internal): New fun.
16193 (Fmap_keymap): Remove left-out test from before make_save_value.
16194
16195 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16196
16197 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16198 Use XCAR/XCDR.
16199
16200 * process.h (struct Lisp_Process): Remove filter_multibyte.
16201 * process.c (QCfilter_multibyte): Remove.
16202 (setup_process_coding_systems): Don't use filter_multibyte.
16203 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16204 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16205 (Fset_process_filter_multibyte): Change the coding-system to
16206 approximate the previous behavior.
16207 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16208 coding-system.
16209
16210 * coding.c (decode_coding_object): When not decoding into a buffer,
16211 obey the coding system's preference of (uni|multi)byte.
16212
162132008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16214
16215 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16216 every char is changed and has a different byte-length.
16217 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16218 Fix int -> EMACS_INT.
16219
162202008-03-23 David Hansen <david.hansen@gmx.net>
16221
16222 * dbusbind.c (xd_read_message): Remove extra copying of message
16223 strings. Check for NULL `interface' or `member'.
16224
162252008-03-22 Eli Zaretskii <eliz@gnu.org>
16226
16227 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16228 cFileName a file name that includes `?' characters, use the 8+3
16229 alias in cAlternateFileName instead.
16230
162312008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16232
16233 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16234
162352008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16236
16237 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16238 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16239 work on current_buffer only instead (that was already the case
16240 for some of the code anyway).
16241 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16242 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16243 (SET_PT, SET_PT_BOTH): Adjust.
16244 * intervals.h (set_point, temp_set_point, set_point_both)
16245 (temp_set_point_both): Remove redundant declarations.
16246
162472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16248
16249 * fileio.c (Finsert_file_contents):
16250 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16251 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16252 when buffer != current_buffer anyway.
16253
162542008-03-20 Andreas Schwab <schwab@suse.de>
16255
16256 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16257 as default.
16258
162592008-03-19 Jason Rumney <jasonr@gnu.org>
16260
16261 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16262 (syms_of_w32fns): Initialize them.
16263 (HOURGLASS_ID): New constant.
16264 (x_window_to_frame): Don't check hourglass_window.
16265 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16266 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16267 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16268 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16269 Only change the cursor if hourglass is not active.
16270 (Fx_create_frame): Initialize frame's current_cursor.
16271 (hourglass_atimer): Remove.
16272 (hourglass_started): New function.
16273 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16274 (show_hourglass): Adapt to w32, changing argument to frame.
16275
16276 * w32term.h (struct w32_output): Remove hourglass_window.
16277 Add current_cursor.
16278
16279 * eval.c (call_debugger, Fsignal):
16280 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16281 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16282 (Fexecute_extended_command, cancel_hourglass_unwind):
16283 * minibuf.c (read_minibuf):
16284 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16285
162862008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 * window.c (run_funs): New fun.
16289 (run_window_configuration_change_hook): Use it to run the buffer-local
16290 and the global part of the hook.
16291
16292 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16293 (unwind_format_mode_line): Restore selected window.
16294 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16295
162962008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16297
16298 * editfns.c (Fchar_equal): Check they are valid characters.
16299
16300 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16301
163022008-03-17 Andreas Schwab <schwab@suse.de>
16303
16304 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16305 against a charset.
16306
16307 * lisp.h (Fbuffer_list): Declare.
16308
163092008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16310
aac0c6e3
MR
16311 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16312 handlebox_widget is != 0.
16313
163142008-03-16 Juri Linkov <juri@jurta.org>
16315
16316 * callint.c (Fcall_interactively): For interactive code letters
16317 'b' and 'B' put the buffer list into the list of default "future"
16318 values of the minibuffer.
16319
163202008-03-16 Andreas Schwab <schwab@suse.de>
16321
16322 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16323 modifiers.
16324
16325 * regex.c (re_match_2_internal): Correct matching of a charset
16326 against latin-1 characters.
16327
163282008-03-16 Kenichi Handa <handa@m17n.org>
16329
16330 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16331 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16332 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16333 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16334 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16335 CHAR_STRING_ADVANCE.
16336 (produce_chars): Fix for the case that the source and the
16337 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16338 instead of CHAR_STRING_ADVANCE.
16339 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16340 STRING_CHAR_ADVANCE.
16341
163422008-03-15 Andreas Schwab <schwab@suse.de>
16343
16344 * regex.c (re_match_2_internal): Correct matching of eight bit
16345 characters in unibyte strings.
16346
163472008-03-15 Martin Rudalics <rudalics@gmx.at>
16348
16349 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16350 at end of range when it coincides with the end of the buffer.
16351
163522008-03-14 Eli Zaretskii <eliz@gnu.org>
16353
16354 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16355
16356 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16357
163582008-03-14 Jason Rumney <jasonr@gnu.org>
16359
16360 * editfns.c (initial_tz): New variable.
16361 (syms_of_editfns): Initialize it.
16362 (Fset_time_zone_rule): Set it when first called.
16363 Use it when TZSTRING is nil.
16364
16365 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16366 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16367 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16368 (globals_of_w32fns): Initialize them.
16369 (compute_tip_xy): Use them to position tooltips.
16370
163712008-03-14 Glenn Morris <rgm@gnu.org>
16372
16373 * emacs.c (main): Revert previous change.
16374 (standard_args): Revert -internal-script back to -scriptload,
16375 and remove the long-option form.
16376
163772008-03-13 Glenn Morris <rgm@gnu.org>
16378
16379 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16380 Remove option -enable-font-backend.
16381
163822008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16383
16384 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16385
163862008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16387
16388 * xterm.c (x_connection_closed): For GTK: If this is the last
16389 terminal just exit without closing the display.
16390
163912008-03-11 Jason Rumney <jasonr@gnu.org>
16392
16393 * w32font.c (w32font_full_name): Use floor to round.
16394
f0131492 163952008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16396
16397 * sound.c (alsa_configure): Declare vol at beginning of block.
16398
16399 * fontset.c (Ffontset_info): Remove extra semicolon.
16400
164012008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16402
16403 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16404 size of resulting string.
16405
164062008-03-10 Jason Rumney <jasonr@gnu.org>
16407
16408 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16409
164102008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16411
16412 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16413 Don't pretend as if characters with display property haven't been
16414 consumed for string-replacing-string case.
16415
164162008-03-08 Kim F. Storm <storm@cua.dk>
16417
16418 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16419 (get_next_display_element, next_element_from_string)
16420 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16421
164222008-03-08 Andreas Schwab <schwab@suse.de>
16423
16424 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16425
164262008-03-06 Jason Rumney <jasonr@gnu.org>
16427
16428 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16429 when charset not specified. Only translate ANSI to unicode when
16430 font_type is truetype.
16431 (w32font_coverage_ok): New function.
16432 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16433
164342008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16435
16436 * lread.c (Fread_char): Resolve modifiers.
16437 (Fread_char_exclusive): Likewise.
16438
16439 * character.c (char_resolve_modifier_mask): New function.
16440 (char_string): Use char_resolve_modifier_mask.
16441 (Fchar_resolve_modifiers): New function.
16442 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16443 function.
16444
164452008-03-04 Jason Rumney <jasonr@gnu.org>
16446
16447 * makefile.w32-in: Always include w32font.c in the build.
16448 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16449
164502008-03-04 Andreas Schwab <schwab@suse.de>
16451
16452 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16453 (versionclean): Likewise.
16454
164552008-03-04 Juanma Barranquero <lekktu@gmail.com>
16456
16457 * .cvsignore: Add oo.
16458
164592008-03-03 Andreas Schwab <schwab@suse.de>
16460
16461 * coding.c (decode_coding_object): Inhibit gap shrinking while
16462 decoding in place.
16463
164642008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16465
16466 * w32term.c: Remove unused include "gnu.h".
16467 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16468
16469 * gnu.h: Rename to ...
16470 * emacs-icon.h: ... this.
16471 * xterm.c: Use emacs-icon.h instead of gnu.h.
16472 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16473
164742008-03-03 Juanma Barranquero <lekktu@gmail.com>
16475
16476 * w32font.c: Include math.h.
16477
164782008-03-03 Jason Rumney <jasonr@gnu.org>
16479
16480 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16481 Compute options separately.
16482 (w32font_open_internal): Set glyph_idx before caching metrics.
16483
16484 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16485 Define if system headers don't.
16486 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16487 (w32font_encode_char): Don't declare here.
16488
16489 * w32font.c (Quniscribe, QCformat): New symbols.
16490 (syms_of_w32font): Define them.
16491 (w32font_has_char): Indicate uncertainty.
16492 (w32font_encode_char): Encode as glyph point. Make static.
16493 (recompute_cached_metrics): New function.
16494 (w32font_open_internal): Use it. Set font to use glyph points
16495 initially. Set format based on type of font.
16496 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16497 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16498 on it. Set format based on information available here.
16499 (add_font_entity_to_list): Identify backend based on opentype_only.
16500
165012008-03-02 Andreas Schwab <schwab@suse.de>
16502
16503 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16504
16505 * coding.c (decode_coding_big5, produce_chars):
16506 Fix typos in last change.
16507
165082008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16509
16510 * gnu.h: New icon.
16511
165122008-03-02 Kenichi Handa <handa@m17n.org>
16513
16514 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16515 `dos', don't decode '\r' if that is the last in the source.
16516 (decode_coding_utf_16, decode_coding_emacs_mule)
16517 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16518 (decode_coding_raw_text, decode_coding_charset): Likewise.
16519 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16520
165212008-03-01 Jason Rumney <jasonr@gnu.org>
16522
16523 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16524
165252008-03-01 Kim F. Storm <storm@cua.dk>
16526
16527 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16528
165292008-03-01 Jason Rumney <jasonr@gnu.org>
16530
16531 * w32font.c (w32font_full_name): New function.
16532 (w32font_open_internal): Use it.
16533
165342008-03-01 Kim F. Storm <storm@cua.dk>
16535
16536 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16537
165382008-03-01 Jason Rumney <jasonr@gnu.org>
16539
16540 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16541
165422008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16543
16544 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16545 xg_frame_resized when the event is for the edit widget.
16546
16547 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16548
16549 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16550 set_char_size.
16551 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16552 operations on widgets here. Just set frame size if needed.
16553 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16554 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16555 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16556 the whole frame.
16557 (xg_create_tool_bar): Move attachment of the tool bar to
16558 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16559 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16560
165612008-03-01 Jason Rumney <jasonr@gnu.org>
16562
16563 * w32fns.c (w32_msg_pump): Disable debug code.
16564
165652008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16566
16567 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16568
165692008-02-29 Chong Yidong <cyd@stupidchicken.com>
16570
16571 * xdisp.c (next_overlay_string): Don't set
16572 overlay_strings_at_end_processed_p if we're currently reading from
16573 a display string.
16574
165752008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 * xdisp.c (get_overlay_strings_1): Fix typo.
16578
165792008-02-29 Chong Yidong <cyd@stupidchicken.com>
16580
16581 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16582
165832008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16584
16585 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16586
16587 * xdisp.c (display_mode_element): Cancel the previous change.
16588 (decode_mode_spec): Likewise.
16589 (handle_auto_composed_prop): Don't make composition if it->string
16590 is a string.
16591
165922008-02-27 Kim F. Storm <storm@cua.dk>
16593
16594 * lisp.h (GLYPH): Change type from int to struct with separate char
16595 and face_id members.
16596 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16597 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16598 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16599 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16600 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16601 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16602 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16603 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16604 handle new Lisp glyph code encoding, either an integer or a cons.
16605
16606 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16607 (GLYPH_ALIAS): Delete.
16608 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16609 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16610 (GLYPH_FROM_CHAR): Replace macro by ...
16611 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16612
16613 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16614 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16615 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16616 (GLYPH_INVALID_P): New macro.
16617 (spec_glyph_lookup_face): Update prototype.
16618
16619 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16620 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16621 new glyph code encoding.
16622 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16623 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16624
16625 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16626 Adapt to new glyph type and new glyph code encoding.
16627
16628 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16629
16630 * indent.c (current_column, current_column_1, Fmove_to_column)
16631 (compute_motion): Adapt to new glyph code encoding.
16632
16633 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16634
166352008-02-27 Chong Yidong <cyd@stupidchicken.com>
16636
16637 * process.c (wait_reading_process_output): Check for window
16638 changes caused by timers.
16639 Suggested by Johan Bockgård.
16640
166412008-02-27 Glenn Morris <rgm@gnu.org>
16642
16643 * emacs.c (USAGE1): Add `--disable-font-backend'.
16644
166452008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16646
16647 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16648 is made to the buffer.
16649
166502008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16651
16652 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16653 (face_at_string_position):
16654 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16655 (face_at_string_position):
16656 * xdisp.c (display_string, next_overlay_change):
16657 * buffer.h (overlays_at):
16658 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16659 Update callers.
16660
166612008-02-26 Chong Yidong <cyd@stupidchicken.com>
16662
16663 * editfns.c (Fformat): Doc fix.
16664
166652008-02-26 Juanma Barranquero <lekktu@gmail.com>
16666
16667 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16668 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16669 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16670
166712008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16672
16673 * buffer.c (Fbuffer_swap_text): New function.
16674 (syms_of_buffer): Defsubr it.
16675
166762008-02-25 Chong Yidong <cyd@stupidchicken.com>
16677
16678 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16679
166802008-02-25 Jason Rumney <jasonr@gnu.org>
16681
16682 * w32font.c (w32font_draw): Draw one character at a time when padding.
16683
166842008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16685
16686 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16687 Handle a nil arg. Use run_window_configuration_change_hook.
16688 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16689 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16690 Use run_window_configuration_change_hook.
16691
166922008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16693
16694 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16695 1-pixel width.
16696
166972008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16698
16699 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16700 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16701 if the glyph in the font is zero pixel with.
16702
16703 * dispextern.h (struct glyph_string): New member padding_p.
16704
16705 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16706
16707 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16708
16709 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16710
16711 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16712
16713 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16714
167152008-02-25 Jason Rumney <jasonr@gnu.org>
16716
16717 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16718
167192008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16720
16721 Allow fine-grained image-cache flushing.
16722 * dispextern.h (struct image): Add `dependencies' field.
16723 (clear_image_caches): Change arg to Lisp_Object.
16724 * image.c (make_image): Initialize `dependencies' field.
16725 (clear_image_cache): Change arg to allow fine-grained flushing.
16726 Perform the flush even if image-cache-eviction-delay is nil.
16727 (clear_image_caches): Change arg to Lisp_Object.
16728 (Fclear_image_cache): Expand meaning of the argument.
16729 (mark_image): Mark `dependencies' field.
16730 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16731 (lface_hash): Use XHASH rather than XFASTINT.
16732 (face_at_buffer_position): Fix int -> EMACS_INT position.
16733 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16734 (select_frame_for_redisplay): Remove code duplication.
16735 (redisplay_internal): Adapt arg to call to clear_image_caches.
16736
167372008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16738
16739 * s/vms4-0.h:
16740 * s/vms4-2.h:
16741 * s/vms4-4.h:
16742 * s/vms5-5.h: Remove, unused.
16743
16744 * s/irix5-2.h:
16745 * s/irix6-0.h:
16746 * s/riscos5.h:
16747 * s/mach-bsd4-3.h:
16748 * m/mips4.h: Remove files for obsolete systems.
16749
16750 * Makefile.in:
16751 * filelock.c:
16752 * unexmips.c:
16753 * m/hp9000s300.h:
16754 * m/iris4d.h:
16755 * s/aix3-1.h:
16756 * s/hpux.h:
16757 * s/msdos.h:
16758 * s/usg5-0.h:
16759 * s/usg5-2-2.h:
16760 * s/usg5-2.h:
16761 * s/usg5-3.h: Remove references to obsolete variables.
16762
16763 * s/irix5-0.h: Remove, move all the contents ...
16764 * s/irix6-5.h: ... here. Simplify.
16765 * config.in: Regenerate.
16766
167672008-02-24 Jason Rumney <jasonr@gnu.org>
16768
16769 * w32term.c (x_draw_glyph_string_background): Clear the background
16770 manually when cleartype is in use.
16771 (x_draw_glyph_string_foreground): Draw text transparently when
16772 cleartype is in use.
16773
16774 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16775 a font into it unless we have to.
16776
167772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16778
16779 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16780 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16781
aac0c6e3
MR
167822008-02-18 Jason Rumney <jasonr@gnu.org>
16783
16784 * w32fns.c (Fw32_shell_execute): Encode parameters.
16785
167862008-02-09 Eli Zaretskii <eliz@gnu.org>
16787
16788 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16789
167902008-02-05 Juanma Barranquero <lekktu@gmail.com>
16791
16792 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16793
167942008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16795
16796 * xterm.c (x_set_offset): Don't change the gravity if
16797 CHANGE_GRAVITY is -1.
16798
167992008-02-23 Chong Yidong <cyd@stupidchicken.com>
16800
16801 * fileio.c (auto_save_error_occurred): New var.
16802 (auto_save_error): Set it.
16803 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16804 error occurred.
16805
168062008-02-23 Eli Zaretskii <eliz@gnu.org>
16807
16808 * w32.c (globals_of_w32): Add initializations for
16809 g_b_init_get_sid_sub_authority and
16810 g_b_init_get_sid_sub_authority_count.
16811
168122008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16813
16814 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16815 (font_parse_xlfd): Use them for sanity check.
16816 (Finternal_set_font_style_table): Make sure the table is bijective.
16817
16818 Consolidate the image_cache to the terminal struct.
16819 * termhooks.h (P_): Remove redundant def.
16820 (struct terminal): New field `image_cache'.
16821 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16822 of FRAME_X_IMAGE_CACHE.
16823 * xterm.h (struct x_display_info): Remove image_cache field.
16824 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16825 * w32term.h (struct w32_display_info): Remove image_cache field.
16826 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16827 * macterm.h (struct mac_display_info): Remove image_cache field.
16828 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16829 * xterm.c (x_term_init):
16830 * w32term.c (w32_term_init):
16831 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16832 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16833 Remove declarations.
16834 (clear_image_caches, mark_image_cache): New declarations.
16835 * xfaces.c (clear_face_cache):
16836 * xdisp.c (redisplay_internal): Use clear_image_caches.
16837 * image.c (clear_image_cache): Don't check that a frame is on
16838 a window-system before checking if it shares the same cache.
16839 (clear_image_caches): New function.
16840 (Fclear_image_cache): Use it.
16841 (mark_image): Move from allo.c.
16842 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16843 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16844 (mark_object): Don't call mark_image_cache for frames.
16845 (mark_terminals): Call mark_image_cache.
16846
16847 * lisp.h (Fdelete_terminal): Declare.
16848
16849 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16850 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16851 wrong_type_argument.
16852
168532008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16854
16855 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16856 malayalam.el, and tamil.el. Add sinhala.el.
16857
168582008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * xterm.c (x_connection_closed): Consolidate identical tests.
16861 (x_delete_terminal): Don't crash if called via x_connection_closed.
16862
168632008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16864
16865 * xdisp.c (decode_mode_spec): New arg string.
16866 (display_mode_element): Adjust for the above change.
16867
168682008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16869
16870 * callint.c (Fcall_interactively): Use AREF.
16871
168722008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16873
16874 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16875
168762008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16877
16878 * xfns.c (Fx_show_tip): Set string to " " if empty.
16879
168802008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16881
16882 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16883 with Qt.
16884
168852008-02-17 Kenichi Handa <handa@m17n.org>
16886
16887 * ftfont.c (ftfont_shape): Return Lispy number.
16888
16889 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16890 for GCs.
16891 (Finternal_set_font_selection_order): Call font_update_sort_order
16892 only when enable_font_backend is set.
16893 (realize_x_face): Set face->font_info to that of default face only
16894 when enable_font_backend is set.
16895
16896 * xdisp.c (handle_composition_prop): Set it->c to the fist
16897 character of the composed region.
16898 (fill_composite_glyph_string): Set base_face->font_info to
16899 s->font_info. Get a face for ascii from base_face->ascii_face.
16900 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16901 with a face already decided.
16902 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16903 non-negative.
16904 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16905 call font_prepare_composition unconditionally.
16906
16907 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16908
16909 * xterm.h (struct x_display_info): New member font.
16910
16911 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16912 (x_set_mouse_face_gc, x_new_font): Likewise.
16913 (x_term_init): Setup display_info->font.
16914 (x_delete_terminal): Free display_info->font.
16915
16916 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16917
16918 * ftxfont.c (ftxfont_default_fid): Delete it.
16919 (ftxfont_open): Set xfont->fid to 0.
16920 (ftxfont_end_for_frame): Clear data specific to the frame and the
16921 font-driver.
16922
16923 * xftfont.c (xftfont_default_fid): Delete it.
16924 (xftfont_open): Set xfont->fid to 0.
16925
16926 * fontset.c (FONTSET_OBJLIST): New macro.
16927 (fontset_find_font): Update font-object list of the fontset.
16928 (free_realized_fontset): New function.
16929 (free_face_fontset): Call free_realized_fontset.
16930 (Ffont_info): Call font_close_object only when enable_font_backend
16931 is set.
16932
16933 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16934 [HAVE_NTGUI]: Include w32term.h.
16935 [MAC_OS]: Include macterm.ch.
16936 (font_otf_ValueRecord): Use make_number.
16937 (font_finish_cache): Fix handling of reference count.
16938 (font_clear_cache): Update num_fonts.
16939 (font_open_entity): Update smallest_char_width and
16940 smallest_font_height of the frame.
16941 (font_close_object): Update num_fonts.
16942 (Fclear_font_cache): Fix finding the target cache data.
16943
169442008-02-16 Glenn Morris <rgm@gnu.org>
16945
16946 * fontset.c (Finternal_char_font): Fix compilation warning.
16947
169482008-02-16 Eli Zaretskii <eliz@gnu.org>
16949
16950 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16951 instead of char arrays. Enlarge the size of array passed to
16952 get_token_information.
16953
16954 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16955 warnings.
16956
169572008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16958
16959 * .gdbinit: Don't set `args', it breaks gdb --args.
16960
169612008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16962
16963 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16964 within a narrowed buffer.
16965
169662008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16967
16968 * coding.c (decode_coding_object, encode_coding_object):
16969 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16970
169712008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16972
16973 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16974 hardcoding 1.
16975 (detect_coding_system):
16976 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16977 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16978 * insdel.c (insert_from_gap):
16979 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16980 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16981 (string_to_multibyte):
16982 * character.c (chars_in_text, multibyte_chars_in_text):
16983 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16984
16985 * character.h (FETCH_STRING_CHAR_ADVANCE)
16986 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16987 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16988 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16989
16990 * casefiddle.c (casify_region): Only call after-change and composition
16991 functions on the part of the region that was changed.
16992
16993 * keyboard.c (read_avail_input):
16994 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16995
169962008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16997
16998 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16999 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17000
170012008-02-11 Juanma Barranquero <lekktu@gmail.com>
17002
17003 * w32menu.c (push_submenu_start, push_submenu_end)
17004 (push_left_right_boundary, push_menu_pane, push_menu_item):
17005 * keyboard.c (read_key_sequence): Don't pass args with side effects
17006 to AREF, it fails when compiling with -DENABLE_CHECKING.
17007
170082008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17009
17010 * Makefile.in (${lispsource}international/charprop.el):
17011 Delete this target.
17012
17013 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17014 emacs-unicode-2.
17015
170162008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17017
17018 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17019
170202008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17021
17022 * frame.c (Qnoelisp): New symbol.
17023 (syms_of_frame): Initialize it.
17024 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17025 harmless Elisp code, from a strong `force' from x_connection_closed.
17026 * frame.h (Qnoelisp): Declare.
17027 * xterm.c (x_connection_closed): Pass `noelisp'.
17028
17029 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17030 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17031 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17032 rather than `int' for the type of `type'.
17033
170342008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17035
17036 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17037
17038 * Makefile.in (GNUC): Remove support for gcc-1.x.
17039
170402008-02-10 Richard Stallman <rms@gnu.org>
17041
17042 * lisp.h (ASET): Use AREF, not ASLOT.
17043
170442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17045
17046 * lisp.h (ASET): Check bounds.
17047
170482008-02-10 Glenn Morris <rgm@gnu.org>
17049
17050 * buffer.c (mode-name): Doc fix.
17051
170522008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17053
17054 * Makefile.in:
17055 * emacs.c:
17056 * gmalloc.c:
17057 * keyboard.c:
17058 * lisp.h:
17059 * m/ibm370aix.h:
17060 * process.c:
17061 * regex.c:
17062 * s/hpux.h:
17063 * sysdep.c:
17064 * sysselect.h:
17065 * systty.h:
17066 * unexec.c:
17067 * w32term.c:
17068 * xsmfns.c:
17069 * xterm.c: Remove code that deals with obsolete variables.
17070
17071 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17072
17073 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17074 nothing else needs it anymore.
17075
170762008-02-09 Eli Zaretskii <eliz@gnu.org>
17077
17078 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17079 instead of unibyte_char_to_multibyte.
17080
170812008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17082
17083 * s/gnu-linux.h: Remove commented out code.
17084
17085 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17086
17087 * Makefile.in: Update what RMS says about using autoconf.
17088 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17089 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17090 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17091 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17092
170932008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17094
17095 * keymap.c (Fkey_description): Move side effect outside of macro call.
17096
17097 * xfaces.c (Finternal_make_lisp_face):
17098 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17099
17100 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17101 (syms_of_fontset): Use ASET.
17102
17103 * fns.c (concat): Move side effect outside of macro call.
17104 (hash_clear): Use ASET.
17105
171062008-02-08 Richard Stallman <rms@gnu.org>
17107
17108 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17109 If FORCE, and frame has a surrogate minibuffer for another frame,
17110 delete the other frame first.
17111
171122008-02-07 Timo Savola <timo.savola@iki.fi>
17113
17114 * xterm.c (x_detect_focus_change): Handle embed client message.
17115 (handle_one_xevent): Ditto.
17116 (handle_one_xevent): If embedded and we get a button press/release,
17117 request focus.
17118 (xembed_set_info, xembed_send_message): New functions.
17119 (x_make_frame_visible): Call xembed_set_info if embedded.
17120 (x_make_frame_invisible): Call xembed_set_info if embedded.
17121 (x_term_init): Initialize Xatom_XEMBED.
17122 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17123 (x_iconify_frame): Ditto.
17124
17125 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17126 (enum xembed_info, enum xembed_message, enum xembed_focus)
17127 (enum xembed_modifier, enum xembed_accelerator): New.
17128 (xembed_set_info, xembed_send_message): Declare.
17129 (FRAME_X_EMBEDDED_P): New.
17130
17131 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17132 gtk_plug_new.
17133
17134 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17135 window ID of a frame.
17136 (x_window): Reparent frame if embedded.
17137 (Fx_create_frame): Don't set border width if embedded.
17138
17139 * emacs.c (USAGE3): Add --parent-id.
17140 (standard_args): Ditto.
17141
171422008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17143
17144 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17145
171462008-02-07 Jim Meyering <meyering@redhat.com>
17147
17148 Use "do...while (0)", not "if (1)...else" in macro definitions.
17149 The latter provokes a warning from gcc about the empty else, when
17150 followed by ";". Also, without that trailing semicolon, it would
17151 silently swallow up any following statement.
17152 * syntax.h (SETUP_SYNTAX_TABLE)
17153 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17154 * buffer.h (DECODE_POSITION): Likewise.
17155 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17156 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17157 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17158 (FETCH_CHAR_ADVANCE): Likewise.
17159 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17160
171612008-02-07 Jim Meyering <meyering@redhat.com>
17162
17163 * lread.c [lint]: Don't include <sys/inode.h>.
17164
171652008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17166
17167 * xselect.c (x_handle_dnd_message):
17168 * xmenu.c (digest_single_submenu, xmenu_show):
17169 * xdisp.c (with_echo_area_buffer_unwind_data)
17170 (format_mode_line_unwind_data, unwind_format_mode_line)
17171 (display_menu_bar):
17172 * eval.c (Ffetch_bytecode):
17173 * doc.c (store_function_docstring):
17174 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17175 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17176 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17177
171782008-02-07 Kenichi Handa <handa@m17n.org>
17179
17180 * ftxfont.c (ftxfont_open): Don't set
17181 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17182
17183 * ftfont.c (ftfont_open): Fix previous change.
17184
171852008-02-06 Jason Rumney <jasonr@gnu.org>
17186
17187 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17188 Use cached metrics for ASCII characters.
17189 (w32font_open_internal): Don't set font's owning_frame.
17190 Cache metrics for ASCII characters.
17191
17192 * w32font.h (struct w32font_info): Add ascii_metrics.
17193 Remove owning_frame.
17194
171952008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17196
17197 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17198 to negative value.
17199
17200 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17201
17202 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17203
17204 * charset.c (syms_of_charset): Set QCtest and Qeq.
17205
172062008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17207
17208 * process.c (Fstart_process):
17209 * callproc.c (Fcall_process): Handle the case where
17210 Funhandled_file_name_directory returns nil.
17211
17212 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17213 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17214 * font.c (check_gstring): Use them and AREF to access the vector before
17215 we know it's really a gstring.
17216 (Ffont_shape_text): Fix typo.
46e722a9 17217 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17218
17219 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17220 Declare.
17221
17222 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17223
172242008-02-05 Jason Rumney <jasonr@gnu.org>
17225
17226 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17227 Set smallest_font_height and smallest_char_width in display info.
17228
172292008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17230
17231 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17232
172332008-02-05 Miles Bader <miles@gnu.org>
17234
17235 * xfaces.c (get_lface_attributes, merge_named_face)
17236 (lookup_named_face, lookup_derived_face, realize_named_face):
17237 Revert 2008-02-01 change by cyd@stupidchicken.com.
17238
172392008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17240
17241 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17242 fallback fonts.
17243 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17244
172452008-02-04 Jason Rumney <jasonr@gnu.org>
17246
17247 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17248 set full_name.
17249 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17250
172512008-02-03 Jason Rumney <jasonr@gnu.org>
17252
17253 * makefile.w32-in (OBJ1): Include font.o here.
17254 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17255
172562008-02-02 Jason Rumney <jasonr@gnu.org>
17257
17258 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17259
172602008-02-01 Jason Rumney <jasonr@gnu.org>
17261
17262 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17263
17264 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17265
172662008-02-01 Andreas Schwab <schwab@suse.de>
17267
17268 * Makefile.in (shortlisp, lisp): Update for rename of
17269 ../lisp/language/myanmar.el.
17270
172712008-02-01 Chong Yidong <cyd@stupidchicken.com>
17272
17273 * xfaces.c (get_lface_attributes): Delete function.
17274 (merge_named_face, lookup_named_face, lookup_derived_face)
17275 (realize_named_face): Call lface_from_face_name directly, and use
17276 the fact that merge_face_vectors does not alter its FROM argument.
17277
172782008-02-01 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17281 input in the default locale. Handle non-Unicode multibyte input.
17282
172832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17284
17285 * fontset.c (reorder_font_vector): Exclude nil elements from the
17286 font group. Don't try multiple fonts.
17287 (fontset_font): Adjust for the above change.
17288 (Finternal_char_font): Return nil if the found font doesn't
17289 contain the character ch.
17290
17291 * Makefile.in (lisp, shortlisp): Add cham.el.
17292
172932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17294
17295 * font.h (FONTP): Make it return 1 also for a font-object.
17296
17297 * .gdbinit (xfontset): New function.
17298
17299 * font.c (font_find_for_lface): Check if the character C is
17300 supported or not only for the first font.
17301
17302 * fontset.c (reorder_font_vector): Fix typo.
17303 (fontset_find_font): Don't add a font-spec specifying a script.
17304 Use 0 (not Qt) for the indication of empty font-group. Change the
17305 format of RFONT-DEF. Return Qt if no font in the font-group
17306 support the character.
17307 (fontset_font): Adjust for the above change. If no font was
17308 found the character, remember that.
17309 (face_for_char): Adjust for the change of RFONT-DEF.
17310 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17311 no font for the target.
17312 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17313
173142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17315
17316 * font.c (font_load_for_face): Handle the case that the font in
17317 face->lface is a string.
17318
173192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17320
17321 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17322
173232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17324
17325 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17326 Fix previous change. If the frame is not on a window system,
17327 signal an error.
17328
173292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17330
17331 * coding.c (decode_coding_object, encode_coding_object): Adjust
17332 marker positions after conversion.
17333
17334 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17335
173362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17337
17338 * font.c (font_find_for_lface): Fix the handling of the return
17339 value of font_has_char.
17340 (Ffont_shape_text): Fix previous change.
17341
17342 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17343 (fontset_ref_and_range): Delete it.
17344 (fontset_find_font): Call char_table_ref_and_range instead of
17345 FONTSET_REF_AND_RANGE.
17346 (make_fontset): Don't setup font groups of Latin here.
17347 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17348 (new_fontset_from_font): Make the specified font the default for
17349 all Latin characters.
17350
173512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17352
17353 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17354 is on a window system before accessing the fontset of the frame.
17355
173562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17357
17358 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17359
17360 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17361 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17362
17363 * font.c (Ffont_shape_text): If the font driver doesn't have a
17364 shaper function, make zero-width glyphs to have at least one-pixel
17365 width. Fix setting of `to' field of glyphs.
17366
173672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17368
17369 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17370 glyphs.
17371
17372 * font.h (struct font_driver): Improve docstring of member `shape'.
17373
173742008-02-01 Kenichi Handa <handa@m17n.org>
17375
17376 * composite.c (syms_of_composite): Fix docstring of
17377 auto-composition-function.
17378
17379 * font.h (LGLYPH_SIZE): New macro.
17380
17381 * font.c (Ffont_fill_gstring): Stop filling when a character not
17382 supported by the font is found.
17383 (Ffont_shape_text): When a shape callback function returns nil,
17384 try at most two more times with larger gstring.
17385 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17386
17387 * xdisp.c (handle_auto_composed_prop): Change the argument to
17388 auto-composition-function.
17389
17390 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17391 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17392 Lispy glyph and store it in the lgstring.
17393
17394 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17395
17396 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17397
173982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17399
17400 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17401
17402 * fontset.c (Vfont_encoding_charset_alist): New variable.
17403 (syms_of_fontset): DEFVAR it.
17404 (reorder_font_vector, fontset_find_font): Optimize for the case of
17405 no need of reordering.
17406 (face_for_char): Map the charset property by
17407 Vfont_encoding_charset_alist.
17408
174092008-02-01 Jason Rumney <jasonr@gnu.org>
17410
17411 * w32font.c (logfonts_match): Don't check adstyle here.
17412 (font_matches_spec): Check here against physical font instead.
17413 (add_font_entity_to_list): Avoid some substitutions.
17414
17415 * font.c (font_parse_fcname): Default weight and slant to normal.
17416 (font_score): Prefer normal fonts if weight or slant unspecified.
17417 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17418 match freetype scores.
17419
174202008-02-01 Jason Rumney <jasonr@gnu.org>
17421
17422 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17423 font, as it may have been deleted.
17424 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17425 most common hyphenless variation.
17426 (logfonts_match): Check generic family.
17427 (font_matches_spec): Don't check generic family here.
17428 (fill_in_logfont): Set generic family based on adstyle.
17429
17430 * w32font.h (w32font_get_cache): Update declaration.
17431
174322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17433
17434 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17435
17436 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17437 If none of the new drivers are available, call font_update_drivers
17438 with the old drivers.
17439
17440 * w32font.c (w32font_get_cache): Adjust the argument type.
17441
17442 * xfont.c (xfont_get_cache): Adjust the argument type.
17443
17444 * font.h (struct font_driver): Change argument type of get_cache.
17445
17446 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17447
17448 * font.c (Ffont_get): Fix arguments to Fassoc.
17449 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17450 (font_clear_cache): New function.
17451 (font_list_entities, font_matching_entity): Use font_get_cache.
17452 (font_update_drivers): Call font_clear_cache when finishing a driver.
17453
17454 * fontset.c (fontset_find_font): Fix previous change.
17455
174562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17457
17458 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17459 dpyinfo->font_table.
17460 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17461 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17462
17463 * font.c (font_at): Handle the case that the arg C is negative.
17464 Handle the unibyte case.
17465 (Ffont_at): Call font_at with the arg C -1.
17466
17467 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17468 the position here, and call font_at with the arg C -1.
17469 Don't check the range of the existing composition at the point.
17470
174712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17472
17473 * fontset.c (fontset_add): New args charset_id and family.
17474 Change caller.
17475 (load_font_get_repertory, fontset_find_font): Assume that
17476 font_spec is always a font-spec object.
17477 (Fset_fontset_font): Always store a font-spec object in a fontset.
17478
17479 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17480 instead of get_property_and_range.
17481
174822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17483
17484 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17485 (xftfont_open): Don't keep locking face.
17486 (xftfont_close): Don't unlock face.
17487 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17488
17489 * fontset.c (fontset_find_font): Don't prefer a font of
17490 supplementary charset.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17495 script, langsys_tag to langsys, new member script.
17496 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17497 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17498 listing to the script specified in that property. Fix arg to
17499 OTF_check_features.
17500
175012008-02-01 Jason Rumney <jasonr@gnu.org>
17502
17503 * w32font.h: New file.
17504
17505 * w32font.c: Include it.
17506 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17507 (w32font_open): Set owning_frame.
17508 (w32font_text_extents): Use owning_frame.
17509 (struct font_callback_data): Add opentype_only field.
17510 (add_font_entity_to_list): Use it to filter fonts.
17511 Don't check against full name.
17512 (w32font_list_internal): New function.
17513 (w32font_list): Use it.
17514 (w32font_match_internal): New function.
17515 (w32font_match): Use it.
17516 (w32font_open_internal): New function.
17517 (w32font_open): Use it.
17518 (w32font_get_cache, w32font_close, w32font_has_char)
17519 (w32font_encode_char, w32font_text_extents, w32font_draw):
17520 Make non-static.
17521
17522 * makefile.w32-in (w32font.o): Depend on w32font.h.
17523
175242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17525
17526 * charset.c (Fdefine_charset_internal): Record a supplementary
17527 charset at the tail of Vcharset_order_list.
17528
17529 * font.c (Ffont_shape_text): Fix the return value.
17530
17531 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17532
17533 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17534
175352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17536
17537 * ftfont.c (struct OpenTypeSpec): New struct.
17538 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17539 (ftfont_get_open_type_spec): New function.
17540 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17541
17542 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17543
175442008-02-01 Jason Rumney <jasonr@gnu.org>
17545
17546 * w32font.c (add_font_entity_to_list): Compare only the beginning
17547 of full name.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17552 Never return HANDLED_RECOMPUTE_PROPS.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * font.c (font_gstring_produce): Delete it.
17557
17558 * composite.h (COMPOSITION_METHOD):
17559 Handle COMPOSITION_WITH_GLYPH_STRING.
17560
175612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17562
17563 * xfont.c (Qx): Delete.
17564 (syms_of_xfont): Don't initialize Qx.
17565
17566 * composite.h (enum composition_method):
17567 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17568
175692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17570
17571 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17572 (choose_face_font): Accept new form of font-spec.
17573
17574 * frame.h (font_driver_list): Declare it unconditionally.
17575 (struct frame): Define members font_driver_list and font_data_list
17576 unconditionally.
17577
17578 * fontset.c: Include "font.h" unconditionally.
17579 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17580 (Fset_fontset_font): Accept a font-spec object.
17581
17582 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17583 PIXEL_SIZE part a wild card.
17584
17585 * dispextern.h (struct glyph_string): Define members clip and
17586 num_clips unconditionally.
17587 (struct face): Define members font_info and extra unconditionally.
17588
17589 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17590 ftfont_info only when HAVE_LIBOTF is defined.
17591
175922008-02-01 Andreas Schwab <schwab@suse.de>
17593
17594 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17595 and end.
17596
175972008-02-01 Jason Rumney <jasonr@gnu.org>
17598
17599 * w32font.c (w32font_driver): Add new fields.
17600
176012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17602
17603 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17604 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17605 (LIBES): Add @M17N_FLT_CFLAGS@.
17606
17607 * composite.c (compose_text): Don't treat the new style
17608 composition specially.
17609
17610 * emacs.c (main): Call syms_of_font unconditionally.
17611
17612 * font.h (FONT_ENTITY_NOT_LOADABLE)
17613 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17614 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17615 (struct font_driver): New member shape.
17616 (font_registry_charsets): Extern it.
17617 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17618 (font_otf_capability, font_drive_otf): Delete their externs.
17619
17620 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17621 (font_charset_alist, font_registry_charsets): Move from xfont.c
17622 and rename.
17623 (font_prop_validate_otf): New function.
17624 (font_property_table): Register it for QCotf.
17625 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17626 (font_drive_otf): Delete.
17627 (font_prepare_composition): New arg F. Adjust for the change of
17628 lispy gstring.
17629 (font_find_for_lface): New arg C.
17630 (font_load_for_face): Adjust for the change of font_find_for_lface.
17631 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17632 lispy gstring.
17633 (Ffont_shape_text): New function.
17634 (Fopen_font): If the font size is not given, use 12-pixel.
17635 (Ffont_at): New arg STRING.
17636 (syms_of_font): Initalize font_charset_alist.
17637 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17638 conditionally.
17639
17640 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17641 fonts of the same font-spec. Change the format of RFONT-DEF.
17642 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17643 Adjust for the change of RFONT-DEF.
17644 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17645
17646 * ftfont.h: New file.
17647
17648 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17649 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17650 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17651 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17652 font_otf_capability and font_drive_otf, set ftfont_shape.
17653 (ftfont_list): Adjust for the change of :otf property value.
17654 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17655 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17656 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17657 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17658 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17659 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17660
17661 * w32term.c (x_draw_composite_glyph_string_foreground):
17662 Adjust for the change of lispy gstring.
17663
17664 * xdisp.c (handle_composition_prop): Adjust for the change of
17665 lispy gstring. Call a function for auto-composition with the
17666 third arg it->window.
17667 (fill_composite_glyph_string): Adjust for the change of lispy string.
17668 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17669
17670 * xfaces.c (set_font_frame_param): Adjust for the change of
17671 font_find_for_lface.
17672
17673 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17674 (xfont_registry_charsets): Likewise. Change caller.
17675 (syms_of_xfont): Don't handle x_font_charset_alist.
17676
17677 * xftfont.c: Include "ftfont.h".
17678 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17679 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17680 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17681 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17682 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17683 Set xftfont_driver.shape to xftfont_shape.
17684
17685 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17686 the change of lispy gstring.
17687
176882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17689
17690 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17691
176922008-02-01 Jason Rumney <jasonr@gnu.org>
17693
17694 * w32font.c (w32font_draw): Fill background manually.
17695
176962008-02-01 Jason Rumney <jasonr@gnu.org>
17697
17698 * font.c (Qfontp): Remove unused symbol.
17699 (QCantialias): New symbol.
17700 (syms_of_font): Define it.
17701 (font_property_table): Set a validator for QCantialias.
17702
17703 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17704 Define if not already.
17705 (QCfamily): Share with xfaces.c.
17706 (Qstandard, Qsubpixel, Qnatural): New symbols.
17707 (syms_of_w32font): Define them. Don't define QCfamily here.
17708 (w32_antialias_type, lispy_antialias_type): New functions.
17709 (w32_enumfont_pattern_entity): New arg requested_font.
17710 Set antialias parameter if non-default was requested.
17711 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17712
177132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17714
17715 * lread.c (read1): Undo the previous change.
17716
177172008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17718
17719 * frame.c (Fdelete_frame): Call font_update_drivers only when
17720 USE_FONT_BACKEND is defined.
17721
177222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17723
17724 * font.h (struct font_bitmap): New member bits_per_pixel.
17725 (struct font_driver): New members start_for_frame and end_for_frame.
17726 (struct font_data_list): New struct.
17727 (font_put_frame_data, font_get_frame_data): Extern them.
17728
17729 * frame.h (struct frame): New member font_data_list.
17730
17731 * font.c (font_update_drivers): Call driver->start_for_frame and
17732 driver->end_for_frame at proper timings.
17733 (font_put_frame_data, font_get_frame_data): New functions.
17734 (Ffont_spec): Add usage in the docstring.
17735
17736 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17737 (Fdelete_frame): Call font_update_drivers.
17738
17739 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17740 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17741 (xftfont_get_xft_draw): New function.
17742 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17743 (xftfont_end_for_frame): New function.
17744 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17745
17746 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17747 Change argument. Cache GCs in the per-frame data.
17748 (struct ftxfont_frame_data): New struct.
17749 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17750 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17751 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17752 (ftxfont_end_for_frame): New function.
17753 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17754
17755 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17756
177572008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * xselect.c (Vselection_coding_system)
17760 (Vnext_selection_coding_system): Delete them.
17761 (syms_of_xselect): Don't declare selection-coding-system and
17762 next-selection-coding-system. They are declared in select.el.
17763
177642008-02-01 Jason Rumney <jasonr@gnu.org>
17765
17766 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17767
17768 * w32fns.c: Include imm.h.
17769 (get_composition_string_fn, get_ime_context_fn): New optional
17770 system functions.
17771 (globals_of_w32fns): Load them from imm32.dll.
17772 (ignore_ime_char): New flag.
17773 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17774 WM_IME_ENDCOMPOSITION messages.
17775
17776 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17777 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17778
177792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17780
17781 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17782 (READCHAR_REPORT_MULTIBYTE): New macro.
17783 (readchar): New 2nd arg MULTIBYTE.
17784 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17785 Make symbol's name multibyte according to the multibyteness of the
17786 source.
17787
177882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17789
17790 * xfaces.c (face_for_overlay_string): Call lookup_face with
17791 correct arguments (fix of synching with the trunk).
17792
177932008-02-01 Kenichi Handa <handa@m17n.org>
17794
17795 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17796 (font_prop_validate_non_neg, font_prop_validate_spacing):
17797 Delete argument prop_index.
17798 (font_property_table): Change arguments to validater. Change Callers.
17799 (font_lispy_object): Delete.
17800 (font_at): Use font_find_object instead fo font_lispy_object.
17801
178022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17803
17804 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17805 and file names.
17806
178072008-02-01 Jason Rumney <jasonr@gnu.org>
17808
17809 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17810 (font_matches_spec): Remove debug output.
17811 (add_font_entity_to_list): Avoid using substituted fonts.
17812
178132008-02-01 Jason Rumney <jasonr@gnu.org>
17814
17815 * doc.c (Fsnarf_documentation):
17816 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17817
178182008-02-01 Miles Bader <miles@gnu.org>
17819
17820 * dispextern.h (struct glyph_row): Only define "clip" field if
17821 HAVE_WINDOW_SYSTEM is defined.
17822
178232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17824
17825 Fix up multi-tty merge.
17826
17827 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17828 and indentation.
17829
17830 * xfaces.c (free_realized_face, clear_face_gcs):
17831 Include font_done_for_face in the input_blocked section, just in case.
17832
17833 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17834 (get_char_face_and_encoding): Undo last change and remove the *other*
17835 duplicate definition (i.e. keep the one that's better scoped and that
17836 includes code for the font-backend).
17837
17838 * terminal.c (create_terminal): Default keyboard_coding to
17839 `no-conversion' and terminal_coding to `undecided'.
17840
17841 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17842
17843 * fontset.c (free_realized_fontsets): Check that the table entry does
17844 contain a fontset before trying to compare it to `base'.
17845
17846 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17847 syms_of_charset, and syms_of_coding earlier because init_window_once
17848 now needs Vcoding_system_hash_table to be setup.
17849
17850 * coding.h (default_buffer_file_coding): Remove.
17851
17852 * coding.c (default_buffer_file_coding): Remove.
17853 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17854 than ->symbol, and use the terminal-local coding system.
17855 (syms_of_coding): Don't setup the coding-systems that are not
17856 terminal-local.
17857 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17858
17859 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17860 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17861
17862 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17863 in chartab.c and were re-added here by mistake.
17864 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17865
17866 * doc.c (Fsnarf_documentation):
17867 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17868 src to etc.
17869
17870 * ChangeLog.10: Add mistakenly removed entry.
17871
178722008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17873
17874 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17875
178762008-02-01 Miles Bader <miles@gnu.org>
17877
17878 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17879 Add extra args to FACE_FOR_CHAR.
17880
178812008-02-01 Kenichi Handa <handa@m17n.org>
17882
17883 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17884 in sequence.
17885
17886 * chartab.c (map_sub_char_table, map_char_table): If the range
17887 contains just one character, call the function with that character
17888 even if the depth is not 3.
17889
178902008-02-01 Jason Rumney <jasonr@gnu.org>
17891
17892 * w32font.c (w32font_text_extents): Calculate metrics for the
17893 whole string.
17894
178952008-02-01 Jason Rumney <jasonr@gnu.org>
17896
17897 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17898
178992008-02-01 Jason Rumney <jasonr@gnu.org>
17900
17901 * w32term.c (x_set_glyph_string_clipping): Use
17902 get_glyph_string_clip_rects.
17903 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17904 Adjust for the change of struct glyph_string.
17905
17906 * w32font.c (w32font_draw): Do clipping here.
17907
179082008-02-01 Kenichi Handa <handa@m17n.org>
17909
17910 * xftfont.c (xftfont_draw): Adjust for the change of struct
17911 glyph_string.
17912
17913 * xterm.c (x_set_glyph_string_clipping): Use
17914 get_glyph_string_clip_rects.
17915 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17916 Adjust for the change of struct glyph_string.
17917
17918 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17919 the resulting clip(s}.
17920 (expose_overlaps): Add arg r. Change callers. Set it to
17921 row->clip temporarily.
17922 (expose_window): Redraw rows overlapping the exposed area.
17923
17924 * dispextern.h (struct glyph_row): New member clip.
17925 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17926 clip_height, new member clip, and num_clips.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * data.c (Fchar_or_string_p): Fix docstring.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17935 create a temporary XftDraw object.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * font.c (Ffontp): Fix docstring.
17940
17941 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17942 strong evidence of ISO-2022.
17943
179442008-02-01 Kenichi Handa <handa@m17n.org>
17945
17946 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17947 SYNTAX_ENTRY_FOLLOW_PARENT.
17948
179492008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17952 its type.
17953 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17954 Update to the new type of weak_hash_tables and next_weak.
17955
17956 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17957 a plain C pointer to Lisp_Hash_Table.
17958
17959 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17960 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17961 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17962 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17963 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17964 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17965 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17966 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17967 (GC_EQ): Remove since they've been identical to their non-GC_
17968 alter-egos ever since the markbit was eradicated.
17969
17970 * alloc.c:
17971 * buffer.c:
17972 * buffer.h:
17973 * data.c:
17974 * fileio.c:
17975 * filelock.c:
17976 * fns.c:
17977 * frame.h:
17978 * lisp.h:
17979 * macterm.c:
17980 * print.c:
17981 * process.c:
17982 * w32fns.c:
17983 * w32menu.c:
17984 * w32term.c:
17985 * xfns.c:
17986 * xmenu.c:
17987 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * chartab.c (map_sub_char_table): Make it work for the top-level
17992 char-table. Fix handling of parent char-table.
17993 (map_char_table): Adjust for the above change.
17994
179952008-02-01 Jason Rumney <jasonr@gnu.org>
17996
17997 * w32font.c (Qgdi): Rename from Qw32.
17998
179992008-02-01 Jason Rumney <jasonr@gnu.org>
18000
18001 * w32bdf.c (get_quoted_string): Make function static.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18006 bigger ascent and descent than those of the font, use them as
18007 font's ascent and descent.
18008
180092008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * Makefile.in (${lispsource}international/charprop.el): Move this
18012 target within "#ifdef HAVE_UNIDATA" and "#endif".
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18017 (shortlisp): Add ../lisp/language/tai-viet.el.
18018
180192008-02-01 Ulrich Mueller <ulm@gentoo.org>
18020
18021 * Makefile.in (${lispsource}international/charprop.el): Depend on
18022 temacs${EXEEXT}.
18023
180242008-02-01 Jason Rumney <jasonr@gnu.org>
18025
18026 * w32font.c (w32font_close): Delete the GDI font object.
18027
18028 * w32menu.c: Include character.h.
18029
18030 * w32proc.c: Likewise.
18031
18032 * w32select.c: Likewise.
18033
18034 * makefile.w32-in (w32proc.o): Depend on character.h.
18035
180362008-02-01 Jason Rumney <jasonr@gnu.org>
18037
18038 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18039
18040 * w32menu.c (syms_of_w32menu): Likewise.
18041
18042 * w32proc.c (syms_of_ntproc): Likewise.
18043
18044 * w32select.c (syms_of_w32select): Likewise.
18045
18046 * w32term.c (syms_of_w32term): Likewise.
18047
180482008-02-01 Jason Rumney <jasonr@gnu.org>
18049
18050 * w32font.c (w32font_draw): Delete brush after using it.
18051
180522008-02-01 Jason Rumney <jasonr@gnu.org>
18053
18054 * w32font.c (w32font_open): Don't set font_idx.
18055 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18056 to font settings.
18057 (w32font_draw): Fill background explicitly.
18058
180592008-02-01 Jason Rumney <jasonr@gnu.org>
18060
18061 * w32term.c (w32_initialize): Don't call w32font_initialize.
18062
18063 * w32font.c (w32font_info): Remove subranges.
18064 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18065 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18066 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18067 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18068 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18069 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18070 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18071 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18072 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18073 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18074 New symbols.
18075 (font_callback_data): New struct.
18076 (w32font_list, w32font_match): Use it.
18077 (w32font_open): Don't populate subranges.
18078 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18079 (w32font_encode_char): Always return unicode code-point as-is.
18080 (w32font_text_extents): Supply a transformation matrix to
18081 GetGlyphOutline. Never look up by glyph index. Avoid looping
18082 twice. Use unicode version of GetTexExtentPoint32 instead of
18083 glyph index version.
18084 (set_fonts_frame): Remove.
18085 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18086 set frame parameter. Use backward compatible fake foundries.
18087 Save generic family in extra slot under QCfamily. Make width slot
18088 constant. Save QCspacing value. Save list of scripts instead of
18089 binary subranges.
18090 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18091 (add_font_entity_to_list): Use font_callback_data struct. Filter
18092 unwanted fonts.
18093 (add_one_font_entity_to_list): Use font_callback_data struct.
18094 (w32_registry): Default to iso10646_1.
18095 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18096 string font registries. Don't fill in font name if it is a generic
18097 family name, fill family instead. Use spacing, family and script
18098 extra info to fill pitch, family and charset fields.
18099 (list_all_matching_fonts): Use font_callback_data struct.
18100 (unicode_range_for_char): Remove.
18101 (font_supported_scripts): New function.
18102 (w32font_initialize): Remove.
18103 (syms_of_w32font): Update which symbols are defined.
18104
181052008-02-01 Jason Rumney <jasonr@gnu.org>
18106
18107 * font.c (font_pixel_size): Reverse assq_no_quit args.
18108
18109 * w32term.h (FONT_WIDTH): Report max width, not average.
18110 (FONT_MAX_WIDTH): Remove.
18111 (FONT_AVG_WIDTH): New macro.
18112
18113 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18114 redefinition of FONT_WIDTH.
18115
18116 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18117 (w32_cache_char_metrics): Use FONT_WIDTH.
18118
18119 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18120
181212008-02-01 Jason Rumney <jasonr@gnu.org>
18122
18123 * w32font.c (w32font_open): Make lfHeight negative.
18124
18125 * w32fns.c (x_default_font_parameter): Use new style font name.
18126 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18127
181282008-02-01 Jason Rumney <jasonr@gnu.org>
18129
18130 * w32font.c (QCsubranges): New symbol.
18131 (w32font_open, w32font_has_char): Get subranges from subproperty
18132 of extra.
18133 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18134 (syms_of_w32font): Define :subranges symbol.
18135
18136 * font.c (font_put_extra): Expose externally.
18137
18138 * font.h (font_put_extra): Move declaration from font.c.
18139
18140 * font.c (Ffont_get): Use font driver to determine otf capability.
18141 (adjust_anchor): Check if driver defines anchor_point before using.
18142
18143 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18144 (w32font_draw): Use options.
18145 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18146 Fix detection of truetype fonts.
18147 (registry_to_w32_charset): Handle charsets other than iso8859-1
18148 expressed as lisp symbols.
18149 (w32_registry): Express charset as lisp symbol.
18150 (fill_in_logfont): Reverse pixel and point height logic.
18151 Don't set width here. Set quality to default.
18152
18153 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18154 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18155
18156 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18157 Remove redundant loop and allocation.
18158
18159 * makefile.w32-in (font.o, w32font.o): New objects.
18160 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18161 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18162
18163 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18164 STORE_XCHARB a valid l-value.
18165
18166 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18167 calculations for non-Truetype fonts.
18168 (x_draw_glyph_string): Sync with xterm.c.
18169 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18170 Remove redundant code.
18171 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18172
18173 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18174 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18175
18176 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18177 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18178
18179 * w32font.c: New file for w32 font backend.
18180
181812008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 * term.c: Don't include "buffer.h" twice.
18184
181852008-02-01 Kenichi Handa <handa@m17n.org>
18186
18187 * character.c (Funibyte_string): New function.
18188 (syms_of_character): Defsubr it.
18189
181902008-02-01 Jason Rumney <jasonr@gnu.org>
18191
18192 * w32term.c [USE_FONT_BACKEND]:
18193 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18194 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18195 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18196 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18197 (x_free_frame_resources): Sync with xterm.c.
18198
181992008-02-01 Andreas Schwab <schwab@suse.de>
18200
18201 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18202 char-table size.
18203
182042008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18211 font_otf_gpos, add font_drive_otf.
18212
18213 * fontset.c (fontset_find_font): Pay attention to font size
18214 specified for a font.
18215 (reorder_font_vector): Check contents of font_def.
18216
18217 * font.c (struct otf_list): Delete it.
18218 (otf_list): Make it a lisp variable.
18219 (otf_open): Use lispy otf_list.
18220 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18221 (check_otf_features): New function.
18222 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18223 New functions.
18224 (font_drive_otf): New function merging font_otf_gsub and
18225 font_otf_gpos.
18226 (font_open_for_lface): New arg spec. Change argument order.
18227 (font_load_for_face): Adjust for the change of font_open_for_lface.
18228 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18229 Ffont_otf_gpos.
18230 (syms_of_font): Staticpro otf_list. Delete defsubr of
18231 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18232
18233 * xfaces.c (set_font_frame_param): Adjust for the change of
18234 font_open_for_lface.
18235
18236 * font.h (font_open_for_lface): Adjust prototype.
18237 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18238 member otf_drive.
18239 (font_otf_gsub, font_otf_gpos): Delete externs.
18240 (font_drive_otf): Extern it.
18241
182422008-02-01 Kenichi Handa <handa@m17n.org>
18243
18244 * font.c (font_at): If the window W is not on a window system,
18245 return Qnil.
18246
18247 * coding.c (produce_chars, encode_coding): Don't call
18248 insert_from_gap if no characters to produce.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18253 Fclear_face_cache.
18254
18255 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18256
182572008-02-01 Miles Bader <miles@gnu.org>
18258
18259 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18260 Parse "--disable-font-backend" option.
18261 (standard_args): Add "--disable-font-backend" option.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * fontset.c (fontset_find_font): New function.
18266 (fontset_font): Use fontset_find_font.
18267 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18268 Register the specified font for all Latin characters.
18269 (new_fontset_from_font): Register the specified font for all Latin
18270 characters.
18271 (dump_fontset): For a realized fontset, include the base fontset
18272 name in the returned vector.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * character.h (CHAR_STRING): Cast C to unsigned on calling
18277 char_string.
18278
18279 * character.c (char_string): Type of arg C changed to unsigned.
18280 Signal an error if C is an invalid character code.
18281
18282 * editfns.c (general_insert_function, Fchar_to_string):
18283 Use CHARACTERP, not INTEGERP.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18288 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18289
18290 * regex.c (analyse_first): Fix for multibyte characters in "case
18291 charset:" and "case categoryspec:".
18292
182932008-02-01 Andreas Schwab <schwab@suse.de>
18294
18295 * Makefile.in (LIBES): Move standard libraries to the end.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18300 nonzero, don't shrink the buffer nextb.
18301
18302 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18303
18304 * coding.c (coding_alloc_by_making_gap): New arg offset.
18305 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18306 offset.
18307 (decode_coding_iso_2022): Update coding->safe_charsets.
18308 (decode_coding_gap): Temporarily set
18309 current_buffer->text->inhibit_shrinking to 1.
18310
183112008-02-01 Kenichi Handa <handa@m17n.org>
18312
18313 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18314 indexing into elements of s->cmp and s->char2b.
18315
183162008-02-01 Juanma Barranquero <lekktu@gmail.com>
18317
18318 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18319
183202008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18323 target_multibyte instead of multibyte.
18324 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18325 (bcmp_translate): Change the argument name from multibyte to
18326 target_multibyte.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 These changes are to compile a regexp into a pattern that can be
18331 used both for multibyte and unibyte targets.
18332
18333 * Makefile.in (search.o): Depend on charset.h.
18334
18335 * character.c (multibyte_char_to_unibyte_safe): New function.
18336
18337 * search.c: Include "charset.h".
18338 (compile_pattern_1): Delete argument multibyte. Don't set
18339 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18340 (compile_pattern): Don't compare cp->buf.target_multibyte.
18341 Compare cp->buf.charset_unibyte.
18342 (compile_pattern): Set cp->buf.target_multibyte.
18343
18344 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18345
18346 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18347
18348 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18349 multibyte. Change callers.
18350 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18351 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18352 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18353 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18354 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18355 (regex_compile): Make the compiled pattern usable both for
18356 multibyte and unibyte targets.
18357 (analyse_first): Make the fastmap usable both for multibyte and
18358 unibyte targets.
18359 (TRANSLATE_VIA_MULTIBYTE): Delete.
18360 (re_match_2_internal): Pay attention to the case that the
18361 multibyteness of bufp and target may be different.
18362
183632008-02-01 Kenichi Handa <handa@m17n.org>
18364
18365 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18366 empty box occupy at least one column width.
18367
183682008-02-01 Miles Bader <miles@gnu.org>
18369
18370 * Makefile.in: Remove redundant HAVE_XFT clause.
18371
183722008-02-01 Kenichi Handa <handa@m17n.org>
18373
18374 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18379 being nil.
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18384
183852008-02-01 Kenichi Handa <handa@m17n.org>
18386
18387 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * search.c (simple_search): Fix previous change.
18392
183932008-02-01 Kenichi Handa <handa@m17n.org>
18394
18395 * xftfont.c (ftfont_font_format): Extern declaration.
18396
18397 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18398
18399 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18400 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18401
18402 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18403 (ftfont_font_format): Fix previous change.
18404
18405 * font.h (Ffont_xlfd_name): EXFUN it.
18406
18407 * font.c (font_parse_xlfd): Fix the array size of `f'.
18408 (register_font_driver): Use EQ to compare driver->type.
18409
18410 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18411 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18412 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18417 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18418
184192008-02-01 Kenichi Handa <handa@m17n.org>
18420
18421 * xfont.c (xfont_open): Set font->format.
18422
18423 * xftfont.c (xftfont_open): Set font->format.
18424
18425 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18426 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18427 (ftfont_open): Set font->format.
18428 (ftfont_font_format): New function.
18429
18430 * font.h (struct font): New member format.
18431
18432 * font.c (Qopentype): New variable.
18433 (syms_of_font): Defsym it.
18434 (Fquery_font): Change the format of the last element of the return
18435 value.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18440 last resort.
18441
184422008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * coding.c (detect_coding_charset): Fix detection of multi-byte
18445 charset.
18446
184472008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18448
18449 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * xdisp.c (get_next_display_element): Set it->face_id for the
18454 first component of a composition.
18455 (x_produce_glyphs): Check if the font is changed or not for composition.
18456
184572008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * fontset.c (Qlatin): New variable.
18460 (syms_of_fontset): Define it as a lisp symbol.
18461 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * font.c (font_unparse_fcname): Pay attention to the case that
18466 some of font property is a null string.
18467
184682008-02-01 Kenichi Handa <handa@m17n.org>
18469
18470 * term.c: Include "composite.h".
18471 (encode_terminal_code): Output all components of composition.
18472 Check the size of encode_terminal_src.
18473 (produce_glyphs): For composition, call produce_composite_glyph.
18474 (append_composite_glyph, produce_composite_glyph): New functions.
18475
18476 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18477 is not found, get font_info from the current ascii face.
18478
184792008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18482 buffer-file-name to Qnil before calling insert_from_buffer.
18483
18484 * font.c (font_unparse_fcname): Pay attention to the case that
18485 foundry is a null string.
18486
184872008-02-01 Kenichi Handa <handa@m17n.org>
18488
18489 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18490
18491 * font.c (Qunicode_sip): New variable.
18492 (syms_of_font): Declare it as a Lisp symbol.
18493
18494 * font.h (Qunicode_sip): Extern it.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * composite.c (get_composition_id): Pay attention to TAB component.
18499
18500 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18501 TAB. Adjust for the change of s->char2b which always points to
18502 the first element of allocated memory.
18503
18504 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18505
18506 * xdisp.c (handle_composition_prop): Set it->c to the first
18507 non-TAB component.
18508 (fill_composite_glyph_string): Change argument.
18509 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18510 (x_produce_glyphs): Fix handling of left/right padding.
18511
185122008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * coding.c (detect_coding_system): Fix for handling off
18515 inhibit_iso_escape_detection. Fix for the case that no coding
18516 system is defined for a specific coding category.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * font.c (font_matching_entity): Delete unused local var.
18521
18522 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18523 opening a font.
18524
18525 * fileio.c (Finsert_file_contents): On recovering a file, assume
18526 Unix-like eol.
18527 (choose_write_coding_system): On auto-saving a file, force
18528 Unix-like eol.
18529
18530 * coding.c (setup_coding_system): Fix setting of
18531 coding->common_flags based on eol_type.
18532 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18533 inherit from it.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * alloc.c (NSTATICS): Increas to 0x600.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18542 (ftfont_list): Don't check :name property.
18543 (ftfont_match): New function.
18544 (ftfont_pattern_entity): If the pattern doesn't contain
18545 FC_SPACING, don't assume FC_MONO.
18546
18547 * font.h (struct font_driver): New member `match'.
18548 (font_update_drivers): Adjust prototype.
18549
18550 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18551 property of FONT.
18552 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18553 them unconditionally.
18554 (font_matching_entity): New function.
18555 (font_open_by_name): Try font_matching_entity if exact match is
18556 not found.
18557 (font_update_drivers): Delete the arg FONT. Return a list of
18558 actually used backends. Don't free faces, font caches here.
18559 Don't store data in frame parameters. Don't call x_set_font.
18560 (Ffont_spec): Store :name property as is.
18561 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18562 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18563 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18564 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18565 Call font->driver->otf_gsub instead of font_otf_gsub.
18566
18567 * frame.c (x_set_font_backend): Do more works that were done in
18568 font_update_drivers before.
18569
18570 * xfont.c (xfont_match): New function.
18571 (xfont_driver): Set xfont_driver.match to xfont_match.
18572 (xfont_draw): Set font in GC if necessary.
18573
18574 * ftxfont.c (ftxfont_match): New function.
18575 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18576
18577 * xftfont.c (xftfont_match): New function.
18578 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * font.h (struct font): New member scalable.
18583 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18584 (font_otf_gsub): Adjust prototype.
18585
18586 * font.c (font_otf_capability): Fix handling of the default langsys.
18587 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18588 Check the contents of SPEC.
18589 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18590 (check_gstring): New function.
18591 (REPLACEMENT_CHARACTER): New macro.
18592 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18593 glyph codes of GSTRING.
18594 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18595 (font_prepare_composition): Set cmp->glyph_len.
18596 (font_open_entity): Set font->scalable.
18597 (Ffont_get): Handle :otf property.
18598 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18599 functions.
18600 (Fquery_font): Use font->font.full_name.
18601 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18602 Sfont_otf_alternates.
18603
18604 * ftfont.c (ftfont_open): Set font->font.full_name and
18605 font->font.name properly. Fix calculation of font->font.height
18606 and font->min_width.
18607
18608 * ftxfont.c (ftxfont_create_gcs): New function.
18609 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18610 (ftxfont_draw_backgrond): Fix filling region.
18611 (ftxfont_default_fid): New function.
18612 (ftxfont_open): Set xfont->fid to the return value of
18613 ftxfont_default_fid.
18614 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18615 (ftxfont_done_face): Free only GCs that are created by
18616 ftxfont_create_gcs.
18617 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18618
18619 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18620 Clip to src->width, etc (not src->clip_XXX).
18621
18622 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18623 FontBackend frame parameter.
18624
186252008-02-01 Kenichi Handa <handa@m17n.org>
18626
18627 * font.h (struct font_driver_list): New member `on'.
18628 (Fclear_font_cache): EXFUN it.
18629 (font_update_drivers): Extern it.
18630
18631 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18632 (font_list_entities): Check driver_list->on.
18633 (register_font_driver): Initalize `on' member to 0.
18634 (font_update_drivers): New function.
18635 (Fclear_font_cache): Check driver_list->on.
18636
18637 * frame.h (Qfont_backend): Extern it.
18638 (x_set_font_backend): Extern it.
18639
18640 * frame.c (Qfont_backend): New variable.
18641 (frame_parms): New element for font-backend.
18642 (x_set_font_backend): New function.
18643
18644 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18645 FontBackend frame parameter.
18646 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18647 x_set_font_backend.
18648
18649 * xfont.c (xfont_list): Don't try listing by :name property if the
18650 name is not for XLFD.
18651
186522008-02-01 Kenichi Handa <handa@m17n.org>
18653
18654 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18655 (LGLYPH_SET_TO): New macros.
18656 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18657 element of G is vector or not.
18658 (font_at): Extern it.
18659
18660 * font.c: Include window.h.
18661 (font_lispy_object): New function.
18662 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18663 end of valid glyph.
18664 (font_close_object): Fix getting (struct font *).
18665 (font_at): New function.
18666 (Ffont_get): If FONT is a font-object, get entity from it.
18667 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18668 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18669 range check.
18670 (Ffont_at): New function.
18671 (syms_of_font): Defsubr Sfont_at.
18672
18673 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18674 before the entry for Qcomposition.
18675 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18676 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18677 the font in gstring.
18678 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18679 LGLYPH_FORM (g) to detect the end of valid glyph.
18680 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18681 we are composing with gstring.
18682
18683 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18684 Check if adjustment is vector or not.
18685
18686 * Makefile.in (font.o): Make it depends on window.h.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18691 adjustment is vector or not.
18692
186932008-02-01 Miles Bader <miles@gnu.org>
18694
18695 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18696
186972008-02-01 Kenichi Handa <handa@m17n.org>
18698
18699 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18700 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18701 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18702
18703 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18704 (DEVICE_DELTA): Fix typo.
18705 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18706 LGLYPH format.
18707
18708 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18709 the change of LGLYPH format.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * ftfont.c (ftfont_list): Fix typo.
18714 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18715
187162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18717
18718 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18719
18720 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18721 xftface_info is non-NULL.
18722
187232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18724
18725 * ftfont.c (ftfont_list): Move misplaced #endif.
18726
187272008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * ftfont.c (ftfont_list): Pay attention to the case that
18730 FC_CAPABILITY is not defined.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * xftfont.c (xftfont_open): Set charset related members to -1.
18735
18736 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18737 QCname.
18738 (ftfont_open): Set charset related members to -1.
18739
18740 * fontset.c (Votf_script_alist): New variable.
18741 (syms_of_fontset): Initialize it.
18742 (fontset_font): Delete unused variable.
18743
18744 * fontset.h (Votf_script_alist): Extern it.
18745
18746 * font.c (font_find_for_lface): Optimize code.
18747
18748 * font.h (font_close_object, font_merge_old_spec): Extern them.
18749
187502008-02-01 Kenichi Handa <handa@m17n.org>
18751
18752 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18753 (syms_of_font): Initialize them.
18754 (font_pixel_size): Allow float value in dpi.
18755 (font_prop_validate_type): Delete.
18756 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18757 Change caller.
18758 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18759 (font_prop_validate_extra): Delete.
18760 (font_prop_validate_spacing): New function.
18761 (font_property_table): Add elements for all known properties.
18762 (get_font_prop_index): Rename from check_font_prop_name. New
18763 argument FROM. Change caller.
18764 (font_prop_validate): Validate all known properties.
18765 (font_put_extra): Delete argument force. Change caller.
18766 (font_expand_wildcards): Make it static. Fix the way of shrinking
18767 the possible range.
18768 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18769 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18770 Change caller.
18771 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18772 (font_parse_fcname): Delete argument merge. Fix parsing of point
18773 size. Don't validate properties values here. Change caller.
18774 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18775 (font_open_by_name): Delete unused variable.
18776 (Ffont_spec): Likewise. Validate property values.
18777 (Ffont_match_p): New function.
18778
18779 * font.h (QCscalable): Extern it.
18780 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18781
18782 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18783
18784 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18785 (xfont_list_pattern): New function.
18786 (xfont_list): Use xfont_list_pattern.
18787
187882008-02-01 Kenichi Handa <handa@m17n.org>
18789
18790 * font.h (Flist_fonts): EXFUN it.
18791
187922008-02-01 Jason Rumney <jasonr@gnu.org>
18793
18794 * w32term.c (w32_initialize): Add back smoothing_type and
18795 smoothing_enabled definitions.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18800 s->face->font on determining underline position.
18801
188022008-02-01 Kenichi Handa <handa@m17n.org>
18803
18804 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18805 (font_has_char): Accept font-object too.
18806 (font_find_for_lface): Try at first with a size specified in face.
18807
188082008-02-01 Kenichi Handa <handa@m17n.org>
18809
18810 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18811 font_open_by_name.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * font.h (QCspacing, QCdpi): Extern them.
18816 (enum font_spacing): New enum.
18817 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18818
18819 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18820 (QCspacing, QCdpi): New variables.
18821 (syms_of_font): Initialize them.
18822 (font_pixel_size): New function.
18823 (font_put_extra): New function.
18824 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18825 in FONT_EXTRA.
18826 (font_parse_fcname): Handle enumerated values (e.g. bold).
18827 Fix handling font size. Add QCname property that contains only
18828 unknown properties.
18829 (font_score): Change argument. Change caller. Pay attention to
18830 FONT_PIXEL_SIZE_QUANTUM.
18831 (font_sort_entites, font_list_entities, font_find_for_lface)
18832 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18833 (Ffont_spec): Add QCname property that contains only unknown properties.
18834
18835 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18836 include weight in listing pattern, instead check weight of each
18837 listed font. Don't include scalable in pattern. Pay attention to
18838 FONT_PIXEL_SIZE_QUANTUM.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * font.c (font_parse_fcname): Fix parsing of point-size.
18843 (font_unparse_fcname): Produce symbolic names for style properties.
18844 (font_list_entities): Handle float size correctly.
18845 (font_open_by_name): Prefer `normal' property values if the name
18846 doesn't specify them.
18847
18848 * fontset.c (Finternal_char_font): Use font_get_name, not
18849 Ffont_xlfd_name.
18850
18851 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18852 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18853 pattern. Don't force scalable.
18854
18855 * xftfont.c (xftfont_open): For generating a name, start from
18856 96-byte buffer.
18857
188582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18859
18860 * frame.h (x_new_fontset2): Fix prototype.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * font.h (struct font_driver): Delete member parse_name.
18865 (font_match_p, font_get_spec, font_parse_fcname)
18866 (font_unparse_fcname): Extern them.
18867 (font_get_name): Adjust prototype.
18868
18869 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18870 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18871 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18872 unnecessary checks for weight, slant, and swidth.
18873 (font_parse_fcname): New function.
18874 (font_unparse_fcname): New function.
18875 (font_parse_name): New function.
18876 (font_match_p): New function.
18877 (font_get_name): Change return value to Lisp string.
18878 (font_get_spec): New function.
18879 (Qunspecified, Qignore_defface): Don't extern them.
18880 (font_find_for_lface): Assume that LFACE is fully specified.
18881 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18882 object, use it for FACE.
18883 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18884 driver->parse_name.
18885 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18886
18887 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18888 prototype.
18889
18890 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18891 argument F. Don't call Fnew_fontset. Instead, directly call
18892 make_fontset.
18893
18894 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18895
18896 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18897 of x_new_fontset2.
18898
18899 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18900 (Qsans__serif): New variables.
18901 (ftfont_generic_family_list): New variable.
18902 (syms_of_ftfont): Initialize the above variables.
18903 (ftfont_pattern_entity): Delete argument NAME.
18904 (ftfont_list_generic_family): New function.
18905 (ftfont_parse_name): Delete this function.
18906 (ftfont_list): Try generic family only when FcFontList found no font.
18907 (ftfont_list_family): Fix args to FcObjectSetBuild.
18908
18909 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18910 object in attrs[LFACE_FONT_INDEX].
18911 (set_lface_from_font_name): Cancel all changes for font-backend.
18912 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18913 function.
18914 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18915 font object in QCfont attribute.
18916 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18917 (realize_default_face) [USE_FONT_BACKEND]: Call
18918 set_lface_from_font_and_fontset.
18919
18920 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18921 "fixed", and signal error here if no suitable font was found.
18922
18923 * xfont.c (xfont_parse_name): Delete this function.
18924
18925 * xftfont.c (xftfont_open): Change coding style of error
18926 handling. Generate fontconfig's fontname pattern.
18927
18928 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18929 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18930
18931 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18932 Both args FONTSET and FONT_OBJECT must be existing ones.
18933
189342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18935
18936 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18937
189382008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18941
18942 * font.h (struct font): Fix typo.
18943
18944 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18945 XLFD_XXX_INDEX.
18946 (enum xlfd_field_mask): New enum.
18947 (intern_font_field): Changed argument. Change caller. If digits
18948 are followed by non-digits, return a symbol.
18949 (font_expand_wildcards): New function.
18950 (font_parse_xlfd): Fix wildcard handling.
18951 (Ffont_spec): If :name is specified, reflect the info in the other
18952 properties.
18953
18954 * ftfont.c (ftfont_pattern_entity): Fix typo.
18955 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18956 locale.
18957
189582008-02-01 Kenichi Handa <handa@m17n.org>
18959
18960 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18961
18962 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18963 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18964 registry doesn't specify encoding part.
18965 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18966 (font_open_by_name): At first try parsing the name.
18967 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18968 as Lisp symbols.
18969
18970 * fontset.c (reorder_font_vector): Pay attention to the case that
18971 the 3rd element of font_def is nil.
18972 (fontset_font): For the default fontset, append one more fontset
18973 elements for a script-based font specification. Don't add script
18974 attribute on finding a font.
18975 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18976 font name.
18977 (fontset_ascii_font): If a font can't be opened, return nil.
18978
18979 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18980 (ftfont_pattern_entity): New function.
18981 (ftfont_get_cache): Assume that freetype_font_cache is already
18982 initialized.
18983 (ftfont_list): Handle the case that a file is specified in font
18984 name. Use ftfont_pattern_entity to generate entities.
18985 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18986 (syms_of_ftfont): Initialize freetype_font_cache.
18987
18988 * xftfont.c (xftfont_open): Make the font name fontconfig's
18989 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18990 (xftfont_close): Free font->font.name if not NULL.
18991
18992 * xfont.c (xfont_list): If script is specified for a font, return
18993 null_vector.
18994 (xfont_list_family): Declare argument type.
18995
18996 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18997 name, set LFACE_FONT (lface) to nil.
18998
18999 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19000 return Qnil.
19001
190022008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19005 (standard_args): Add "-enable-font-backend".
19006
190072008-02-01 Kenichi Handa <handa@m17n.org>
19008
19009 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19010 (struct xftdraw_list, xftdraw_list): Delete them.
19011 (register_xftdraw, check_xftdraw): Delete them.
19012 (xftfont_prepare_face): Don't call register_xftdraw.
19013 (xftfont_done_face): Don't call check_xftdraw.
19014 (xftfont_draw): Get background color only when with_background is
19015 nonzero.
19016
19017 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19018
190192008-02-01 Kenichi Handa <handa@m17n.org>
19020
19021 These changes are for the new font handling codes.
19022
19023 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19024 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19025 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19026 (FONTSRC, FONTOBJ): New variables.
19027 (obj): Add $(FONTOBJ).
19028 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19029 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19030 @LIBOTF_LIBS@.
19031 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19032 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19033
19034 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19035
19036 * character.h (Vscript_representative_chars): Extern it.
19037
19038 * character.c (Vscript_representative_chars): New variable.
19039 (syms_of_character): Declare it as a Lisp variable.
19040
19041 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19042 enable_font_backend is nonzero, accept the composition method
19043 COMPOSITION_WITH_GLYPH_STRING.
19044
19045 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19046 enumeration COMPOSITION_WITH_GLYPH_STRING.
19047
19048 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19049 members clip_x, clip_y, clip_width, and clip_height.
19050 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19051
19052 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19053 --enable-font-backend. Call syms_of_font.
19054
19055 * fns.c (assoc_no_quit): New function.
19056
19057 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19058 (face_for_font, new_fontset_from_font)
19059 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19060
19061 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19062 (fontset_font, fontset_ascii, face_for_char)
19063 (make_fontset_for_ascii_face, Ffont_info)
19064 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19065 is nonzero, use font-backend mechanism.
19066 (find_font_encoding): Make it non-static.
19067 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19068 New functions.
19069
19070 * frame.h (struct frame): New members resx and resy.
19071 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19072 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19073
19074 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19075 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19076
19077 * lisp.h (assoc_no_quit): Extern it.
19078
19079 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19080 Through out the file, use FONT_INFO_FROM_FACE instead of
19081 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19082 rif->per_char_metric.
19083 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19084 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19085 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19086 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19087 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19088 nonzero, use font-backend mechanism.
19089 (get_per_char_metric): New function.
19090
19091 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19092 (set_lface_from_font_name)
19093 (set_font_frame_param, free_realized_face)
19094 (prepare_face_for_display, clear_face_gcs)
19095 (Finternal_set_font_selection_order, realize_x_face)
19096 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19097 font-backend mechanism.
19098 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19099 (load_face_font) [USE_FONT_BACKEND]: Abort.
19100 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19101 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19102
19103 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19104 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19105 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19106 nonzero, register all available font drivers. Call
19107 x_default_font_parameter for deciding a font.
19108 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19109
19110 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19111 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19112 (x_set_glyph_string_clipping_exactly)
19113 (x_compute_glyph_string_overhangs)
19114 (x_draw_glyph_string_foreground)
19115 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19116 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19117 enable_font_backend is nonzero, use font-backend mechanism.
19118 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19119
191202008-02-01 Kenichi Handa <handa@m17n.org>
19121
19122 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19123 system_eol_type.
19124 (syms_of_coding): Initialize system_eol_type.
19125
19126 * process.c (Fset_process_coding_system): Inherit system's eol
19127 format if necessary.
19128
191292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19130
19131 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * coding.c (decode_eol): Pay attention to buffer relocation in
19136 del_range_2.
19137 (decode_coding): Call decode_eol before restoring undo_list.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 * charset.c (Fdefine_charset_internal): Fix setting of
19142 emacs_mule_bytes.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * keyboard.c (read_char): Check if C is a character or not before
19147 looking up Vkeyboard_translate_table.
19148
191492008-02-01 Kenichi Handa <handa@m17n.org>
19150
19151 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19152 condition to terminate the loop.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * coding.c (produce_composition): Compare charbuf[i] instead of
19157 args[i] against 0.
19158 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19163 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19164 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19165 detect_coding.
19166 (emacs_mule_char): Handle old style (Emacs 20) component character
19167 of a composition.
19168 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19169 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19170 composition rule.
19171 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19172
191732008-02-01 Kenichi Handa <handa@m17n.org>
19174
19175 * coding.c (encode_coding_ccl): Allocate destination dynamically
19176 when necessary.
19177
191782008-02-01 Kenichi Handa <handa@m17n.org>
19179
19180 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19181 the loop. When quitted, show a proper error message.
19182
191832008-02-01 Kenichi Handa <handa@m17n.org>
19184
19185 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19186 src->clip_head and src->clip_tail temporarily instead of src->hl.
19187
19188 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19189 character sequence.
19190 (Fccl_execute_on_string): Use ASET, not XSET.
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19195
191962008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 * coding.c (decode_coding): Fix the condition of terminating the
19199 decoding loop.
19200
192012008-02-01 Kenichi Handa <handa@m17n.org>
19202
19203 * data.c (Faset): On setting a character bigger than 255 in a
19204 unibyte string, signal an error instead of make the string multibyte.
19205
192062008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19209 made by a mapping table.
19210
192112008-02-01 Kenichi Handa <handa@m17n.org>
19212
19213 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19214 not.
19215 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19216 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19217
19218 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19219 s->face is NULL or not.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19224 (x_draw_glyph_string): Fix drawing of right_overhang and
19225 left_overhang around/on cursor.
19226
19227 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19228
192292008-02-01 Kenichi Handa <handa@m17n.org>
19230
19231 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19232
192332008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * coding.c (Fdefine_coding_system_internal)
19236 (Fdefine_coding_system_alias): Avoid a duplicated element in
19237 Vcoding_system_alist.
19238
192392008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19242
19243 * coding.c (Qcoding_system_define_form): New variable.
19244 (syms_of_coding): Intern and staticpro it.
19245 (Fcoding_system_p): Check Qcoding_system_define_form.
19246 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19247
19248 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19249 Fcoding_system_p.
19250 (CHECK_CODING_SYSTEM): If ID is not available, call
19251 Fcheck_coding_system.
19252 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19253 Try also Fcheck_coding_system.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * coding.c (code_conversion_restore): GCPRO arg.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * character.c (lisp_string_width): Check multibyteness of STRING.
19262
192632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19264
19265 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19266 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19267 (decode_mac_font_name): Use decode_coding_c_string instead of
19268 decode_coding.
19269 (x_load_font): Initialize fontp->fontset to -1. Set
19270 fontp->encoding_type.
19271
192722008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * search.c (search_buffer): Give up BM search on case-fold-search
19275 if one of a target character has a case-equivalence of different
19276 byte length even if that target charcter is an ASCII.
19277 (simple_search): Fix calculation of byte length of matched text.
19278 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19279
192802008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * coding.c (decode_coding): Fix handling of invalid bytes.
19283
192842008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19287 Unicode characters.
19288
192892008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 * coding.c (encode_coding_object): If a pre-write-conversion
19292 function makes a new buffer, kill it.
19293
192942008-02-01 Kenichi Handa <handa@m17n.org>
19295
19296 * coding.c (QCascii_compatible_p): New variable.
19297 (syms_of_coding): Initialize it.
19298 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19299 calling string_char.
19300 (record_conversion_result): Add `default:' case.
19301 (coding_charset_list): Delete unused variable `coding_type'.
19302 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19303 property in the plist of the coding system.
19304 (Fcoding_system_put): Check QCascii_compatible_p.
19305
193062008-02-01 Miles Bader <miles@gnu.org>
19307
19308 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19309 removed calculation of frame `f', as it's now used.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19314 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19315 (UNIDATA): New variable.
19316 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19317 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19318 $(RUN_TEMACS) unconditionally.
19319
193202008-02-01 Kenichi Handa <handa@m17n.org>
19321
19322 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19323 (admindir): New variable.
19324 ($(lispsource)international/charprop.el): New target.
19325
193262008-02-01 Miles Bader <miles@gnu.org>
19327
19328 * character.c (chars-in-region): Remove obsolete function.
19329 (syms_of_character): Remove its initialization.
19330
193312008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19332
19333 * w32select.c (validate_coding_system)
19334 (setup_windows_coding_system): New functions.
19335 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19336 setup_windows_coding_system.
19337 (setup_config, Fw32_get_clipboard_data): Use
19338 validate_coding_system.
19339 (Fx_selection_exists): Move call to setup_config to a place
19340 where signals are allowed.
19341
19342 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19343 (Fcheck_coding_system): Add declarations.
19344
193452008-02-01 Kenichi Handa <handa@m17n.org>
19346
19347 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19348
193492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19350
19351 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19352 string as the second argument for x_new_fontset.
19353
193542008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19357 (encode_coding_object): Use safe_call instead of call2.
19358
193592008-02-01 Kenichi Handa <handa@m17n.org>
19360
19361 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19362
19363 * Makefile.in (lisp): Include charprop.el.
19364
193652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19366
19367 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19368 Not sure if it's unnecessary.
19369
193702008-02-01 Steven Tamm <steventamm@mac.com>
19371
19372 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19373 some possibly unnecessary fontset checking code that crashed
19374 when creating a new frame.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19379 lookup_face.
19380
19381 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19382
19383 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19388 (coding_charset_list): New function.
19389
19390 * coding.h (coding_charset_list): Extern it.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19395 concatenation of family and registry.
19396
193972008-02-01 Kenichi Handa <handa@m17n.org>
19398
19399 * character.h (BYTE8_STRING): Fix typo.
19400
19401 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19402 string to multibyte (sync to HEAD).
19403
19404 * casefiddle.c (casify_region): Handle changes in byte-length
19405 using replace_range_2 (sync to HEAD).
19406
194072008-02-01 Andreas Schwab <schwab@suse.de>
19408
19409 * chartab.c (map_char_table): GCPRO table and arg.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19414 already at limit.
19415
194162008-02-01 Kenichi Handa <handa@m17n.org>
19417
19418 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19419 instead of fast_c_string_match_ignore_case.
19420 (find_font_encoding): Change argument to Lisp_Object. Use
19421 fast_string_match_ignore_case instead of
19422 fast_c_string_match_ignore_case. Change caller.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * xdisp.c (get_next_display_element): In unibyte case, decide to
19427 display in octal form by checking a character by
19428 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19429
19430 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19431
19432 * character.c (unibyte_has_multibyte_table): New variable.
19433
19434 * character.h (unibyte_has_multibyte_table): Extern it.
19435 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19436
194372008-02-01 Kenichi Handa <handa@m17n.org>
19438
19439 * coding.c (encode_coding_iso_2022): Fix handling of charset
19440 annotation.
19441
194422008-02-01 Kenichi Handa <handa@m17n.org>
19443
19444 * coding.c (setup_coding_system): If coding_system is nil, use
19445 Qundecided.
19446 (Fterminal_coding_system): Return nil if terminal coding system is
19447 `undecided'.
19448 (syms_of_coding): Define coding-system `undecided' here. Setup
19449 terminal_coding as `undecided'.
19450
194512008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * xdisp.c (message_dolog, set_message_1): Call
19454 unibyte_char_to_multibyte with arg type int.
19455
19456 * lread.c (read1): Fix reading of a char-table.
19457
19458 * print.c (print_object): Include sub char-table in circularities
19459 detection.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19464 Append the found sequences in car of ARGS instead of prepending.
19465
194662008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * fileio.c (report_file_error): Make a unibyte string from
19469 strerror (errorno).
19470 (Fsubstitute_in_file_name): Fix the arg to
19471 unibyte_char_to_multibyte. It is evaluated twice.
19472
194732008-02-01 Kenichi Handa <handa@m17n.org>
19474
19475 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19480 BOM is not found.
19481 (detect_coding, detect_coding_system): Optimization for ISO-2022
19482 when no 8-bit data is found.
19483
194842008-02-01 Jason Rumney <jasonr@gnu.org>
19485
19486 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19491 CHARS.
19492
194932008-02-01 Steven Tamm <steventamm@mac.com>
19494
19495 * macterm.c (mac_encode_char): Add charset argument and update
19496 to use encoding_type.
19497 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19498 switch to pure fontset.
19499 (decode_mac_font_name): Temporarily remove decoding.
19500 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19501 (x_load_font): Temporarily remove encoding.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * xfaces.c (Fface_font): If frame is not on a window system,
19506 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19507 refer to face->font.
19508 (split_font_name_into_vector, build_font_name_from_vector)
19509 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19510 when HAVE_WINDOW_SYSTEM is defined.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19515 (x_produce_glyphs): Fix setting of members of cmp in case
19516 cmp->glyph_len is zero.
19517
19518 * fontset.c (Fset_fontset_font): Fix docstring.
19519 (Ffontset_info): Make it backward compatible. New arg ALL.
19520
195212008-02-01 Kim F. Storm <storm@cua.dk>
19522
19523 * process.c (read_process_output): Grow decoding_buf when needed;
19524 this could cause a crash in allocate_string and compact_small_strings.
19525
195262008-02-01 Kenichi Handa <handa@m17n.org>
19527
19528 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19529
195302008-02-01 Kenichi Handa <handa@m17n.org>
19531
19532 * coding.c (setup_coding_system): Set coding->common_flags
19533 correctly for raw-text.
19534 (consume_chars): On encoding unibyte text by raw-text, don't check
19535 multibyte form.
19536 (encode_coding): On encoding by raw-text, never use translation tables.
19537
19538 * fileio.c (e_write): Short cut for the case of no encoding.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * coding.c (detect_coding, detect_coding_system): Delete unused
19543 variables.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19548 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * coding.c (Ffind_coding_systems_region_internal): Include
19553 raw-text and no-conversion in the result.
19554
195552008-02-01 Kenichi Handa <handa@m17n.org>
19556
19557 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19558 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19559 FONT_DEF.
19560 (font_def_arg, add_arg, from_arg, to_arg): New args.
19561 (set_fontset_font): Change argument.
19562 (Fset_fontset_font): Fix for the case that TARGET is a script
19563 name and charset name.
19564 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * fontset.c (fontset_font): Rename from fontset_face. Change return
19569 value.
19570 (face_suitable_for_char_p, face_for_char): Adjust for the change
19571 of fontset_font.
19572 (make_fontset_for_ascii_face): Fix setting of the fontset element
19573 for ASCII.
19574 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19575 to get a font name.
19576 (Ffontset_info): Adjust for the change of fontset_font.
19577
19578 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19579
19580 * character.h (LEADING_CODE_LATIN_1_MIN)
19581 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19582
195832008-02-01 Kenichi Handa <handa@m17n.org>
19584
19585 * editfns.c (check_translation): New function.
19586 (Ftranslate_region_internal): Handle M:N mapping.
19587
195882008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19595 goto invalid_code.
19596 (decode_coding_iso_2022): Fix handling of invalid designation.
19597
19598 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19599 after calling code_conversion_save.
19600
196012008-02-01 Kenichi Handa <handa@m17n.org>
19602
19603 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19604
19605 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19606
19607 * fontset.c: Include "intervals.h".
19608 (fontset_face): Fix comparing of Lisp_Objects.
19609 (free_face_fontset, new_fontset_from_font_name): Fix
19610 Lisp_Object/int mixup.
19611
19612 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19613
19614 * coding.c: Add many prototypes for static functions.
19615 (get_translation_table): Allow max_lookup to be NULL.
19616 (decode_coding, Ffind_coding_systems_region_internal)
19617 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19618 get_translation_table with max_lookup NULL.
19619
196202008-02-01 Kenichi Handa <handa@m17n.org>
19621
19622 * coding.c (get_translation_table): Declare it as Lisp_Object.
19623 (LOOKUP_TRANSLATION_TABLE): New macro.
19624 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19625 instead of CHAR_TABLE_REF.
19626
196272008-02-01 Kenichi Handa <handa@m17n.org>
19628
19629 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19630 annotation data format.
19631 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19632 Change arguments FROM and TO to single argument NCHARS. Change caller.
19633 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19634 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19635 (decode_coding_ccl, decode_coding_charset): Pay attention to
19636 coding->charbuf_used.
19637 (get_translation): New function.
19638 (produce_chars): New arguments translation_table and last_block.
19639 Translate characters here. Return number of carryover chars.
19640 Change caller.
19641 (produce_composition): New argument pos. Change caller.
19642 Adjust for the change of annotation data format.
19643 (produce_charset, produce_annotation): Likewise.
19644 (decode_coding, encode_coding): Don't call translate_chars.
19645 (consume_chars): New arg translation_table. Change caller.
19646 (translate_chars): Delete.
19647 (syms_of_coding): Make translation-table's number of extra slots 2.
19648
196492008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * search.c (simple_search): Fix setting this_pos_byte in backward
19652 search.
19653
19654 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19655 byte sequence.
19656 (detect_coding_ccl): Fix setting of the variable valids.
19657
196582008-02-01 Kenichi Handa <handa@m17n.org>
19659
19660 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19661
19662 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19663
19664 * editfns.c (Ftranslate_region_internal): Rename from
19665 Ftranslate_region. Accept a char-table in TABLE.
19666 (syms_of_editfns): Defsubr Stranslate_region_internal.
19667
19668 * xfaces.c (set_lface_from_font_name): If a font is specified for
19669 a frame, generate a fontset from the font.
19670 (build_scalable_font_name): If the scalable font is requested for
19671 a specific size, don't change that size.
19672 (try_font_list): Try a scalable font also in the case that a
19673 pattern string is specified.
19674
196752008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * xfaces.c (Fface_font): New optional arg CHARACTER.
19678
196792008-02-01 Kenichi Handa <handa@m17n.org>
19680
19681 * charset.h (CHARSET_OFFSET): New macro.
19682
196832008-02-01 Kenichi Handa <handa@m17n.org>
19684
19685 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19686
19687 * fontset.c (fontset_face): Handle the case that repertory is a
19688 char-table.
19689 (find_font_encoding): Return nil for unknown encoding.
19690 (Fset_fontset_font): Ignore a font of unknown encoding.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * keymap.c (describe_vector): Handle default value of a char table.
19695
19696 * fontset.c (fontset_face): Handle fallback fonts correctly.
19697 (Ffontset_info): Return infomation about fallback fonts.
19698
196992008-02-01 Kenichi Handa <handa@m17n.org>
19700
19701 * fontset.c (FONTSET_DEFAULT): New macro.
19702 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19703 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19704 the case that it is nil.
19705 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19706 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19707
19708 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19709 subset or superset.
19710
197112008-02-01 Kenichi Handa <handa@m17n.org>
19712
19713 * emacs.c (main): Call init_charset after syms_of_XXX.
19714
19715 * charset.c (Vcharset_map_directory): Delete.
19716 (Vcharset_map_path): New variable.
19717 (load_charset_map_from_file): Use Vcharset_map_path instead.
19718 (init_charset): Initialize Vcharset_map_path.
19719 (syms_of_charset): Delete declaration of "charset-map-directory",
19720 add declaration of "charset-map-path".
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19725 ASCII only string.
19726
19727 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19728
19729 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19730 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19731
197322008-02-01 Kenichi Handa <handa@m17n.org>
19733
19734 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19735
19736 * coding.c (QCmnemonic, QCdefalut_char)
19737 (QCdecode_translation_table, QCencode_translation_table)
19738 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19739 (get_translation_table): Return a list of translation tables if
19740 necessary.
19741 (decode_coding): Call get_translation_table with ENCODEP 0.
19742 (char_encodable_p): If translation_table is non-nil, always call
19743 translate_char.
19744 (Fdefine_coding_system_internal): Accept list of translation
19745 tables as :encode-translation-table and :decode-translation-table.
19746 (Fcoding_system_put): New function.
19747 (syms_of_coding): Declare new symbols. Defsubr
19748 Scoding_system_put.
19749 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19750 typically JISX0212.
19751
19752 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19753 when the charset is superset type.
19754
19755 * character.c (translate_char): Accept list of translation tables.
19756
197572008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19760 (CODING_ATTR_TRANS_TBL): New macro.
19761
19762 * coding.c (get_translation_table): New function.
19763 (translate_chars): Fix the bug of skipping annotation data.
19764 (decode_coding, encode_coding): Utilize get_translation_table.
19765 (char_encodable_p, Funencodable_char_position): Translate char if
19766 necessary.
19767 (Ffind_coding_systems_region_internal)
19768 (Fcheck_coding_systems_region): Setup translation table for encode
19769 in a coding system attribute vector in advance.
19770 (Fdefine_coding_system_internal): Allow a symbol as translation
19771 table. For shift-jis type coding system, allow 4th charset.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19776
19777 * xdisp.c (get_next_display_element): Pass -1 as POS to
19778 FACE_FOR_CHAR if displaying a C-string.
19779
197802008-02-01 Kenichi Handa <handa@m17n.org>
19781
19782 * composite.c (get_composition_id): Handle xoff and yoff in a
19783 composition rule.
19784
19785 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19786 (struct composition): New member lbearing and rbearing.
19787
19788 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19789 (x_get_glyph_overhangs): Handle a composition glyph.
19790 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19791
19792 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19793 composition glyph.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * print.c: Include charset.h.
19798 (Vprint_charset_text_property): New variable.
19799 (Qdefault): Extern it.
19800 (PRINT_STRING_NON_CHARSET_FOUND)
19801 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19802 (print_check_string_result): New variable.
19803 (print_check_string_charset_prop): New function.
19804 (print_prune_charset_plist): New variable.
19805 (print_prune_string_charset): New function.
19806 (print_object): Call print_prune_string_charset if
19807 Vprint_charset_text_property is not t.
19808 (print_interval): Print nothing if interval->plist is nil.
19809 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19810 variable. Init and staticpro print_prune_charset_plist.
19811
198122008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * fontset.c (new_fontset_from_font_name): Use the specified font
19815 for all characters in the new fontset.
19816
19817 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19818 OBJECT args.
19819
19820 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19821 OBJECT args for composition too.
19822
19823 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19824 OBJECT args.
19825
198262008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19829
19830 * fontset.c (reorder_font_vector): Adjust for the change of
19831 FONT_DEF format.
19832 (fontset_face): New arg id. Change caller.
19833 (face_for_char): New args pos and object.
19834 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19835 (fs_query_fontset): Check NAME by Fassoc too.
19836 (Fset_fontset_font): Allow non-XLFD font name.
19837 (Ffontset_info): Adjust for the change of FONT_DEF format.
19838
19839 * fontset.h (face_for_char): Adjust prototype.
19840
19841 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19842 (append_space, extend_face_to_end_of_line)
19843 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19844 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19845
19846 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19847 POS and OBJECT args.
19848
19849 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19850 POS and OBJECT args.
19851
198522008-02-01 Jason Rumney <jasonr@gnu.org>
19853
19854 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19855 of GlobalAlloc'ed memory.
19856
198572008-02-01 Kenichi Handa <handa@m17n.org>
19858
19859 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19860
19861 * charset.h (charset_table_used): Delete extern.
19862
19863 * charset.c (charset_table_used): Make it static.
19864 (map_charset_chars): Fix args to c_function with.
19865
19866 * chartab.c (map_sub_char_table_for_charset): Fix args to
19867 c_function with.
19868
19869 * coding.h (enum coding_result_code): Delete
19870 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19871
19872 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19873 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19874 (Vlast_code_conversion_error): New variables.
19875 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19876 (ONE_MORE_BYTE): Record error if any instead of signaling an
19877 error. If non-ASCII multibyte char is found, return the negative
19878 value of the code. All callers changed to check it.
19879 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19880 (record_conversion_result): New function. Change all codes setting
19881 coding->result to call this function.
19882 (detect_coding_utf_8, decode_coding_utf_8)
19883 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19884 Don't use the local variable incomplete.
19885 (emacs_mule_char): Change the second arg to `const'.
19886 (decode_coding): Fix of flushing out unprocessed data.
19887 (make_conversion_work_buffer): Fix making of a work buffer.
19888 (decode_coding_object): Return coding->dst_object.
19889
19890 * fontset.c (set_fontset_font): Fix args.
19891
19892 * lisp.h (CHARACTERBITS): Define as 22.
19893
19894 * process.c (send_process): Be sure to set coding->src_multibyte.
19895
19896 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19897
198982008-02-01 Kenichi Handa <handa@m17n.org>
19899
19900 * xdisp.c (handle_auto_composed_prop): Give limit to
19901 Fnext_single_char_property_change.
19902
199032008-02-01 Kenichi Handa <handa@m17n.org>
19904
19905 * composite.c (syms_of_composite): Don't make the composition hash
19906 table weak.
19907
19908 * fontset.c (Fset_fontset_font): Fix docstring.
19909
19910 * lisp.h (detect_coding_system): Adjust prototype.
19911
19912 * fileio.c (kill_workbuf_unwind): Delete this function.
19913 (Finsert_file_contents): Adjust the call of detect_coding_system.
19914 Get conversion_buffer by code_conversion_save. Use the macro
19915 CODING_MAY_REQUIRE_DECODING. After decoding, update
19916 coding_system.
19917
19918 * coding.h (make_conversion_work_buffer): Delete extern.
19919 (code_conversion_save): Extern it.
19920
19921 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19922 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19923 (decode_coding_utf_8): Don't do eol converion.
19924 (detect_coding_utf_16): Check coding->src_chars, not
19925 coding->src_bytes. Add heuristics for those that have no signature.
19926 (decode_coding_emacs_mule, decode_coding_iso_2022)
19927 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19928 Don't do eol converion.
19929 (adjust_coding_eol_type): Return a new coding system.
19930 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19931 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19932 each change.
19933 (decode_coding): Pay attention to undo_list. Do eol conversion for
19934 all types of coding-systems (if necessary).
19935 (Vcode_conversion_work_buf_list): Delete it.
19936 (Vcode_conversion_reused_workbuf): Rename from
19937 Vcode_conversion_reused_work_buf.
19938 (Vcode_conversion_workbuf_name): New variable.
19939 (reused_workbuf_in_use): New variable.
19940 (make_conversion_work_buffer): Delete the arg DEPTH.
19941 (code_conversion_restore): Change argument to cons.
19942 (code_conversion_save): Delete the argument BUFFER. Change callers.
19943 (detect_coding_system): New argument src_chars. Change callers.
19944 Fix for utf-16 detection.
19945 (init_coding_once): Don't use ISO_carriage_return.
19946 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19947 reused_workbuf_in_use.
19948
199492008-02-01 Kenichi Handa <handa@m17n.org>
19950
19951 * keymap.c (store_in_keymap): Pay attention to the case that idx
19952 is a cons specifying a character range.
19953
199542008-02-01 Kenichi Handa <handa@m17n.org>
19955
19956 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19957 HANDLED_RECOMPUTE_PROPS.
19958
19959 * coding.c (Fdefine_coding_system_internal): Fix checking of
19960 ascii compatibility.
19961
199622008-02-01 Kenichi Handa <handa@m17n.org>
19963
19964 * charset.c (find_charsets_in_text): Delete unused locale variable.
19965 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19966
19967 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19968 Resync charset_list to Vemacs_mule_charset_list.
19969
19970 * keymap.c (store_in_keymap): Pay attention to the case that idx
19971 is a cons specifying a character range.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * composite.c (update_compositions): Bind inhibit-read-only, etc
19976 to t before calling remove-list-of-text-properties.
19977
19978 * print.c (print_object): Always print ASCII chars as is.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19983
19984 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19985 is a char table.
19986
199872008-02-01 Kenichi Handa <handa@m17n.org>
19988
19989 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19990
199912008-02-01 Kenichi Handa <handa@m17n.org>
19992
19993 * xfaces.c (set_lface_from_font_name): Fix for the case that
19994 FONTNAME is not fontset name.
19995
199962008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * fns.c (base64_encode_1): Fix previous change.
19999
200002008-02-01 Kenichi Handa <handa@m17n.org>
20001
20002 * fontset.c (set_fontset_font): New function.
20003 (Fset_fontset_font): If a font is specified for a charset, use
20004 map_charset_chars to store the font spec in a fontset.
20005
200062008-02-01 Kenichi Handa <handa@m17n.org>
20007
20008 * fontset.c (fontset_face): Create a fallback fontset on demand.
20009 (make_fontset): Don't create a fallback fontset here.
20010 (free_face_fontset): Free a fallback fontset (if any) too.
20011 (n_auto_fontsets): Delete this variable.
20012 (auto_fontset_alist): New variable.
20013 (new_fontset_from_font_name): Check auto_fontset_alist.
20014 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20015 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20016 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20017 Defsubr Sfontset_list_all.
20018
200192008-02-01 Kenichi Handa <handa@m17n.org>
20020
20021 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20022
200232008-02-01 Kenichi Handa <handa@m17n.org>
20024
20025 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20026
200272008-02-01 Kenichi Handa <handa@m17n.org>
20028
20029 * editfns.c (Fgoto_char): Fix docstring.
20030
200312008-02-01 Kenichi Handa <handa@m17n.org>
20032
20033 * insdel.c (insert_from_gap): Adjust intervals correctly.
20034
200352008-02-01 Jason Rumney <jasonr@gnu.org>
20036
20037 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20038 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20039 (w32_initialize): Try to load it.
20040 (x_get_font_repertory): Use it if available.
20041 (w32_encode_char): Add shortcut for unicode output.
20042
20043 * w32fns.c (w32_load_system_font): Default charset to -1.
20044 (x_to_w32_charset): Match all fonts for unicode.
20045 (w32_to_x_charset): New parameter matching. Don't return partial
20046 or wildcard charsets.
20047 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20048 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20049 (w32_to_x_font): Match charset to real charset.
20050 (enum_font_cb2): Always list unicode versions.
20051
20052 * makefile.w32-in (temacs): Increase EMHEAP.
20053
200542008-02-01 Jason Rumney <jasonr@gnu.org>
20055
20056 * w32term.c (w32_encode_char): New charset parameter.
20057 font_info.encoding becomes encoding_type.
20058 (x_get_font_repertory): New function. Warning: stub only!
20059 (x_new_font): Return quickly if font already set.
20060 (x_new_fontset): fontsetname parameter is Lisp_Object.
20061 Use new fs_query_fontset. Try new_fontset_from_font_name.
20062 Use fontset_name for return value.
20063
20064 * w32term.h: Declare x_get_font_repertory.
20065
20066 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20067 place of find_charset_in_text. Use encode_coding_object in place
20068 of encode_coding.
20069 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20070 decode_coding.
20071
20072 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20073 of x_new_fontset.
20074 (w32_load_system_font): Initialize charset as unicode.
20075 font_info.encoding becomes encoding_type.
20076 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20077 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20078 (syms_of_w32fns): Set get_font_repertory_func.
20079
20080 * w32console.c: Include character.h. Use terminal_encode_buffer
20081 from term.c.
20082 (write_glyphs): Use new version of encode_terminal_code. Use
20083 encode_coding_object in place of encode_coding.
20084
20085 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20086 encoding becomes encoding_type.
20087
20088 * term.c (terminal_encode_buffer): Make externally visible.
20089
20090 * makefile.w32-in: Add character.h dependancies.
20091 (character.o, chartab.o): New targets.
20092
200932008-02-01 Kenichi Handa <handa@m17n.org>
20094
20095 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20096 CODING_ID_EOL_TYPE.
20097
200982008-02-01 Andreas Schwab <schwab@suse.de>
20099
20100 * coding.c (produce_chars): Revert last change.
20101
201022008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * charset.h (charset_unicode): Extern it.
20105
20106 * charset.c (string_xstring_p): Check by (C >= 0x100).
20107 (find_charsets_in_text): Change format of the arc CHARSETS. New
20108 arg MULTIBYTE.
20109 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20110 change of find_charsets_in_text.
20111 (Fsplit_char): Fix doc. Never return unknown.
20112
20113 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20114
20115 * coding.c (Fdefine_coding_system_alias): Update
20116 Vcoding_system_list.
20117
20118 * fontset.c (load_font_get_repertory): Pay attention to the case
20119 that ENCODING of a font is specified by a char-table.
20120
20121 * xterm.c (x_get_font_repertory): Handle the case that the
20122 encoding of font is other than Unicode.
20123
201242008-02-01 Kenichi Handa <handa@m17n.org>
20125
20126 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20127 if a character is encodable by the terminal coding system. If
20128 not, produces proper number of `?'s. Update
20129 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20130 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20135 variables.
20136 (encode_terminal_code): Change argument. Encode multiple
20137 characters at once. Store the result of encoding in
20138 terminal_encode_buffer.
20139 (write_glyphs, insert_glyphs): Adjust for the change of
20140 encode_terminal_code.
20141 (term_init): Initialize terminal_encode_buffer and
20142 terminal_encode_buf_size.
20143
20144 * coding.c (consume_chars): If coding->src_object is nil, don't
20145 check annotation.
20146
201472008-02-01 Kenichi Handa <handa@m17n.org>
20148
20149 * character.c (char_string): Use ASCII_CHAR_P instead of
20150 SINGLE_BYTE_CHAR_P.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * xdisp.c (handle_auto_composed_prop): Check if the last
20155 characters of auto-composed region is newly composed with the
20156 following characters.
20157 (handle_composition_prop): Fix checking of point being inside
20158 composition.
20159
201602008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * fns.c (concat): Don't change multibyteness of the result by
20163 concatenating an 8-bit character.
20164
20165 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20166 multibyteness of the result when newelt is an 8-bit character.
20167
201682008-02-01 Dave Love <fx@gnu.org>
20169
20170 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20171 EMACS_INT.
20172
20173 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20174
20175 * xfaces.c (face_numeric_value): Declare dim size_t.
20176 (Finternal_lisp_face_equal_p): Remove unused f.
20177
20178 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20179 (MATRIX_ROW): Remove unused vars.
20180 (draw_glyphs, x_insert_glyphs, fast_find_position)
20181 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20182 byte/char counts.
20183
20184 * regex.c (regex_compile): Remove unused var.
20185
20186 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20187
20188 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20189 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20190
20191 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20192
20193 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20194
20195 * fileio.c (Fwrite_region): Remove unused var.
20196
20197 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20198 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20199
20200 * composite.c (Fremove_list_of_text_properties): Declare.
20201
20202 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20203 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20204 (coding_inherit_eol_type): Remove unused attrs.
20205 (detect_coding): Cast arg of detect_eol.
20206
20207 * charset.c (syms_of_charset): Remove unused var p.
20208 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20209 byte/char counts.
20210
20211 * casetab.c (set_case_table): Remove unused var.
20212
20213 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20214 unused vars.
20215
202162008-02-01 Dave Love <fx@gnu.org>
20217
20218 * xterm.c (x_bitmap_mask): Declare.
20219
202202008-02-01 Dave Love <fx@gnu.org>
20221
20222 * xterm.c (x_term_init): Fix type error.
20223
20224 * lisp.h: Add Funibyte_char_to_multibyte.
20225
20226 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20227 (Fset_coding_system_priority): Doc fix.
20228
20229 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20230
20231 * indent.c (check_composition): Make start and end EMACS_INT.
20232
20233 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20234
20235 * xdisp.c (handle_composition_prop, check_point_in_composition):
20236 Make buffer positions EMACS_INT.
20237
20238 * composite.c (find_composition, run_composition_function)
20239 (update_compositions, Ffind_composition_internal): Make buffer
20240 positions EMACS_INT.
20241
20242 * composite.h (find_composition, update_compositions): Make
20243 position args EMACS_INT.
20244
20245 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20246
20247 * intervals.c (get_property_and_range):
20248 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20249
20250 * unexalpha.c: Don't include varargs.h.
20251
202522008-02-01 Dave Love <fx@gnu.org>
20253
20254 * coding.h (ENCODE_UTF_8): New.
20255
20256 * Makefile.in (gtkutil.o): Depend on coding.h.
20257
20258 * coding.c (Fset_coding_system_priority): Doc fix.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20263 the case of auto saving.
20264
202652008-02-01 Andreas Schwab <schwab@suse.de>
20266
20267 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20268 `range' from GC.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20273
202742008-02-01 Kenichi Handa <handa@m17n.org>
20275
20276 * fileio.c (choose_write_coding_system): Return a decided coding system.
20277 (Fwrite_region): Set Vlast_coding_system_used to the return value
20278 of choose_write_coding_system.
20279
202802008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * charset.c (Fset_charset_priority): Pay attention to duplicated
20283 arguments.
20284
20285 * coding.c (QCcategory): New variable.
20286 (syms_of_coding): Defsym it. Set all elements of
20287 Vcoding_category_table and their symbol values.
20288 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20289 coding-category-XXX, and coding-category-list.
20290 (Fdefine_coding_system_internal): Add category in the plist.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * callproc.c (Fcall_process): Handle carryover correctly.
20295
20296 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20297 (raw_text_coding_system): Check NILP (coding_system).
20298 (coding_inherit_eol_type): Check NILP (coding_system) and
20299 NILP (parent).
20300 (consume_chars): Fix for the case of raw-text.
20301
20302 * process.c (read_process_output): Handle carryover correctly.
20303
203042008-02-01 Dave Love <fx@gnu.org>
20305
20306 * regex.c (re_search_2): Fix last change.
20307
203082008-02-01 Kenichi Handa <handa@m17n.org>
20309
20310 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20311 target_multibyte. Even in a unibyte case, return a converted
20312 multibyte char.
20313 (GET_CHAR_AFTER): New macro.
20314 (PATFETCH): Translate via multibyte char.
20315 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20316 (SETUP_MULTIBYTE_RANGE): New macro.
20317 (regex_compile): Setup compiled code so that its multibyteness
20318 matches that of a target. Fix the handling of "[X-YZ]" using
20319 SETUP_MULTIBYTE_RANGE.
20320 (analyse_first) <charset>: For filling fastmap for all multibyte
20321 characters, don't check by BASE_LEADING_CODE_P.
20322 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20323 the same as RE_MULTIBYTE_P (bufp) now.
20324 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20325 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20326 (TRANSLATE_VIA_MULTIBYTE): New macro.
20327 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20328 It is the same as RE_MULTIBYTE_P (bufp) now.
20329 <exactn>: Translate via multibyte.
20330 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20331 translate it.
20332 <charset, charset_not>: Fetch a character by
20333 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20334 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20335 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20336 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20337 by GET_CHAR_AFTER.
20338 (bcmp_translate): Likewise.
20339
20340 * search.c (compile_pattern): Check the member target_multibyte,
20341 not the member multibyte of buf.
20342
20343 * lread.c (read1): While reading a string, set force_singlebyte
20344 and force_multibyte correctly.
20345
20346 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20347 up of unibyte_to_multibyte_table.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * coding.c (setup_coding_system): If coding has
20352 post-read-conversion or pre-write-conversion, set
20353 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20354 respectively.
20355 (decode_coding_gap): Run post-read-conversion if any.
20356
20357 * fileio.c (Finsert_file_contents): Even if we read into a
20358 unibyte buffer, check if we must decode the result or not.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (make_conversion_work_buffer): Change the work buffer
20363 name to the same one as that of Emacs 21.
20364
203652008-02-01 Kenichi Handa <handa@m17n.org>
20366
20367 * coding.h (make_conversion_work_buffer): Adjust prototype.
20368 (code_conversion_restore): Don't extern it.
20369
20370 * coding.c (detected_mask): Delete unused variable.
20371 (decode_coding_iso_2022): Pay attention to the byte sequence of
20372 CTEXT extended segment, and retain those bytes as is.
20373 (decode_coding_ccl): Delete unused variable `valids'.
20374 (setup_coding_system): Delete unused variable `category'.
20375 (consume_chars): Delete unused variable `category'. Make it work
20376 for non-multibyte case.
20377 (make_conversion_work_buffer): Change argument.
20378 (saved_coding): Delete unused variable.
20379 (code_conversion_restore): Don't check saved_coding->destination.
20380 (code_conversion_save): New function.
20381 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20382 instead of record_unwind_protect.
20383 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20384 (detect_coding_system): Delete unused variable `mask'.
20385 (Fdefine_coding_system_internal): Delete unused variable id.
20386
20387 * fileio.c (kill_workbuf_unwind): New function.
20388 (Finsert_file_contents): On replacing, call
20389 make_conversion_work_buffer with correct args, and call
20390 record_unwind_protect with the first arg kill_workbuf_unwind.
20391
20392 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20397 (fontset_add): Fix for the case that TO is less than TO1.
20398 (Ffontset_info): Don't use fallback fontset on checking the
20399 default fontset.
20400 (dump_fontset): New function for debugging.
20401
20402 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20403 coding_type is Qcharset.
20404
204052008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20408 (map_char_table): Don't inherit the value from the parent on
20409 initializing VAL. Adjust for the above change.
20410
204112008-02-01 Kenichi Handa <handa@m17n.org>
20412
20413 * coding.c (Qsignature, Qendian): Delete these variables.
20414 (syms_of_coding): Don't initialize them.
20415 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20416 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20417 detect_info->found.
20418 (decode_coding_utf_16): Don't detect BOM here.
20419 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20420 is NOT utf_16_without_bom.
20421 (setup_coding_system): For a coding system of type utf-16, check
20422 if the attribute :endian is Qbig or not (not nil or not), and set
20423 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20424 (detect_coding): If coding type is utf-16 and BOM detection is
20425 required, detect it.
20426 (Fdefine_coding_system_internal): For a coding system of type
20427 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * coding.c (coding_set_source): Fix for the case that the current
20432 buffer is different from coding->src_object.
20433 (decode_coding_object): Don't use the conversion work buffer if
20434 DST_OBJECT is a buffer.
20435
204362008-02-01 Dave Love <fx@gnu.org>
20437
20438 * lread.c (read_emacs_mule_char) [len==2]: Index
20439 emacs_mule_charset correctly.
20440
204412008-02-01 Dave Love <fx@gnu.org>
20442
20443 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20444 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20445 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20446 treated specially.)
20447 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20448 (detected_mask): Remove Big5 bits.
20449
204502008-02-01 Kenichi Handa <handa@m17n.org>
20451
20452 The following changes are to make the font rescaling facility
20453 compatible with Emacs 21.
20454
20455 * xfaces.c (Vface_font_rescale_alist): Rename from
20456 Vface_resizing_fonts.
20457 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20458 (font_rescale_ratio): Rename from font_resizing_ratio.
20459 (split_font_name): Set font->rescale_ratio.
20460 (better_font_p): Pay attention to font->rescale_ratio.
20461 (build_scalable_font_name): Likewise. Change RESX, and RESY
20462 fields.
20463 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20464
204652008-02-01 Kenichi Handa <handa@m17n.org>
20466
20467 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20468 (Qutf_16_le): Remove these variables.
20469 (syms_of_coding): Don't DEFSYM them.
20470 (decode_coding_utf_16): Fix handling of BOM.
20471 (encode_coding_utf_16): Fix handling of BOM.
20472
204732008-02-01 Kenichi Handa <handa@m17n.org>
20474
20475 * fileio.c (Finsert_file_contents): On replacing, before decoding
20476 the file into the work buffer, set point of the work buffer to the end.
20477
204782008-02-01 Dave Love <fx@gnu.org>
20479
20480 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20481
204822008-02-01 Dave Love <fx@gnu.org>
20483
20484 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20485 and fix C types.
20486
204872008-02-01 Kenichi Handa <handa@m17n.org>
20488
20489 * xdisp.c (SKIP_GLYPHS): New macro.
20490 (set_cursor_from_row): Pay attention to string display properties.
20491
20492 * category.c (copy_category_entry): Fix for the case that RANGE
20493 is an integer.
20494
20495 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20496
20497 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * charset.c (Fcharset_id_internal): New function.
20502 (syms_of_charset): Defsubr it.
20503
20504 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20505 with the last arg charset_list acquired from coding.
20506 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20507 the attribute coding_attr_ccl_valids.
20508
20509 * coding.h (enum define_coding_ccl_arg_index): Set the first
20510 member coding_arg_ccl_decoder to coding_arg_max.
20511
20512 * ccl.h (ccl_driver): Adjust prototype.
20513
20514 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20515 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20516 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20517 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20518 last arg Qnil.
20519
205202008-02-01 Kenichi Handa <handa@m17n.org>
20521
20522 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20523 call encode_char.
20524
20525 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20526
205272008-02-01 Dave Love <fx@gnu.org>
20528
20529 * composite.c (syms_of_composite): Make composition_hash_table weak.
20530
205312008-02-01 Kenichi Handa <handa@m17n.org>
20532
20533 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20534 (font_name_registry): Don't extern them.
20535 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20536
20537 * fontset.h (Qfontset): Don't extern it.
20538 (new_fontset_from_font_name): Extern it.
20539
20540 * fontset.c: Give 8 extra slots to fontset objects.
20541 (Qfontset_info): New variable.
20542 (syms_of_fontset): Defsym it.
20543 (FONTSET_FALLBACK): New macro.
20544 (fontset_face): Try also the default fontset.
20545 (make_fontset): Realize a fallback fontset from the default fontset.
20546 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20547 using split_font_name_into_vector and build_font_name_from_vector.
20548 (Fset_fontset_font): Access the elements of font_spec by enum
20549 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20550 name by using split_font_name_into_vector.
20551 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20552 generate a proper font name from the fontset name. Update
20553 Vfontset_alias_alist.
20554 (n_auto_fontsets): New variable.
20555 (new_fontset_from_font_name): New function.
20556 (Ffont_info): Store the information about fonts generated from the
20557 default fontset in the first extra slot of the returned char-table.
20558
20559 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20560 (font_name_registry): Delete function.
20561 (split_font_name_into_vector): New function.
20562 (build_font_name_from_vector): New function.
20563 (font_list): The argument REGISTRY is now a list of registry names.
20564 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20565 specifies an explicit font name, return the name as is. Make a
20566 list of registy names.
20567
20568 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20569 of x_new_fontset.
20570 (Fx_create_frame): Don't call x_new_fontset here. Just use
20571 x_list_fonts to check the existence of fonts.
20572
20573 * xterm.h (x_new_fontset): Adjust prototype.
20574
20575 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20576 string. Use new_fontset_from_font_name to create a fontset from a
20577 font name.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * syntax.c (Vfind_word_boundary_function_table): New name for
20582 Vnext_word_boundary_function_table.
20583 (find-word-boundary-function-table): New name for
20584 next-word-boundary-function-table.
20585
205862008-02-01 Dave Love <fx@gnu.org>
20587
20588 * Makefile.in: Fix some dependencies.
20589
20590 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20591 set it to nil before returning.
20592
20593 * composite.c (update_compositions): Fix type error.
20594
20595 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20596
205972008-02-01 Kenichi Handa <handa@m17n.org>
20598
20599 * xterm.c (x_new_font): Optimize for the case that the font is
20600 already set for the frame.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * chartab.c (char_table_ascii): Check if the char table contents
20605 is sub-char-table or not.
20606 (char_table_set, char_table_set_range): Fix argument to
20607 char_table_ascii.
20608
20609 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20610 (detect_coding_utf_8, detect_coding_utf_16)
20611 (detect_coding_emacs_mule, detect_coding_iso_2022)
20612 (detect_coding_sjis, detect_coding_big5)
20613 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20614 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20615 sequence is valid in this coding system. Change callers.
20616 (MAX_ANNOTATION_LENGTH): New macro.
20617 (ADD_ANNOTATION_DATA): New macro.
20618 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20619 ADD_ANNOTATION_DATA. Change the format of annotation data.
20620 (ADD_CHARSET_DATA): New macro.
20621 (emacs_mule_char): New argument ID. Change callers.
20622 (decode_coding_emacs_mule, decode_coding_iso_2022)
20623 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20624 Produce charset annotation data in coding->charbuf.
20625 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20626 to charset annotation data in coding->charbuf.
20627 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20628 coding->common_flags if the coding system is iso-2022 based and
20629 uses designation.
20630 (produce_composition): Adjust for the new annotation data format.
20631 (produce_charset): New function.
20632 (produce_annotation): Handle charset annotation.
20633 (handle_composition_annotation, handle_charset_annotation): New
20634 functions.
20635 (consume_chars): Handle charset annotation. Utilize the above two
20636 functions.
20637 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20638 buffer, get the deleted text as a string and set
20639 coding->src_object to that string.
20640 (detect_coding, detect_coding_system): Use the new struct
20641 coding_detection_info.
20642
20643 * coding.h (struct coding_detection_info): New structure.
20644 (struct coding_system): Adjust prototype of the member `detector'.
20645 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20646
206472008-02-01 Kenichi Handa <handa@m17n.org>
20648
20649 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20650
206512008-02-01 Dave Love <fx@gnu.org>
20652
20653 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20654 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20655 to new local and nullify apropos_accumulate before returning.
20656 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20657
206582008-02-01 Kenichi Handa <handa@m17n.org>
20659
20660 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20661 correctly.
e3eea1fc 20662
aac0c6e3
MR
206632008-02-01 Dave Love <fx@gnu.org>
20664
20665 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20666
206672008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 The following changes are to make character composition happen
20670 automatically on displaying.
20671
20672 * Makefile.in (lisp, shortlisp): Add composite.elc.
20673
20674 * composite.h (Qauto_composed, Vauto_composition_function)
20675 (Qauto_composition_function): Extern them.
20676
20677 * composite.c (Vcomposition_function_table)
20678 (Qcomposition_function_table): Delete variables.
20679 (Qauto_composed, Vauto_composition_function)
20680 (Qauto_composition_function): New variables.
20681 (run_composition_function): Don't call
20682 compose-chars-after-function.
20683 (update_compositions): Clear `auto-composed' text property.
20684 (compose_chars_in_text): Delete this function.
20685 (syms_of_composite): Staticpro Qauto_composed and
20686 Qauto_composition_function. Declare Vauto_composition_function as
20687 a Lisp variable.
20688
20689 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20690
20691 * xdisp.c (it_props): Add an entry for Qauto_composed.
20692 (handle_auto_composed_prop): New function.
20693
20694 * xselect.c (selection_data_to_lisp_data): Don't call
20695 compose_chars_in_text.
20696
206972008-02-01 Dave Love <fx@gnu.org>
20698
20699 * keyboard.c (read_char): Modify checking around use of
20700 Vkeyboard_translate_table.
20701
20702 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20703 and fix C types.
20704
207052008-02-01 Kenichi Handa <handa@m17n.org>
20706
20707 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20708 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20709 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20710 the case that the last byte is '\r' correctly.
20711 (decode_coding): Flush out the unprocessed data correctly.
20712 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20713
207142008-02-01 Dave Love <fx@gnu.org>
20715
20716 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20717 Add XK_ISO... case.
20718 (xaw_scroll_callback): Revert last change.
20719
207202008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20723
207242008-02-01 Kenichi Handa <handa@m17n.org>
20725
20726 * xfaces.c (Vface_resizing_fonts): New variable.
20727 (struct font_name): New member `resizing_ratio'.
20728 (font_resizing_ratio): New function.
20729 (split_font_name): Set font->resizing_ratio.
20730 (better_font_p): Pay attention to font->resizing_ratio.
20731 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20732 RESX, and RESY fields.
20733 (try_alternative_families): Try scalable fonts if
20734 Vscalable_fonts_allowed is not Qt.
20735 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20736
207372008-02-01 Dave Love <fx@gnu.org>
20738
20739 * xterm.c (xaw_scroll_callback): Cast correctly.
20740
207412008-02-01 Dave Love <fx@gnu.org>
20742
20743 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20744 (lispy_kana_keys): Comment out.
20745 (make_lispy_event) [XK_kana_A]: Comment out.
20746
20747 * xterm.c (xaw_scroll_callback): Cast call_data.
20748 (XTread_socket): Deal with ASCII keysyms.
20749 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20750
207512008-02-01 Dave Love <fx@gnu.org>
20752
20753 * xterm.c (Vx_keysym_table): New.
20754 (syms_of_xterm): Initialize it.
20755 (XTread_socket): Use it.
20756 From head: Eliminate incorrect optimization that tried to avoid
20757 decoding the output of X*LookupString.
20758 (x_get_font_repertory): Delete charset declaration.
20759
207602008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20763 return 0.
20764 (Fdefine_coding_system_internal): Setup
20765 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20766
207672008-02-01 Dave Love <fx@gnu.org>
20768
20769 * coding.c (Fcheck_coding_system): Doc fix.
20770
20771 * editfns.c (Finsert_byte): Return a proper value.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * coding.c (decode_coding): Fix args to translate_chars. Pay
20776 attention to Vstandard_translation_table_for_decode.
20777 (encode_coding): Fix args to translate_chars. Pay attention to
20778 Vstandard_translation_table_for_encode.
20779
20780 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20781 SINGLE_BYTE_CHAR_P.
20782
20783 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20784 not by SINGLE_BYTE_CHAR_P.
20785
20786 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20787 SINGLE_BYTE_CHAR_P.
20788
20789 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20790 SINGLE_BYTE_CHAR_P.
20791
20792 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20793 by SINGLE_BYTE_CHAR_P.
20794
20795 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20796 SINGLE_BYTE_CHAR_P.
20797
207982008-02-01 Dave Love <fx@gnu.org>
20799
20800 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20801
208022008-02-01 Dave Love <fx@gnu.org>
20803
20804 * fns.c (Flanginfo): Fix typo.
20805
20806 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20807
208082008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20811 (detect_coding_emacs_mule, detect_coding_iso_2022)
20812 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20813 incomplete byte sequence. Don't update *mask when correctly detected.
20814 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20815 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20816 (detect_coding, detect_coding_system): Adjust for the changes above.
20817
208182008-02-01 Kenichi Handa <handa@m17n.org>
20819
20820 * character.c (char_string): Rename from
20821 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20822 (string_char): Rename from string_char.
20823
20824 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20825 if C is greater than MAX_3_BYTE_CHAR.
20826 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20827 string_char instead of string_char_with_unification.
20828
208292008-02-01 Dave Love <fx@gnu.org>
20830
20831 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * keymap.c (push_key_description): Pay attention to force_multibyte.
20836
20837 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20838
208392008-02-01 Dave Love <fx@gnu.org>
20840
20841 * charset.c (define_charset_internal): Rename `supprementary'.
20842
20843 * Makefile.in (lisp, shortlisp): Remove latin-N.
20844
208452008-02-01 Dave Love <fx@gnu.org>
20846
20847 * xfns.c (x_window, x_window): Use use_xim.
20848
20849 * xterm.c (use_xim): Initialize.
20850 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20851 (x_term_init): Maybe set use_xim.
20852
20853 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20854
208552008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * search.c (search_buffer): Fix case-fold-search of multibyte
20858 characters.
20859 (boyer_moore): Rename the last argument to char_high_bits.
20860
208612008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * xdisp.c (display_string): Fix for the case of zero width glyph.
20864
20865 * xfns.c (x_set_font): Change the error message of the case that
20866 x_new_fontset returns Qt.
20867
20868 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20869 (Finternal_set_lisp_face_attribute): Use signal_error for the
20870 error of invalid fontset.
20871
20872 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20873 fontset, return Qt.
20874
208752008-02-01 Dave Love <fx@gnu.org>
20876
20877 * unexelf.c (unexec): Make .got handling not SGI-specific.
20878
20879 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20880
20881 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20882
20883 * keyboard.c (read_key_sequence): Fix type error.
20884
20885 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20886 type error.
20887
20888 * fontset.c (fontset_add): Return Lisp_Object.
20889
208902008-02-01 Dave Love <fx@gnu.org>
20891
20892 * charset.h (charset_ordered_list_tick): Declare extern.
20893
208942008-02-01 Kenichi Handa <handa@m17n.org>
20895
20896 The following changes (and some of 2008-02-01 changes of mine) are
20897 for handling syntax, category, and case conversion for unibyte
20898 characters by converting them to multibyte on the fly. With these
20899 changes, we don't have to setup syntax and case tables for unibyte
20900 characters in each language environment.
20901
20902 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20903 multibyte if necessary.
20904
20905 * bytecode.c (Fbyte_code): Likewise.
20906
20907 * character.h (LEADING_CODE_LATIN_1_MIN)
20908 (LEADING_CODE_LATIN_1_MAX): New macros.
20909 (unibyte_to_multibyte_table): Extern it.
20910 (unibyte_char_to_multibyte): New macro.
20911 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20912 (CHAR_LEADING_CODE): New macro.
20913 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20914
20915 * character.c (unibyte_to_multibyte_table): New variable.
20916 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20917 (multibyte_char_to_unibyte): If C is an eight-bit character,
20918 convert it to the corresponding byte value.
20919
20920 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20921 not 1, signals an error. Update the elements of
20922 unibyte_to_multibyte_table.
20923 (init_charset_once): Initialize unibyte_to_multibyte_table.
20924 (syms_of_charset): Define the charset `iso-8859-1'.
20925
20926 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20927 as is without converting it to unibyte. In a unibyte buffer,
20928 convert C to multibyte before checking the syntax.
20929
20930 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20931
20932 * minibuf.c (Fminibuffer_complete_word): Use the macro
20933 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20934
20935 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20936
20937 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20938 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20939 that is zero, convert an eight-bit char to multibyte.
20940 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20941 non-emacs case.
20942 (PATFETCH): Convert an eight-bit char to multibyte.
20943 (HANDLE_UNIBYTE_RANGE): New macro.
20944 (regex_compile): Setup the compiled pattern for multibyte chars
20945 even if the given regex string is unibyte. Use PATFETCH_RAW
20946 instead of PATFETCH in many places. To handle `charset'
20947 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20948 only for ASCII chars.
20949 (analyse_first) <exactn>: Simplify because the compiled pattern
20950 is multibyte.
20951 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20952 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20953 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20954 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20955 multibyte always 1.
20956 (re_search_2): In emacs, set the locale variable multibyte to 1,
20957 otherwise to 0. New local variable target_multibyte. Check it
20958 to decide the multibyteness of STR1 and STR2. If
20959 target_multibyte is zero, convert unibyte chars to multibyte
20960 before translating and checking fastmap.
20961 (TARGET_CHAR_AND_LENGTH): New macro.
20962 (re_match_2_internal): In emacs, set the locale variable multibyte
20963 to 1, otherwise to 0. New local variable target_multibyte. Check
20964 it to decide the multibyteness of STR1 and STR2. Use
20965 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20966 <charset, charset_not>: If multibyte is nonzero, check fastmap
20967 only for ASCII chars. Call bcmp_translate with
20968 target_multibyte, not with multibyte.
20969 <begline>: Declare the local variable C as `unsigned'.
20970 (bcmp_translate): Change the last arg name to target_multibyte.
20971
20972 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20973 the regexp pattern and the matching target. Set cp->buf.multibyte
20974 to the multibyteness of the regexp pattern. Set
20975 cp->but.target_multibyte to the multibyteness of the matching target.
20976 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20977 FETCH_STRING_CHAR_ADVANCE.
20978 (Freplace_match): Convert unibyte chars to multibyte.
20979
20980 * syntax.c (char_quoted, back_comment, scan_words)
20981 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20982 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20983 unibyte chars to multibyte.
20984 (skip_chars): Delete the arg syntaxp, and move the code for
20985 handling syntaxes to skip_syntaxes. Change callers.
20986 Fix the case that the multibyteness of STRING and the current
20987 buffer doesn't match.
20988 (skip_syntaxes): New function.
20989 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20990 SINGLE_BYTE_CHAR_P.
20991
209922008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * xfaces.c (QCfontset): New variable.
20995 (LFACE_FONTSET): New macro.
20996 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20997 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20998 (Finternal_set_lisp_face_attribute)
20999 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21000 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21001 check also LFACE_FONTSET_INDEX.
21002 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21003 attrs[LFACE_FONT_INDEX].
21004 (syms_of_xfaces): Intern and staticpro QCfontset.
21005
21006 * dispextern.h (enum lface_attribute_index): New member
21007 LFACE_FONTSET_INDEX.
21008
21009 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21010
210112008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * coding.c (coding_set_destination): Fix coding->destination for
21014 the case converting a region.
21015 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21016 (encode_coding_object): Fix coding->dst_pos and
21017 coding->dst_pos_byte for the case converting a region.
21018
21019 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21020
21021 * character.h (BYTE8_STRING): New macro.
21022
21023 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21024
210252008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21028 characters by octal form.
21029
21030 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21031
21032 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21033 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21034 _fetch_multibyte_char_len.
21035 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21036
21037 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21038
21039 * casefiddle.c (casify_object): Simplify. Handle the case that
21040 the case conversion change the byte length.
21041 (casify_region): Likewise.
21042
21043 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21044
21045 * character.c (_fetch_multibyte_char_len): Delete this variable.
21046 (syms_of_character): Setup Vprintable_chars.
21047
21048 * editfns.c (Fchar_equal): Fix for the unibyte case.
21049 (Finsert_byte): New function.
21050 (syms_of_editfns): Defsubr it.
21051
21052 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21053 of direct code 0x3ffff.
21054
21055 * search.c (Freplace_match): Fix for the unibyte case.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 * lread.c (safe_to_load_p): Fix the logic.
21060
21061 * syntax.c (scan_words): Don't treat characters belonging to
21062 different scripts as constituting a word.
21063
21064 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21065
21066 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21067
21068 * emacs.c (main): In the case of --unibyte, instead of aborting on
21069 finding non-empty buffer, make it unibyte.
21070
210712008-02-01 Kenichi Handa <handa@m17n.org>
21072
21073 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21074 to create a fontset.
21075
210762008-02-01 Dave Love <fx@gnu.org>
21077
21078 * character.c (Funibyte_char_to_multibyte): Doc fix.
21079
21080 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21081
210822008-02-01 Kenichi Handa <handa@m17n.org>
21083
21084 * fontset.c (fontset_add): Make the type `int'.
21085 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21086
21087 * character.c (unibyte_char_to_multibyte)
21088 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21089 charset_unibyte, not charset_primary.
21090
21091 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21092
21093 * charset.c (charset_unibyte): Rename from charset_primary.
21094 (Funibyte_charset): Rename from Fprimary_charset.
21095 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21096 (syms_of_charset): Adjust for the above changes.
21097
21098 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21099 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21100 it->multibyte_p is zero.
21101
21102 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21103 Delete extern.
21104
211052008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * coding.c (Fdefine_coding_system_internal): Fix category setting
21108 for a coding system of type iso-2022.
21109
211102008-02-01 Kenichi Handa <handa@m17n.org>
21111
21112 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21113
211142008-02-01 Kenichi Handa <handa@m17n.org>
21115
21116 * syntax.c (Vnext_word_boundary_function_table): New variable.
21117 (next-word-boundary-function-table): Declare it as a Lisp variable
21118 in syms_of_syntax.
21119 (scan_words): Call functions in Vnext_word_boundary_function_table
21120 if any.
21121
21122 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21123
21124 * fontset.c (fs_load_font): If fontp->charset is not negative,
21125 return fontp without setting its members.
21126
211272008-02-01 Dave Love <fx@gnu.org>
21128
21129 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21130
21131 * m/sparc.h (HAVE_ALLOCA): Delete.
21132
21133 * s/irix6-5.h: Don't include strings.h.
21134 (bcopy, bzero, bcmp): Don't undef.
21135
21136 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21137
21138 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21139 (TIOCSIGSEND): Don't test IRIX6.
21140 (bcopy, bzero, bcmp): Define conditionally.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * buffer.c (Qas, Qmake, Qto): New variables.
21145 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21146 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21147
21148 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21149 we are inserting a process output into a multibyte buffer.
21150
21151 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21152 multibyte_char_to_unibyte.
21153
21154 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21155 by the primary charset, make it eight-bit char.
21156 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21157
21158 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21159 (charset_8_bit__control, charset_8_bit_graphic)
21160 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21161 (define_charset_internal): New function.
21162 (syms_of_charset): Call define_charset_internal for pre-defined
21163 charsets.
21164
21165 * charset.h (charset_8_bit): Extern it.
21166
21167 * coding.c (make_conversion_work_buffer): Adjust for the change
21168 of Fset_buffer_multibyte.
21169 (encode_coding_raw_text): Increment p0 in the loop.
21170
21171 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21172
21173 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21174 for the change of Fset_buffer_multibyte.
21175
21176 * fns.c (Fstring_to_multibyte): New function.
21177 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21178
211792008-02-01 Dave Love <fx@gnu.org>
21180
21181 * xfns.c (x_put_x_image): Declare args.
21182
21183 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21184 (try_font_list): Declare an arg.
21185
21186 * xdisp.c (message2_nolog, set_message): Declare an arg.
21187
21188 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21189
21190 * syntax.c (scan_sexps_forward): Declare an arg.
21191
21192 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21193 Declare an arg.
21194
21195 * lisp.h (Fnew_fontset): Declare.
21196
21197 * keymap.c (push_key_description): Call CHARACTERP correctly.
21198
21199 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21200 (face_for_char): Delete unused vars.
21201 (Fset_fontset_font): Doc fix. Delete unused vars.
21202
21203 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21204
21205 * composite.c (update_compositions): Declare arg.
21206
21207 * cm.c (calccost, cmgoto): Declare args.
21208
21209 * charset.c: Remove `emacs' conditional. Doc fixes.
21210 (map_char_table_for_charset): Declare.
21211
21212 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21213
21214 * ccl.c: Remove `emacs' conditional.
21215
212162008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 The following changes are to allow specifying multiple font
21219 patterns for a character range (specified by script or charset).
21220
21221 * Makefile.in (abbrev.o): Depend on syntax.h.
21222 (xfaces.o): Depend on charset.h.
21223
21224 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21225 SINGLE_BYTE_CHAR_P.
21226
21227 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21228
21229 * character.h (Vchar_script_table): Extern it.
21230
21231 * character.c (Vscript_alist): Delete.
21232 (Vchar_script_table, Qchar_script_table): New variable.
21233 (syms_of_character): Declare Vchar_script_table as a lisp variable
21234 and initialize it.
21235
21236 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21237 have property char-table-extra-slots, make no extra slot.
21238
21239 * dispextern.h (struct face): Delete member `charset'.
21240 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21241 SINGLE_BYTE_CHAR_P.
21242 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21243 Add prototypes.
21244 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21245 (generate_ascii_font_name): Rename from generate_ascii_font.
21246
21247 * fontset.h (get_font_repertory_func): New prototype.
21248 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21249 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21250
21251 * fontset.c (Qprepend, Qappend): New variables.
21252 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21253 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21254 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21255 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21256 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21257 (load_font_get_repertory): New functions.
21258 (fontset_set): Delete.
21259 (fontset_face): New arg FACE. Return face ID, not face.
21260 Complete re-write to handle new fontset structure. Change caller.
21261 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21262 (face_for_char): Don't call lookup_face.
21263 (make_fontset_for_ascii_face): New arg FACE.
21264 (fs_load_font): New arg CHARSET_ID. Don't check
21265 Vfont_encoding_alist here.
21266 (find_font_encoding): New function.
21267 (list_fontsets): Use STRINGP, not ! NILP.
21268 (accumulate_script_ranges): New function.
21269 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21270 re-written to handle new fontset structure.
21271 (Ffontset_font): Return a copy of element.
21272 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21273 docstring of font-encoding-alist.
21274
21275 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21276 (Fset_fotset_font): Fix arguments to 5.
21277
21278 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21279
21280 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21281 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21282 (highlight_trailing_whitespace): Adjust for the change of
21283 lookup_named_face.
21284
21285 * xfaces.c: Include charset.h.
21286 (load_face_font): Delete argument C. Change caller.
21287 (generate_ascii_font_name): Rename from generate_ascii_font.
21288 (font_name_registry): New function.
21289 (cache_face): Store ascii faces before non-ascii faces in buckets.
21290 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21291 Lookup only ascii faces.
21292 (lookup_non_ascii_face): New function.
21293 (lookup_named_face): Delete argument C. Change caller.
21294 (lookup_derived_face): Delete argument C. Change caller.
21295 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21296 a string, just call font_list with it.
21297 (choose_face_font): Delete arguments FACE and C. New arg
21298 FONT_SPEC. Change caller.
21299 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21300 Change caller.
21301 (realize_non_ascii_face): New function.
21302 (realize_x_face): Call load_face_font here.
21303 (realize_tty_face): Delete argument C. Change caller.
21304 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21305 get a face ID.
21306 (dump_realized_face): Don't print charset of FACE.
21307
21308 * xfns.c (x_set_font): Always call x_new_fontset and
21309 store_frame_parameter.
21310 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21311 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21312
21313 * xterm.h (x_get_font_repertory): Extern it.
21314
21315 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21316 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21317 it->multibyte_p is zero.
21318 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21319 (x_new_fontset): If FONTSETNAME doesn't match any existing
21320 fontsets, create a new one.
21321 (x_get_font_repertory): New function.
21322
213232008-02-01 Kenichi Handa <handa@m17n.org>
21324
21325 * coding.c (Ffind_coding_systems_region_internal): Detect an
21326 ASCII only string correctly.
21327
21328 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21329 version is 0.
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * lread.c: Include "coding.h".
21334 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21335 (load_each_byte, unread_char): New variables.
21336 (readchar_backlog): Delete.
21337 (readchar): Return a character unless load_each_byte is nonzero.
21338 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21339 cons. If unread_char is not -1, simply return it.
21340 (unreadchar): Handle the case that readcharfun is
21341 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21342 (read_multibyte): Delete.
21343 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21344 (read_emacs_mule_char): New functions.
21345 (Fload): Even if the file doesn't have the extension ".elc", if
21346 safe_to_load_p returns a positive version number, assume that the
21347 file contains bytecompiled code. If the version is less than 22,
21348 load the file while decoding multibyte sequences by emacs-mule.
21349 (readevalloop): Don't use readchar_backlog.
21350 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21351 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21352 (read_escape): Delete the arg BYTEREP.
21353 (read1): Set load_each_byte to 1 temporarily while handling
21354 #@NUMBER. Don't call read_multibyte.
21355 (read_vector): Call Fread with a cons. If readcharfun is
21356 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21357 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21358 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21359 and Qload_force_doc_strings.
21360
213612008-02-01 Kenichi Handa <handa@m17n.org>
21362
21363 * xdisp.c (face_before_or_after_it_pos): Call
21364 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21365
213662008-02-01 Kenichi Handa <handa@m17n.org>
21367
21368 * character.h (TRAILING_CODE_P): New macro.
21369 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21370 (string_char_with_unification): Fix prototype.
21371 (Vscript_alist): Extern it.
21372
21373 * character.c (Vscript_alist): New variable.
21374 (string_char_with_unification, str_as_unibyte)
21375 (string_escape_byte8): Add `const' to local variables.
21376 (syms_of_character): Declare script-alist as a Lisp variable.
21377
21378 * charset.h (Vcharset_ordered_list): Extern it.
21379 (charset_ordered_list_tick): Extern it.
21380 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21381 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21382 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21383 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21384 (Funify_charset): Adjust for the change of Funify_charset.
21385
21386 * charset.c (charset_ordered_list_tick): New variable.
21387 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21388 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21389 deunify instead of unify a charset.
aac0c6e3
MR
21390 (string_xstring_p): Add `const' to local variables.
21391 (find_charsets_in_text): Add `const' to arguments and local variables.
21392 (encode_char): Adjust for the change of Funify_charset. Fix
21393 detecting of invalid code.
21394 (Fset_charset_priority): Increment charset_ordered_list_tick.
21395 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21396 and TO_CODE.
21397
21398 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21399 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21400 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21401 (decode_coding_ccl, consume_chars)
21402 (Ffind_coding_systems_region_internal)
21403 (Fcheck_coding_systems_region): Add `const' to local variables.
21404
21405 * print.c (print_object): Use octal form for printing the
21406 contents of a bool vector.
21407
214082008-02-01 Dave Love <fx@gnu.org>
21409
21410 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21411 <version == 20>: Refuse to load.
21412
214132008-02-01 Dave Love <fx@gnu.org>
21414
21415 * fns.c: Move coding.h.
21416 (Qcodeset, Qdays, Qmonths): New.
21417 (concat): Use CHARACTERP instead of INTEGERP.
21418 (Flocale_codeset): Delete.
21419 (Flanginfo): New function.
21420 (syms_of_fns): Change accordingly.
21421
21422 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21423
214242008-02-01 Dave Love <fx@gnu.org>
21425
21426 * casetab.c (init_casetab_once, init_casetab_once): Fix
21427 CHAR_TABLE_SET call.
21428
21429 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21430
21431 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21432
21433 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21434 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21435 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21436
21437 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21438
21439 * coding.c (ENCODE_DESIGNATION, decode_eol)
21440 (make_conversion_work_buffer, code_conversion_restore)
21441 (Fdefine_coding_system_internal): Convert Lisp types.
21442 (code_conversion_restore): Use EQ, not ==.
21443 (Fencode_coding_string): Fix code_convert_string call.
21444
21445 * coding.h (code_convert_region): Fix prototype.
21446
21447 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21448
21449 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21450 (Ffontset_info): Convert Lisp types.
21451
21452 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21453
21454 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21455
21456 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21457
21458 * chartab.c: Include "...h", not <...h> in some cases.
21459
21460 * callproc.c (Fcall_process): Remove unused variables.
21461
214622008-02-01 Dave Love <fx@gnu.org>
21463
21464 * coding.c (Fset_coding_system_priority): Allow null arg list.
21465
214662008-02-01 Dave Love <fx@gnu.org>
21467
21468 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21469 (Fself_insert_and_exit): Use CHARACTERP.
21470
21471 * callproc.c (Fcall_process): Remove unused vars.
21472
21473 * xterm.c (XTread_socket): Add extra dead keysyms.
21474
21475 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21476
21477 * dispextern.h: Remove prototypes for redraw_frame,
21478 redraw_garbaged_frames.
21479
21480 * cmds.c (Fself_insert_command): Use CHARACTERP.
21481
21482 * chartab.c (make_sub_char_table): Remove unused var.
21483 (Fset_char_table_default, Fmap_char_table): Doc fix.
21484
21485 * keymap.c (access_keymap): Remove generic char code.
21486 (push_key_description): Use CHARACTERP.
21487
214882008-02-01 Dave Love <fx@gnu.org>
21489
21490 * charset.c: Doc fixes.
21491 (Funify_charset): Extra checking.
21492
214932008-02-01 Dave Love <fx@gnu.org>
21494
21495 * lread.c: Remove some unused variables.
21496 (safe_to_load_p): If safe, return the magic number version byte.
21497 (Fload): Maybe use load-with-code-conversion.
21498
214992008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * category.c (Fmodify_category_entry): Don't modify the contents
21502 of category_set for characters out of the range. Avoid
21503 unnecessary modification.
21504
21505 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21506 Vchar_unify_table. The default value of the table is now nil.
21507
21508 * character.c (syms_of_character): Setup Vchar_width_table for
21509 eight-bit-control and raw-byte chars.
21510
21511 * charset.h (enum define_charset_arg_index): Delete
21512 charset_arg_parents and add charset_arg_subset and
21513 charset_arg_superset.
21514 (enum charset_attr_index): Delete charset_parents and add
21515 charset_subset and charset_superset.
21516 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21517 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21518 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21519 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21520 (CHARSET_SUPERSET): New macros.
21521 (charset_work): Extern it.
21522 (ENCODE_CHAR): Use charset_work.
21523 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21524 (map_charset_chars): Extern it.
21525
21526 * charset.c (load_charset_map): Set the default value of encoder
21527 and deunifier char-tables to nil.
21528 (map_charset_chars): Change argument. Change callers. Use
21529 map_char_table_for_charset instead of map_char_table.
21530 (Fmap_charset_chars): New optional args from_code and to_code.
21531 (Fdefine_charset_internal): Adjust for the change of
21532 `define-charset' (:parents -> :subset or :superset).
21533 (charset_work): New variable.
21534 (encode_char, syms_of_charset): Adjust for the change of
21535 Fdefine_charset_internal.
21536 (Ffind_charset_string): Setup the vector `charsets' correctly.
21537
21538 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21539 the previous change.
21540 (char_table_ref_and_range): Adjust for the above change.
21541 (map_sub_char_table_for_charset): New function.
21542 (map_char_table_for_charset): New function.
21543
21544 * keymap.c (describe_vector): Handle a char-table directly here.
21545 (describe_char_table): Delete.
21546
21547 * lisp.h (map_charset_chars): Delete.
21548
215492008-02-01 Dave Love <fx@gnu.org>
21550
21551 * fns.c (count_combining): Comment out (unused).
21552 (Flocale_codeset): New.
21553 (syms_of_fns): Defsubr it.
21554
21555 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21556 (size_t): Remove.
21557
215582008-02-01 Dave Love <fx@gnu.org>
21559
21560 * Makefile.in (chartab.o): Depend on charset.h.
21561
215622008-02-01 Kenichi Handa <handa@m17n.org>
21563
21564 * character.c (syms_of_character): Set the default value of
21565 Vprintable_chars to Qnil.
21566
215672008-02-01 Dave Love <fx@gnu.org>
21568
21569 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21570
215712008-02-01 Kenichi Handa <handa@m17n.org>
21572
21573 * charset.c (load_charset_map): Handle the case that from < to
21574 correctly.
21575
21576 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21577 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21578 Pay attention to raw-8-bit chars.
21579
215802008-02-01 Kenichi Handa <handa@m17n.org>
21581
21582 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21583 It is not bytecompiled now.
21584
21585 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21586 (charset_jisx0208): New variables.
21587 (Fdefine_charset_internal): Setup them if appropriate.
21588 (init_charset_once): Initialize them to -1.
21589
21590 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21591 (charset_jisx0208): Extern them.
21592
21593 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21594 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21595 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21596 (setup_iso_safe_charsets): Fix arguments to Fassq.
21597 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21598 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21599 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21600 (encode_coding_iso_2022): Change the 1st arg to
21601 ENCODE_ISO_CHARACTER to a variable.
21602
216032008-02-01 Kenichi Handa <handa@m17n.org>
21604
21605 * charset.h (enum define_charset_arg_index): New enums
21606 charset_arg_min_code and charset_arg_max_code.
21607 (struct charset): New member char_index_offset.
21608
21609 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21610 Take charset->char_index_offset into account.
21611 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21612 args[charset_arg_max_code]. Setup charset.char_index_offset.
21613 (syms_of_charset): Fix args to Fdefine_charset_internal.
21614
216152008-02-01 Dave Love <fx@gnu.org>
21616
21617 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21618
216192008-02-01 Dave Love <fx@gnu.org>
21620
21621 * coding.c: Doc fixes.
21622 (Fcoding_system_aliases): Fix return value.
21623 (Qmac): Remove (duplicated) definition.
21624
216252008-02-01 Dave Love <fx@gnu.org>
21626
362654a6
JB
21627 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21628 New functions.
aac0c6e3
MR
21629
21630 * character.c (Fstring): Doc fix.
21631
21632 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21633
362654a6 21634 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21635 (font-encoding-alist): Doc fix.
21636
216372008-02-01 Dave Love <fx@gnu.org>
21638
21639 * term.c (costs_set): Declare static, non-initialized for pcc.
21640 (encode_terminal_code): Remove unused var.
21641
21642 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21643 for K&R.
21644
21645 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21646
21647 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21648 (suffixes): Move out of make_subsidiaries for K&R.
21649
21650 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21651
21652 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21653
216542008-02-01 Dave Love <fx@gnu.org>
21655
21656 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21657
21658 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21659
216602008-02-01 Yong Lu <lyongu@asia-infonet.com>
21661
21662 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21663
21664 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21665
216662008-02-01 Kenichi Handa <handa@m17n.org>
21667
21668 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21669 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21670
216712008-02-01 Kenichi Handa <handa@m17n.org>
21672
21673 * coding.c (decode_coding_charset): Adjust for the change of
21674 Fdefine_coding_system_internal.
21675 (Fdefine_coding_system_internal): For a coding system of
21676 `charset' type, store a list of charset IDs in
21677 `charset_attr_charset_valids' element of coding attributes.
21678
216792008-02-01 Kenichi Handa <handa@m17n.org>
21680
21681 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21682 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21683 caller. Handle 2-byte and 3-byte charsets correctly.
21684 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21685 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21686 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21687 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21688 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21689 sequence.
21690 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21691 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21692 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21693 and alt&rule composition.
21694 (decode_coding_iso_2022): Handle composition correctly.
21695 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21696
21697 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21698 re-defining a charset. If the charset has :emacs-mule-id, setup
21699 emacs_mule_bytes.
21700 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21701
217022008-02-01 Kenichi Handa <handa@m17n.org>
21703
21704 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21705 (encode_coding_big5, encode_coding_charset): If coding requires safe
21706 encoding, produce a character specified by
21707 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21708
217092008-02-01 Dave Love <fx@gnu.org>
21710
21711 * xterm.c (XSetIMValues): Declare.
21712
21713 * process.c: Conditionally include sys/wait.h, pty.h.
21714
21715 * print.c (print_object): Fix print format for 64-bit systems.
21716
21717 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21718
21719 * buffer.c (emacs_strerror): Declare.
21720
21721 * fontset.c (Fclear_face_cache): Declare.
21722 (accumulate_font_info): Comment-out (unused).
21723 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21724 variables.
21725
21726 * character.h (string_escape_byte8): Declare.
21727
21728 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21729 unused vars.
21730 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21731 (Fmap_charset_chars): Doc fix.
21732
21733 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21734 (Fset_coding_system_priority, Fset_coding_system_priority)
21735 (Fdefine_coding_system_internal): Doc fix.
21736
217372008-02-01 Dave Love <fx@gnu.org>
21738
21739 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21740
217412008-02-01 Kenichi Handa <handa@m17n.org>
21742
21743 * character.c (string_escape_byte8): Make multibyte string with
21744 correct size.
21745
21746 * charset.c (Fmake_char): Delete unnecessary code.
21747
217482008-02-01 Kenichi Handa <handa@m17n.org>
21749
21750 * xfns.c (x_encode_text): Allocate coding.destination here, and
21751 call encode_coding_object with dst_object Qnil.
21752
21753 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21754 multibyte form correctly.
21755
21756 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21757 against Vfont_encoding_alist.
21758
21759 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21760 handling of charset list.
21761 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21762 (decode_coding_object): Move point to coding->dst_pos before
21763 calling post-read-conversion function.
21764 (encode_coding_object): Give correct arguments to
21765 pre-write-conversion. Ignore the return value of
21766 pre-write-conversion function. Pay attention to the case that
21767 pre-write-conversion changes the current buffer. If dst_object is
21768 Qt, even if coding->src_bytes is zero, allocate at least one byte
21769 to coding->destination.
21770
21771 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21772
21773 * charset.c (Fmake_char): Make it more backward compatible.
21774 (Fmap_charset_chars): Fix docstring.
21775
217762008-02-01 Dave Love <fx@gnu.org>
21777
21778 * coding.c: Doc fixes.
21779 (Fdefine_coding_system_alias): Use names, not symbols, in
21780 coding-system-alist.
21781
217822008-02-01 Kenichi Handa <handa@m17n.org>
21783
21784 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21785 of calling free_realized_face.
21786
217872008-02-01 Yong Lu <lyongu@asia-infonet.com>
21788
21789 * charset.c (read_hex): Don't treat SPC as a comment starter.
21790 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21791 (Fdecode_char): Fix typo.
21792
217932008-02-01 Kenichi Handa <handa@m17n.org>
21794
21795 * charset.h (struct charset): New member `code_space_mask'.
21796
21797 * coding.c (coding_set_source): Delete the local variable beg_byte.
21798 (encode_coding_charset, Fdefine_coding_system_internal):
21799 Delete the local variable charset.
21800 (Fdefine_coding_system_internal): Setup
21801 attrs[coding_attr_charset_valids] correctly.
21802
21803 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21804 member to check if CODE is valid or not.
21805 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21806 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21807 is within the range of charset->min_code and carset->max_code.
21808
218092008-02-01 Dave Love <fx@gnu.org>
21810
21811 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21812
21813 * dispextern.h (generate_ascii_font): Fix return type.
21814
21815 * xfaces.c (generate_ascii_font): Fix arg declaration.
21816
21817 * coding.c (coding_inherit_eol_type)
21818 (Fset_terminal_coding_system_internal)
21819 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21820
218212008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21824 multiple charsets correctly.
21825
218262008-02-01 Kenichi Handa <handa@m17n.org>
21827
21828 * search.c (boyer_moore): Fix handling of multibyte character
21829 translation.
21830
21831 * xdisp.c (display_mode_element): When the variable `elt' is
21832 changed, update `this' and `lisp_string'.
21833
218342008-02-01 Kenichi Handa <handa@m17n.org>
21835
21836 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21837
21838 * callproc.c (Fcall_process): Be sure to give the current buffer
21839 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21840
21841 * charset.c (struct charset_map_entries): New struct.
21842 (load_charset_map): Rename from parse_charset_map. New args
21843 entries and n_entries. Change caller.
21844 (load_charset_map_from_file): Rename from load_charset_map.
21845 Change caller. New arg control_flag. Call load_charset_map at
21846 the tail.
21847 (load_charset_map_from_vector): New function.
21848 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21849 (encode_char): If the charset is compact, change a character index
21850 to a code point.
21851
21852 * coding.c (coding_alloc_by_making_gap): Check the case that the
21853 source and destination are the same correctly.
21854 (decode_coding_raw_text): Set coding->consumed_char and
21855 coding->consumed to 0.
21856 (produce_chars): If coding->chars_at_source is nonzero, update
21857 coding->consumed_char and coding->consumed before calling
21858 alloc_destination.
21859 (Fdefine_coding_system_alias): Register ALIAS in
21860 Vcoding_system_alist.
21861 (syms_of_coding): Define `no-conversion' coding system at the tail.
21862
21863 * fileio.c (Finsert_file_contents): Set coding_system instead of
21864 val. If the current buffer is multibyte, always call
21865 decode_coding_gap.
21866
21867 * xfaces.c (try_font_list): Give higher priority to fontset's
21868 family than face's family.
21869
218702008-02-01 Kenichi Handa <handa@m17n.org>
21871
21872 * callproc.c (Fcall_process): Be sure to give the current buffer
21873 to decode_coding_c_string.
21874
21875 * xfaces.c (try_font_list): Give a family specified in a fontset
21876 higher priority than a family specified in a face.
21877
218782008-02-01 Kenichi Handa <handa@m17n.org>
21879
21880 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21881 Fix arguments to insert_from_buffer.
21882
21883 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21884
218852008-02-01 Kenichi Handa <handa@m17n.org>
21886
21887 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21888 (decode_coding_gap): Set coding->dst_multibyte correctly.
21889
218902008-02-01 Kenichi Handa <handa@m17n.org>
21891
21892 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21893 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21894 (encode_coding_utf_16): Substitute coding->default_char for
21895 non-Unicode characters.
21896 (decode_coding): Don't call record_insert here.
21897 (setup_coding_system): Initialize `surrogate' of
21898 coding->spec.utf_16 to 0.
21899 (EMIT_ONE_BYTE): Fix for multibyte case.
21900
21901 * insdel.c (insert_from_gap): Call record_insert.
21902
219032008-02-01 Kenichi Handa <handa@m17n.org>
21904
21905 * casefiddle.c (casify_region): Fix multibyte case.
21906
21907 * character.c (c_string_width): Add return type `int'.
21908 (char_string_with_unification): Delete arg ADVANCED.
21909
21910 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21911 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21912 (CHAR_STRING_ADVANCE): Make it do-while statement.
21913
21914 * chartab.c (sub_char_table_set_range): Optimize for the case
21915 DEPTH == 3. Add workaround code for a GCC optimization bug.
21916
21917 * charset.c (parse_charset_map): Remove an unused variable.
21918
21919 * coding.c: Delete unused variables.
21920
21921 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21922 earlier. If inserted is zero and the coding system doesn't
21923 require flushing, don't call decode_coding_gap.
21924
21925 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21926
219272008-02-01 Kenichi Handa <handa@m17n.org>
21928
21929 The following changes are for using Unicode as an internal
21930 character model, and use UTF-8 format for buffer/string
21931 representation.
21932
21933 * .gdbinit (xchartable): Adjust for the change of char table structure.
21934 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21935
21936 * Makefile.in (obj): Add character.o and chartab.o.
21937 (lisp, shortlisp): Remove utf-8.elc.
21938 (*.o): For many files, change dependency on charset.h to
21939 character.h, and add dependency on character.h.
21940 (character.o, chartab.o): New targets.
21941
21942 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21943 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21944 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21945 of "charset.h".
21946
21947 * dired.c, filelock.c: Include "character.h".
21948
21949 * alloc.c: Include "character.h" instead of "charset.h".
21950 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21951 (syms_of_alloc): Remove defsubr for Smake_char_table.
21952
21953 * buffer.c: Include "character.h" instead of "charset.h", don't
21954 include "coding.h".
21955 (Fset_buffer_multibyte): Adjust for UTF-8.
21956
21957 * buffer.h: EXFUN Fbuffer_live_p.
21958
21959 * callproc.c: Include "character.h" instead of "charset.h".
21960 (Fcall_process): Big change for the new code-conversion APIs.
21961
21962 * casetab.c: Include "character.h" instead of "charset.h".
21963 (set_canon, set_identity, shuffle): Adjust for the new
21964 map_char_table spec.
21965 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21966 accessing the char table structure.
21967
21968 * chartab.c: New file that implements char table.
21969
21970 * category.c: Include "character.h".
21971 (copy_category_entry): New function.
21972 (copy_category_table): Call map_char_table and copy_category_entry.
21973 (Fmake_category_table): Initialize all top-level slots.
21974 (char_category_set): New function.
21975 (modify_lower_category_set): Delete.
21976 (Fmodify_category_entry): Call char_table_ref_and_range.
21977
21978 * category.h (CATEGORY_SET): Just call char_category_set.
21979
21980 * ccl.c: Include "character.h".
21981 (Qccl, Qcclp): New variables.
21982 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21983 it's less than 256.
21984 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21985 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21986 and DST type.
21987 (ccl_driver): Change types of argument, adjust code accordingly.
21988 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21989 ccl_driver.
21990 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21991
21992 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21993 New members src_multibyte, dst_multibyte, consumed, and produced.
21994 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21995 (CODING_SPEC_CCL_PROGRAM): New macro.
21996 (ccl_driver): Update prototype.
21997 (Qccl, Qcclp, Fccl_program_p): Extern them.
21998 (CHECK_CCL_PROGRAM): New macro.
21999
22000 * character.c, character.h, chartab.c: New files.
22001
22002 * charset.c: Mostly re-written. Move character and multibyte sequence
22003 handling codes to character.c.
22004
22005 * charset.h: Mostly re-written. Move character and multibyte sequence
22006 handling codes to character.h.
22007
22008 * coding.c, coding.h: Mostly re-written.
22009
22010 * composite.c: Include "character.h" instead of "charset.h".
22011 (CHAR_WIDTH): Move to character.h.
22012 (HASH_KEY, HASH_VALUE): Delete.
22013
22014 * composite.h (enum composition_method): Change order of enumeration
22015 symbols.
22016
22017 * data.c: Include "character.h" instead of "charset.h".
22018 (Faref): Call CHAR_TABLE_REF for a char table.
22019 (Faset): Call CHAR_TABLE_SET for a char table.
22020
22021 * dispextern.h (free_realized_face, check_face_attribytes)
22022 (generate_ascii_font): Extern them.
22023 (free_realized_multibyte_face): Delete extern.
22024
22025 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22026 table structure.
22027
22028 * editfns.c: Include "character.h" instead of "charset.h".
22029 (Fchar_to_string): Always call CHAR_STRING.
22030
22031 * emacs.c (main): Call init_charset_once, init_charset,
22032 syms_of_chartab, and syms_of_character.
22033
22034 * fileio.c: Include "character.h" instead of "charset.h".
22035 (Finsert_file_contents): Big change for the new code-conversion API.
22036 (choose_write_coding_system, Fwrite_region): Likewise.
22037 (build_annotations_2): Delete.
22038 (e_write): Big change for the new code-conversion API.
22039
22040 * fns.c: Include "character.h" instead of "charset.h".
22041 (copy_sub_char_table): Move to chartab.c.
22042 (Fcopy_sequence): Call copy_char_table for a char table.
22043 (concat): Delete codes calling count_multibyte.
22044 (string_char_to_byte, string_byte_to_char): Adjust for the new
22045 multibyte form.
22046 (internal_equal): Adjust for the change of char table structure.
22047 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22048 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22049 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22050 (char_table_translate, optimize_sub_char_table)
22051 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22052 chartab.c.
22053 (char_table_ref_and_index): Delete.
22054 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22055 (Fmd5): Call preferred_coding_system instead of accessing
22056 Vcoding_category_list. Adjust for the new code-conversion API.
22057 (syms_of_fns): Move defsubr for char table related functions to
22058 chartab.c.
22059
22060 * fontset.c: Mostly re-written.
22061
22062 * fontset.h (struct font_info): Change type of the member encoding_type.
22063 (enum FONT_SPEC_INDEX): New enum.
22064 (fontset_font_pattern, fs_load_font): Update prototype.
22065 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22066
22067 * indent.c: Include "character.h" instead of "charset.h".
22068 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22069
22070 * insdel.c: Include "character.h" instead of "charset.h".
22071 (copy_text): Don't refer to Vnonascii_translation_table.
22072 (insert_from_gap): New function.
22073
22074 * keyboard.c: Include "character.h" instead of "charset.h".
22075 (command_loop_1): Never call direct_output_forward_char before
22076 a non-ASCII character.
22077 (read_char): If Vkeyboard_translate_table is a char table, always
22078 translate a character.
22079
22080 * keymap.c: Include "character.h".
22081 (store_in_keymap): Handle the case that IDX is a cons.
22082 (Fdefine_key): Handle the case that KEY is a cons and the car part
22083 is also a cons (range).
22084 (push_key_description): Adjust for the new character code.
22085 (describe_vector): Call describe_char_table for a char table.
22086 (describe_char_table): New function.
22087
22088 * keymap.h (describe_char_table): Extern it.
22089
22090 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22091 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22092 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22093 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22094 Delete.
22095 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22096 structure.
22097 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22098 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22099 (CHARTAB_SIZE_BITS_3): New macros.
22100 (chartab_size): Extern it.
22101 (struct Lisp_Char_Table): Re-design.
22102 (struct Lisp_Sub_Char_Table): New structure.
22103 (HASH_KEY, HASH_VALUE): Move from fns.c.
22104 (CHARACTERBITS): Define as 22.
22105 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22106 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22107 (GC_SUB_CHAR_TABLE_P): New macro.
22108 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22109 (code_convert_string_norecord): Deleted extern.
22110 (init_character_once, syms_of_character, init_charset)
22111 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22112
22113 * lread.c: Include "character.h".
22114 (read_multibyte): New arg NBYTES.
22115 (read_escape): Change the meaning of returned *BYTEREP.
22116 (to_multibyte): Delete.
22117 (read1): Adjust the handling of char table and string.
22118
22119 * print.c: Include "character.h" instead of "charset.h".
22120 (print_string): Convert 8-bit raw bytes to octal form by
22121 string_escape_byte8.
22122 (print_object): Adjust for the new multibyte form. Print 8-bit
22123 raw bytes always in octal form. Handle sub char table correctly.
22124
22125 * process.c: Include "character.h" instead of "charset.h".
22126 (read_process_output, send_process): Adjust for the new
22127 code-conversion API.
22128
22129 * puresize.h (BASE_PURESIZE): Increase.
22130
22131 * regex.c: Include "character.h" instead of "charset.h".
22132 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22133 (regex_compile): Accept a range whose starting and ending
22134 character have different leading bytes.
22135 (analyse_first): Adjust for the above change.
22136
22137 * search.c: Include "character.h" instead of "charset.h".
22138 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22139 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22140
22141 * syntax.c: Include "character.h" instead of "charset.h".
22142 (syntax_parent_lookup): Delete.
22143 (Fmodify_syntax_entry): Accept a cons as CHAR.
22144 (skip_chars): Adjust for the new multibyte form.
22145 (init_syntax_once): Call char_table_set_range instead of directly
22146 accessing the structure of a char table.
22147
22148 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22149 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22150 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22151 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22152
22153 * term.c: Include "buffer.h" and "character.h".
22154 (encode_terminal_code, write_glyphs): Adjust for the new
22155 code-conversion API.
22156 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22157
22158 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22159
22160 * xdisp.c: Include "character.h".
22161 (get_next_display_element): Adjust for the new multibyte form.
22162 (disp_char_vector): Adjust for the new char table structure.
22163 (decode_mode_spec_coding): Adjust for the new structure of
22164 coding system.
22165 (decode_mode_spec): Adjust for the new code-conversion API.
22166
22167 * xfaces.c: Include "character.h" instead of "charset.h".
22168 (load_face_font): Adjust for the change of choose_face_font and
22169 FS_LOAD_FONT.
22170 (generate_ascii_font): New function.
22171 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22172 (set_font_frame_param): Adjust for the change of choose_face_font.
22173 (free_realized_face): Make it public.
22174 (free_realized_faces_for_fontset): Rename from
22175 free_realized_multibyte_face. Free also faces realized for ASCII.
22176 (choose_face_font): Change arguments. Adjust for the change of
22177 fontset_font_pattern and FS_LOAD_FONT.
22178
22179 * xfns.c: Include "character.h".
22180 (x_encode_text): Adjust for the new code-conversion API.
22181
22182 * xselect.c: Don't include "charset.h".
22183 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22184
22185 * xterm.c: Include "character.h".
22186 (x_encode_char): New argument CHARSET. Change caller.
22187 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22188 Call ENCODE_CHAR instead of SPLIT_CHAR.
22189 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22190 CHAR_WIDTH instead of CHARSET_WIDTH.
22191 (XTread_socket): Adjust for the new code-conversion API.
22192 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22193 (x_load_font): Adjust for the change of struct font.
22194
221952008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22196
22197 * xfaces.c (face_at_buffer_position): Remove unused vars.
22198
221992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22200
22201 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22202 Fix overflow checking.
22203
222042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22205
22206 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22207 Cancel previous change.
22208
222092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22210
22211 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22212 ccl->eight_bit_control. Fix check for buffer overflow.
22213 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22214 (ccl_driver): Initialize extra_bytes to 0.
22215
222162008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22217
22218 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22219 return it ORed with ctrl_modifier.
22220
222212008-01-29 Miles Bader <miles@gnu.org>
22222
22223 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22224
222252008-01-28 Jason Rumney <jasonr@gnu.org>
22226
22227 * w32.c (stat): Don't double check for networked drive.
22228
222292008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22230
22231 * window.c (run_window_configuration_change_hook): New function.
22232 Code extracted from set_window_buffer. Set the selected frame.
22233 (set_window_buffer): Use it.
22234 * window.h (run_window_configuration_change_hook): Declare.
22235 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22236
22237 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22238
222392008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22240
22241 * Makefile.in: Remove references to unused macros.
22242
222432008-01-26 Eli Zaretskii <eliz@gnu.org>
22244
22245 * w32.c (g_b_init_get_sid_sub_authority)
22246 (g_b_init_get_sid_sub_authority_count): New static variables.
22247 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22248 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22249 (init_user_info): Use them to retrieve uid and gid.
22250 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22251 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22252 st_uid and st_gid of the file.
22253
222542008-01-26 Jason Rumney <jasonr@gnu.org>
22255
22256 * w32.c (logon_network_drive): New function.
22257 (stat): Use it.
22258
222592008-01-26 Chong Yidong <cyd@stupidchicken.com>
22260
22261 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22262 invisible text covered with an ellipsis.
22263
222642008-01-25 Richard Stallman <rms@gnu.org>
22265
22266 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22267 jump back to beginning. Move some other initializations after that.
22268 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22269 New variables.
22270 (syms_of_xdisp): Init them.
22271
22272 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22273
22274 * buffer.c (reset_buffer_local_variables):
22275 Implement `permanent-local-hook'.
22276 (Qpermanent_local_hook): New variable.
22277 (syms_of_buffer): Init and staticpro it.
22278
222792008-01-25 Michael Albinus <michael.albinus@gmx.de>
22280
22281 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22282
222832008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22284
22285 * fns.c (Fclrhash): Return TABLE.
22286
222872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22288
22289 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22290 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22291 is set even without positional changes.
22292 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22293
22294 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22295
222962008-01-23 Jason Rumney <jasonr@gnu.org>
22297
22298 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22299
22300 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22301 the unicode range available in MULE by locale-coding-system.
22302 Improve dbcs lead byte detection. Set event timestamp and modifiers
22303 earlier.
22304
223052008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22306
22307 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22308 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22309 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22310 when used on child processes.
22311
223122008-01-21 Michael Albinus <michael.albinus@gmx.de>
22313
22314 * dbusbind.c (Fdbus_method_return_internal): Rename from
22315 Fdbus_method_return.
22316 (Fdbus_unregister_object): Move to dbus.el.
22317 (Fdbus_call_method, Fdbus_method_return_internal)
22318 (Fdbus_send_signal): Improve debug messages.
22319
223202008-01-20 Martin Rudalics <rudalics@gmx.at>
22321
22322 * undo.c (undo_inhibit_record_point): New variable.
22323 (syms_of_undo): Initialize it.
22324 (record_point): Don't record point when undo_inhibit_record_point
22325 is set.
22326
223272008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22328
22329 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22330
22331 * xdisp.c (Qauto_hscroll_mode): New var.
22332 (syms_of_xdisp): Initialize it.
22333 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22334 window's buffer.
22335 (hscroll_windows): Don't check automatic_hscrolling_p here.
22336
22337 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22338 vscroll if we're setting window-buffer to the value it already has.
22339
223402008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22341
22342 * m/intel386.h: Remove references to XENIX.
22343
223442008-01-17 Andreas Schwab <schwab@suse.de>
22345
22346 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22347 instead of HAVE_X86_64_LIB64_DIR.
22348 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22349
223502008-01-17 Glenn Morris <rgm@gnu.org>
22351
22352 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22353 to HAVE_X86_64_LIB64_DIR.
22354
223552008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22356
22357 * s/irix3-3.h:
22358 * s/irix4-0.h:
22359 * s/386-ix.h:
22360 * s/domain.h:
22361 * s/hpux9-x11r4.h:
22362 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22363
22364 * sysdep.c: Remove code containing references to symbols defined
22365 by unsupported systems.
22366
223672008-01-16 Glenn Morris <rgm@gnu.org>
22368
22369 * coding.c (select-safe-coding-system-function): Doc fix.
22370
223712008-01-15 Glenn Morris <rgm@gnu.org>
22372
22373 * config.in: Revert 2008-01-13 change: this is a generated file.
22374
223752008-01-13 Tom Tromey <tromey@redhat.com>
22376
22377 * lisp.h: Fix typo.
22378
223792008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22380
22381 * m/sequent-ptx.h:
22382 * m/sequent.h:
22383 * s/ptx.h:
22384 * s/ptx4-2.h:
22385 * s/ptx4.h: Remove files for systems no longer supported.
22386
22387 * callproc.c (Fcall_process): Fix previous change.
22388
223892008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22390
22391 * unexsunos4.c: Remove file, system not supported anymore.
22392
22393 * m/mips.h:
22394 * m/intel386.h:
22395 * callproc.c:
22396 * config.in:
22397 * ecrt0.c:
22398 * emacs.c:
22399 * fileio.c:
22400 * frame.c:
22401 * getpagesize.h:
22402 * keyboard.c:
22403 * lread.c:
22404 * process.c:
22405 * puresize.h:
22406 * sysdep.c:
22407 * systty.h:
22408 * syswait.h:
22409 * unexec.c:
22410 * xdisp.c:
22411 * alloc.c: Remove code containing references to symbols defined by
22412 unsupported systems.
22413
224142008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22415
22416 * coding.c (detect_coding_mask): Fix previous change.
22417
224182008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22419
22420 * coding.c (detect_coding_iso2022): New arg
22421 latin_extra_code_state. Allow Latin extra codes only
22422 when *latin_extra_code_state is nonzero.
22423 (detect_coding_mask): If there is a NULL byte, detect the encoding
22424 as UTF-16 or binary. If Latin extra codes exist, detect the
22425 encoding as ISO-2022 only when there's no other proper encoding is
22426 found.
22427
224282008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22429
22430 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22431 #ifdef MAC_OS.
22432
224332008-01-08 Richard Stallman <rms@gnu.org>
22434
22435 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22436
224372008-01-06 Nick Roberts <nickrob@snap.net.nz>
22438
22439 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22440 menu bar in parentheses.
22441
224422008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22443
22444 * m/7300.h:
22445 * m/acorn.h:
22446 * m/alliant-2800.h:
22447 * m/alliant.h:
22448 * m/alliant1.h:
22449 * m/alliant4.h:
22450 * m/altos.h:
22451 * m/amdahl.h:
22452 * m/apollo.h:
22453 * m/att3b.h:
22454 * m/aviion-intel.h:
22455 * m/aviion.h:
22456 * m/celerity.h:
22457 * m/clipper.h:
22458 * m/cnvrgnt.h:
22459 * m/convex.h:
22460 * m/cydra5.h:
22461 * m/delta88k.h:
22462 * m/dpx2.h:
22463 * m/dual.h:
22464 * m/elxsi.h:
22465 * m/f301.h:
22466 * m/gould-np1.h:
22467 * m/gould.h:
22468 * m/i860.h:
22469 * m/ibmps2-aix.h:
22470 * m/ibmrt-aix.h:
22471 * m/ibmrt.h:
22472 * m/irist.h:
22473 * m/is386.h:
22474 * m/isi-ov.h:
22475 * m/mega68.h:
22476 * m/mg1.h:
22477 * m/news-r6.h:
22478 * m/news-risc.h:
22479 * m/news.h:
22480 * m/nh3000.h:
22481 * m/nh4000.h:
22482 * m/ns16000.h:
22483 * m/ns32000.h:
22484 * m/nu.h:
22485 * m/orion.h:
22486 * m/orion105.h:
22487 * m/paragon.h:
22488 * m/pfa50.h:
22489 * m/plexus.h:
22490 * m/pyramid.h:
22491 * m/pyrmips.h:
22492 * m/sh3el.h:
22493 * m/sps7.h:
22494 * m/sr2k.h:
22495 * m/stride.h:
22496 * m/sun1.h:
22497 * m/sun2.h:
22498 * m/sun3-68881.h:
22499 * m/sun3-fpa.h:
22500 * m/sun3-soft.h:
22501 * m/sun3.h:
22502 * m/sun386.h:
22503 * m/symmetry.h:
22504 * m/tad68k.h:
22505 * m/tahoe.h:
22506 * m/targon31.h:
22507 * m/tek4300.h:
22508 * m/tekxd88.h:
22509 * m/tower32.h:
22510 * m/tower32v3.h:
22511 * m/ustation.h:
22512 * m/wicat.h:
22513 * m/xps100.h:
22514 * s/cxux.h:
22515 * s/cxux7.h:
22516 * s/dgux.h:
22517 * s/dgux4.h:
22518 * s/dgux5-4-3.h:
22519 * s/dgux5-4r2.h:
22520 * s/esix.h:
22521 * s/esix5r4.h:
22522 * s/hiuxmpp.h:
22523 * s/hiuxwe2.h:
22524 * s/iris3-5.h:
22525 * s/iris3-6.h:
22526 * s/isc2-2.h:
22527 * s/isc3-0.h:
22528 * s/isc4-0.h:
22529 * s/isc4-1.h:
22530 * s/newsos5.h:
22531 * s/newsos6.h:
22532 * s/osf1.h:
22533 * s/osf5-0.h:
22534 * s/riscix1-1.h:
22535 * s/riscix12.h:
22536 * s/sco4.h:
22537 * s/sco5.h:
22538 * s/sunos4-0.h:
22539 * s/sunos4-1.h:
22540 * s/sunos413.h:
22541 * s/sunos4shr.h:
22542 * s/umax.h:
22543 * s/unipl5-2.h:
22544 * s/xenix.h:
22545 * cxux-crt0.s:
22546 * unexapollo.c:
22547 * unexconvex.c:
22548 * unexenix.c:
22549 * unexsni.c: Remove files for systems no longer supported.
22550
22551 * m/intel386.h: Remove references to unsupported systems.
22552
22553 * w32.c (get_emacs_configuration): Remove reference to i860.
22554
22555 * sysdep.c: Remove dead code.
22556
225572008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22558
22559 * s/rtu.h:
22560 * m/masscomp.h: Remove files. Platform is obsolete.
22561
225622008-01-04 Michael Albinus <michael.albinus@gmx.de>
22563
22564 * dbusbind.c (Fdbus_method_return): New function.
22565 (xd_read_message): Add the serial number to the event.
22566 (Fdbus_register_method): Activate the function.
22567
225682008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22569
22570 * keyboard.c (read_key_sequence): Fix typo.
22571
225722008-01-03 Michael Albinus <michael.albinus@gmx.de>
22573
22574 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22575 (xd_signature, xd_append_arg): Handle element type detection for
22576 empty arrays.
22577 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22578 SDATA () calls; this must be solved more general.
22579 (Fdbus_register_signal): Use SBYTES instead of strlen.
22580
225812008-01-03 Magnus Henoch <magnus@zemdatav>
22582
22583 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22584 unsigned int for byte values (necessary for big-endian platform).
22585 (Fdbus_call_method): Handle the case of no returned arguments.
22586
225872007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22588
22589 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22590
225912007-12-31 Magnus Henoch <mange@freemail.hu>
22592
22593 * dbusbind.c (xd_signature): Signature of variant is just "v".
22594
225952007-12-30 Michael Albinus <michael.albinus@gmx.de>
22596
22597 * dbusbind.c: Fix several errors and compiler warnings.
22598 Reported by Tom Tromey <tromey@redhat.com>.
22599 (XD_ERROR, XD_DEBUG_MESSAGE)
22600 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22601 (xd_append_arg): Part for basic D-Bus types rewritten.
22602 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22603 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22604 appropriate.
22605 (xd_read_message): Return Qnil. Don't signal an error; it is not
22606 useful during event reading.
22607 (Fdbus_register_signal): Signal an error if the check for
22608 FUNCTIONP fails.
22609 (Fdbus_register_method): New function. The implementation is not
22610 complete, the call of the function signals an error therefore.
22611 (Fdbus_unregister_object): New function, renamed from
22612 Fdbus_unregister_signal. The initial check signals an error, if
22613 the object is not well formed.
22614
226152007-12-30 Richard Stallman <rms@gnu.org>
22616
22617 * textprop.c (get_char_property_and_overlay):
22618 Signal error if POSITION is out of range in a buffer.
22619
226202007-12-29 Martin Rudalics <rudalics@gmx.at>
22621
22622 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22623 because the original parameters are in pure storage now.
22624
226252007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22626
22627 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22628
226292007-12-22 Eli Zaretskii <eliz@gnu.org>
22630
22631 * callint.c (syms_of_callint) <command-history>: Add reference to
22632 history-length in the doc string.
22633
226342007-12-17 Jason Rumney <jasonr@gnu.org>
22635
22636 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22637 before passing as wParam.
22638
226392007-12-22 Michael Albinus <michael.albinus@gmx.de>
22640
22641 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22642 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22643 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22644 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22645 as number.
22646 (Fdbus_call_method): Fix docstring.
22647
226482007-12-21 Michael Albinus <michael.albinus@gmx.de>
22649
22650 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22651 New macros.
22652 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22653 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22654 Simplify.
22655 (xd_signature): New function.
22656 (xd_append_arg): Compute also signatures. Major rewrite.
22657 (xd_retrieve_arg): Make debug messages friendly.
22658 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22659 Check for signatures of arguments.
22660
226612007-12-19 Michael Albinus <michael.albinus@gmx.de>
22662
22663 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22664 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22665 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22666 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22667 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22668 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22669 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22670 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22671 (xd_retrieve_value): Remove. Functionality included in ...
22672 (xd_append_arg): New function.
22673 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22674
226752007-12-16 Michael Albinus <michael.albinus@gmx.de>
22676
22677 * dbusbind.c (top): Include <stdio.h>.
22678 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22679 dbus_message_new_method_call and dbus_message_new_signal.
22680 (Fdbus_register_signal): Rename unique_name to uname.
22681 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22682 non-existing unique name. Fix typos in matching rule. Return an
22683 object which is useful in Fdbus_unregister_signal.
22684 (Fdbus_unregister_signal): Reimplementation, in order to remove
22685 only the corresponding entry.
22686 (Vdbus_registered_functions_table): Change the order of entries.
22687 Apply these changes in xd_read_message and Fdbus_register_signal.
22688
226892007-12-16 Andreas Schwab <schwab@suse.de>
22690
22691 * fileio.c (Finsert_file_contents): Fix overflow check to not
22692 depend on undefined integer overflow.
22693
226942007-12-14 Jason Rumney <jasonr@gnu.org>
22695
22696 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22697 for characters above 127.
22698
226992007-12-13 Jason Rumney <jasonr@gnu.org>
22700
22701 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22702 before dereferencing array.
22703 (lookup_vk_code): Remove zero comparison.
22704
227052007-12-14 Michael Albinus <michael.albinus@gmx.de>
22706
22707 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22708 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22709 Use `unsigned int' instead of `uint'.
22710 (xd_read_message, Fdbus_register_signal): Split expressions into
22711 multiple lines before operators "&&" and "||", according to the
22712 GNU Coding Standards.
22713
227142007-12-14 Eli Zaretskii <eliz@gnu.org>
22715
22716 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22717
227182007-12-12 Juri Linkov <juri@jurta.org>
22719
22720 * buffer.c (Frename_buffer): In interactive spec replace
22721 `read-buffer' with `read-string' that uses `buffer-name-history'
22722 as history, and the current buffer's name as default.
22723
227242007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22725
22726 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22727 manipulating the backtrace manually.
22728 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22729 (struct backtrace, backtrace_list): Remove.
22730 (command_loop_1): Remove dead var `no_direct'.
22731
22732 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22733 preserve non-built-in buffer-local variables.
22734 (Fkill_all_local_variables): Don't re-create&re-set permanent
22735 buffer-local variables.
22736
227372007-12-09 Juri Linkov <juri@jurta.org>
22738
22739 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22740 Lisp code that uses `read-buffer' with current buffer as default.
22741
227422007-12-08 Michael Albinus <michael.albinus@gmx.de>
22743
22744 * dbusbind.c (xd_read_message): Generate an event for every
22745 registered handler. There might be several handlers registered
22746 for the same signal.
22747 (Fdbus_register_signal): Don't overwrite a registration for the
22748 same signal. Add a new registration if handlers are different.
22749 (Vdbus_registered_functions_table): Rework doc string.
22750
227512007-12-07 Michael Albinus <michael.albinus@gmx.de>
22752
22753 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22754 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22755 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22756 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22757 Unify argument lists.
22758 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22759 arguments and hash table keys. Use unique name for service.
22760 (Fdbus_unregister_signal): Remove checks.
22761 (Vdbus_registered_functions_table): Fix doc string.
22762
227632007-12-05 Magnus Henoch <mange@freemail.hu>
22764
22765 * process.c (make_process): Initialize pty_flag to 0.
22766
227672007-12-05 Jason Rumney <jasonr@gnu.org>
22768
22769 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22770 specified XBMs.
22771
227722007-12-05 Richard Stallman <rms@gnu.org>
22773
22774 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22775
227762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22777
22778 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22779 New variable.
22780 (mac_try_close_socket) [MAC_OSX]: New function.
22781 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22782 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22783
22784 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22785 Use mac_try_close_socket.
22786
227872007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22788
22789 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22790 reloc_base.
22791 (copy_dysymtab): Compute relocation base here.
22792 (rebase_reloc_address) [__ppc64__]: New function.
22793 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22794 changed.
22795
227962007-12-05 Jason Rumney <jasonr@gnu.org>
22797
22798 * w32proc.c (sys_spawnve): Quote args with wildcards.
22799
228002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22801
22802 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22803 __objc_* sections.
22804 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22805
228062007-12-05 Michael Albinus <michael.albinus@gmx.de>
22807
22808 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22809 Move check for Vdbus_registered_functions_table to
22810 xd_read_queued_messages.
22811 (xd_read_queued_messages): Protect xd_read_message calls by
22812 internal_condition_case_1.
22813
228142007-12-04 Michael Albinus <michael.albinus@gmx.de>
22815
22816 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22817 Qdbus_system_bus and Qdbus_session_bus, respectively.
22818 (Vdbus_intern_symbols): Remove.
22819 (Vdbus_registered_functions_table): New hash table.
22820 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22821 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22822 Rewrite in order to manage registered functions by hash table
22823 Vdbus_registered_functions_table.
22824
228252007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22826
22827 * xterm.c: Update URL to Window Manager Specification in comment.
22828
228292007-12-02 Michael Albinus <michael.albinus@gmx.de>
22830
22831 * config.in (HAVE_DBUS): Add.
22832
22833 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22834 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22835 (obj): Add $(DBUS_OBJ).
22836 (LIBES): Add $(DBUS_LIBS).
22837 (dbusbind.o): New target.
22838
22839 * dbusbind.c: New file.
22840
22841 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22842
22843 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22844 (Qdbus_event): New Lisp symbol.
22845 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22846 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22847 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22848
22849 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22850
228512007-12-01 Richard Stallman <rms@gnu.org>
22852
22853 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22854
228552007-11-30 Jason Rumney <jasonr@gnu.org>
22856
22857 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22858 (w32con_reset_terminal_modes): Clear screen buffer.
22859 (w32_face_attributes): Don't use color indexes that are out of range.
22860 Only reverse the default colors.
22861
22862 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22863 WINDOWSNT.
22864
22865 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22866
228672007-11-29 Jason Rumney <jasonr@gnu.org>
22868
22869 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22870 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22871 if the terminal colors are initialized.
22872 (unspecified_fg, unspecified_bg): Remove unused declarations.
22873
228742007-11-29 Andreas Schwab <schwab@suse.de>
22875
22876 * keyboard.c (apply_modifiers): Fix typo.
22877
228782007-11-29 Richard Stallman <rms@gnu.org>
22879
22880 * keymap.c (Fcurrent_local_map): Doc fix.
22881
228822007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22883
22884 * s/gnu-kfreebsd.h: New file.
22885
228862007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22887
22888 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22889 Don't cast redundantly.
22890
22891 * keyboard.c (KEY_TO_CHAR): New macro.
22892 (parse_modifiers, apply_modifiers): Accept integer arguments.
22893 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22894 for chars and symbol keys.
22895 After doing such remapping, apply function-key-map again.
22896
228972007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22898
22899 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22900 compiled anymore.
22901
229022007-11-26 Andreas Schwab <schwab@suse.de>
22903
22904 * process.c (list_processes_1): Fix indentation level of the
22905 command column.
22906
229072007-11-23 Andreas Schwab <schwab@suse.de>
22908
22909 * editfns.c (Fformat): Handle %c specially since it requires the
22910 argument to be of type int.
22911
229122007-11-23 Markus Triska <markus.triska@gmx.at>
22913
22914 * emacs.c (main): Call init_editfns before init_process, since
22915 init_process sets Vprocess_connection_type depending on OS release.
22916
229172007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22918
22919 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22920 (find_symbol_value): Use do_symval_forwarding.
22921
22922 * data.c (set_internal): Set the value in the `cons-cell' (for
22923 Buffer_Local_values) not only for frame-local variables.
22924
229252007-11-22 Andreas Schwab <schwab@suse.de>
22926
22927 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22928 values to sprintf.
22929 * keymap.c (Fsingle_key_description): Likewise.
22930 * print.c (print_object): Likewise.
22931
229322007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22933
22934 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22935 file for image is nil.
22936
229372007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22938
22939 * term.c: Include stdarg.h.
22940 (fatal): Implement using varargs.
22941 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22942
229432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22944
22945 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22946 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22947 Update call to buffer_slot_type_mismatch.
22948 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22949 (buffer_slot_type_mismatch): Update.
22950 * buffer.c (buffer_local_types): Remove.
22951 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22952 (defvar_per_buffer): Set the type in the buffer_objfwd.
22953
229542007-11-21 Jason Rumney <jasonr@gnu.org>
22955
22956 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22957 CreateFileMapping returns NULL on failure.
22958
229592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22960
22961 * search.c (Fset_match_data): Remove the `evaporate' feature.
22962 (unwind_set_match_data): Don't use the `evaporate' feature.
22963
229642007-11-21 Jason Rumney <jasonr@gnu.org>
22965
22966 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22967
22968 * w32console.c (w32con_write_glyphs): Remove unused variables.
22969
229702007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22971
22972 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22973
22974 * s/darwin.h (MULTI_KBOARD): Remove.
22975
22976 * macfns.c (x_create_tip_frame, Fx_create_frame)
22977 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22978
229792007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22980
22981 * buffer.c (Fbuffer_local_value): Remove redundant test.
22982 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22983 than in `current-buffer' to match the comment.
22984 Do the swap using swap_in_global_binding.
22985
22986 * data.c (store_symval_forwarding, set_internal):
22987 * eval.c (specbind): Remove dead code.
22988
22989 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22990 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22991 Since we do not want to see internal Lisp_*fwd objects here.
22992
229932007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22994
22995 * sysdep.c (init_system_name): Use getaddrinfo if available.
22996
22997 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22998 (x_scroll_bar_note_movement): start, end, with, height in struct
22999 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23000
230012007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23002
23003 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23004
230052007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23006
23007 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23008 This undoes Richard's change of 14-Oct-2002.
23009
23010 * alloc.c (allocate_other_vector):
23011 * lisp.h (allocate_other_vector): Remove.
23012
23013 * window.c (struct save_window_data): Move non-lisp data to the end
23014 and make it `int' rather than Lisp_Object.
23015 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23016 Done wrap/unwrap integer values.
23017 (Fset_window_configuration, compare_window_configurations):
23018 Update use of fields to their new types.
23019
23020 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23021 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23022 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23023 (SET_SCROLL_BAR_X_WINDOW): Remove.
23024 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23025 Access the new x_window field directly.
23026 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23027 Don't wrap/unwrap integers into Lisp_Objects.
23028 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23029 (x_scroll_bar_report_motion):
23030 Don't wrap/unwrap integers into Lisp_Objects.
23031 (x_term_init): Use SDATA.
23032 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23033 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23034 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23035 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23036 * xfns.c (x_set_background_color):
23037 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23038 Access the new x_window field directly.
23039
23040 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23041 (allocate_pseudovector): Make non-static.
23042
23043 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23044 (allocate_pseudovector): Declare.
23045 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23046
230472007-11-15 Andreas Schwab <schwab@suse.de>
23048
23049 * editfns.c (Fformat): Correctly format EMACS_INT values.
23050 Also take precision into account when formatting an integer.
23051
23052 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23053
230542007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23055
23056 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23057 (syms_of_keyboard): Defsubr it.
23058
23059 * data.c (swap_in_global_binding): Fix longstanding bug where
23060 store_symval_forwarding was not called with the right second argument,
23061 thus causing objfwd-ing from being dropped.
23062
230632007-11-14 Juanma Barranquero <lekktu@gmail.com>
23064
23065 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23066 (Fx_display_pixel_height, Fx_display_planes)
23067 (Fx_display_color_cells, Fx_server_max_request_size)
23068 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23069 (Fx_display_visual_class, Fx_display_save_under):
23070 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23071 (Fx_display_pixel_height, Fx_display_planes)
23072 (Fx_display_color_cells, Fx_server_max_request_size)
23073 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23074 (Fx_display_mm_height, Fx_display_mm_width)
23075 (Fx_display_backing_store, Fx_display_visual_class)
23076 (Fw32_select_font, Fx_display_save_under):
23077 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23078 (Fx_display_pixel_height, Fx_display_planes)
23079 (Fx_display_color_cells, Fx_server_max_request_size)
23080 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23081 (Fx_display_save_under): Fix typos in docstrings.
23082
230832007-11-14 Juanma Barranquero <lekktu@gmail.com>
23084
23085 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23086 corresponding to deleted entries; they are an implementation detail.
23087 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23088 Remove variables.
23089 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23090 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23091 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23092 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23093 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23094 (Fw32_define_rgb_color, Fw32_load_color_file)
23095 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23096 Fix typos in docstrings.
23097 (Fx_server_version): Reflow docstring.
23098 (Fw32_shell_execute): Doc fixes.
23099
231002007-11-13 Juanma Barranquero <lekktu@gmail.com>
23101
23102 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23103 if w32_parse_hot_key returned nil.
23104
231052007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23106
23107 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23108
231092007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23110
aac0c6e3
MR
23111 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23112
23113 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23114
23115 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23116 Remove W32_SCROLL_BAR_CLICK_EVENT.
23117
23118 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23119 Add MULTIMEDIA_KEY_EVENT.
23120
23121 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23122 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23123 (make_lispy_event) [WINDOWSNT]: Use it to translate
23124 MULTIMEDIA_KEY_EVENT.
23125
23126 * w32term.h (WM_APPCOMMAND): Define if not already.
23127 (GET_APPCOMMAND_LPARAM): Likewise.
23128
23129 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23130 WM_APPCOMMAND.
23131
23132 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23133 (syms_of_w32fns): Export and initialize it.
23134 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23135
231362007-11-09 Chong Yidong <cyd@stupidchicken.com>
23137
23138 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23139 twice.
23140
23141 * xdisp.c (handle_face_prop): Fix last change.
23142
231432007-11-09 Richard Stallman <rms@gnu.org>
23144
23145 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23146 not just for after-strings and before-strings.
23147 Call face_for_overlay_string and pass the overlay to it.
23148 (handle_display_prop): Determine whether property came from an overlay.
23149 Pass OVERLAY arg to handle_single_display_spec.
23150 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23151 (load_overlay_strings): Fill in it->string_overlays.
23152 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23153
23154 * xfaces.c (face_for_overlay_string): Function renamed from
23155 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23156
23157 * dispextern.h (struct it): New elt string_overlays.
23158 New elt from_overlay, also in stack.
23159 Rearrange a few elements.
23160 (face_for_overlay_string): Decl renamed from
23161 face_at_buffer_position_no_overlays, and add argument.
23162
231632007-11-09 Richard Stallman <rms@gnu.org>
23164
23165 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23166 to get the base face for an overlay string.
23167
23168 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23169
23170 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23171
23172 * xdisp.c (handle_stop): Move some code out of loop.
23173
231742007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23175
23176 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23177 Fix conversion from Lisp object to ATSUFontID.
23178
231792007-11-09 Jason Rumney <jasonr@gnu.org>
23180
23181 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23182
231832007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23184
23185 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23186 Don't assume regions are aligned to page boundary.
23187 (print_load_command_name): Add LC_UUID if defined.
23188
231892007-11-09 Richard Stallman <rms@gnu.org>
23190
23191 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23192
231932007-11-07 Jason Rumney <jasonr@gnu.org>
23194
23195 * s/windows95.h: Remove.
23196
231972007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23198
23199 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23200 abort with a message on unhandled store_type values.
23201
232022007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23203
23204 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23205 Remove HAVE_X11R5 and HAVE_X11R4.
23206
232072007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23208
23209 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23210
232112007-11-01 Johan Bockgård <bojohan@gnu.org>
23212
23213 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23214 Don't set s->stippled_p here, since it has already been set by
23215 x_set_glyph_string_gc from x_draw_glyph_string.
23216
232172007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23218
23219 * sunfns.c: Remove file.
23220
23221 * m/sun386.h:
23222 * m/sun2.h:
23223 * m/sparc.h: Remove Sun windows code.
23224
232252007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23226
23227 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23228 (init_keyboard): Set current_kboard's window-system to nil.
23229 (tty_read_avail_input): Typo.
23230 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23231
232322007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23233
23234 * s/usg5-4.h:
23235 * s/usg5-3.h:
23236 * s/ptx.h:
23237 * m/is386.h:
23238 * m/ibmps2-aix.h:
23239 * Makefile.in: Remove all mentions of X10.
23240
23241 * dispnew.c (syms_of_display): Don't mention version 10.
23242
232432007-10-28 Juanma Barranquero <lekktu@gmail.com>
23244
23245 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23246 ($(BLD)/abbrev.$(O)): Remove.
23247
232482007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23249
23250 Rewrite abbrev.c in Elisp.
23251 * image.c (Qcount): Don't declare as extern.
23252 (syms_of_image): Initialize and staticpro `Qcount'.
23253 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23254 * emacs.c (main): Don't call syms_of_abbrev.
23255 * Makefile.in (obj): Remove abbrev.o.
23256 (abbrev.o): Remove.
23257 * abbrev.c: Remove.
23258
232592007-10-26 Martin Rudalics <rudalics@gmx.at>
23260
23261 * window.c (window_min_size_2): Don't count header-line.
23262
232632007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23264
23265 * frame.h (struct frame): Move all bit fields after the first bit
23266 field to take advantage of the available space. Group all the
23267 chars together to reduce wasted space due to padding.
23268
232692007-10-26 Juanma Barranquero <lekktu@gmail.com>
23270
23271 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23272
23273 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23274 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23275 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23276 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23277 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23278 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23279 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23280 (last_marked, mark_object_loop_halt): Make static.
23281
23282 * frame.c (syms_of_frame) <delete-frame-functions>:
23283 Fix typo in docstring.
23284
232852007-10-25 Juanma Barranquero <lekktu@gmail.com>
23286
23287 * w32.c (init_environment): Fix tiny memory leak.
23288 (w32_get_resource): Remove unused variable `ok'.
23289
232902007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23291
23292 Make `window-system' into a keyboard-local variable (rather than
23293 frame-local as done originally by multi-tty).
23294
23295 * keyboard.h (struct kboard): Add Vwindow_system.
23296 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23297 (mark_kboards): Mark Vwindow_system.
23298
23299 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23300 (init_display): Don't set the obsolete `window-system' frame-param.
23301
23302 * xterm.c (x_term_init):
23303 * w32term.c (w32_create_terminal):
23304 * term.c (init_tty): Set Vwindow_system.
23305 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23306 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23307
23308 * xfns.c (Fx_create_frame, x_create_tip_frame):
23309 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23310 * macfns.c (Fx_create_frame):
23311 Don't set the obsolete `window-system' frame-param.
23312
23313 * frame.h (Qwindow_system): Remove.
23314 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23315 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23316
233172007-10-24 Richard Stallman <rms@gnu.org>
23318
23319 * frame.c (x_figure_window_size): For fullscreen case,
23320 set USPosition | PPosition without clobbering rest of window_prompting.
23321
23322 * keyboard.c (Fcurrent_idle_time): Doc fix.
23323
23324 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23325
233262007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23327
23328 * process.c (unwind_request_sigio): Only define if __ultrix__.
23329
23330 * callproc.c (child_setup): Remove spurious *.
23331
23332 * lisp.h (Fget_text_property): Declare.
23333 (have_menus_p): Declare it here rather than in sys-dep header files.
23334 * macterm.h (have_menus_p):
23335 * msdos.h (have_menus_p):
23336 * xterm.h (have_menus_p): Remove.
23337
23338 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23339 (Fmake_variable_frame_local): Just check the variable's const-ness
23340 rather than checking nil or t.
23341
233422007-10-22 Jason Rumney <jasonr@gnu.org>
23343
23344 * w32fns.c: Include math.h.
23345 (w32_abort): Declaration moved to nt/config.nt.
23346
23347 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23348 (abort): Redefinition moved to nt/config.nt.
23349
23350 * m/windowsnt.h: Remove.
23351
233522007-10-22 Juanma Barranquero <lekktu@gmail.com>
23353
23354 * emacs.c (Fdump_emacs): Fix typo in message.
23355 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23356 <installation-directory>: Reflow docstring.
23357
233582007-10-22 Juri Linkov <juri@jurta.org>
23359
23360 * minibuf.c: Allow minibuffer default to be a list of default values.
23361 With empty input use the first element of this list as returned default.
23362 (string_to_object)
23363 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23364 (read_minibuf): If defalt is cons, set histstring to its car.
23365 (Fread_string): If default_value is cons, set val to its car.
23366 (Fread_buffer): If def is cons, use its car.
23367 (Fcompleting_read): If defalt is cons, set val to its car.
23368
233692007-10-21 Michael Albinus <michael.albinus@gmx.de>
23370
23371 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23372
233732007-10-20 Juanma Barranquero <lekktu@gmail.com>
23374
23375 * doc.c (Fdocumentation): Check for advice in all cases.
23376
233772007-10-19 Chong Yidong <cyd@stupidchicken.com>
23378
23379 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23380
233812007-10-19 Richard Stallman <rms@gnu.org>
23382
23383 * doc.c (Fdocumentation): Check for and handle an advised function.
23384
233852007-10-19 Juanma Barranquero <lekktu@gmail.com>
23386
23387 * process.c (Fset_process_filter): Doc fix.
23388
233892007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23390
23391 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23392 which caused key-translation-map to applied repeatedly (thus breaking
23393 double-mode).
23394
233952007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23396
23397 * xselect.c (x_own_selection, x_handle_selection_clear)
23398 (x_clear_frame_selections):
23399 * w32menu.c (list_of_panes, list_of_items):
23400 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23401 * textprop.c (validate_plist, interval_has_all_properties)
23402 (interval_has_some_properties, interval_has_some_properties_list)
23403 (add_properties, text_property_list):
23404 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23405 * minibuf.c (Fassoc_string):
23406 * macselect.c (x_own_selection, x_clear_frame_selections)
23407 (Fx_disown_selection_internal):
23408 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23409 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23410
234112007-10-17 Chong Yidong <cyd@stupidchicken.com>
23412
23413 * process.c: Link to libs for calling res_init() if available.
23414 (Fmake_network_process): Call res_init() before getaddrinfo or
23415 gethostbyname, if possible.
23416
234172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23418
23419 * lread.c (read1): Set pvectype for char_tables.
23420
23421 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23422 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23423 Add type checks.
23424 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23425
23426 * alloc.c (free_misc): Use XMISCTYPE.
23427 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23428
234292007-10-17 Glenn Morris <rgm@gnu.org>
23430
23431 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23432 (syms_of_minibuf): Add Qcompletion_ignore_case.
23433 * dired.c (Qcompletion_ignore_case): Change to external.
23434 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23435 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23436 (Fread_file_name): Use it rather than intern'ing.
23437
23438 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23439 (Fread_coding_system): Ignore case of user input.
23440
234412007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23442
23443 * xdisp.c (handle_display_prop): Ignore display specs after
23444 replacing one when string text is being replaced.
23445 (handle_single_display_spec): Pretend as if characters with display
23446 property haven't been consumed only when buffer text is being replaced.
23447
234482007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23449
23450 * xfns.c (Fx_create_frame, Fx_display_list):
23451 * window.c (window_fixed_size_p, enlarge_window)
23452 (shrink_window_lowest_first):
23453 * macterm.c (init_font_name_table):
23454 * macfns.c (Fx_create_frame, Fx_display_list):
23455 * lread.c (close_load_descs):
23456 * keyboard.c (read_char_x_menu_prompt):
23457 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23458 * coding.c (code_convert_region_unwind): Test the type of an object
23459 rather than just !NILP before extracting data from it.
23460
23461 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23462
23463 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23464 (XMISCANY): New macro.
23465 (XMISCTYPE): Use it.
23466 (struct Lisp_Misc_Any): New type.
23467 (union Lisp_Misc): Use it.
23468 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23469 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23470 (find_symbol_value, set_internal, default_value, Fset_default)
23471 (Fmake_variable_buffer_local, Fmake_local_variable)
23472 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23473 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23474 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23475 * alloc.c (allocate_buffer): Set the size and tag.
23476 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23477 Use XMISCANY.
23478 (die): Follow the GNU convention for error messages.
23479 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23480 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23481 tag any more.
23482 (set_buffer_internal_1):
23483 * frame.c (store_frame_param):
23484 * eval.c (specbind):
23485 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23486
23487 * doc.c (Fsnarf_documentation): Simplify.
23488
234892007-10-14 Juanma Barranquero <lekktu@gmail.com>
23490
23491 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23492 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23493
234942007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23495
23496 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23497
234982007-10-14 Juanma Barranquero <lekktu@gmail.com>
23499
23500 * eval.c (do_autoload): Don't save autoloads.
23501
23502 * data.c (Ffset): Save autoload of the function being set.
23503
235042007-10-07 John Paul Wallington <jpw@pobox.com>
23505
23506 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23507 parameter before setting up faces.
23508
235092007-10-13 Eli Zaretskii <eliz@gnu.org>
23510
23511 * ccl.c (Fregister_code_conversion_map):
23512 * keyboard.c (append_tool_bar_item): Reformat last change.
23513
23514 * lisp.h (eabs): Rename from `abs'. All callers changed.
23515
235162007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23517
23518 * buffer.c (add_overlay_mod_hooklist):
23519 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23520 * fontset.c (make_fontset):
23521 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23522 (append_tool_bar_item):
23523 * macmenu.c (grow_menu_items):
23524 * w32menu.c (grow_menu_items):
23525 * xmenu.c (grow_menu_items): Use larger_vector.
23526
235272007-10-13 Eli Zaretskii <eliz@gnu.org>
23528
23529 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23530 selected frame'' on MSDOS).
23531
235322007-10-12 Martin Rudalics <rudalics@gmx.at>
23533
23534 * frame.c (Qexplicit_name): New variable.
23535 (x_report_frame_params): Report it in parameter alist.
23536 (syms_of_frame): Intern and staticpro it.
23537
235382007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23539
23540 * macfns.c (x_create_tip_frame): Set terminal for frame.
23541
235422007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23543
23544 * frame.c (Qenvironment): Remove.
23545 (syms_of_frame) <Qenvironment>: Don't initialize.
23546 (Fdelete_frame): Don't treat the `environment' param specially.
23547 * frame.h (Qenvironment): Don't declare.
23548 * callproc.c (set_initial_environment): Don't set unused frame param.
23549
23550 * frame.c (Fframe_with_environment): Remove.
23551 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23552
23553 * lisp.h (Fframe_with_environment): Don't declare.
23554
235552007-10-10 Juanma Barranquero <lekktu@gmail.com>
23556
23557 * indent.c (indent_tabs_mode, last_known_column)
23558 (last_known_column_modified): Make static.
23559 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23560
235612007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23562
23563 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23564
235652007-10-09 Jason Rumney <jasonr@gnu.org>
23566
23567 * w32term.c (x_set_window_size): Disable code that attempts to tell
23568 Lisp code about a size change before it actually happens.
23569
235702007-10-09 Richard Stallman <rms@gnu.org>
23571
23572 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23573 return HANDLED_RETURN.
23574
235752007-10-08 Martin Rudalics <rudalics@gmx.at>
23576
23577 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23578 when there's an unread command event.
23579
23580 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23581 window autoselection act appropriately when leaving selected frame.
23582 (syms_of_frame): Initialize focus_follows_mouse.
23583 * frame.h (focus_follows_mouse): Extern it.
23584 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23585 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23586 * msdos.c (dos_rawgetc): Likewise.
23587 * w32term.c (w32_read_socket): Likewise.
23588 * xterm.c (handle_one_xevent): Likewise.
23589 * xdisp.c (syms_of_xdisp): In doc-string of
23590 mouse-autoselect-window mention focus-follows-mouse.
23591
235922007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23593
23594 * macterm.c (mac_load_query_font): Fix missing return value.
23595 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23596 Add BLOCK_INPUT.
23597
235982007-10-08 Richard Stallman <rms@gnu.org>
23599
23600 * xdisp.c (get_window_cursor_type): Implement documented behavior
23601 for cursor-in-non-selected-windows = t.
23602
236032007-10-08 Jason Rumney <jasonr@gnu.org>
23604
23605 * w32.c (w32_get_resource): Always close registry keys.
23606
236072007-10-08 Jason Rumney <jasonr@gnu.org>
23608
23609 * makefile.w32-in (LIBS): Add COMCTL32.
23610
23611 * w32fns.c (globals_of_w32fns): Init common controls.
23612
236132007-10-08 Richard Stallman <rms@gnu.org>
23614
23615 * image.c (our_memory_buffer): Rename from omfib_buffer.
23616
236172007-10-08 Richard Stallman <rms@gnu.org>
23618
23619 * buffer.c (Foverlays_at): Doc fix.
23620
236212007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23622
23623 * fns.c (Fplist_put): Preserve uneven tail data.
23624
236252007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23626
23627 * termhooks.h (enum event_kind): Remove trailing comma.
23628
23629 * frame.h (enum): Remove trailing comma.
23630
236312007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23632
23633 * w32proc.c (delete_child): Don't terminate threads of zombies.
23634
236352007-10-08 Martin Rudalics <rudalics@gmx.at>
23636
23637 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23638
23639 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23640 last-repeatable-command.
23641 (init_kboard): Initialize Vlast_repeatable_command.
23642 (command_loop_1): Set it to real_this_command unless that was
23643 bound to an input event.
23644 (mark_kboards): Mark it.
23645
236462007-10-08 Richard Stallman <rms@gnu.org>
23647
23648 * eval.c (condition-case): Doc fix.
23649
236502007-10-08 Masatake YAMATO <jet@gyve.org>
23651
23652 * xfaces.c (tty_supports_face_attributes_p): Fix code
23653 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23654 was copied and not edited.
23655
236562007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23657
23658 Add new `input-decode-map' keymap and use it for terminal
23659 escape sequences.
23660 * keyboard.h (struct kboard): Add Vinput_decode_map.
23661 Remove Vlocal_key_translation_map.
23662 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23663 (init_kboard): Init input-decode-map.
23664 Replace local-key-translation-map back with key-translation-map.
23665 (syms_of_keyboard): Declare input-decode-map.
23666 Remove local-key-translation-map. Update docstrings.
23667 (mark_kboards): Mark Vinput_decode_map.
23668 Don't mark Vlocal_key_translation_map.
23669 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23670 Replace local-key-translation-map back with key-translation-map.
23671 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23672 Bind in input-decode-map rather than function-key-map.
23673
23674 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23675 This was made redundant by the previous introduction of XSETPVECTYPE.
23676
236772007-10-09 Richard Stallman <rms@gnu.org>
23678
23679 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23680
236812007-09-29 Richard Stallman <rms@gnu.org>
23682
23683 * eval.c (internal_condition_case_2, internal_condition_case_1)
23684 (internal_condition_case): Reenable abort if x_catching_errors ()
23685 to see if that really happens and why.
23686
236872007-10-06 Andreas Schwab <schwab@suse.de>
23688
23689 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23690
236912007-10-04 Juanma Barranquero <lekktu@gmail.com>
23692
23693 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23694
236952007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23698
236992007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23700
23701 * window.h (struct window):
23702 * window.c (struct save_window_data, struct saved_window):
23703 * termhooks.h (struct terminal):
23704 * process.h (struct Lisp_Process):
23705 * frame.h (struct frame):
23706 * buffer.h (struct buffer):
23707 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23708 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23709 The size field of (pseudo)vectors is now unsigned.
23710 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23711
23712 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23713 Turn `count' into an integer.
23714
23715 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23716 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23717 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23718 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23719 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23720
23721 * alloc.c (allocate_pseudovector): New fun.
23722 (ALLOCATE_PSEUDOVECTOR): New macro.
23723 (allocate_window, allocate_terminal, allocate_frame)
23724 (allocate_process): Use it.
23725 (mark_vectorlike): New function.
23726 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23727 (mark_terminals): Use it.
23728 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23729 (Fmake_byte_code): Use XSETPVECTYPE.
23730
23731 * frame.c (Fframe_parameters): Minor simplification.
23732
23733 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23734
23735 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23736
23737 * buffer.c (Fget_buffer_create, init_buffer_once):
23738 * lread.c (defsubr):
23739 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23740
23741 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23742 defined differently in the m/*.h files.
23743 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23744 (XSETPVECTYPE): New macro.
23745 (XSETPSEUDOVECTOR): Use it.
23746
23747 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23748 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23749
23750 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23751 * lread.c (defvar_per_buffer):
23752 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23753
23754 * window.c (candidate_window_p): Only consider as visible frames that
23755 are on the same terminal.
23756
23757 * m/ibms390x.h (MARKBIT): Remove unused macro.
23758
237592007-10-01 Juanma Barranquero <lekktu@gmail.com>
23760
23761 * lread.c (Fload): Fix typo in docstring.
23762
237632007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23764
23765 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23766 of a non-zero value can't yield zero.
23767
237682007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23769
23770 * term.c (term_clear_mouse_face, term_mouse_highlight)
23771 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23772
23773 * print.c (safe_debug_print): Use XHASH.
23774
23775 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23776 Lisp elements such as tags.
23777 (XHASH): New macro.
23778 (EQ): Use it.
23779 (SREF, SSET, STRING_COPYIN): Use SDATA.
23780 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23781
23782 * alloc.c (mark_terminal): Remove left-over declaration.
23783 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23784 (allocate_vectorlike): Remove type argument. Adjust callers.
23785 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23786 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23787
23788 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23789 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23790 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23791 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23792 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23793 Use them.
23794
23795 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23796 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23797 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23798
237992007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23800
23801 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23802 loaded by default.
23803
238042007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23805
23806 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23807 on this tty.
23808 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23809
23810 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23811 Update all users.
23812 (handle_one_term_event): Use Gpm_DrawPointer.
23813 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23814 Signal errors instead of returning nil. Always return nil.
23815 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23816 Make it a noop if gpm-mouse was not activated.
23817 (syms_of_term): Update names.
23818
238192007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23820
23821 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23822 (init_sys_modes): Check that gpm_tty is the current tty.
23823
23824 * alloc.c (allocate_terminal): Set the vector size to only count the
23825 lisp fields. Initialize those to nil.
23826 (mark_object): Don't treat terminals specially.
23827 (mark_terminal): Remove.
23828 (mark_terminals): Use mark_object instead.
23829
23830 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23831 the GC to the beginning.
23832
23833 * indent.h:
23834 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23835
23836 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23837
238382007-09-25 Jason Rumney <jasonr@gnu.org>
23839
23840 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23841
23842 * w32console.c (create_w32cons_output): Remove.
23843
23844 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23845
23846 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23847 (reset_sys_modes): Use reset_terminal_modes_hook.
23848
238492007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23850
23851 * eval.c (do_autoload): Don't output any message.
23852
238532007-09-24 Juri Linkov <juri@jurta.org>
23854
23855 * emacs.c (standard_args): Change priority of "--no-splash"
23856 from 40 to 3. Add "--no-desktop" with the same priority.
23857
238582007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23859
23860 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23861 and optimize the case where they are all 1.
23862
238632007-09-23 Johannes Weiner <hannes@saeurebad.de>
23864
23865 * lisp.h (abs): Define if not defined.
23866 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23867 Don't define `abs', since it's defined in lisp.h.
23868
238692007-09-22 Eli Zaretskii <eliz@gnu.org>
23870
23871 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23872 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23873 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23874 (init_tty): Use DEV_TTY instead of "/dev/tty".
23875 [WINDOWSNT]: No need to protect from NAME arg being null.
23876
238772007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23878
23879 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23880 up the tty state.
23881
238822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23883
23884 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23885 (gpm_tty): Change its type.
23886 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23887 (gpm_tty): Change its type and initialize it.
23888 (Fterm_open_connection): Check the frame is indeed a tty.
23889 Use the new gpm_tty.
23890 (Fterm_close_connection): Use the new gpm_tty.
23891 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23892 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23893
238942007-09-21 Juanma Barranquero <lekktu@gmail.com>
23895
23896 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23897 underline_color, to draw strike-through.
23898
238992007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23900
23901 * lisp.h (allocate_terminal): Declare.
23902
23903 * window.c (candidate_window_p): Consider frames that are being placed
23904 by the user as somewhere between visible and iconified.
23905 (window_loop): Prefer windows on the current frame.
23906 (Fselect_window): Move the use of select-frame to the beginning so we
23907 can just delegate all the work (it'll call us back anyway).
23908
23909 * frame.c (Qdisplay_environment_variable):
23910 * frame.h (Qdisplay_environment_variable): Delete.
23911
23912 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23913 of the first arg, since that value may be a union.
23914
23915 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23916 parameter rather than Qdisplay_environment_variable. If all else
23917 fails, look for DISPLAY in initial-environment.
23918
239192007-09-21 Glenn Morris <rgm@gnu.org>
23920
23921 * Makefile.in (emacstool): Remove target.
23922 (lisp, shortlisp): Remove termdev.elc.
23923
239242007-09-21 Markus Triska <markus.triska@gmx.at>
23925
23926 * xterm.c (x_delete_display): Compile session management conditionally.
23927
239282007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23929
23930 * callproc.c (getenv_internal_1): New function.
23931 (getenv_internal): Use it.
23932 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23933
23934 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23935 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23936 (Fset_terminal_parameter): Work with dead terminals as well.
23937 (Fmodify_terminal_parameters): Remove.
23938
23939 * terminal.c (get_terminal): Handle terminals.
23940 Make sure the terminal returned is live.
23941 (create_terminal): Use allocate_terminal.
23942 (mark_terminals): Move to alloc.c.
23943 (delete_terminal): Use terminal->name as liveness status.
23944 NULL out fields after freeing their contents.
23945 Don't deallocate the object.
23946 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23947 rather than an int.
23948 (Fterminal_live_p): Accept non-integer arguments.
23949 (Fterminal_list): Return terminal objects rather than an ints.
23950
23951 * alloc.c (enum mem_type): New member for `terminal' objects.
23952 (allocate_terminal): New function.
23953 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23954 Handle terminals.
23955 (mark_terminal): New fun.
23956 (mark_terminals): Move from terminal.c.
23957
23958 * term.c (get_tty_terminal): Don't treat output_initial specially.
23959 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23960 (delete_tty): Use terminal->name as liveness status.
23961
23962 * termhooks.h (struct terminal): Make it into a pseudovector.
23963 Remove `deleted' replaced by checking `name's nullness.
23964
23965 * print.c (print_object): Handle terminals.
23966
23967 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23968 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23969
23970 * frame.c (make_terminal_frame):
23971 * keyboard.c (tty_read_avail_input):
23972 * w32term.c (x_delete_terminal):
23973 * xfns.c (Fx_create_frame, x_create_tip_frame):
23974 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23975
239762007-09-20 Glenn Morris <rgm@gnu.org>
23977
23978 * process.c (Fmake_network_process): Doc fix.
23979
239802007-09-19 Jason Rumney <jasonr@gnu.org>
23981
23982 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23983
239842007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23985
23986 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23987 Fix a C warning regarding variable constness.
23988
23989 * xterm.c (handle_one_xevent): Fix a C warning.
23990
239912007-09-18 Jason Rumney <jasonr@gnu.org>
23992
23993 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23994
239952007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23996
23997 * gtkutil.c (gdpy_def): New variable.
23998 (xg_initialize): Initialize gdpy_def.
23999 (xg_display_close): If no other display exists, set gdpy_def to a
24000 new connection.
24001
240022007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24003
24004 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24005 when we have no file name for the icon.
24006 (xg_tool_bar_expose_callback): Remove.
24007 (xg_create_tool_bar): Don't connect expose signal to
24008 xg_tool_bar_expose_callback.
24009 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24010
240112007-09-16 Andreas Schwab <schwab@suse.de>
24012
24013 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24014 values instead of zapping them.
24015
240162007-09-14 Glenn Morris <rgm@gnu.org>
24017
24018 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24019 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24020 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24021 scope and rename to omfib_buffer for clarity.
24022 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24023
240242007-09-14 Kenichi Handa <handa@m17n.org>
24025
24026 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24027
240282007-09-13 Jason Rumney <jasonr@gnu.org>
24029
24030 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24031
24032 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24033
24034 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24035 (mac_term_init): Call here instead, passing rif.
24036
240372007-09-13 Glenn Morris <rgm@gnu.org>
24038
24039 * s/hpux.h: No longer define `static' as nothing.
24040
240412007-09-13 Johan Bockgård <bojohan@gnu.org>
24042
24043 * callint.c (Fcall_interactively): Remove unused var `fun'.
24044
240452007-09-12 Romain Francoise <romain@orebokech.com>
24046
24047 * window.c (prefer_window_split_horizontally, display_buffer):
24048 Revert 2007-09-08 change.
24049
240502007-09-12 Glenn Morris <rgm@gnu.org>
24051
24052 * alloca.c: Remove file.
24053 * Makefile.in (alloca): Do not undef.
24054 (allocaobj, alloca.o): Remove.
24055 (otherobj): Remove allocaobj.
24056 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24057 * regex.c (C_ALLOCA): Remove all references and code that was only
24058 used when this was defined.
24059 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24060 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24061 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24062
24063 * Makefile.in (SOURCES, unlock, relock): Delete.
24064
24065 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24066 (menu_grab_callback): All uses changed.
24067
24068 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24069 (x_reply_selection_request): All uses changed.
24070
240712007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24072
24073 * lread.c (load_warn_old_style_backquotes): Change message to look
24074 better when it appears in the middle of byte-compiler messages.
24075
240762007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24077
24078 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24079
24080 * xterm.c (x_create_terminal): Add comment.
24081
24082 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24083
240842007-09-10 Richard Stallman <rms@gnu.org>
24085
24086 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24087
240882007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24089
24090 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24091 (DEFUN): Document `intspec', use it instead of `prompt'.
24092
24093 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24094
24095 * data.c (Finteractive_form): If the interactive specification starts
24096 with a `(', use it as a Lisp form.
24097
24098 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24099 name and file modes.
24100
24101 * callint.c (Fcall_interactively): Comment fixes.
24102
241032007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24104
24105 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24106 and compiled functions.
24107
241082007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24109
24110 * window.c (prefer_window_split_horizontally): New variable.
24111 (display_buffer): Consider splitting window horizontally depending
24112 on prefer_window_split_horizontally.
24113
241142007-09-08 Eli Zaretskii <eliz@gnu.org>
24115
24116 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24117
241182007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24119
24120 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24121
24122 * frame.c (x_set_frame_parameters): Check number is positive before
24123 using XFASTINT.
24124
24125 * window.c (freeze_window_start): Don't presume selected_window holds
24126 a window object.
24127 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24128
241292007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24130
24131 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24132
241332007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24134
24135 * window.c (Vsplit_window_preferred_function): New var.
24136 (Fdisplay_buffer): Use it.
24137 (syms_of_window): Export, and initialize it.
24138
241392007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24140
24141 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24142
241432007-09-06 Glenn Morris <rgm@gnu.org>
24144
24145 * gtkutil.c (menu_grab_callback) <cnt>:
24146 * xselect.c (x_reply_selection_request) <cnt>: Move static
24147 variable to file scope.
24148
241492007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24150
24151 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24152 consistent values of selected_frame and selected_window.
24153
241542007-09-04 Jason Rumney <jasonr@gnu.org>
24155
24156 * w32console.c (initialize_w32_display): Zero unused hooks.
24157
241582007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24159
24160 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24161 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24162
241632007-09-04 Jason Rumney <jasonr@gnu.org>
24164
24165 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24166 in w32console.c. Set up input. Remove XXX comments that have been
24167 confirmed as correct.
24168
24169 * s/ms-w32.h (MULTI_KBOARD): Define.
24170
24171 * w32console.c (one_and_only_w32cons): Remove.
24172 (initialize_w32_display): Take terminal argument.
24173
24174 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24175 initialize_w32_display.
24176 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24177
24178 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24179
24180 * keyboard.c (discard_mouse_events): Discard it.
24181 (make_lispy_event): Translate it to a lisp event.
24182 (lispy_wheel_names): Add wheel-left and right events.
24183 (syms_of_keyboard): Enlarge wheel_syms.
24184
24185 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24186 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24187
24188 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24189
24190 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24191 from WM_MOUSEHWHEEL.
24192 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24193
24194 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24195 terminal.
24196
24197 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24198 keyboard for the terminal.
24199
242002007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24201
24202 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24203 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24204 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24205 and resume-tty-function to resume-tty-hook.
24206 (Fsuspend_tty, Fresume_tty): Use new names.
24207
242082007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24209
24210 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24211 if it starts with "n:".
24212
242132007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24214
24215 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24216
242172007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24218
24219 * frame.h:
24220 * frame.c (Qterm_environment_variable): Remove.
24221 (syms_of_frame): Don't init and staticpro it.
24222
24223 * callproc.c (getenv_internal): Remove special case for $TERM.
24224
24225 * callproc.c (Vinitial_environment): New variable.
24226 (set_initial_environment): Initialize it.
24227 (syms_of_callproc): Declare it.
24228 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24229 TERM under which a process runs is never related to the TERM in which
24230 Emacs is running.
24231
242322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24233
24234 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24235 * s/darwin.h: ... do it here.
24236
242372007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24238
24239 * lisp.h (set_initial_environment): Rename from set_global_environment.
24240
24241 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24242 removed by mistake on the multi-tty branch.
24243
24244 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24245 (Fmodify_frame_parameters): Return a value.
24246
24247 * image.c (png_load): Comment-out var only used in commented-out code.
24248
24249 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24250 before passing it to mark_object.
24251
24252 * xfaces.c (internal_resolve_face_name): Return a value.
24253 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24254
24255 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24256 (x_icon): Comment-out var only used in commented-out code.
24257
242582007-08-29 Romain Francoise <romain@orebokech.com>
24259
24260 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24261 QUIT hasn't been provided.
24262
242632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24264
24265 * callproc.c (child_setup, getenv_internal): Use the
24266 display-environment-variable and term-environment-variable frame params.
24267 (set_initial_environment): Initialise Vprocess_environment.
24268
24269 * config.in: Disable multi-keyboard support on a mac.
24270
24271 * frame.c (Qterm_environment_variable)
24272 (Qdisplay_environment_variable): New variables.
24273 (syms_of_frame): Intern and staticpro them.
24274 (Fmake_terminal_frame): Disable output method test.
24275
24276 * frame.h: Declare them here.
24277
24278 * macfns.c (x_set_mouse_color): Get rif from the frame.
24279 (x_set_tool_bar_lines): Don't use updating_frame.
24280 (mac_window): Add 2 new parameters for consistency with other systems.
24281 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24282 frame parameters following what is done in X11 and w32. Don't use
24283 FRAME_MAC_DISPLAY_INFO.
24284 (Fx_open_connection, start_hourglass): Remove window-system check.
24285 (x_create_tip_frame): Get the keyboard from the terminal.
24286
24287 * macmenu.c: Reorder includes.
24288 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24289
24290 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24291 terminal parameter.
24292 (x_clear_frame): Add a frame parameter.
24293 (note_mouse_movement): Get rif from the frame.
24294 (mac_term_init): Initialize the terminal.
24295 (mac_initialize): Make static and move terminal initialization ...
24296 (mac_create_terminal): ... to this new function.
24297
24298 * macterm.h (struct mac_display_info): Add terminal.
24299 (mac_initialize): Delete declaration.
24300
24301 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24302
24303 * sysdep.c: Comment out text after #endif.
24304
24305 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24306 is defined. Better initialize ttys in windows. Use terminal
24307 specific mouse_position_hook.
24308
24309 * termhooks.h (union display_info): Add mac_display_info.
24310
24311 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24312 Set the default minibuffer frame, window_system and the rest of the
24313 frame parameters following what is done in X11.
24314
24315 * w32term.c (w32_initialize): Make static.
24316
24317 * xselect.c (x_handle_selection_clear): Only access
24318 terminal->kboard when MULTI_KBOARD is defined.
24319
24320 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24321 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24322
243232007-08-29 Jason Rumney <jasonr@gnu.org>
24324
24325 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24326 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24327
24328 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24329 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24330
24331 * keyboard.c (restore_kboard_configuration): Only define when
24332 MULTI_KBOARD defined.
24333
24334 * makefile.w32-in: Update dependancies from Makefile.in.
24335 (OBJ1): Add terminal.$(O)
24336
24337 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24338 Don't define function body.
24339 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24340
24341 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24342
24343 * w32.c (request_sigio, unrequest_sigio): Remove.
24344
24345 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24346 (w32con_clear_frame, w32con_clear_end_of_line)
24347 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24348 (w32con_delete_glyphs, w32con_set_terminal_window)
24349 (scroll_line, w32_sys_ring_bell): Add frame arg.
24350 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24351 Add terminal arg.
24352 (PICK_FRAME): Remove.
24353 (w32con_write_glyphs): Use frame specific terminal coding.
24354 (one_and_only_w32cons): New global variable.
24355 (initialize_w32_display): Use it for storing hooks.
24356 (create_w32cons_output): New function.
24357
24358 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24359 arg a frame.
24360
24361 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24362 Set window_system.
24363 (x_set_tool_bar_lines): Don't use updating_frame.
24364 (Fx_create_frame): Set terminal and ref count.
24365 (Fx_open_connection): Remove window-system check.
24366
24367 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24368
24369 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24370 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24371 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24372 Add frame arg.
24373 (x_delete_terminal, w32_create_terminal): New functions.
24374 (w32_term_init): Create a terminal.
24375 (w32_initialize): Move terminal specific initialization to
24376 w32_create_terminal.
24377
24378 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24379 (w32_clear_rect, w32_clear_area): Use background from frame.
24380 (w32_display_info): Add terminal.
24381 (w32_sys_ring_bell, x_delete_display): Declare here.
24382
24383 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24384
24385 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24386
243872007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24388
24389 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24390 Fix get_named_tty calls for the controlling tty.
24391
243922007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24393
194d44e7 24394 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24395
243962007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24397
24398 * term.c (tty_insert_glyphs): Add missing first parameter.
24399
244002007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24401
24402 * buffer.c (Fbuffer_list, Fbury_buffer):
24403 Take frame->buried_buffer_list into account.
24404
24405 * cm.c (current_tty): New variable, for cmputc().
24406 (cmputc): Use it.
24407 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24408 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24409 (cmgoto): Add tty parameter. Pass it on to calccost().
24410 Use emacs_tputs() instead of tputs().
24411
24412 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24413 tputs().
24414 (current_tty): New variable, for cmputc().
24415 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24416
24417 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24418 (internal_condition_case, internal_condition_case_1)
24419 (internal_condition_case_2): Don't abort when x_catching_errors.
24420
24421 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24422 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24423 prevent crashes caused by bogus longjmps in read_char.
24424
24425 * keymap.h (Fset_keymap_parent): Add EXFUN.
24426
24427 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24428 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24429 Remove redundant definition.
24430
24431 * macfns.c (x_set_mouse_color, x_make_gc):
24432 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24433
24434 * w32term.c (x_free_frame_resources):
24435 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24436 (w32_initialize): Use the accessor macros for terminal characteristics.
24437
24438 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24439 Use the accessor macros for terminal characteristics.
24440 * msdos.c (internal_terminal_init): Use the accessor macros for
24441 terminal characteristics.
24442 (ScreenVisualBell, internal_terminal_init):
24443 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24444
24445 * termopts.h (no_redraw_on_reenter): Declare.
24446
24447 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24448 (mark_terminals, mark_ttys): Declare.
24449 (Fgarbage_collect): Call them.
24450 (mark_object): Mark buried_buffer_list.
24451
24452 * prefix-args.c: Include stdlib.h for exit.
24453
24454 * syssignal.h: Add comment.
24455
24456 * indent.c: Include stdio.h.
24457
24458 * window.h (Vinitial_window_system): Declare.
24459 (Vwindow_system): Delete declaration.
24460
24461 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24462
24463 * image.c (lookup_image): Don't initialize `c' until the xasserts
24464 have been run.
24465
24466 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24467 FRAME_FOREGROUND_PIXEL.
24468
24469 * print.c (print_preprocess): Don't lose print_depth levels while
24470 iterating.
24471
24472 * widget.c (update_from_various_frame_slots):
24473 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24474
24475 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24476 frames.
24477 (window_internal_height): Remove bogus make_number call.
24478 (init_window_once): Call make_terminal_frame with two zero parameters.
24479
24480 * fileio.c (Fread_file_name): Update comment.
24481
24482 * callint.c (Fcall_interactively):
24483 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24484 Make sure it is correctly unwound.
24485
24486 * xsmfns.c (x_session_close): New function.
24487
24488 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24489 Delete declarations.
24490
24491 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24492 (x_output): Remove background_pixel and foreground_pixel fields.
24493 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24494 (x_delete_device, x_session_close): Declare.
24495
24496 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24497 (read_filtered_event): Call `read_char' with a local
24498 `wrong_kboard_jmpbuf'.
24499
24500 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24501 Don't call single_kboard_state. Use FRAME_RIF.
24502
24503 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24504 systems.
24505
24506 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24507 (Fframe_with_environment, Fset_input_meta_mode)
24508 (Fset_quit_char): EXFUN.
24509 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24510 (init_sys_modes, reset_sys_modes): Update prototypes.
24511 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24512
24513 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24514 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24515 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24516 Delete declarations.
24517 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24518 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24519 New declarations.
24520
24521 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24522 already does that during init_display(). Call syms_of_keymap
24523 before syms_of_keyboard. Call `syms_of_terminal'.
24524 Call set_initial_environment, not set_process_environment.
24525 (shut_down_emacs): Call reset_all_sys_modes() instead of
24526 reset_sys_modes().
24527
24528 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24529 (internal_resolve_face_name, resolve_face_name_error): New functions.
24530 (resolve_face_name): Protect against loops and errors thrown by Fget.
24531 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24532 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24533
24534 * scroll.c: Replace CURTTY() with local variables throughout the
24535 file (where applicable).
24536 (calculate_scrolling, calculate_direct_scrolling)
24537 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24538 characteristics.
24539
24540 * keymap.c (Vfunction_key_map): Remove.
24541 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24542 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24543 (Vkey_translation_map): Remove.
24544 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24545 (Fdescribe_buffer_bindings)
24546 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24547 Update for terminal-local key-translation-map.
24548
24549 * Makefile.in (callproc.o): Update dependencies.
24550 (lisp, shortlisp): Add termdev.elc.
24551 (obj): Add terminal.o.
24552 (terminal.o): Add dependencies.
24553 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24554 (data.o, fns.o): Add termhooks.h dependency.
24555 (SOME_MACHINE_LISP): Add dnd.elc.
24556 (minibuf.o): Fix typo.
24557 Update dependencies.
24558
24559 * data.c (do_symval_forwarding, store_symval_forwarding)
24560 (find_symbol_value): Use the selected frame's keyboard, not
24561 current_kboard.
24562
24563 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24564 Vwindow_system.
24565
24566 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24567 Fmenu_bar_open.
24568 (syms_of_xmenu): Update defsubr.
24569 (mouse_position_for_popup, Fx_popup_menu)
24570 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24571 (set_frame_menubar, free_frame_menubar)
b97439ce 24572 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24573 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24574 an X frame.
24575
24576 * xselect.c (x_own_selection): Abort if not an X frame.
24577 (some_frame_on_display): Check if it is an X frame.
24578 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24579
24580 * coding.c: Include frame.h and termhooks.h.
24581 (terminal_coding, keyboard_coding): Delete.
24582 (Fset_terminal_coding_system_internal)
24583 (Fset_keyboard_coding_system_internal)
24584 (Fkeyboard_coding_system)
24585 (Fterminal_coding_system): Add a terminal parameter.
24586 Get terminal_coding from the terminal.
24587 (init_coding_once): Don't call setup_coding_system here.
24588
24589 * dispextern.h (set_scroll_region, turn_off_insert)
24590 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24591 (tty_clear_end_of_line, tty_setup_colors)
24592 (delete_tty, updating_frame)
24593 (produce_special_glyphs, produce_glyphs, write_glyphs)
24594 (insert_glyphs): Remove.
24595 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24596 (tty_turn_off_highlight, get_tty_size): Add declaration.
24597 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24598
24599 * frame.h (enum output_method): Add output_initial.
24600 (struct x_output): Delete.
24601 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24602 Access foreground_pixel and background_pixel directly from the frame.
24603 (tty_display): Delete.
24604 (struct frame): Add buried_buffer_list, foreground_pixel,
24605 background_pixel and terminal. Delete kboard.
24606 (union output_data): Add tty.
24607 (FRAME_KBOARD): Get the kboard from the terminal.
24608 (FRAME_INITIAL_P): New macro.
24609 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24610 (Qterm_environment_variable, Qdisplay_environment_variable)
24611 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24612 New declarations.
24613
24614 * termchar.h (tty_output, tty_display_info): New structures.
24615 (tty_list): Declare.
24616 (FRAME_TTY, CURTTY): New macros.
24617 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24618 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24619 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24620 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24621
24622 * callproc.c: Include frame.h and termhooks.h, for terminal
24623 parameters.
24624 (add_env): New function.
24625 (child_setup): Use it.
24626 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24627 (getenv_internal): Fix get_terminal_param call.
24628 (Fgetenv_internal, egetenv): Update doc.
24629 (syms_of_callproc): Initialize Vprocess_environment to nil.
24630 Register and initialize them. Remove obsolete defvars. Update doc
24631 strings.
24632 (child_setup): Handle Vlocal_environment_variables.
24633 (getenv_internal): Add terminal parameter.
24634 Handle Vlocal_environment_variables.
24635 (Fgetenv_internal): Add terminal parameter.
24636 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24637 environment in a frame (not terminal) parameter. Update doc strings.
24638 (set_initial_environment): Rename from set_global_environment.
24639 Store Emacs environment in initial frame parameter.
24640
24641 * xdisp.c (redisplay_internal): Update references to
24642 `previous_terminal_frame'.
24643 (display_mode_line, Fformat_mode_line): Replace calls to
24644 `push_frame_kboard' with `push_kboard'.
24645 (get_glyph_string_clip_rects): Add extra parentheses and
24646 braces to prevent compiler warnings.
24647 (calc_pixel_width_or_height): Add xassert to check that the
24648 frame is alive. Don't call `lookup_image' on a termcap frame.
24649 (message2_nolog, message3_nolog, redisplay_internal)
24650 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24651 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24652 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24653 (Fx_display_pixel_width, Fx_display_pixel_height)
24654 (Fx_display_planes, Fx_display_color_cells)
24655 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24656 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24657 (Fx_display_backing_store, Fx_display_visual_class)
24658 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24659 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24660
24661 * xfns.c (x_set_foreground_color x_set_background_color)
24662 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24663 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24664 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24665 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24666 terminal that is being deleted.
24667 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24668 frame parameter, and make sure it overrides any user-supplied setting.
24669 (Fx_close_connection, Fx_synchronize): Unify argument names with
24670 the rest of the DEFUNs.
24671
24672 * dispnew.c (Fsend_string_to_terminal): Update call to
24673 `get_tty_terminal'.
24674 (Fredraw_frame, Fsend_string_to_terminal)
24675 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24676 FRAME_TERMCAP_P and FRAME_TTY.
24677 (window_change_signal): Don't believe width/height values that are
24678 impossibly small.
24679 (Vinitial_window_system): Rename from Vwindow_system.
24680 (termscript, Wcm, rif): Delete.
24681
24682 * termhooks.h (struct terminal): New struct containing the
24683 previously global text display hooks and new members NAME,
24684 DELETED and PARAM_ALIST.
24685 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24686 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24687 (FRAME_RIF): New macros.
24688 (get_terminal_param, get_device): New declarations.
24689 (termscript): Delete declaration.
24690
24691 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24692 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24693 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24694 FRAME_FOREGROUND_PIXEL.
24695 (x_fully_uncatch_errors): Disable definition.
24696 (x_scroll_bar_expose): Fix reference to foreground pixel.
24697 (XTread_socket): Disable loop on all X displays.
24698 (x_delete_terminal): Don't set terminal->deleted and let
24699 delete_terminal delete the frames on the terminal.
24700 (x_delete_display): Doc update to reflect changes in
24701 delete_terminal.
24702 (x_display_info) <terminal>: Move member earlier in the struct.
24703 (deleting_tty): Remove old variable.
24704 (Fsuspend_tty): Call clear_tty_hooks.
24705 (Fresume_tty, init_tty): Call set_tty_hooks.
24706 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24707 errors on X frames.
24708 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24709 (handle_one_xevent): Initialize `f' to NULL.
24710 (x_delete_terminal, x_create_terminal): New functions.
24711 (XTset_terminal_modes, XTreset_terminal_modes)
24712 (XTread_socket, x_connection_closed, x_term_init)
24713 (x_term_init, x_delete_display): Add terminal parameter.
24714 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24715 X connections.
24716
24717 * frame.c: Include termchar.h.
24718 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24719 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24720 (Qdisplay_environment_variable): New vars.
24721 (Fframep): Deal with output_initial.
24722 (Fframe-live-p): Doc fix.
24723 (Fwindow-system): New function.
24724 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24725 (make_terminal_frame): Don't create frames on a terminal that is
24726 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24727 (store_frame_param): Check for found_for_frame before calling XFRAME.
24728 (Fmake_terminal_frame): Handle NULL tty names correctly.
24729 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24730 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24731 frames to refer to a deleted frame in their 'environment parameter.
24732 (Fframe_with_environment): New function.
24733 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24734 (get_future_frame_param): New function.
24735 (Fmake_terminal_frame): Use it.
24736 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24737
24738 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24739 * sysdep.c (reset_sys_modes): Update for renames.
24740
24741 * keyboard.c (tty_read_avail_input): New function.
24742 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24743 (syms_of_keyboard): Defsubr them.
24744 (Fset_input_meta_mode, Fset_quit_char): New functions.
24745 (Fset_input_mode): Split to above functions.
24746 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24747 parameter. Use it in call to `read_char'.
24748 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24749 Set wrong_kboard_jmpbuf correctly in recursive calls.
24750 Use current_kboard to access Vkeyboard_translate_table.
24751 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24752 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24753 Update longjmp invocations. Remember the original current_kboard,
24754 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24755 changes it. Comment out unnecessary calls to
24756 `record_single_kboard_state' and `any_kboard_state'.
24757 Update recursive calls.
24758 (wrong_kboard_jmpbuf): Remove global variable.
24759 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24760 Handle deleted interrupted_kboards correctly; that is a legal
24761 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24762 and read_char calls. Abort if interrupted_kboard died in read_char.
24763 (any_kboard_state, single_kboard_state)
24764 (push_frame_kboard): Remove function.
24765 (pop_kboard): Switch out of single_kboard mode if the kboard has
24766 been deleted. Remove unused variable. Help debugging by not
24767 changing current_kboard unnecessarily. Set current_kboard to the
24768 kboard of the selected frame when the stored kboard object has
24769 been deleted before pop_kboard.
24770 (temporarily_switch_to_single_kboard): Change first parameter to a
24771 frame pointer. Throw an error when caller wants to change kboards
24772 while in single_kboard mode. Don't push_kboard if we weren't in
24773 single kboard state. Don't pop_kboard if we popped into any
24774 kboard state.
24775 (restore_kboard_configuration): Abort if pop_kboard changed the
24776 kboard in single_kboard mode. Call pop_kboard only after setting
24777 up single_kboard mode.
24778 (Frecursive_edit): Switch to single_kboard mode only in nested
24779 command loops.
24780 (cmd_error, command_loop, command_loop_1, timer_check):
24781 Comment out unnecessary call to `any_kboard_state' and
24782 `record_single_kboard_state'.
24783 (delete_kboard): Exit single_kboard mode if we have just deleted
24784 that kboard. Use FRAME_KBOARD.
24785 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24786 `fatal_error_signal'.
24787 (record_single_kboard_state): Don't push_kboard if we weren't in
24788 single kboard state. Don't pop_kboard if we popped into any
24789 kboard state.
24790 (push_frame_kboard): Rename to push_kboard.
24791 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24792 (read_avail_input): Read input from all terminals.
24793 (mark_kboards): Also mark Vkeyboard_translate_table.
24794 (kbd_buffer_store_event_hold): Simplify condition.
24795 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24796 (Vkeyboard_translate_table): Move to struct kboard.
24797 (init_kboard): Initialize Vkeyboard_translate_table.
24798 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24799 Vkeyboard_translate_table. Update doc strings. Update docs of
24800 local-function-key-map and function-key-map.
24801
24802 * terminal.c: New file.
24803
24804 * term.c: Include errno.h.
24805 (Vring_bell_function, device_list, initial_device)
24806 (next_device_id, ring_bell, update_begin, update_end)
24807 (set_terminal_window, cursor_to, raw_cursor_to)
24808 (clear_to_end, clear_frame, clear_end_of_line)
24809 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24810 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24811 (syms_of_term): Move their initialization to terminal.c.
24812 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24813 (Ftty_display_color_cells)
24814 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24815 (clear_tty_hooks, set_tty_hooks)
24816 (init_tty, maybe_fatal): New functions.
24817 (Ftty_type): Return nil if terminal is not on a tty instead of
24818 throwing an error. Doc update.
24819 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24820 Doc update. Initialize new subrs and variables.
24821 (delete_tty): Use terminal->deleted.
24822 (tty_set_terminal_modes): Rename from set_terminal_modes.
24823 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24824 (set_scroll_region): Rename to `tty_set_scroll_region'.
24825 (turn_on_insert): Rename to `tty_turn_on_insert'.
24826 (turn_off_insert): Rename to `tty_turn_off_insert'.
24827 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24828 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24829 (toggle_highligh): Rename to `tty_toggle_highlight'.
24830 (background_highlight): Rename to `tty_background_highlight'.
24831 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24832 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24833 (tty_set_scroll_region, tty_background_highlight)
24834 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24835 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24836 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24837 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24838 Add static modifier.
24839 (tty_reset_terminal_modes, tty_set_terminal_window)
24840 (tty_set_scroll_region, tty_background_highlight)
24841 (tty_highlight_if_desired, tty_cursor_to)
24842 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24843 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24844 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24845 renames.
24846
248472007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24848
24849 * keyboard.c: Qrtl is new.
24850 (parse_tool_bar_item): Handle :rtl keyword.
24851 (syms_of_keyboard): Intern :rtl keyword.
24852
24853 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24854
24855 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24856 so no Lisp code is executed.
24857 (file_for_image, find_rtl_image): New functions.
24858 (xg_get_image_for_pixmap): Use file_for_image.
24859 (update_frame_tool_bar): If direction is RTL, use RTL image if
24860 defined. Use Gtk stock images if defined.
24861
248622007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24863
24864 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24865 for nonexistent or zero-width glyph in composition glyph.
24866
248672007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24868
24869 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24870
24871 * xdisp.c (Finvisible_p): New function.
24872 (syms_of_xdisp): defsubr it.
24873
248742007-08-24 Juanma Barranquero <lekktu@gmail.com>
24875
24876 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24877 Doc fixes.
24878
248792007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24880
24881 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24882
248832007-08-24 Martin Rudalics <rudalics@gmx.at>
24884
24885 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24886 whether decoding has modified buffer contents.
24887
248882007-08-24 Jason Rumney <jasonr@gnu.org>
24889
24890 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24891 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24892 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24893 (init_svg_functions) [HAVE_NTGUI]: New function.
24894 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24895 (svg_load_image): Use them.
24896 (svg_load_image) [HAVE_NTGUI]: Implement background.
24897
248982007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24899
24900 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24901 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24902 (LIBX): Remove @RSVG_LIBS@.
24903 (LIBES): Add $(RSVG_LIBS).
24904
24905 * image.c (svg_load_image): Blend with specified background if exists.
24906 Use IMAGE_BACKGROUND. Add Mac OS Support.
24907
24908 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24909 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24910 Remove macros.
24911 [MAC_OSX] (socket_callback): Do nothing.
24912 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24913 ReceiveNextEvent.
24914 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24915 socket_callback.
24916 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24917
249182007-08-22 Glenn Morris <rgm@gnu.org>
24919
24920 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24921
249222007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24923
24924 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24925
24926 * image.c: Add support for SVG images. Some additional comments
24927 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24928 (svg_image_p): New function to test for SVG image.
24929 (svg_load): New function to load SVG image.
24930 (svg_load_image): New function, helper for svg_load.
24931 (Qsvg): New Lisp_object.
24932 (svg_keyword_index): New enum.
24933 (svg_format): New static `image_keyword' struct.
24934 (svg_type): New static `image_type' struct.
24935 (librsvg/rsvg.h): Include it.
24936
249372007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24938
24939 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24940
249412007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24942
24943 * lread.c (Qold_style_backquotes): New var.
24944 (syms_of_lread): Init and staticpro it.
24945 (load_warn_old_style_backquotes): New fun.
24946 (Fload): Use them to warn about old style backquotes.
24947 (end_of_file_error, Fload): Remove unused vars.
24948
24949 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24950
24951 * lread.c (Vold_style_backquotes): New var.
24952 (syms_of_lread): Init and export it to Elisp.
24953 (read1): Set it when we find an old-style (back)quote.
24954
249552007-08-22 Jason Rumney <jasonr@gnu.org>
24956
24957 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24958
249592007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24960
24961 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24962
249632007-08-19 Richard Stallman <rms@gnu.org>
24964
24965 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24966
249672007-08-19 Andreas Schwab <schwab@suse.de>
24968
24969 * alloc.c (pure): Round PURESIZE up.
24970
249712007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24972
24973 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24974 active frame.
24975
249762007-08-16 Richard Stallman <rms@gnu.org>
24977
24978 * eval.c (Fcommandp): Add parens to clarify.
24979
24980 * minibuf.c (Fall_completions): Use enum for type of table.
24981
24982 * emacs.c (USAGE2): Improve text.
24983
249842007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24985
24986 * term.c (tty_default_color_capabilities): Declare static
24987 variables in file scope, to avoid HPUX compiler problem.
24988
249892007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24990
24991 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24992 to gtk_toolbar_insert.
24993
249942007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24995
24996 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24997
24998 * insdel.c (reset_var_on_error): New fun.
24999 (signal_before_change, signal_after_change):
25000 Use it to reset (after|before)-change-functions to nil in case of error.
25001 Bind inhibit-modification-hooks to t.
25002 Don't bind (after|before)-change-functions to nil while they run.
25003
250042007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25005
25006 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25007 filling pixmap with stippled background.
25008
250092007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25010
25011 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25012 Don't use invisible frame as parent window for repositioning.
25013
250142007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25015
25016 * print.c (new_backquote_output): Rename from old_backquote_output.
25017 (print): Inverse its logic (according to its name) so as to match the
25018 behavior of new_backquote_flag in lread.c.
25019
250202007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25021
25022 * gmalloc.c (posix_memalign): New function.
25023
25024 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25025 ActivateControl/DeactivateControl here.
25026 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25027 frame-notice-user-settings is non-nil.
25028 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25029 for kEventParamFMFontStyle.
25030 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25031 mac_pass_command_to_system and mac_pass_control_to_system here.
25032 (XTread_socket): Call ActivateControl/DeactivateControl here.
25033 (XTread_socket) [TARGET_API_MAC_CARBON]:
25034 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25035 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25036 for window repositioning.
25037
250382007-08-08 Glenn Morris <rgm@gnu.org>
25039
25040 * Replace `iff' in doc-strings and comments.
25041
250422007-08-07 Chong Yidong <cyd@stupidchicken.com>
25043
25044 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25045
250462007-08-07 Martin Rudalics <rudalics@gmx.at>
25047
25048 * fileio.c (Finsert_file_contents): Run format-decode and
25049 after_insert_file_functions on entire buffer when REPLACE is
25050 non-nil and inhibit modification_hooks and point_motion_hooks.
25051 For consistency, run after_insert_file_functions iff something
25052 got inserted. Move signal_after_change and update_compositions
25053 after code running after_insert_file_functions. Make sure that
25054 undo_list doesn't record intermediate steps of the decoding process.
25055
250562007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25057
25058 * emacs.c (main)
25059 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25060 Call malloc_enable_thread on interactive startup.
25061
25062 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25063 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25064 [USE_PTHREAD]: Conditionalize with it.
25065 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25066 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25067 New functions.
25068
250692007-08-06 Chong Yidong <cyd@stupidchicken.com>
25070
25071 * xdisp.c (redisplay_window): When restoring original buffer
25072 position, make sure it is still valid.
25073
25074 * image.c (png_load): Ignore png-supplied background color.
25075
250762007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25077
25078 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25079 Use kCFAbsoluteTimeIntervalSince1970.
25080
25081 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25082 New variable.
25083 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25084 event loop should be quit.
25085 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25086 Quit dialog event loop if quit_dialog_event_loop is set.
25087
25088 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25089 (Selection): New typedef. Use instead of ScrapRef.
25090 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25091 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25092 (mac_clear_selection): Rename from clear_scrap.
25093 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25094 scrap_has_target_type. All uses changed.
25095 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25096 (mac_selection_has_target_p): New functions.
25097 (mac_put_selection_value): Rename from put_scrap_string.
25098 (mac_get_selection_value): Rename from get_scrap_string.
25099 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25100 (put_scrap_private_timestamp, scrap_has_target_type)
25101 (get_scrap_private_timestamp): Remove functions.
25102 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25103 (x_own_selection, x_get_local_selection):
25104 Use mac_valid_selection_value_p.
25105 (x_own_selection): Don't use put_scrap_private_timestamp.
25106 Record OWNERSHIP-INFO into Vselection_alist instead.
25107 (x_get_local_selection): Don't check type if request is local.
25108 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25109 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25110
251112007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25112
25113 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25114 add comment explaining why.
25115
251162007-08-03 Richard Stallman <rms@gnu.org>
25117
25118 * fileio.c (Fvisited_file_modtime): Use make_time.
25119
251202007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25121
25122 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25123 build.
25124
251252007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25126
25127 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25128
251292007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25130
25131 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25132
251332007-07-30 Richard Stallman <rms@gnu.org>
25134
25135 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25136
251372007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25138
25139 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25140
251412007-07-28 Nick Roberts <nickrob@snap.net.nz>
25142
25143 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25144 remote default-directory.
25145
25146 * buffer.c (mode-line-format): Update doc string.
25147
251482007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25149
25150 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25151 scroll bar gap.
25152 (x_scroll_bar_create): Set bar->fringe_extended_p.
25153 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25154 on frame edge. Check fringe background extension. Don't clear
25155 extended fringe background area.
25156
25157 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25158 (w32_fill_area): Enclose multiple statements with do ... while (0).
25159
25160 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25161 Extend fringe background to scroll bar gap.
25162 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25163 Set bar->fringe_extended_p.
25164 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25165 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25166 background extension. Don't clear extended fringe background area.
25167
25168 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25169 New member fringe_extended_p.
25170
251712007-07-25 Glenn Morris <rgm@gnu.org>
25172
25173 * Relicense all FSF files to GPLv3 or later.
25174
25175 * COPYING: Switch to GPLv3.
25176
251772007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25178
25179 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25180
25181 * data.c (Finteractive_form): Check for the presence of an
25182 `interactive-form' symbol property more thoroughly.
25183
25184 * data.c (Finteractive_form): Use an `interactive-form' property if
25185 present, analogous to the function-documentation property.
25186
251872007-07-24 Jason Rumney <jasonr@gnu.org>
25188
25189 * w32fns.c (x_real_positions): Get real position from OS instead of
25190 calculating it.
25191
251922007-07-23 Jason Rumney <jasonr@gnu.org>
25193
25194 * filelock.c (current_lock_owner): Allow for @ sign in username.
25195
251962007-07-22 Nick Roberts <nickrob@snap.net.nz>
25197
25198 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25199 remote default-directory.
25200
25201 * buffer.c (mode-line-format): Describe above case in doc string.
25202
252032007-07-20 Eli Zaretskii <eliz@gnu.org>
25204
25205 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25206 Define if not defined.
25207
252082007-07-18 Jason Rumney <jasonr@gnu.org>
25209
25210 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25211
252122007-07-18 Richard Stallman <rms@gnu.org>
25213
25214 * data.c (Fsetq_default): Doc fix.
25215
25216 * eval.c (Fsetq): Doc fix.
25217
252182007-07-18 Juanma Barranquero <lekktu@gmail.com>
25219
25220 * coding.c (Ffind_operation_coding_system):
25221 * eval.c (For, Fand): Doc fixes.
25222 Reported by Johan Bockgård.
25223
252242007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25225
25226 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25227
25228 * xterm.h: Declare x_ewmh_activate_frame.
25229
25230 * xterm.c (x_ewmh_activate_frame): New function.
25231 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25232
252332007-07-17 Martin Rudalics <rudalics@gmx.at>
25234
25235 * window.c (Fdisplay_buffer): If largest or LRU window is the
25236 only window, split it even if it is not eligible for splitting.
25237 This restores the original behavior broken by the 2007-07-15
25238 change.
25239
252402007-07-17 Glenn Morris <rgm@gnu.org>
25241
25242 * abbrev.c (abbrev_check_chars): New function.
25243 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25244 Call abbrev_check_chars to check abbrev characters are word
25245 constituents. Doc fix.
25246
252472007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25248
25249 * process.c (Fstart_process, Fmake_network_process)
25250 (read_process_output): Fix up last changes.
25251
252522007-07-16 Eli Zaretskii <eliz@gnu.org>
25253
25254 * makefile.w32-in (clean): Don't delete *~.
25255
252562007-07-16 Andreas Schwab <schwab@suse.de>
25257
25258 * window.c (Fdisplay_buffer): Use NILP.
25259 (Fset_window_scroll_bars): Likewise.
25260
252612007-07-15 Martin Rudalics <rudalics@gmx.at>
25262
25263 * window.c (window_min_size_2): New function.
25264 (window_min_size_1, size_window, Fdisplay_buffer)
25265 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25266 windows without mode- or header-lines when window-min-height is
25267 too small.
25268 (size_window): Reset nodelete_p after testing it, following an
25269 earlier note by Kim F. Storm.
25270 (display_buffer): Do not set split_height_threshold to twice the
25271 value of window_min_height to avoid changing the value of a
25272 customizable variable. Rather explicitly check whether the
25273 height of the window that shall be splitted is at least as large
25274 as split_height_threshold.
25275 (Fwindow_full_width_p): New defun.
25276 (syms_of_window): Defsubr it.
25277
25278 * window.h: Add EXFUN for Fwindow_full_width_p.
25279
252802007-07-14 Jason Rumney <jasonr@gnu.org>
25281
25282 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25283
252842007-07-14 Richard Stallman <rms@gnu.org>
25285
25286 * eval.c (maybe_call_debugger): New function.
25287 (find_handler_clause): Use maybe_call_debugger.
25288 Call it when the handler says `debug'.
25289 Eliminate DEBUGGER_VALUE_PTR.
25290 (Fsignal): Eliminate debugger_value.
25291 (Qdebug): New variable.
25292 (syms_of_eval): Initialize it.
25293
252942007-07-14 Juanma Barranquero <lekktu@gmail.com>
25295
25296 * eval.c (Fprogn):
25297 * keyboard.c (Ftrack_mouse):
25298 * print.c (Fwith_output_to_temp_buffer):
25299 * window.c (Fsave_window_excursion): Doc fix.
25300
253012007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25302
25303 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25304
253052007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25306
25307 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25308 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25309 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25310 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25311 Remove unused encoding_carryover.
25312 * process.c: Adjust all functions accordingly.
25313
253142007-07-12 Richard Stallman <rms@gnu.org>
25315
25316 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25317
253182007-07-11 Jason Rumney <jasonr@gnu.org>
25319
25320 * makefile.w32-in (LIBS): Include OLE32.
25321
25322 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25323 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25324
253252007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25326
25327 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25328 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25329 from a Lisp_Object into a bare pointer.
25330 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25331 Adjust the code correspondingly.
25332
25333 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25334
25335 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25336 (term_show_mouse_face): Remove unused var `j'.
25337 (handle_one_term_event): Remove unused vars `i' and `j'.
25338 Don't cast return value of ttyname since it's not necessary.
25339
253402007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25341
25342 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25343 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25344
25345 * fns.c (map_char_table): Use an array of int for `indices' rather than
25346 an array of Lisp_Objects (which are only ever integers anyway).
25347 (Fmap_char_table): Update caller.
25348 * lisp.h: Update prototype.
25349 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25350 * fontset.c (Ffontset_info):
25351 * casetab.c (set_case_table): Update callers.
25352
25353 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25354
25355 * keymap.c (struct accessible_keymaps_data)
25356 (struct where_is_internal_data): New structures.
25357 (accessible_keymaps_1, where_is_internal_1): Use them to change
25358 interface to adhere to the one used by map_keymap.
25359 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25360 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25361
25362 * keymap.h (map_keymap_function_t): More informative prototype.
25363
253642007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25365
25366 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25367 (looking_at_1): Don't change search_regs and last_thing_searched
25368 if `inhibit-changing-match-data' is non-nil.
25369 (string_match_1, search_buffer, set_search_regs): Likewise.
25370 (syms_of_search): Add Lisp level definition for
25371 `inhibit-changing-match-data' and set it to nil.
25372 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25373 start and end of the match, instead of using values in search_regs.
25374
253752007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25376
25377 * minibuf.c (Fcompleting_read): New value `confirm-only'
25378 for `require-match'.
25379
253802007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25381
25382 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25383 part of the 2007-06-27 change to syms_of_fileio.
25384
253852007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25386
25387 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25388 Check WINDOWP before using XWINDOW. Consolidate return statements.
25389
253902007-06-27 Richard Stallman <rms@gnu.org>
25391
25392 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25393
253942007-06-27 Juanma Barranquero <lekktu@gmail.com>
25395
25396 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25397
253982007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25399
25400 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25401 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25402 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25403 (_free_internal, memalign): Use them.
25404 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25405 Initialize to PTHREAD_MUTEX_INITIALIZER.
25406 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25407 (morecore_nolock): Rename from morecore. All uses changed.
25408 Use only nolock versions of internal allocation functions.
25409 (_malloc_internal_nolock, _realloc_internal_nolock)
25410 (_free_internal_nolock): New functions created from
25411 _malloc_internal, _realloc_internal, and _free_internal.
25412 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25413 Copy hook value to automatic variable before its use.
25414 (memalign): Copy hook value to automatic variable before its use.
25415
254162007-06-26 Kenichi Handa <handa@m17n.org>
25417
25418 * coding.c (Ffind_operation_coding_system): Docstring improved.
25419 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25420
254212007-06-25 David Kastrup <dak@gnu.org>
25422
25423 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25424 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25425 cater for additional parameter.
25426
25427 * keymap.h: Adjust number of parameters to `current-active-maps'.
25428
25429 * doc.c (Fsubstitute_command_keys): Adjust call of
25430 `current-active-maps'.
25431
254322007-06-25 David Kastrup <dak@gnu.org>
25433
25434 * callint.c (Fcall_interactively): Make the parsing of interactive
25435 specs somewhat more readable.
25436
254372007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25438
25439 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25440 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25441 if extended background has already been filled.
25442
254432007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25444
25445 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25446 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25447
25448 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25449 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25450 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25451 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25452 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25453 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25454 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25455 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25456 Run timers during dialog popup.
25457 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25458
254592007-06-21 Jason Rumney <jasonr@gnu.org>
25460
25461 * image.c (convert_mono_to_color_image): Swap fore and background.
25462
254632007-06-20 Jason Rumney <jasonr@gnu.org>
25464
25465 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25466 (w32_free_bdf_font): Unmap memory not handle.
25467
254682007-06-20 Sam Steingold <sds@gnu.org>
25469
25470 * gmalloc.c (__morecore): Fix the declaration to comply with the
25471 definition.
25472
254732007-06-20 Juanma Barranquero <lekktu@gmail.com>
25474
25475 * w32term.c (w32_delete_display): Remove leftover declaration.
25476 (w32_define_cursor, w32_initialize): Make static.
25477
25478 * w32.c (_wsa_errlist): Fix typo in error message.
25479 (init_environment): Ignore any environment variable from the
25480 registry having a null value.
25481
254822007-06-20 Glenn Morris <rgm@gnu.org>
25483
25484 * Makefile.in (LIBGIF): Default to -lgif.
25485
254862007-06-17 Jason Rumney <jasonr@gnu.org>
25487
25488 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25489 unicode strings.
25490
254912007-06-16 Juanma Barranquero <lekktu@gmail.com>
25492
25493 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25494 Fix typo in docstring.
25495
254962007-06-16 Eli Zaretskii <eliz@gnu.org>
25497
25498 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25499 and their keybindings.
25500
255012007-06-15 Chong Yidong <cyd@stupidchicken.com>
25502
25503 * composite.c (update_compositions): Fix last fix.
25504
255052007-06-14 Jason Rumney <jasonr@gnu.org>
25506
25507 * w32.c (get_process_times_fn): New function pointer.
25508 (globals_of_w32): Intialize it if present in kernel32.dll.
25509 (w32_get_internal_run_time): New function.
25510
25511 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25512
255132007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25514
25515 * composite.c (update_compositions): Check the validness of
25516 compositions.
25517
255182007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25519
25520 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25521 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25522
25523 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25524 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25525
25526 * macgui.h (USE_MAC_TOOLBAR): New define.
25527
25528 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25529 Return immediately unless popup is activated.
25530
25531 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25532 background to scroll bar gap.
25533 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25534 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25535 scroll bars on frame edge. Check fringe background extension.
25536 Don't clear extended fringe background area.
25537 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25538 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25539 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25540 [USE_MAC_TOOLBAR]: New macros.
25541 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25542 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25543 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25544 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25545 [USE_MAC_TOOLBAR]: New functions.
25546 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25547 manually if previous repositioning has failed.
25548 (mac_handle_keyboard_event): Use precomputed event kind.
25549 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25550 as tool bar item click. Handle mouse movement over tool bar items.
25551
25552 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25553 toolbar_win_gravity.
25554 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25555 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25556 Add externs.
25557
25558 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25559 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25560
255612007-06-14 Chong Yidong <cyd@stupidchicken.com>
25562
25563 * image.c (search_image_cache): Remove unused variable.
25564
255652007-06-13 Chong Yidong <cyd@stupidchicken.com>
25566
25567 * xfns.c, xmenu.c: Link to xaw3d if available.
25568
255692007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25570
25571 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25572 frame_foreground and frame_background.
25573
25574 * image.c (lookup_image): Save frame foreground and background colors.
25575 (search_image_cache): Check if saved and current frame colors match.
25576
255772007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25578
25579 * regex.c (regex_compile): Remove the `regnum' counter.
25580 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25581
255822007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25583
25584 * term.c: Include intervals.h to declare Fget_text_property.
25585
255862007-06-10 Jason Rumney <jasonr@gnu.org>
25587
25588 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25589
255902007-06-08 Juanma Barranquero <lekktu@gmail.com>
25591
25592 * callint.c (Fcall_interactively):
25593 * editfns.c (Fdelete_and_extract_region):
25594 * fileio.c (Fread_file_name):
25595 * fns.c (Fmapconcat):
25596 * keyboard.c (cmd_error_internal):
25597 * keymap.c (Fkey_description):
25598 * lread.c (openp):
25599 * minibuf.c (read_minibuf):
25600 * search.c (wordify):
25601 * sunfns.c (sel_read):
25602 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25603 * xfns.c (x_default_scroll_bar_color_parameter):
25604 * xmenu.c (menu_help_callback):
25605 * xselect.c (Fx_get_atom_name):
25606 * xterm.c (x_term_init): Use empty_unibyte_string.
25607
256082007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25609
25610 * alloc.c (init_strings): Initialize canonical empty strings.
25611 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25612 canonical empty string when the requested size is 0.
25613
25614 * emacs.c (empty_unibyte_string): Rename from empty_string.
25615 (empty_multibyte_string): New canonical empty string.
25616 (syms_of_emacs): Don't initialize empty_string.
25617
25618 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25619 string, if appropriate.
25620 (empty_unibyte_string, empty_multibyte_string): New externs.
25621 (empty_string): Remove extern.
25622
25623 * lread.c (syms_of_lread): Use empty_unibyte_string.
25624
256252007-06-07 Jason Rumney <jasonr@gnu.org>
25626
25627 * s/ms-w32.h: Don't define HAVE_TZNAME.
25628
25629 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25630
256312007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25632
25633 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25634
25635 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25636 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25637
25638 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25639 Don't call next handler.
25640 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25641 Remove argument. Install handler to application.
25642 (set_frame_menubar): Don't change deep_p.
25643 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25644 FRAME_OUTER_TO_INNER_DIFF_Y.
25645 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25646 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25647 [HAVE_DIALOGS]: New macros.
25648 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25649 Use them.
25650 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25651
25652 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25653 init_service_handler. All callers changed. Return OSStatus value.
25654
25655 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25656 All callers changed so as not to call SetPortWindowPort.
25657 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25658 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25659 mac_draw_string_common.
25660 (mac_draw_image_string_qd): Likewise.
25661 (mac_draw_string_common): Use them. Add INLINE.
25662 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25663 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25664 GetGlobalMouse.
25665 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25666 and FRAME_OUTER_TO_INNER_DIFF_Y.
25667 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25668 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25669 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25670 repositioning window to mac_handle_window_event.
25671 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25672 saving window location to mac_handle_window_event
25673 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25674 (install_menu_target_item_handler): Remove argument in extern.
25675 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25676 Also accept command events.
25677 (do_keystroke): New function created from XTread_socket.
25678 (init_command_handler): Remove functions.
25679 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25680 and save window location by kEventWindowShowing and kEventWindowHiding
25681 handlers here. Don't call next handler for window state change and
25682 focus events.
25683 (mac_handle_application_event, mac_handle_keyboard_event)
25684 [TARGET_API_MAC_CARBON]: New functions.
25685 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25686 kEventWindowShowing and kEventWindowHiding events. Move installation
25687 of mouse, font, text input and menu target item handlers to
25688 install_application_handler.
25689 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25690 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25691 New function.
25692 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25693 Register it.
25694 (XTread_socket) [TARGET_API_MAC_CARBON]:
25695 Consolidate SendEventToEventTarget calls.
25696 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25697 Move application activation handler to mac_handle_application_event.
25698 Move keyboard handler to mac_handle_keyboard_event.
25699 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25700 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25701 init_command_handler. Call install_application_handler.
25702
25703 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25704 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25705
257062007-06-07 Glenn Morris <rgm@gnu.org>
25707
25708 * emacs.c (main): Use `emacs-copyright' in --version output.
25709
257102007-06-06 Chong Yidong <cyd@stupidchicken.com>
25711
25712 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25713
257142007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25715
25716 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25717
25718 * macgui.h: Replace WindowPtr with WindowRef.
25719
25720 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25721 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25722 Replace ControlHandle with ControlRef.
25723 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25724
25725 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25726 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25727 Replace ControlHandle with ControlRef.
25728 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25729 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25730
25731 * macterm.h (struct scroll_bar): Rename member control_handle_low
25732 and control_handle_high to control_ref_low and control_ref_high.
25733 All uses changed.
25734 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25735 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25736 respectively. All uses changed.
25737 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25738 (install_window_handler, remove_window_handler): Replace WindowPtr
25739 with WindowRef in externs.
25740
257412007-06-05 Juanma Barranquero <lekktu@gmail.com>
25742
25743 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25744
257452007-06-03 Nick Roberts <nickrob@snap.net.nz>
25746
25747 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25748
25749 * frame.c (Fmouse_position, Fmouse_pixel_position):
25750 Condition on HAVE_GPM too.
25751
25752 * term.c (term_mouse_highlight): Remove unused variables.
25753 (Fterm_open_connection): Set gpm_zerobased to 1.
25754 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25755 Use zero based co-ordinates.
25756 (handle_one_term_event): Report a drag as mouse movement too.
25757
25758 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25759
257602007-06-03 Chong Yidong <cyd@stupidchicken.com>
25761
25762 * image.c (search_image_cache): New function. Require background
25763 color match if background color is unspecified in the image spec.
25764 (uncache_image, lookup_image): Use it.
25765
257662007-06-01 Juanma Barranquero <lekktu@gmail.com>
25767
25768 * window.c (Fshrink_window): Reflow docstring.
25769
257702007-06-02 Chong Yidong <cyd@stupidchicken.com>
25771
25772 * Version 22.1 released.
25773
257742007-06-01 Richard Stallman <rms@gnu.org>
25775
25776 * xfns.c (x_encode_text): Add GCPRO.
25777
257782007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25779
25780 * xfns.c (x_set_name_internal): Save encoded name before
25781 x_encode_text in case string data is relocated.
25782
257832007-05-31 Richard Stallman <rms@gnu.org>
25784
25785 * buffer.c (syms_of_buffer): Doc fix.
25786
257872007-05-30 Nick Roberts <nickrob@snap.net.nz>
25788
25789 * sysdep.c (init_sys_modes): Add rather than replace with
25790 O_NONBLOCK.
25791
25792 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25793 term_mouse_moveto.
25794
25795 * termhooks.h (term_mouse_moveto): New extern.
25796
25797 * term.c (mouse_face_window): Rename...
25798 (Qmouse_face_window): ...to this.
25799 (term_show_mouse_face, term_clear_mouse_face)
25800 (term_mouse_highlight): Use Qmouse_face_window.
25801 (term_mouse_moveto): New function.
25802 (term_mouse_position): Make it work.
25803 (syms_of_term): Uncomment assignment to mouse_position_hook.
25804 Staticpro Qmouse_face_window.
25805
258062007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25807
25808 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25809 around current_column call.
25810
258112007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25812
25813 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25814 * xdisp.c (next_element_from_buffer):
25815 * window.c (delete_window):
25816 * term.c (term_mouse_highlight):
25817 * msdos.c (getdefdir):
25818 * macterm.c (mac_create_bitmap_from_bitmap_data)
25819 (init_font_name_table):
25820 * fns.c (Fsxhash):
25821 * data.c (Fmake_local_variable):
25822 * ccl.c (ccl_driver): Likewise.
25823
258242007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25825
25826 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25827 Call mac_wakeup_from_rne on window size change.
25828
258292007-05-25 Chong Yidong <cyd@stupidchicken.com>
25830
25831 * image.c (uncache_image): Fix typo.
25832
258332007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25834
25835 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25836
258372007-05-22 Richard Stallman <rms@gnu.org>
25838
25839 * xterm.c (x_connection_closed): Remove NO_RETURN.
25840
258412007-05-22 Martin Rudalics <rudalics@gmx.at>
25842
25843 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25844
258452007-05-21 Chong Yidong <cyd@stupidchicken.com>
25846
25847 * image.c (uncache_image): New function.
25848 (Fimage_refresh): New function.
25849
258502007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25851
25852 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25853
258542007-05-20 Nick Roberts <nickrob@snap.net.nz>
25855
25856 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25857 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25858
258592007-05-20 Nick Roberts <nickrob@snap.net.nz>
25860
25861 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25862 conditional on [HAVE_GPM_H].
25863
258642007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25865
25866 * syntax.c (skip_chars): Update syntax-table only after we checked that
25867 the new location is valid.
25868
258692007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25870
25871 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25872 mac_get_window_bounds.
25873
258742007-05-20 Nick Roberts <nickrob@snap.net.nz>
25875
25876 * Makefile.in (LIBGPM): Allow it to be set from configure.
25877 If set then link Emacs with it.
25878
25879 * config.in: Regenerate.
25880
25881 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25882 New externs.
25883
25884 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25885 Include gpm.h.
25886 (handle_one_term_event, term_gpm): New externs.
25887
25888 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25889 and allow it to be interrupted by SIGIO.
25890
25891 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25892 (wait_reading_process_output): Wait on gpm_fd too.
25893 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25894 (add_gpm_wait_descriptor_called_flag): New variable.
25895 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25896
25897 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25898 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25899 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25900 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25901 (make_lispy_event): Add case GPM_CLICK_EVENT.
25902 (read_avail_input): Handle mouse input.
25903
25904 * term.c (write_glyphs_with_face): New function.
25905 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25906 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25907 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25908 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25909 (last_mouse_x, last_mouse_y): New variables.
25910 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25911 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25912 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25913 (Fterm_close_connection): New functions.
25914 (term_init): Initialise mouse_face_window.
25915
259162007-05-19 Chong Yidong <cyd@stupidchicken.com>
25917
25918 * xdisp.c (redisplay_window): If first window line is a
25919 continuation line, recompute the new window start instead of
25920 recentering.
25921
259222007-05-18 Glenn Morris <rgm@gnu.org>
25923
25924 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25925 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25926
259272007-05-17 Glenn Morris <rgm@gnu.org>
25928
25929 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25930
259312007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25932
25933 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25934 dead key repeat and up events.
25935
259362007-05-14 Chong Yidong <cyd@stupidchicken.com>
25937
25938 * image.c (pbm_load): Check image size for monochrome pbm.
25939
259402007-05-13 Chong Yidong <cyd@stupidchicken.com>
25941
25942 * xterm.c (XTread_socket): Revert last change.
25943
259442007-05-12 Chong Yidong <cyd@stupidchicken.com>
25945
25946 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25947
25948 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25949
259502007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25951
25952 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25953 mixup (YAILOM).
25954
259552007-05-07 Andreas Schwab <schwab@suse.de>
25956
25957 * keymap.c (Flookup_key): Fix typo in last change.
25958
259592007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25960
25961 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25962 mapping for unibyte strings.
25963
259642007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25965
25966 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25967 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25968
259692007-04-29 Richard Stallman <rms@gnu.org>
25970
25971 * insdel.c (replace_range): For undo, record insertion first.
25972
259732007-04-29 Andreas Schwab <schwab@suse.de>
25974
25975 * lisp.h (VECSIZE): Use OFFSETOF.
25976
259772007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25978
25979 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25980 disabled lines.
25981
259822007-04-28 Richard Stallman <rms@gnu.org>
25983
25984 * lread.c (read_escape): In a string, \s is always space.
25985
259862007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25987
25988 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25989
25990 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25991 submenu for menu bar items.
25992
25993See ChangeLog.10 for earlier changes.
25994
25995;; Local Variables:
25996;; coding: utf-8
25997;; add-log-time-zone-rule: t
aac0c6e3
MR
25998;; End:
25999
e3eb1dae 26000 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26001
26002 This file is part of GNU Emacs.
26003
26004 GNU Emacs is free software: you can redistribute it and/or modify
26005 it under the terms of the GNU General Public License as published by
26006 the Free Software Foundation, either version 3 of the License, or
26007 (at your option) any later version.
26008
26009 GNU Emacs is distributed in the hope that it will be useful,
26010 but WITHOUT ANY WARRANTY; without even the implied warranty of
26011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26012 GNU General Public License for more details.
26013
26014 You should have received a copy of the GNU General Public License
26015 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26016
26017;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40